/*
Theme Name: FreshDew Medical Clinic
Theme URI: https://www.freshdewmedicalclinic.com
Author: FreshDew Medical Clinic
Author URI: https://www.freshdewmedicalclinic.com
Description: A modern, responsive WordPress theme for FreshDew Medical Clinic with full hospital management system integration.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: Proprietary
License URI: 
Text Domain: freshdew-medical
Tags: healthcare, medical, hospital, responsive, modern
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: clip;
    width: 100%;
    max-width: 100vw;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
    width: 100%;
    max-width: 100vw;
    margin: 0;
    padding: 0;
    position: relative;
    height: auto;
    min-height: 100%;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

/* Ensure header container doesn't interfere with sticky */
.site-header .container {
    position: relative;
}

/* Header Styles */
.site-header {
    background: #ffffff !important; /* Solid white - NO backdrop-filter (it breaks position:fixed on mobile menu children) */
    box-shadow: 0 2px 12px rgba(0,0,0,0.08) !important;
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 10000 !important;
    padding: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    margin-top: 0 !important;
}

/* Make header-content a positioning context for mobile menu */
.header-content {
    position: relative;
}

/* Hide WordPress Admin Bar on Frontend - Force Hide */
#wpadminbar,
html #wpadminbar {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    top: -9999px !important;
}

/* Remove admin bar spacing */
.admin-bar .site-header,
body.admin-bar .site-header,
html.admin-bar .site-header {
    top: 0 !important;
    margin-top: 0 !important;
}

.admin-bar body,
body.admin-bar,
html.admin-bar body {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Ensure header is always at top */
body .site-header,
html body .site-header {
    top: 0 !important;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Increased vertical padding for better spacing */
    padding: 1.25rem 0 !important;
    position: relative;
}

.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    z-index: 1001;
    transition: transform 0.3s ease;
}

.site-logo::before,
.site-logo::after {
    content: none !important;
    display: none !important;
}

.site-logo:hover {
    transform: scale(1.05);
}

.site-logo {
    gap: 0.75rem;
}

.site-logo .brand-logo,
.site-logo img {
    /* Match previous red cross logo size */
    height: 50px;
    width: 50px;
    border-radius: 9999px;
    object-fit: contain;
    background: transparent;
    padding: 0;
    box-shadow: none;
    flex: 0 0 auto;
}

.site-logo .brand-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.05;
}

.site-logo .brand-name {
    /* Bigger to match new logo */
    font-size: 1.875rem;
    font-weight: 800;
    color: #2563eb;
    letter-spacing: -0.4px;
}

.site-logo .brand-tagline {
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
}

.logo-image {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

/* Mobile Menu Toggle Button - no border ever */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    border-radius: 4px;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 10002;
    position: relative;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: #fff7ed;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover,
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus-visible {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}
.mobile-menu-toggle::-moz-focus-inner {
    border: 0 !important;
    padding: 0 !important;
}

.mobile-menu-toggle .hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 26px;
}

