:root{
  --bg: hsl(210 20% 98%);
  --surface: hsl(0 0% 100%);
  --tint: hsl(210 22% 95%);
  --text: hsl(215 18% 14%);
  --muted: hsl(215 12% 42%);
  --border: hsl(215 18% 88%);

  --brand-900: hsl(215 22% 16%);
  --brand-700: hsl(214 18% 24%);
  --accent-600: hsl(35 92% 52%);
  --accent-700: hsl(28 86% 48%);
  --wa-600: hsl(145 62% 42%);
  --wa-700: hsl(145 70% 36%);

  --shadow: 0 18px 45px hsl(215 40% 12% / .12);
  --shadow-soft: 0 10px 26px hsl(215 40% 12% / .10);

  --radius: 18px;
  --radius-sm: 12px;

  --container: 1120px;

  --s1: 0.25rem;
  --s2: 0.5rem;
  --s3: 0.75rem;
  --s4: 1rem;
  --s5: 1.25rem;
  --s6: 1.5rem;
  --s7: 2rem;
  --s8: 2.75rem;
  --s9: 3.5rem;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }

body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 600px at 10% -10%, hsl(35 92% 52% / .10), transparent 55%),
              radial-gradient(900px 500px at 90% 10%, hsl(145 62% 42% / .10), transparent 60%),
              var(--bg);
  line-height: 1.55;
}

a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; text-underline-offset: 0.2em; }

.no-scrollbar{ -ms-overflow-style: none; scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar{ display: none; }

.container{
  width: min(var(--container), calc(100% - 2rem));
  margin-inline: auto;
}

/* Accessibility */
.skip-link{
  position: absolute;
  left: -999px;
  top: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  z-index: 9999;
}
.skip-link:focus{ left: 1rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Announcement bar */
.announcement{
  background: #000;
  color: hsl(0 0% 98%);
}
.announcement__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s6);
  padding: var(--s3) 0;
  flex-wrap: wrap;
}
.announcement__left, .announcement__right{ margin: 0; font-size: 0.95rem; white-space: nowrap; }
.dot{
  display: inline-block;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
  margin-right: 0.55rem;
  vertical-align: middle;
}
.dot--accent{ background: var(--accent-600); box-shadow: 0 0 0 3px hsl(35 92% 52% / .18); }
.link-strong{ font-weight: 650; letter-spacing: 0.2px; }

/* Header */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: hsl(0 0% 100% / .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-panel{
  background: #000;
}
.header__inner{
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: var(--s6);
  padding: var(--s5) 0;
}

.brand{ display: flex; align-items: center; gap: var(--s4); min-width: 230px; }
.brand__mark{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--brand-900);
  background: linear-gradient(135deg, hsl(35 92% 52% / .24), hsl(145 62% 42% / .18));
  border: 1px solid var(--border);
}
.brand__title{ margin: 0; font-weight: 800; line-height: 1.1; }
.brand__subtitle{ margin: 0.1rem 0 0; color: var(--muted); font-size: 0.92rem; }

.nav{
  display: flex;
  gap: var(--s4);
  align-items: center;
  justify-content: center;
}
.nav__link{
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  color: var(--brand-700);
  font-weight: 650;
  font-size: 0.95rem;
}
.nav__link:hover{ background: hsl(215 18% 96%); text-decoration: none; }
.nav__link.is-active{ background: hsl(35 92% 52% / .16); color: var(--brand-900); }

/* Dropdown (Produk + children) */
.nav__dropdown{
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
/* Hover bridge so the submenu doesn't disappear while moving cursor */
.nav__dropdown::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 14px;
}
.nav__toggle{
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--brand-900);
  border-radius: 999px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  user-select: none;
}
.nav__toggle:hover{ background: hsl(215 18% 96%); }
.nav__submenu{
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  min-width: 240px;
  padding: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 0s linear 160ms;
}
.nav__dropdown:hover .nav__submenu,
.nav__dropdown.is-open .nav__submenu{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity 160ms ease, transform 160ms ease, visibility 0s;
}
.nav__link--sub{
  width: 100%;
  border-radius: 12px;
  padding: 0.55rem 0.75rem;
}
.nav__link--sub:hover{ background: hsl(215 18% 96%); text-decoration: none; }

.header__actions{ display: flex; gap: var(--s3); }

