/* ========== Base ========== */
:root {
  --orange: #FF5A00;
  --purple: #6B2FD3;
  --text: #1f2937;
  --muted: #6b7280;
  --surface: #ffffff;
  --bg: #ffffff;
  --alt: #faf7ff;
  --ring: rgba(255,90,0,.15);
  --header-bg: rgba(255,255,255,.85);
  --header-bg-scrolled: #FF5A00;
  --header-text: #1f2937;
  --header-text-scrolled: #ffffff;

  /* Alternating section backgrounds */
  --bg-1: #F6EEEB;
  --bg-2: #e8cbae;
  --bg-3: #fff8f2;
  --bg-4: #f7f7ff;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0;   overflow-x: hidden; /* cegah scroll horizontal global */}
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { width: min(1160px, 92vw); margin: 0 auto; }

/* Visually hidden (for screen readers) */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { position: static; padding: .5rem 1rem; background: var(--purple); color:#fff; }

/* ========== Header/Nav (orange on scroll) ========== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(0,0,0,.05);
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled {
  background: var(--header-bg-scrolled);
  color: var(--header-text-scrolled);
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
}
.site-header .brand, .site-header .nav a { color: var(--header-text); }
.site-header.scrolled .brand, .site-header.scrolled .nav a { color: var(--header-text-scrolled); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; padding: .8rem 0; gap: .75rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 700; }
.brand-text { border-left: 2px solid var(--orange); padding-left: .6rem; }
.nav a { text-decoration: none; margin: 0 .6rem; font-weight: 600; }
.nav a:hover { opacity: .85; }

.header-actions { display: flex; align-items: center; gap: .5rem; }
.hamburger { display: none; background: none; border: 0; padding: .25rem; cursor: pointer; }
.hamburger span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px 0; transition: .2s; }

/* ========== Slides ========== */
.slides { position: relative; }
.slides-wrap {
  width: 100%; overflow: hidden; position: relative; scroll-behavior: smooth; white-space: nowrap;
}
.slides-wrap .slide { display: inline-block; width: 100%; }
.slides-wrap img { display: block; width: 100%; height: auto; }
.slides-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border: 0; border-radius: 999px;
  background: rgba(0,0,0,.45); color: #fff; display: grid; place-items: center; cursor: pointer;
  z-index: 5;
}
.slides-nav:hover { background: rgba(0,0,0,.6); }
.slides-nav.prev { left: 12px; }
.slides-nav.next { right: 12px; }
.slides-dots {
  position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%);
  display: flex; gap: 8px;
}
.slides-dots button {
  width: 10px; height: 10px; border-radius: 999px; border: 0; background: rgba(255,255,255,.8); cursor: pointer;
}
.slides-dots button.active { background: var(--orange); }

