/* ===========================================================
   Samsung Service Center Pontianak — stylesheet
   =========================================================== */

:root {
  --blue-900: #071a52;
  --blue-800: #0d2a7a;
  --blue-700: #1428a0; /* primary "samsung" blue */
  --blue-500: #3a5ce0;
  --blue-100: #eaf0ff;
  --blue-50:  #f5f8ff;
  --ink:      #101426;
  --ink-soft: #5b6376;
  --line:     #e4e8f5;
  --white:    #ffffff;
  --green:    #1fae5c;
  --radius:   14px;
  --shadow:   0 12px 30px -12px rgba(20, 40, 160, 0.25);
  --max-w:    1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", "Poppins", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { line-height: 1.2; margin: 0; }

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 24px;
  gap: 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.5px;
  color: var(--blue-700);
}

.brand-sub {
  font-size: 11px;
  color: var(--ink-soft);
  font-weight: 600;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--blue-700);
  border-bottom-color: var(--blue-700);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  padding: 11px 20px;
  transition: transform .12s ease, box-shadow .12s ease, background .15s ease;
}

.btn-primary {
  background: var(--blue-700);
  color: var(--white);
}
.btn-primary:hover { background: var(--blue-800); transform: translateY(-1px); }

.btn-ghost {
  background: var(--blue-50);
  color: var(--blue-700);
  border: 1px solid var(--blue-100);
}
.btn-ghost:hover { background: var(--blue-100); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--blue-700);
  cursor: pointer;
}

/* ---------- Hero (Home) ---------- */

.hero {
  position: relative;
  background:
    linear-gradient(120deg, rgba(7, 26, 82, 0.88) 0%, rgba(20, 40, 160, 0.80) 55%, rgba(58, 92, 224, 0.65) 100%),
    url("../img/hero-building.jpg") center 65% / cover no-repeat;
  color: var(--white);
  overflow: hidden;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 90px 24px 110px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #9db4ff;
  margin-bottom: 14px;
  display: block;
}

.hero h1 {
  font-size: 44px;
  font-weight: 800;
  margin-bottom: 18px;
}

.hero p {
  font-size: 16px;
  color: #cfd8ff;
  max-width: 480px;
  margin-bottom: 30px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-actions .btn-ghost {
  background: rgba(255,255,255,.08);
  color: var(--white);
  border: 1px solid rgba(255,255,255,.35);
}
.hero-actions .btn-ghost:hover { background: rgba(255,255,255,.16); }

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(6px);
  width: 100%;
  max-width: 380px;
  text-align: center;
}

.hero-card .logo-mark {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.hero-card .logo-sub {
  font-size: 12.5px;
  color: #cfd8ff;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.hero-bg-shape {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 85% 20%, rgba(255,255,255,.10), transparent 40%),
                     radial-gradient(circle at 10% 90%, rgba(255,255,255,.08), transparent 45%);
  z-index: 1;
}

/* ---------- Stats strip ---------- */

.stats-strip {
  background: var(--blue-50);
  border-bottom: 1px solid var(--line);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 32px 0;
  text-align: center;
}
.stat b {
  display: block;
  font-size: 26px;
  color: var(--blue-700);
}
.stat span {
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 600;
}

/* ---------- Generic page header (non-home pages) ---------- */

.page-hero {
  background: linear-gradient(120deg, var(--blue-900), var(--blue-700));
  color: var(--white);
  padding: 56px 0 44px;
  text-align: center;
}
.page-hero h1 { font-size: 34px; font-weight: 800; margin-bottom: 10px; }
.page-hero p { color: #cfd8ff; font-size: 15px; max-width: 560px; margin: 0 auto; }

/* ---------- Sections ---------- */

.section { padding: 70px 0; }
.section-alt { background: var(--blue-50); }

.section-head { text-align: center; max-width: 620px; margin: 0 auto 44px; }
.eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue-700);
  display: block;
  margin-bottom: 10px;
}
.section-head h2 { font-size: 30px; font-weight: 800; margin-bottom: 12px; }
.section-head p { color: var(--ink-soft); font-size: 15px; }

