/*
  PPM Design System — Brand Compliant v3
  Per PPM_Revised_Branding_Guidelines_v2.docx
  Primary font: Open Sans | Palette: Navy/Teal/Ice/Gold
*/

/* ── Brand Tokens ─────────────────────────────── */
:root {
  /* Primary */
  --navy:      #012E4B;
  --teal:      #8DCFDD;
  --ice:       #F1F4FA;
  /* Secondary */
  --slate:     #63717B;
  --lt-teal:   #B0D5DF;
  --silver:    #A8B1BA;
  /* Accent */
  --gold:      #C9A84C;
  --gold-tint: #F5EDD4;
  --gold-dark: #766023; /* AA-safe gold for small text on light backgrounds (--gold fails 4.5:1 there) */
  --deep-teal: #1A6B7A;
  /* Neutrals */
  --white:     #ffffff;
  --border:    #D8E4EA;
  --line-dark: rgba(141,207,221,0.15);
  /* Gradient */
  --grad: linear-gradient(135deg, #012E4B 0%, #8DCFDD 100%);
  /* Typography */
  --font: 'Open Sans', system-ui, sans-serif;
  /* Layout */
  --max:     1200px;
  --gutter:  clamp(20px, 5vw, 48px);
  --r:       4px;
  --r-lg:    8px;

  /* Legacy dark-theme compatibility (used by pricing, about, contact, blog, service-areas) */
  --navy-mid:    #062D47;
  --navy-light:  #0A3A5C;
  --border-mid:  rgba(141,207,221,0.18);
  --cream:       #F5F1E8;
  --cream-mid:   rgba(245,241,232,0.85);
  --text-muted:  rgba(245,241,232,0.55);
  --gold-dim:    rgba(201,168,76,0.4);
  --font-display: 'Open Sans', var(--font);
  --font-body:   var(--font);
  --radius:      4px;
  --radius-lg:   8px;
}

/* ── Reset ────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, video, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }
input, select, textarea { font: inherit; }

/* ── Base ─────────────────────────────────────── */
body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--navy);
  background: var(--ice);
  -webkit-font-smoothing: antialiased;
}

/* ── Typography — H1 always Navy, per guidelines ─ */
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; color: var(--navy); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; color: var(--navy); }
h3 { font-size: clamp(1rem, 2vw, 1.3rem); font-weight: 700; color: var(--navy); }
h4 { font-size: 1rem; font-weight: 600; color: var(--navy); }
p  { color: var(--slate); line-height: 1.7; max-width: 64ch; }
p + p { margin-top: 1em; }

/* Dark section type overrides */
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--white); }
.on-dark p { color: rgba(255,255,255,0.65); }

/* ── Layout ───────────────────────────────────── */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 8vw, 112px) 0; }
.section-sm { padding: clamp(40px, 5vw, 64px) 0; }

/* ── Buttons — per CTA design rules ──────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px;
  font-family: var(--font); font-size: 14px; font-weight: 700;
  letter-spacing: 0.04em; border-radius: var(--r);
  transition: all 0.18s ease; cursor: pointer; white-space: nowrap;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Primary: Gold bg, Navy text */