/* Intro (hero + cek resi) */
.intro { padding-top: 34px; }
.intro-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; align-items: center; }
.hero-text h1 { font-size: clamp(28px, 4vw, 42px); line-height: 1.15; margin: 0 0 .4rem; }
.subtitle { font-size: 1.05rem; color: var(--muted); max-width: 56ch; }
.hero-bullets { list-style: none; padding: 0; margin: 1rem 0 1.4rem; display: grid; gap: .4rem; }
.hero-bullets li::before { content: "✔"; color: var(--purple); margin-right: .5rem; }
.cta-wrap { display: flex; gap: .8rem; flex-wrap: wrap; }
.card-hero { border-radius: 18px; box-shadow: 0 20px 40px rgba(0,0,0,.15); }
.bg-orange { background: var(--orange); color: #fff; }
.bg-purple { background: var(--purple); color: #fff; }
.card-body { padding: 16px 18px; }
.form-control {
  width: 100%; padding: .75rem .9rem; border-radius: 12px; border: 1px solid rgba(0,0,0,.08);
}
.form-hint { display: block; margin: .45rem 0 .75rem; color: #fff; opacity: .9; }
.row.gap { display: grid; gap: .6rem; }
.w-100 { width: 100%; }

/* ========== Sections with alternating backgrounds ========== */
main > section.section,
main > section.section-feature {
  background: var(--section-bg, var(--bg));
}
#intro       { --section-bg: var(--bg-1); }
#kelebihan   { --section-bg: var(--bg-2); }
#layanan     { --section-bg: var(--bg-1); }
#cek-ongkir  { --section-bg: var(--bg-3); }
#keunggulan  { --section-bg: var(--bg-2); }
#faq         { --section-bg: var(--bg-4); }
#lokasi      { --section-bg: var(--bg-1); }

.section { padding: 54px 0; }
.section-head { text-align: center; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(22px, 3.2vw, 32px); margin: 0 0 .4rem; }
.section-head p { color: var(--muted); margin: 0 auto; max-width: 70ch; }
.section-head .ref { font-size: .9rem; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature {
  background: var(--surface);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 8px 20px rgba(0,0,0,.04);
}
.feature h3 { margin: 0 0 .4rem; }
.feature p { margin: 0; color: var(--muted); }

.cards { display: grid; gap: 16px; }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards-responsive { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--surface);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 8px 20px rgba(0,0,0,.04);
  text-align: center;
}
.card h3 { margin: .4rem 0 .4rem; }
.card p { margin: 0; color: var(--muted); }
.svc-icon { width: 64px; height: 64px; object-fit: contain; margin-bottom: .35rem; }

/* Cek Ongkir Feature Section */
.section-feature { border-top: 0; }
.border-0 { border: 0; }
.pt-3 { padding-top: 1rem; }
.my-5 { margin: 3rem 0; }
.py-4 { padding: 1.2rem 0; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.align-items-center { align-items: center; }
.col-md-6 { }
.mb-3 { margin-bottom: 1rem; }
.text-center { text-align: center; }
.img-fluid { max-width: 100%; height: auto; }
.rounded-10 { border-radius: 10px; }
.text-8 { font-size: clamp(22px, 3.2vw, 32px); }
.lh-42 { line-height: 1.35; }
.font-weight-medium { font-weight: 600; }
.font-weight-extra-bold { font-weight: 800; }
.list { padding-left: 1rem; }
.list-ordened li { margin-bottom: .3rem; }

/* Keunggulan */
.features-2col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.fbox { display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: start;
  background: var(--surface); border: 1px solid rgba(0,0,0,.06); border-radius: 14px; padding: 14px;
}

/* FAQ (improved layout) */
.faq-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.faq-grid details {
  background: var(--surface);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,.03);
}
.faq-grid summary {
  list-style: none; cursor: pointer; font-weight: 700; display: flex; align-items: center; justify-content: space-between; gap: .75rem;
}
.faq-grid summary::-webkit-details-marker { display: none; }
.faq-grid summary svg { width: 18px; height: 18px; opacity: .7; transform: rotate(-90deg); transition: transform .2s ease; }
.faq-grid details[open] summary svg { transform: rotate(0deg); }
.faq-grid .content { color: var(--muted); margin-top: .35rem; }

/* Info + Map */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.info h3 { margin-bottom: .25rem; }
.map-embed iframe { width: 100%; height: 360px; border: 0; border-radius: 14px; }


.footer-one-line {
  display: flex; align-items: center; gap: 16px; white-space: nowrap; overflow-x: auto; scrollbar-width: thin;
}
.brand-inline { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; }
.muted { color: var(--muted); }
.footer-inline-list { list-style: none; display: inline-flex; padding: 0; margin: 0; gap: 14px; }
.footer-inline-list a { color: var(--text); text-decoration: none; }
.footer-inline-list a:hover { color: var(--orange); }
.copy { margin-left: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .7rem 1rem; border-radius: 999px; text-decoration: none; font-weight: 800;
  border: 1px solid transparent; transition: transform .05s ease, border-color .2s;
}
.btn-primary { background: linear-gradient(135deg, var(--orange), #ff7a33); color: #fff; box-shadow: 0 8px 24px rgba(255,90,0,.35); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost { background: var(--surface); border-color: rgba(0,0,0,.1); color: var(--text); }
.btn-ghost:hover { border-color: var(--purple); }
.bg-purple { background: var(--purple); color: #fff; }
.btn-green {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.35);
}
.btn-green:hover {
  transform: translateY(-1px);
}
.btn-red {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.35);
}
.btn-red:hover {
  transform: translateY(-1px);
}



/* Floating buttons */
.float-buttons {
  position: fixed; right: 16px; bottom: 16px; display: grid; gap: 10px; z-index: 60;
}
.float-btn {
  width: 54px; height: 54px; display: grid; place-items: center; color: #fff; text-decoration: none;
  border-radius: 999px; box-shadow: 0 10px 24px rgba(0,0,0,.18);
}
.float-btn.wa { background: #25D366; }
.float-btn.maps { background: #4285F4; }
.float-btn svg { width: 26px; height: 26px; }

/* Responsive */
@media (max-width: 1060px) {
  .cards-responsive { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .features-2col { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .intro-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav { display: none; position: absolute; top: 60px; right: 12px; background: var(--surface); border: 1px solid rgba(0,0,0,.06); border-radius: 12px; padding: .4rem; box-shadow: 0 12px 34px rgba(0,0,0,.16); }
  .nav a { display: block; padding: .5rem .7rem; color: var(--text); }
  .hamburger { display: block; }
  .info-grid { grid-template-columns: 1fr; }
  .map-embed iframe { height: 300px; }
  .copy { margin-left: 0; }
}

/* Outline hitam di logo saat header berwarna merah */
.site-header.scrolled .brand-logo{
  /* simulasi garis luar hitam mengelilingi logo */
  filter:
    drop-shadow(0 0 0 #000)
    drop-shadow(1px 0 0 #000)
    drop-shadow(-1px 0 0 #000)
    drop-shadow(0 1px 0 #000)
    drop-shadow(0 -1px 0 #000)
    drop-shadow(1px 0px 0 #000)
    drop-shadow(-1px 0px 0 #000)
    drop-shadow(1px 0px 0 #000)
    drop-shadow(-1px 0px 0 #000);
}
.site-footer {
  border-top: 1px solid rgba(0,0,0,.06);
  padding: 24px 0 40px;
  background: #fff;
  color: var(--text);
  width: 100vw;       /* pastikan full width */
  overflow-x: hidden; /* cegah scroll horizontal */
}

/* === PATCH v2: Footer full-width + nav visible & robust === */

/* 1) Footer: lepas batas .container hanya di dalam footer */
.site-footer > .container {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-left: 16px;
  padding-right: 16px;
}

/* 2) Footer row: jangan paksa satu baris, hilangkan scroll horizontal */
.site-footer .footer-one-line {
  flex-wrap: wrap;
  white-space: normal;
  overflow-x: hidden;
}

/* 3) Desktop (>=721px): pastikan nav selalu tampil horizontal */
@media (min-width: 721px) {
  .site-header .nav {
    display: flex;
    align-items: center;
    gap: .6rem;
  }
}

/* 4) Mobile menu layer: pastikan di atas konten lain */
@media (max-width: 720px) {
  .site-header .nav {
    z-index: 1000;
  }
}

/* === FIX DESKTOP NAV VANISH + ALWAYS-VISIBLE HEADER (DESKTOP & MOBILE) === */

/* 1) Header always on top and visible */
.site-header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
}

/* 2) Ensure desktop nav is always shown (even if inline style existed) */
@media (min-width: 721px) {
  .site-header .nav {
    display: flex !important;
    align-items: center;
    gap: .6rem;
    position: static; /* desktop layout */
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
  }
}

/* 3) Offset page content so it doesn't hide behind fixed header */
body { padding-top: var(--header-offset, 68px); }

/* 4) Mobile dropdown: readable text & layered correctly (unchanged behavior) */
@media (max-width: 720px) {
  .site-header .nav {
    position: absolute;
    top: calc(var(--header-offset, 60px) + 8px);
    right: 12px;
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 12px;
    padding: .4rem;
    box-shadow: 0 12px 34px rgba(0,0,0,.16);
    z-index: 1000;
  }
  .site-header .nav a,
  .site-header.scrolled .nav a { color: var(--text) !important; }
  .hamburger { position: relative; z-index: 1001; }
}

/* 5) Footer full width & wrap */
.site-footer { width: 100% !important; }
.site-footer > .container { width: 100%; max-width: none; padding-left: 16px; padding-right: 16px; margin: 0; }
.site-footer .footer-one-line { flex-wrap: wrap; white-space: normal; overflow-x: hidden; scrollbar-width: none; }
