/* Memories Memorials Ltd — proposal rebuild
   Direction: night-service — dark throughout, raised panels, industrial signage feel */

:root {
  --brand-primary: #4a4a42;   /* Dark Slate Brown */
  --accent: #3cb521;          /* Call-to-Action Green */
  --base-light: #e8e8e8;      /* Marble Grey */
  --bg-dark: #201f1b;
  --panel: #4a4a42;
  --panel-raised: #55554c;
  --text-on-dark: #e8e8e8;
  --text-muted: #c7c7bf;
  --border-dark: #14140f;
  --banner-height: 44px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding-top: var(--banner-height);
  background: var(--bg-dark);
  color: var(--text-on-dark);
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Archivo Black', 'Arial Black', sans-serif;
  line-height: 1.15;
  color: var(--base-light);
  margin: 0 0 0.6em 0;
  letter-spacing: 0.01em;
}

p { margin: 0 0 1em 0; color: var(--text-on-dark); }

a { color: var(--accent); }
a:hover, a:focus { color: #63d647; }

img { max-width: 100%; display: block; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Proposal banner (fixed, unremovable) ---------- */
.preview-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--banner-height);
  z-index: 9999;
  background: #0b0b0a;
  color: #ffffff;
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 0.75rem;
  border-bottom: 1px solid #333;
  letter-spacing: 0.02em;
}

/* ---------- Preview watermark (fixed, sparse, low opacity) ---------- */
.preview-watermark {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  overflow: hidden;
  opacity: 0.06;
  pointer-events: none;
}

.preview-watermark span {
  font-family: 'Archivo Black', 'Arial Black', sans-serif;
  font-size: clamp(2.5rem, 7vw, 5rem);
  color: #9a9a90;
  white-space: nowrap;
  transform: rotate(-30deg);
}

/* ---------- Header ---------- */
.site-header {
  background: var(--bg-dark);
  border-bottom: 3px solid var(--accent);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
}

.logo-link { display: flex; align-items: center; flex-shrink: 0; }

.logo { height: 52px; width: auto; }

.header-call {
  order: 2;
  flex-shrink: 0;
}

.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  background: var(--accent);
  color: #0b0b0a;
  font-weight: 800;
  text-decoration: none;
  padding: 0.6em 1em;
  border: 2px solid #0b0b0a;
  box-shadow: 0 3px 0 #0b0b0a;
  font-size: 1rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.phone-link:hover, .phone-link:focus { background: #63d647; color: #0b0b0a; }

.site-nav {
  order: 3;
  width: 100%;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.site-nav a {
  color: var(--base-light);
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  padding: 0.4em 0.1em;
  border-bottom: 3px solid transparent;
}

.site-nav a:hover, .site-nav a:focus, .site-nav a[aria-current="page"] {
  border-bottom-color: var(--accent);
  color: #ffffff;
}

@media (min-width: 700px) {
  .header-call { order: 3; }
  .site-nav { order: 2; width: auto; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, #2a2a24 0%, var(--bg-dark) 100%);
  border-bottom: 1px solid var(--border-dark);
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.25rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 800px) {
  .hero-inner { grid-template-columns: 1.1fr 0.9fr; }
}

.hero-tagline {
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.5rem;
}

.hero-sub {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 40em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.hero-media {
  position: relative;
  border: 4px solid var(--accent);
  box-shadow: 0 10px 0 var(--border-dark);
}

.hero-media img { width: 100%; height: 320px; object-fit: cover; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 0.9em 1.6em;
  border: 2px solid #0b0b0a;
  cursor: pointer;
  font-size: 0.95rem;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent);
  color: #0b0b0a;
  box-shadow: 0 5px 0 #0b0b0a;
}
.btn-primary:hover, .btn-primary:focus { background: #63d647; color: #0b0b0a; transform: translateY(2px); box-shadow: 0 3px 0 #0b0b0a; }

.btn-secondary {
  background: transparent;
  color: var(--base-light);
  border-color: var(--base-light);
  box-shadow: 0 5px 0 var(--border-dark);
}
.btn-secondary:hover, .btn-secondary:focus { background: var(--base-light); color: #0b0b0a; transform: translateY(2px); box-shadow: 0 3px 0 var(--border-dark); }

/* ---------- Sections & panels ---------- */
.section {
  padding: 3rem 0;
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  margin-bottom: 1.5rem;
}

.panel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 700px) {
  .panel-grid { grid-template-columns: repeat(3, 1fr); }
}

.panel {
  background: var(--panel-raised);
  border: 1px solid var(--border-dark);
  box-shadow: 0 6px 0 var(--border-dark);
  padding: 1.75rem;
}

.panel h3 {
  font-size: 1.15rem;
  color: var(--accent);
}

.panel p:last-child { margin-bottom: 0; }

/* ---------- Full-width photo strip ---------- */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  width: 100%;
}

@media (min-width: 700px) {
  .photo-strip { grid-template-columns: repeat(4, 1fr); }
}

.photo-strip figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  height: 260px;
}

.photo-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(15%) contrast(1.05);
}

.photo-strip figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(11,11,10,0) 0%, rgba(11,11,10,0.9) 90%);
  color: #fff;
  padding: 2.2rem 0.9rem 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