.btn-gold { background: var(--gold); color: var(--navy); border: 2px solid var(--gold); }
.btn-gold:hover { background: #D4B65A; border-color: #D4B65A; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(201,168,76,0.3); }
.btn-gold:active { transform: translateY(0); }

/* Secondary: Navy outlined */
.btn-navy { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-navy:hover { background: var(--navy); color: var(--white); }

/* Ghost on dark: white outlined */
.btn-ghost { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.4); }
.btn-ghost:hover { border-color: var(--white); }

/* Teal outlined on dark */
.btn-teal { background: transparent; color: var(--teal); border: 2px solid var(--teal); }
.btn-teal:hover { background: var(--teal); color: var(--navy); }

/* ── Eyebrow labels ───────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--deep-teal); margin-bottom: 16px;
}
.eyebrow::before { content: ''; width: 20px; height: 1.5px; background: var(--deep-teal); display: block; flex-shrink: 0; }
.eyebrow-light { color: var(--teal); }
.eyebrow-light::before { background: var(--teal); }

/* ── Teal divider ─────────────────────────────── */
.teal-rule { display: block; width: 40px; height: 2px; background: var(--teal); margin-bottom: 16px; }

/* ── Skip link (a11y) ─────────────────────────── */
.skip-link {
  position: absolute; top: -100%; left: 16px; z-index: 9999;
  background: var(--gold); color: var(--navy);
  padding: 8px 16px; border-radius: var(--r);
  font-size: 14px; font-weight: 700;
  transition: top 0.15s;
}
.skip-link:focus { top: 16px; }

/* ── Focus visible ─────────────────────────────── */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ── Prose (blog content) ─────────────────────── */
.prose { max-width: 680px; }
.prose h2 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); margin: 2.5em 0 0.7em; color: var(--navy); }
.prose h3 { font-size: 1.15rem; margin: 2em 0 0.5em; color: var(--navy); }
.prose p { margin-bottom: 1.25em; color: var(--slate); }
.prose ul, .prose ol { margin: 1em 0 1.5em 1.4em; color: var(--slate); }
.prose li { margin-bottom: 0.4em; line-height: 1.65; }
.prose strong { color: var(--navy); font-weight: 700; }
.prose a { color: var(--deep-teal); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.prose a:hover { color: var(--navy); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 0.9rem; }
.prose th { background: var(--ice); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--slate); padding: 10px 14px; text-align: left; border-bottom: 2px solid var(--border); }
.prose td { padding: 10px 14px; border-bottom: 1px solid var(--border); color: var(--slate); vertical-align: top; }
.prose blockquote { border-left: 3px solid var(--teal); margin: 1.5em 0; padding: 12px 20px; background: var(--gold-tint); border-radius: 0 var(--r) var(--r) 0; font-style: italic; }

/* ── Utilities ────────────────────────────────── */
.text-navy    { color: var(--navy); }
.text-teal    { color: var(--teal); }
.text-gold    { color: var(--gold); }
.text-slate   { color: var(--slate); }
.text-white   { color: var(--white); }
.text-silver  { color: var(--silver); }
.text-dt      { color: var(--deep-teal); }
.text-sm      { font-size: 0.875rem; }
.text-xs      { font-size: 0.75rem; }
.text-center  { text-align: center; }
.fw-600       { font-weight: 600; }
.fw-700       { font-weight: 700; }

/* ══════════════════════════════════════════════
   UX ENHANCEMENTS — All 10 items
   ══════════════════════════════════════════════ */

/* 1. Skip link — hidden until focused (was showing as visible blue text) */
.skip-link {
  position: absolute !important;
  top: -100% !important;
  left: 16px;
  background: var(--gold);
  color: var(--navy);
  padding: 8px 16px;
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 700;
  z-index: 9999;
  transition: top 0.15s;
  text-decoration: none;
}
.skip-link:focus { top: 16px !important; }

/* 2. Scroll-triggered fade-up animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* 3. Service cards — teal left border + arrow on hover */
/* (handled in page <style>) */

/* 4. Sticky mobile CTA bar */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 300;
  background: var(--navy);
  border-top: 2px solid var(--gold);
  padding: 12px 20px;
  gap: 10px;
  align-items: center;
  box-shadow: 0 -4px 20px rgba(1,46,75,0.3);
  /* Safe area for iPhone home indicator */
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
}
@media (max-width: 768px) { .mobile-cta-bar { display: flex; } }
.mobile-cta-bar .btn {
  flex: 1;
  justify-content: center;
  min-height: 44px;
  font-size: 13px;
  padding: 10px 16px;
}
.mobile-cta-phone {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700;
  color: var(--teal);
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
}
/* Add bottom padding to body so content isn't hidden behind bar */
@media (max-width: 768px) {
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
}

/* 5. Active nav state */
.nav-links a.active {
  color: var(--white);
}
.nav-links a.active::after { width: 100%; }

/* 6. Hero — tighten for mobile */
@media (max-width: 600px) {
  .hero-sub { font-size: 15px; }
}
/* Tighten H1 clamp on very small screens */
@media (max-width: 430px) {
  h1 { font-size: clamp(1.9rem, 9vw, 2.6rem); }
}

/* 7. Smooth scroll */
html { scroll-behavior: smooth; }

/* 8. Service hover — arrow reveal */
.svc-arrow {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 700;
  color: var(--deep-teal);
  margin-top: 12px;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}
.svc:hover .svc-arrow { opacity: 1; transform: translateX(0); }
.svc { border-left: 3px solid transparent; transition: background 0.15s, border-color 0.15s; }
.svc:hover { border-left-color: var(--teal); }

