
/* =========================================================
   SMILE NEST DENTAL CLINIC
   Premium Editorial Medical Website
   Main stylesheet matched to the current index.html
   ========================================================= */

:root {
    --forest: #123f42;
    --forest-dark: #082f32;
    --forest-deep: #062629;

    --ivory: #f8f5ef;
    --ivory-dark: #eee9df;
    --white: #ffffff;

    --sage: #a8bbaa;
    --sage-light: #dfe7df;

    --rose: #d99aaa;
    --rose-light: #f2dce1;

    --blue: #789caa;
    --blue-light: #dce8ec;

    --charcoal: #1b292c;
    --muted: #637477;
    --border: rgba(18, 63, 66, 0.12);

    --shadow-soft: 0 20px 60px rgba(8, 47, 50, 0.08);
    --shadow-card: 0 16px 45px rgba(8, 47, 50, 0.09);
    --shadow-hover: 0 24px 60px rgba(8, 47, 50, 0.14);

    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 30px;
    --radius-xl: 42px;

    --container: 1240px;

    --heading-font: "Playfair Display", Georgia, serif;
    --body-font: "DM Sans", Arial, sans-serif;

    --transition: 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    margin: 0;
    background: var(--ivory);
    color: var(--charcoal);
    font-family: var(--body-font);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
}

body,
button,
input,
textarea,
select {
    font-family: var(--body-font);
}

img {
    display: block;
    max-width: 100%;
}

a,
button {
    -webkit-tap-highlight-color: transparent;
}

button {
    border: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

p,
h1,
h2,
h3,
h4 {
    margin-top: 0;
}

::selection {
    background: var(--rose);
    color: var(--forest-dark);
}

.container {
    width: min(calc(100% - 48px), var(--container));
    margin-inline: auto;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--forest);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .2em;
    line-height: 1.2;
    text-transform: uppercase;
}

.eyebrow.centered {
    justify-content: center;
}

.eyebrow-line {
    width: 28px;
    height: 1px;
    flex: 0 0 auto;
    background: currentColor;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 60px;
}

.section-heading.centered {
    margin-inline: auto;
    text-align: center;
}

.section-heading h2,
.why-intro-grid h2,
.contact-content h2,
.appointment-text h2 {
    margin-bottom: 20px;
    color: var(--forest-dark);
    font-family: var(--heading-font);
    font-size: clamp(42px, 5vw, 72px);
    font-weight: 500;
    letter-spacing: -.035em;
    line-height: 1.05;
}

.section-heading h2 span,
.contact-content h2 span,
.appointment-text h2 span {
    color: var(--rose);
    font-style: italic;
}

.section-heading p {
    max-width: 680px;
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.85;
}

.section-heading.centered p {
    margin-inline: auto;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--forest);
    font-size: 14px;
    font-weight: 700;
}

.text-link span {
    transition: transform var(--transition);
}

.text-link:hover span {
    transform: translateX(5px);
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    padding: 18px 0;
    background: rgba(248, 245, 239, .88);
    border-bottom: 1px solid transparent;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition:
        background var(--transition),
        box-shadow var(--transition),
        padding var(--transition),
        border-color var(--transition);
}

.site-header.scrolled {
    padding: 11px 0;
    background: rgba(248, 245, 239, .97);
    border-bottom-color: var(--border);
    box-shadow: 0 8px 35px rgba(8, 47, 50, .06);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 28px;
}

.logo {
    order: 3;
    width: 72px;
    height: 72px;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform var(--transition);
}

.logo:hover {
    transform: translateY(-2px);
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.desktop-nav {
    order: 1;
    margin-right: auto;
    display: flex;
    align-items: center;
    gap: 30px;
}

.desktop-nav a:not(.nav-button) {
    position: relative;
    color: var(--forest-dark);
    font-size: 13px;
    font-weight: 600;
}

.desktop-nav a:not(.nav-button)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -7px;
    width: 0;
    height: 1px;
    background: var(--rose);
    transition: width var(--transition);
}

.desktop-nav a:not(.nav-button):hover {
    color: var(--rose);
}

.desktop-nav a:not(.nav-button):hover::after {
    width: 100%;
}

.nav-button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: 999px;
    background: var(--forest);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
}

.nav-button:hover {
    transform: translateY(-2px);
    background: var(--forest-dark);
    box-shadow: 0 12px 28px rgba(18, 63, 66, .16);
}

.mobile-menu-button {
    order: 2;
    position: relative;
    display: none;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    background: var(--forest);
    color: var(--white);
    border-radius: 50%;
    cursor: pointer;
}

.mobile-menu-button span {
    position: absolute;
    width: 18px;
    height: 1.5px;
    background: currentColor;
    transition: transform var(--transition), opacity var(--transition);
}

.mobile-menu-button span:nth-child(1) {
    transform: translateY(-6px);
}

