/* =====================================================
   Everyday Car Loans — main.css
   ===================================================== */

/* --- Custom Properties -------------------------- */
:root {
  --blue:         #2E5FA3;
  --blue-dark:    #1F4272;
  --blue-darkest: #122643;
  --blue-light:   #E8EDF6;
  --bg:           #FEFEFE;
  --surround:     #F0F2F7;
  --text-pri:     #333333;
  --text-sec:     #777777;
  --text-muted:   #AAAAAA;
  --border:       #B5C4D8;
  --error-red:    #D45454;
  --white:        #FEFEFE;
  --dark:         #1A1A1A;
}

/* --- Reset -------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  color: var(--text-pri);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul, ol {
  list-style: disc;
  padding-left: 1.5rem;
}

ol {
  list-style: decimal;
}

/* --- Logo --------------------------------------- */
.logo {
  text-decoration: none;
  font-size: 20px;
  line-height: 1;
  letter-spacing: -0.01em;
}

.logo-bold {
  font-weight: 700;
  color: var(--blue);
}

.logo-light {
  font-weight: 300;
  color: var(--blue);
}

/* --- Header ------------------------------------- */
.site-header {
  background: var(--white);
  box-shadow: 0 4px 4px rgba(51, 51, 51, 0.05);
  height: 80px;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 13px 24px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.header-phone {
  color: var(--blue);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  display: none;
}

.header-phone:hover {
  text-decoration: underline;
}

@media (min-width: 768px) {
  .header-phone {
    display: block;
  }
}

/* --- Footer ------------------------------------- */
.site-footer {
  background: var(--surround);
  padding: 48px 24px;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
}

.footer-regulatory {
  color: var(--text-sec);
  font-size: 13px;
  line-height: 1.7;
}

.footer-regulatory p + p {
  margin-top: 12px;
}

.footer-links {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.footer-links a {
  color: var(--blue);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-sep {
  color: var(--text-muted);
  line-height: 1;
}

/* --- CTA Button --------------------------------- */
.btn-cta {
  display: inline-block;
  background: var(--error-red);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  border-radius: 8px;
  padding: 16px 32px;
  transition: background 0.2s ease;
  border: none;
  cursor: pointer;
  line-height: 1;
}

.btn-cta:hover {
  background: #be4848;
  text-decoration: none;
  color: var(--white);
}

/* --- Hero Section ------------------------------- */
.hero {
  background: var(--blue);
  padding: 80px 24px;
}

.hero-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 48px;
}

.hero-text {
  flex: 1;
  min-width: 0;
}

.hero-text h1 {
  color: var(--white);
  font-weight: 700;
  font-size: 44px;
  line-height: 1.15;
}

.hero-sub {
  color: rgba(255, 255, 255, 0.85);
  font-size: 18px;
  margin-top: 16px;
  line-height: 1.6;
}

.hero-text .btn-cta {
  margin-top: 32px;
}

.hero-trust {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  margin-top: 12px;
  line-height: 1.5;
}

.hero-image {
  flex-shrink: 0;
}

.hero-image img {
  width: 100%;
  max-width: 480px;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

/* --- Trust Bar ---------------------------------- */
.trust-bar {
  background: var(--white);
  padding: 40px 24px;
}

.trust-bar-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  gap: 32px;
}

.trust-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.trust-icon {
  color: var(--blue);
  margin-bottom: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trust-item h3 {
  font-weight: 700;
  font-size: 16px;
  color: var(--text-pri);
  margin-bottom: 6px;
}

.trust-item p {
  font-size: 14px;
  color: var(--text-sec);
  line-height: 1.55;
}

/* --- How It Works ------------------------------- */
.how-it-works {
  background: var(--surround);
  padding: 64px 24px;
}

.how-inner {
  max-width: 960px;
  margin: 0 auto;
}

.how-it-works h2 {
  font-weight: 700;
  font-size: 30px;
  color: var(--text-pri);
  margin-bottom: 8px;
}

.how-sub {
  font-size: 16px;
  color: var(--text-sec);
  margin-bottom: 48px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  background: var(--white);
  border-radius: 12px;
  padding: 32px 24px;
  border: 1px solid var(--border);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.step-card h3 {
  font-weight: 600;
  font-size: 18px;
  color: var(--text-pri);
  margin-top: 16px;
  margin-bottom: 10px;
}

.step-card p {
  font-size: 15px;
  color: var(--text-sec);
  line-height: 1.6;
}

/* --- Second CTA --------------------------------- */
.second-cta {
  background: var(--blue-darkest);
  padding: 64px 24px;
  text-align: center;
}

.second-cta h2 {
  color: var(--white);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.2;
}

.second-cta-sub {
  color: rgba(255, 255, 255, 0.75);
  font-size: 16px;
  margin-top: 8px;
}

.second-cta .btn-cta {
  margin-top: 32px;
}

/* --- Compliance Pages --------------------------- */
.compliance-body {
  min-height: calc(100vh - 80px);
}

.compliance-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px;
}

.compliance-content h1 {
  font-weight: 700;
  font-size: 32px;
  color: var(--text-pri);
  border-left: 4px solid var(--blue);
  padding-left: 16px;
  margin-bottom: 32px;
  line-height: 1.25;
}

.compliance-content .last-revised {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 32px;
  padding: 8px 12px;
  border-left: 2px solid var(--border);
  line-height: 1.6;
}

.compliance-content h2 {
  font-weight: 700;
  font-size: 20px;
  color: var(--text-pri);
  margin-top: 40px;
  margin-bottom: 12px;
}

.compliance-content h3 {
  font-weight: 600;
  font-size: 16px;
  color: var(--text-pri);
  margin-top: 24px;
  margin-bottom: 8px;
}

.compliance-content p {
  font-size: 15px;
  color: var(--text-pri);
  line-height: 1.8;
  margin-bottom: 14px;
}

.compliance-content p:last-child {
  margin-bottom: 0;
}

.compliance-content ul,
.compliance-content ol {
  font-size: 15px;
  color: var(--text-pri);
  line-height: 1.8;
  margin-bottom: 14px;
  padding-left: 1.75rem;
}

.compliance-content li {
  margin-bottom: 6px;
}

.compliance-content a {
  color: var(--blue);
  text-decoration: underline;
}

.compliance-content a:hover {
  color: var(--blue-dark);
}

.compliance-content .highlight-box {
  background: var(--blue-light);
  border-left: 4px solid var(--blue);
  border-radius: 0 8px 8px 0;
  padding: 20px 20px 20px 20px;
  margin: 24px 0;
}

.compliance-content .highlight-box p {
  margin-bottom: 8px;
  font-size: 15px;
}

.compliance-content .highlight-box p:last-child {
  margin-bottom: 0;
}

/* --- Responsive --------------------------------- */
@media (max-width: 767px) {
  /* Hero */
  .hero {
    padding: 56px 24px;
  }

  .hero-inner {
    flex-direction: column;
    gap: 32px;
  }

  .hero-text h1 {
    font-size: 32px;
  }

  .hero-sub {
    font-size: 16px;
  }

  .hero-image {
    display: none;
  }

  .hero-text .btn-cta {
    display: block;
    text-align: center;
    width: 100%;
  }

  /* Trust bar */
  .trust-bar-inner {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .trust-item {
    max-width: 320px;
    width: 100%;
  }

  /* How it works */
  .steps-grid {
    grid-template-columns: 1fr;
  }

  /* Second CTA */
  .second-cta h2 {
    font-size: 26px;
  }

  .second-cta .btn-cta {
    display: block;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  /* Compliance */
  .compliance-content {
    padding: 32px 20px;
  }

  .compliance-content h1 {
    font-size: 26px;
  }

  .compliance-content h2 {
    font-size: 18px;
  }

  /* Footer links wrap naturally */
  .footer-links {
    gap: 6px;
  }
}
