/* --- Global Variables: Updated to Bright & Baby Blue --- */
:root {
    --primary: #00aeef;    /* Bright Sky Blue (from reference) */
    --accent: #b3e5fc;     /* Soft Baby Blue */
    --dark: #2c3e50;       /* Professional Deep Navy for text */
    --light: #f8f9fa;      /* Clean background */
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.9);
    --shadow-soft: 0 15px 35px rgba(0, 174, 239, 0.08); /* Blue-tinted shadow */
}
/* --- 1. Mobile Menu Visibility (Ergonomic 5S approach) --- */
/* Hide the mobile dropdown and menu toggle on desktop screens */
@media (min-width: 1151px) {
    .menu-toggle, 
    #mobile-dropdown,
    .mobile-dropdown {
        display: none !important;
    }
}
.back-link {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 9999; /* Ensures it stays above all other elements */
    background: rgba(0,174,239) !important; /* Using --brand-blue with transparency */
    backdrop-filter: blur(8px);
    color: var(--accent-gold); /* Using --accent-gold */
    padding: 10px 22px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--accent-gold);
    transition: var(--transition-smooth); /* Using your smooth transition variable */
}

.back-link:hover {
    background: var(--accent-gold);
    color: var(--brand-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

/* Ergonomic Adjustment for Mobile */
@media (max-width: 768px) {
    .back-link {
        top: 10px;
        left: 10px;
        padding: 8px 16px;
        font-size: 0.75rem;
    }
}
/* */

/* Mobile Responsiveness for Bento Grid */
@media (max-width: 768px) {
    h1 { 
        font-size: 3rem !important; /* Scale down large hero text */
        letter-spacing: -1px;
    }

    .bento-grid {
        grid-template-columns: 1fr; /* Stack cards in a single column */
        grid-auto-rows: auto; /* Let height adjust based on content */
        gap: 16px;
    }

    .featured, .wide {
        grid-column: span 1; /* Force featured/wide items to take full width */
    }

    .bento-item {
        min-height: 350px; /* Ensure enough height for the background image */
    }

    .bento-overlay .item-content {
        padding: 24px; /* More ergonomic padding for smaller screens */
    }
}
/* */

/* Responsive Back Button */
@media (max-width: 768px) {
    .back-link {
        top: auto;
        bottom: 20px; /* Move to bottom for "Thumb-Driven" ergonomics on mobile */
        left: 50%;
        transform: translateX(-50%); /* Center it horizontally */
        width: 80%; /* Wider button for easier tapping */
        text-align: center;
        font-size: 0.9rem;
        padding: 14px;
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.4);
        z-index: 10000;
    }

    .back-link:hover {
        transform: translateX(-50%) translateY(-2px); /* Maintain centering on hover */
    }
    
    /* Ensure the main nav logo doesn't collide with buttons */
    .nav-container {
        padding: 0 15px;
    }
}
/* --- 2. Hamburger to 'X' Animation --- */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 3000;
}

.bar {
    width: 25px;
    height: 2px;
    background-color: var(--primary);
    margin: 3px 0;
    transition: all 0.3s ease-in-out;
    border-radius: 2px;
}

/* Change bar colors to white when the nav is black (scrolled) */
nav.scrolled .bar {
    background-color: #ffffff;
}

