/* ============================================
   DRIVE HOME BC — Design Tokens
   Palette: #274060 (deep navy), #1B2845 (darkest navy/bg),
            #335C81 (mid navy-blue), #5899E2 (accent blue),
            #65AFFF (bright accent), #FFFFFF (white)
   Display face: Archivo Black (condensed, heavy, all-caps wordmark)
   Body face: Inter (clean, legible, professional)
   ============================================ */

:root {
  --navy-deepest: #1B2845;
  --navy-deep: #274060;
  --navy-mid: #335C81;
  --blue-accent: #5899E2;
  --blue-bright: #65AFFF;
  --white: #FFFFFF;

  --text-primary: #FFFFFF;
  --text-secondary: #B9CBE4;
  --text-muted: #7E94B3;

  --font-display: 'Archivo Black', 'Arial Black', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;

  --container-width: 1280px;
  --section-pad: 96px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--navy-deepest);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* Focus visibility for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ============================================
   WORDMARK — the signature element
   Heavy condensed caps, tight tracking, period accent
   ============================================ */
.wordmark {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--white);
  display: flex;
  align-items: baseline;
  gap: 2px;
  text-transform: uppercase;
}
.wordmark .wordmark-accent {
  color: var(--blue-bright);
}
.wordmark .wordmark-dot {
  color: var(--blue-bright);
}

.wordmark-hero {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.95;
  font-size: clamp(2.75rem, 6vw, 5rem);
}
.wordmark-hero .line2 {
  color: var(--blue-bright);
}

/* ============================================
   NAV
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-deepest);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.nav-links {
  display: flex;
  gap: 40px;
  align-items: center;
}
.nav-links a {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--white); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--blue-bright);
  color: var(--navy-deepest);
}
.btn-primary:hover {
  background: var(--blue-accent);
  box-shadow: 0 8px 20px rgba(101,175,255,0.25);
}
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--blue-accent);
  color: var(--white);
}
.btn-outline:hover {
  background: rgba(88,153,226,0.1);
}
.btn-white {
  background: var(--white);
  color: var(--navy-deepest);
}
.btn-white:hover {
  background: var(--text-secondary);
}
.btn-sm { padding: 11px 22px; font-size: 0.72rem; }

.nav-cta { display: none; }
@media (min-width: 880px) { .nav-cta { display: inline-flex; } }
.nav-links { display: none; }
@media (min-width: 880px) { .nav-links { display: flex; } }

.mobile-toggle {
  display: inline-flex;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
}
@media (min-width: 880px) { .mobile-toggle { display: none; } }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 20px;
  padding: 24px 32px 32px;
  background: var(--navy-deep);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  background: var(--navy-deepest);
  overflow: hidden;
  padding-top: 64px;
  padding-bottom: 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  min-height: 640px;
}
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; }
}

.hero-copy {
  position: relative;
  z-index: 3;
  padding: 56px 32px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 640px;
}
@media (min-width: 980px) {
  .hero-copy { padding: 0 0 0 32px; max-width: 560px; }
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(101,175,255,0.4);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 28px;
  width: fit-content;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 28px 0 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}

.hero-fineprint {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.hero-fineprint span { color: var(--text-secondary); }
.hero-fineprint .sep { margin: 0 10px; color: var(--navy-mid); }

.hero-media {
  position: relative;
  min-height: 360px;
  background-size: cover;
  background-position: center;
  background-image:
    linear-gradient(90deg, var(--navy-deepest) 0%, rgba(27,40,69,0.55) 18%, rgba(27,40,69,0.05) 45%, transparent 70%),
    url('https://images.pexels.com/photos/13811147/pexels-photo-13811147.jpeg?auto=compress&cs=tinysrgb&w=1600');
}
@media (max-width: 979px) {
  .hero-media {
    background-image:
      linear-gradient(180deg, transparent 0%, var(--navy-deepest) 92%),
      linear-gradient(90deg, var(--navy-deepest) 0%, rgba(27,40,69,0.3) 30%, transparent 60%),
      url('https://images.pexels.com/photos/13811147/pexels-photo-13811147.jpeg?auto=compress&cs=tinysrgb&w=1200');
  }
}

/* ============================================
   RATE CALCULATOR WIDGET
   ============================================ */
.calc-section {
  background: var(--navy-deep);
  border-top: 1px solid rgba(255,255,255,0.06);
  scroll-margin-top: 80px;
}
.calc-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 980px) {
  .calc-wrap { grid-template-columns: 1fr 1fr; }
}
.calc-panel {
  padding: 48px 32px;
}
.calc-panel + .calc-panel {
  border-top: 1px solid rgba(255,255,255,0.06);
}
@media (min-width: 980px) {
  .calc-panel + .calc-panel {
    border-top: none;
    border-left: 1px solid rgba(255,255,255,0.08);
  }
}

