/* Safe Trip Motor Club: public site design.
   One stylesheet for the public pages: tokens, layout, header, footer, cards, forms. */

:root {
  --navy: #0b2547;
  --navy-2: #12355f;
  --blue: #1663d6;
  --blue-600: #0f52b5;
  --sky: #eaf2fd;
  --sky-2: #f5f9ff;
  --green: #138a4f;
  --green-bg: #e6f5ec;
  --ink: #142033;
  --muted: #5b6b80;
  --line: #dde5f0;
  --white: #fff;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(11, 37, 71, .06), 0 8px 24px rgba(11, 37, 71, .08);
  --shadow-lg: 0 20px 50px rgba(11, 37, 71, .16);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 17px/1.6 var(--font);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; color: var(--navy); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid #8bb8ff; outline-offset: 2px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section.alt { background: var(--sky-2); }
.section.dark { background: var(--navy); color: #d7e3f4; }
.section.dark h2, .section.dark h3 { color: #fff; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue); background: var(--sky); padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}
.section.dark .eyebrow { background: rgba(255,255,255,.1); color: #9cc3ff; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 1rem/1 var(--font); padding: 14px 22px; border-radius: 10px; border: 2px solid transparent;
  cursor: pointer; white-space: nowrap; text-decoration: none !important; transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-600); color: #fff; }
.btn-outline { border-color: var(--line); color: var(--navy); background: #fff; }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--sky); }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-sm { padding: 10px 16px; font-size: .95rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94);
  backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 800; font-size: 1.05rem; text-decoration: none !important; }
.brand img { height: 48px; width: auto; }
.brand span small { display: block; font-weight: 500; font-size: .72rem; color: var(--muted); letter-spacing: .04em; }
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a { color: var(--ink); font-weight: 500; padding: 8px 12px; border-radius: 8px; text-decoration: none; }
.main-nav a:hover { background: var(--sky); color: var(--blue); }
.main-nav a[aria-current="page"] { color: var(--blue); background: var(--sky); }
.header-actions { display: flex; gap: 10px; align-items: center; }
.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--navy); border-radius: 2px; position: relative; content: "";
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .site-header .wrap { flex-wrap: wrap; gap: 0; }
  .main-nav, .header-actions { display: none; width: 100%; }
  .site-header.open .main-nav { display: flex; flex-direction: column; padding: 8px 0; margin: 0; }
  .site-header.open .header-actions { display: flex; flex-wrap: wrap; padding: 0 0 16px; }
  .site-header.open .header-actions .btn { flex: 1; }
  .main-nav a { padding: 12px; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(100deg, rgba(8, 28, 56, .94) 0%, rgba(11, 37, 71, .82) 45%, rgba(11, 37, 71, .35) 100%),
    var(--hero-img, url('/assets/front_assets/images/banner1.jpeg')) center / cover no-repeat;
}
.hero .wrap { padding-top: clamp(64px, 10vw, 120px); padding-bottom: clamp(64px, 10vw, 120px); }
.hero h1 { color: #fff; max-width: 17ch; }
.hero p.lead { color: #d3e1f5; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 28px 0 0; padding: 0; list-style: none; color: #cfe0f7; font-size: .95rem; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points svg { color: #6fe0a5; flex: none; }
.page-hero { background: linear-gradient(180deg, var(--sky) 0%, #fff 100%); padding: clamp(48px, 7vw, 80px) 0 clamp(32px, 5vw, 48px); }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.75rem); }

/* ---------- grids & cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 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(--radius); padding: 28px;
  box-shadow: var(--shadow);
}
.card h3 { margin-top: 4px; }
.card p:last-child { margin-bottom: 0; }
.icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--sky); color: var(--blue); margin-bottom: 14px;
}
.icon.green { background: var(--green-bg); color: var(--green); }
.photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.photo img { width: 100%; height: 100%; object-fit: cover; }

.stat-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.stat-band > div { background: #fff; padding: 28px; }
.stat-band strong { display: block; font-size: 2.4rem; line-height: 1; color: var(--blue); font-weight: 800; margin-bottom: 10px; }
@media (max-width: 760px) { .stat-band { grid-template-columns: 1fr; } }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%;
  background: var(--green-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23138a4f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.steps { counter-reset: step; }
.steps .card { position: relative; padding-top: 56px; }
.steps .card::before {
  counter-increment: step; content: counter(step); position: absolute; top: 22px; left: 28px;
  width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; font-size: .9rem;
  display: grid; place-items: center;
}

/* ---------- pricing ---------- */
.price-card {
  background: #fff; color: var(--ink); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); max-width: 440px; width: 100%;
}
.price-card .amount { font-size: 3.5rem; font-weight: 800; color: var(--navy); line-height: 1; }
.price-card .amount sup { font-size: 1.5rem; vertical-align: top; position: relative; top: .5em; margin-right: 2px; }
.price-card .per { color: var(--muted); }
.price-card .renew { background: var(--green-bg); color: #0c5e35; border-radius: 10px; padding: 12px 14px; font-size: .95rem; margin: 18px 0; }
.compare { width: 100%; border-collapse: collapse; margin: 8px 0 0; font-size: .98rem; }
.compare td { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.compare td:last-child { text-align: right; font-weight: 700; color: #fff; }
.compare tr.total td { border-bottom: 0; color: #6fe0a5; font-size: 1.1rem; }

/* ---------- testimonials ---------- */
.quote { display: flex; flex-direction: column; gap: 18px; }
.quote blockquote { margin: 0; font-size: 1.05rem; color: var(--ink); }
.quote figcaption { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--navy); }
.quote figcaption img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.quote figcaption small { display: block; font-weight: 500; color: var(--muted); }
.stars { color: #f5a524; letter-spacing: 2px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 22px; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 32px 18px 0; font-weight: 700; color: var(--navy); position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 0; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details > div { padding: 0 0 18px; color: var(--muted); }

/* ---------- forms ---------- */
.form { display: grid; gap: 16px; }
.form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .form .row-2 { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label, .form label.lbl { font-weight: 600; font-size: .92rem; color: var(--navy); }
.field input, .field select, .field textarea, .form .form-control {
  width: 100%; font: 1rem/1.4 var(--font); color: var(--ink); background: #fff;
  border: 1px solid #c9d5e6; border-radius: 10px; padding: 12px 14px; transition: border-color .15s, box-shadow .15s;
}
.field input[type=file] { padding: 10px; background: var(--sky-2); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .form .form-control:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(22, 99, 214, .15);
}
.field .hint { font-size: .85rem; color: var(--muted); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.check input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--blue); }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); }
.form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 16px; }
.form legend { font-weight: 800; color: var(--navy); font-size: 1.1rem; margin-bottom: 4px; padding: 0; }
.kbw-signature { width: 100%; height: 180px; border: 1px dashed #9fb3cf; border-radius: 10px; background: var(--sky-2); touch-action: none; }

/* ---------- contact strip / info ---------- */
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list .icon { margin: 0; flex: none; }
.info-list strong { display: block; color: var(--navy); }

/* ---------- CTA band ---------- */
.cta {
  background: linear-gradient(120deg, var(--blue) 0%, #0b3f8f 100%); color: #fff; border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 56px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
}
.cta h2 { color: #fff; margin: 0 0 6px; }
.cta p { margin: 0; color: #d6e6ff; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #b8c8de; font-size: .95rem; padding: 64px 0 28px; }
.site-footer a { color: #dbe6f5; }
.site-footer h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-brand img { height: 96px; width: auto; margin-bottom: 12px; }
.disclaimer { border-top: 1px solid rgba(255,255,255,.12); margin-top: 44px; padding-top: 24px; font-size: .8rem; line-height: 1.6; color: #8ea3bf; }
.disclaimer summary { cursor: pointer; color: #c9d7ea; font-weight: 600; margin-bottom: 8px; }
.copyright { margin-top: 18px; font-size: .85rem; color: #8ea3bf; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- auth pages ---------- */
.auth-wrap { min-height: calc(100vh - 73px); display: grid; place-items: center; padding: 48px 20px; background: linear-gradient(180deg, var(--sky) 0%, #fff 100%); }
.auth-card { width: 100%; max-width: 440px; }

/* app.js toast in the site's colors */
.st-toast { background: var(--navy) !important; border-radius: 12px !important; }
.st-toast.st-err { background: #b3261e !important; }

/* eyebrow on dark backgrounds / inside white cards on dark */
.hero .eyebrow { background: rgba(255,255,255,.12); color: #bcd6ff; }
.section.dark .price-card .eyebrow { background: var(--sky); color: var(--blue); }

/* ---------- phone links in the header ---------- */
.header-phone { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 8px; font-weight: 700; color: var(--navy); white-space: nowrap; text-decoration: none !important; }
.header-phone svg { color: var(--blue); }
.header-phone:hover { background: var(--sky); color: var(--blue); }
.call-mobile { display: none; }
@media (min-width: 961px) and (max-width: 1140px) { .header-phone span { display: none; } }
@media (max-width: 960px) {
  .call-mobile { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; height: 44px; padding: 0 14px; border-radius: 10px; background: var(--blue); color: #fff; font-weight: 700; text-decoration: none !important; }
  .site-header .nav-toggle { margin-left: 8px; order: 2; }
  .call-mobile { order: 1; }
  .main-nav { order: 3; }
  .header-actions { order: 4; }
  .header-actions .header-phone { display: none; }
}
@media (max-width: 440px) { .call-mobile { padding: 0; width: 44px; justify-content: center; } .call-mobile span { display: none; } }
.quote-layout { align-items: start; grid-template-columns: 1fr 1.5fr; }
@media (max-width: 900px) { .quote-layout { grid-template-columns: 1fr; } .quote-layout .form-card { order: -1; } }
