/* ============================================
   Dr. Bharath Dental — PREMIUM DESIGN SYSTEM
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700;800&family=Nunito:wght@400;600;700;800&display=swap');

:root {
    --primary: #0284c7;          /* Premium Ocean Blue */
    --primary-dark: #0369a1;     /* Darker Ocean Blue */
    --secondary: #0ea5e9;        /* Muted Ocean Blue */
    --gold: #ffcc00;             /* Bright Golden Yellow Accent */
    --gold-hover: #eab308;       /* Deeper Yellow Hover */
    --gold-light: #fefce8;       /* Light Soft Yellow Background */
    --bg-light: #f4f6f9;         /* Softer, premium slate off-white */
    --bg-soft-blue: #e0f2fe;     /* Softer, premium clinical slate blue */
    --bg-soft-purple: #f0f9ff;   /* Extra-soft ice-blue tint background */
    --text-dark: #1e3a8a;        /* Vibrant Dark Blue text (no black tone) */
    --text-muted: #4f85b0;       /* Muted blue text */
    --white: #fafbfe;            /* Gentle, eye-friendly premium off-white */
    --card-shadow: 0 15px 45px rgba(30, 58, 138, 0.05);
    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1); /* Custom smooth cubic-bezier easing */
}

/* ---- Reset ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, button, input, select, textarea {
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

body.blue-bg-page {
    background-color: var(--bg-soft-purple); /* Gentle clinical off-blue page background */
}

h1, h2, h3, h4, h5, .font-poppins {
    font-family: 'Poppins', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul { list-style: none; }

img { max-width: 100%; display: block; }

/* ---- Layout ---- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding { 
    padding: 120px 0; 
    min-height: 100vh;
    display: flex;
    align-items: center;
}
.section-padding > .container {
    width: 100%;
}
/* ---- Premium Glassmorphism Card ---- */
.glossy-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(212, 175, 55, 0.18); /* Delicate gold outline border */
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.05);
    border-radius: 24px;
    transition: var(--transition);
    color: var(--primary);
}

.glossy-card:hover {
    transform: translateY(-8px) scale(1.01);
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--gold);
    box-shadow: 0 25px 50px rgba(212, 175, 55, 0.18); /* Gold glow shadow */
}

/* ---- Service Card Custom Hover (Index Page) ---- */
.service-card {
    background: linear-gradient(135deg, #f9fafb 0%, #e5e7eb 100%) !important; /* Premium Gray Finish */
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08), 0 5px 15px rgba(0, 0, 0, 0.04) !important; /* Popped floating shadow */
    transition: all 0.4s ease;
    transform: translateY(-4px); /* Slightly elevated by default */
}

.service-card h3 {
    color: var(--gold);
    transition: color 0.4s ease;
}

.service-card:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
    border-color: transparent !important;
    box-shadow: 0 20px 45px rgba(2, 132, 199, 0.3) !important;
}

.service-card:hover h3 {
    color: var(--gold) !important;
}

.service-card:hover p {
    color: rgba(255, 255, 255, 0.9) !important;
}

.service-card:hover .icon {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
}

.service-card:hover a {
    color: white !important;
}

/* ---- Buttons ---- */
.btn {
    display: inline-block;
    padding: 16px 36px;
    border-radius: 50px; /* Fully curved pill-shaped button */
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #0ea5e9 0%, #22d3ee 100%);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.25);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
    color: var(--white);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(14, 165, 233, 0.45);
}

.btn-outline {
    background: transparent;
    border: 2px solid #0ea5e9;
    color: #0ea5e9;
}

.btn-outline:hover {
    background: #0ea5e9;
    color: var(--white);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(14, 165, 233, 0.35);
}

/* ================================================
   QUICK INFO BAR  (index.html only)
   ================================================ */
.quick-bar {
    background: #ffffff;
    border-bottom: 2px solid #e8eef3;
    box-shadow: 0 2px 16px rgba(14, 165, 233, 0.07);
    position: relative;
    z-index: 999;
}

.quick-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
}

/* Each item card */
.qb-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 28px;
    text-decoration: none;
    color: inherit;
    flex: 1;
    transition: background 0.25s ease, transform 0.25s ease;
    cursor: pointer;
    position: relative;
}

.qb-item:hover {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.04) 0%, rgba(34, 211, 238, 0.06) 100%);
}

