/* ============================================
   BIOGENIK - HIGH-END WELLNESS DESIGN SYSTEM
   ============================================ */

:root {
    /* Brand Color Palette */
    --gold: #DDA448;
    --dark: #050609;
    --pink: #E8AEB7;
    --teal: #53B3CB;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--gold) 0%, #c98d35 100%);
    --gradient-accent: linear-gradient(135deg, var(--teal) 0%, var(--pink) 100%);
    --gradient-overlay: linear-gradient(to bottom, rgba(5, 6, 9, 0.7), rgba(5, 6, 9, 0.4));

    /* Neutral Colors */
    --white: #FFFFFF;
    --off-white: #FAFAFA;
    --gray-light: #E5E5E5;
    --gray-medium: #9CA3AF;
    --gray-dark: #4B5563;

    /* Typography */
    --font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Montserrat', sans-serif;

    /* Spacing Scale */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    --space-4xl: 8rem;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(5, 6, 9, 0.08);
    --shadow-md: 0 4px 16px rgba(5, 6, 9, 0.12);
    --shadow-lg: 0 8px 32px rgba(5, 6, 9, 0.16);
    --shadow-xl: 0 16px 48px rgba(5, 6, 9, 0.2);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.15s ease-out;
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--dark);
    line-height: 1.6;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: var(--space-md);
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: var(--space-md);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    margin-bottom: var(--space-sm);
}

h4 {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    margin-bottom: var(--space-sm);
}

p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--gray-dark);
    margin-bottom: var(--space-sm);
}

.text-large {
    font-size: 1.25rem;
    line-height: 1.7;
}

.text-small {
    font-size: 0.875rem;
}

/* ============================================
   LAYOUT
   ============================================ */

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section {
    padding: var(--space-4xl) 0;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-3xl);
}

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

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-light);
    transition: all var(--transition-base);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) 0;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark);
    text-decoration: none;
    letter-spacing: -0.03em;
}

.logo span {
    color: var(--gold);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--space-xl);
    align-items: center;
}

.nav-links a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-links a:hover {
    color: var(--gold);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width var(--transition-base);
}

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

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-primary);
    text-decoration: none;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
}

.btn-secondary:hover {
    background: var(--gold);
    color: var(--white);
}

.btn-large {
    padding: 1.25rem 3rem;
    font-size: 1.125rem;
}

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

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--white);
    overflow: visible;
    padding-top: 80px;
    padding-bottom: var(--space-xl);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
}

/* --- Two-column split --- */
.hero-split {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-3xl);
    align-items: center;
    width: 100%;
    animation: fadeInUp 1s ease-out;
}

/* --- Video column --- */
.hero-video-col {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video-wrapper {
    position: relative;
    width: 100%;
    max-width: 280px;
    aspect-ratio: 9 / 16;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(221, 164, 72, 0.25), var(--shadow-xl);
    border: 2px solid rgba(221, 164, 72, 0.3);
    background: var(--dark);
    flex-shrink: 0;
}

.hero-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Custom video controls bar ── */
.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: linear-gradient(to top, rgba(5, 6, 9, 0.75) 0%, transparent 100%);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.hero-video-wrapper:hover .video-controls,
.hero-video-wrapper:focus-within .video-controls {
    opacity: 1;
}

/* Always show controls on touch devices */
@media (hover: none) {
    .video-controls {
        opacity: 1;
    }
}

/* Play / Pause button */
.vc-play-btn {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 4px 12px rgba(221, 164, 72, 0.45);
}

.vc-play-btn:hover {
    transform: scale(1.12);
}

/* Icon switching: show play when paused, show pause when playing */
.vc-play-btn .icon-pause {
    display: none;
}

.video-controls.is-playing .vc-play-btn .icon-play {
    display: none;
}

.video-controls.is-playing .vc-play-btn .icon-pause {
    display: block;
}

/* Progress scrubber */
.vc-progress {
    flex: 1;
    height: 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.vc-bar-bg {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    position: relative;
    overflow: visible;
}

.vc-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--gold);
    border-radius: 4px;
    transition: width 0.1s linear;
}

