/* =========================================================
   Padi Dental Care — stylesheet
   Palette: clinic green (from logo) + white + soft neutral
   ========================================================= */

:root {
  --green-deep:  #12352A;
  --green-mid:   #1E7A52;
  --green-bright:#2FA36C;
  --green-tint:  #EAF5EE;
  --green-tint-2:#DCF0E4;
  --neutral:     #F7F6F3;
  --ink:         #23261F;
  --ink-soft:    #666B60;
  --paper:       #FFFFFF;
  --line:        #E7E8E2;
  --gold:        #C9A34E;

  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-soft: 0 22px 48px -26px rgba(18, 53, 42, 0.4);
  --shadow-card: 0 12px 30px -18px rgba(35, 38, 31, 0.18);
  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--neutral);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
section { padding: 84px 0; }
@media (max-width: 760px) { section { padding: 52px 0; } }

.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; color: var(--green-bright); margin-bottom: 12px; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; color: var(--green-deep); line-height: 1.18; }
h2 { font-size: clamp(26px, 3.2vw, 36px); }
h3 { font-size: 19px; }
p { color: var(--ink-soft); margin: 0; }
.section-head { max-width: 600px; margin-bottom: 40px; }
.section-head p { margin-top: 10px; font-size: 16px; }
.bg-alt { background: var(--paper); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: 999px; font-weight: 700; font-size: 15px; border: none; transition: transform .15s ease, background .15s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green-mid); color: #fff; box-shadow: var(--shadow-soft); }
.btn-primary:hover { background: var(--green-deep); }
.btn-outline { background: transparent; border: 1.5px solid var(--green-mid); color: var(--green-mid); }
.btn-outline:hover { background: var(--green-tint); }
.btn-sm { padding: 10px 20px; font-size: 13.5px; }
.btn-block { width: 100%; justify-content: center; }

