﻿/* ==========================================================================
   DESIGN SYSTEM & VARIABLES - CLINICA ALACOQUE & CAMPOS
   Inspired by The MOD Institute - Adapted with Navy & Petrol Blue Palette
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;

    /* Font Families */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    /* Theme Variables - Default: Dark Theme */
    --bg-primary: #040914;
    --bg-secondary: #081125;
    --bg-card: #0f1d38;
    --border-color: rgba(14, 159, 191, 0.15);
    --border-glow: rgba(14, 159, 191, 0.3);
    --text-primary: #f8fafc;
    --text-muted: #94a3b8;
    --accent-primary: #0e9fbf;
    /* Petrol Blue */
    --accent-hover: #15b8dc;
    --accent-rgb: 14, 159, 191;
    --shadow-color: rgba(0, 0, 0, 0.4);
    --shadow-glow: rgba(14, 159, 191, 0.15);
    --header-bg: rgba(8, 17, 37, 0.85);
    --input-bg: rgba(15, 29, 56, 0.6);
    --badge-bg: rgba(14, 159, 191, 0.1);
    --skeleton-bg: #0f2343;
}

/* Light Theme Variables */
[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-card: #f1f5f9;
    --border-color: rgba(13, 118, 142, 0.1);
    --border-glow: rgba(13, 118, 142, 0.25);
    --text-primary: #0f172a;
    --text-muted: #475569;
    --accent-primary: #0d768e;
    /* Richer Petrol for light bg readability */
    --accent-hover: #0a5b6e;
    --accent-rgb: 13, 118, 142;
    --shadow-color: rgba(148, 163, 184, 0.08);
    --shadow-glow: rgba(13, 118, 142, 0.08);
    --header-bg: rgba(255, 255, 255, 0.85);
    --input-bg: #e2e8f0;
    --badge-bg: rgba(13, 118, 142, 0.08);
    --skeleton-bg: #e2e8f0;
}

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

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

button,
input,
select,
textarea {
    font-family: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}

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

/* Typography Helpers */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle-caps {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.18em;
    color: var(--accent-primary);
    margin-bottom: 12px;
}

/* ==========================================================================
   LAYOUT CONTAINERS & UTILITIES
   ========================================================================== */

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 1024px) {
    .container {
        padding: 0 48px;
    }
}

.section-padding {
    padding: 80px 0;
}

@media (min-width: 1024px) {
    .section-padding {
        padding: 120px 0;
    }
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent-primary);
    color: #ffffff;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 14px 28px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--shadow-glow);
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--accent-rgb), 0.35);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    background-color: transparent;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 14px 28px;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
    background-color: var(--badge-bg);
    transform: translateY(-2px);
}

/* Glassmorphism Panel */
.glass-panel {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px var(--shadow-color);
    border-radius: 24px;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    z-index: 100;
    background-color: var(--header-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.5s ease, border-color 0.5s ease;
}

.navbar .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 22px;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.logo span {
    color: var(--accent-primary);
    margin: 0 2px;
    font-weight: 300;
}

.logo-sub {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    font-weight: 600;
    margin-left: 6px;
    padding-left: 6px;
    border-left: 1px solid var(--border-color);
}

.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: filter 0.5s ease;
}

[data-theme="dark"] .logo-img {
    filter: brightness(0) invert(1);
}

/* Navigation Links */
.nav-menu {
    display: none;
    align-items: center;
    gap: 8px;
    list-style: none;
}

@media (min-width: 1024px) {
    .nav-menu {
        display: flex;
    }
}

.nav-link {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 8px 16px;
    color: var(--text-primary);
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link:hover {
    color: var(--accent-primary);
    background-color: var(--badge-bg);
}

.nav-link svg {
    width: 12px;
    height: 12px;
    transition: transform 0.2s ease;
}

.nav-link:hover svg {
    transform: translateY(2px);
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.nav-btn-icon:hover {
    background-color: var(--badge-bg);
    color: var(--accent-primary);
}

.nav-btn-icon svg {
    width: 20px;
    height: 20px;
}

/* Action button for Appointment */
.btn-nav-appointment {
    display: none;
    background-color: var(--accent-primary);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 10px var(--shadow-glow);
    transition: var(--transition-smooth);
}

.btn-nav-appointment:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(var(--accent-rgb), 0.3);
}

@media (min-width: 640px) {
    .btn-nav-appointment {
        display: inline-block;
    }
}

.menu-toggle {
    display: flex;

    @media (min-width: 1024px) {
        display: none;
    }
}

/* Mobile Sidebar Nav Overlay */
.mobile-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-primary);
    z-index: 99;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s ease, opacity 0.4s ease;
    overflow-y: auto;
}

