/* ===================================================
   CAR PPF EXPERTS — BRANDED DESIGN SYSTEM
   Brand Colors: Deep Navy + Electric Blue + Violet
   =================================================== */

/* ===== CSS CUSTOM PROPERTIES (BRAND TOKENS) ===== */
:root {
  /* Primary Brand */
  --brand-50:  #eff6ff;
  --brand-100: #dbeafe;
  --brand-200: #bfdbfe;
  --brand-300: #93c5fd;
  --brand-400: #60a5fa;
  --brand-500: #3b82f6;
  --brand-600: #2563eb;
  --brand-700: #1d4ed8;
  --brand-800: #1e40af;
  --brand-900: #1e3a8a;

  /* Accent (Violet) */
  --accent-500: #8b5cf6;
  --accent-600: #7c3aed;
  --accent-700: #6d28d9;

  /* Neutral (Slate) */
  --slate-50:  #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --slate-950: #020617;

  /* Success */
  --success-50:  #f0fdf4;
  --success-400: #4ade80;
  --success-500: #22c55e;
  --success-600: #16a34a;

  /* Gradients */
  --gradient-brand: linear-gradient(135deg, var(--brand-600), var(--accent-600));
  --gradient-hero:  linear-gradient(160deg, var(--slate-950) 0%, #1e1b4b 40%, #312e81 70%, #1e1b4b 100%);
  --gradient-cta:   linear-gradient(160deg, var(--brand-600), var(--accent-600));
  --gradient-dark:  linear-gradient(160deg, var(--slate-900), #1e1b4b, #312e81);

  /* Shadows */
  --shadow-sm:  0 1px 2px rgba(0,0,0,.05);
  --shadow-md:  0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.05);
  --shadow-lg:  0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.04);
  --shadow-xl:  0 20px 25px -5px rgba(0,0,0,.08), 0 8px 10px -6px rgba(0,0,0,.04);
  --shadow-glow: 0 4px 14px rgba(37,99,235,.35);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Transitions */
  --ease: cubic-bezier(.4,0,.2,1);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.7;
  color: var(--slate-800);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-600); text-decoration: none; transition: color .2s; }
a:hover { color: var(--brand-700); }
ul { list-style: none; }

/* ===== UTILITIES ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section-alt { background: var(--slate-50); }
.text-center { text-align: center; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: .95rem;
  transition: all .3s var(--ease);
  cursor: pointer;
  border: none;
  text-decoration: none;
  font-family: inherit;
}
.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37,99,235,.45);
  color: #fff;
}
.btn-secondary {
  background: rgba(255,255,255,.1);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.3);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  background: rgba(255,255,255,.2);
  border-color: rgba(255,255,255,.5);
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: var(--brand-600);
  border: 2px solid var(--brand-600);
}
.btn-outline:hover {
  background: var(--brand-600);
  color: #fff;
}

/* ===== HEADER ===== */
.header {
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--slate-200);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all .3s;
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--slate-800);
  letter-spacing: -.5px;
}
.logo span { color: var(--brand-600); }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--slate-600);
  transition: color .2s;
}
.nav-links a:hover { color: var(--brand-600); }
.nav-links .dropdown { position: relative; }
.nav-links .dropdown-content {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: -12px;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,.12);
  min-width: 240px;
  padding: 8px 0;
  z-index: 100;
}
.nav-links .dropdown:hover .dropdown-content { display: block; }
.nav-links .dropdown-content a {
  display: block;
  padding: 10px 20px;
  font-size: .88rem;
  border-radius: var(--radius-sm);
  margin: 2px 8px;
}
.nav-links .dropdown-content a:hover { background: var(--slate-50); color: var(--brand-600); }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--slate-800);
  border-radius: 2px;
  transition: .3s;
}

/* ===== HERO ===== */
.hero {
  background: var(--gradient-hero);
  color: #fff;
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99,102,241,.2) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(139,92,246,.15) 0%, transparent 70%);
  border-radius: 50%;
}
.hero .container { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 100px;
  padding: 8px 20px;
  font-size: .85rem;
  color: var(--brand-200);
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}
.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--success-400);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--success-400);
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -.02em;
}
.hero p {
  font-size: 1.15rem;
  color: var(--brand-200);
  max-width: 560px;
  margin-bottom: 36px;
  line-height: 1.8;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* ===== STATS BAR ===== */
.stats-bar {
  background: #fff;
  border-bottom: 1px solid var(--slate-200);
  padding: 0;
  position: relative;
  z-index: 2;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  text-align: center;
  padding: 32px 20px;
  border-right: 1px solid var(--slate-100);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand-600);
  letter-spacing: -.02em;
}
.stat-label {
  display: block;
  font-size: .85rem;
  color: var(--slate-500);
  margin-top: 4px;
  font-weight: 500;
}

/* ===== SECTION HEADERS ===== */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-label {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--brand-600);
  margin-bottom: 12px;
}
.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--slate-900);
  letter-spacing: -.02em;
  margin-bottom: 16px;
}
.section-header p {
  font-size: 1.05rem;
  color: var(--slate-500);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== CARDS ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all .3s var(--ease);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity .3s;
}
.card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
  border-color: transparent;
}
.card:hover::before { opacity: 1; }
.card-icon {
  width: 52px;
  height: 52px;
  background: var(--brand-50);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--slate-900);
}
.card p { color: var(--slate-500); font-size: .92rem; line-height: 1.7; }

