/* ── Accessibility ────────────────────────────────────────────── */
.skip-link {
  position: absolute; top: -100%; left: 50%; transform: translateX(-50%);
  background: var(--red); color: #fff; padding: 12px 24px;
  border-radius: 0 0 8px 8px; font-weight: 600; font-size: 0.95rem;
  z-index: 10000; text-decoration: none; transition: top 0.2s;
}
.skip-link:focus { top: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
*:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

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

:root {
  --red:        #c0392b;
  --red-dark:   #96281b;
  --red-light:  #fdf0ef;
  --dark:       #1a1a2e;
  --dark-mid:   #2d2d44;
  --gray-900:   #212529;
  --gray-700:   #495057;
  --gray-500:   #868e96;
  --gray-200:   #e9ecef;
  --gray-100:   #f8f9fa;
  --white:      #ffffff;
  --radius:     12px;
  --radius-sm:  8px;
  --shadow:     0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg:  0 12px 48px rgba(0,0,0,0.12);
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--gray-900);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--red); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--red-dark); }

.container     { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.container-sm  { max-width: 720px; }
.text-center   { text-align: center; }
.text-accent   { color: var(--red); }

/* ── Typography ───────────────────────────────────────────────── */
h1, h2, h3, h4 { line-height: 1.2; color: var(--gray-900); }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }

.section-intro { max-width: 640px; margin: 0 auto 48px; }
.section-intro p { color: var(--gray-700); font-size: 1.1rem; margin-top: 12px; }

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid var(--red);
  background: var(--red);
  color: var(--white);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--white); }
.btn-lg { padding: 14px 32px; font-size: 1.05rem; }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-outline { background: transparent; color: var(--red); }
.btn-outline:hover { background: var(--red); color: var(--white); }
.btn-block { display: block; width: 100%; }

/* ── Navigation ───────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  transition: box-shadow var(--transition);
}
.nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-logo img { height: 44px; }
.nav-links {
  display: flex; align-items: center; gap: 28px;
  list-style: none;
}
.nav-links a { color: var(--gray-700); font-weight: 500; font-size: 0.9rem; }
.nav-links a:hover { color: var(--red); }
.nav-links .btn { color: var(--white); }
.nav-links .btn:hover { color: var(--white); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 10px 8px; min-height: 44px; min-width: 44px; }
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--gray-900);
  margin: 5px 0; transition: all var(--transition); border-radius: 2px;
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
  padding: 160px 0 100px;
  background: linear-gradient(135deg, var(--gray-100) 0%, var(--white) 50%, var(--red-light) 100%);
}
.hero-content { max-width: 700px; }
.hero-sub { font-size: 1.2rem; color: var(--gray-700); margin: 20px 0 32px; line-height: 1.7; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-trust { margin-top: 40px; font-size: 0.85rem; color: var(--gray-500); }

/* ── Sections ─────────────────────────────────────────────────── */
.section { padding: 96px 0; }
.section-alt { background: var(--gray-100); }
.section-dark {
  background: var(--dark);
  color: var(--white);
}
.section-cta {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-mid) 100%);
  color: var(--white);
}
.section-cta h2, .section-cta p { color: var(--white); }

/* ── Grid ─────────────────────────────────────────────────────── */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ── Problem Cards ────────────────────────────────────────────── */
.problem-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  text-align: center;
}
.problem-card p { color: var(--gray-700); margin-top: 12px; font-size: 0.95rem; }
.problem-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: #fee2e2; color: var(--red);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 800; margin-bottom: 16px;
}
.solution-card { border: 2px solid var(--red); }
.problem-icon.check { background: #dcfce7; color: #16a34a; }

/* ── Feature Cards ────────────────────────────────────────────── */
.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-icon {
  width: 48px; height: 48px; border-radius: 10px;
  background: var(--red-light); color: var(--red);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { color: var(--gray-700); font-size: 0.92rem; }

/* ── Steps ────────────────────────────────────────────────────── */
.steps { display: flex; align-items: flex-start; justify-content: center; gap: 12px; flex-wrap: wrap; }
.step {
  flex: 1; min-width: 200px; max-width: 300px;
  text-align: center; padding: 24px;
}
.step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--red); color: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 700; margin-bottom: 16px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--gray-700); font-size: 0.92rem; }
.step-arrow {
  font-size: 2rem; color: var(--gray-500); padding-top: 24px;
  display: flex; align-items: center;
}

