/* Maulvi Auto Parts — Mobile-first responsive stylesheet.
   Halaman tetap utuh dan berfungsi tanpa JavaScript (Fail-Open). */
:root {
  --navy: #09131f;
  --navy-dark: #060d16;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --orange: #ea580c;
  --orange-light: #fb923c;
  --teal: #0d9488;
  --sand: #f1f5f9;
  --ink: #0f172a;
  --muted: #64748b;
  --white: #ffffff;
  --wa: #1a8f4d;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(9, 19, 31, .12);
  --card-bg: #ffffff;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html, .slides { scroll-behavior: auto !important; } }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:focus-visible, summary:focus-visible, button:focus-visible, .btn:focus-visible, .slides:focus-visible { outline: 3px solid var(--orange-light); outline-offset: 3px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(1.7rem, 6vw, 2.8rem); color: var(--navy); }
h2 { font-size: clamp(1.35rem, 4.5vw, 2rem); color: var(--navy); }
h3 { font-size: 1.15rem; }
p, ul, ol, dl { margin: 0 0 1em; }

.container { width: min(100% - 2rem, 1140px); margin-inline: auto; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.note { color: var(--muted); font-size: .92rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--blue); color: var(--white); padding: .6rem 1rem; z-index: 100; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }

/* ===== Header ===== */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid #e2e8f0; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem 1rem; padding: .65rem 0; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.brand span { display: flex; flex-direction: column; line-height: 1.15; }
.brand small { color: var(--orange); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.nav-list { display: flex; flex-wrap: wrap; gap: .15rem 1rem; list-style: none; margin: 0; padding: 0; font-size: .92rem; }
.nav-list a { text-decoration: none; font-weight: 600; padding: .35rem 0; display: inline-block; color: var(--ink); transition: color .15s; }
.nav-list a:hover { color: var(--blue); }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: .75rem 1.5rem; border-radius: 999px; font-weight: 700; text-decoration: none; text-align: center; border: 2px solid transparent; transition: transform .15s ease, background .15s ease; margin: .25rem .25rem .25rem 0; line-height: 1.3; font-size: .95rem; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--wa); color: var(--white); }
.btn-primary:hover { background: #157a41; }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-dark); }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: #f1f5f9; }
.btn-light { background: var(--white); color: var(--navy-dark); }
.btn-outline-light { border-color: var(--white); color: var(--white); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); }

/* ===== Hero Slider (CSS scroll-snap; tetap berfungsi manual tanpa JS) ===== */
.slider { position: relative; background: var(--navy-dark); color: var(--white); }
.slides {
  display: flex; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; position: relative; overflow: hidden; }
