/* =========================================================
   ALUMINIUM SUBANG — style.css
   Struktur: variabel → reset → komponen → section
   ========================================================= */

/* ---------- 1. VARIABEL ---------- */
:root {
  --bg-dark: #0A0A0A;
  --bg-light: #F5F5F0;
  --accent-lime: #E8FF00;
  --silver: #C0C0C0;
  --text-light: #FAFAFA;
  --text-dark: #1A1A1A;
  --gray-soft: #8A8A8A;

  --font-head: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --fs-h1: clamp(2.6rem, 8vw, 6.5rem);
  --fs-h2: clamp(2.2rem, 5.5vw, 4.5rem);
  --fs-h3: clamp(1.1rem, 1.6vw, 1.35rem);
  --fs-body: clamp(1rem, 1.1vw, 1.1rem);

  --space-section: clamp(5rem, 11vw, 9rem);
  --radius: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --nav-h: 72px;
}

/* ---------- 2. RESET & DASAR ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  background: var(--bg-dark);
  color: var(--text-light);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
address { font-style: normal; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.05; letter-spacing: -.02em; }
:focus-visible { outline: 3px solid var(--accent-lime); outline-offset: 3px; }

.container { width: min(1240px, 100% - 2.5rem); margin-inline: auto; }
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- 3. TOMBOL ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.8rem; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, color .3s, border-color .3s;
}
.btn:hover { transform: translateY(-3px) scale(1.03); }
.btn--lime { background: var(--accent-lime); color: var(--text-dark); }
.btn--lime:hover { box-shadow: 0 10px 40px rgba(232, 255, 0, .35); }
.btn--outline { border-color: var(--text-light); color: var(--text-light); }
.btn--outline:hover { background: var(--text-light); color: var(--text-dark); }
.btn--dark { background: var(--bg-dark); color: var(--accent-lime); }
.btn--dark:hover { box-shadow: 0 12px 40px rgba(0, 0, 0, .35); }
.btn--sm { padding: .55rem 1.1rem; font-size: .85rem; }
.btn--sm .icon { width: 18px; height: 18px; }
.btn--lg { padding: 1.2rem 2.4rem; font-size: 1.1rem; }

/* ---------- 4. ANIMASI REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.reveal--left { transform: translateX(-60px); }
.reveal--right { transform: translateX(60px); }
.reveal.revealed { opacity: 1; transform: none; }

/* ---------- 5. LOADER ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200; background: var(--bg-dark);
  display: grid; place-content: center; gap: 1.2rem; text-align: center;
  transition: opacity .6s, visibility .6s;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader__logo { font-family: var(--font-head); font-weight: 800; letter-spacing: .15em; font-size: 1.1rem; }
.loader__logo span, .logo .dot { color: var(--accent-lime); }
.loader__bar { width: 160px; height: 3px; background: #222; border-radius: 3px; overflow: hidden; margin-inline: auto; }
.loader__bar i { display: block; height: 100%; width: 100%; background: var(--accent-lime); transform: translateX(-100%); animation: load 1s var(--ease) forwards; }
@keyframes load { to { transform: none; } }

/* ---------- 6. NAVBAR ---------- */
.navbar { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--nav-h); transition: background .4s, backdrop-filter .4s, box-shadow .4s; }
.navbar.scrolled { background: rgba(10, 10, 10, .8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(255, 255, 255, .08); }
.navbar__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.logo { font-family: var(--font-head); font-weight: 800; letter-spacing: .12em; font-size: .95rem; position: relative; z-index: 130; }
.menu { display: flex; gap: 2.2rem; font-weight: 500; font-size: .95rem; }
.menu a { position: relative; padding: .3rem 0; }
.menu a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--accent-lime); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.menu a:hover::after { transform: scaleX(1); }
.navbar__actions { display: flex; align-items: center; gap: .8rem; position: relative; z-index: 130; }

