/* ============================================================
   ALEE DOUGLASS — NEIGHBORHOOD JOURNAL
   Luxury editorial design system
   Palette: navy, cream, white, charcoal, gold
   ============================================================ */

:root {
  --navy: #0f1f38;
  --navy-deep: #0a1628;
  --cream: #f6f1e7;
  --cream-soft: #faf7f0;
  --white: #ffffff;
  --charcoal: #2b2b2b;
  --grey: #6d6d6d;
  --gold: #b69660;
  --gold-soft: #d3bb8e;
  --mist: #e8eef6;        /* soft Sotheby's blue */
  --mist-deep: #dde6f0;
  --line: rgba(15, 31, 56, 0.12);

  /* Sotheby's brand typefaces are Benton Sans / Mercury; Arial and Times New
     Roman are the guideline-approved web-safe substitutes. */
  --font-display: "Times New Roman", Times, Georgia, serif;
  --font-body: Arial, "Helvetica Neue", Helvetica, sans-serif;

  --max-w: 1200px;
  --radius: 2px;
  --shadow: 0 18px 50px rgba(15, 31, 56, 0.10);
  --shadow-sm: 0 8px 24px rgba(15, 31, 56, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--cream-soft);
  line-height: 1.7;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-tight { padding: clamp(40px, 6vw, 72px) 0; }
.bg-cream { background: var(--cream); }
.bg-navy { background: var(--navy); }
.bg-white { background: var(--white); }

/* Rotating section shades (applied automatically by js/main.js) */
.bg-a { background: var(--white); }
.bg-b { background: var(--mist); }
.bg-c { background: var(--cream); }
.bg-b .card, .bg-b .stat { box-shadow: 0 10px 28px rgba(15, 31, 56, 0.10); }
.bg-b .filter-btn { background: var(--white); }
.bg-b .search-input { background: var(--white); }
.center { text-align: center; }

/* Eyebrow / kicker label */
.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 18px;
}
.section-intro { max-width: 640px; margin: 14px auto 0; color: var(--grey); }

/* ------------------------------------------------------------
   Buttons
------------------------------------------------------------ */
.btn {
  display: inline-block;
  padding: 15px 34px;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid var(--navy);
  color: var(--navy);
  background: transparent;
  cursor: pointer;
  transition: all 0.35s ease;
  border-radius: var(--radius);
  text-align: center;
}
.btn:hover { background: var(--navy); color: var(--cream); }

.btn-solid { background: var(--navy); color: var(--cream); }
.btn-solid:hover { background: var(--gold); border-color: var(--gold); color: var(--white); }

.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--white); }
.btn-gold:hover { background: var(--navy); border-color: var(--navy); }

.btn-light { border-color: var(--cream); color: var(--cream); }
.btn-light:hover { background: var(--cream); color: var(--navy); }

/* ------------------------------------------------------------
   Header / Navigation (injected by main.js)
------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(250, 247, 240, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 78px;
}
/* Brand lockup: PSIR logo, directly followed by the DBA name, on one line. */
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand-logo { height: 40px; width: auto; flex: none; display: block; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--navy);
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
@media (max-width: 640px) { .brand-logo { height: 30px; } .brand-name { font-size: 1.05rem; } }
@media (max-width: 480px) {
  .brand { gap: 10px; }
  .brand-logo { height: 26px; }
  .brand-name { font-size: 0.92rem; }
  .search-btn { width: 32px; height: 32px; }
  .nav-toggle { width: 36px; height: 36px; }
  .nav-right { gap: 10px; }
}
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charcoal);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: all 0.3s;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); border-bottom-color: var(--gold); }
.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-socials { display: flex; gap: 12px; align-items: center; }
.nav-socials a { color: var(--navy); opacity: 0.75; transition: 0.3s; }
.nav-socials a:hover { color: var(--gold); opacity: 1; }
.nav-socials svg { width: 16px; height: 16px; }
.nav-cta { padding: 11px 22px; font-size: 0.68rem; }

