/* ========================================================
   PT Tunas Muda — Custom Stylesheet
   Theme tokens, layout, components, dark mode, animations
   ======================================================== */

:root {
  /* Brand */
  --brand: #1a3e8c;
  --brand-deep: #0a2050;
  --brand-soft: #5d8aff;
  --brand-tint: #eaf0fc;
  --accent: #ffd60a;
  --accent-deep: #f5b800;

  /* Surfaces */
  --ink: #0f172a;
  --ink-soft: #475569;
  --paper: #ffffff;
  --canvas: #f6f8fc;
  --surface: #ffffff;
  --surface-2: #f9fbff;
  --hairline: rgba(15, 23, 42, 0.08);
  --hairline-strong: rgba(15, 23, 42, 0.14);

  /* (legacy, kept so existing rules don't break) */
  --glass: rgba(255, 255, 255, 0.66);
  --glass-edge: rgba(255, 255, 255, 0.6);

  /* Tinted shadows — 2026 standard */
  --shadow-1: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px -8px rgba(26, 62, 140, 0.12);
  --shadow-2: 0 2px 4px rgba(15, 23, 42, 0.05), 0 24px 48px -16px rgba(26, 62, 140, 0.22);
  --shadow-pop: 0 12px 32px -10px rgba(26, 62, 140, 0.28);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t: 0.28s;
  --t-slow: 0.6s;

  /* Type */
  --font-head: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Radii */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
}

body[data-theme="dark"] {
  --brand: #7da3ff;
  --brand-deep: #4a78e8;
  --brand-tint: rgba(125, 163, 255, 0.10);
  --accent: #ffd60a;
  --accent-deep: #f5b800;

  --ink: #e6ecf5;
  --ink-soft: #94a3b8;
  --paper: #0a1226;
  --canvas: #050a1a;
  --surface: #0e1830;
  --surface-2: #131f3c;
  --hairline: rgba(255, 255, 255, 0.08);
  --hairline-strong: rgba(255, 255, 255, 0.14);

  --glass: rgba(20, 30, 56, 0.7);
  --glass-edge: rgba(255, 255, 255, 0.08);

  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px -10px rgba(0, 0, 0, 0.5);
  --shadow-2: 0 2px 4px rgba(0, 0, 0, 0.45), 0 30px 60px -20px rgba(0, 0, 0, 0.6);
  --shadow-pop: 0 16px 40px -12px rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding-top: 84px;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.65;
  font-size: clamp(0.98rem, 0.93rem + 0.22vw, 1.08rem);
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: color var(--t) ease, background var(--t) ease;
}

/* Subtle aurora/mesh backdrop — slow, low-intensity */
body::before {
  content: "";
  position: fixed;
  inset: -10%;
  z-index: -1;
  background:
    radial-gradient(40% 35% at 20% 18%, rgba(26, 62, 140, 0.12), transparent 70%),
    radial-gradient(38% 30% at 82% 70%, rgba(255, 214, 10, 0.10), transparent 70%),
    radial-gradient(45% 40% at 60% 100%, rgba(93, 138, 255, 0.10), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  animation: aurora 24s ease-in-out infinite alternate;
  will-change: transform;
}
body[data-theme="dark"]::before {
  background:
    radial-gradient(40% 35% at 20% 18%, rgba(93, 138, 255, 0.18), transparent 70%),
    radial-gradient(38% 30% at 82% 70%, rgba(255, 214, 10, 0.08), transparent 70%),
    radial-gradient(45% 40% at 60% 100%, rgba(36, 65, 130, 0.35), transparent 70%);
}

@keyframes aurora {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-3%, 2%, 0) scale(1.05); }
}

h1, h2, h3, h4, .brand-word {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

h1 {
  font-weight: 900;
  letter-spacing: -0.035em;
  text-transform: none;
}
h2 {
  font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.75rem);
  color: var(--ink);
  letter-spacing: -0.025em;
}
h2 strong { color: var(--brand); font-weight: 900; }
body[data-theme="dark"] h2 { color: var(--paper); }
h3 { font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.35rem); }

a { color: inherit; }
::selection { background: var(--accent); color: var(--brand-deep); }

/* ---------- Section heading ---------- */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  margin-bottom: 14px;
  background: var(--brand-tint);
  color: var(--brand);
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
body[data-theme="dark"] .section-eyebrow { color: #a3bfff; }
.section-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 214, 10, 0.25);
}

