/* ==========================================================================
   Jasa Kolam Renang Bogor — Stylesheet
   Tema: Biru - Putih, modern, bersih
   ========================================================================== */

:root {
  --blue-900: #073763;
  --blue-800: #0a4a82;
  --blue-700: #0f5ea8;
  --blue-600: #1478c8;
  --blue-500: #1e90e0;
  --blue-400: #4fadea;
  --blue-100: #e7f3fc;
  --blue-50: #f3f9fe;
  --aqua: #00b8d9;
  --white: #ffffff;
  --gray-50: #f7fafc;
  --gray-100: #eef2f6;
  --gray-300: #cbd5e0;
  --gray-500: #718096;
  --gray-600: #4a5568;
  --gray-700: #374151;
  --gray-800: #2d3748;
  --gray-900: #1a202c;
  --wa-green: #25d366;
  /* Radius & shadow diperbesar/diperhalus dari versi sebelumnya untuk
     kesan "modern minimalis" -- sudut lebih lembut, bayangan lebih
     difus (tidak tajam), bukan angka acak. */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --shadow-sm: 0 4px 16px rgba(7, 55, 99, 0.06);
  --shadow-md: 0 12px 32px rgba(7, 55, 99, 0.10);
  --shadow-lg: 0 24px 56px rgba(7, 55, 99, 0.14);
  --container: 1180px;
  /* Inter sebagai font utama (dimuat via Google Fonts di render_head()
     & tiap halaman mandiri) -- fallback ke system font stack lama
     kalau Google Fonts gagal dimuat, supaya teks tetap terbaca normal. */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0 0 .5em; color: var(--blue-900); line-height: 1.2; font-weight: 800; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
section { padding: 88px 0; }
.section-alt { background: var(--blue-50); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.eyebrow {
  display: inline-block;
  color: var(--blue-600);
  background: var(--blue-100);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
.section-head p { color: var(--gray-600); font-size: 1.02rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .96rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.4,0,.2,1), box-shadow .25s cubic-bezier(.4,0,.2,1), background .2s ease;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); transition-duration: .1s; }
.btn-primary { background: var(--blue-600); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--blue-700); box-shadow: var(--shadow-md); }
.btn-white { background: var(--white); color: var(--blue-700); }
.btn-white:hover { box-shadow: var(--shadow-md); }
.btn-outline { border-color: rgba(255,255,255,.6); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-wa { background: var(--wa-green); color: var(--white); }
.btn-wa:hover { background: #1eb857; box-shadow: var(--shadow-md); }
.btn-block { width: 100%; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-100);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--blue-900); font-size: 1.05rem; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(145deg, var(--blue-500), var(--aqua));
  display: flex; align-items: center; justify-content: center; flex: none;
}
.brand-mark svg { width: 22px; height: 22px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a, .nav-links button {
  font-weight: 600; color: var(--gray-700); font-size: .95rem;
  background: none; border: none; padding: 0; margin: 0; cursor: pointer; font-family: inherit;
  transition: color .2s ease;
}
.nav-links a:hover, .nav-links button:hover { color: var(--blue-600); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-phone { display: none; }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer; padding: 6px;
}
.nav-toggle svg { width: 26px; height: 26px; color: var(--blue-800); }

@media (min-width: 860px) { .nav-phone { display: inline-flex; align-items:center; gap:6px; font-weight:600; color: var(--blue-700); } }

@media (max-width: 900px) {
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white);
    flex-direction: column; align-items: stretch; gap: 0;
    box-shadow: var(--shadow-md);
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .nav-links.open { max-height: 420px; }
  .nav-links a, .nav-links button { display: block; width: 100%; text-align: left; padding: 14px 20px; border-bottom: 1px solid var(--gray-100); }
  .nav-toggle { display: inline-flex; }
}

/* Hero */
.hero {
  background: linear-gradient(120deg, var(--blue-900) 0%, var(--blue-700) 55%, var(--aqua) 130%);
  color: var(--white);
  padding: 90px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(255,255,255,.15), transparent 45%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3);
  padding: 7px 16px; border-radius: 999px; font-size: .82rem; font-weight: 600; margin-bottom: 18px;
}
.hero h1 { color: var(--white); font-size: clamp(2rem, 4.2vw, 2.9rem); margin-bottom: .45em; }
.hero p.lead { color: rgba(255,255,255,.9); font-size: 1.08rem; max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-stats { display: flex; gap: 28px; margin-top: 40px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-size: 1.5rem; color: var(--white); }
.hero-stats div span { font-size: .82rem; color: rgba(255,255,255,.8); }
.hero-visual {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius-lg);
  padding: 22px;
  backdrop-filter: blur(4px);
}
.hero-visual svg { width: 100%; height: auto; }
.hero-visual img { width: 100%; height: auto; display: block; border-radius: calc(var(--radius-lg) - 8px); object-fit: cover; }
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 420px; margin: 0 auto; }
}

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s cubic-bezier(.4,0,.2,1), box-shadow .3s cubic-bezier(.4,0,.2,1), border-color .3s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--blue-100); }
.service-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(145deg, var(--blue-100), var(--white));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.service-icon svg { width: 28px; height: 28px; color: var(--blue-600); }
.service-card h3 { font-size: 1.12rem; }
.service-card p { color: var(--gray-600); font-size: .94rem; margin-bottom: 0; }

