/* ==========================================================================
   Dental Care Plus Website Design System (Configurable Variables & Tokens)
   ========================================================================== */
:root {
    --transition-speed: 0.5s;
    --transition-curve: cubic-bezier(0.16, 1, 0.3, 1);

    /* Premium Color System */
    --primary-teal: #0c575a;
    --primary-teal-light: #158b90;
    --primary-teal-dark: #052a2c;
    --accent-teal: #14b8a6;
    --accent-emerald: #10b981;
    --accent-cyan: #06b6d4;

    /* Backgrounds and Overlays */
    --bg-dark-indigo: #071719;
    --bg-dark-slate: #0b1e20;
    --bg-light-ice: #f4fafb;
    --bg-white: #ffffff;

    /* Text Colors */
    --text-dark: #0f2426;
    --text-light: #4c686b;
    --text-muted: #728f93;
    --text-white: #ffffff;

    /* Typography Font Stacks */
    --font-sans: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-serif: 'Playfair Display', 'Didot', 'Bodoni MT', Georgia, serif;
    --font-dm: 'DM Sans', sans-serif;

    /* Glassmorphism Presets */
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-bg-heavy: rgba(255, 255, 255, 0.12);
    --glass-bg-dark: rgba(7, 23, 25, 0.95);
    --glass-border: 1px solid rgba(255, 255, 255, 0.3);
    --glass-border-teal: 1px solid rgba(20, 184, 166, 0.2);
    --glass-shadow: 0 15px 35px 0 rgba(7, 23, 25, 0.05);
    --glass-shadow-heavy: 0 25px 55px 0 rgba(5, 42, 44, 0.15);
    --glass-blur: blur(12px) saturate(140%);
    
    /* Layout Z-Indices */
    --z-bg: -2;
    --z-base: 1;
    --z-mid: 5;
    --z-handle: 10;
    --z-slider-input: 11;
    --z-nav: 1000;
}

/* ==========================================================================
   Image Asset Allocations (Synchronized Absolute Folder Paths)
   ========================================================================== */
.portrait-img {
    background-image: url("images/doctor-no-bg.png");
}

.before-img {
    background-image: url("images/before.jpg");
}

.after-img {
    background-image: url("images/after.jpg");
}

.doctor-working-img {
    background-image: url("images/doctor-working.jpg");
}

.clinic-img-placeholder {
    background-image: url("images/clinic.jpg");
}

.waiting-area-img {
    background-image: url("images/waiting-area.jpg");
}

.equipment-img {
    background-image: url("images/equipment.jpg");
}

.chair-img {
    background-image: url("images/chair.jpg");
}

.dental-scaler-img {
   background-image: url("images/dental-scaler.jpg");
}

.curing-light-img {
   background-image: url("images/curing-light.jpg");
}

.xray-machine-img {
   background-image: url("images/xray-machine.jpg");
}

.avatar-1 {
    background-image: url("images/avatar1.jpg");
}

.avatar-2 {
    background-image: url("images/avatar2.jpg");
}

.avatar-3 {
    background-image: url("images/avatar3.jpg");
}

/* ==========================================================================
   Lenis Smooth Scrolling Easing Setup
   ========================================================================== */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overflow: clip;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

/* ==========================================================================
   Ambient Background Design (Cinematic Blur Layers)
   ========================================================================== */
.bg-blur-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: var(--z-bg);
    pointer-events: none;
    background-color: var(--bg-light-ice);
}

.bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    mix-blend-mode: multiply;
    animation: blob-float 24s infinite ease-in-out;
    will-change: transform;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background-color: var(--accent-cyan);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background-color: var(--primary-teal-light);
    bottom: -15%;
    right: -10%;
    animation-delay: 4s;
}

.blob-3 {
    width: 450px;
    height: 450px;
    background-color: var(--accent-teal);
    top: 40%;
    left: 50%;
    animation-delay: 8s;
}

@keyframes blob-float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(60px, -40px) scale(1.15);
    }
    66% {
        transform: translate(-40px, 80px) scale(0.9);
    }
}

/* ==========================================================================
   Global CSS Resets & Reset Parameters
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    overflow-x: hidden;
    width: 100%;
    scroll-snap-type: y proximity;
}

.snap-section {
    scroll-snap-align: start;
    scroll-snap-stop: normal;
}

.transformation-section.snap-section {
    scroll-snap-align: none;
}

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    line-height: 1.625;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    background-color: var(--bg-light-ice);
}

/* Fixed non-hero background image vertical alignment and positioning issues globally */
[class*="-img"],
.tech-img-placeholder,
.gallery-img {
    background-size: cover;
    background-position: center center !important;
    background-repeat: no-repeat;
}

