/* ==========================================================================
   Blackrod House Care Home — Shared Stylesheet
   Palette: warm sage & cream with terracotta accents (matches brand logo)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Nunito+Sans:opsz,wght@6..12,400;6..12,600;6..12,700;6..12,800&display=swap');

:root {
  /* Colour tokens */
  --cream: #FAF7F1;
  --cream-2: #F3EDE2;
  --white: #FFFFFF;
  --sage-50: #EFF4EE;
  --sage-100: #DFE9DE;
  --sage-200: #C9DAC9;
  --green-500: #6B9080;
  --green-600: #4E7561;
  --green-700: #3E5C4B;
  --green-800: #33493D;
  --green-900: #26372E;
  --terra: #C0653F;
  --terra-deep: #A9532F;
  --terra-soft: #F0D9CB;
  --ink: #2B3530;
  --muted: #57685E;
  --line: #E4DDCF;

  /* Type */
  --font-head: 'Fraunces', Georgia, serif;
  --font-body: 'Nunito Sans', 'Segoe UI', sans-serif;

  /* Shape & shadow */
  --radius: 22px;
  --radius-lg: 32px;
  --shadow-sm: 0 2px 10px rgba(38, 55, 46, 0.06);
  --shadow-md: 0 10px 30px rgba(38, 55, 46, 0.10);
  --shadow-lg: 0 24px 60px rgba(38, 55, 46, 0.14);

  /* Z-scale */
  --z-nav: 50;
  --z-drawer: 60;
  --z-lightbox: 70;

  --wrap: 1180px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem; /* 17px */
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  color: var(--green-900);
  text-wrap: balance;
}

p { max-width: 68ch; }

a { color: var(--green-700); }

:focus-visible {
  outline: 3px solid var(--terra);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--sage-200); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--green-900);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 12px 0;
  z-index: 100;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

.wrap {
  width: min(var(--wrap), 100% - 2.5rem);
  margin-inline: auto;
}

section { padding: clamp(4rem, 8vw, 6.5rem) 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 0.85rem 1.9rem;
  min-height: 48px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.btn svg { flex: none; }

.btn-primary {
  background: var(--green-700);
  color: #fff;
  box-shadow: 0 8px 20px rgba(62, 92, 75, 0.28);
}
.btn-primary:hover { background: var(--green-800); transform: translateY(-2px); }

.btn-terra {
  background: var(--terra);
  color: #fff;
  box-shadow: 0 8px 20px rgba(192, 101, 63, 0.28);
}
.btn-terra:hover { background: var(--terra-deep); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--green-800);
  border-color: var(--green-600);
}
.btn-ghost:hover { background: var(--sage-50); }

.btn-light {
  background: #fff;
  color: var(--green-800);
  box-shadow: var(--shadow-sm);
}
.btn-light:hover { background: var(--sage-50); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: rgba(250, 247, 241, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}
.site-header.scrolled {
  background: rgba(250, 247, 241, 0.94);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.brand img { height: 74px; width: auto; }
.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.28rem;
  color: var(--green-900);
  line-height: 1.05;
}
.brand-name small {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terra-deep);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.nav-links a {
  display: inline-block;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--green-800);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.nav-links a:hover { background: var(--sage-100); }
.nav-links a[aria-current="page"] {
  background: var(--green-700);
  color: #fff;
}
.nav-links .drawer-only { display: none; }

.nav-actions { display: flex; align-items: center; gap: 0.6rem; }

.nav-toggle {
  display: none;
  border: 2px solid var(--sage-200);
  background: #fff;
  border-radius: 12px;
  width: 48px;
  height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--green-800);
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3.5rem, 7vw, 6rem);
  overflow: hidden;
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  pointer-events: none;
}
.hero::before {
  width: 480px; height: 480px;
  background: var(--sage-200);
  top: -160px; right: -120px;
}
.hero::after {
  width: 420px; height: 420px;
  background: var(--terra-soft);
  bottom: -180px; left: -140px;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid var(--sage-200);
  color: var(--green-800);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  box-shadow: var(--shadow-sm);
}
.eyebrow .dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--terra);
}