.search-btn {
  background: none; border: none; cursor: pointer; color: var(--navy);
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; transition: 0.3s;
}
.search-btn:hover { color: var(--gold); background: rgba(182,150,96,0.12); }

.search-overlay {
  position: fixed; inset: 0; background: rgba(10,22,40,0.6); z-index: 1000;
  display: none; align-items: flex-start; justify-content: center; padding: 12vh 24px 24px;
}
.search-overlay.show { display: flex; }
.search-panel {
  background: var(--cream-soft); width: 100%; max-width: 620px;
  padding: 40px 36px; position: relative; border-top: 4px solid var(--gold);
  box-shadow: var(--shadow); border-radius: var(--radius);
  animation: popIn 0.35s ease;
}
.search-results { margin-top: 18px; max-height: 46vh; overflow-y: auto; }
.search-result {
  display: block; padding: 14px 16px; border-bottom: 1px solid var(--line); transition: 0.25s;
}
.search-result:hover { background: var(--cream); }
.search-result strong { font-family: var(--font-display); color: var(--navy); font-weight: 500; font-size: 1.05rem; display: block; }
.search-result span { font-size: 0.82rem; color: var(--grey); }
.search-empty { text-align: center; color: var(--grey); font-style: italic; padding: 20px 0; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 42px; height: 42px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  align-items: center;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); transition: 0.3s; }

@media (max-width: 1180px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 78px 0 auto 0;
    background: var(--cream-soft);
    flex-direction: column;
    gap: 0;
    padding: 12px 0 24px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 24px; width: 100%; text-align: center; font-size: 0.9rem; }
  .nav-socials { display: none; }
}
@media (max-width: 560px) { .nav-cta { display: none; } }

/* ------------------------------------------------------------
   Breadcrumbs & back button
------------------------------------------------------------ */
.breadcrumb-bar {
  border-bottom: 1px solid var(--line);
  background: var(--white);
  font-size: 0.78rem;
  color: var(--grey);
}
.breadcrumb-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 0; flex-wrap: wrap;
}
.breadcrumbs a { color: var(--grey); transition: 0.3s; }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs span.sep { margin: 0 8px; color: var(--gold); }
.back-link { color: var(--navy); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.7rem; cursor: pointer; background: none; border: none; font-family: var(--font-body); }
.back-link:hover { color: var(--gold); }

/* ------------------------------------------------------------
   Hero
------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--cream);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,22,40,0.45), rgba(10,22,40,0.68));
}
.hero-content { position: relative; z-index: 2; max-width: 860px; padding: 90px 24px; }
.hero-content h1 { color: var(--white); margin-bottom: 22px; }
.hero-content p { font-size: 1.06rem; color: rgba(246,241,231,0.92); max-width: 680px; margin: 0 auto 36px; font-weight: 300; }
.hero-eyebrow { color: var(--gold-soft); }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-small { min-height: 52vh; }

/* ------------------------------------------------------------
   Cards & grids
------------------------------------------------------------ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.neighborhood-card {
  position: relative; display: block; height: 480px; overflow: hidden;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.neighborhood-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.neighborhood-card:hover img { transform: scale(1.05); }
.neighborhood-card .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,22,40,0) 35%, rgba(10,22,40,0.75));
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 40px; color: var(--cream);
}
.neighborhood-card h3 { color: var(--white); font-size: 2rem; margin: 6px 0 8px; }
.neighborhood-card .overlay p { font-size: 0.92rem; color: rgba(246,241,231,0.88); max-width: 420px; }
.neighborhood-card .card-link {
  margin-top: 18px; font-size: 0.72rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold-soft); font-weight: 600;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-img { height: 240px; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s; }
.card:hover .card-img img { transform: scale(1.06); }
.card-body { padding: 26px 28px 30px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-cat {
  font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold); font-weight: 700;
}
.card-body h3 { font-size: 1.3rem; }
.card-body p { font-size: 0.92rem; color: var(--grey); flex: 1; }
.card-meta { font-size: 0.75rem; color: var(--grey); letter-spacing: 0.06em; }
.card-lg .card-img { height: 320px; }

/* Feature (cover) card */
.cover-card {
  position: relative; display: block; min-height: 520px;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  color: var(--cream);
}
.cover-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover-card .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,22,40,0.05) 30%, rgba(10,22,40,0.82));
  display: flex; flex-direction: column; justify-content: flex-end; padding: 48px;
}
.cover-card h3 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 10px 0; }
.cover-card p { max-width: 560px; color: rgba(246,241,231,0.9); }

