/* ============================================================
   Lansbury Collection — design system
   British racing green + gold, minimalist, editorial.
   ============================================================ */

:root {
  --ivory: #F7F4EC;
  --ivory-dark: #EEE8DA;
  --ink: #17201A;
  --ink-soft: rgba(23, 32, 26, 0.68);
  --ink-faint: rgba(23, 32, 26, 0.44);

  --green-900: #0A2E22;
  --green-800: #0D3A2B;
  --green-700: #124835;
  --green-line: rgba(255, 255, 255, 0.16);

  --gold: #C6A15B;
  --gold-light: #E4D3A6;
  --gold-deep: #9C7B3D;

  --line: rgba(23, 32, 26, 0.14);
  --line-soft: rgba(23, 32, 26, 0.08);

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --container: 1240px;
  --gutter: clamp(24px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0;
}
h1 { font-size: clamp(2.6rem, 1.6rem + 4vw, 4.4rem); }
h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); }
h3 { font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; letter-spacing: 0; }

p { margin: 0; }
.lede { font-size: clamp(1.05rem, 1rem + 0.3vw, 1.25rem); color: var(--ink-soft); font-weight: 300; line-height: 1.7; }

/* ---------- Eyebrow label ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 18px;
}
.on-dark .eyebrow,
.eyebrow--light { color: var(--gold-light); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 17px 36px;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 1px;
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
  white-space: nowrap;
}
.btn-solid {
  background: var(--green-900);
  color: var(--ivory);
  border-color: var(--green-900);
}
.btn-solid:hover { background: var(--gold); border-color: var(--gold); color: var(--green-900); }

.btn-outline {
  background: transparent;
  color: var(--ivory);
  border-color: rgba(247, 244, 236, 0.45);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.btn-outline-dark {
  background: transparent;
  color: var(--green-900);
  border-color: rgba(23, 32, 26, 0.28);
}
.btn-outline-dark:hover { border-color: var(--green-900); background: var(--green-900); color: var(--ivory); }

.btn-line {
  padding: 0;
  border: 0;
  gap: 8px;
  font-size: 0.76rem;
  color: var(--green-900);
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
  letter-spacing: 0.14em;
}
.btn-line svg { transition: transform 0.3s ease; }
.btn-line:hover svg { transform: translateX(4px); }
.btn-line--light { color: var(--ivory); }

.btn-row { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 26px 0;
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease, border-color .4s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(247, 244, 236, 0.96);
  backdrop-filter: blur(6px);
  padding: 16px 0;
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px rgba(10, 46, 34, 0.06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 38px; height: 38px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-size: 0.92rem;
  color: var(--gold);
  letter-spacing: 0.03em;
  flex-shrink: 0;
}
.brand-name {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--ivory);
  transition: color 0.4s ease;
}
.brand-name em { font-style: normal; color: var(--gold); font-weight: 500; }
.is-scrolled .brand-name { color: var(--green-900); }
.page-header ~ * .brand-name,
body.is-inner .brand-name { color: var(--green-900); }
body.is-inner .site-header:not(.is-scrolled) { background: rgba(247, 244, 236, 0.96); border-bottom-color: var(--line); }

/* Guarantee header legibility over the hero photo regardless of what's
   behind it at a given crop/width — a shadow works everywhere a gradient
   alone can't, since photo content shifts with viewport width. */
body:not(.is-inner) .site-header:not(.is-scrolled) .brand-name,
body:not(.is-inner) .site-header:not(.is-scrolled) .main-nav > a,
body:not(.is-inner) .site-header:not(.is-scrolled) .nav-dropdown-toggle,
body:not(.is-inner) .site-header:not(.is-scrolled) .btn-nav {
  text-shadow: 0 1px 10px rgba(4, 14, 10, 0.55), 0 1px 3px rgba(4, 14, 10, 0.5);
}
body:not(.is-inner) .site-header:not(.is-scrolled) .nav-dropdown-toggle svg {
  filter: drop-shadow(0 1px 3px rgba(4, 14, 10, 0.55));
}