.mobile-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 24px;
    color: var(--text-primary);
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-nav-link:hover {
    color: var(--accent-primary);
    padding-left: 8px;
}

/* ==========================================================================
   HERO / EXPLORE SECTION (FLEX EXPANDING GRID)
   ========================================================================== */

.hero-header {
    margin-bottom: 40px;
}

@media (min-width: 1024px) {
    .hero-header {
        margin-bottom: 60px;
    }
}

.hero-header-flex {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 48px;
}

@media (min-width: 768px) {
    .hero-header-flex {
        flex-direction: row;
    }
}

/* Video Background in HERO */
.video-bg-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.video-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(4, 9, 20, 0.82) 0%, rgba(4, 9, 20, 0.55) 50%, rgba(4, 9, 20, 0.88) 100%);
    z-index: 1;
    transition: background 0.5s ease;
}

[data-theme="light"] .video-bg-overlay {
    background: linear-gradient(to bottom, rgba(248, 250, 252, 0.88) 0%, rgba(248, 250, 252, 0.6) 50%, rgba(248, 250, 252, 0.92) 100%);
}

.video-bg-iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    /* 16:9 Aspect Ratio */
    min-height: 100vh;
    min-width: 177.77vh;
    /* 16:9 Aspect Ratio */
    transform: translate(-50%, -50%);
    z-index: 0;
}

/* Desktop Grid Flex Layout */
.expanding-grid {
    display: none;
    height: 600px;
    width: 100%;
    gap: 8px;
    overflow: hidden;
    border-radius: 24px;
}

@media (min-width: 768px) {
    .expanding-grid {
        display: flex;
    }
}

.grid-card {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    cursor: pointer;
    background-color: var(--bg-secondary);
    transition: flex 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.3s ease;
}

.grid-card:hover {
    transform: scale(1.01);
}

.grid-card.active {
    flex: 4.5;
    cursor: default;
}

/* Background image overlay */
.card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s ease, filter 0.8s ease;
    filter: saturate(0.8) contrast(1.1) brightness(0.65);
}

.grid-card:hover .card-bg {
    transform: scale(1.05);
}

.grid-card.active .card-bg {
    filter: saturate(1) contrast(1.05) brightness(0.45);
}

/* Card Gradient overlays */
.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(4, 9, 20, 0.2) 0%, rgba(4, 9, 20, 0.75) 100%);
    z-index: 1;
}

.card-overlay-active {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(14, 159, 191, 0.15) 30%, rgba(4, 9, 20, 0.9) 75%, var(--bg-primary) 100%);
    z-index: 2;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.grid-card.active .card-overlay-active {
    opacity: 1;
}

/* Vertical text layout for collapsed state */
.collapsed-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    transform-origin: center;
    white-space: nowrap;
    z-index: 3;
    opacity: 1;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.collapsed-title h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: 0.05em;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.grid-card.active .collapsed-title {
    opacity: 0;
}

/* Full content for active card state */
.card-content-active {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 48px;
    z-index: 4;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease 0.2s, transform 0.4s ease 0.2s;
    pointer-events: none;
}

.grid-card.active .card-content-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.card-content-active h3 {
    font-size: 38px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
}

.card-content-active p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    max-width: 480px;
    margin-bottom: 24px;
    line-height: 1.6;
}

.card-content-active .btn-primary {
    align-self: flex-start;
}

/* Mobile Accordion Layout */
.mobile-accordion {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

@media (min-width: 768px) {
    .mobile-accordion {
        display: none;
    }
}

.accordion-item {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
    transition: var(--transition-smooth);
}

.accordion-header {
    width: 100%;
    height: 72px;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 24px;
    cursor: pointer;
    background-size: cover;
    background-position: center;
}

.accordion-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(8, 17, 37, 0.85) 0%, rgba(4, 9, 20, 0.4) 100%);
    z-index: 1;
}

.accordion-item.active .accordion-header::before {
    background: linear-gradient(135deg, var(--accent-primary) 0%, rgba(4, 9, 20, 0.7) 100%);
}

.accordion-title-text {
    position: relative;
    z-index: 2;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
}

.accordion-content {
    height: 0;
    opacity: 0;
    overflow: hidden;
    transition: height 0.4s cubic-bezier(0.25, 1, 0.3, 1), opacity 0.3s ease;
    padding: 0 24px;
}

.accordion-item.active .accordion-content {
    height: auto;
    opacity: 1;
    padding: 24px;
}

.accordion-content p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

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

