/* ================================================================
   Navbar CSS — copied verbatim from online_viewer_net (3).html
   Only additions: body offset, hero offset, top-navbar hide.
   ================================================================ */

/* ── Inter font (matches reference) ─────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --brand-teal: var(--primary, #1eb2a6);
    --brand-teal-dark: #178c82;
    --text-main: #1b434a;
    --text-muted: #6b7280;
    --bg-light: #f3f4f6;
    --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Hide the old top-navbar so it doesn't double-render ─────── */
.top-navbar {
    display: none !important;
}

/* ── Body offset so content isn't hidden under fixed nav ──────── */
body {
    padding-top: 120px;
    /* 48px top-bar + 72px main-nav */
}

@media (max-width: 991.98px) {
    body {
        padding-top: 70px;
    }
}

/* ── Hero carousel negative offset ───────────────────────────── */
.hero-carousel-container {
    margin-top: -120px !important;
}

@media (max-width: 991.98px) {
    .hero-carousel-container {
        margin-top: -70px !important;
    }
}

/* ── Link base (scoped to navbar only) ───────────────────────── */
#header-wrapper a,
#mobile-nav a {
    text-decoration: none;
    color: var(--text-main);
    transition: color 0.2s;
}

#header-wrapper a:hover,
#mobile-nav a:hover {
    color: var(--brand-teal);
}

/* ================================================================
   1. HEADER WRAPPER
   ================================================================ */
#header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1050;
    transition: padding-top 0.5s var(--ease-smooth);
}

#header-wrapper.scrolled {
    padding-top: 15px;
    pointer-events: none;
}

/* ================================================================
   2. TOP BAR
   ================================================================ */
#top-bar {
    background-color: var(--bg-light);
    height: 48px;
    display: flex;
    align-items: center;
    transition: all 0.4s var(--ease-smooth);
    overflow: hidden;
    border-bottom: 1px solid #e5e7eb;
    pointer-events: auto;
}

#header-wrapper.scrolled #top-bar {
    height: 0;
    opacity: 0;
    border-bottom-color: transparent;
}

.top-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.search-box {
    background: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    padding: 4px 12px;
    width: 280px;
    border: 1px solid #e5e7eb;
}

.search-box input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-left: 8px;
    background: transparent;
}

/* ================================================================
   3. MAIN NAVBAR
   ================================================================ */
#main-nav {
    background-color: #ffffff;
    width: 100%;
    max-width: 100%;
    height: 72px;
    margin: 0 auto;
    padding: 0 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.5s var(--ease-smooth);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border-radius: 0;
    pointer-events: auto;
}

#header-wrapper.scrolled #main-nav {
    max-width: 1050px;
    width: 95%;
    height: 60px;
    border-radius: 50px;
    padding: 0 1.5rem 0 0.5rem;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* CTA Button */
.btn-teal {
    background-color: var(--brand-teal);
    color: white !important;
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    border: none;
    white-space: nowrap;
    text-decoration: none !important;
    display: inline-block;
    transition: all 0.4s var(--ease-smooth);
}

.btn-teal:hover {
    background-color: var(--brand-teal-dark);
    color: white !important;
}

#header-wrapper.scrolled .btn-teal {
    border-radius: 50px;
    font-size: 0.9rem;
    padding: 0.45rem 1.15rem;
}

/* Nav links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.4s var(--ease-smooth);
    direction: rtl;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--brand-teal);
}

#header-wrapper.scrolled .nav-links {
    gap: 1rem;
    font-size: 0.85rem;
}

/* Logo */
.nav-logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--brand-teal) !important;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 1px;
    text-decoration: none !important;
}

#header-wrapper.scrolled .nav-logo img {
    height: 30px !important;
}

/* ================================================================
   4. MOBILE NAV
   ================================================================ */
#mobile-nav {
    background-color: white;
    padding: 0.5rem 10px 0.5rem 0;
    transition: all 0.4s var(--ease-smooth);
    z-index: 1050;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

#mobile-nav.scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    padding: 0.75rem 0;
}

.navbar-collapse.collapse.show {
    display: block !important;
}

.mobile-menu-container {
    background-color: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 0;
    font-weight: 500;
    border-bottom: 1px solid #f4f4f5;
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s;
}

.mobile-nav-link:hover {
    color: var(--brand-teal);
}

/* ── Hamburger Icon ────────────────────────────────────────── -- */
.hamburger-icon {
    width: 24px;
    height: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.hamburger-icon .line {
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.navbar-toggler[aria-expanded="true"] .line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .line:nth-child(2) {
    opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ── Language Toggle Button ──────────────────────────────────── */
.lang-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: white;
    border: 1.5px solid #e5e7eb;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    line-height: 1;
}

.lang-toggle-btn i {
    font-size: 0.85rem;
    color: var(--brand-teal);
}

.lang-toggle-btn:hover {
    background: var(--brand-teal);
    border-color: var(--brand-teal);
    color: white;
}

.lang-toggle-btn:hover i {
    color: white;
}

/* Mobile variant — full width row */
.lang-toggle-mobile {
    width: 100%;
    justify-content: center;
    margin-top: 12px;
    padding: 10px;
    border-radius: 9px;
    font-size: 0.9rem;
}

/* Hide Google Translate banner/toolbar */
.goog-te-banner-frame,
.skiptranslate,
body>.goog-te-gadget {
    display: none !important;
}

body {
    top: 0 !important;
}

/* ── Menu Open State (Scroll Lock) ────────────────────────── */
body.menu-open {
    overflow: hidden !important;
}

@media (max-width: 991.98px) {
    #mobileMenu.show {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        height: 100vh;
        background: white;
        z-index: 2000;
        display: block !important;
        padding: 100px 24px 40px;
        overflow-y: auto;
    }

    .mobile-menu-container {
        box-shadow: none;
        border: none;
        padding: 0;
        margin: 0;
    }

    #mobile-nav {
        z-index: 2050;
    }

    #mobile-nav .nav-logo,
    #mobileMenuToggler {
        position: relative;
        z-index: 2100;
    }
}