.section-title {
  display: block;
  margin: 0 auto 6px;
}
.title-rule { display: none; }

/* ---------- Navbar ---------- */
.navbar-custom {
  background: rgba(10, 32, 80, 0.82);
  padding: 14px 0;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: padding var(--t) var(--ease), background var(--t) ease, box-shadow var(--t) var(--ease);
}
.navbar-custom.scrolled {
  padding: 10px 0;
  background: rgba(10, 32, 80, 0.92);
  box-shadow: 0 8px 32px -16px rgba(0, 0, 0, 0.5);
}

.navbar-brand {
  display: flex;
  align-items: center;
  color: #fff !important;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.nav-logo {
  height: 40px;
  width: auto;
  margin-right: 12px;
  border-radius: 8px;
}
.nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  margin: 0 4px;
  padding: 8px 14px !important;
  position: relative;
  border-radius: 999px;
  transition: color var(--t) ease, background var(--t) ease;
}
.nav-link::after { display: none; }
.nav-link:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.08);
}
.nav-link.active {
  color: var(--accent) !important;
  background: rgba(255, 214, 10, 0.12);
}

.theme-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: background var(--t) ease, transform var(--t) var(--ease);
}
.theme-btn:hover { background: rgba(255, 255, 255, 0.18); transform: rotate(-15deg); }

/* ---------- Hero (asymmetric: copy anchored left, image full bleed) ---------- */
.hero {
  position: relative;
  min-height: 600px;
  height: 78vh;
  max-height: 820px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  color: #fff;
  overflow: hidden;
  border-radius: 0 0 var(--r-xl) var(--r-xl);
  margin: 0 max(1rem, 2vw);
  margin-top: 0;
}
.hero-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transform: scale(1.04);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 60% at 0% 100%, rgba(255, 214, 10, 0.18), transparent 55%),
    linear-gradient(95deg, rgba(10, 32, 80, 0.94) 0%, rgba(10, 32, 80, 0.78) 35%, rgba(26, 62, 140, 0.35) 70%, rgba(26, 62, 140, 0.05) 100%);
  z-index: 1;
}
/* subtle grain */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}
.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 620px;
  text-align: left;
}
.hero-copy h1 {
  font-size: clamp(2.2rem, 5.4vw, 4.4rem);
  margin-bottom: 18px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.4);
}
.hero-copy > p {
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  margin: 0;
  opacity: 0.92;
  font-weight: 500;
  max-width: 540px;
}

@media (max-width: 767px) {
  .hero { justify-content: center; text-align: center; }
  .hero::before {
    background:
      radial-gradient(120% 80% at 50% 100%, rgba(255, 214, 10, 0.15), transparent 55%),
      linear-gradient(180deg, rgba(10, 32, 80, 0.85) 0%, rgba(10, 32, 80, 0.6) 60%, rgba(26, 62, 140, 0.4) 100%);
  }
  .hero-copy { text-align: center; max-width: 100%; margin-inline: auto; }
  .hero-copy > p { margin-inline: auto; }
  .hero-ctas { justify-content: center; }
  .hero-tagline { margin-inline: auto; }
}

@media (max-width: 575px) {
  .hero { margin: 0; border-radius: 0; }
}
.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto 22px;
  padding: 7px 16px 7px 8px;
  font-size: clamp(0.8rem, 1.2vw, 0.92rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero-tagline i {
  color: var(--brand-deep);
  background: var(--accent);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 0.7rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-start;
  margin-top: 30px;
}

.btn-cta {
  display: inline-block;
  padding: 12px 32px;
  background: var(--accent);
  color: var(--brand-deep);
  font-family: var(--font-head);
  font-weight: 800;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid var(--accent);
  box-shadow: 0 6px 18px rgba(255, 215, 0, 0.35);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), background var(--t) ease, color var(--t) ease;
  animation: pulse-cta 2.4s ease-in-out 1s 2;
}
.btn-cta:hover {
  transform: translateY(-4px);
  background: transparent;
  color: var(--accent);
  box-shadow: 0 12px 26px rgba(255, 215, 0, 0.4);
  animation: none;
}
.btn-cta--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: none;
  animation: none;
}
.btn-cta--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: #fff;
}
@keyframes pulse-cta {
  0%, 100% { transform: scale(1); box-shadow: 0 6px 18px rgba(255, 215, 0, 0.35); }
  50%      { transform: scale(1.04); box-shadow: 0 10px 28px rgba(255, 215, 0, 0.5); }
}