/* ------------------------------------------------------------
   Filters & search
------------------------------------------------------------ */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 34px 0 12px; }
.filter-btn {
  padding: 9px 20px; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase;
  border: 1px solid var(--line); background: var(--white); color: var(--charcoal);
  cursor: pointer; transition: 0.3s; border-radius: 999px; font-weight: 600;
}
.filter-btn:hover { border-color: var(--gold); color: var(--gold); }
.filter-btn.active { background: var(--navy); color: var(--cream); border-color: var(--navy); }

.search-wrap { max-width: 460px; margin: 8px auto 40px; }
.search-input {
  width: 100%; padding: 14px 20px; border: 1px solid var(--line);
  border-radius: 999px; font-family: var(--font-body); font-size: 0.95rem;
  background: var(--white); color: var(--charcoal); outline: none; transition: 0.3s;
}
.search-input:focus { border-color: var(--gold); }
.no-results { display: none; text-align: center; color: var(--grey); padding: 40px 0; font-style: italic; }

/* ------------------------------------------------------------
   By the Numbers — stat infographics
------------------------------------------------------------ */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 980px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .stat-grid { grid-template-columns: 1fr; } }
.stat {
  background: var(--white); padding: 34px 26px; text-align: center;
  border-top: 3px solid var(--gold); box-shadow: var(--shadow-sm); border-radius: var(--radius);
}
.stat .num { font-family: var(--font-display); font-size: 2.2rem; color: var(--navy); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat .label { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--grey); margin-top: 10px; font-weight: 600; }
.stat .delta { font-size: 0.78rem; margin-top: 6px; color: var(--gold); font-weight: 600; }

/* Boxless stats — big editorial numbers, no cards */
.stats-bare .stat {
  background: transparent; border: 0; box-shadow: none; padding: 24px 10px;
}
.stats-bare .stat .num {
  font-size: clamp(2.6rem, 5.5vw, 3.8rem);
  font-weight: 500;
}
.stats-bare .stat .num::after {
  content: ""; display: block; width: 44px; height: 2px;
  background: var(--gold); margin: 16px auto 0;
}
.stats-bare .stat .label { margin-top: 14px; }

/* Neighborhoods vs. County comparison */
.compare {
  max-width: 820px; margin-left: auto; margin-right: auto;
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden; text-align: left;
}
.compare-head, .compare-row {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr;
  align-items: center; padding: 16px 24px; gap: 12px;
}
.compare-head {
  background: var(--navy); color: var(--cream);
  font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700;
}
.compare-head span:not(:first-child), .compare-row span:not(:first-child) { text-align: right; }
.compare-row { border-bottom: 1px solid var(--line); }
.compare-label { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey); font-weight: 600; }
.compare-ours { font-family: var(--font-display); font-size: 1.4rem; color: var(--navy); font-weight: 600; }
.compare-county { font-family: var(--font-display); font-size: 1.15rem; color: var(--grey); }
.compare-note { font-size: 0.7rem; color: var(--grey); padding: 14px 24px; margin: 0; }
@media (max-width: 640px) {
  .compare-head, .compare-row { padding: 12px 10px; gap: 6px; grid-template-columns: 1.1fr 1fr 1fr 1fr; }
  .compare-label { font-size: 0.62rem; }
  .compare-ours { font-size: 0.95rem; }
  .compare-county { font-size: 0.85rem; }
  .compare-head { font-size: 0.6rem; letter-spacing: 0.08em; }
}

