/* ============================================================
   DUA PUTRA Aluminium dan Kaca Ã¢â‚¬â€ Stylesheet
   Tema: Abu-abu muda aluminium, profesional, mobile-first
   ============================================================ */

:root {
  /* Palet warna aluminium */
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-alt: #eceef1;
  --primary: #6b7280;
  --primary-light: #9ca3af;
  --primary-dark: #3d4450;
  --text: #2b313b;
  --text-muted: #5f6875;
  --accent: #4a6fa5;
  --accent-dark: #3a5a87;
  --wa-green: #25d366;
  --wa-dark: #1ebe5b;
  --border: #d9dde3;
  --shadow: 0 4px 20px rgba(61, 68, 80, 0.08);
  --shadow-hover: 0 8px 30px rgba(61, 68, 80, 0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --max-width: 1100px;
  --header-h: 64px;
}

/* ---------- Reset & dasar ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  overflow-x: hidden;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 0;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-dark);
}

h1, h2, h3, h4 {
  font-family: "Poppins", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  color: var(--primary-dark);
  line-height: 1.25;
  font-weight: 700;
}

/* ---------- Utilitas ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 20px;
}

.section {
  padding: 64px 0;
}

.section--alt {
  background: var(--surface);
}

.section-title {
  font-size: 1.75rem;
  text-align: center;
  margin-bottom: 8px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 40px;
  font-size: 1rem;
}

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    background 0.15s ease;
  line-height: 1.2;
}

.btn:active {
  transform: scale(0.97);
}

.btn--wa {
  background: var(--wa-green);
  color: #fff;
}

.btn--wa:hover {
  background: var(--wa-dark);
  color: #fff;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-dark);
  color: #fff;
  box-shadow: 0 6px 18px rgba(74, 111, 165, 0.3);
}

.btn--outline {
  background: transparent;
  color: var(--primary-dark);
  border: 2px solid var(--border);
}

.btn--outline:hover {
  border-color: var(--primary);
  background: var(--surface-alt);
  color: var(--primary-dark);
}

.btn--lg {
  padding: 16px 34px;
  font-size: 1.05rem;
}

.btn svg {
  flex-shrink: 0;
}

/* ---------- Header ---------- */
/* CATATAN: jangan pakai backdrop-filter di sini!
   backdrop-filter membuat containing block untuk position:fixed
   yang merusak sidebar nav mobile & tombol WA melayang. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary-dark);
  white-space: nowrap;
}

.brand:hover {
  color: var(--primary-dark);
}

.brand__logo {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(135deg, #8a919c 0%, #3d4450 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.brand small {
  display: block;
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  line-height: 1;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 8px 14px;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background: var(--surface-alt);
  color: var(--primary-dark);
}

.nav-wa-btn {
  margin-left: 8px;
  padding: 9px 18px;
  font-size: 0.88rem;
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}

.nav-toggle:hover {
  background: var(--surface-alt);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary-dark);
  margin: 3px 0;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, #e8eaee 0%, #d4d9e0 45%, #c3c9d2 100%);
  position: relative;
  overflow: hidden;
  padding: 88px 0 72px;
}

/* Pola grid teknikal aluminium */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent 85%);
  pointer-events: none;
}

/* Aksen metalik dekoratif */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.55), transparent 42%),
    radial-gradient(circle at 8% 88%, rgba(255, 255, 255, 0.3), transparent 38%),
    radial-gradient(circle at 55% 110%, rgba(74, 111, 165, 0.12), transparent 55%);
  pointer-events: none;
}

/* Animasi SVG background hero */
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero__bg svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Garis aksen bawah hero */
.hero .container::after {
  content: "";
  display: block;
  width: 120px;
  height: 3px;
  margin: 44px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
}

.hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero__badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--border);
  color: var(--primary-dark);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(1.9rem, 5vw, 3rem);
  max-width: 780px;
  margin: 0 auto 18px;
}

.hero p {
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 34px;
}

.hero__cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 52px;
  flex-wrap: wrap;
}

.hero__stat {
  text-align: center;
}

.hero__stat strong {
  display: block;
  font-family: "Poppins", sans-serif;
  font-size: 1.5rem;
  color: var(--primary-dark);
}

.hero__stat span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- Grid layanan ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, #eceef1, #d9dde3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--primary-dark);
}

.service-card h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.service-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ---------- Keunggulan ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.feature p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ---------- Galeri ---------- */
.gallery-cat {
  margin-bottom: 48px;
}

.gallery-cat__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.gallery-cat__head h3 {
  font-size: 1.2rem;
}

.gallery-cat__head a {
  font-size: 0.88rem;
  font-weight: 600;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}

.gallery-grid--full {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: zoom-in;
  background: var(--surface-alt);
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border);
  padding: 0;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(43, 49, 59, 0.35), transparent 55%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.gallery-item:hover::after {
  opacity: 1;
}

