/* ==========================================================
   Ahli Gigi BSD - Stylesheet website publik
   Tanpa framework. Ringan & responsif.
   Palet: biru klinis (identitas situs lama) + navy gelap untuk kontras,
   amber untuk aksen ajakan.
   ========================================================== */

:root {
    --blue: #1a8fd1;
    --blue-dark: #0f6fa8;
    --blue-bright: #29a9e8;
    --navy: #0e2438;
    --navy-soft: #12314a;
    --gold: #ffc857;
    --gold-dark: #f5b93a;
    --heading: #16232f;
    --text: #5b6b76;
    --line: #e3ecf2;
    --bg: #fff;
    --bg-alt: #f2f8fc;
    --ok: #157347;
    --shadow: 0 1px 2px rgba(14, 36, 56, .06), 0 8px 24px rgba(14, 36, 56, .08);
    --font-head: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --header-h: 76px;
    --bar-h: 40px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.25; margin: 0 0 .5em; color: var(--heading); font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 3.4vw, 3.1rem); }
h2 { font-size: clamp(1.9rem, 3.1vw, 2.75rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.hero :focus-visible, .cta-band :focus-visible, .kontak-band :focus-visible { outline-color: #fff; }
.icon { flex: none; display: inline-block; vertical-align: middle; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 860px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--heading); padding: 10px 16px; border-radius: 8px; z-index: 200; font-weight: 700; }
.skip-link:focus { left: 8px; }

/* ---------- Tombol ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .8rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
    font-family: var(--font); font-weight: 600; font-size: 1rem; line-height: 1.2; text-align: center; text-decoration: none;
    transition: transform .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 1.1rem 2.2rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-gold { background: var(--gold); color: var(--heading); }
.btn-gold:hover { background: var(--gold-dark); color: var(--heading); }
.btn-ghost { background: transparent; color: var(--blue); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-alt); color: var(--blue-dark); }
.btn-white { background: #fff; color: var(--heading); text-transform: uppercase; padding: 1.2rem 3.2rem; font-size: 1.15rem; }
.btn-white:hover { background: #fff; color: var(--blue); box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }

/* ---------- Bar kontak atas (mengikuti header WordPress lama) ---------- */
.top-bar { background: var(--navy); color: rgba(255, 255, 255, .88); font-size: .88rem; height: var(--bar-h); display: flex; align-items: center; }
.top-bar .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.top-bar-info { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.top-bar-info span { display: inline-flex; align-items: center; gap: 6px; }
.top-bar-info .icon { width: 14px; height: 14px; color: var(--blue-bright); }
.top-bar a { color: rgba(255, 255, 255, .88); }
.top-bar a:hover { color: #fff; }
@media (max-width: 700px) { .top-bar-addr { display: none; } }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; left: 0; right: 0; z-index: 50; height: var(--header-h);
    background: #fff; box-shadow: 0 1px 0 var(--line); transition: box-shadow .2s ease;
}
.site-header.scrolled { box-shadow: 0 6px 20px rgba(14, 36, 56, .12); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; position: relative; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 48px; width: auto; }
.brand-text { color: var(--heading); font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; }
.nav ul { display: flex; align-items: center; list-style: none; gap: 26px; }
.nav ul a { display: block; padding: .35rem .2rem; color: var(--heading); font-weight: 500; font-size: .98rem; text-decoration: none; border-bottom: 2px solid transparent; }
.nav ul a:hover, .nav ul a.active { color: var(--blue); border-bottom-color: var(--blue); }
.nav ul a.nav-contact { padding: .5rem 1.2rem; background: var(--blue); color: #fff; border-radius: 999px; font-weight: 600; }
.nav ul a.nav-contact:hover { background: var(--blue-dark); color: #fff; border-bottom-color: transparent; }
.nav-toggle { display: none; background: transparent; border: 0; color: var(--heading); padding: 8px; border-radius: 10px; }

@media (max-width: 980px) {
    :root { --header-h: 68px; }
    .nav-toggle { display: inline-flex; }
    .nav {
        display: none; position: absolute; top: calc(100% + 1px); left: -24px; right: -24px;
        background: #fff; padding: 12px 24px 24px; box-shadow: 0 20px 40px rgba(14, 36, 56, .18);
    }
    .nav.open { display: block; }
    .nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
    .nav ul a { padding: .8rem .2rem; border-bottom-color: var(--line); }
    .nav ul a.nav-contact { margin-top: 12px; text-align: center; }
}

/* ---------- Hero (foto penuh, tanpa teks/overlay) ---------- */
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.hero { position: relative; overflow: hidden; }
.hero-bg { width: 100%; aspect-ratio: 16 / 7; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; }
@media (max-width: 900px) { .hero-bg { aspect-ratio: 4 / 3; } }

/* ---------- Section ---------- */
.section { padding: 110px 0; }
.section.alt { background: var(--bg-alt); }
.section.dark { background: var(--navy); color: rgba(255, 255, 255, .82); }
.section.dark h2, .section.dark h3 { color: #fff; }
.section-head { max-width: 760px; margin: 0 auto 60px; text-align: center; }
.section-head h2 { margin: 0; }
.section-head p { color: var(--text); margin: 12px 0 0; }
.section.dark .section-head p { color: rgba(255, 255, 255, .78); }
.section-head.has-line::after { content: ''; display: block; width: 100px; height: 3px; background: var(--blue); margin: 22px auto 0; border-radius: 2px; }
.empty { text-align: center; padding: 40px 0; }
@media (max-width: 700px) {
    .section { padding: 60px 0; }
    .section-head { margin-bottom: 36px; }
}

.grid { display: grid; gap: 40px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3 { grid-template-columns: 1fr; } }

/* ---------- Keunggulan ---------- */
.features { gap: 44px; }
.feature { text-align: center; }
.icon-badge {
    width: 92px; height: 92px; margin: 0 auto 20px; border-radius: 50%; background: var(--blue);
    display: grid; place-items: center; box-shadow: 0 12px 24px rgba(26, 143, 209, .3);
}
.icon-badge .icon { color: #fff; stroke-width: 1.7; }
.feature h3 { font-size: 1.2rem; margin-bottom: .5em; letter-spacing: .02em; text-transform: uppercase; }
.feature p { margin: 0; }

/* ---------- Tentang ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.about-copy p { text-align: justify; }
.about-copy strong { font-weight: 600; }
.about-media img { width: 100%; border-radius: 14px; }
.cert-strip { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: center; margin-top: 40px; padding-top: 32px; border-top: 1px dashed var(--line); font-size: .95rem; color: var(--heading); }
.cert-strip span { display: inline-flex; align-items: center; gap: 8px; }
.cert-strip .icon { color: var(--ok); }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Layanan ---------- */
.services { gap: 48px 40px; }
.service-card h3 { font-family: var(--font); font-size: 1.0625rem; font-weight: 500; line-height: 1.7; margin: 18px 0 8px; }
.service-card h3 a { color: var(--blue-dark); text-decoration: none; }
.service-card h3 a:hover { text-decoration: underline; }
.service-card p { margin: 0; }
.read-more { color: var(--blue); text-decoration: underline; }
.service-media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: linear-gradient(135deg, var(--blue-dark), var(--blue-bright)); border-radius: 14px; border: 1px solid var(--line); }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.service-card:hover .service-media img { transform: scale(1.04); }
.ph-media { width: 100%; height: 100%; display: grid; place-items: center; color: rgba(255, 255, 255, .6); }

/* ---------- Testimoni ---------- */
.testimonials { gap: 32px; }
.testimonial { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 30px 28px; box-shadow: var(--shadow); text-align: center; }
.testimonial .quote-mark { color: var(--blue); opacity: .35; margin-bottom: 8px; }
.testimonial p { font-size: 1.02rem; color: var(--heading); margin: 0 0 18px; }
.testimonial footer { display: flex; flex-direction: column; gap: 2px; }
.testimonial footer strong { color: var(--blue-dark); }
.testimonial footer span { font-size: .9rem; color: var(--text); font-style: italic; }

/* ---------- Galeri (band navy seperti situs lama) ---------- */
.gallery-band { background: var(--navy); color: rgba(255, 255, 255, .85); }
.gallery-band .section-head h2 { color: #fff; }
.gallery-band .section-head.has-line::after { background: var(--blue-bright); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-grid-full { grid-template-columns: repeat(4, 1fr); }
.gallery-item { display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 12px; background: var(--navy-soft); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-more { text-align: center; margin: 40px 0 0; }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

.lightbox-overlay {
    position: fixed; inset: 0; z-index: 100; background: rgba(6, 16, 26, .94);
    display: none; align-items: center; justify-content: center; padding: 32px;
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img { max-width: 100%; max-height: 88vh; border-radius: 8px; }
.lightbox-close {
    position: absolute; top: 20px; right: 24px; width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255, 255, 255, .12); color: #fff; border: 0; display: grid; place-items: center;
}
.lightbox-close:hover { background: rgba(255, 255, 255, .22); }

/* ---------- Kontak & Lokasi (band navy) ---------- */
.kontak-band { background: var(--navy); color: rgba(255, 255, 255, .85); }
.kontak-band .section-head h2 { color: #fff; }
.kontak-band .section-head.has-line::after { background: var(--blue-bright); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: start; }
.contact-grid-solo { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
.contact-info { text-align: center; }
.contact-info p { display: flex; align-items: flex-start; justify-content: center; gap: 10px; margin: 0 0 14px; color: rgba(255, 255, 255, .85); }
.contact-info .icon { color: var(--blue-bright); margin-top: 2px; flex: none; }
.contact-map { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.contact-map iframe { display: block; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Sosial media ---------- */
.socials-band { padding: 0 0 96px; }
.socials-band.dark { background: var(--navy); padding: 0 0 90px; }
.socials { display: flex; justify-content: center; flex-wrap: wrap; gap: 24px; list-style: none; }
.socials a { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; color: #fff; transition: transform .15s ease; }
.socials a:hover { transform: translateY(-3px) scale(1.05); color: #fff; }
.social-instagram { background: #f00075; }
.social-tiktok { background: #000; }
.social-youtube { background: #f00; }
.social-facebook { background: #1877f2; }

/* ---------- CTA ---------- */
.cta-band { background: linear-gradient(120deg, var(--blue-dark), var(--blue)); color: #fff; padding: 100px 0; text-align: center; }
.cta-band h2 { color: #fff; max-width: 1180px; margin: 0 auto 44px; font-size: clamp(1.6rem, 3.3vw, 3rem); font-weight: 500; line-height: 1.4; }
@media (max-width: 700px) { .cta-band { padding: 68px 0; } .btn-white { padding: 1rem 2rem; font-size: 1rem; } }

/* ---------- Footer ---------- */
.site-footer { padding: 40px 0 32px; text-align: center; font-size: .95rem; background: var(--navy); color: rgba(255, 255, 255, .75); }
.foot-name { font-weight: 700; color: #fff; margin-bottom: 4px; }
.foot-addr, .foot-lic { margin-bottom: 4px; }
.foot-copy { margin: 12px 0 0; opacity: .7; }

/* Tombol melayang kanan bawah: WhatsApp di atas, panah scroll-up di bawahnya */
.fab { position: fixed; right: 19px; bottom: 24px; z-index: 60; display: flex; flex-direction: column; align-items: center; }
.wa-float {
    width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
    background: #25d366; color: #fff; box-shadow: 0 8px 22px rgba(37, 211, 102, .45); transition: transform .15s ease;
}
.wa-float:hover { transform: scale(1.08); color: #fff; }
.to-top {
    width: 44px; height: 0; margin-top: 0; padding: 0; border: 0; border-radius: 6px; overflow: hidden;
    display: grid; place-items: center; background: var(--blue); color: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
    opacity: 0; visibility: hidden; transition: height .2s ease, margin-top .2s ease, opacity .2s ease, visibility .2s;
}
.to-top.is-visible { height: 44px; margin-top: 12px; opacity: 1; visibility: visible; }
.to-top:hover { background: var(--blue-dark); }

/* ---------- Halaman dalam: hero ---------- */
.page-hero { background: linear-gradient(120deg, var(--navy), var(--blue-dark)); color: #fff; padding: 56px 0 56px; }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.8rem); margin: 8px 0 0; }
.page-hero-sub { color: rgba(255, 255, 255, .88); margin: 10px 0 0; max-width: 40em; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .9rem; color: rgba(255, 255, 255, .78); }
.breadcrumb a { color: #fff; }
.breadcrumb a:hover { text-decoration: underline; color: #fff; }

.page-hero + .section { padding-top: 80px; }

/* ---------- Kartu (detail layanan, halaman) ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }

/* ---------- Detail layanan ---------- */
.detail-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: start; }
.detail-side { position: sticky; top: calc(var(--header-h) + 20px); }
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; } .detail-side { position: static; } }
.gallery-main { overflow: hidden; background: var(--line); aspect-ratio: 3 / 2; border-radius: 14px; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; margin: 12px 0 28px; flex-wrap: wrap; }
.gallery-thumbs button { width: 92px; height: 64px; padding: 0; border: 3px solid transparent; overflow: hidden; background: var(--line); opacity: .7; border-radius: 8px; }
.gallery-thumbs button.active, .gallery-thumbs button:hover { border-color: var(--blue); opacity: 1; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery-detail + .prose { margin-top: 8px; }
.spec-card { padding: 28px; }
.spec-card h3 { margin-bottom: 14px; }
.spec-card h4 { margin: 20px 0 10px; font-size: 1.05rem; }
.specs { margin: 0; }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.specs dt { font-weight: 500; }
.specs dd { margin: 0; font-weight: 600; text-align: right; color: var(--heading); }
.check-list { list-style: none; display: grid; gap: 8px; margin-bottom: 22px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .98rem; }
.check-list .icon { color: var(--ok); margin-top: 4px; }

/* ---------- Konten (hasil editor CMS) ---------- */
.prose { font-size: 1.0625rem; line-height: 1.85; }
.prose h2 { font-size: 1.7rem; margin: 1.6em 0 .5em; }
.prose h3 { font-size: 1.35rem; margin: 1.5em 0 .5em; }
.prose h4 { margin: 1.4em 0 .4em; }
.prose p { margin: 0 0 1.1em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .35em; }
.prose img { margin: 1.2em 0; border-radius: 10px; }
.prose blockquote { margin: 1.4em 0; padding: .6em 1.2em; border-left: 4px solid var(--blue); background: var(--bg-alt); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose th { background: #f4f6f9; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

.not-found { padding: 150px 0 100px; }
.nf-code { font-family: var(--font-head); font-size: clamp(5rem, 16vw, 9rem); font-weight: 700; line-height: 1; color: var(--blue); margin: 0; }

@media (max-width: 640px) {
    .about-copy p { text-align: left; }
}