/* ===== Header ===== */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand svg { width: 32px; height: 32px; flex-shrink: 0; color: var(--green-mid); }
.brand-text { font-weight: 800; color: var(--green-deep); font-size: 15px; }
.brand-logo { height: 38px; width: auto; display: block; }
.main-nav ul { display: flex; gap: 28px; }
.main-nav a { font-size: 14.5px; font-weight: 600; color: var(--ink); padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover { color: var(--green-mid); border-bottom-color: var(--green-mid); }
.header-right { display: flex; align-items: center; gap: 16px; }
.menu-toggle { display: none; background: none; border: none; padding: 6px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--green-deep); margin: 5px 0; border-radius: 2px; }
@media (max-width: 920px) {
  .main-nav { position: fixed; inset: 78px 0 0 0; background: #fff; padding: 26px 24px; transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a { display: block; padding: 14px 6px; border-bottom: 1px solid var(--line); }
  .header-right .btn.header-cta { display: none; }
  .menu-toggle { display: block; }
}

/* ===== Hero ===== */
.hero { padding-top: 60px; padding-bottom: 60px; }
.hero .container { display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px; align-items: center; }
.hero h1 { font-size: clamp(32px, 4.2vw, 48px); margin-bottom: 16px; }
.hero p.lead { font-size: 17px; max-width: 440px; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-info { display: flex; gap: 24px; flex-wrap: wrap; }
.hero-info-item { display: flex; gap: 10px; align-items: center; font-size: 13.5px; font-weight: 700; color: var(--green-deep); }
.hero-info-item svg { width: 20px; height: 20px; color: var(--green-mid); flex-shrink: 0; }
.hero-visual { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3.3; box-shadow: var(--shadow-soft); }

/* Placeholder photo block */
.ph {
  background: linear-gradient(155deg, var(--green-tint) 0%, var(--green-tint-2) 100%);
  border-radius: var(--radius-md);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: var(--green-mid); width: 100%; height: 100%;
}
.ph svg { width: 40px; height: 40px; opacity: .6; }
.ph span { font-size: 12px; font-weight: 700; opacity: .8; text-align: center; padding: 0 12px; }
.hero-visual .ph { border-radius: 0; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Real treatment photos (when available) */
.ph-photo { width: 100%; height: 100%; border-radius: var(--radius-md); overflow: hidden; }
.ph-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hasil-strip { display: flex; gap: 8px; overflow-x: auto; margin-top: 10px; padding-bottom: 4px; }
.hasil-strip img { width: 92px; height: 92px; object-fit: cover; border-radius: 10px; flex: 0 0 auto; }
.foto-credit { font-size: 12px; margin-top: 8px; color: var(--ink-soft); }

/* ===== Layanan interaktif ===== */
.layanan-interactive { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; }
@media (max-width: 860px) { .layanan-interactive { grid-template-columns: 1fr; } }
.layanan-tabs { display: flex; flex-direction: column; gap: 8px; }
.layanan-tab {
  text-align: left; padding: 16px 18px; border-radius: var(--radius-sm);
  background: var(--paper); border: 1px solid var(--line);
  font-weight: 700; font-size: 15px; color: var(--ink);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.layanan-tab:hover { border-color: var(--green-mid); }
.layanan-tab.active { background: var(--green-mid); color: #fff; border-color: var(--green-mid); }
@media (max-width: 860px) { .layanan-tabs { flex-direction: row; overflow-x: auto; padding-bottom: 4px; } .layanan-tab { flex: 0 0 auto; } }

.layanan-panel {
  background: var(--paper); border-radius: var(--radius-lg); padding: 36px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; box-shadow: var(--shadow-card);
}
@media (max-width: 700px) { .layanan-panel { grid-template-columns: 1fr; padding: 26px; } }
.layanan-panel .ph, .layanan-panel .ph-photo { aspect-ratio: 1/1; }
.layanan-panel h3 { font-size: 24px; margin-bottom: 14px; }
.layanan-panel .apa-itu-label { font-weight: 700; color: var(--green-mid); font-size: 13px; margin-bottom: 4px; display: block; }
.layanan-panel p.desc { margin-bottom: 18px; }
.manfaat-list li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; font-size: 14.5px; color: var(--ink); }
.manfaat-list svg { width: 18px; height: 18px; color: var(--green-mid); flex-shrink: 0; margin-top: 2px; }
.harga-box { margin-top: 20px; padding: 14px 18px; background: var(--green-tint); border-radius: var(--radius-sm); }
.harga-box .label { font-size: 12px; font-weight: 700; color: var(--green-mid); }
.harga-box .value { font-size: 18px; font-weight: 800; color: var(--green-deep); }
.layanan-panel .btn { margin-top: 20px; }

/* ===== Invisalign highlight ===== */
.invisalign-block { background: var(--green-deep); border-radius: var(--radius-lg); padding: 56px; color: #E7F2EB; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 760px) { .invisalign-block { grid-template-columns: 1fr; padding: 32px; } }
.invisalign-block .eyebrow { color: var(--gold); }
.invisalign-block h2 { color: #fff; margin-bottom: 14px; }
.invisalign-block p { color: #BFE0CB; margin-bottom: 10px; }
.invisalign-block .harga { font-weight: 700; color: #fff; margin: 16px 0 22px; }
.invisalign-block .ph { background: rgba(255,255,255,.08); color: #cfe9d8; }

/* ===== Hasil Perawatan gallery (filterable photo grid) ===== */
.hasil-interactive { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; }
@media (max-width: 860px) { .hasil-interactive { grid-template-columns: 1fr; } }
.hasil-panel { background: var(--paper); border-radius: var(--radius-lg); padding: 28px; }
.hasil-panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.hasil-panel-head h3 { margin: 0; }
.hasil-count { font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.hasil-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .hasil-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .hasil-grid { grid-template-columns: repeat(2, 1fr); } }
.hasil-grid .gallery-item { aspect-ratio: 1/1; border-radius: var(--radius-sm); overflow: hidden; }
.hasil-grid .gallery-item a, .hasil-grid .gallery-item img { width: 100%; height: 100%; display: block; }
.hasil-grid .gallery-item img { object-fit: cover; transition: transform .2s ease; }
.hasil-grid .gallery-item a:hover img { transform: scale(1.06); }
.hasil-grid .gallery-item .ph { height: 100%; border-radius: 0; }
.hasil-grid .gallery-item .ph svg { width: 26px; height: 26px; }
.hasil-grid .gallery-item .ph span { font-size: 10.5px; }

/* ===== Before & After slider (kept for possible future use) ===== */
.ba-select { display: flex; gap: 10px; margin-bottom: 30px; flex-wrap: wrap; }
.ba-select button {
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper);
  font-weight: 700; font-size: 13.5px; color: var(--ink);
}
.ba-select button.active { background: var(--green-mid); color: #fff; border-color: var(--green-mid); }
.ba-slider {
  position: relative; max-width: 640px; margin: 0 auto; aspect-ratio: 4/3;
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card);
}
.ba-slider .ba-after, .ba-slider .ba-before { position: absolute; inset: 0; }
.ba-slider .ba-after { overflow: hidden; width: 50%; }
.ba-slider .ba-after .ph, .ba-slider .ba-before .ph { width: 100%; height: 100%; border-radius: 0; }
.ba-slider .ba-before .ph { background: linear-gradient(155deg, #E9E6DD, #DCD7C9); color: #8b8672; }
.ba-tag { position: absolute; top: 14px; font-size: 11px; font-weight: 800; letter-spacing: .03em; padding: 5px 12px; border-radius: 999px; color: #fff; background: rgba(18,53,42,.75); z-index: 3; }
.ba-tag.tag-before { left: 14px; }
.ba-tag.tag-after { right: 14px; }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 44px; margin-left: -22px;
  display: flex; align-items: center; justify-content: center; cursor: ew-resize; z-index: 4;
}
.ba-handle::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: #fff; transform: translateX(-50%); }
.ba-handle .grip { width: 38px; height: 38px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-card); display: flex; align-items: center; justify-content: center; color: var(--green-mid); }
.ba-handle .grip svg { width: 18px; height: 18px; }
.ba-slider input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; z-index: 5; }
.ba-caption { text-align: center; margin-top: 16px; font-weight: 700; color: var(--green-deep); }

/* ===== Profil dokter ===== */
.dokter-block .container { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: center; }
@media (max-width: 760px) { .dokter-block .container { grid-template-columns: 1fr; } }
.dokter-block .ph { aspect-ratio: 3/3.6; }
.dokter-name { font-size: 24px; font-weight: 800; color: var(--green-deep); margin-bottom: 4px; }
.dokter-role { color: var(--green-bright); font-weight: 700; font-size: 14px; margin-bottom: 16px; }
.dokter-contact { margin-top: 22px; display: flex; gap: 10px; align-items: center; font-weight: 700; color: var(--green-deep); font-size: 14.5px; }
.dokter-contact svg { width: 20px; height: 20px; color: var(--green-mid); }
.badge-invisalign { display: inline-block; margin: 4px 0 10px; padding: 5px 14px; border-radius: 999px; background: var(--gold); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .02em; }

/* ===== Tim Dokter ===== */
.dokter-row { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: center; margin-top: 44px; }
.dokter-row .ph { aspect-ratio: 3/3; }
@media (max-width: 760px) { .dokter-row { grid-template-columns: 1fr; margin-top: 32px; } }
.dokter-row-name { font-size: 22px; color: var(--green-mid); margin-bottom: 6px; letter-spacing: .01em; }
.dokter-row-label { font-size: 13px; font-weight: 700; color: var(--ink-soft); margin-bottom: 14px; }

/* ===== Galeri (scroll) ===== */
.gallery-scroll { display: flex; gap: 18px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; }
.gallery-scroll .ph, .gallery-scroll .ph-photo { flex: 0 0 340px; aspect-ratio: 4/3.2; scroll-snap-align: start; }
@media (max-width: 560px) { .gallery-scroll .ph, .gallery-scroll .ph-photo { flex-basis: 260px; } }

/* ===== Pricelist ===== */
.price-table { max-width: 640px; margin: 0 auto; background: var(--paper); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); }
.price-row { display: flex; justify-content: space-between; align-items: center; padding: 20px 28px; border-bottom: 1px solid var(--line); }
.price-row:last-child { border-bottom: none; }
.price-row .nama { font-weight: 700; color: var(--green-deep); font-size: 15.5px; }
.price-row .harga { font-weight: 700; color: var(--ink-soft); font-size: 14px; }
.price-note { text-align: center; margin-top: 18px; font-size: 13px; color: var(--ink-soft); }

/* ===== Review ===== */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 800px) { .review-grid { grid-template-columns: 1fr; } }
.review-card { background: var(--paper); border-radius: var(--radius-md); padding: 26px; box-shadow: var(--shadow-card); }
.stars { color: var(--gold); font-size: 15px; margin-bottom: 12px; letter-spacing: 2px; }
.review-card p.isi { font-size: 14.5px; color: var(--ink); margin-bottom: 14px; }
.review-card .nama { font-weight: 700; color: var(--green-deep); font-size: 13.5px; }
.review-cta { text-align: center; margin-top: 32px; }

/* ===== Booking form ===== */
.booking-section { background: var(--green-tint); }
.booking-box { max-width: 620px; margin: 0 auto; background: var(--paper); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-card); }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 700; font-size: 13.5px; color: var(--green-deep); margin-bottom: 7px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--neutral); font-size: 14.5px; color: var(--ink);
}
.form-row textarea { resize: vertical; min-height: 90px; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: 2px solid var(--green-mid); outline-offset: 1px; }

/* ===== Kontak & lokasi ===== */
.kontak-block .container { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 800px) { .kontak-block .container { grid-template-columns: 1fr; } }
.kontak-list li { display: flex; gap: 12px; margin-bottom: 18px; font-size: 15px; color: var(--ink); align-items: flex-start; }
.kontak-list svg { width: 20px; height: 20px; color: var(--green-mid); flex-shrink: 0; margin-top: 2px; }
.kontak-actions { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.map-box { aspect-ratio: 4/3.2; border-radius: var(--radius-lg); overflow: hidden; }
.map-box .ph { background: linear-gradient(155deg, var(--green-deep), #0B241C); color: #8FCBA6; }

/* ===== Footer ===== */
.site-footer { background: var(--green-deep); color: #CFE6D9; padding: 56px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 36px; padding-bottom: 34px; border-bottom: 1px solid rgba(255,255,255,.12); }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .brand-text { color: #fff; }
.footer-logo { height: 34px; width: auto; display: block; }
.footer-brand p { margin-top: 12px; font-size: 13.5px; color: #A9CBB7; }
.footer-col h4 { color: #fff; font-size: 14.5px; margin-bottom: 14px; }
.footer-col ul li { margin-bottom: 9px; font-size: 13.5px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 12.5px; color: #8FB6A0; }

/* ===== Floating WA ===== */
.wa-float { position: fixed; bottom: 22px; right: 22px; width: 56px; height: 56px; border-radius: 50%; background: var(--green-mid); display: flex; align-items: center; justify-content: center; box-shadow: 0 16px 30px -12px rgba(18,53,42,.55); z-index: 90; }
.wa-float svg { width: 26px; height: 26px; color: #fff; }

.text-center { text-align: center; }