.vc-thumb {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 6px rgba(221, 164, 72, 0.7);
    transition: left 0.1s linear;
    pointer-events: none;
}

.vc-progress:hover .vc-bar-bg {
    height: 6px;
}

.vc-progress:hover .vc-thumb {
    width: 14px;
    height: 14px;
}

/* Time display */
.vc-time {
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    font-variant-numeric: tabular-nums;
    min-width: 36px;
    text-align: right;
}

/* ── Volume control group (icon + slider) ── */
.vc-volume {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.vc-mute-btn {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.vc-mute-btn:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: scale(1.1);
}

/* Icon states: 3 icons, only one shows at a time */
.vc-mute-btn .icon-low,
.vc-mute-btn .icon-high {
    display: none;
}

/* is-low: volume 1–49% */
.video-controls.is-low .vc-mute-btn .icon-muted {
    display: none;
}

.video-controls.is-low .vc-mute-btn .icon-low {
    display: block;
}

/* is-unmuted: volume 50–100% */
.video-controls.is-unmuted .vc-mute-btn .icon-muted {
    display: none;
}

.video-controls.is-unmuted .vc-mute-btn .icon-high {
    display: block;
}

/* Volume slider */
.vc-vol-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 0;
    max-width: 80px;
    height: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.3);
    outline: none;
    cursor: pointer;
    overflow: hidden;
    transition: width 0.2s ease, opacity 0.2s ease;
    opacity: 0;
    pointer-events: none;
}

/* Expand slider on hover or when audio is active */
.vc-volume:hover .vc-vol-slider,
.video-controls.is-unmuted .vc-vol-slider,
.video-controls.is-low .vc-vol-slider {
    width: 70px;
    opacity: 1;
    pointer-events: auto;
}

/* On touch devices, always show a compact slider */
@media (hover: none) {
    .vc-vol-slider {
        width: 56px;
        opacity: 1;
        pointer-events: auto;
    }
}

/* Webkit thumb */
.vc-vol-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: -80px 0 0 76px var(--gold);
    /* fills track left of thumb */
    cursor: pointer;
    transition: transform 0.1s ease;
}

.vc-vol-slider::-webkit-slider-thumb:hover {
    transform: scale(1.25);
}

/* Firefox thumb */
.vc-vol-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gold);
    border: none;
    cursor: pointer;
}

.vc-vol-slider::-moz-range-progress {
    background: var(--gold);
    height: 4px;
    border-radius: 4px;
}

/* --- Text column --- */
.hero-text {
    text-align: left;
}

.hero-text h1 {
    color: var(--dark);
    margin-bottom: var(--space-lg);
}