/* 9. Social proof strip */
.proof-strip {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.proof-strip-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 32px; flex-wrap: wrap;
}
.proof-badge {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; color: var(--silver);
}
.proof-badge-val {
  font-size: 14px; font-weight: 700; color: var(--white);
}
.proof-badge-stars {
  display: flex; gap: 2px;
}
.proof-badge-stars svg { color: var(--gold); }
@media (max-width: 480px) {
  .proof-strip-inner { gap: 20px; justify-content: flex-start; padding: 0 var(--gutter); }
  .proof-strip { padding: 14px 0; overflow-x: auto; scrollbar-width: none; }
  .proof-strip::-webkit-scrollbar { display: none; }
}

/* 10. Inline hero form */
.hero-form { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.hero-form-row { display: flex; gap: 8px; }
@media (max-width: 480px) { .hero-form-row { flex-direction: column; } }
.hero-input {
  flex: 1; min-height: 48px; padding: 0 14px;
  border: 1.5px solid rgba(255,255,255,0.4); border-radius: var(--r);
  font-family: var(--font); font-size: 14px; color: var(--navy);
  background: rgba(255,255,255,0.93);
  transition: border-color 0.15s, background 0.15s;
  -webkit-appearance: none;
}
.hero-input::placeholder { color: var(--slate); }
.hero-input:focus { outline: 2px solid var(--gold); outline-offset: 2px; border-color: var(--teal); background: var(--white); }
.hero-form-note {
  font-size: 11px; color: rgba(255,255,255,0.75);
  text-align: center; letter-spacing: 0.02em; max-width: none;
}
.hero-form-success {
  display: none !important;
  background: rgba(141,207,221,0.2);
  border: 1px solid var(--teal);
  border-radius: var(--r-lg);
  padding: 16px; text-align: center;
  color: var(--white); font-size: 14px; font-weight: 600;
  max-width: none; line-height: 1.5;
}
.hero-form-success.visible { display: block !important; }

/* ── How It Works + Why NJ sections ──────────── */
@media (max-width: 768px) {
  section .reveal div[style*="grid-template-columns:repeat(3"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  section .reveal div[style*="grid-template-columns:repeat(4"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
  }
}
@media (max-width: 480px) {
  section .reveal div[style*="grid-template-columns:repeat(4"] {
    grid-template-columns: 1fr !important;
  }
}

/* ── Suppress sticky bar on /contact/ page ─── */
body.page-contact .mobile-cta-bar { display: none !important; }
body.page-contact .desktop-sticky { display: none !important; }

/* ── Exit intent popup ───────────────────────── */
.exit-popup-overlay {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(1,46,75,0.7);
  z-index: 9000;
  align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.exit-popup-overlay.visible { display: flex; }
.exit-popup {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 48px 40px;
  max-width: 440px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 24px 80px rgba(1,46,75,0.3);
}
.exit-popup-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; cursor: pointer;
  color: var(--silver); font-size: 20px; line-height: 1;
  transition: color 0.15s;
}
.exit-popup-close:hover { color: var(--navy); }
.exit-popup h3 { font-size: 1.3rem; margin-bottom: 8px; }
.exit-popup p { font-size: 14px; margin-bottom: 20px; }
.exit-popup .btn { width: 100%; }

/* ── Blog mid-scroll CTA card ────────────────── */
.blog-mid-cta {
  background: var(--gold-tint);
  border: 1px solid var(--gold);
  border-radius: var(--r-lg);
  padding: 24px 28px;
  margin: 2em 0;
  text-align: center;
}
.blog-mid-cta p { max-width: none; margin-bottom: 16px; font-size: 15px; color: var(--navy); font-weight: 600; }

/* ── Author byline for blog posts ────────────── */
.blog-byline {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--silver);
  margin-top: 8px; margin-bottom: 32px;
}
.blog-byline-name { color: var(--teal); font-weight: 600; }

/* ── Tenant page styles ──────────────────────── */
.tenant-hero { background: var(--navy); padding: clamp(64px,8vw,96px) 0 clamp(48px,6vw,72px); }
.tenant-cards { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
@media (max-width: 600px) { .tenant-cards { grid-template-columns: 1fr; } }
.tenant-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 28px;
}
.tenant-card h3 { margin-bottom: 12px; }
.tenant-card p { font-size: 14px; }

/* ══════════════════════════════════════════════
   LEGACY LAYOUT CLASSES
   Used by pricing, about, contact, blog, service-areas pages
   ══════════════════════════════════════════════ */

/* Container — same as .wrap but used by subpages */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Gold decorative rule */
.gold-rule {
  display: block;
  width: 32px;
  height: 3px;
  background: var(--gold);
  margin-bottom: 16px;
}

/* Badge / eyebrow variant */
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Serif italic emphasis (used in headings) */
.serif {
  font-style: italic;
}

/* Text color utility */
.text-muted { color: var(--text-muted); }
.text-gold  { color: var(--gold); }

/* Primary button (gold bg — same as btn-gold) */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: var(--r);
  background: var(--gold);
  color: var(--navy);
  border: 2px solid var(--gold);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
  text-decoration: none;
}
.btn-primary:hover {
  background: #D4B65A;
  border-color: #D4B65A;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(201,168,76,0.3);
}

