/* =========================================================
   Jil's Mobile Detailing — Landing page styles (mobile-first)
   ========================================================= */
:root {
  --bg: #080808;
  --surface: #121214;
  --surface-2: #1b1b1f;
  --line: #2c2c31;
  --red: #E50914;
  --red-hover: #ff1f2a;
  --red-text: #ff4d55;      /* red for small text on black (higher contrast) */
  --text: #ffffff;
  --muted: #c4c4cb;
  --green: #1a8f3c;
  --green-hover: #20a647;
  --radius: 14px;
  --radius-sm: 10px;
  --glow: 0 0 0 1px rgba(229, 9, 20, .55), 0 8px 28px -10px rgba(229, 9, 20, .55);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.1; margin: 0; }
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }

:focus-visible { outline: 3px solid #fff; outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: #fff; color: #000; padding: 10px 14px; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 8px; }

/* ---------- Icons ---------- */
.icon, .icon-sm, .icon-lg, .wa-float svg {
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0;
}
.icon { width: 26px; height: 26px; }
.icon-sm { width: 20px; height: 20px; }
.icon-lg { width: 36px; height: 36px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border: 0; border-radius: 999px;
  font: inherit; font-weight: 800; text-decoration: none; cursor: pointer;
  transition: background-color .2s, transform .2s, box-shadow .2s;
}
.btn-lg { min-height: 54px; font-size: 1.08rem; padding: 14px 28px; }
.btn-block { width: 100%; }
.btn-primary {
  background: linear-gradient(180deg, #ff1a25, var(--red) 55%, #b5060f);
  color: #fff;
  box-shadow: 0 10px 26px -10px rgba(229, 9, 20, .8);
}
.btn-primary:hover { background: var(--red-hover); transform: translateY(-1px); }
.btn-primary[disabled] { opacity: .65; cursor: wait; transform: none; }
.btn-whatsapp {
  background: linear-gradient(180deg, #24a94b, var(--green));
  color: #fff; margin-top: 14px;
}
.btn-whatsapp:hover { background: var(--green-hover); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 8, 8, .94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand img { height: 60px; width: auto; mix-blend-mode: lighten; } /* hides the logo's black box */
.lang-switch { display: flex; align-items: center; gap: 4px; }
.lang-sep { color: #6b6b72; }
.lang-btn {
  background: none; border: 0; color: var(--muted);
  font: inherit; font-weight: 700; font-size: 1rem; letter-spacing: .06em;
  min-width: 44px; min-height: 44px; padding: 0 6px;
  cursor: pointer; position: relative;
}
.lang-btn::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 8px;
  height: 2px; border-radius: 2px; background: var(--red);
  transform: scaleX(0); transition: transform .2s;
}
.lang-btn:hover { color: #fff; }
.lang-btn[aria-pressed="true"] { color: #fff; }
.lang-btn[aria-pressed="true"]::after { transform: scaleX(1); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 28px 0 36px; isolation: isolate; }
.hero-media {
  position: absolute; z-index: -1; top: 0; right: 0; bottom: 0;
  width: 78%; max-width: 640px;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 30% center; }
.hero-media::after { /* dark gradient so text stays readable */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(8,8,8,.88) 35%, rgba(8,8,8,.35) 75%, rgba(8,8,8,.2) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(8,8,8,0) 30%);
}
.hero::before { /* subtle red glow */
  content: ""; position: absolute; z-index: -2; width: 520px; height: 520px;
  right: -160px; top: -120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(229,9,20,.28), transparent 65%);
}
.eyebrow {
  display: inline-block; font-size: .82rem; font-weight: 800; font-style: italic;
  letter-spacing: .2em; text-transform: uppercase; padding-bottom: 8px;
  border-bottom: 3px solid var(--red); margin-bottom: 14px; max-width: 14em;
}
.hero h1 {
  font-size: clamp(2.1rem, 9vw, 4.2rem);
  font-weight: 900; font-style: italic; letter-spacing: -.01em;
  text-shadow: 0 2px 18px rgba(0,0,0,.6);
}
.hero h1 span { display: block; }
.hero h1 .accent { color: var(--red); text-shadow: 0 0 22px rgba(229,9,20,.35); }
.hero-text { margin-top: 14px; max-width: 30ch; font-size: 1.08rem; color: #ececf0; }
.hero-location { display: flex; align-items: center; gap: 8px; margin: 14px 0 22px; color: var(--muted); font-weight: 600; }
.hero-location .icon-sm { color: var(--red-text); }

.benefits {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line);
}
.benefits li {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  font-weight: 700; font-size: .88rem; line-height: 1.2;
}
.benefits .icon { color: var(--red-text); }

/* ---------- Sections ---------- */
.section { padding: 36px 0; }
.section-title {
  font-size: clamp(1.6rem, 6vw, 2.4rem); font-weight: 900; font-style: italic;
  display: inline-block; padding-bottom: 8px; margin-bottom: 20px;
  border-bottom: 3px solid var(--red);
}

/* ---------- Services ---------- */
.service-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border-radius: var(--radius); padding: 20px 14px;
  text-align: center; box-shadow: var(--glow);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.card .icon-lg { color: #fff; }
.card h3 { font-size: 1.12rem; font-weight: 800; }
.card p { color: var(--muted); font-size: .93rem; line-height: 1.35; }

/* ---------- Before & After slider ---------- */
.ba-note { color: var(--muted); font-size: .9rem; margin: -8px 0 16px; }
.ba-list { display: grid; gap: 16px; }
.ba {
  position: relative; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 3 / 2; background: var(--surface);
  border: 1px solid #3a3a40; user-select: none; touch-action: pan-y;
}
.ba-split { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid #3a3a40; background: var(--surface); }
.ba-split img { width: 100%; aspect-ratio: 1400 / 731; object-fit: cover; }
.ba-split .ba-tag { bottom: auto; top: 12px; }
.ba-split figcaption { padding: 10px 14px; font-weight: 700; text-align: center; background: var(--surface-2); }
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-after { clip-path: inset(0 0 0 var(--pos)); }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px;
  margin-left: -1.5px; background: #fff; pointer-events: none;
  box-shadow: 0 0 10px rgba(0,0,0,.5);
}
.ba-handle::after {
  content: "‹ ›"; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 42px; height: 42px; border-radius: 50%;
  background: #fff; color: #000; font-weight: 900; font-size: 1.1rem;
  display: grid; place-items: center; box-shadow: 0 2px 12px rgba(0,0,0,.5);
}
.ba-range {
  position: absolute; inset: 0; width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none;
}
.ba:has(.ba-range:focus-visible) { outline: 3px solid #fff; outline-offset: 3px; }
.ba-tag {
  position: absolute; bottom: 12px; padding: 5px 14px; border-radius: 999px;
  font-weight: 800; font-size: .88rem; pointer-events: none;
}
.ba-tag-before { left: 12px; background: rgba(20,20,22,.88); }
.ba-tag-after { right: 12px; background: var(--red); }

/* ---------- Quote form ---------- */
.quote-box {
  background: linear-gradient(180deg, #141416, #0d0d0f);
  border: 2px solid var(--red); border-radius: 20px;
  padding: 24px 16px; max-width: 640px; margin: 0 auto;
  box-shadow: 0 0 40px -12px rgba(229,9,20,.55);
}
.quote-title {
  text-align: center; font-size: clamp(1.6rem, 7vw, 2.3rem); font-weight: 900; font-style: italic;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px;
}
.pill { background: var(--red); padding: 2px 14px 4px; border-radius: 12px; }
.quote-text { text-align: center; color: var(--muted); margin: 12px auto 18px; max-width: 42ch; }
.req-note { font-size: .85rem; color: var(--muted); margin-bottom: 10px; }
.req-note span[aria-hidden], .req { color: var(--red-text); }
.opt { color: var(--muted); font-weight: 400; font-size: .88rem; }

.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"],
.field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: inherit; font-size: 1rem; /* 16px avoids iOS zoom */
  color: #111; background: #f5f5f7;
  border: 2px solid transparent; border-radius: var(--radius-sm);
}
.field textarea { min-height: 96px; resize: vertical; }
.field select {
  -webkit-appearance: none; appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(255,255,255,.9); }
.field [aria-invalid="true"] { border-color: var(--red); background: #fff1f1; }
.error { color: #ff8a90; font-size: .9rem; font-weight: 600; margin-top: 4px; min-height: 0; }
.error:empty { display: none; }
.field-row { display: grid; gap: 0 12px; }

.consent { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: start; }
.consent input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--red); cursor: pointer; }
.consent label { font-weight: 400; font-size: .92rem; color: #e2e2e7; margin: 0; cursor: pointer; }
.consent .error { grid-column: 1 / -1; }

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { margin-top: 14px; border-radius: var(--radius-sm); }
.form-status:empty { display: none; }
.form-status.is-success { background: #0f2e19; border: 1px solid #2fa354; padding: 14px; }
.form-status.is-error { background: #3a0d10; border: 1px solid var(--red); padding: 14px; }
.form-status strong { display: block; margin-bottom: 4px; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 20px; padding: 32px 0 96px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(229,9,20,.12));
}
.footer-name { font-weight: 900; font-style: italic; font-size: 1.25rem; margin-bottom: 14px; }
.footer-list { display: grid; gap: 10px; }
.footer-list li { display: flex; align-items: center; gap: 10px; color: #e6e6ea; }
.footer-list .icon-sm { color: var(--red-text); }
.footer-list a { color: #fff; font-weight: 700; text-underline-offset: 3px; display: inline-block; padding: 6px 0; }
.copyright { margin-top: 20px; font-size: .85rem; color: #9a9aa2; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--green); color: #fff;
  box-shadow: 0 8px 22px rgba(0,0,0,.5);
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover { background: var(--green-hover); }

/* =========================================================
   Breakpoints
   ========================================================= */
@media (min-width: 360px) {
  .service-grid { grid-template-columns: 1fr 1fr; }
  .card { padding: 18px 10px; }
}
@media (min-width: 560px) {
  .container { padding: 0 24px; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .quote-box { padding: 32px 28px; }
  .ba-list { grid-template-columns: 1fr 1fr; }
  .benefits li { flex-direction: row; text-align: left; justify-content: center; font-size: .95rem; }
}
@media (min-width: 900px) {
  :root { --header-h: 84px; }
  .brand img { height: 68px; }
  .hero { padding: 64px 0 56px; min-height: 560px; display: flex; align-items: center; }
  .hero-media { width: 55%; }
  .hero-text { max-width: 36ch; font-size: 1.2rem; }
  .benefits { max-width: 620px; }
  .section { padding: 56px 0; }
  .service-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .card { padding: 28px 18px; }
  .footer-inner { display: grid; grid-template-columns: 1fr 2fr; align-items: start; gap: 8px 32px; }
  .footer-list { grid-template-columns: 1fr 1fr; }
  .copyright { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