.qb-item:hover .qb-icon {
    transform: translateY(-2px) scale(1.08);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.22);
}

.qb-item:hover .qb-title {
    color: #0ea5e9;
}

/* Icon circle */
.qb-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #e0f4ff 0%, #ccedff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.12);
}

.qb-icon i {
    font-size: 22px;
    color: #0ea5e9;
    line-height: 1;
}

/* Green icon for WhatsApp */
.qb-icon.qb-icon-green {
    background: linear-gradient(135deg, #d4fce4 0%, #b6f2cc 100%);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.18);
}

.qb-icon.qb-icon-green i {
    color: #16a34a;
    font-size: 24px;
}

.qb-item:hover .qb-icon.qb-icon-green {
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.28);
}

/* Text block */
.qb-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.qb-title {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #1e3a5f;
    letter-spacing: 0.1px;
    white-space: nowrap;
    transition: color 0.25s ease;
    line-height: 1.2;
}

.qb-sub {
    font-size: 12.5px;
    font-weight: 500;
    color: #64748b;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
    line-height: 1.2;
}

.qb-sub i {
    font-size: 10px;
    color: #0ea5e9;
    transition: transform 0.25s ease;
}

.qb-item:hover .qb-sub i {
    transform: translateX(3px);
}

/* Vertical divider between items */
.qb-divider {
    width: 1px;
    background: linear-gradient(180deg, transparent 15%, #e2eaf2 50%, transparent 85%);
    align-self: stretch;
    flex-shrink: 0;
}

/* ── Responsive ── */
@media (max-width: 960px) {
    .qb-item   { padding: 16px 18px; gap: 12px; }
    .qb-icon   { width: 44px; height: 44px; border-radius: 12px; }
    .qb-icon i { font-size: 18px; }
    .qb-title  { font-size: 12px; }
    .qb-sub    { font-size: 11.5px; }
}

@media (max-width: 768px) {
    /* Hide the Quick Info Bar on mobile so the hero section stays visible at the top. The FAB handles mobile contact options. */
    .quick-bar {
        display: none !important;
    }
}



/* ================================================
   HEADER & NAVIGATION
   ================================================ */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    height: 80px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(14, 165, 233, 0.1);
    box-shadow: 0 2px 20px rgba(14, 165, 233, 0.06);
    overflow: visible;
}

/* Make the container inside header position:relative
   so the nav dropdown is anchored to the header */
header > .container {
    position: relative;
    width: 100%;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 20px;
    position: relative; /* anchor for mobile dropdown */
}

.logo {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    z-index: 1100;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-links a:hover { color: var(--primary); }

/* ---- Hamburger Button ---- */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    background: none;
    border: none;
    border-radius: 8px;
    padding: 6px;
    transition: background 0.2s;
    z-index: 1100;
    flex-shrink: 0;
}

.hamburger:hover { background: var(--bg-soft-blue); }

.hamburger span {
    display: block;
    width: 100%;
    height: 2.5px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Active nav link indicator */
.active-service {
    background: var(--bg-soft-blue);
    color: var(--primary);
    font-weight: 600;
    border-radius: 10px;
    padding: 8px 14px;
}

/* ================================================
   HERO SECTION
   ================================================ */
.hero {
    padding: 110px 0;
    color: var(--white);
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
}
.hero > .container {
    width: 100%;
}



.hero .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-content h1 {
    font-size: 52px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.92;
}

/* ================================================
   SERVICE CARDS
   ================================================ */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: linear-gradient(135deg, #f9fafb 0%, #e5e7eb 100%);
    padding: 30px;
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08), 0 5px 15px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transform: translateY(-4px);
}

.service-card:hover { transform: translateY(-12px); box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12); }

.service-card .icon {
    width: 60px;
    height: 60px;
    background: var(--bg-soft-blue);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary);
    font-size: 24px;
}

/* ================================================
   FOOTER
   ================================================ */
footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h4 { margin-bottom: 20px; font-size: 18px; }
.footer-col ul li { margin-bottom: 10px; color: #cbd5e1; font-size: 14px; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 25px;
    text-align: center;
    font-size: 14px;
    color: #94a3b8;
}

/* ================================================
   MOBILE NAVIGATION — SLIDE-DOWN DROPDOWN
   ================================================ */
