/* =============================================================
   Marigold Acreage Management — site styles
   Editorial layout: cream paper, hairline rules, serif headings.
   ============================================================= */

:root {
  /* Client asked for images to be "framed": softened corners plus a very
     subtle border, nothing heavier. One token so every image matches. */
  --img-radius: 14px;

  /* Two surfaces that alternate down the page. Kept very close in value —
     the client wants the tint light, so this reads as a change of paper
     rather than a block of colour. Cards sit on the opposite surface. */
  --white:      #ffffff;
  --tint:       #f5f6f4;

  --surface:    var(--white);   /* set per section */
  --raised:     var(--tint);    /* cards/panels inside that section */

  --paper:      #f5f6f4;
  --paper-card: #ffffff;
  --ink:        #24261e;
  --ink-soft:   #4f5147;
  --muted:      #7a7c6f;
  --rule:       #e2e4df;
  --rule-soft:  #ecedE8;
  --gold:       #a5842f;
  --gold-lift:  #c9a94e;
  --dark:       #2b2e24;

  --serif: Georgia, "Iowan Old Style", "Times New Roman", Times, serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Header height, so the hero can reserve space for the fixed bar instead of
     guessing. Update both together if the lockup size changes. */
  --header-h: 200px;

  --wrap:    1060px;
  --gutter:  clamp(20px, 5vw, 44px);
  --section: clamp(52px, 8vw, 92px);
}

*, *::before, *::after { box-sizing: border-box; }

/* Deliberately NOT `scroll-behavior: smooth` — that also animates the jump to
   #contact after a form redirect, which reads as "flash to top, then scroll
   back down". Anchor clicks are smoothed in site.js instead. */
html { -webkit-text-size-adjust: 100%; }

/* Keep anchor targets clear of the sticky header. */
section[id], [id] { scroll-margin-top: 88px; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--tint);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--dark);
  color: #fff;
  padding: 10px 16px;
  z-index: 20;
  font-size: 15px;
}
.skip-link:focus { left: 8px; top: 8px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ------------------------------------------------------------- header --- */

/* Sits over the hero image while at the top of the page, then turns into the
   solid paper bar once scrolled. */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: transparent;
  color: #f4f2ea;
  /* The bar carries its own scrim rather than relying on the hero gradient.
     The hero image is swappable from /admin.php, so nav legibility must not
     depend on which photo happens to be behind it. */
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background-color .25s ease, color .25s ease;
}
.site-header.is-stuck {
  border-bottom-color: var(--rule);
  background: color-mix(in srgb, var(--white) 94%, transparent);
  backdrop-filter: saturate(120%) blur(8px);
  color: var(--ink);
}

/* Painted by a pseudo-element that overshoots the bar's height, so the fade
   finishes below the header edge instead of leaving a seam across the hero. */
