/* =========================================================
   GOSIM BIMBEL — gaya website (mobile-first)
   Warna brand diatur di :root di bawah ini.
   ========================================================= */
:root {
  --red: #CC0000;
  --red-dark: #A30000;
  --white: #FFFFFF;
  --gold: #FFD700;
  --gold-light: #FFE34D;
  --ink: #1A1A1A;          /* teks utama */
  --ink-soft: #444444;     /* teks kedua */
  --muted: #555555;
  --line: #E8E8E8;
  --tint: #FFF9E5;         /* latar bagian selang-seling */
  --red-tint: #FFF1F1;
  --wa: #16A34A;           /* hijau tombol WhatsApp */
  --wa-dark: #15803D;
  --radius: 16px;
  --header-h: 64px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
          "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", sans-serif;
  --font-zh: "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", system-ui, -apple-system,
             "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}
html:lang(zh-Hant-TW) body,
[lang="zh-Hant-TW"] { font-family: var(--font-zh); }
/* Nama brand selalu memakai huruf Latin yang tebal, di bahasa apa pun */
.hero h1, .brand-text, .footer-name, .lang-switch button { font-family: var(--font); }

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.2; overflow-wrap: break-word; }
p { overflow-wrap: break-word; }
a { color: var(--red); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
}
.container-narrow { max-width: 860px; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}
.hero :focus-visible,
.site-footer :focus-visible { outline-color: var(--gold); }

.skip-link {
  position: absolute;
  left: 8px;
  top: -80px;
  z-index: 100;
  background: var(--ink);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 8px; }

section[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { min-height: 56px; font-size: 1.0625rem; padding: 14px 26px; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-light); }
.btn-outline-light { border-color: var(--white); color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--red); }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--white);
  border-bottom: 3px solid var(--red);
}
.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}
.brand img { width: 40px; height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-main { font-weight: 900; font-size: 1.1875rem; color: var(--red); letter-spacing: .02em; }
.brand-sub { font-weight: 800; font-size: .6875rem; letter-spacing: .22em; color: var(--ink); margin-top: 3px; }

.lang-switch {
  display: inline-flex;
  border: 2px solid var(--red);
  border-radius: 999px;
  overflow: hidden;
  flex: none;
}
.lang-switch button {
  min-width: 40px;
  height: 40px;
  padding: 0 9px;
  border: 0;
  background: var(--white);
  color: var(--red);
  font: inherit;
  font-size: .875rem;
  font-weight: 800;
  cursor: pointer;
}
.lang-switch button + button { border-left: 2px solid var(--red); }
.lang-switch button[aria-pressed="true"] { background: var(--red); color: var(--white); }
.lang-switch button:focus-visible { outline-offset: -5px; outline-color: var(--gold); }

.menu-toggle {
  width: 44px;
  height: 44px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  background: var(--red);
  color: var(--white);
  cursor: pointer;
}
.menu-bars,
.menu-bars::before,
.menu-bars::after {
  display: block;
  width: 20px;
  height: 2.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .2s, opacity .2s;
}
.menu-bars { position: relative; }
.menu-bars::before,
.menu-bars::after { content: ""; position: absolute; left: 0; }
.menu-bars::before { top: -6.5px; }
.menu-bars::after { top: 6.5px; }
.nav-open .menu-bars { background: transparent; }
.nav-open .menu-bars::before { transform: translateY(6.5px) rotate(45deg); }
.nav-open .menu-bars::after { transform: translateY(-6.5px) rotate(-45deg); }

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 3px; /* di bawah garis merah header */
  background: var(--white);
  border-bottom: 3px solid var(--red);
  box-shadow: 0 12px 24px rgba(0, 0, 0, .12);
}
.nav-open .site-nav { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 8px 0; }
.site-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 16px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.site-nav a:hover { background: var(--red-tint); color: var(--red); }

@media (min-width: 1100px) {
  .menu-toggle { display: none; }
  .brand { margin-right: 0; }
  .site-nav {
    display: block;
    position: static;
    margin: 0 0 0 auto;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .site-nav ul { display: flex; gap: 2px; padding: 0; }
  .site-nav a { min-height: 44px; padding: 8px 10px; border-radius: 8px; font-size: .9375rem; }
  .lang-switch { margin-left: 8px; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--red);
  color: var(--white);
  position: relative;
}
.hero-inner {
  display: grid;
  gap: 24px;
  padding-top: 32px;
  padding-bottom: 44px;
  text-align: center;
}
.hero-logo { order: -1; justify-self: center; }
.hero-logo img {
  width: 176px;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .28));
}
.hero-kicker {
  display: inline-block;
  margin: 0 0 12px;
  padding: 6px 14px;
  border-radius: 14px;
  background: rgba(0, 0, 0, .2);
  font-size: .875rem;
  font-weight: 700;
}
.hero h1 {
  margin: 0;
  font-size: clamp(2.25rem, 9vw, 4.25rem);
  font-weight: 900;
  letter-spacing: .01em;
}
.hero-tagline {
  margin: 10px 0 0;
  font-size: clamp(1.3rem, 5vw, 1.9rem);
  font-weight: 800;
  color: var(--gold);
  line-height: 1.3;
}
.hero-lead {
  margin: 16px auto 0;
  max-width: 36em;
  font-size: 1.0625rem;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}