.mobile-menu-button span:nth-child(3) {
    transform: translateY(6px);
}

.mobile-menu-button.active span:nth-child(1) {
    transform: rotate(45deg);
}

.mobile-menu-button.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-button.active span:nth-child(3) {
    transform: rotate(-45deg);
}

.mobile-navigation {
    position: fixed;
    z-index: 990;
    top: 90px;
    left: 16px;
    right: 16px;
    display: none;
    padding: 18px;
    background: rgba(248, 245, 239, .98);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow-hover);
    backdrop-filter: blur(18px);
}

.mobile-navigation.open {
    display: block;
}

.mobile-navigation a {
    display: block;
    padding: 13px 14px;
    border-radius: 10px;
    color: var(--forest-dark);
    font-size: 14px;
    font-weight: 600;
}

.mobile-navigation a:hover {
    background: var(--white);
}

.mobile-navigation .nav-button {
    margin-top: 6px;
    color: var(--white);
    text-align: center;
}

/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
    position: relative;
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 23px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .01em;
    cursor: pointer;
    overflow: hidden;
    transition: transform var(--transition), background var(--transition), color var(--transition), box-shadow var(--transition);
}

.btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 70%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.18), transparent);
    transform: skewX(-18deg);
    transition: left 650ms ease;
}

.btn:hover::after {
    left: 140%;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-primary {
    background: var(--forest);
    color: var(--white);
    box-shadow: 0 12px 30px rgba(18,63,66,.18);
}

.btn-primary:hover {
    background: var(--forest-dark);
    box-shadow: 0 18px 35px rgba(18,63,66,.25);
}

.btn-secondary {
    background: rgba(255,255,255,.68);
    color: var(--forest);
    border: 1px solid rgba(18,63,66,.16);
}

.btn-secondary:hover {
    background: var(--white);
    box-shadow: 0 12px 30px rgba(8,47,50,.09);
}

.btn-whatsapp {
    background: var(--rose);
    color: var(--forest-dark);
    box-shadow: 0 12px 30px rgba(217,154,170,.18);
}

.btn-whatsapp:hover {
    background: #e1a6b5;
    box-shadow: 0 18px 35px rgba(217,154,170,.25);
}

/* =========================================================
   HERO
   ========================================================= */

.hero-section {
    position: relative;
    min-height: 100svh;
    padding: 155px 0 85px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 82% 18%, rgba(217,154,170,.16), transparent 28%),
        radial-gradient(circle at 10% 80%, rgba(120,156,170,.14), transparent 30%),
        var(--ivory);
}

.hero-background-shape {
    position: absolute;
    top: -170px;
    right: -180px;
    width: 560px;
    height: 560px;
    border: 1px solid rgba(18,63,66,.08);
    border-radius: 50%;
}

.hero-background-shape::after {
    content: "";
    position: absolute;
    right: 130px;
    bottom: -250px;
    width: 430px;
    height: 430px;
    border: 1px solid rgba(217,154,170,.16);
    border-radius: 50%;
}

.hero-grid {
    position: relative;
    z-index: 2;
    width: min(calc(100% - 48px), var(--container));
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr);
    align-items: center;
    gap: 80px;
}

.hero-content {
    max-width: 720px;
}

.hero-title {
    margin: 0 0 28px;
}

.hero-brand {
    display: block;
    margin-bottom: 5px;
    color: var(--rose);
    font-family: var(--heading-font);
    font-size: clamp(27px, 3vw, 43px);
    font-style: italic;
    font-weight: 500;
    line-height: 1.1;
}

.hero-main-title {
    display: block;
    color: var(--forest-dark);
    font-family: var(--heading-font);
    font-size: clamp(50px, 6.2vw, 88px);
    font-weight: 500;
    letter-spacing: -.045em;
    line-height: .98;
}

