/* Cerramar Realty Corp. — brand colors carried over from the original cerramarhomes.com
   navy #02131D, sky blue #2799DA, link blue #337AB7, orange #FF4001 (from the Cerramar logo) */
:root {
  --navy: #02131d;
  --navy-2: #0b2433;
  --blue: #2799da;
  --blue-deep: #1d6fa5;
  --orange: #ff4001;
  --royal: #2456d6;        /* royal blue: buttons with white text */
  --royal-light: #6b93ff;  /* royal blue that reads on the dark navy */
  --orange-ink: #c43100;
  --ink: #13222c;
  --muted: #5b6b76;
  --line: #dbe4ea;
  --paper: #ffffff;
  --mist: #f2f6f9;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --radius: 10px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16.5px/1.6 var(--body); }
img { max-width: 100%; display: block; }
a { color: var(--blue-deep); }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0 0 .5em; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; max-width: 66ch; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.eyebrow { font: 700 .78rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--orange-ink); margin-bottom: 14px; display: block; }
.on-dark .eyebrow { color: var(--orange); }
.lead { font-size: 1.15rem; color: var(--muted); }
.on-dark .lead { color: #c4d4de; }
section { padding-block: 76px; }
.mist { background: var(--mist); }
.on-dark { background: var(--navy); color: #fff; }
.on-dark a { color: #9fd6f5; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; font: 700 1rem/1 var(--body); padding: 15px 22px; border-radius: 999px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-orange { background: var(--orange); color: var(--navy); }
.btn-orange:hover { background: #ff6a33; color: var(--navy); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-deep); color: #fff; }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* header */
.topbar { background: var(--navy); color: #c4d4de; font-size: .88rem; }
.topbar .wrap { display: flex; gap: 18px; flex-wrap: wrap; justify-content: space-between; padding-block: 8px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar .lang a { font-weight: 700; color: var(--orange); }
header.site { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: #fff; }
header.site .wrap { display: flex; align-items: center; gap: 24px; min-height: 74px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); margin-right: auto; }
.logo-mark { width: 40px; height: 40px; flex: none; }
.logo b { font: 800 1.15rem/1 var(--display); letter-spacing: .02em; display: block; }
.logo small { font: 600 .66rem/1 var(--body); letter-spacing: .26em; color: var(--blue-deep); }
nav.main { display: flex; gap: 2px; align-items: center; }
nav.main a { text-decoration: none; color: var(--ink); font-weight: 600; padding: 10px 11px; border-radius: 8px; font-size: .97rem; }
nav.main a:hover, nav.main a[aria-current="page"] { color: var(--blue-deep); background: var(--mist); }
nav.main .btn { margin-left: 8px; padding: 12px 18px; background: var(--royal); color: #fff; }
nav.main .btn:hover { background: #1a44b3; color: #fff; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; font: 700 .95rem var(--body); color: var(--navy); cursor: pointer; }
@media (max-width: 1020px) {
  .menu-btn { display: block; }
  nav.main { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: #fff; border-bottom: 1px solid var(--line); padding: 10px max(20px, env(safe-area-inset-right, 0px)) 18px max(20px, env(safe-area-inset-left, 0px)); }
  nav.main.open { display: flex; }
  nav.main .btn { margin: 8px 0 0; justify-content: center; }
}

/* hero with the original site's orange/blue slashes */
.hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; padding-block: 92px 84px; }
.hero::before, .hero::after { content: ""; position: absolute; top: -20%; height: 140%; transform: skewX(-24deg); pointer-events: none; }
.hero::before { right: 6%; width: 190px; background: linear-gradient(180deg, var(--orange), #d93600); opacity: .95; }
.hero::after { right: -6%; width: 260px; background: linear-gradient(180deg, var(--blue), #1758a6); }
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero .lead { max-width: 52ch; }
.hero-search { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; background: #fff; border-radius: 16px; padding: 10px; max-width: 720px; box-shadow: 0 18px 50px rgba(0,0,0,.3); }
.hero-search select { flex: 1 1 180px; min-width: 0; border: 0; font: 600 1rem var(--body); color: var(--ink); padding: 12px; background: transparent; }
.hero-search .btn { flex: 0 0 auto; }
.hero-note { margin-top: 14px; font-size: .9rem; color: #9fb4c2; }
@media (max-width: 720px) { .hero::before { right: -30px; width: 90px; opacity: .55 } .hero::after { right: -120px; width: 150px; opacity: .6 } }
.page-hero { background: var(--navy); color: #fff; padding-block: 64px 54px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -40px; top: -30%; height: 160%; width: 120px; background: var(--orange); transform: skewX(-24deg); box-shadow: 80px 0 0 var(--blue); }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { max-width: 18ch; font-size: clamp(2rem, 4.4vw, 3.1rem); }
@media (max-width: 720px) { .page-hero::after { opacity: .35 } }

/* grids and cards */
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; min-width: 0; }
.path { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink); border-top: 4px solid var(--blue); transition: border-color .15s, transform .15s; }
.path:hover { border-top-color: var(--orange); transform: translateY(-2px); color: var(--ink); }
.path .go { margin-top: auto; font-weight: 700; color: var(--blue-deep); }
.icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--mist); color: var(--blue-deep); }
.icon svg { width: 24px; height: 24px; }

/* areas */
.areas { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.area { padding: 22px; border-radius: var(--radius); background: var(--navy-2); color: #fff; text-decoration: none; border-left: 4px solid var(--orange); }
.area:hover { background: #10324a; color: #fff; }
.area .county { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: #9fd6f5; }
.area h3 { margin: 6px 0; color: #fff; }
.area p { font-size: .94rem; color: #c4d4de; margin: 0; }
.area-detail { border-left: 4px solid var(--orange); padding-left: 22px; scroll-margin-top: 100px; }
.area-detail .county { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-deep); font-weight: 700; }
.facts { margin: 0; padding-left: 20px; }
.facts li { margin-bottom: 4px; }

/* steps (real sequences only) */
.steps { counter-reset: s; display: grid; gap: 14px; padding: 0; margin: 0; list-style: none; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.steps li::before { content: counter(s); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--orange); font: 800 1.1rem var(--display); }
.steps h3 { margin: 4px 0 4px; }
.steps p { margin: 0; color: var(--muted); }

/* split, agent */
.split { display: grid; gap: 40px; grid-template-columns: 1.1fr .9fr; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.agent { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.avatar { width: 112px; height: 112px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--navy)); color: #fff; display: grid; place-items: center; font: 800 2.4rem var(--display); flex: none; border: 4px solid var(--orange); }
.contact-lines { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.contact-lines a { font-weight: 700; }
.pill { display: inline-block; font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--mist); color: var(--blue-deep); margin: 0 6px 6px 0; }
.on-dark .pill { background: rgba(255,255,255,.1); color: #fff; }

/* forms */
form.lead-form { display: grid; gap: 14px; }
.row2 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
label { display: grid; gap: 6px; font-weight: 700; font-size: .92rem; }
input, select, textarea { font: 400 1rem var(--body); padding: 12px 13px; border: 1px solid #b8c7d1; border-radius: 8px; background: #fff; color: var(--ink); width: 100%; min-width: 0; }
textarea { min-height: 110px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .86rem; color: var(--muted); }
.check input { width: auto; margin-top: 3px; }
.hp { position: absolute; left: -9999px; }
.form-msg { padding: 12px 14px; border-radius: 8px; font-weight: 600; }
.form-msg.ok { background: #e6f6ee; color: #0b6b43; }
.form-msg.err { background: #fff2dd; color: #8a4f00; }

/* MLS search frame */
.search-frame { width: 100%; height: min(1100px, 85vh); border: 1px solid var(--line); border-radius: var(--radius); background: var(--mist); }
.frame-fallback { padding: 30px; border: 1px dashed #b8c7d1; border-radius: var(--radius); text-align: center; }

/* calculator */
.calc output { font: 800 1.6rem var(--display); color: var(--navy); }
.calc dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; margin: 0; font-variant-numeric: tabular-nums; }
.calc dt { color: var(--muted); }
.calc dd { margin: 0; font-weight: 700; text-align: right; }

/* notice + footer */
.note { font-size: .9rem; color: var(--muted); border-left: 3px solid var(--orange); padding-left: 12px; }
footer.site { background: var(--navy); color: #c4d4de; padding-block: 56px 30px; font-size: .94rem; }
footer.site a { color: #fff; text-decoration: none; }
footer.site a:hover { color: var(--orange); }
.foot-grid { display: grid; gap: 30px; grid-template-columns: 1.4fr repeat(3, 1fr); }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
footer.site h3 { color: #fff; font-size: 1rem; }
footer.site ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.legal { border-top: 1px solid #1d3a4c; margin-top: 36px; padding-top: 20px; display: flex; gap: 18px; flex-wrap: wrap; align-items: center; justify-content: space-between; font-size: .84rem; }
.eho { display: flex; align-items: center; gap: 10px; }
.eho svg { width: 34px; height: 34px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.hero .lead, .page-hero .lead { color: #c9d8e2; }
.why { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
/* real logo + headshot */
.logo-img { height: 58px; width: auto; display: block; }
.foot-logo { display: inline-block; background: #fff; border-radius: 10px; padding: 8px 12px; }
.foot-logo .logo-img { height: 46px; }
img.avatar { object-fit: cover; padding: 0; background: #fff; }
.map { width: 100%; height: 260px; border: 0; border-radius: 12px; margin-top: 20px; }
@media (max-width: 600px) { .logo-img { height: 42px; } }
/* language picker */
.lang-pick { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 600; }
.lang-pick svg { width: 16px; height: 16px; flex: none; }
.lang-pick select { background: #0b2433; color: #fff; border: 1px solid #2b4656; border-radius: 6px; padding: 3px 6px; font: inherit; font-size: .85rem; max-width: 170px; }
.lang-note { font-size: .8rem; color: #9fb3c0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero .eyebrow, .page-hero .eyebrow { color: var(--orange); }

/* ---- welcome slideshow behind the homepage headline ---- */
.hero-video { min-height: min(86vh, 760px); display: flex; align-items: center; padding-block: 110px 120px; }
.hero-video::before, .hero-video::after { display: none; }
.hero-media { position: absolute; inset: 0; z-index: 0; background: var(--navy); }
.hero-media .hv { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.hero-media .hv.on { opacity: 1; }
.hero-shade { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(2,19,29,.62) 0%, rgba(2,19,29,.34) 45%, rgba(2,19,29,0) 100%),
  linear-gradient(0deg, rgba(2,19,29,.35) 0%, rgba(2,19,29,0) 30%); }
.hero-media .hv { filter: brightness(1.12) saturate(1.08); }
.hero-video .wrap { z-index: 2; width: 100%; }
.hero-video h1, .hero-video .lead, .hero-video .eyebrow { text-shadow: 0 1px 3px rgba(0,0,0,.45), 0 2px 22px rgba(0,0,0,.45); }
.hero-video .lead { color: #e6eef3; }
.hero-caption { position: absolute; z-index: 2; right: 24px; bottom: 22px; display: flex; align-items: center; gap: 12px;
  background: rgba(2,19,29,.55); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.18); color: #fff;
  border-radius: 999px; padding: 8px 10px 8px 16px; font: 600 .9rem var(--body); max-width: calc(100% - 48px); }
.hero-caption .hc-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity .4s; }
.hero-dots { display: flex; gap: 5px; }
.hero-dots i { display: block; width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.4); transition: background .3s, transform .3s; }
.hero-dots i.on { background: var(--orange); transform: scale(1.25); }
.hero-pause { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff;
  font-size: .7rem; cursor: pointer; flex: none; }
.hero-pause:hover, .hero-pause:focus-visible { background: rgba(255,255,255,.15); }
.hero-video::after { content: ""; display: block; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; top: auto; transform: none;
  width: auto; background: linear-gradient(90deg, var(--orange) 0 55%, var(--blue) 55% 100%); z-index: 2; }
@media (max-width: 720px) {
  .hero-video { min-height: 0; padding-block: 72px 96px; }
  .hero-shade { background: linear-gradient(0deg, rgba(2,19,29,.78) 0%, rgba(2,19,29,.45) 60%, rgba(2,19,29,.25) 100%); }
  .hero-caption { left: 16px; right: 16px; bottom: 16px; justify-content: space-between; }
  .hero-dots { display: none; }
}
@media (prefers-reduced-motion: reduce) { .hero-media .hv { transition: none; } }

/* ---- home value calculator ---- */
.row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hv-addr { position: relative; }
.hv-suggest { position: absolute; z-index: 20; left: 0; right: 0; top: 100%; margin: 4px 0 0; padding: 4px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 30px rgba(2,19,29,.14); max-height: 300px; overflow: auto; }
.hv-suggest li { padding: 9px 10px; border-radius: 7px; cursor: pointer; font-size: .95rem; }
.hv-suggest li span { color: var(--muted); font-size: .82rem; margin-left: 6px; }
.hv-suggest li:hover, .hv-suggest li.on { background: var(--mist, #eef4f7); }
.hv-where { margin: 6px 0 0; font-weight: 700; color: var(--navy); }
.hv-result { border-top: 5px solid var(--orange); margin-bottom: 22px; scroll-margin-top: 110px; }
.hv-label { margin: 0; color: var(--muted); font-weight: 600; }
.hv-value { margin: 4px 0 2px; font: 800 clamp(2.2rem, 6vw, 3.1rem)/1.1 var(--display); color: var(--navy); }
.hv-range { margin: 0 0 8px; }
.hv-conf { display: inline-block; margin-left: 6px; padding: 2px 10px; border-radius: 99px; font-size: .8rem; font-weight: 700; background: #eef4f7; color: var(--navy); }
.hv-high { background: #dcf3e4; color: #135c2f; } .hv-medium { background: #fff1d6; color: #7a4b00; } .hv-low { background: #fde4dc; color: #8a2a0b; }
.hv-facts { color: var(--muted); margin: 0 0 10px; font-size: .95rem; }
.hv-market { margin: 0 0 14px; padding-left: 18px; font-size: .95rem; }
.hv-result h3 { margin: 16px 0 8px; font-size: 1.05rem; }
.hv-table { overflow-x: auto; }
.hv-table table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.hv-table th, .hv-table td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.hv-table td:first-child { white-space: normal; min-width: 170px; }
.hv-table .tag { display: inline-block; font-size: .72rem; padding: 1px 7px; border-radius: 99px; background: #eef4f7; color: var(--muted); }
.hv-next { margin-top: 16px; padding: 14px 16px; background: #fff6f2; border-radius: 10px; font-size: .95rem; }
.hv-fine { font-size: .8rem; color: var(--muted); margin-top: 14px; }
@media (max-width: 640px) { .row3 { grid-template-columns: 1fr 1fr; } .row3 label:last-child { grid-column: 1 / -1; } }

/* top-of-page labels (e.g. "Cerramar Realty Corp. · Central Florida") in royal blue */
.hero .eyebrow, .page-hero .eyebrow { color: var(--royal-light); }
.hero-video .eyebrow { display: inline-block; background: rgba(2,19,29,.6); padding: 7px 11px; border-radius: 6px; text-shadow: none; font-size: .82rem; color: #7d9fff; }

/* homepage videos shown as-is: no dark overlay or color filter; text stays readable with its own shadow */
.hero-shade { display: none; }
.hero-media .hv { filter: none; }
.hero-video h1, .hero-video .lead { text-shadow: 0 1px 2px rgba(0,0,0,.7), 0 2px 10px rgba(0,0,0,.6), 0 0 28px rgba(0,0,0,.45); }
.hero-video .lead { color: #fff; }
.hero-video .eyebrow { background: rgba(2,19,29,.72); }
.hero-video .hero-note { text-shadow: 0 1px 3px rgba(0,0,0,.8); color: #fff; }

/* brightest version: vivid video, no dark haze, no dark dip between clips */
.hero-media .hv { filter: none; }   /* brightness is built into the video files */
.hero-media .hv.on { z-index: 1; }
.hero-media .hv:not(.on) { transition-delay: 1.2s; }   /* the old clip stays until the new one has fully faded in */
.hero-video h1, .hero-video .lead { text-shadow: 0 1px 2px rgba(0,0,0,.75), 0 2px 6px rgba(0,0,0,.45); }
.hero-video .hero-note { text-shadow: 0 1px 2px rgba(0,0,0,.85); }

/* "Central Florida" in the headline: royal blue (bright enough to read on the video, with a dark edge) */
.hero h1 em { color: #3d6dff; }
.hero-video h1 em { text-shadow: 0 1px 2px rgba(0,0,0,.8), 0 0 1px rgba(0,0,0,.6), 0 2px 8px rgba(0,0,0,.5); }