.perspective {
  background: var(--navy); color: rgba(246,241,231,0.92);
  padding: clamp(40px, 6vw, 72px); border-radius: var(--radius);
  position: relative;
}
.perspective h3 { color: var(--gold-soft); margin-bottom: 16px; }
.perspective p { font-size: 1.05rem; font-weight: 300; max-width: 760px; }

/* ------------------------------------------------------------
   Video
------------------------------------------------------------ */
.video-embed { position: relative; padding-top: 56.25%; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--navy-deep); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Lightweight YouTube facade - loads a thumbnail image instead of the full
   YouTube player until the visitor actually clicks play. */
.yt-facade { cursor: pointer; background-size: cover; background-position: center; }
.yt-facade .yt-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 68px; height: 68px; border-radius: 50%;
  background: rgba(15, 31, 56, 0.8); display: flex; align-items: center; justify-content: center;
  transition: 0.25s;
}
.yt-facade:hover .yt-play { background: var(--gold); transform: translate(-50%, -50%) scale(1.08); }
.yt-facade .yt-play::after {
  content: ""; margin-left: 4px;
  border-style: solid; border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent var(--cream);
}
.video-thumb { position: relative; }
.play-badge {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 58px; height: 58px; border-radius: 50%;
  background: rgba(246,241,231,0.92); display: flex; align-items: center; justify-content: center;
  transition: 0.3s;
}
.play-badge::after { content: ""; border-left: 16px solid var(--navy); border-top: 10px solid transparent; border-bottom: 10px solid transparent; margin-left: 4px; }
.card:hover .play-badge { background: var(--gold); }
.card:hover .play-badge::after { border-left-color: var(--white); }

