/* =========================================================
   Jay & Jay Real Estate — public site styles
   ========================================================= */
:root {
  --navy-900: #0b1f33;
  --navy-800: #102a44;
  --navy-700: #183a5c;
  --navy-100: #e8eef5;
  --gold: #c9a24b;          /* brand gold (fills, on navy) */
  --gold-dark: #b38d38;     /* hover */
  --gold-light: #d4ae5a;    /* gold text on navy */
  --gold-text: #8a6a1f;     /* gold text on white (5:1 contrast) */
  --gold-soft: #f7efdc;     /* gold tint */
  --accent: var(--gold);
  --accent-dark: var(--gold-dark);
  --accent-soft: var(--gold-soft);
  --ink: #1b2430;
  --muted: #5b6776;
  --line: #e2e7ee;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --success: #1f7a4d;
  --danger: #b42318;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(11, 31, 51, .08);
  --shadow-lg: 0 24px 60px rgba(11, 31, 51, .16);
  --font-head: "DM Serif Display", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-text); text-decoration: none; }
a:hover { color: var(--navy-800); }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; color: var(--navy-900); }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.eyebrow {
  display: inline-block; font-family: var(--font-body); font-size: .78rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); margin-bottom: .8rem;
}
.eyebrow::before { content: ""; display: inline-block; width: 28px; height: 2px; background: var(--gold); vertical-align: middle; margin: -3px 10px 0 0; }
.center .eyebrow::before { display: none; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 640px; }
.section { padding: 96px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head p { margin: 0; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; border: 2px solid transparent;
  font: 600 .95rem/1 var(--font-body); cursor: pointer; transition: all .2s ease; text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--gold); color: var(--navy-900); }
.btn-primary:hover { background: var(--gold-dark); color: var(--navy-900); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(201,162,75,.35); }
.btn-navy { background: var(--navy-800); color: #fff; }
.btn-navy:hover { background: var(--navy-900); color: var(--gold-light); }
.btn-outline { border-color: currentColor; color: var(--navy-800); background: transparent; }
.btn-outline:hover { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.btn-ghost-light { border-color: var(--gold); color: #fff; }
.btn-ghost-light:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-900); }
.btn svg { width: 18px; height: 18px; }

/* Top bar + header */
.topbar { background: var(--navy-900); color: #c9d5e3; font-size: .85rem; border-bottom: 1px solid rgba(201,162,75,.35); }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; flex-wrap: wrap; }
.topbar a { color: var(--gold-light); }
.topbar a:hover { color: #fff; }
.topbar .tb-links { display: flex; gap: 22px; flex-wrap: wrap; }
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97);
  backdrop-filter: saturate(160%) blur(8px); border-bottom: 3px solid var(--gold); transition: box-shadow .2s;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(11,31,51,.08); }
.site-header .wrap { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--navy-900); }
.brand img { height: 52px; width: auto; }
.brand .brand-text { font-family: var(--font-head); font-size: 1.45rem; line-height: 1; }
.brand .brand-text small { display: block; font-family: var(--font-body); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-text); margin-top: 4px; font-weight: 600; }
.brand.has-logo .brand-text { display: none; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > a, .nav .dd > button {
  color: var(--ink); font-weight: 500; font-size: .95rem; padding: 10px 14px; border-radius: 8px;
  background: none; border: 0; cursor: pointer; font-family: inherit; display: inline-flex; align-items: center; gap: 4px;
}
.nav > a:hover, .nav .dd > button:hover, .nav > a.active { color: var(--gold-text); }
.nav > a.active { box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.nav .dd { position: relative; }
.nav .dd-menu {
  position: absolute; top: 100%; left: 0; min-width: 200px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .18s;
}
.nav .dd:hover .dd-menu, .nav .dd:focus-within .dd-menu { opacity: 1; visibility: visible; transform: none; }
.nav .dd-menu a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink); font-size: .93rem; }
.nav .dd-menu a:hover { background: var(--gold-soft); color: var(--navy-900); }
.header-cta { display: flex; align-items: center; gap: 12px; }
.header-phone { font-weight: 600; color: var(--navy-900); display: flex; align-items: center; gap: 6px; }
.header-phone svg { color: var(--gold-text); }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--navy-900); }
.menu-toggle svg { width: 28px; height: 28px; }

