/* 
   Project: Dra. Montserrat Betanzos Landing Page
   Theme: Medical Premium (Deep Blue, White, Gold)
*/

/* --- Variables --- */
:root {
    /* Colors */
    --color-primary: #0A2342;
    /* Deep Navy Blue - Trust/Medical */
    --color-secondary: #00A896;
    /* Teal/Green - Freshness/Health (Accent) */
    --color-gold: #D4AF37;
    /* Gold - Premium/Quality (Subtle details) */
    --color-text-main: #1F2937;
    --color-text-light: #4B5563;
    --color-bg-light: #F9FAFB;
    --color-white: #FFFFFF;

    /* Spacing */
    --section-padding: 5rem 1rem;
    --container-max-width: 1200px;

    /* Transitions */
    --transition-speed: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--color-text-main);
    line-height: 1.6;
    background-color: var(--color-bg-light);
}

h1,
h2,
h3,
.brand {
    font-family: 'Outfit', sans-serif;
    color: var(--color-primary);
}

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

ul {
    list-style: none;
}

/* --- Utilities --- */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: 1px solid var(--color-primary);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-primary);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-white);
    border: 1px solid var(--color-white);
    margin-left: 1rem;
}

.btn-outline:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.center {
    text-align: center;
}

/* --- Navbar --- */
.navbar {
    background-color: var(--color-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 70px;
    display: flex;
    align-items: center;
}

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

.brand a {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links li a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-main);
}

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

.btn-nav {
    background-color: var(--color-secondary);
    color: var(--color-white) !important;
    padding: 0.5rem 1.25rem;
    border-radius: 4px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

/* --- Hero Section --- */
@keyframes pulse-overlay {
    0% {
        opacity: 0.92;
    }

    50% {
        opacity: 0.85;
    }

    100% {
        opacity: 0.92;
    }
}

@keyframes slow-zoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.hero {
    position: relative;
    min-height: 90vh;
    /* Changed to min-height for better mobile support */
    display: flex;
    align-items: center;
    background-color: #0A2342;
    color: var(--color-white);
    margin-top: 70px;
    padding: 2rem 0;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/images/hero.jpg');
    background-size: cover;
    background-position: center;
    z-index: 1;
    animation: slow-zoom 20s infinite alternate;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(5, 22, 43, 0.95) 0%, rgba(10, 35, 66, 0.85) 100%);
    /* Modern deep blue gradient */
    z-index: 2;
    background-size: 200% 200%;
    animation: pulse-overlay 5s infinite ease-in-out;
}

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

.badge-premium {
    background-color: rgba(212, 175, 55, 0.15);
    /* Translucent Gold */
    color: #FFD700;
    /* Brighter Gold text */
    border: 1px solid rgba(212, 175, 55, 0.4);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    display: inline-block;
    backdrop-filter: blur(5px);
}

.hero-title {
    font-size: 4rem;
    /* Larger desktop size */
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--color-white);
    /* FORCE WHITE COLOR */
    font-weight: 700;
}

.highlight {
    color: var(--color-secondary);
    /* Teal */
    font-style: normal;
    /* Removed italic for cleaner look */
    position: relative;
}

/* Optional: Underline effect for highlight */
.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: rgba(0, 168, 150, 0.3);
    z-index: -1;
    border-radius: 4px;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: #E5E7EB;
    /* Grey-200 for better readability than pure white opacity */
    max-width: 600px;
    font-weight: 300;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-cta .btn {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

/* Update Primary Button to Pop against Dark Background */
.hero-cta .btn-primary {
    background-color: var(--color-secondary);
    /* Teal Background */
    border-color: var(--color-secondary);
    color: var(--color-white);
    box-shadow: 0 4px 14px rgba(0, 168, 150, 0.4);
    /* Glowing effect */
}

.hero-cta .btn-primary:hover {
    background-color: #008c7d;
    /* Darker teal on hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 168, 150, 0.6);
}

.hero-cta .btn-outline {
    margin-left: 0;
    /* Reset margin */
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--color-white);
}