.hero-text h1 span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text h2 {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    font-weight: 400;
    color: var(--gray-dark);
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

.hero-cta {
    margin-top: var(--space-2xl);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   COOKIE CONSENT BANNER
   ============================================ */

.cookie-banner {
    position: fixed;
    bottom: -160px;
    left: 0;
    right: 0;
    z-index: 1500;
    padding: var(--space-md) var(--space-lg);
    background: rgba(5, 6, 9, 0.96);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(221, 164, 72, 0.3);
    transition: bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner.visible {
    bottom: 0;
}

.cookie-banner-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.cookie-banner-text {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex: 1;
    min-width: 200px;
}

.cookie-banner-text .cookie-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.cookie-banner-text p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

.cookie-banner-text a {
    color: var(--gold);
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-shrink: 0;
}

.cookie-accept {
    padding: 0.6rem 1.5rem !important;
    font-size: 0.9rem !important;
}

.cookie-decline {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: underline;
    font-family: var(--font-primary);
    transition: color var(--transition-fast);
    padding: 0.5rem;
    white-space: nowrap;
}

.cookie-decline:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   PROTOCOLS SECTION
   ============================================ */

.protocols {
    background: var(--off-white);
}

.protocols-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

.protocol-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-base);
    border: 2px solid transparent;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.protocol-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
}

.protocol-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.protocol-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.protocol-card:hover .protocol-image img {
    transform: scale(1.08);
}

.protocol-info {
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.protocol-card h3 {
    color: var(--dark);
    margin-bottom: var(--space-xs);
    font-size: 1.5rem;
}

.protocol-subtitle {
    font-size: 0.875rem;
    color: var(--gray-medium);
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.protocol-card p {
    font-size: 0.9375rem;
    color: var(--gray-dark);
    line-height: 1.6;
}

/* ============================================
   MODAL SYSTEM
   ============================================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 6, 9, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--white);
    border-radius: var(--radius-xl);
    max-width: 700px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    transform: scale(0.9) translateY(20px);
    transition: all var(--transition-base);
    position: relative;
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-header {
    padding: var(--space-xl);
    border-bottom: 1px solid var(--gray-light);
    position: relative;
}

.modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--gray-light);
    color: var(--dark);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--dark);
    color: var(--white);
    transform: rotate(90deg);
}

.modal-body {
    padding: var(--space-xl);
}

.modal-body h3 {
    color: var(--dark);
    margin-bottom: var(--space-md);
}

.modal-body h4 {
    color: var(--gold);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
    font-size: 1.25rem;
}

.modal-body p {
    margin-bottom: var(--space-md);
}

.modal-body ul {
    margin-left: var(--space-lg);
    margin-bottom: var(--space-md);
}

.modal-body li {
    color: var(--gray-dark);
    margin-bottom: var(--space-xs);
    line-height: 1.7;
}

/* ============================================
   PROCESS SECTION
   ============================================ */

.process {
    background: var(--white);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-2xl);
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-3xl);
}

.process-step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--white);
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    box-shadow: var(--shadow-md);
}

.process-step h3 {
    margin-bottom: var(--space-sm);
    color: var(--dark);
}

.process-step p {
    font-size: 1rem;
    color: var(--gray-dark);
}

.process-cta {
    text-align: center;
    margin-top: var(--space-3xl);
}

/* ============================================
   APPROACH SECTION (INTEGRATIVE MEDICINE)
   ============================================ */

.approach {
    background: var(--white);
}

.approach-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
    max-width: 1000px;
    margin: 0 auto;
}

.approach-text {
    max-width: 100%;
}

.lead-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--dark);
    margin-bottom: var(--space-lg);
}

.modalities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

.modality-card {
    background: var(--white);
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.modality-card:hover {
    border-color: var(--gold);
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

/* Photo: 3/5 of the card height */
.modality-photo {
    flex: 3;
    min-height: 220px;
    overflow: hidden;
    position: relative;
}

.modality-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
}

.modality-card:hover .modality-photo img {
    transform: scale(1.05);
}

/* Text: 2/5 of the card height */
.modality-text {
    flex: 2;
    padding: var(--space-lg) var(--space-md);
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-top: 2px solid var(--gray-light);
    transition: border-color var(--transition-base);
}

.modality-card:hover .modality-text {
    border-color: var(--gold);
}

.modality-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: var(--space-xs);
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.modality-card p {
    font-size: 1rem;
    color: var(--gray-medium);
    margin: 0;
    line-height: 1.5;
    font-weight: 500;
}

/* ============================================
   PHASED PROGRAMS / TIMELINE
   ============================================ */

.phases {
    background: linear-gradient(135deg, var(--dark) 0%, #1a1b1f 100%);
    color: var(--white);
}

.section-dark {
    background: linear-gradient(135deg, #2c2f3a 0%, #3a3d4e 100%);
    color: var(--white);
}

.section-dark .section-header h2 {
    color: var(--white);
}

.section-dark .section-header p {
    color: rgba(255, 255, 255, 0.75);
}

.timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.timeline-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
    position: relative;
}

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 35px;
    top: 70px;
    bottom: -40px;
    width: 2px;
    background: linear-gradient(to bottom, var(--gold), transparent);
}

.timeline-number {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--white);
    font-size: 1.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(221, 164, 72, 0.3);
    flex-shrink: 0;
}

