:root {
    --teal: #058598;
    --teal-dark: #047a8a;
    --navy: #0f172a;
    --navy-soft: #1e293b;
    --bg: #f8fafc;
    --text: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --white: #ffffff;
    --radius: 18px;
    --shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    --font: "Plus Jakarta Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}
body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226,232,240,.8);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 78px;
    position: relative;
}
.logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}
.logo img {
    height: 46px;
    width: auto;
    display: block;
}
.logo-footer {
    margin-bottom: 14px;
}
.logo-footer img {
    height: 52px;
}
.nav {
    display: flex;
    gap: 28px;
    align-items: center;
}
.nav a {
    color: var(--muted);
    font-weight: 600;
    font-size: .95rem;
}
.nav a:hover,
.nav a.is-active { color: var(--teal); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: 999px;
    padding: 14px 24px;
    font-weight: 700;
    font-size: .95rem;
    cursor: pointer;
    transition: .2s ease;
}
.btn-teal { background: var(--teal); color: white; }
.btn-teal:hover { background: var(--teal-dark); }
.btn-whatsapp { background: #25D366; color: white; }
.btn-whatsapp:hover { background: #1ebe57; }
.btn-navy { background: var(--navy); color: white; }
.btn-navy:hover { background: #020617; }
.btn-outline {
    background: white;
    color: var(--navy);
    border: 1px solid var(--line);
}
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }

.home-slider {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    background: #0f172a;
    line-height: 0;
}
.home-slider-track {
    position: relative;
    width: 100%;
}
.home-slide {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    opacity: 0;
    transition: opacity .7s ease;
    pointer-events: none;
    line-height: normal;
}
.home-slide.is-active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}
.home-slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: unset;
    object-position: center center;
}
.home-slide-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 48px 0;
    background: linear-gradient(180deg, transparent 35%, rgba(15, 23, 42, .72) 100%);
    color: #fff;
    line-height: normal;
}
.home-slide-overlay h2 {
    margin: 0 0 10px;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    letter-spacing: -.02em;
}
.home-slide-overlay p {
    margin: 0 0 18px;
    max-width: 560px;
    color: rgba(255,255,255,.88);
}
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.92);
    color: var(--navy);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(15,23,42,.18);
}
.slider-nav.prev { left: 18px; }
.slider-nav.next { right: 18px; }
.slider-dots {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 8px;
}
.slider-dots button {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 0;
    background: rgba(255,255,255,.45);
    cursor: pointer;
    padding: 0;
}
.slider-dots button.is-active { background: #fff; width: 26px; }

.photo-gallery-section {
    overflow: hidden;
    max-width: 100%;
}
.photo-gallery-section .section-head {
    margin-bottom: 24px;
}
.photo-marquee-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}
.photo-marquee-nav {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--navy);
    font-size: 1.55rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .08);
    transition: background .2s ease, color .2s ease, border-color .2s ease;
    z-index: 2;
}
.photo-marquee-nav:hover {
    background: var(--teal);
    border-color: var(--teal);
    color: #fff;
}
.photo-marquee {
    --photo-w: 300px;
    --photo-h: 210px;
    --photo-gap: 18px;
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    overflow: hidden;
    border-radius: 18px;
    cursor: grab;
    touch-action: pan-y;
    mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
    user-select: none;
}
.photo-marquee.is-dragging {
    cursor: grabbing;
}
.photo-marquee-track {
    display: flex;
    width: max-content;
    gap: var(--photo-gap);
    will-change: transform;
    transform: translate3d(0, 0, 0);
}
.photo-marquee-item {
    flex: 0 0 auto;
    width: var(--photo-w);
    height: var(--photo-h);
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    cursor: zoom-in;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
    transition: box-shadow .25s ease, border-color .25s ease;
}
.photo-marquee-item:hover {
    border-color: #7ec4ce;
    box-shadow: 0 16px 36px rgba(15, 23, 42, .12);
}
.photo-marquee-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}
.section-cta {
    margin-top: 28px;
    text-align: center;
}
.google-reviews-embed {
    width: 100%;
    min-height: 220px;
    overflow: hidden;
    max-width: 100%;
}
.google-reviews-embed iframe,
.google-reviews-embed > div {
    max-width: 100%;
}
.testimonial-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}
.google-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .72rem;
    font-weight: 700;
    color: #4285f4;
    background: #eef3ff;
    border-radius: 999px;
    padding: 4px 10px;
}
.testimonial-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.testimonial-meta small {
    color: var(--muted);
    font-size: .82rem;
}

