:root {
  --blue-900: #0a2a66;
  --blue-700: #1552c0;
  --blue-600: #1e6ef2;
  --blue-500: #2f80ff;
  --blue-100: #e8f1ff;
  --blue-50: #f3f8ff;
  --white: #ffffff;
  --text: #16233d;
  --text-soft: #5a6b87;
  --wa: #25d366;
  --wa-dark: #1ebe5b;
  --shadow: 0 20px 45px rgba(21, 82, 192, 0.15);
  --radius: 18px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Poppins", system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

a { text-decoration: none; color: inherit; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: .92rem; }
.btn-lg { padding: 16px 34px; font-size: 1.1rem; }
.btn-block { width: 100%; }

.btn-wa {
  background: var(--wa);
  color: #fff;
  box-shadow: 0 10px 24px rgba(37, 211, 102, .35);
}
.btn-wa:hover { background: var(--wa-dark); }

.btn-outline {
  background: transparent;
  color: var(--blue-700);
  border-color: var(--blue-600);
}
.btn-outline:hover { background: var(--blue-100); }

.wa-icon { width: 20px; height: 20px; fill: currentColor; }

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--blue-100);
  transition: box-shadow .3s ease;
}
.navbar.scrolled { box-shadow: 0 6px 20px rgba(21, 82, 192, .08); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 44px; width: auto; }
.brand-name {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--blue-900);
  letter-spacing: -.3px;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-weight: 500; color: var(--text); transition: color .2s; }
.nav-links a:not(.btn):hover { color: var(--blue-600); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px; height: 3px; background: var(--blue-900); border-radius: 3px;
  transition: .3s;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--blue-50) 0%, #ffffff 60%);
  padding: 80px 0 90px;
}
.hero-bg-shape {
  position: absolute;
  top: -180px; right: -160px;
  width: 620px; height: 620px;
  background: radial-gradient(circle at 30% 30%, var(--blue-500), var(--blue-700));
  opacity: .12;
  border-radius: 50%;
  filter: blur(10px);
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 50px;
  align-items: center;
}
.badge {
  display: inline-block;
  background: var(--blue-100);
  color: var(--blue-700);
  font-weight: 600;
  font-size: .85rem;
  padding: 7px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
}
.hero-text h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.12;
  font-weight: 800;
  color: var(--blue-900);
  letter-spacing: -1px;
}
.hero-text h1 .accent { color: var(--blue-600); }
.hero-sub {
  margin: 20px 0 30px;
  font-size: 1.1rem;
  color: var(--text-soft);
  max-width: 540px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats {
  display: flex;
  gap: 34px;
  margin-top: 42px;
  flex-wrap: wrap;
}
.stat strong {
  display: block;
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  color: var(--blue-700);
  font-weight: 800;
  line-height: 1;
}
.stat > span { color: var(--text-soft); font-size: clamp(.9rem, 2.5vw, 1.05rem); display: block; margin-top: 6px; }

/* Rolling odometer counter */
.stat strong.roller {
  display: inline-flex;
  align-items: flex-start;
  line-height: 1;
}
.roll-col {
  display: inline-block;
  height: 1em;
  line-height: 1em;
  overflow: hidden;
  vertical-align: top;
}
.roll-strip {
  display: block;
  transform: translateY(0);
  transition: transform 2.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.roll-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 1em;
  line-height: 1;
}
.roll-suffix { margin-left: 2px; line-height: 1em; }

.hero-visual { display: flex; justify-content: center; }
.hero-card {
  background: linear-gradient(160deg, var(--blue-700), var(--blue-500));
  color: #fff;
  border-radius: 26px;
  padding: 40px 34px;
  width: 100%;
  max-width: 360px;
  text-align: center;
  box-shadow: var(--shadow);
}
.hero-logo {
  width: 120px; height: 120px;
  object-fit: contain;
  background: #fff;
  border-radius: 24px;
  padding: 14px;
  margin: 0 auto 20px;
  display: block;
}
.hero-card-title { font-size: 1.5rem; font-weight: 800; }
.hero-card-desc { opacity: .9; margin: 6px 0 24px; font-size: .95rem; }

/* Sections */
.section { padding: 84px 0; }
.section-alt { background: var(--blue-50); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.section-tag {
  color: var(--blue-600);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: .8rem;
}
.section-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: var(--blue-900);
  font-weight: 800;
  margin: 8px 0 12px;
  letter-spacing: -.5px;
}
.section-head p { color: var(--text-soft); }

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--blue-100);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.service-icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  font-size: 1.7rem;
  background: var(--blue-100);
  border-radius: 14px;
  margin-bottom: 16px;
}
.service-card h3 { font-size: 1.12rem; color: var(--blue-900); margin-bottom: 6px; }
.service-card p { color: var(--text-soft); font-size: .95rem; }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.gallery-item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(21, 82, 192, .1);
  background: #fff;
  border: 1px solid var(--blue-100);
}
.gallery-item-wide { grid-column: span 2; }
.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  transition: transform .4s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item-wide { grid-column: span 2; }
}
@media (max-width: 520px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item-wide { grid-column: span 1; }
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.feature {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(21, 82, 192, .06);
}
.feature-icon { font-size: 2rem; margin-bottom: 10px; }
.feature h3 { color: var(--blue-900); font-size: 1.05rem; margin-bottom: 6px; }
.feature p { color: var(--text-soft); font-size: .92rem; }

/* CTA */
.cta {
  background: linear-gradient(150deg, var(--blue-700), var(--blue-500));
  color: #fff;
  padding: 76px 0;
}
.cta-inner { text-align: center; }
.cta h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 800; }
.cta p { opacity: .92; margin: 12px 0 28px; font-size: 1.1rem; }

