/* =========================================================
   ASAP AUTO BUYERS — Stylesheet
   Design tokens: navy automotive trust + cash-green CTA
   ========================================================= */

:root {
  /* Color tokens */
  --color-navy-deep: #10192E;
  --color-navy: #16203A;
  --color-steel: #3A4358;
  --color-steel-light: #6B7488;
  --color-cream: #F6F5F2;
  --color-cream-card: #FFFFFF;
  --color-green: #1F8B4C;
  --color-green-dark: #166B3A;
  --color-amber: #E8A33D;
  --color-border: #E4E1DA;

  /* Type */
  --font-display: 'Arial Narrow', 'Helvetica Neue Condensed', Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --max-width: 1180px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --shadow-card: 0 8px 24px rgba(16, 25, 46, 0.08);
  --shadow-card-strong: 0 16px 40px rgba(16, 25, 46, 0.18);
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-navy);
  background: var(--color-cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-green);
  color: #fff;
  padding: 10px 16px;
  z-index: 200;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* Visible focus states */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--color-amber);
  outline-offset: 2px;
}

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--color-navy-deep);
  line-height: 1.15;
}

h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); margin-bottom: 0.6em; }
h3 { font-size: clamp(1.1rem, 2.2vw, 1.3rem); margin-bottom: 0.4em; color: var(--color-navy); }

p { margin-bottom: 1.1em; color: var(--color-steel); }

.content-main p { font-size: 1.02rem; }

/* ---------- Header ---------- */
.site-header {
  background: var(--color-navy-deep);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-shrink: 0;
}
.logo-mark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--color-amber);
  letter-spacing: 0.02em;
}
.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  letter-spacing: 0.06em;
}

.main-nav {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.main-nav a {
  color: #D7DAE3;
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.2s ease;
}
.main-nav a:hover { color: var(--color-amber); }

.header-call-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  background: var(--color-green);
  color: #fff;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.8rem;
  transition: background 0.2s ease;
  flex-shrink: 0;
}
.header-call-btn span:first-child { font-size: 0.65rem; opacity: 0.85; font-weight: 600; }
.header-call-number { font-size: 0.95rem; }
.header-call-btn:hover { background: var(--color-green-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--color-navy);
  padding: 8px 24px 20px;
}
.mobile-nav a {
  color: #D7DAE3;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-weight: 600;
}
.mobile-nav .mobile-call {
  margin-top: 10px;
  background: var(--color-green);
  color: #fff;
  text-align: center;
  border-radius: var(--radius-sm);
  border-bottom: none;
  padding: 12px;
}
.mobile-nav.is-open { display: flex; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--color-navy-deep) 0%, var(--color-navy) 55%, var(--color-steel) 100%);
  color: #fff;
  padding: 64px 0 80px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-amber);
  margin-bottom: 14px;
}

.hero h1 {
  color: #fff;
  margin-bottom: 18px;
}

.hero-lead {
  color: #C8CCD8;
  font-size: 1.08rem;
  max-width: 560px;
  margin-bottom: 28px;
}
.hero-lead a {
  color: var(--color-amber);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(232,163,61,0.4);
}
.hero-lead a:hover { text-decoration-color: var(--color-amber); }

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-trust-list {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: #AEB4C4;
}
.hero-trust-list li {
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-trust-list li::before {
  content: "✓";
  color: var(--color-green);
  font-weight: 900;
}

/* ---------- CTA Buttons ---------- */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 30px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  min-height: 48px;
  white-space: nowrap;
}
.cta-button:hover { transform: translateY(-2px); }

.cta-primary {
  background: var(--color-green);
  color: #fff;
  box-shadow: 0 10px 24px rgba(31, 139, 76, 0.35);
}
.cta-primary:hover { background: var(--color-green-dark); }

.cta-secondary {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.35);
}
.cta-secondary:hover { background: rgba(255,255,255,0.16); }

.cta-outline {
  background: transparent;
  color: var(--color-navy-deep);
  border: 2px solid var(--color-navy-deep);
  margin-top: 10px;
}
.cta-outline:hover { background: var(--color-navy-deep); color: #fff; }

.full-width { width: 100%; margin-top: 12px; }

/* ---------- Quote Ticket (signature element) ---------- */
.quote-ticket {
  background: #fff;
  color: var(--color-navy);
  border-radius: var(--radius-md);
  padding: 28px 26px;
  box-shadow: var(--shadow-card-strong);
  position: relative;
  font-family: var(--font-display);
}
.quote-ticket::before,
.quote-ticket::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  background: var(--color-navy-deep);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}
.quote-ticket::before { left: -13px; }
.quote-ticket::after { right: -13px; }

