/* Design tokens – HealPath / Kothariya Care */
:root {
    /* Brand colours – only #11ab68 (green) and #1268b3 (blue) */
    --green: #11ab68;
    --blue: #1268b3;
    --brand-green-rgb: 17, 171, 104;
    --brand-blue-rgb: 18, 104, 179;

    --primary: var(--green);
    --primary-container: var(--green);
    --primary-fixed: color-mix(in srgb, var(--green) 15%, white);
    --primary-fixed-dim: color-mix(in srgb, var(--green) 25%, white);
    --on-primary: #ffffff;
    --on-primary-fixed: var(--green);
    --on-primary-fixed-variant: var(--green);
    --on-primary-container: color-mix(in srgb, var(--green) 12%, white);
    --secondary: var(--green);
    --secondary-container: color-mix(in srgb, var(--green) 12%, white);
    --secondary-fixed: color-mix(in srgb, var(--green) 15%, white);
    --secondary-fixed-dim: color-mix(in srgb, var(--green) 20%, white);
    --on-secondary: #ffffff;
    --on-secondary-fixed: var(--green);
    --on-secondary-container: var(--green);
    --surface: color-mix(in srgb, var(--blue) 5%, white);
    --surface-bright: color-mix(in srgb, var(--blue) 5%, white);
    --surface-dim: color-mix(in srgb, var(--blue) 18%, white);
    --surface-container: color-mix(in srgb, var(--blue) 10%, white);
    --surface-container-low: color-mix(in srgb, var(--blue) 7%, white);
    --surface-container-high: color-mix(in srgb, var(--blue) 12%, white);
    --surface-container-highest: color-mix(in srgb, var(--blue) 15%, white);
    --surface-container-lowest: #ffffff;
    --surface-variant: color-mix(in srgb, var(--blue) 15%, white);
    --surface-tint: var(--blue);
    --on-surface: #071e27;
    --on-surface-variant: #475569;
    --on-background: #071e27;
    --background: color-mix(in srgb, var(--blue) 5%, white);
    --outline: #64748b;
    --outline-variant: color-mix(in srgb, var(--green) 25%, white);
    --inverse-surface: #1e333c;
    --inverse-on-surface: color-mix(in srgb, var(--blue) 8%, white);
    --inverse-primary: var(--green);
    --error: #ba1a1a;
    --error-container: #ffdad6;
    --on-error: #ffffff;
    --on-error-container: #93000a;
    --tertiary: #526056;
    --tertiary-container: #6b7370;
    --tertiary-fixed: color-mix(in srgb, var(--green) 10%, white);
    --tertiary-fixed-dim: color-mix(in srgb, var(--green) 15%, white);
    --on-tertiary: #ffffff;
    --on-tertiary-container: color-mix(in srgb, var(--green) 8%, white);
    --container-max: 1280px;
    --gutter: 24px;
    --spacing-xl: 64px;
    --spacing-lg: 40px;
    --spacing-md: 24px;
    --spacing-sm: 12px;
    --spacing-xs: 4px;
    --spacing-base: 8px;
    --radius-organic: 60% 40% 30% 70% / 60% 30% 70% 40%;
    --radius-organic-2: 30% 70% 70% 30% / 30% 30% 70% 70%;

    /* Legacy aliases for sub-pages */
    --brand-green: var(--green);
    --brand-green-dark: var(--green);
    --brand-green-darker: var(--green);
    --brand-green-light: var(--green);
    --brand-green-lighter: var(--green);
    --brand-green-lightest: color-mix(in srgb, var(--green) 12%, white);
    --brand-green-light-rgb: 17, 171, 104;
    --brand-green-tint: var(--surface-container-low);
    --brand-green-tint-soft: var(--surface-container);
    --brand-blue: var(--blue);
    --brand-blue-dark: var(--blue);
    --brand-blue-darker: var(--blue);
    --brand-blue-light: color-mix(in srgb, var(--blue) 12%, white);
}

/* Design utilities */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.glass-dark {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.organic-shape {
    border-radius: var(--radius-organic);
}

.organic-shape-2 {
    border-radius: var(--radius-organic-2);
}

.blob-bg {
    position: absolute;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.6;
    pointer-events: none;
}

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.hero-highlight {
    color: var(--primary);
    font-style: italic;
}

/* Reset and Base Styles - Optimized */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Optimize for better rendering performance */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Note: contain removed - it can block touch scroll on real mobile devices (iOS/Android) */

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--brand-green);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
}

/* Focus styles for accessibility */
*:focus-visible {
    outline: 2px solid var(--brand-green);
    outline-offset: 2px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

/* Native document scroll - minimal rules for reliable touch scroll on mobile */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
    -webkit-overflow-scrolling: touch;
    overflow-x: hidden;
    /* Do NOT set height on html - let it expand with content for native scroll */
}

/* Force navbar to stay completely fixed - prevent any displacement */
.navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    transform: none !important;
    will-change: auto !important;
}

/* Prevent any transform or position changes on navbar (but allow mobile menu transforms) */
.navbar > *:not(.nav-menu),
.navbar .nav-container > *:not(.nav-menu) {
    transform: none !important;
}

/* Desktop Navigation Layout - Ensure proper positioning */
@media (min-width: 769px) {
    .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: var(--spacing-sm);
    }
    
    .nav-logo {
        flex-shrink: 0;
    }
    
    .nav-menu {
        justify-content: center;
        flex: 1;
        gap: var(--spacing-base);
        flex-wrap: wrap;
    }
    
    .nav-actions {
        flex-shrink: 0;
    }

    .nav-link {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 0.8125rem;
        white-space: nowrap;
    }

    .nav-link i {
        display: none;
    }

    .nav-link-special {
        margin-left: 0;
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 0.8125rem;
    }

    .nav-phone {
        font-size: 0.8125rem;
        white-space: nowrap;
    }

    .nav-cta {
        font-size: 0.8125rem;
        white-space: nowrap;
        padding: var(--spacing-sm) var(--spacing-md);
    }
}

@media (min-width: 1200px) {
    .nav-menu {
        gap: var(--spacing-md);
    }

    .nav-link {
        font-size: 0.875rem;
        padding: var(--spacing-sm) var(--spacing-base);
    }
}

/* Mobile: NATIVE document scroll - no scroll-wrapper, no overflow:hidden on html/body */
@media (max-width: 768px) {
    /* CRITICAL: Do NOT set overflow:hidden on html or body (except when menu open).
       Native document scroll requires html/body to allow overflow. */
    html {
        scroll-padding-top: 80px;
        -webkit-overflow-scrolling: touch;
        /* scroll-behavior: auto on mobile - smooth can interfere with native touch scroll on some iOS/Android */
        scroll-behavior: auto;
    }
    
    /* Only lock scroll when menu is open */
    body.menu-open {
        overflow: hidden !important;
        /* position:fixed can cause jump - use overflow only when possible */
    }
    
    /* Remove backdrop-filter on mobile - can cause scroll issues on older devices */
    .navbar,
    .stat-item,
    .safety-feature {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--on-surface);
    background: var(--surface);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* Modern Navigation */
.navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
    transform: none !important;
    will-change: auto !important;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--spacing-sm) var(--gutter);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.nav-logo:hover {
    transform: scale(1.02);
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}


