/* ==========================================================================
   Oseaeyo — shared styles
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; margin: 0 0 var(--sp-4); color: var(--ink); letter-spacing: -0.01em; }
h1 { font-size: var(--step-h1); }
h2 { font-size: var(--step-h2); }
h3 { font-size: var(--step-h3); }
h4 { font-size: var(--step-h4); }
p { margin: 0 0 var(--sp-4); color: var(--text-muted); }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; }

::selection { background: var(--gold-pale); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--harbor);
  outline-offset: 3px;
  border-radius: 2px;
}

[id] { scroll-margin-top: 90px; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--sp-6); }
@media (max-width: 640px) { .container { padding-inline: var(--sp-5); } }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--step-caption);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}
.eyebrow::before { content: ""; width: 20px; height: 1px; background: var(--gold-deep); display: inline-block; }

.section { padding-block: var(--sp-9); }
.section--tight { padding-block: var(--sp-8); }
.section--alt { background: var(--bg-alt); }
.section--ink { background: var(--ink); color: var(--parchment); }
.section--ink h1, .section--ink h2, .section--ink h3, .section--ink h4 { color: var(--white); }
.section--ink p { color: rgba(247, 243, 233, 0.72); }
@media (max-width: 720px) { .section { padding-block: var(--sp-7); } .section--tight { padding-block: var(--sp-6); } }

.section-head { max-width: 640px; margin-bottom: var(--sp-7); }
.section-head--center { margin-inline: auto; text-align: center; }
.lead { font-size: var(--step-lead); color: var(--text-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-s);
  font-weight: 600;
  font-size: var(--step-small);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--gold); color: var(--white); box-shadow: 0 10px 24px -12px rgba(140, 106, 52, 0.65); }
.btn-primary:hover { background: var(--gold-deep); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--ink); background: rgba(33,31,27,0.04); }
.btn-on-ink { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.35); }
.btn-on-ink:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-whatsapp { background: #2f4a3a; color: var(--white); }
.btn-whatsapp:hover { background: #24392d; transform: translateY(-1px); }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 0.6rem 1.1rem; font-size: var(--step-caption); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
}
/* Frosted background lives on a pseudo-element, not the header itself, because a
   `backdrop-filter` on an ancestor changes the containing block for any
   `position: fixed` descendant (the mobile nav panel) from the viewport to that
   ancestor — which squashed the open mobile menu into the header's own height. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(247, 243, 233, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
  padding-block: 0.9rem;
}
.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand-mark { height: 36px; width: auto; flex-shrink: 0; display: block; }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-word .name { font-family: var(--font-display); font-weight: 700; font-size: 1.28rem; letter-spacing: 0.01em; white-space: nowrap; }
.brand-word .sub { font-family: var(--font-body); font-size: 0.56rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-faint); margin-top: 2px; white-space: nowrap; }

.nav-links { display: flex; align-items: center; gap: 1.15rem; }
.nav-links a { text-decoration: none; font-size: 0.86rem; font-weight: 500; color: var(--text-muted); padding-block: 0.3rem; border-bottom: 2px solid transparent; transition: color 0.15s, border-color 0.15s; white-space: nowrap; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); border-color: var(--gold); }
.nav-cta { display: flex; align-items: center; gap: var(--sp-4); }
.nav-toggle { display: none; }

.nav-contact { display: flex; align-items: center; gap: 0.4rem; text-decoration: none; font-size: var(--step-caption); font-weight: 600; white-space: nowrap; }
.nav-contact svg { width: 18px; height: 18px; flex-shrink: 0; }
.nav-whatsapp { color: #2f7a4f; }
.nav-whatsapp:hover { color: #235c3b; }
.nav-phone { color: var(--text-muted); }
.nav-phone:hover { color: var(--ink); }

@media (max-width: 1360px) {
  .nav-contact span { display: none; }
}

@media (max-width: 1200px) {
  .nav-links { position: fixed; inset: 64px 0 0 0; background: var(--parchment); flex-direction: column; align-items: flex-start; padding: var(--sp-6); gap: var(--sp-5); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity 0.2s var(--ease), transform 0.2s var(--ease); border-top: 1px solid var(--border); overflow-y: auto; }
  .nav-links a { font-size: 1.1rem; }
  body.nav-open .nav-links { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .nav-phone { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--radius-s); border: 1px solid var(--border-strong); background: transparent; }
  .nav-toggle svg { width: 18px; height: 18px; }
}

/* ---------- Hero (video) ---------- */
.hero--video {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.25rem, 9vw, 6.5rem) clamp(2.5rem, 6vw, 4rem);
  display: flex;
  align-items: flex-end;
  color: var(--white);
}
.hero-media { position: absolute; inset: 0; z-index: 0; background: var(--ink); }
.hero-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,18,16,0.32) 0%, rgba(18,16,14,0.5) 45%, rgba(13,12,10,0.84) 100%);
}
.hero--video .container { max-width: none; margin-inline: 0; padding-inline: clamp(1.5rem, 6vw, 5rem); }
.hero-content { position: relative; z-index: 1; max-width: 640px; text-align: left; }
.hero--video h1 { color: var(--white); margin-bottom: var(--sp-3); }
.hero--video h1 em { font-style: italic; color: var(--gold); }
.hero--video .lead { color: rgba(247,243,233,0.88); font-size: var(--step-lead); margin-bottom: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin-block: var(--sp-6); align-items: center; }
.hero-proof { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-6); padding-top: var(--sp-5); border-top: 1px solid rgba(255,255,255,0.2); }
.hero-proof li { display: flex; align-items: center; gap: 0.5rem; font-size: var(--step-caption); font-weight: 600; color: rgba(247,243,233,0.9); }
.hero-proof svg { width: 16px; height: 16px; color: var(--gold); flex-shrink: 0; }
.hero-proof .stars-line { gap: 0.35rem; }
.hero-proof .stars { color: var(--gold); letter-spacing: 1px; }