@media (max-width: 900px) {

    /* Make header position relative so dropdown is anchored to it */
    header {
        position: sticky;   /* keep sticky scrolling */
        /* Remove backdrop-filter on mobile — it creates a new stacking
           context that breaks child positioning in mobile browsers */
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: var(--white); /* solid softened white instead */
    }

    /* Show hamburger */
    .hamburger { display: flex; }

    /* Hide desktop CTA button */
    header .btn.btn-primary { display: none; }

    /* Desktop nav: hidden by default on mobile */
    .nav-links {
        /* Hidden state */
        display: flex;          /* keep flex so transition works */
        flex-direction: column;
        align-items: center;
        gap: 0;
        list-style: none;
        padding: 0;
        margin: 0;

        /* Position dropdown just below the header */
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 9999;

        /* Visual */
        background: var(--white);
        border-top: 3px solid var(--primary);
        box-shadow: 0 8px 30px rgba(14, 165, 233, 0.15);

        /* Animation via max-height */
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Open state */
    .nav-links.open {
        max-height: 500px;
    }

    /* Each nav item */
    .nav-links li {
        width: 100%;
        border-bottom: 1px solid rgba(14, 165, 233, 0.08);
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 16px 24px;
        font-size: 16px;
        font-weight: 600;
        color: var(--text-dark);
        text-align: left;
        transition: background 0.2s, color 0.2s;
    }

    .nav-links a:hover,
    .nav-links a:active {
        background: var(--bg-soft-blue);
        color: var(--primary);
    }

    /* Mobile Book Appointment — highlighted row */
    .nav-links li.mobile-book {
        border-bottom: none;
        padding: 16px 24px;
    }

    .nav-links li.mobile-book a {
        display: inline-block;
        width: auto;
        padding: 12px 30px;
        background: linear-gradient(135deg, var(--primary), var(--secondary));
        color: #fff !important;
        border-radius: 50px;
        font-size: 15px !important;
        font-weight: 700;
        text-align: center;
        box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
    }
}

/* ================================================
   TABLET BREAKPOINT (≤ 900px)
   ================================================ */
@media (max-width: 900px) {
    .hero { padding: 80px 0 60px; }
    .hero-content h1 { font-size: 38px; }
    .hero-content p { font-size: 16px; }
    .section-padding { padding: 60px 0; }

    /* Inline grids in HTML — override with classes */
    .two-col-grid { grid-template-columns: 1fr !important; gap: 40px !important; }
    .four-col-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .stats-flex { flex-direction: column !important; gap: 20px !important; align-items: center !important; }
    .stats-flex .glossy-card { width: 100% !important; max-width: 400px; height: auto !important; margin: 0 !important; }
}

/* ================================================
   MOBILE BREAKPOINT (≤ 768px)
   ================================================ */
@media (max-width: 768px) {
    header { height: 70px; }

    /* Shift dropdown to match new header height */
    .nav-links { top: 70px; }

    .hero { padding: 70px 0 50px; }
    .hero-content h1 { font-size: 28px !important; line-height: 1.3; }
    .hero-content p { font-size: 14px !important; }
    .section-padding { padding: 50px 0; }

    /* Force single-column layouts (targeted via inline style overrides) */
    [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }

    /* Stats — force column */
    [style*="display: flex; justify-content: center; align-items: center;"] {
        flex-direction: column !important;
        gap: 20px !important;
    }

    /* Fix stat cards overlapping negative margin */
    .glossy-card[style*="margin: 0 -40px"] {
        margin: 0 !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Fix hero button row */
    [style*="display: flex; gap: 20px; justify-content: center;"] {
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
    }

    [style*="display: flex; gap: 20px; justify-content: center;"] .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    /* About section badge */
    [style*="position: absolute; bottom: -30px; left: -30px;"] {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        margin-top: 20px !important;
        border-radius: 16px !important;
    }

    /* Section headings */
    h2[style*="font-size: 36px"],
    h1[style*="font-size: 48px"],
    h2[style*="font-size: 48px"] {
        font-size: 24px !important;
    }

    /* Book appointment form padding */
    [style*="max-width: 800px"][style*="padding: 50px"] {
        padding: 25px 16px !important;
    }

    /* Appointment & contact form grids */
    [style*="grid-template-columns: 1fr 1fr; gap: 20px"],
    [style*="grid-template-columns: 1fr 1fr; gap: 20px;"] {
        grid-template-columns: 1fr !important;
    }

    /* Footer padding */
    footer { padding: 50px 0 20px; }
    .footer-grid { gap: 25px; }

    /* Section text clamp */
    h2 { font-size: clamp(20px, 5vw, 32px); }

    /* WhatsApp float */
    a[style*="position: fixed; bottom: 30px; left: 30px;"] {
        bottom: 18px !important;
        left: 14px !important;
        width: 50px !important;
        height: 50px !important;
        font-size: 22px !important;
    }
}

/* ================================================
   SMALL MOBILE (≤ 480px)
   ================================================ */
@media (max-width: 480px) {
    .hero-content h1 { font-size: 22px !important; }

    /* 4-col grids down to 1 on very small screens */
    [style*="grid-template-columns: repeat(4, 1fr)"],
    [style*="grid-template-columns: repeat(4,1fr)"] {
        grid-template-columns: 1fr !important;
    }

    .btn { padding: 12px 24px; font-size: 14px; }
    .logo { gap: 8px; }
    .logo span[style*="20px"] { font-size: 15px !important; }
    .logo span[style*="10px"] { font-size: 9px !important; }

    .section-padding { padding: 40px 0; }
}

/* ================================================
   PREMIUM COLLAPSIBLE FLOATING CONTACT HUB (FAB)
   ================================================ */

/* Overall container */
.fab-stack-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

/* Primary FAB Trigger Button */
.fab-main-trigger {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    outline: none;
    cursor: pointer;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Pulsing aura when menu is closed */
.fab-stack-container:not(.open) .fab-main-trigger::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    opacity: 0.5;
    animation: fab-pulse 2s infinite;
}

.fab-main-trigger svg {
    width: 26px;
    height: 26px;
    fill: #ffffff;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fab-main-trigger .fab-close-icon {
    position: absolute;
    opacity: 0;
    transform: rotate(-45deg) scale(0.5);
    width: 20px;
    height: 20px;
}

.fab-main-trigger:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.55);
}

