/* =========================================================
   Jenny Adib, REALTOR® — San Diego Military Realtor
   Editorial charcoal + cream with a magenta→cyan signature accent
   ========================================================= */

:root {
  /* Base palette */
  --ink: #1a1918;            /* deep charcoal */
  --ink-2: #262422;          /* raised charcoal */
  --ink-3: #34312e;
  --cream: #f3eee6;          /* warm cream */
  --cream-2: #e9e2d6;
  --paper: #fbf9f5;
  --stone: #6b645b;          /* muted text on cream (4.9:1) */
  --mist: #c9c1b4;           /* muted text on charcoal */

  /* Signature accent: Jenny's violet → periwinkle → sky → aqua */
  --brass: #5b7cf0;          /* star / small accent color */
  --gold-light: #8fd8ff;
  --grad: linear-gradient(90deg, #9a6bff 0%, #8080ff 30%, #40c0ff 70%, #00e0ff 100%);
  --grad-soft: linear-gradient(135deg, #b3adff 0%, #8fc4ff 50%, #6fe0f5 100%); /* button fill, AA with --ink */

  /* Semantic tokens */
  --bg: var(--paper);
  --fg: var(--ink);
  --muted: var(--stone);
  --link: #2f4bb0;           /* deep blue, 6.6:1 on cream */
  --link-on-dark: #8fd8ff;
  --accent-on-dark: #a9b4ff;
  --border: #d9d1c4;
  --border-dark: rgba(255,255,255,.14);
  --error: #b42318;
  --success: #116149;
  --focus: #2f4bb0;

  /* Type */
  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  /* Spacing (spacious) */
  --s1: 4px; --s2: 8px; --s3: 16px; --s4: 24px; --s5: 32px; --s6: 48px; --s7: 64px; --s8: 96px; --s9: 128px;
  --container: 1200px;
  --radius: 2px;

  --z-header: 100;
  --z-drawer: 200;
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-weight: 400; font-size: 17px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.on-dark :focus-visible, .site-header :focus-visible, .hero :focus-visible, .site-footer :focus-visible { outline-color: var(--link-on-dark); }

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--ink); color: #fff; padding: 12px 18px; }
.skip-link:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0 0 var(--s4); letter-spacing: -.005em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.45rem, 2.2vw, 1.8rem); }
h4 { font-size: 1.3rem; }
h1 em, h2 em, h3 em { font-style: italic; }
p { margin: 0 0 var(--s3); }
.lede { font-family: var(--serif); font-size: clamp(1.3rem, 2.2vw, 1.6rem); line-height: 1.45; }
.eyebrow {
  font-family: var(--sans); font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 500;
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: var(--s3); color: var(--muted);
}
.eyebrow::before { content: ""; width: 36px; height: 2px; background: var(--grad); }
.on-dark .eyebrow { color: var(--mist); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.small { font-size: .88rem; }
.muted { color: var(--muted); }
.on-dark .muted { color: var(--mist); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--s4); }
.narrow { max-width: 780px; }
.section { padding: var(--s8) 0; }
.section-sm { padding: var(--s7) 0; }
.on-dark { background: var(--ink); color: var(--cream); }
.on-dark a:not(.btn) { color: var(--link-on-dark); }
.on-cream { background: var(--cream); }
.grid { display: grid; gap: var(--s5); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .section { padding: var(--s9) 0; } }
.center { text-align: center; }
.rule { height: 1px; border: 0; background: var(--grad); opacity: .8; margin: var(--s5) 0; }
.section-head { max-width: 720px; margin-bottom: var(--s6); }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head.center .eyebrow { justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 28px; border-radius: var(--radius);
  font-family: var(--sans); font-size: .82rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease), transform .15s var(--ease);
  touch-action: manipulation;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--grad-soft); color: var(--ink); border: 0; }
.btn-primary:hover { box-shadow: 0 10px 30px -10px rgba(128,128,255,.5); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--cream); }
.on-dark .btn-outline, .hero .btn-outline { color: var(--cream); border-color: rgba(243,238,230,.7); }
.on-dark .btn-outline:hover, .hero .btn-outline:hover { background: var(--cream); color: var(--ink); }
.btn[disabled], .btn[aria-busy="true"] { opacity: .55; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s3); }
.text-link { font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; padding: 8px 0; }
.text-link::after { content: "→"; transition: transform .2s var(--ease); }
.text-link:hover::after { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-header);
  color: var(--cream); transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-solid, .site-header.always-solid { background: rgba(26,25,24,.96); box-shadow: 0 1px 0 var(--border-dark); }