@media (max-width: 640px) {
  .hero--video { align-items: center; text-align: left; }
}

/* ---------- Wave route (signature motif) ---------- */
.wave-route { position: relative; padding-block: var(--sp-6); }
.wave-route svg { width: 100%; height: auto; display: block; }
.wave-route .path-line { fill: none; stroke: var(--border-strong); stroke-width: 2; stroke-dasharray: 1 8; stroke-linecap: round; }
.wave-route .path-progress { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 6 10; animation: dash 26s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -400; } }
@media (prefers-reduced-motion: reduce) { .wave-route .path-progress { animation: none; } }

/* ---------- Timeline (How it works) ---------- */
.timeline { position: relative; }
.timeline-track { position: relative; margin: var(--sp-8) 0; }
.timeline-track svg.route { width: 100%; height: 64px; display: block; }
.timeline-track .path-line { fill: none; stroke: var(--border-strong); stroke-width: 2; stroke-dasharray: 1 8; stroke-linecap: round; }

.timeline-list { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--sp-5); counter-reset: stage; margin: 0; padding: 0; list-style: none; }
.timeline-item { position: relative; }
.timeline-item .stage-marker {
  width: 40px; height: 40px; border-radius: 50%; background: var(--surface); border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center; margin-bottom: var(--sp-4);
  font-family: var(--font-display); font-weight: 700; color: var(--gold-deep);
}
.timeline-item h4 { font-size: 1.08rem; margin-bottom: var(--sp-2); }
.timeline-item .days { display: inline-block; font-size: var(--step-caption); font-weight: 700; color: var(--harbor); background: var(--harbor-pale); padding: 0.15rem 0.55rem; border-radius: 999px; margin-bottom: var(--sp-3); }
.timeline-item p { font-size: var(--step-small); margin-bottom: var(--sp-3); }
.timeline-item .proof { font-size: var(--step-caption); color: var(--text-faint); border-top: 1px dashed var(--border); padding-top: var(--sp-3); }
.timeline-item .proof strong { color: var(--ink-2); }

@media (max-width: 1080px) {
  .timeline-list { grid-template-columns: repeat(3, 1fr); }
  .timeline-track svg.route { display: none; }
}
@media (max-width: 640px) {
  .timeline-list { grid-template-columns: 1fr; }
}

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: var(--sp-6); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .split-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: var(--sp-6);
  box-shadow: var(--shadow-card);
}