.slide-inner { width: min(100% - 2rem, 1120px); margin-inline: auto; min-height: 360px; padding: 2rem 0 3.6rem; display: grid; gap: 1.2rem; align-items: center; }
.slide-kicker { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #fbbf24; margin-bottom: .5rem; }
.slide-title { font-size: clamp(1.45rem, 5.6vw, 2.5rem); font-weight: 800; line-height: 1.2; margin: 0 0 .55rem; color: var(--white); }
.slide-text { color: #cbd5e1; margin: 0 0 1rem; max-width: 560px; font-size: 1rem; }
.slide .btn { margin-top: 0; }
.slide-art { display: none; }
.slide-art svg { width: 100%; max-width: 340px; margin-inline: auto; }
.slide::before { content: ""; position: absolute; width: 320px; height: 320px; right: -100px; top: -120px; border-radius: 50%; background: rgba(255,255,255,.04); }
.slide::after { content: ""; position: absolute; width: 220px; height: 220px; left: -90px; bottom: -130px; border-radius: 50%; background: rgba(255,255,255,.035); }
.slide-1 { background: linear-gradient(135deg, #09131f 0%, #1e3a5f 100%); }
.slide-2 { background: linear-gradient(135deg, #7c2d12 0%, #ea580c 100%); }
.slide-3 { background: linear-gradient(135deg, #0b3b3c 0%, #0d9488 100%); }
.slide-4 { background: linear-gradient(135deg, #1e293b 0%, #475569 100%); }
.slide-5 { background: linear-gradient(135deg, #14532d 0%, #1a8f4d 100%); }
.slide-tags { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0 0 1rem; }
.slide-tags li { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); padding: .2rem .75rem; border-radius: 999px; font-size: .85rem; font-weight: 600; }

.slider-nav { position: absolute; left: 0; right: 0; bottom: .8rem; display: flex; justify-content: center; align-items: center; gap: .5rem; pointer-events: none; }
.slider-dots { display: flex; gap: .45rem; list-style: none; margin: 0; padding: .35rem .6rem; border-radius: 999px; background: rgba(0,0,0,.3); pointer-events: auto; }
.slider-dots a { display: block; width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.45); text-indent: -999px; overflow: hidden; }
.slider-dots a[aria-current="true"] { background: var(--white); width: 26px; border-radius: 999px; }
.slider-arrow { display: none; pointer-events: auto; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: var(--navy-dark); font-size: 1.3rem; font-weight: 800; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.js .slider-arrow { display: inline-grid; place-items: center; }

@media (min-width: 760px) {
  .slide-inner { grid-template-columns: 1fr 1fr; min-height: 400px; }
  .slide-art { display: block; }
}

/* ===== Sections ===== */
.section { padding: 3rem 0; }
.section-alt { background: var(--sand); }
.section-dark { background: var(--navy); color: var(--white); }
.section-label { font-size: .82rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin-bottom: .35rem; }
.section-desc { color: var(--muted); max-width: 640px; margin: 0 auto 2rem; font-size: 1.04rem; }

/* ===== Service Features Grid ===== */
.features-grid { display: grid; gap: 2rem 1.5rem; margin-top: 1.5rem; }
@media (min-width: 640px) { .features-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }

.feature-card {
  background: var(--card-bg); border: 1px solid #e2e8f0; border-radius: var(--radius); padding: 1.8rem 1.4rem 1.5rem;
  box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: 0 12px 36px rgba(9,19,31,.14); }
.feature-icon { width: 52px; height: 52px; border-radius: 12px; background: #eff6ff; display: grid; place-items: center; margin-bottom: 1rem; }
.feature-icon svg { width: 28px; height: 28px; color: var(--blue); }
.feature-card h3 { margin-bottom: .35rem; }
.feature-card p { color: var(--muted); line-height: 1.6; }

/* ===== Product Catalog Grid ===== */
.catalog-grid { display: grid; gap: 1.5rem; margin-top: 1.5rem; }
@media (min-width: 480px) { .catalog-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 768px) { .catalog-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .catalog-grid { grid-template-columns: repeat(3, 1fr); } }

.catalog-card {
  background: var(--card-bg); border-radius: var(--radius); overflow: hidden;
  border: 1px solid #e2e8f0; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.catalog-card:hover { transform: translateY(-4px); box-shadow: 0 14px 38px rgba(9,19,31,.15); }
.catalog-card img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; object-position: center;
  background: #e2e8f0;
}
.catalog-card-body { padding: 1.1rem 1.2rem 1.3rem; flex: 1; display: flex; flex-direction: column; }
.catalog-card h3 { font-size: 1.06rem; margin-bottom: .3rem; color: var(--navy); }
.catalog-card .catalog-desc { color: var(--muted); font-size: .88rem; line-height: 1.55; flex: 1; }
.catalog-card .catalog-cta { margin-top: .7rem; font-weight: 700; font-size: .88rem; color: var(--blue); text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
.catalog-card .catalog-cta:hover { text-decoration: underline; }
.catalog-card .catalog-cta svg { width: 16px; height: 16px; transition: transform .15s; }
.catalog-card .catalog-cta:hover svg { transform: translateX(3px); }

/* ===== Process Steps ===== */
.steps { display: grid; gap: 2rem; margin-top: 1.5rem; counter-reset: step; }
@media (min-width: 640px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.step-item { position: relative; padding-left: 3.5rem; }
.step-item::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%;
  background: var(--blue); color: var(--white); font-weight: 800; font-size: 1.1rem;
  display: grid; place-items: center;
}
.step-item h3 { margin-bottom: .25rem; }
.step-item p { color: var(--muted); font-size: .92rem; }

/* ===== About Identity ===== */
.about-block { display: grid; gap: 2rem; margin-top: 1.5rem; align-items: start; }
@media (min-width: 640px) { .about-block { grid-template-columns: 1fr 1fr; } }
.about-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about-photo img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.about-text { font-size: .96rem; }
.about-text h3 { font-size: 1.1rem; margin-bottom: .5rem; color: var(--blue); }
.about-text p { margin-bottom: .8rem; color: var(--muted); }
.about-text .identity-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.about-text .identity-list li { padding: .3rem 0; border-bottom: 1px solid #e2e8f0; display: flex; gap: .5rem; }
.about-text .identity-list strong { color: var(--ink); }

/* ===== FAQ ===== */
details { border: 1px solid #e2e8f0; border-radius: 12px; padding: .1rem; margin-bottom: .8rem; background: var(--card-bg); transition: box-shadow .15s; }
details[open] { box-shadow: 0 4px 12px rgba(9,19,31,.08); }
summary { padding: .85rem 1.1rem; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-weight: 800; font-size: 1.2rem; color: var(--blue); transition: transform .2s; flex-shrink: 0; }
details[open] summary::after { content: "−"; }
details > div { padding: .2rem 1.1rem 1.1rem; color: var(--muted); line-height: 1.65; }

/* ===== Contact & Map ===== */
.contact-grid { display: grid; gap: 2rem; margin-top: 1.5rem; }
@media (min-width: 640px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-card {
  background: var(--card-bg); border: 1px solid #e2e8f0; border-radius: var(--radius);
  padding: 1.8rem 1.5rem; box-shadow: var(--shadow);
}
.contact-card h3 { margin-bottom: .5rem; }
.contact-card p { color: var(--muted); margin-bottom: .8rem; }
.map-frame { width: 100%; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: #e2e8f0; border: 1px solid #e2e8f0; }
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* ===== Footer ===== */
.site-footer { background: var(--navy); color: #cbd5e1; padding: 3rem 0 1rem; }
.footer-inner { display: grid; gap: 2rem; }
@media (min-width: 640px) { .footer-inner { grid-template-columns: 2fr 1fr; } }
.footer-brand { font-weight: 800; font-size: 1.15rem; color: var(--white); margin-bottom: .5rem; }
.footer-meta { font-size: .88rem; line-height: 1.65; margin-bottom: .5rem; }
.footer-heading { font-weight: 700; color: var(--white); margin-bottom: .5rem; font-size: .95rem; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: .3rem; }
.footer-links a { color: #94a3b8; text-decoration: none; font-size: .9rem; transition: color .15s; }
.footer-links a:hover { color: var(--white); }
.copyright-bar { border-top: 1px solid #1e293b; margin-top: 1.5rem; padding-top: 1rem; text-align: center; font-size: .82rem; color: #64748b; }

/* ===== Legal / Privacy Page ===== */
.legal h1 { margin-bottom: .4rem; }
.legal h2 { font-size: 1.2rem; margin-top: 1.8rem; }
.legal ul { padding-left: 1.3rem; }
.legal li { margin-bottom: .4rem; color: var(--muted); }
.legal strong { color: var(--ink); }
.legal code { background: #f1f5f9; padding: .1rem .35rem; border-radius: 4px; font-size: .88rem; }