img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ==========================================================================
   Glassmorphism Definitions (Performance Optimized Fallbacks)
   ========================================================================== */
.glass-panel {
    background: var(--glass-bg);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.glass-panel-heavy {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--glass-shadow-heavy);
}

.glass-panel-dark {
    background: var(--glass-bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--glass-shadow-heavy);
}

@media (min-width: 1025px) {
    .glass-panel,
    .glass-panel-heavy,
    .glass-panel-dark {
        backdrop-filter: var(--glass-blur);
        -webkit-backdrop-filter: var(--glass-blur);
        transform: translate3d(0, 0, 0);
    }
}

/* ==========================================================================
   Header Navigation (Elegant Balanced Layout with Center Logo on Mobile)
   ========================================================================== */
.site-header {
    background-color: transparent;
    border-bottom: 1px solid transparent;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: var(--z-nav);
    transition: background-color var(--transition-speed) var(--transition-curve),
        border-bottom var(--transition-speed) var(--transition-curve),
        box-shadow var(--transition-speed) var(--transition-curve),
        transform 0.4s var(--transition-curve);
    will-change: transform;
}

.site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(12, 87, 90, 0.06);
    box-shadow: 0 10px 30px rgba(7, 23, 25, 0.06);
}

@media (min-width: 1025px) {
    .site-header.scrolled {
        backdrop-filter: var(--glass-blur);
        -webkit-backdrop-filter: var(--glass-blur);
    }
}

.header-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 4px 24px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: 60px;
}

.logo {
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    grid-column: 2;
}

.clinic-logo {
    width: 205px;
    transition: width 0.3s ease;
}

.nav-wrapper {
    display: contents;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.5vw, 36px);
    grid-column: 1;
    justify-content: flex-start;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.5vw, 36px);
    grid-column: 3;
    justify-content: flex-end;
}

.nav-link {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.15em;
    position: relative;
    padding: 8px 0;
    transition: color 0.3s ease;
    white-space: nowrap;
}

/* Home Page Transparent Header Links */
#home-page-body .site-header:not(.scrolled) .nav-link {
    color: rgba(255, 255, 255, 0.95);
}

#home-page-body .site-header:not(.scrolled) .phone-btn {
    color: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.3);
}

#home-page-body .site-header:not(.scrolled) .mobile-menu-toggle .line {
    background-color: rgba(255, 255, 255, 0.95);
}

/* Scrolled Header Links (Global) */
.site-header.scrolled .nav-link {
    color: var(--primary-teal);
}

.site-header.scrolled .phone-btn {
    color: var(--primary-teal);
    border-color: var(--primary-teal-light);
}

.site-header.scrolled .mobile-menu-toggle .line {
    background-color: var(--primary-teal);
}

/* Force dark text inside mobile menu overlay, regardless of scroll position */
.site-header.nav-open .nav-link {
    color: var(--primary-teal) !important;
}

.site-header.nav-open .phone-btn {
    color: var(--primary-teal) !important;
    border-color: var(--primary-teal-light) !important;
}

.site-header.nav-open .mobile-menu-toggle .line {
    background-color: var(--primary-teal) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--accent-teal);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s var(--transition-curve);
}

.nav-link:hover::after,
.nav-link.active-link::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-link:hover,
.nav-link.active-link {
    color: var(--accent-teal) !important;
}

.phone-btn {
    border: 2px solid var(--primary-teal-light);
    border-radius: 50px;
    padding: 10px 22px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.phone-btn:hover {
    background-color: var(--primary-teal-light) !important;
    border-color: var(--primary-teal-light) !important;
    color: var(--text-white) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(21, 139, 144, 0.15);
}

.btn-book-nav {
    color: var(--accent-teal) !important;
}

/* ==========================================================================
   Upgraded Premium Hero Section
   ========================================================================== */
.hero {
    position: relative;
    overflow: visible;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--bg-dark-indigo);
    padding: 140px 0 0 0;
}

.hero-overlay-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(7, 23, 25, 0.96) 0%, rgba(7, 23, 25, 0.8) 50%, rgba(7, 23, 25, 0.4) 100%);
    z-index: 1;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
    align-items: center;
    width: 100%;
    padding: 40px 0;
}