.hero {
    padding: 56px 0 40px;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 48px;
    align-items: center;
}
.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}
.badge {
    background: #e8f5f7;
    color: var(--teal);
    border: 1px solid #b8dce2;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: .82rem;
    font-weight: 700;
}
.hero h1 {
    font-size: clamp(2.4rem, 4vw, 3.6rem);
    line-height: 1.12;
    margin: 0 0 18px;
    letter-spacing: -.03em;
}
.hero h1 span { color: var(--teal); }
.hero p {
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 520px;
    margin: 0 0 28px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-media {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow);
    min-height: 420px;
    background: #e2e8f0;
}
.hero-media img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    display: block;
}

.stats {
    margin: 20px 0 60px;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 28px;
    box-shadow: var(--shadow);
}
.stat strong {
    display: block;
    font-size: 1.35rem;
    color: var(--teal);
    margin-bottom: 4px;
}
.stat span {
    color: var(--muted);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.section { padding: 72px 0; }
.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 42px;
}
.section-head h2 {
    margin: 0 0 12px;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    letter-spacing: -.02em;
}
.section-head p { margin: 0; color: var(--muted); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.service-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15,23,42,.04);
    transition: .2s ease;
    display: flex;
    flex-direction: column;
    min-height: 360px;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}
.service-media {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #e2e8f0;
}
.service-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}
.service-card:hover .service-media img {
    transform: scale(1.04);
}
.service-body {
    padding: 22px 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.service-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #e8f5f7;
    color: var(--teal);
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    font-size: 1.3rem;
}
.service-card h3,
.service-card h2 {
    margin: 0;
    font-size: 1.2rem;
}
.service-card p {
    margin: 0;
    color: var(--muted);
    font-size: .95rem;
    line-height: 1.55;
}

.feature-3d {
    padding: 40px 0 72px;
}
.feature-3d-card {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    border-radius: 28px;
    overflow: hidden;
    background: #eef6fb;
    box-shadow: var(--shadow);
    min-height: 480px;
}
.feature-3d-copy {
    padding: 48px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.feature-3d-eyebrow {
    margin: 0 0 12px;
    color: #058598;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    font-size: .92rem;
}
.feature-3d-copy h2 {
    margin: 0 0 18px;
    color: #334155;
    font-size: clamp(1.55rem, 2.6vw, 2.05rem);
    letter-spacing: -.01em;
    text-transform: uppercase;
    line-height: 1.25;
}
.feature-3d-copy > p {
    margin: 0 0 28px;
    color: #64748b;
    font-size: .98rem;
    line-height: 1.75;
}
.btn-feature {
    align-self: flex-start;
    background: #058598;
    color: white;
    border-radius: 999px;
    padding: 14px 28px;
}
.btn-feature:hover { background: #047a8a; }
.feature-3d-media {
    min-height: 100%;
    background: #dbeafe;
}
.feature-3d-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 480px;
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 14px;
}
.check-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}
.check {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(5,133,152,.18);
    color: var(--teal);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.service-icon svg,
.check svg,
.contact-icon svg {
    display: block;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.testimonial-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: 0 8px 24px rgba(15,23,42,.04);
}
.stars { color: var(--teal); letter-spacing: 2px; margin-bottom: 14px; }
.testimonial-card p {
    margin: 0 0 18px;
    color: var(--muted);
    font-style: italic;
}
.testimonial-card strong { font-size: .95rem; }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}
.appointment-card {
    padding: 28px;
}
.appointment-card-head {
    margin-bottom: 8px;
}
.appointment-card-head .lead {
    margin-bottom: 20px;
}
.appointment-form {
    display: grid;
    grid-template-columns: 1.15fr 1fr 1.85fr auto;
    gap: 14px;
    align-items: end;
}
.appointment-form .form-group {
    margin-bottom: 0;
}
.appointment-form .appointment-submit .btn {
    white-space: nowrap;
    width: 100%;
    min-height: 48px;
}
.card {
    background: white;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 32px;
    box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 8px; font-size: 1.4rem; }