/* Divider line */
.divider {
  border: none;
  border-top: 1px solid var(--border-mid);
}

/* ══════════════════════════════════════════════
   PRICING PAGE FIXES
   ══════════════════════════════════════════════ */

/* Dark-section override — pricing uses navy-mid backgrounds */
.pricing-hero {
  background: var(--navy);
}
.pricing-hero h1 {
  color: var(--white);
}
.pricing-hero p {
  color: var(--text-muted);
}

/* Fee card legibility */
.fee-card {
  background: var(--navy-mid);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.fee-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 12px;
}
.fee-range {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.fee-sub {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.fee-detail-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.fee-detail {
  font-size: 0.875rem;
  color: var(--cream-mid);
  line-height: 1.6;
}

/* No-fees card */
.no-fees-card {
  background: var(--navy-mid);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.no-fees-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.no-fee-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--cream-mid);
  padding: 6px 0;
}
.no-fee-icon {
  color: #ef4444;
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* Included card */
.included-card {
  background: var(--navy-mid);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.included-card h2 {
  color: var(--white);
}
.included-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--cream-mid);
  padding: 6px 0;
}
.included-check {
  color: var(--gold);
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* CTA card */
.cta-card {
  background: var(--navy-light);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-top: 20px;
}
.cta-card-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
}

/* Pricing grid */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 800px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

/* Pricing FAQs */
.pricing-faqs {
  max-width: 720px;
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.faq-item {
  border-bottom: 1px solid var(--border-mid);
  background: var(--navy);
}
.faq-item:last-child { border-bottom: none; }
.faq-question {
  list-style: none;
  padding: 18px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cream);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: "+";
  color: var(--gold);
  font-size: 1.1rem;
  transition: transform 0.2s;
}
details[open] .faq-question::after { transform: rotate(45deg); }
details[open] .faq-question { color: var(--gold); }
.faq-answer {
  padding: 0 20px 16px;
}
.faq-answer p {
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: none;
  line-height: 1.65;
}

/* ══════════════════════════════════════════════
   ABOUT PAGE FIXES
   ══════════════════════════════════════════════ */

.about-hero {
  background: var(--navy);
}
.about-hero h1 { color: var(--white); }
.about-hero p { color: var(--text-muted); }

/* Founder card */
.founder-card {
  background: var(--navy-mid);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.founder-card h3 { color: var(--white); }
.founder-card p { color: var(--cream-mid); }
.founder-initials {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy-light);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
}

/* How we work pillars */
.work-pillar {
  background: var(--navy-mid);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.work-pillar h3 { color: var(--white); font-size: 1rem; margin-bottom: 8px; }
.work-pillar p { color: var(--cream-mid); font-size: 0.875rem; }

/* ══════════════════════════════════════════════
   CONTACT PAGE FIXES
   ══════════════════════════════════════════════ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-info h2 { color: var(--white); }
.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
}
.contact-method {}
.method-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.method-value {
  font-size: 0.95rem;
  color: var(--cream);
  font-weight: 600;
}
a.method-value { transition: color 0.15s; }
a.method-value:hover { color: var(--teal); }

.what-to-expect {
  margin-top: 40px;
}
.what-to-expect h3 { color: var(--white); margin-bottom: 20px; }
.steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.step-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy-light);
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
}
.step-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 4px;
}

/* Form card */
.form-card {
  background: var(--navy-mid);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.form-title {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 24px;
}

/* Form inputs */
.form-card label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.form-card input,
.form-card select,
.form-card textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  background: var(--navy-light);
  border: 1px solid var(--border-mid);
  border-radius: var(--r);
  color: var(--cream);
  font-size: 14px;
  transition: border-color 0.15s;
  margin-bottom: 16px;
}
.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
  outline: none;
  border-color: var(--teal);
}
.form-card textarea {
  min-height: 100px;
  resize: vertical;
}

/* ══════════════════════════════════════════════
   BLOG HUB FIXES
   ══════════════════════════════════════════════ */

.blog-hero {
  background: var(--navy);
}
.blog-hero h1 { color: var(--white); }
.blog-hero p { color: var(--text-muted); }

/* Blog category cards */
.blog-cats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 600px) {
  .blog-cats { grid-template-columns: 1fr; }
}

