/* ============================================================
   RevDrive Agency — Global Stylesheet
   ============================================================ */

:root {
  --navy-950: #0a1628;
  --navy-900: #0d1e35;
  --navy-800: #13294b;
  --navy-700: #1c3a63;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-400: #60a5fa;
  --cyan-400: #22d3ee;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --white: #ffffff;
  --success: #16a34a;
  --shadow-sm: 0 1px 2px rgba(10, 22, 40, 0.06);
  --shadow-md: 0 4px 16px rgba(10, 22, 40, 0.08);
  --shadow-lg: 0 12px 40px rgba(10, 22, 40, 0.14);
  --radius: 14px;
  --radius-sm: 8px;
  --max-width: 1180px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

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

h1, h2, h3, h4 {
  color: var(--navy-950);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.3rem; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-600);
  background: rgba(37, 99, 235, 0.09);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.section-head {
  max-width: 680px;
  margin: 0 auto 52px;
  text-align: center;
}

.section-head p {
  color: var(--gray-500);
  font-size: 1.05rem;
  margin-top: 14px;
}

section { padding: 92px 0; }

.section-alt { background: var(--gray-50); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-400));
  color: var(--white);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.36);
}

.btn-outline {
  background: transparent;
  color: var(--navy-950);
  border: 1.5px solid var(--gray-200);
}

.btn-outline:hover {
  border-color: var(--blue-500);
  color: var(--blue-600);
}

.btn-white {
  background: var(--white);
  color: var(--navy-900);
}

.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.28rem;
  color: var(--navy-950);
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-400));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.logo-text { white-space: nowrap; }
.logo-text .accent { color: var(--blue-600); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--gray-700);
  position: relative;
  padding: 6px 0;
}

.nav-links a:hover { color: var(--blue-600); }

.nav-links a.active { color: var(--blue-600); }

.nav-cta { display: flex; align-items: center; gap: 18px; }

.nav-phone {
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--navy-900);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--navy-950);
  border-radius: 2px;
  transition: 0.25s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--navy-950) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  color: var(--white);
  padding: 100px 0 110px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 400px at 85% 15%, rgba(34, 211, 238, 0.18), transparent 60%),
    radial-gradient(500px 350px at 10% 90%, rgba(37, 99, 235, 0.25), transparent 60%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero h1 { color: var(--white); margin-bottom: 22px; }

.hero p.lead {
  color: var(--gray-200);
  font-size: 1.14rem;
  max-width: 540px;
  margin-bottom: 34px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-stats {
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
}

.hero-stats div strong {
  display: block;
  font-size: 1.7rem;
  color: var(--white);
  font-weight: 800;
}

.hero-stats div span {
  font-size: 0.85rem;
  color: var(--gray-400);
}

.hero-media {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.12);
}

.hero-media img { width: 100%; height: 460px; object-fit: cover; }

.hero-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(10, 22, 40, 0.72);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}

.hero-badge .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(22,163,74,0.25);
  flex-shrink: 0;
}

/* ---------- Page Header (inner pages) ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--navy-950), var(--navy-800));
  color: var(--white);
  padding: 72px 0 64px;
  text-align: center;
}

.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero p { color: var(--gray-300, #cbd5e1); max-width: 620px; margin: 0 auto; }

.breadcrumb {
  margin-top: 18px;
  font-size: 0.88rem;
  color: var(--gray-400);
}

.breadcrumb a { color: var(--cyan-400); font-weight: 600; }

/* ---------- Logos / trust strip ---------- */
.trust-strip {
  padding: 34px 0;
  border-bottom: 1px solid var(--gray-200);
}

.trust-strip .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.trust-strip p {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
  font-weight: 700;
}

.trust-badges { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; }
.trust-badges span {
  font-weight: 700;
  color: var(--gray-500);
  font-size: 0.95rem;
}

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

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: 0.25s ease;
}

.card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: transparent; }

.card .icon-box {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(37,99,235,0.12), rgba(34,211,238,0.14));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}

.card h3 { margin-bottom: 10px; }
.card p { color: var(--gray-500); font-size: 0.96rem; }