/* Instagram reel cards */
.video-card .instagram-media {
  margin: 0 !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.video-card .instagram-media a { display: block; padding: 40px 20px; text-align: center; color: var(--gold); font-weight: 600; }

/* ------------------------------------------------------------
   Article page
------------------------------------------------------------ */
.article-hero { height: 62vh; min-height: 420px; position: relative; }
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.article-header { max-width: 760px; margin: -90px auto 0; position: relative; z-index: 3; background: var(--white); padding: clamp(34px, 5vw, 60px); box-shadow: var(--shadow); text-align: center; border-radius: var(--radius); }
.article-header .subtitle { font-family: var(--font-display); font-style: italic; color: var(--grey); font-size: 1.15rem; margin-top: 14px; }
.article-body { max-width: 720px; margin: 0 auto; padding: clamp(48px, 7vw, 80px) 24px; }
.article-body p { margin-bottom: 28px; font-size: 1.08rem; line-height: 1.9; color: #3a3a3a; }
.article-body p.lede::first-letter {
  font-family: var(--font-display); float: left; font-size: 4.4rem;
  line-height: 0.85; padding-right: 12px; color: var(--gold);
}
.article-body h2 { margin: 48px 0 20px; font-size: 1.7rem; }
.article-body figure { margin: 44px -8vw; }
@media (max-width: 900px) { .article-body figure { margin: 36px 0; } }
.article-body figcaption { text-align: center; font-size: 0.8rem; color: var(--grey); margin-top: 12px; letter-spacing: 0.06em; }
.pullquote {
  font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2rem);
  font-style: italic; color: var(--navy); text-align: center;
  border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold);
  padding: 36px 12px; margin: 48px 0; line-height: 1.4;
}
.article-nav { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-top: 34px; flex-wrap: wrap; }
.article-nav a { max-width: 44%; }
.article-nav .dir { font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.article-nav .title { font-family: var(--font-display); color: var(--navy); font-size: 1.05rem; }

/* Soft CTA */
.soft-cta {
  background: var(--cream); border: 1px solid var(--line);
  padding: clamp(36px, 5vw, 56px); text-align: center; border-radius: var(--radius);
}
.soft-cta p { max-width: 560px; margin: 14px auto 26px; color: var(--grey); }

/* ------------------------------------------------------------
   About / portrait split
------------------------------------------------------------ */
.split { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }
.split-even { grid-template-columns: 1fr 1fr; align-items: start; }
@media (max-width: 880px) { .split-even { grid-template-columns: 1fr; } }
.portrait-frame { position: relative; }
.portrait-frame img { width: 100%; height: 560px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.portrait-tall img { height: 760px; }
@media (max-width: 880px) { .portrait-tall img { height: 520px; } }
.split-even .portrait-frame { position: sticky; top: 110px; }
@media (max-width: 880px) { .split-even .portrait-frame { position: static; } }

/* Long bio next to the portrait - smaller, denser text */
.bio-text p { font-size: 0.93rem; line-height: 1.75; color: #444; }
.bio-text p[style] { margin-top: 13px !important; }
.portrait-frame::after {
  content: ""; position: absolute; inset: 18px -18px -18px 18px;
  border: 1px solid var(--gold); z-index: -1; border-radius: var(--radius);
}

.testimonial { background: var(--white); padding: 36px; border-left: 3px solid var(--gold); box-shadow: var(--shadow-sm); border-radius: var(--radius); }
.testimonial p { font-style: italic; color: #444; font-size: 0.98rem; }
.testimonial .who { margin-top: 16px; font-style: normal; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); font-weight: 700; }

/* ------------------------------------------------------------
   Forms
------------------------------------------------------------ */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-grid .full { grid-column: 1 / -1; }
label { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--navy); font-weight: 700; display: block; margin-bottom: 8px; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line); background: var(--white);
  font-family: var(--font-body); font-size: 0.95rem; color: var(--charcoal);
  border-radius: var(--radius); outline: none; transition: border-color 0.3s;
}
input:focus, select:focus, textarea:focus { border-color: var(--gold); }
.form-success { display: none; text-align: center; padding: 30px; color: var(--navy); font-family: var(--font-display); font-size: 1.3rem; }

/* Newsletter band */
.newsletter-band { background: var(--navy); color: var(--cream); }
.newsletter-band h2 { color: var(--white); }
.newsletter-band p { color: rgba(246,241,231,0.85); }
.newsletter-band label { color: var(--gold-soft); }
.newsletter-band input, .newsletter-band select { border-color: rgba(246,241,231,0.25); background: rgba(255,255,255,0.06); color: var(--cream); }
.newsletter-band input::placeholder { color: rgba(246,241,231,0.5); }
.newsletter-band option { color: var(--charcoal); }

/* Calendar (Coffee & Convos) */
.calendar {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px;
  background: var(--white); padding: clamp(16px, 3vw, 32px);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.cal-head {
  text-align: center; font-size: 0.62rem; letter-spacing: 0.2em;
  color: var(--gold); font-weight: 700; padding: 8px 0;
}
.cal-day {
  text-align: center; padding: 12px 0; font-size: 0.9rem; color: var(--charcoal);
  border-radius: 50%; aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
}
.cal-day.other { color: rgba(109,109,109,0.35); }
.cal-day.today { border: 1px solid var(--gold); color: var(--navy); font-weight: 600; }
.cal-day.event {
  background: var(--navy); color: var(--cream); font-weight: 700;
  box-shadow: 0 6px 16px rgba(15,31,56,0.3);
  position: relative; cursor: default; flex-direction: column;
}
.cal-tag {
  font-size: 0.56rem; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--gold-soft); font-weight: 700; line-height: 1.1; margin-top: 2px;
  padding: 0 4px; text-align: center;
}
@media (max-width: 560px) { .cal-tag { display: none; } }

.cal-nav { display: flex; align-items: center; justify-content: center; gap: 22px; }
.cal-arrow {
  background: var(--white); border: 1px solid var(--line); color: var(--navy);
  width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
  font-size: 1rem; transition: 0.3s; display: flex; align-items: center; justify-content: center;
}
.cal-arrow:hover { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.cal-key {
  display: inline-block; width: 12px; height: 12px; border-radius: 50%;
  background: var(--navy); margin-right: 6px; vertical-align: -1px;
}

/* FAQ */
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; padding: 20px 24px; }
.faq summary { cursor: pointer; font-family: var(--font-display); font-size: 1.1rem; color: var(--navy); }
.faq details p { margin-top: 12px; color: var(--grey); font-size: 0.95rem; }

/* ------------------------------------------------------------
   Footer (injected by main.js)
------------------------------------------------------------ */
.site-footer { background: var(--navy-deep); color: rgba(246,241,231,0.8); padding: 72px 0 32px; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 44px; }
@media (max-width: 940px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--gold-soft); font-family: var(--font-body); font-size: 0.7rem; letter-spacing: 0.26em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer a { color: rgba(246,241,231,0.8); transition: 0.3s; }
.site-footer a:hover { color: var(--gold-soft); }
.site-footer li { margin-bottom: 10px; }
.footer-brand-name { font-family: var(--font-display); font-size: 1.5rem; color: var(--white); }
.footer-socials { display: flex; gap: 14px; margin-top: 18px; }
.footer-socials svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(246,241,231,0.14); margin-top: 52px; padding-top: 26px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.76rem; color: rgba(246,241,231,0.55); }
.footer-news input { margin-bottom: 12px; border-color: rgba(246,241,231,0.25); background: rgba(255,255,255,0.06); color: var(--cream); }