@supports (backdrop-filter: blur(8px)) { .site-header.is-solid, .site-header.always-solid { background: rgba(26,25,24,.88); backdrop-filter: blur(10px); } }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 84px; }
.brand { display: flex; flex-direction: column; text-decoration: none; color: inherit; line-height: 1; }
.brand-name { font-family: var(--serif); font-size: 1.75rem; letter-spacing: .01em; }
.brand-name em { font-style: italic; }
.brand-sub { font-size: .66rem; letter-spacing: .26em; text-transform: uppercase; margin-top: 6px; color: var(--mist); }
.brand-sub b { font-weight: 500; color: var(--cream); }

.nav { display: none; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav-list > li { position: relative; }
.nav-link, .nav-toggle {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px;
  color: var(--cream); text-decoration: none; background: none; border: 0; cursor: pointer;
  font-family: var(--sans); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 400;
}
.nav-link:hover, .nav-toggle:hover, .nav-link[aria-current="page"] { color: #fff; text-decoration: underline; text-decoration-color: #8080ff; text-underline-offset: 8px; }
.nav-toggle svg { width: 10px; height: 10px; transition: transform .2s var(--ease); }
.nav-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.submenu {
  position: absolute; top: 100%; left: 0; min-width: 280px; list-style: none; margin: 0; padding: 12px 0;
  background: var(--ink-2); border-top: 2px solid; border-image: var(--grad) 1; box-shadow: 0 20px 40px rgba(0,0,0,.3);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.submenu a { display: block; padding: 10px 20px; color: var(--cream); text-decoration: none; font-size: .95rem; }
.submenu a:hover, .submenu a:focus-visible { background: var(--ink-3); }
.has-sub.open .submenu { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) and (min-width: 1100px) { .has-sub:hover .submenu { opacity: 1; visibility: visible; transform: none; } }
.header-cta { display: none; }
.menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; background: none; border: 1px solid var(--border-dark); color: var(--cream); cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; }
@media (min-width: 1100px) {
  .nav { display: block; }
  .header-cta { display: inline-flex; --h: 44px; padding: 0 20px; }
  .menu-btn { display: none; }
}

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: var(--z-drawer); background: var(--ink); color: var(--cream); padding: var(--s4); overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .3s var(--ease), visibility .3s; }
.drawer.open { transform: none; visibility: visible; }
.drawer-top { display: flex; justify-content: space-between; align-items: center; min-height: 60px; margin-bottom: var(--s4); }
.drawer h2 { font-size: .75rem; font-family: var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--mist); margin: var(--s4) 0 var(--s2); }
.drawer ul { list-style: none; margin: 0; padding: 0; }
.drawer a { display: block; padding: 12px 0; color: var(--cream); text-decoration: none; font-family: var(--serif); font-size: 1.5rem; border-bottom: 1px solid var(--border-dark); }
.drawer .btn { margin-top: var(--s5); width: 100%; font-family: var(--sans); font-size: .82rem; border: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; align-items: flex-end; color: var(--cream); background: var(--ink); overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,19,18,.55) 0%, rgba(20,19,18,.35) 35%, rgba(20,19,18,.88) 100%), linear-gradient(90deg, rgba(20,19,18,.75) 0%, rgba(20,19,18,0) 70%); }
.hero-inner { position: relative; z-index: 1; padding-top: 140px; padding-bottom: var(--s7); width: 100%; }
.hero h1 { max-width: 15ch; margin-bottom: var(--s4); }
.hero .lede { max-width: 34rem; color: #ece6dc; }
.hero-tabs { display: flex; width: max-content; max-width: 100%; flex-wrap: wrap; border: 1px solid rgba(243,238,230,.45); border-radius: 999px; padding: 4px; margin-bottom: var(--s4); gap: 2px; }
.hero-tabs button { min-height: 40px; padding: 0 18px; border-radius: 999px; border: 0; background: transparent; color: var(--cream); font: 500 .75rem var(--sans); letter-spacing: .16em; text-transform: uppercase; cursor: pointer; }
.hero-tabs button[aria-selected="true"] { background: var(--cream); color: var(--ink); }
.hero-search { margin-top: var(--s5); background: var(--paper); padding: 10px; display: flex; flex-direction: column; gap: 10px; max-width: 620px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); }
.hero-search label { color: var(--ink); }
.hero-search input { flex: 1; min-height: 52px; border: 1px solid var(--border); background: #fff; padding: 0 16px; font: 400 1rem var(--sans); color: var(--ink); }
.hero-search .btn { white-space: nowrap; }
@media (min-width: 640px) { .hero-search { flex-direction: row; } }
.hero-scroll { position: absolute; z-index: 1; bottom: 18px; left: 50%; transform: translateX(-50%); font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--mist); }