/* Why us */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.why-item { display: flex; gap: 16px; align-items: flex-start; }
.why-icon {
  width: 46px; height: 46px; border-radius: 12px; flex: none;
  background: var(--blue-600); display: flex; align-items: center; justify-content: center;
}
.why-icon svg { width: 24px; height: 24px; color: var(--white); }
.why-item h3 { font-size: 1.02rem; margin-bottom: .3em; }
.why-item p { color: var(--gray-600); font-size: .92rem; margin: 0; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 26px; counter-reset: step; }
.step {
  position: relative; padding: 30px 24px 24px; background: var(--white);
  border-radius: var(--radius-md); border: 1px solid var(--gray-100); box-shadow: var(--shadow-sm);
  transition: transform .3s cubic-bezier(.4,0,.2,1), box-shadow .3s cubic-bezier(.4,0,.2,1);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-num {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(145deg, var(--blue-600), var(--aqua));
  color: var(--white); font-weight: 800; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.step h4 { font-size: 1rem; }
.step p { color: var(--gray-600); font-size: .9rem; margin: 0; }

/* Area map */
.area-map-wrap {
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm); margin-bottom: 28px;
}
#area-map { height: 420px; width: 100%; background: var(--blue-100); z-index: 0; }
.leaflet-popup-content { font-family: var(--font); font-size: .88rem; line-height: 1.5; }

/* Area chips */
.area-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.area-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s cubic-bezier(.4,0,.2,1), box-shadow .3s cubic-bezier(.4,0,.2,1), border-color .3s ease;
}
.area-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--blue-400); }
.area-chip-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.area-chip {
  background: var(--blue-100); color: var(--blue-700); font-weight: 700;
  font-size: .78rem; padding: 4px 12px; border-radius: 999px; letter-spacing: .02em;
}
.area-card h3 { font-size: 1.08rem; margin-bottom: 6px; }
.area-card p { color: var(--gray-600); font-size: .88rem; margin: 0; }
.area-card .arrow { color: var(--blue-600); font-weight: 700; transition: transform .3s cubic-bezier(.4,0,.2,1); }
.area-card:hover .arrow { transform: translateX(4px); }

/* Portfolio */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.portfolio-card {
  border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm); background: var(--white);
  transition: transform .3s cubic-bezier(.4,0,.2,1), box-shadow .3s cubic-bezier(.4,0,.2,1);
}
a.portfolio-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.portfolio-thumb { aspect-ratio: 4/3; width: 100%; background: var(--blue-100); }
.portfolio-thumb svg, .portfolio-thumb img { width: 100%; height: 100%; object-fit: cover; }
.portfolio-body { padding: 18px 20px; }
.portfolio-body .tag { font-size: .74rem; font-weight: 700; color: var(--blue-600); text-transform: uppercase; letter-spacing: .04em; }
.portfolio-body h3 { font-size: 1rem; margin: 6px 0; }
.portfolio-body p {
  color: var(--gray-600); font-size: .88rem; margin: 0;
  /* Deskripsi bisa berapa pun panjangnya (mis. hasil tempel AI yang
     kepanjangan) -- kartu tetap rapi dengan memotong visual jadi 3
     baris, teks lengkapnya tetap ada utuh di halaman detail proyek. */
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; text-overflow: ellipsis;
}
.portfolio-link {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 10px;
  font-size: .84rem; font-weight: 700; color: var(--blue-600);
}
.portfolio-link .arrow { transition: transform .3s cubic-bezier(.4,0,.2,1); }
a.portfolio-card:hover .portfolio-link .arrow { transform: translateX(4px); }
.portfolio-note {
  text-align: center; color: var(--gray-500); font-size: .88rem;
  margin-top: 28px; padding: 14px; border: 1px dashed var(--gray-300); border-radius: var(--radius-sm);
}

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius-sm);
  padding: 4px 22px; box-shadow: var(--shadow-sm);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.faq-item:hover { border-color: var(--blue-400); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; color: var(--blue-900);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.4rem; color: var(--blue-600); flex: none; font-weight: 400;
  transition: transform .2s ease;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { color: var(--gray-600); padding-bottom: 18px; margin: 0; font-size: .94rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-card {
  background: var(--blue-900); color: var(--white);
  border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-lg);
}
.contact-card h3 { color: var(--white); }
.contact-list { display: flex; flex-direction: column; gap: 18px; margin: 24px 0 28px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ci {
  width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.contact-list .ci svg { width: 20px; height: 20px; }
.contact-list a, .contact-list span { color: rgba(255,255,255,.92); font-size: .95rem; }
.contact-list small { display: block; color: rgba(255,255,255,.6); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px; }
.map-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--gray-100); box-shadow: var(--shadow-sm); height: 100%; min-height: 340px; }
.map-frame iframe { width: 100%; height: 100%; min-height: 340px; border: 0; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--blue-900); color: rgba(255,255,255,.78); padding: 50px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 30px; }
.footer-grid h4 { color: var(--white); font-size: .95rem; margin-bottom: 14px; }
.footer-grid a, .footer-grid button {
  color: rgba(255,255,255,.72); font-size: .9rem; display: block; padding: 5px 0; width: 100%;
  text-align: left; background: none; border: none; cursor: pointer; font-family: inherit;
}
.footer-grid a:hover, .footer-grid button:hover { color: var(--white); }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--white); margin-bottom: 12px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; text-align: center; font-size: .82rem; color: rgba(255,255,255,.55); }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* WhatsApp floating button */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 200;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--wa-green); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(37, 211, 102, .45);
  animation: pulse 2.4s infinite;
}
.wa-float svg { width: 30px; height: 30px; color: var(--white); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); }
  70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Breadcrumb (area pages) */