/* Hamburger */
.burger { display: none; width: 44px; height: 44px; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--text-light); transition: transform .4s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
body.menu-open .burger span:first-child { transform: translateY(4px) rotate(45deg); }
body.menu-open .burger span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Overlay menu mobile */
.overlay {
  position: fixed; inset: 0; z-index: 110; background: var(--bg-dark);
  display: flex; align-items: center; padding: 2rem;
  transform: translateX(100%); transition: transform .6s var(--ease); visibility: hidden;
}
body.menu-open .overlay { transform: none; visibility: visible; }
.overlay nav { display: grid; gap: 1rem; }
.overlay a { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.2rem, 11vw, 4rem); letter-spacing: -.03em; transition: color .3s, transform .3s; }
.overlay a:hover { color: var(--accent-lime); transform: translateX(10px); }

/* ---------- 7. HERO ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; animation: slowzoom 22s ease-out forwards; }
@keyframes slowzoom { from { transform: scale(1); } to { transform: scale(1.15); } }
.hero__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,10,10,.92) 15%, rgba(10,10,10,.45) 70%), linear-gradient(0deg, var(--bg-dark), transparent 35%); }
.hero__content { padding-top: var(--nav-h); }
.eyebrow { font-family: var(--font-head); font-weight: 700; font-size: .8rem; letter-spacing: .25em; text-transform: uppercase; color: var(--accent-lime); margin-bottom: 1.4rem; display: flex; align-items: center; gap: .8rem; }
.eyebrow::before { content: ""; width: 36px; height: 2px; background: currentColor; }
.eyebrow--dark { color: var(--text-dark); }
.hero h1 { font-size: var(--fs-h1); font-weight: 800; max-width: 12ch; }
.hero h1 em { font-style: normal; color: transparent; -webkit-text-stroke: 2px var(--accent-lime); }
.hero__sub { max-width: 52ch; margin: 1.8rem 0 2.4rem; color: #d4d4d4; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; }
.scroll-ind { position: absolute; bottom: 2rem; left: 50%; margin-left: -22px; width: 44px; height: 44px; border: 1.5px solid rgba(255,255,255,.4); border-radius: 50%; display: grid; place-items: center; animation: bounce 2s infinite; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(10px); } }

/* ---------- 8. TRUST BAR ---------- */
.trust { background: var(--accent-lime); color: var(--text-dark); position: relative; z-index: 2; }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 2.2rem 1rem; display: flex; flex-direction: column; border-left: 1px solid rgba(0,0,0,.15); padding-left: 1.5rem; }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat strong { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1; }
.stat span:last-child { font-weight: 500; font-size: .9rem; margin-top: .4rem; }