.hero-description {
    max-width: 620px;
    margin-bottom: 34px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.85;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

.hero-location {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 480px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.location-dot {
    width: 9px;
    height: 9px;
    flex: 0 0 auto;
    margin-top: 7px;
    background: var(--rose);
    border-radius: 50%;
    box-shadow: 0 0 0 6px rgba(217,154,170,.12);
}

.hero-visual {
    position: relative;
    min-height: 570px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-wrapper {
    position: relative;
    width: min(100%, 510px);
    aspect-ratio: .82;
}

.hero-circle {
    position: absolute;
    inset: 5% -8% 5% -8%;
    border: 1px solid rgba(18,63,66,.1);
    border-radius: 50%;
}

.hero-card {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 220px 220px 34px 34px;
    background: linear-gradient(145deg, rgba(18,63,66,.96), rgba(8,47,50,.99));
    box-shadow: 0 35px 80px rgba(8,47,50,.18);
}

.hero-card::before {
    content: "";
    position: absolute;
    inset: 22px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 190px 190px 25px 25px;
}

.hero-card-top,
.hero-card-bottom {
    position: absolute;
    z-index: 3;
    left: 32px;
    right: 32px;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    color: rgba(255,255,255,.58);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.hero-card-top {
    top: 32px;
}

.hero-card-bottom {
    bottom: 32px;
}

.hero-card-content {
    position: absolute;
    z-index: 2;
    left: 45px;
    right: 45px;
    top: 50%;
    transform: translateY(-50%);
}

.hero-card-content p {
    max-width: 290px;
    margin-bottom: 12px;
    color: rgba(255,255,255,.72);
    font-size: 15px;
}

.hero-card-content strong {
    display: block;
    max-width: 360px;
    color: var(--white);
    font-family: var(--heading-font);
    font-size: clamp(34px, 4vw, 56px);
    font-weight: 400;
    line-height: 1.05;
}

.hero-tooth {
    position: absolute;
    right: 25px;
    bottom: 90px;
    width: 130px;
    opacity: .1;
}

.hero-tooth svg {
    width: 100%;
}

.hero-logo-watermark {
    position: absolute;
    right: -35px;
    top: 42px;
    width: 112px;
    opacity: .92;
    filter: drop-shadow(0 15px 25px rgba(8,47,50,.12));
}

.hero-logo-watermark img {
    width: 100%;
}

/* =========================================================
   TRANSFORMATIONS
   ========================================================= */

.transformations-section {
    padding: 35px 0 120px;
    background: var(--ivory);
}

.transformation-carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--forest-dark);
    box-shadow: var(--shadow-soft);
    touch-action: pan-y;
}

.transformation-track {
    position: relative;
    width: 100%;
}

.transformation-slide {
    position: relative;
    display: none;
    min-height: 560px;
    overflow: hidden;
    background:
        radial-gradient(circle at 75% 35%, rgba(217,154,170,.2), transparent 30%),
        var(--forest-dark);
}

.transformation-slide.active {
    display: block;
}

.transformation-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background:
        linear-gradient(135deg, rgba(120,156,170,.18), transparent 45%),
        linear-gradient(45deg, rgba(217,154,170,.12), transparent 55%);
    color: rgba(255,255,255,.55);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .13em;
    font-size: 11px;
    font-weight: 700;
}

.transformation-placeholder small {
    color: rgba(255,255,255,.32);
    font-size: 9px;
    letter-spacing: .08em;
}

.transformation-caption {
    position: absolute;
    z-index: 3;
    left: 0;
    bottom: 0;
    width: min(700px, 75%);
    padding: 55px 65px 65px;
    background: linear-gradient(90deg, rgba(8,47,50,.96), rgba(8,47,50,.7), transparent);
}

.transformation-caption span {
    display: block;
    margin-bottom: 10px;
    color: var(--rose);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.transformation-caption h3 {
    margin: 0;
    color: var(--white);
    font-family: var(--heading-font);
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 400;
    line-height: 1.04;
    letter-spacing: -.03em;
}

.carousel-arrow,
.specialist-arrow {
    position: absolute;
    z-index: 10;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    color: var(--white);
    font-size: 18px;
    cursor: pointer;
    backdrop-filter: blur(12px);
    transition: background var(--transition), transform var(--transition);
}

.carousel-arrow:hover {
    background: rgba(255,255,255,.2);
    transform: translateY(-2px);
}

.carousel-prev {
    right: 90px;
    bottom: 30px;
}

.carousel-next {
    right: 32px;
    bottom: 30px;
}

.carousel-dots,
.specialist-dots {
    position: absolute;
    z-index: 11;
    left: 32px;
    bottom: 49px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.carousel-dot,
.specialist-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.35);
    cursor: pointer;
    transition: width var(--transition), background var(--transition);
}

.carousel-dot.active,
.specialist-dot.active {
    width: 24px;
    background: var(--white);
}

/* =========================================================
   PATIENT NEEDS
   ========================================================= */

.patient-needs-section {
    padding: 120px 0;
    background: var(--white);
}

.patient-needs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.patient-need-card {
    position: relative;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 28px;
    overflow: hidden;
    background: var(--ivory);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.patient-need-card::before {
    content: "";
    position: absolute;
    right: -55px;
    top: -55px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: var(--rose-light);
    opacity: .72;
}

.patient-need-card:nth-child(2n)::before { background: var(--sage-light); }
.patient-need-card:nth-child(3n)::before { background: var(--blue-light); }

.patient-need-card:hover {
    transform: translateY(-7px);
    background: var(--white);
    box-shadow: var(--shadow-hover);
}

.patient-need-icon,
.patient-need-card h3,
.patient-need-card p,
.patient-need-arrow {
    position: relative;
    z-index: 2;
}

.patient-need-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 50%;
    color: var(--forest);
    font-size: 18px;
    box-shadow: 0 8px 25px rgba(8,47,50,.07);
}

.patient-need-card h3 {
    margin: 30px 0 8px;
    color: var(--forest-dark);
    font-family: var(--heading-font);
    font-size: 24px;
    font-weight: 500;
    line-height: 1.15;
}

.patient-need-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.patient-need-arrow {
    align-self: flex-end;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--forest);
    transition: background var(--transition), color var(--transition), transform var(--transition);
}