/* The 'X' Transformation */
.menu-toggle.is-active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.is-active .bar:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.menu-toggle.is-active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* --- 3. Dropdown Logic Refresh --- */
.mobile-dropdown {
    position: absolute;
    top: 100%; 
    left: 0; 
    width: 100%;
    background: #ffffff;
    max-height: 0; 
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.mobile-dropdown.active {
    max-height: 400px; /* Adjust based on content height */
}
/* --- 5S Rule: Remove desktop clutter --- */
/* This ensures the button is HIDDEN on all screens by default */
.mobile-only-btn {
    display: none !important;
}

/* --- Mobile Only Instructions --- */
@media (max-width: 768px) {
    /* This makes the button reappear ONLY when the screen is small */
    .mobile-only-btn {
        display: flex !important; /* or block */
        justify-content: center;
        align-items: center;
        background-color: #00aeef;
        color: white !important;
        width: 85%;
        padding: 16px;
        border-radius: 50px;
        font-weight: 600;
        text-decoration: none;
        box-shadow: 0 4px 15px rgba(0, 174, 239, 0.3);
    }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: 'Plus Jakarta Sans', sans-serif; 
    background: var(--light); 
    color: var(--dark);
    line-height: 1.7;
}

/* --- Navigation: Professional & Sticky --- */
nav { 
    position: fixed; top: 0; width: 100%; height: 90px; 
    display: flex; align-items: center; justify-content: center;
    z-index: 2000; transition: 0.4s ease;
    background: transparent;
}

nav.scrolled { 
    height: 75px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(0,0,0,0.05);
}

.nav-container {
    width: 85%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo { font-weight: 700; font-size: 1.5rem; }
.logo span { color: var(--accent); font-weight: 300; letter-spacing: 2px; margin-left: 8px; font-size: 0.8rem; }

.nav-links { display: flex; list-style: none; align-items: center; }
.nav-links li a { text-decoration: none; color: var(--dark); margin-left: 30px; font-weight: 600; font-size: 0.9rem; }

.btn-nav { 
    background: var(--primary); 
    color: white !important; 
    padding: 12px 28px; 
    border-radius: 50px; 
}

/* --- Hero Section --- */
.hero { 
    height: 100vh; background: url('new.png') no-repeat center center/cover; 
    display: flex; align-items: center; padding: 0 8%; 
}

.main-hero-card { 
    padding: 70px; max-width: 650px; border-radius: 50px; 
}

.hero h1 { 
    font-family: 'Playfair Display', serif; font-size: 4.5rem; 
    line-height: 1.1; color: var(--primary); margin-bottom: 20px;
}

.hero h1 em { font-weight: 400; color: var(--accent); }

/* --- Bento Grid: Ergonomic Horizontal Layout --- */
.services-advanced { padding: 120px 8%; background: white; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-title { font-family: 'Playfair Display', serif; font-size: 3.5rem; color: var(--primary); }

.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
}

.bento-card {
    display: flex; 
    flex-direction: row; 
    background: white;
    border-radius: 45px;
    height: 320px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0,0,0,0.04);
    transition: 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.bento-card:hover { transform: translateY(-10px); box-shadow: 0 30px 60px rgba(0,0,0,0.08); }

.card-image { flex: 1; background-size: cover; background-position: center; }
.card-content { flex: 1.2; padding: 45px; display: flex; flex-direction: column; justify-content: center; }

.card-tag { color: var(--accent); font-size: 0.7rem; font-weight: 800; letter-spacing: 2px; margin-bottom: 10px; text-transform: uppercase; }
.card-content h3 { color: var(--primary); font-family: 'Playfair Display', serif; font-size: 1.8rem; margin-bottom: 15px; }

.glass-card { background: var(--glass-bg); backdrop-filter: blur(15px); border: 1px solid var(--glass-border); }

/* --- Emergency Styling --- */
.emergency-card { background: var(--primary); color: white; border: none; }
.emergency-header { display: flex; align-items: center; gap: 15px; margin-bottom: 10px; }
.emergency-icon { 
    width: 32px; height: 32px; background: var(--accent); 
    border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; 
}
.emergency-card h3, .emergency-card p { color: white; }

/* --- 5S Visual Management Bar --- */
.other-services-bar { 
    margin-top: 60px; background: var(--primary); color: white; 
    padding: 25px 50px; border-radius: 100px; display: flex; align-items: center; gap: 20px; 
}
.bar-label { font-weight: 800; font-size: 0.7rem; color: var(--accent); letter-spacing: 2px; }

/* --- Appointment Section --- */
.contact-form-card { max-width: 850px; margin: auto; padding: 60px; border-radius: 60px; }
.form-row { display: flex; gap: 20px; margin-bottom: 20px; }
.form-group { flex: 1; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 700; font-size: 0.85rem; }
.form-group input, .form-group textarea {
    width: 100%; padding: 18px; border-radius: 20px; border: 1px solid rgba(0,0,0,0.08); font-family: inherit;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 1100px) { .bento-grid { grid-template-columns: 1fr; } }
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 3rem; }
    .bento-card { flex-direction: column; height: auto; }
    .card-image { height: 220px; }
}
/* --- Mobile Menu Toggle Styling --- */
.menu-toggle {
    display: none; /* Hidden on desktop */
    flex-direction: column;
    cursor: pointer;
    z-index: 3000;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    margin: 4px 0;
    transition: 0.4s ease;
    border-radius: 3px;
}

