/* =========================================================
   Toko Wijaya — Modern Stylesheet
   ========================================================= */

:root {
  --primary: #e11d48;
  --primary-600: #be123c;
  --primary-700: #9f1239;
  --primary-50: #fff1f2;
  --accent: #f59e0b;
  --accent-600: #d97706;
  --dark: #0f172a;
  --dark-2: #1e293b;
  --muted: #64748b;
  --light: #f8fafc;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f9fafb;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 10px 30px -10px rgba(15, 23, 42, .15);
  --shadow-lg: 0 25px 50px -12px rgba(15, 23, 42, .25);
  --container: 1200px;
  --transition: .3s cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--dark);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; margin: 0; }

h1, h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
  line-height: 1.2;
  margin: 0 0 .5rem;
  letter-spacing: -.02em;
}
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }
p  { color: var(--muted); margin: 0 0 1rem; }

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-light { color: #fff; }
.text-light-mute { color: rgba(255, 255, 255, .8); }

/* Buttons */
.btn {
  --btn-bg: var(--primary);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  box-shadow: 0 6px 18px -8px rgba(225, 29, 72, .55);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 25px -10px rgba(225, 29, 72, .55);
}
.btn--primary { --btn-bg: var(--primary); }
.btn--primary:hover { --btn-bg: var(--primary-600); }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--dark);
  border-color: var(--line);
  box-shadow: none;
}
.btn--ghost:hover { --btn-bg: var(--dark); --btn-fg: #fff; border-color: var(--dark); }
.btn--white { --btn-bg: #fff; --btn-fg: var(--dark); box-shadow: var(--shadow); }
.btn--white:hover { --btn-bg: var(--light); }
.btn--sm { padding: .6rem 1rem; font-size: .875rem; }
.btn--lg { padding: 1rem 1.75rem; font-size: 1.05rem; }

/* Topbar */
.topbar {
  background: var(--dark);
  color: rgba(255, 255, 255, .85);
  font-size: .82rem;
}
.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding: .55rem 0;
}
.topbar__divider { opacity: .35; }
.topbar a { color: #fff; transition: color var(--transition); }
.topbar a:hover { color: var(--accent); }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}
.header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 0;
}

.logo { display: inline-flex; align-items: center; gap: .65rem; }
.logo__mark {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  letter-spacing: .03em;
  box-shadow: 0 8px 20px -8px rgba(225, 29, 72, .55);
}
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__text strong { font-family: 'Poppins', sans-serif; font-weight: 700; }
.logo__text small { font-size: .72rem; color: var(--muted); }
.logo--light .logo__text strong { color: #fff; }
.logo--light .logo__text small { color: rgba(255, 255, 255, .65); }

/* Nav */
.nav { display: flex; gap: .25rem; }
.nav a {
  position: relative;
  padding: .5rem .9rem;
  font-weight: 500;
  font-size: .95rem;
  border-radius: 999px;
  color: var(--dark-2);
  transition: var(--transition);
}
.nav a:hover { background: var(--primary-50); color: var(--primary); }
.nav a.is-active { background: var(--primary-50); color: var(--primary); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: var(--dark);
  margin: 4px auto;
  transition: var(--transition);
  border-radius: 2px;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  padding: 4rem 0 5rem;
  overflow: hidden;
  isolation: isolate;
  color: var(--dark);
}
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 90% 0%, rgba(245, 158, 11, .18), transparent 60%),
    radial-gradient(45% 40% at 0% 100%, rgba(225, 29, 72, .15), transparent 60%),
    linear-gradient(180deg, #fff7ed 0%, #ffffff 50%, #fff1f2 100%);
  z-index: -1;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 3rem;
  align-items: center;
}
.hero__content { max-width: 620px; }
.hero__lead {
  font-size: 1.075rem;
  margin: 1rem 0 1.75rem;
  color: var(--dark-2);
  opacity: .85;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2.25rem; }
.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 1.75rem;
  border-top: 1px dashed var(--line);
}
.stat strong {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  color: var(--primary);
}
.stat span { font-size: .82rem; color: var(--muted); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem .85rem;
  border-radius: 999px;
  background: rgba(225, 29, 72, .08);
  color: var(--primary);
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(225, 29, 72, .15);
}
.badge i { font-size: .75rem; }