.hero-principal-section {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    background-color: var(--bg-primary);
}

.hero-principal-content {
    position: relative;
    z-index: 3;
    max-width: 850px;
}

/* ==========================================================================
   DENTISTAS (EXPERTS) SECTION
   ========================================================================== */

.dentistas-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 768px) {
    .dentistas-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

@media (min-width: 1024px) {
    .dentistas-grid {
        gap: 48px;
    }
}

.dentista-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 30px var(--shadow-color);
}

.dentista-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-primary);
    box-shadow: 0 15px 40px var(--shadow-glow);
}

.dentista-img-wrapper {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    background-color: var(--skeleton-bg);
}

.dentista-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.3, 1);
}

.dentista-img-tamiris {
    object-position: center;
}

.avatar-tamiris {
    object-position: center;
}

.dentista-card:hover .dentista-img-wrapper img {
    transform: scale(1.05);
}


.dentista-info {
    padding: 32px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.dentista-specialty {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-primary);
    margin-bottom: 8px;
}

.dentista-info h3 {
    font-size: 26px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.dentista-cro {
    font-size: 13px;
    color: var(--text-muted);
}

.dentista-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 20px 0;
}

.dentista-text {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    font-style: italic;
    flex-grow: 1;
}

/* ==========================================================================
   STATS SECTION
   ========================================================================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

@media (min-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
}

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

.stat-number {
    font-family: var(--font-heading);
    font-size: 52px;
    font-weight: 700;
    line-height: 1;
    color: var(--accent-primary);
    margin-bottom: 12px;
    display: inline-block;
}

@media (min-width: 1024px) {
    .stat-number {
        font-size: 80px;
    }
}

.stat-label {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-primary);
}

/* ==========================================================================
   EXPERIENCE / WORKFLOW SECTION (5 WAYS)
   ========================================================================== */

.workflow-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}

@media (min-width: 1024px) {
    .workflow-layout {
        grid-template-columns: 2fr 3fr;
        gap: 64px;
    }
}

/* ==========================================================================
   FEATURED SPECIALTIES CARDS
   ========================================================================== */

.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

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

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

.specialty-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition-smooth);
}

.specialty-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-primary);
    box-shadow: 0 12px 30px var(--shadow-glow);
}

.card-img-wrapper {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background-color: var(--skeleton-bg);
}

.specialty-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
}

.specialty-card:hover .card-img-wrapper img {
    transform: scale(1.06);
}

.card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-primary);
    margin-bottom: 8px;
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.card-description {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 20px;
}

.card-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
}

.card-duration {
    color: var(--text-muted);
}

.card-link {
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-link svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.specialty-card:hover .card-link svg {
    transform: translateX(4px);
}

/* ==========================================================================
   TESTIMONIALS SLIDER SECTION
   ========================================================================== */

.testimonials-section {
    position: relative;
    background: linear-gradient(135deg, #020712 0%, #06152e 50%, #020712 100%);
    overflow: hidden;
}

[data-theme="light"] .testimonials-section {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.testimonials-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(var(--accent-rgb), 0.08), transparent 70%);
    pointer-events: none;
}

.carousel-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.carousel-track-wrapper {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.3, 1);
    width: 100%;
}

.carousel-slide {
    flex-shrink: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.carousel-slide.active {
    opacity: 1;
}

.quote-text {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--text-primary);
    margin-bottom: 32px;
}

@media (min-width: 768px) {
    .quote-text {
        font-size: 32px;
    }
}

.quote-author-img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 16px;
    border: 2px solid var(--accent-primary);
}

.quote-author-name {
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-primary);
}

.quote-author-title {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--border-color);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.carousel-dot.active {
    background-color: var(--accent-primary);
    width: 24px;
}

/* ==========================================================================
   LOCATIONS / GOOGLE MAPS SECTION
   ========================================================================== */

.locations-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 768px) {
    .locations-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

.location-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 30px var(--shadow-color);
}

.location-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-primary);
    box-shadow: 0 15px 40px var(--shadow-glow);
}

.location-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.location-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--badge-bg);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.location-icon svg {
    width: 24px;
    height: 24px;
}

.location-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
}

.location-city {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 2px;
}

.location-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.location-detail {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

.location-detail svg {
    width: 18px;
    height: 18px;
    color: var(--accent-primary);
    margin-top: 3px;
    flex-shrink: 0;
}

.location-detail span {
    flex: 1;
}

.location-phone {
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition-fast);
}

.location-phone:hover {
    color: var(--accent-primary);
}

