/* --- Global Styles & Variables --- */
:root {
    --primary-font: 'Montserrat', sans-serif;
    --secondary-font: 'Merriweather', serif;
    --dark-color-start: #141e30; /* Darker Blue */
    --dark-color-end: #1a2a3a;   /* Lighter Charcoal Blue */
    --light-color: #f4f4f4;
    --accent-color: #c9a25b; /* Muted Gold */
    --text-color: #e1e1e1; /* Light gray for body text */
    --heading-color: #ffffff;
}

html, body {
    margin: 0;
    font-family: var(--secondary-font);
    color: var(--text-color);
    background: linear-gradient(135deg, var(--dark-color-start), var(--dark-color-end));
    background-attachment: fixed;
    line-height: 1.6;
    /* Increased padding to account for the larger initial header */
    padding-top: 180px; 
    overflow-x: hidden;
    /* Custom Cursor - Pointing to the NEW file name */
    cursor: url('behrens-cursor.png'), auto; 
}

/* Ensure links/buttons inherit the custom cursor style */
a, button, .btn, .toggle-header, .hub-item, .condition-card, .post-card {
    cursor: url('behrens-cursor.png'), pointer;
}

h1, h2, h3 {
    font-family: var(--primary-font);
    font-weight: 700;
    color: var(--heading-color);
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

h3 {
    font-size: 1.5rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Header & Navigation (Big to Small Effect) --- */
header {
    background: rgba(20, 30, 48, 0.95); 
    backdrop-filter: blur(10px);
    padding: 40px 0; /* Extra large initial padding */
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); /* Smooth transition */
    box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

/* Scrolled State - Applied via JS */
header.header-scrolled {
    padding: 10px 0; /* Tighter padding */
    background: rgba(20, 30, 48, 0.99);
    box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Logo Styling */
nav .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    margin-right: 20px;
    transition: all 0.4s ease;
}

nav .logo img {
    height: 120px; /* Big initial logo */
    width: auto; 
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: block;
}

/* Shrink logo when scrolled */
header.header-scrolled nav .logo img {
    height: 50px;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 15px; /* Spacing between menu items */
}

nav ul li a {
    color: var(--heading-color);
    text-decoration: none;
    padding: 8px 12px;
    transition: color 0.3s, background-color 0.3s;
    font-family: var(--primary-font);
    font-weight: 600; 
    text-align: center; 
    display: block;
    font-size: 0.9rem; 
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap; 
}

@media (max-width: 1200px) {
    nav ul li a {
        font-size: 0.8rem;
        padding: 6px 8px;
        white-space: normal;
    }
    nav ul {
        gap: 5px;
    }
}

nav ul li a:hover, nav ul li a.active {
    color: var(--accent-color);
}

/* --- Mobile Menu Toggle --- */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.mobile-menu-toggle .icon-bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--heading-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: block;
    }

    nav ul {
        display: block; 
        position: fixed;
        top: 0;
        right: -100%; 
        width: 70%; 
        height: 100vh;
        background: var(--dark-color-end);
        flex-direction: column;
        justify-content: center;
        padding-top: 100px;
        transition: right 0.4s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    }
    
    nav ul.nav-active {
        right: 0;
    }

    nav ul li {
        margin: 20px 0;
        text-align: center;
    }

    nav ul li a {
        font-size: 1.2rem;
        padding: 15px;
        display: inline-block;
        white-space: normal;
    }

    /* Mobile Logo Sizing */
    nav .logo img {
        height: 60px; 
    }
    
    header.header-scrolled nav .logo img {
        height: 45px;
    }
    
    header {
        padding: 15px 0;
    }
    
    header.header-scrolled {
        padding: 10px 0;
    }
    
    body {
        padding-top: 100px; 
    }
}

/* --- Hero Section --- */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--heading-color);
    overflow: hidden;
    padding: 0; 
    margin-top: -180px; /* Offset for larger header */
    isolation: isolate; 
}