.card .lead { color: var(--muted); margin: 0 0 24px; }
.form-group { margin-bottom: 14px; }
.form-group label {
    display: block;
    font-size: .85rem;
    font-weight: 700;
    margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 13px 14px;
    font: inherit;
    background: #f8fafc;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: 2px solid rgba(5,133,152,.25);
    border-color: var(--teal);
}
.alert {
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-weight: 600;
}
.alert-success { background: #e8f5f7; color: #058598; }
.alert-error { background: #fef2f2; color: #b91c1c; }
.contact-list {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
    display: grid;
    gap: 18px;
}
.contact-list li {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 14px;
    align-items: start;
}
.contact-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #e8f5f7;
    color: var(--teal);
    display: grid;
    place-items: center;
}
.contact-list small {
    display: block;
    color: var(--muted);
    font-size: .8rem;
    margin-bottom: 2px;
}

.site-footer {
    background: var(--navy);
    color: #cbd5e1;
    padding: 56px 0 24px;
    margin-top: 40px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 28px;
    margin-bottom: 36px;
}
.site-footer h4 {
    color: white;
    margin: 0 0 16px;
}
.site-footer a { color: #94a3b8; }
.site-footer a:hover { color: white; }
.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}
.footer-brand p { max-width: 280px; }
.footer-bottom {
    border-top: 1px solid rgba(148,163,184,.2);
    padding-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: .9rem;
    color: #64748b;
}
.footer-credit {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    opacity: .9;
    transition: opacity .2s ease;
}
.footer-credit:hover { opacity: 1; }
.footer-credit img {
    height: 36px;
    width: auto;
    display: block;
    border-radius: 6px;
}

.menu-toggle {
    display: none;
    border: 1px solid var(--line);
    background: white;
    border-radius: 10px;
    width: 42px;
    height: 42px;
}

.page-hero {
    padding: 56px 0 28px;
    background:
        radial-gradient(circle at top right, rgba(5,133,152,.12), transparent 42%),
        linear-gradient(180deg, #fff, var(--bg));
}
.page-eyebrow {
    margin: 0 0 10px;
    color: var(--teal);
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    font-size: .82rem;
}
.page-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    letter-spacing: -.03em;
}
.page-hero p {
    margin: 0;
    max-width: 640px;
    color: var(--muted);
}

.about-grid {
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    gap: 40px;
    align-items: center;
}
.about-media {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    min-height: 360px;
}
.about-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 360px;
}
.about-grid h2,
.mission-grid h2 {
    margin: 0 0 16px;
    font-size: clamp(1.7rem, 3vw, 2.2rem);
}
.about-grid p {
    color: var(--muted);
    margin: 0 0 14px;
}

.mission {
    background: white;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.mission-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 32px;
    align-items: stretch;
}
.mission-grid > div > p {
    color: var(--muted);
    margin: 0 0 22px;
}
.mission-card {
    background: var(--navy);
    color: white;
    border-radius: 22px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
}
.mission-card strong {
    font-size: 1.4rem;
}
.mission-card p {
    margin: 0;
    color: #94a3b8;
}
.mission-card .btn {
    align-self: flex-start;
    margin-top: 8px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.team-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    text-align: center;
    box-shadow: 0 8px 24px rgba(15,23,42,.04);
}
.team-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}
.team-card h3 {
    margin: 16px 16px 4px;
    font-size: 1.05rem;
}
.team-card p {
    margin: 0 16px 18px;
    color: var(--muted);
    font-size: .92rem;
}

.clinic-cta {
    padding-top: 0;
}
.clinic-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: linear-gradient(135deg, #e8f5f7, #fff);
    border: 1px solid #b8dce2;
    border-radius: 22px;
    padding: 32px;
}
.clinic-cta-inner h2 {
    margin: 0 0 8px;
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
}
.clinic-cta-inner p {
    margin: 0;
    color: var(--muted);
    max-width: 560px;
}