.site-header:not(.is-stuck):not(.nav-open)::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 190%;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(12, 14, 10, .82) 0%,
    rgba(12, 14, 10, .62) 35%,
    rgba(12, 14, 10, .24) 65%,
    rgba(12, 14, 10, 0) 100%);
}
.header-inner { position: relative; z-index: 1; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  /* Taller while the full lockup is showing, compact once it swaps. */
  min-height: var(--header-h);
  flex-wrap: wrap;
  transition: min-height .25s ease;
}
.site-header.is-stuck .header-inner { min-height: 78px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
/* Full lockup: default state, over the hero. */
.brand-lockup {
  width: auto;
  height: 168px;
  transition: height .25s ease;
}
/* Mark + live text: the scrolled state. */
.brand-mark { width: 52px; height: 52px; object-fit: contain; }

/* The lockup only survives on a dark bar. An open mobile menu turns the bar
   cream just like scrolling does, so both states swap to mark + live text. */
.site-header:not(.is-stuck):not(.nav-open) .brand-mark,
.site-header:not(.is-stuck):not(.nav-open) .brand-name { display: none; }
.site-header.is-stuck .brand-lockup,
.site-header.nav-open .brand-lockup { display: none; }
.brand-name {
  font-family: var(--serif);
  font-size: 23px;
  letter-spacing: .005em;
  /* No text-shadow: this name now only ever appears on the cream bar, where a
     shadow just muddies it. The dark states use the lockup instead. */
}

.site-nav {
  display: flex;
  gap: clamp(14px, 2.5vw, 30px);
  flex-wrap: wrap;
}
.site-nav a {
  font-size: 15px;
  color: currentColor;
  opacity: .88;
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.site-nav a:hover { opacity: 1; border-bottom-color: var(--gold-lift); }

/* Hidden on desktop; the mobile query below turns it on. */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-right: -9px;
  padding: 0;
  background: none;
  border: 1px solid transparent;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle { color: currentColor; }
.nav-toggle:hover { border-color: currentColor; }
.nav-toggle .icon { width: 21px; height: 21px; }
.nav-toggle-close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-close { display: block; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ----------------------------------------------------------- sections --- */

/* The alternating background now separates sections, so the old hairline
   between them is gone — two separators doing one job read as clutter. */
.section {
  padding: var(--section) 0;
  background: var(--surface);
}
.section--white { --surface: var(--white); --raised: var(--tint); }
.section--tint  { --surface: var(--tint);  --raised: var(--white); }

.eyebrow {
  margin: 0 0 22px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow--gold { color: var(--gold); }

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 3.1vw, 2rem);
  line-height: 1.3;
  letter-spacing: -.005em;
  margin: 0 0 22px;
  max-width: 22ch;
}
.section-title--sm {
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  max-width: 26ch;
}

.body-text {
  margin: 0;
  max-width: 68ch;
  color: var(--ink-soft);
  font-size: 16px;
}

/* --------------------------------------------------------------- hero --- */


/* Full-bleed hero. The header overlaps it, so the copy starts below the
   header's height and the overlay is heaviest on the left where the text is. */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(86vh, 760px);
  padding: calc(var(--header-h) + clamp(20px, 4vh, 56px)) 0 clamp(60px, 9vh, 100px);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  background: var(--dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  /* This banner is already colour-balanced; barely touch it. */
  filter: saturate(.86) sepia(.05) contrast(1.02) brightness(1.0);
}

/* Two layers: a left-weighted wash that guarantees contrast under the copy,
   and a flat scrim so the right-hand side never goes fully bright. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg,
      rgba(18, 20, 15, .88) 0%,
      rgba(18, 20, 15, .74) 32%,
      rgba(18, 20, 15, .48) 64%,   /* still dark across the full text column */
      rgba(18, 20, 15, .12) 94%),
    /* Heavier at the very top: the nav sits there and the banner's brightest
       glyphs are in that band. */
    linear-gradient(180deg,
      rgba(16, 18, 14, .66) 0%,
      rgba(16, 18, 14, .30) 30%,
      rgba(16, 18, 14, .12) 100%);
}

/* On a phone the copy spans the full width, so the desktop wash — which is
   weighted to the left where the text column sits — leaves bright patches
   under the right-hand half of each line. Swap it for an even vertical scrim. */
@media (max-width: 760px) {
  .hero::after {
    background: linear-gradient(180deg,
      rgba(16, 18, 14, .74) 0%,
      rgba(16, 18, 14, .72) 45%,
      rgba(16, 18, 14, .70) 100%);
  }
}


.hero-inner {
  position: relative;
  z-index: 1;
  color: #f4f2ea;
}

.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  /* Capped lower than the original draft: the client found it oversized on
     desktop. Mobile size is unchanged. */
  font-size: clamp(2rem, 3.9vw, 2.9rem);
  line-height: 1.2;
  letter-spacing: -.012em;
  margin: 0 0 24px;
  max-width: 19ch;
  color: #fbfaf5;
}