.location-map {
    position: relative;
    width: 100%;
    height: 240px;
    border-radius: 12px;
    overflow: hidden;
    margin-top: auto;
}

.location-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ==========================================================================
   MEMBERSHIP / DENTAL PLANS (MOD PRO COPY)
   ========================================================================== */

.membership-section {
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(14, 159, 191, 0.18), transparent 70%),
        linear-gradient(135deg, #050e1e 0%, #0d1e38 50%, #050e1e 100%);
    color: #ffffff;
}

[data-theme="light"] .membership-section {
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(13, 118, 142, 0.25), transparent 70%),
        linear-gradient(135deg, #0b2244 0%, #153866 100%);
}

.membership-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}

@media (min-width: 1024px) {
    .membership-layout {
        grid-template-columns: 5fr 6fr;
        gap: 64px;
    }
}

.membership-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background-color: var(--accent-primary);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 20px;
    margin-bottom: 24px;
}

.membership-price {
    margin-top: 32px;
    margin-bottom: 24px;
}

.price-value {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 700;
    color: var(--accent-hover);
    line-height: 1;
}

@media (min-width: 768px) {
    .price-value {
        font-size: 52px;
    }
}

.price-period {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.5);
    margin-left: 4px;
}

.membership-video-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 16/9;
    box-shadow: 0 20px 40px rgba(14, 159, 191, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.membership-video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* --- AeC Prime: intro --- */
.plans-intro {
    max-width: 760px;
    margin: 0 auto 40px;
    text-align: center;
}

.plans-headline {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.15;
    color: #ffffff;
    margin-bottom: 18px;
}

@media (min-width: 768px) {
    .plans-headline {
        font-size: 44px;
    }
}

.plans-subheadline {
    color: rgba(255, 255, 255, 0.72);
    font-size: 16px;
    line-height: 1.6;
}

.plans-subheadline strong {
    color: #ffffff;
}

/* --- AeC Prime: founder bar --- */
.founder-bar {
    max-width: 920px;
    margin: 0 auto 48px;
    padding: 22px 28px;
    border-radius: 18px;
    background: rgba(14, 159, 191, 0.08);
    border: 1px solid rgba(21, 184, 220, 0.35);
}

.founder-bar-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.founder-tag {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #04111e;
    background: var(--accent-hover);
    padding: 5px 12px;
    border-radius: 20px;
}

.founder-deadline {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

.founder-perks {
    list-style: none;
    display: grid;
    gap: 10px;
}

.founder-perks li {
    position: relative;
    padding-left: 24px;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
}

.founder-perks li::before {
    content: "★";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-hover);
    font-size: 13px;
}

.founder-perks strong {
    color: #ffffff;
}

.founder-counter {
    display: inline-block;
    margin-left: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-hover);
    background: rgba(21, 184, 220, 0.12);
    padding: 2px 9px;
    border-radius: 12px;
}

/* --- AeC Prime: plans grid --- */
.plans-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: stretch;
    max-width: 1100px;
    margin: 0 auto;
}

@media (min-width: 900px) {
    .plans-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        align-items: center;
    }
}

.plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: rgba(15, 29, 56, 0.55);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    padding: 32px 26px;
}

.plan-card-featured {
    border-color: var(--accent-hover);
    background: linear-gradient(160deg, rgba(21, 184, 220, 0.14) 0%, rgba(15, 29, 56, 0.8) 60%);
    box-shadow: 0 24px 60px rgba(14, 159, 191, 0.28);
}

@media (min-width: 900px) {
    .plan-card-featured {
        transform: scale(1.06);
        z-index: 2;
        padding: 40px 30px;
    }
}

.plan-flags {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    white-space: nowrap;
}

.plan-flag {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 5px 12px;
    border-radius: 20px;
}

.plan-flag-popular {
    background: var(--accent-hover);
    color: #04111e;
}

.plan-flag-founder {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.plan-name {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 6px;
}

.plan-desc {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
    min-height: 38px;
}

.plan-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px;
}

.plan-price-old {
    width: 100%;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: line-through;
    margin-bottom: 2px;
}

.plan-price-value {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

.plan-card-featured .plan-price-value {
    color: var(--accent-hover);
}

.plan-price-period {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.55);
}

.plan-perday {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
}

.plan-perday-highlight {
    color: var(--accent-hover);
}

.plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin: 24px 0 28px;
    flex-grow: 1;
}

.plan-features li {
    position: relative;
    padding-left: 26px;
    font-size: 14px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.82);
}

.plan-features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315b8dc' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

.plan-features strong {
    color: #ffffff;
}

.plan-cta {
    width: 100%;
}