.patient-need-card:hover .patient-need-arrow {
    background: var(--forest);
    color: var(--white);
    transform: rotate(-45deg);
}

.section-link {
    margin-top: 32px;
}

/* =========================================================
   WHY
   ========================================================= */

.why-section {
    padding: 120px 0;
    background: var(--ivory);
}

.why-intro-grid {
    display: grid;
    grid-template-columns: minmax(280px,.85fr) minmax(0,1.15fr);
    gap: 90px;
    align-items: start;
    margin-bottom: 70px;
}

.why-intro-grid h2 {
    margin: 0;
}

.why-intro-text {
    padding-top: 8px;
}

.why-intro-text p {
    max-width: 650px;
    margin: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.9;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.why-card {
    min-height: 245px;
    padding: 30px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: transform var(--transition), box-shadow var(--transition);
}

.why-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow-card);
}

.why-card-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    background: var(--sage-light);
    border-radius: 50%;
    color: var(--forest);
    font-size: 16px;
}

.why-card:nth-child(2n) .why-card-icon { background: var(--rose-light); }
.why-card:nth-child(3n) .why-card-icon { background: var(--blue-light); }

.why-card h3 {
    margin-bottom: 10px;
    color: var(--forest-dark);
    font-family: var(--heading-font);
    font-size: 25px;
    font-weight: 500;
    line-height: 1.15;
}

.why-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.75;
}

/* =========================================================
   FOUNDER
   ========================================================= */

.founder-section {
    padding: 120px 0;
    background: var(--forest-dark);
    color: var(--white);
}

.founder-grid {
    display: grid;
    grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr);
    gap: 90px;
    align-items: center;
}

.founder-photo {
    position: relative;
}

.founder-photo-inner {
    position: relative;
    width: 100%;
    max-width: 560px;
    aspect-ratio: .82;
    overflow: hidden;
    background: rgba(255,255,255,.05);
    border-radius: 250px 250px 30px 30px;
}

.founder-photo-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.founder-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background:
        radial-gradient(circle at 50% 30%, rgba(217,154,170,.22), transparent 35%),
        rgba(255,255,255,.04);
    color: rgba(255,255,255,.5);
    text-align: center;
    font-size: 12px;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.founder-badge {
    position: absolute;
    z-index: 3;
    right: -30px;
    bottom: 35px;
    width: 155px;
    height: 155px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--rose);
    border-radius: 50%;
    color: var(--forest-dark);
    text-align: center;
    box-shadow: 0 20px 45px rgba(0,0,0,.2);
}

.founder-badge strong {
    font-family: var(--heading-font);
    font-size: 30px;
    font-weight: 500;
    line-height: 1;
}

.founder-badge span {
    margin-top: 6px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .1em;
    line-height: 1.35;
    text-transform: uppercase;
}

.founder-content .eyebrow {
    color: var(--rose);
}

.founder-content h2 {
    margin-bottom: 24px;
    color: var(--white);
    font-family: var(--heading-font);
    font-size: clamp(42px,5vw,68px);
    font-weight: 400;
    letter-spacing: -.035em;
    line-height: 1.04;
}

.founder-content h2 span {
    color: var(--rose);
    font-style: italic;
}

.founder-content > p {
    max-width: 620px;
    margin-bottom: 20px;
    color: rgba(255,255,255,.7);
    line-height: 1.9;
}

.founder-content strong {
    color: var(--white);
}

.founder-credentials {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px;
    margin-top: 30px;
}

.founder-credentials > div {
    padding: 16px 18px;
    background: rgba(255,255,255,.055);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 14px;
}

.founder-credentials strong,
.founder-credentials span {
    display: block;
}

.founder-credentials strong {
    margin-bottom: 3px;
    font-size: 12px;
}

.founder-credentials span {
    color: rgba(255,255,255,.58);
    font-size: 11px;
}

/* =========================================================
   SPECIALISTS
   ========================================================= */

.specialists-section {
    padding: 120px 0;
    background: var(--white);
}

.specialist-carousel {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--ivory);
}

.specialist-track {
    position: relative;
}

.specialist-slide {
    position: relative;
    display: none;
    min-height: 520px;
    grid-template-columns: .82fr 1.18fr;
}

.specialist-slide.active {
    display: grid;
}

.specialist-image {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    background: var(--sage-light);
}