/* --- Mobile Dropdown Menu --- */
.mobile-dropdown {
    position: absolute;
    top: 100%; /* Sits right below the nav bar */
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    height: 0; /* Initially hidden */
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.mobile-dropdown.active {
    height: 250px; /* Expands when active */
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-nav-links {
    list-style: none;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-nav-links li a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.mobile-nav-links li a:hover {
    color: var(--accent);
}

/* --- Hamburger Animation --- */
.menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
.menu-toggle.is-active .bar:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

/* --- Mobile Responsiveness Trigger --- */
@media (max-width: 992px) {
    .nav-links { display: none; } /* Hide desktop links */
    .menu-toggle { display: flex; } /* Show hamburger */
}
/* --- Professional Calendar Styling --- */
.trends-section {
    padding: 80px 5%;
    background: var(--light);
}

.timeline-container {
    width: 100%;
    margin-top: 40px;
}

.timeline-track {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive Grid */
    gap: 25px;
}

.month-card {
    padding: 35px;
    border-radius: 35px;
    background: white;
    border: 1px solid rgba(0, 77, 64, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Current Month Highlight Style */
.month-card.active-month {
    background: var(--primary);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 77, 64, 0.15);
}

.month-card.active-month .month-name,
.month-card.active-month h4,
.month-card.active-month p {
    color: white;
}

/* --- MOBILE SPECIFIC OVERRIDES --- */
@media (max-width: 768px) {
    .section-title {
        font-size: 2.2rem; /* Easier to read on mobile */
    }
    
    .timeline-track {
        grid-template-columns: 1fr; /* Stack cards vertically on phones */
    }

    .month-card {
        padding: 25px;
        border-radius: 25px;
    }
}
/* --- Professional Calendar Styling --- */
.trends-section {
    padding: 80px 5%;
    background: var(--light);
}

.timeline-container {
    width: 100%;
    margin-top: 40px;
}

.timeline-track {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive Grid */
    gap: 25px;
}

.month-card {
    padding: 35px;
    border-radius: 35px;
    background: white;
    border: 1px solid rgba(0, 77, 64, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Current Month Highlight Style */
.month-card.active-month {
    background: var(--primary);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 77, 64, 0.15);
}

.month-card.active-month .month-name,
.month-card.active-month h4,
.month-card.active-month p {
    color: white;
}

/* --- MOBILE SPECIFIC OVERRIDES --- */
@media (max-width: 768px) {
    .section-title {
        font-size: 2.2rem; /* Easier to read on mobile */
    }
    
    .timeline-track {
        grid-template-columns: 1fr; /* Stack cards vertically on phones */
    }

    .month-card {
        padding: 25px;
        border-radius: 25px;
    }
}
/* --- Professional Card Depth --- */
.bento-card {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 77, 64, 0.05); /* Very subtle primary tint */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1); /* Ultra-smooth motion */
}

/* The Hover Effect: Lift + Glow */
.bento-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 40px 80px rgba(0, 77, 64, 0.08);
    border: 1px solid rgba(0, 172, 193, 0.3); /* Accent glow on hover */
}

/* Refining the Image Overlay */
.card-image::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.05));
    pointer-events: none;
}

/* Professional Typography refinement */
.section-title {
    letter-spacing: -1px;
    font-weight: 700;
}

.section-description {
    max-width: 600px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
    color: #666;
}
/* --- Bento Calendar Layout --- */
.awareness-calendar { padding: 120px 8%; background: #fbfcfd; }

.calendar-bento {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
    max-width: 1200px;
    margin: 50px auto 0;
}

.month-nav-card {
    padding: 40px;
    background: white;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.02);
}

.month-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.month-btn {
    border: none;
    background: #f5f7f9;
    padding: 20px 10px;
    border-radius: 15px;
    font-family: inherit;
    font-weight: 600;
    color: #777;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.month-btn.active {
    background: var(--primary); /* Deep Teal from your :root */
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 77, 64, 0.2);
}

/* Info Card Styling */
.focus-display-card {
    padding: 80px;
    background: white;
    border-radius: 40px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.month-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: #aaa;
    margin-bottom: 20px;
}

#focus-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 25px;
}

#focus-description {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.8;
    max-width: 500px;
    margin-bottom: 30px;
}

.btn-text {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    border-bottom: 2px solid transparent;
    transition: 0.3s;
}

.btn-text:hover { border-bottom-color: var(--accent); }