.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
    align-items: center;
    margin: 0;
    padding: 0;
    justify-content: center;
    flex: 1;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-base);
    padding: var(--spacing-sm) var(--spacing-base);
    text-decoration: none;
    color: var(--on-surface);
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.01em;
    border-radius: 8px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link i {
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
    background: transparent;
    transform: none;
}

.nav-link:hover i {
    color: var(--primary);
    transform: none;
}

.nav-link-special {
    background: var(--primary);
    color: var(--on-primary) !important;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(var(--brand-green-rgb), 0.2);
    margin-left: var(--spacing-base);
    white-space: nowrap;
    font-size: 0.875rem;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 9999px;
}

.nav-link-special:hover {
    background: var(--on-primary-fixed-variant);
    transform: none;
    box-shadow: 0 4px 12px rgba(var(--brand-green-rgb), 0.25);
}

.nav-link-special i {
    color: var(--on-primary) !important;
}

.nav-link.active {
    color: var(--primary) !important;
    background: transparent !important;
    font-weight: 600;
}

.nav-link.active i {
    color: var(--primary) !important;
    transform: none;
}

.nav-link.active::after {
    display: none;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-shrink: 0;
}

.nav-phone {
    display: none;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--primary);
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-phone:hover {
    color: var(--on-primary-fixed-variant);
}

.nav-cta {
    display: none;
    align-items: center;
    gap: var(--spacing-xs);
    background: var(--primary);
    color: var(--on-primary);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 9999px;
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 8px rgba(var(--brand-green-rgb), 0.15);
}

.nav-cta:hover {
    background: var(--on-primary-fixed-variant);
}

@media (min-width: 769px) {
    .nav-phone,
    .nav-cta {
        display: flex;
    }
}

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

    .nav-cta {
        display: inline-flex;
        padding: 0.5rem 0.9rem;
        font-size: 0.8rem;
        margin-right: 0.35rem;
    }
}


.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.nav-toggle:hover {
    background: rgba(var(--brand-green-rgb), 0.1);
}

.hamburger-line {
    width: 24px;
    height: 3px;
    background: var(--brand-green);
    margin: 2px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.nav-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.nav-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero Section */
.hero {
    background: var(--surface);
    color: var(--on-surface);
    padding: 0;
    position: relative;
    overflow: hidden;
    z-index: 1;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 72px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.35;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: multiply;
}

.hero-blob-1 {
    width: 500px;
    height: 500px;
    background: var(--primary-fixed);
    border-radius: 50%;
    top: -100px;
    right: -100px;
}

.hero-blob-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary-fixed);
    border-radius: 50%;
    bottom: -50px;
    left: -100px;
}

.hero-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--spacing-lg) var(--gutter);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
    position: relative;
    z-index: 10;
    min-height: calc(90vh - 72px);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: var(--surface-container-high);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 9999px;
    color: var(--primary);
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: var(--spacing-md);
}

.hero-badge i {
    font-size: 1rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--on-surface);
    text-shadow: none;
    position: relative;
}

.hero-title::after {
    display: none;
}

.hero-title .hero-highlight {
    color: var(--primary);
    font-style: italic;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--on-surface);
    font-style: normal;
    opacity: 1;
}

.hero-subtitle::before {
    display: none;
}

.hero-description {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
    line-height: 1.56;
    color: var(--on-surface-variant);
    max-width: 32rem;
    position: relative;
    padding-left: 0;
}

.hero-description::before {
    display: none;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    margin-top: var(--spacing-sm);
    padding-top: var(--spacing-sm);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.01em;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: var(--on-primary);
    box-shadow: 0 4px 12px rgba(var(--brand-green-rgb), 0.2);
}

.btn-primary:hover {
    background: var(--on-primary-fixed-variant);
    transform: none;
    box-shadow: 0 6px 16px rgba(var(--brand-green-rgb), 0.25);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--on-surface);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
    background: var(--surface-container-high);
    color: var(--on-surface);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-image-wrap {
    position: relative;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

.hero-image-accent {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top right, var(--primary-fixed), var(--secondary-fixed));
    opacity: 0.2;
    transform: rotate(12deg) scale(1.05);
}

.doctor-avatar {
    width: 100%;
    max-width: 450px;
    aspect-ratio: 1;
    background: transparent;
    border-radius: var(--radius-organic);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border: 4px solid var(--surface);
    position: relative;
    z-index: 10;
    transition: transform 0.3s ease;
}

.doctor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    border-radius: var(--radius-organic);
}

.hero-floating-badge {
    position: absolute;
    bottom: 2.5rem;
    left: -2.5rem;
    padding: var(--spacing-sm);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 20;
}

.hero-floating-badge-icon {
    background: var(--primary);
    color: var(--on-primary);
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hero-floating-badge-text h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--on-surface);
    margin: 0;
}

.hero-floating-badge-text p {
    font-size: 0.75rem;
    color: var(--on-surface-variant);
    margin: 0;
}

/* Stats Section */
.hero-stats-section {
    padding: var(--spacing-lg) 0;
    background: var(--surface-container);
    position: relative;
    z-index: 20;
    margin-top: -2.5rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--spacing-lg);
    position: relative;
    z-index: 2;
    border-radius: 2rem;
    text-align: center;
}

.hero-stats.glass-dark {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.stat-item {
    text-align: center;
    background: transparent;
    padding: var(--spacing-md) var(--spacing-sm);
    border-radius: 0;
    backdrop-filter: none;
    border: none;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background: rgba(var(--brand-green-rgb), 0.25);
}

.stat-number {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    color: var(--primary);
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--on-surface-variant);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 1;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--on-surface);
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.01em;
}

.section-header p {
    font-size: 1rem;
    color: var(--on-surface-variant);
    max-width: 42rem;
    margin: 0 auto;
    line-height: 1.5;
}

/* About Section */
.about {
    padding: var(--spacing-xl) 0;
    background: var(--surface);
    margin-top: 0;
    position: relative;
    z-index: 3;
    overflow: hidden;
}

.about-blob {
    width: 600px;
    height: 600px;
    background: var(--surface-container-highest);
    border-radius: 50%;
    top: 0;
    left: -200px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    position: relative;
    z-index: 10;
}

.about-image {
    display: flex;
    justify-content: center;
    order: 1;
    position: relative;
}

.about-image-accent {
    position: absolute;
    inset: 0;
    background: var(--secondary-fixed);
    opacity: 0.3;
    transform: rotate(-6deg) scale(1.1);
}

.image-placeholder {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 3/4;
    background: transparent;
    border-radius: var(--radius-organic-2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
    border-radius: var(--radius-organic-2) !important;
}

.about-text {
    text-align: left;
    order: 2;
}

.about-text h3 {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: var(--spacing-md);
    font-weight: 600;
}

.about-text p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: var(--spacing-md);
    color: var(--on-surface-variant);
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    justify-content: flex-start;
}

.feature {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-weight: 500;
    color: var(--on-surface);
    font-size: 0.875rem;
}

