/* ============================================================
   Livano — shared design system
   Clean proptech. Blue brand, generous whitespace, big type.
   ============================================================ */

:root {
  /* Brand — baby blue */
  --blue:        #5FB0EA;
  --blue-bright: #8AC7F2;
  --blue-deep:   #3E97D9;
  --blue-tint:   #EAF5FD;
  --blue-tint-2: #F5FAFF;
  --accent:      #E0523B;   /* warm accent, used sparingly */
  --emerald:     #12855A;   /* accuracy / positive */
  --emerald-tint:#E6F5EE;
  /* Albanian-coast secondary accents — add warmth/colour */
  --teal:        #0E8E9C;
  --teal-tint:   #E0F3F5;
  --sand:        #C1712B;   /* terracotta */
  --sand-tint:   #FaEEE1;

  /* Ink + neutrals */
  --ink:      #0B1524;
  --ink-soft: #3C4A61;
  --ink-faint:#6A7890;
  --line:     #E4E9F2;
  --line-soft:#EEF2F8;
  --surface:  #FFFFFF;
  --ground:   #F6F9FD;
  --ground-2: #F0F5FB;

  /* Shape */
  --r-sm: 10px;
  --r:    14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(11,21,36,.06), 0 4px 12px rgba(11,21,36,.05);
  --shadow:    0 2px 6px rgba(11,21,36,.06), 0 18px 40px rgba(11,21,36,.09);
  --shadow-lg: 0 8px 24px rgba(11,21,36,.10), 0 40px 80px rgba(11,21,36,.14);

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --maxw: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; max-width: 100%; }
/* Hide Netlify's injected HUD/badge (added by the host after </html>). */
netlify-hud, [id^="nl-"] { display: none !important; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.02em; line-height: 1.1; font-weight: 800; }
p { margin: 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
@media (max-width: 720px){ .section { padding: 64px 0; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue); margin: 0 0 16px;
}
.eyebrow::before { content:""; width: 18px; height: 2px; background: var(--blue); border-radius: 2px; }

.h-xl { font-size: clamp(38px, 6vw, 66px); line-height: 1.03; letter-spacing: -.035em; }
.h-lg { font-size: clamp(30px, 4.4vw, 46px); letter-spacing: -.03em; }
.h-md { font-size: clamp(22px, 3vw, 30px); }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--ink-soft); line-height: 1.55; }
.muted { color: var(--ink-faint); }
.center { text-align: center; }
.mx-auto { margin-left:auto; margin-right:auto; }
.maxch { max-width: 62ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: inherit; font-size: 15.5px; font-weight: 700;
  padding: 14px 24px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(95,176,234,.32); }
.btn-primary:hover { background: var(--blue-deep); transform: translateY(-1px); box-shadow: 0 12px 26px rgba(95,176,234,.42); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue-bright); color: var(--blue); }
.btn-light { background: rgba(255,255,255,.14); color:#fff; border-color: rgba(255,255,255,.28); backdrop-filter: blur(4px); }
.btn-light:hover { background: rgba(255,255,255,.24); }
.btn-lg { padding: 16px 30px; font-size: 16.5px; }
.btn-block { width: 100%; }

.textlink { color: var(--blue); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.textlink svg { width: 16px; height: 16px; transition: transform .15s; }
.textlink:hover svg { transform: translateX(3px); }

/* ---------- Pills / chips ---------- */
.chip {
  display:inline-flex; align-items:center; gap:8px;
  padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 700;
  background: var(--blue-tint); color: var(--blue);
}
.chip-emerald { background: var(--emerald-tint); color: var(--emerald); }
.chip-dot::before { content:""; width:7px; height:7px; border-radius:50%; background: currentColor; }

/* ============================================================
   Header / Nav
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 72px; position: relative; }
/* Real Livano logo, delivered via CSS background so every page (EN + SQ) picks
   up the right file automatically — paths here are relative to this stylesheet. */
.brand {
  display: inline-block; flex: none;
  width: 138px; height: 38px;
  background: url("livano-blue.png?v=3") left center / contain no-repeat;
  text-indent: -9999px; overflow: hidden; white-space: nowrap;
}
.brand-mark { display: none; }

.nav-links { display: flex; align-items: center; gap: 6px; margin-left: 12px; }
.nav-links a {
  font-size: 15px; font-weight: 600; color: var(--ink-soft);
  padding: 8px 14px; border-radius: 999px; transition: .15s;
}
.nav-links a:hover { color: var(--ink); background: var(--ground-2); }
.nav-links a.active { color: var(--blue); }

/* Products dropdown */
.nav-dd { position: relative; }
.nav-dd-btn {
  font-family: inherit; font-size: 15px; font-weight: 600; color: var(--ink-soft);
  background: transparent; border: 0; cursor: pointer;
  padding: 8px 14px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px;
}
.nav-dd-btn svg { width: 14px; height: 14px; transition: transform .18s; }
.nav-dd-btn.active { color: var(--blue); }
.nav-dd:hover .nav-dd-btn, .nav-dd:focus-within .nav-dd-btn { color: var(--ink); background: var(--ground-2); }
.nav-dd:hover .nav-dd-btn svg { transform: rotate(180deg); }
.nav-dd::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px; } /* hover bridge */
.nav-dd-panel {
  position: absolute; top: calc(100% + 10px); left: -6px; min-width: 232px; z-index: 60;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .16s ease, transform .16s ease;
}
.nav-dd:hover .nav-dd-panel, .nav-dd:focus-within .nav-dd-panel { opacity: 1; visibility: visible; transform: none; }
.nav-dd-panel a { display: block; padding: 10px 12px; border-radius: 10px; font-size: 14.5px; font-weight: 600; color: var(--ink-soft); }
.nav-dd-panel a:hover { background: var(--blue-tint); color: var(--blue-deep); }
.nav-dd-panel a span { display: block; font-size: 12px; font-weight: 500; color: var(--ink-faint); margin-top: 1px; }

/* Mobile menu — product sub-group */
.mobile-menu .mm-label { display: block; padding: 14px 8px 6px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); border-bottom: 0 !important; }
.mobile-menu a.mm-sub { padding-left: 22px; }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; }
.lang { font-size: 13px; font-weight: 700; color: var(--ink-soft); padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; letter-spacing: .02em; transition: .15s; }
.lang:hover { border-color: var(--blue-bright); color: var(--blue); }