/* ── Benefits ─────────────────────────────────────────────────── */
.benefit {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 24px; background: var(--white);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.benefit-check {
  width: 36px; height: 36px; border-radius: 50%;
  background: #dcfce7; color: #16a34a;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; flex-shrink: 0; font-size: 1.1rem;
}
.benefit h3 { margin-bottom: 4px; }
.benefit p { color: var(--gray-700); font-size: 0.92rem; }

/* ── Stats ────────────────────────────────────────────────────── */
.stats-row { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 32px; padding: 24px 0; }
.stat { text-align: center; }
.stat-num { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: var(--white); }
.stat-label { font-size: 0.9rem; color: rgba(255,255,255,0.7); margin-top: 4px; }

/* ── Request a Quote ──────────────────────────────────────────── */
.section-quote { background: var(--gray-50); }
.quote-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: start; margin-top: 40px;
}
.quote-reasons h3, .quote-cta-card h3 { font-size: 1.3rem; margin-bottom: 16px; }
.quote-list {
  list-style: none; display: flex; flex-direction: column; gap: 16px;
}
.quote-list li {
  padding-left: 28px; position: relative;
  font-size: 0.95rem; color: var(--gray-700); line-height: 1.6;
}
.quote-list li::before {
  content: '\2713'; position: absolute; left: 0; top: 1px;
  color: #16a34a; font-weight: 700; font-size: 1.1rem;
}
.quote-cta-card {
  background: var(--white); border-radius: var(--radius);
  padding: 36px 32px; box-shadow: var(--shadow-lg);
  text-align: center;
}
.quote-cta-card p { color: var(--gray-600); font-size: 0.95rem; line-height: 1.7; margin-bottom: 24px; }
.quote-note { font-size: 0.85rem; color: var(--gray-500); margin-top: 12px; margin-bottom: 0; }

/* ── FAQ ──────────────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--white); border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  overflow: hidden;
}
.faq-item summary {
  padding: 18px 24px; font-weight: 600; cursor: pointer;
  list-style: none; display: flex; align-items: center; justify-content: space-between;
  transition: background var(--transition);
}
.faq-item summary:hover { background: var(--gray-100); }
.faq-item summary::after { content: '+'; font-size: 1.4rem; color: var(--gray-500); font-weight: 400; }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { padding: 0 24px 18px; color: var(--gray-700); font-size: 0.95rem; line-height: 1.7; }
.faq-item summary::-webkit-details-marker { display: none; }

/* ── Contact Form ─────────────────────────────────────────────── */
.contact-error {
  background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca;
  border-radius: var(--radius); padding: 14px 20px; margin-top: 24px;
  font-weight: 500; text-align: center;
}
.contact-form {
  background: var(--white); border-radius: var(--radius);
  padding: 40px 36px; margin-top: 36px;
  box-shadow: var(--shadow-lg);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; font-weight: 500; font-size: 0.9rem;
  margin-bottom: 6px; color: var(--gray-900);
}
.form-group .optional { color: var(--gray-500); font-weight: 400; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 0.95rem;
  transition: border-color var(--transition);
  color: var(--gray-900); background: var(--white);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--red);
}
.form-note { text-align: center; font-size: 0.85rem; color: var(--gray-500); margin-top: 12px; }