/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.05rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 750;
  letter-spacing: 0.2px;
  box-shadow: none;
  cursor: pointer;
  user-select: none;
}
.btn:hover{ text-decoration: none; transform: translateY(-1px); transition: transform 150ms ease; }
.btn:active{ transform: translateY(0); }

.btn--primary{
  background: linear-gradient(135deg, var(--wa-600), var(--wa-700));
  color: white;
  border-color: hsl(145 70% 26% / .25);
  box-shadow: 0 14px 30px hsl(145 70% 26% / .20);
}
.btn--ghost{ background: transparent; border-color: var(--border); color: var(--brand-900); }
.btn--soft{ background: hsl(35 92% 52% / .14); border-color: hsl(35 92% 52% / .30); color: var(--brand-900); }
.btn--sm{ padding: 0.6rem 0.8rem; font-size: 0.92rem; }
.btn--full{ width: 100%; }

/* Hero */
.hero{ padding: var(--s9) 0 var(--s8); }
.hero__grid{ display: grid; grid-template-columns: 1.2fr 0.8fr; gap: var(--s8); align-items: start; }

.chip{
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  color: var(--brand-700);
  font-weight: 650;
  width: fit-content;
  margin: 0 0 var(--s5);
}
.chip__icon{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent-600), var(--accent-700));
  box-shadow: 0 0 0 4px hsl(35 92% 52% / .16);
}

.hero__title{
  margin: 0 0 var(--s5);
  font-size: clamp(2.05rem, 3.4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.hero__lead{ margin: 0 0 var(--s6); color: var(--muted); font-size: 1.05rem; max-width: 58ch; }
.hero__cta{ display: flex; flex-wrap: wrap; gap: var(--s3); margin-bottom: var(--s7); }

.hero__stats{ margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); }
.stat{ padding: var(--s4); border: 1px solid var(--border); border-radius: var(--radius-sm); background: hsl(0 0% 100% / .72); box-shadow: 0 10px 22px hsl(215 40% 12% / .06); }
.stat__k{ margin: 0; color: var(--muted); font-size: 0.9rem; }
.stat__v{ margin: 0.1rem 0 0; font-weight: 800; color: var(--brand-900); }

.hero__visual{ position: relative; }
.feature-card{ background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.feature-card__top{ padding: var(--s7); background: linear-gradient(135deg, hsl(215 22% 16%), hsl(214 20% 22%)); color: hsl(0 0% 98%); }
.feature-card__eyebrow{ margin: 0 0 var(--s3); opacity: 0.92; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.78rem; }
.feature-card__title{ margin: 0 0 var(--s3); font-size: 1.6rem; }
.feature-card__desc{ margin: 0; color: hsl(0 0% 92% / .95); }
.feature-card__list{ padding: var(--s6); display: grid; gap: var(--s3); }
.pill{ display: flex; justify-content: space-between; gap: var(--s4); padding: var(--s4); background: linear-gradient(180deg, hsl(0 0% 100%), hsl(210 22% 96%)); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.pill__label{ font-weight: 800; color: var(--brand-900); }
.pill__value{ color: var(--muted); font-weight: 650; }
.feature-card__actions{ padding: 0 var(--s6) var(--s6); }

/* Sections */
.section{ padding: var(--s8) 0; }
.section--tint{ background: linear-gradient(180deg, transparent, hsl(210 22% 95% / .85), transparent); }
.section__head{ display: flex; justify-content: space-between; align-items: end; gap: var(--s6); margin-bottom: var(--s6); }
.section__title{ margin: 0; font-size: clamp(1.55rem, 2.1vw, 2.1rem); letter-spacing: -0.015em; }
.section__sub{ margin: var(--s2) 0 0; color: var(--muted); max-width: 70ch; }
.section__foot{ margin-top: var(--s6); }

/* Cards grid */
.grid-cards{ display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--s5); }
.car-card{ grid-column: span 4; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: 0 12px 26px hsl(215 40% 12% / .08); transition: transform 160ms ease, box-shadow 160ms ease; }
.car-card:hover{ transform: translateY(-3px); box-shadow: 0 18px 36px hsl(215 40% 12% / .12); }
.car-card__media{ height: 240px; background: radial-gradient(180px 80px at 30% 40%, hsl(35 92% 52% / .34), transparent 70%), radial-gradient(180px 100px at 80% 30%, hsl(145 62% 42% / .26), transparent 75%), linear-gradient(135deg, hsl(215 22% 16%), hsl(214 16% 26%)); }
@supports (aspect-ratio: 3 / 2){
  .car-card__media{ height: auto; aspect-ratio: 3 / 2; }
}
.car-card__media--alt{ background: radial-gradient(220px 90px at 25% 35%, hsl(28 86% 48% / .32), transparent 68%), radial-gradient(200px 120px at 85% 35%, hsl(145 62% 42% / .22), transparent 72%), linear-gradient(135deg, hsl(214 18% 22%), hsl(215 22% 16%)); }
.car-card__body{ padding: var(--s6); }
.car-card__top{ display: flex; justify-content: space-between; align-items: baseline; gap: var(--s4); }
.car-card__name{ margin: 0; font-size: 1.1rem; font-weight: 850; }
.car-card__price{ margin: 0; font-weight: 850; color: var(--accent-700); }
.car-card__meta{ margin: var(--s3) 0 var(--s5); color: var(--muted); }
.car-card__actions{ display: flex; gap: var(--s3); flex-wrap: wrap; }

/* Features */
.features{ display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--s5); }
.feature{ grid-column: span 3; padding: var(--s6); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: 0 10px 24px hsl(215 40% 12% / .06); position: relative; overflow: hidden; }
.feature::before{ content: ""; position: absolute; inset: -40% -40% auto auto; width: 220px; height: 220px; background: radial-gradient(circle at 30% 30%, hsl(35 92% 52% / .22), transparent 65%), radial-gradient(circle at 70% 70%, hsl(145 62% 42% / .18), transparent 62%); transform: rotate(12deg); }
.feature__title{ margin: 0 0 var(--s3); font-weight: 900; position: relative; }
.feature__text{ margin: 0; color: var(--muted); position: relative; }

/* Promo */
.promo{ padding: var(--s8) 0; }
.promo__inner{ display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--s6); align-items: stretch; }
.promo__copy{ border-radius: var(--radius); padding: var(--s7); background: linear-gradient(135deg, hsl(215 22% 16%), hsl(214 18% 24%)); color: hsl(0 0% 98%); box-shadow: var(--shadow); border: 1px solid hsl(215 18% 28% / .45); }
.promo__title{ margin: 0 0 var(--s3); font-size: 1.8rem; }
.promo__text{ margin: 0 0 var(--s6); color: hsl(0 0% 92% / .95); }
.promo__actions{ display: flex; gap: var(--s3); flex-wrap: wrap; }
.promo__panel{ border-radius: var(--radius); padding: var(--s7); background: linear-gradient(180deg, var(--surface), hsl(210 22% 96%)); border: 1px solid var(--border); box-shadow: var(--shadow-soft); }
.promo__badge{ display: inline-block; padding: 0.35rem 0.6rem; border-radius: 999px; background: hsl(35 92% 52% / .18); border: 1px solid hsl(35 92% 52% / .28); font-weight: 850; color: var(--brand-900); }
.promo__list{ margin: var(--s5) 0 0; padding-left: 1.2rem; color: var(--brand-700); }
.promo__list li{ margin: 0.45rem 0; }

