/* ============================================================
   AAROGYOM - Header & Footer Styles (Shared Across All Pages)
   header-footer.css
   ============================================================ */

/* ── Top Bar (PC only) ────────────────────────────────── */
.top-bar {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--dark-orange) 100%);
    color: white;
    font-size: 0.82rem;
    padding: 7px 0;
    position: relative;
    overflow: hidden;
    font-weight: 500;
}
.top-bar::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 3s infinite;
}
.top-bar a { color: white; text-decoration: none; }
.top-bar a:hover { text-decoration: underline; }

/* ── Navbar ───────────────────────────────────────────── */
.navbar {
    padding: 0.5rem 0;
    background: rgba(255,255,255,0.98) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1040;
}
.navbar.scrolled {
    padding: 0.3rem 0;
    box-shadow: 0 8px 30px rgba(230, 93, 10, 0.12);
}

/* ── Brand Logo ───────────────────────────────────────── */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: var(--transition);
}
.brand-logo {
    /* Original size 247×295 — hard-capped to navbar height */
    height: 46px !important;
    max-height: 46px !important;
    width: auto !important;
    max-width: 54px !important;       /* keeps portrait logo from being too wide */
    object-fit: contain;
    display: block;
}
.brand-name {
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--primary-orange);
    letter-spacing: 1.5px;
    line-height: 1;
    transition: transform 0.3s ease;
}
.brand-tagline {
    font-size: 0.6rem;
    color: var(--dark-blue);
    letter-spacing: 1px;
    font-weight: 600;
    text-transform: uppercase;
    display: block;
    line-height: 1;
    opacity: 0.7;
}
.navbar-brand:hover .brand-name { transform: scale(1.04); }

/* ── Nav Links ────────────────────────────────────────── */
.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    font-size: 0.91rem;
    padding: 8px 12px !important;
    position: relative;
    transition: color 0.3s ease;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px; left: 50%;
    width: 0; height: 3px;
    background: linear-gradient(90deg, var(--primary-orange), var(--light-orange));
    transform: translateX(-50%);
    transition: width 0.3s ease;
    border-radius: 10px;
}
.nav-link:hover::after,
.nav-link.active::after { width: 65%; }
.nav-link:hover,
.nav-link.active { color: var(--primary-orange) !important; }

/* ── Dropdown — hover on PC, click on mobile ──────────── */
/* Remove Bootstrap caret icon on all dropdowns */
.dropdown-toggle::after { display: none !important; }

/* Desktop hover behaviour */
@media (min-width: 992px) {
    .nav-item.dropdown { position: relative; }

    .nav-item.dropdown .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(12px);
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
        margin-top: 0;
    }

    .nav-item.dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: all;
        transform: translateY(4px);
    }
}

/* Mobile — collapse dropdown on click */
@media (max-width: 991px) {
    .dropdown-menu {
        box-shadow: none !important;
        background: #f8f9fa !important;
        border-radius: 10px !important;
        margin: 4px 0 !important;
    }
}

.dropdown-menu {
    border: none;
    border-radius: 15px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.14);
    padding: 10px;
    background: rgba(255,255,255,0.99);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    min-width: 230px;
}
.dropdown-item {
    border-radius: 10px;
    padding: 10px 15px;
    font-size: 0.87rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}
.dropdown-item i { font-size: 1rem; color: var(--primary-orange); }
.dropdown-item:hover {
    background: linear-gradient(135deg, rgba(230,93,10,0.1), rgba(255,133,52,0.08));
    color: var(--primary-orange);
    transform: translateX(5px);
}

