/* Shieldline Windscreens — shared styles */

:root {
  --ink: #0f1d33;
  --muted: #4b5a6d;
  --navy: #0a2348;
  --navy-2: #123a6e;
  --teal: #00a8b0;
  --teal-dark: #008a91;
  --teal-light: #e1f5f6;
  --stone: #f2f5f8;
  --line: #d6dee8;
  --white: #ffffff;

  --radius-s: 6px;
  --radius-m: 14px;
  --gutter: 16px;
  --max: 1160px;

  --display: "Poppins", Arial, sans-serif;
  --body: "Inter", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  padding-bottom: 88px;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--teal-dark); }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
section[id] { scroll-margin-top: 16px; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 2; }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 14px; padding-bottom: 14px;
}
.brand img { height: 40px; width: auto; }
@media (min-width: 900px) { .brand img { height: 46px; } }
.header-wa {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  font-weight: 600; font-size: 0.95rem; text-decoration: none;
  color: var(--white); padding: 8px 14px;
  border: 1.5px solid rgba(255,255,255,0.75); border-radius: 999px;
}
.header-wa { background: rgba(10,35,72,0.55); backdrop-filter: blur(4px); }
.header-wa:hover { background: rgba(10,35,72,0.75); color: var(--white); }
.header-wa svg { width: 18px; height: 18px; }
.page-header .header-wa { color: var(--navy); border-color: var(--teal); background: transparent; backdrop-filter: none; }
.page-header .header-wa:hover { background: var(--teal-light); color: var(--navy); }

/* ---------- Hero ---------- */
/* Phones: photo strip on top, content on navy below.
   Desktop: full-width photo, content on the left over the sky, technician on the right. */
.hero { position: relative; color: var(--white); background: var(--navy); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 260px;
  background:
    linear-gradient(180deg, rgba(10,35,72,0.45) 0, rgba(10,35,72,0) 80px, rgba(10,35,72,0) 170px, var(--navy) 100%),
    url("img/hero-mobile.webp") 78% 30% / cover no-repeat;
}
.hero .site-header, .hero-inner { position: relative; z-index: 1; }
.hero-inner { padding: 130px 0 44px; }
.hero-col { max-width: 560px; }

.hero h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2rem, 7.4vw, 2.9rem); line-height: 1.08; letter-spacing: -0.02em;
  margin: 0 0 18px; text-shadow: 0 2px 18px rgba(0,0,0,0.3);
}

.vehicles {
  list-style: none; padding: 0 0 4px; margin: 0 calc(-1 * var(--gutter)) 18px 0;
  display: grid; grid-auto-flow: column; grid-auto-columns: 104px; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.vehicles li { scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.vehicles .tile {
  width: 104px; height: 74px; border-radius: 12px; background: var(--white);
  display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}
.vehicles .tile svg { width: 74px; height: auto; }
.vehicles span { font-family: var(--display); font-weight: 600; font-size: 0.86rem; line-height: 1.25; text-align: center; }
@media (min-width: 600px) {
  .vehicles { margin-right: 0; grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); grid-auto-columns: auto; overflow: visible; }
  .vehicles .tile { width: 100%; }
}

.hero-lead { font-size: 1.08rem; color: rgba(255,255,255,0.92); margin: 0 0 18px; }

@media (min-width: 900px) {
  .hero {
    background-image:
      linear-gradient(90deg, rgba(10,35,72,0.94) 0%, rgba(10,35,72,0.82) 34%, rgba(10,35,72,0.3) 52%, rgba(10,35,72,0) 66%),
      url("img/hero-desktop.webp");
    background-size: cover; background-position: right center; background-repeat: no-repeat;
  }
  .hero::before { display: none; }
  .hero-inner { padding: 12px 0 52px; }
  .hero h1 { font-size: 2.9rem; }
}

/* ---------- Form ---------- */
.form-card {
  background: var(--white); color: var(--ink); border-radius: var(--radius-m);
  padding: 20px 18px; box-shadow: 0 24px 60px -28px rgba(0,0,0,0.6); scroll-margin-top: 16px;
}
@media (min-width: 900px) { .form-card { padding: 22px 24px; } }
.form-card h2 { font-family: var(--display); font-weight: 700; font-size: 1.3rem; line-height: 1.2; margin: 0 0 4px; }
.form-intro { margin: 0 0 14px; color: var(--muted); font-size: 0.96rem; }

.row2 { display: grid; grid-template-columns: minmax(0,1fr); }
@media (min-width: 600px) { .row2 { grid-template-columns: 1fr 1fr; gap: 12px; } }
.field { margin-bottom: 11px; }
.field label { display: block; font-weight: 600; font-size: 0.94rem; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select {
  width: 100%; font: inherit; font-size: 1rem; padding: 11px 13px;
  border: 1.5px solid var(--line); border-radius: var(--radius-s);
  background: var(--white); color: var(--ink);
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230a2348' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 8px;
}
.field input:focus, .field select:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px var(--teal-light); }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.88rem; color: var(--muted); margin: 4px 0 14px; line-height: 1.45; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--teal); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--display); font-weight: 700; font-size: 1.05rem; text-decoration: none;
  border: 0; border-radius: var(--radius-s); padding: 14px 24px; cursor: pointer;
}
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-dark); color: var(--white); }
.btn-ghost { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.8); }
.btn-ghost:hover { background: rgba(255,255,255,0.14); color: var(--white); }
.btn-outline { background: transparent; color: var(--navy); border: 1.5px solid var(--teal); }
.btn-outline:hover { background: var(--teal-light); color: var(--navy); }
.btn-block { width: 100%; }