.hero h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.1rem);
  margin: 1.2rem 0 1.1rem;
}
.hero h1 em {
  font-style: italic;
  color: var(--green-600);
}

.hero-sub {
  font-size: 1.18rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2.4rem; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem 2.4rem;
}
.trust-item strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.7rem;
  color: var(--green-900);
}
.trust-item span { color: var(--muted); font-size: 0.95rem; font-weight: 600; }

.hero-media { position: relative; }
.hero-media .main-photo {
  width: 100%;
  height: clamp(380px, 46vw, 560px);
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.hero-media .photo-accent {
  position: absolute;
  left: -2rem;
  bottom: -2rem;
  width: 42%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  border: 6px solid var(--cream);
  box-shadow: var(--shadow-md);
}
.hero-badge {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: 0.6rem 1.2rem 0.6rem 0.7rem;
  box-shadow: var(--shadow-md);
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--green-800);
}
.hero-badge .icon-circle { width: 38px; height: 38px; }

/* ---------- Section headers ---------- */
.section-head { max-width: 720px; margin-bottom: clamp(2.2rem, 5vw, 3.4rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center p { margin-inline: auto; }
.section-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  margin: 0.9rem 0 0.9rem;
}
.section-head p { color: var(--muted); font-size: 1.1rem; }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: #fff;
  border: 1px solid rgba(228, 221, 207, 0.7);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
a.card { text-decoration: none; display: block; cursor: pointer; }
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
  border-color: var(--sage-200);
}

.icon-circle {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--sage-100), var(--sage-50));
  color: var(--green-700);
  flex: none;
}
.icon-circle.terra {
  background: linear-gradient(135deg, var(--terra-soft), #F7EAE0);
  color: var(--terra-deep);
}

.card h3 { font-size: 1.32rem; margin: 1.1rem 0 0.55rem; }
.card p { color: var(--muted); font-size: 1rem; }

.card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  font-weight: 800;
  color: var(--terra-deep);
  font-size: 0.98rem;
}