.lede {
  margin: 0 0 34px;
  max-width: 50ch;
  font-size: 15.5px;
  color: #ded9cc;
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
  padding: 12px 22px;
  text-decoration: none;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: #34372c; }
.btn-ghost { background: transparent; color: var(--ink); }

/* Buttons sitting on the hero image: light on dark, so they stay legible
   whatever photo ends up behind them. */
.hero .btn-solid {
  background: #f4f2ea;
  color: var(--ink);
  border-color: #f4f2ea;
}
.hero .btn-solid:hover { background: #fff; }
.btn-onimage {
  background: transparent;
  color: #f4f2ea;
  border-color: rgba(244, 242, 234, .55);
}
.btn-onimage:hover {
  background: rgba(244, 242, 234, .12);
  border-color: #f4f2ea;
}
.btn-ghost:hover { background: rgba(36, 38, 30, .06); }
.btn:active { transform: translateY(1px); }

/* ----------------------------------------------------------- services --- */

.card {
  background: var(--raised);
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--rule);
}

/* --- carousel ------------------------------------------------------------
   The track is a scroll-snap row, so it is fully usable with no JavaScript:
   scroll, swipe, or tab through the cards. site.js only adds the controls. */

.carousel { position: relative; }

.carousel-track {
  list-style: none;
  margin: 0;
  padding: 0 2px 2px;      /* room for focus rings */
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc(50% - 10px);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.carousel-track::-webkit-scrollbar { display: none; }

.carousel-slide { scroll-snap-align: start; }

.carousel-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 26px;
}

.carousel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--ink);
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease;
}
.carousel-btn:hover:not(:disabled) { border-color: var(--gold); background: var(--raised); }
.carousel-btn:disabled { opacity: .35; cursor: default; }
.carousel-btn .icon { width: 18px; height: 18px; }

.carousel-dots { display: flex; gap: 8px; }

.carousel-dot {
  width: 30px;
  height: 3px;
  padding: 0;
  border: 0;
  background: var(--rule);
  cursor: pointer;
  transition: background-color .2s ease;
}
.carousel-dot[aria-selected="true"] { background: var(--gold); }
/* Bigger hit area than the visible bar. */
.carousel-dot { position: relative; }
.carousel-dot::after {
  content: "";
  position: absolute;
  inset: -12px -4px;
}

@media (max-width: 700px) {
  .carousel-track { grid-auto-columns: calc(100% - 4px); gap: 16px; }
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.card-number {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--gold);
}

/* ---------------------------------------------------------------- icons --- */

.icon {
  width: 22px;
  height: 22px;
  display: block;
  flex: none;
}
.card-icon { width: 24px; height: 24px; color: var(--gold); }
.contact-icon { width: 17px; height: 17px; color: var(--gold-lift); }
.pair-icon { width: 26px; height: 26px; color: var(--gold); margin-bottom: 12px; }
.perf-icon { width: 19px; height: 19px; color: var(--gold); flex: none; }

/* -------------------------------------------------------- framed photos --- */
/* Same hairline frame + warm grade as the hero plate, so every photo on the
   page reads as one set regardless of where it came from. */

.framed {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: var(--img-radius);
  aspect-ratio: 16 / 10;
}
.framed--square { aspect-ratio: 1 / 1; }
/* The clients photo is a 4:5 portrait; shown at its own ratio rather than
   cropped into a strip. */
.framed--portrait { aspect-ratio: 4 / 5; max-width: 380px; margin-left: auto; }

/* The vendor-registration line closes the copy column. */
.note-text { margin-top: 22px; }
.framed { background: var(--raised); }
.framed img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.6) sepia(.2) contrast(1.02) brightness(1.04);
}
.framed::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(246, 243, 236, .1), rgba(43, 46, 36, .16));
}

/* ------------------------------------------------ past performance ------ */
/* Light intro, then a dark band of figures — follows the client's mockup. */

.section--flush { padding-bottom: 0; }

.highlights-head { text-align: center; }
.highlights-title {
  max-width: none;
  margin: 0 0 16px;
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
}
.highlights-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 16px;
}
.highlights-rule span {
  width: 46px;
  height: 1px;
  background: var(--gold);
}
.highlights-rule i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}
.highlights-intro {
  margin: 0 auto;
  max-width: 56ch;
  color: var(--ink-soft);
  font-size: 16px;
}

.highlights {
  margin-top: clamp(38px, 5vw, 56px);
  background: #23301f;
  color: #eceadf;
}

.highlights-grid {
  list-style: none;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-top: clamp(38px, 5vw, 58px);
  padding-bottom: clamp(38px, 5vw, 58px);
}

.highlight {
  text-align: center;
  padding: 0 clamp(14px, 2vw, 26px);
  border-left: 1px solid rgba(236, 234, 223, .16);
}
.highlight:first-child { border-left: 0; }

.highlight-icon {
  width: 34px;
  height: 34px;
  margin: 0 auto 14px;
  color: var(--gold-lift);
}