.hero-content {
    color: var(--text-white);
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(38px, 4.5vw, 64px);
    line-height: 1.15;
    margin-bottom: 24px;
    font-weight: 800;
}

.hero-title span {
    color: var(--accent-teal);
    display: block;
    font-weight: 800;
}

.hero-desc {
    opacity: 0.8;
    font-size: clamp(15px, 1.2vw, 17px);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 12px;
}

.hero-aside {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    justify-content: flex-end;
}

/* Dynamic Boundary Sizing for Doctor Portrait */
.hero-portrait-frame {
    width: 100%;
    max-width: 480px;
    aspect-ratio: 4 / 5;
    overflow: visible;
    position: relative;
    border: none !important;
    box-shadow: none !important;
}

.hero-portrait-frame .portrait-img {
    width: 100%;
    height: 125%;
    position: absolute;
    bottom: 0;
    left: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom center;
}

/* Relocated metrics module inside hero-content text block with clean borders */
.hero-content .hero-metrics {
    position: relative;
    z-index: 2;
    margin-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

.hero-content .hero-metrics-grid {
    display: flex;
    gap: 40px;
    padding: 24px 0 0 0;
}

/* Reusable Button System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.15em;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
}

.btn-teal {
    background-color: var(--accent-teal);
    color: var(--bg-dark-indigo);
    box-shadow: 0 10px 25px rgba(20, 184, 166, 0.2);
}

.btn-teal:hover {
    background-color: var(--text-white);
    color: var(--primary-teal-dark);
    transform: translateY(-3px);
}

.btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.25);
    color: var(--text-white);
    background: transparent;
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: var(--text-white);
    transform: translateY(-3px);
}

/* Metric Display Configurations */
.trust-item {
    display: flex;
    flex-direction: column;
}

.trust-val {
    font-family: var(--font-serif);
    font-size: 36px;
    color: var(--accent-teal);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 6px;
}

.trust-val-suffix {
    font-size: 24px;
    color: var(--accent-teal);
}

.trust-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* ==========================================================================
   Section Divider Waves (Ambient Transitions)
   ========================================================================== */
.section-divider-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to top, var(--bg-light-ice), transparent);
    pointer-events: none;
    z-index: var(--z-mid);
    margin-top: -1px;
}

/* ==========================================================================
   Interactive Cards with Optimized Scaling Action
   ========================================================================== */
.interactive-hover-card {
    transition: transform 0.4s var(--transition-curve),
        box-shadow 0.4s var(--transition-curve),
        border-color 0.4s var(--transition-curve);
}

.interactive-hover-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(12, 87, 90, 0.08);
    border-color: rgba(20, 184, 166, 0.25);
}

/* ==========================================================================
   Base Grid Layout Definitions
   ========================================================================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

.section-header-centered {
    text-align: center;
    margin-bottom: 70px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.25em;
    color: var(--primary-teal-light);
    margin-bottom: 16px;
    text-transform: uppercase;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(30px, 3.5vw, 46px);
    font-weight: 400;
    color: var(--primary-teal-dark);
    line-height: 1.25;
    margin-bottom: 20px;
}

.section-lead-p {
    font-size: 15.5px;
    color: var(--text-light);
    line-height: 1.8;
}

.layout-split-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 70px;
    align-items: center;
}

/* ==========================================================================
   Services Section Grid Layouts
   ========================================================================== */
.services-section {
    padding: clamp(80px, 10vw, 140px) 0;
    position: relative;
}

.services-modern-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-panel {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid rgba(12, 87, 90, 0.05);
}

.service-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.service-panel-num {
    font-family: var(--font-dm);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
}

.service-icon-circle {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background-color: var(--bg-light-ice);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-panel:hover .service-icon-circle {
    transform: translateY(-3px) rotate(5deg);
}

.services-modern-grid .service-panel:nth-child(1) .service-icon-circle {
    animation: gem-pulse 4s infinite ease-in-out;
}

.services-modern-grid .service-panel:nth-child(4) .service-icon-circle {
    animation: gear-rotate 20s infinite linear;
}

.services-modern-grid .service-panel:nth-child(2) .service-icon-circle,
.services-modern-grid .service-panel:nth-child(3) .service-icon-circle {
    animation: micro-drift 5s infinite ease-in-out;
}

@keyframes gem-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

@keyframes gear-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes micro-drift {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.service-panel-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-teal-dark);
    margin-bottom: 14px;
}