@media (max-width: 1080px) {
  .header-phone { display: none; }
}
@media (max-width: 920px) {
  .menu-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch;
    padding: 8px 20px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); max-height: calc(100vh - 78px); overflow: auto;
  }
  .nav.open { display: flex; }
  .nav > a, .nav .dd > button { padding: 12px 6px; width: 100%; justify-content: space-between; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav .dd-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 12px; }
  .header-cta .btn { display: none; }
  .topbar .tb-hours { display: none; }
  .topbar .tb-links:first-child { display: none; }
}

/* Hero */
.hero { position: relative; min-height: min(86vh, 760px); display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--navy-900); }
.hero-slides { position: absolute; inset: 0; }
.hero-slides img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0;
  transition: opacity 1.4s ease, transform 8s linear; transform: scale(1.06);
}
.hero-slides img.on { opacity: 1; transform: scale(1); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(11,31,51,.88) 0%, rgba(11,31,51,.6) 45%, rgba(11,31,51,.15) 100%); }
.hero .wrap { position: relative; z-index: 2; width: 100%; padding-top: 60px; padding-bottom: 60px; }
.hero h1 { color: #fff; max-width: 760px; }
.hero .eyebrow, .band .eyebrow { color: var(--gold-light); }
.hero p.lead { color: #dbe4ee; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-dots { position: absolute; z-index: 3; bottom: 26px; right: 26px; display: flex; gap: 8px; }
.hero-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,.45); cursor: pointer; padding: 0; }
.hero-dots button.on { background: var(--gold); width: 28px; border-radius: 6px; }

.search-card {
  border-top: 3px solid var(--gold);
  background: #fff; color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 10px;
  display: grid; grid-template-columns: 170px 1fr 160px auto; gap: 8px; margin-top: 40px; max-width: 860px;
}
.search-card select, .search-card input {
  border: 1px solid var(--line); background: var(--bg-alt); border-radius: 10px; padding: 14px; font: inherit; width: 100%; color: var(--ink);
}
.search-card .btn { border-radius: 10px; }
@media (max-width: 760px) { .search-card { grid-template-columns: 1fr 1fr; } .search-card .s-full { grid-column: 1 / -1; } }

/* Stats strip */
.stats { background: var(--navy-800); color: #fff; border-bottom: 3px solid var(--gold); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 30px 20px; border-right: 1px solid rgba(255,255,255,.12); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--font-head); font-size: clamp(1.35rem, 3vw, 2.1rem); font-weight: 400; line-height: 1.2; margin-bottom: 4px; color: var(--gold-light); }
.stat span { color: #b7c6d8; font-size: .9rem; }
@media (max-width: 760px) { .stat { padding: 22px 14px; } .stats .wrap { grid-template-columns: 1fr 1fr; } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.12); } }

/* Intro split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
/* Layered composition: office photo as the backdrop (top right), Don's cut-out portrait
   standing in front of it (bottom left), with a gold outline frame behind the photo. */
