/* =============================================================
   Kurtis Kessler / RE/MAX Paradise — site styles
   Coastal-modern design system. Mobile-first.
   ============================================================= */

:root {
  --navy: #0b2545;
  --navy-2: #13315c;
  --sand: #f5efe6;
  --sand-2: #e8dfce;
  --sun: #e8a838;
  --sun-2: #d18b1e;
  --teal: #1d7874;
  --red: #dc1c2e;     /* RE/MAX red, used sparingly */
  --ink: #1a1a1a;
  --muted: #5a6473;
  --line: #e3e6ec;
  --white: #ffffff;
  --shadow: 0 6px 24px rgba(11, 37, 69, 0.08);
  --shadow-lg: 0 18px 48px rgba(11, 37, 69, 0.14);
  --radius: 10px;
  --radius-lg: 16px;
  --container: 1180px;
  --header-h: 72px;
  --font-sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--sun-2); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 4rem 0; }
.section-sm { padding: 2.5rem 0; }
.section--sand { background: var(--sand); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--white); }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sun-2);
  margin-bottom: .5rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: .85rem 1.5rem;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  text-align: center;
}
.btn:hover { background: var(--navy-2); color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--sun { background: var(--sun); color: var(--navy); }
.btn--sun:hover { background: var(--sun-2); color: var(--navy); }
.btn--ghost { background: transparent; color: var(--navy); border: 2px solid var(--navy); padding: calc(.85rem - 2px) calc(1.5rem - 2px); }
.btn--ghost:hover { background: var(--navy); color: var(--white); }
.btn--lg { padding: 1.1rem 2rem; font-size: 1.05rem; }
.btn--block { display: block; width: 100%; }

/* ===== Header / Nav ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
  height: var(--header-h);
  display: flex; align-items: center;
}
.nav { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand { display: flex; align-items: center; gap: .65rem; }
.brand img { height: 40px; width: auto; }
.brand-text { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--navy); line-height: 1; }
.brand-text small { display: block; font-family: var(--font-sans); font-size: .7rem; font-weight: 500; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; margin-top: 2px; }

.nav-toggle {
  display: none;
  background: none; border: none; padding: 8px; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 26px; height: 2px; background: var(--navy); margin: 5px 0; transition: transform .2s;
}
.nav-links {
  display: flex; gap: 1.6rem; list-style: none; padding: 0; margin: 0; align-items: center;
}
.nav-links a {
  font-size: .95rem; font-weight: 500; color: var(--ink); padding: .25rem 0;
  border-bottom: 2px solid transparent; transition: border-color .15s, color .15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--navy); border-bottom-color: var(--sun); }
.nav-links .btn { padding: .55rem 1rem; font-size: .9rem; border-radius: 8px; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem; gap: .25rem;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .75rem 0; border-bottom: 1px solid var(--line); }
  .nav-links a:last-child { border-bottom: none; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex; align-items: center;
  color: var(--white);
  background: linear-gradient(rgba(11,37,69,.55), rgba(11,37,69,.35)), url('../img/scenic/orange-beach-aerial.jpg') center/cover no-repeat;
}
.hero-content { max-width: 720px; padding: 5rem 0; }
.hero h1 { color: var(--white); margin-bottom: 1rem; }
.hero p { font-size: 1.15rem; opacity: .95; margin-bottom: 1.75rem; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* ===== Rate banner ===== */
.rate-banner {
  background: var(--navy);
  color: var(--white);
  padding: .85rem 0;
  font-size: .95rem;
}
.rate-banner .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .75rem; }
.rate-banner strong { color: var(--sun); font-size: 1.15rem; }
.rate-banner a { color: var(--sun); font-weight: 600; }
.rate-banner small { opacity: .7; }

/* ===== Grids / Cards ===== */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-img {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--sand-2), var(--sand)) center/cover no-repeat;
  position: relative;
}
.card-img[data-img] { background-size: cover; background-position: center; }
.card-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--sun); color: var(--navy); padding: 4px 10px; border-radius: 999px;
  font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { margin-bottom: .25rem; }
.card-meta { color: var(--muted); font-size: .9rem; margin-bottom: .75rem; }
.card-cta { margin-top: auto; font-weight: 600; color: var(--navy); }
.card-cta::after { content: " →"; transition: transform .15s; display: inline-block; }
.card:hover .card-cta::after { transform: translateX(4px); }