.service-panel-desc {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 24px;
}

.service-sublinks {
    list-style: none;
    border-top: 1px solid rgba(12, 87, 90, 0.06);
    padding-top: 20px;
}

.service-sublinks li {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-teal-light);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-sublinks li::before {
    content: '▪';
    color: var(--accent-teal);
}

.service-section-action {
    text-align: center;
    margin-top: 40px;
}

/* ==========================================================================
   Why Choose Us Section
   ========================================================================== */
.why-choose-section {
    padding: clamp(80px, 10vw, 140px) 0;
    background-color: var(--bg-white);
    position: relative;
}

.why-choose-p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 36px;
}

.excellence-checklist {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.check-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--bg-light-ice);
    color: var(--accent-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.check-text strong {
    display: block;
    font-size: 14px;
    color: var(--primary-teal-dark);
    margin-bottom: 4px;
}

.check-text {
    font-size: 13.5px;
    color: var(--text-light);
}

/* Visual Layout Stack */
.visual-stack-wrapper {
    position: relative;
    height: 480px;
    display: flex;
    align-items: center;
}

.visual-card-large {
    width: 90%;
    height: 100%;
    border-radius: 24px;
    overflow: visible;
    position: relative;
    border: 1px solid rgba(12, 87, 90, 0.06);
    box-shadow: var(--glass-shadow-heavy);
}

/* New clipping layer to isolate the image shape inside the card */
.card-inner-clip {
    width: 100%;
    height: 100%;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.clinic-img-placeholder {
    width: 100%;
    height: 100%;
}

.visual-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    padding: 20px 24px;
    border-radius: 16px;
    box-shadow: var(--glass-shadow-heavy);
    display: flex;
    flex-direction: column;
    z-index: 3;
    max-width: 200px;
    animation: badge-float 6s infinite ease-in-out;
}

@keyframes badge-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.badge-icon-large {
    font-size: 28px;
}

.visual-badge h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-teal-dark);
}

.visual-badge p {
    font-size: 11px;
    color: var(--text-muted);
}

/* ==========================================================================
   Doctor Biography
   ========================================================================== */
.doctor-intro-section {
    padding: clamp(80px, 10vw, 140px) 0;
    position: relative;
}

.doctor-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 70px;
    align-items: center;
}

.portrait-container-interactive {
    position: relative;
    height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.doctor-bg-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.15) 0%, transparent 65%);
}

.doctor-photo-frame {
    width: 100%;
    height: 100%;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--glass-shadow-heavy);
}

.doctor-working-img {
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.doctor-floating-credentials {
    position: absolute;
    bottom: -20px;
    left: 24px;
    right: 24px;
    padding: 22px 28px;
    border-radius: 16px;
    animation: badge-float 6s infinite ease-in-out;
    animation-delay: 3s;
}

.doctor-floating-credentials h5 {
    font-size: 14.5px;
    font-weight: 800;
    color: var(--text-white);
}

.doctor-floating-credentials p {
    font-size: 11.5px;
    color: var(--text-white);
    margin-bottom: 10px;
}

.credential-tag {
    display: inline-block;
    font-size: 12px;
    background-color: var(--accent-teal);
    color: var(--bg-dark-indigo);
    padding: 4px 12px;
    border-radius: 50px;
    font-weight: 700;
}

.doctor-p-lead {
    font-size: 15.5px;
    color: var(--primary-teal-dark);
    line-height: 1.8;
    margin-bottom: 20px;
    font-weight: 500;
}

.doctor-p-sub {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 36px;
}

.surgeon-signature-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(12, 87, 90, 0.08);
    padding-top: 24px;
}

.signature-line {
    display: flex;
    flex-direction: column;
}