.underline {
  width: 46px;
  height: 4px;
  background: var(--blue-700);
  border-radius: 4px;
  margin: 10px auto 0;
}
.align-left { margin-left: 0; }

/* ---------- Cards grid (Layanan) ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  background: var(--white);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--blue-100);
}
.icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--blue-100);
  color: var(--blue-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}
.service-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.service-card p { font-size: 13.5px; color: var(--ink-soft); margin: 0; }

/* ---------- Process steps ---------- */

.process-banner {
  background: var(--blue-700);
  color: var(--white);
  border-radius: var(--radius);
  padding: 34px 30px;
  margin-top: 50px;
}
.process-title { font-weight: 800; font-size: 16px; margin-bottom: 26px; }
.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  position: relative;
}
.process-step { text-align: center; position: relative; }
.step-circle {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--white);
  color: var(--blue-700);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  margin: 0 auto 12px;
  position: relative;
  z-index: 2;
}
.process-step::after {
  content: "";
  position: absolute;
  top: 19px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: rgba(255,255,255,.35);
  z-index: 1;
}
.process-step:last-child::after { display: none; }
.process-step p {
  font-size: 12.5px;
  color: #d8e0ff;
  margin: 0;
  max-width: 130px;
  margin-left: auto; margin-right: auto;
}

/* ---------- About page ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 44px;
  align-items: start;
}
.about-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about-block { margin-bottom: 26px; }
.about-block h3 { font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.about-block p, .about-block li { color: var(--ink-soft); font-size: 14.5px; }
.about-block ol { padding-left: 20px; margin: 8px 0 0; }

.icon-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.icon-row .icon-badge { flex-shrink: 0; margin-bottom: 0; }

.pill-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 40px;
}
.pill {
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius);
  text-align: center;
  padding: 22px 12px;
}
.pill .icon-badge { margin: 0 auto 12px; }
.pill p { margin: 0; font-size: 13.5px; font-weight: 700; color: var(--blue-800); }

/* ---------- Tracking page ---------- */

.track-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
}
.track-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  background: var(--white);
}
.track-panel.qr { text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.track-panel h3 { font-size: 16px; font-weight: 800; margin-bottom: 16px; }

.field-label { font-size: 13px; font-weight: 700; color: var(--ink); display: block; margin-bottom: 6px; }
.field-hint { font-size: 12px; color: var(--ink-soft); margin-top: 8px; }

.input-row { display: flex; gap: 10px; }
.text-input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  background: var(--blue-50);
  color: var(--ink);
}
.text-input:focus, textarea:focus, .btn:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 2px;
}

.qr-box {
  width: 140px; height: 140px;
  border-radius: 8px;
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.qr-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.status-track {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  margin-top: 20px;
}
.status-track::before {
  content: "";
  position: absolute;
  top: 17px; left: 5%; right: 5%;
  height: 2px;
  background: var(--line);
  z-index: 0;
}
.status-node {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
}
.status-dot {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--line);
  color: var(--ink-soft);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 10px;
  font-size: 14px;
}
.status-node.done .status-dot { background: var(--blue-700); border-color: var(--blue-700); color: var(--white); }
.status-node.current .status-dot { border-color: var(--blue-700); color: var(--blue-700); background: var(--blue-50); }
.status-node.success .status-dot { background: var(--green); border-color: var(--green); color: var(--white); }
.status-node span { font-size: 12.5px; color: var(--ink-soft); font-weight: 600; }
.status-node.done span, .status-node.success span { color: var(--ink); }

.result-box {
  margin-top: 18px;
  border-radius: 10px;
  border: 1px dashed var(--blue-100);
  background: var(--blue-50);
  padding: 14px 16px;
  font-size: 13.5px;
  color: var(--blue-800);
  display: none;
}
.result-box.show { display: block; }

/* ---------- Gallery ---------- */