/* Open State morphing for Primary FAB */
.fab-stack-container.open .fab-main-trigger {
    background: #64748b; /* Sleek corporate slate grey */
    box-shadow: 0 4px 15px rgba(100, 116, 139, 0.3);
    transform: rotate(180deg);
}

.fab-stack-container.open .fab-chat-icon {
    opacity: 0;
    transform: scale(0.5);
}

.fab-stack-container.open .fab-close-icon {
    opacity: 1;
    transform: rotate(0) scale(1);
}

/* Expanded Submenu Container */
.fab-menu-options {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    pointer-events: none; /* Ignore mouse interactions when closed */
    margin-bottom: 2px;
}

.fab-stack-container.open .fab-menu-options {
    pointer-events: auto; /* Enable mouse interactions when open */
}

/* Each submenu item */
.fab-menu-item {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    opacity: 0;
    transform: translateY(20px) scale(0.85);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: max-content;
}

/* Staggered entrance animation when container is open */
.fab-stack-container.open .fab-menu-item {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Delay Popups sequentially */
.fab-stack-container.open .fab-menu-item:nth-child(3) {
    transition-delay: 0.04s; /* WhatsApp Appointment (bottom-most) */
}
.fab-stack-container.open .fab-menu-item:nth-child(2) {
    transition-delay: 0.08s; /* Call Now (middle) */
}
.fab-stack-container.open .fab-menu-item:nth-child(1) {
    transition-delay: 0.12s; /* Quick Consultation (top-most) */
}

/* Glassmorphic Labels on Left */
.fab-item-label {
    margin-right: 14px;
    padding: 5px 16px 5px 5px; /* compact padding to sit icon neatly */
    border-radius: 30px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(14, 165, 233, 0.18);
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.06);
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.25s ease;
    pointer-events: none;
    
    /* Flex alignment for inner icon and text */
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Small circle icon inside the label */
.fab-item-label .label-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
}

/* Custom icon background colors for label circles */
.fab-item-label .label-icon.cons-icon {
    background: rgba(14, 165, 233, 0.1);
    color: #0ea5e9;
}

.fab-item-label .label-icon.call-icon {
    background: rgba(14, 165, 233, 0.1);
    color: #0ea5e9;
}

.fab-item-label .label-icon.whatsapp-icon {
    background: rgba(37, 211, 102, 0.1);
    color: #25d366;
}

/* Show labels when menu is open */
.fab-stack-container.open .fab-item-label {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.18s;
}

