/* Rock Ridge Apartment Homes: "Mid-Century Riverside" skin on the Pure
   California bones (viva-site). Tokens from the building itself: white stucco
   page, door yellow for buttons and the sun, mural navy for the dark bands,
   pool aqua for small details. Yellow carries navy text, never white. */
:root {
  --brand: #1F3A68;        /* mural navy: links, eyebrows, outline buttons */
  --brand-deep: #152A4E;
  --sun: #F2CB3A;          /* door yellow: primary buttons, CTA strip */
  --sun-deep: #E0B41C;
  --accent: #0E7C8A;       /* pool aqua, deepened for text contrast */
  --ink: #1C2330;
  --ink-soft: #545C69;
  --page: #FBFAF6;         /* white stucco */
  --band: #EEF5F4;         /* pool-shade wash */
  --gold: #F2CB3A;         /* concession bar */
  --line: #E2E6E4;
  --deep: #14284B;         /* deep navy: facts strip, phone hero panel, footer */
  --display: "Jost", "Futura", "Century Gothic", sans-serif;
  --body: "DM Sans", -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body { font-family: var(--body); color: var(--ink); background: var(--page); line-height: 1.65; font-size: 17px; }
img { max-width: 100%; display: block; }
a { color: var(--brand-deep); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); line-height: 1.1; font-weight: 500; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 4.8vw, 3.5rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-family: var(--body); font-weight: 700; }
.eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
section { padding: 72px 0; }