.highlight-figure {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  line-height: 1.1;
  margin: 0 0 6px;
  color: #fbfaf5;
  text-wrap: balance;
}
/* Keeps a worded figure on one line so all four columns stay aligned. */
.highlight-figure--word {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  padding-top: .35em;
}

.highlight-label {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-lift);
}
/* Short gold rule under the label, as in the mockup. */
.highlight-label::after {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  margin: 12px auto 0;
  background: rgba(201, 169, 78, .55);
}

.highlight-body {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: #c9c8bc;
}

.highlight-tags {
  list-style: none;
  margin: 18px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(236, 234, 223, .2);
  border-radius: 10px;
  font-size: 14px;
  color: #d8d6ca;
}
.highlight-tags li { display: inline; }
.highlight-tags li + li::before {
  content: " · ";
  color: var(--gold-lift);
}

@media (max-width: 900px) {
  .highlights-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 0; }
  .highlight:nth-child(odd) { border-left: 0; }
}
@media (max-width: 540px) {
  .highlights-grid { grid-template-columns: 1fr; gap: 38px; }
  .highlight { border-left: 0; }
}

/* ---------------------------------------------------------- image band --- */

.band {
  position: relative;
  aspect-ratio: 21 / 8;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: var(--img-radius);
  display: grid;
  place-items: center;
  /* Inset from the page edges so the rounded corners actually read. */
  width: calc(100% - var(--gutter) * 2);
  margin: 0 auto;
}

/* No image supplied: a plain dark strip. Still breaks up the run of text
   sections, without resorting to a filler photo. */
.band--plain {
  aspect-ratio: auto;
  min-height: 0;
  padding: clamp(34px, 6vw, 54px) 0;
  background: var(--dark);
}
.band--plain::after { display: none; }

.band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(.68) sepia(.14) contrast(1.02) brightness(1.04);
}

/* The wall behind the caption is a light stone colour, so a light overlay left
   the text at roughly 2:1. This darkens the whole band, with an extra band
   through the middle where the caption sits, to clear WCAG AA. */
.band::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 20%, rgba(30, 32, 25, .58) 50%, transparent 80%),
    linear-gradient(180deg, rgba(30, 32, 25, .42), rgba(30, 32, 25, .56));
}

.band-caption {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0 var(--gutter);
  text-align: center;
  font-size: clamp(13px, 1.4vw, 14px);
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #fbfaf5;
}

@media (max-width: 760px) {
  .band { aspect-ratio: 16 / 9; }
}

/* ------------------------------------------------- split-column blocks --- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}
.split--center { align-items: center; }

/* Flips the two columns visually without touching DOM order, so the text still
   comes first for screen readers and when the layout stacks on mobile. */
.split--reverse > .split-left  { order: 2; }
.split--reverse > .split-right { order: 1; }

.pair-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(22px, 3.5vw, 40px) clamp(20px, 3vw, 34px);
}
/* Four across, under the copy + image row. */
.pair-grid--row {
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 34px);
  margin-top: clamp(44px, 6vw, 70px);
}
.pair-grid--row > li {
  border-top: 1px solid var(--rule);
  padding-top: 18px;
}

.pair-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  margin: 0 0 4px;
}
.pair-body {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

/* --------------------------------------------------- past performance --- */

.perf-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 3.5vw, 38px) clamp(28px, 5vw, 56px);
}
.perf-list > li {
  border-top: 1px solid var(--rule);
  padding-top: 16px;
}
.perf-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 16px;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* --------------------------------------------------------- contracting --- */

.tag-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  max-width: 34ch;
}
.tag-list li {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--rule);
  background: var(--raised);
  padding: 6px 12px;
}

/* ------------------------------------------------------------ contact --- */

.contact-panel {
  background: var(--dark);
  color: #f1efe6;
  padding: clamp(28px, 4.5vw, 46px);
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: start;
}

.contact-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  line-height: 1.3;
  margin: 0 0 14px;
  max-width: 20ch;
}
.contact-body {
  margin: 0;
  font-size: 16px;
  color: #c8c6ba;
  max-width: 46ch;
}

.contact-panel-details .eyebrow { margin-bottom: 14px; color: var(--gold-lift); }
.contact-line {
  margin: 0 0 10px;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 11px;
}
.contact-line a {
  color: #f1efe6;
  text-decoration: none;
  border-bottom: 1px solid rgba(241, 239, 230, .3);
  transition: border-color .18s ease;
}
.contact-line a:hover { border-bottom-color: var(--gold-lift); }