/* Page hero (interior pages) */
.page-hero { position: relative; padding: 170px 0 var(--s7); background: var(--ink); color: var(--cream); overflow: hidden; }
.page-hero.has-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,19,18,.92) 0%, rgba(20,19,18,.7) 55%, rgba(20,19,18,.45) 100%); }
.page-hero-media { position: absolute; inset: 0; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { max-width: 18ch; }
.page-hero .lede { max-width: 40rem; color: #ece6dc; }
.page-hero::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--grad); z-index: 2; }
.breadcrumbs { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: var(--s4); color: var(--mist); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; opacity: .6; }
.breadcrumbs a { color: var(--mist); text-decoration: none; }
.breadcrumbs a:hover { color: #fff; text-decoration: underline; }

/* ---------- Offer cards (lead magnets) ---------- */
.offers { position: relative; margin-top: -1px; }
.offer {
  display: flex; flex-direction: column; gap: var(--s3); padding: var(--s5); background: var(--ink-2); color: var(--cream);
  border: 1px solid var(--border-dark); position: relative; text-decoration: none; transition: transform .25s var(--ease), border-color .25s var(--ease);
}
.offer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--grad); transform-origin: left; transform: scaleX(.25); transition: transform .35s var(--ease); }
.offer:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.28); }
.offer:hover::before { transform: scaleX(1); }
.offer h3 { margin: 0; color: #fff; }
.offer p { color: var(--mist); margin: 0; flex: 1; }
.offer .icon { width: 40px; height: 40px; color: var(--accent-on-dark); }
.offer .text-link { color: var(--link-on-dark); }

/* ---------- About split (reference-inspired) ---------- */
.about-split { display: grid; gap: var(--s6); align-items: center; }
@media (min-width: 900px) { .about-split { grid-template-columns: 5fr 6fr; gap: var(--s8); } }
.photo-stack { position: relative; max-width: 460px; padding-bottom: 60px; padding-right: 60px; }
.photo-stack .main { aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.photo-stack .accent { position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 3/4; object-fit: cover; border: 8px solid var(--cream); }
.signature { font-family: var(--serif); font-style: italic; font-size: 2rem; }

/* ---------- Service / page cards ---------- */
.card { background: var(--paper); border: 1px solid var(--border); padding: var(--s5); display: flex; flex-direction: column; gap: var(--s2); transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.card:hover { border-color: var(--stone); box-shadow: 0 18px 40px -24px rgba(26,25,24,.35); }
.card h3 { margin-bottom: var(--s2); }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card .num { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--link); }
.card p { color: var(--muted); margin: 0; }
.on-cream .card { background: var(--paper); }

/* ---------- Stats / proof strip ---------- */
.proof { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s4); text-align: center; }
@media (min-width: 900px) { .proof { grid-template-columns: repeat(4, 1fr); } }
.proof strong { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.1; }
.proof span { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--mist); }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.gallery figure { margin: 0; overflow: hidden; background: var(--ink-2); }
.gallery img { aspect-ratio: 4/5; object-fit: cover; width: 100%; transition: transform .6s var(--ease); }
.gallery figure:hover img { transform: scale(1.03); }