/* Contact */
.contact-grid{ display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--s5); }
.contact-card{ grid-column: span 4; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--s7); box-shadow: 0 12px 26px hsl(215 40% 12% / .07); }
.contact-card__title{ margin: 0 0 var(--s3); font-weight: 900; }
.contact-card__text{ margin: 0 0 var(--s5); color: var(--muted); }
.contact-card__actions{ display: flex; gap: var(--s3); flex-wrap: wrap; }

/* Footer */
.site-footer{ margin-top: var(--s8); background: linear-gradient(180deg, hsl(215 22% 16%), hsl(215 24% 12%)); color: hsl(0 0% 96%); }
.footer__grid{ padding: var(--s8) 0; display: grid; grid-template-columns: 1.4fr 0.8fr 0.8fr; gap: var(--s7); }
.footer__title{ margin: 0 0 var(--s3); font-weight: 950; letter-spacing: -0.01em; }
.footer__heading{ margin: 0 0 var(--s3); font-weight: 850; }
.footer__text{ margin: 0; max-width: 56ch; }
.footer__links{ display: grid; gap: var(--s2); align-content: start; }
.footer__link{ color: hsl(0 0% 92% / .95); width: fit-content; }
.footer__link:hover{ color: white; }
.footer__bottom{ border-top: 1px solid hsl(0 0% 100% / .10); }
.footer__bottom-inner{ display: flex; justify-content: space-between; gap: var(--s6); padding: var(--s5) 0; }