.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav > a {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ivory);
  transition: color 0.3s ease, opacity 0.3s ease;
  opacity: 0.86;
}
.main-nav > a:hover { opacity: 1; color: var(--gold); }
.is-scrolled .main-nav > a,
body.is-inner .main-nav > a { color: var(--green-900); }
.is-scrolled .main-nav > a:hover,
body.is-inner .main-nav > a:hover { color: var(--gold-deep); }

.main-nav .btn-nav {
  border: 1px solid var(--gold);
  padding: 10px 22px;
  color: var(--gold) !important;
  opacity: 1;
}
.main-nav .btn-nav:hover { background: var(--gold); color: var(--green-900) !important; }

.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  background: none; border: 0; padding: 0;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ivory);
  opacity: 0.86;
  display: flex; align-items: center; gap: 6px;
}
.is-scrolled .nav-dropdown-toggle,
body.is-inner .nav-dropdown-toggle { color: var(--green-900); }
.nav-dropdown-toggle:hover { opacity: 1; }
.nav-dropdown-toggle svg { width: 9px; transition: transform .3s ease; }
.nav-dropdown.is-open .nav-dropdown-toggle svg { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 22px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 240px;
  background: var(--ivory);
  border-top: 2px solid var(--gold);
  box-shadow: 0 24px 48px rgba(10, 46, 34, 0.16);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.nav-dropdown-menu a {
  display: block;
  padding: 13px 24px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  white-space: nowrap;
}
.nav-dropdown-menu a:hover { color: var(--green-900); background: var(--ivory-dark); }

@media (min-width: 981px) {
  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown.is-open .nav-dropdown-menu {
    opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
  }
}

.nav-toggle {
  display: none;
  width: 34px; height: 24px;
  background: none; border: 0; padding: 0;
  flex-direction: column; justify-content: space-between;
}
.nav-toggle span {
  display: block; height: 1px; width: 100%;
  background: var(--ivory);
  transition: background 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}
.is-scrolled .nav-toggle span,
body.is-inner .nav-toggle span { background: var(--green-900); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(380px, 40%) 1fr;
  color: var(--ivory);
  background: var(--green-900);
  overflow: hidden;
}
.hero-text-panel {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  padding: 150px var(--gutter) 70px var(--gutter);
}
.hero-content { max-width: 440px; }
.hero-content h1 {
  color: var(--ivory);
  font-size: clamp(2.1rem, 1.3rem + 2.4vw, 3.2rem);
}
.hero-sub { margin-top: 22px; font-size: 1.05rem; color: rgba(247,244,236,0.82); line-height: 1.7; }
.hero-actions { margin-top: 40px; }
.hero-actions .btn-row { flex-direction: column; align-items: flex-start; gap: 16px; }
.hero-actions .btn { width: 100%; justify-content: center; }

/* Hero: single full-bleed architectural photograph */
.hero-image {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: var(--green-800);
}
.hero-image-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.06) brightness(0.97);
}
.hero-image-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,46,34,0.58) 0%, rgba(10,46,34,0.06) 24%, rgba(10,46,34,0.02) 58%, rgba(10,46,34,0.32) 100%);
  pointer-events: none;
}
.hero-image-frame {
  position: absolute;
  inset: 34px;
  border: 1px solid rgba(230, 211, 166, 0.38);
  pointer-events: none;
}
.hero-image-frame::before,
.hero-image-frame::after {
  content: "";
  position: absolute;
  width: 30px;
  height: 30px;
  border: 1px solid var(--gold-light);
}
.hero-image-frame::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.hero-image-frame::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.scroll-cue {
  position: absolute; z-index: 2; left: var(--gutter); bottom: 40px;
  display: flex; align-items: center; gap: 12px;
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(247,244,236,0.7);
}
.scroll-cue .line { width: 1px; height: 46px; background: rgba(247,244,236,0.4); position: relative; overflow: hidden; }
.scroll-cue .line::after {
  content: ""; position: absolute; left: 0; top: -100%; width: 100%; height: 100%;
  background: var(--gold);
  animation: scrollcue 2.2s ease-in-out infinite;
}
@keyframes scrollcue { 0% { top: -100%; } 60% { top: 100%; } 100% { top: 100%; } }