/* ===== Forms ===== */
.form { display: grid; gap: 1rem; }
.form-row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-size: .85rem; font-weight: 600; color: var(--navy); }
.field input, .field select, .field textarea {
  font: inherit; padding: .75rem .9rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(11,37,69,.12);
}
.field textarea { min-height: 130px; resize: vertical; }
.form-status { font-size: .9rem; padding: .5rem 0; min-height: 1.5em; }
.form-status.success { color: var(--teal); font-weight: 600; }
.form-status.error { color: var(--red); font-weight: 600; }

/* ===== Mortgage calc widget ===== */
.calc {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.calc-result {
  background: var(--navy); color: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem; margin-top: 1rem;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem;
}
.calc-result .label { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; opacity: .7; }
.calc-result .value { font-size: 1.4rem; font-weight: 700; color: var(--sun); font-family: var(--font-display); }

/* ===== Sections / misc ===== */
.split {
  display: grid; gap: 3rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: center;
}
.headshot {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
  object-fit: cover;
  width: 100%;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.stat {
  text-align: center;
  padding: 1.25rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.stat .num { font-family: var(--font-display); font-size: 2.2rem; color: var(--navy); font-weight: 700; }
.stat .lbl { color: var(--muted); font-size: .9rem; }

.video-wrap {
  position: relative; padding-top: 56.25%;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.video-wrap iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}

.filter-bar {
  display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.5rem;
}
.filter-btn {
  background: var(--white); border: 1px solid var(--line);
  padding: .55rem 1.1rem; border-radius: 999px; cursor: pointer;
  font-size: .9rem; font-weight: 500; color: var(--ink);
  transition: all .15s ease;
}
.filter-btn:hover { border-color: var(--navy); }
.filter-btn.active { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* Building/property page specifics */
.bldg-hero {
  background: linear-gradient(rgba(11,37,69,.45), rgba(11,37,69,.45)), var(--sand-2) center/cover no-repeat;
  color: var(--white); padding: 6rem 0 4rem;
}
.bldg-hero[data-img] { background-image: linear-gradient(rgba(11,37,69,.45), rgba(11,37,69,.45)), var(--bg-img); }
.bldg-hero h1 { color: var(--white); margin-bottom: .25rem; }
.bldg-hero .breadcrumb { font-size: .85rem; opacity: .85; margin-bottom: .5rem; }
.bldg-hero .breadcrumb a { color: var(--white); text-decoration: underline; }

.spec-list {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem 2rem; list-style: none; padding: 0; margin: 1.5rem 0;
}
.spec-list li {
  display: flex; flex-direction: column;
  padding-bottom: .75rem; border-bottom: 1px solid var(--line);
}
.spec-list .k { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.spec-list .v { font-weight: 600; color: var(--navy); }

.amenities {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: .5rem 1.5rem; list-style: none; padding: 0;
}
.amenities li {
  padding: .35rem 0 .35rem 1.5rem; position: relative;
}
.amenities li::before {
  content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 700;
}

.floorplans {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.floorplan {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem;
}
.floorplan h4 { margin: 0 0 .25rem; }
.floorplan .sq { color: var(--muted); font-size: .9rem; }
.floorplan .px { color: var(--navy); font-weight: 700; font-family: var(--font-display); font-size: 1.2rem; margin-top: .5rem; }

/* Blog */
.post {
  max-width: 740px; margin: 0 auto;
}
.post h1 { margin-bottom: .25rem; }
.post .meta { color: var(--muted); font-size: .9rem; margin-bottom: 2rem; }
.post p { font-size: 1.08rem; }
.post h2 { margin-top: 2.5rem; }

/* Footer */
.site-footer {
  background: var(--navy); color: rgba(255,255,255,.85);
  padding: 3rem 0 1.5rem; margin-top: 4rem; font-size: .9rem;
}
.site-footer h4 { color: var(--white); font-family: var(--font-sans); font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer a:hover { color: var(--sun); }
.footer-grid {
  display: grid; gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-bottom: 2rem;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .5rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-size: .8rem; opacity: .7;
}
.disclaimer { max-width: 720px; line-height: 1.5; }

/* ===== Listing Detail Page ===== */
.listing-hero {
  background: var(--sand);
  padding: 1.5rem 0;
}
.listing-hero .breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: .75rem; }
.listing-hero .breadcrumb a { color: var(--navy); }
.listing-hero h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: .25rem; }
.listing-hero .address { color: var(--muted); font-size: 1rem; margin-bottom: .25rem; }
.listing-hero .price-row {
  display: flex; gap: 1rem; align-items: baseline; flex-wrap: wrap;
  margin-top: .5rem;
}
.listing-hero .price {
  font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--navy);
}
.listing-hero .status-badge {
  display: inline-block; background: var(--sun); color: var(--navy);
  padding: 4px 12px; border-radius: 999px;
  font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.listing-hero .status-badge.active   { background: #4ade80; color: #0a3d12; }
.listing-hero .status-badge.pending  { background: #f59e0b; color: #422600; }
.listing-hero .status-badge.sold     { background: var(--red); color: #fff; }

/* Gallery */
.gallery {
  display: grid; gap: .75rem;
  grid-template-columns: 1fr;
}
.gallery-main {
  aspect-ratio: 16 / 10;
  background: var(--sand-2) center/cover no-repeat;
  border-radius: var(--radius-lg);
  cursor: zoom-in;
  position: relative;
  overflow: hidden;
}
.gallery-main .photo-count {
  position: absolute; bottom: 12px; right: 12px;
  background: rgba(11, 37, 69, .85); color: #fff;
  padding: 6px 12px; border-radius: 999px;
  font-size: .8rem; font-weight: 500;
}
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: .5rem;
}
.gallery-thumbs button {
  border: 2px solid transparent;
  padding: 0;
  background: var(--sand-2) center/cover no-repeat;
  border-radius: 8px;
  aspect-ratio: 1;
  cursor: pointer;
  transition: border-color .15s ease, transform .15s ease;
}
.gallery-thumbs button.active { border-color: var(--navy); }
.gallery-thumbs button:hover { transform: scale(1.04); }
@media (max-width: 720px) {
  .gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(11, 37, 69, .94);
  z-index: 200;
  display: none;
  align-items: center; justify-content: center;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 8px; }
.lightbox .close {
  position: absolute; top: 20px; right: 20px;
  background: none; border: none; color: #fff;
  font-size: 2.2rem; cursor: pointer; line-height: 1;
}
.lightbox .nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.15);
  color: #fff; border: none; cursor: pointer;
  width: 48px; height: 48px; border-radius: 50%;
  font-size: 1.5rem; line-height: 1;
}
.lightbox .nav.prev { left: 20px; }
.lightbox .nav.next { right: 20px; }
.lightbox .nav:hover { background: rgba(255,255,255,.3); }
.lightbox .counter {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: #fff; font-size: .9rem;
  background: rgba(255,255,255,.15); padding: 6px 14px; border-radius: 999px;
}

/* Listing two-column layout */
.listing-layout {
  display: grid; gap: 2rem;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 1fr);
  align-items: start;
}
@media (max-width: 980px) {
  .listing-layout { grid-template-columns: 1fr; }
}
.listing-sidebar {
  position: sticky; top: calc(var(--header-h) + 16px);
}

/* Fact strip */
.fact-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 1.5rem 0;
}
.fact-strip .fact {
  background: var(--white);
  padding: 1rem .75rem;
  text-align: center;
}
.fact-strip .v {
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 700; color: var(--navy);
  display: block; line-height: 1;
}
.fact-strip .l {
  font-size: .75rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: .08em; margin-top: .35rem;
  display: block;
}

/* Sidebar card */
.listing-cta {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.listing-cta h3 { margin-bottom: .25rem; }
.listing-cta .lead-est {
  background: var(--sand);
  border-radius: var(--radius);
  padding: 1rem;
  margin: 1rem 0;
}
.listing-cta .lead-est .v {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--navy);
}
.listing-cta .lead-est .l {
  font-size: .75rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: .08em;
}
.listing-cta .lead-est small { color: var(--muted); display: block; margin-top: .25rem; font-size: .8rem; }
.listing-cta .agent-mini {
  display: flex; align-items: center; gap: .75rem;
  margin: 1rem 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.listing-cta .agent-mini img {
  width: 48px; height: 48px; border-radius: 50%; object-fit: cover;
}
.listing-cta .agent-mini strong { display: block; }
.listing-cta .agent-mini small { color: var(--muted); }

/* Map inside listing */
.listing-map {
  height: 280px; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line);
}

/* Features grid */
.feature-list {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .35rem 1.25rem; list-style: none; padding: 0; margin: 1rem 0;
}
.feature-list li {
  padding: .3rem 0 .3rem 1.5rem; position: relative; font-size: .95rem;
}
.feature-list li::before {
  content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 700;
}

/* ===== Listing Calculator Panel ===== */
.listing-calc {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  font-family: var(--font-sans);
  box-shadow: var(--shadow);
}
.listing-calc__header {
  background: var(--navy);
  color: var(--white);
  padding: 20px 24px 0;
}
.listing-calc__eyebrow {
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sun);
  margin: 0 0 4px;
  font-weight: 600;
}
.listing-calc__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--white);
  line-height: 1.15;
}
.listing-calc__tabs {
  display: flex;
  border-top: 1px solid rgba(255,255,255,.1);
}
.listing-calc__tab {
  padding: 10px 20px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  border-bottom: 2px solid transparent;
  transition: all .15s;
  font-family: var(--font-sans);
}
.listing-calc__tab.active {
  color: var(--sun);
  border-bottom-color: var(--sun);
}
.listing-calc__body { padding: 22px 24px; }

