/* ==========================================
   1. CORE VARIABLES & RESET
   ========================================== */
:root {
    --color-primary-dark: #1E3F3E;
    --color-primary-sage: #7D8E74;
    --color-accent-gold: #B89655;
    --color-bg-light: #F9FBF9;
    --color-text-main: #2C3333;
    --radius-pill: 8px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 140px;
}

body {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0;
    padding: 0;
    position: relative;
}

/* Fix Bootstrap row leak */
.row {
    margin-right: 0 !important;
    margin-left: 0 !important;
    width: 100% !important;
}

/* ==========================================
   2. STICKY HEADERS (ANNOUNCEMENT & NAV)
   ========================================== */
.announcement-bar {
    position: sticky !important;
    top: 0;
    width: 100%;
    z-index: 1000 !important;
}

.navbar.sticky-top {
    position: sticky !important;
    top: 39px !important; /* Adjust based on bar height */
    width: 100%;
    z-index: 999 !important;
    background: #fff !important;
    padding: 12px 0 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
    overflow: visible !important;
}

.navbar .container {
    display: flex !important;
    flex-wrap: nowrap !important; 
    justify-content: space-between !important;
    align-items: center !important;
    overflow: visible !important;
}

.nav-logo {
    height: 70px !important;
    width: auto !important;
    display: block;
}

/* ==========================================
   3. Mobile Contact Dock Styling
   ========================================== */

.mobile-contact-dock {
    position: fixed;
    bottom: 0; /* Align to bottom */
    left: 0;
    width: 100%;
    padding-bottom: 20px; /* This creates the "Floating" space for the shadow */
    z-index: 9999;
    /* Animation remains the same */
    animation: slideUpDock 0.8s ease forwards;
}

.btn-dock {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px; /* Slightly taller for better touch */
    border-radius: 18px; /* Rounder corners look more boutique */
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    /* THE DEEP SHADOW FIX */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), 
                0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Add a slight lift when the user taps the button */
.btn-dock:active {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
}

/* Colors - Keeping your variables */
.call-dock {
    background-color: var(--color-primary-dark);
    color: white !important;
}

.email-dock {
    background-color: #ffffff; /* White background makes shadows pop more */
    color: var(--color-primary-dark) !important;
    border: 1px solid rgba(0,0,0,0.05);
}

/* Icon specific color for the email if you use white background */
.email-dock i {
    color: var(--color-accent-gold);
}

@keyframes slideUpDock {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ==========================================
   3. WEB NAVIGATION & HOVER DROPDOWN
   ========================================== */
.custom-nav-link {
    color: var(--color-primary-dark) !important;
    font-weight: 500;
    text-decoration: none !important;
    transition: 0.3s ease;
    display: flex;
    align-items: center;
}

.custom-nav-link:hover {
    color: var(--color-accent-gold) !important;
}

.web-dropdown-container {
    position: relative;
    display: flex;
    align-items: center;
}

.web-square-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #fff;
    min-width: 250px;
    list-style: none;
    padding: 15px 0;
    margin: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-top: 4px solid var(--color-accent-gold);
    border-radius: 0 0 6px 6px;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 9999;
}

.web-dropdown-container:hover .web-square-dropdown {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.web-square-dropdown li a {
    display: block;
    padding: 10px 20px;
    color: var(--color-primary-dark) !important;
    font-size: 14px;
    text-decoration: none !important;
    transition: 0.2s;
}

.web-square-dropdown li a:hover {
    background: var(--color-bg-light);
    color: var(--color-accent-gold) !important;
    padding-left: 25px;
}

/* Rotate Arrow on Hover */
.web-dropdown-container:hover .bi-chevron-down {
    transform: rotate(180deg);
    transition: 0.3s;
}

#bookingNoticeModal .modal-content {
    box-shadow: 0 15px 50px rgba(0,0,0,0.2);
}

#bookingNoticeModal .bi-calendar-event {
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Sidebar Menu Button Highlight */
.menu-btn-highlight {
    /*background-color: var(--color-accent-gold) !important;*/
    color: var(--color-accent-gold) !important;
    text-align: center;
    padding: 12px 25px !important;
    border-radius: 12px;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 10px 20px; /* Gives it some space from the edges */
    box-shadow: 0 4px 15px rgba(184, 150, 85, 0.3);
    transition: all 0.3s ease;
    display: block; /* Makes it full width in the side menu */
}

.menu-btn-highlight:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(184, 150, 85, 0.4);
}

/* Ensure the Modal is always on top of everything else */
.modal {
    z-index: 10005 !important;
}