/* Animated road + motorcycle */
.road-strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 130px;
  z-index: 2;
  overflow: hidden;
}
.road-strip::before {
  content: "";
  position: absolute;
  bottom: 25px;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.35), transparent);
}
.moving-moto {
  position: absolute;
  bottom: 29px;
  left: 0;
  height: 99px;
  opacity: 0.85;
  animation: ride 12s linear infinite;
  will-change: transform;
}
@keyframes ride {
  from { transform: translateX(-180px); }
  to   { transform: translateX(100vw); }
}

/* ---------- Surface panels (modern, hairline-bordered) ---------- */
.panel {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 2.5vw, 2.75rem);
  margin-bottom: 32px;
  box-shadow: var(--shadow-1);
  position: relative;
  overflow: hidden;
}
/* subtle top sheen */
.panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  pointer-events: none;
}
body[data-theme="dark"] .panel::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

/* ---------- Services grid ---------- */
.services-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, 1fr);
}
/* equal-column layout — no grid-template-areas needed */

.service-card {
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 1.75rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-1);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) ease;
  height: 100%;
  overflow: hidden;
}
.service-card::after {
  content: "";
  position: absolute;
  inset: -40% -10% auto -10%;
  height: 60%;
  background: radial-gradient(60% 70% at 50% 0%, rgba(26, 62, 140, 0.08), transparent 70%);
  pointer-events: none;
  transition: opacity var(--t) ease;
  opacity: 0.6;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--hairline-strong);
  box-shadow: var(--shadow-pop);
}
.service-card:hover::after { opacity: 1; }
.service-card h3 { color: var(--ink); letter-spacing: -0.015em; }
body[data-theme="dark"] .service-card h3 { color: var(--paper); }
.service-card p { color: var(--ink-soft); margin: 0; font-size: 0.95rem; }

.icon-circle {
  width: 92px;
  height: 92px;
  border-radius: var(--r-md);
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--brand) 0%, var(--brand-deep) 100%);
  box-shadow: 0 10px 24px -8px rgba(26, 62, 140, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  position: relative;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.icon-circle::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.2), transparent 50%);
  pointer-events: none;
}
.service-card:hover .icon-circle {
  transform: translateY(-2px) rotate(-3deg);
  box-shadow: 0 14px 28px -8px rgba(26, 62, 140, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.icon-circle img {
  max-width: 64px;
  max-height: 64px;
  height: auto;
  width: auto;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.2));
}

@media (max-width: 991px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* Mobile services: stack vertically (kill the carousel — vertical scroll
   reads better than swipe on mobile, all 3 layanan terlihat tanpa interaksi) */
.svc-carousel { display: none !important; }

/* ---------- About section ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}
.about-grid p { color: #4a5568; margin-bottom: 1rem; }
body[data-theme="dark"] .about-grid p { color: #cbd5e0; }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.stat {
  position: relative;
  text-align: center;
  padding: 1.25rem 0.75rem;
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
.stat-num {
  font-family: var(--font-head);
  font-weight: 900;
  color: var(--brand);
  font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem);
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.stat-label { font-size: 0.85rem; color: var(--ink-soft); font-weight: 600; }
.stat-sub {
  display: inline;
  font-size: 0.42em;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  margin-left: 4px;
  vertical-align: 0.45em;
}

/* full-width stat (spans both columns of the 2-col stat grid) */
.stat-grid > .stat--wide {
  grid-column: 1 / -1;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 1rem 1.25rem;
}
.stat-grid > .stat--wide .stat-num {
  margin-bottom: 0;
  font-size: clamp(1.4rem, 1rem + 1.5vw, 2rem);
  white-space: nowrap;
}
.stat-grid > .stat--wide .stat-label {
  font-size: 0.85rem;
  line-height: 1.4;
}

/* ---------- GPS callout (own dedicated panel, diferensiator utama) ---------- */
.gps-callout {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  margin-top: 24px;
  padding: 22px 26px;
  background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-md);
  box-shadow: 0 20px 40px -12px rgba(10, 32, 80, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  text-decoration: none;
  color: #fff;
  position: relative;
  overflow: hidden;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.gps-callout::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 60%;
  height: 200%;
  background: radial-gradient(closest-side, rgba(255, 214, 10, 0.18), transparent);
  pointer-events: none;
}
.gps-callout::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.04 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
  opacity: 0.6;
  pointer-events: none;
}
.gps-callout:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 50px -12px rgba(10, 32, 80, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  color: #fff;
}