/* Input row */
.lc-row { margin-bottom: 16px; }
.lc-row-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 7px; gap: 10px;
}
.lc-row label {
  font-size: .68rem; font-weight: 600; letter-spacing: .07em;
  text-transform: uppercase; color: var(--muted);
  flex-shrink: 0; flex: 1;
}
.lc-input {
  display: flex; align-items: center;
  background: var(--sand); border: 1px solid var(--line);
  border-radius: 8px; padding: 4px 9px; gap: 3px;
  min-width: 105px; max-width: 140px;
}
.lc-input span { font-size: .78rem; color: var(--muted); flex-shrink: 0; }
.lc-input input {
  width: 100%; border: none; background: transparent;
  font: inherit; font-weight: 700; color: var(--ink);
  text-align: right; outline: none;
  font-size: .85rem;
  min-width: 40px;
}
.lc-row input[type="range"] {
  width: 100%; accent-color: var(--navy); cursor: pointer;
}
.lc-hint {
  font-size: .68rem; color: var(--muted);
  margin: 5px 0 0; line-height: 1.45;
}

/* Divider with label */
.lc-divider {
  display: flex; align-items: center; gap: 10px;
  margin: 20px 0 14px;
}
.lc-divider-label {
  font-size: .65rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
  white-space: nowrap;
}
.lc-divider-line { flex: 1; height: 1px; background: var(--line); }