/* --------------------------------------------------------------- form --- */

.form-panel {
  border: 1px solid var(--rule);
  border-top: 0;
  background: var(--raised);
  padding: clamp(26px, 4.5vw, 44px);
}

.form-heading {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 19px;
  margin: 0 0 22px;
}

.alert {
  margin: 0 0 22px;
  padding: 12px 16px;
  font-size: 15px;
  border-left: 3px solid;
}
.alert-ok  { background: #eef1e6; border-color: #6f8a3f; color: #3c4a22; }
.alert-bad { background: #f6ece8; border-color: #a8492c; color: #6e2d1a; }
.alert a { color: inherit; }

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
}

.field { margin: 0 0 18px; display: block; }

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}
.req { color: var(--gold); }

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--sans);
  /* 16px also stops iOS Safari zooming in when a field takes focus. */
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 0;
  padding: 11px 13px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field textarea { resize: vertical; min-height: 130px; line-height: 1.6; }

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%),
                    linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 38px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(165, 132, 47, .14);
}

.field [aria-invalid="true"] { border-color: #a8492c; }

.field-error {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  color: #a8492c;
}

/* Honeypot: off-screen but not display:none, which some bots detect. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 4px 0 0;
}
.form-note { font-size: 15px; color: var(--muted); }
.form-note a { color: var(--ink-soft); }

/* ------------------------------------------------------------- footer --- */

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 30px 0;
  background: var(--tint);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}
.footer-legal { margin: 0; font-size: 14px; color: var(--muted); }
.footer-codes { margin: 0; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.footer-code-label {
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
}
.footer-code-value { font-size: 14px; color: var(--muted); }

/* ------------------------------------------------------------ responsive --- */

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  /* Decorative only — dropped on narrow screens so the hero stays compact. */
  .hero-art { display: none; }
}

@media (max-width: 860px) {
  /* Stacked: text must lead, so the visual flip is dropped. */
  .split--reverse > .split-left,
  .split--reverse > .split-right { order: 0; }
  .framed--tall { max-width: none; }
  .split { grid-template-columns: 1fr; }
  .perf-list { grid-template-columns: 1fr; }
  .contact-panel { grid-template-columns: 1fr; }
}

/* Collapsed menu. Only applies when JS is running — without it the nav simply
   stays visible and wraps, which still works. */
@media (max-width: 760px) {
  :root { --header-h: 208px; }
  /* The stacked lockup needs room to breathe on a narrow screen: smaller,
     and with padding so it never sits flush against the top edge. */
  .header-inner {
    min-height: var(--header-h);
    padding-top: 18px;
    padding-bottom: 18px;
    flex-wrap: wrap;
  }
  .site-header.is-stuck .header-inner,
  .site-header.nav-open .header-inner {
    min-height: 64px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .brand-lockup { height: 142px; }
  .brand-mark { width: 46px; height: 46px; }
  .brand-name { font-size: 19px; }

  /* Open menu over the hero photo: force the solid bar. */
  .site-header.nav-open {
    background: var(--white);
    color: var(--ink);
    border-bottom-color: var(--rule);
  }

  .has-js .nav-toggle { display: inline-flex; }

  .has-js .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--rule);
    margin-top: 4px;
    padding-bottom: 6px;
  }
  .has-js .site-nav.is-open { display: flex; }

  .has-js .site-nav a {
    padding: 14px 2px;
    font-size: 16px;
    border-bottom: 1px solid var(--rule-soft);
  }
  .has-js .site-nav a:last-child { border-bottom: 0; }
  .has-js .site-nav a:hover { border-bottom-color: var(--rule-soft); color: var(--ink); }
}

@media (max-width: 860px) {
  .pair-grid--row { grid-template-columns: repeat(2, 1fr); }
  .framed--portrait { max-width: none; margin-left: 0; }
}

@media (max-width: 620px) {
  .pair-grid { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr; }
  .btn { flex: 1 1 auto; text-align: center; }
  .brand-name { font-size: 16px; }
}

@media print {
  .site-header, .site-nav, .form-panel, .actions { display: none; }
  body { background: #fff; }
  .section { border-color: #ccc; }
}