/* Option Buttons Circle */
.fab-item-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    outline: none;
    cursor: pointer;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: all 0.25s ease;
    text-decoration: none;
}

.fab-item-btn i {
    font-size: 18px;
}

/* Hover scales on sub-buttons */
.fab-menu-item:hover .fab-item-btn {
    transform: scale(1.12);
}

.fab-menu-item:hover .fab-item-label {
    background: var(--white);
    border-color: var(--primary);
    box-shadow: 0 6px 18px rgba(14, 165, 233, 0.15);
    color: var(--primary);
}

/* Gradients for each specific option */
.fab-item-btn.whatsapp-apt {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}
.fab-menu-item:hover .fab-item-btn.whatsapp-apt {
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
}

.fab-item-btn.call-now {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}
.fab-menu-item:hover .fab-item-btn.call-now {
    box-shadow: 0 6px 18px rgba(14, 165, 233, 0.45);
}

.fab-item-btn.whatsapp-cons {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}
.fab-menu-item:hover .fab-item-btn.whatsapp-cons {
    box-shadow: 0 6px 18px rgba(6, 182, 212, 0.45);
}

/* Keyframes for soft pulse aura */
@keyframes fab-pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

/* Mobile responsive style scaling */
@media (max-width: 768px) {
    .fab-stack-container {
        bottom: 20px;
        right: 20px;
        gap: 10px;
    }
    .fab-main-trigger {
        width: 54px;
        height: 54px;
    }
    .fab-main-trigger svg {
        width: 22px;
        height: 22px;
    }
    .fab-item-btn {
        width: 42px;
        height: 42px;
    }
    .fab-item-btn i {
        font-size: 15px;
    }
    .fab-item-label {
        margin-right: 10px;
        padding: 6px 12px;
        font-size: 11.5px;
    }
}

/* ================================================
   AUTHENTIC GOOGLE REVIEWS SECTION
   ================================================ */