.small{ font-size: 0.92rem; }
.muted{ color: var(--muted); }

@media (max-width: 980px){
  .header__inner{ grid-template-columns: 1fr; align-items: start; }
  .nav{ flex-wrap: wrap; justify-content: flex-start; }
  .header__actions{ justify-content: flex-start; flex-wrap: wrap; }

  .hero__grid{ grid-template-columns: 1fr; }
  .hero__stats{ grid-template-columns: 1fr; }

  .promo__inner{ grid-template-columns: 1fr; }

  .car-card{ grid-column: span 6; }
  .feature{ grid-column: span 6; }
  .contact-card{ grid-column: span 6; }

  .footer__grid{ grid-template-columns: 1fr; }
}

@media (max-width: 560px){
  .announcement__inner{ gap: var(--s4); padding: var(--s2) 0; }
  .announcement__left, .announcement__right{ font-size: 0.9rem; }

  .car-card{ grid-column: span 12; }
  .feature{ grid-column: span 12; }
  .contact-card{ grid-column: span 12; }
}

/* =========================================================
   Responsive hardening overrides (mobile-first additions)
   Goal: no horizontal scroll, touch-friendly layout, desktop unchanged.
   ========================================================= */

/* Prevent rare layout overflow from long content/inline blocks.
   Use `clip` when supported; fallback to `hidden`. */
html, body{ overflow-x: clip; }
@supports not (overflow-x: clip){
  html, body{ overflow-x: hidden; }
}

/* Media elements should never exceed their containers. */
img, svg, video, canvas{ max-width: 100%; height: auto; }

/* --- Tablet and below (<= 1024px): tighten some flexible containers --- */
@media (max-width: 1024px){
  /* Headings/section headers can overflow on narrow widths; allow wrap. */
  .section__head{ flex-wrap: wrap; align-items: flex-start; }
  .footer__bottom-inner{ flex-wrap: wrap; }
}

/* --- Mobile and below (<= 768px): primary usability fixes --- */
@media (max-width: 768px){
  /* Reduce top-level paddings to avoid content squeezing. */
  .hero{ padding: var(--s8) 0 var(--s7); }
  .section{ padding: var(--s7) 0; }

  /* Make tap targets comfortable without impacting desktop sizing. */
  .btn{ min-height: 44px; }
  .nav__link{ padding: 0.7rem 0.95rem; }

  /* Some header elements can enforce minimum widths; release them on phones. */
  .brand{ min-width: 0; }

  /* The custom header panel uses inline styles (padding 20px 40px) which can
     cause wrapping/overflow on mobile; override safely at container level. */
  .header-panel > div{
    padding: 14px 16px !important; /* mobile gutter */
    flex-wrap: wrap !important;    /* allow rows */
    gap: 12px !important;
  }
  .header-panel > div > div{
    min-width: 0;                 /* prevent overflow from long text */
    flex: 1 1 260px;              /* reasonable wrap behavior */
  }
  .header-panel img{ height: 40px !important; }

  /* Promo slider: keep height usable on phones and prevent caption overflow. */
  #autoSlider{ overscroll-behavior-x: contain; }
  #autoSlider img{ height: 520px !important; }
  #autoSlider .absolute{
    left: 12px !important;
    right: 12px !important;
    bottom: 12px !important;
  }
}

/* --- Small phones (<= 480px): slightly tighter hero + slider --- */
@media (max-width: 480px){
  .hero__cta{ gap: var(--s2); }
  #autoSlider img{ height: 440px !important; }
}
/* 
 * Mobile Navigation Single Line Override
 * -------------------------------------------------------------- */
@media (max-width: 768px) {
    .nav {
        flex-wrap: nowrap !important;
        white-space: nowrap !important;
        gap: 2px !important;
        justify-content: center !important;
        width: 100% !important;
        overflow-x: hidden !important;
    }

    .nav__link {
        flex: 0 1 auto !important;
        font-size: clamp(9px, 3.2vw, 12px) !important;
        padding: 6px 4px !important;
        margin: 0 !important;
        min-width: 0 !important;
        line-height: normal !important;
        text-align: center !important;
    }
}
/* 
 * Desktop Navigation Font Enhancement
 * -------------------------------------------------------------- */
@media (min-width: 1024px) {
    .nav__link {
        font-size: 1.1rem !important;
        line-height: 1.5;
    }
}
