/* ==========================================================================
   SVADITHA — Global stylesheet
   Contents: 1. Tokens  2. Base  3. Layout  4. Buttons & links  5. Header
             6. Footer  7. Hero, page hero, marquee  8. Sections & type
             9. Components  10. Forms  11. Motion  12. Responsive  13. Utilities
   ========================================================================== */

/* 1. Tokens --------------------------------------------------------------- */
:root {
  --emerald: #173F32;
  --ivory: #F8F4EA;
  --gold: #B08D57;
  --forest: #102E26;
  --charcoal: #30332F;
  --ivory-deep: #F1EBDC;            /* tint of ivory for alternating sections */
  --gold-text: #9A7842;             /* gold darkened slightly for small text on ivory */

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;

  --container: 1200px;
  --gutter: 24px;
  --section-y: clamp(72px, 9vw, 128px);
  --header-h: 80px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);

  /* Context colours: redefined inside dark sections further down */
  --text: rgba(48, 51, 47, 0.84);
  --heading: var(--emerald);
  --accent: var(--gold-text);
  --rule: rgba(23, 63, 50, 0.14);
  --line: rgba(176, 141, 87, 0.45);
  --outline: rgba(23, 63, 50, 0.4);
  --hover-bg: var(--emerald);
  --hover-fg: var(--ivory);
}

/* Dark contexts */
.hero, .page-hero, .banner, .section--dark, .section--emerald,
.cta-band, .site-footer, .card--filled .card-body {
  --text: rgba(248, 244, 234, 0.8);
  --heading: var(--ivory);
  --accent: var(--gold);
  --rule: rgba(248, 244, 234, 0.14);
  --outline: rgba(248, 244, 234, 0.45);
  --hover-bg: var(--ivory);
  --hover-fg: var(--forest);
  color: var(--text);
}

/* 2. Base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--heading); text-decoration-color: var(--line); text-underline-offset: 4px; transition: color 0.3s var(--ease); }
a:hover { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  color: var(--heading);
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.12;
}
h1 { font-size: clamp(2.5rem, 5.6vw, 5rem); line-height: 1.06; }
h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); }
h3 { font-size: 1.5rem; line-height: 1.25; }
h4 { font-size: 1.2rem; }
/* The gold italic accent used inside headings */
h1 em, h2 em { color: var(--gold); font-style: italic; }
p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 1.15em; padding-left: 1.2em; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--ivory); color: var(--emerald); }
.skip-link:focus { top: 12px; }

