/* =========================================================================
   Mayfair — land origination
   Visual system ported from mayfair-architecture.html
   Navy brand · single gold accent · cream paper · Georgia/Calibri register
   ========================================================================= */

:root {
  --navy:      #16243B;
  --navy-2:    #1E3050;
  --navy-3:    #27406B;
  --gold:      #C2A14C;
  --gold-soft: #D8BE78;
  --cream:     #F6F1E7;
  --paper:     #FBF8F1;
  --ink:       #1A1A1A;
  --muted:     #6A6557;
  --line:      #E2D9C5;
  --flag:      #B45B3E;

  --serif: Georgia, "Times New Roman", serif;
  --sans:  Calibri, "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --shell: 1180px;
  --gutter: clamp(20px, 5vw, 40px);
  --section-y: clamp(56px, 9vw, 104px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }

::selection { background: var(--gold); color: var(--navy); }

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

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--navy); color: var(--cream);
  padding: 0.75rem 1.25rem;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700;
}
.skip-link:focus { left: 0; }

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

/* ---- shared atoms ---- */
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
}
.eyebrow.dim { color: var(--muted); }

.crest-rule { width: 54px; height: 2px; background: var(--gold); }

.section-h {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--navy);
  line-height: 1.08;
  letter-spacing: 0.005em;
  font-size: clamp(26px, 3.8vw, 38px);
}

.sec-lead {
  margin-top: 14px;
  max-width: 62ch;
  font-size: 15.5px;
  color: var(--muted);
  line-height: 1.55;
}

.section { padding-block: var(--section-y); }
.section + .section { border-top: 1px solid var(--line); }

/* ---- section head: circle number · gold eyebrow · hairline rule ---- */
.section-head { margin-bottom: clamp(26px, 4vw, 44px); }
.sec-topline {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 18px;
}
.sec-num {
  font-family: var(--serif);
  font-size: 15px; color: var(--gold);
  border: 1px solid var(--gold); border-radius: 50%;
  width: 38px; height: 38px; min-width: 38px;
  display: flex; align-items: center; justify-content: center;
}
.flex-rule { flex: 1; height: 1px; background: var(--line); min-width: 24px; }

/* =========================================================================
   Header / nav
   ========================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: saturate(120%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 4.5rem;
}
.wordmark { display: inline-flex; align-items: center; }
.wordmark-text {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.35rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
  padding-left: 0.16em;
}

.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.1rem); }
.site-nav a {
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  position: relative;
  padding-block: 0.4rem;
  transition: color 0.25s var(--ease);
}
.site-nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: 0.15rem;
  width: 100%; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.site-nav a:not(.nav-cta):hover { color: var(--navy); }
.site-nav a:not(.nav-cta):hover::after { transform: scaleX(1); }

.nav-cta {
  border: 1px solid var(--navy);
  border-radius: 2px;
  padding: 0.55rem 1.1rem !important;
  color: var(--navy) !important;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.nav-cta:hover { background: var(--navy); color: var(--cream) !important; }

.nav-toggle { display: none; }

.mobile-nav {
  display: flex; flex-direction: column;
  padding: 0.5rem var(--gutter) 1.5rem;
  border-top: 1px solid var(--line);
  background: var(--cream);
}
.mobile-nav a {
  padding: 0.9rem 0;
  font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600;
  color: var(--navy);
  border-bottom: 1px solid var(--line);
}
.mobile-nav a:last-child { border-bottom: none; }

/* =========================================================================
   Buttons
   ========================================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--navy); color: var(--cream);
  font-family: var(--sans); font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.95rem 1.9rem;
  border: 1px solid var(--navy);
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.28s var(--ease), border-color 0.28s var(--ease), transform 0.28s var(--ease);
}
.btn:hover { background: var(--navy-3); border-color: var(--navy-3); }
.btn:active { transform: translateY(1px); }

.btn-text {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--navy);
  padding-bottom: 3px;
  border-bottom: 1px solid var(--gold);
  transition: gap 0.3s var(--ease), color 0.3s var(--ease);
}
.btn-text span { color: var(--gold); transition: transform 0.3s var(--ease); }
.btn-text:hover { color: var(--navy-3); }
.btn-text:hover span { transform: translateX(3px); }

/* =========================================================================
   Cards (ported from architecture sheet)
   ========================================================================= */