/* ── Footer ───────────────────────────────────────────────────── */
.footer {
  background: var(--dark); color: rgba(255,255,255,0.6);
  padding: 60px 0 40px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
}
.footer-brand p { margin-top: 16px; font-size: 0.85rem; line-height: 1.6; }
.footer-links h4 { color: var(--white); font-size: 0.9rem; margin-bottom: 16px; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 0.88rem; }
.footer-links a:hover { color: var(--white); }

/* ── Reveal Animation ─────────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ───────────────────────────────────────────────── */

/* Tablet */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .quote-grid { grid-template-columns: 1fr; }
  .step-arrow { display: none; }
  .steps { gap: 24px; }
  .section-intro { margin-bottom: 36px; }
  .section-intro h2 { font-size: 1.6rem; }
}

/* Mobile */
@media (max-width: 640px) {
  /* Nav */
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
    background: var(--white); flex-direction: column;
    padding: 24px; gap: 6px; box-shadow: var(--shadow);
    transform: translateY(-120%); transition: transform var(--transition);
    z-index: 999; overflow-y: auto; -webkit-overflow-scrolling: touch;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a {
    font-size: 1rem; padding: 12px 0;
    border-bottom: 1px solid var(--gray-200);
  }
  .nav-links .btn { margin-top: 8px; text-align: center; padding: 14px; }

  /* Hero */
  .hero { padding: 110px 0 48px; }
  .hero-sub { font-size: 1rem; margin: 16px 0 24px; }
  .hero-actions { flex-direction: column; gap: 10px; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .hero-trust { margin-top: 24px; font-size: 0.8rem; }

  /* Sections */
  .section { padding: 48px 0; }
  .container { padding: 0 16px; }
  .section-intro { margin-bottom: 28px; }
  .section-intro p { font-size: 0.95rem; }

  /* Grids */
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  /* Cards */
  .problem-card { padding: 24px 20px; }
  .feature-card { padding: 24px 18px; }
  .feature-card h3 { font-size: 1.05rem; }
  .benefit { padding: 18px 16px; gap: 12px; }
  .benefit-check { width: 32px; height: 32px; font-size: 0.95rem; }

  /* Steps */
  .steps { flex-direction: column; align-items: center; }
  .step { max-width: 100%; width: 100%; padding: 20px 16px; }
  .step-num { width: 48px; height: 48px; font-size: 1.2rem; }

  /* Stats */
  .stats-row { gap: 20px; padding: 16px 0; }
  .stat { flex: 1 1 40%; }
  .stat-label { font-size: 0.8rem; }

  /* Quote */
  .quote-reasons h3, .quote-cta-card h3 { font-size: 1.1rem; }
  .quote-list li { font-size: 0.88rem; }
  .quote-cta-card { padding: 28px 20px; }

  /* FAQ */
  .faq-item summary { padding: 14px 18px; font-size: 0.92rem; }
  .faq-item p { padding: 0 18px 14px; font-size: 0.88rem; }

  /* Contact / CTA */
  .contact-form { padding: 24px 16px; margin-top: 24px; }
  .form-group input, .form-group select, .form-group textarea {
    padding: 14px; font-size: 16px; /* prevents iOS zoom */
  }
  .btn-lg { padding: 14px 24px; font-size: 0.95rem; }

  /* Footer */
  .footer { padding: 40px 0 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-brand p { font-size: 0.82rem; }
  .footer-links h4 { margin-bottom: 10px; }
}

/* Small phones */
@media (max-width: 380px) {
  .hero { padding: 100px 0 40px; }
  .container { padding: 0 12px; }
  .problem-card { padding: 20px 16px; }
  .feature-card { padding: 20px 14px; }
  .contact-form { padding: 20px 12px; }
  .pay-card { padding: 18px 14px; }
}

/* Touch targets */
@media (pointer: coarse) {
  .nav-links a { min-height: 44px; display: flex; align-items: center; }
  .btn { min-height: 44px; }
  .faq-item summary { min-height: 48px; }
  .form-group input, .form-group select, .form-group textarea { min-height: 44px; }
  .footer-links a { min-height: 36px; display: inline-flex; align-items: center; }
}