.timeline-content {
    padding-top: var(--space-sm);
}

.timeline-content h3 {
    color: var(--white);
    margin-bottom: var(--space-xs);
    font-size: 1.5rem;
}

.timeline-content p {
    color: var(--gray-light);
    font-size: 1rem;
    margin: 0;
}

.phases-cta {
    text-align: center;
    margin-top: var(--space-3xl);
    padding-top: var(--space-2xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.emphasis-text {
    color: var(--gold);
    font-size: 1.125rem;
    font-style: italic;
    margin: 0;
}

/* ============================================
   MEDICAL TOURISM SECTION
   ============================================ */

.medical-tourism {
    background: var(--off-white);
}

.tourism-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

.tourism-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    text-align: center;
    border: 2px solid transparent;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.tourism-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--teal);
}

.tourism-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
}

.tourism-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.tourism-card:hover .tourism-image img {
    transform: scale(1.08);
}

.tourism-info {
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.tourism-card h3 {
    font-size: 1.25rem;
    color: var(--dark);
    margin-bottom: var(--space-sm);
}

.tourism-card p {
    font-size: 0.9375rem;
    color: var(--gray-dark);
    margin: 0;
}

/* ============================================
   IMMUNOTHERAPY SECTION
   ============================================ */

.immuno-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-2xl);
}

.pillars-grid,
.tech-grid,
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-3xl);
}

.pillar-card,
.tech-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.pillar-card:hover,
.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--teal);
}

.pillar-card-image,
.tech-card-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.pillar-card-image img,
.tech-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.pillar-card:hover .pillar-card-image img,
.tech-card:hover .tech-card-image img {
    transform: scale(1.08);
}

.pillar-card-info,
.tech-card-info {
    padding: var(--space-xl);
    flex: 1;
}

/* Legibility inside dark sections */
.section-dark .section-header h2,
.section-dark .section-header p {
    color: var(--white);
}

.section-dark .immuno-intro .lead-text {
    color: rgba(255, 255, 255, 0.85);
}

.section-dark .timeline-content h3 {
    color: var(--white);
}

.section-dark .timeline-content p {
    color: rgba(255, 255, 255, 0.75);
}

.section-dark .team-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.section-dark .team-card h3 {
    color: var(--gold);
}

.section-dark .team-card p {
    color: rgba(255, 255, 255, 0.7);
}

.team-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.team-card h3 {
    color: var(--teal);
    margin-bottom: var(--space-xs);
}

.team-card p {
    font-size: 0.95rem;
    color: var(--gray-dark);
    margin: 0;
}

.conditions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    margin-top: var(--space-2xl);
}

@media (max-width: 768px) {
    .conditions-grid {
        grid-template-columns: 1fr;
    }
}

.conditions-col {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
}