.form-alt { margin: 12px 0 0; text-align: center; font-size: 0.95rem; color: var(--muted); }
.hidden { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
@media (min-width: 900px) { .section { padding: 88px 0; } }
.section-tint { background: var(--stone); }
.section h2 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.7rem, 4.6vw, 2.4rem); line-height: 1.15; letter-spacing: -0.015em;
  margin: 0 0 12px; max-width: 24ch;
}
.lede { font-size: 1.1rem; color: var(--muted); margin: 0; max-width: 40rem; }

/* Vehicle cards */
.vcards { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
@media (min-width: 640px) { .vcards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .vcards { grid-template-columns: repeat(4, 1fr); } }
.vcard { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
.vcard img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.vcard div { padding: 16px 18px 20px; }
.vcard h3 { font-family: var(--display); font-weight: 700; font-size: 1.15rem; margin: 0 0 4px; }
.vcard p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* Mobile service */
.places { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 760px) { .places { grid-template-columns: repeat(4, 1fr); } }
.places li {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: 20px 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  font-family: var(--display); font-weight: 600;
}
.places svg { width: 34px; height: 34px; color: var(--teal-dark); }

/* How it works */
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 20px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.step { background: var(--white); border-radius: var(--radius-m); overflow: hidden; border: 1px solid var(--line); }
.step img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.step-body { padding: 18px 18px 22px; position: relative; }
.step-num {
  position: absolute; top: -22px; left: 18px; width: 40px; height: 40px; border-radius: 50%;
  background: var(--white); color: var(--navy); display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; box-shadow: 0 0 0 3px var(--teal);
}
.step h3 { font-family: var(--display); font-weight: 700; font-size: 1.2rem; margin: 14px 0 6px; }
.step p { margin: 0; color: var(--muted); }

/* Why */
.why { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
@media (min-width: 760px) { .why { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
@media (min-width: 1000px) { .why { grid-template-columns: repeat(4, 1fr); } }
.why li { border-top: 3px solid var(--teal); background: var(--white); border-radius: 0 0 var(--radius-m) var(--radius-m); padding: 18px 18px 20px; }
.why h3 { font-family: var(--display); font-weight: 700; font-size: 1.1rem; margin: 0 0 6px; }
.why p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* FAQ */
.faq { max-width: 46rem; margin-top: 20px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 36px 18px 0; font-weight: 700; font-size: 1.04rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid var(--teal-dark); border-bottom: 2px solid var(--teal-dark);
  transform: translateY(-70%) rotate(45deg); transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* Closing */
.closing {
  color: var(--white); padding: 72px 0; background-color: var(--navy);
  background-image:
    linear-gradient(180deg, rgba(10,35,72,0.86) 0%, rgba(10,35,72,0.7) 60%, rgba(10,35,72,0.55) 100%),
    url("img/closing.webp");
  background-size: cover; background-position: 40% center;
}
@media (min-width: 900px) {
  .closing {
    padding: 110px 0;
    background-image:
      linear-gradient(90deg, rgba(10,35,72,0.92) 0%, rgba(10,35,72,0.75) 40%, rgba(10,35,72,0.2) 75%, rgba(10,35,72,0.05) 100%),
      url("img/closing.webp");
  }
}
.closing h2 { font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem, 4.8vw, 2.6rem); line-height: 1.12; margin: 0 0 6px; max-width: 18ch; }
.closing-paths { display: flex; flex-wrap: wrap; gap: 22px 36px; margin-top: 22px; }
.closing-paths .path { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.path-label { margin: 0; font-weight: 700; color: #fff; }
.closing .btn-primary { background: var(--white); color: var(--navy); }
.closing .btn-primary:hover { background: var(--teal-light); color: var(--navy); }

/* Footer */
.site-footer { padding: 28px 0; font-size: 0.92rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 50;
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px; border-radius: 999px;
  background: var(--teal); color: var(--white); text-decoration: none; font-family: var(--display); font-weight: 700;
  box-shadow: 0 10px 28px -10px rgba(10,35,72,0.8); transition: opacity 0.2s ease, transform 0.2s ease;
}
.wa-float:hover { background: var(--teal-dark); color: var(--white); }
.wa-float svg { width: 22px; height: 22px; }
.wa-float.is-hidden { opacity: 0; transform: translateY(12px); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .wa-float { transition: none; } }

/* Simple pages */
.page-header { border-bottom: 1px solid var(--line); }
.page { padding: 40px 0 72px; }
.page h1 { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 6vw, 2.7rem); line-height: 1.1; margin: 0 0 16px; }
.page h2 { font-family: var(--display); font-weight: 700; font-size: 1.25rem; margin: 30px 0 8px; }
.page p { max-width: 40rem; }
.page .lede { font-size: 1.15rem; }
.page-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