.modal-backdrop {
    z-index: 10004 !important;
}

/* Ensure the side menu is below the modal */
.offcanvas, .offcanvas-backdrop {
    z-index: 10000 !important;
}

/* ==========================================
   4. CLEAN OFFCANVAS (MOBILE SIDE MENU)
   ========================================== */
.offcanvas {
    background-color: #ffffff !important;
    z-index: 999999 !important; /* Higher than sticky bars */
}

.offcanvas-backdrop {
    z-index: 999998 !important;
}

.offcanvas-header .btn-close {
    z-index: 999999 !important;
    position: relative;
    opacity: 1;
}

.side-link-minimal {
    text-decoration: none !important;
    color: var(--color-primary-dark) !important;
    font-size: 19px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: 0.3s ease;
    display: inline-block;
}

.side-link-minimal:hover {
    color: var(--color-accent-gold) !important;
    transform: translateY(-2px);
}

/* Social Icons in Menu */
.offcanvas-body a i {
    transition: 0.3s;
    color: var(--color-primary-dark);
}

.offcanvas-body a i:hover {
    color: var(--color-accent-gold);
}

/* ==========================================
   5. HERO SECTION & COMPONENTS
   ========================================== */
.hero-section {
    z-index: 1;
    position: relative;
    /*padding-top: 140px !important;*/
    overflow: hidden;
}

.bg-shape-wrap {
    pointer-events: none !important;
    z-index: -1 !important;
}

.billing-seal {
    position: absolute;
    /* Anchor it to the top-right of the image area */
    top: -70px;
    right: -10px; 
    width: 180px;
    height: auto;
    background: #ffffff;
    box-shadow: 0 12px 25px rgba(0,0,0,0.12);
    /* A subtle tilt makes it look like a physical sticker/seal */
    transform: rotate(8deg);
    z-index: 10;
    /* Professional border to separate it from the background */
    transition: transform 0.3s ease;
}

.billing-seal:hover {
    transform: rotate(0deg) scale(1.05);
}

.billing-seal img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- HERO INFO CARDS SECTION --- */

.stats-overlap-wrapper {
    position: relative;
    z-index: 20;
    margin-top: -60px; /* Pulls cards onto the hero image */
}

.info-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 15px 10px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    text-decoration: none !important;
    transition: all 0.3s ease;
    border-bottom: 4px solid transparent;
    overflow: hidden;
    position: relative;
}

/* Hover effect for clickable cards */
.info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.15);
}

/* Specific Border Colors */
.card-hours { border-bottom-color: #B89655; cursor: default; }
.card-booking { border-bottom-color: #7D8E74; }
.card-hotline { border-bottom-color: #1E3F3E; }

.info-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1E3F3E;
    margin-bottom: 2px;
}

.info-main-text {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1E3F3E;
    margin-bottom: 0;
}

.info-label {
    color: #6c757d;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
    margin-bottom: 0;
}

/* Subtle background icon for the links */
.card-bg-icon {
    position: absolute;
    right: -10px;
    bottom: -10px;
    font-size: 4rem;
    opacity: 0.05;
    transform: rotate(-15deg);
}

/* --- RESPONSIVE FIXES --- */
@media (max-width: 991px) {
    .stats-overlap-wrapper {
        margin-top: 30px; /* Moves cards below hero on mobile */
    }
    
    .info-main-text {
        font-size: 1.3rem;
    }
    
    .info-title {
        font-size: 0.95rem;
    }
}

/* --- DOCTOR TEAM PREVIEW --- */

.doctor-card {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.02);
}

.doctor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.1);
}

.doctor-img-container {
    position: relative;
    height: 350px; /* Fixed height for clean alignment */
    overflow: hidden;
}

.doctor-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Important: Ensures all doctor photos align perfectly */
    transition: transform 0.5s ease;
}

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

/* Hover Overlay */
.doctor-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 63, 62, 0.4); /* Primary Dark with transparency */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.doctor-card:hover .doctor-overlay {
    opacity: 1;
}

/* Text Styling */
.doctor-info {
    padding: 30px;
}

.doctor-info h4 {
    color: var(--color-primary-dark);
    font-weight: 700;
}

.doctor-specialty {
    color: var(--color-accent-gold);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.doctor-creds {
    font-size: 0.85rem;
    color: #6c757d;
    line-height: 1.6;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .doctor-img-container {
        height: 300px;
    }
}

/* --- DOCTOR DETAIL PAGE --- */
.doctor-detail-card {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.02);
}

