/* ===== TOP BAR ===== */
.top-bar {
    background: #1a1a2e;
    color: #fff;
    padding: 8px 0;
    font-size: 13px;
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.top-bar a {
    color: #ffd700;
    text-decoration: none;
    margin-left: 16px;
}
.top-bar a:hover { color: #fff; }
.top-bar i { margin-right: 5px; }

/* ===== HEADER / NAVBAR ===== */
header {
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 12px;
    position: relative;
    overflow: visible;
}

/* ===== LOGO ===== */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}
.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 21px;
    flex-shrink: 0;
}
.logo-text h1 {
    font-size: 19px;
    font-weight: 800;
    color: #c0392b;
    margin: 0;
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
}
.logo-text span {
    font-size: 11px;
    color: #666;
    font-weight: 500;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    white-space: nowrap;
}

/* ===== NAV LINKS ===== */
.nav-links {
    list-style: none;
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0;
    align-items: center;
}
.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 13.5px;
    padding: 8px 14px;
    border-radius: 5px;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
    background: #c0392b;
    color: #fff;
}

/* ===== NAV CTA ===== */
.nav-cta {
    background: #c0392b;
    color: #fff !important;
    padding: 10px 20px !important;
    border-radius: 5px;
}
.nav-cta:hover {
    background: #a93226 !important;
    color: #fff !important;
}

/* ===== HAMBURGER ===== */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    background: none;
    border: none;
    padding: 6px;
    flex-shrink: 0;
}
.hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background: #c0392b;
    border-radius: 3px;
    transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== MOBILE CALL BUTTON (hidden on desktop) ===== */
.mobile-call-btn {
    display: none;
}

/* ===== RESPONSIVE HEADER ===== */
@media (max-width: 768px) {

    .hamburger { display: flex; }

    /* Navbar: logo shrinks, call btn takes remaining space, hamburger fixed */
    .navbar {
        gap: 0;
        padding: 10px 0;
    }

    /* Logo: allow shrinking, clip text if needed */
    .logo {
        flex-shrink: 1;
        min-width: 0;
        gap: 8px;
    }
    .logo-icon { width: 38px; height: 38px; font-size: 16px; flex-shrink: 0; }
    .logo-text { min-width: 0; overflow: hidden; }
    .logo-text h1 {
        font-size: 13px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .logo-text span { display: none; }

    /* Mobile call button — sits between logo and hamburger */
    .mobile-call-btn {
        display: flex;
        align-items: center;
        gap: 6px;
        background: #c0392b;
        color: #fff;
        text-decoration: none;
        padding: 7px 12px;
        border-radius: 30px;
        font-size: 12px;
        font-weight: 700;
        white-space: nowrap;
        flex-shrink: 0;
        margin: 0 8px;
        transition: background 0.3s;
        touch-action: manipulation;
    }
    .mobile-call-btn:hover,
    .mobile-call-btn:active { background: #a93226; }
    .mobile-call-btn i { font-size: 12px; flex-shrink: 0; }

    /* Dropdown nav */
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 8px 24px rgba(0,0,0,0.14);
        padding: 12px 16px 16px;
        gap: 4px;
        z-index: 999;
    }
    .nav-links.open { display: flex; }
    .nav-links a {
        padding: 12px 16px;
        border-radius: 5px;
        font-size: 14px;
    }

    /* Top bar on mobile */
    .top-bar .container { justify-content: center; }
    .top-bar .top-right { display: none; }
}

/* Very small screens: show icon only for call button */
@media (max-width: 360px) {
    .mobile-call-btn span { display: none; }
    .mobile-call-btn {
        padding: 8px;
        margin: 0 6px;
        border-radius: 50%;
        width: 36px;
        height: 36px;
        justify-content: center;
    }
    .logo-text h1 { font-size: 12px; }
}