/* ------------------------------------------------------------
   Floating CTA + popup
------------------------------------------------------------ */
.floating-cta {
  position: fixed; right: 22px; bottom: 22px; z-index: 950;
  background: var(--gold); color: var(--white); padding: 15px 26px;
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700;
  border-radius: 999px; box-shadow: 0 12px 30px rgba(15,31,56,0.35);
  transition: 0.3s;
}
.floating-cta:hover { background: var(--navy); transform: translateY(-3px); }
@media (max-width: 560px) { .floating-cta { padding: 13px 18px; font-size: 0.64rem; right: 14px; bottom: 14px; } }

/* Floating back buttons */
.back-float {
  position: fixed; left: 22px; z-index: 940;
  background: var(--navy); color: var(--cream);
  border: none; cursor: pointer;
  padding: 13px 24px; border-radius: 999px;
  font-family: var(--font-body); font-size: 0.72rem;
  letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700;
  box-shadow: 0 12px 30px rgba(15,31,56,0.35);
  transition: 0.3s;
}
.back-float:hover { background: var(--gold); transform: translateY(-2px); }
.back-float.top { top: 96px; }
.back-float.bottom { bottom: 22px; }
@media (max-width: 560px) {
  .back-float { padding: 11px 18px; font-size: 0.64rem; left: 14px; }
  .back-float.top { top: 88px; }
  .back-float.bottom { bottom: 14px; }
}

