/* Sainik Cars — static landing pages
   Palette matches CustomerPortal.jsx: navy #0d1f3c, orange #f47920, muted #8892a4 */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --navy: #0d1f3c;
  --navy-soft: #1a3358;
  --orange: #f47920;
  --muted: #8892a4;
  --ink: #1f2937;
  --line: #e4e8f0;
  --paper: #f7f9fc;
  --sky: #8aafd4;
}

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.7;
  font-size: 16px;
}

.wrap { max-width: 880px; margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.topbar {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 40;
}
.topbar .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
}
.topbar img { height: 36px; width: auto; border-radius: 6px; background: #fff; }
.brand { font-weight: 800; font-size: 16px; letter-spacing: .2px; }
.brand span { display: block; font-weight: 400; font-size: 11px; color: var(--sky); }
.topbar a.call {
  margin-left: auto;
  background: var(--orange);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 9px 16px;
  border-radius: 8px;
  white-space: nowrap;
}

/* ---------- hero ---------- */
.hero { background: var(--navy); color: #fff; padding: 34px 0 40px; }
.hero h1 {
  font-size: 30px;
  line-height: 1.25;
  margin: 0 0 14px;
  font-weight: 800;
  letter-spacing: -.4px;
}
.hero p { color: #cddcf0; margin: 0 0 22px; font-size: 17px; max-width: 62ch; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 10px; }

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 9px;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.45); }

.trust {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.16);
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  font-size: 13px;
  color: var(--sky);
}
.trust b { display: block; color: #fff; font-size: 19px; font-weight: 800; line-height: 1.3; }

/* ---------- body ---------- */
main { padding: 8px 0 40px; }
section { padding: 30px 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: 0; }

h2 { font-size: 22px; color: var(--navy); margin: 0 0 12px; font-weight: 800; letter-spacing: -.2px; }
h3 { font-size: 16px; color: var(--navy); margin: 22px 0 6px; font-weight: 700; }
p { margin: 0 0 14px; max-width: 68ch; }
a { color: #0b5cad; }

.lead { font-size: 17px; }

ul.plain { margin: 0 0 14px; padding-left: 20px; }
ul.plain li { margin-bottom: 8px; }

/* the differentiator block — the one loud element on the page */
.edge {
  background: var(--paper);
  border-left: 4px solid var(--orange);
  border-radius: 0 10px 10px 0;
  padding: 20px 22px;
  margin: 0 0 8px;
}
.edge p { margin: 0; font-size: 17px; }
.edge strong { color: var(--navy); }

.grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); margin-top: 6px; }
.card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
}
.card b { color: var(--navy); display: block; margin-bottom: 4px; font-size: 15px; }
.card span { font-size: 14px; color: #55606f; }

.faq { margin-top: 6px; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  font-size: 16px;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; float: right; color: var(--orange); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '\2013'; }
.faq p { margin: 10px 0 0; font-size: 15px; }

.nearby { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.nearby a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 15px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}

/* ---------- footer ---------- */
footer { background: var(--navy); color: #cddcf0; padding: 30px 0 90px; font-size: 14px; }
footer a { color: #fff; }
footer .fgrid { display: grid; gap: 22px; grid-template-columns: repeat(2, 1fr); }
footer h4 { color: #fff; margin: 0 0 8px; font-size: 14px; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin-bottom: 6px; }
.legal { margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.14); color: var(--sky); font-size: 12.5px; }

/* ---------- sticky mobile action bar ---------- */
.actionbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: none;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--line);
  z-index: 50;
}
.actionbar a {
  flex: 1;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 0;
  border-radius: 9px;
}
.actionbar .wa { background: #25d366; color: #fff; }
.actionbar .ph { background: var(--navy); color: #fff; }

a:focus-visible, summary:focus-visible, details:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

@media (max-width: 720px) {
  body { font-size: 15.5px; }
  .hero h1 { font-size: 25px; }
  .hero p { font-size: 16px; }
  .grid, footer .fgrid { grid-template-columns: 1fr; }
  .trust { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
  .trust b { font-size: 17px; }
  .actionbar { display: flex; }
  .brand span { display: none; }
}

/* ---------- rate table ---------- */
table.rates {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 460px;
}
table.rates th {
  background: var(--navy);
  color: #fff;
  text-align: left;
  padding: 11px 12px;
  font-size: 13px;
  font-weight: 700;
  vertical-align: bottom;
}
table.rates th span { font-weight: 400; font-size: 11px; color: var(--sky); }
table.rates td { padding: 11px 12px; border-bottom: 1px solid var(--line); }
table.rates tbody tr:nth-child(even) { background: var(--paper); }
table.rates td b { color: var(--navy); }
p.note { font-size: 14px; color: #55606f; margin-top: 10px; }