/* ---------- Content (long-form SEO pages) ---------- */
.content-layout { display: grid; gap: var(--s6); }
@media (min-width: 1024px) { .content-layout { grid-template-columns: minmax(0, 1fr) 380px; gap: var(--s8); align-items: start; } }
.prose { max-width: 70ch; }
.prose h2 { margin-top: var(--s6); font-size: clamp(1.8rem, 3vw, 2.4rem); }
.prose h3 { margin-top: var(--s5); }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 var(--s4); }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--link); }
.prose blockquote { margin: var(--s5) 0; padding: var(--s4) var(--s5); background: var(--cream); border-left: 3px solid; border-image: linear-gradient(180deg, #9a6bff, #00e0ff) 1; font-family: var(--serif); font-size: 1.35rem; line-height: 1.45; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 var(--s4); font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { font-weight: 500; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.table-wrap { overflow-x: auto; }
.callout { padding: var(--s4); background: var(--cream); border: 1px solid var(--border); margin: var(--s4) 0; }
.callout strong { font-weight: 500; }
.disclaimer { font-size: .82rem; color: var(--muted); border-top: 1px solid var(--border); padding-top: var(--s3); margin-top: var(--s6); }
.sticky-aside { position: sticky; top: 110px; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; list-style: none; padding: var(--s4) 40px var(--s4) 0; position: relative; font-family: var(--serif); font-size: 1.35rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--sans); font-size: 1.4rem; color: var(--link); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding: 0 0 var(--s4); color: var(--muted); max-width: 70ch; }

/* ---------- Forms ---------- */
.lead-form { background: var(--paper); color: var(--ink); padding: var(--s5); border: 1px solid var(--border); position: relative; }
.lead-form::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad); }
.lead-form h2, .lead-form h3 { font-size: 1.9rem; margin-bottom: var(--s2); }
.lead-form .form-intro { color: var(--muted); margin-bottom: var(--s4); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--s3); }
.field-row { display: grid; gap: 0 var(--s3); grid-template-columns: 1fr; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.lead-form label, .lead-form legend { font-size: .82rem; font-weight: 500; letter-spacing: .04em; color: var(--ink); }
.lead-form .req { color: var(--error); }
.lead-form .opt { color: var(--muted); font-weight: 400; }
.lead-form input[type=text], .lead-form input[type=email], .lead-form input[type=tel], .lead-form input[type=number], .lead-form select, .lead-form textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #b9b0a2; border-radius: var(--radius); background: #fff;
  font: 400 1rem/1.4 var(--sans); color: var(--ink); transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.lead-form textarea { min-height: 110px; resize: vertical; }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 3px rgba(47,75,176,.22); }