/* ---------- Reach us directly (contact card) ---------- */
.reach-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.reach-card-head {
  padding: var(--sp-6);
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: var(--white);
}
.reach-card-head h4 { color: var(--white); margin-bottom: var(--sp-2); font-size: 1.15rem; }
.reach-card-head p { margin: 0; color: rgba(255,255,255,0.78); font-size: var(--step-small); line-height: 1.5; }
.reach-rows { display: flex; flex-direction: column; }
.reach-row {
  display: flex; align-items: flex-start; gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-6);
  border-top: 1px solid var(--border);
  color: inherit; text-decoration: none;
  transition: background 0.15s var(--ease);
}
a.reach-row:hover, a.reach-row:focus-visible { background: var(--parchment-2); }
.reach-icon {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: var(--radius-m);
  background: var(--gold-pale); color: var(--gold-deep);
  display: flex; align-items: center; justify-content: center;
}
.reach-icon svg { width: 19px; height: 19px; }
.reach-text { display: flex; flex-direction: column; gap: 0.2rem; }
.reach-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.reach-value { font-size: var(--step-small); font-weight: 600; color: var(--ink); line-height: 1.45; }

.pricing-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-l);
  padding: var(--sp-7) var(--sp-6) var(--sp-6); box-shadow: var(--shadow-card); min-height: 30rem;
}
.pricing-card--featured { border-color: var(--gold); box-shadow: var(--shadow-lift); background: linear-gradient(180deg, var(--gold-pale) 0%, var(--surface) 40%); }
.pricing-card-top { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-6); }
.pricing-num {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 0.85rem;
  border: 2px solid var(--border-strong); color: var(--text-muted);
}
.pricing-card--featured .pricing-num { background: var(--gold); border-color: var(--gold); color: var(--white); }
.pricing-cat { font-size: var(--step-caption); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.pricing-badge {
  margin-left: auto; background: var(--gold); color: var(--white); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase; padding: 0.3rem 0.85rem; border-radius: 999px; white-space: nowrap;
}
.pricing-label { font-size: var(--step-caption); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-faint); margin-bottom: var(--sp-2); }
.pricing-range { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--ink); margin-bottom: var(--sp-6); }
.pricing-divider { border-top: 1px solid var(--border); margin-bottom: var(--sp-5); }
.pricing-amount { font-family: var(--font-display); font-size: clamp(2rem, 3vw + 1rem, 2.6rem); font-weight: 700; color: var(--ink); margin-bottom: var(--sp-4); }
.pricing-card .small-note { margin-bottom: var(--sp-6); flex: 1; }
.pricing-cta { justify-content: center; width: 100%; margin-top: auto; }

.badge-row { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.trust-badge {
  display: flex; align-items: flex-start; gap: var(--sp-3);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-m);
  padding: var(--sp-5); flex: 1 1 220px;
}
.trust-badge svg { width: 26px; height: 26px; color: var(--harbor); flex-shrink: 0; margin-top: 2px; }
.trust-badge h4 { font-size: 1rem; margin-bottom: var(--sp-1); }
.trust-badge p { font-size: var(--step-caption); margin: 0; }

/* ---------- Vehicle listing cards ---------- */
.listing-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-m); overflow: hidden; box-shadow: var(--shadow-card); display: flex; flex-direction: column; }
.listing-card[data-lot] { cursor: pointer; transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease); }
.listing-card[data-lot]:hover, .listing-card[data-lot]:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.listing-photo { aspect-ratio: 16/10; background: linear-gradient(135deg, var(--parchment-2), var(--harbor-pale)); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.listing-photo svg { width: 40%; color: var(--harbor); opacity: 0.5; }
.listing-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.listing-title-tag { position: absolute; top: var(--sp-3); left: var(--sp-3); background: var(--success-pale); color: var(--success); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 0.25rem 0.6rem; border-radius: 999px; }
.listing-title-tag.salvage { background: var(--gold-pale); color: var(--gold-deep); }
.listing-photo-cta {
  position: absolute; left: 0; right: 0; bottom: 0; text-align: center;
  padding: 0.5rem; font-size: var(--step-caption); font-weight: 600; letter-spacing: 0.02em;
  color: var(--white); background: linear-gradient(0deg, rgba(20,18,16,0.72), rgba(20,18,16,0));
  opacity: 0; transform: translateY(6px); transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
}
.listing-card[data-lot]:hover .listing-photo-cta, .listing-card[data-lot]:focus-visible .listing-photo-cta { opacity: 1; transform: none; }
.listing-disclosure { font-size: var(--step-caption); color: var(--gold-deep); background: var(--gold-pale); border-radius: var(--radius-s); padding: var(--sp-3); margin: 0; }
.filter-bar { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-7); }
.filter-chip { padding: 0.5rem 1.1rem; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); font-size: var(--step-caption); font-weight: 600; color: var(--text-muted); cursor: pointer; transition: all 0.15s; }
.filter-chip:hover { border-color: var(--gold); color: var(--ink); }
.filter-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.listing-body { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-3); flex: 1; }
.listing-body h3 { font-size: 1.2rem; margin: 0; }
.listing-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 0.8rem; font-size: var(--step-caption); color: var(--text-faint); }
.listing-meta span { display: flex; align-items: center; gap: 0.3rem; }
.price-breakdown { border-top: 1px dashed var(--border); margin-top: auto; padding-top: var(--sp-3); }
.price-breakdown .row { display: flex; justify-content: space-between; font-size: var(--step-caption); color: var(--text-muted); padding-block: 0.15rem; }
.price-breakdown .row.total { font-weight: 700; color: var(--ink); font-size: var(--step-small); padding-top: 0.4rem; margin-top: 0.3rem; border-top: 1px solid var(--border); }