.feature i {
    font-size: 1rem;
    color: var(--primary);
    background: var(--primary-fixed);
    padding: var(--spacing-xs);
    border-radius: 50%;
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Safety Section */
.safety {
    padding: var(--spacing-xl) 0;
    background: var(--primary);
    color: var(--on-primary);
    text-align: center;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.safety-bg {
    position: absolute;
    inset: 0;
    opacity: 0.1;
}

.safety-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.safety .container {
    position: relative;
    z-index: 10;
}

.safety h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xl);
    letter-spacing: -0.01em;
}

.safety-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.safety-feature {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    text-align: left;
    background: rgba(255, 255, 255, 0.1);
    padding: var(--spacing-md);
    border-radius: 1rem;
    backdrop-filter: blur(8px);
}

.safety-feature i {
    font-size: 1.5rem;
    color: var(--primary-fixed);
    flex-shrink: 0;
}

.safety .btn-primary {
    background: var(--surface);
    color: var(--primary);
}

.safety .btn-primary:hover {
    background: var(--surface-container-low);
}

/* Consultation Section */
.consultation-section {
    padding: var(--spacing-xl) 0;
    background: var(--surface);
    position: relative;
    z-index: 2;
    overflow-x: hidden;
}

.consultation-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.consultation-card {
    background: var(--surface-container);
    border-radius: 1.5rem;
    padding: var(--spacing-lg);
    text-align: center;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.consultation-card.featured {
    border-color: var(--primary);
}

.consultation-card-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: var(--spacing-sm);
    display: block;
}

.consultation-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--on-surface);
    margin-bottom: var(--spacing-xs);
}

.consultation-card p {
    font-size: 0.875rem;
    color: var(--on-surface-variant);
    line-height: 1.5;
    margin: 0;
}

.consultation-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: start;
    min-width: 0;
}

.consultation-options {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    background: transparent;
    padding: 0;
    border-radius: 0;
    min-width: 0;
    width: 100%;
}

.consultation-item {
    background: var(--surface-container);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    width: 100%;
    min-width: 0;
    border: 2px solid transparent;
}

.consultation-item.active {
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(var(--brand-green-rgb), 0.1);
}

.consultation-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--surface-container);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-family: inherit;
    border-radius: 1rem;
    min-width: 0;
    gap: var(--spacing-md);
}

.consultation-item.active .consultation-header {
    background: var(--surface-container);
    color: var(--on-surface);
}

.consultation-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--on-surface);
    transition: color 0.3s ease;
    flex: 1;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: left;
}

.consultation-item.active .consultation-title {
    color: var(--primary);
    font-weight: 600;
}

.consultation-icon {
    width: 2rem;
    height: 2rem;
    background: var(--primary);
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--on-primary);
    font-size: 0.875rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.consultation-item.active .consultation-icon {
    background: var(--primary);
}

.consultation-body {
    padding: 0 var(--spacing-lg);
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: transparent;
}

.consultation-item.active .consultation-body {
    padding: 0 var(--spacing-lg) var(--spacing-lg);
    max-height: 500px;
}

.consultation-body p {
    color: var(--on-surface-variant);
    line-height: 1.7;
    font-size: 0.875rem;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.consultation-image {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-organic-2);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    min-width: 0;
    width: 100%;
    max-width: 100%;
    position: relative;
}

.consultation-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center 25%;
    border-radius: var(--radius-organic-2);
    display: block;
    max-width: 100%;
}

/* CTA Section */
.cta {
    padding: var(--spacing-xl) 0;
    background: var(--primary);
    color: var(--on-primary);
    text-align: center;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    opacity: 0.1;
}

.cta-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta .container {
    position: relative;
    z-index: 10;
}

.cta-content h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.01em;
}

.cta-content p {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
    color: var(--primary-fixed-dim);
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.cta .btn-primary {
    background: var(--surface);
    color: var(--primary);
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1.25rem;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.cta .btn-primary:hover {
    background: var(--surface-container-low);
}

/* ── Conditions hub (diseases/index.html) ── */
.diseases-main {
    position: relative;
    overflow: hidden;
}

.diseases-hero {
    background: var(--surface);
    color: var(--on-surface);
    padding: calc(72px + var(--spacing-xl)) 0 var(--spacing-xl);
    position: relative;
    overflow: hidden;
}

.diseases-hero .container { position: relative; z-index: 10; }
.diseases-hero-content { max-width: 720px; }
.diseases-hero h1 {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.15;
    color: var(--on-surface);
    letter-spacing: -0.02em;
}
.diseases-hero-lead {
    font-size: 1.125rem;
    color: var(--on-surface-variant);
    line-height: 1.7;
    margin-bottom: 2rem;
}
.diseases-hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.diseases-hero-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.7);
    color: var(--on-surface);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
}
.diseases-hero-actions .btn-secondary:hover {
    background: var(--surface-container-high);
}
.diseases-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
    margin-top: calc(-1 * var(--spacing-lg));
    position: relative;
    z-index: 20;
    padding-bottom: var(--spacing-lg);
}
.diseases-stat-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    border-radius: 1.5rem;
    padding: 1.5rem 1.25rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--surface-variant);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.diseases-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}
.diseases-stat-card .stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}
.diseases-stat-card .stat-label {
    font-size: 0.875rem;
    color: var(--on-surface-variant);
    margin-top: 0.35rem;
    line-height: 1.4;
}
.diseases-section {
    padding: var(--spacing-xl) 0;
    background: var(--surface);
    position: relative;
    z-index: 10;
}
.diseases-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.5rem;
}
.diseases-search-wrap {
    position: relative;
    flex: 1;
    min-width: 240px;
    max-width: 420px;
}
.diseases-search-wrap i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--outline);
    pointer-events: none;
}
.diseases-search {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.75rem;
    border: 1px solid var(--surface-variant);
    border-radius: 9999px;
    font-size: 1rem;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.diseases-search:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(var(--brand-green-rgb), 0.12);
}
.diseases-count { font-size: 0.95rem; color: var(--on-surface-variant); }
.diseases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-md);
}
.disease-category-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--surface-variant);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
}
.disease-category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--surface-container-high);
}
.disease-category-card.is-hidden { display: none; }
.disease-category-card .card-icon {
    width: 58px;
    height: 58px;
    background: var(--surface-container-high);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.45rem;
    color: var(--primary);
    flex-shrink: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.disease-category-card:hover .card-icon {
    background: var(--primary);
    color: var(--on-primary);
}
.disease-category-card h3 {
    font-size: 1.25rem;
    color: var(--on-surface);
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.disease-category-card p {
    font-size: 0.95rem;
    color: var(--on-surface-variant);
    line-height: 1.6;
    margin: 0;
    flex: 1;
}
.disease-category-card .card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1rem;
}
.disease-category-card .card-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.65rem;
    background: var(--surface-container-high);
    color: var(--primary);
    border-radius: 9999px;
    font-weight: 500;
}
.disease-category-card .card-arrow {
    margin-top: 1.25rem;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.disease-category-card .card-arrow i { transition: transform 0.25s ease; }
.disease-category-card:hover .card-arrow i { transform: translateX(4px); }
.diseases-how {
    padding: var(--spacing-xl) 0;
    background: var(--surface-container-low);
    position: relative;
    z-index: 10;
}
.diseases-how-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}
.diseases-how-step {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    border: 1px solid var(--surface-variant);
    transition: transform 0.3s ease;
}
.diseases-how-step:hover {
    transform: translateY(-4px);
}
.diseases-how-step .step-num {
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: var(--on-primary);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}
.diseases-how-step h3 { font-size: 1.15rem; color: var(--on-surface); margin-bottom: 0.75rem; }
.diseases-how-step p { font-size: 0.95rem; color: var(--on-surface-variant); line-height: 1.6; margin: 0; }
.diseases-no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--on-surface-variant);
    display: none;
}
.diseases-no-results.is-visible { display: block; }
.diseases-no-results i { font-size: 2.5rem; color: var(--outline-variant); margin-bottom: 1rem; display: block; }