.blog-cat-card {
  background: var(--navy-mid);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
  text-decoration: none;
}
.blog-cat-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}
.blog-cat-card h2 { color: var(--white); font-size: 1.1rem; margin-bottom: 8px; }
.blog-cat-card p { color: var(--cream-mid); font-size: 0.85rem; }

/* ══════════════════════════════════════════════
   SERVICE AREAS PAGE FIXES
   ══════════════════════════════════════════════ */

.areas-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.area-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--navy-mid);
  border: 1px solid var(--border-mid);
  border-radius: var(--r);
  transition: background 0.15s, border-color 0.15s;
  text-decoration: none;
  margin-bottom: 4px;
}
.area-row:hover {
  background: var(--navy-light);
  border-color: var(--gold);
}
.area-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
}
.area-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.area-arrow {
  color: var(--gold);
  font-size: 1.1rem;
  opacity: 0.5;
  transition: opacity 0.15s;
}
.area-row:hover .area-arrow { opacity: 1; }

/* ══════════════════════════════════════════════
   SERVICES PAGE FIXES
   ══════════════════════════════════════════════ */

.services-hero {
  background: var(--navy);
}
.services-hero h1 { color: var(--white); }
.services-hero p { color: var(--text-muted); }

.svc-detail-card {
  background: var(--navy-mid);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
}
.svc-detail-card h2 { color: var(--white); }
.svc-detail-card p { color: var(--cream-mid); }
.svc-detail-card li { color: var(--cream-mid); font-size: 0.875rem; }


/* ══════════════════════════════════════════════
   UI/UX PRO MAX AUDIT FIXES
   ══════════════════════════════════════════════ */

/* FIX 1: Slate body text fails WCAG 4.5:1 on white/ice (was 4.1:1)
   Darkened from #717F89 → #63717B (5.0:1 on white, 4.6:1 on ice) */

/* FIX 2: Ensure all dark-section headings inherit correctly */
main[style*="background:var(--navy)"] h1,
main[style*="background:var(--navy)"] h2 { color: var(--white); }
main[style*="background:var(--navy)"] p { color: var(--text-muted); }
main[style*="background:var(--navy)"] .text-sm { color: var(--text-muted); }

/* FIX 3: Services page — card section backgrounds on dark main */
main[style*="background:var(--navy)"] section[style*="background:var(--white)"] h1,
main[style*="background:var(--navy)"] section[style*="background:var(--white)"] h2,
main[style*="background:var(--navy)"] section[style*="background:var(--white)"] h3 { color: var(--navy); }
main[style*="background:var(--navy)"] section[style*="background:var(--white)"] p { color: var(--slate); }
main[style*="background:var(--navy)"] section[style*="background:var(--ice)"] h1,
main[style*="background:var(--navy)"] section[style*="background:var(--ice)"] h2,
main[style*="background:var(--navy)"] section[style*="background:var(--ice)"] h3 { color: var(--navy); }
main[style*="background:var(--navy)"] section[style*="background:var(--ice)"] p { color: var(--slate); }

/* FIX 4: Service detail cards — proper styling */
.svc-detail {
  background: var(--navy-mid);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
}
.svc-detail h2 { color: var(--white); font-size: 1.2rem; margin-bottom: 12px; }
.svc-detail p { color: var(--cream-mid); font-size: 0.875rem; line-height: 1.65; }
.svc-detail ul { margin: 16px 0 0 20px; }
.svc-detail li {
  color: var(--cream-mid);
  font-size: 0.875rem;
  line-height: 1.65;
  margin-bottom: 6px;
}