.google-rating-summary {
    background: var(--white);
    padding: 24px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(14, 165, 233, 0.15);
    max-width: 480px;
    margin: 0 auto 50px auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.google-brand {
    display: flex;
    align-items: center;
}

.google-text {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.5px;
}

.rating-value-block {
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 1px solid #e2e8f0;
    padding-left: 20px;
}

.rating-number {
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
}

.rating-stars-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rating-stars-row {
    display: flex;
    gap: 2px;
}

.rating-stars-row .star-svg,
.review-stars .star-svg {
    width: 16px;
    height: 16px;
    fill: #FBBC05;
}

.reviews-count {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
}

/* Review Cards Grid styling */
.google-reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.google-review-card {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(14, 165, 233, 0.08);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.google-review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(14, 165, 233, 0.15);
    border-color: rgba(14, 165, 233, 0.25);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* User circular avatar initials */
.reviewer-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    flex-shrink: 0;
}

/* Different Google avatar colors based on initials */
.avatar-purple { background-color: #8e24aa; }
.avatar-teal { background-color: #00897b; }
.avatar-blue { background-color: #1e88e5; }
.avatar-orange { background-color: #f4511e; }
.avatar-green { background-color: #43a047; }

.reviewer-name {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
}

.review-meta {
    font-size: 11px;
    color: #64748b;
    margin-top: 1px;
}

.review-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 14px;
}

.review-text {
    font-size: 14px;
    line-height: 1.6;
    color: #334155;
    font-style: normal; /* remove font-style italic for an authentic review feel */
    flex-grow: 1;
}

@media (max-width: 600px) {
    .google-rating-summary {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    .rating-value-block {
        border-left: none;
        border-top: 1px solid #e2e8f0;
        padding-left: 0;
        padding-top: 15px;
        width: 100%;
        justify-content: center;
    }
}

/* =============================================
   DENTAL EMERGENCY SECTION ANIMATIONS
   ============================================= */
@keyframes pulse-emergency {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 20px rgba(239, 68, 68, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.pulse-ring {
    animation: pulse-emergency 2s infinite;
}

@keyframes pulse-dot {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.4);
        opacity: 0.5;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* =============================================
   PREMIUM SCROLL REVEAL & STYLING UTILITIES
   ============================================= */

/* Scroll Reveal classes */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Image Scale Transition Container */
.premium-img-container {
    overflow: hidden;
    border-radius: 24px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(212, 175, 55, 0.12);
    transition: var(--transition);
    position: relative;
    background: #000;
}

.premium-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
}

.premium-img-container:hover img {
    transform: scale(1.06);
    filter: brightness(1.05) contrast(1.02);
}

.premium-img-container:hover {
    box-shadow: 0 20px 45px rgba(212, 175, 55, 0.15);
    border-color: var(--gold);
}

/* Premium Treatment Banner classes */
.treatment-banner {
    background: linear-gradient(135deg, #0b1329 0%, #1e293b 100%);
    color: white;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    position: relative;
    overflow: hidden;
}

.treatment-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.06) 0%, transparent 70%);
    pointer-events: none;
    border-radius: 50%;
}

.treatment-banner-badge {
    background: rgba(212, 175, 55, 0.12);
    color: var(--gold);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ================================================
   GAP & BREATHING SPACE OPTIMIZATION
   ================================================ */

/* Page hero custom tighter paddings */
.page-hero-section {
    padding: 60px 0 40px 0 !important;
    text-align: center;
}

/* Halve top padding of sections immediately following a hero to reduce vertical gap */
.page-hero-section + .section-padding,
.about-hero + .section-padding,
.blog-hero + .section-padding,
.post-hero + .section-padding {
    padding-top: 50px !important;
}

/* Tighten specific blog page hero padding */
.blog-hero {
    padding: 50px 20px 30px 20px !important;
}
.post-hero {
    padding: 50px 20px 30px 20px !important;
}


/* Split Hero Layout */
.hero.split-hero {
    padding: 0;
    overflow: visible;
}
.hero.split-hero::after {
    display: none;
}

.hero-split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - 80px);
}

.hero-text-side {
    padding: 100px 40px 100px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.hero-text-side .hero-subtitle {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    font-size: 14px;
}

.hero-text-side .hero-title {
    color: var(--primary);
    font-size: 52px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-text-side .hero-desc {
    color: var(--text-muted);
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 550px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.hero-buttons .btn-outline.dark-outline {
    border-color: var(--primary);
    color: var(--primary);
}
.hero-buttons .btn-outline.dark-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.hero-doctor-badge {
    margin-top: 10px;
    font-size: 14px;
    background: var(--bg-light);
    display: inline-block;
    padding: 10px 20px;
    border-radius: 50px;
    color: var(--text);
}

.hero-doctor-badge a {
    color: var(--primary);
    margin-left: 10px;
    font-weight: 700;
    text-decoration: underline;
}

.hero-slider-side {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-slider .slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: fadeSlider 15s infinite;
}

.hero-slider .slide-1 {
    animation-delay: 0s;
}
.hero-slider .slide-2 {
    animation-delay: 5s;
}
.hero-slider .slide-3 {
    animation-delay: 10s;
}

@keyframes fadeSlider {
    0% { opacity: 0; }
    5% { opacity: 1; }
    33% { opacity: 1; }
    38% { opacity: 0; }
    100% { opacity: 0; }
}

@media (max-width: 991px) {
    .hero-split-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .hero-text-side {
        padding: 80px 20px 60px;
        text-align: center;
        align-items: center;
    }
    .hero-slider-side {
        height: 400px;
    }
    .hero-text-side .hero-desc {
        text-align: center;
    }
    .hero-text-side .hero-title {
        font-size: 38px;
    }
}
@media (max-width: 768px) {
    .hero-slider-side {
        height: 300px;
    }
    .hero-text-side .hero-title {
        font-size: 28px;
    }
}

/* ================================================
   FAQ ACCORDION STYLES
   ================================================ */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.4s ease;
    opacity: 0;
    padding-top: 0;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-top: 15px;
    opacity: 1;
}

.faq-item i {
    pointer-events: none;
}

/* ================================================
   MODAL STYLES (WORKING HOURS)
   ================================================ */
.modal {
    display: none; 
    position: fixed; 
    z-index: 9999; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.5); 
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto; 
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.close-modal:hover,
.close-modal:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.hours-table {
    width: 100%;
    border-collapse: collapse;
}

.hours-table th, .hours-table td {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    text-align: left;
    font-size: 16px;
}

.hours-table th {
    font-weight: 600;
    color: #333;
}

.hours-table td {
    color: #666;
    text-align: right;
}

.hours-table tr:last-child th,
.hours-table tr:last-child td {
    border-bottom: none;
}

.hours-table tr.today-row th,
.hours-table tr.today-row td {
    color: var(--primary);
    font-weight: 700;
}