.split-media { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1 / .9; margin-inline: auto; }
.split-media::before { /* gold outline frame, offset behind the office photo */
  content: ""; position: absolute; top: 0; right: 0; width: 64%; height: 74%;
  border: 2px solid var(--gold); border-radius: var(--radius); z-index: 0;
}
.split-media img { position: absolute; display: block; }
.split-media img:nth-child(2) { /* office photo */
  top: 22px; right: 22px; width: 64%; height: 74%; object-fit: cover; z-index: 1;
  border-radius: var(--radius); box-shadow: var(--shadow-lg); background: var(--navy-100);
}
.split-media img:first-child { /* Don, transparent cut-out */
  left: 0; bottom: 0; width: 52%; height: auto; max-height: 100%; object-fit: contain; object-position: left bottom; z-index: 2;
  border-radius: 0 0 var(--radius) var(--radius);
  filter: drop-shadow(0 18px 28px rgba(11, 31, 51, .22));
}
.ticks { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--accent-soft)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a6a1f' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/13px no-repeat;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; transition: all .25s; }
.service:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: transparent; }
.service .ico { width: 52px; height: 52px; border-radius: 12px; background: var(--navy-100); color: var(--navy-800); display: grid; place-items: center; margin-bottom: 20px; }
.service .ico svg { width: 26px; height: 26px; }
.service p { color: var(--muted); }
@media (max-width: 900px) { .services { grid-template-columns: 1fr; } }

/* Property cards */
.grid-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 1000px) { .grid-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-cards { grid-template-columns: 1fr; } }
.pcard { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: all .25s; display: flex; flex-direction: column; color: var(--ink); }
.pcard:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); color: var(--ink); border-color: var(--gold); }
.pcard-media { position: relative; aspect-ratio: 4/3; background: var(--navy-100); overflow: hidden; }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.pcard:hover .pcard-media img { transform: scale(1.05); }
.badge {
  position: absolute; top: 14px; left: 14px; background: var(--navy-900); color: #fff; font-size: .72rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border-radius: 6px;
}
.badge { border-left: 3px solid var(--gold); }
.badge.sold, .badge.leased { background: var(--gold); color: var(--navy-900); border-left-color: var(--navy-900); }
.badge.off_market { background: #4b5563; }
.pcard-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.pcard-price { font-weight: 700; color: var(--navy-800); font-size: 1.1rem; margin-bottom: 4px; }
.pcard-title { font-family: var(--font-head); font-size: 1.3rem; margin: 0 0 2px; color: var(--navy-900); }
.pcard-sub { color: var(--muted); font-size: .92rem; margin-bottom: 16px; }
.specs { display: flex; gap: 18px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; flex-wrap: wrap; }
.specs span { display: inline-flex; align-items: center; gap: 6px; }
.specs svg { width: 18px; height: 18px; color: var(--gold-text); }
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); background: #fff; }
.empty-state h3 { color: var(--navy-900); }
.skeleton { background: linear-gradient(90deg, #eef2f6 25%, #f7f9fb 50%, #eef2f6 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--radius); min-height: 340px; }
@keyframes sk { to { background-position: -200% 0; } }

/* Category tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tile { position: relative; aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; color: #fff; display: flex; align-items: flex-end; background: linear-gradient(160deg, var(--navy-700), var(--navy-900)); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,31,51,0) 40%, rgba(11,31,51,.85)); }
.tile:hover img { transform: scale(1.06); }
.tile-body { position: relative; z-index: 2; padding: 28px; width: 100%; }
.tile-body h3 { color: #fff; font-size: 1.8rem; margin: 0; }
.tile-body h3::after { content: ""; display: block; width: 36px; height: 3px; background: var(--gold); margin: 8px 0 10px; transition: width .3s; }
.tile:hover .tile-body h3::after { width: 64px; }
.tile-body span { color: var(--gold-light); font-size: .92rem; display: inline-flex; gap: 6px; align-items: center; }
.tile:hover { color: #fff; }
@media (max-width: 800px) { .tiles { grid-template-columns: 1fr; } .tile { aspect-ratio: 16/9; } }

/* Appraisal band */
.band { position: relative; color: #fff; padding: 110px 0; overflow: hidden; background: var(--navy-900); border-top: 3px solid var(--gold); border-bottom: 3px solid var(--gold); }
.band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,31,51,.94), rgba(11,31,51,.7)); }
.band .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.band h2 { color: #fff; }
.band p { color: #d1dbe6; }
@media (max-width: 900px) { .band .wrap { grid-template-columns: 1fr; } }

/* Team */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); gap: 24px; }
.agent { text-align: center; }
.agent-photo { aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; border-bottom: 4px solid var(--gold); background: linear-gradient(180deg, var(--navy-100), #d6e0ea); margin-bottom: 16px; }
.agent-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.agent h3 { margin-bottom: 2px; font-size: 1.3rem; }
.agent .role { color: var(--gold-text); font-size: .85rem; font-weight: 600; letter-spacing: .04em; margin-bottom: 10px; }
.agent .links { display: flex; justify-content: center; gap: 8px; }
.agent .links a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--bg-alt); color: var(--navy-800); }
.agent .links a:hover { background: var(--gold); color: var(--navy-900); }
.agent .links svg { width: 17px; height: 17px; }
.agent .bio { color: var(--muted); font-size: .92rem; text-align: left; margin-top: 12px; }