/* ---------- FAQ accordion ---------- */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; text-align: left; background: none; border: none; padding: var(--sp-5) 0; display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4); cursor: pointer; font-family: var(--font-display); font-size: 1.08rem; font-weight: 700; color: var(--ink); }
.faq-q .icon { width: 22px; height: 22px; flex-shrink: 0; position: relative; }
.faq-q .icon::before, .faq-q .icon::after { content: ""; position: absolute; background: var(--gold-deep); border-radius: 2px; transition: transform 0.2s var(--ease); }
.faq-q .icon::before { width: 100%; height: 2px; top: 50%; left: 0; transform: translateY(-50%); }
.faq-q .icon::after { width: 2px; height: 100%; left: 50%; top: 0; transform: translateX(-50%); }
.faq-item[data-open="true"] .icon::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s var(--ease); }
.faq-a p { padding-bottom: var(--sp-5); margin: 0; }
.faq-map { width: 100%; max-width: 480px; height: auto; display: block; border-radius: var(--radius-m); border: 1px solid var(--border); margin-bottom: var(--sp-4); }
.faq-map-legend { display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-6); list-style: none; margin: 0; padding: 0 0 var(--sp-5); }
.faq-map-legend li { display: flex; align-items: center; gap: 0.45rem; font-size: var(--step-caption); color: var(--text-muted); }
.faq-map-legend .dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.faq-map-legend .dot--nj { background: var(--gold); border: 1px solid var(--gold-deep); }
.faq-map-legend .dot--il { background: var(--harbor); border: 1px solid var(--harbor-deep); }
.faq-map-legend .dot--ca { background: var(--success); border: 1px solid #465e40; }
.faq-map-legend span:last-child { color: var(--text-faint); }
.faq-item[data-open="true"] .faq-a { max-height: 820px; }

/* ---------- Testimonials ---------- */
.testimonial { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-m); padding: var(--sp-6); box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: var(--sp-4); }
/* Card keeps its light surface even inside a dark .section--ink — override the section's light-on-dark paragraph color back to the normal card text color. */
.section--ink .testimonial p, .testimonial p { color: var(--text-muted); }
.testimonial .stars { display: flex; gap: 3px; color: var(--gold); }
.testimonial .stars svg { width: 15px; height: 15px; }
.testimonial-who { display: flex; align-items: center; gap: var(--sp-3); margin-top: auto; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--harbor); color: var(--white); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; flex-shrink: 0; }
.testimonial-who strong { display: block; font-size: var(--step-small); color: var(--ink); }
.testimonial-who span { font-size: var(--step-caption); color: var(--text-faint); }