/* Page header (smaller hero for inner pages) */
.page-header {
  position: relative;
  padding: 190px 0 110px;
  color: var(--ivory);
  overflow: hidden;
}
.page-header .container { position: relative; z-index: 2; }
.page-header h1 { color: var(--ivory); }
.page-header .lede { color: rgba(247,244,236,0.8); margin-top: 20px; max-width: 620px; }

/* ---------- Duotone media treatment ---------- */
.media { position: relative; overflow: hidden; background: var(--green-900); }
.media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(35%) brightness(0.92) contrast(1.02);
}
.media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(155deg, rgba(10,46,34,0.62) 0%, rgba(10,46,34,0.28) 48%, rgba(198,161,91,0.14) 100%);
  mix-blend-mode: multiply;
}
.media::before {
  content: "";
  position: absolute; inset: 10px;
  border: 1px solid rgba(198,161,91,0.35);
  z-index: 3;
  pointer-events: none;
}
.media.no-frame::before { display: none; }
.page-header-media {
  position: absolute; inset: 0; z-index: 1;
}
.page-header-media::before { display: none; }
.page-header-media::after { background: linear-gradient(160deg, rgba(10,46,34,0.82) 0%, rgba(10,46,34,0.62) 60%, rgba(10,46,34,0.5) 100%); }

/* ---------- Media placeholder (line-art motif, standing in for photography) ---------- */
.media:has(.media-placeholder)::after { display: none; }
.media-placeholder {
  position: absolute; inset: 0;
  background: linear-gradient(155deg, var(--green-800) 0%, var(--green-900) 65%, #081F17 100%);
  display: flex; align-items: center; justify-content: center;
}
.media-placeholder svg { width: 34%; max-width: 220px; opacity: 0.55; }
.media-placeholder .ph-caption {
  position: absolute; left: 24px; bottom: 20px;
  font-family: var(--sans); font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(228, 211, 166, 0.5);
}

/* ---------- Sections & grids ---------- */
.section { padding: clamp(72px, 10vw, 140px) 0; }
.section-alt { background: var(--ivory-dark); }
.section-dark { background: var(--green-900); color: var(--ivory); }
.section-head { max-width: 640px; margin-bottom: 64px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head p { margin-top: 20px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; }

/* Intro split (eyebrow/heading left, copy right) */
.split-head { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--gutter); align-items: end; margin-bottom: 60px; }
.split-head .eyebrow { margin-bottom: 20px; }

/* ---------- Service cards ---------- */
.service-card {
  border-top: 1px solid var(--line);
  padding-top: 32px;
  display: flex; flex-direction: column; height: 100%;
}
.service-card .num { font-family: var(--serif); font-size: 0.95rem; color: var(--gold-deep); margin-bottom: 18px; display: block; }
.service-card h3 { margin-bottom: 14px; }
.service-card p { color: var(--ink-soft); font-size: 0.94rem; flex: 1; }
.service-card .btn-line { margin-top: 22px; align-self: flex-start; }

/* ---------- Pillar / feature blocks ---------- */
.pillar { padding: 6px 0; }
.pillar .num { font-family: var(--serif); font-size: 1.6rem; color: var(--gold); display: block; margin-bottom: 18px; }
.pillar h3 { margin-bottom: 12px; }
.pillar p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Portfolio cards ---------- */
.portfolio-card .media { aspect-ratio: 4 / 5; margin-bottom: 22px; }
.gallery-trigger { display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; }
.gallery-trigger:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
.portfolio-card .loc { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 8px; }
.portfolio-card h3 { margin-bottom: 10px; }
.portfolio-card p { color: var(--ink-soft); font-size: 0.9rem; }

/* ---------- Photo gallery ---------- */
.gallery-modal { position: fixed; inset: 0; z-index: 20; display: none; align-items: center; justify-content: center; padding: 50px 80px; background: rgba(8,31,23,0.94); }
.gallery-modal.is-open { display: flex; }
.gallery-viewer { display: flex; flex-direction: column; align-items: center; gap: 16px; max-width: min(900px, 82vw); max-height: 90vh; margin: 0; }
.gallery-viewer img { display: block; max-width: 100%; max-height: 78vh; object-fit: contain; }
.gallery-viewer figcaption { color: var(--ivory); font-size: 0.85rem; text-align: center; }
.gallery-close, .gallery-prev, .gallery-next { position: absolute; border: 1px solid rgba(228,211,166,0.5); background: transparent; color: var(--ivory); cursor: pointer; }
.gallery-close { top: 22px; right: 28px; width: 42px; height: 42px; font-size: 1.8rem; line-height: 1; }
.gallery-prev, .gallery-next { top: 50%; width: 48px; height: 48px; transform: translateY(-50%); font-size: 1.4rem; }
.gallery-prev { left: 24px; }
.gallery-next { right: 24px; }
.gallery-close:hover, .gallery-prev:hover, .gallery-next:hover { border-color: var(--gold); color: var(--gold); }
.gallery-close:focus-visible, .gallery-prev:focus-visible, .gallery-next:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Stats ---------- */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-inner { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: 52px var(--gutter); border-left: 1px solid var(--line); text-align: center; }
.stat:first-child { border-left: none; }
.stat .figure { font-family: var(--serif); font-size: clamp(2rem, 1.6rem + 1.4vw, 2.8rem); color: var(--green-900); display: block; }
.stat .label { margin-top: 10px; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); }