.conditions-col h3 {
    color: var(--gold);
    border-bottom: 2px solid var(--gold);
    padding-bottom: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.condition-item {
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.condition-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.condition-item h4 {
    color: var(--dark);
    margin-bottom: var(--space-xs);
}

.condition-item p {
    font-size: 0.95rem;
    color: var(--gray-dark);
    margin: 0;
}

/* ============================================
   LOCATION SECTION
   ============================================ */

.location {
    background: var(--dark);
    color: var(--white);
}

.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.location-text h2 {
    color: var(--white);
    margin-bottom: var(--space-sm);
}

.location-text h3 {
    color: var(--gold);
    font-size: 1.5rem;
    margin-bottom: var(--space-lg);
}

.location-text .lead-text {
    color: var(--white);
}

.location-text p {
    color: var(--gray-light);
}

.location-details {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin: var(--space-xl) 0;
    border-left: 4px solid var(--gold);
}

.location-details p {
    margin-bottom: var(--space-sm);
    font-size: 1rem;
}

.location-details strong {
    color: var(--white);
}

.location-cta {
    margin-top: var(--space-xl);
}

.location-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.location-map-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(255, 255, 255, 0.2);
}

.location-map-placeholder p:first-child {
    font-size: 4rem;
    margin: 0;
}

.location-map-placeholder p:last-child {
    color: var(--gray-medium);
    margin: 0;
    font-size: 0.875rem;
}

.note-text {
    font-size: 0.8125rem;
    color: var(--gray-medium);
    font-style: italic;
}

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

.footer {
    background: var(--dark);
    color: var(--white);
    padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-section h4 {
    color: var(--gold);
    margin-bottom: var(--space-md);
    font-size: 1.125rem;
}

.footer-section p,
.footer-section a {
    color: var(--gray-light);
    text-decoration: none;
    display: block;
    margin-bottom: var(--space-xs);
    font-size: 0.9375rem;
    transition: color var(--transition-fast);
}

.footer-section a:hover {
    color: var(--gold);
}

.social-links {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.social-link {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all var(--transition-fast);
    overflow: hidden;
}

.social-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.social-link:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-lg);
    text-align: center;
}

.footer-legal {
    font-size: 0.875rem;
    color: var(--gray-medium);
    max-width: 900px;
    margin: var(--space-md) auto 0;
    line-height: 1.6;
}

/* ============================================
   HAMBURGER BUTTON — base (hidden on desktop)
   ============================================ */

.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
    flex-shrink: 0;
    z-index: 1100;
    position: relative;
}

.nav-hamburger:hover {
    background: rgba(221, 164, 72, 0.1);
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.25s ease,
        width 0.3s ease;
    transform-origin: center;
}

.nav-hamburger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.is-open span:nth-child(2) {
    opacity: 0;
    width: 0;
}

.nav-hamburger.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(5, 6, 9, 0.5);
    backdrop-filter: blur(4px);
    z-index: 990;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.nav-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

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

@media (max-width: 768px) {

    .nav-hamburger {
        display: flex;
    }

    .nav-backdrop {
        display: block;
        pointer-events: none;
    }

    .nav-links {
        position: fixed;
        top: 73px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(16px);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: var(--space-sm) 0 var(--space-lg);
        z-index: 999;
        box-shadow: 0 8px 32px rgba(5, 6, 9, 0.12);
        border-bottom: 1px solid var(--gray-light);
        transform: translateY(-10px);
        opacity: 0;
        pointer-events: none;
        visibility: hidden;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
            opacity 0.25s ease,
            visibility 0s linear 0.3s;
        display: flex;
    }

    .nav-links.is-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
        visibility: visible;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
            opacity 0.25s ease,
            visibility 0s linear 0s;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: var(--space-md) var(--space-xl);
        font-size: 1.05rem;
        border-bottom: 1px solid var(--gray-light);
        color: var(--dark);
    }

    .nav-links a:hover {
        color: var(--gold);
        background: rgba(221, 164, 72, 0.05);
    }

    .nav-links a::after {
        display: none;
    }

    .section {
        padding: var(--space-3xl) 0;
    }



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

    .process-steps {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .modal {
        margin: var(--space-sm);
    }

    /* Hero split → stack vertically on mobile */
    .hero-split {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        text-align: center;
        padding: 0 var(--space-md);
    }

    .hero-video-col {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .hero-video-wrapper {
        width: min(75vw, 260px);
        max-width: 260px;
        margin: 0 auto;
    }

    .hero-text {
        text-align: center;
    }

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

    /* Fix: make the CTA button wrap text and not overflow */
    .btn-large {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        white-space: normal;
        max-width: 100%;
        text-align: center;
    }

    /* Modality cards — 1 column on mobile */
    .modalities-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .modality-photo {
        min-height: 200px;
    }

    .timeline-item {
        grid-template-columns: auto 1fr;
        gap: var(--space-md);
    }

    .timeline-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .timeline-item:not(:last-child)::after {
        left: 25px;
        top: 50px;
    }

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

    .location-content {
        grid-template-columns: 1fr;
    }

    .location-visual {
        order: -1;
    }

    /* Cookie banner stacks vertically */
    .cookie-banner-content {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
    }

    .cookie-banner-actions {
        width: 100%;
        justify-content: space-between;
    }

    html {
        font-size: 14px;
    }
}

/* Tablet: 2-column modality grid */
@media (min-width: 769px) and (max-width: 1100px) {
    .modalities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Extra small screens (< 390px, older iPhones) */
@media (max-width: 390px) {
    .hero-video-wrapper {
        width: min(72vw, 220px);
        max-width: 220px;
    }

    .modality-photo {
        min-height: 160px;
    }
}


/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center {
    text-align: center;
}

.text-gold {
    color: var(--gold);
}

.bg-gradient {
    background: var(--gradient-primary);
}

.fade-in {
    opacity: 1;
}

.last-updated {
    font-size: 0.875rem;
    color: var(--gray-medium);
    margin-bottom: var(--space-3xl);
    font-style: italic;
}

.legal-block {
    margin-bottom: var(--space-3xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid var(--gray-light);
}

.legal-block:last-of-type {
    border-bottom: none;
}

.legal-block h2 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: var(--space-lg);
    font-weight: 600;
}

.legal-block h3 {
    font-size: 1.125rem;
    color: var(--dark);
    margin: var(--space-lg) 0 var(--space-md);
    font-weight: 600;
}

.legal-block p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--dark);
    margin-bottom: var(--space-md);
}