.grid { display: grid; gap: 16px; }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 22px 22px 20px;
  display: flex; flex-direction: column;
  position: relative;
}
.card .kicker {
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin-bottom: 8px;
}
.card h3 {
  font-family: var(--serif); font-weight: 400; color: var(--navy);
  font-size: 19px; line-height: 1.15; margin: 0 0 7px;
}
.card p { margin: 0; font-size: 13.5px; color: #3c3a33; line-height: 1.5; }

.card.dark { background: var(--navy); border-color: var(--navy); }
.card.dark h3 { color: #fff; }
.card.dark p { color: #C9D2E0; }
.card.dark .kicker { color: var(--gold-soft); }

.card.lead { background: var(--navy-3); border-color: var(--navy-3); }
.card.lead h3 { color: #fff; }
.card.lead p { color: #DCE3EF; }
.card.lead .kicker { color: var(--gold-soft); }

.band-label {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); font-weight: 700;
  border-left: 3px solid var(--gold); padding-left: 10px;
  margin-bottom: 16px;
}

/* =========================================================================
   Hero / masthead
   ========================================================================= */
.hero {
  text-align: center;
  padding-top: clamp(48px, 9vw, 96px);
  padding-bottom: clamp(40px, 7vw, 80px);
}
.hero .crest-rule { margin: 0 auto clamp(20px, 3vw, 28px); }
.hero .eyebrow { display: block; margin-bottom: clamp(20px, 3vw, 30px); }
.hero-h {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--navy);
  font-size: clamp(38px, 6.6vw, 82px);
  line-height: 1.04;
  letter-spacing: 0.01em;
  max-width: 16ch;
  margin: 0 auto;
}
.hero-sub {
  margin: clamp(22px, 3.5vw, 32px) auto 0;
  max-width: 60ch;
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--navy-3);
  line-height: 1.55;
}
.hero-actions {
  margin-top: clamp(26px, 4vw, 38px);
  display: flex; align-items: center; justify-content: center;
  gap: clamp(1.25rem, 3vw, 2.25rem); flex-wrap: wrap;
}

/* doctrine strip (proof chips) */
.doctrine {
  margin: clamp(34px, 6vw, 60px) auto 0;
  max-width: 820px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 15px 10px;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 6px 0;
}
.doctrine span {
  font-family: var(--sans);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600;
  color: var(--navy);
  padding: 0 18px;
  position: relative;
}
.doctrine span + span::before {
  content: ""; position: absolute; left: -3px; top: 50%; transform: translateY(-50%);
  width: 5px; height: 5px; border-radius: 50%; background: var(--gold);
}

/* =========================================================================
   Principal statement — navy emphasis block
   ========================================================================= */
.principal-card {
  background: var(--navy);
  border-top: 2px solid var(--gold);
  padding: clamp(30px, 5vw, 52px);
}
.principal-card .crest-rule { margin-bottom: 18px; }
.principal-card .kicker {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-soft); font-weight: 700; margin-bottom: 16px;
}
.principal-card p {
  font-family: var(--serif);
  color: #fff;
  font-size: clamp(20px, 2.6vw, 31px);
  line-height: 1.34;
  max-width: 40ch;
}

/* =========================================================================
   Developers — dark-card centerpiece (dominant)
   ========================================================================= */
.section-developers .lead-card { margin-bottom: 16px; }
.section-developers .card.dark { padding: 26px 24px 24px; }
.section-developers .card.dark h3 { font-size: 21px; }
.section-developers .card.dark p { font-size: 14px; }

/* =========================================================================
   Landowners — lighter, smaller, fewer cards
   ========================================================================= */
.section-owners .owners-body { max-width: 920px; }
.section-owners .card { background: transparent; }
.owners-cta { margin-top: clamp(24px, 4vw, 34px); }

/* =========================================================================
   The model — road cards with ghost numerals
   ========================================================================= */
.road { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.road .card { padding-top: 24px; }
.road .seq {
  position: absolute; top: 16px; right: 18px;
  font-family: var(--serif); font-size: 38px; line-height: 1;
  color: rgba(194, 161, 76, 0.38);
}

/* =========================================================================
   Footprint
   ========================================================================= */
.footprint-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(28px, 5vw, 64px);
}
.county-list li {
  font-family: var(--serif);
  color: var(--navy);
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.5;
  padding: 0.32em 0;
  border-bottom: 1px solid var(--line);
  transition: color 0.3s var(--ease), padding-left 0.3s var(--ease);
}
.county-list li:hover { color: var(--gold); padding-left: 0.4rem; }

/* =========================================================================
   About
   ========================================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: start;
}
.about-bio { max-width: 60ch; }
.about-bio p {
  font-family: var(--serif);
  color: var(--navy);
  font-size: clamp(18px, 1.9vw, 24px);
  line-height: 1.46;
}
.about-bio p + p { margin-top: 0.9em; }
.creds-card {
  background: var(--navy);
  border-top: 2px solid var(--gold);
  padding: 26px 24px;
  position: sticky; top: 6rem;
}
.creds-card .kicker {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-soft); font-weight: 700; margin-bottom: 18px; display: block;
}
.creds-list { display: grid; gap: 16px; }
.creds-list li {
  color: #EDEBE3; font-size: 14.5px; line-height: 1.45;
  padding: 0 0 16px 1.3rem; position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.creds-list li:last-child { border-bottom: none; padding-bottom: 0; }
.creds-list li::before {
  content: ""; position: absolute; left: 0; top: 0.5em;
  width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg);
}

/* =========================================================================
   Contact
   ========================================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: start;
}
.contact-direct { margin-top: clamp(26px, 4vw, 40px); display: grid; gap: 1.4rem; }
.contact-direct dt {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; margin-bottom: 0.4rem;
}
.contact-direct dd { margin: 0; font-family: var(--serif); font-size: clamp(18px, 1.6vw, 22px); color: var(--navy); }
.contact-direct a { border-bottom: 1px solid var(--gold); transition: color 0.3s var(--ease); }
.contact-direct a:hover { color: var(--gold); }

.contact-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  padding: clamp(24px, 4vw, 38px);
  display: grid; gap: 1.3rem;
}
.field { display: grid; gap: 0.5rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.field label {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); font-weight: 700;
}
.field label .optional { letter-spacing: 0.08em; color: var(--muted); margin-left: 0.4rem; text-transform: none; font-weight: 600; opacity: 0.8; }

.field input, .field textarea, .field select {
  font-family: var(--sans); font-size: 15px; color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.7rem 0.8rem;
  width: 100%;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.field textarea { resize: vertical; line-height: 1.55; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--navy-3);
  box-shadow: 0 0 0 2px rgba(194, 161, 76, 0.28);
}
.field input::placeholder, .field textarea::placeholder { color: #9c968a; }

.select-wrap { position: relative; }
.select-wrap::after {
  content: ""; position: absolute; right: 14px; top: 50%;
  width: 8px; height: 8px; border-right: 1.5px solid var(--navy); border-bottom: 1.5px solid var(--navy);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 1.6rem; }

.btn-submit { margin-top: 0.4rem; justify-self: start; }

.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

.form-status { font-size: 13.5px; min-height: 1.2em; color: var(--muted); }
.form-status.is-error { color: var(--flag); }
.form-status.is-success { color: #8A6E22; }

/* =========================================================================
   Footer — echoes the masthead
   ========================================================================= */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(38px, 6vw, 60px);
  text-align: center;
}
.site-footer .crest-rule { margin: 0 auto 18px; }
.footer-mark {
  font-family: var(--serif); font-weight: 400; color: var(--navy);
  font-size: 1.4rem; letter-spacing: 0.16em; text-transform: uppercase;
  display: inline-block; padding-left: 0.16em;
}
.footer-note { margin: 14px auto 0; max-width: 48ch; font-size: 13px; color: var(--muted); }
.footer-meta {
  margin-top: 18px;
  font-size: 12.5px; letter-spacing: 0.04em; color: var(--muted);
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
}
.footer-meta a { color: var(--navy); }
.footer-meta a:hover { color: var(--gold); }
.footer-meta .sep { color: var(--gold); padding: 0 12px; }
.footer-rights { color: var(--muted); }

/* =========================================================================
   Reveal-on-scroll (subtle)
   ========================================================================= */
.reveal {
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 980px) {
  .g-4 { grid-template-columns: repeat(2, 1fr); }
  .g-3, .road { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .footprint-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-grid { grid-template-columns: 1fr; }
  .creds-card { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .site-nav { display: none; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 2.75rem; height: 2.75rem; margin-right: -0.5rem;
    background: none; border: none; cursor: pointer;
  }
  .nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--navy); transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
  .field-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .g-4, .g-3, .g-2, .road { grid-template-columns: 1fr; }
}