/* ---------- 9. SECTION UMUM ---------- */
.section { padding-block: var(--space-section); position: relative; }
.section--light { background: var(--bg-light); color: var(--text-dark); }
.section--dark { background: var(--bg-dark); color: var(--text-light); }
.section__head { margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.section h2 { font-size: var(--fs-h2); font-weight: 800; }

/* Pemisah diagonal */
#produk, #galeri, #testimoni { clip-path: polygon(0 0, 100% 3vw, 100% 100%, 0 100%); margin-top: -3vw; padding-top: calc(var(--space-section) + 3vw); }
#proses, #keunggulan { clip-path: polygon(0 3vw, 100% 0, 100% 100%, 0 100%); margin-top: -3vw; padding-top: calc(var(--space-section) + 3vw); }

/* ---------- 10. BENTO GRID ---------- */
.bento {
  display: grid; gap: 1.2rem;
  grid-template-columns: repeat(4, 1fr);
  grid-template-areas:
    "a a b c"
    "a a d e"
    "f f f f";
  grid-auto-rows: minmax(240px, auto);
}
.card--a { grid-area: a; } .card--b { grid-area: b; } .card--c { grid-area: c; }
.card--d { grid-area: d; } .card--e { grid-area: e; } .card--f { grid-area: f; min-height: 340px; }
/* titik fokus foto kartu produk */
.card--c img { object-position: 50% 40%; }
.card--f img { object-position: 50% 85%; }

.card { position: relative; border-radius: var(--radius); overflow: hidden; background: #111; color: var(--text-light); border: 2px solid transparent; transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s, opacity .9s var(--ease) var(--d, 0s); }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .7; transition: transform .8s var(--ease), opacity .4s; }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,10,10,.92) 8%, transparent 70%); }
.card__body { position: absolute; inset: auto 0 0; z-index: 1; padding: 1.5rem; }
.card__body .icon { color: var(--accent-lime); margin-bottom: .8rem; }
.card h3 { font-size: var(--fs-h3); margin-bottom: .4rem; }
.card p { font-size: .9rem; color: #cfcfcf; max-width: 38ch; }
.card--a h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.card.revealed:hover { transform: translateY(-8px); border-color: var(--accent-lime); box-shadow: 0 24px 50px rgba(0,0,0,.3); }
.card:hover img { transform: scale(1.08); opacity: .9; }

/* ---------- 11. TIMELINE ---------- */
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; padding-top: 2.5rem; }
.timeline::before, .timeline::after { content: ""; position: absolute; top: 0; left: 0; height: 2px; }
.timeline::before { width: 100%; background: #2a2a2a; }
.timeline::after { width: 100%; background: var(--accent-lime); transform: scaleX(var(--progress, 0)); transform-origin: left; }
.step { position: relative; }
.step::before { content: ""; position: absolute; top: -2.5rem; left: 0; width: 12px; height: 12px; margin-top: -5px; border-radius: 50%; background: var(--accent-lime); box-shadow: 0 0 0 6px rgba(232,255,0,.15); }
.step__num { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(3.5rem, 7vw, 5.5rem); line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--silver); margin-bottom: 1rem; }
.step .icon { color: var(--accent-lime); margin-bottom: .8rem; }
.step h3 { font-size: var(--fs-h3); margin-bottom: .6rem; }
.step p { color: var(--gray-soft); font-size: .95rem; }

/* ---------- 12. GALERI ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.shot { position: relative; display: block; width: 100%; border-radius: var(--radius); overflow: hidden; }
.shot--p { aspect-ratio: 4 / 5; }   /* foto portrait */
.shot--l { aspect-ratio: 4 / 3; }   /* foto landscape */
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
/* titik fokus tiap foto agar angle pas saat di-crop */
.shot img[src$="galeri-3.jpg"] { object-position: 50% 72%; }
.shot img[src$="galeri-4.jpg"] { object-position: 50% 62%; }
.shot span { position: absolute; inset: auto 0 0; padding: 2.5rem 1.2rem 1.1rem; text-align: left; font-family: var(--font-head); font-weight: 700; color: var(--text-light); background: linear-gradient(0deg, rgba(10,10,10,.9), transparent); opacity: 0; transform: translateY(12px); transition: opacity .4s, transform .4s var(--ease); }
.shot:hover img, .shot:focus-visible img { transform: scale(1.07); }
.shot:hover span, .shot:focus-visible span { opacity: 1; transform: none; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,.92); display: grid; place-items: center; padding: 1.5rem; animation: fade .3s; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 88vh; max-width: min(1100px, 100%); border-radius: 12px; }
.lightbox__close { position: absolute; top: 1rem; right: 1.4rem; font-size: 2.6rem; line-height: 1; color: var(--text-light); }
.lightbox__close:hover { color: var(--accent-lime); }
@keyframes fade { from { opacity: 0; } }

/* ---------- 13. KEUNGGULAN ---------- */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.checks { margin-top: 2.2rem; display: grid; gap: 1rem; }
.checks li { display: flex; gap: 1rem; align-items: flex-start; padding-bottom: 1rem; border-bottom: 1px solid #262626; font-weight: 500; }
.checks li::before { content: "✓"; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-lime); color: var(--text-dark); display: grid; place-items: center; font-weight: 800; font-size: .85rem; }
.split__img { position: relative; }
.split__img::before { content: ""; position: absolute; inset: 1.5rem -1.5rem -1.5rem 1.5rem; border: 2px solid var(--accent-lime); border-radius: var(--radius); }
.split__img img { position: relative; border-radius: var(--radius); width: 100%; aspect-ratio: 4/5; object-fit: cover; }

/* ---------- 14. TESTIMONI ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.quote { position: relative; background: #fff; border-radius: var(--radius); padding: 3.2rem 2rem 2rem; box-shadow: 0 1px 0 rgba(0,0,0,.06); transition: transform .4s var(--ease), box-shadow .4s, opacity .9s var(--ease) var(--d, 0s); }
.quote.revealed:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,.1); }
.quote::before { content: "“"; position: absolute; top: .2rem; left: 1.4rem; font-family: var(--font-head); font-weight: 800; font-size: 6rem; line-height: 1; color: var(--accent-lime); text-shadow: 0 0 0 var(--text-dark); -webkit-text-stroke: 2px var(--text-dark); }
.quote p { font-size: 1.05rem; margin-bottom: 1.5rem; }
.quote footer { font-size: .9rem; color: #555; }
.quote footer strong { color: var(--text-dark); }

/* ---------- 15. CTA ---------- */
.cta { background: var(--bg-dark); position: relative; overflow: hidden; padding-block: var(--space-section); text-align: center; border-top: 4px solid var(--accent-lime); }
.cta::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, transparent 0 28px, rgba(232,255,0,.06) 28px 30px); }
.cta__inner { position: relative; display: grid; justify-items: center; gap: 1.6rem; }
.cta h2 { font-size: var(--fs-h2); font-weight: 800; color: var(--accent-lime); }
.cta p { max-width: 52ch; color: #cfcfcf; }
.cta .btn--dark { background: var(--accent-lime); color: var(--text-dark); }

/* ---------- 16. FOOTER ---------- */
.footer { background: #050505; padding-top: 5rem; border-top: 1px solid #1c1c1c; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 3rem; margin-bottom: 3rem; }
.footer__about { margin: 1.2rem 0; color: var(--gray-soft); max-width: 38ch; font-size: .95rem; }
.footer address { color: var(--silver); font-size: .95rem; }
.footer__map { display: inline-block; margin-top: .8rem; color: var(--accent-lime); font-weight: 600; font-size: .9rem; }
.footer__map:hover { text-decoration: underline; }
.footer h4 { font-size: 1rem; text-transform: uppercase; letter-spacing: .15em; color: var(--accent-lime); margin-bottom: 1.2rem; }
.footer li { margin-bottom: .6rem; }
.footer li a { color: var(--silver); transition: color .3s, padding .3s; }
.footer li a:hover { color: var(--accent-lime); padding-left: 6px; }
.map { border-radius: var(--radius); overflow: hidden; height: 320px; filter: grayscale(1) invert(.9) contrast(.9); }
.map iframe { width: 100%; height: 100%; border: 0; }
.copy { text-align: center; color: var(--gray-soft); font-size: .85rem; padding-block: 2rem; }

/* ---------- 17. FLOATING ---------- */
.wa-float { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 90; width: 60px; height: 60px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(37,211,102,.4); animation: pulse 2.2s infinite; }
.wa-float .icon { width: 30px; height: 30px; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.6); } 70%, 100% { box-shadow: 0 0 0 22px rgba(37,211,102,0); } }
.to-top { position: fixed; right: 1.6rem; bottom: 5.6rem; z-index: 90; width: 44px; height: 44px; border-radius: 50%; background: var(--accent-lime); color: var(--text-dark); display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(12px); transition: .4s var(--ease); }
.to-top.show { opacity: 1; visibility: visible; transform: none; }

/* ---------- 18. PREFERENSI GERAK ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