.legal-block ul,
.legal-block ol {
    margin: var(--space-md) 0 var(--space-lg) var(--space-xl);
    line-height: 1.8;
}

.legal-block li {
    margin-bottom: var(--space-sm);
    color: var(--dark);
}

.legal-block strong {
    color: var(--dark);
    font-weight: 600;
}

.legal-block a {
    color: var(--gold);
    text-decoration: underline;
    transition: color var(--transition-base);
}

.legal-block a:hover {
    color: var(--teal);
}

.legal-footer {
    background: linear-gradient(135deg, rgba(221, 164, 72, 0.1) 0%, rgba(83, 179, 203, 0.1) 100%);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    margin-top: var(--space-3xl);
    border-left: 4px solid var(--gold);
}

.legal-footer p {
    margin-bottom: var(--space-sm);
    color: var(--dark);
    font-size: 0.9rem;
}

.legal-footer p:last-child {
    margin-bottom: 0;
}

.back-to-site {
    text-align: center;
    margin-top: var(--space-3xl);
    padding-top: var(--space-2xl);
}

/* Responsive for legal pages */
@media (max-width: 768px) {
    .legal-content h1 {
        font-size: 2rem;
    }

    .legal-block h2 {
        font-size: 1.25rem;
    }

    .legal-block h3 {
        font-size: 1.0625rem;
    }

    .legal-block ul,
    .legal-block ol {
        margin-left: var(--space-lg);
    }

    .legal-footer {
        padding: var(--space-lg);
    }
}

/* ============================================
   OUR TEAM SECTION
   ============================================ */

.our-team {
    background: var(--off-white);
}

.team-doctors-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3xl);
    justify-content: center;
    align-items: flex-start;
}

/* Individual doctor card */
.doctor-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    text-align: center;
}

/* Round avatar button */
.doctor-avatar-btn {
    position: relative;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 3px solid var(--gold);
    padding: 0;
    background: none;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(221, 164, 72, 0.25), var(--shadow-lg);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    flex-shrink: 0;
}

.doctor-avatar-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.5s ease;
    border-radius: 50%;
}

