/* coastalhomesde.com theme: built from the cover of The Certainty Gap.
   Deep-navy-to-sunrise sky, bright "GAP" gold, bold uppercase Montserrat, gold rules flanking labels,
   slash-separated lists, and a glowing "bridge of light" divider. Loads after style.css and coastal.css
   (the original layout) and only restyles it. Colors sampled from images/certainty-gap-800.jpg. */

:root {
  --navy-950: #00142D;   /* bottom band */
  --navy-900: #01274F;   /* top of the sky */
  --navy-800: #0B3466;
  --navy-700: #1D5A92;
  --sky: #3174A8;        /* mid sky */
  --sunrise: #FCCC83;    /* warm horizon */
  --gold-500: #FCCD3F;   /* GAP letters and rules */
  --gold-400: #FDD862;
  --gold-300: #FEE59A;
  --gold-ink: #8A6300;   /* gold text on light backgrounds */
  --teal-900: #01274F;
  --teal-800: #1D5A92;
  --paper: #F7F8FB;
  --paper-2: #E9F0F8;    /* pale morning sky */
  --ink: #0A1B33;
  --ink-2: #44556E;
  --ink-3: #6F7F96;
  --line: rgba(10, 27, 51, 0.12);
  --line-dark: rgba(255, 255, 255, 0.14);

  --font-display: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --font-body: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --text-hero: clamp(2.3rem, 1.4rem + 3.4vw, 4rem);
  --text-2xl: clamp(1.75rem, 1.3rem + 1.7vw, 2.6rem);
  --radius-sm: 4px; --radius-md: 8px; --radius-lg: 12px;
}

body { background: var(--paper); color: var(--ink); }
:focus-visible { outline-color: var(--gold-500); }
::selection { background: rgba(252, 205, 63, 0.4); }

/* ---------- Type: bold uppercase headlines like the cover title ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.005em; }
.hero h1, .section-head h2, .cta h2, .book__body h2, .author__body h2, .cpage-about h2, #which-title, .community__body h1 {
  text-transform: uppercase; font-weight: 900; letter-spacing: 0.005em; line-height: 1.05;
}
.author__body h2 { text-transform: none; font-weight: 800; }
.community__body h3, .split__cell h3, .plan h3, .qmi__plan, .stats strong, .proof strong, .hero__meta strong { font-weight: 800; }
.lede { color: var(--ink-2); }

/* Labels: uppercase gold with a rule on each side, like "— THE CLEAR FRAMEWORK —" */
.eyebrow { display: inline-flex; font-weight: 800; letter-spacing: 0.2em; color: var(--gold-ink); }
.eyebrow::before, .eyebrow::after { content: ""; width: 26px; height: 2px; background: var(--gold-500); flex: none; }
.dark .eyebrow, .teal .eyebrow, .hero .eyebrow { color: var(--gold-500); }
.ctab-group__label, .community__body .town, .cindex h4, .split__cell .tag, .plan .note, .school-list .grades, .cselect, .framework__title { color: var(--gold-ink); letter-spacing: 0.16em; }
.dark .framework__title { color: var(--gold-500); }