@media (max-width: 992px) {
    .hero {
        margin-top: -100px;
    }
}

.hero-full { height: 100vh; }
.hero-sub { height: 50vh; min-height: 400px; }

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

#hero-video, .hero-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(26, 42, 58, 0.75), rgba(20, 30, 48, 0.65));
    z-index: -1;
}

.hero-content {
    max-width: 90%;
    padding-top: 80px; 
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Buttons */
.cta-buttons .btn {
    margin: 0 10px;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-family: var(--primary-font);
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--dark-color-start);
    border: 2px solid var(--accent-color);
    font-weight: bold;
    display: inline-block;
    text-align: center;
}
.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-color);
}
.btn-secondary {
    background-color: transparent;
    color: var(--heading-color);
    border: 2px solid var(--heading-color);
}
.btn-secondary:hover {
    background-color: var(--heading-color);
    color: var(--dark-color-start);
}

/* Content Sections */
section { padding: 80px 0; }
.content-section { padding-top: 60px; padding-bottom: 60px; }

.conditions-overview, .beyond-clinic, .sidebar-widget {
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

/* --- Conditions Grid --- */
.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.hub-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 20px;
    text-align: center;
    text-decoration: none;
    color: var(--heading-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    display: block;
    font-weight: 700;
    font-size: 1.1rem;
    font-family: var(--primary-font);
}

.hub-item:hover {
    background: var(--accent-color);
    color: var(--dark-color-start);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Homepage conditions grid (smaller cards) */
.conditions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.condition-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.condition-card img { width: 80px; margin: 0 auto 20px; }
.condition-card h3 { margin-bottom: 15px; }
.condition-card a { color: var(--accent-color); text-decoration: none; font-weight: bold; }

/* Quote Styling */
.quote-container {
    max-width: 900px;
    margin: 40px auto;
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 5px solid var(--accent-color);
    border-right: 5px solid var(--accent-color);
}
.quote-text {
    font-family: var(--secondary-font);
    font-style: italic;
    font-size: 1.4rem;
    line-height: 1.8;
    color: var(--heading-color);
    margin-bottom: 20px;
}
.quote-author {
    font-family: var(--primary-font);
    font-weight: bold;
    color: var(--accent-color);
    font-size: 1.1rem;
}

/* Meet Doctor */
.meet-doctor-flex { display: flex; align-items: center; gap: 50px; }
.meet-doctor-img { flex-basis: 40%; }
.meet-doctor-img img { width: 100%; border-radius: 8px; }
.meet-doctor-content { flex-basis: 60%; }

/* Testimonials */
.testimonials { background: transparent; text-align: center; }
.testimonials h2 { margin-bottom: 40px; }
.testimonial-item { display: none; max-width: 800px; margin: 0 auto; }
.testimonial-item.active { display: block; }
.testimonial-item p { font-size: 1.5rem; font-style: italic; margin-bottom: 20px; }
.testimonial-stars { color: var(--accent-color); font-size: 1.5rem; margin-bottom: 15px; }
.testimonial-item cite { font-style: normal; font-weight: bold; color: var(--accent-color); }

/* Footer */
footer {
    background: var(--dark-color-start);
    text-align: center;
    padding: 20px 0;
    margin-top: 60px;
}
.footer-links a { color: var(--heading-color); margin: 0 10px; text-decoration: none; }

/* Blog/Hub Styles */
.blog-layout { display: flex; gap: 40px; }
.blog-main { flex: 3; }
.blog-sidebar { flex: 1; }
.featured-post { display: flex; gap: 30px; align-items: center; margin-bottom: 50px; }
.featured-post-img, .featured-post-content { flex: 1; }
.featured-post-img img { width: 100%; border-radius: 8px; }
.blog-feed { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.post-card { background: rgba(255, 255, 255, 0.05); border-radius: 8px; overflow: hidden; }
.post-card .post-content { padding: 20px; }
.post-card img { width: 100%; display: block; }
.sidebar-widget input {
    width: 100%; padding: 10px; border: 1px solid rgba(255,255,255,0.2);
    border-radius: 5px; background: rgba(0,0,0,0.2); color: white;
}
.sidebar-widget ul { list-style: none; padding: 0; }
.sidebar-widget ul li { margin-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.sidebar-widget ul li a { color: var(--text-color); text-decoration: none; display: block; padding: 10px 0; }

/* About Page Grids */
.about-intro-flex { display: flex; gap: 40px; align-items: center; margin-bottom: 2rem; }
.about-intro-img { flex-basis: 300px; flex-shrink: 0; }
.about-intro-img img { width: 100%; border-radius: 8px; }
.about-intro-content { flex-grow: 1; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-bottom: 40px; }
.photo-grid img { width: 100%; height: 250px; object-fit: cover; object-position: top; border-radius: 8px; }
.beyond-clinic-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.beyond-clinic-item img { width: 100%; border-radius: 8px; margin-bottom: 20px; }
.toggle-list .toggle-item { border-bottom: 1px solid rgba(255, 255, 255, 0.2); }
.toggle-header {
    background: none; border: none; width: 100%; text-align: left; padding: 20px;
    font-size: 1.2rem; font-family: var(--primary-font); cursor: pointer; position: relative; color: var(--heading-color);
}
.toggle-header::after { content: '+'; position: absolute; right: 20px; font-size: 1.5rem; }
.toggle-header.active::after { content: '−'; }
.toggle-content { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; padding: 0 20px; }
.toggle-content ul { padding-bottom: 20px; }

/* Contact Page */
.contact-layout { display: flex; gap: 50px; }
.contact-form-container { flex: 2; }
.contact-info-container { flex: 1; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 5px; color: var(--heading-color); }
.form-group input, .form-group textarea {
    width: 100%; padding: 12px; border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px; background: rgba(0,0,0,0.2); color: var(--heading-color);
}
.contact-info-item { margin-bottom: 20px; }

/* Animations */
.scroll-animate { opacity: 0; transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.scroll-animate.fade-up { transform: translateY(40px); }
.scroll-animate.slide-left { transform: translateX(-50px); }
.scroll-animate.slide-right { transform: translateX(50px); }
.scroll-animate.is-visible { opacity: 1; transform: translate(0, 0); }

/* Custom Alert Modal */
.custom-alert-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(5px);
    display: flex; justify-content: center; align-items: center; z-index: 2000;
}
.custom-alert-box {
    background: var(--dark-color-end); padding: 30px; border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center; max-width: 400px; width: 90%;
}
.custom-alert-box p { font-size: 1.1rem; color: var(--heading-color); margin: 0 0 20px 0; }
.custom-alert-box button {
    background-color: var(--accent-color); color: var(--dark-color-start);
    border: 2px solid var(--accent-color); font-weight: bold; display: inline-block;
    text-align: center; padding: 10px 30px; text-decoration: none;
    border-radius: 5px; transition: all 0.3s ease; font-family: var(--primary-font); cursor: pointer;
}
.custom-alert-box button:hover { background-color: transparent; color: var(--accent-color); }

/* Patient Resources */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.resource-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 8px;
    text-align: center;
}

/* Mobile Responses for Content */
@media (max-width: 992px) {
    .meet-doctor-flex, .blog-layout, .featured-post, .contact-layout { flex-direction: column; }
    .blog-feed { grid-template-columns: 1fr; }
    .condition-detail-layout { flex-direction: column; }
    .condition-sidebar { position: static; top: auto; }
    .about-intro-flex { flex-direction: column; }
    .about-intro-img { flex-basis: auto; width: 70%; margin-bottom: 20px; }
    .beyond-clinic-grid { grid-template-columns: 1fr; }
    .scroll-animate.slide-left, .scroll-animate.slide-right { transform: translateY(40px); }
}