/* ===== CRA Auto Spare Parts — static site styles ===== */
:root {
  --bg: #0a0a0a;
  --surface: #111111;
  --border: #222222;
  --brand: #0055ff;
  --brand-dark: #0044cc;
  --fg: #ffffff;
  --muted: rgba(255, 255, 255, 0.6);
  --muted-2: rgba(255, 255, 255, 0.4);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

::selection { background: var(--brand); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #222; border: 2px solid #0a0a0a; }
::-webkit-scrollbar-thumb:hover { background: var(--brand); }

.oswald { font-family: "Oswald", sans-serif; }
.container { max-width: 1400px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 640px) { .container { padding: 0 32px; } }

.eyebrow {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 12px;
  color: var(--brand);
}

.section { padding: 96px 0; }
@media (min-width: 1024px) { .section { padding: 128px 0; } }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 14px;
  padding: 15px 30px;
  border-radius: 3px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { border-color: rgba(255,255,255,0.25); color: #fff; }
.btn-ghost:hover { border-color: #fff; }
.btn-dark { background: #000; color: #fff; }
.btn-dark:hover { background: #111; }
.btn svg { width: 18px; height: 18px; }

/* ===== Header ===== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s;
}
.header.scrolled {
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: rgba(255,255,255,0.1);
}
.header-inner { height: 80px; display: flex; align-items: center; justify-content: space-between; }
.logo-badge { background: #fff; border-radius: 3px; padding: 6px 8px; display: inline-flex; }
.logo-badge img { height: 36px; width: auto; }
.nav { display: none; gap: 36px; }
.nav a {
  font-family: "Oswald", sans-serif; text-transform: uppercase;
  letter-spacing: 0.15em; font-size: 14px; color: var(--muted);
  transition: color 0.2s;
}
.nav a:hover, .nav a.active { color: var(--brand); }
.header-cta { display: none; }
@media (min-width: 1024px) {
  .nav { display: flex; }
  .header-cta { display: inline-flex; }
}
.burger { background: none; border: none; color: #fff; cursor: pointer; padding: 8px; }
.burger svg { width: 26px; height: 26px; }
@media (min-width: 1024px) { .burger { display: none; } }
.mobile-menu {
  display: none; flex-direction: column;
  background: rgba(0,0,0,0.95); backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255,255,255,0.1); padding: 20px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: "Oswald", sans-serif; text-transform: uppercase;
  letter-spacing: 0.1em; font-size: 18px; padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06); color: rgba(255,255,255,0.8);
}
.mobile-menu .btn { margin-top: 16px; justify-content: center; }

/* ===== Hero ===== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, #0a0a0a 0%, rgba(10,10,10,0.3) 45%, rgba(0,0,0,0.6) 100%);
}
.hero-content { position: relative; z-index: 10; width: 100%; padding: 128px 0 80px; }
.hero-tagline { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.hero-tagline .line { width: 40px; height: 1px; background: var(--brand); }
.hero-tagline span {
  font-family: "Oswald", sans-serif; text-transform: uppercase;
  letter-spacing: 0.3em; font-size: 12px; color: var(--muted);
}
.hero h1 {
  font-family: "Oswald", sans-serif; font-weight: 700; text-transform: uppercase;
  line-height: 0.9; letter-spacing: -0.03em; color: #fff;
  font-size: 13vw;
}
@media (min-width: 640px) { .hero h1 { font-size: 10vw; } }
@media (min-width: 1024px) { .hero h1 { font-size: 8.5vw; } }
.hero-bottom { margin-top: 32px; display: flex; flex-direction: column; gap: 32px; }
@media (min-width: 640px) { .hero-bottom { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.hero-bottom p { max-width: 460px; color: var(--muted); font-size: 18px; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* ===== Reveal animations ===== */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1); }
.reveal.in { opacity: 1; transform: translateY(0); }
.mask { display: block; overflow: hidden; }
.mask > span { display: block; transform: translateY(110%); opacity: 0; animation: rise 0.9s cubic-bezier(0.22,1,0.36,1) forwards; }
.mask:nth-child(2) > span { animation-delay: 0.12s; }
@keyframes rise { to { transform: translateY(0); opacity: 1; } }

/* ===== Marquee ===== */
.marquee { position: relative; z-index: 10; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--brand); padding: 18px 0; overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: scroll 28s linear infinite; }
.marquee-track span {
  font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: 0.25em;
  color: #000; font-size: 20px; font-weight: 600; padding: 0 32px; display: flex; align-items: center;
}
.marquee-track .dot { color: rgba(0,0,0,0.5); }
@media (min-width: 640px) { .marquee-track span { font-size: 24px; } }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===== Stats ===== */
.stats { border-bottom: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
@media (min-width: 1024px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 32px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
@media (min-width: 1024px) { .stat { padding: 48px; border-bottom: none; } }
.stat .num { font-family: "Oswald", sans-serif; font-weight: 700; font-size: 40px; letter-spacing: -0.02em; }
@media (min-width: 1024px) { .stat .num { font-size: 60px; } }
.stat .lbl { margin-top: 8px; font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: 0.2em; font-size: 12px; color: var(--muted-2); }

/* ===== Section headings ===== */
.sec-head { display: flex; flex-direction: column; gap: 24px; margin-bottom: 56px; }
@media (min-width: 768px) { .sec-head { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.sec-head h2 {
  margin-top: 16px; font-family: "Oswald", sans-serif; font-weight: 700; text-transform: uppercase;
  font-size: clamp(36px, 6vw, 64px); letter-spacing: -0.03em; line-height: 0.95;
}
.sec-link { display: inline-flex; align-items: center; gap: 8px; font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: 0.14em; font-size: 14px; color: var(--muted); transition: color 0.2s; }
.sec-link:hover { color: #fff; }
.sec-link svg { width: 18px; height: 18px; transition: transform 0.2s; }
.sec-link:hover svg { transform: translateX(4px); }

/* ===== Category / bento grid ===== */
.bento { display: grid; grid-template-columns: 1fr; gap: 16px; grid-auto-rows: 240px; }
@media (min-width: 768px) { .bento { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 260px; } }
.card { position: relative; overflow: hidden; border: 1px solid var(--border); border-radius: 4px; }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.5; transition: opacity 0.5s, transform 0.5s; }
.card:hover img { opacity: 0.72; transform: scale(1.06); }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, #000 0%, rgba(0,0,0,0.4) 55%, transparent 100%); }
.card .outline { position: absolute; inset: 0; border: 1px solid transparent; border-radius: 4px; transition: border-color 0.3s; z-index: 2; pointer-events: none; }
.card:hover .outline { border-color: var(--brand); }
.card-body { position: relative; z-index: 3; height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: 28px; }
.card-num { font-family: "Oswald", sans-serif; color: var(--muted-2); letter-spacing: 0.2em; font-size: 14px; }
.card h3 { font-family: "Oswald", sans-serif; font-weight: 600; text-transform: uppercase; font-size: 26px; letter-spacing: -0.01em; }
.card p { margin-top: 8px; color: var(--muted); font-size: 14px; max-width: 340px; }
.card .enquire { margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: 0.12em; font-size: 12px; color: #4d8cff; transition: color 0.2s; }
.card .enquire:hover { color: #fff; }
.card .enquire svg { width: 14px; height: 14px; }
.span-2 { grid-column: span 1; }
@media (min-width: 768px) { .col-2 { grid-column: span 2; } .row-2 { grid-row: span 2; } }

/* ===== Chapters ===== */
.chapters { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.chapters-grid { display: grid; gap: 64px; }
@media (min-width: 1024px) { .chapters-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.chapters .sticky { position: relative; }
@media (min-width: 1024px) { .chapters .sticky { position: sticky; top: 112px; } }
.chapters .sticky h2 { font-family: "Oswald", sans-serif; font-weight: 700; text-transform: uppercase; font-size: clamp(36px,6vw,64px); letter-spacing: -0.03em; line-height: 0.95; margin-top: 16px; }
.chapter-img { margin-top: 32px; border: 1px solid var(--border); border-radius: 4px; overflow: hidden; aspect-ratio: 4/3; }
.chapter-img img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.chapter { border-top: 1px solid var(--border); padding: 32px 0; transition: border-color 0.3s; }
.chapter:hover { border-top-color: var(--brand); }
.chapter-row { display: flex; gap: 24px; align-items: baseline; }
.chapter-no { font-family: "Oswald", sans-serif; color: var(--brand); font-size: 24px; font-weight: 600; }
.chapter h3 { font-family: "Oswald", sans-serif; font-weight: 600; text-transform: uppercase; font-size: clamp(24px,4vw,32px); letter-spacing: -0.01em; }
.chapter p { margin-top: 12px; color: var(--muted); max-width: 480px; }

/* ===== CTA block ===== */
.cta-block { position: relative; overflow: hidden; border: 1px solid var(--border); border-radius: 6px; background: var(--brand); padding: 64px 32px; }
@media (min-width: 1024px) { .cta-block { padding: 80px; } }
.cta-block h2 { position: relative; z-index: 2; font-family: "Oswald", sans-serif; font-weight: 700; text-transform: uppercase; font-size: clamp(36px,6vw,64px); letter-spacing: -0.03em; line-height: 0.95; max-width: 640px; }
.cta-block p { position: relative; z-index: 2; margin-top: 20px; color: rgba(255,255,255,0.85); font-size: 18px; max-width: 520px; }
.cta-actions { position: relative; z-index: 2; margin-top: 32px; display: flex; flex-wrap: wrap; gap: 16px; }
.cta-block .cta-actions .btn-outline-dark { border-color: rgba(0,0,0,0.4); color: #000; }
.cta-block .cta-actions .btn-outline-dark:hover { background: #000; color: #fff; }
.cta-ghost-text { position: absolute; right: -40px; bottom: -64px; font-family: "Oswald", sans-serif; font-weight: 700; color: rgba(0,0,0,0.1); font-size: 16rem; line-height: 1; user-select: none; z-index: 1; display: none; }
@media (min-width: 1024px) { .cta-ghost-text { display: block; } }

/* ===== Page hero (inner pages) ===== */
.page-hero { padding: 160px 0 64px; border-bottom: 1px solid var(--border); }
.page-hero h1 { margin-top: 20px; font-family: "Oswald", sans-serif; font-weight: 700; text-transform: uppercase; font-size: clamp(48px, 13vw, 128px); letter-spacing: -0.03em; line-height: 0.9; }
.page-hero p { margin-top: 24px; max-width: 560px; color: var(--muted); font-size: 18px; }

/* ===== About ===== */
.split { display: grid; gap: 56px; align-items: center; }
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1fr; } }
.split .media { border: 1px solid var(--border); border-radius: 4px; overflow: hidden; aspect-ratio: 4/3; }
.split .media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.split h2 { font-family: "Oswald", sans-serif; font-weight: 700; text-transform: uppercase; font-size: clamp(30px,5vw,52px); letter-spacing: -0.03em; line-height: 0.95; }
.split p { margin-top: 20px; color: var(--muted); font-size: 18px; line-height: 1.7; }
.values { display: grid; grid-template-columns: 1fr; border: 1px solid var(--border); }
@media (min-width: 768px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .values { grid-template-columns: repeat(4, 1fr); } }
.value { padding: 40px; border-bottom: 1px solid var(--border); }
@media (min-width: 1024px) { .value { border-bottom: none; border-right: 1px solid var(--border); } .value:last-child { border-right: none; } }
.value svg { width: 30px; height: 30px; color: var(--brand); }
.value h3 { margin-top: 24px; font-family: "Oswald", sans-serif; font-weight: 600; text-transform: uppercase; font-size: 20px; }
.value p { margin-top: 12px; color: var(--muted); font-size: 14px; }

/* ===== Contact ===== */
.contact-grid { display: grid; gap: 48px; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 80px; } }
.contact-lead { color: var(--muted); font-size: 18px; line-height: 1.7; max-width: 440px; }
.info-item { display: flex; gap: 16px; border-top: 1px solid var(--border); padding-top: 24px; margin-top: 24px; }
.info-item svg { width: 22px; height: 22px; color: var(--brand); flex-shrink: 0; margin-top: 4px; }
.info-item .k { font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: 0.15em; font-size: 12px; color: var(--muted-2); }
.info-item .v { font-size: 18px; }
.info-item a.v:hover { color: #4d8cff; }
.map { margin-top: 32px; border: 1px solid var(--border); border-radius: 4px; overflow: hidden; aspect-ratio: 16/9; }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.25); opacity: 0.8; }

.form { background: var(--surface); border: 1px solid var(--border); border-radius: 4px; padding: 24px; }
@media (min-width: 640px) { .form { padding: 40px; } }
.form-row { display: grid; gap: 20px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { margin-top: 20px; }
.field:first-child { margin-top: 0; }
.field label { display: block; font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: 0.15em; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--border); color: #fff;
  padding: 14px 16px; border-radius: 3px; font-family: "Manrope", sans-serif; font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,0.3); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0,85,255,0.3); }
.field textarea { resize: none; }
.form .btn { margin-top: 28px; width: 100%; justify-content: center; }
.form-note { margin-top: 16px; text-align: center; color: rgba(255,255,255,0.35); font-size: 12px; }
.form-alert { margin-top: 20px; padding: 14px 16px; border-radius: 3px; font-size: 14px; display: none; }
.form-alert.ok { display: block; background: rgba(37,211,102,0.12); border: 1px solid rgba(37,211,102,0.4); color: #4ade80; }
.form-alert.err { display: block; background: rgba(255,60,60,0.12); border: 1px solid rgba(255,60,60,0.4); color: #ff8080; }

/* ===== Footer ===== */
.footer { position: relative; z-index: 10; background: var(--bg); border-top: 1px solid var(--border); padding: 80px 0 32px; }
.footer-grid { display: grid; gap: 48px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer .badge { background: #fff; border-radius: 3px; padding: 8px 12px; display: inline-flex; }
.footer .badge img { height: 48px; width: auto; }
.footer .about { margin-top: 20px; color: var(--muted-2); font-size: 14px; line-height: 1.6; max-width: 280px; }
.footer h4 { font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: 0.2em; font-size: 12px; color: var(--brand); margin-bottom: 20px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer ul a, .footer ul li { color: var(--muted); font-size: 14px; transition: color 0.2s; }
.footer ul a:hover { color: #fff; }
.footer .ico-row { display: flex; gap: 12px; font-size: 14px; color: var(--muted); }
.footer .ico-row svg { width: 18px; height: 18px; color: var(--brand); flex-shrink: 0; margin-top: 2px; }
.footer .ico-row .hl { color: #fff; }
.footer-bottom { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 12px; align-items: center; justify-content: space-between; }
@media (min-width: 640px) { .footer-bottom { flex-direction: row; } }
.footer-bottom p { color: var(--muted-2); font-size: 12px; }
.footer-bottom .dom { font-family: "Oswald", sans-serif; text-transform: uppercase; }

/* ===== WhatsApp float ===== */
.wa { position: fixed; bottom: 24px; right: 24px; z-index: 50; width: 56px; height: 56px; }
.wa .ring { position: absolute; inset: 0; border-radius: 50%; background: #25d366; opacity: 0.4; animation: ping 1.6s cubic-bezier(0,0,0.2,1) infinite; }
.wa .core { position: relative; width: 56px; height: 56px; border-radius: 50%; background: #25d366; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 30px rgba(37,211,102,0.45); transition: transform 0.2s; }
.wa:hover .core { transform: scale(1.1); }
.wa svg { width: 28px; height: 28px; fill: #fff; }
@keyframes ping { 75%, 100% { transform: scale(1.8); opacity: 0; } }

/* grain */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, .header, .footer, .marquee { position: relative; z-index: 2; }