/* Initials fallback when photo is missing */
.doctor-initials {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--white);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.doctor-avatar-btn:hover {
    transform: translateY(-6px) scale(1.04);
    box-shadow: 0 16px 48px rgba(221, 164, 72, 0.4), var(--shadow-xl);
}

.doctor-avatar-btn:hover img {
    transform: scale(1.07);
}

/* Animated gold ring on hover */
.doctor-avatar-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: linear-gradient(135deg, var(--gold), var(--teal)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
}

.doctor-avatar-btn:hover .doctor-avatar-ring {
    opacity: 1;
}

/* Name & role below button */
.doctor-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}

.doctor-role {
    font-size: 0.875rem;
    color: var(--gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0;
}

/* ---- Doctor Profile Modal — Split Layout ---- */

/* Override modal-body padding when showing a doctor profile */
.modal-body:has(.doctor-profile) {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex: 1;
    min-height: 0;
}

.doctor-profile {
    display: flex;
    width: 100%;
    overflow: hidden;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

/* Left photo panel — desktop */
.doctor-profile-photo-panel {
    flex: 0 0 38%;
    overflow: hidden;
}

.doctor-profile-photo-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* Right credentials panel */
.doctor-profile-info {
    flex: 1;
    padding: var(--space-3xl) var(--space-2xl);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-md);
    min-height: 0;
}

.doctor-profile-info h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    color: var(--dark);
    margin-bottom: var(--space-xs);
    line-height: 1.15;
}

.doctor-specialty {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
    margin-bottom: var(--space-lg);
}

.doctor-credentials {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.doctor-credentials li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--gray-dark);
    line-height: 1.55;
}

.doctor-credentials li::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
    flex-shrink: 0;
    margin-top: 0.45em;
}

.doctor-profile-divider {
    height: 1px;
    background: var(--gray-light);
    margin-top: var(--space-md);
}

/* ---- Mobile: stacked layout ---- */
@media (max-width: 640px) {

    .modal-overlay {
        padding: 8px;
        align-items: flex-start;
        overflow-y: auto;
    }

    .modal {
        max-height: none;
        margin-top: 52px;
        margin-bottom: 20px;
    }

    .modal-body:has(.doctor-profile) {
        overflow: visible;
        flex-direction: column;
    }

    .doctor-profile {
        flex-direction: column;
        border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    }

    /* Fixed photo height on mobile */
    .doctor-profile-photo-panel {
        flex: none;
        width: 100%;
        height: 240px;
        overflow: hidden;
    }

    .doctor-profile-photo-panel img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
    }

    .doctor-profile-info {
        flex: none;
        padding: 20px 16px;
        overflow-y: visible;
        justify-content: flex-start;
        min-height: 0;
    }

    .doctor-profile-info h2 {
        font-size: 1.3rem;
    }

    .doctor-credentials li {
        font-size: 0.85rem;
    }

    .doctor-avatar-btn {
        width: 120px;
        height: 120px;
    }
}


/* ============================================
   CANCER TYPES BLOCK (inside immunotherapy)
   ============================================ */

.cancer-types-block {
    margin-top: var(--space-2xl);
}

.conditions-grid--centered {
    justify-content: center;
}

.conditions-grid--centered .conditions-col {
    max-width: 700px;
    width: 100%;
}

/* Ensure child elements inside doctor avatar button don't absorb touch events */
.doctor-avatar-btn img,
.doctor-avatar-btn .doctor-initials,
.doctor-avatar-btn .doctor-avatar-ring {
    pointer-events: none;
}
/* ============================================
   VIDEO PLAY OVERLAY (click-to-play button)
   ============================================ */

.video-play-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10;
    transition: opacity 0.3s ease;
}

.video-play-overlay svg {
    width: 72px;
    height: 72px;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,0.5));
    transition: transform 0.2s ease, filter 0.2s ease;
}

.video-play-overlay:hover svg {
    transform: scale(1.1);
    filter: drop-shadow(0 6px 24px rgba(221,164,72,0.6));
}