/* 3. Layout --------------------------------------------------------------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 848px; }
.center { text-align: center; }
.center.narrow, .center .narrow { margin-left: auto; margin-right: auto; }

.grid { display: grid; gap: 48px 32px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* 4. Buttons & links ------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 17px 32px;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--forest);
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.btn:hover { background: var(--hover-bg); border-color: var(--hover-bg); color: var(--hover-fg); }
.btn--outline, .btn--ghost { background: transparent; border-color: var(--outline); color: var(--heading); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }
.center .btn-row, .cta-band .btn-row { justify-content: center; }

.text-link {
  display: inline-flex; align-items: center; gap: 14px;
  color: var(--heading);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-decoration: none;
  text-transform: uppercase;
}
.text-link::after {
  content: ""; flex: none; width: 16px; height: 10px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath d='M0 5h14M10 1l4 4-4 4' fill='none' stroke='black' stroke-width='1.2'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath d='M0 5h14M10 1l4 4-4 4' fill='none' stroke='black' stroke-width='1.2'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.35s var(--ease);
}
.text-link:hover::after { transform: translateX(5px); }

/* 5. Header --------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248, 244, 234, 0.94);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1400px; min-height: var(--header-h); }
.logo {
  color: var(--emerald);
  font-family: var(--serif);
  font-size: 1.3rem;
  letter-spacing: 0.34em;
  text-decoration: none;
  text-transform: uppercase;
}
.logo:hover { color: var(--emerald); }

.primary-nav { display: flex; align-items: center; gap: 36px; }
.primary-nav ul { display: flex; align-items: center; gap: 30px; margin: 0; padding: 0; list-style: none; }
.primary-nav li { display: flex; align-items: center; }
.primary-nav a:not(.btn), .sub-toggle {
  position: relative;
  display: inline-block;
  margin: 0;
  padding: 8px 0;
  border: 0;
  background: none;
  color: rgba(48, 51, 47, 0.86);
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  line-height: 1.4;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.3s var(--ease);
}
.primary-nav a:not(.btn):hover, .sub-toggle:hover { color: var(--emerald); }
.primary-nav a:not(.btn)::after, .sub-toggle::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
}
.primary-nav a:not(.btn):hover::after, .sub-toggle:hover::after,
.primary-nav a[aria-current="page"]::after, .has-sub.is-current > .sub-toggle::after { transform: scaleX(1); }
.primary-nav a[aria-current="page"], .has-sub.is-current > .sub-toggle { color: var(--emerald); }

.has-sub { position: relative; }
.sub-toggle { padding-right: 16px !important; }
.sub-toggle::before {
  content: ""; position: absolute; right: 3px; top: 50%; width: 5px; height: 5px; margin-top: -5px;
  border-right: 1px solid var(--gold); border-bottom: 1px solid var(--gold); transform: rotate(45deg);
}
.sub-toggle::after { right: 16px !important; }
.sub-menu {
  position: absolute; top: 100%; left: -24px;
  display: block !important;
  min-width: 210px; padding: 14px 24px !important;
  background: var(--ivory); border: 1px solid var(--rule);
  box-shadow: 0 18px 40px rgba(16, 46, 38, 0.08);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}
.sub-menu li { padding: 4px 0; }
.has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu, .has-sub.is-open .sub-menu { opacity: 1; visibility: visible; }

.header-cta { padding: 12px 24px; background: transparent; color: var(--gold-text); white-space: nowrap; }
.header-cta:hover { background: var(--gold); border-color: var(--gold); color: var(--forest); }

.nav-toggle { display: none; width: 44px; height: 44px; padding: 10px; border: 0; background: none; cursor: pointer; }
.nav-toggle span { display: block; height: 1px; margin: 7px 0; background: var(--emerald); transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* 6. Footer --------------------------------------------------------------- */
.site-footer { background: var(--forest); border-top: 1px solid var(--rule); font-size: 0.95rem; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer h2 {
  margin-bottom: 22px;
  color: var(--gold);
  font-family: var(--sans);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
.footer-cols { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.1fr; gap: 48px; padding: 84px 0 64px; }
.footer-cols ul { margin: 0; padding: 0; list-style: none; }
.footer-cols li { margin-bottom: 12px; }
.footer-brand .logo { display: inline-block; margin-bottom: 20px; color: var(--ivory); font-size: 1.45rem; }
.footer-brand p { max-width: 320px; }
.social { display: flex; gap: 18px; margin-top: 26px !important; }
.social li { margin: 0; }
.social a { display: flex; color: rgba(248, 244, 234, 0.62); }
.social svg { width: 20px; height: 20px; }
.footer-newsletter {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  padding: 60px 0; border-top: 1px solid var(--rule);
}
.site-footer .footer-newsletter h2 { margin-bottom: 10px; color: var(--ivory); font-family: var(--serif); font-size: 1.6rem; font-weight: 400; letter-spacing: 0; text-transform: none; }
.footer-newsletter p { max-width: 460px; }
.footer-legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding: 30px 0 40px; border-top: 1px solid var(--rule);
  color: rgba(248, 244, 234, 0.5);
  font-size: 0.6875rem; letter-spacing: 0.24em; text-transform: uppercase;
}
.footer-legal a { color: rgba(248, 244, 234, 0.5); }
.footer-legal ul { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 0; padding: 0; list-style: none; }
.footer-legal p { margin: 0; }

/* 7. Hero, page hero, marquee --------------------------------------------- */
.hero, .page-hero { position: relative; display: flex; align-items: flex-end; background: var(--forest); overflow: hidden; }
.hero { min-height: min(calc(100vh - var(--header-h)), 900px); padding: 120px 0 96px; }
.page-hero { min-height: clamp(340px, 48vh, 500px); padding: 96px 0 68px; }
.hero-media, .page-hero-media, .banner-media, .cta-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after, .page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16, 46, 38, 0.6) 0%, rgba(16, 46, 38, 0.7) 45%, rgba(16, 46, 38, 0.94) 100%);
}
.hero .container, .page-hero .container { position: relative; z-index: 1; }
.hero-content { max-width: 880px; }
.hero h1 { margin-bottom: 32px; }
.hero-content > p:not(.eyebrow) { max-width: 670px; font-size: 1.0625rem; }
.page-hero h1 { max-width: 980px; margin: 0; font-size: clamp(2.3rem, 4.8vw, 4.2rem); }