/* ---------- Buttons: uppercase, tracked, gold on navy ---------- */
.btn { border-radius: var(--radius-sm); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 800; font-size: 0.82rem; padding: 0.95rem 1.4rem; }
.btn--gold { background: var(--gold-500); color: var(--navy-950); box-shadow: 0 10px 28px rgba(252, 205, 63, 0.28); }
.btn--gold:hover { background: var(--gold-400); }
.btn--navy { background: var(--navy-900); color: #fff; }
.btn--navy:hover { background: var(--navy-800); }
.btn--outline { border-width: 2px; }

/* ---------- Header: the top of the cover's sky ---------- */
.header { background: rgba(0, 20, 45, 0.94); border-bottom: 1px solid rgba(252, 205, 63, 0.35); }
.brand__text { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; letter-spacing: 0.12em; font-size: 1.05rem; color: #fff; }
.brand__text .b1, .brand__text .b2 { color: #fff; }
.brand__sub { color: var(--gold-500); letter-spacing: 0.15em; font-weight: 700; white-space: nowrap; }
.hero .eyebrow { letter-spacing: 0.12em; }
.brand__mark { width: 40px; height: 40px; }
.nav a { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; font-weight: 700; color: rgba(255, 255, 255, 0.85); }
.nav a::after { background: var(--gold-500); }
.nav .btn { color: var(--navy-950); padding: 0.65rem 1rem; }
@media (max-width: 1000px) { .nav { background: var(--navy-950); } }

/* ---------- Hero: night sky to sunrise ---------- */
.hero {
  background:
    radial-gradient(70% 55% at 72% 112%, rgba(253, 252, 242, 0.55), rgba(252, 204, 131, 0.35) 28%, transparent 62%),
    radial-gradient(45% 35% at 72% 104%, rgba(247, 165, 65, 0.35), transparent 70%),
    linear-gradient(180deg, #00142D 0%, #01274F 34%, #0B3466 56%, #1D5A92 80%, #3174A8 100%);
}
.hero::before { display: none; }
/* The "bridge of light": a glowing gold line along the bottom edge */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-500) 20%, #FFF6D6 50%, var(--gold-500) 80%, transparent);
  box-shadow: 0 0 18px 2px rgba(252, 205, 63, 0.55);
}
.hero h1 em { font-style: normal; color: var(--gold-500); }
.hero .lede { color: rgba(255, 255, 255, 0.86); }
.hero__photo { border-radius: var(--radius-lg); }
.hero__badge { border-color: var(--navy-950); }
.hero__badge::after { box-shadow: inset 0 0 0 2px var(--gold-500); }
.hero__caption { color: rgba(255, 255, 255, 0.75); }
.hero__note { color: rgba(255, 255, 255, 0.8); }
.hero__note a { color: var(--gold-500); }
/* Stats separated by gold slashes, like "CONNECT / LISTEN / EXAMINE" */
.hero__meta { border-top-color: rgba(252, 205, 63, 0.45); }
.hero__meta div { color: rgba(255, 255, 255, 0.72); position: relative; }
.hero__meta strong { color: #fff; font-family: var(--font-display); }
.hero__aside .hero__meta div + div::before { content: "/"; position: absolute; left: calc(var(--space-4) * -0.5 - 0.35em); top: 0; font-size: 1.4rem; font-weight: 300; color: var(--gold-500); }
.hero__aside .hero__meta strong { font-size: clamp(1rem, 0.85rem + 0.45vw, 1.3rem); white-space: nowrap; }

/* ---------- Dark sections: the cover's lower sky and cliffs ---------- */
.dark { background: linear-gradient(180deg, #01274F 0%, #00142D 100%); }
.teal { background: radial-gradient(60% 70% at 85% 0%, rgba(49, 116, 168, 0.55), transparent 70%), linear-gradient(180deg, #0B3466, #01274F); }
.quote { position: relative; }
.quote.teal { background: radial-gradient(55% 90% at 50% 120%, rgba(252, 204, 131, 0.35), transparent 70%), linear-gradient(180deg, #01274F, #1D5A92); }
.quote blockquote { font-weight: 800; }
.quote cite { color: rgba(255, 255, 255, 0.75); font-weight: 700; }
.quote blockquote::before, .quote blockquote::after { color: var(--gold-500); }
.dark .lede, .teal .lede { color: rgba(255, 255, 255, 0.84); }
.teal p, .qmi--ask p { color: rgba(255, 255, 255, 0.76); }
.teal .btn--outline { color: #fff; }
.proof strong { color: var(--gold-500); }
.book__body .hook { font-weight: 800; color: var(--navy-800); }
.dark .book__body .hook { color: var(--gold-500); }
.book__body .subtitle { font-style: normal; font-weight: 600; }
.steps .letter { font-family: var(--font-display); font-weight: 900; color: var(--gold-500); }
.dark .steps li { background: var(--navy-800); }

/* Gold rule above dark sections and the footer, echoing the cover's gold rules */
.dark, .teal, .footer { border-top: 2px solid rgba(252, 205, 63, 0.6); }
.hero + section { border-top: 0; }

/* ---------- Cards on light sections ---------- */
.ctab { border-radius: var(--radius-md); }
.ctab span { font-family: var(--font-display); font-weight: 800; }
.ctab[aria-selected="true"] { background: var(--navy-900); border-color: var(--gold-500); box-shadow: inset 0 -3px 0 var(--gold-500); }
.ctab[aria-selected="true"] small { color: var(--gold-500); }
.gallery__main .offer { background: var(--gold-500); color: var(--navy-950); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 800; }
.plan { border-top: 3px solid var(--gold-500); }
.plan .from { color: var(--navy-800); font-weight: 800; }
.split { border-top: 3px solid var(--gold-500); }
.split__cell a.more { color: var(--navy-800); }
.tax-card { border-top-color: var(--gold-500); }
.data-card, .cpage-aside, .visit { border-radius: var(--radius-lg); }
.qmi { border-radius: var(--radius-lg); background: linear-gradient(180deg, #0B3466, #01274F); }
.qmi__price { font-family: var(--font-display); font-weight: 900; color: var(--gold-500); }
.qmi .qmi__status { text-transform: uppercase; letter-spacing: 0.06em; font-weight: 800; }
.qmi .qmi__status--contract { background: var(--gold-500); color: var(--navy-950); }

/* ---------- Floor plan cards that link to plan pages ---------- */
a.plan--link { display: block; color: inherit; text-decoration: none; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
a.plan--link:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -20px rgba(1, 39, 79, 0.45); }
a.plan--link h3 { color: var(--ink); }
.plan__more { display: block; margin-top: var(--space-3); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-ink); }
.plan { position: relative; }
.plan__link { color: inherit; text-decoration: none; }
.plan__link::after { content: ""; position: absolute; inset: 0; }   /* whole card is clickable */
.plan__link:hover { color: var(--navy-700); }
.plan-grid a.plan--link img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* ---------- Floor plan pages ---------- */
.fp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: var(--space-4); }
.fp-page { display: block; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold-500); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow 0.25s var(--ease); }
.fp-page:hover { box-shadow: 0 18px 40px -20px rgba(1, 39, 79, 0.45); }
.fp-page img { width: 100%; height: auto; }
.video-wrap { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: var(--navy-950); box-shadow: 0 30px 60px -30px rgba(0, 20, 45, 0.6); }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.int-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: var(--space-3); }
.int-grid img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-md); }
.where-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: var(--space-3); }
.where-list li { display: grid; grid-template-columns: 1fr auto; gap: 0 var(--space-4); align-items: baseline; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--gold-500); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); }
.where-list a { font-weight: 800; color: var(--ink); text-decoration: none; }
.where-list a:hover { color: var(--navy-700); text-decoration: underline; }
.where-list span { grid-column: 1; font-size: var(--text-sm); color: var(--ink-3); }
.where-list strong { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-weight: 800; color: var(--navy-800); }

/* ---------- Community page breadcrumbs: gold slashes ---------- */
.crumbs span[aria-hidden="true"] { color: var(--gold-ink); font-weight: 700; }

/* ---------- Footer: the cover's bottom band, links separated by gold slashes ---------- */
.footer { background: var(--navy-950); }
.footer nav { gap: var(--space-2) 0; }
.footer nav a { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.72rem; font-weight: 700; }
.footer nav a + a::before { content: "/"; color: var(--gold-500); margin: 0 0.7rem; }
.footer nav a:hover { color: var(--gold-500); }