.mobile-menu-toggle .bar {
    width: 100%;
    height: 3px;
    background: #F97316;
    border: none !important;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle .close-icon {
    border: none !important;
    font-size: 36px;
    color: #F97316;
    font-weight: bold;
    line-height: 1;
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    margin: 0;
}

.main-navigation a {
    text-decoration: none;
    color: #000000 !important;
    font-weight: 600;
    font-size: 1.125rem !important;
    transition: all 0.3s;
    padding: 0.5rem 1rem;
    position: relative;
    border-radius: 6px;
}

/* Stronger selector in case other CSS overrides */
.site-header .main-navigation .nav-menu > li > a {
    font-size: 1rem !important;
}

/* Active state (works with WP classes + JS + aria-current) */
.site-header .main-navigation a[aria-current="page"] {
    color: #2563eb !important;
    background: #eff6ff !important;
    font-weight: 700 !important;
    border-bottom: 3px solid #2563eb !important;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.main-navigation a:hover {
    color: #2563eb;
    background: #f3f4f6;
}

.main-navigation a:hover::after {
    width: 60%;
}

/* Register button styling - Hidden */
.register-link-nav {
    display: none !important;
}

/* Emeka Owo card - visible for editing */
.emeka-owo-card {
    display: flex !important;
}

/* Hide telehealth consultation section */
.telehealth-consultation-section {
    display: none !important;
}

.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a,
.main-navigation a.current,
.main-navigation a.active {
    color: #2563eb !important;
    background: #eff6ff !important;
    font-weight: 700 !important;
    border-bottom: 3px solid #2563eb !important;
}

.main-navigation .current-menu-item > a::after,
.main-navigation .current_page_item > a::after {
    width: 60%;
}

/* Auth Links in Navigation */
.nav-auth-links {
    display: none !important;
}

.auth-link,
.site-header .main-navigation .nav-auth-links .auth-link {
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    padding: 0.4rem 1rem !important;
    border-radius: 6px !important;
    transition: all 0.2s ease;
    white-space: nowrap;
    border-bottom: none !important;
    position: relative;
}

.site-header .main-navigation .nav-auth-links .auth-link::after {
    display: none !important;
}

.auth-link.auth-login,
.site-header .main-navigation .nav-auth-links .auth-link.auth-login {
    background: #2563eb !important;
    color: #ffffff !important;
    padding: 0.4rem 1rem;
    border-radius: 6px;
}

.auth-link.auth-login:hover,
.site-header .main-navigation .nav-auth-links .auth-link.auth-login:hover {
    background: #1d4ed8 !important;
    color: #ffffff !important;
}

.auth-link.auth-dashboard {
    background: #059669;
    color: #ffffff !important;
}

.auth-link.auth-dashboard:hover {
    background: #047857;
    color: #ffffff !important;
}

.auth-link.auth-logout,
.site-header .main-navigation .nav-auth-links .auth-link.auth-logout {
    background: #dc2626 !important;
    color: #ffffff !important;
    padding: 0.4rem 1rem;
    border-radius: 6px;
}

.auth-link.auth-logout:hover,
.site-header .main-navigation .nav-auth-links .auth-link.auth-logout:hover {
    background: #b91c1c !important;
    color: #ffffff !important;
}

/* Hero Section - Matching TSX HeroSection */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    overflow: hidden;
}

.hero-background-wrapper {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(1.1) contrast(1.05) saturate(1.05) !important;
    -webkit-filter: brightness(1.1) contrast(1.05) saturate(1.05) !important;
}

.hero-content {
    position: relative;
    z-index: 20;
    max-width: 48rem;
    padding: 2rem;
    padding-top: 2.5rem; /* Reduced from 4rem to reduce white space above badge */
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 1.5rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    margin-right: 0.5rem;
    animation: pulse 2s infinite;
}

.badge-text {
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 500;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4.5rem;
    }
    
    /* Team cards - flex row on desktop */
    .team-card {
        flex-direction: row !important;
        align-items: center !important;
    }
    
    .team-card .team-card-image {
        width: 40% !important;
        min-width: 300px;
        height: 300px !important;
        max-height: 300px !important;
        flex-shrink: 0;
        border-radius: 0.75rem 0.75rem 0 0 !important;
        overflow: hidden !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .team-card .team-card-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center top !important;
    }
    
    .team-card .team-card-image img[alt="Karen Howald"] {
        object-position: center 20% !important;
    }
    
    /* Ensure Emeka Owo matches on desktop */
    .emeka-owo-card .team-card-image {
        width: 40% !important;
        min-width: 300px;
        height: 300px !important;
        max-height: 300px !important;
        flex-shrink: 0;
    }
    
    .emeka-owo-card .team-card-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center top !important;
    }
    
    .team-card > div:not(.team-card-image) {
        width: 60% !important;
        display: flex;
        flex-direction: column;
    }
    
    .team-card-content {
        display: flex !important;
        flex-direction: column !important;
    }
    
    .team-card-content h3 {
        flex-shrink: 0;
    }
    
    .team-card-content p:nth-of-type(1) {
        flex-shrink: 0;
    }
    
    .team-card-content p:nth-of-type(2) {
        flex-grow: 0;
    }
    
    .team-card-content a {
        flex-shrink: 0;
        margin-top: 1.5rem;
    }
}

/* Team card image constraints for all screen sizes */
.team-card-image {
    height: 300px !important;
    max-height: 300px !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.team-card-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center top !important;
}

/* Special handling for Karen's image to show face */
.team-card-image img[alt="Karen Howald"] {
    object-fit: cover !important;
    object-position: center 20% !important;
}

/* Ensure Emeka Owo image box matches other cards exactly */
.emeka-owo-card .team-card-image {
    height: 300px !important;
    max-height: 300px !important;
    min-height: 300px !important;
}

.emeka-owo-card .team-card-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center top !important;
}