.sig-title {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.sig-name {
    font-family: var(--font-serif);
    font-size: 22px;
    color: var(--primary-teal);
}

.surgeon-medals {
    display: flex;
    gap: 12px;
}

.medal-item {
    font-size: 12px;
    background-color: rgba(12, 87, 90, 0.04);
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 600;
    color: var(--primary-teal-dark);
}

.doctor-section-action {
    text-align: center;
    margin-top: 40px;
}

/* ==========================================================================
   Before / After Interactive Reveal
   ========================================================================== */
.transformation-section {
    padding: clamp(80px, 10vw, 140px) 0;
    position: relative;
}

.sticky-pin-container,
.sticky-element {
    position: relative;
    width: 100%;
}

.transformation-grid {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.slider-comparison-outer {
    max-width: 780px;
    margin: 0 auto;
    width: 100%;
}

.slider-comparison-wrapper {
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
}

.comparison-slider {
    position: relative;
    width: 100%;
    height: 100%;
    user-select: none;
    -webkit-user-select: none;
}

.img-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.before-img {
    z-index: 1;
}

.after-img {
    clip-path: inset(0 50% 0 0);
    z-index: 2;
}

.status-indicator-badge {
    position: absolute;
    top: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 8px 16px;
    border-radius: 50px;
    z-index: 5;
    pointer-events: none;
}

.tag-before {
    left: 20px;
    background-color: rgba(7, 23, 25, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-white);
}

.tag-after {
    right: 20px;
    background-color: var(--accent-teal);
    color: var(--bg-dark-indigo);
}

/* Sliding Interaction Components */
.slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background-color: transparent;
    transform: translateX(-50%);
    z-index: var(--z-handle);
    pointer-events: none;
}

.slider-accessible-range {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: ew-resize;
    z-index: var(--z-slider-input);
    pointer-events: auto;
    touch-action: pan-y;
}

.handle-glow-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-teal), var(--accent-cyan));
    box-shadow: 0 0 10px var(--accent-teal);
}

.surgical-grip {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background-color: var(--bg-dark-indigo);
    border: 2px solid var(--accent-teal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.laser-aperture {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px dashed rgba(20, 184, 166, 0.4);
    animation: spin-clockwise 20s infinite linear;
}

@keyframes spin-clockwise {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.arrow-indicator {
    color: var(--accent-teal);
    font-size: 11px;
}

/* ==========================================================================
   Technology Matrix Mosaics
   ========================================================================== */
.technology-section {
    padding: clamp(80px, 10vw, 140px) 0;
    position: relative;
}

.tech-mosaics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.tech-card {
    background-color: var(--bg-white);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(12, 87, 90, 0.05);
}

.tech-img-placeholder {
    height: 230px;
    width: 100%;
}

.tech-card-content {
    padding: 30px;
}

.tech-card-content h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-teal-dark);
    margin-bottom: 10px;
}

.tech-card-content p {
    font-size: 13.5px;
    color: var(--text-light);
    line-height: 1.7;
}

/* ==========================================================================
   Experience Pathway Timeline
   ========================================================================== */
.process-section {
    padding: clamp(80px, 10vw, 140px) 0;
    background-color: var(--bg-white);
    position: relative;
}

.timeline-container {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    top: 40px;
    left: 5%;
    width: 90%;
    height: 2px;
    background: linear-gradient(to right, var(--primary-teal-light), var(--accent-teal));
    z-index: 0;
    opacity: 0.2;
}

.timeline-step {
    background-color: var(--bg-light-ice);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    z-index: 2;
    flex: 1;
}

.step-num {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background-color: var(--accent-teal);
    color: var(--bg-dark-indigo);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-dm);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.step-content h4 {
    font-size: 17px;
    color: var(--primary-teal-dark);
    margin-bottom: 10px;
}

.step-content p {
    font-size: 13.5px;
    color: var(--text-light);
    line-height: 1.7;
}

/* ==========================================================================
   Gallery Section
   ========================================================================== */
.gallery-section {
    padding: clamp(80px, 10vw, 140px) 0;
    position: relative;
}

.gallery-mosaic-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 230px);
    gap: 24px;
}

.gallery-item {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    height: 100%;
}

.gallery-img {
    width: 100%;
    height: 100%;
    transition: transform 0.6s var(--transition-curve);
}

.item-large {
    grid-column: span 2;
    grid-row: span 2;
}

.item-medium {
    grid-column: span 2;
}

.gallery-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 24px;
    background: linear-gradient(to top, rgba(7, 23, 25, 0.9), transparent);
    color: var(--text-white);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s var(--transition-curve);
}

.gallery-item:hover .gallery-img {
    transform: scale(1.05);
}

.gallery-item:hover .gallery-info {
    opacity: 1;
    transform: translateY(0);
}

.gallery-info h4 {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* Gallery Video Integration & Optimization */
.gallery-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--transition-curve);
    transform: translate3d(0, 0, 0);
    will-change: transform;
    backface-visibility: hidden;
}