/* Homepage conditions teaser */
.conditions-teaser {
    padding: var(--spacing-xl) 0;
    background: var(--surface);
    position: relative;
    z-index: 2;
}
.conditions-teaser-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}
.conditions-teaser-card {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    border-radius: 1.5rem;
    border: 1px solid var(--surface-variant);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.conditions-teaser-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    border-color: var(--surface-variant);
}
.conditions-teaser-card i {
    width: 3.5rem;
    height: 3.5rem;
    background: var(--surface-container-high);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.conditions-teaser-card:hover i {
    background: var(--primary);
    color: var(--on-primary);
}
.conditions-teaser-card span { font-weight: 600; color: var(--on-surface); font-size: 0.95rem; }
.conditions-teaser-cta { text-align: center; }
.conditions-teaser-cta .btn-primary {
    display: inline-flex;
}

/* ── Disease detail pages (diseases/*.html) ── */
.disease-page-main {
    position: relative;
    overflow: hidden;
}

.disease-page-hero {
    background: var(--surface);
    color: var(--on-surface);
    padding: calc(72px + var(--spacing-lg)) 0 var(--spacing-lg);
    position: relative;
    overflow: hidden;
}

.disease-page-hero .container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--gutter); position: relative; z-index: 10; }
.disease-page-hero .breadcrumb { font-size: 0.875rem; margin-bottom: 1.25rem; color: var(--on-surface-variant); }
.disease-page-hero .breadcrumb a { color: var(--primary); text-decoration: none; transition: opacity 0.2s; }
.disease-page-hero .breadcrumb a:hover { text-decoration: underline; }
.disease-page-hero .breadcrumb span { margin: 0 0.4rem; opacity: 0.65; }
.disease-hero-inner {
    display: flex;
    align-items: flex-start;
    gap: 1.75rem;
}
.disease-hero-icon {
    width: 72px;
    height: 72px;
    background: var(--surface-container-high);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
    color: var(--primary);
    border: 1px solid var(--surface-variant);
}
.disease-hero-text { flex: 1; min-width: 0; }
.disease-page-hero h1 {
    font-size: 2.35rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    line-height: 1.2;
    color: var(--on-surface);
    letter-spacing: -0.01em;
}
.disease-page-hero .hero-tagline {
    font-size: 1.1rem;
    color: var(--on-surface-variant);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}
.disease-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.disease-tag {
    font-size: 0.8rem;
    padding: 0.35rem 0.85rem;
    background: var(--surface-container-high);
    border: 1px solid var(--surface-variant);
    border-radius: 9999px;
    font-weight: 500;
    color: var(--primary);
}
.disease-body {
    padding: var(--spacing-xl) 0;
    background: var(--surface);
    position: relative;
    z-index: 10;
}
.disease-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2.5rem;
    align-items: start;
}
.disease-sidebar {
    position: sticky;
    top: 100px;
}
.disease-toc {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--surface-variant);
    margin-bottom: 1.25rem;
}
.disease-toc h3 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--on-surface-variant);
    margin-bottom: 1rem;
    font-weight: 600;
}
.disease-toc ul { list-style: none; padding: 0; margin: 0; }
.disease-toc li { margin-bottom: 0.35rem; }
.disease-toc a {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--on-surface-variant);
    text-decoration: none;
    font-size: 0.925rem;
    border-radius: 0.5rem;
    transition: background 0.2s, color 0.2s;
    border-left: 3px solid transparent;
}
.disease-toc a:hover,
.disease-toc a.is-active {
    background: var(--surface-container-high);
    color: var(--primary);
    border-left-color: var(--primary);
}
.disease-sidebar-cta {
    background: var(--primary);
    border-radius: 1.5rem;
    padding: 1.5rem;
    color: var(--on-primary);
    text-align: center;
}
.disease-sidebar-cta p { font-size: 0.9rem; margin-bottom: 1rem; opacity: 0.95; line-height: 1.5; }
.disease-sidebar-cta .btn {
    width: 100%;
    justify-content: center;
    background: var(--surface);
    color: var(--primary);
    font-size: 0.875rem;
    padding: 0.65rem 1rem;
}
.disease-sidebar-cta .btn:hover { background: var(--surface-container-low); }
.disease-main { display: flex; flex-direction: column; gap: 1.5rem; }
.disease-info-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    border-radius: 1.5rem;
    padding: 2rem 2.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--surface-variant);
    scroll-margin-top: 100px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.disease-info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}
.disease-info-card-icon {
    width: 48px;
    height: 48px;
    background: var(--surface-container-high);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
}
.disease-info-card h2 {
    font-size: 1.45rem;
    color: var(--on-surface);
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.3;
}
.disease-info-card p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--on-surface-variant);
    margin-bottom: 1rem;
}
.disease-info-card p:last-child { margin-bottom: 0; }
.related-conditions {
    padding: var(--spacing-xl) 0;
    background: var(--surface-container-low);
    position: relative;
    z-index: 10;
}
.related-conditions .section-header { margin-bottom: 2.5rem; }
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}
.related-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    border-radius: 1rem;
    border: 1px solid var(--surface-variant);
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
}
.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    border-color: var(--surface-container-high);
}
.related-card i {
    width: 42px;
    height: 42px;
    background: var(--surface-container-high);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1rem;
    flex-shrink: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.related-card:hover i {
    background: var(--primary);
    color: var(--on-primary);
}
.related-card span { font-weight: 600; color: var(--on-surface); font-size: 0.925rem; }
.disease-cta-section { padding: var(--spacing-xl) 0; text-align: center; }
.disease-cta-section .btn { display: inline-flex; align-items: center; gap: 0.5rem; }
.disease-content-section { padding: 60px 0; background: var(--surface); }
.disease-content-section.alt { background: var(--surface-container-low); }
.disease-content-section .container { max-width: 800px; margin: 0 auto; padding: 0 20px; }
.disease-content-section h2 { font-size: 1.6rem; color: var(--on-surface); margin-bottom: 1rem; font-weight: 600; }
.disease-content-section p { font-size: 1.05rem; line-height: 1.75; color: var(--on-surface-variant); margin-bottom: 1rem; }
.disease-content-section p:last-child { margin-bottom: 0; }

@media (max-width: 992px) {
    .diseases-stats { grid-template-columns: repeat(2, 1fr); margin-top: -1.5rem; }
    .diseases-how-grid { grid-template-columns: 1fr; gap: 1.25rem; }
    .disease-layout { grid-template-columns: 1fr; }
    .disease-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
    .related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .diseases-hero { padding: 110px 0 50px; }
    .diseases-hero h1 { font-size: 2rem; }
    .diseases-stats { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .diseases-stat-card { padding: 1.15rem 0.75rem; }
    .diseases-stat-card .stat-value { font-size: 1.5rem; }
    .diseases-section { padding: 50px 0 40px; }
    .diseases-toolbar { flex-direction: column; align-items: stretch; }
    .diseases-search-wrap { max-width: none; }
    .diseases-grid { grid-template-columns: 1fr; }
    .disease-page-hero { padding: 100px 0 40px; }
    .disease-hero-inner { flex-direction: column; gap: 1.25rem; }
    .disease-page-hero h1 { font-size: 1.75rem; }
    .disease-sidebar { grid-template-columns: 1fr; }
    .disease-info-card { padding: 1.5rem; }
    .conditions-teaser-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .diseases-stats { grid-template-columns: 1fr 1fr; }
}

/* Contact Section */
.contact {
    padding: var(--spacing-xl) 0;
    background: var(--surface-container-low);
    position: relative;
    z-index: 2;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-lg);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    border-radius: 1rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--surface-variant);
}