/* FIX 5: Contact form field-group spacing */
.field-group {
  margin-bottom: 16px;
}
.field-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.field-group input,
.field-group select,
.field-group textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  background: var(--navy-light);
  border: 1.5px solid var(--border-mid);
  border-radius: var(--r);
  color: var(--cream);
  font-size: 14px;
  font-family: var(--font);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(141,207,221,0.15);
}
.field-group input::placeholder,
.field-group textarea::placeholder {
  color: rgba(245,241,232,0.3);
}
.field-group textarea {
  min-height: 100px;
  resize: vertical;
}
.field-group select {
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23A8B1BA' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

/* FIX 6: About page — founder section layout */
.about-section {
  background: var(--navy-mid);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.about-section h2 { color: var(--white); }
.about-section h3 { color: var(--cream); }
.about-section p { color: var(--cream-mid); line-height: 1.7; }
.about-section li { color: var(--cream-mid); }

/* FIX 7: Blog hub — category cards grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
}
.blog-card {
  background: var(--navy-mid);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
  text-decoration: none;
  display: block;
}
.blog-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}
.blog-card h2 { color: var(--white); font-size: 1.1rem; margin-bottom: 4px; }
.blog-card p { color: var(--cream-mid); font-size: 0.85rem; max-width: none; }
.blog-card .card-count {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 8px;
}

/* FIX 8: Service areas FAQ section */
.areas-faq { background: var(--navy); }
.areas-faq h2 { color: var(--white); }
.areas-faq details { border-bottom: 1px solid var(--border-mid); padding: 16px 0; }
.areas-faq summary {
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--cream);
  list-style: none;
}
.areas-faq summary::-webkit-details-marker { display: none; }
.areas-faq details p {
  margin-top: 12px;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* FIX 9: Smooth transitions for FAQ expand */
details > div,
details > p {
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* FIX 10: Blog prose on dark backgrounds */
main[style*="background:var(--navy)"] .prose h2 { color: var(--white); }
main[style*="background:var(--navy)"] .prose h3 { color: var(--cream); }
main[style*="background:var(--navy)"] .prose p { color: var(--cream-mid); }
main[style*="background:var(--navy)"] .prose li { color: var(--cream-mid); }
main[style*="background:var(--navy)"] .prose strong { color: var(--white); }
main[style*="background:var(--navy)"] .prose a { color: var(--teal); }
main[style*="background:var(--navy)"] .prose a:hover { color: var(--gold); }
main[style*="background:var(--navy)"] .prose th {
  background: var(--navy-mid);
  color: var(--cream-mid);
  border-bottom-color: var(--border-mid);
}
main[style*="background:var(--navy)"] .prose td {
  color: var(--cream-mid);
  border-bottom-color: var(--border-mid);
}
main[style*="background:var(--navy)"] .prose blockquote {
  border-left-color: var(--gold);
  background: var(--navy-mid);
  color: var(--cream-mid);
}
main[style*="background:var(--navy)"] .prose ul,
main[style*="background:var(--navy)"] .prose ol {
  color: var(--cream-mid);
}

/* FIX 11: CTA sections on dark pages — ensure gold buttons visible */
main[style*="background:var(--navy)"] .btn-gold,
main[style*="background:var(--navy)"] .btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

/* FIX 12: Tenants page — details summary on ice bg */
.tenant-card a.btn { text-decoration: none; }
main[style*="background:var(--navy)"] details summary { color: var(--navy); }
main[style*="background:var(--navy)"] section[style*="background:var(--ice)"] details summary { color: var(--navy); }
main[style*="background:var(--navy)"] section[style*="background:var(--ice)"] details p { color: var(--slate); }
main[style*="background:var(--navy)"] section[style*="background:var(--ice)"] details a { color: var(--deep-teal); }

/* FIX 13: Rent control lookup — input on dark bg */
main[style*="background:var(--navy)"] section[style*="background:var(--white)"] input {
  border-color: var(--border);
  color: var(--navy);
  background: var(--white);
}

/* FIX 14: Mobile CTA bar — ensure gold border top */
.mobile-cta-bar { border-top: 2px solid var(--gold); }

/* FIX 15: Homepage "How It Works" — consistent with light section */
main:not([style*="background:var(--navy)"]) .section-sm h2,
main:not([style*="background:var(--navy)"]) .section-sm h3 { color: var(--navy); }

/* FIX 16: Footer link hover states — gold accent on hover */
.footer-col a:hover { color: var(--teal); }

/* FIX 17: Focus ring visibility — gold outline on all interactive */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
details summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* FIX 18: Print styles — ensure readability */
@media print {
  body { background: white; color: black; }
  .nav-bar, .site-footer, .mobile-cta-bar, .exit-popup-overlay,
  .desktop-sticky { display: none !important; }
  main[style*="background:var(--navy)"] { background: white !important; }
  main[style*="background:var(--navy)"] h1,
  main[style*="background:var(--navy)"] h2,
  main[style*="background:var(--navy)"] h3 { color: black !important; }
  main[style*="background:var(--navy)"] p { color: #333 !important; }
}


/* ══════════════════════════════════════════════
   LIGHT-THEME SUBPAGE OVERRIDES
   Replaces dark navy-mid cards with white/ice cards + navy text
   ══════════════════════════════════════════════ */

/* Fee card — light version */
.fee-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 1px 3px rgba(1,46,75,0.06);
}
.fee-range { color: var(--navy); }
.fee-sub { color: var(--slate); }
.fee-label { color: var(--gold-dark); }
.fee-detail-label { color: var(--slate); }
.fee-detail { color: var(--slate); line-height: 1.6; }

/* No-fees card — light */
.no-fees-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 1px 3px rgba(1,46,75,0.06);
}
.no-fees-label { color: var(--slate); }
.no-fee-item { color: var(--navy); }

/* Included card — light */
.included-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 1px 3px rgba(1,46,75,0.06);
}
.included-card h2 { color: var(--navy); }
.included-item { color: var(--navy); }

/* CTA card — gold tint background */
.cta-card {
  background: var(--gold-tint);
  border: 1px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-top: 20px;
}
.cta-card-label { color: var(--gold); }
.cta-card .text-muted { color: var(--slate) !important; }

/* Pricing FAQ — light */
.pricing-faqs {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.faq-item {
  border-bottom: 1px solid var(--border);
  background: var(--white);
}
.faq-question { color: var(--navy); }
details[open] .faq-question { color: var(--deep-teal); }
.faq-answer p { color: var(--slate) !important; max-width: none; }

/* Area rows — light */
.area-row {
  background: var(--white);
  border: 1px solid var(--border);
}
.area-row:hover {
  background: var(--ice);
  border-color: var(--teal);
}
.area-name { color: var(--navy); }
.area-note { color: var(--slate); }
.area-arrow { color: var(--deep-teal); }

/* Blog cards — light */
.blog-card, .blog-cat-card {
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(1,46,75,0.06);
}
.blog-card:hover, .blog-cat-card:hover {
  border-color: var(--teal);
  box-shadow: 0 4px 12px rgba(1,46,75,0.1);
}
.blog-card h2, .blog-cat-card h2 { color: var(--navy); }
.blog-card p, .blog-cat-card p { color: var(--slate); }
.blog-card .card-count { color: var(--deep-teal); }

/* About section — light */
.about-section, .founder-card, .work-pillar {
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(1,46,75,0.06);
}
.founder-card h3, .work-pillar h3 { color: var(--navy); }
.founder-card p, .work-pillar p { color: var(--slate); }
.founder-initials {
  background: var(--ice);
  border: 2px solid var(--gold);
  color: var(--gold);
}

/* Contact form — light */
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(1,46,75,0.06);
}
.form-title { color: var(--navy); }
.contact-info h2 { color: var(--navy); }
.method-label { color: var(--slate); }
.method-value { color: var(--navy); }
.what-to-expect h3 { color: var(--navy); }
.step-title { color: var(--navy); }
.step-num {
  background: var(--ice);
  border: 1px solid var(--gold);
  color: var(--gold);
}

/* Form inputs — light */
.field-group label { color: var(--slate); }
.field-group input,
.field-group select,
.field-group textarea {
  background: var(--ice);
  border: 1.5px solid var(--border);
  color: var(--navy);
}
.field-group input::placeholder,
.field-group textarea::placeholder {
  color: var(--silver);
}

/* Service detail cards — light */
.svc-detail {
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(1,46,75,0.06);
}
.svc-detail h2 { color: var(--navy); }
.svc-detail p, .svc-detail li { color: var(--slate); }

/* Service areas FAQ — light */
.areas-faq { background: var(--ice); }
.areas-faq h2 { color: var(--navy); }
.areas-faq summary { color: var(--navy); }
.areas-faq details p { color: var(--slate); }
.areas-faq details { border-bottom-color: var(--border); }

/* Blog prose on light backgrounds */
.prose h2 { color: var(--navy); }
.prose h3 { color: var(--navy); }
.prose p { color: var(--slate); }
.prose li { color: var(--slate); }
.prose strong { color: var(--navy); }
.prose a { color: var(--deep-teal); }
.prose a:hover { color: var(--navy); }

/* Content sections between hero and footer — ensure light bg */
main > section:not(.hero):not(.pricing-hero):not(.about-hero):not(.contact-hero):not(.blog-hero):not(.services-hero):not(.on-dark):not(.cta-band):not(.tenant-hero):not(.pillar-hero):not(.city-hero):not(.areas-hero) {
  background: var(--ice);
}

/* Hero sections stay dark */
.pricing-hero, .about-hero, .contact-hero, .blog-hero, .services-hero {
  background: var(--navy);
}
.pricing-hero h1, .about-hero h1, .contact-hero h1, .blog-hero h1, .services-hero h1 { color: var(--white); }
.pricing-hero p, .about-hero p, .contact-hero p, .blog-hero p, .services-hero p { color: rgba(255,255,255,0.6); }

/* City page heroes */
.city-hero {
  background: var(--navy);
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}
.city-hero h1 { color: var(--white); }
.city-hero p { color: rgba(255,255,255,0.6); }
.city-hero .badge { color: var(--gold); }

/* Breadcrumb bar */
.breadcrumb-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--slate);
}
.breadcrumb a { color: var(--deep-teal); }
.breadcrumb a:hover { color: var(--navy); }