.scroll-cue {
  position: absolute; right: 32px; bottom: 28px; z-index: 1;
  display: flex; align-items: center; gap: 14px; margin: 0;
  color: rgba(248, 244, 234, 0.6); font-size: 0.625rem; letter-spacing: 0.3em; text-transform: uppercase;
}
.scroll-cue::after { content: ""; width: 1px; height: 40px; background: rgba(248, 244, 234, 0.45); }

/* Slow strip of house values under the hero */
.marquee { overflow: hidden; padding: 26px 0; border-bottom: 1px solid var(--rule); background: var(--ivory); }
.marquee-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee-track span {
  display: inline-flex; align-items: center; white-space: nowrap;
  color: rgba(23, 63, 50, 0.72);
  font-family: var(--serif); font-size: clamp(1.35rem, 2.3vw, 2rem); font-style: italic;
}
.marquee-track span::after { content: ""; width: 7px; height: 7px; margin: 0 44px; background: var(--gold); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* 8. Sections & type ------------------------------------------------------ */
.section { padding: var(--section-y) 0; }
.section--tint { background: var(--ivory-deep); }
.section--dark { position: relative; background: var(--forest); overflow: hidden; }
.section--emerald { background: var(--emerald); }
/* Faint brand initial behind dark sections */
.section--dark:not(.pair-item)::after {
  content: "S"; position: absolute; right: -0.08em; top: 50%; transform: translateY(-50%);
  color: rgba(248, 244, 234, 0.035);
  font-family: var(--serif); font-size: clamp(16rem, 36vw, 32rem); line-height: 1;
  pointer-events: none;
}
.section--dark > .container { position: relative; z-index: 1; }

/* Small gold label above headings: line, number, name */
.eyebrow {
  display: flex; align-items: center; gap: 16px;
  margin: 0 0 22px;
  color: var(--accent);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  line-height: 1.5;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; flex: none; width: 40px; height: 1px; background: var(--gold); opacity: 0.75; }
.center > .eyebrow, .center .section-head .eyebrow, .section-head.center .eyebrow { justify-content: center; }
.eyebrow-num { flex: none; white-space: nowrap; }
.eyebrow-num--sep::after { content: ""; display: inline-block; width: 14px; height: 1px; margin-left: 16px; background: currentColor; opacity: 0.75; vertical-align: middle; }

.section-head { max-width: 780px; margin-bottom: 64px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head h2 { margin-bottom: 0.45em; }
.lead { color: var(--heading); font-size: 1.15rem; }

/* Stacked serif lines used for emphasis */
.statement {
  margin: 1.4em 0;
  color: var(--heading);
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  font-style: italic;
  line-height: 1.45;
}
.statement--xl, .banner .statement { font-size: clamp(1.7rem, 3.4vw, 2.9rem); line-height: 1.28; }
.kicker { margin-bottom: 36px; color: rgba(248, 244, 234, 0.62); font-family: var(--sans); font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.3em; line-height: 1.6; text-transform: uppercase; }
.rule { width: 64px; height: 1px; margin: 44px auto; border: 0; background: var(--gold); opacity: 0.8; }
.quote { margin: 0 0 44px; color: var(--heading); font-family: var(--serif); font-size: clamp(1.45rem, 2.6vw, 2.05rem); font-style: italic; line-height: 1.32; }

/* Statement over a full-width image */
.banner { position: relative; padding: clamp(88px, 11vw, 152px) 0; background: var(--forest); overflow: hidden; }
.banner::after { content: ""; position: absolute; inset: 0; background: rgba(16, 46, 38, 0.82); }
.banner .container { position: relative; z-index: 1; }

/* 9. Components ----------------------------------------------------------- */
/* Image alongside text, with the offset gold frame */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 104px); align-items: center; }
.split-media { position: relative; }
.split-media::before { content: ""; position: absolute; inset: -16px 16px 16px -16px; border: 1px solid var(--line); pointer-events: none; }
.split-media img { position: relative; width: 100%; aspect-ratio: 5 / 6; max-height: 600px; object-fit: cover; }
.split-media--wide img { aspect-ratio: 4 / 3; }
.split--reverse .split-media { order: 2; }
.split--reverse .split-media::before { inset: -16px -16px 16px 16px; }