/* Cards */
.lc-card {
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 12px;
}
.lc-card--accent {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.lc-card--negative {
  background: var(--white);
  border-color: var(--red);
}
.lc-card-label {
  font-size: .65rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  margin: 0 0 10px;
  color: var(--muted);
}
.lc-card--accent .lc-card-label { color: rgba(255,255,255,.6); }
.lc-card-hero {
  font-family: var(--font-display);
  font-size: 2.1rem; font-weight: 900;
  letter-spacing: -.02em; line-height: 1;
  margin: 0 0 5px;
  color: var(--ink);
}
.lc-card--accent .lc-card-hero { color: var(--white); }
.lc-card--negative .lc-card-hero { color: var(--red); }
.lc-card-sub {
  font-size: .72rem; margin: 0;
  color: var(--muted);
}
.lc-card--accent .lc-card-sub { color: rgba(255,255,255,.55); }

/* Result rows inside cards */
.lc-result {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 0;
}
.lc-result--border { border-top: 1px solid var(--line); margin-top: 3px; }
.lc-result-label { font-size: .8rem; color: var(--muted); }
.lc-result-value { font-size: .85rem; font-weight: 600; color: var(--ink); }
.lc-result--bold .lc-result-label { font-weight: 700; color: var(--ink); }
.lc-result--bold .lc-result-value {
  font-size: 1rem; font-weight: 700;
  font-family: var(--font-display);
}
.lc-result--muted .lc-result-value { color: var(--muted); font-weight: 500; }
.lc-result--positive .lc-result-value { color: var(--teal); }
.lc-result--negative .lc-result-value { color: var(--red); }

/* Read-only price display (ROI tab) */
.lc-price-display {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px; padding: 10px 14px;
  background: var(--sand); border: 1px solid var(--line);
  border-radius: 10px;
}
.lc-price-display-label {
  font-size: .65rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted);
}
.lc-price-display-value {
  font-size: 1.05rem; font-weight: 700;
  color: var(--ink);
  font-family: var(--font-display);
}

/* 3-metric grid */
.lc-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
@media (max-width: 460px) {
  .lc-metrics { grid-template-columns: 1fr; }
}
.lc-metric {
  background: var(--sand);
  border-radius: 10px;
  padding: 11px 12px;
}
.lc-metric-label {
  font-size: .58rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 3px;
}
.lc-metric-value {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 700;
  color: var(--ink);
  margin: 0 0 1px;
}
.lc-metric-hint {
  font-size: .6rem; color: var(--muted);
  margin: 0;
}

.lc-disclaimer {
  font-size: .68rem; color: var(--muted);
  line-height: 1.55; margin: 10px 0 0;
}