.hero-cta .btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--color-white);
    color: var(--color-white);
}

/* --- Problem/Agitation --- */
.problem-section {
    padding: 3rem 1rem;
    /* Reduced from 5rem to 3rem */
    background-color: var(--color-white);
}

.problem-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    /* Reduced from 4rem */
    align-items: center;
}

.problem-text .section-title {
    margin-bottom: 1rem;
    /* Tighter spacing below title */
    line-height: 1.2;
}

.problem-text p {
    margin-bottom: 1rem;
    font-size: 1rem;
    /* Ensure standard readable size */
}

.problem-video-placeholder {
    width: 100%;
    height: 250px;
    /* Slightly shorter */
    background-color: #f3f4f6;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
}

.play-button {
    width: 60px;
    height: 60px;
    background-color: var(--color-primary);
    border-radius: 50%;
    margin-bottom: 1rem;
}

/* --- Services --- */
.services-section {
    padding: var(--section-padding);
    background-color: var(--color-bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    transition: var(--transition-speed);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--color-secondary);
}

.service-card.featured {
    border: 2px solid var(--color-primary);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

.link-arrow {
    color: var(--color-primary);
    font-weight: 600;
}

/* --- FAQ Section --- */
.faq-section {
    padding: var(--section-padding);
    background-color: #f8fafc;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--color-white);
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.faq-item summary {
    padding: 1.5rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--color-primary);
    position: relative;
    list-style: none;
    /* Hide default arrow */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--color-secondary);
    transition: transform 0.3s;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
    /* Turn + into x */
}

.faq-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--color-text-light);
    line-height: 1.6;
    border-top: 1px solid #f1f5f9;
    margin-top: 0;
}

.faq-content ul {
    list-style-type: disc;
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.faq-content li {
    margin-bottom: 0.5rem;
}

.price-tag {
    color: var(--color-secondary);
    font-weight: 700;
}

/* --- Booking (Calendly) --- */
.booking-section {
    padding: var(--section-padding);
    background-color: var(--color-primary);
    color: var(--color-white);
}

.booking-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.booking-info h2 {
    color: var(--color-white);
    margin-bottom: 1rem;
    font-size: 2.5rem;
    line-height: 1.1;
}

.booking-info p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-weight: 300;
    max-width: 90%;
}

.info-item {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    border-left: 3px solid var(--color-secondary);
}

.info-item strong {
    display: block;
    color: var(--color-secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.25rem;
    font-family: 'Inter', sans-serif;
}

.info-item span,
.info-item a {
    display: block;
    font-size: 0.95rem;
    color: var(--color-white);
    line-height: 1.5;
}

/* --- Footer --- */
footer {
    padding: 3rem 0;
    background-color: #05162b;
    /* Darker Navy */
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
}

/* --- About Section --- */
.about-section {
    padding: var(--section-padding);
    background-color: var(--color-white);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-content h2 {
    margin-bottom: 0.5rem;
}

.about-subtitle {
    color: var(--color-secondary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-content p {
    margin-bottom: 1rem;
    color: var(--color-text-light);
    font-size: 1.05rem;
}



/* --- Video Carousel --- */
.video-carousel-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.video-carousel {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 1rem 0.5rem;
    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
}

.video-carousel::-webkit-scrollbar {
    display: none;
}

.video-card {
    flex: 0 0 200px;
    height: 355px;
    /* 9:16 aspect ratio scaled down further */
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    scroll-snap-align: center;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.2);
    position: relative;
}

.video-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-card {
    background-color: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #d1d5db;
}

.placeholder-content {
    text-align: center;
    color: var(--color-text-light);
}

.placeholder-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.carousel-btn {
    background: var(--color-white);
    border: 1px solid #e5e7eb;
    color: var(--color-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    z-index: 10;
    flex-shrink: 0;
}

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

/* --- Floating WhatsApp Button --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #20b85a;
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
    fill: currentColor;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .problem-grid,
    .booking-container,
    .about-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .nav-links {
        display: none;
        /* Logic for hamburger would go in JS */
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}