/* ===== SERVICE CARDS ===== */
.services-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.service-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.service-card .card-icon {
  background: var(--gradient-brand);
  color: #fff;
}
.service-card h3 { color: var(--brand-600); }
.service-card:hover h3 { color: var(--brand-700); }

/* ===== WHY CHOOSE US ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.feature-item {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  transition: all .3s;
}
.feature-item:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-200);
}
.feature-check {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--success-50);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--success-600);
  font-weight: 700;
  font-size: 1.1rem;
}
.feature-item h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 4px;
}
.feature-item p { color: var(--slate-500); font-size: .88rem; }

/* ===== FAQ ===== */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: all .3s;
}
.faq-item:hover { border-color: var(--brand-200); }
.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  background: #fff;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--slate-900);
  font-family: inherit;
  transition: color .2s;
}
.faq-question:hover { color: var(--brand-600); }
.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--brand-600);
  transition: transform .3s;
  font-weight: 300;
}
.faq-item.active .faq-question::after { content: '−'; transform: rotate(180deg); }
.faq-item.active .faq-question { color: var(--brand-600); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s var(--ease), padding .3s;
  padding: 0 24px;
  color: var(--slate-500);
  line-height: 1.8;
  font-size: .95rem;
}
.faq-item.active .faq-answer { max-height: 600px; padding-bottom: 20px; }

/* ===== BLOG ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}
.blog-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all .3s;
}
.blog-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}
.blog-card-img {
  height: 200px;
  background: var(--gradient-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.12);
  font-size: 4rem;
}
.blog-card-body { padding: 28px; }
.blog-card-body h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.blog-card-body h3 a { color: var(--slate-900); }
.blog-card-body h3 a:hover { color: var(--brand-600); }
.blog-card-body p { color: var(--slate-500); font-size: .9rem; margin-bottom: 16px; line-height: 1.7; }
.blog-meta { font-size: .8rem; color: var(--slate-400); font-weight: 500; }

/* ===== ARTICLE ===== */
.article-content { max-width: 780px; margin: 0 auto; }
.article-content h2 {
  font-size: 1.6rem;
  margin: 48px 0 16px;
  color: var(--slate-900);
  font-weight: 700;
}
.article-content h3 { font-size: 1.25rem; margin: 32px 0 12px; color: var(--slate-800); }
.article-content p { margin-bottom: 18px; color: var(--slate-700); line-height: 1.8; }
.article-content ul, .article-content ol { margin: 16px 0 18px 24px; }
.article-content li { margin-bottom: 10px; color: var(--slate-700); }
.article-content blockquote {
  border-left: 4px solid var(--brand-500);
  padding: 20px 28px;
  margin: 28px 0;
  background: var(--brand-50);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--slate-600);
}
.article-content table { width: 100%; border-collapse: collapse; margin: 28px 0; border-radius: var(--radius-md); overflow: hidden; }
.article-content th, .article-content td { padding: 14px 18px; border: 1px solid var(--slate-200); text-align: left; }
.article-content th { background: var(--slate-50); font-weight: 600; color: var(--slate-900); }

/* ===== FOOTER ===== */
.footer {
  background: var(--slate-900);
  color: var(--slate-400);
  padding: 70px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer h4 { color: var(--slate-100); font-size: .95rem; margin-bottom: 18px; font-weight: 600; }
.footer p { font-size: .88rem; line-height: 1.8; }
.footer a { color: var(--slate-400); font-size: .88rem; transition: color .2s; }
.footer a:hover { color: #fff; }
.footer-links li { margin-bottom: 10px; }
.footer-bottom {
  border-top: 1px solid var(--slate-800);
  padding-top: 28px;
  text-align: center;
  font-size: .82rem;
  color: var(--slate-600);
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  padding: 16px 0;
  font-size: .82rem;
  color: var(--slate-400);
}
.breadcrumb a { color: var(--slate-400); }
.breadcrumb a:hover { color: var(--brand-400); }
.breadcrumb span { margin: 0 8px; color: var(--slate-600); }

/* ===== CONTACT FORM ===== */
.contact-form { max-width: 600px; }
.form-group { margin-bottom: 22px; }
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--slate-800);
  font-size: .9rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-md);
  font-size: .95rem;
  font-family: inherit;
  transition: all .2s;
  background: #fff;
  color: var(--slate-800);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 4px rgba(37,99,235,.1);
}
.form-group textarea { resize: vertical; min-height: 130px; }

/* ===== PAGE HEADER ===== */
.page-header {
  background: var(--gradient-dark);
  color: #fff;
  padding: 70px 0;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(99,102,241,.15) 0%, transparent 70%);
  border-radius: 50%;
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -.02em;
}
.page-header p { color: var(--brand-200); font-size: 1.05rem; max-width: 600px; }

/* ===== CTA BANNER ===== */
.cta-banner {
  background: var(--gradient-cta);
  color: #fff;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,.08) 0%, transparent 70%);
  border-radius: 50%;
}
.cta-banner .container { position: relative; z-index: 1; }
.cta-banner h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 16px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.cta-banner p {
  color: rgba(255,255,255,.8);
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.05rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero { padding: 80px 0 60px; }
  .hero h1 { font-size: 2rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid var(--slate-100); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 24px;
    border-bottom: 1px solid var(--slate-200);
    box-shadow: 0 20px 40px rgba(0,0,0,.1);
    gap: 8px;
  }
  .nav-links .dropdown-content {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 16px;
    border-radius: 0;
    min-width: auto;
  }
  .nav-links .dropdown-content a { padding: 8px 16px; }
  .blog-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .page-header { padding: 50px 0; }
}
