/* Century Auto Spares: plain CSS, no build step */
:root {
  --navy: #0B1F3F; --navy-2: #12305C; --slate: #334155; --footer: #081830;
  --ink: #0F172A; --text: #334155; --muted: #64748B; --line: #E2E8F0; --mist: #F8FAFC;
  --red: #DC2626; --red-dark: #B91C1C; --red-soft: #F87171;
  --wa: #25D366; --wa-dark: #1EBE5A; --wa-text: #128C4A;
  --max: 1200px; --gutter: 16px; --radius: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 768px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font: 400 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-fill { fill: currentColor; stroke: none; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 64px 0; }
@media (min-width: 768px) { .section { padding: 96px 0; } }
.mist { background: var(--mist); border-block: 1px solid var(--line); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 10px 16px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }

/* Section heading */
.head { max-width: 680px; margin-bottom: 40px; }
@media (min-width: 768px) { .head { margin-bottom: 56px; } }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--red); margin-bottom: 12px; }
.head h2 { font-size: 30px; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; color: var(--navy); }
@media (min-width: 768px) { .head h2 { font-size: 38px; } }
.head p { margin-top: 16px; font-size: 18px; line-height: 1.6; color: var(--text); }
.on-dark .head h2 { color: #fff; }
.on-dark .head p { color: #CBD5E1; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 10px; border: 0; font: 600 15px/1.2 inherit; font-family: inherit; text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), background-color .2s; }
.btn:hover { transform: scale(1.03); }
.btn:active { transform: scale(.97); }
.btn-wa { background: var(--wa); color: var(--navy); }
.btn-wa:hover { background: var(--wa-dark); }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: #F1F5F9; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-block { width: 100%; }
.glow { animation: glow 2.8s ease-in-out infinite; }
@keyframes glow { 0%, 100% { box-shadow: 0 8px 24px -8px rgba(220,38,38,.55); } 50% { box-shadow: 0 0 0 6px rgba(220,38,38,.14), 0 8px 30px -6px rgba(220,38,38,.75); } }

/* Logo (REPLACE when the real logo exists) */
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; background: linear-gradient(135deg, #EF4444, #B91C1C); color: #fff; font-weight: 800; box-shadow: 0 6px 20px -6px rgba(220,38,38,.7); }
.logo-name { display: block; font-size: 15px; font-weight: 800; letter-spacing: .18em; color: var(--navy); line-height: 1; }
.logo-sub { display: block; margin-top: 5px; font-size: 10px; font-weight: 600; letter-spacing: .2em; color: var(--muted); line-height: 1; }
.on-dark .logo-name { color: #fff; }
.on-dark .logo-sub { color: #CBD5E1; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; transition: background-color .3s, box-shadow .3s; }
.site-header.scrolled { background: rgba(255,255,255,.82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 8px 30px -12px rgba(11,31,63,.25); }
.bar { display: flex; align-items: center; gap: 24px; height: 72px; }
.main-nav { margin-left: auto; display: none; }
.main-nav ul { display: flex; gap: 28px; }
.main-nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--text); }
.main-nav a:hover { color: var(--navy); }
.bar .btn-wa { display: none; min-height: 44px; }
.menu-btn { margin-left: auto; display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; color: var(--navy); cursor: pointer; border-radius: 8px; }
.menu-btn .icon { width: 24px; height: 24px; }
.mobile-nav { display: none; border-top: 1px solid var(--line); background: #fff; padding: 4px var(--gutter) 16px; }
.mobile-nav.open { display: block; animation: drop .3s var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }
.mobile-nav li { border-bottom: 1px solid #F1F5F9; }
.mobile-nav a { display: block; padding: 14px 0; font-size: 17px; font-weight: 500; text-decoration: none; color: var(--ink); }
@media (min-width: 1024px) {
  .main-nav, .bar .btn-wa { display: flex; }
  .menu-btn, .mobile-nav, .mobile-nav.open { display: none; }
}

/* Hero */
.hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 55%, var(--slate) 100%); }
.hero-grid-bg { position: absolute; inset: 0; pointer-events: none; opacity: .14;
  background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px), linear-gradient(rgba(255,255,255,.25) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.25) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at 70% 40%, #000 30%, transparent 75%); }
.hero-glow { position: absolute; right: -120px; top: 40px; width: 380px; height: 380px; border-radius: 50%; background: rgba(220,38,38,.22); filter: blur(70px); pointer-events: none; }
.hero-inner { position: relative; display: grid; gap: 40px; align-items: center; padding-block: 56px; }
@media (min-width: 1024px) { .hero-inner { grid-template-columns: 1.2fr 1fr; gap: 64px; padding-block: 96px; } }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 12px; color: var(--red-soft); margin-bottom: 20px; }
.hero .eyebrow::before { content: ""; width: 32px; height: 3px; background: var(--red); }
.hero h1 { font-size: 38px; line-height: 1.08; font-weight: 700; letter-spacing: -.025em; }
@media (min-width: 768px) { .hero h1 { font-size: 58px; } }
.grad { background: linear-gradient(90deg, #F87171, #FCA5A5, #FED7AA); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin-top: 24px; max-width: 36em; font-size: 18px; line-height: 1.65; color: #CBD5E1; }
.hero-btns { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 560px) { .hero-btns { flex-direction: row; flex-wrap: wrap; } }
.promise-card { border-radius: 20px; background: #fff; color: var(--ink); padding: 24px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.45); }
@media (min-width: 768px) { .promise-card { padding: 32px; } }
.promise-card h2 { font-size: 20px; font-weight: 700; color: var(--navy); }
.promise-card ul { margin-top: 18px; }
.promise-card li { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.5; }
.promise-card li .icon { color: var(--red); margin-top: 2px; }
.promise-card .card-foot { margin-top: 18px; font-size: 14px; color: var(--muted); }

/* Hero load animation */
.js .rise { opacity: 0; transform: translateY(20px); animation: rise .55s var(--ease) forwards; }
.js .rise:nth-child(2) { animation-delay: .12s; } .js .rise:nth-child(3) { animation-delay: .24s; } .js .rise:nth-child(4) { animation-delay: .36s; }
.js .rise.late { animation-delay: .45s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Scroll reveal */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* Brands */
.brand-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 640px) { .brand-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .brand-grid { grid-template-columns: repeat(5, 1fr); gap: 16px; } }
.brand { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 16px; transition: transform .3s var(--ease), box-shadow .3s; }
.brand:hover { transform: translateY(-5px); box-shadow: 0 20px 40px -20px rgba(11,31,63,.35); }
.brand-logo { display: grid; place-items: center; height: 88px; padding: 0 6px; }
.brand-logo img { max-height: 60px; width: auto; max-width: 100%; object-fit: contain; }
.brand h3 { margin-top: 12px; padding-top: 12px; border-top: 1px solid #F1F5F9; font-size: 14px; font-weight: 600; color: var(--navy); }
.ask { margin-top: 4px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--wa-text); text-decoration: none; }
.ask:hover { text-decoration: underline; }
.ask .icon { width: 16px; height: 16px; }
.small-note { margin-top: 28px; font-size: 14px; color: var(--muted); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: #fff; padding: 22px; }
@media (min-width: 768px) { .stat { padding: 28px; } }
.stat dt { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.stat .num { display: block; margin-top: 8px; font-size: 34px; font-weight: 700; color: var(--navy); line-height: 1.1; }
.stat .note { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); }

/* Review */
.review { margin: 32px 0 0; max-width: 760px; border-left: 4px solid var(--red); background: #fff; border-radius: 0 var(--radius) var(--radius) 0; padding: 24px 28px; box-shadow: 0 1px 3px rgba(15,23,42,.06); }
.review .stars { color: #F59E0B; font-size: 18px; letter-spacing: 2px; }
.review blockquote { margin: 8px 0 0; }
.review blockquote p { font-size: 18px; line-height: 1.6; color: var(--ink); }
.review figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); }
.review figcaption a { color: var(--navy); font-weight: 600; }

/* Partners */
.partners { position: relative; overflow: hidden; background: var(--navy); }
.partners .blob { position: absolute; left: -160px; top: 80px; width: 380px; height: 380px; border-radius: 50%; background: rgba(220,38,38,.1); filter: blur(70px); pointer-events: none; }
.partner-top { position: relative; display: grid; gap: 8px; }
@media (min-width: 1024px) { .partner-top { grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: end; } .partner-top .cta { margin-bottom: 56px; } }
.partner-top .cta { display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; }
.pillars { position: relative; display: grid; gap: 16px; }
@media (min-width: 640px) { .pillars { grid-template-columns: repeat(2, 1fr); } .pillars .wide { grid-column: span 2; } }
@media (min-width: 1024px) { .pillars { grid-template-columns: repeat(4, 1fr); } }
.pillar { height: 100%; border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 24px; background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.pillar:hover { transform: translateY(-5px); border-color: rgba(239,68,68,.4); box-shadow: 0 20px 50px -20px rgba(220,38,38,.45); }
.tile-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px; border-radius: 12px; background: linear-gradient(135deg, rgba(239,68,68,.25), rgba(239,68,68,.05)); box-shadow: inset 0 0 0 1px rgba(248,113,113,.3); color: var(--red-soft); transition: transform .3s var(--ease); }
.pillar:hover .tile-icon { transform: rotate(-8deg) scale(1.08); }
.pillar h3 { font-size: 16px; font-weight: 700; color: #fff; }
.pillar p { margin-top: 8px; font-size: 15px; line-height: 1.6; color: #CBD5E1; }

.steps-wrap { position: relative; margin-top: 64px; }
.steps-wrap > h3 { font-size: 24px; font-weight: 700; color: #fff; margin-bottom: 32px; }
.steps { position: relative; }
.steps-ol { position: relative; display: grid; gap: 32px; }
.track { position: absolute; background: rgba(255,255,255,.1); }
.track span { display: block; width: 100%; height: 100%; background: linear-gradient(180deg, #EF4444, #FCA5A5); transform-origin: top; transform: scaleY(var(--p, 0)); }
.track-v { left: 23px; top: 0; bottom: 0; width: 2px; }
.track-h { display: none; }
.step { position: relative; display: flex; gap: 16px; }
.step-num { position: relative; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--red); color: #fff; font-weight: 700; font-size: 18px; box-shadow: 0 0 0 8px var(--navy); }
.step h4 { margin: 0; font-size: 16px; font-weight: 700; color: #fff; }
.step p { margin-top: 4px; font-size: 15px; line-height: 1.6; color: #CBD5E1; }
@media (min-width: 768px) {
  .steps-ol { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .track-v { display: none; }
  .track-h { display: block; left: 12%; right: 12%; top: 23px; height: 2px; }
  .track-h span { background: linear-gradient(90deg, #EF4444, #FCA5A5); transform-origin: left; transform: scaleX(var(--p, 0)); }
  .step { display: block; text-align: center; }
  .step-num { margin: 0 auto 20px; }
}

/* FAQ */
.faq-grid { display: grid; gap: 32px; }
@media (min-width: 1024px) { .faq-grid { grid-template-columns: 1fr 2fr; gap: 64px; } .faq-grid .head { margin-bottom: 0; } }
.faq-list { border-bottom: 1px solid var(--line); }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 0; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list h3 { font-size: 17px; font-weight: 600; color: var(--navy); line-height: 1.4; }
.pm { position: relative; width: 16px; height: 16px; flex: none; }
.pm::before, .pm::after { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 2px; border-radius: 2px; background: var(--red); transition: transform .25s var(--ease); }
.pm::after { transform: rotate(90deg); }
details[open] .pm::after { transform: rotate(0); }
.faq-list details p { padding: 0 32px 20px 0; color: var(--text); max-width: 42em; }

/* Contact */
.contact-grid { display: grid; gap: 48px; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1.1fr; } }
.info { border-block: 1px solid var(--line); }
.info > div { padding: 16px 0; }
.info dt { display: flex; align-items: center; gap: 16px; }
.info dd { padding-left: 36px; }
.info > div + div { border-top: 1px solid var(--line); }
.info .icon { color: var(--red); }
.info dt { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.info dd { margin-top: 4px; color: var(--ink); }
.info a { font-weight: 600; color: var(--navy); }
.map { display: block; width: 100%; height: 280px; margin-top: 24px; border: 0; border-radius: var(--radius); background: #EEF2F7; filter: grayscale(1) contrast(.95); }
.form-card { border: 1px solid var(--line); border-radius: 20px; background: var(--mist); padding: 20px; }
@media (min-width: 768px) { .form-card { padding: 32px; } }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 24px; padding: 4px; border-radius: 12px; background: #E2E8F0; }
.tab { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 8px; border: 0; border-radius: 9px; background: none; font: 600 14px/1.2 inherit; font-family: inherit; color: var(--muted); cursor: pointer; transition: background-color .25s, color .25s, box-shadow .25s; }
.tab .icon { width: 16px; height: 16px; }
.tab[aria-selected="true"] { background: #fff; color: var(--navy); box-shadow: 0 1px 4px rgba(15,23,42,.12); }
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: #334155; }
.field label span { font-weight: 400; color: #94A3B8; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #CBD5E1; border-radius: 10px; background: #fff; font: 15px/1.4 inherit; font-family: inherit; color: var(--ink); }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(11,31,63,.15); }
.field.invalid input { border-color: var(--red); }
.err { display: none; margin-top: 6px; font-size: 14px; color: var(--red); }
.field.invalid .err { display: block; }
.form-note { margin-top: 10px; font-size: 13px; color: var(--muted); text-align: center; }

/* Footer */
.site-footer { background: var(--footer); color: #CBD5E1; padding: 56px 0 96px; font-size: 15px; }
@media (min-width: 768px) { .site-footer { padding-bottom: 40px; } }
.foot-cols { display: grid; gap: 40px; }
@media (min-width: 768px) { .foot-cols { grid-template-columns: 1.5fr 1fr 1fr; } }
.site-footer h2 { margin-bottom: 12px; font-size: 14px; font-weight: 700; color: #fff; }
.site-footer p, .site-footer li { margin-top: 6px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.foot-base { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; color: #94A3B8; }

/* Floating WhatsApp */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; }
.wa-float a { position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff; box-shadow: 0 12px 28px -8px rgba(0,0,0,.35); transition: transform .2s var(--ease); }
.wa-float a:hover { transform: scale(1.06); }
.wa-float .icon { width: 28px; height: 28px; }
.wa-float .ping { position: absolute; inset: 0; border-radius: 50%; background: var(--wa); animation: ping 2.4s cubic-bezier(0,0,.2,1) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .45; } 80%, 100% { transform: scale(1.6); opacity: 0; } }
.wa-float .tip { position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%); white-space: nowrap; padding: 6px 12px; border-radius: 8px; background: var(--navy); color: #fff; font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s; }
.wa-float:hover .tip, .wa-float:focus-within .tip { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rise, .js .reveal { opacity: 1; transform: none; }
  .track span { transform: none !important; }
}