/* Desktop-only team card layout adjustments */
@media (min-width: 768px) {
    .team-card > div:not(.team-card-image) {
        width: 60% !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .team-card-content {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
    }
    
    /* Make Book Appointment button smaller on desktop team cards */
    .team-card a[href*="myhealthaccess"] {
        display: inline-block !important;
        width: auto !important;
        max-width: 100%;
    }
    
    .team-card img[alt="Book Appointment Online"] {
        max-width: 100% !important;
        height: auto !important;
        width: auto !important;
        max-height: 60px !important;
        object-fit: contain;
        display: block;
    }
}

.hero-title-gradient {
    display: block;
    color: #6DDDFF;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 2rem;
    max-width: 42rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

/* Hide stats/metrics section in hero - ensure it's completely hidden */
.hero-content > div[style*="grid-template-columns"],
.hero-content > div:has(> div[style*="backdrop-filter: blur(10px)"][style*="rgba(255,255,255,0.05)"]),
.hero-section .stats,
.hero-section [style*="24/7"],
.hero-section [style*="98%"],
.hero-section [style*="50+"],
.hero-section [style*="15min"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

.btn-primary-hero {
    background: rgba(255, 255, 255, 0.95);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 9999px;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
}

.btn-primary-hero:hover {
    background: white;
    color: white;
    transform: translateY(-2px);
}

.btn-outline-hero {
    background: transparent;
    color: white;
    padding: 0.875rem 2rem;
    border: 2px solid white;
    border-radius: 9999px;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s;
}

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

.btn-ghost-hero {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 9999px;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-ghost-hero:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    transform: translateY(-2px);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.btn:hover {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

.btn:active {
    transform: translateY(0);
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
    box-shadow: 0 2px 4px rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.btn-outline:hover {
    background: white;
    color: #2563eb;
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.3);
}

/* Footer */
.site-footer {
    background: #003B65;
    color: #FFE0C3;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

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

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: #F89928;
    font-weight: 600;
}

/* Exclude brand name from footer-section h3 styles */
/* Footer brand name and tagline now use same classes as navbar */

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #FFE0C3;
}

.footer-section p {
    color: #ffffff;
    line-height: 1.7;
}

.footer-description {
    margin-bottom: 0;
}

.footer-description-border {
    display: none;
    border-top: 1px solid #F0BD2D;
    margin-top: 1rem;
    padding-top: 1rem;
}

/* Hide footer border on screens 564px and above */
@media (min-width: 564px) {
    .footer-description-border {
        display: none !important;
    }
}

/* Show footer border only on mobile (up to 563px) */
@media (max-width: 563px) {
    .footer-description-border {
        display: block !important;
    }
}

/* Footer brand text - match navbar structure */
.footer-brand-text {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    line-height: 1.05;
    background: white;
    border-radius: 0.375rem;
    border: 2px solid #e5e7eb;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 0.25rem 0.5rem;
    width: fit-content;
}

.footer-brand-text .brand-logo,
.footer-brand-text img {
    height: 50px;
    width: 50px;
    border-radius: 9999px;
    object-fit: contain;
    flex: 0 0 auto;
}

.footer-brand-text .brand-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.05;
}

.footer-brand-text .brand-name {
    font-size: 2rem;
    font-weight: 800;
    color: #2563eb;
    letter-spacing: -0.4px;
    margin: 0;
}

.footer-brand-text .brand-tagline {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.footer-brand-text:hover {
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Footer brand name and tagline now use same classes as navbar - styles defined above */

/* Removed duplicate - using the main .footer-brand-text rule above */

.footer-section address {
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #F0BD2D;
    color: #ffffff;
}

/* Social Media Icons */
.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.social-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-icon svg {
    width: 24px;
    height: 24px;
    z-index: 2;
    position: relative;
}

.social-icon::before {
    content: '';
    position: absolute;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 4px solid transparent;
    box-sizing: border-box;
    pointer-events: none;
    z-index: 1;
    will-change: border-color;
}

.social-icon:hover {
    color: #ffffff;
}

.social-icon:hover::before {
    animation: drawCircleClockwise 0.6s ease-out forwards;
}

.social-icon:not(:hover)::before {
    animation: eraseCircleCounterClockwise 0.4s ease-in forwards;
}

@keyframes drawCircleClockwise {
    0% {
        border-top-color: transparent;
        border-right-color: transparent;
        border-bottom-color: transparent;
        border-left-color: transparent;
    }
    12.5% {
        border-top-color: #F0BD2D;
        border-right-color: transparent;
        border-bottom-color: transparent;
        border-left-color: transparent;
    }
    25% {
        border-top-color: #F0BD2D;
        border-right-color: #F0BD2D;
        border-bottom-color: transparent;
        border-left-color: transparent;
    }
    37.5% {
        border-top-color: #F0BD2D;
        border-right-color: #F0BD2D;
        border-bottom-color: transparent;
        border-left-color: transparent;
    }
    50% {
        border-top-color: #F0BD2D;
        border-right-color: #F0BD2D;
        border-bottom-color: #F0BD2D;
        border-left-color: transparent;
    }
    62.5% {
        border-top-color: #F0BD2D;
        border-right-color: #F0BD2D;
        border-bottom-color: #F0BD2D;
        border-left-color: transparent;
    }
    75% {
        border-top-color: #F0BD2D;
        border-right-color: #F0BD2D;
        border-bottom-color: #F0BD2D;
        border-left-color: #F0BD2D;
    }
    87.5% {
        border-top-color: #F0BD2D;
        border-right-color: #F0BD2D;
        border-bottom-color: #F0BD2D;
        border-left-color: #F0BD2D;
    }
    100% {
        border-top-color: #F0BD2D;
        border-right-color: #F0BD2D;
        border-bottom-color: #F0BD2D;
        border-left-color: #F0BD2D;
    }
}

@keyframes eraseCircleCounterClockwise {
    0% {
        border-top-color: #F0BD2D;
        border-right-color: #F0BD2D;
        border-bottom-color: #F0BD2D;
        border-left-color: #F0BD2D;
    }
    12.5% {
        border-top-color: #F0BD2D;
        border-right-color: #F0BD2D;
        border-bottom-color: #F0BD2D;
        border-left-color: transparent;
    }
    25% {
        border-top-color: #F0BD2D;
        border-right-color: #F0BD2D;
        border-bottom-color: transparent;
        border-left-color: transparent;
    }
    37.5% {
        border-top-color: #F0BD2D;
        border-right-color: transparent;
        border-bottom-color: transparent;
        border-left-color: transparent;
    }
    50% {
        border-top-color: transparent;
        border-right-color: transparent;
        border-bottom-color: transparent;
        border-left-color: transparent;
    }
    100% {
        border-top-color: transparent;
        border-right-color: transparent;
        border-bottom-color: transparent;
        border-left-color: transparent;
    }
}

/* Contact Info */
.contact-info {
    line-height: 1.8;
}

.contact-info address {
    font-style: normal;
}

/* Map Container */
.map-container {
    width: 100%;
    height: 400px;
    border-radius: 0.5rem;
    overflow: hidden;
    margin: 2rem 0;
    max-width: 100%;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    pointer-events: auto;
}

@media (max-width: 768px) {
    .map-container {
        width: 100% !important;
        max-width: 100% !important;
        height: 300px !important;
        margin: 1rem 0 !important;
    }
    
    .map-container iframe {
        width: 100% !important;
        height: 300px !important;
        touch-action: pan-x pan-y;
    }
}

/* Responsive - Mobile Menu */
@media (max-width: 768px) {
    /* Prevent horizontal overflow on mobile (use clip to not break sticky header) */
    html, body {
        overflow-x: clip !important;
        width: 100% !important;
        max-width: 100vw !important;
    }
    
    /* Fix mobile team card text alignment and width */
    .team-card {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .team-card-content {
        width: 100% !important;
        max-width: 100% !important;
        padding: 2rem 1.5rem !important;
        box-sizing: border-box !important;
    }
    
    .team-card-content h3,
    .team-card-content p,
    .team-card-content a {
        width: 100% !important;
        max-width: 100% !important;
        text-align: left !important;
        padding: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }
    
    /* Increase font sizes for mobile */
    .team-card-content h3 {
        font-size: 1.75rem !important;
    }
    
    .team-card-content p {
        font-size: 1.125rem !important;
    }
    
    .team-card-content p:first-of-type {
        font-size: 1rem !important;
    }
    
    .container {
        max-width: 100% !important;
        padding: 0 16px !important;
    }
    
    * {
        max-width: 100% !important;
    }
    
    img, video, iframe {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Service card images should fill their containers on mobile */
    .services-grid img,
    [style*="height: 300px"] img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        vertical-align: top !important;
    }
    
    /* Ensure service card image containers maintain height on mobile */
    [style*="height: 300px"][style*="overflow: hidden"] {
        height: 300px !important;
        min-height: 300px !important;
        max-height: 300px !important;
    }
    
    /* Ensure header is sticky on mobile */
    .site-header {
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 10000 !important;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .main-navigation {
        position: fixed;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: calc(85% - 70px); /* 85% of viewport minus header height */
        max-height: calc(85vh - 70px);
        background: #fafafa;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        transition: right 0.5s ease;
        z-index: 10001;
        padding: 0;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        border-radius: 0 0 0 0.75rem;
        top: 70px; /* Position directly below header */
        left: auto;
        margin-top: 0;
    }
    
    .main-navigation.active {
        right: 0;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
        margin: 0;
        padding: 0;
        align-items: center;
    }
    
    .main-navigation li {
        width: 100%;
        border-bottom: 1px solid #e5e7eb;
        text-align: center;
    }
    
    .main-navigation a {
        display: block;
        padding: 1.25rem 1.5rem;
        font-size: 1.25rem;
        color: #1f2937;
        border-radius: 0;
        margin: 0 1rem;
        font-weight: 500;
        text-align: center;
    }
    
    .main-navigation a::after {
        display: none;
    }
    
    .main-navigation a:hover {
        color: #2563eb;
        background: #f3f4f6;
    }
    
    .main-navigation .current-menu-item > a,
    .main-navigation .current_page_item > a {
        color: #2563eb;
        background: #eff6ff;
        font-weight: 700;
    }
    
    /* Auth links in mobile menu */
    .nav-auth-links {
        display: none !important;
    }
    
    .nav-auth-links .auth-link {
        display: block;
        padding: 1.25rem 1.5rem;
        text-align: center;
        border-radius: 0;
        margin: 0 1rem;
        font-size: 1.25rem;
        font-weight: 500;
        width: auto;
    }
    
    .nav-auth-links .auth-link.auth-login,
    .nav-auth-links .auth-link.auth-logout {
        background: #2563eb;
        color: #ffffff !important;
        border-radius: 6px;
        margin: 0.75rem 1.5rem;
        padding: 1rem 1.5rem;
    }
    
    .nav-auth-links .auth-link.auth-logout {
        background: #dc2626;
    }
    
    /* Register button in mobile menu */
    .register-link-nav {
        display: none !important;
    }
    
    /* Register button visible in mobile menu with yellow background */
    
    body.menu-open {
        overflow: hidden;
    }
    
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 10000; /* Above header, below menu */
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.5s ease;
    }
    
    body.menu-open::before {
        opacity: 1;
        pointer-events: auto;
    }
    
    /* When menu is open, switch header to fixed so it never scrolls away */
    body.menu-open .site-header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 10002 !important;
    }
    
    body.menu-open .header-content {
        position: relative !important;
        z-index: 10003 !important;
    }
    
    body.menu-open .mobile-menu-toggle {
        position: relative !important;
        z-index: 10004 !important;
    }
    
    .hero-section {
        height: 100dvh !important; /* Dynamic viewport height for mobile */
        min-height: 100vh !important;
        display: flex !important;
        align-items: center !important;
    }
    
    .hero-background-wrapper,
    .hero-background {
        height: 100dvh !important;
        min-height: 100vh !important;
    }
    
    .hero-content {
        padding: 1rem !important;
        padding-top: 1rem !important; /* Reduced white space above "Accepting New Patients" */
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
    }
    
    .hero-badge {
        margin-bottom: 0.75rem !important; /* Reduce space below badge */
    }
    
    .hero-title {
        font-size: 2rem !important;
        text-shadow: none !important;
        line-height: 1.2 !important;
        margin-bottom: 0.5rem !important;
    }
    
    .hero-subtitle {
        color: #ffffff !important;
        text-shadow: none !important;
        font-size: 1rem !important;
        line-height: 1.4 !important;
        margin-bottom: 0.5rem !important;
    }
    
    .hero-title-gradient {
        color: #6DDDFF !important;
        text-shadow: none !important;
        font-size: 2.25rem !important;
        line-height: 1.2 !important;
        margin-bottom: 0.5rem !important;
    }
    
    .badge-text {
        font-size: 1rem !important;
        text-shadow: none !important;
    }
    
    .header-content {
        padding: 1rem 0 !important;
    }
    
    /* Mobile menu already set to top: 0 with padding-top for header space */
    
    .logo-image,
    .site-logo svg {
        height: 60px !important;
        width: auto;
    }
    
    /* Footer mobile styles */
    .footer-section h3 {
        font-size: 1.5rem !important;
    }
    
    /* Footer border is handled by max-width: 639px media query above */
    
    /* Footer logo and text sizing for mobile */
    .footer-brand-text .brand-name {
        font-size: 1.6rem !important;
    }
    
    .footer-brand-text .brand-tagline {
        font-size: 1.05rem !important;
    }
    
    /* Footer brand text container - ensure visibility on mobile */
    .footer-brand-text {
        background: white;
        border-radius: 0.375rem;
        border: 2px solid #e5e7eb;
        padding: 0.5rem;
        width: fit-content;
    }
    }

    /* Force navbar readability on mobile */
    .site-header .main-navigation a {
        font-size: 1rem !important;
        font-weight: 600 !important;
    }
    
    .logo-text {
        font-size: 1.25rem;
    }
}