/* City page stat cards — light */
.city-stat {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 1px 3px rgba(1,46,75,0.06);
}
.city-stat h3 { color: var(--navy); }
.city-stat p { color: var(--slate); }
.city-stat .stat-value { color: var(--navy); font-weight: 700; }

/* Service area hero (list page) */
.areas-hero {
  background: var(--navy);
  padding: 80px 0 64px;
}
.areas-hero h1 { color: var(--white); }
.areas-hero p { color: rgba(255,255,255,0.6); }

/* Blog pillar page hero */
.pillar-hero {
  background: var(--navy);
}
.pillar-hero h1 { color: var(--white); }
.pillar-hero p { color: rgba(255,255,255,0.6); }


/* ══════════════════════════════════════════════
   HIGH-SPECIFICITY LIGHT-THEME OVERRIDES
   These use !important to beat astro-scoped inline styles
   ══════════════════════════════════════════════ */

/* FAQ items: white bg, navy text — overrides any scoped navy bg */
[class*="faq-item"] {
  background: var(--white) !important;
  border-bottom: 1px solid var(--border) !important;
}
[class*="faq-question"] {
  color: var(--navy) !important;
}
details[open] [class*="faq-question"] {
  color: var(--deep-teal) !important;
}
[class*="faq-answer"] p {
  color: var(--slate) !important;
}
[class*="faq-question"]::after {
  color: var(--gold) !important;
}