/* Forms */
.form-card { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-lg); border-top: 4px solid var(--gold); }
.form-card h3 { margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
label.field { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--navy-800); }
.field input, .field textarea, .field select {
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font: 400 1rem var(--font-body); color: var(--ink); background: var(--bg-alt); transition: border .15s, background .15s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 3px rgba(201,162,75,.22); }
.field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 12px; }
.form-msg { margin-top: 14px; padding: 12px 14px; border-radius: 10px; font-size: .92rem; display: none; }
.form-msg.ok { display: block; background: #e7f5ee; color: var(--success); }
.form-msg.err { display: block; background: #fdecea; color: var(--danger); }
.hp { position: absolute; left: -9999px; }

/* Page banner */
.page-banner { position: relative; padding: 110px 0 80px; color: #fff; background: var(--navy-900); overflow: hidden; }
.page-banner h1::after { content: ""; display: block; width: 56px; height: 3px; background: var(--gold); margin-top: 16px; }
.page-banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(11,31,51,.92), rgba(11,31,51,.62)); }
.page-banner .wrap { position: relative; z-index: 2; }
.page-banner h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.2rem); }
.page-banner p { color: #d1dbe6; max-width: 620px; margin: 0; }
.crumbs { font-size: .85rem; color: #b7c6d8; margin-bottom: 14px; }
.crumbs a { color: var(--gold-light); }

/* Listing filters */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.tabs a { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); font-weight: 500; font-size: .93rem; background: #fff; }
.tabs a:hover { border-color: var(--gold); color: var(--navy-900); }
.tabs a.on { background: var(--navy-800); color: var(--gold-light); border-color: var(--navy-800); }
.filters { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 12px; margin-bottom: 32px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.filters input, .filters select { border: 1px solid var(--line); border-radius: 10px; padding: 12px; font: inherit; background: var(--bg-alt); width: 100%; }
@media (max-width: 760px) { .filters { grid-template-columns: 1fr 1fr; } .filters .f-search { grid-column: 1 / -1; } }
.result-count { color: var(--muted); font-size: .92rem; margin-bottom: 18px; }

/* Property detail */
.gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; margin-bottom: 36px; }
.gallery-main { aspect-ratio: 16/10; border-radius: var(--radius); overflow: hidden; background: var(--navy-100); position: relative; cursor: zoom-in; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-side { display: grid; grid-template-rows: 1fr 1fr; gap: 12px; }
.gallery-side { min-height: 0; }
.gallery-side div { border-radius: var(--radius); overflow: hidden; background: var(--navy-100); position: relative; cursor: zoom-in; min-height: 0; }
.gallery-side img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery-more { position: absolute; inset: 0; background: rgba(11,31,51,.55); color: #fff; display: grid; place-items: center; font-weight: 600; }
.thumbs { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; margin: -20px 0 32px; }
.thumbs img { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; cursor: pointer; opacity: .7; flex: none; border: 2px solid transparent; }
.thumbs img.on, .thumbs img:hover { opacity: 1; border-color: var(--gold); }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr; } .gallery-side { display: none; } }
.detail { display: grid; grid-template-columns: 1fr 360px; gap: 48px; align-items: start; }
.detail-aside { position: sticky; top: 100px; display: grid; gap: 20px; }
@media (max-width: 960px) { .detail { grid-template-columns: 1fr; } .detail-aside { position: static; } }
.detail-head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: flex-start; margin-bottom: 18px; }
.detail-head .price { font-size: 1.5rem; font-weight: 700; color: var(--navy-800); }
.status-pill { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-text); font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 10px; }
.keyfacts { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); margin: 24px 0 32px; }
.keyfacts div { padding: 18px; border-right: 1px solid var(--line); }
.keyfacts div:last-child { border-right: 0; }
.keyfacts strong { display: block; font-size: 1.3rem; color: var(--navy-900); }
.keyfacts span { color: var(--muted); font-size: .85rem; }
@media (max-width: 560px) { .keyfacts { grid-template-columns: 1fr 1fr; } .keyfacts div:nth-child(2) { border-right: 0; } .keyfacts div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
.desc { white-space: pre-line; color: #334155; }
.features { columns: 2; list-style: none; padding: 0; margin: 0; }
.features li { padding: 6px 0 6px 26px; position: relative; break-inside: avoid; }
.features li::before { content: ""; position: absolute; left: 0; top: 13px; width: 12px; height: 2px; background: var(--gold); }
.agent-mini { display: flex; gap: 16px; align-items: center; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.agent-mini img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: top; background: var(--navy-100); }
.agent-mini h4 { font-family: var(--font-body); font-weight: 700; font-size: 1rem; margin: 0; }
.agent-mini p { margin: 0; color: var(--muted); font-size: .88rem; }

.lightbox { position: fixed; inset: 0; background: rgba(5,12,20,.94); z-index: 200; display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 8px; }
.lightbox button:hover { background: var(--gold); color: var(--navy-900); }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); border: 0; color: #fff; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; font-size: 1.6rem; }
.lightbox .lb-close { top: 20px; right: 20px; }
.lightbox .lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: absolute; bottom: 20px; color: #cbd5e1; font-size: .9rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.info-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 18px; }
.info-list li { display: flex; gap: 14px; }
.info-list .ico { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--gold-soft); color: var(--gold-text); display: grid; place-items: center; }
.info-list .ico svg { width: 22px; height: 22px; }
.info-list strong { display: block; color: var(--navy-900); }
.info-list span, .info-list a { color: var(--muted); }
.hours { width: 100%; border-collapse: collapse; font-size: .93rem; }
.hours td { padding: 8px 0; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; color: var(--muted); }
.map { border: 0; width: 100%; height: 360px; border-radius: var(--radius); margin-top: 48px; filter: grayscale(.2); }
.office-photo { border-radius: var(--radius); overflow: hidden; margin-bottom: 28px; aspect-ratio: 16/9; background: var(--navy-100); }
.office-photo img { width: 100%; height: 100%; object-fit: cover; }
.office-photo.empty { display: none; }