.contact-item i {
    font-size: 1.25rem;
    color: var(--primary);
    width: auto;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-item h3 {
    color: var(--on-surface);
    margin-bottom: var(--spacing-xs);
    font-size: 1.25rem;
    font-weight: 600;
}

.contact-item p {
    font-size: 1rem;
    color: var(--on-surface-variant);
}

.contact-form {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    padding: var(--spacing-lg);
    border-radius: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--surface-variant);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 2px solid var(--outline-variant);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    background: var(--surface-container-lowest);
    transition: border-color 0.3s ease;
    color: var(--on-surface);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* Footer */
.footer {
    background: var(--surface-container-highest);
    color: var(--on-surface);
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    border-top: 1px solid var(--surface-variant);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-section h3 {
    color: var(--on-surface);
    margin-bottom: var(--spacing-sm);
    font-size: 1.25rem;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-section ul li a {
    color: var(--on-surface-variant);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary);
}

.contact-link {
    color: var(--on-surface-variant);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: transparent;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
}

.contact-link:hover,
.contact-link:focus {
    color: var(--primary);
    background: transparent;
    background-color: transparent;
    box-shadow: none;
    transform: none;
    outline: none;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.contact-link:focus-visible {
    outline: 2px solid var(--brand-green);
    outline-offset: 2px;
}

.contact-link i {
    font-size: 1.25rem;
    color: var(--primary);
    transition: color 0.3s ease;
}

.contact-link:hover i,
.contact-link:focus i {
    color: var(--primary);
    transform: none;
    background: transparent;
    box-shadow: none;
}

.address-text {
    color: var(--on-surface-variant);
    font-size: 0.875rem;
    margin: var(--spacing-xs) 0;
    font-style: normal;
}

.footer-section p i {
    color: var(--primary);
    margin-right: var(--spacing-xs);
    font-size: 1.25rem;
}

.contact-details {
    margin-bottom: var(--spacing-md);
}

.contact-details p {
    margin-bottom: var(--spacing-sm);
}

.map-section {
    grid-column: span 1;
}

.map-container {
    width: 100%;
    height: 200px;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    border: 1px solid var(--surface-variant);
}

.map-container:hover {
    transform: none;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0.75rem;
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
}

.social-links a {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--on-primary);
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background: var(--on-primary-fixed-variant);
    transform: none;
}

.footer-bottom {
    border-top: 1px solid rgba(var(--brand-green-rgb), 0.25);
    padding-top: var(--spacing-lg);
    text-align: center;
    color: var(--on-surface-variant);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    align-items: center;
}

.footer-bottom p {
    font-size: 0.75rem;
}

.developer-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    border-bottom: none;
    padding: 0;
    border-radius: 0;
}

.developer-link:hover {
    color: var(--on-primary-fixed-variant);
    background-color: transparent;
    border-bottom: none;
}

/* Tablet optimizations */
@media (max-width: 1024px) and (min-width: 769px) {
    .consultation-content {
        gap: 2.5rem;
    }
    
    .consultation-header {
        padding: 1.1rem 1.3rem;
    }
    
    .consultation-title {
        font-size: 1.05rem;
    }
}

/* Mobile-specific optimizations - Disable hover effects and mouse-dependent animations */
@media (max-width: 768px) {
    /* Adjust anchor offset for smaller navbar on tablets/phones */
    html {
        scroll-padding-top: 80px;
    }
    /* Improve mobile container padding */
    .container {
        padding: 0 15px;
    }
    
    
    /* Disable hover effects on mobile */
    .nav-link:hover,
    .btn:hover,
    .btn-primary:hover,
    .btn-secondary:hover,
    .doctor-avatar:hover,
    .stat-item:hover,
    .contact-item:hover i,
    .contact-link:hover,
    .contact-link:hover i,
    .map-link:hover,
    .map-link:hover i,
    .map-container:hover,
    .social-links a:hover,
    .developer-link:hover {
        transform: none !important;
        box-shadow: none !important;
        background: transparent !important;
        background-color: transparent !important;
        text-decoration: none !important;
    }
    
    .nav-link:hover::after,
    .btn::before {
        display: none !important;
        width: 0 !important;
    }
    
    /* Disable complex animations on mobile */
    .hero::after,
    .hero::before,
    .doctor-avatar::before,
    .float-animation,
    .pulse-animation,
    .shimmer {
        animation: none !important;
        background: none !important;
    }
    
    .doctor-avatar {
        animation: none !important;
    }
    
    /* Disable mouse follower on mobile */
    /* Mobile Navigation */
    .nav-container {
        height: 70px;
        display: flex;
        justify-content: space-between;
        grid-template-columns: none;
    }
    
    
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        height: calc(100vh - 70px);
        overflow-y: auto;
        text-align: left;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s, opacity 0.4s;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
        border-top: 1px solid rgba(var(--brand-green-rgb), 0.1);
        z-index: 1001;
        justify-content: flex-start;
        pointer-events: none;
        visibility: hidden;
        opacity: 0;
    }

    .nav-menu.active {
        left: 0;
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }
    
    .nav-item {
        width: 100%;
        margin: 0;
    }
    
    .nav-link {
        width: 100%;
        padding: 16px 30px;
        justify-content: flex-start;
        border-radius: 0;
        border-bottom: 1px solid rgba(var(--brand-green-rgb), 0.05);
        font-size: 1rem;
        font-weight: 500;
        pointer-events: auto;
        cursor: pointer;
        position: relative;
        z-index: 1;
    }
    
    .nav-link:hover {
        background: rgba(var(--brand-green-rgb), 0.08);
        transform: none;
    }
    
    .nav-link-special {
        background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-green-light) 100%);
        color: white !important;
        margin: 10px 30px;
        border-radius: 8px;
        border: none;
        box-shadow: 0 4px 15px rgba(var(--brand-green-rgb), 0.3);
        white-space: nowrap;
        font-size: 0.85rem;
        padding: 12px 16px;
        pointer-events: auto;
        cursor: pointer;
        position: relative;
        z-index: 1;
    }
    
    .nav-link-special:hover {
        background: linear-gradient(135deg, var(--brand-green-dark) 0%, var(--brand-green) 100%);
        transform: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-md);
        min-height: auto;
        padding-bottom: var(--spacing-lg);
        padding-top: var(--spacing-md);
    }

    .hero-image {
        display: flex;
        justify-content: center;
        order: -1;
        margin-bottom: var(--spacing-md);
    }

    .hero-image-wrap {
        max-width: 280px;
    }

    .hero-floating-badge {
        display: none;
    }

    .hero-title {
        font-size: 1.75rem;
        margin-bottom: var(--spacing-sm);
        line-height: 1.2;
        text-align: center;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
        margin-bottom: var(--spacing-md);
        text-align: center;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: var(--spacing-md);
        line-height: 1.6;
        max-width: 100%;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-stats-section {
        margin-top: 0;
        padding: var(--spacing-md) 0;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
        padding: var(--spacing-md);
        border-radius: 1.5rem;
    }

    .stat-item:not(:last-child)::after {
        display: none;
    }

    .stat-item:nth-child(odd)::after {
        display: block;
        right: 0;
        top: 15%;
        height: 70%;
        width: 1px;
        background: rgba(var(--brand-green-rgb), 0.25);
    }

    .stat-item:nth-child(2)::after,
    .stat-item:nth-child(4)::after {
        display: none;
    }

    .about {
        margin-top: 0;
        padding: var(--spacing-xl) 0;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .about-image {
        order: -1;
    }

    .about-text {
        order: 1;
        text-align: center;
    }

    .about-features {
        align-items: center;
    }

    .safety-features {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .consultation-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        min-width: 0;
    }

    .consultation-image {
        order: -1;
        min-width: 0;
        width: 100%;
    }

    .consultation-options {
        order: 1;
        min-width: 0;
        width: 100%;
    }
    
    .consultation-header {
        padding: 1rem 1.25rem;
        gap: 0.75rem;
        flex-wrap: nowrap;
    }
    
    .consultation-title {
        font-size: 1rem;
    }
    
    .consultation-item {
        width: 100%;
        max-width: 100%;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .map-section {
        grid-column: span 2;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
        margin-top: 1rem;
        align-items: center;
        width: 100%;
        animation: mobileFadeInUp 0.8s ease-out 0.6s both;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 14px 20px;
        font-size: 0.9rem;
        margin: 0 auto;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Specific styling for call button to prevent text wrapping */
    .btn-primary {
        font-size: 0.85rem;
        padding: 12px 16px;
        min-width: 250px;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .hero {
        min-height: auto;
        padding-top: 72px;
    }

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

    .stat-number {
        font-size: 1.75rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .about-text h3 {
        font-size: 1.5rem;
    }
    
    .safety h2 {
        font-size: 2rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .contact-item h3 {
        font-size: 1.1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    /* Ensure proper spacing for mobile scrolling */
    .hero-stats .stat-item:last-child {
        margin-bottom: 2rem;
    }
    
    /* Add extra padding to ensure content is visible */
    .hero-stats {
        position: relative;
        z-index: 2;
    }
}

@media (max-width: 480px) {
    /* Additional mobile optimizations for small screens */
    .container {
        padding: 0 10px;
    }
    
    
    /* Small mobile navigation */
    .nav-container {
        height: 65px;
        padding: 0 15px;
        display: flex;
        justify-content: space-between;
        grid-template-columns: none;
    }
    
    .logo-img {
        height: 45px;
    }
    
    .nav-menu {
        top: 65px;
        padding: 1.5rem 0;
        height: calc(100vh - 65px);
    }
    
    .nav-link {
        padding: 14px 20px;
        font-size: 0.95rem;
    }
    
    .nav-link-special {
        margin: 8px 20px;
        padding: 12px 16px;
        white-space: nowrap;
        font-size: 0.8rem;
    }
    
    .nav-toggle {
        width: 35px;
        height: 35px;
    }
    
    .hamburger-line {
        width: 20px;
        height: 2px;
    }
    
    .hero-stats {
        grid-template-columns: 1fr 1fr;
        padding: var(--spacing-md);
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .map-section {
        grid-column: span 1;
    }
    
    .map-container {
        height: 150px;
    }

    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
        text-align: center;
        animation: mobileFadeInUp 0.8s ease-out;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.2rem;
        text-align: center;
        animation: mobileFadeInUp 0.8s ease-out 0.2s both;
    }
    
    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        line-height: 1.5;
        text-align: center;
        animation: mobileFadeInUp 0.8s ease-out 0.4s both;
    }
    
    .hero-container {
        gap: 1.5rem;
        min-height: 80vh;
        padding-bottom: 1rem;
    }
    
    .doctor-avatar {
        width: 220px;
        height: 220px;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }
    
    .about-text h3 {
        font-size: 1.3rem;
    }
    
    .safety h2 {
        font-size: 1.8rem;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    /* Ensure proper spacing for mobile scrolling on small screens */
    .hero-stats .stat-item:last-child {
        margin-bottom: 3rem;
    }
    
    /* Add extra padding to ensure content is visible */
    .hero-stats {
        position: relative;
        z-index: 2;
    }
    
    .about-content {
        display: flex;
        flex-direction: column;
    }
    
    .about-image {
        order: -1;
    }
    
    .about-text {
        order: 1;
    }
    
    .hero {
        min-height: auto;
        padding-top: 72px;
    }
    
    .hero-container {
        gap: var(--spacing-md);
        min-height: auto;
        padding-bottom: var(--spacing-md);
    }
    
    .doctor-avatar {
        max-width: 100%;
    }
    .btn {
        min-height: 44px;
        min-width: 44px;
        padding: 12px 20px;
        font-size: 0.8rem;
        white-space: nowrap;
    }
    
    /* Specific styling for call button on small screens */
    .btn-primary {
        font-size: 0.75rem;
        padding: 10px 14px;
        min-width: 220px;
    }
    
    .nav-link {
        padding: 12px 16px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Floating Animation */
.float-animation {
    animation: float 6s ease-in-out infinite;
}

.float-animation:nth-child(2) {
    animation-delay: -2s;
}

.float-animation:nth-child(3) {
    animation-delay: -4s;
}

/* Pulse Animation */
.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}

/* Shimmer Effect */
.shimmer {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* Button Animations */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Navigation Animations */
.nav-link {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: var(--brand-green);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--brand-green);
    transform: translateY(-2px);
}

/* Hero Section Animations */
.hero-title {
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-description {
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-buttons {
    animation: fadeInUp 1s ease-out 0.6s both;
}

.doctor-avatar {
    animation: none;
}

/* Stat Cards Animation */
.stat-item {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-item:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Contact Form Animations */
.form-group input,
.form-group textarea {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group input:focus,
.form-group textarea:focus {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--brand-green-rgb), 0.2);
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-green), var(--brand-green-light));
    z-index: 10000;
    transition: width 0.1s ease;
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hero::after,
    .hero::before,
    .doctor-avatar::before {
        animation: none !important;
    }
    
    .float-animation,
    .pulse-animation,
    .shimmer {
        animation: none !important;
    }
    
}

/* Mobile-specific animations */
@keyframes mobileFadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes mobileSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes mobileScaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--brand-green);
    color: white;
    border: none;
    cursor: pointer;
    display: none;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-size: 18px;
}

.scroll-to-top:hover {
    background: var(--brand-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
        font-size: 16px;
    }
    
    .scroll-to-top:hover {
        transform: none;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
}

/* ── Doctor profile page (dr-uvesh-kothariya.html) ── */
.doctor-page {
    background: var(--surface);
    color: var(--on-surface);
}

.doctor-main {
    position: relative;
    padding-top: 72px;
    padding-bottom: var(--spacing-xl);
    overflow: hidden;
}

.doctor-blob-1 {
    width: 500px;
    height: 500px;
    background: var(--primary-fixed);
    border-radius: 50%;
    top: 80px;
    right: -100px;
}

.doctor-blob-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary-fixed);
    border-radius: 50%;
    top: 800px;
    left: -100px;
}

.doctor-blob-3 {
    width: 600px;
    height: 600px;
    background: var(--surface-container-highest);
    border-radius: 50%;
    bottom: 0;
    right: 0;
}

.doctor-hero {
    padding: var(--spacing-xl) 0;
    position: relative;
    z-index: 10;
}

.doctor-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.doctor-hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--on-surface);
    margin-bottom: var(--spacing-sm);
}

.doctor-hero-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
    font-style: italic;
    margin-bottom: var(--spacing-md);
}

.doctor-hero-description {
    font-size: 1.125rem;
    line-height: 1.56;
    color: var(--on-surface-variant);
    max-width: 36rem;
    margin-bottom: var(--spacing-lg);
}

.doctor-hero-image {
    display: flex;
    justify-content: center;
}

.doctor-stat-badge {
    position: absolute;
    padding: var(--spacing-sm);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 20;
}

.doctor-stat-badge--experience {
    bottom: -1.5rem;
    left: -1.5rem;
}

.doctor-stat-badge--patients {
    top: -1.5rem;
    right: -1.5rem;
}

.doctor-stat-badge--cured {
    bottom: 4rem;
    right: -2rem;
}

.doctor-stat-badge-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.doctor-stat-badge-icon--primary {
    background: var(--primary-fixed);
    color: var(--on-primary-fixed);
}

.doctor-stat-badge-icon--secondary {
    background: var(--secondary-fixed);
    color: var(--on-secondary-fixed);
}

.doctor-stat-badge-icon--tertiary {
    background: var(--surface-container-high);
    color: var(--primary);
}

.doctor-stat-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.doctor-stat-label {
    font-size: 0.75rem;
    color: var(--on-surface-variant);
}

.doctor-section {
    padding: var(--spacing-xl) 0;
    position: relative;
    z-index: 10;
}

.doctor-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

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

.doctor-card {
    border-radius: 1.5rem;
    padding: 1.5rem;
    border: 1px solid var(--surface-variant);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.doctor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.doctor-card--center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.doctor-card-tag {
    display: inline-block;
    background: var(--surface-container-high);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    margin-bottom: 1rem;
    width: max-content;
}

.doctor-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--on-surface);
    margin-bottom: 0.5rem;
}

.doctor-card p {
    font-size: 0.875rem;
    color: var(--on-surface-variant);
    line-height: 1.5;
    margin: 0;
}

.doctor-card-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.doctor-mentors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.doctor-mentor-card {
    border-radius: 1.5rem;
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--surface-variant);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.doctor-mentor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.doctor-mentor-photo {
    width: 7.5rem;
    height: 7.5rem;
    margin: 0 auto 1.5rem;
    border-radius: 9999px;
    overflow: hidden;
    border: 3px solid rgba(var(--brand-green-rgb), 0.2);
    background: var(--surface-container-high);
}

.doctor-mentor-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.doctor-mentor-photos--dual {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin: 0 auto 1.5rem;
}

.doctor-mentor-photos--dual img {
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 9999px;
    object-fit: cover;
    border: 3px solid rgba(var(--brand-green-rgb), 0.2);
    background: var(--surface-container-high);
}

.doctor-mentor-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--on-surface);
    margin-bottom: 0.5rem;
}