.plan-note {
    margin-top: 12px;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
    color: rgba(255, 255, 255, 0.55);
}

.plans-disclaimer {
    max-width: 880px;
    margin: 48px auto 0;
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
    color: rgba(255, 255, 255, 0.42);
}

/* ==========================================================================
   LABORATORY BANNER (STUDIO COPY)
   ========================================================================== */

.lab-banner {
    position: relative;
    min-height: 480px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    border-radius: 24px;
    overflow: hidden;
}

.lab-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(4, 9, 20, 0.95) 0%, rgba(4, 9, 20, 0.8) 40%, rgba(4, 9, 20, 0.4) 100%);
    z-index: 1;
}

.lab-banner .container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: flex-start;
}

.lab-banner-content {
    max-width: 600px;
}

/* ==========================================================================
   APPOINTMENT BANNER (SYMPOSIUM COPY)
   ========================================================================== */

.appointment-banner {
    position: relative;
    min-height: 480px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    border-radius: 24px;
    overflow: hidden;
}

.appointment-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to left, rgba(4, 9, 20, 0.95) 0%, rgba(8, 17, 37, 0.85) 45%, rgba(4, 9, 20, 0.3) 100%);
    z-index: 1;
}

.appointment-banner .container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.appointment-banner-content {
    max-width: 600px;
    text-align: right;
}

.appointment-meta {
    display: flex;
    gap: 24px;
    justify-content: flex-end;
    margin-top: 24px;
    margin-bottom: 32px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
}

.meta-item svg {
    width: 18px;
    height: 18px;
    color: var(--accent-primary);
}

/* ==========================================================================
   MISSION / BOTTOM CTA SECTION
   ========================================================================== */

.mission-section {
    position: relative;
    background-color: #020712;
    overflow: hidden;
    padding: 100px 0;
    border-radius: 24px;
    text-align: center;
}

.mission-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.35;
    filter: blur(2px);
}

.mission-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(8, 17, 37, 0.8) 0%, rgba(4, 9, 20, 0.7) 100%);
}

.mission-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: 0 auto;
}

.mission-title {
    font-size: 38px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 24px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
    .mission-title {
        font-size: 48px;
    }
}

.mission-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
}

/* ==========================================================================
   FOUNDERS QUOTE
   ========================================================================== */

.founders-quote-section {
    background: linear-gradient(180deg, var(--bg-primary) 0%, #030712 100%);
    position: relative;
}

.founders-quote-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.founders-profile {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.founders-avatar-group {
    display: flex;
    align-items: center;
}

.founders-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--accent-primary);
    object-fit: cover;
    background-color: var(--skeleton-bg);
}

.founders-avatar:nth-child(2) {
    margin-left: -20px;
    border-color: var(--bg-secondary);
}

.founder-info h4 {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-primary);
}

.founder-info p {
    font-size: 13px;
    color: var(--text-muted);
}

.quote-block {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 300;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 32px;
}

@media (min-width: 768px) {
    .quote-block {
        font-size: 42px;
    }
}

.quote-block span {
    color: var(--accent-primary);
}

.founders-footer {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

@media (min-width: 768px) {
    .founders-footer {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.founders-footer-text {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 450px;
}

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

.site-footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 32px;
    }
}

.footer-brand p {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 16px;
    max-width: 320px;
}

.footer-links-column h4 {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-list a {
    font-size: 14px;
    color: var(--text-muted);
}

.footer-links-list a:hover {
    color: var(--accent-primary);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-size: 12px;
    color: var(--text-muted);
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.footer-legal-links {
    display: flex;
    gap: 24px;
}

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

/* ==========================================================================
   APPOINTMENT MODAL
   ========================================================================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(4, 9, 20, 0.85);
    backdrop-filter: blur(12px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border-radius: 24px;
    width: 100%;
    max-width: 540px;
    overflow: hidden;
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.3, 1);
}

.modal-overlay.open .modal-container {
    transform: translateY(0);
}

.modal-header {
    padding: 24px 32px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 24px;
    font-weight: 600;
}

.modal-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background-color: var(--badge-bg);
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.modal-close-btn:hover {
    background-color: rgba(14, 159, 191, 0.2);
    color: var(--accent-primary);
}

.modal-body {
    padding: 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 15px;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.form-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px var(--badge-bg);
}

select.form-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 640px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.modal-submit-btn {
    width: 100%;
    margin-top: 12px;
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================== */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.3, 1), transform 0.8s cubic-bezier(0.25, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Specific delay helpers */
.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

.delay-400 {
    transition-delay: 400ms;
}

.delay-500 {
    transition-delay: 500ms;
}