.calc-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}
.calc-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.calc-value {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--blue-bright);
}

input[type="range"] {
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: var(--navy-mid);
  outline: none;
  -webkit-appearance: none;
  margin-bottom: 8px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blue-bright);
  cursor: pointer;
  border: 3px solid var(--navy-deepest);
  box-shadow: 0 0 0 4px rgba(101,175,255,0.2);
}
input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blue-bright);
  cursor: pointer;
  border: 3px solid var(--navy-deepest);
}

.calc-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  padding: 0 1px;
}

.calc-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}
.calc-stat {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}
.calc-stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.calc-stat-value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--white);
}

.calc-disclaimer {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ============================================
   TRUST STRIP
   ============================================ */
.trust-strip {
  background: var(--navy-deepest);
  padding: 56px 32px;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
@media (min-width: 880px) {
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
}
.trust-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  color: var(--blue-bright);
}
.trust-title {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--white);
}
.trust-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* ============================================
   GENERIC SECTION
   ============================================ */
.section {
  padding: var(--section-pad) 32px;
}
.section-dark { background: var(--navy-deepest); }
.section-mid { background: var(--navy-deep); }

.section-head {
  max-width: 680px;
  margin-bottom: 56px;
}
.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 18px;
}
.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
}

/* ============================================
   HOW IT WORKS — process steps
   ============================================ */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 700px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1080px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
}
.step-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  position: relative;
}
.step-number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: rgba(101,175,255,0.25);
  line-height: 1;
  margin-bottom: 20px;
}
.step-title {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: var(--white);
}
.step-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

/* ============================================
   WHY DRIVE HOME BC — savings comparison
   ============================================ */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 980px) {
  .why-grid { grid-template-columns: 1fr 1fr; }
}
.why-list {
  list-style: none;
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.why-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1rem;
  color: var(--text-secondary);
}
.why-check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(101,175,255,0.15);
  color: var(--blue-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  margin-top: 2px;
}

.savings-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.savings-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.savings-row:last-of-type { border-bottom: none; }
.savings-row-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.savings-row-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
}
.savings-row-value.dim { color: var(--text-secondary); }
.savings-row-value.bright { color: var(--blue-bright); }
.savings-highlight {
  margin-top: 24px;
  background: rgba(101,175,255,0.1);
  border: 1px solid rgba(101,175,255,0.3);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-size: 0.95rem;
  color: var(--white);
  font-weight: 600;
}

/* ============================================
   FAQ
   ============================================ */
.faq-list {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--white);
  text-align: left;
  padding: 24px 0;
  font-size: 1.05rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-icon {
  font-size: 1.4rem;
  color: var(--blue-bright);
  flex-shrink: 0;
  transition: transform 0.2s ease;
  font-weight: 400;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-answer-inner {
  padding-bottom: 24px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 640px;
}
.faq-item.open .faq-answer { max-height: 300px; }

/* ============================================
   FINAL CTA
   ============================================ */
.final-cta {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-mid) 100%);
  text-align: center;
  padding: 96px 32px;
}
.final-cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  text-transform: uppercase;
  margin-bottom: 16px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.final-cta-sub {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 36px;
}
.final-cta-actions {
  display: flex;
  justify-content: center;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--navy-deepest);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 64px 32px 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (min-width: 780px) {
  .footer-grid { grid-template-columns: max-content max-content; justify-content: start; gap: 80px; }
}
.footer-desc {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-top: 16px;
  max-width: 320px;
}
.footer-heading {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a {
  color: var(--text-secondary);
  font-size: 0.92rem;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
@media (min-width: 780px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}
.footer-legal-links {
  display: flex;
  gap: 24px;
}
.footer-legal-links a { color: var(--text-muted); }
.footer-legal-links a:hover { color: var(--text-secondary); }

/* ============================================
   APPLY PAGE
   ============================================ */
.apply-hero {
  padding: 64px 32px 48px;
  text-align: center;
  background: var(--navy-deepest);
}
.apply-form-section {
  padding: 0 32px 96px;
}
.apply-form-card {
  max-width: 640px;
  margin: 0 auto;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 48px;
}
@media (max-width: 600px) {
  .apply-form-card { padding: 32px 24px; }
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
@media (max-width: 540px) {
  .form-row { grid-template-columns: 1fr; }
}
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.form-input, .form-select {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}
.form-input::placeholder { color: var(--text-muted); }
.form-input:focus, .form-select:focus {
  border-color: var(--blue-bright);
  outline: none;
}
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2365AFFF' stroke-width='1.5' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.form-submit { width: 100%; margin-top: 8px; }
.form-disclaimer {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 18px;
}

/* Utility */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