.doctor-mentor-card p {
    font-size: 0.875rem;
    color: var(--on-surface-variant);
    margin-bottom: 1rem;
}

.doctor-mentors-extra {
    border-radius: 1.5rem;
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--surface-variant);
}

.doctor-mentors-extra h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--on-surface);
    margin-bottom: 1.5rem;
}

.doctor-mentor-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.doctor-mentor-pill {
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--on-surface-variant);
    border: 1px solid rgba(var(--brand-green-rgb), 0.25);
}

.doctor-dual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
}

.doctor-panel {
    border-radius: 1.5rem;
    padding: 2rem;
    border: 1px solid var(--surface-variant);
}

.doctor-panel-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(var(--brand-green-rgb), 0.25);
}

.doctor-panel-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    background: var(--surface-container-high);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.doctor-panel-icon .material-symbols-outlined {
    font-size: 1.75rem;
    color: var(--primary);
}

.doctor-panel-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--on-surface);
    margin: 0;
}

.doctor-panel-intro {
    font-size: 0.875rem;
    color: var(--on-surface-variant);
    margin-bottom: 1rem;
}

.doctor-panel > p {
    font-size: 0.875rem;
    color: var(--on-surface-variant);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.doctor-panel-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.doctor-panel-items h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--on-surface);
    margin-bottom: 0.5rem;
}