.popup-overlay {
  position: fixed; inset: 0; background: rgba(10,22,40,0.6); z-index: 1000;
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.popup-overlay.show { display: flex; }
.popup {
  background: var(--cream-soft); max-width: 520px; width: 100%; padding: clamp(36px, 5vw, 56px);
  text-align: center; position: relative; border-top: 4px solid var(--gold);
  box-shadow: var(--shadow); border-radius: var(--radius);
  animation: popIn 0.4s ease;
}
@keyframes popIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.popup p { color: var(--grey); margin: 16px 0 28px; }
.popup-close {
  position: absolute; top: 14px; right: 18px; background: none; border: none;
  font-size: 1.5rem; color: var(--grey); cursor: pointer; line-height: 1;
}
.popup-close:hover { color: var(--navy); }

/* ------------------------------------------------------------
   Image placeholders (shown automatically when a photo is missing)
------------------------------------------------------------ */
.img-placeholder {
  width: 100%; height: 100%; min-height: 220px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(135deg, var(--cream) 0%, #e9e0cf 100%);
  color: var(--navy); text-align: center; padding: 24px;
}
.img-placeholder .ph-icon { font-family: var(--font-display); font-size: 2rem; color: var(--gold); }
.img-placeholder .ph-label { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; opacity: 0.7; }
.img-placeholder .ph-file { font-size: 0.72rem; color: var(--gold); font-family: monospace; letter-spacing: 0; text-transform: none; }

/* Map */
.map-embed { border: 0; width: 100%; height: 380px; border-radius: var(--radius); box-shadow: var(--shadow-sm); }

/* Utility */
.mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; } .mt-4 { margin-top: 64px; }
.mb-2 { margin-bottom: 24px; } .mb-3 { margin-bottom: 40px; }
.gold-rule { width: 56px; height: 2px; background: var(--gold); margin: 22px auto; border: 0; }
.gold-rule.left { margin-left: 0; }

/* ------------------------------------------------------------
   Luxury treatment - main site (dark bands + grand hero)
------------------------------------------------------------ */
.section-dark { background: var(--navy); }
.section-dark h2, .section-dark h3 { color: var(--cream); }
.section-dark p, .section-dark .section-intro { color: rgba(246,241,231,0.78); }
.section-dark .t-quote p { color: rgba(246,241,231,0.92) !important; }
.section-dark .t-count { color: rgba(246,241,231,0.55) !important; }
.section-dark .stat .num { color: var(--cream); }
.section-dark .stat .label { color: rgba(246,241,231,0.6); }
.hero-luxe { min-height: 92vh; }
.hero-luxe .hero-eyebrow { letter-spacing: 0.35em; font-size: 0.72rem; }
.hero-luxe h1 { font-size: clamp(3rem, 7.5vw, 5.2rem); font-weight: 400; }
.hero-luxe .hero-content p { font-size: 1.02rem; max-width: 560px; }
.hero-scroll {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  color: rgba(246,241,231,0.75); font-size: 0.62rem; letter-spacing: 0.3em;
  text-transform: uppercase; text-align: center; z-index: 2;
}
.hero-scroll::after {
  content: ""; display: block; width: 1px; height: 36px;
  background: var(--gold); margin: 10px auto 0;
}

/* Coffee & Convos: calendar beside recurring event + locations */
.coffee-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(18px, 3vw, 30px); align-items: start; }
@media (max-width: 880px) { .coffee-grid { grid-template-columns: 1fr; } }

/* Main-site footer has no newsletter column */
.footer-grid.no-news { grid-template-columns: 2fr 1fr 1.4fr; }

/* Mobile fixes: footer stacking + hide floating buttons on small screens */
@media (max-width: 940px) { .footer-grid.no-news { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid.no-news { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .back-float, .floating-cta { display: none; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer-bottom > span:last-child { flex-wrap: wrap; row-gap: 10px; }
}

/* Belleair / Harbor Oaks Market Pulse stats - the inline 2-col grid on those
   pages is too tight for the big serif numbers on narrow phones */
@media (max-width: 480px) {
  [data-market-pulse] { grid-template-columns: 1fr !important; gap: 16px; }
}

/* Guides page: "Free Download" badge on each guide card */
.free-badge {
  display: inline-block; font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 700; color: var(--navy); background: var(--mist); padding: 5px 12px; border-radius: 999px;
}

/* Guides page: email-gate modal */
.gate-overlay {
  position: fixed; inset: 0; z-index: 1500;
  background: rgba(10, 22, 40, 0.72);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.gate-overlay.show { opacity: 1; pointer-events: auto; }
.gate-modal {
  position: relative;
  background: var(--navy);
  max-width: 560px; width: 100%;
  padding: clamp(32px, 5vw, 48px);
  text-align: center;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
  transform: scale(0.96) translateY(8px);
  transition: transform 0.25s ease;
}
.gate-overlay.show .gate-modal { transform: scale(1) translateY(0); }
.gate-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none; color: rgba(246,241,231,0.6);
  font-size: 1.8rem; line-height: 1; cursor: pointer; padding: 4px 8px;
  transition: color 0.2s;
}
.gate-close:hover { color: var(--cream); }
@media (max-width: 480px) { .gate-modal { padding: 32px 22px; } }
