/* =====================================================
   Dandi Advanced ENT Clinic — Shared Stylesheet
   Developed by PRED Solutions Pvt. Ltd.
   ===================================================== */

/* --- Google Fonts imported via <link> in HTML --- */

/* ---- Material Symbols base ---- */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

/* =====================================================
   COLOUR TOKENS  (replaces (old bright green - removed) → #006e2f everywhere)
   ===================================================== */
:root {
    --color-primary:              #00355f;
    --color-secondary:            #006e2f;   /* was (old bright green - removed) — now dark green */
    --color-secondary-light:      #006e2f;
    --color-secondary-fixed:      #006e2f;   /* used on dark backgrounds */
    --color-secondary-fixed-dim:  #4ae176;
    --color-surface:              #f9f9ff;
    --color-on-primary:           #ffffff;
    --color-on-secondary:         #ffffff;
    --color-primary-container:    #0f4c81;
    --color-primary-fixed-dim:    #a0c9ff;
    --color-on-surface-variant:   #42474f;
    --color-outline-variant:      #c2c7d1;
}

/* =====================================================
   SITE HEADER
   ===================================================== */
.site-header {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 50;
    background: #f9f9ff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* --- Top info bar --- */
.top-bar {
    background: var(--color-primary);
    color: white;
    padding: 8px 0;
    font-size: 14px;
}

.top-content {
    max-width: 1200px;
    margin: auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-left,
.top-right {
    display: flex;
    gap: 20px;
    align-items: center;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* --- Main nav bar --- */
.main-nav {
    max-width: 1200px;
    margin: auto;
    padding: 12px 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- Logo --- */
.site-logo {
    height: 78px;
    width: auto;
    display: block;
}

/* --- Nav menu --- */
.nav-menu {
    display: flex;
    gap: 32px;
    align-items: center;
     
}

.nav-link {
    color: var(--color-on-surface-variant);
    font-size: 17px;
    font-weight: 500;
    text-decoration: none;
    padding: 4px 0;
    transition: color 0.25s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--color-primary);
}

.nav-link.active-nav-link,
.active-nav-link {
    color: var(--color-secondary);           /* dark green */
    font-weight: 700;
    border-bottom: 2px solid var(--color-secondary);
}

/* --- CTA button --- */
.header-btn {
    background: var(--color-secondary);
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 15px;
    transition: opacity 0.25s, transform 0.2s;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.header-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

/* =====================================================
   HAMBURGER / MOBILE MENU
   ===================================================== */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 60;
}

.hamburger-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Animated X state */
.hamburger-btn.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger-btn.open span:nth-child(2) {
    opacity: 0;
}
.hamburger-btn.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav drawer */
.mobile-nav {
    display: none;
    flex-direction: column;
    background: #f9f9ff;
    border-top: 1px solid var(--color-outline-variant);
    padding: 16px 24px 20px;
    gap: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.mobile-nav.open {
    display: flex;
}

.mobile-nav a {
    color: var(--color-on-surface-variant);
    font-size: 15px;
    font-weight: 500;
    padding: 10px 8px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.mobile-nav a:hover {
    background: #e7eeff;
    color: var(--color-primary);
}

.mobile-nav a.active-nav-link {
    color: var(--color-secondary);
    font-weight: 700;
    background: rgba(0, 110, 47, 0.08);
}

.mobile-nav .header-btn {
    margin-top: 8px;
    width: 100%;
    text-align: center;
}

/* =====================================================
   RESPONSIVE BREAKPOINTS
   ===================================================== */
@media (max-width: 768px) {
    .top-content {
        padding: 0 16px;
    }

    .main-nav {
        padding: 10px 16px;
    }

    .nav-menu {
        display: none;   /* replaced by mobile-nav drawer */
    }

    .hamburger-btn {
        display: flex;
    }

    .desktop-only-btn {
        display: none;   /* hide desktop CTA; mobile drawer has it */
    }

    .site-logo {
        height: 48px;
    }
}

@media (max-width: 480px) {
    .top-bar .top-left span:last-child {
        display: none;   /* hide email on very small screens */
    }
}

/* =====================================================
   FOOTER UTILITY
   ===================================================== */
.footer-dev-credit a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(255,255,255,0.3);
    transition: color 0.2s;
}
.footer-dev-credit a:hover {
    color: #ffffff;
}

/* =====================================================
   CLINIC SHADOW UTILITY
   ===================================================== */
.clinic-shadow {
    box-shadow: 0 4px 24px rgba(0, 53, 95, 0.12);
}

/* Updated Style */


.hero-left,
.hero-right {
    opacity: 0;
    transition: all 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-left {
    transform: translateX(-120px);
}

.hero-right {
    transform: translateX(120px);
}

.hero-show {
    opacity: 1;
    transform: translateX(0);
}

/* image zoom effect */
.hero-right img {
    transform: scale(0.92);
    transition: transform 1.8s ease;
}

.hero-right.hero-show img {
    transform: scale(1);
}