/* ---------- Langkah ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  counter-reset: step;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  position: relative;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8a919c, #3d4450);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
}

.step h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.step p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ---------- Testimoni ---------- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
}

.testimonial__stars {
  color: #e8a33d;
  letter-spacing: 3px;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.testimonial p {
  font-size: 0.92rem;
  color: var(--text);
  margin-bottom: 16px;
  font-style: italic;
}

.testimonial footer {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: normal;
  font-weight: 600;
}

/* ---------- Kontak ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
}

.contact-card h2 {
  text-align: left;
  margin-bottom: 8px;
}

.contact-card > p {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 28px;
}

.contact-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-list svg {
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 3px;
}

.contact-list strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contact-list span,
.contact-list a {
  font-size: 0.95rem;
  color: var(--text);
}

.contact-list a:hover {
  color: var(--accent);
}

.contact-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hours-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}

.hours-card h3 {
  margin-bottom: 14px;
  font-size: 1.05rem;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.hours-table td {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.hours-table tr:last-child td {
  border-bottom: none;
}

.hours-table td:last-child {
  text-align: right;
  font-weight: 600;
  color: var(--primary-dark);
}

.hours-table .closed {
  color: #b0483e;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--primary-dark);
  color: #c8cdd6;
  padding: 44px 0 24px;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.site-footer p {
  font-size: 0.85rem;
  max-width: 380px;
}

.footer-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: #c8cdd6;
  font-size: 0.88rem;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 18px;
  font-size: 0.8rem;
  text-align: center;
  color: #9aa1ad;
}

/* ---------- Tombol WA melayang ---------- */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--wa-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 26px rgba(37, 211, 102, 0.55);
  color: #fff;
}

.wa-float::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--wa-green);
  animation: wa-pulse 2.2s ease-out infinite;
  pointer-events: none;
}

@keyframes wa-pulse {
  0% {
    transform: scale(0.9);
    opacity: 0.8;
  }
  70% {
    transform: scale(1.25);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(24, 28, 35, 0.93);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__img {
  max-width: 92vw;
  max-height: 84vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.lightbox__btn {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.lightbox__btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox__close {
  top: 20px;
  right: 20px;
}

.lightbox__prev {
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__next {
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__caption {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: #d5d9e0;
  font-size: 0.9rem;
  text-align: center;
  max-width: 80vw;
}

/* ---------- Page header (halaman kategori) ---------- */
.page-header {
  background: linear-gradient(160deg, #eceef1 0%, #d5dae1 100%);
  padding: 56px 0 44px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  margin-bottom: 10px;
}

.page-header p {
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
}

.breadcrumb {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.breadcrumb a {
  color: var(--accent);
}

/* ---------- CTA strip bawah galeri kategori ---------- */
.cta-strip {
  background: linear-gradient(135deg, #3d4450, #2b313b);
  border-radius: var(--radius);
  color: #fff;
  padding: 40px 32px;
  text-align: center;
  margin-top: 48px;
}

.cta-strip h2 {
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.cta-strip p {
  color: #c8cdd6;
  margin-bottom: 22px;
  font-size: 0.95rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .contact-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  /* Sidebar: fixed di kanan, keluar layar saat tertutup */
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(300px, 82vw);
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 76px 0 24px;
    z-index: 40;
    display: flex;
    box-shadow: none;
    transform: translateX(calc(100% + 30px));
    transition: transform 0.28s cubic-bezier(0.32, 0.72, 0.35, 1), visibility 0.28s;
    visibility: hidden;
  }

  .main-nav.is-open {
    transform: translateX(0);
    visibility: visible;
    box-shadow: -12px 0 40px rgba(43, 49, 59, 0.18);
  }

  /* Backdrop: di bawah sidebar & header, di atas konten */
  body.nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(43, 49, 59, 0.5);
    z-index: 30;
    animation: backdrop-fade 0.28s ease;
  }

  @keyframes backdrop-fade {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  body.nav-open {
    overflow: hidden;
  }

  .main-nav a {
    font-size: 1rem;
    font-weight: 500;
    padding: 14px 28px;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
    border-radius: 0;
    color: var(--text);
  }

  .main-nav a:hover,
  .main-nav a[aria-current="page"] {
    background: var(--surface-alt);
    color: var(--primary-dark);
  }

  .main-nav .nav-wa-btn {
    width: calc(100% - 40px);
    margin: 16px 20px 0;
    padding: 13px 20px;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    justify-content: center;
    text-align: center;
  }

  .section {
    padding: 48px 0;
  }

  .hero {
    padding: 60px 0 52px;
  }

  .hero__stats {
    gap: 24px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid--full {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 400px) {
  .gallery-grid,
  .gallery-grid--full {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .hero__cta .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Fokus terlihat untuk aksesibilitas */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