/* ---------- Process / Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; counter-reset: step; }

.step { position: relative; padding: 30px 24px 24px; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); }

.step-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--navy-950);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  margin-bottom: 18px;
}

/* ---------- Split sections ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.split img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; height: 420px; object-fit: cover; }

.split ul.check-list { margin-top: 22px; }

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
  color: var(--gray-600);
  font-size: 0.98rem;
}

.check-list li .tick {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(22,163,74,0.12);
  color: var(--success);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  margin-top: 2px;
}

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 30px 28px;
}

.stars { color: #f59e0b; margin-bottom: 14px; letter-spacing: 2px; }

.testimonial-card p.quote { color: var(--gray-600); font-style: italic; margin-bottom: 20px; }

.testimonial-author { display: flex; align-items: center; gap: 12px; }

.avatar-circle {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-400));
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.testimonial-author strong { display: block; font-size: 0.95rem; color: var(--navy-950); }
.testimonial-author span { font-size: 0.82rem; color: var(--gray-500); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--navy-950), var(--navy-700));
  color: var(--white);
  border-radius: 24px;
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(500px 300px at 90% 0%, rgba(34,211,238,0.22), transparent 60%);
}

.cta-band h2 { color: var(--white); margin-bottom: 8px; position: relative; }
.cta-band p { color: var(--gray-300, #cbd5e1); position: relative; }
.cta-band .cta-actions { position: relative; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Pricing/Industries pill list ---------- */
.pill-grid { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.pill {
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--gray-700);
}

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--gray-200);
  padding: 22px 0;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 700;
  color: var(--navy-950);
  font-size: 1.04rem;
}

.faq-question .plus {
  font-size: 1.3rem;
  color: var(--blue-600);
  transition: 0.25s;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.open .faq-question .plus { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: var(--gray-500);
  font-size: 0.96rem;
}

.faq-item.open .faq-answer { max-height: 400px; margin-top: 14px; }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
}

.contact-info-card {
  background: var(--navy-950);
  color: var(--white);
  border-radius: var(--radius);
  padding: 40px 32px;
}

.contact-info-card h3 { color: var(--white); }

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 26px;
}

.contact-item .icon-box {
  background: rgba(255,255,255,0.1);
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-400);
  flex-shrink: 0;
}

.contact-item .icon-box svg { width: 21px; height: 21px; }

.contact-item strong { display: block; color: var(--white); margin-bottom: 3px; font-size: 0.95rem; }
.contact-item span, .contact-item a { color: var(--gray-300, #cbd5e1); font-size: 0.92rem; }

.contact-form-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }

.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }

.field label { font-weight: 600; font-size: 0.9rem; color: var(--navy-900); }

.field input, .field select, .field textarea {
  padding: 13px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.96rem;
  color: var(--navy-950);
  background: var(--gray-50);
  transition: 0.2s;
}

.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  background: var(--white);
}

.field textarea { resize: vertical; min-height: 120px; }

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  margin-top: 44px;
}

.map-embed iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950);
  color: var(--gray-400);
  padding: 70px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-grid h4 {
  color: var(--white);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

.footer-grid ul li { margin-bottom: 12px; }
.footer-grid ul li a { color: var(--gray-400); font-size: 0.93rem; }
.footer-grid ul li a:hover { color: var(--cyan-400); }

.footer-about p { font-size: 0.93rem; margin: 18px 0 22px; max-width: 320px; }

.footer-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--white); }

.social-row { display: flex; gap: 10px; }
.social-row a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 0.9rem;
}
.social-row a:hover { background: var(--blue-600); }

.footer-bottom {
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.86rem;
}

.footer-bottom a { color: var(--gray-400); }
.footer-bottom a:hover { color: var(--cyan-400); }

/* ---------- Legal pages ---------- */
.legal-content {
  max-width: 840px;
  margin: 0 auto;
  padding: 80px 24px 100px;
}

.legal-content h2 { margin-top: 42px; margin-bottom: 16px; font-size: 1.5rem; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--gray-600); margin-bottom: 14px; font-size: 0.99rem; }
.legal-content ul, .legal-content ol { margin: 0 0 18px 22px; }
.legal-content ul li, .legal-content ol li { margin-bottom: 8px; }
.legal-content strong { color: var(--navy-950); }
.legal-updated { color: var(--gray-500); font-size: 0.9rem; margin-bottom: 34px; }

/* ---------- Back to top ---------- */
.back-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--navy-950);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: 0.25s;
  z-index: 500;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
}
.back-top.visible { opacity: 1; pointer-events: auto; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media img { height: 340px; }
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: -1; }
  .grid-3, .grid-4, .steps, .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-links, .nav-phone { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    background: var(--white);
    padding: 20px 24px 26px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
    gap: 18px;
  }
  section { padding: 64px 0; }
  .grid-3, .grid-4, .steps, .grid-2 { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; text-align: center; padding: 42px 28px; }
  .cta-band .cta-actions { justify-content: center; }
  .form-row { grid-template-columns: 1fr; }
  .footer