:root {
    --cream: #f8f1e7;
    --cream-soft: #fffaf2;
    --cream-deep: #ead9bd;
    --gold: #b4822d;
    --gold-dark: #8d6728;
    --gold-light: #d7b66f;
    --text: #3f372d;
    --muted: #7e7466;
    --line: rgba(167, 127, 58, .23);
    --shadow: 0 18px 45px rgba(110, 82, 38, .12);
    --serif: "Cormorant Garamond", Georgia, serif;
    --sans: "Montserrat", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--text);
    background: #fffaf3;
    font-family: var(--sans);
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }

.site-header {
    height: 96px;
    background: rgba(255, 251, 245, .96);
    border-bottom: 1px solid rgba(183, 144, 77, .12);
    position: relative;
    z-index: 30;
}
.header-inner {
    max-width: 1500px;
    height: 100%;
    margin: 0 auto;
    padding: 0 50px;
    display: grid;
    grid-template-columns: 175px 1fr auto;
    align-items: center;
    gap: 34px;
}
.brand {
    width: 136px;
    height: 88px;
    overflow: hidden;
    display: flex;
    align-items: center;
}
.brand img {
    width: 126px;
    height: 105px;
    object-fit: cover;
    object-position: center;
    mix-blend-mode: multiply;
}
.main-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(21px, 2vw, 43px);
    white-space: nowrap;
}
.main-nav a {
    position: relative;
    padding: 38px 0 28px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: #765f3f;
}
.main-nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 22px;
    width: 0;
    height: 1px;
    background: var(--gold);
    transform: translateX(-50%);
    transition: width .25s ease;
}
.main-nav a:hover::after,
.main-nav a.active::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 28px; }
.appointment-btn {
    height: 42px;
    padding: 0 23px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #bd8c34, #ad7924);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .03em;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 8px 18px rgba(169, 116, 34, .18);
}
.calendar-icon { margin-right: 8px; opacity: .92; }
.instagram-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #675744;
    font-size: 12px;
    white-space: nowrap;
}
.instagram-icon { font-size: 27px; line-height: 1; color: #a17835; }
.menu-toggle { display: none; }

.hero-section {
    position: relative;
    min-height: 411px;
    overflow: hidden;
    background:
        radial-gradient(circle at 59% 16%, rgba(255,255,255,.94) 0 14%, transparent 36%),
        linear-gradient(90deg, #fbf5ed 0%, #f9f2e8 44%, #fcf7ef 100%);
    border-bottom: 1px solid rgba(183, 144, 77, .1);
}
.hero-section::before,
.hero-section::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(197, 157, 91, .16);
    border-radius: 50%;
}
.hero-section::before { width: 510px; height: 510px; left: 40%; top: -168px; }
.hero-section::after { width: 650px; height: 650px; right: -90px; top: -60px; }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(3px); pointer-events: none; }
.hero-glow-left { width: 420px; height: 420px; left: -180px; top: -110px; background: rgba(255,255,255,.58); }
.hero-glow-right { width: 360px; height: 360px; right: 110px; top: 20px; background: rgba(255,255,255,.4); }
.hero-copy {
    position: relative;
    z-index: 4;
    width: 535px;
    padding: 69px 0 0 max(7.8vw, 68px);
}
.eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #9b8a70;
    font-size: 12px;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.eyebrow i { width: 41px; height: 1px; background: var(--gold); position: relative; }