.treatments-page-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}
.treatment-card {
    padding: 0;
    min-height: 420px;
}
.treatment-card .service-media {
    height: 220px;
}
.treatment-card .service-body {
    padding: 24px 22px 26px;
}
.treatment-card h2 {
    margin: 0;
    font-size: 1.35rem;
}
.treatment-link {
    display: inline-block;
    margin-top: auto;
    padding-top: 12px;
    color: var(--teal);
    font-weight: 700;
}
.treatment-link:hover { color: var(--teal-dark); }

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.posts-grid-related {
    grid-template-columns: repeat(2, 1fr);
}
.post-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15,23,42,.04);
    display: flex;
    flex-direction: column;
}
.post-card-media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}
.post-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.post-card:hover .post-card-media img {
    transform: scale(1.04);
}
.post-card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.post-card-body time {
    color: var(--teal);
    font-size: .82rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.post-card-body h2 {
    margin: 0 0 10px;
    font-size: 1.15rem;
    line-height: 1.35;
}
.post-card-body h2 a:hover { color: var(--teal); }
.post-card-body p {
    margin: 0 0 16px;
    color: var(--muted);
    flex: 1;
}

.post-detail-wrap {
    max-width: 860px;
}
.post-back {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--muted);
    font-weight: 600;
}
.post-back:hover { color: var(--teal); }
.post-detail h1 {
    margin: 0 0 10px;
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
    letter-spacing: -.03em;
}
.post-detail time {
    display: block;
    color: var(--muted);
    margin-bottom: 24px;
}
.post-detail-media {
    border-radius: 22px;
    overflow: hidden;
    margin-bottom: 28px;
    box-shadow: var(--shadow);
}
.post-detail-media img {
    width: 100%;
    height: auto;
    display: block;
}
.post-content {
    color: #334155;
    font-size: 1.05rem;
    line-height: 1.8;
}
.post-content h3 {
    margin: 28px 0 10px;
    color: var(--navy);
    font-size: 1.25rem;
}
.post-content p { margin: 0 0 16px; }
.post-detail-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.gallery-item {
    border: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    border-radius: 16px;
    overflow: hidden;
    cursor: zoom-in;
    aspect-ratio: 4 / 3;
    box-shadow: 0 8px 24px rgba(15,23,42,.06);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

body.lightbox-open { overflow: hidden; }
.lightbox[hidden] { display: none !important; }
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(15, 23, 42, .92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 72px;
}
.lightbox-stage {
    margin: 0;
    max-width: min(1100px, 100%);
    text-align: center;
}
.lightbox-stage img {
    max-width: 100%;
    max-height: calc(100vh - 120px);
    border-radius: 12px;
    object-fit: contain;
}
.lightbox-stage figcaption {
    color: #cbd5e1;
    margin-top: 12px;
    font-weight: 600;
}
.lightbox-close,
.lightbox-nav {
    position: absolute;
    border: 0;
    background: rgba(255,255,255,.12);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    font-size: 1.6rem;
    cursor: pointer;
}
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }
.lightbox-counter {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    color: #94a3b8;
    font-weight: 600;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.contact-info-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 24px 18px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(15,23,42,.04);
    display: grid;
    justify-items: center;
    gap: 8px;
}
.contact-info-card .contact-icon {
    margin-bottom: 4px;
}
.contact-info-card small {
    color: var(--muted);
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    font-size: .75rem;
}
.contact-info-card strong {
    font-size: 1rem;
    line-height: 1.4;
}
.contact-page-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}
.contact-map-card {
    padding: 28px;
}
.contact-map-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}
.contact-map-head h3 {
    margin: 0 0 8px;
}
.contact-map-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex-shrink: 0;
}
.map-frame {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--line);
    min-height: 280px;
}
.map-frame iframe {
    width: 100%;
    height: 280px;
    border: 0;
    display: block;
}
.map-frame-wide {
    min-height: 520px;
}
.map-frame-wide iframe {
    height: 520px;
}

@media (max-width: 1100px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 980px) {
    .appointment-form {
        grid-template-columns: 1fr 1fr;
    }
    .appointment-form .appointment-message,
    .appointment-form .appointment-submit {
        grid-column: 1 / -1;
    }
    .home-slide-overlay {
        padding: 28px 0 44px;
    }
    .logo img { height: 40px; }
    .header-inner { min-height: 70px; gap: 12px; }
    .hero-grid,
    .feature-3d-card,
    .contact-grid,
    .footer-grid,
    .stats-grid,
    .about-grid,
    .mission-grid,
    .team-grid,
    .treatments-page-grid,
    .posts-grid,
    .posts-grid-related,
    .gallery-grid,
    .contact-info-grid,
    .contact-page-grid {
        grid-template-columns: 1fr 1fr;
    }
    .clinic-cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .clinic-cta-inner .btn {
        width: 100%;
        max-width: 280px;
    }
    .nav { display: none; }
    .nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        background: white;
        border: 1px solid var(--line);
        border-radius: 16px;
        padding: 14px;
        box-shadow: var(--shadow);
        z-index: 60;
        gap: 4px;
    }
    .nav.open a {
        padding: 12px 14px;
        border-radius: 10px;
    }
    .nav.open a:hover,
    .nav.open a.is-active {
        background: #e8f5f7;
    }
    .menu-toggle { display: grid; place-items: center; }
    .header-cta { display: none; }
}