.doctor-detail-img {
    background-color: #f8f9fa;
    min-height: 100%;
}

.doctor-detail-body {
    padding: 40px;
}

.doctor-tag {
    color: var(--color-accent-gold);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 8px;
}

.doctor-name {
    color: var(--color-primary-dark);
    font-weight: 800;
}

.doctor-subtitle {
    color: var(--color-primary-sage);
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.4;
}

.doctor-interests-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0;
    list-style: none;
}

.doctor-interests-list li {
    font-size: 0.9rem;
    color: #555;
    position: relative;
    padding-left: 20px;
}

.doctor-interests-list li::before {
    content: "•";
    color: var(--color-accent-gold);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.btn-primary-dark {
    background-color: var(--color-primary-dark);
    color: white;
    border-radius: 8px;
    transition: 0.3s;
}

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

@media (max-width: 767px) {
    .doctor-interests-list { grid-template-columns: 1fr; }
    .doctor-detail-body { padding: 30px 20px; }
}

/* --- VISION & MISSION STYLING --- */

.icon-box-sm {
    width: 45px;
    height: 45px;
    background: var(--color-primary-sage);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(125, 142, 116, 0.3);
}

.mission-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mission-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.mission-item i {
    font-size: 1.2rem;
    color: var(--color-accent-gold);
    margin-top: 2px;
}

.mission-item span {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
}

.quote-box {
    border-left: 5px solid var(--color-accent-gold);
    background: linear-gradient(to right, rgba(184, 150, 85, 0.08), transparent);
    border-radius: 0 20px 20px 0;
}

.text-gold { color: var(--color-accent-gold); }
.text-sage { color: var(--color-primary-sage); }

/* Background pattern opacity */
.opacity-05 { opacity: 0.05; }

/* Custom Shadows */
.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 991px) {
    .img-container {
        border-radius: 40px 4px 40px 4px !important;
        border-width: 6px !important;
    }
}

/* --- PRACTICE HOURS TABLE --- */
.practice-hours-table {
    background: rgba(30, 63, 62, 0.02); 
    border-radius: 15px;
    padding: 5px 15px;
}

.hour-row {
    display: flex;
    justify-content: space-between;
    padding: 7.5px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-size: 0.85rem;
}

/* --- FIXED WIDTHS FOR DESKTOP --- */
@media (min-width: 992px) {
    .hours-container-fixed {
        width: 550px; /* Adjust based on your text width */
    }
    .actions-container-fixed {
        width: 320px; /* Keeps Book Now & Hotline at a square/original size */
    }
}

/* Ensure the cards take up all available height in the column */
.actions-container-fixed .info-card {
    min-height: 180px; /* Adjust to match half of the hours card */
}

@media (max-width: 991px) {
    .stats-overlap-wrapper {
        margin-top: 20px !important;
    }
    .hours-container-fixed, .actions-container-fixed {
        width: 100%;
    }
}

/* ==========================================
    ACKNOWLEDGEMENT OF COUNTRY
   ========================================== */

.acknowledgement-section {
    background-color: #fcfcfc; /* Very subtle off-white */
    border-top: 1px solid rgba(0,0,0,0.05);
}

.flag-img {
    height: 45px; /* Standard respectful size */
    width: auto;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.acknowledgement-section h3 {
    font-size: 1.5rem;
    letter-spacing: 0.5px;
}

.leading-relaxed {
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .flag-img {
        height: 35px;
    }
}

/* ==========================================
   6. RESPONSIVE MEDIA QUERIES
   ========================================== */
@media (max-width: 991px) {
    .navbar.sticky-top {
       /* top: 60px !important;  Adjustment for mobile top bar height */
    }

    .hero-section {
        /*padding-top: 110px !important;*/
        text-align: left;
    }

    .nav-logo {
        height: 65px !important;
        max-width: 250px !important;
    }

    .hero-title {
        /*font-size: 2rem !important;*/
        line-height: 1.1 !important;
        padding-right: 40px !important;
        margin-top:50px;
    }

    .billing-seal {
        width: 80px;
        height: 80px;
        right: 15px;
        top: 60px;
    }

    .offcanvas-end {
        width: 100% !important;
    }
}

/* ==========================================
   7. BUTTONS & UTILITIES
   ========================================== */
.navbar .btn {
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.navbar .btn:hover {
    background-color: var(--color-primary-dark) !important;
    transform: translateY(-2px);
    color: white !important;
}

.btn-lg, .btn {
    border-radius: var(--radius-pill) !important;
    transition: 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
    filter: brightness(1.1);
}