/* ---------- announcement bar (concession only; empty until KV is set) ---------- */
.announce { background: var(--gold); color: var(--ink); font-size: 1.05rem; }
.announce .wrap { display: flex; gap: 12px; align-items: center; justify-content: center; padding: 15px 56px 15px 24px; position: relative; text-align: center; }
.announce span { font-weight: 700; }
.announce a { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.announce .dismiss { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: rgba(0,0,0,0.5); font-size: 1.35rem; line-height: 1; cursor: pointer; padding: 6px; }
.announce .dismiss:hover { color: var(--ink); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 248, 242, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand-link { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
/* Wordmark: Yellowtail, chosen by Dan 2026-10-28 as the clean match for the
   script lettering on the building's rock wall. Set at a slight climb, like the sign. */
.wordmark { font-family: "Yellowtail", "Brush Script MT", cursive; font-weight: 400; letter-spacing: 0; text-transform: none; line-height: 1; color: var(--deep); display: inline-block; transform: rotate(-6deg); white-space: nowrap; }
.brand { display: flex; flex-direction: column; gap: 5px; line-height: 1; padding-top: 6px; }
.brand .wordmark { font-size: 2.35rem; transform-origin: left bottom; }
.brand small { font-family: var(--body); font-size: 0.6rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-soft); padding-left: 2px; }
.wordmark-footer { color: #fff; font-size: 3.2rem; }
.site-nav { display: flex; align-items: center; gap: 18px; flex-wrap: nowrap; }
.site-nav a { text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: 0.92rem; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--brand-deep); }
.btn { display: inline-block; text-decoration: none; font-weight: 700; font-size: 0.97rem; padding: 12px 22px; border-radius: 999px; transition: background 0.15s ease, color 0.15s ease; }
.btn-brand { background: var(--sun); color: var(--deep); }
.btn-brand:hover { background: var(--sun-deep); color: var(--deep); }
.btn-ghost { border: 1.5px solid rgba(255,255,255,0.85); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.14); }
.btn-outline { border: 1.5px solid var(--brand); color: var(--brand-deep); }
.btn-outline:hover { background: var(--brand); color: #fff; }
.site-nav .btn { padding: 9px 18px; font-size: 0.86rem; }
.site-nav .btn-brand { color: var(--deep); }
.site-nav .btn-brand:hover { color: var(--deep); }
.site-nav .btn-outline { color: var(--brand-deep); }
.site-nav .btn-outline:hover { color: #fff; }
.site-nav .nav-phone { color: var(--brand-deep); font-weight: 700; font-size: 0.95rem; }
.site-nav .nav-phone:hover { color: var(--brand); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; color: var(--ink); padding: 8px; margin-left: 4px; }
.nav-toggle svg { display: block; }
.mobile-menu { display: none; }
.phone-mobile { display: none; color: var(--brand-deep); padding: 8px; }
@media (max-width: 1240px) {
  .site-nav a:not(.btn-brand) { display: none; }
  .nav-toggle { display: block; }
  .phone-mobile { display: block; }
  .mobile-menu:not([hidden]) { display: block; background: var(--page); border-bottom: 1px solid var(--line); }
  .mobile-menu a { display: block; padding: 14px 24px; text-decoration: none; color: var(--ink); font-weight: 600; border-top: 1px solid var(--line); }
  .mobile-menu a:hover { color: var(--brand-deep); background: var(--band); }
}
@media (max-width: 620px) {
  .site-nav .btn { padding: 8px 14px; font-size: 0.82rem; }
}
@media (max-width: 400px) {
  .site-header .wrap { gap: 6px; }
  .brand-link { gap: 8px; }
  .site-nav { gap: 8px; }
  .site-nav .btn { padding: 8px 10px; font-size: 0.78rem; }
}

/* ---------- hero ---------- */
.hero { position: relative; padding: 0; color: #fff; min-height: 680px; display: flex; align-items: flex-end; overflow: hidden; }
.hero picture, .hero img.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
/* Two-direction scrim: the photo is white stucco under a bright sky, so the
   bottom gradient alone left white type on white wall. */
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,24,32,0.10) 0%, rgba(16,24,32,0.42) 40%, rgba(16,24,32,0.86) 100%), linear-gradient(90deg, rgba(16,24,32,0.45) 0%, rgba(16,24,32,0) 60%); }
.hero .wrap { position: relative; z-index: 2; padding-top: 200px; padding-bottom: 60px; text-shadow: 0 2px 10px rgba(0,0,0,0.45); }
.hero .eyebrow { color: var(--gold); }
.band .eyebrow, .page-hero .eyebrow { color: var(--brand-deep); }
.hero h1 { color: #fff; max-width: 14ch; }
.hero p { margin-top: 16px; max-width: 52ch; font-size: 1.15rem; color: rgba(255,255,255,0.94); }
.hero-ctas { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }

/* page hero (inner pages) */
.page-hero { background: var(--band); padding: 56px 0 48px; border-bottom: 1px solid var(--line); }
.page-hero p.lede { margin-top: 12px; max-width: 62ch; color: var(--ink-soft); font-size: 1.05rem; }
.page-hero.compact { padding: 26px 0 20px; }
.page-hero.compact h1 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.page-hero.compact p.lede { margin-top: 6px; font-size: 0.98rem; }

/* ---------- facts band ---------- */
.facts { background: var(--deep); color: #fff; padding: 30px 0; }
.facts .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.fact strong { display: block; font-family: var(--display); font-size: 1.5rem; font-weight: 400; color: #fff; line-height: 1.1; }
.fact span { font-size: 0.9rem; color: rgba(255,255,255,0.82); }
@media (max-width: 720px) { .facts .wrap { grid-template-columns: repeat(2, 1fr); gap: 16px; } .fact strong { font-size: 1.25rem; } }

/* ---------- framed figures: photo with a door-yellow offset block ---------- */
.arch { position: relative; margin: 0 14px 14px 0; }
.arch img { position: relative; z-index: 1; border-radius: 14px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; box-shadow: 14px 14px 0 var(--sun); }
.arch figcaption { font-size: 0.85rem; color: var(--ink-soft); margin-top: 10px; text-align: center; }

/* ---------- two-column feature ---------- */
.feature .cols { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.feature .cols.flip { grid-template-columns: 0.95fr 1.05fr; }
.feature p { margin-top: 14px; color: var(--ink-soft); max-width: 56ch; }
.feature .cta-row, .cta-row { margin-top: 24px; display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 860px) { .feature .cols, .feature .cols.flip { grid-template-columns: 1fr; gap: 30px; } }

/* ---------- tiles ---------- */
.band { background: var(--band); }
.tile-grid { margin-top: 36px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px 24px; }
.tile .n { font-family: var(--display); font-weight: 600; color: var(--accent); font-size: 1.6rem; line-height: 1; }
.tile h3 { font-size: 1.15rem; margin: 10px 0 6px; color: var(--ink); }
.tile p { color: var(--ink-soft); font-size: 0.96rem; }
@media (max-width: 800px) { .tile-grid { grid-template-columns: 1fr; } }

/* ---------- lists ---------- */
.leaf-list { list-style: none; }
.leaf-list li { padding: 9px 0 9px 30px; position: relative; border-bottom: 1px solid var(--line); font-size: 0.99rem; }
.leaf-list li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 14px; height: 14px; background: var(--sun); border: 2px solid var(--brand); border-radius: 50%; }
.list-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 48px; margin-top: 20px; }
@media (max-width: 720px) { .list-cols { grid-template-columns: 1fr; } }

/* ---------- floor plans ---------- */
.plan-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.plan img { width: 100%; height: auto; flex: none; aspect-ratio: 1 / 1; object-fit: contain; background: #fff; padding: 14px; }
.plan-body { padding: 16px 20px 20px; border-top: 1px solid var(--line); flex: 1; }
.plan-body h3 { font-size: 1.08rem; }
.plan-spec { font-size: 0.93rem; color: var(--ink-soft); margin-top: 4px; }
.plan-price { font-family: var(--display); font-size: 1.35rem; margin-top: 10px; color: var(--ink); }
.plan-price span { font-family: var(--body); font-size: 0.85rem; color: var(--ink-soft); }
.plan .btn { margin: 0 20px 20px; align-self: flex-start; font-size: 0.85rem; padding: 9px 16px; }
@media (max-width: 940px) { .plan-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .plan-grid { grid-template-columns: 1fr; } }

/* ---------- gallery ---------- */
.gallery-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-grid a { display: block; border-radius: 14px; overflow: hidden; }
.gallery-grid img { width: 100%; height: 210px; object-fit: cover; transition: transform 0.25s ease; }
.gallery-grid a:hover img { transform: scale(1.04); }
@media (max-width: 860px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- availability unit cards ---------- */
.unit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 940px) { .unit-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .unit-grid { grid-template-columns: 1fr; } }
.unit { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.unit .ph { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.unit .ph-empty { background: var(--band); aspect-ratio: 16 / 10; }
.unit .chip { position: absolute; top: 12px; left: 12px; z-index: 1; background: var(--sun); color: var(--deep); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 10px; border-radius: 4px; }
.unit .chip.later { background: var(--deep); color: #fff; }
.unit-body { padding: 14px 18px 4px; flex: 1; }
.unit-price { font-family: var(--display); font-size: 1.45rem; color: var(--ink); }
.unit-price span { font-family: var(--body); font-size: 0.88rem; font-weight: 500; color: var(--ink-soft); }
.unit-spec { font-size: 0.93rem; margin-top: 2px; }
.unit-addr { font-size: 0.88rem; color: var(--ink-soft); margin: 2px 0 10px; }
.unit-actions { display: flex; gap: 10px; flex-wrap: wrap; padding: 0 18px 16px; }
.unit .btn { font-size: 0.85rem; padding: 9px 16px; }
.units-loading { color: var(--ink-soft); grid-column: 1 / -1; }
.units-note { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.fallback { margin-top: 26px; font-size: 0.96rem; color: var(--ink-soft); padding: 16px 20px; background: var(--band); border-radius: 12px; }

/* ---------- per-home pages (/availability/unit-X), from tidewater-site ---------- */
.unit-detail { max-width: 760px; }
.unit-hero-photo { width: 100%; border-radius: 12px; margin-bottom: 22px; }
.unit-facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 26px; margin: 0 0 26px; }
.unit-facts dt { font-weight: 700; color: var(--ink); }
.unit-facts dd { margin: 0; }
.unit-features { columns: 2; margin: 0 0 26px; padding-left: 18px; }
.unit-detail .unit-actions { margin: 0 0 22px; }
@media (max-width: 720px) { .unit-features { columns: 1; } }

/* ---------- info card ---------- */
.info-card { margin-top: 26px; padding: 20px 24px; background: #fff; border: 1px solid var(--line); border-radius: 14px; font-size: 0.96rem; color: var(--ink-soft); }
.info-card strong { color: var(--ink); }

/* ---------- neighborhood miles table ---------- */
.miles-table { width: 100%; border-collapse: collapse; margin-top: 24px; font-size: 0.97rem; }
.miles-table th, .miles-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.miles-table th[scope="row"] { font-weight: 600; color: var(--ink); }
.miles-table td:last-child { font-family: var(--display); font-size: 1.1rem; color: var(--accent); white-space: nowrap; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px 24px; }
.contact-card h3 { font-size: 1.05rem; color: var(--brand-deep); margin-bottom: 8px; }
.contact-card a.big { font-family: var(--display); font-size: 1.35rem; color: var(--ink); text-decoration: none; }
.contact-card p { font-size: 0.92rem; color: var(--ink-soft); }
.mapframe { border: 0; width: 100%; height: 380px; border-radius: 14px; margin-top: 40px; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-list { margin-top: 36px; max-width: 800px; }
.faq-list details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; margin-bottom: 12px; }
.faq-list summary { font-family: var(--body); font-weight: 700; font-size: 1.05rem; cursor: pointer; color: var(--ink); }
.faq-list details p { margin-top: 12px; color: var(--ink-soft); }

/* ---------- CTA strip ---------- */
.cta-strip { background: var(--deep); color: #fff; text-align: center; }
.cta-strip h2 { color: #fff; }
.cta-strip p { margin: 12px auto 26px; max-width: 54ch; color: rgba(255,255,255,0.9); }
.cta-strip .btn + .btn { margin-left: 10px; }

/* ---------- footer ---------- */
.site-footer { background: var(--deep); color: rgba(255,255,255,0.82); padding: 44px 0 30px; font-size: 0.9rem; }
.site-footer .cols { display: grid; grid-template-columns: auto minmax(280px, 1fr) minmax(0, 420px); gap: 40px; align-items: center; }
.site-footer img { height: 64px; width: auto; max-width: none; }
.site-footer a { color: rgba(255,255,255,0.92); }
.site-footer .links { display: flex; gap: 10px 18px; flex-wrap: wrap; }
.site-footer .legal { margin-top: 22px; font-size: 0.8rem; color: rgba(255,255,255,0.6); }
@media (max-width: 800px) { .site-footer .cols { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- phones: photo on top, text below (fleet standard, 2026-10-03) ----------
   About 70% of traffic is on phones. The photo stands at full width at its
   natural height, the text sits below on deep navy, the paragraph drops to
   its first sentence (.hero-more hidden), and the primary button goes white so
   it stands off the panel. */
@media (max-width: 620px) {
  .cta-strip .btn + .btn { margin-left: 0; margin-top: 10px; }
  .announce { font-size: 0.84rem; line-height: 1.35; }
  .announce .wrap { padding: 8px 40px 8px 16px; }
  .hero { display: block; min-height: 0; background: var(--deep); }
  .hero picture { position: static; display: block; height: auto; }
  .hero img.hero-img { position: static; display: block; width: 100%; height: auto; }
  .hero::after { display: none; }
  .hero .wrap { padding-top: 20px; padding-bottom: 26px; text-shadow: none; }
  .hero .eyebrow { font-size: 0.66rem; letter-spacing: 0.1em; margin-bottom: 8px; }
  .hero h1 { font-size: 1.8rem; line-height: 1.15; max-width: none; }
  .hero p { font-size: 0.97rem; line-height: 1.5; margin-top: 10px; }
  .hero .hero-more { display: none; }
  .hero-ctas { margin-top: 16px; gap: 10px; }
  .hero .btn { padding: 11px 18px; font-size: 0.92rem; }
  .hero .btn-brand { background: var(--sun); color: var(--deep); }
  .hero .btn-brand:hover { background: var(--sun-deep); color: var(--deep); }
  .facts { border-top: 1px solid rgba(255, 255, 255, 0.16); }
  section { padding: 48px 0; }
}
@media (max-width: 340px) {
  .site-header .wrap { gap: 2px; }
  .site-nav .btn { padding: 8px 8px; font-size: 0.72rem; }
  .phone-mobile, .nav-toggle { padding: 6px; margin-left: 0; }
}

/* ---------- numbered steps (tour, apply) ---------- */
.steps { counter-reset: step; list-style: none; }
.steps li { counter-increment: step; position: relative; padding: 8px 0 8px 44px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 6px; width: 30px; height: 30px; border-radius: 50%; background: var(--sun); color: var(--deep); font-family: var(--display); font-weight: 600; display: grid; place-items: center; font-size: 0.95rem; }
.plan-note { font-size: 0.93rem; color: var(--ink-soft); margin-top: 8px; }
.plan img { aspect-ratio: 4 / 3; object-fit: cover; padding: 0; }

/* header fit on phones: the tagline goes first, then the button label shortens */
.lbl-short { display: none; }
@media (max-width: 620px) {
}
@media (max-width: 480px) {
  .lbl-long { display: none; }
  .lbl-short { display: inline; }
}
@media (max-width: 350px) {
  .brand-link { gap: 6px; }
}

/* engine-written sections (accessibility, topic pages) */
.feature.alt { background: var(--band); }
.feature ul:not(.leaf-list) { margin: 14px 0 0 20px; color: var(--ink-soft); max-width: 70ch; }
.feature ul:not(.leaf-list) li { margin: 6px 0; }

/* wordmark on smaller screens */
@media (max-width: 620px) { .brand small { display: none; } .brand .wordmark { font-size: 2rem; } }
@media (max-width: 400px) { .brand .wordmark { font-size: 1.75rem; } }
@media (max-width: 340px) { .brand .wordmark { font-size: 1.5rem; } }