.doctor-panel-items p {
    font-size: 0.875rem;
    color: var(--on-surface-variant);
    line-height: 1.6;
    margin: 0;
}

.doctor-mini-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.doctor-mini-card {
    padding: 1.25rem;
    border-radius: 1rem;
    border: 1px solid rgba(207, 230, 242, 0.5);
}

.doctor-mini-card .material-symbols-outlined {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.doctor-mini-card h4 {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--on-surface);
    margin-bottom: 0.25rem;
}

.doctor-mini-card p {
    font-size: 0.75rem;
    color: var(--on-surface-variant);
    line-height: 1.4;
    margin: 0;
}

.doctor-section-lead {
    text-align: center;
    font-size: 1.125rem;
    color: var(--on-surface-variant);
    max-width: 48rem;
    margin: 0 auto var(--spacing-xl);
    line-height: 1.6;
}

.doctor-hero .hero-buttons {
    margin-top: 0;
}

.doctor-hero .btn-secondary.glass {
    background: rgba(255, 255, 255, 0.7);
}

.doctor-hero-stats-mobile {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    border-radius: 1.5rem;
    margin-top: var(--spacing-lg);
    text-align: center;
}

.doctor-hero-stat {
    padding: var(--spacing-xs);
}

.cta .hero-buttons {
    justify-content: center;
    gap: var(--spacing-md);
}