.road {
  height: 22px;
  background-color: #222;
  background-image: repeating-linear-gradient(90deg, var(--gold) 0 30px, transparent 30px 60px);
  background-size: 100% 4px;
  background-position: center;
  background-repeat: no-repeat;
}

@media (min-width: 600px) {
  .hero-actions { flex-direction: row; flex-wrap: wrap; justify-content: center; }
}
@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1.3fr 1fr;
    align-items: center;
    gap: 40px;
    padding-top: 56px;
    padding-bottom: 72px;
    text-align: left;
  }
  .hero-logo { order: 0; }
  .hero-logo img { width: 340px; }
  .hero-lead { margin-left: 0; }
  .hero-actions { justify-content: flex-start; }
}

/* ---------- Bagian umum ---------- */
.section { padding: 56px 0; }
.section-alt { background: var(--tint); }
.section-title {
  margin: 0 0 12px;
  font-size: clamp(1.625rem, 5.5vw, 2.375rem);
  font-weight: 900;
}
.section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 5px;
  margin-top: 12px;
  border-radius: 3px;
  background: var(--red);
}
.section-sub {
  margin: 0 0 28px;
  max-width: 42em;
  color: var(--ink-soft);
}
.sub-title {
  margin: 44px 0 16px;
  font-size: 1.375rem;
  font-weight: 900;
}
@media (min-width: 768px) {
  .section { padding: 80px 0; }
}

.feature-icon {
  width: 48px;
  height: 48px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--red);
  color: var(--white);
}
.feature-icon .icon { width: 26px; height: 26px; }

/* ---------- Tentang ---------- */
.about-grid { display: grid; gap: 24px; }
.about-text p { margin: 0 0 14px; font-size: 1.0625rem; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; }
.chips li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid #F2C4C4;
  border-radius: 999px;
  background: var(--red-tint);
  color: var(--red-dark);
  font-weight: 700;
  font-size: .9375rem;
}
.feature-list { list-style: none; display: grid; gap: 14px; margin: 0; padding: 0; }
.feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .05);
}
.feature h3 { margin: 2px 0 4px; font-size: 1.0625rem; }
.feature p { margin: 0; color: var(--ink-soft); }
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
}

/* ---------- Paket ---------- */
.pkg-grid { display: grid; gap: 28px; }
.pkg {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 20px 22px;
  border: 2px solid var(--line);
  border-radius: 20px;
  background: var(--white);
}
.pkg-name { margin: 0; font-size: 1.375rem; font-weight: 900; }
.pkg-price { margin: 6px 0 16px; }
.pkg-price span { font-size: 2.25rem; font-weight: 900; color: var(--red); }
.pkg-price small { font-size: .9375rem; font-weight: 700; color: var(--muted); }
.pkg-list { list-style: none; margin: 0 0 20px; padding: 0; flex: 1; }
.pkg-list li { position: relative; margin: 10px 0; padding-left: 28px; line-height: 1.5; }
.pkg-list li::before {
  content: "✓";
  position: absolute;
  left: 2px;
  top: 0;
  font-weight: 900;
  color: var(--red);
}
.pkg .btn { width: 100%; }
.pkg-featured {
  border: 3px solid var(--red);
  box-shadow: 0 12px 32px rgba(204, 0, 0, .16);
}
.pkg-badge {
  position: absolute;
  top: -15px;
  left: 18px;
  margin: 0;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-size: .8125rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.pkg-promo {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-left: 4px solid var(--red);
  border-radius: 8px;
  background: var(--red-tint);
  color: var(--red-dark);
  font-size: .9375rem;
  font-weight: 700;
}

.addon {
  display: grid;
  gap: 8px;
  margin-top: 28px;
  padding: 22px 20px;
  border-radius: 20px;
  background: var(--gold);
  color: var(--ink);
}
.addon-head { display: flex; align-items: center; gap: 14px; }
.addon-icon {
  width: 52px;
  height: 52px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold);
}
.addon-icon .icon { width: 28px; height: 28px; }
.addon-label { margin: 0; font-size: .8125rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.addon .pkg-name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.addon-price {
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 1rem;
}
.addon .pkg-list { margin: 0; }
.addon .pkg-list li::before { color: var(--ink); }
.pkg-note { margin: 22px 0 0; text-align: center; color: var(--muted); font-size: .9375rem; }

@media (min-width: 900px) {
  .pkg-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
  .addon { grid-template-columns: 300px 1fr; gap: 28px; align-items: center; padding: 26px 30px; }
}

/* ---------- Pengurusan dokumen ---------- */
.docs-grid { list-style: none; display: grid; gap: 14px; margin: 0; padding: 0; }
.docs-cta { margin-top: 28px; text-align: center; }
.docs-cta .pkg-note { margin-top: 14px; }
@media (min-width: 600px) { .docs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .docs-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Layanan & samsat ---------- */
.audience-grid { list-style: none; display: grid; gap: 14px; margin: 0; padding: 0; }
.card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .05);
}
.card h3 { margin: 12px 0 0; font-size: 1.0625rem; }
.card p { margin: 4px 0 0; color: var(--ink-soft); }