/* Footer */
.footer {
  background: var(--blue-900);
  color: #cdd9f0;
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-logo {
  height: 50px; width: 50px; object-fit: contain;
  background: #fff; border-radius: 12px; padding: 6px;
}
.footer-brand .brand-name { color: #fff; }
.footer-brand p { font-size: .9rem; }
.footer-copy { font-size: .88rem; }

/* Floating WA */
.fab-wa {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 60px; height: 60px;
  background: var(--wa);
  border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: 0 12px 28px rgba(37, 211, 102, .45);
  z-index: 200;
  animation: pulse 2.2s infinite;
}
.fab-wa svg { width: 32px; height: 32px; fill: #fff; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-card { max-width: 320px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav-links {
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    background: #fff;
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid var(--blue-100);
    box-shadow: 0 12px 24px rgba(21, 82, 192, .1);
    transform: translateY(-140%);
    transition: transform .3s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: flex; }
}
@media (max-width: 520px) {
  .services-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 26px; justify-content: center; }
  .hero-cta .btn { flex: 1; }
  .stat { text-align: center; }
}

/* Lokasi / Map */
.map-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 28px;
  align-items: stretch;
}
.map-info {
  background: #fff;
  border: 1px solid var(--blue-100);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(21, 82, 192, .06);
}
.map-info h3 { color: var(--blue-900); font-size: 1.4rem; margin-bottom: 10px; }
.map-address { color: var(--text-soft); line-height: 1.9; margin-bottom: 22px; }
.map-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.map-embed {
  min-height: 360px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--blue-100);
}
.map-embed iframe { display: block; width: 100%; height: 100%; min-height: 360px; }
@media (max-width: 820px) {
  .map-wrap { grid-template-columns: 1fr; }
  .map-embed { min-height: 300px; }
  .map-embed iframe { min-height: 300px; }
}

/* Beri jarak antara info/tombol dan peta (kenyamanan klik, terutama HP) */
.map-wrap { gap: 40px; }
.map-info { padding-bottom: 34px; }
.map-actions { margin-top: 6px; }
@media (max-width: 820px) {
  .map-wrap { gap: 26px; }
  .map-info { padding-bottom: 26px; }
  .map-actions { gap: 14px; }
  .map-actions .btn { flex: 1 1 auto; text-align: center; }
  .map-embed { margin-top: 6px; }
}