.gallery-item:hover .gallery-video {
    transform: scale(1.05) translate3d(0, 0, 0);
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials-section {
    padding: clamp(80px, 10vw, 140px) 0;
    background-color: var(--bg-white);
    position: relative;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background-color: var(--bg-light-ice);
    padding: 40px 30px;
    border-radius: 24px;
}

.quote-symbol {
    font-family: var(--font-serif);
    font-size: 58px;
    color: var(--accent-teal);
    line-height: 1;
    margin-bottom: -5px;
    opacity: 0.3;
}

.testimonial-text {
    font-size: 14px;
    line-height: 1.75;
    color: var(--text-light);
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid rgba(20, 184, 166, 0.2);
    display: inline-block;
}

.testimonial-author h5 {
    font-size: 14px;
    color: var(--primary-teal-dark);
}

.testimonial-author p {
    font-size: 11px;
    color: var(--text-muted);
}

/* ==========================================================================
   Accordion FAQ Interactive Mechanics
   ========================================================================== */
.faq-section {
    padding: clamp(80px, 10vw, 140px) 0;
    position: relative;
}

.faq-intro-p {
    font-size: 14.5px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 30px;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background-color: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(12, 87, 90, 0.03);
}

.faq-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 28px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--primary-teal-dark);
}

.faq-icon {
    font-size: 18px;
    color: var(--accent-teal);
    transition: transform 0.3s ease;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-content p {
    padding: 0 28px 24px 28px;
    font-size: 13.5px;
    color: var(--text-light);
    line-height: 1.75;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-item.active .faq-content {
    max-height: 300px;
}

/* ==========================================================================
   Emergency Action Banner
   ========================================================================== */
.emergency-section {
    padding: clamp(50px, 7vw, 90px) 0;
    background-color: var(--bg-white);
    position: relative;
}

.emergency-banner {
    background-color: var(--bg-dark-indigo);
    border-radius: 28px;
    padding: 50px;
    color: var(--text-white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.emergency-content {
    flex: 1;
}

.emergency-tag {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--accent-teal);
}

.emergency-banner h2 {
    font-family: var(--font-serif);
    font-size: 30px;
    margin: 10px 0 16px 0;
}

.emergency-banner p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.emergency-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 290px;
}

/* ==========================================================================
   Direct Appointment Form Replacement Container
   ========================================================================== */
.booking-cta-section {
    padding: clamp(80px, 10vw, 140px) 0;
    position: relative;
}

.booking-cta-box {
    background-color: var(--bg-dark-indigo);
    border-radius: 28px;
    padding: 60px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.cta-inner-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.cta-text-block {
    color: var(--text-white);
}

/* Systematic Style Replacement for Inline overrides */
.cta-huge-title {
    color: var(--text-white);
    font-family: var(--font-serif);
    font-size: clamp(28px, 3.5vw, 44px);
    margin-bottom: 20px;
    line-height: 1.2;
}

.cta-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 30px;
}

.clinical-guarantee {
    font-size: 11.5px;
    color: var(--accent-teal);
    font-weight: 600;
}

/* Replaced layout styling holding Google Form and pre-typed Mail buttons */
.appointment-cta-container {
    padding: 40px 30px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    justify-content: center;
}

.w-100 {
    width: 100%;
}

/* ==========================================================================
   Geographic Map Component
   ========================================================================== */
.location-section {
    padding: clamp(80px, 10vw, 140px) 0;
    background-color: var(--bg-white);
}

.location-split-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.address-details-panel {
    background-color: var(--bg-light-ice);
    padding: 40px;
    border-radius: 24px;
}

.address-details-panel h3 {
    font-size: 19px;
    color: var(--primary-teal-dark);
    margin-bottom: 10px;
}

.lead-address {
    font-size: 14px;
    color: var(--primary-teal-light);
    font-weight: 600;
    margin-bottom: 24px;
}

.clinic-hours-table {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-light);
    border-bottom: 1px solid rgba(12, 87, 90, 0.06);
    padding-bottom: 8px;
}

.hours-row.closed {
    color: var(--accent-teal);
    font-weight: 700;
}

.parking-alert {
    font-size: 12.5px;
    color: var(--text-muted);
}

/* Map Framing Presentation */
.map-container-outer {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.circular-map-frame {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    border: 5px solid var(--text-white);
    box-shadow: var(--glass-shadow-heavy);
}

.circular-map-frame iframe {
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Footer Base Layout (With Grayscale-to-Color PNG Logo Filters)
   ========================================================================== */
.site-footer {
    background-color: var(--bg-dark-indigo);
    color: rgba(255, 255, 255, 0.65);
    padding: 100px 0 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--accent-teal);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.footer-about-text {
    font-size: 13px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 24px;
}

.footer-social-icons {
    display: flex;
    gap: 16px;
}

.footer-social-icons a {
    display: inline-block;
    transition: transform 0.3s ease;
}

.social-icon-png {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: grayscale(100%) opacity(55%);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.footer-social-icons a:hover .social-icon-png {
    filter: grayscale(0%) opacity(100%);
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    display: inline-block;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--text-white);
    transform: translateX(4px);
}

.footer-contact-info {
    font-size: 13px;
    font-style: normal;
    line-height: 1.75;
}

.contact-link,
.footer-email {
    color: var(--text-white);
}

.contact-link:hover,
.footer-email:hover {
    color: var(--accent-teal);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
}

.footer-bottom-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright-text {
    font-size: 12px;
    letter-spacing: 0.08em;
}

.developer-link {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.25);
}

.developer-link:hover {
    color: var(--accent-teal);
}

/* Redesigned Developer Credit styling (EA Logo Integration) */
.developer-credit {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.dev-by-text {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: lowercase;
    letter-spacing: 0.15em;
    line-height: 1;
    margin: 0;
    pointer-events: none;
    user-select: none;
}

.footer-bottom-container a.developer-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    color: inherit;
    transition: none;
}

.developer-logo-img {
    height: auto;
    width: 125px;
    display: block;
    opacity: 0.8;
    filter: drop-shadow(0 0 0 transparent) brightness(1);
    transition: transform 0.3s ease, opacity 0.3s ease, filter 0.3s ease;
}

.hover-arrow {
    display: inline-block;
    font-size: 11px;
    color: #e67e22;
    opacity: 0;
    transform: translate(-3px, 3px);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s ease;
}

.footer-bottom-container a.developer-link:hover .developer-logo-img {
    opacity: 1;
    transform: scale(1.03);
    filter: drop-shadow(0 0 8px rgba(230, 126, 34, 0.45)) brightness(1.08); 
}

.footer-bottom-container a.developer-link:hover .hover-arrow {
    opacity: 1;
    transform: translate(0, 0);
}

/* ==========================================================================
   Bidirectional Scroll Entrance Animations
   ========================================================================== */
.reveal {
    opacity: 1;
    will-change: transform, opacity;
    transition: opacity 1.2s var(--transition-curve),
        transform 1.2s var(--transition-curve);
}

html.js-enabled .reveal {
    opacity: 0;
}

.transition-up {
    transform: translateY(40px);
}

.transition-left {
    transform: translateX(-40px);
}

.transition-right {
    transform: translateX(40px);
}

.scale-in {
    transform: scale(0.95);
}

.text-reveal {
    filter: none;
    transform: none;
}

html.js-enabled .text-reveal {
    opacity: 0.9;
    transform: translateY(15px);
}

.reveal.active {
    opacity: 1 !important;
    transform: translate(0) scale(1);
}

/* Back To Top Action Item */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--accent-teal);
    color: var(--bg-dark-indigo);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: var(--glass-shadow-heavy);
    opacity: 0;
    visibility: hidden;
    cursor: pointer;
    z-index: 99;
    transform: translateY(10px);
    transition: all 0.3s var(--transition-curve);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--text-white);
    transform: translateY(-3px);
}