/* Responsive Styling */
@media (max-width: 992px) {
    .calendar-bento { grid-template-columns: 1fr; }
    .focus-display-card { padding: 50px 30px; }
}
/* --- Bento Calendar Layout --- */
.calendar-bento-container {
    display: grid;
    grid-template-columns: 1fr 1.6fr; /* 5S Ratio: Balanced Control vs Content */
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.month-selector-card {
    padding: 40px;
    border-radius: 40px;
    background: white;
}

.selector-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.year-label { font-weight: 800; color: #ccc; letter-spacing: 2px; }

.month-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.month-btn {
    padding: 18px 5px;
    border-radius: 18px;
    border: none;
    background: #f8f9fa;
    font-family: inherit;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    transition: all 0.3s ease;
}

.month-btn:hover { background: #f0f2f5; color: var(--primary); }

.month-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 20px rgba(0, 77, 64, 0.2);
}

/* --- Content Card Detail --- */
.awareness-detail-card {
    padding: 80px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    min-height: 450px;
}

.detail-month-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 5px;
    color: #bbb;
    margin-bottom: 20px;
}

#detail-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 25px;
    line-height: 1.2;
}

#detail-description {
    font-size: 1.2rem;
    color: #555;
    max-width: 500px;
    margin-bottom: 35px;
}

.clinical-cta {
    text-decoration: none;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.95rem;
    transition: 0.3s;
}

.clinical-cta:hover { letter-spacing: 1px; }