.ticket-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  font-size: 0.95rem;
}
.ticket-label {
  color: var(--color-steel-light);
  font-weight: 600;
  font-family: var(--font-body);
  font-size: 0.85rem;
}
.ticket-value {
  font-weight: 800;
  color: var(--color-navy-deep);
}
.ticket-divider {
  border-top: 2px dashed var(--color-border);
  margin: 6px 0;
}
.ticket-total .ticket-label,
.ticket-total .ticket-value {
  color: var(--color-green-dark);
  font-size: 1.1rem;
}

.contact-ticket { max-width: 420px; }

/* ---------- Content Section ---------- */
.content-section { padding: 72px 0; }

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 56px;
  align-items: start;
}

.content-main h2 {
  margin-top: 1.6em;
  padding-top: 0.2em;
  border-top: 3px solid var(--color-amber);
  padding-top: 18px;
}
.content-main h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }

.content-main h3 { margin-top: 1.3em; }

.content-main a {
  color: var(--color-green-dark);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(31,139,76,0.3);
}
.content-main a:hover { text-decoration-color: var(--color-green-dark); }

.check-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0 30px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
}
.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--color-navy);
  font-weight: 600;
  font-size: 0.96rem;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-green);
  font-weight: 900;
}

/* ---------- Sidebar ---------- */
.sidebar-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  position: sticky;
  top: 100px;
}
.sidebar-title { font-size: 1.3rem; margin-bottom: 10px; }
.sidebar-card p { font-size: 0.92rem; }

.sidebar-list {
  margin-top: 20px;
  border-top: 1px solid var(--color-border);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sidebar-list li {
  font-size: 0.88rem;
  color: var(--color-steel);
}
.sidebar-list strong { color: var(--color-navy); }

/* ---------- Process Section ---------- */
.process-section { padding: 72px 0; background: #fff; }

.section-heading {
  text-align: center;
  margin-bottom: 8px;
}
.section-heading.light { color: #fff; }

.section-subtext {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 44px;
  color: var(--color-steel-light);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.process-card {
  background: var(--color-cream);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  border: 1px solid var(--color-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.process-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.process-step {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-green-dark);
  background: rgba(31,139,76,0.1);
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

/* ---------- Benefits Section ---------- */
.benefits-section {
  background: var(--color-navy-deep);
  padding: 72px 0;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.benefit-item {
  text-align: center;
  padding: 24px 16px;
  border-left: 3px solid var(--color-amber);
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-sm);
}
.benefit-item h3 { color: #fff; }
.benefit-item p { color: #AEB4C4; font-size: 0.9rem; margin-bottom: 0; }

/* ---------- Contact Section ---------- */
.contact-section { padding: 80px 0; background: var(--color-cream); }

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 28px 0 32px;
}
.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-navy-deep);
}
.contact-list a { color: var(--color-navy-deep); }
.contact-list a:hover { color: var(--color-green-dark); }
.contact-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--color-steel-light);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-navy);
  color: #AEB4C4;
  padding: 48px 0 32px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}
.footer-brand { display: flex; gap: 6px; align-items: baseline; }
.footer-tagline { color: #9097A8; max-width: 480px; margin-bottom: 4px; }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; margin: 6px 0; }
.footer-nav a { color: #C8CCD8; font-size: 0.9rem; font-weight: 600; }
.footer-nav a:hover { color: var(--color-amber); }
.footer-copy { font-size: 0.8rem; color: #6B7488; margin-top: 10px; margin-bottom: 0; }

/* ---------- Sticky Mobile CTA ---------- */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 150;
  background: var(--color-green);
  color: #fff;
  text-align: center;
  font-weight: 800;
  font-size: 1rem;
  padding: 16px;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.2);
}

/* =========================================================
   Responsive Breakpoints
   ========================================================= */

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .quote-ticket { max-width: 480px; }
  .content-grid { grid-template-columns: 1fr; }
  .sidebar-card { position: static; }
  .process-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-ticket { max-width: 100%; }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .header-call-btn { display: none; }
  .nav-toggle { display: flex; }
  .sticky-cta { display: block; }
  body { padding-bottom: 64px; }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .hero { padding: 44px 0 56px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .cta-button { width: 100%; }
  .benefits-grid { grid-template-columns: 1fr; }
  .quote-ticket::before,
  .quote-ticket::after { display: none; }
  .content-section { padding: 48px 0; }
  .process-section, .benefits-section, .contact-section { padding: 48px 0; }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}