/* Heading on the left, copy on the right */
.cols { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.cols-head h2 { margin-bottom: 0; }
.cols-head .statement { margin: 1em 0 0; }
.cols-head .lead { font-family: var(--serif); font-size: clamp(1.45rem, 2.3vw, 1.95rem); line-height: 1.32; }
.cols-head .eyebrow + h2, .cols-head .eyebrow { margin-top: 0; }
.cols-body { padding-top: 46px; }
.cols-head .lead + * , .cols-head:has(> .lead) + .cols-body { padding-top: 6px; }
.cols-body > .statement:first-child, .cols-body > .ticks:first-child { margin-top: 0; }

/* Two sections side by side */
.pair { display: grid; grid-template-columns: 1fr 1fr; }
.pair-item { padding: var(--section-y) clamp(24px, 6vw, 88px); }
.pair-inner { max-width: 540px; }
.pair-item:first-child .pair-inner { margin-left: auto; }

/* Short principle lines */
.notes { gap: 16px 40px; margin: 40px 0; text-align: left; }
.note { margin: 0; padding: 6px 0 6px 22px; border-left: 1px solid var(--gold); }

/* Cards: image, title, copy, link, closing hairline */
.card { display: flex; flex-direction: column; }
.card-media { overflow: hidden; }
.card-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { display: flex; flex: 1; flex-direction: column; padding: 30px 0 30px; border-bottom: 1px solid var(--rule); }
.card h3 { margin-bottom: 14px; }
.card-body p { font-size: 0.92rem; }
.card-body .text-link, .card-body .btn { align-self: flex-start; margin-top: auto; }
.card-body p:has(+ .text-link), .card-body p:has(+ .btn) { margin-bottom: 28px; }
.grid-2 > .card .card-media img { aspect-ratio: 16 / 9; }
/* Collection cards: one filled, one outlined */
.card--filled .card-body { padding: 46px 48px 44px; border: 0; background: var(--emerald); }
.card--outlined .card-body { padding: 46px 48px 44px; border: 1px solid var(--line); border-top: 0; }
.card-tags { display: flex; flex-wrap: wrap; margin: 0 0 16px; padding: 0; list-style: none; color: var(--accent); font-size: 0.625rem; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; }
.card-tags li + li::before { content: ""; display: inline-block; width: 3px; height: 3px; margin: 0 12px; border-radius: 50%; background: currentColor; vertical-align: middle; }
.card-label { margin: 6px 0 8px; color: var(--accent); font-size: 0.625rem !important; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; }
.card-list { margin: 0; padding: 0; list-style: none; font-size: 0.92rem; }
.card-list li { padding: 9px 0; border-top: 1px solid var(--rule); }

/* Value cells in a ruled grid */
.grid--ruled { gap: 0; overflow: hidden; }
.grid--ruled > .value { margin: -1px 0 0 -1px; padding: 42px 36px 44px; border-left: 1px solid var(--rule); border-top: 1px solid var(--rule); }
.value .icon { width: 26px; height: 26px; margin-bottom: 26px; color: var(--gold); }
.value h3 { margin-bottom: 12px; font-size: 1.3rem; }
.value p { font-size: 0.9rem; }
.value::after { content: ""; display: block; width: 32px; height: 1px; margin-top: 28px; background: var(--gold); opacity: 0.65; }
.value .num, .chapter-num { display: block; color: transparent; font-family: var(--serif); line-height: 1; -webkit-text-stroke: 1px rgba(176, 141, 87, 0.8); }
.value .num { margin-bottom: 22px; font-size: 2.7rem; }

/* Numbered chapters */
.chapters { max-width: 1080px; margin: 0 auto; }
.chapter { display: grid; grid-template-columns: 200px 1fr; padding: 60px 0; border-top: 1px solid var(--rule); }
.chapter:last-child { padding-bottom: 0; }
.chapter-num { font-size: clamp(3.2rem, 6vw, 5rem); }
.chapter-body { max-width: 690px; }
.chapter h3 { margin-bottom: 16px; font-size: clamp(1.5rem, 2.4vw, 1.9rem); }

/* Lists with gold diamonds */
.ticks { margin: 0; padding: 0; list-style: none; }
.ticks li { position: relative; margin-bottom: 18px; padding-left: 28px; }
.ticks li:last-child { margin-bottom: 0; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.72em; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }
.ticks--cols { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 48px; }

/* Process timeline */
.timeline { max-width: 900px; margin: 0 auto; padding: 0; list-style: none; counter-reset: step; }
.timeline li { display: grid; grid-template-columns: 150px 1fr; padding: 34px 0; border-top: 1px solid var(--rule); counter-increment: step; }
.timeline li::before {
  content: counter(step, decimal-leading-zero); grid-column: 1; grid-row: 1 / span 2;
  color: transparent; font-family: var(--serif); font-size: 3rem; line-height: 1; -webkit-text-stroke: 1px rgba(176, 141, 87, 0.8);
}
.timeline li > * { grid-column: 2; }
.timeline h3 { margin-bottom: 8px; }

/* Accordion (FAQ) */
.faq-group { margin-bottom: 72px; }
.faq-group:last-child { margin-bottom: 0; }
.faq-group > h2 { margin-bottom: 20px; font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.accordion details { border-top: 1px solid var(--rule); }
.accordion details:last-child { border-bottom: 1px solid var(--rule); }
.accordion summary { position: relative; display: block; padding: 24px 48px 24px 0; color: var(--emerald); font-family: var(--serif); font-size: 1.25rem; line-height: 1.35; cursor: pointer; list-style: none; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::before, .accordion summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 15px; height: 1px; background: var(--gold); transition: transform 0.3s var(--ease); }
.accordion summary::after { transform: rotate(90deg); }
.accordion details[open] summary::after { transform: rotate(0deg); }
.accordion summary h3 { display: inline; margin: 0; font: inherit; color: inherit; }
.accordion .answer { max-width: 720px; padding: 0 0 28px; }

/* Closing call-to-action band */
.cta-band { position: relative; padding: clamp(96px, 12vw, 168px) 0; background: var(--forest); text-align: center; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: rgba(16, 46, 38, 0.86); }
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(2.2rem, 5vw, 4rem); }
.cta-band p { max-width: 600px; margin-left: auto; margin-right: auto; font-size: 1.0625rem; }

/* Contact page */
.contact-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact-block { padding: 32px 0; border-top: 1px solid var(--rule); }
.contact-block:first-child { padding-top: 0; border-top: 0; }
.contact-block h2 { margin-bottom: 10px; font-size: 1.6rem; }
.detail { display: grid; grid-template-columns: 90px 1fr; gap: 10px 12px; margin: 18px 0 0; font-size: 0.98rem; }
.detail dt { padding-top: 5px; color: var(--accent); font-size: 0.625rem; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; }
.detail dd { margin: 0; }
.detail--wide { grid-template-columns: 190px 1fr; }
/* Marks content the client still has to supply */
.placeholder { font-style: italic; opacity: 0.7; }

/* 10. Forms --------------------------------------------------------------- */
.form { display: grid; gap: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field label { display: block; margin-bottom: 9px; color: var(--accent); font-size: 0.625rem; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px;
  border: 1px solid var(--rule); border-radius: 0; background: var(--ivory);
  color: var(--charcoal); font-family: var(--sans); font-size: 1rem;
  transition: border-color 0.3s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); outline: none; }
.field textarea { min-height: 160px; resize: vertical; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #8C3B2E; }
.field-error { display: block; min-height: 1.2em; margin-top: 6px; color: #8C3B2E; font-size: 0.85rem; }
.form-status { margin: 0; font-size: 0.95rem; }
.form-card { padding: clamp(28px, 4vw, 52px); background: var(--ivory-deep); }
.form-card h2 { font-size: 1.9rem; margin-bottom: 28px; }

.newsletter-form { display: flex; }
.newsletter-form input {
  flex: 1; min-width: 0; padding: 16px 20px;
  border: 1px solid var(--outline); border-right: 0; border-radius: 0; background: transparent;
  color: var(--ivory); font-family: var(--sans); font-size: 0.95rem;
}
.newsletter-form input::placeholder { color: rgba(248, 244, 234, 0.5); }
.newsletter-form input:focus { border-color: var(--gold); outline: none; }
.newsletter-wrap .form-status { min-height: 1.4em; margin-top: 12px; color: var(--ivory); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 11. Motion — subtle only ------------------------------------------------ */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .card-media img { transition: none; }
  .marquee-track { animation: none; }
}

/* 12. Responsive ---------------------------------------------------------- */
@media (max-width: 1439px) {
  .primary-nav { gap: 26px; }
  .primary-nav ul { gap: 22px; }
}

@media (max-width: 1239px) {
  .nav-toggle { display: block; }
  .primary-nav {
    /* absolute, not fixed: the header's backdrop blur would otherwise trap a fixed panel inside it */
    position: absolute; top: 100%; left: 0; right: 0;
    height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
    flex-direction: column; align-items: stretch; gap: 32px;
    padding: 24px var(--gutter) 40px; overflow-y: auto;
    background: var(--ivory);
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s var(--ease), visibility 0.3s;
  }
  .nav-open .primary-nav { opacity: 1; visibility: visible; }
  .nav-open { overflow: hidden; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav li { display: block; }
  .primary-nav > ul > li { border-bottom: 1px solid var(--rule); }
  .primary-nav a:not(.btn), .sub-toggle { display: block; width: 100%; padding: 18px 0; font-size: 0.78rem; text-align: left; }
  .primary-nav a:not(.btn)::after, .sub-toggle::after { display: none; }
  .primary-nav a[aria-current="page"] { color: var(--gold-text); }
  .sub-toggle::before { right: 6px; }
  .sub-menu { position: static; padding: 0 0 10px 18px !important; background: none; border: 0; box-shadow: none; opacity: 1; visibility: visible; }
  .sub-menu li { padding: 0; }
  .sub-menu a:not(.btn) { padding: 12px 0; }
  .header-cta { align-self: flex-start; }
}

@media (max-width: 1023px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: 1fr 1fr; padding: 64px 0 48px; }
  .footer-newsletter { grid-template-columns: 1fr; gap: 26px; }
  .contact-layout { grid-template-columns: 1fr; }
  .cols, .pair { grid-template-columns: 1fr; }
  .cols { gap: 0; }
  .cols-body { padding-top: 28px; }
  .pair-inner { max-width: none; }
  .pair-item { padding-left: var(--gutter); padding-right: var(--gutter); }
  .chapter { grid-template-columns: 130px 1fr; padding: 48px 0; }
}

@media (max-width: 767px) {
  :root { --header-h: 68px; --gutter: 22px; }
  .logo { font-size: 1.1rem; letter-spacing: 0.3em; }
  .grid-2, .grid-3, .grid-4, .split, .form-row, .ticks--cols { grid-template-columns: 1fr; }
  .split--reverse .split-media { order: 0; }
  .split-media::before, .split--reverse .split-media::before { inset: -10px 10px 10px -10px; }
  .split-media img { aspect-ratio: 4 / 3; }
  .hero { min-height: 0; padding: 88px 0 72px; }
  .page-hero { min-height: 300px; padding: 72px 0 48px; }
  .scroll-cue { display: none; }
  .section-head { margin-bottom: 44px; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .card--filled .card-body, .card--outlined .card-body { padding: 34px 28px; }
  .grid--ruled > .value { padding: 34px 26px 36px; }
  .chapter, .timeline li { grid-template-columns: 1fr; }
  .chapter-num { margin-bottom: 20px; }
  .timeline li::before { grid-row: auto; margin-bottom: 14px; font-size: 2.4rem; }
  .timeline li > * { grid-column: 1; }
  .footer-cols { grid-template-columns: 1fr; gap: 40px; }
  .footer-legal { flex-direction: column; }
  .detail, .detail--wide { grid-template-columns: 1fr; gap: 2px; }
  .detail dd { margin-bottom: 12px; }
  .section--dark:not(.pair-item)::after { font-size: 14rem; }
}

@media (max-width: 460px) {
  .newsletter-form { flex-direction: column; gap: 12px; }
  .newsletter-form input { border-right: 1px solid var(--outline); }
}

/* 13. Utilities ----------------------------------------------------------- */
.section--flush-top { padding-top: 0; }
.mt-sm { margin-top: 20px; }
.mt-lg { margin-top: 48px; }