.hero__media { position: relative; }
.hero__card { 
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: rotate(2deg);
  transition: var(--transition);
}
.hero__card:hover { transform: rotate(0); }
.hero__card picture { display: block; }
.hero__card img {
  width: 100%;
  height: 540px;
  object-fit: cover;
  background: #f1f5f9;
}
.hero__badge {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  display: flex;
  align-items: center;
  gap: .65rem;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(10px);
  padding: .65rem .9rem;
  border-radius: 14px;
  box-shadow: var(--shadow);
  font-size: .85rem;
}
.hero__badge i { color: var(--accent); font-size: 1.4rem; }
.hero__badge strong { display: block; font-weight: 700; color: var(--dark); }
.hero__badge small { color: var(--muted); font-size: .75rem; }
.hero__chip {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--primary);
  color: #fff;
  padding: .55rem .85rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  box-shadow: 0 8px 20px -8px rgba(225, 29, 72, .65);
}

.hero__wave {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  color: var(--bg);
  pointer-events: none;
}
.hero__wave svg { display: block; width: 100%; height: 70px; }

/* Marquee */
.marquee {
  background: var(--dark);
  color: #fff;
  overflow: hidden;
  padding: .9rem 0;
  border-block: 1px solid rgba(255, 255, 255, .05);
}
.marquee__track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: scroll 30s linear infinite;
  font-size: .95rem;
  font-weight: 500;
}
.marquee__track span { display: inline-flex; align-items: center; gap: .5rem; }
.marquee__track i { color: var(--accent); }
@keyframes scroll {
  to { transform: translateX(-50%); }
}

/* Sections */
.section { padding: 5rem 0; }
.section--alt { background: var(--bg-soft); }
.section--dark {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.section--dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(40% 50% at 80% 20%, rgba(245, 158, 11, .12), transparent 60%),
    radial-gradient(40% 50% at 20% 80%, rgba(225, 29, 72, .12), transparent 60%);
  pointer-events: none;
}

.section__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}
.section__head p { font-size: 1.05rem; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: .75rem;
}
.eyebrow--light { color: var(--accent); }

/* Cards (services) */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.card {
  position: relative;
  padding: 2rem 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: var(--transition);
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.card:hover::before { transform: scaleX(1); }
.card__icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary-50), #fef3c7);
  color: var(--primary);
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
  transition: var(--transition);
}
.card:hover .card__icon {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  transform: rotate(-6deg) scale(1.05);
}