.lead-form [aria-invalid="true"] { border-color: var(--error) !important; }
.field-error { color: var(--error); font-size: .85rem; min-height: 0; }
.field-error:empty { display: none; }
.hint { color: var(--muted); font-size: .82rem; }
.consent { margin: var(--s3) 0 0; font-size: .82rem; line-height: 1.55; color: var(--stone); }
.consent-note { font-size: .78rem; line-height: 1.55; color: var(--muted); margin: var(--s2) 0 var(--s4); }
.lead-form .btn { width: 100%; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: var(--s3); padding: 14px 16px; border: 1px solid; font-size: .95rem; }
.form-status:empty { display: none; }
.form-status.ok { border-color: var(--success); color: var(--success); background: #eaf6f1; }
.form-status.err { border-color: var(--error); color: var(--error); background: #fdf0ee; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0 0 var(--s3); }
.chips legend { margin-bottom: 8px; padding: 0; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid #b9b0a2; border-radius: 999px; font-size: .88rem; cursor: pointer; transition: all .15s var(--ease); background: #fff; }
.chip input:checked + span { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

/* ---------- Blog ---------- */
.post-card { display: flex; flex-direction: column; gap: var(--s2); border-top: 1px solid var(--border); padding-top: var(--s4); position: relative; }
.post-card .meta { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.post-card h3 a { color: inherit; text-decoration: none; }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; }
.post-card h3 a:hover { text-decoration: underline; }
.on-dark .post-card { border-color: var(--border-dark); }
.on-dark .post-card .meta { color: var(--mist); }
.tag { display: inline-block; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; padding: 4px 10px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); }
.post-meta { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--mist); }

/* ---------- Footer ---------- */
.site-footer { background: #121110; color: var(--mist); padding: var(--s8) 0 var(--s5); font-size: .92rem; }
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; gap: var(--s6); grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-grid h2 { font-family: var(--sans); font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; color: var(--cream); margin-bottom: var(--s3); font-weight: 500; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 6px; }
.footer-grid li a { display: inline-block; padding: 4px 0; }
.brokerage { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4); padding: var(--s5) 0; margin-top: var(--s6); border-top: 1px solid var(--border-dark); border-bottom: 1px solid var(--border-dark); }
/* Text lockup placeholder — swap for Real's official logo file (see README) */
.real-lockup { display: inline-flex; flex-direction: column; line-height: 1; padding: 12px 18px; border: 1px solid var(--border-dark); color: var(--cream); }
.real-lockup b { font-family: var(--sans); font-weight: 600; font-size: 1.6rem; letter-spacing: -.01em; }
.real-lockup span { font-size: .62rem; letter-spacing: .26em; text-transform: uppercase; margin-top: 4px; color: var(--mist); }
.brokerage-logo { height: 48px; width: auto; }
.legal { font-size: .78rem; line-height: 1.7; margin-top: var(--s4); color: #a39b8f; }
.legal p { margin-bottom: 8px; }
.eho { display: inline-flex; align-items: center; gap: 8px; }
.eho svg { width: 26px; height: 26px; }

/* ---------- Sticky mobile CTA ---------- */
.mobile-cta { position: fixed; z-index: 90; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: flex; gap: 8px; transform: translateY(150%); transition: transform .3s var(--ease); }
.mobile-cta.show { transform: none; }
.mobile-cta .btn { flex: 1; --h: 50px; padding: 0 12px; font-size: .74rem; box-shadow: 0 10px 30px -8px rgba(0,0,0,.45); }
.mobile-cta .btn-outline { background: var(--ink); color: var(--cream); border-color: var(--ink); }
@media (min-width: 900px) { .mobile-cta { display: none; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Misc ---------- */
.icon-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s3); }
.icon-list li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.icon-list svg { width: 22px; height: 22px; margin-top: 4px; color: var(--link); }
.on-dark .icon-list svg { color: var(--accent-on-dark); }
.base-list { display: grid; gap: var(--s3); grid-template-columns: 1fr; }
@media (min-width: 768px) { .base-list { grid-template-columns: 1fr 1fr; } }
.base { padding: var(--s4); border: 1px solid var(--border-dark); }
.base h3 { font-size: 1.4rem; margin-bottom: 6px; color: #fff; }
.base p { margin: 0; color: var(--mist); font-size: .95rem; }
.placeholder-note { background: #fff6d6; color: #5c4400; border: 1px dashed #c9a227; padding: 12px 16px; font-size: .85rem; margin: var(--s3) 0; }
.brokerage-tile { display: inline-flex; align-items: center; justify-content: center; background: #fff; padding: 10px 18px; }
a.card { color: inherit; text-decoration: none; }

/* Headshot with background removed: show the whole photo (no head crop) and let it sit on the page color */
.photo-stack .main.cutout { aspect-ratio: auto; object-fit: contain; object-position: center bottom; background: transparent;
  filter: drop-shadow(0 24px 30px rgba(26,25,24,.12)); }
.photo-stack:has(.cutout)::before { content: ""; position: absolute; left: 6%; right: 18%; top: 8%; bottom: 60px;
  border-radius: 999px 999px 0 0; background: linear-gradient(180deg, var(--cream-2), rgba(233,226,214,0)); z-index: -1; }
.photo-stack { isolation: isolate; }
.photo-stack .main.cutout { -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent 100%); mask-image: linear-gradient(180deg, #000 82%, transparent 100%); }

/* ---------- Reviews ---------- */
.rating-row { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s4); }
.rating-card { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 240px; padding: var(--s5) var(--s6);
  background: var(--paper); border: 1px solid var(--border); color: var(--ink); text-decoration: none; position: relative; }
.rating-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--grad); }
a.rating-card:hover { border-color: var(--stone); }
.rating-num { font-family: var(--serif); font-size: 3.2rem; line-height: 1; }
.stars { display: inline-flex; gap: 2px; color: var(--brass); }
.rating-src { text-align: center; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.review-grid { columns: 1; column-gap: var(--s4); margin-top: var(--s6); }
@media (min-width: 768px) { .review-grid { columns: 2; } }
@media (min-width: 1100px) { .review-grid { columns: 3; } }
.review-card { break-inside: avoid; margin: 0 0 var(--s4); padding: var(--s5); background: var(--paper); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 12px; }
.review-headline { font-size: 1.5rem; margin: 0; line-height: 1.25; }
.review-text { margin: 0; color: var(--stone); font-size: .98rem; line-height: 1.7; }
.review-text p { margin: 0 0 10px; }
.review-card figcaption { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--link); font-weight: 500; padding-top: 12px; border-top: 1px solid var(--border); }
.js-clamp .review-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 7; overflow: hidden; }
.js-clamp .review-text.open { display: block; -webkit-line-clamp: unset; }
.js-clamp .review-text p:not(:first-child) { display: none; }
.js-clamp .review-text.open p { display: block; }
.review-more { display: none; align-self: flex-start; background: none; border: 0; padding: 8px 0; min-height: 40px; cursor: pointer;
  font: 500 .76rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--link); text-decoration: underline; text-underline-offset: 4px; }
.js-clamp .review-more.needed { display: inline-block; }