/* ── Navbar Toggler ───────────────────────────────────── */
.navbar-toggler {
    border: 2px solid rgba(230,93,10,0.3);
    border-radius: 10px;
    padding: 5px 10px;
}
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(230,93,10,0.2); outline: none; }
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(230, 93, 10, 0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Book Appointment button in nav */
.nav-btn-book {
    background: linear-gradient(135deg, var(--primary-orange), var(--dark-orange));
    color: white !important;
    border-radius: 50px;
    padding: 8px 22px !important;
    font-weight: 600 !important;
    font-size: 0.87rem !important;
    box-shadow: 0 6px 20px rgba(230,93,10,0.3);
    transition: all 0.3s ease !important;
    margin-left: 8px;
}
.nav-btn-book:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 30px rgba(230,93,10,0.4) !important;
    color: white !important;
}
.nav-btn-book::after { display: none !important; }

/* ── Mobile Bottom Navigation ─────────────────────────── */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 64px;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0,0,0,0.07);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 1030;
    box-shadow: 0 -6px 24px rgba(0,0,0,0.07);
}
.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: #a0a0a0;
    text-decoration: none;
    font-size: 0.58rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    flex: 1;
    padding: 6px 0;
    transition: all 0.3s ease;
    position: relative;
}
.mobile-nav-item i {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}
.mobile-nav-item.active,
.mobile-nav-item:hover {
    color: var(--primary-orange);
    text-decoration: none;
}
.mobile-nav-item.active i,
.mobile-nav-item:hover i { transform: translateY(-3px); }
.mobile-nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    width: 28px; height: 3px;
    background: linear-gradient(90deg, var(--primary-orange), var(--light-orange));
    border-radius: 0 0 6px 6px;
}

/* ── Footer ───────────────────────────────────────────── */
footer {
    background: linear-gradient(135deg, #161616 0%, #0a0a0a 100%);
    color: #bbb;
    position: relative;
    overflow: hidden;
    padding-top: 65px;
    padding-bottom: 30px;
}
footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 5px;
    background: linear-gradient(90deg, var(--primary-orange), var(--light-orange));
}
/* Decorative glow in footer */
footer::after {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(230,93,10,0.07), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.footer-logo { height: 44px; width: auto; object-fit: contain; filter: brightness(1.3); }
.footer-brand-name {
    font-size: 1.3rem;
    font-weight: 800;
    color: white;
    letter-spacing: 1.5px;
}
.footer-brand-tagline {
    font-size: 0.7rem;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
}

.footer-about { color: #999; font-size: 0.87rem; line-height: 1.7; margin-top: 0.8rem; }

.footer-heading {
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}
.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 30px; height: 3px;
    background: var(--primary-orange);
    border-radius: 3px;
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links li a {
    color: #999;
    text-decoration: none;
    font-size: 0.87rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-links li a i { font-size: 0.65rem; color: var(--primary-orange); }
.footer-links li a:hover { color: var(--primary-orange); transform: translateX(5px); }

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 1rem;
}
.footer-contact-item i { color: var(--primary-orange); font-size: 1.05rem; margin-top: 2px; flex-shrink: 0; }
.footer-contact-item h6 { color: white; font-weight: 600; font-size: 0.82rem; margin-bottom: 2px; }
.footer-contact-item p { color: #999; font-size: 0.82rem; margin: 0; }
.footer-contact-item a { color: #999; text-decoration: none; }
.footer-contact-item a:hover { color: var(--primary-orange); }

.social-icons { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 1.2rem; }
.social-icon {
    width: 40px; height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.15);
    color: #bbb;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
}
.social-icon:hover {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(230,93,10,0.4);
}

.footer-divider {
    border-color: rgba(255,255,255,0.07);
    margin: 2.5rem 0 1.5rem;
}
.footer-bottom p { color: #666; font-size: 0.8rem; margin: 0; }
.footer-bottom a { color: var(--primary-orange); text-decoration: none; }

/* ── Responsive Navbar adjustments ───────────────────── */
@media (max-width: 991px) {
    .navbar-collapse {
        background: white;
        padding: 1rem;
        border-radius: 0 0 15px 15px;
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
        margin-top: 5px;
    }
    .nav-link { margin: 2px 0; }
    .nav-btn-book { margin: 8px 0 0; display: inline-block; }
}

@media (max-width: 576px) {
    .footer-heading::after { display: none; }
    footer { padding-top: 45px; }
}