/* ---------- Split feature sections ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split.reverse > .split-media { order: 2; }

.split-media { position: relative; }
.split-media img {
  width: 100%;
  height: clamp(340px, 40vw, 480px);
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.split-media .floating-card {
  position: absolute;
  bottom: -1.4rem;
  right: 1.4rem;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  max-width: 85%;
}
.floating-card strong { font-family: var(--font-head); font-size: 1.25rem; color: var(--green-900); display: block; }
.floating-card span { color: var(--muted); font-size: 0.9rem; font-weight: 600; }

.split-body h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin: 0.9rem 0 1.1rem; }
.split-body p { color: var(--muted); margin-bottom: 1rem; }

.check-list { list-style: none; margin: 1.4rem 0 1.8rem; display: grid; gap: 0.8rem; }
.check-list li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  font-weight: 600;
}
.check-list .check {
  flex: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--sage-100);
  color: var(--green-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.15rem;
}

/* ---------- Stats band ---------- */
.stats-band {
  background: linear-gradient(120deg, var(--green-800), var(--green-600));
  border-radius: var(--radius-lg);
  padding: clamp(2.2rem, 5vw, 3.4rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(2.1rem, 4vw, 2.9rem);
  line-height: 1.1;
}
.stat strong span { font-size: inherit; font-family: inherit; opacity: 1; }
.stat > span { display: block; opacity: 0.85; font-weight: 600; font-size: 0.98rem; }

/* ---------- Testimonials ---------- */
.testimonials-section { background: var(--cream-2); }

.testimonial-slider { position: relative; max-width: 860px; margin-inline: auto; }
.testimonial-track { overflow: hidden; border-radius: var(--radius-lg); }
.testimonial-slides {
  display: flex;
  transition: transform 0.5s ease;
}
.testimonial {
  flex: 0 0 100%;
  background: #fff;
  padding: clamp(2rem, 5vw, 3.2rem);
  text-align: center;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.testimonial .quote-mark {
  font-family: var(--font-head);
  font-size: 4rem;
  line-height: 0.6;
  color: var(--terra);
  display: block;
  margin-bottom: 1.2rem;
}
.testimonial h3 { font-size: 1.45rem; margin-bottom: 0.9rem; font-style: italic; }
.testimonial p { color: var(--muted); margin-inline: auto; }
.testimonial footer {
  margin-top: 1.3rem;
  font-weight: 800;
  color: var(--green-700);
}

.slider-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1.6rem;
}
.slider-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 2px solid var(--sage-200);
  background: #fff;
  color: var(--green-800);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.slider-btn:hover { background: var(--sage-50); border-color: var(--green-500); }
.slider-dots { display: flex; gap: 0.5rem; }
.slider-dots button {
  width: 12px; height: 12px;
  border-radius: 50%;
  border: none;
  background: var(--sage-200);
  cursor: pointer;
  padding: 0;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.slider-dots button[aria-current="true"] { background: var(--terra); transform: scale(1.25); }

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 820px; margin-inline: auto; display: grid; gap: 1rem; }

.faq-item {
  background: #fff;
  border: 1px solid rgba(228, 221, 207, 0.7);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.faq-item.open { box-shadow: var(--shadow-md); border-color: var(--sage-200); }

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--green-900);
  text-align: left;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  min-height: 48px;
}
.faq-question .faq-icon {
  flex: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--sage-100);
  color: var(--green-800);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--terra);
  color: #fff;
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}
.faq-item.open .faq-answer { grid-template-rows: 1fr; }
.faq-answer-inner { overflow: hidden; }
.faq-answer-inner p {
  padding: 0 1.5rem 1.4rem;
  color: var(--muted);
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
}
.gallery-item {
  position: relative;
  border: none;
  padding: 0;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--sage-100);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.gallery-item:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.2rem 1.2rem 1rem;
  background: linear-gradient(transparent, rgba(38, 55, 46, 0.82));
  color: #fff;
  font-weight: 700;
  font-size: 0.98rem;
  text-align: left;
}
.gallery-item.tall img { height: 420px; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-lightbox);
  background: rgba(24, 33, 28, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(1100px, 100%);
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.lightbox-caption {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-weight: 700;
  background: rgba(38, 55, 46, 0.7);
  border-radius: 999px;
  padding: 0.5rem 1.4rem;
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: var(--green-900);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: #fff; }
.lightbox-close { top: 1.4rem; right: 1.4rem; }
.lightbox-prev { left: 1.4rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1.4rem; top: 50%; transform: translateY(-50%); }

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 380px));
  gap: 1.8rem;
  justify-content: center;
}
.team-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(228, 221, 207, 0.7);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.team-card:hover { box-shadow: var(--shadow-md); transform: translateY(-5px); }
.team-card img { width: 100%; height: 340px; object-fit: cover; object-position: top; }
.team-card .team-body { padding: 1.5rem 1.6rem 1.8rem; }
.team-card h3 { font-size: 1.35rem; }
.team-card .role {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terra-deep);
  margin: 0.35rem 0 0.7rem;
}
.team-card p { color: var(--muted); font-size: 0.99rem; }

/* ---------- Values / page hero ---------- */
.page-hero {
  position: relative;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  background:
    radial-gradient(700px 340px at 85% -10%, rgba(201, 218, 201, 0.55), transparent 70%),
    radial-gradient(600px 320px at 0% 110%, rgba(240, 217, 203, 0.5), transparent 70%),
    var(--cream);
  text-align: center;
  overflow: hidden;
}
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.4rem); margin: 1.1rem 0 1rem; }
.page-hero p { max-width: 640px; margin-inline: auto; color: var(--muted); font-size: 1.15rem; }