.cta-btn-outline {
    background: rgba(255, 255, 255, 0.15);
    color: var(--on-primary);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.cta-btn-outline:hover {
    background: rgba(255, 255, 255, 0.25);
}

@media (max-width: 1024px) {
    .doctor-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    .doctor-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .doctor-hero-title {
        font-size: 2rem;
    }

    .doctor-hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .doctor-hero .hero-buttons {
        justify-content: center;
    }

    .doctor-hero-image {
        display: flex;
        justify-content: center;
        order: -1;
        margin-bottom: var(--spacing-md);
    }

    .doctor-hero-image .hero-image-wrap {
        max-width: 280px;
    }

    .doctor-stat-badge {
        display: none;
    }

    .doctor-hero-stats-mobile {
        display: grid;
    }

    .doctor-cards-grid,
    .doctor-cards-grid--consult,
    .doctor-mentors-grid,
    .doctor-dual-grid {
        grid-template-columns: 1fr;
    }

    .doctor-stat-badge--cured {
        display: none;
    }

    .doctor-mini-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .doctor-hero-title {
        font-size: 1.75rem;
    }

    .doctor-hero .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .doctor-hero .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* ── All links page (alllinks.html) ── */
.alllinks-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
    background: var(--surface);
    position: relative;
    overflow-x: hidden;
}

.alllinks-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: color-mix(in srgb, #1268b3 6%, #fff);
}

.alllinks-bg img {
    width: min(78vw, 420px);
    height: auto;
    max-height: 55vh;
    object-fit: contain;
    object-position: center;
    opacity: 0.22;
}

.alllinks-bg-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(
            ellipse 70% 55% at 50% 42%,
            transparent 0%,
            color-mix(in srgb, var(--surface) 55%, transparent) 70%,
            color-mix(in srgb, var(--surface) 78%, transparent) 100%
        );
}

.alllinks-page .doctor-blob-1,
.alllinks-page .doctor-blob-2 {
    display: none;
}

.linktree-container {
    max-width: 500px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 10;
}

.profile-section {
    margin-bottom: 2rem;
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-organic);
    margin: 0 auto 1.5rem;
    border: 4px solid var(--surface);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    background: var(--surface-container-lowest);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
}

.profile-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--on-surface);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.profile-title {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 2rem;
    font-weight: 500;
    font-style: italic;
}

.address-notice {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    margin-bottom: 1rem;
    text-align: left;
    color: var(--on-surface-variant);
    font-size: 0.95rem;
    line-height: 1.65;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--surface-variant);
}

.address-notice .address-line {
    margin-top: 0.65rem;
    font-weight: 600;
    color: var(--primary);
}

.links-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.link-item {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    text-decoration: none;
    color: var(--on-surface);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--surface-variant);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.link-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    background: var(--surface-container-low);
    border-color: var(--surface-container-high);
}

.link-item i {
    font-size: 1.2rem;
    color: var(--primary);
}

.link-item.maps i {
    color: var(--error);
}

.alllinks-social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.alllinks-social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--surface-variant);
    font-size: 1.3rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.alllinks-social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    background: var(--primary);
    color: var(--on-primary);
    border-color: var(--primary);
}

.alllinks-footer-text {
    color: var(--on-surface-variant);
    font-size: 0.85rem;
    margin-top: 2rem;
    text-align: center;
}

.alllinks-footer-text a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.alllinks-footer-text a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .alllinks-page {
        align-items: flex-start;
        padding: 1.25rem 1rem 2rem;
    }

    .alllinks-bg img {
        width: min(88vw, 340px);
        max-height: 42vh;
        opacity: 0.28;
        object-position: center;
    }

    .alllinks-bg-overlay {
        background:
            radial-gradient(
                ellipse 85% 50% at 50% 28%,
                transparent 0%,
                color-mix(in srgb, var(--surface) 40%, transparent) 55%,
                color-mix(in srgb, var(--surface) 75%, transparent) 100%
            );
    }

    .alllinks-page .link-item,
    .alllinks-page .address-notice {
        background: rgba(255, 255, 255, 0.92);
    }
}

@media (max-width: 480px) {
    .profile-name { font-size: 1.5rem; }
    .profile-title { font-size: 0.9rem; }
    .link-item { padding: 0.9rem 1.2rem; font-size: 0.95rem; }
    .profile-image { width: 100px; height: 100px; }
}

/* Footer legal links */
.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.35rem 0.5rem;
    font-size: 0.75rem;
}

.footer-legal a {
    color: var(--on-surface-variant);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.footer-legal span {
    opacity: 0.5;
}

/* Legal policy pages */
.legal-page-main {
    padding-top: 72px;
    position: relative;
    min-height: 100vh;
}

.legal-layout {
    max-width: 820px;
    margin: 0 auto;
}

.legal-meta {
    font-size: 0.875rem;
    color: var(--on-surface-variant);
    margin-top: 0.5rem;
}

.legal-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-bottom: var(--spacing-xl);
}

.legal-content ul,
.legal-content ol {
    margin: 0.75rem 0 1rem 1.25rem;
    padding-left: 0.5rem;
}

.legal-content li {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--on-surface-variant);
    margin-bottom: 0.5rem;
}

.legal-content a {
    color: var(--primary);
}

.legal-content .disease-info-card h2 {
    font-size: 1.25rem;
}

.legal-notice {
    border-left: 4px solid var(--primary);
}

.legal-related {
    text-align: center;
    font-size: 0.9rem;
    color: var(--on-surface-variant);
    padding: 1rem 0;
}

.legal-related a {
    color: var(--primary);
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.95rem;
}

.legal-table th,
.legal-table td {
    border: 1px solid var(--surface-variant);
    padding: 0.75rem 1rem;
    text-align: left;
    vertical-align: top;
    color: var(--on-surface-variant);
}

.legal-table th {
    background: var(--surface-container-low);
    color: var(--on-surface);
    font-weight: 600;
}

@media (max-width: 640px) {
    .legal-table { font-size: 0.85rem; }
    .legal-table th,
    .legal-table td { padding: 0.5rem 0.65rem; }
}


/* Consolidated conditions + legal (Cloudflare Pages lean IA) */
.conditions-stack { display: flex; flex-direction: column; gap: 2.5rem; padding-bottom: 3rem; }
.condition-detail {
  scroll-margin-top: 96px;
  padding: 1.5rem;
  border-radius: 16px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(7,30,39,0.08);
}
.condition-detail.is-hidden { display: none; }
.condition-detail-header { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1rem; }
.condition-detail-icon {
  flex: 0 0 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.75rem; letter-spacing: 0.04em;
  background: color-mix(in srgb, #1268b3 12%, #fff); color: #1268b3;
}
.condition-detail-body { display: grid; gap: 1rem; }
.condition-detail-cta { margin-top: 1.25rem; }
.legal-combined { display: flex; flex-direction: column; gap: 3rem; }
.legal-section { scroll-margin-top: 96px; }
.legal-section-header { margin-bottom: 1.25rem; }
.legal-toc {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem;
  margin-top: 1.5rem; padding-top: 1rem;
  border-top: 1px solid rgba(7,30,39,0.08);
}
.legal-toc a { font-size: 0.875rem; font-weight: 500; color: #1268b3; text-decoration: none; }
.legal-toc a:hover { text-decoration: underline; }
.card-icon { font-weight: 700; font-size: 0.8rem; letter-spacing: 0.04em; color: #1268b3; }

.doctor-hero-stat-icon:empty,
.doctor-card-icon:empty { display: none; }