/* ---------- Cost calculator ---------- */
.calculator { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-l); box-shadow: var(--shadow-card); padding: var(--sp-6); }
.calc-title { text-align: center; font-size: var(--step-h4); margin-bottom: var(--sp-5); }
.calc-field { margin-bottom: var(--sp-5); }
.calc-field label { display: block; text-align: center; font-size: var(--step-small); font-weight: 600; color: var(--text-muted); margin-bottom: var(--sp-2); }
.calc-field select, .calc-field input {
  width: 100%; padding: 0.75rem 0.9rem; border: 1px solid var(--border-strong); border-radius: var(--radius-s);
  background: var(--parchment); font: inherit; font-size: var(--step-small); color: var(--ink);
  text-align: center;
}
.calc-result { margin-top: var(--sp-5); padding-top: var(--sp-5); border-top: 1px solid var(--border); }
.calc-result .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.4rem; padding-block: 0.35rem; font-size: var(--step-small); color: var(--text-muted); }
.calc-result .row.subtotal { font-weight: 700; color: var(--ink-2); border-top: 1px dashed var(--border); margin-top: var(--sp-2); padding-top: var(--sp-3); }
.calc-result .row.total { font-weight: 700; color: var(--ink); font-size: clamp(1.2rem, 4vw + 0.5rem, var(--step-h4)); font-family: var(--font-display); border-top: 1px solid var(--border); margin-top: var(--sp-3); padding-top: var(--sp-3); }
.calc-result .row.total .total-value { display: flex; flex-direction: column; align-items: flex-end; gap: 0.15rem; line-height: 1.15; }
.calc-result .row.total .total-ghs { font-size: var(--step-caption); font-weight: 600; color: var(--text-muted); font-family: var(--font-body); margin-top: 0.35rem; }
.calc-result .row.total .total-fx { font-size: 0.7rem; font-weight: 500; color: var(--text-faint); font-family: var(--font-body); }
.calc-note { font-size: var(--step-caption); color: var(--text-faint); margin-top: var(--sp-3); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
.field { display: flex; flex-direction: column; gap: var(--sp-2); }
.field.full { grid-column: 1 / -1; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Floating WhatsApp / chat buttons ---------- */
.fab-stack {
  position: fixed;
  right: max(1.25rem, env(safe-area-inset-right));
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: center;
}
.fab {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 10px 24px -8px rgba(20,18,16,0.4), 0 2px 6px rgba(20,18,16,0.16);
  text-decoration: none;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.fab:hover, .fab:focus-visible { transform: translateY(-3px) scale(1.04); box-shadow: 0 16px 30px -10px rgba(20,18,16,0.45); }
.fab svg { width: 27px; height: 27px; }
.fab-whatsapp { background: #25d366; }
.fab-whatsapp:hover { background: #20bd5a; }
.fab-whatsapp::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.5);
  animation: fab-pulse 2.4s ease-out infinite;
}
.fab-chat { background: var(--harbor); }
.fab-chat:hover { background: var(--harbor-deep); }
@keyframes fab-pulse {
  0% { transform: scale(0.92); opacity: 0.75; }
  100% { transform: scale(1.4); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .fab-whatsapp::after { animation: none; }
}
@media (max-width: 560px) {
  .fab { width: 50px; height: 50px; }
  .fab svg { width: 24px; height: 24px; }
}
.field label { font-size: var(--step-caption); font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea {
  padding: 0.85rem 1rem; border: 1px solid var(--border-strong); border-radius: var(--radius-s);
  background: var(--surface); font: inherit; font-size: var(--step-small); color: var(--ink);
}
.field textarea { resize: vertical; min-height: 110px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(247, 243, 233, 0.75); padding-block: var(--sp-8) var(--sp-6); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--sp-7); margin-bottom: var(--sp-7); }
.footer-brand .name { color: var(--white); }
.footer-brand p { color: rgba(247, 243, 233, 0.6); font-size: var(--step-caption); margin-top: var(--sp-4); max-width: 30ch; }
.footer-col h4 { color: var(--white); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; font-family: var(--font-body); margin-bottom: var(--sp-4); }
.footer-col a { text-decoration: none; color: rgba(247, 243, 233, 0.68); font-size: var(--step-small); display: block; margin-bottom: var(--sp-3); transition: color 0.15s; }
.footer-col a:hover { color: var(--gold); }
.footer-legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-3); border-top: 1px solid rgba(247,243,233,0.14); padding-top: var(--sp-5); font-size: var(--step-caption); color: rgba(247,243,233,0.5); }
.footer-social { display: flex; gap: var(--sp-3); margin-top: var(--sp-5); }
.footer-social a {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius-s);
  border: 1px solid rgba(247,243,233,0.25); color: rgba(247,243,233,0.75);
  transition: color 0.15s, border-color 0.15s;
}
.footer-social a:hover { color: var(--gold); border-color: var(--gold); }
.footer-social svg { width: 20px; height: 20px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Overflow safety ----------
   Flex/grid items default to min-width: auto, which floors their shrink at
   max-content in some cases and can push the whole page wider than the
   viewport on narrow screens. Zeroing it lets text wrap normally instead. */
.grid > *,
.hero .container > *,
.badge-row > *,
.hero-proof li,
.ticker li,
.footer-grid > *,
.form-grid > * {
  min-width: 0;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.stack { display: flex; flex-direction: column; }
.gap-2 { gap: var(--sp-2); }
.small-note { font-size: var(--step-caption); color: var(--text-faint); }

/* ---------- Lot photo / video modal ---------- */
.lot-modal { position: fixed; inset: 0; z-index: 500; display: flex; align-items: center; justify-content: center; padding: var(--sp-5); }
.lot-modal[hidden] { display: none; }
.lot-modal-backdrop { position: absolute; inset: 0; background: rgba(15, 13, 11, 0.86); }
.lot-modal-dialog {
  position: relative; z-index: 1; width: min(920px, 100%); max-height: min(880px, 92vh);
  background: var(--ink); border-radius: var(--radius-l); overflow: hidden;
  display: flex; flex-direction: column; box-shadow: var(--shadow-lift);
}
.lot-modal-close {
  position: absolute; top: var(--sp-4); right: var(--sp-4); z-index: 3;
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.3);
  background: rgba(0,0,0,0.35); color: var(--white); display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.lot-modal-close svg { width: 18px; height: 18px; }
.lot-modal-close:hover { background: rgba(0,0,0,0.55); }
.lot-modal-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-5) var(--sp-6) var(--sp-3); padding-right: 4rem; }
.lot-modal-header h3 { color: var(--white); margin: 0; font-size: 1.15rem; }
.lot-tabs { display: flex; gap: var(--sp-2); background: rgba(255,255,255,0.08); border-radius: 999px; padding: 3px; }
.lot-tab { border: none; background: transparent; color: rgba(247,243,233,0.75); font-size: var(--step-caption); font-weight: 600; padding: 0.4rem 0.9rem; border-radius: 999px; cursor: pointer; transition: background 0.15s, color 0.15s; }
.lot-tab[aria-selected="true"] { background: var(--gold); color: var(--white); }
.lot-modal-body { position: relative; flex: 1; min-height: 0; background: #000; }
.lot-pane { position: relative; width: 100%; height: 100%; min-height: 320px; display: flex; align-items: center; justify-content: center; }
.lot-pane[hidden] { display: none; }
.lot-photo { max-width: 100%; max-height: min(560px, 60vh); width: auto; height: auto; object-fit: contain; display: block; }
.lot-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 42px; height: 42px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(0,0,0,0.4); color: var(--white); display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.lot-nav:hover { background: rgba(0,0,0,0.65); }
.lot-nav svg { width: 20px; height: 20px; }
.lot-nav--prev { left: var(--sp-4); }
.lot-nav--next { right: var(--sp-4); }
.lot-counter {
  position: absolute; bottom: var(--sp-4); left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,0.5); color: var(--white); font-size: var(--step-caption); font-weight: 600;
  padding: 0.3rem 0.8rem; border-radius: 999px;
}
.lot-video-empty { display: flex; flex-direction: column; align-items: center; gap: var(--sp-3); color: rgba(247,243,233,0.7); text-align: center; max-width: 40ch; padding: var(--sp-6); }
.lot-video-empty[hidden] { display: none; }
.lot-video-empty svg { width: 40px; height: 40px; color: var(--gold); }
.lot-video-empty p { margin: 0; font-size: var(--step-small); color: rgba(247,243,233,0.7); }
.lot-video { max-width: 100%; max-height: min(560px, 60vh); width: auto; height: auto; object-fit: contain; display: block; background: #000; }
.lot-video[hidden] { display: none; }
.lot-modal-thumbs { display: flex; gap: var(--sp-2); padding: var(--sp-4) var(--sp-6); overflow-x: auto; background: rgba(255,255,255,0.04); }
.lot-modal-thumbs[hidden] { display: none; }
.lot-modal-thumbs button { flex-shrink: 0; width: 64px; height: 44px; padding: 0; border-radius: var(--radius-s); border: 2px solid transparent; overflow: hidden; cursor: pointer; opacity: 0.6; transition: opacity 0.15s, border-color 0.15s; }
.lot-modal-thumbs button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lot-modal-thumbs button[aria-current="true"] { opacity: 1; border-color: var(--gold); }

@media (max-width: 640px) {
  .lot-modal { padding: 0; }
  .lot-modal-dialog { width: 100%; height: 100%; max-height: 100%; border-radius: 0; }
  .lot-modal-header { padding-right: 3.5rem; }
  .lot-modal-thumbs { display: none; }
}