.specialist-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.specialist-image-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 35px;
    background:
        linear-gradient(180deg, transparent 40%, rgba(18,63,66,.22)),
        linear-gradient(135deg, var(--sage-light), var(--blue-light));
    color: rgba(18,63,66,.48);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.specialist-information {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 70px 80px;
}

.specialist-role {
    display: block;
    margin-bottom: 16px;
    color: var(--rose);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.specialist-information h3 {
    margin-bottom: 8px;
    color: var(--forest-dark);
    font-family: var(--heading-font);
    font-size: clamp(38px,4vw,58px);
    font-weight: 500;
    letter-spacing: -.035em;
    line-height: 1;
}

.specialist-experience {
    color: var(--forest);
    font-size: 12px;
    font-weight: 700;
}

.specialist-information p {
    max-width: 580px;
    margin-bottom: 20px;
    color: var(--muted);
    line-height: 1.8;
}

.specialist-divider {
    width: 52px;
    height: 1px;
    margin: 3px 0 22px;
    background: var(--rose);
}

.specialist-arrow {
    background: rgba(18,63,66,.08);
    border-color: rgba(18,63,66,.12);
    color: var(--forest);
}

.specialist-arrow:hover {
    background: var(--forest);
    color: var(--white);
}

.specialist-prev {
    right: 90px;
    bottom: 30px;
}

.specialist-next {
    right: 32px;
    bottom: 30px;
}

.specialist-dots {
    left: 32px;
    bottom: 50px;
}

.specialist-dot {
    background: rgba(18,63,66,.22);
}

.specialist-dot.active {
    background: var(--forest);
}

/* =========================================================
   APPOINTMENT CTA
   ========================================================= */

.appointment-section {
    padding: 120px 0;
    background: var(--ivory);
}

.appointment-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    padding: 75px;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at 90% 20%, rgba(217,154,170,.18), transparent 27%),
        var(--forest);
}

.appointment-inner::after {
    content: "";
    position: absolute;
    right: -100px;
    bottom: -160px;
    width: 430px;
    height: 430px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 50%;
}

.appointment-text {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.appointment-text .eyebrow {
    color: var(--rose);
}

.appointment-text h2 {
    color: var(--white);
    margin-bottom: 20px;
}

.appointment-text p {
    max-width: 600px;
    margin: 0;
    color: rgba(255,255,255,.7);
}

.appointment-actions {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* =========================================================
   CONTACT
   ========================================================= */

.contact-section {
    padding: 0 0 120px;
    background: var(--ivory);
}

.contact-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 20px;
}

.contact-content {
    padding: 20px 0;
}

.contact-content h2 {
    margin-bottom: 18px;
}

.contact-content > p {
    max-width: 600px;
    margin-bottom: 30px;
    color: var(--muted);
}

.contact-details {
    display: grid;
    gap: 0;
    margin-bottom: 25px;
}

.contact-detail {
    display: flex;
    gap: 15px;
    padding: 18px 0;
    border-top: 1px solid var(--border);
}

.contact-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sage-light);
    border-radius: 50%;
    color: var(--forest);
    font-size: 13px;
}

.contact-detail strong,
.contact-detail span {
    display: block;
}

.contact-detail strong {
    margin-bottom: 3px;
    color: var(--forest-dark);
    font-size: 12px;
}

.contact-detail span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

.contact-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.map-card {
    min-height: 520px;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 70% 30%, rgba(217,154,170,.2), transparent 25%),
        linear-gradient(135deg, var(--sage-light), var(--blue-light));
    box-shadow: var(--shadow-soft);
}

.map-card::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .35;
    background-image:
        linear-gradient(rgba(18,63,66,.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(18,63,66,.12) 1px, transparent 1px);
    background-size: 42px 42px;
}

.map-card-inner {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 35px;
}

.map-text {
    max-width: 390px;
    padding: 35px;
    background: rgba(248,245,239,.94);
    border: 1px solid rgba(255,255,255,.65);
    border-radius: 24px;
    box-shadow: var(--shadow-card);
    text-align: center;
    backdrop-filter: blur(12px);
}

.map-pin {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--rose-light);
    border-radius: 50%;
}

.map-text strong {
    display: block;
    margin-bottom: 8px;
    color: var(--forest-dark);
    font-family: var(--heading-font);
    font-size: 26px;
    font-weight: 500;
}

.map-text p {
    margin-bottom: 20px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.map-button {
    width: 100%;
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    padding: 65px 0 25px;
    background: var(--forest-deep);
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.25fr .75fr .75fr;
    gap: 70px;
    padding-bottom: 55px;
}

.footer-brand {
    max-width: 410px;
}

.footer-brand img {
    display: none;
}

.footer-brand p {
    margin: 0;
    color: rgba(255,255,255,.55);
    font-size: 13px;
    line-height: 1.8;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.footer-column h3 {
    margin: 0 0 12px;
    color: var(--rose);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .17em;
    text-transform: uppercase;
}

.footer-column a,
.footer-column p {
    margin: 0;
    color: rgba(255,255,255,.62);
    font-size: 13px;
    line-height: 1.7;
    transition: color var(--transition);
}

.footer-column a:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,.09);
    color: rgba(255,255,255,.4);
    font-size: 10px;
}