.gps-callout-icon {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: var(--brand-deep);
  font-size: 1.4rem;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px -6px rgba(255, 214, 10, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.gps-callout-body { position: relative; z-index: 1; }
.gps-callout-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 8px;
  margin-bottom: 6px;
  font-family: var(--font-head);
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #10b981;
  background: rgba(16, 185, 129, 0.15);
  border-radius: 999px;
}
.gps-callout-badge i {
  font-size: 0.55em;
  animation: gps-pulse 1.8s ease-in-out infinite;
}
.gps-callout-body h4 {
  font-family: var(--font-head);
  font-weight: 800;
  margin: 0 0 4px;
  font-size: clamp(1.05rem, 0.9rem + 0.6vw, 1.3rem);
  letter-spacing: -0.01em;
}
.gps-callout-body p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
}

.gps-callout-cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--brand-deep);
  background: var(--accent);
  border-radius: 999px;
  white-space: nowrap;
  transition: transform var(--t) var(--ease);
}
.gps-callout:hover .gps-callout-cta { transform: translateX(4px); }
.gps-callout:hover .gps-callout-cta i { transform: translateX(2px); }
.gps-callout-cta i { transition: transform var(--t) var(--ease); }

@media (max-width: 575px) {
  .gps-callout {
    grid-template-columns: auto 1fr;
    grid-template-areas: "icon body" "cta cta";
    padding: 18px 20px;
  }
  .gps-callout-icon { grid-area: icon; }
  .gps-callout-body { grid-area: body; }
  .gps-callout-cta { grid-area: cta; justify-content: center; margin-top: 4px; }
}

/* Linked stat — used for the GPS tracker card */
a.stat--link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  background: linear-gradient(135deg, var(--surface-2), var(--brand-tint));
  border-color: rgba(26, 62, 140, 0.18);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) ease;
}
a.stat--link::after {
  content: "";
  position: absolute;
  inset: 0 -30% auto auto;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(26, 62, 140, 0.16), transparent);
  pointer-events: none;
}
body[data-theme="dark"] a.stat--link {
  background: linear-gradient(135deg, var(--surface-2), rgba(93, 138, 255, 0.12));
  border-color: rgba(125, 163, 255, 0.22);
}
a.stat--link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-pop);
  border-color: var(--brand);
  color: inherit;
}
a.stat--link .stat-num {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
a.stat--link .stat-label i {
  margin-left: 4px;
  font-size: 0.7em;
  opacity: 0.55;
  transition: transform var(--t) var(--ease);
}
a.stat--link:hover .stat-label i {
  transform: translate(2px, -2px);
  opacity: 1;
}

.stat-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px 3px 6px;
  font-family: var(--font-head);
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #065f46;
  background: #d1fae5;
  border-radius: 999px;
}
.stat-badge i {
  font-size: 0.6rem;
  color: #10b981;
  animation: gps-pulse 1.8s ease-in-out infinite;
}
body[data-theme="dark"] .stat-badge {
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
}
body[data-theme="dark"] .stat-badge i { color: #34d399; }
@keyframes gps-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.85); }
}

@media (max-width: 767px) {
  .about-grid { grid-template-columns: 1fr; gap: 1.25rem; }
}

/* ---------- Clients marquee ---------- */
.clients-belt {
  position: relative;
  overflow: hidden;
  padding: 12px 0;
  mask-image: linear-gradient(to right, transparent 0, #000 10%, #000 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 10%, #000 90%, transparent 100%);
}
.clients-track {
  display: flex;
  gap: 30px;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.clients-belt:hover .clients-track { animation-play-state: paused; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.client-tile {
  flex: 0 0 auto;
  width: 200px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) ease;
}
.client-tile:hover {
  transform: translateY(-5px) scale(1.05);
  border-color: var(--accent);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}
.client-tile img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* On mobile: drop the marquee, show a static grid (reads as "established", not "filler") */
@media (max-width: 767px) {
  .clients-belt { mask-image: none; -webkit-mask-image: none; padding: 0; }
  .clients-track {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
    animation: none;
  }
  .client-tile {
    width: 100%;
    height: 90px;
    padding: 12px;
  }
}

/* ---------- Contact cards ---------- */
.contact-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px;
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-1);
  text-decoration: none;
  color: var(--ink);
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: transform var(--t) var(--ease), border-color var(--t) ease, box-shadow var(--t) ease;
}
.contact-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--brand), var(--brand-deep));
  transition: width var(--t) var(--ease), background var(--t) ease;
}
.contact-card:hover {
  transform: translateY(-4px);
  border-color: var(--hairline-strong);
  box-shadow: var(--shadow-pop);
}
.contact-card:hover::before { width: 6px; background: linear-gradient(180deg, var(--accent), var(--accent-deep)); }
a.contact-card:hover { color: var(--ink); }
body[data-theme="dark"] a.contact-card:hover { color: var(--paper); }