.samsat-grid { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; }
.samsat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 16px 14px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
/* HP (2 kolom): kartu terakhir yang sendirian dibuat selebar penuh */
.samsat:last-child:nth-child(odd) { grid-column: 1 / -1; }
.samsat-city { font-weight: 800; font-size: 1.0625rem; }
.samsat-city:empty { display: none; }
.samsat-zh { font-size: 1.125rem; font-weight: 700; color: var(--red-dark); }

@media (min-width: 768px) {
  .audience-grid { grid-template-columns: repeat(3, 1fr); }
  .samsat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .samsat:last-child:nth-child(odd) { grid-column: auto; }
}
@media (min-width: 1100px) {
  .samsat-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* ---------- Cara kerja ---------- */
.steps { list-style: none; counter-reset: step; display: grid; gap: 14px; margin: 0; padding: 0; }
.step {
  position: relative;
  counter-increment: step;
  padding: 20px 18px 18px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
}
.step-icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
}
.step-icon .icon { width: 26px; height: 26px; }
.step::before {
  content: counter(step);
  position: absolute;
  top: 14px;
  left: 56px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  font-weight: 900;
  font-size: .875rem;
  border: 2px solid var(--white);
}
.step h3 { margin: 12px 0 4px; font-size: 1.125rem; }
.step p { margin: 0; color: var(--ink-soft); }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 18px; } }

/* ---------- FAQ ---------- */
.faq details {
  margin-bottom: 12px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}
.faq details[open] { border-color: var(--red); }
.faq summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 14px 52px 14px 18px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.625rem;
  font-weight: 900;
  line-height: 1;
  color: var(--red);
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0; padding: 0 18px 18px; color: #333; }

/* ---------- Kontak ---------- */
.contact-grid { list-style: none; display: grid; gap: 14px; margin: 0; padding: 0; }
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: 100%;
  padding: 22px 16px;
  border: 2px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  color: var(--ink);
  text-align: center;
  text-decoration: none;
  transition: border-color .15s, transform .15s;
}
.contact-card:hover { border-color: var(--red); transform: translateY(-2px); }
.contact-icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
}
.contact-icon .icon { width: 28px; height: 28px; }
.contact-wa .contact-icon { background: var(--wa); }
.contact-label { font-weight: 800; }
.contact-value { color: var(--red-dark); font-weight: 700; overflow-wrap: anywhere; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Footer ---------- */
.site-footer {
  padding: 40px 0 104px;
  background: var(--ink);
  color: #EEEEEE;
}
.footer-inner { display: grid; gap: 20px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 56px; height: 56px; }
.footer-name { margin: 0; font-size: 1.25rem; font-weight: 900; color: var(--white); }
.footer-tagline { margin: 2px 0 0; color: var(--gold); font-weight: 700; }
.footer-contact { list-style: none; display: grid; gap: 6px; margin: 0; padding: 0; }
.footer-contact a {
  display: inline-block;
  padding: 4px 0;
  color: var(--white);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.disclaimer {
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid #333;
  color: #CFCFCF;
  font-size: .875rem;
  line-height: 1.65;
}
.copyright { margin: 0; color: #B5B5B5; font-size: .875rem; }
@media (min-width: 768px) {
  .footer-inner { grid-template-columns: 1fr 1fr; align-items: center; }
  .disclaimer, .copyright { grid-column: 1 / -1; }
  .footer-contact { justify-items: end; text-align: right; }
}

/* ---------- Tombol WhatsApp melayang ---------- */
.wa-float {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 50;
  width: 60px;
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--wa);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .28);
  transition: background-color .15s, transform .15s;
}
.wa-float:hover { background: var(--wa-dark); transform: scale(1.05); }
.wa-float .icon { width: 32px; height: 32px; }

/* ---------- Halaman 404 ---------- */
.notfound {
  min-height: calc(100vh - var(--header-h) - 3px);
  display: flex;
  align-items: center;
  background: var(--red);
  color: var(--white);
  text-align: center;
}
.notfound .container { padding-top: 48px; padding-bottom: 48px; }
.notfound img { width: 140px; margin: 0 auto 20px; }
.notfound h1 { margin: 0 0 12px; font-size: clamp(2.5rem, 12vw, 4.5rem); font-weight: 900; color: var(--gold); }
.notfound p { margin: 4px 0; font-size: 1.0625rem; }
.notfound .btn { margin-top: 24px; }