/* ===== Chat Widget ===== */
.chat-fab {
  position: fixed; bottom: 22px; right: 22px;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--sun); color: var(--navy);
  border: none; cursor: pointer;
  box-shadow: 0 8px 24px rgba(11,37,69,.25), 0 2px 6px rgba(0,0,0,.15);
  display: flex; align-items: center; justify-content: center;
  z-index: 100;
  transition: transform .2s ease, box-shadow .2s ease;
  font-size: 28px; line-height: 1;
}
.chat-fab:hover { transform: scale(1.05); box-shadow: 0 12px 32px rgba(11,37,69,.32); }
.chat-fab.open { transform: rotate(90deg); }
.chat-fab .dot {
  position: absolute; top: 4px; right: 4px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--red); border: 2px solid #fff;
  animation: chat-pulse 2.4s infinite;
}
@keyframes chat-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: .7; }
}
.chat-panel {
  position: fixed; bottom: 96px; right: 22px;
  width: 360px; max-width: calc(100vw - 32px);
  max-height: 70vh;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(11,37,69,.28), 0 4px 12px rgba(0,0,0,.12);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 100;
  opacity: 0; transform: translateY(20px);
  transition: opacity .2s ease, transform .2s ease;
}
.chat-panel.open {
  display: flex; opacity: 1; transform: translateY(0);
}
.chat-header {
  background: var(--navy); color: var(--white);
  padding: 1rem 1.25rem;
  display: flex; align-items: center; gap: .75rem;
}
.chat-header img {
  width: 40px; height: 40px; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--sun);
}
.chat-header h4 {
  color: var(--white); font-family: var(--font-display);
  font-size: 1.05rem; margin: 0;
}
.chat-header .status {
  font-size: .75rem; opacity: .85; margin: 0;
  display: flex; align-items: center; gap: .35rem;
}
.chat-header .status::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: #4ade80; display: inline-block;
}
.chat-header .close {
  margin-left: auto;
  background: none; border: none; color: var(--white);
  font-size: 1.5rem; line-height: 1; cursor: pointer;
  padding: 4px 8px; opacity: .7;
}
.chat-header .close:hover { opacity: 1; }
.chat-body {
  flex: 1; overflow-y: auto;
  padding: 1rem 1.25rem;
  background: var(--sand);
  display: flex; flex-direction: column; gap: .65rem;
  scroll-behavior: smooth;
}
.chat-msg {
  max-width: 85%;
  padding: .7rem .9rem;
  border-radius: 14px;
  font-size: .92rem;
  line-height: 1.45;
  word-wrap: break-word;
}
.chat-msg.bot {
  background: var(--white);
  color: var(--ink);
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  align-self: flex-start;
}
.chat-msg.user {
  background: var(--navy);
  color: var(--white);
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}
.chat-msg a { color: var(--sun-2); font-weight: 600; }
.chat-msg.user a { color: var(--sun); }
.chat-replies {
  display: flex; flex-wrap: wrap; gap: .4rem;
  padding: .25rem 0;
}
.chat-reply {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .45rem .9rem;
  font-size: .82rem; font-weight: 500;
  cursor: pointer; color: var(--navy);
  transition: all .15s ease;
}
.chat-reply:hover {
  background: var(--navy); color: var(--white); border-color: var(--navy);
}
.chat-actions {
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: .65rem; display: flex; gap: .5rem;
}
.chat-actions a {
  flex: 1; text-align: center;
  padding: .65rem .5rem;
  border-radius: var(--radius);
  font-size: .85rem; font-weight: 600;
  text-decoration: none;
}
.chat-actions a.call { background: var(--navy); color: var(--white); }
.chat-actions a.call:hover { background: var(--navy-2); color: var(--white); }
.chat-actions a.text { background: var(--sun); color: var(--navy); }
.chat-actions a.text:hover { background: var(--sun-2); color: var(--navy); }
.chat-input-row {
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: .65rem; display: flex; gap: .5rem;
}
.chat-input-row input {
  flex: 1; border: 1px solid var(--line); border-radius: var(--radius);
  padding: .55rem .75rem; font: inherit;
}
.chat-input-row input:focus { outline: none; border-color: var(--navy); }
.chat-input-row button {
  background: var(--navy); color: var(--white);
  border: none; border-radius: var(--radius);
  padding: 0 1rem; cursor: pointer; font-weight: 600;
}
.chat-input-row button:hover { background: var(--navy-2); }

@media (max-width: 480px) {
  .chat-panel {
    right: 8px; left: 8px; bottom: 84px;
    width: auto; max-width: none;
    max-height: 75vh;
  }
  .chat-fab { bottom: 16px; right: 16px; }
}

/* Utilities */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 2rem; }
.muted { color: var(--muted); }
.hidden { display: none !important; }