@media (max-width: 720px) {
    .container {
        width: min(1180px, calc(100% - 28px));
    }
    .section {
        padding-top: 56px;
        padding-bottom: 56px;
    }
    .home-slide-overlay {
        padding: 16px 0 36px;
        background: linear-gradient(180deg, transparent 35%, rgba(15, 23, 42, .82) 100%);
    }
    .home-slide-overlay h2 {
        font-size: clamp(1.15rem, 4.8vw, 1.55rem);
        margin-bottom: 6px;
    }
    .home-slide-overlay p {
        font-size: .85rem;
        margin-bottom: 10px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .home-slide-overlay .btn {
        padding: 10px 16px;
        font-size: .85rem;
    }
    .slider-nav { width: 34px; height: 34px; font-size: 1.2rem; }
    .slider-nav.prev { left: 8px; }
    .slider-nav.next { right: 8px; }
    .photo-gallery-section.section {
        padding-top: 36px;
        padding-bottom: 36px;
    }
    .photo-gallery-section .section-head {
        margin-bottom: 14px;
    }
    .photo-gallery-section .section-head p:last-child {
        display: none;
    }
    .photo-marquee {
        --photo-w: 220px;
        --photo-h: 150px;
        --photo-gap: 12px;
        border-radius: 14px;
    }
    .photo-marquee-item {
        border-radius: 12px;
    }
    .photo-marquee-wrap {
        gap: 8px;
    }
    .photo-marquee-nav {
        width: 38px;
        height: 38px;
        font-size: 1.35rem;
    }
    .contact-map-head {
        flex-direction: column;
        align-items: flex-start;
    }
    .map-frame-wide,
    .map-frame-wide iframe {
        min-height: 360px;
        height: 360px;
    }
    .appointment-card {
        padding: 20px;
    }
    .appointment-form {
        grid-template-columns: 1fr;
    }
    .appointment-form .appointment-submit .btn {
        width: 100%;
    }
    .hero-grid,
    .feature-3d-card,
    .contact-grid,
    .footer-grid,
    .services-grid,
    .testimonials-grid,
    .stats-grid,
    .about-grid,
    .mission-grid,
    .team-grid,
    .treatments-page-grid,
    .posts-grid,
    .posts-grid-related,
    .gallery-grid,
    .contact-info-grid,
    .contact-page-grid {
        grid-template-columns: 1fr;
    }
    .service-card {
        min-height: 0;
    }
    .service-media {
        height: 200px;
    }
    .hero-media,
    .hero-media img { min-height: 280px; }
    .feature-3d-copy { padding: 32px 24px; }
    .feature-3d-media img { min-height: 280px; }
    .clinic-cta-inner {
        padding: 24px;
    }
    .clinic-cta-inner .btn {
        max-width: none;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
    .post-detail-cta {
        flex-direction: column;
    }
    .post-detail-cta .btn {
        width: 100%;
    }
    .lightbox { padding: 16px 48px; }
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
    .card {
        padding: 22px;
    }
}

@media (max-width: 480px) {
    .slider-nav { display: none; }
    .slider-dots { bottom: 10px; }
    .logo img { height: 34px; }
    .photo-marquee {
        --photo-w: 180px;
        --photo-h: 124px;
        --photo-gap: 10px;
    }
    .photo-marquee-item {
        border-radius: 12px;
    }
    .photo-marquee-nav {
        width: 34px;
        height: 34px;
        font-size: 1.25rem;
    }
    .btn {
        padding: 12px 18px;
        font-size: .9rem;
    }
    .page-hero h1 {
        font-size: clamp(1.7rem, 8vw, 2.2rem);
    }
}