.breadcrumb { font-size: .85rem; color: rgba(255,255,255,.8); margin-bottom: 14px; }
.breadcrumb a { color: rgba(255,255,255,.8); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { margin: 0 6px; }

/* Utility */
.text-center { text-align: center; }
.mt-32 { margin-top: 32px; }
.badge-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.badge-list span {
  background: var(--blue-100); color: var(--blue-700); font-size: .8rem; font-weight: 600;
  padding: 6px 14px; border-radius: 999px;
}
.two-col { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.info-box {
  background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius-md);
  padding: 26px; box-shadow: var(--shadow-sm);
}
.info-box h4 { font-size: 1rem; display: flex; align-items: center; gap: 10px; }
.info-box h4 svg { width: 22px; height: 22px; color: var(--blue-600); }
.cta-band {
  background: linear-gradient(120deg, var(--blue-800), var(--aqua));
  color: var(--white); border-radius: var(--radius-lg); padding: 44px; text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,.9); }
.cta-band .hero-actions { justify-content: center; }

/* Trust bar (Fakta Bisnis) */
.trust-bar { padding: 36px 0; border-bottom: 1px solid var(--gray-100); }
.trust-bar-inner { display: flex; flex-wrap: wrap; gap: 28px; justify-content: center; text-align: center; }
.trust-bar-item { min-width: 160px; }
.trust-bar-item strong { display: block; font-size: 1.6rem; color: var(--blue-700); }
.trust-bar-item span { font-size: .86rem; color: var(--gray-600); }

/* Testimonial */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.testimonial-card {
  background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius-md);
  padding: 26px; box-shadow: var(--shadow-sm);
  transition: box-shadow .3s cubic-bezier(.4,0,.2,1);
}
.testimonial-card:hover { box-shadow: var(--shadow-md); }
.testimonial-quote { color: var(--gray-600); font-size: .94rem; }
.testimonial-quote::before { content: "\201C"; color: var(--blue-400); font-size: 1.6rem; font-weight: 700; line-height: 0; display: inline-block; margin-right: 2px; }
.testimonial-person { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex: none; background: var(--blue-100); display: flex; align-items: center; justify-content: center; color: var(--blue-600); font-weight: 700; font-size: .82rem; }
.testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-person strong { display: block; font-size: .92rem; color: var(--blue-900); }
.testimonial-person span { font-size: .8rem; color: var(--gray-500); }

/* Empty state (mis. Panduan yang belum ada artikel) */
.empty-state {
  text-align: center; max-width: 520px; margin: 0 auto; padding: 40px 24px;
  background: var(--blue-50); border: 1px dashed var(--blue-400); border-radius: var(--radius-md);
}
.empty-state p { color: var(--gray-600); margin: 8px 0 0; }

/* Scroll-reveal (assets/js/reveal.js) -- class "reveal" cuma pernah
   ditambahkan lewat JS itu sendiri, jadi kalau JS gagal muat/browser
   tidak dukung, elemen tidak pernah tersembunyi (default tetap
   terlihat normal). */
html.js-reveal-ready .reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s cubic-bezier(.4,0,.2,1), transform .6s cubic-bezier(.4,0,.2,1);
}
html.js-reveal-ready .reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  html.js-reveal-ready .reveal { opacity: 1; transform: none; transition: none; }
}