/* Accessibility Focus States */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid var(--accent-cyan);
    outline-offset: 4px;
}

/* ==========================================================================
   Dynamic Viewport Architecture & Media Queries
   ========================================================================== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1002;
}

.mobile-menu-toggle .line {
    width: 100%;
    height: 2px;
    transition: all 0.3s var(--transition-curve);
}

.mobile-menu-toggle[aria-expanded="true"] .line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Desktop-to-Tablet Link Collision Fix (Viewports 1025px - 1180px) */
@media (min-width: 1025px) and (max-width: 1180px) {
    .nav-left, .nav-right {
        gap: clamp(8px, 1.2vw, 16px);
    }
    .nav-link {
        font-size: 11px;
        letter-spacing: 0.1em;
    }
    .phone-btn {
        padding: 8px 14px;
        font-size: 11px;
    }
    .clinic-logo {
        width: 160px;
    }
}

/* Intermediate Tablet Landscape Gallery Configuration */
@media (min-width: 769px) and (max-width: 1024px) {
    .gallery-mosaic-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        gap: 20px;
    }
    .item-large {
        grid-column: span 2;
        grid-row: span 1;
        height: 320px;
    }
    .item-medium {
        grid-column: span 1;
        height: 230px;
    }
    .gallery-item {
        height: 230px;
    }
}