/* Values */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value { padding: 26px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); border-top: 3px solid var(--gold); }
.value strong { display: block; font-family: var(--font-head); font-weight: 400; font-size: 1.3rem; color: var(--navy-900); margin-bottom: 6px; }
.value p { color: var(--muted); font-size: .93rem; margin: 0; }
@media (max-width: 900px) { .values { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .values { grid-template-columns: 1fr; } }
.about-img { border-radius: var(--radius); overflow: hidden; box-shadow: 16px 16px 0 var(--gold-soft); aspect-ratio: 4/5; background: linear-gradient(160deg, var(--navy-700), var(--navy-900)); }
.about-img img { width: 100%; height: 100%; object-fit: cover; }

/* CTA strip */
.cta-strip { background: linear-gradient(100deg, var(--gold) 0%, #d8b867 100%); color: var(--navy-900); padding: 56px 0; }
.cta-strip .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-strip h2 { color: var(--navy-900); margin: 0; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-strip p { margin: 6px 0 0; color: var(--navy-800); }
.cta-strip .btn-light { background: var(--navy-900); color: var(--gold-light); }
.cta-strip .btn-light:hover { background: #fff; color: var(--navy-900); }

/* Footer */
.site-footer { background: var(--navy-900); color: #b7c6d8; padding: 72px 0 0; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 { color: var(--gold-light); font-family: var(--font-body); font-weight: 700; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer a { color: #dbe4ee; }
.site-footer a:hover { color: var(--gold-light); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-brand .brand-text { font-family: var(--font-head); color: #fff; font-size: 1.6rem; margin-bottom: 14px; }
.footer-brand img { height: 56px; width: auto; margin-bottom: 18px; background: #fff; padding: 6px 10px; border-radius: 8px; }
.footer-brand.has-logo .brand-text { display: none; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; }
.socials a { color: var(--gold-light); }
.socials a:hover { background: var(--gold); color: var(--navy-900); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { margin-top: 56px; border-top: 1px solid rgba(201,162,75,.35); padding: 22px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .hero-slides img { transition: none; } }

/* Preview of unpublished changes (admins only) */
.preview-bar { position: sticky; top: 0; z-index: 60; background: var(--navy-900); color: #fff; font-size: .9rem; padding: 10px 20px; text-align: center; border-bottom: 3px solid var(--gold); }
.preview-bar strong { background: var(--gold); color: var(--navy-900); padding: 2px 8px; border-radius: 4px; margin-right: 8px; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.preview-bar a { color: var(--gold-light); margin-left: 10px; text-decoration: underline; }
body:has(.preview-bar) .site-header { top: 44px; }
.badge.draft { left: auto; right: 14px; background: #fff; color: var(--navy-900); border-left: 3px solid var(--gold); }

/* Client reviews (Home + About) */
.section.cream { background: #fbf8f1; }
[data-reviews-section][hidden], [data-href-text][hidden] { display: none !important; }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
@media (max-width: 1000px) { .reviews { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .reviews { grid-template-columns: 1fr; } }
.review { position: relative; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 26px 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.review::before { content: "\201C"; position: absolute; top: 6px; right: 20px; font-family: var(--font-head); font-size: 4.5rem; line-height: 1; color: var(--gold-soft); pointer-events: none; }
.review-top { display: flex; align-items: center; gap: 10px; min-height: 22px; }
.review-top .badge { position: static; }
.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 18px; height: 18px; fill: #d9dee5; }
.stars svg.on { fill: var(--gold); }
.review blockquote { margin: 14px 0 0; color: var(--ink); font-size: .98rem; line-height: 1.7; }
.review blockquote p { margin: 0 0 .7em; }
.review blockquote p:last-child { margin-bottom: 0; }
.review.long:not(.open) blockquote { display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.review-more { align-self: flex-start; margin-top: 8px; padding: 0; border: 0; background: none; color: var(--gold-text); font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.review figcaption { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.review-avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-800); color: var(--gold-light); font-weight: 700; }
.review figcaption strong { display: block; color: var(--navy-900); line-height: 1.3; }
.review figcaption span span { display: block; color: var(--muted); font-size: .84rem; line-height: 1.45; }
.review-src { margin-top: 12px; font-size: .78rem; color: var(--muted); letter-spacing: .02em; }
.review-src a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.review-src a:hover { color: var(--navy-800); }
@media (max-width: 560px) { [data-reviews-section] .section-head .btn { width: 100%; justify-content: center; text-align: center; white-space: normal; } }