/* =========================================================
   IMAGE STATES
   ========================================================= */

.image-load-error {
    opacity: .3;
}

img[src=""],
img:not([src]) {
    visibility: hidden;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {
    .container,
    .hero-grid {
        width: min(calc(100% - 40px), var(--container));
    }

    .desktop-nav {
        gap: 20px;
    }

    .hero-grid {
        gap: 50px;
    }

    .patient-needs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-intro-grid {
        gap: 50px;
    }

    .founder-grid {
        gap: 55px;
    }

    .specialist-information {
        padding: 55px;
    }
}

@media (max-width: 900px) {
    .desktop-nav {
        display: none;
    }

    .nav-container {
        justify-content: flex-end;
    }

    .logo {
        order: 1;
        width: 62px;
        height: 62px;
    }

    .mobile-menu-button {
        order: 2;
        display: inline-flex;
    }

    .hero-section {
        min-height: auto;
        padding: 140px 0 80px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 65px;
    }

    .hero-content {
        max-width: 800px;
    }

    .hero-visual {
        min-height: 530px;
    }

    .hero-image-wrapper {
        width: min(100%, 470px);
    }

    .transformation-caption {
        width: 85%;
        padding: 45px 45px 60px;
    }

    .why-intro-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .founder-grid {
        grid-template-columns: 1fr;
        gap: 65px;
    }

    .founder-photo-inner {
        margin-inline: auto;
        max-width: 500px;
    }

    .specialist-slide {
        grid-template-columns: 1fr;
    }

    .specialist-image {
        min-height: 430px;
        max-height: 500px;
    }

    .specialist-information {
        min-height: 450px;
        padding: 55px;
    }

    .specialist-prev,
    .specialist-next {
        bottom: 22px;
    }

    .specialist-dots {
        bottom: 42px;
    }

    .appointment-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .map-card {
        min-height: 420px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .container,
    .hero-grid {
        width: min(calc(100% - 28px), var(--container));
    }

    .site-header {
        padding: 11px 0;
    }

    .logo {
        width: 56px;
        height: 56px;
    }

    .mobile-menu-button {
        width: 44px;
        height: 44px;
    }

    .mobile-navigation {
        top: 76px;
    }

    .hero-section {
        padding: 120px 0 65px;
    }

    .hero-grid {
        gap: 48px;
    }

    .hero-main-title {
        font-size: clamp(45px, 13vw, 66px);
    }

    .hero-brand {
        font-size: 28px;
    }

    .hero-description {
        font-size: 15px;
    }

    .hero-actions,
    .appointment-actions,
    .contact-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn,
    .appointment-actions .btn,
    .contact-buttons .btn {
        width: 100%;
    }

    .hero-visual {
        min-height: 450px;
    }

    .hero-image-wrapper {
        width: min(100%, 370px);
    }

    .hero-card-content {
        left: 34px;
        right: 34px;
    }

    .hero-card-content strong {
        font-size: 35px;
    }

    .hero-logo-watermark {
        right: -8px;
        width: 85px;
    }

    .transformations-section {
        padding: 18px 0 75px;
    }

    .transformation-carousel,
    .specialist-carousel {
        border-radius: 26px;
    }

    .transformation-slide {
        min-height: 550px;
    }

    .transformation-caption {
        width: 100%;
        padding: 35px 28px 90px;
    }

    .transformation-caption h3 {
        font-size: 42px;
    }

    .carousel-prev {
        right: 72px;
        bottom: 20px;
    }

    .carousel-next {
        right: 20px;
        bottom: 20px;
    }

    .carousel-dots {
        left: 20px;
        bottom: 40px;
    }

    .patient-needs-section,
    .why-section,
    .founder-section,
    .specialists-section,
    .appointment-section {
        padding: 75px 0;
    }

    .section-heading {
        margin-bottom: 42px;
    }

    .section-heading h2,
    .contact-content h2 {
        font-size: 42px;
    }

    .patient-needs-grid,
    .why-grid {
        grid-template-columns: 1fr;
    }

    .patient-need-card {
        min-height: 235px;
    }

    .why-card {
        min-height: 220px;
    }

    .founder-photo-inner {
        aspect-ratio: .86;
        border-radius: 180px 180px 24px 24px;
    }

    .founder-badge {
        right: -5px;
        bottom: 20px;
        width: 120px;
        height: 120px;
    }

    .founder-badge strong {
        font-size: 25px;
    }

    .founder-credentials {
        grid-template-columns: 1fr;
    }

    .specialist-image {
        min-height: 360px;
    }

    .specialist-information {
        min-height: auto;
        padding: 40px 28px 90px;
    }

    .specialist-information h3 {
        font-size: 42px;
    }

    .specialist-prev {
        right: 72px;
        bottom: 20px;
    }

    .specialist-next {
        right: 20px;
        bottom: 20px;
    }

    .specialist-dots {
        left: 20px;
        bottom: 40px;
    }

    .appointment-inner {
        padding: 50px 28px;
        border-radius: 28px;
    }

    .appointment-text h2 {
        font-size: 45px;
    }

    .contact-section {
        padding-bottom: 75px;
    }

    .map-card {
        min-height: 380px;
    }

    .map-text {
        padding: 28px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
        padding-bottom: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
/* =========================================================
   SPECIALITIES PAGE — MOBILE HEADER CLEARANCE
   Desktop remains unchanged
   ========================================================= */

@media (max-width: 600px) {

    .page-hero {
        min-height: auto;
        padding-top: 0;
    }

    .page-hero-content {
        padding-top: 145px;
        padding-bottom: 65px;
    }

    .page-hero h1 {
        margin-top: 14px;
        font-size: clamp(2.65rem, 12vw, 3.4rem);
        line-height: 1.06;
    }

    .page-hero p {
        margin-top: 20px;
    }

    .page-hero-actions {
        margin-top: 28px;
    }
}
/* =========================================================
   SPECIALITIES PAGE — MOBILE TYPOGRAPHY UPGRADE
   Desktop layout intentionally untouched
   ========================================================= */

@media (max-width: 600px) {

    /* -------------------------
       INTRODUCTION
       ------------------------- */

    .speciality-intro {
        padding-top: 72px;
        padding-bottom: 42px;
    }

    .speciality-intro .section-heading {
        max-width: 100%;
        text-align: left;
    }

    .speciality-intro .section-heading .eyebrow {
        margin-bottom: 18px;
    }

    .speciality-intro .section-heading h2 {
        font-family: "Playfair Display", serif;
        font-size: clamp(2.45rem, 11vw, 3.25rem);
        line-height: 1.02;
        letter-spacing: -0.035em;
        font-weight: 600;
        margin-bottom: 24px;
    }

    .speciality-intro .section-heading h2 span {
        display: block;
        color: var(--pink, #d99aaa);
        font-style: italic;
    }

    .speciality-intro .section-heading p {
        max-width: 34rem;
        font-size: 0.98rem;
        line-height: 1.8;
        color: var(--ink-soft, #657477);
    }


    /* -------------------------
       SPECIALITY SECTION
       ------------------------- */

    .specialities-page-section {
        padding-top: 35px;
        padding-bottom: 70px;
    }

    .specialities-page-grid {
        display: flex;
        flex-direction: column;
        gap: 18px;
    }


    /* -------------------------
       PREMIUM SPECIALITY CARD
       ------------------------- */

    .speciality-detail-card {
        display: block;

        min-height: auto;

        padding: 30px 26px 27px;

        border-radius: 24px;

        background:
            linear-gradient(
                145deg,
                rgba(255, 255, 255, 0.98),
                rgba(248, 245, 239, 0.96)
            );

        border: 1px solid rgba(18, 63, 66, 0.09);

        box-shadow:
            0 15px 45px rgba(18, 63, 66, 0.065);

        transform: none;
    }

    .speciality-detail-card:hover {
        transform: none;
        box-shadow:
            0 15px 45px rgba(18, 63, 66, 0.065);
    }


    /* -------------------------
       REMOVE NUMBERING
       ------------------------- */

    .speciality-number {
        display: none;
    }


    /* -------------------------
       CATEGORY LABEL
       ------------------------- */

    .speciality-label {
        display: inline-flex;
        align-items: center;

        margin-bottom: 13px;

        color: #789CAA;

        font-family: "DM Sans", sans-serif;

        font-size: 0.64rem;
        font-weight: 700;

        letter-spacing: 0.19em;
        line-height: 1.4;

        text-transform: uppercase;
    }

    .speciality-label::before {
        content: "";

        width: 20px;
        height: 1px;

        margin-right: 9px;

        background: #D99AAA;
    }


    /* -------------------------
       SPECIALITY TITLE
       ------------------------- */

    .speciality-detail-content h2 {
        margin: 0 0 17px;

        color: #123F42;

        font-family: "Playfair Display", serif;

        font-size: clamp(2.15rem, 10vw, 3rem);

        font-weight: 600;

        line-height: 1.02;

        letter-spacing: -0.035em;
    }


    /* -------------------------
       DESCRIPTION
       ------------------------- */

    .speciality-detail-content p {
        margin: 0 0 25px;

        color: #526568;

        font-family: "DM Sans", sans-serif;

        font-size: 0.94rem;

        line-height: 1.78;

        max-width: 35rem;
    }


    /* -------------------------
       DOCTOR PROFILE
       ------------------------- */

    .specialist-mini-profile {
        position: relative;

        margin-top: 4px;
        margin-bottom: 24px;

        padding: 16px 0 16px 17px;

        border-left: 2px solid rgba(217, 154, 170, 0.65);

        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .specialist-mini-profile strong {
        color: #123F42;

        font-family: "DM Sans", sans-serif;

        font-size: 0.93rem;
        font-weight: 700;

        line-height: 1.35;
    }

    .specialist-mini-profile span {
        color: #718083;

        font-family: "DM Sans", sans-serif;

        font-size: 0.76rem;

        line-height: 1.55;
    }


    /* -------------------------
       ENQUIRY LINK
       ------------------------- */

    .speciality-detail-card .text-link {
        display: inline-flex;
        align-items: center;
        gap: 10px;

        color: #123F42;

        font-size: 0.78rem;
        font-weight: 700;

        letter-spacing: 0.01em;

        transition:
            gap 0.3s ease,
            color 0.3s ease;
    }

    .speciality-detail-card .text-link span {
        color: #D99AAA;

        font-size: 1.15rem;

        transition: transform 0.3s ease;
    }

    .speciality-detail-card .text-link:hover {
        color: #082F32;
    }

    .speciality-detail-card .text-link:hover span {
        transform: translateX(4px);
    }


    /* -------------------------
       SUBTLE CARD ACCENT
       ------------------------- */

    .speciality-detail-card::before {
        height: 2px;

        background:
            linear-gradient(
                90deg,
                #D99AAA,
                #789CAA,
                transparent
            );

        transform: scaleX(1);
    }
}
/* =========================================================
   SPECIALIST CAROUSEL — FINAL FIX
   ========================================================= */

.specialist-carousel {
    position: relative;
    overflow: hidden;
}

.specialist-track {
    position: relative;
    width: 100%;
}

.specialist-slide {
    display: none;
    width: 100%;
    min-height: 520px;
    grid-template-columns: 0.9fr 1.1fr;
}

.specialist-slide.active {
    display: grid;
}

.specialist-image {
    position: relative;
    min-height: 520px;
    overflow: hidden;
}

.specialist-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
}

.specialist-information {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Mobile */
@media (max-width: 900px) {

    .specialist-slide {
        display: none;
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .specialist-slide.active {
        display: grid;
    }

    .specialist-image {
        order: 1;
        width: 100%;
        min-height: 390px;
        max-height: 500px;
    }

    .specialist-image img {
        width: 100%;
        height: 100%;
        min-height: 390px;
        max-height: 500px;
        object-fit: cover;
    }

    .specialist-information {
        order: 2;
        min-height: auto;
    }
}

@media (max-width: 600px) {

    .specialist-image {
        min-height: 380px;
        max-height: 460px;
    }

    .specialist-image img {
        min-height: 380px;
        max-height: 460px;
    }
}
/* =========================================================
   MOBILE TRANSFORMATION CAROUSEL
   Image-first layout so the result is never hidden by text
   ========================================================= */

@media (max-width: 600px) {

    .transformation-carousel {
        overflow: hidden;
    }

    .transformation-track {
        width: 100%;
    }

    .transformation-slide {
        position: relative;
        display: flex;
        flex-direction: column;
        height: auto;
        min-height: 0;
        overflow: hidden;
        border-radius: 28px;
        background: var(--color-dark-teal, #082F32);
    }

    /* The complete before/after image stays visible */
    .transformation-slide .transformation-image {
        position: relative;
        display: block;
        width: 100%;
        height: auto;
        min-height: 0;
        max-height: none;
        object-fit: contain;
        object-position: center;
        background: #ffffff;
        flex-shrink: 0;
    }

    /* Caption moves BELOW the image */
    .transformation-slide .transformation-caption {
        position: relative;
        inset: auto;
        width: 100%;
        min-height: 190px;
        padding: 28px 24px 34px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        background: var(--color-dark-teal, #082F32);
        z-index: 2;
    }

    .transformation-slide .transformation-caption::before {
        display: none;
    }

    .transformation-slide .transformation-caption span {
        position: relative;
        display: block;
        margin-bottom: 10px;
        font-size: 0.72rem;
        line-height: 1.2;
        letter-spacing: 0.18em;
        text-transform: uppercase;
        color: var(--color-dusty-rose, #D99AAA);
    }

    .transformation-slide .transformation-caption h3 {
        position: relative;
        margin: 0;
        max-width: 100%;
        font-size: clamp(2rem, 8vw, 2.7rem);
        line-height: 1.08;
        color: #ffffff;
    }

    /* Keep carousel controls cleanly below/over the caption */
    .transformation-carousel .carousel-arrow {
        z-index: 5;
    }

    .transformation-carousel .carousel-dots {
        position: relative;
        z-index: 6;
    }

}