.eyebrow i::after { content: ""; width: 4px; height: 1px; background: var(--gold); position: absolute; right: -8px; }
.hero-copy h1 {
    margin: 8px 0 4px;
    font-family: var(--serif);
    font-size: clamp(48px, 5vw, 76px);
    line-height: .78;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: .015em;
}
.hero-copy h1 span { display: block; color: #b5822f; font-size: 1.38em; line-height: .82; }
.medan-label {
    margin-top: 14px;
    font-family: var(--serif);
    font-size: 22px;
    letter-spacing: .18em;
    text-align: center;
    width: 330px;
    text-transform: uppercase;
}
.medan-label b { color: var(--gold); font-size: 9px; margin: 0 9px; }
.doctor-name {
    width: 330px;
    margin: 4px 0 12px;
    text-align: center;
    font-family: var(--serif);
    font-style: italic;
    font-size: 25px;
    color: #b2823b;
}
.hero-address {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin: 0;
    color: #6e665d;
    font-size: 13px;
    line-height: 1.55;
}
.pin { color: #bd8d3a; font-size: 16px; line-height: 1; margin-top: 4px; }
.gold-btn {
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 40px;
    padding: 0 24px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #c0933c, #aa731d);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    box-shadow: 0 10px 24px rgba(165, 113, 29, .18);
}
.gold-btn span {
    width: 20px;
    height: 20px;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    font-size: 18px;
    line-height: 1;
}
.hero-model-wrap {
    position: absolute;
    left: 39.4%;
    top: 0;
    width: 42%;
    height: 100%;
    z-index: 3;
    overflow: hidden;
}
.portrait-ring {
    position: absolute;
    width: 470px;
    height: 470px;
    left: 40px;
    top: -51px;
    border: 1px solid rgba(205, 174, 120, .22);
    border-radius: 50%;
    z-index: 1;
}
.hero-model-wrap img {
    position: absolute;
    left: 10px;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 44%;
    mix-blend-mode: multiply;
    filter: saturate(.96) contrast(1.01) brightness(1.02);
    z-index: 2;
    mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 91%, transparent 100%);
}
.hero-quote {
    position: absolute;
    z-index: 5;
    right: max(7.4vw, 64px);
    top: 116px;
    width: 315px;
    text-align: center;
    font-family: var(--serif);
}
.hero-quote p { margin: 0; font-size: 37px; line-height: 1.18; font-style: italic; }
.hero-quote strong { display: block; margin-top: 5px; color: #b2802e; font-size: 52px; font-weight: 500; line-height: 1; }
.quote-flourish { display: block; width: 185px; height: 18px; margin: 14px auto 0; border-top: 2px solid #c49845; border-radius: 50%; transform: rotate(-2deg); }

.showcase-section {
    min-height: 299px;
    display: grid;
    grid-template-columns: 53.3% 46.7%;
    background: linear-gradient(90deg, #fbf6ef 0 53.3%, #fffaf2 53.3% 100%);
    border-bottom: 1px solid rgba(183, 144, 77, .12);
}
.before-after-panel {
    margin: 48px 36px 15px 38px;
    padding: 17px 25px 14px;
    background: rgba(255, 252, 247, .76);
    border: 1px solid rgba(184, 143, 69, .15);
    border-radius: 15px;
    box-shadow: 0 12px 30px rgba(124, 91, 40, .09);
}
.panel-heading { display: flex; align-items: center; justify-content: space-between; }
.panel-heading h2 {
    margin: 0;
    color: #b17f31;
    font-family: var(--serif);
    font-size: 28px;
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: uppercase;
}
.panel-heading h2 span { font-size: 9px; vertical-align: middle; }
.panel-heading a {
    padding: 8px 17px;
    border: 1px solid rgba(184, 140, 60, .35);
    border-radius: 999px;
    color: #b28a4c;
    font-size: 9px;
    text-transform: uppercase;
}
.comparison-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 13px; }
.comparison-images { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.comparison-images figure { margin: 0; position: relative; overflow: hidden; border-radius: 12px; height: 112px; }
.comparison-images img { width: 100%; height: 100%; object-fit: cover; }
.comparison-images figcaption {
    position: absolute;
    left: 50%;
    bottom: 5px;
    transform: translateX(-50%);
    min-width: max-content;
    padding: 2px 7px;
    border-radius: 99px;
    background: rgba(255,255,255,.88);
    color: #a2732d;
    font-family: var(--serif);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}
.comparison-group > p {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin: 4px 0 0;
    text-align: center;
    font-size: 7px;
    line-height: 1.3;
}
.comparison-group > p strong,
.comparison-group > p span { padding: 3px 6px; background: #fff; border: 1px solid rgba(189, 145, 69, .16); border-radius: 999px; }
.comparison-group > p strong { color: #9c6b25; }
.comparison-group > p span { color: #b83a3a; }

.treatment-panel { position: relative; padding: 18px 45px 20px 30px; overflow: hidden; }
.treatment-heading { margin-bottom: 8px; }
.treatment-showcase-grid {
    min-height: 245px;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.treatment-showcase-grid::-webkit-scrollbar { display: none; }
.treatment-showcase-card {
    flex: 0 0 33.3333%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 22px 5px;
    border-right: 1px solid rgba(183, 144, 77, .16);
    text-align: center;
    scroll-snap-align: start;
}
.treatment-showcase-card:last-child { border-right: 0; }
.treatment-showcase-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: grid;
    place-items: center;
    margin-bottom: 6px;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(145deg, #f4efe7, #fbfaf7);
}
.treatment-showcase-image img { display: block; width: 100%; height: 100%; border-radius: 12px; }
.treatment-image-placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: #b99b6d; font: 600 13px var(--serif); }
.treatment-showcase-card h3 { margin: 2px 0 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .02em; }
.treatment-showcase-card p { margin: 0; min-height: 35px; color: #766b5d; font-family: var(--serif); font-size: 14px; line-height: 1.05; }
.treatment-showcase-card a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 95px;
    height: 30px;
    margin-top: auto;
    padding: 0 13px;
    border: 1px solid rgba(174, 126, 51, .65);
    border-radius: 999px;
    color: #a5752e;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
}
.treatment-empty-state { min-height: 230px; display: grid; place-items: center; color: #9a8871; font-family: var(--serif); font-size: 18px; }
.slider-arrow {
    position: absolute;
    top: 139px;
    z-index: 3;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: #e7c98f;
    color: #9b7130;
    font-size: 21px;
}
.slider-prev { left: 14px; }
.slider-next { right: 13px; }

.benefit-strip {
    min-height: 71px;
    padding: 10px 62px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    align-items: center;
    background: #fffdfa;
    border-bottom: 1px solid rgba(183, 144, 77, .11);
}
.benefit-strip article { display: flex; align-items: center; justify-content: center; gap: 13px; }
.benefit-icon { color: #e0c184; font-size: 33px; line-height: 1; }
.benefit-strip h3 { margin: 0 0 4px; font-size: 9px; letter-spacing: .04em; text-transform: uppercase; }
.benefit-strip p { margin: 0; color: #6f665c; font-size: 8px; line-height: 1.45; }

.content-section { padding: 100px max(7vw, 60px); background: #fffaf3; }
.content-heading span,
.contact-copy > span,
.promo-section > div > span,
.modal-kicker { color: #b08035; font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.content-heading h2,
.contact-copy h2,
.promo-section h2,
.modal-dialog h2 {
    margin: 8px 0 0;
    font-family: var(--serif);
    font-size: clamp(38px, 4.6vw, 66px);
    font-weight: 500;
    line-height: .95;
}
.about-grid { margin-top: 40px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 20px; }
.about-card { min-height: 185px; padding: 30px; border: 1px solid var(--line); border-radius: 18px; background: #fffdf9; box-shadow: var(--shadow); }
.large-card { display: flex; flex-direction: column; justify-content: space-between; }
.large-card p { max-width: 720px; margin: 0; font-family: var(--serif); font-size: 27px; line-height: 1.25; }
.outline-btn { display: inline-flex; width: max-content; min-height: 42px; padding: 0 21px; align-items: center; justify-content: center; border: 1px solid #b88635; border-radius: 999px; background: transparent; color: #9d702a; font-size: 11px; font-weight: 600; text-transform: uppercase; }
.stat-card { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.stat-card strong { color: #b17f31; font-family: var(--serif); font-size: 58px; font-weight: 500; }
.stat-card span { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.treatment-section { background: #f6ecdf; }
.centered { text-align: center; }
.treatment-grid { margin-top: 45px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.treatment-grid article { padding: 32px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.63); }
.treatment-grid article > span { color: #c09a5b; font-family: var(--serif); font-size: 20px; }
.treatment-grid h3 { margin: 30px 0 10px; font-family: var(--serif); font-size: 30px; font-weight: 500; }
.treatment-grid p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.promo-section { padding: 70px max(7vw, 60px); display: flex; align-items: center; justify-content: space-between; gap: 30px; background: linear-gradient(120deg, #5d4831, #80613d); color: #fff; }
.promo-section h2 { font-size: clamp(38px, 4vw, 58px); }
.promo-section p { max-width: 650px; margin: 15px 0 0; color: rgba(255,255,255,.72); font-size: 14px; }
.promo-section .gold-btn { flex-shrink: 0; margin: 0; }
.contact-section { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.contact-copy p { color: var(--muted); font-size: 14px; }
.contact-copy a { color: #a8782e; }
.site-footer { min-height: 28px; padding: 6px 30px; display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; background: linear-gradient(90deg, #cba966, #e8d6b4, #c9a761); color: #fff; font-size: 9px; letter-spacing: .04em; text-transform: uppercase; }
.site-footer a { color: #fff; }

.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; opacity: 0; visibility: hidden; transition: .25s ease; }
.modal.is-open { opacity: 1; visibility: visible; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(48, 39, 28, .58); backdrop-filter: blur(6px); }
.modal-dialog { position: relative; z-index: 2; width: min(580px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; padding: 34px; border-radius: 22px; background: #fffaf3; box-shadow: 0 35px 80px rgba(30, 20, 10, .28); }
.modal-dialog h2 { font-size: 43px; }
.modal-close { position: absolute; right: 16px; top: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #efe1cd; color: #8c6630; font-size: 24px; }
.booking-form { margin-top: 24px; display: grid; gap: 14px; }
.booking-form label { display: grid; gap: 7px; color: #756957; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.booking-form input,
.booking-form select,
.booking-form textarea { width: 100%; border: 1px solid rgba(174, 128, 55, .25); border-radius: 12px; background: #fff; padding: 12px 13px; color: #3e372f; outline: none; text-transform: none; }
.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus { border-color: #b88534; box-shadow: 0 0 0 3px rgba(184,133,52,.1); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-submit { width: 100%; margin-top: 5px; }
body.modal-open { overflow: hidden; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 120; max-width: 420px; padding: 15px 18px; border-radius: 12px; color: #fff; font-size: 13px; box-shadow: 0 12px 40px rgba(0,0,0,.2); animation: toastIn .35s ease; }
.toast.success { background: #597a57; }
.toast.error { background: #a14f45; }
@keyframes toastIn { from { transform: translateY(15px); opacity: 0; } }

@media (max-width: 1220px) {
    .header-inner { padding: 0 28px; grid-template-columns: 145px 1fr auto; gap: 18px; }
    .main-nav { gap: 18px; }
    .main-nav a { font-size: 10px; }
    .instagram-link span:last-child { display: none; }
    .header-actions { gap: 14px; }
    .hero-copy { padding-left: 60px; width: 470px; }
    .hero-model-wrap { left: 38%; width: 45%; }
    .hero-quote { right: 25px; width: 270px; }
    .hero-quote p { font-size: 31px; }
    .hero-quote strong { font-size: 45px; }
    .before-after-panel { margin-left: 22px; margin-right: 20px; }
    .treatment-showcase-card { padding: 0 14px; }
}

@media (max-width: 980px) {
    .site-header { height: 78px; position: sticky; top: 0; }
    .header-inner { grid-template-columns: 120px 1fr auto; padding: 0 20px; }
    .brand { width: 105px; height: 70px; }
    .brand img { width: 105px; height: 88px; }
    .menu-toggle { display: grid; width: 42px; height: 42px; border: 0; border-radius: 50%; place-content: center; gap: 4px; background: #efe0c7; }
    .menu-toggle span { display: block; width: 19px; height: 1px; background: #755734; }
    .main-nav {
        position: fixed;
        left: 18px;
        right: 18px;
        top: 88px;
        display: grid;
        gap: 0;
        padding: 10px 20px;
        background: #fffaf4;
        border: 1px solid var(--line);
        border-radius: 18px;
        box-shadow: 0 24px 60px rgba(70,50,25,.18);
        opacity: 0;
        transform: translateY(-12px);
        visibility: hidden;
        transition: .2s ease;
    }
    .main-nav.is-open { opacity: 1; transform: translateY(0); visibility: visible; }
    .main-nav a { padding: 13px 0; border-bottom: 1px solid rgba(174,130,59,.12); font-size: 11px; }
    .main-nav a:last-child { border-bottom: 0; }
    .main-nav a::after { display: none; }
    .header-actions { justify-self: end; }
    .appointment-btn { height: 38px; padding: 0 16px; font-size: 10px; }
    .instagram-link { display: none; }
    .hero-section { min-height: 680px; }
    .hero-copy { width: 55%; padding: 64px 0 0 38px; }
    .hero-copy h1 { font-size: 56px; }
    .hero-model-wrap { left: 37%; top: 0; width: 68%; height: 420px; }
    .hero-quote { right: 40px; top: 430px; width: 310px; }
    .showcase-section { grid-template-columns: 1fr; }
    .before-after-panel { margin: 28px 24px 15px; }
    .treatment-panel { min-height: 315px; }
    .treatment-showcase-card { flex-basis: 50%; }
    .benefit-strip { grid-template-columns: repeat(2, 1fr); padding: 20px 30px; }
    .about-grid { grid-template-columns: 1fr 1fr; }
    .large-card { grid-column: 1 / -1; }
    .treatment-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
    .header-inner { padding: 0 14px; grid-template-columns: 88px 1fr auto; }
    .brand { width: 80px; }
    .brand img { width: 86px; height: 76px; }
    .appointment-btn { padding: 0 12px; }
    .appointment-btn .calendar-icon { display: none; }
    .hero-section { min-height: 780px; }
    .hero-section::before { width: 370px; height: 370px; left: 18%; top: -90px; }
    .hero-copy { width: 100%; padding: 42px 24px 0; text-align: left; }
    .hero-copy h1 { font-size: clamp(48px, 15vw, 65px); }
    .medan-label, .doctor-name { width: 100%; text-align: left; }
    .hero-model-wrap { left: 19%; top: 285px; width: 92%; height: 330px; }
    .hero-model-wrap img { mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%); }
    .hero-quote { right: auto; left: 22px; top: 605px; width: calc(100% - 44px); }
    .hero-quote p { font-size: 28px; }
    .hero-quote strong { font-size: 43px; }
    .showcase-section { display: block; }
    .before-after-panel { margin: 20px 12px; padding: 16px 13px; }
    .panel-heading h2 { font-size: 24px; }
    .comparison-grid { grid-template-columns: 1fr; }
    .comparison-images figure { height: 130px; }
    .treatment-panel { padding: 22px 36px 22px; }
    .treatment-showcase-card { flex-basis: 82%; padding-inline: 16px; scroll-snap-align: center; }
    .slider-arrow { top: 150px; }
    .benefit-strip { grid-template-columns: 1fr; padding: 24px; }
    .benefit-strip article { justify-content: flex-start; max-width: 270px; margin: 0 auto; width: 100%; }
    .content-section { padding: 72px 22px; }
    .about-grid { grid-template-columns: 1fr; }
    .large-card { grid-column: auto; }
    .promo-section, .contact-section { padding: 60px 22px; flex-direction: column; align-items: flex-start; }
    .form-row { grid-template-columns: 1fr; }
    .site-footer { padding: 12px 18px; }
}


/* Dynamic gallery managed from admin */
.gallery-section { padding-top: clamp(70px, 8vw, 118px); padding-bottom: clamp(70px, 8vw, 118px); }
.dynamic-gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 34px; }
.dynamic-gallery-item { position: relative; min-height: 300px; margin: 0; overflow: hidden; border: 1px solid rgba(176, 130, 55, .18); border-radius: 24px; background: #f5eee5; box-shadow: 0 18px 45px rgba(73, 55, 30, .08); }
.dynamic-gallery-item:nth-child(5n + 1) { grid-column: span 2; }
.dynamic-gallery-item img { width: 100%; height: 100%; min-height: 300px; display: block; object-fit: cover; transition: transform .5s ease; }
.dynamic-gallery-item:hover img { transform: scale(1.035); }
.dynamic-gallery-item figcaption { position: absolute; left: 14px; right: 14px; bottom: 14px; padding: 12px 15px; border: 1px solid rgba(255,255,255,.24); border-radius: 14px; color: #fff; background: rgba(55, 40, 22, .52); backdrop-filter: blur(12px); font-size: 11px; font-weight: 600; letter-spacing: .04em; }
.contact-hours { white-space: normal; }

@media (max-width: 980px) {
    .dynamic-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dynamic-gallery-item:nth-child(5n + 1) { grid-column: span 1; }
}

@media (max-width: 600px) {
    .dynamic-gallery-grid { grid-template-columns: 1fr; }
    .dynamic-gallery-item, .dynamic-gallery-item img { min-height: 260px; }
}
.contact-link-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.contact-link-row a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 13px; border: 1px solid rgba(173,125,48,.28); border-radius: 999px; color: #8f6529; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.contact-link-row a:hover { background: rgba(176,130,55,.08); }

/* Floating WhatsApp homepage button */
.floating-whatsapp {
    position: fixed;
    bottom: 24px;
    z-index: 95;
    min-height: 58px;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    padding: 9px 18px 9px 9px;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 999px;
    color: #fff;
    background: #25d366;
    box-shadow: 0 16px 38px rgba(12, 100, 48, .28);
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.floating-whatsapp-right { right: 24px; }
.floating-whatsapp-left { left: 24px; }
.floating-whatsapp:hover {
    color: #fff;
    background: #1fb75a;
    transform: translateY(-3px);
    box-shadow: 0 20px 45px rgba(12, 100, 48, .35);
}
.floating-whatsapp-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,.16);
}
.floating-whatsapp-icon svg { width: 27px; height: 27px; }
.floating-whatsapp-copy { display: grid; line-height: 1.15; }
.floating-whatsapp-copy small { margin-bottom: 4px; color: rgba(255,255,255,.83); font: 500 9px/1.1 'Montserrat', sans-serif; letter-spacing: .04em; }
.floating-whatsapp-copy strong { color: #fff; font: 600 11px/1.1 'Montserrat', sans-serif; }

@media (max-width: 640px) {
    .floating-whatsapp { bottom: 16px; min-height: 54px; padding: 7px; }
    .floating-whatsapp-right { right: 14px; }
    .floating-whatsapp-left { left: 14px; }
    .floating-whatsapp-icon { width: 40px; height: 40px; flex-basis: 40px; }
    .floating-whatsapp-copy { display: none; }
}

/* V5 uploaded media collections */
.brand-text-fallback {
    display: grid;
    place-items: center;
    min-width: 78px;
    min-height: 74px;
    color: #ae7b2c;
    font: 600 27px/1 'Cormorant Garamond', serif;
    letter-spacing: .12em;
}
.uploaded-media-section {
    overflow: hidden;
    background: linear-gradient(180deg, #fffdf9 0%, #f8f0e6 100%);
}
.pricelist-media-section { background: #f7efe5; }
.uploaded-media-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}
.uploaded-media-heading .content-heading { margin: 0; }
.uploaded-media-heading .content-heading p {
    max-width: 680px;
    margin: 12px 0 0;
    color: #7d6f5f;
    font-size: 13px;
    line-height: 1.75;
}
.uploaded-media-controls { display: flex; gap: 10px; flex: 0 0 auto; }
.uploaded-media-controls button {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(174,123,44,.3);
    border-radius: 50%;
    color: #a16f27;
    background: rgba(255,255,255,.84);
    font: 400 27px/1 'Cormorant Garamond', serif;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease;
}
.uploaded-media-controls button:hover { transform: translateY(-2px); background: #fff; }
.uploaded-media-rail {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: rgba(171,125,53,.35) transparent;
    padding: 4px 2px 20px;
}
.uploaded-media-card {
    flex: 0 0 clamp(245px, 23vw, 320px);
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(176,130,55,.18);
    border-radius: 24px;
    color: #5d4931;
    background: #fff;
    box-shadow: 0 18px 46px rgba(76,56,29,.08);
    scroll-snap-align: start;
    text-align: left;
    cursor: zoom-in;
    transition: transform .24s ease, box-shadow .24s ease;
}
.uploaded-media-card:hover { transform: translateY(-5px); box-shadow: 0 24px 56px rgba(76,56,29,.13); }
.uploaded-media-card img {
    width: 100%;
    height: 400px;
    display: block;
    object-fit: contain;
    background: #f8f2e9;
}
.uploaded-media-card span {
    min-height: 63px;
    display: flex;
    align-items: center;
    padding: 14px 16px;
    font: 600 11px/1.55 'Montserrat', sans-serif;
    letter-spacing: .02em;
}
.pricelist-upload-card { flex-basis: clamp(230px, 20vw, 285px); }
.pricelist-upload-card img { height: 430px; }
.dynamic-gallery-item img[role="button"] { cursor: zoom-in; }

.media-lightbox {
    position: fixed;
    inset: 0;
    z-index: 150;
    display: grid;
    place-items: center;
    padding: 22px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
}
.media-lightbox.is-open { opacity: 1; visibility: visible; }
.media-lightbox-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(28,21,14,.78);
    backdrop-filter: blur(8px);
    cursor: zoom-out;
}
.media-lightbox-dialog {
    position: relative;
    z-index: 1;
    width: min(940px, 96vw);
    max-height: 92vh;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 22px;
    background: #f8f1e7;
    box-shadow: 0 28px 90px rgba(0,0,0,.34);
}
.media-lightbox-dialog img {
    width: 100%;
    max-height: calc(92vh - 70px);
    display: block;
    object-fit: contain;
    background: #16120e;
}
.media-lightbox-caption {
    min-height: 56px;
    display: flex;
    align-items: center;
    padding: 14px 58px 14px 18px;
    color: #604b31;
    font: 600 12px/1.5 'Montserrat', sans-serif;
}
.media-lightbox-close {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 50%;
    color: #fff;
    background: rgba(34,25,15,.62);
    font-size: 25px;
    cursor: pointer;
}
body.media-lightbox-open { overflow: hidden; }

@media (max-width: 760px) {
    .uploaded-media-heading { align-items: flex-start; }
    .uploaded-media-heading .content-heading h2 { font-size: 38px; }
    .uploaded-media-controls { margin-top: 8px; }
    .uploaded-media-card { flex-basis: 82vw; }
    .uploaded-media-card img, .pricelist-upload-card img { height: auto; max-height: 72vh; }
    .media-lightbox { padding: 10px; }
    .media-lightbox-dialog { width: 100%; max-height: 96vh; border-radius: 16px; }
}
.dynamic-gallery-item img { object-fit: contain; background: #f4ede3; }

/* Custom Homepage Image Layout V7 */
.custom-media-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--layout-gap, 18px);
    align-items: start;
    margin-top: 34px;
}
.custom-media-card {
    min-width: 0;
    grid-column: span var(--span-desktop, 3);
    overflow: hidden;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(105, 83, 53, .14);
    border-radius: var(--layout-radius, 18px);
    color: inherit;
    background: #fff;
    box-shadow: 0 14px 38px rgba(72, 55, 31, .075);
    text-align: left;
    transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}
button.custom-media-card { width: auto; font: inherit; cursor: zoom-in; }
.custom-media-card:hover { transform: translateY(-4px); border-color: rgba(173, 129, 61, .36); box-shadow: 0 20px 46px rgba(72, 55, 31, .13); }
.custom-media-card-visual {
    width: 100%;
    min-height: 90px;
    display: block;
    overflow: hidden;
    padding: 0;
    border: 0;
    color: inherit;
    background: #f1ebe2;
    cursor: zoom-in;
}
.custom-media-card-visual img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    display: block;
    object-fit: var(--item-fit, cover);
    object-position: var(--position-x, 50%) var(--position-y, 50%);
}
.custom-media-caption {
    display: block;
    padding: 13px 15px 14px;
    color: #5b4b39;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.45;
}
.custom-media-grid-promo .custom-media-card-visual,
.custom-media-grid-pricelist .custom-media-card-visual { background: #eee5d8; }
.custom-media-grid-promo .custom-media-card-visual img,
.custom-media-grid-pricelist .custom-media-card-visual img { object-fit: var(--item-fit, contain); }
.gallery-custom-card .custom-media-card-visual { border-radius: 0; }

@media (max-width: 1024px) {
    .custom-media-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
    .custom-media-card { grid-column: span var(--span-tablet, 4); }
}

@media (max-width: 640px) {
    .custom-media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: min(var(--layout-gap, 18px), 14px); }
    .custom-media-card { grid-column: span var(--span-mobile, 2); }
    .custom-media-caption { padding: 10px 11px 12px; font-size: 10px; }
}

/* Auto Fit Column V9 — intrinsic image ratio + packed masonry rows */
.custom-media-grid.auto-fit-columns .custom-media-card-visual {
    height: auto !important;
    min-height: 0;
    aspect-ratio: auto !important;
    background: #fff;
}
.custom-media-grid.auto-fit-columns .custom-media-card-visual img {
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    object-fit: contain !important;
    object-position: center;
}
.custom-media-grid.auto-fit-columns.masonry-ready {
    grid-auto-rows: 8px;
}
.custom-media-grid.auto-fit-columns.masonry-ready .custom-media-card {
    align-self: start;
}
@media (max-width: 640px) {
    .custom-media-grid.auto-fit-columns.masonry-ready {
        grid-auto-rows: 6px;
    }
}

/* Multi WhatsApp Admin & custom social links V9 */
.contact-channel-group { margin: 18px 0 12px; }
.contact-channel-group > strong { display: block; margin-bottom: 10px; color: #6f5127; font: 600 12px/1.2 'Montserrat', sans-serif; letter-spacing: .04em; text-transform: uppercase; }
.contact-admin-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 660px; }
.contact-admin-link { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 11px 13px; border: 1px solid rgba(173,125,48,.22); border-radius: 15px; background: rgba(255,255,255,.62); box-shadow: 0 8px 22px rgba(82,61,27,.05); }
.contact-admin-link:hover { border-color: rgba(37,211,102,.42); background: #fff; transform: translateY(-1px); }
.contact-admin-icon { width: 35px; height: 35px; flex: 0 0 35px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #25d366; font: 700 10px/1 'Montserrat', sans-serif; }
.contact-admin-link > span:last-child { min-width: 0; }
.contact-admin-link b, .contact-admin-link small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-admin-link b { color: #443722; font-size: 11px; }
.contact-admin-link small { margin-top: 3px; color: #8c7b61; font-size: 9px; }
.custom-social-links a { gap: 6px; text-transform: none; }
.custom-social-links a > span { font-size: 13px; }

.floating-whatsapp-wrap { position: fixed; bottom: 24px; z-index: 95; }
.floating-whatsapp-wrap.floating-whatsapp-right { right: 24px; }
.floating-whatsapp-wrap.floating-whatsapp-left { left: 24px; }
.floating-whatsapp-wrap .floating-whatsapp { position: relative; right: auto; left: auto; bottom: auto; border: 0; cursor: pointer; }
.floating-whatsapp-menu { position: absolute; bottom: calc(100% + 12px); width: min(350px, calc(100vw - 28px)); overflow: hidden; border: 1px solid rgba(175,144,92,.22); border-radius: 20px; background: rgba(255,253,249,.98); box-shadow: 0 22px 65px rgba(50,39,23,.2); opacity: 0; visibility: hidden; transform: translateY(12px) scale(.98); transform-origin: bottom; transition: opacity .2s ease, transform .2s ease, visibility .2s ease; backdrop-filter: blur(18px); }
.floating-whatsapp-right .floating-whatsapp-menu { right: 0; }
.floating-whatsapp-left .floating-whatsapp-menu { left: 0; }
.floating-whatsapp-wrap.is-open .floating-whatsapp-menu { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.floating-whatsapp-menu-head { padding: 16px 17px 13px; border-bottom: 1px solid rgba(175,144,92,.14); background: linear-gradient(135deg, #fffaf2, #f6ead8); }
.floating-whatsapp-menu-head strong, .floating-whatsapp-menu-head small { display: block; }
.floating-whatsapp-menu-head strong { color: #4a3922; font: 600 14px/1.25 'Montserrat', sans-serif; }
.floating-whatsapp-menu-head small { margin-top: 5px; color: #8a7961; font: 500 10px/1.4 'Montserrat', sans-serif; }
.floating-whatsapp-admins { display: grid; padding: 8px; }
.floating-whatsapp-admins a { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 10px; border-radius: 14px; color: #4a402f; }
.floating-whatsapp-admins a:hover { background: #f4f8f3; }
.wa-admin-avatar { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(145deg, #25d366, #159447); font: 700 14px/1 'Montserrat', sans-serif; }
.floating-whatsapp-admins b, .floating-whatsapp-admins small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.floating-whatsapp-admins b { color: #3e3528; font: 600 11px/1.25 'Montserrat', sans-serif; }
.floating-whatsapp-admins small { margin-top: 4px; color: #8b806f; font: 500 9px/1.25 'Montserrat', sans-serif; }
.floating-whatsapp-admins em { padding: 4px 7px; border-radius: 999px; color: #187942; background: #e7f8ed; font: 600 8px/1 'Montserrat', sans-serif; font-style: normal; text-transform: uppercase; letter-spacing: .04em; }

@media (max-width: 700px) {
    .contact-admin-list { grid-template-columns: 1fr; }
    .floating-whatsapp-wrap { bottom: 16px; }
    .floating-whatsapp-wrap.floating-whatsapp-right { right: 14px; }
    .floating-whatsapp-wrap.floating-whatsapp-left { left: 14px; }
    .floating-whatsapp-wrap .floating-whatsapp { min-height: 54px; padding: 7px; }
    .floating-whatsapp-menu { bottom: calc(100% + 9px); }
}

/* Homepage narrative flow V12: Clinic -> Treatment -> Before & After */
.homepage-flow-section {
    padding: 70px max(7vw, 60px);
    border-bottom: 1px solid rgba(183, 144, 77, .11);
}
.treatment-flow-section { background: #fffaf3; }
.before-after-flow-section { background: #f7efe4; }

.treatment-flow-panel,
.before-after-flow-panel {
    width: min(1440px, 100%);
    margin: 0 auto;
    border: 1px solid rgba(184, 143, 69, .15);
    border-radius: 22px;
    background: rgba(255, 253, 249, .9);
    box-shadow: 0 18px 50px rgba(124, 91, 40, .08);
}
.treatment-flow-panel {
    min-height: 0;
    padding: 30px 58px 34px;
}
.treatment-flow-panel .treatment-heading { margin-bottom: 20px; }
.treatment-flow-panel .treatment-showcase-grid { min-height: 330px; }
.treatment-flow-panel .treatment-showcase-card { flex-basis: 33.3333%; padding: 0 30px 8px; }
.treatment-flow-panel .treatment-showcase-image { margin-bottom: 12px; }
.treatment-flow-panel .treatment-showcase-card h3 { font-size: 12px; }
.treatment-flow-panel .treatment-showcase-card p { min-height: 42px; font-size: 16px; line-height: 1.15; }
.treatment-flow-panel .slider-arrow { top: 54%; transform: translateY(-50%); }

.before-after-flow-panel {
    padding: 30px 34px 32px;
}
.before-after-flow-panel .comparison-grid { gap: 30px; margin-top: 20px; }
.before-after-flow-panel .comparison-images figure { height: clamp(190px, 16vw, 270px); }
.before-after-flow-panel .comparison-group > p { font-size: 9px; gap: 7px; margin-top: 8px; }
.before-after-flow-panel .comparison-group > p strong,
.before-after-flow-panel .comparison-group > p span { padding: 6px 9px; }

/* Keep the supporting clinic proof directly after the clinic story. */
.about-section + .benefit-strip { border-top: 1px solid rgba(183, 144, 77, .08); }

@media (max-width: 980px) {
    .homepage-flow-section { padding: 58px 28px; }
    .treatment-flow-panel { padding: 28px 48px 30px; }
    .treatment-flow-panel .treatment-showcase-card { flex-basis: 50%; padding-inline: 20px; }
    .before-after-flow-panel { padding: 26px; }
    .before-after-flow-panel .comparison-images figure { height: 190px; }
}

@media (max-width: 680px) {
    .homepage-flow-section { padding: 42px 12px; }
    .treatment-flow-panel { padding: 22px 34px 24px; border-radius: 16px; }
    .treatment-flow-panel .treatment-showcase-card { flex-basis: 82%; padding-inline: 16px; }
    .treatment-flow-panel .treatment-showcase-grid { min-height: 300px; }
    .treatment-flow-panel .slider-arrow { top: 55%; }
    .before-after-flow-panel { padding: 18px 13px; border-radius: 16px; }
    .before-after-flow-panel .comparison-grid { grid-template-columns: 1fr; gap: 22px; }
    .before-after-flow-panel .comparison-images figure { height: 145px; }
}


/* ===== V13: Tipografi Ringkas & Seimbang ===== */
html { font-size: 16px; }
body { font-size: 14px; line-height: 1.55; }
.site-header { height: 84px; }
.header-inner { padding-left: clamp(22px, 3vw, 42px); padding-right: clamp(22px, 3vw, 42px); gap: 24px; grid-template-columns: 145px 1fr auto; }
.brand { width: 120px; height: 80px; }
.brand img { width: 112px; height: 92px; }
.main-nav { gap: clamp(14px, 1.45vw, 27px); }
.main-nav a { padding: 32px 0 24px; font-size: 11px; }
.main-nav a::after { bottom: 18px; }
.appointment-btn { height: 38px; padding: 0 18px; font-size: 11px; }
.instagram-link { font-size: 11px; }
.instagram-icon { font-size: 22px; }
.hero-section { min-height: 390px; }
.hero-copy { width: 520px; padding-top: 58px; }
.eyebrow { font-size: 11px; }
.hero-copy h1 { font-size: clamp(40px, 4vw, 56px); line-height: .86; }
.hero-copy h1 span { font-size: 1.22em; line-height: .88; }
.medan-label { font-size: 19px; }
.medan-label b { font-size: 10px; }
.doctor-name { font-size: 21px; }
.hero-address { font-size: 12px; }
.gold-btn { min-height: 38px; padding: 0 20px; font-size: 11px; }
.hero-quote { top: 108px; width: 285px; }
.hero-quote p { font-size: clamp(24px, 2vw, 30px); }
.hero-quote strong { font-size: clamp(34px, 2.8vw, 42px); }
.content-section { padding-top: 62px; padding-bottom: 62px; }
.content-heading h2, .uploaded-media-heading .content-heading h2 { font-size: clamp(28px, 2.7vw, 38px); line-height: 1.1; }
.content-heading > span, .uploaded-media-heading .content-heading > span { font-size: 11px; }
.large-card p { font-size: clamp(17px, 1.45vw, 21px); line-height: 1.45; }
.outline-btn { min-height: 38px; padding: 0 18px; font-size: 11px; }
.stat-card strong { font-size: 42px; }
.stat-card span { font-size: 10.5px; }
.benefit-icon { font-size: 27px; }
.benefit-strip h3 { font-size: 10.5px; }
.benefit-strip p { font-size: 10px; }
.treatment-grid h3 { margin-top: 22px; font-size: 24px; }
.treatment-grid p { font-size: 13px; line-height: 1.6; }
.panel-heading h2 { font-size: 25px; }
.panel-heading h2 span, .panel-heading a { font-size: 10px; }
.comparison-images figcaption { font-size: 10.5px; }
.comparison-group > p, .before-after-flow-panel .comparison-group > p { font-size: 10px; line-height: 1.35; }
.treatment-showcase-card h3, .treatment-flow-panel .treatment-showcase-card h3 { font-size: 12.5px; }
.treatment-showcase-card p, .treatment-flow-panel .treatment-showcase-card p { font-size: 14px; line-height: 1.25; min-height: 38px; }
.treatment-showcase-card a { font-size: 10.5px; }
.promo-section h2 { font-size: clamp(30px, 3vw, 40px); }
.promo-section p { font-size: 13px; line-height: 1.6; }
.contact-copy h2 { font-size: clamp(28px, 2.7vw, 38px); }
.contact-copy p { font-size: 13px; }
.contact-admin-link b { font-size: 11.5px; }
.contact-admin-link small { font-size: 10px; }
.contact-link-row a { font-size: 10.5px; }
.custom-media-caption { font-size: 10.5px; line-height: 1.4; }
.site-footer { font-size: 10px; }
.modal-dialog h2 { font-size: 34px; }
.modal-kicker, .booking-form label { font-size: 11px; }
.booking-form input, .booking-form select, .booking-form textarea { font-size: 13px; }
.toast { font-size: 12px; }

@media (max-width: 1100px) {
  .main-nav a { font-size: 10.5px; }
  .hero-copy h1 { font-size: clamp(42px, 5.6vw, 56px); }
  .hero-quote p { font-size: 25px; }
  .hero-quote strong { font-size: 36px; }
}
@media (max-width: 760px) {
  .site-header { height: 76px; }
  .main-nav a { font-size: 12px; }
  .hero-copy { padding-top: 38px; }
  .hero-copy h1 { font-size: clamp(40px, 12vw, 52px); }
  .medan-label { font-size: 17px; }
  .doctor-name { font-size: 19px; }
  .hero-quote p { font-size: 23px; }
  .hero-quote strong { font-size: 34px; }
  .content-section { padding-top: 48px; padding-bottom: 48px; }
  .content-heading h2, .uploaded-media-heading .content-heading h2 { font-size: 30px; }
  .panel-heading h2 { font-size: 22px; }
  .large-card p { font-size: 17px; }
  .treatment-grid h3 { font-size: 22px; }
  .modal-dialog h2 { font-size: 29px; }
}

body small { font-size: 10.5px; line-height: 1.4; }

/* ===== V13.1: Skala Compact Konsisten, Tanpa Teks Terlalu Kecil ===== */
body { font-size: 14px; }
.main-nav a, .appointment-btn, .instagram-link, .gold-btn, .outline-btn { font-size: 11.5px; }
.hero-section { min-height: 370px; }
.hero-copy { padding-top: 48px; }
.hero-copy h1 { font-size: clamp(38px, 3.7vw, 52px); line-height: .9; }
.hero-copy h1 span { font-size: 1.15em; line-height: .92; }
.hero-quote p { font-size: clamp(22px, 1.8vw, 27px); }
.hero-quote strong { font-size: clamp(30px, 2.5vw, 38px); }
.medan-label b, .panel-heading h2 span, .panel-heading a,
.comparison-group > p, .before-after-flow-panel .comparison-group > p,
.treatment-showcase-card a, .benefit-strip h3, .benefit-strip p,
.site-footer, .contact-admin-link small,
.custom-media-caption, .contact-link-row a { font-size: 11px; }
.content-section { padding-top: 54px; padding-bottom: 54px; }
.homepage-flow-section { padding: 52px max(5vw, 34px); }
.treatment-flow-panel { padding: 26px 42px 28px; }
.before-after-flow-panel { padding: 26px 28px 28px; }
.content-heading h2, .uploaded-media-heading .content-heading h2 { font-size: clamp(27px, 2.4vw, 35px); }
.large-card p { font-size: clamp(16px, 1.25vw, 19px); }
.stat-card strong { font-size: 36px; }
.treatment-grid h3 { font-size: 22px; }
.panel-heading h2 { font-size: 23px; }
.treatment-showcase-card h3, .treatment-flow-panel .treatment-showcase-card h3 { font-size: 13px; }
.treatment-showcase-card p, .treatment-flow-panel .treatment-showcase-card p { font-size: 13.5px; line-height: 1.35; }
.promo-section h2, .contact-copy h2 { font-size: clamp(27px, 2.6vw, 36px); }
.modal-dialog h2 { font-size: 30px; }
body small { font-size: 11px; line-height: 1.45; }

@media (max-width: 1100px) {
  .hero-copy h1 { font-size: clamp(38px, 5vw, 50px); }
  .hero-quote p { font-size: 22px; }
  .hero-quote strong { font-size: 32px; }
}
@media (max-width: 760px) {
  .hero-copy h1 { font-size: clamp(36px, 10.5vw, 46px); }
  .hero-quote p { font-size: 21px; }
  .hero-quote strong { font-size: 30px; }
  .homepage-flow-section { padding: 38px 12px; }
  .content-section { padding-top: 42px; padding-bottom: 42px; }
  .content-heading h2, .uploaded-media-heading .content-heading h2 { font-size: 27px; }
  .large-card p { font-size: 16px; }
  .promo-section h2, .contact-copy h2 { font-size: 28px; }
}

/* ===== V14: Mobile Hero & Typography Stabilization ===== */
@media (max-width: 760px) {
  .site-header { height: 76px; }
  .header-inner {
    padding: 0 14px;
    gap: 10px;
    grid-template-columns: 86px 42px minmax(0, 1fr);
  }
  .brand {
    width: 82px;
    height: 72px;
    overflow: hidden;
  }
  .brand img {
    width: 82px;
    height: 72px;
    object-fit: contain;
    mix-blend-mode: multiply;
  }
  .menu-toggle {
    width: 40px;
    height: 40px;
    justify-self: center;
  }
  .header-actions { justify-self: end; min-width: 0; }
  .appointment-btn {
    min-width: 116px;
    height: 40px;
    padding: 0 14px;
    font-size: 10.5px;
    line-height: 1.15;
    white-space: normal;
    text-align: center;
  }

  .hero-section {
    min-height: 610px;
    overflow: hidden;
  }
  .hero-section::before {
    width: 330px;
    height: 330px;
    left: 28%;
    top: -95px;
  }
  .hero-section::after {
    width: 430px;
    height: 430px;
    right: -230px;
    top: 120px;
  }
  .hero-copy {
    width: 100%;
    max-width: none;
    padding: 38px 24px 0;
    text-align: left;
  }
  .eyebrow {
    gap: 10px;
    font-size: 10px;
    letter-spacing: .16em;
  }
  .hero-copy h1 {
    width: 100%;
    max-width: 390px;
    margin: 8px 0 6px;
    font-size: clamp(33px, 9.4vw, 41px);
    line-height: .94;
    letter-spacing: -.01em;
    overflow-wrap: normal;
    word-break: normal;
  }
  .hero-copy h1 span {
    font-size: 1.12em;
    line-height: .95;
  }
  .medan-label {
    width: 100%;
    margin-top: 11px;
    font-size: 15px;
    letter-spacing: .14em;
    text-align: left;
  }
  .doctor-name {
    width: 100%;
    margin: 3px 0 10px;
    font-size: 17px;
    line-height: 1.2;
    text-align: left;
  }
  .hero-address {
    max-width: 350px;
    gap: 9px;
    font-size: 11.5px;
    line-height: 1.45;
  }
  .gold-btn {
    margin-top: 15px;
    min-height: 38px;
    padding: 0 18px;
    font-size: 10.5px;
  }

  /* On mobile the quote is removed from the hero canvas to prevent overlap with title and model. */
  .hero-quote { display: none; }

  .hero-model-wrap {
    left: 0;
    top: 350px;
    width: 100%;
    height: 260px;
    opacity: .98;
  }
  .hero-model-wrap img {
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 34%;
    mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  }
  .portrait-ring {
    width: 310px;
    height: 310px;
    left: 50%;
    top: -25px;
    transform: translateX(-50%);
  }

  .content-section { padding: 40px 20px; }
  .content-heading { margin-bottom: 24px; }
  .content-heading h2,
  .uploaded-media-heading .content-heading h2 {
    font-size: clamp(25px, 7.4vw, 29px);
    line-height: 1.08;
  }
  .content-heading > span,
  .uploaded-media-heading .content-heading > span { font-size: 10.5px; }
  .about-grid { gap: 14px; }
  .about-card { padding: 22px 20px; }
  .large-card p {
    margin-top: 0;
    font-size: 15px;
    line-height: 1.55;
  }
  .outline-btn { font-size: 10.5px; padding: 0 16px; }

  .benefit-strip { gap: 12px; padding: 18px 20px; }
  .benefit-strip article { max-width: none; }

  .treatment-grid { gap: 14px; }
  .treatment-grid article { padding: 22px 20px; }
  .treatment-grid h3 { margin-top: 16px; font-size: 20px; }
  .treatment-grid p { font-size: 12.5px; line-height: 1.55; }

  .homepage-flow-section { padding: 34px 12px; }
  .treatment-flow-panel { padding: 20px 30px 22px; }
  .panel-heading h2 { font-size: 21px; line-height: 1.15; }
  .before-after-flow-panel { padding: 16px 12px 18px; }
  .before-after-flow-panel .comparison-images figure { height: 138px; }
}

@media (max-width: 480px) {
  .header-inner {
    grid-template-columns: 76px 40px minmax(0, 1fr);
    padding: 0 10px;
    gap: 8px;
  }
  .brand,
  .brand img { width: 74px; height: 66px; }
  .menu-toggle { width: 38px; height: 38px; }
  .appointment-btn {
    min-width: 108px;
    height: 38px;
    padding: 0 10px;
    font-size: 10px;
  }

  .hero-section { min-height: 585px; }
  .hero-copy { padding: 34px 20px 0; }
  .hero-copy h1 {
    max-width: 350px;
    font-size: clamp(31px, 9.6vw, 38px);
    line-height: .95;
  }
  .medan-label { font-size: 14px; }
  .doctor-name { font-size: 16px; }
  .hero-address { font-size: 11px; }
  .hero-model-wrap { top: 338px; height: 247px; }

  .content-section { padding: 36px 18px; }
  .content-heading h2,
  .uploaded-media-heading .content-heading h2 { font-size: 25px; }
  .about-card { padding: 20px 18px; }
  .large-card p { font-size: 14.5px; }
}

/* Video media support V18 */
.custom-media-card-visual video {
    width: 100%;
    height: 100%;
    min-height: inherit;
    display: block;
    object-fit: var(--item-fit, contain);
    object-position: var(--position-x, 50%) var(--position-y, 50%);
    background: #16120e;
}
.video-media-card .custom-media-card-visual { cursor: default; }
.custom-media-grid-promo .custom-media-card-visual video,
.custom-media-grid-pricelist .custom-media-card-visual video { object-fit: var(--item-fit, contain); }
.custom-media-grid.auto-fit-columns .custom-media-card-visual video {
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    object-fit: contain !important;
    object-position: center;
    background: #16120e;
}


/* Before/After uploaded media V19 */
.before-after-uploaded-wrap { margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(133, 98, 49, .16); }
.before-after-uploaded-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.before-after-uploaded-heading span { color: #b7832d; font: 600 10px/1.2 'Montserrat', sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.before-after-uploaded-heading strong { color: #493824; font: 500 clamp(20px, 2.1vw, 30px)/1.1 'Cormorant Garamond', serif; }
.custom-media-grid-before-after { margin-top: 18px; }
.custom-media-grid-before-after .custom-media-card-visual { background: #f0e7da; }
.custom-media-grid-before-after .custom-media-card-visual img,
.custom-media-grid-before-after .custom-media-card-visual video { object-fit: var(--item-fit, contain); }
@media (max-width: 640px) {
  .before-after-uploaded-wrap { margin-top: 20px; padding-top: 18px; }
  .before-after-uploaded-heading { display: grid; gap: 4px; }
  .before-after-uploaded-heading strong { font-size: 21px; }
}


/* V20 — Sebelum & Sesudah: grid seragam agar video 9:16 dan gambar 4:5 tetap rapi */
.custom-media-grid-before-after.uniform-before-after-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: auto;
    align-items: stretch;
}
.custom-media-grid-before-after.uniform-before-after-grid .before-after-custom-card {
    grid-column: auto !important;
    display: flex;
    flex-direction: column;
    height: 100%;
    align-self: stretch;
}
.custom-media-grid-before-after.uniform-before-after-grid .before-after-uniform-visual {
    width: 100%;
    height: auto !important;
    min-height: 0;
    aspect-ratio: 4 / 5 !important;
    display: block;
    flex: 0 0 auto;
    overflow: hidden;
    background: #f0e7da;
}
.custom-media-grid-before-after.uniform-before-after-grid .before-after-uniform-visual img,
.custom-media-grid-before-after.uniform-before-after-grid .before-after-uniform-visual video {
    width: 100%;
    height: 100% !important;
    min-height: 0;
    max-height: none;
    display: block;
    object-fit: var(--item-fit, contain);
    object-position: var(--position-x, 50%) var(--position-y, 50%);
}
.custom-media-grid-before-after.uniform-before-after-grid .before-after-uniform-visual video {
    background: #16120e;
}
.custom-media-grid-before-after.uniform-before-after-grid .custom-media-caption {
    min-height: 46px;
    display: flex;
    align-items: center;
    flex: 1 0 auto;
}
@media (max-width: 1024px) {
    .custom-media-grid-before-after.uniform-before-after-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 640px) {
    .custom-media-grid-before-after.uniform-before-after-grid {
        grid-template-columns: 1fr;
        gap: min(var(--layout-gap, 18px), 14px);
    }
    .custom-media-grid-before-after.uniform-before-after-grid .before-after-custom-card {
        grid-column: 1 / -1 !important;
    }
    .custom-media-grid-before-after.uniform-before-after-grid .before-after-uniform-visual {
        aspect-ratio: 4 / 5 !important;
    }
    .custom-media-grid-before-after.uniform-before-after-grid .custom-media-caption {
        min-height: 42px;
    }
}


/* V21 — Global Auto Fill: seluruh gambar/video mengisi penuh kartu tanpa ruang kosong */
.treatment-showcase-image img {
    object-fit: cover !important;
    object-position: center;
}

.dynamic-gallery-item img,
.custom-media-grid .custom-media-card-visual img,
.custom-media-grid .custom-media-card-visual video {
    object-fit: cover !important;
}

/* Promo, pricelist, dan Before/After memakai kartu potret konsisten. */
.custom-media-grid.custom-media-grid-promo .custom-media-card-visual,
.custom-media-grid.custom-media-grid-pricelist .custom-media-card-visual,
.custom-media-grid.custom-media-grid-before-after .custom-media-card-visual {
    min-height: 0 !important;
    height: auto !important;
    aspect-ratio: 4 / 5 !important;
    background: transparent !important;
}

/* Galeri memakai rasio landscape agar foto klinik tetap natural tetapi memenuhi kartu. */
.custom-media-grid.custom-media-grid-gallery .custom-media-card-visual {
    min-height: 0 !important;
    height: auto !important;
    aspect-ratio: 4 / 3 !important;
    background: transparent !important;
}

.custom-media-grid.custom-media-grid-promo .custom-media-card-visual img,
.custom-media-grid.custom-media-grid-promo .custom-media-card-visual video,
.custom-media-grid.custom-media-grid-pricelist .custom-media-card-visual img,
.custom-media-grid.custom-media-grid-pricelist .custom-media-card-visual video,
.custom-media-grid.custom-media-grid-gallery .custom-media-card-visual img,
.custom-media-grid.custom-media-grid-gallery .custom-media-card-visual video,
.custom-media-grid.custom-media-grid-before-after.uniform-before-after-grid .before-after-uniform-visual img,
.custom-media-grid.custom-media-grid-before-after.uniform-before-after-grid .before-after-uniform-visual video {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: var(--position-x, 50%) var(--position-y, 50%) !important;
}

.custom-media-grid.custom-media-grid-before-after.uniform-before-after-grid .before-after-uniform-visual video,
.custom-media-grid .custom-media-card-visual video {
    background: transparent !important;
}

/* Walaupun data lama masih menyimpan class auto-fit, V21 tetap memakai kartu penuh. */
.custom-media-grid.auto-fit-columns .custom-media-card-visual {
    min-height: 0 !important;
}
.custom-media-grid.auto-fit-columns.custom-media-grid-promo .custom-media-card-visual,
.custom-media-grid.auto-fit-columns.custom-media-grid-pricelist .custom-media-card-visual,
.custom-media-grid.auto-fit-columns.custom-media-grid-before-after .custom-media-card-visual {
    aspect-ratio: 4 / 5 !important;
}
.custom-media-grid.auto-fit-columns.custom-media-grid-gallery .custom-media-card-visual {
    aspect-ratio: 4 / 3 !important;
}

@media (max-width: 640px) {
    .custom-media-grid.custom-media-grid-promo .custom-media-card-visual,
    .custom-media-grid.custom-media-grid-pricelist .custom-media-card-visual,
    .custom-media-grid.custom-media-grid-before-after .custom-media-card-visual {
        aspect-ratio: 4 / 5 !important;
    }
    .custom-media-grid.custom-media-grid-gallery .custom-media-card-visual {
        aspect-ratio: 4 / 3 !important;
    }
}


/* V22 — Rasio Asli + Masonry: seluruh gambar/video tampil utuh, tanpa crop dan tanpa celah grid besar */
.custom-media-grid.auto-fit-columns {
    align-items: start !important;
}
.custom-media-grid.auto-fit-columns .custom-media-card {
    align-self: start !important;
    height: auto !important;
}
.custom-media-grid.auto-fit-columns .custom-media-card-visual,
.custom-media-grid.auto-fit-columns.custom-media-grid-promo .custom-media-card-visual,
.custom-media-grid.auto-fit-columns.custom-media-grid-pricelist .custom-media-card-visual,
.custom-media-grid.auto-fit-columns.custom-media-grid-gallery .custom-media-card-visual,
.custom-media-grid.auto-fit-columns.custom-media-grid-before-after .custom-media-card-visual,
.custom-media-grid.custom-media-grid-before-after.uniform-before-after-grid.auto-fit-columns .before-after-uniform-visual {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    background: #fff !important;
    flex: none !important;
}
.custom-media-grid.auto-fit-columns .custom-media-card-visual img,
.custom-media-grid.auto-fit-columns .custom-media-card-visual video,
.custom-media-grid.custom-media-grid-before-after.uniform-before-after-grid.auto-fit-columns .before-after-uniform-visual img,
.custom-media-grid.custom-media-grid-before-after.uniform-before-after-grid.auto-fit-columns .before-after-uniform-visual video {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    object-position: center !important;
    background: transparent !important;
}
.custom-media-grid.custom-media-grid-before-after.uniform-before-after-grid.auto-fit-columns {
    grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
    grid-auto-rows: 8px !important;
    align-items: start !important;
}
.custom-media-grid.custom-media-grid-before-after.uniform-before-after-grid.auto-fit-columns .before-after-custom-card {
    grid-column: span var(--span-desktop, 4) !important;
    display: block !important;
    height: auto !important;
}
.custom-media-grid.auto-fit-columns .custom-media-caption {
    min-height: 0 !important;
    height: auto !important;
    display: block !important;
    flex: none !important;
}
@media (max-width: 1024px) {
    .custom-media-grid.custom-media-grid-before-after.uniform-before-after-grid.auto-fit-columns {
        grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
    }
    .custom-media-grid.custom-media-grid-before-after.uniform-before-after-grid.auto-fit-columns .before-after-custom-card {
        grid-column: span var(--span-tablet, 4) !important;
    }
}
@media (max-width: 640px) {
    .custom-media-grid.custom-media-grid-before-after.uniform-before-after-grid.auto-fit-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        grid-auto-rows: 6px !important;
    }
    .custom-media-grid.custom-media-grid-before-after.uniform-before-after-grid.auto-fit-columns .before-after-custom-card {
        grid-column: span var(--span-mobile, 2) !important;
    }
}