/* ---------- Highlight banner (feature strip) ---------- */
.feature-banner {
  background: var(--accent);
  color: #0b0b0a;
  padding: 1.5rem 0;
  text-align: center;
}

.feature-banner p {
  margin: 0;
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(1.05rem, 3vw, 1.5rem);
  color: #0b0b0a;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* ---------- Service sections (services page) ---------- */
.service-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 2.25rem 0;
  border-bottom: 1px solid #34342c;
}

.service-block:last-child { border-bottom: none; }

@media (min-width: 800px) {
  .service-block { grid-template-columns: 0.85fr 1.15fr; }
  .service-block.reverse .service-media { order: 2; }
  .service-block.reverse .service-copy { order: 1; }
}

.service-media {
  border: 3px solid var(--panel-raised);
  box-shadow: 0 6px 0 var(--border-dark);
}

.service-media img { width: 100%; height: 260px; object-fit: cover; }

.service-copy h2 { color: var(--accent); font-size: 1.5rem; }

/* ---------- Contact / form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 800px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

.contact-details p { margin-bottom: 0.6em; }

form.enquiry {
  background: var(--panel-raised);
  border: 1px solid var(--border-dark);
  box-shadow: 0 6px 0 var(--border-dark);
  padding: 1.75rem;
}

.field { margin-bottom: 1.1rem; }

.field label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.35em;
  color: var(--base-light);
  font-size: 0.95rem;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.7em;
  border: 2px solid #6c6c60;
  background: #f4f4f2;
  color: #17170f;
  font-family: inherit;
  font-size: 1rem;
}

.field input:focus,
.field textarea:focus {
  outline: 3px solid var(--accent);
  outline-offset: 1px;
}

.field-error {
  color: #ffb4a8;
  font-size: 0.85rem;
  margin-top: 0.35em;
  min-height: 1.1em;
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #d64b3a;
}

.form-status {
  margin-top: 1rem;
  padding: 0.9rem;
  border: 2px solid var(--accent);
  background: #2c2c26;
  color: var(--base-light);
  display: none;
}

.form-status.visible { display: block; }

.required-note { color: var(--text-muted); font-size: 0.85rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: #17170f;
  border-top: 3px solid var(--accent);
  padding: 2.5rem 0 1rem;
  margin-top: 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 700px) {
  .footer-inner { grid-template-columns: repeat(3, 1fr); }
}

.footer-logo { height: 40px; margin-bottom: 0.75rem; }

.footer-brand p, .footer-contact p { color: var(--text-muted); }

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav a {
  color: var(--base-light);
  text-decoration: none;
  display: inline-block;
  padding: 0.25em 0;
}

.footer-nav a:hover, .footer-nav a:focus { color: var(--accent); }

.proposal-line {
  max-width: 1100px;
  margin: 1.75rem auto 0;
  padding: 0.9rem 1.25rem 0;
  border-top: 1px solid #333;
  color: #9a9a90;
  font-size: 0.85rem;
  text-align: center;
}

.placeholder {
  color: #f0c419;
}