/* Smaller Laptops & Mid-range Displays (Breathing Space & Alignment Fixes) */
@media (min-width: 1025px) and (max-width: 1360px) {
    .container {
        padding: 0 32px;
    }

    .layout-split-grid,
    .doctor-grid,
    .location-split-grid,
    .cta-inner-grid {
        gap: 50px;
    }

    .services-modern-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .tech-mosaics {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .why-choose-section,
    .doctor-intro-section,
    .process-section,
    .gallery-section,
    .testimonials-section,
    .faq-section,
    .booking-cta-section {
        padding: 100px 0;
    }
}

@media (max-width: 1200px) {
    .services-modern-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tech-mosaics {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 1024px) {
    html {
        scroll-snap-type: none !important;
    }

    .container {
        padding: 0 24px;
    }

    .mobile-menu-toggle {
        display: flex;
        grid-column: 1;
        justify-self: start;
    }

    .header-container {
        grid-template-columns: 1fr auto 1fr;
        padding: 10px 20px;
        min-height: 70px;
    }

    .logo {
        grid-column: 2;
        justify-self: center;
    }

    .clinic-logo {
        width: 140px;
    }

    .nav-wrapper {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background-color: var(--bg-white);
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
        padding: 80px 24px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, visibility 0.3s, transform 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }

    .site-header.nav-open .nav-wrapper {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-left,
    .nav-right {
        flex-direction: column;
        gap: 16px;
        width: 100%;
        align-items: center;
        grid-column: auto;
    }

    .nav-link {
        font-size: 14px;
        padding: 8px 16px;
        text-align: center;
        width: 100%;
    }

    .phone-btn {
        font-size: 13px;
        padding: 10px 20px;
    }

    .hero {
        padding-top: 80px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-aside {
        order: -1;
        margin-top: 10px;
        margin-bottom: 0;
    }

    .hero-portrait-frame {
        max-width: 320px;
        height: 400px;
    }

    .hero-portrait-frame .portrait-img {
        height: 100%;
        transform: translateY(0);
    }

    /* Fixed Metrics Row Display Collision */
    .hero-content .hero-metrics-grid {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }

    .trust-item {
        align-items: center;
    }

    .layout-split-grid,
    .doctor-grid,
    .location-split-grid,
    .cta-inner-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .portrait-container-interactive {
        height: 440px;
    }

    .timeline-container {
        flex-direction: column;
        gap: 20px;
    }

    .timeline-line {
        display: none;
    }

    .booking-cta-box {
        padding: 40px 24px;
    }

    .floating-stat-badge {
        position: relative;
        bottom: auto;
        right: auto;
        margin: 20px auto 0 auto;
        max-width: 100%;
        align-self: center;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .clinic-logo {
        width: 130px;
    }

    .services-modern-grid,
    .tech-mosaics,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .gallery-mosaic-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 16px;
    }

    .item-large,
    .item-medium {
        grid-column: span 1;
        grid-row: span 1;
    }

    .gallery-item {
        height: 220px;
    }

    .emergency-banner {
        flex-direction: column;
        padding: 30px 20px;
        gap: 24px;
        text-align: center;
    }

    .emergency-actions {
        width: 100%;
    }

    .circular-map-frame {
        border-radius: 20px;
        aspect-ratio: 16/10;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom-container {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .developer-credit {
        align-items: center;
    }
}

/* Defensive Label Collision Fix on Ultra-Narrow Viewports */
@media (max-width: 360px) {
    .status-indicator-badge {
        font-size: 10px;
        padding: 6px 12px;
        top: 10px;
    }
    .tag-before { left: 10px; }
    .tag-after { right: 10px; }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto !important;
        scroll-snap-type: none !important;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .services-modern-grid .service-panel:nth-child(1) .service-icon-circle,
    .services-modern-grid .service-panel:nth-child(4) .service-icon-circle,
    .services-modern-grid .service-panel:nth-child(2) .service-icon-circle,
    .services-modern-grid .service-panel:nth-child(3) .service-icon-circle,
    .visual-badge,
    .doctor-floating-credentials {
        animation: none !important;
    }
}