.breadcrumb {
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 1.4rem;
}
.breadcrumb a { color: var(--green-700); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Services page ---------- */
.service-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.6rem;
  background: #fff;
  border: 1px solid rgba(228, 221, 207, 0.7);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.service-row:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.service-row h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.service-row p { color: var(--muted); }
.service-row ul {
  margin: 0.9rem 0 0 1.2rem;
  color: var(--muted);
  display: grid;
  gap: 0.35rem;
}
.services-grid { display: grid; gap: 1.4rem; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.contact-card {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid rgba(228, 221, 207, 0.7);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.1rem;
  text-decoration: none;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
a.contact-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.contact-card h3 { font-size: 1.12rem; margin-bottom: 0.15rem; }
.contact-card p { color: var(--muted); font-size: 1rem; }
.contact-card strong { color: var(--green-800); font-size: 1.1rem; }

.form-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(228, 221, 207, 0.7);
  box-shadow: var(--shadow-md);
  padding: clamp(1.8rem, 4vw, 2.6rem);
}
.form-card h2 { font-size: 1.7rem; margin-bottom: 0.4rem; }
.form-card > p { color: var(--muted); margin-bottom: 1.6rem; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 800; font-size: 0.98rem; color: var(--green-900); }
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--ink);
  background: var(--cream);
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 0.8rem 1rem;
  min-height: 48px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--green-600);
  background: #fff;
}
.form-note { font-size: 0.92rem; color: var(--muted); margin-top: 1rem; }

.map-frame {
  width: 100%;
  height: 420px;
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: block;
}

/* ---------- CTA band ---------- */
.cta-band { padding-bottom: clamp(4rem, 8vw, 6.5rem); }
.cta-inner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--green-800) 0%, var(--green-600) 100%);
  border-radius: var(--radius-lg);
  padding: clamp(2.6rem, 6vw, 4.2rem);
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.cta-inner::before {
  content: "";
  position: absolute;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  top: -190px; right: -110px;
}
.cta-inner::after {
  content: "";
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(240, 217, 203, 0.14);
  bottom: -160px; left: -90px;
}
.cta-inner h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 0.9rem; }
.cta-inner p { color: rgba(255, 255, 255, 0.88); max-width: 560px; margin: 0 auto 1.9rem; font-size: 1.12rem; }
.cta-inner .btn { position: relative; z-index: 1; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-900);
  color: rgba(255, 255, 255, 0.82);
  padding: clamp(3rem, 6vw, 4.5rem) 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 2.6rem;
}
.footer-brand img { height: 96px; margin-bottom: 1rem; background: #fff; border-radius: 14px; padding: 8px 14px; }
.footer-brand p { font-size: 0.98rem; }
.site-footer h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.footer-links { list-style: none; display: grid; gap: 0.55rem; }
.footer-links a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-contact { list-style: none; display: grid; gap: 0.8rem; font-size: 0.98rem; }
.footer-contact li { display: flex; gap: 0.7rem; align-items: flex-start; }
.footer-contact svg { flex: none; margin-top: 0.25rem; opacity: 0.75; }
.footer-contact a { color: rgba(255, 255, 255, 0.82); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 1.4rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  justify-content: space-between;
  font-size: 0.92rem;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: var(--z-nav);
  width: 52px; height: 52px;
  border-radius: 50%;
  border: none;
  background: var(--green-700);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.2s ease;
}
.back-to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.back-to-top:hover { background: var(--green-800); }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .split.reverse > .split-media { order: 0; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-media .main-photo { height: clamp(320px, 55vw, 460px); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    inset: 0 0 auto 0;
    top: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    background: var(--cream);
    padding: 6.2rem 1.4rem 2rem;
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 28px 28px;
    transform: translateY(-105%);
    transition: transform 0.35s ease;
    z-index: -1;
  }
  .nav-links.open { transform: none; }
  .nav-links a { font-size: 1.15rem; padding: 0.85rem 1.2rem; }
  .nav-links .drawer-only { display: block; }
  .nav-links .drawer-only a {
    background: var(--terra);
    color: #fff;
    text-align: center;
    margin-top: 0.4rem;
  }
  .nav-toggle { display: inline-flex; }
  .site-header .btn-primary { display: none; }

  .card-grid, .gallery-grid, .team-grid, .form-grid { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr; }
  .hero-media .photo-accent { left: 1rem; bottom: -1.6rem; }
  .hero-trust { gap: 1.2rem 1.8rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .gallery-item img, .gallery-item.tall img { height: 260px; }
  .lightbox-prev, .lightbox-next { display: none; }
  .brand-name { font-size: 1.05rem; }
  .brand img { height: 58px; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