/* ---------- Quote ---------- */
.quote-section { text-align: center; }
.quote-mark { font-family: var(--serif); font-size: 4rem; color: var(--gold); line-height: 1; margin-bottom: 12px; }
.quote-text { font-family: var(--serif); font-weight: 400; font-style: italic; font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.3rem); max-width: 820px; margin: 0 auto; color: var(--ivory); line-height: 1.5; }
.quote-attr { margin-top: 28px; font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-light); }

/* ---------- CTA banner ---------- */
.cta-banner { text-align: center; }
.cta-banner .eyebrow { justify-content: center; }
.cta-banner .eyebrow::before { display: none; }
.cta-banner h2 { color: var(--ivory); max-width: 760px; margin: 0 auto; }
.cta-banner p.lede { color: rgba(247,244,236,0.78); max-width: 560px; margin: 20px auto 0; }
.cta-banner .btn-row { justify-content: center; margin-top: 38px; }

/* ---------- Process steps ---------- */
.process-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.process-step { position: relative; padding-top: 28px; border-top: 1px solid var(--line); }
.process-step .num { font-family: var(--serif); font-size: 1.05rem; color: var(--gold-deep); display: block; margin-bottom: 16px; }
.process-step h3 { font-size: 1.15rem; margin-bottom: 10px; }
.process-step p { font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- Feature list (services included) ---------- */
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 40px; }
.feature-item { display: flex; gap: 18px; align-items: flex-start; }
.feature-item .mark { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-top: 9px; flex-shrink: 0; }
.feature-item h4 { margin-bottom: 6px; }
.feature-item p { font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- Related services strip ---------- */
.related-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.related-card {
  border: 1px solid var(--line);
  padding: 34px 30px;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.related-card:hover { border-color: var(--gold); background: var(--ivory-dark); }
.related-card .eyebrow { margin-bottom: 14px; }
.related-card h3 { margin-bottom: 12px; font-size: 1.2rem; }
.related-card p { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 18px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 28px; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); }
.field input, .field select, .field textarea {
  border: 0; border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 10px 2px;
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.3s ease;
}
.field textarea { resize: vertical; min-height: 110px; font-family: inherit; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-bottom-color: var(--gold-deep);
}
.field select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6'><path d='M0 0l5 6 5-6z' fill='%239C7B3D'/></svg>"); background-repeat: no-repeat; background-position: right 4px center; }
.form-submit { margin-top: 8px; }
.form-note { font-size: 0.8rem; color: var(--ink-faint); margin-top: 16px; }

.form-success {
  display: block;
  border: 1px solid var(--gold);
  padding: 44px;
  text-align: center;
}
.form-success:empty { display: none; }
.form-success h3 { margin-bottom: 12px; }
.form-success p { color: var(--ink-soft); }
.form-success.is-visible { display: block; }
.contact-form.is-hidden { display: none; }

/* Contact detail card */
.contact-card { background: var(--green-900); color: var(--ivory); padding: 52px 44px; height: 100%; }
.contact-card .eyebrow { margin-bottom: 26px; }
.contact-row { padding: 18px 0; border-top: 1px solid var(--green-line); }
.contact-row:first-of-type { border-top: none; }
.contact-row .label { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 8px; }
.contact-row a, .contact-row p { font-size: 1.02rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: rgba(247,244,236,0.7); border-top: 3px solid var(--gold); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 0.8fr; gap: 40px; padding: 80px 0 60px; }
.footer-brand .brand-mark { border-color: var(--gold); color: var(--gold); }
.footer-brand .brand-name { color: var(--ivory); margin-top: 14px; display: block; font-size: 1.2rem; }
.footer-tag { margin-top: 18px; font-size: 0.88rem; line-height: 1.7; max-width: 260px; color: rgba(247,244,236,0.6); }
.footer-heading { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 20px; }
.footer-col a, .footer-col p { display: block; font-size: 0.92rem; margin-bottom: 12px; color: rgba(247,244,236,0.72); }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid var(--green-line); }
.footer-bottom-inner { display: flex; justify-content: space-between; padding: 22px 0; font-size: 0.76rem; color: rgba(247,244,236,0.5); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1180px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 980px) {
  .main-nav { position: fixed; top: 0; right: 0; height: 100vh; width: min(360px, 84vw);
    background: var(--ivory); box-shadow: -20px 0 60px rgba(10,46,34,0.18);
    flex-direction: column; align-items: flex-start; justify-content: flex-start;
    padding: 120px 40px 40px; gap: 26px;
    transform: translateX(100%); transition: transform 0.4s ease; z-index: 90;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav > a, .nav-dropdown-toggle { color: var(--green-900) !important; opacity: 1; font-size: 0.95rem; }
  .nav-dropdown { width: 100%; }
  .nav-dropdown-menu { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border-top: none; padding: 14px 0 0 0; min-width: 0; display: none; }
  .nav-dropdown.is-open .nav-dropdown-menu { display: block; }
  .nav-dropdown-menu a { padding: 10px 0; }
  .main-nav .btn-nav { border-color: var(--green-900); color: var(--green-900) !important; }
  .nav-toggle { display: flex; }

  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .split-head { grid-template-columns: 1fr; align-items: start; gap: 24px; }
  .process-list { grid-template-columns: 1fr 1fr; }
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: none; }
  .stat { border-top: 1px solid var(--line); }
  .stat:first-child, .stat:nth-child(2) { border-top: none; }
  .feature-list { grid-template-columns: 1fr; }
  .related-strip { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }

  .hero { grid-template-columns: 1fr; }
  .hero-text-panel { padding: 130px var(--gutter) 40px; }
  .hero-image { min-height: 56vh; }
  .hero-image-frame { inset: 18px; }
  .hero-image-frame::before, .hero-image-frame::after { width: 20px; height: 20px; }
  .scroll-cue { display: none; }
}

@media (max-width: 640px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .process-list { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: 1fr; }
  .stat { border-left: none !important; border-top: 1px solid var(--line); }
  .stat:first-child { border-top: none; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; padding: 60px 0 40px; }
  .footer-bottom-inner { flex-direction: column; gap: 8px; }
  .hero-image { min-height: 46vh; }
  .contact-card { padding: 40px 28px; }
}