.tab-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 34px;
  flex-wrap: wrap;
}
.tab-btn {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 13.5px;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .15s ease;
}
.tab-btn:hover { border-color: var(--blue-500); color: var(--blue-700); }
.tab-btn.active { background: var(--blue-700); color: var(--white); border-color: var(--blue-700); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4/3;
  position: relative;
  background: var(--blue-50);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 14px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--white);
  background: linear-gradient(180deg, transparent, rgba(7,26,82,.85) 70%);
}
.gallery-item.wide { grid-column: span 2; }
.gallery-item[hidden] { display: none; }

.center-btn { text-align: center; margin-top: 34px; }

/* ---------- Contact page ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.05fr;
  gap: 20px;
  align-items: start;
}
.info-card, .form-card, .faq-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  background: var(--white);
  height: 100%;
}
.info-card h3, .form-card h3, .faq-card h3 { font-size: 16px; font-weight: 800; margin-bottom: 18px; }

.info-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.info-row .ico { color: var(--blue-700); flex-shrink: 0; font-size: 16px; }

.map-box {
  margin-top: 16px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.map-box iframe { width: 100%; height: 160px; border: 0; display: block; }

.form-card form { display: flex; flex-direction: column; gap: 16px; }

.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 13px 0;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-q .plus { color: var(--blue-700); font-size: 16px; transition: transform .2s ease; }
.faq-item.open .plus { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .2s ease;
  font-size: 13px;
  color: var(--ink-soft);
  padding-right: 10px;
}
.faq-item.open .faq-a { max-height: 200px; padding-bottom: 12px; }

.help-box {
  margin-top: 18px;
  background: var(--blue-700);
  color: var(--white);
  border-radius: 12px;
  padding: 18px;
}
.help-box b { display: block; font-size: 14px; margin-bottom: 4px; }
.help-box p { font-size: 12.5px; color: #d8e0ff; margin: 0 0 12px; }
.help-box .btn { width: 100%; background: var(--white); color: var(--blue-700); }

/* ---------- CTA banner (used on multiple pages) ---------- */

.cta-banner {
  background: linear-gradient(120deg, var(--blue-900), var(--blue-700));
  color: var(--white);
  border-radius: var(--radius);
  padding: 44px;
  text-align: center;
}
.cta-banner h2 { font-size: 24px; font-weight: 800; margin-bottom: 10px; }
.cta-banner p { color: #cfd8ff; margin-bottom: 22px; font-size: 14.5px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--blue-900);
  color: #b9c4ee;
  padding: 46px 0 20px;
  font-size: 13.5px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 30px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-grid h4 { color: var(--white); font-size: 14px; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-grid a:hover { color: var(--white); }
.footer-brand .brand-name { color: var(--white); }
.footer-brand p { max-width: 280px; margin-top: 10px; color: #b9c4ee; }
.footer-bottom {
  text-align: center;
  padding-top: 18px;
  font-size: 12.5px;
  color: #8b98cf;
}

/* ---------- Utility ---------- */

.badge-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.mini-badge {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--blue-700);
  background: var(--blue-100);
  padding: 5px 10px;
  border-radius: 999px;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 60px; }
  .hero-visual { order: -1; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .track-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .pill-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav { flex-wrap: wrap; }
  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    width: 100%;
    order: 3;
    gap: 4px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    margin-top: 10px;
  }
  .hero h1 { font-size: 32px; }
  .process-steps { grid-template-columns: 1fr; gap: 30px; }
  .process-step::after { display: none; }
  .card-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item.wide { grid-column: span 2; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ---------- Background music toggle button ---------- */
.music-toggle {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: none;
  background: var(--blue-700);
  color: var(--white);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  z-index: 999;
  transition: transform 0.2s ease, background 0.2s ease;
}

.music-toggle:hover {
  background: var(--blue-800);
  transform: scale(1.06);
}

.music-toggle .music-icon {
  display: inline-block;
}

.music-toggle.playing .music-icon {
  animation: music-spin 3.2s linear infinite;
}

@keyframes music-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (max-width: 640px) {
  .music-toggle {
    right: 16px;
    bottom: 16px;
    width: 48px;
    height: 48px;
    font-size: 19px;
  }
}