.contact-ico {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.15rem;
  background: linear-gradient(140deg, var(--brand), var(--brand-deep));
  box-shadow: 0 8px 16px -6px rgba(26, 62, 140, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: transform var(--t) var(--ease);
}
.contact-card:hover .contact-ico { transform: translateY(-2px) rotate(-4deg); }

.contact-body h3 { color: var(--ink); margin-bottom: 6px; font-size: 1.02rem; letter-spacing: -0.01em; }
body[data-theme="dark"] .contact-body h3 { color: var(--paper); }
.contact-body p, .contact-body div { margin: 0; color: var(--ink-soft); }

/* Info variant — used for non-clickable cards like Jam Operasional.
   Softer background, no animated accent bar, accent-coloured icon
   so it doesn't compete visually with the actionable cards next to it. */
.contact-card--info {
  background: linear-gradient(180deg, var(--surface), var(--canvas));
  cursor: default;
}
.contact-card--info::before { display: none; }
.contact-card--info:hover { transform: none; box-shadow: var(--shadow-1); }
.contact-ico--accent {
  background: linear-gradient(140deg, var(--accent), var(--accent-deep));
  color: var(--brand-deep);
  box-shadow: 0 8px 16px -6px rgba(255, 214, 10, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.contact-card:hover .contact-ico--accent { transform: none; }

.hover-hint {
  display: block;
  margin-top: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-deep);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity var(--t) ease, max-height var(--t) ease;
}
.contact-card:hover .hover-hint { opacity: 1; max-height: 50px; }

.hours strong { color: var(--brand-deep); }
body[data-theme="dark"] .hours strong { color: #a3bfff; }
.hours .closed { color: #dc3545; }

@media (max-width: 575px) {
  .contact-card { flex-direction: column; align-items: center; text-align: center; }
  .contact-body h3, .contact-body p, .contact-body div { text-align: center; }
}

/* ---------- Map ---------- */
.map-panel {
  padding: 25px;
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: 14px;
  box-shadow: var(--shadow-1);
  margin-top: 24px;
}
.map-panel h3 {
  color: var(--brand);
  font-family: var(--font-head);
  font-weight: 700;
  text-align: center;
  font-size: clamp(1rem, 0.9rem + 0.6vw, 1.3rem);
  line-height: 1.3;
}
/* Two-column: interactive map on the left, info card on the right */
.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
  gap: 1.25rem;
  margin-top: 20px;
}
@media (max-width: 767px) {
  .map-layout { grid-template-columns: 1fr; }
}

.map-frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-1);
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: #e8eef7;
  min-height: 320px;
  aspect-ratio: 16 / 10;
}
body[data-theme="dark"] .map-frame { background: #1a2542; border-color: rgba(255, 255, 255, 0.08); }
.map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.map-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: 14px;
  box-shadow: var(--shadow-1);
}

.map-info-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.map-pin {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  font-size: 1.25rem;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  box-shadow: 0 6px 16px rgba(26, 62, 140, 0.3);
}
.map-info h4 {
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--brand-deep);
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.3px;
}
body[data-theme="dark"] .map-info h4 { color: var(--paper); }
.map-tag {
  display: inline-block;
  margin-top: 2px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--brand);
  background: rgba(26, 62, 140, 0.1);
  border-radius: 999px;
  padding: 2px 10px;
}
body[data-theme="dark"] .map-tag { background: rgba(93, 138, 255, 0.18); color: #a3bfff; }

.map-address {
  margin: 0;
  line-height: 1.55;
  color: var(--ink);
  font-size: 0.95rem;
}

.map-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(26, 62, 140, 0.05);
  border-left: 3px solid var(--accent);
  font-size: 0.85rem;
  color: #4a5568;
}
body[data-theme="dark"] .map-meta { background: rgba(255, 255, 255, 0.04); color: #cbd5e0; }
.map-meta i { color: var(--brand); margin-right: 6px; width: 14px; text-align: center; }
body[data-theme="dark"] .map-meta i { color: #a3bfff; }

.map-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
}
.map-actions .map-btn--primary { grid-column: 1 / -1; }

.map-btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(26, 62, 140, 0.18);
  background: rgba(255, 255, 255, 0.55);
  color: var(--brand-deep);
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--t) var(--ease), background var(--t) ease, color var(--t) ease, box-shadow var(--t) ease;
}
.map-btn:hover {
  transform: translateY(-2px);
  background: #fff;
  color: var(--brand);
  box-shadow: 0 6px 16px rgba(26, 62, 140, 0.14);
}
body[data-theme="dark"] .map-btn {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--paper);
}
body[data-theme="dark"] .map-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.map-btn--primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(26, 62, 140, 0.28);
  font-size: 0.92rem;
  padding: 12px 16px;
}
.map-btn--primary:hover { color: #fff; background: linear-gradient(135deg, var(--brand-deep), var(--brand)); }

.map-btn.is-copied { background: #d1fae5; color: #065f46; border-color: #6ee7b7; }
body[data-theme="dark"] .map-btn.is-copied { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; border-color: rgba(110, 231, 183, 0.4); }

/* ---------- WhatsApp floater ---------- */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 28px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  box-shadow: 0 14px 32px -8px rgba(37, 211, 102, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  text-decoration: none;
  z-index: 100;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), opacity var(--t) ease, bottom var(--t) ease;
}
.wa-float::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  border: 2px solid rgba(37, 211, 102, 0.45);
  animation: ripple 2.2s var(--ease-out) infinite;
}
.wa-float:hover { transform: scale(1.08); color: #fff; box-shadow: 0 18px 38px -8px rgba(37, 211, 102, 0.65); }
.wa-float:hover::before { animation: none; }
.wa-float.hidden { opacity: 0; pointer-events: none; transform: translateY(20px) scale(0.85); }

@keyframes ripple {
  0%   { transform: scale(0.9); opacity: 0.9; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(180deg, rgba(10, 32, 80, 0.96), rgba(10, 32, 80, 1));
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 214, 10, 0.5), transparent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (max-width: 767px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}
.footer-brand h5 {
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  font-size: 1.1rem;
}
.footer-brand p { margin: 0; font-size: 0.88rem; line-height: 1.6; opacity: 0.8; }
.footer-col h6 {
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
  opacity: 0.6;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; font-size: 0.9rem; }
.footer-col a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: color var(--t) ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-col a:hover { color: var(--accent); }
.footer-col a i { width: 14px; opacity: 0.7; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}
.footer-bottom a { color: rgba(255, 255, 255, 0.7); text-decoration: none; }
.footer-bottom a:hover { color: var(--accent); }

/* ---------- Reveal on scroll (modern view timeline + fallback) ---------- */
@supports (animation-timeline: view()) {
  .panel, .service-card, .contact-card, .map-panel {
    animation: rise linear forwards;
    animation-timeline: view();
    animation-range: entry 0 cover 30%;
  }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Autofill: keep our look when browser autofills the form ---------- */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
  box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.95) inset !important;
  -webkit-text-fill-color: var(--ink) !important;
  border-radius: 10px !important;
  transition: background-color 9999s ease-in-out 0s !important;
}
body[data-theme="dark"] input:-webkit-autofill,
body[data-theme="dark"] textarea:-webkit-autofill,
body[data-theme="dark"] select:-webkit-autofill {
  box-shadow: 0 0 0 1000px rgba(20, 30, 50, 0.95) inset !important;
  -webkit-text-fill-color: var(--paper) !important;
}

/* ---------- Lifted WhatsApp floater when contact section is in view ---------- */
.wa-float.lifted { bottom: 90px; }

/* Print */
@media print {
  .navbar-custom, .wa-float, .hero::before, .road-strip { display: none !important; }
  body { background: #fff !important; color: #000 !important; padding-top: 0; }
  .panel { background: #fff !important; box-shadow: none !important; border: 1px solid #ddd !important; }
}

/* ---------- Accessibility: respect reduced-motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .moving-moto, .wa-float, .clients-track, body::before { animation: none !important; }
  .panel, .service-card, .contact-card, .map-panel { opacity: 1 !important; transform: none !important; }
}