/* Split sections */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.split--reverse .split__media { order: 2; }
.split__content .eyebrow { margin-top: 0; }
.split__content h2 { margin-bottom: 1rem; }
.check-list { display: grid; gap: .65rem; margin: 1.25rem 0 1.75rem; }
.check-list li { display: flex; gap: .65rem; align-items: flex-start; }
.check-list i { color: #16a34a; margin-top: .3rem; }
.section--dark .check-list { color: rgba(255, 255, 255, .9); }

.floating-img {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #fff7ed, #fef3c7);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}
.floating-img--dark {
  background: linear-gradient(135deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .08);
}
.floating-img picture { display: block; }
.floating-img img { margin-inline: auto; max-height: 380px; width: auto; height: auto; object-fit: contain; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.sticker {
  position: absolute;
  display: grid; place-items: center;
  text-align: center;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  border-radius: 50%;
  box-shadow: var(--shadow);
  animation: spin-slow 12s linear infinite;
}
.sticker--1 {
  width: 110px; height: 110px;
  background: var(--accent);
  color: #fff;
  font-size: .85rem;
  top: -20px; right: -20px;
  line-height: 1.15;
}
.sticker--2 {
  width: 90px; height: 90px;
  background: var(--primary);
  color: #fff;
  font-size: .8rem;
  bottom: -15px; left: -15px;
  animation-direction: reverse;
}
@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

/* Categories */
.categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}
.cat {
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  transition: var(--transition);
  text-align: center;
  cursor: pointer;
}
.cat:hover {
  transform: translateY(-4px);
  border-color: var(--cat, var(--primary));
  box-shadow: var(--shadow);
}
.cat i {
  display: grid; place-items: center;
  width: 56px; height: 56px;
  margin: 0 auto 1rem;
  border-radius: 14px;
  background: var(--cat, var(--primary-50));
  color: var(--dark);
  font-size: 1.4rem;
  transition: var(--transition);
}
.cat:hover i { transform: scale(1.1) rotate(6deg); }
.cat h4 { margin-bottom: .25rem; }
.cat small { color: var(--muted); font-size: .82rem; }

/* Payments */
.payments {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1.5rem 0 2rem;
}
.pay {
  padding: .55rem 1rem;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  color: #fff;
  transition: var(--transition);
}
.pay:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* Testimonials */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.testimonial {
  padding: 2rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: var(--transition);
  position: relative;
}
.testimonial::before {
  content: '"';
  position: absolute;
  top: -10px; right: 1.5rem;
  font-size: 6rem;
  font-family: Georgia, serif;
  color: var(--primary-50);
  line-height: 1;
  z-index: 0;
}
.testimonial:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.testimonial > * { position: relative; z-index: 1; }
.testimonial__stars { color: var(--accent); margin-bottom: 1rem; font-size: .9rem; }
.testimonial p { color: var(--dark-2); font-style: italic; margin-bottom: 1.5rem; }
.testimonial__user { display: flex; align-items: center; gap: .75rem; }
.testimonial__user strong { display: block; }
.testimonial__user small { color: var(--muted); font-size: .8rem; }

.avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700;
  color: #fff;
  font-family: 'Poppins', sans-serif;
}
.avatar--1 { background: linear-gradient(135deg, #f43f5e, #f97316); }
.avatar--2 { background: linear-gradient(135deg, #10b981, #06b6d4); }
.avatar--3 { background: linear-gradient(135deg, #8b5cf6, #ec4899); }

/* CTA */
.cta {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 60% at 50% 50%, rgba(255, 255, 255, .15), transparent);
  pointer-events: none;
}
.cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, .9); margin: 0; }

/* Footer */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, .75);
  padding-top: 4rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1.4fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer__brand p { margin: 1rem 0 1.5rem; color: rgba(255, 255, 255, .7); font-size: .92rem; }
.footer h4 {
  color: #fff;
  margin-bottom: 1.25rem;
  font-size: 1rem;
}
.footer ul li { margin-bottom: .55rem; font-size: .92rem; }
.footer a { transition: color var(--transition); }
.footer a:hover { color: var(--accent); }
.contact-list li { display: flex; gap: .65rem; align-items: flex-start; }
.contact-list i { color: var(--accent); margin-top: .3rem; }

.socials { display: flex; gap: .55rem; }
.socials a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .06);
  border-radius: 12px;
  font-size: 1rem;
  transition: var(--transition);
}
.socials a:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-3px);
}

.map {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
}
.map iframe { width: 100%; height: 180px; border: 0; display: block; filter: saturate(.9); }

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .07);
  padding: 1.25rem 0;
  font-size: .85rem;
  color: rgba(255, 255, 255, .6);
}
.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
}

/* Floating WhatsApp */
.fab {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  width: 60px; height: 60px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.6rem;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .6);
  z-index: 40;
  transition: var(--transition);
}
.fab:hover { transform: scale(1.08); }
.fab__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25d366;
  opacity: .4;
  animation: pulse 2s ease-out infinite;
  z-index: -1;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: .5; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Back to top */
.back-top {
  position: fixed;
  bottom: 1.5rem; left: 1.5rem;
  width: 44px; height: 44px;
  background: var(--dark);
  color: #fff;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  display: grid; place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 40;
  box-shadow: var(--shadow);
}
.back-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-top:hover { background: var(--primary); }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero__card img { height: 420px; }
  .split { grid-template-columns: 1fr; gap: 2.5rem; }
  .split--reverse .split__media { order: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 100%; left: 1rem; right: 1rem;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: .75rem;
    box-shadow: var(--shadow);
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s ease, opacity .25s ease;
  }
  .nav.is-open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }
  .nav a { padding: .8rem 1rem; }
  .header__cta { display: none; }
  .topbar__inner { font-size: .75rem; }
  .topbar__divider { display: none; }
  .section { padding: 3.5rem 0; }
  .hero { padding: 2.5rem 0 3.5rem; }
  .cta__inner { text-align: center; justify-content: center; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; padding-bottom: 2rem; }
  .footer__bottom-inner { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
  .hero__stats { grid-template-columns: 1fr; gap: .75rem; }
  .hero__card img { height: 320px; }
  .sticker--1 { width: 90px; height: 90px; font-size: .75rem; }
  .sticker--2 { width: 70px; height: 70px; font-size: .7rem; }
  .fab { width: 54px; height: 54px; font-size: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