@media (max-width: 940px){
  /* Mobile header: just the logo + the menu button */
  .nav-links, .nav-cta .btn, .nav-cta .lang { display: none; }
  .nav .brand { position: static; transform: none; }
  .nav-cta { margin-left: auto; }
  .nav-toggle {
    display: grid; place-items: center; width: 42px; height: 42px; margin-left: 8px;
    background: #fff; border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
  }
  .nav-toggle svg { width: 22px; height: 22px; }
  .mobile-menu { display: none; padding: 8px 24px 20px; border-bottom: 1px solid var(--line-soft); background: #fff; }
  .mobile-menu.open { display: block; }
  .mobile-menu a { display: block; padding: 13px 8px; font-weight: 600; color: var(--ink-soft); border-bottom: 1px solid var(--line-soft); }
  .mobile-menu a:last-child { border-bottom: 0; }
}
@media (min-width: 941px){ .mobile-menu { display: none; } }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--blue-tint-2), #fff 82%); }
.hero::before {
  content:""; position:absolute; inset:0; z-index:0; pointer-events:none;
  background:
    radial-gradient(60% 50% at 82% 8%, rgba(95,176,234,.18), transparent 70%),
    radial-gradient(46% 42% at 8% 0%, rgba(95,176,234,.12), transparent 70%);
}
.hero-inner { position: relative; z-index: 1; padding: 72px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
@media (max-width: 960px){ .hero-grid { grid-template-columns: 1fr; gap: 40px; } }

.hero h1 { margin: 18px 0 20px; }
.hero .lead { max-width: 52ch; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-stat .n { font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.hero-stat .n span { color: var(--blue); }
.hero-stat .l { font-size: 13.5px; color: var(--ink-faint); font-weight: 600; }

/* Valuation search card in hero */
.valuecard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg); padding: 26px; position: relative;
}
.valuecard::before {
  content:""; position:absolute; inset:-1px; border-radius: inherit; z-index:-1;
  background: linear-gradient(160deg, rgba(95,176,234,.35), transparent 40%);
  opacity:.5;
}
.valuecard h3 { font-size: 18px; margin-bottom: 4px; }
.valuecard .vc-sub { font-size: 13.5px; color: var(--ink-faint); margin-bottom: 18px; }
.vc-field { margin-bottom: 14px; }
.vc-field label { display:block; font-size: 12.5px; font-weight: 700; color: var(--ink-soft); margin-bottom: 6px; }
.vc-input {
  display:flex; align-items:center; gap:10px; background: var(--ground); border: 1.5px solid var(--line);
  border-radius: 12px; padding: 12px 14px; transition: .15s;
}
.vc-input:focus-within { border-color: var(--blue-bright); background:#fff; box-shadow: 0 0 0 3px rgba(95,176,234,.18); }
.vc-input svg { width: 18px; height: 18px; color: var(--ink-faint); flex:none; }
.vc-input input, .vc-input select {
  border: 0; background: transparent; width: 100%; font-family: inherit; font-size: 15px; color: var(--ink); outline: none;
}
.vc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.vc-slider { display: flex; align-items: center; gap: 12px; background: var(--ground); border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 14px; }
.vc-slider input[type="range"] { flex: 1; min-width: 0; accent-color: var(--blue); height: 4px; cursor: pointer; }
.vc-slider .val { min-width: 52px; text-align: right; font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; color: var(--ink); }
.avm-msg { font-size: 12.5px; color: var(--accent); font-weight: 600; min-height: 16px; margin-top: 2px; }

/* Unified valuation box: property details (left) + result (right) */
.vintro { max-width: 820px; margin-bottom: 30px; }
.valubox {
  display: grid; grid-template-columns: 1fr 1fr; align-items: stretch;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
@media (max-width: 860px){ .valubox { grid-template-columns: 1fr; } }
.valubox-form { padding: 28px; }
.valubox-result { padding: 28px; background: var(--ground); border-left: 1px solid var(--line); }
@media (max-width: 860px){ .valubox-result { border-left: 0; border-top: 1px solid var(--line); } }
.valubox h3 { font-size: 18px; margin-bottom: 4px; }
.result-empty { height: 100%; min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px; color: var(--ink-faint); }
.result-empty svg { width: 44px; height: 44px; color: var(--blue-bright); margin-bottom: 10px; }
.result-empty h4 { font-size: 16px; color: var(--ink-soft); }
.result-empty p { font-size: 13.5px; max-width: 32ch; }
.vc-note { margin-top: 14px; font-size: 12px; color: var(--ink-faint); display:flex; align-items:center; gap:7px; }
.vc-note svg { width:14px; height:14px; color: var(--emerald); }

/* ============================================================
   Zillow-style hero — full-bleed photo, heading + search top-left
   ============================================================ */
.zhero {
  position: relative; overflow: hidden; color: #fff;
  min-height: 640px; display: flex; align-items: center;
  /* Fill top-to-bottom; sides are cropped as needed */
  background:
    linear-gradient(180deg, rgba(1,20,38,.34) 0%, rgba(1,20,38,.10) 42%, rgba(1,20,38,.42) 100%),
    url("hero-vangel.jpg?v=1") center center / cover no-repeat,
    var(--blue-deep);
}
.zhero-inner { position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 56px 24px; }
.zhero-copy { max-width: 720px; }
.aipill {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 20px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); color: #fff;
  padding: 8px 15px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  backdrop-filter: blur(4px);
}
.aipill .pulse { width: 8px; height: 8px; border-radius: 50%; background: #3FBE7E; box-shadow: 0 0 0 0 rgba(63,190,126,.7); animation: pulse 2.2s infinite; }
@keyframes pulse { 0%{ box-shadow: 0 0 0 0 rgba(63,190,126,.55);} 70%{ box-shadow: 0 0 0 11px rgba(63,190,126,0);} 100%{ box-shadow: 0 0 0 0 rgba(63,190,126,0);} }
@media (prefers-reduced-motion: reduce){ .aipill .pulse { animation: none; } }
.zhero h1 { color: #fff; font-size: clamp(38px, 5.6vw, 62px); line-height: 1.02; letter-spacing: -.035em; margin: 0 0 16px; text-shadow: 0 1px 2px rgba(1,16,30,.55), 0 3px 30px rgba(1,16,30,.5); }
.zhero p.lead { color: #fff; max-width: 46ch; margin: 0 0 26px; text-shadow: 0 1px 2px rgba(1,16,30,.55), 0 2px 16px rgba(1,16,30,.5); }
.zhero-tag {
  color: #fff; font-weight: 800; font-size: clamp(17px, 2.3vw, 23px); line-height: 1.3;
  margin: 0 0 18px; text-shadow: 0 1px 2px rgba(1,16,30,.55), 0 2px 16px rgba(1,16,30,.5);
}
.zhero-tag span { color: #8AC7F2; }
.zsearch {
  display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 14px;
  box-shadow: 0 16px 44px rgba(1,18,32,.30); padding: 7px; max-width: 720px;
}
.zs-fields { display: flex; align-items: center; flex: 1; gap: 8px; min-width: 0; }
.zsearch .zs-icon { padding-left: 14px; color: var(--ink-faint); display: flex; }
.zsearch .zs-icon svg { width: 22px; height: 22px; }
.zsearch input {
  flex: 1; border: 0; outline: 0; background: transparent; color: var(--ink);
  font-family: inherit; font-size: 16.5px; padding: 16px 12px; min-width: 0;
}
.zsearch input::placeholder { color: var(--ink-faint); }
.zsearch .zs-select {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink);
  font-family: inherit; font-size: 16px; padding: 15px 6px; cursor: pointer;
}
.zsearch .zs-select:invalid { color: var(--ink-faint); }
/* Fields that depend on the city read as muted placeholders until they're in play */
.zsearch .zs-select:disabled { color: var(--ink-faint); }
.zsearch select#h-type { color: var(--ink-faint); }
.zsearch .zs-div { width: 1px; align-self: stretch; background: var(--line); margin: 9px 2px; flex: none; }
.zsearch button {
  border: 0; background: var(--blue); color: #fff; border-radius: 10px; cursor: pointer;
  font-family: inherit; font-weight: 700; font-size: 16px; padding: 0 22px; height: 52px;
  display: flex; align-items: center; gap: 9px; transition: background .2s;
}
.zsearch button:hover { background: var(--blue-deep); }
.zsearch button svg { width: 18px; height: 18px; }
.zhero-meta { margin-top: 20px; display: flex; gap: 24px; flex-wrap: wrap; color: #fff; font-size: 13.5px; font-weight: 600; text-shadow: 0 1px 4px rgba(1,16,30,.6); }
.zhero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.zhero-meta svg { width: 16px; height: 16px; color: #7FD3A8; }
@media (max-width: 560px){
  .zhero { min-height: 560px; }
  /* Mobile: the white card holds only the dropdowns; the button sits below it */
  .zsearch { flex-direction: column; align-items: stretch; background: transparent; box-shadow: none; padding: 0; gap: 12px; }
  .zs-fields { flex-direction: column; align-items: stretch; width: 100%; background: rgba(255,255,255,.80); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-radius: 16px !important; box-shadow: 0 16px 44px rgba(1,18,32,.30); padding: 4px 16px; gap: 0; }
  .zsearch .zs-icon { display: none; }
  .zs-fields .zs-select { border-bottom: 1px solid var(--line-soft); }
  .zs-fields .zs-select:last-of-type { border-bottom: 0; }
  .zsearch input, .zsearch .zs-select { width: 100%; flex-basis: 100%; }
  .zsearch .zs-div { display: none; }
  .zsearch button { width: 100%; justify-content: center; }
}

/* ============================================================
   Techy touches + free AVM result / Pro lock
   ============================================================ */
.mock-est, .p-price, .band .n, .hero-stat .n, .result-est, .mock-driver b { font-variant-numeric: tabular-nums; }

.result-card { max-width: 560px; }
.result-est { font-size: 46px; font-weight: 800; letter-spacing: -.03em; line-height: 1; margin-top: 4px; }
.result-sub { font-size: 13.5px; color: var(--ink-faint); margin-top: 6px; }
.result-metrics { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 2px; }
.result-metric { flex: 1; min-width: 120px; background: var(--ground); border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; }
.result-metric span { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-faint); }
.result-metric b { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.02em; margin-top: 3px; font-variant-numeric: tabular-nums; }

.pro-lock { margin-top: 20px; border: 1px dashed var(--field-border, var(--line)); border-radius: 14px; padding: 18px 18px 16px; background: linear-gradient(180deg, #fff, var(--ground)); }
.pro-lock h4 { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; margin-bottom: 12px; }
.pro-lock h4 svg { width: 16px; height: 16px; color: var(--blue); }
.pro-lock .lockrow { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-soft); padding: 6px 0; }
.pro-lock .lockrow svg { width: 17px; height: 17px; color: var(--ink-faint); flex: none; }
.pro-lock .lockrow b { margin-left: auto; color: var(--ink-faint); font-weight: 700; filter: blur(4.5px); user-select: none; letter-spacing: 1px; }
.pro-lock .btn { margin-top: 14px; }

/* ============================================================
   Logos / trust strip
   ============================================================ */
.trust { padding: 34px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background:#fff; }
.trust p { text-align:center; font-size: 12.5px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color: var(--ink-faint); margin-bottom: 22px; }
.trust-row { display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap: 14px 40px; }
.trust-row span { font-size: 19px; font-weight: 800; letter-spacing:-.02em; color: #97A4B8; }
/* Audience marquee: auto-scrolls right→left (driven by app.js) and can be swiped */
.trust-marquee { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; cursor: grab; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.trust-marquee::-webkit-scrollbar { display: none; }
.trust-track { display: flex; flex-wrap: nowrap; align-items: center; gap: 44px; width: max-content; padding: 4px 24px; }
.trust-track span { font-size: 19px; font-weight: 800; letter-spacing:-.02em; color: #97A4B8; white-space: nowrap; }
/* Image marquee (valuations showcase) */
/* Promo sticker — starburst seal pinned to the hero's top-right corner */
.zhero { position: relative; }
.zsticker { position:absolute; top:14px; right:18px; z-index:5; width:154px; height:154px;
  display:block; text-decoration:none; transform:rotate(-13deg); transform-origin:center;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.28)); animation: stickPulse 2.8s ease-in-out infinite; }
.zsticker svg { width:100%; height:100%; display:block; overflow:visible; }
.zsticker text { text-shadow: 0 1px 2px rgba(0,0,0,.38); paint-order: stroke; stroke: rgba(0,0,0,.22); stroke-width: .5px; }
@keyframes stickPulse { 0%,100% { transform:rotate(-13deg) scale(1); } 50% { transform:rotate(-13deg) scale(1.06); } }
@media (max-width: 640px){ .zsticker { width:112px; height:112px; top:8px; right:8px; }
  .zhero-copy h1 { padding-right: 118px; } }
.valmq .trust-track { gap: 18px; padding: 0 24px; align-items: center; }
.valmq .trust-track img { height: 460px; width: auto; border-radius: 18px !important; box-shadow: var(--shadow); display: block; }
@media (max-width: 560px){ .valmq .trust-track img { height: 400px; } }

/* ============================================================
   Section header
   ============================================================ */
.shead { max-width: 640px; margin-bottom: 52px; }
.shead.center { margin-left:auto; margin-right:auto; }
.shead .h-lg { margin-bottom: 16px; }

/* ============================================================
   Feature grid / cards
   ============================================================ */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px){ .grid-3, .grid-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px){ .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px; transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.card.hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card .ico {
  width: 48px; height: 48px; border-radius: 13px; display:grid; place-items:center; margin-bottom: 18px;
  background: var(--blue-tint); color: var(--blue);
}
/* Photo header that bleeds to the card edges */
.card.has-photo { padding: 0; overflow: hidden; }
.card.has-photo .card-photo { width: 100%; height: 190px; object-fit: cover; display: block; }
.card.has-photo .card-body { padding: 24px 26px 26px; }
.card .ico svg { width: 24px; height: 24px; }
.card h3 { font-size: 19px; margin-bottom: 9px; }
.card p { color: var(--ink-soft); font-size: 15px; }

/* soft alt section */
.alt { background: var(--ground); }
.alt-teal { background: var(--teal-tint); }
.alt-sand { background: var(--sand-tint); }

/* Colour-rotate the feature-grid icons so the grid isn't monochrome */
.grid .card:nth-child(4n+1) .ico { background: var(--blue-tint);    color: var(--blue); }
.grid .card:nth-child(4n+2) .ico { background: var(--teal-tint);    color: var(--teal); }
.grid .card:nth-child(4n+3) .ico { background: var(--sand-tint);    color: var(--sand); }
.grid .card:nth-child(4n+4) .ico { background: var(--emerald-tint); color: var(--emerald); }

/* ============================================================
   Showcase — Instagram / real valuation graphics (4:5 cards)
   ============================================================ */
.showcase-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 900px){ .showcase-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px){ .showcase-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; } }
.shot {
  display: block; position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .2s ease;
}
.shot:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot .shot-tag {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  background: rgba(255,255,255,.92); color: var(--ink); font-size: 12px; font-weight: 700;
  padding: 6px 11px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px;
  box-shadow: 0 4px 12px rgba(1,20,36,.18);
}
.shot .shot-tag svg { width: 13px; height: 13px; color: var(--teal); }

/* CTA with a coastal photo behind the navy wash */
.cta.cta-photo {
  background:
    linear-gradient(155deg, rgba(1,28,48,.92), rgba(1,43,73,.80)),
    url("band-coast.jpg") center 30% / cover no-repeat, var(--ink);
}

/* ============================================================
   Interactive price map (Leaflet) — dark "control room" look
   ============================================================ */
.mapwrap {
  display: grid; grid-template-columns: 1.7fr 1fr; gap: 0;
  border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line);
  background: #fff; box-shadow: var(--shadow); position: relative;
}
@media (max-width: 840px){ .mapwrap { grid-template-columns: 1fr; } }
.mapcanvas { min-height: 540px; height: 100%; background: #EAF0F6; }
@media (max-width: 840px){ .mapcanvas { min-height: 360px; } }
.mappanel { background: #fff; color: var(--ink); padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 16px; border-left: 1px solid var(--line); }
@media (max-width: 840px){ .mappanel { border-left: 0; border-top: 1px solid var(--line); } }

.mapsel { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: var(--ground); }
.mapsel .ms-label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--emerald); display:flex; align-items:center; gap:7px; }
.mapsel .ms-label .dot { width:7px; height:7px; border-radius:50%; background:var(--emerald); box-shadow:0 0 0 0 rgba(18,133,90,.55); animation: pulse 2s infinite; }
.mapsel .ms-name { font-size: 19px; font-weight: 800; margin: 8px 0 2px; letter-spacing:-.02em; }
.mapsel .ms-price { font-size: 34px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height:1; color: var(--ink); }
.mapsel .ms-price small { font-size: 15px; font-weight: 600; color: var(--ink-faint); }
.mapsel .ms-sub { font-size: 12.5px; color: var(--ink-faint); margin-top: 8px; }

.maplist-h { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.maplist-h b { color: var(--ink) !important; }
.maplist { display: flex; flex-direction: column; gap: 2px; max-height: 240px; overflow-y: auto; margin: -4px -6px; padding: 0 6px; }
.maplist::-webkit-scrollbar { width: 6px; } .maplist::-webkit-scrollbar-thumb { background: var(--line); border-radius: 6px; }
.maprow { display: flex; align-items: center; gap: 10px; padding: 8px 8px; border-radius: 9px; cursor: pointer; transition: background .12s; }
.maprow:hover, .maprow.active { background: var(--blue-tint); }
.maprow .swatch { width: 10px; height: 10px; border-radius: 3px; flex: none; box-shadow: 0 0 6px currentColor; }
.maprow .mr-name { font-size: 13.5px; font-weight: 600; color: var(--ink-soft); }
.maprow .mr-price { margin-left: auto; font-size: 13.5px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink); }

.maplegend { border-top: 1px solid var(--line); padding-top: 14px; }
.maplegend .ml-h { font-size: 11px; font-weight: 700; letter-spacing:.1em; text-transform:uppercase; color: var(--ink-faint); margin-bottom: 8px; }
.maplegend .ml-bar { height: 8px; border-radius: 999px; background: linear-gradient(90deg, #12855A, #0E8E9C, #2A7DD1, #C1712B, #E0523B); }
.maplegend .ml-scale { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-faint); margin-top: 6px; font-variant-numeric: tabular-nums; }

/* Leaflet light theming */
.leaflet-container { font-family: var(--sans); background: #EAF0F6; }
.leaflet-tooltip.livano-tip { background:#fff; color:var(--ink); border:1px solid var(--line); border-radius:8px; box-shadow:var(--shadow-sm); font-size:12.5px; padding:7px 10px; }
.leaflet-tooltip.livano-tip b { color: var(--blue); }
.leaflet-tooltip.livano-tip::before { border-top-color:#fff; }
.leaflet-bar a { background:#fff; color:var(--ink-soft); border-color:var(--line); }
.leaflet-bar a:hover { background: var(--ground); }
.leaflet-control-attribution { background: rgba(255,255,255,.8) !important; color:#8a97ab !important; font-size:10px; }
.leaflet-control-attribution a { color: var(--blue) !important; }
.price-dot { transition: filter .2s; filter: drop-shadow(0 1px 2px rgba(11,21,36,.35)); }
.price-dot.glow { filter: drop-shadow(0 0 8px currentColor); }

/* ============================================================
   How it works — steps
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; counter-reset: step; }
.step { position: relative; padding-top: 18px; }
/* No box: the step number is just a large, light numeral */
.step .num {
  width: auto; height: auto; background: none; border-radius: 0; display: block;
  color: var(--blue); font-weight: 800; font-size: 34px; line-height: 1; margin-bottom: 6px;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 14.5px; }
@media (max-width: 900px){ .steps { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){
  .steps { grid-template-columns: 1fr; gap: 24px; }
  /* number sits to the left of the heading + text, no box */
  .step { padding-top: 0; display: grid; grid-template-columns: 42px 1fr; column-gap: 12px; row-gap: 2px; align-items: center; }
  .step .num { font-size: 30px; margin-bottom: 0; grid-row: 1 / 3; align-self: center; text-align: center; }
  .step h3 { font-size: 16px; margin-bottom: 0; align-self: end; }
  .step p { font-size: 14px; align-self: start; }
}

/* ============================================================
   Split feature (image/panel + text)
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse .split-media { order: 2; }
@media (max-width: 880px){ .split { grid-template-columns: 1fr; gap: 32px; } .split.reverse .split-media { order: 0; } }
.split ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.split ul li { display: flex; gap: 12px; font-size: 15.5px; color: var(--ink-soft); }
.split ul li svg { width: 22px; height: 22px; color: var(--emerald); flex: none; margin-top: 1px; }

.panel {
  border-radius: var(--r-xl); border: 1px solid var(--line); background: #fff;
  box-shadow: var(--shadow); padding: 26px; position: relative; overflow: hidden;
}

/* mini valuation-result mock */
.mock-head { display:flex; align-items:center; justify-content:space-between; margin-bottom: 18px; }
.mock-addr { font-weight: 700; font-size: 15px; }
.mock-addr span { display:block; font-size: 12.5px; color: var(--ink-faint); font-weight:500; }
.mock-est { font-size: 40px; font-weight: 800; letter-spacing: -.03em; }
.mock-range { font-size: 13px; color: var(--ink-faint); margin-bottom: 20px; }
.mock-bar { height: 8px; border-radius: 999px; background: var(--line-soft); overflow: hidden; margin-bottom: 6px; }
.mock-bar i { display:block; height:100%; background: linear-gradient(90deg, var(--blue-bright), var(--blue)); border-radius: inherit; }
.mock-conf { display:flex; justify-content:space-between; font-size:12px; color:var(--ink-faint); margin-bottom: 20px; }
.mock-drivers { display:grid; gap:10px; }
.mock-driver { display:flex; align-items:center; justify-content:space-between; font-size:13.5px; padding: 11px 14px; background: var(--ground); border-radius: 10px; }
.mock-driver b { font-weight:700; }
.mock-driver .up { color: var(--emerald); font-weight:700; }
.mock-driver .down { color: var(--accent); font-weight:700; }

/* ============================================================
   Stats band
   ============================================================ */
.band {
  background: linear-gradient(150deg, var(--blue-deep), var(--blue) 55%, var(--blue-bright));
  color: #fff; border-radius: var(--r-xl); padding: 56px 40px; position: relative; overflow: hidden;
}
.band::before { content:""; position:absolute; inset:0; background: radial-gradient(50% 80% at 85% 10%, rgba(255,255,255,.14), transparent 70%); }
.band .band-grid { position: relative; display:grid; grid-template-columns: repeat(4,1fr); gap: 32px; text-align:center; }
@media (max-width: 760px){ .band .band-grid { grid-template-columns: repeat(2,1fr); gap: 30px; } }
.band .n { font-size: clamp(34px, 5vw, 48px); font-weight: 800; letter-spacing: -.03em; }
.band .l { font-size: 14px; opacity: .82; font-weight: 600; margin-top: 4px; }

/* ============================================================
   Pricing
   ============================================================ */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
@media (max-width: 1000px){ .plans { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .plans { grid-template-columns: 1fr; } }
.plan {
  background:#fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px;
  display: flex; flex-direction: column; gap: 18px;
}
.plan.featured { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue), var(--shadow); position: relative; }
.plan .badge {
  position: absolute; top: -12px; left: 26px; background: var(--blue); color:#fff;
  font-size: 11.5px; font-weight: 800; letter-spacing:.06em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
}
.plan .p-name { font-size: 18px; font-weight: 800; }
.plan .p-price { font-size: 40px; font-weight: 800; letter-spacing:-.03em; line-height:1; }
.plan .p-price small { font-size: 16px; font-weight: 600; color: var(--ink-faint); }
.plan .p-desc { font-size: 13.5px; color: var(--ink-faint); min-height: 40px; }
.plan ul { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 12px; }
.plan ul li { display:flex; gap:10px; font-size: 14px; color: var(--ink-soft); align-items:flex-start; }
.plan ul li svg { width: 18px; height: 18px; color: var(--emerald); flex:none; margin-top:2px; }
.plan .btn { margin-top: auto; }

/* ============================================================
   Testimonial
   ============================================================ */
.quote { max-width: 820px; margin: 0 auto; text-align:center; }
.quote .q { font-size: clamp(22px, 3vw, 30px); font-weight: 700; letter-spacing:-.02em; line-height: 1.32; }
.quote .who { margin-top: 22px; font-size: 14px; color: var(--ink-faint); font-weight:600; }

/* ============================================================
   CTA band
   ============================================================ */
.cta {
  background: linear-gradient(160deg, #EDF4FC, #DDEBF9);
  color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 64px 48px; text-align:center; position:relative; overflow:hidden;
}
.cta::before { content:""; position:absolute; inset:0; background: radial-gradient(50% 70% at 80% 0%, rgba(95,176,234,.22), transparent 70%); }
.cta > * { position: relative; }
.cta h2 { color: var(--ink); margin-bottom: 14px; }
.cta p { color: var(--ink-soft); max-width: 52ch; margin: 0 auto 28px; font-size: 17px; }
.cta .btns { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }
/* secondary button on the now-light band */
.cta:not(.cta-photo) .btn-light { background:#fff; color: var(--ink); border-color: var(--line); backdrop-filter:none; }
.cta:not(.cta-photo) .btn-light:hover { background: var(--ground); }
/* the homepage photo variant keeps its dark treatment */
.cta.cta-photo { color:#fff; }
.cta.cta-photo h2 { color:#fff; }
.cta.cta-photo p { color: rgba(255,255,255,.72); }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: var(--ink); color: #C5CEDC; padding: 72px 0 34px; }
.footer a { color: #C5CEDC; }
.footer a:hover { color: #fff; }
.foot-grid { display:grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
@media (max-width: 820px){ .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; } .foot-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 480px){ .foot-grid { grid-template-columns: 1fr 1fr; } }
.footer .brand { background-image: url("livano-white.png"); width: 132px; height: 36px; margin-bottom: 18px; }
.foot-about { display: none !important; }
.foot-col h4 { color:#fff; font-size: 13px; letter-spacing:.06em; text-transform:uppercase; margin-bottom: 16px; font-weight: 700; }
.foot-col a { display:block; font-size: 14.5px; padding: 6px 0; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.10); padding-top: 24px; display:flex; justify-content:space-between; gap: 16px; flex-wrap:wrap; font-size: 13px; color: #8593A8; }
.foot-social { display:flex; gap: 10px; }
.foot-social a { width: 36px; height: 36px; border-radius: 10px; display:grid; place-items:center; background: rgba(255,255,255,.06); }
.foot-social a:hover { background: rgba(255,255,255,.14); }
.foot-social svg { width: 17px; height: 17px; }

/* ============================================================
   Page hero (interior pages)
   ============================================================ */
.pagehead { background: linear-gradient(180deg, var(--blue-tint-2), #fff); border-bottom: 1px solid var(--line-soft); }
.pagehead-inner { padding: 72px 24px 60px; max-width: 760px; }
.pagehead .h-xl { margin: 16px 0 18px; }

/* Photo page-head — a real photo behind a navy wash, white text */
.pagehead-photo { border-bottom: 0; background-size: cover; background-position: center; color: #fff; }
.pagehead-photo .h-xl, .pagehead-photo .eyebrow { color: #fff; }
.pagehead-photo .eyebrow::before { background: #fff; }
.pagehead-photo .lead { color: rgba(255,255,255,.88); }
.pagehead-photo .pagehead-inner { padding: 92px 24px 84px; }
/* About header — bright, real-estate photo with dark text */
.ph-about { background-image: linear-gradient(90deg, rgba(255,255,255,.9), rgba(255,255,255,.6) 52%, rgba(255,255,255,.34)), url("head-about.jpg?v=2"); }
.ph-about .h-xl, .ph-about .eyebrow { color: var(--ink); text-shadow: none; }
.ph-about .eyebrow::before { background: var(--blue); }
.ph-about .lead { color: var(--ink-soft); text-shadow: none; }
.ph-mortgage { background-image: linear-gradient(90deg, rgba(255,255,255,.94), rgba(255,255,255,.7) 48%, rgba(255,255,255,.32)), url("head-mortgage.jpg?v=1"); }
.ph-mortgage .h-xl, .ph-mortgage .eyebrow { color: var(--ink); text-shadow: none; }
.ph-mortgage .eyebrow::before { background: var(--blue); }
.ph-mortgage .lead { color: var(--ink-soft); text-shadow: none; }
.ph-usecases { background-image: linear-gradient(90deg, rgba(255,255,255,.95), rgba(255,255,255,.72) 50%, rgba(255,255,255,.4)), url("head-usecases.jpg?v=1"); }
.ph-usecases .h-xl, .ph-usecases .eyebrow { color: var(--ink); text-shadow: none; }
.ph-usecases .eyebrow::before { background: var(--blue); }
.ph-usecases .lead { color: var(--ink-soft); text-shadow: none; }
/* Pricing header — bright, colourful, dark text */
.ph-pricing { background-image: linear-gradient(rgba(255,255,255,.6), rgba(255,255,255,.48)), url("head-pricing.jpg?v=3"); }
.ph-pricing .h-xl, .ph-pricing .eyebrow { color: var(--ink); text-shadow: none; }
.ph-pricing .eyebrow::before { background: var(--blue); }
.ph-pricing .lead { color: var(--ink-soft); text-shadow: none; }
.ph-blog     { background-image: linear-gradient(120deg, rgba(1,32,54,.84), rgba(1,43,73,.58)), url("head-blog.jpg"); }
/* Contact header — bright, welcoming, dark text */
.ph-contact { background-image: linear-gradient(90deg, rgba(255,255,255,.86), rgba(255,255,255,.55) 55%, rgba(255,255,255,.32)), url("head-contact.jpg?v=2"); }
.ph-contact .h-xl, .ph-contact .eyebrow { color: var(--ink); text-shadow: none; }
.ph-contact .eyebrow::before { background: var(--blue); }
.ph-contact .lead { color: var(--ink-soft); text-shadow: none; }

/* Full-width photo band (e.g. inside the valuations page) */
.photo-band { position: relative; color: #fff; background-size: cover; background-position: center;
  background-image: linear-gradient(160deg, rgba(1,32,54,.90), rgba(1,43,73,.78)), url("head-valuations.jpg"); }
.photo-band .eyebrow, .photo-band .h-lg { color: #fff; }
.photo-band .eyebrow::before { background: #fff; }
.photo-band .card { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); backdrop-filter: blur(3px); }
.photo-band .card h3 { color: #fff; }
.photo-band .card p { color: rgba(255,255,255,.82); }

/* reveal on scroll — visible by default (never hides content if JS is off/slow);
   the hidden→fade state only applies once app.js confirms it's running. */
.reveal { opacity: 1; transform: none; }
.reveal-on .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal-on .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .reveal, .reveal-on .reveal { opacity:1; transform:none; } html{scroll-behavior:auto;} }

/* ============================================================
   CLEAN MODE — square corners, no motion (site-wide override)
   ============================================================ */
*, *::before, *::after {
  border-radius: 0 !important;
  transition: none !important;
  animation: none !important;
  scroll-behavior: auto !important;
}
