/* WordPress-only additions on top of the prototype v2 styles (style.css, liquid-glass.css, v2.css are verbatim). */

/* Client placeholders (waiting on Casey): always highlighted red with their NEED label, as in the prototype. */
.placeholder { background: #FFD9D9; box-shadow: 0 0 0 2px #FFD9D9; border-radius: 3px; color: var(--navy); }
.placeholder .flag { display: inline-block; font: 700 11px/1 var(--font); background: #E0A400; color: #1E2A44; padding: 3px 6px; border-radius: 4px; margin-right: 6px; vertical-align: middle; letter-spacing: .02em; font-style: normal; }

/* Consultation form: honeypot and validation messages. */
.form-hp { display: none; }
.field-error { margin: 2px 0 0; font-size: .88rem; font-weight: 700; color: #A3201B; }
.field [aria-invalid="true"] { border-color: #A3201B; }
.form button[disabled] { opacity: .7; cursor: progress; }

/* WordPress core output inside rich-text fields. */
.prose p > img, .answer p > img { margin: 0; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* Contact grid stacks under 900px (the prototype carried this as an inline <style> on the page). */
@media (max-width: 900px) { #contact-grid { grid-template-columns: 1fr !important; } }

/* Skip link: hidden with clip instead of left:-9999px, so nothing sits outside the viewport. */
.skip:not(:focus) { left: 0; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Mobile drawer above the scrim. The drawer sits inside the sticky header (z-index 60), which makes
   its own stacking context, so the scrim (z-index 80) covered the open drawer and swallowed taps on
   the menu links. Same bug in prototype v2. */
body.menu-open .site-header { z-index: 85; }

/* ---- Launch QA fixes (2026-11-24) ---- */
/* Hover states that were missing: FAQ questions, phone links, breadcrumbs. */
.faq summary { transition: color .15s, background-color .15s; }
.faq summary:hover, .faq summary:focus-visible { color: var(--blue); background-color: #f3f6fb; }
.faq summary:hover::after { color: var(--blue-dark); }
.header-phone:hover, .header-phone:focus-visible { color: var(--blue); text-decoration: underline; }
.site-footer address a:hover, .site-footer address a:focus-visible,
.aside-card .phone:hover, .aside-card .phone:focus-visible { text-decoration: underline; text-decoration-thickness: 2px; }
.crumbs a:hover, .crumbs a:focus-visible { color: var(--green); text-decoration-thickness: 2px; }
/* Tap targets at least 24px tall (WCAG 2.5.8): Renting strip links and the footer phone link. */
.resident a { display: inline-block; padding: 4px 0; min-height: 24px; }
.site-footer address a { display: inline-block; padding: 3px 0; min-height: 24px; }
/* Click-to-load map placeholder (Contact). Same footprint as the map. */
.map--facade { position: relative; display: grid; place-content: center; justify-items: center; gap: 14px; height: 420px; border-radius: var(--radius);
  background: linear-gradient(135deg, #e9eef6 0%, #f6f8fb 55%, #e3ebdb 100%); border: 1px solid var(--line); text-align: center; }
.map__pin { width: 46px; height: 46px; fill: none; stroke: var(--blue); stroke-width: 1.8; }
.map__link { font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .faq summary { transition: none; } }
.contact-lines a:hover, .contact-lines a:focus-visible { color: var(--green); text-decoration-thickness: 2px; }
/* Keep focused or scrolled-to items clear of the fixed phone bar (WCAG 2.4.11 / 2.5.8). */
@media (max-width: 760px) { html { scroll-padding-bottom: calc(68px + 16px + env(safe-area-inset-bottom)); } }
/* Hero card eyebrow: plain heading font instead of the handwritten script, which was hard to read on the photo (John, 2026-11-24). */
.hero-panel.hero-copy .eyebrow { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; line-height: 1.3; letter-spacing: .01em; margin-bottom: .6em; }
@media (max-width: 760px) { .hero-panel.hero-copy .eyebrow { font-size: 1.05rem; } }

/* ---- Mobile changes (2026-11-24, John) ---- */
/* Phones: the header scrolls away with the page; the phone bar's Menu button opens the menu instead.
   Desktop keeps the sticky glass header from v2.css (2026-11-25, John). */
@media (max-width: 760px) { .site-header { position: relative; } }
@media (max-width: 760px) {
  /* Phone bar: solid white, smaller, with Menu | Call | Free Consultation. */
  .mobile-bar { grid-template-columns: auto auto 1fr; gap: 6px; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 8px 24px rgba(30,42,68,.18); }
  .mobile-bar .btn { border-radius: 999px; padding: .55em .85em; font-size: .92rem; min-height: 44px; gap: .4em; white-space: nowrap; }
  .mobile-bar .btn svg { width: 16px; height: 16px; flex: none; }
  .mobile-bar__menu { cursor: pointer; font: inherit; font-family: var(--font-head); font-weight: 700; background: #fff; }
  html { scroll-padding-bottom: calc(56px + 20px + env(safe-area-inset-bottom)); }
  /* Stats: "15 years" gets its own row, the other two sit side by side under it. */
  .stats-straddle .stats { grid-template-columns: 1fr 1fr; }
  .stats-straddle .stat:first-child { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid rgb(255 255 255 / .18); }
  .stats-straddle .stat:first-child span { display: block; max-width: 22ch; margin-inline: auto; }
}

/* ---- Phones: no header bar, no glass hero card (2026-11-24, John) ---- */
@media (max-width: 760px) {
  /* Header: logo on the left, Menu on the right, straight over the photo. */
  .site-header .header-pill { min-height: 0; padding: 0; width: calc(100% - 28px); }
  .site-header .header-pill::before { display: none; }
  /* The logo file has a white background, so it sits on a small white tile. */
  .site-header .brand { display: inline-flex; background: #fff; border-radius: 12px; padding: 6px 10px; box-shadow: 0 6px 18px rgba(16, 28, 52, .28); }
  .site-header .brand img { width: 118px; }
  .menu-toggle { box-shadow: 0 6px 18px rgba(16, 28, 52, .28); }
  /* Hero: darker photo overlay, text straight on the photo (no glass card). */
  .hero::after, .page-hero::after { background: rgba(14, 22, 40, .84); }
  .hero-panel.lg { background: none; border: 0; border-radius: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; overflow: visible; padding: 0; }
  .hero-panel.lg::before, .hero-panel.lg::after { display: none; }
  .hero-panel h1, .hero-panel p, .hero-panel .eyebrow { text-shadow: 0 1px 14px rgba(0, 0, 0, .5); }
  .hero .container:not(.stats-straddle) { padding-top: 128px; }
  /* Hero buttons side by side. */
  .hero .btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero .btn-row .btn { width: auto; min-height: 58px; padding: .6em .7em; font-size: .92rem; line-height: 1.2; text-align: center; justify-content: center; gap: .35em; }
  .hero .btn-row .btn svg { flex: none; }
}

/* Fair Housing / Equal Housing Opportunity (Casey, 2026-11-30) */
.footer-eho { margin-top: 18px; }
.footer-eho a { display: inline-block; color: #fff; }
.eho-logo { display: block; width: 64px; height: auto; }
.fh-note { display: flex; align-items: center; gap: 14px; font-size: .95rem; }
.eho-logo--inline { flex: 0 0 auto; width: 44px; color: var(--navy, #1f2b45); }
.prose a[href^="tel:"] { white-space: nowrap; }