@media (max-width: 992px) {
    .calendar-bento-container { grid-template-columns: 1fr; }
    .awareness-detail-card { padding: 40px; min-height: auto; }
}
/* --- Contact Page Refresh --- */
.contact-page {
    padding: 100px 8%;
    background-color: #f8f9fa; /* Light grey background like reference */
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Left Side Styles */
.contact-heading {
    font-size: 2.2rem;
    color: #444;
    margin-bottom: 40px;
    font-weight: 400;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.info-icon {
    font-size: 1.8rem;
    color: var(--accent); /* Using your #00acc1 variable */
}

.info-text strong {
    display: block;
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2px;
}

.info-text p {
    color: #777;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Right Side Form Styles */
.contact-form-side form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form-side input, 
.contact-form-side textarea {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px; /* Squarer edges as per reference */
    font-family: inherit;
    font-size: 0.95rem;
    background: white;
}

.contact-form-side input::placeholder, 
.contact-form-side textarea::placeholder {
    color: #aaa;
}

.btn-send {
    background: #00aeef; /* Bright sky blue from reference */
    color: white;
    border: none;
    padding: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    width: fit-content;
    padding: 12px 40px;
    transition: background 0.3s ease;
}

.btn-send:hover {
    background: var(--primary); /* Deep teal hover effect */
}

/* Mobile Responsiveness */
@media (max-width: 850px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}
/* --- Professional Navigation: Dynamic Theme --- */
nav { 
    position: fixed; 
    top: 0; 
    width: 100%; 
    height: 90px; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    z-index: 2000; 
    transition: all 0.4s ease;
    
    /* INITIAL STATE: White background, Black font */
    background: #ffffff; 
    border-bottom: 1px solid #eeeeee;
}

/* Initial Font Colors */
.logo { color: #000000; font-weight: 700; letter-spacing: 2px; }
.logo span { color: #555555; } /* Sub-logo text */
.nav-links a { color: #000000; font-weight: 600; text-decoration: none; transition: 0.3s; }

/* SCROLLED STATE: Black background, Blue font */
nav.scrolled { 
    height: 75px;
    background: #000000; /* Solid Black */
    border-bottom: 1px solid #333333;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

nav.scrolled .logo { color: #ffffff; }
nav.scrolled .logo span { color: var(--primary); } /* Using your bright blue */

nav.scrolled .nav-links a { 
    color: var(--primary); /* Bright Blue font #00aeef */
}

/* CTA Button remains consistent but adapts to state */
.btn-nav {
    background: var(--primary);
    color: white !important;
    padding: 10px 25px;
    border-radius: 50px;
}

nav.scrolled .btn-nav {
    background: #ffffff;
    color: #000000 !important; /* Inverts for contrast on black bar */
}
/* --- Navigation Master --- */
nav { 
    position: fixed; top: 0; width: 100%; height: 100px; 
    display: flex; align-items: center; justify-content: center;
    z-index: 2000; transition: all 0.4s ease;
    background: #ffffff; /* Initial state */
    border-bottom: 1px solid #eee;
}

/* --- Scrolled State (Image 2 Look) --- */
nav.scrolled { 
    height: 85px;
    background: #000000; 
    border-bottom: 1px solid #333;
}

.nav-container {
    width: 90%; max-width: 1400px;
    display: flex; justify-content: space-between; align-items: center;
}

/* --- Info Grid Styling --- */
.nav-info-grid { display: flex; gap: 35px; align-items: center; }
.nav-info-item { display: flex; align-items: center; gap: 10px; }
.nav-icon { font-size: 1.2rem; color: var(--primary); }
.nav-info-text strong { display: block; font-size: 0.6rem; color: #888; letter-spacing: 1px; }
.nav-info-text p { font-size: 0.85rem; font-weight: 600; color: #000; transition: 0.3s; }

/* Text color flip on scroll */
nav.scrolled .nav-info-text p, 
nav.scrolled .logo { color: #ffffff; }

/* --- Mobile Dropdown --- */
.mobile-dropdown {
    position: absolute;
    top: 100%; left: 0; width: 100%;
    background: #fff;
    max-height: 0; overflow: hidden;
    transition: max-height 0.4s ease;
}

nav.scrolled .mobile-dropdown { background: #111; }
.mobile-dropdown.active { max-height: 350px; border-bottom: 2px solid var(--primary); }

/* --- Hide Grid on Mobile (5S Ergonomics) --- */
@media (max-width: 1150px) {
    .nav-info-grid, .nav-links { display: none; }
}
/* --- Unified Contact Card UI --- */
.contact-section {
    padding: 80px 0;
    background: #f8f9fa; /* Slight contrast to the white card */
}

.contact-unified-card {
    max-width: 700px; /* Constrains width for professional readability */
    margin: 0 auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.08);
    overflow: hidden; /* Keeps the header and form tucked in */
    border: 1px solid #eee;
}

/* Header Area */
.contact-header {
    background: #ffffff;
    padding: 40px 50px 20px;
    text-align: center;
}

.header-info-strip {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

.header-info-strip .divider {
    color: var(--primary);
    font-weight: 300;
}

/* Form Area */
.unified-form {
    padding: 0 50px 50px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.unified-form input, 
.unified-form textarea {
    width: 100%;
    padding: 15px;
    margin-top: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #fbfcfd;
    font-family: inherit;
    transition: 0.3s;
}

.unified-form input:focus {
    border-color: var(--primary);
    background: #fff;
    outline: none;
}

/* The Solid Action Button */
.btn-submit-unified {
    width: 100%;
    margin-top: 25px;
    padding: 18px;
    background: #000; /* High-contrast black */
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-submit-unified:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

/* Responsive Mobile Tweak */
@media (max-width: 600px) {
    .contact-header, .unified-form { padding: 30px 20px; }
    .form-row { grid-template-columns: 1fr; }
}
/* --- Updated Mobile Link Colors --- */
.mobile-nav-links li a {
    text-decoration: none;
    color: var(--primary); /* Changed from var(--dark) to your Bright Sky Blue */
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

/* Ensure links are bright blue even on the black scrolled background */
nav.scrolled .mobile-nav-links li a {
    color: var(--primary); 
}

/* Hover state for better ergonomics */
.mobile-nav-links li a:hover {
    color: var(--accent); /* Soft Baby Blue hover effect */
    padding-left: 5px;
}
@media (min-width: 1151px) {
    #mobile-dropdown, .menu-toggle {
        display: none !important;
    }
}
/* --- Updated Mobile Link Styling --- */
.mobile-nav-links {
    list-style: none;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center; /* Centers the list items */
}

.mobile-nav-links li a {
    text-decoration: none;
    color: var(--primary); /* Bright Sky Blue from your reference */
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-block; /* Required for proper underline sizing */
}

/* --- Hover State: Blue Underline, No Grey --- */
.mobile-nav-links li a:hover {
    color: var(--primary); /* Keeps it blue instead of turning grey */
    text-decoration: underline; /* Adds the underline */
    text-decoration-color: var(--primary); /* Ensures underline is the correct blue */
    text-underline-offset: 8px; /* Ergonomic spacing for readability */
}
@media (min-width: 1151px) {
    .menu-toggle, 
    #mobile-dropdown {
        display: none !important; /* Forces removal on desktop */
    }
}
/* Logo Container Styling */
.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 100%;
}

.nav-logo {
    height: 50px; /* Adjust height to fit your 90px nav bar */
    width: auto;  /* Maintains aspect ratio */
    transition: transform 0.3s ease;
}

/* Ergonomic Hover Effect */
.nav-logo:hover {
    transform: scale(1.02);
}

/* Adjust for Mobile View */
@media (max-width: 1150px) {
    .nav-logo {
        height: 40px; /* Slightly smaller on mobile for better spacing */
    }
}
/* --- Dr. Introduction Section --- */
.dr-intro-section {
    padding: 100px 0;
    /* This creates the slight grey section you requested */
    background-color: #f8f9fa; 
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.dr-card-horizontal {
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 60px;
    border-radius: 40px;
    max-width: 1100px;
    margin: 0 auto;
    /* Keeping the card white so it stands out against the grey background */
    background: #ffffff; 
    box-shadow: var(--shadow-soft);
}

/* Ergonomic Mobile View */
@media (max-width: 992px) {
    .dr-intro-section {
        padding: 60px 20px;
    }
    .dr-card-horizontal {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
        gap: 30px;
    }
}
/* --- Dynamic Navigation Underlines --- */

/* 1. Initial State: White Navbar / Blue Underline */
.nav-links li a {
    position: relative;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary); /* Bright Sky Blue underline */
    transition: width 0.3s ease;
}

.nav-links li a:hover::after {
    width: 100%;
}

/* 2. Scrolled State: Black Navbar / White Underline */
nav.scrolled .nav-links li a::after {
    background-color: #ffffff; /* White underline for contrast on black */
}

/* Ensure mobile links follow the same logic if visible */
nav.scrolled .mobile-nav-links li a:hover {
    text-decoration: underline;
    text-decoration-color: #ffffff;
}
/* --- Optimized Mobile Info Grid --- */
@media (max-width: 1150px) {
    /* Keep the grid visible but allow it to wrap */
    .nav-info-grid { 
        display: flex !important; 
        gap: 15px; 
        margin-right: 15px;
    }

    /* Adjust text size for smaller screens so it doesn't overlap */
    .nav-info-text p {
        font-size: 0.7rem;
    }
    
    .nav-info-text strong {
        font-size: 0.5rem;
    }

    /* Ensure the "hide" classes from HTML are overridden */
    .hide-mobile, .hide-small {
        display: flex !important;
    }
    
    /* Hide the desktop nav links to make room for the info */
    .nav-links { 
        display: none; 
    }
}

/* Specific fix for very small phones (Portrait) */
@media (max-width: 480px) {
    .nav-info-grid {
        gap: 10px;
    }
    /* Hide the labels (HOURS/LOCATION) to save vertical space, keep icons and data */
    .nav-info-text strong {
        display: none;
    }
    .nav-logo {
        height: 35px;
    }
}
@media (max-width: 768px) {
    /* Stack the buttons vertically like the mobile menu */
    .hero-btns {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        gap: 15px; /* Spacing between the buttons */
        width: 100%;
    }

    /* Style the buttons to match the mobile menu blue and white look */

/* 1. Hide the button on Laptops/Desktops by default */
.mobile-only-btn {
    display: none !important;
}

/* 2. Show the button ONLY on Mobile (768px and below) */
@media (max-width: 768px) {
    .mobile-only-btn {
        display: block !important; /* Changes from hidden to visible */
        width: 80%;
        text-align: center;
        background-color: #00aeef;
        color: white !important;
        padding: 15px;
        border-radius: 8px;
        font-weight: bold;
    }
 /* --- Professional Desktop Button Styles --- */
.hero-btns {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.hero-btns a {
    padding: 14px 28px;
    border-radius: 50px; /* Modern pill shape is more ergonomic/friendly */
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    letter-spacing: 0.5px;
    display: inline-block;
}

/* "Our Services" - Ghost Button Style */
.hero-btns a[href="#services"] {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
}

.hero-btns a[href="#services"]:hover {
    background: white;
    color: #333;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* --- Mobile Professional Styles (768px and below) --- */
@media (max-width: 768px) {
    .hero-btns {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100%;
    }

    .hero-btns a {
        width: 85%; /* Optimal width for thumb-reach ergonomics */
        padding: 16px;
        font-size: 1.1rem;
        text-align: center;
    }

    /* The "Book Appointment" button - Visible ONLY on mobile */
    .mobile-only-btn {
        display: block !important;
        background: #00aeef; /* The professional Optometry Blue */
        color: white !important;
        border: none;
        box-shadow: 0 4px 12px rgba(0, 174, 239, 0.3);
    }

    /* "Our Services" adjustment for mobile */
    .hero-btns a[href="#services"] {
        border: 2px solid #00aeef;
        color: #00aeef !important;
        background: transparent;
    }
}

/* Hide mobile-only button on Desktop */
@media (min-width: 769px) {
    .mobile-only-btn {
        display: none !important;
    }
}   
    /* Optional: Stack the buttons vertically on mobile for ergonomics */
}