/* Pricing FAQs container */
[class*="pricing-faqs"] {
  border-color: var(--border) !important;
}

/* CTA/primary buttons must always be gold */
.btn-primary,
a.btn-primary,
[class*="btn-primary"] {
  background: var(--gold) !important;
  color: var(--navy) !important;
  border: 2px solid var(--gold) !important;
}
.btn-primary:hover,
a.btn-primary:hover {
  background: #D4B65A !important;
  border-color: #D4B65A !important;
}

/* Pillar blocks on about page — ice bg, navy text */
[class*="pillar-block"] {
  background: var(--ice) !important;
  border-left: 2px solid var(--gold) !important;
}
[class*="pillar-title"] {
  color: var(--navy) !important;
}
[class*="pillar-block"] .text-muted,
[class*="pillar-block"] .text-sm {
  color: var(--slate) !important;
}

/* Founder name — navy on white card */
[class*="founder-name"] {
  color: var(--navy) !important;
}

/* Blog post header — keep navy bg, white text */
[class*="post-header"] {
  background: var(--navy) !important;
}
[class*="post-title"] {
  color: var(--white) !important;
}
[class*="post-header"] .badge {
  color: var(--gold) !important;
}

/* text-muted on light backgrounds = slate */
.text-muted {
  color: var(--slate) !important;
}

/* Ensure all content sections have explicit light bg */
.about-story, .how-section, .area-section, .post-body {
  background: var(--white);
}

.hero-credit{position:absolute;right:10px;bottom:8px;z-index:3;font-size:10px;line-height:1.3;color:rgba(255,255,255,0.6);text-shadow:0 1px 2px rgba(0,0,0,.6);max-width:62%;text-align:right;letter-spacing:.01em}
.hero-credit a{color:inherit;text-decoration:underline;text-underline-offset:2px}
