/* Fixed glass header — matches index.html (shared across all pages) */
:root {
    --gold-primary: #daa520;
    --gold-dark: #b8860b;
    --gold-light: #ffd700;
    --black-primary: #000000;
    --black-card: #1a1a1a;
    --white: #ffffff;
    --text-light: rgba(255, 255, 255, 0.9);
    --text-muted: rgba(255, 255, 255, 0.7);
    --border-color: rgba(218, 165, 32, 0.3);
}

body.has-fixed-site-header {
    padding-top: 128px;
}

.top-bar {
    background: rgba(26, 26, 26, 0.4);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    color: var(--text-light);
    padding: 12px 0;
    font-size: 14px;
    position: fixed;
    top: 8px;
    left: 18px;
    right: 18px;
    z-index: 1102;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    border-radius: 14px;
}

.top-bar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    flex-wrap: wrap;
    gap: 15px;
}

.top-bar a {
    color: var(--text-light);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.top-bar a:hover {
    color: var(--gold-primary);
}

.navbar {
    background: rgba(26, 26, 26, 0.5);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    position: fixed;
    top: 58px;
    left: 18px;
    right: 18px;
    z-index: 1101;
    margin: 0;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: visible;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    position: relative;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--white);
}

/* Literal white: in light mode `theme.css` redefines --white to a dark ink color */
.logo-img {
    height: 50px;
    width: 50px;
    object-fit: contain;
    background: #ffffff;
    padding: 8px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text .company-name {
    font-size: 20px;
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
}

.logo-text .tagline {
    font-size: 12px;
    font-weight: 500;
    color: var(--gold-primary);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
    list-style: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links a,
.nav-links .nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active,
.nav-links .nav-link:hover,
.nav-links .nav-link.active {
    color: var(--gold-primary);
}

.nav-links a.active::after,
.nav-links .nav-link.active::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gold-primary);
}

.navbar .cta-button,
.nav-container > .cta-button {
    background: linear-gradient(135deg, #f3d187, #cb9221) !important;
    color: #111 !important;
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 800;
    font-size: 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(243, 209, 135, 0.3) !important;
    box-shadow:
        0 4px 18px rgba(203, 146, 33, 0.28),
        inset 0 1px 0 rgba(255, 245, 210, 0.32) !important;
}

.navbar .cta-button:hover,
.nav-container > .cta-button:hover {
    background: linear-gradient(135deg, #f6d99a, #d29928) !important;
    color: #111 !important;
    transform: translateY(-2px);
    box-shadow:
        0 8px 24px rgba(203, 146, 33, 0.34),
        inset 0 1px 0 rgba(255, 245, 210, 0.42) !important;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
}

@media (max-width: 968px) {
    .nav-links {
        transform: none;
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }
}

@media (max-width: 768px) {
    .top-bar-container {
        padding: 0 20px;
        max-width: 100%;
    }

    .nav-container {
        padding: 15px 20px;
        max-width: 100%;
    }

    .navbar {
        top: 50px;
        left: 10px;
        right: 10px;
    }

    .top-bar {
        top: 6px;
        left: 8px;
        right: 8px;
        border-radius: 12px;
    }
}

@media (max-width: 968px) {
    body.has-fixed-site-header {
        padding-top: 88px;
    }

    body.mobile-menu-open {
        overflow: hidden;
    }

    .top-bar {
        display: none;
    }

    .navbar {
        top: 8px;
        left: 8px;
        right: 8px;
        margin: 0;
        border-radius: 14px;
        overflow: visible;
        z-index: 1201;
    }

    .nav-container {
        padding: 12px 14px;
    }

    .logo-img {
        width: 40px;
        height: 40px;
        padding: 6px;
        border-radius: 12px !important;
    }

    .logo-text .company-name {
        font-size: 15px;
    }

    .logo-text .tagline {
        font-size: 10px;
    }

    .nav-container > .cta-button {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
        position: relative;
        z-index: 1203;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 10px;
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        font-size: 21px;
        line-height: 1;
        cursor: pointer;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(218, 165, 32, 0.2);
    }

    .nav-links {
        position: absolute !important;
        top: calc(100% + 8px);
        left: 10px;
        right: 10px;
        transform: none !important;
        margin: 0;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 14px;
        max-height: calc(100vh - 110px);
        overflow-y: auto;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.16);
        background: rgba(10, 10, 10, 0.94);
        backdrop-filter: blur(16px) saturate(170%);
        -webkit-backdrop-filter: blur(16px) saturate(170%);
        box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
        z-index: 1202;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a,
    .nav-links .nav-link {
        display: block;
        width: 100%;
        padding: 8px 0;
    }

    .nav-links .mobile-quote-item .nav-link {
        margin-top: 4px;
        border-radius: 10px;
        padding: 11px 12px;
        background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
        color: var(--white);
        font-weight: 700;
        text-align: center;
    }

    .navbar.mobile-open .nav-links {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
}

/* ── Light theme: frosted white header (works on pages without theme.css, e.g. service blogs) ── */
html[data-theme="light"] .top-bar {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(252, 250, 246, 0.95)) !important;
    color: #1f1a15 !important;
    border-bottom-color: rgba(92, 70, 33, 0.12) !important;
    box-shadow: 0 4px 24px rgba(90, 70, 42, 0.08) !important;
}

html[data-theme="light"] .top-bar a {
    color: #3d3529 !important;
}

html[data-theme="light"] .top-bar a:hover {
    color: #b67a17 !important;
}

html[data-theme="light"] .navbar {
    background: linear-gradient(180deg, rgba(255, 252, 246, 0.97), rgba(246, 242, 235, 0.94)) !important;
    border-color: rgba(92, 70, 33, 0.14) !important;
    box-shadow:
        0 8px 32px rgba(90, 70, 42, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.85) !important;
}

html[data-theme="light"] .logo-section,
html[data-theme="light"] .logo-text .company-name {
    color: #18120b !important;
}

html[data-theme="light"] .nav-links a,
html[data-theme="light"] .nav-links .nav-link {
    color: #3d3529 !important;
}

html[data-theme="light"] .nav-links a:hover,
html[data-theme="light"] .nav-links a.active,
html[data-theme="light"] .nav-links .nav-link:hover,
html[data-theme="light"] .nav-links .nav-link.active {
    color: #b67a17 !important;
}

html[data-theme="light"] .mobile-menu-toggle {
    color: #18120b !important;
    border-color: rgba(92, 70, 33, 0.22) !important;
}

@media (max-width: 968px) {
    html[data-theme="light"] .nav-links {
        background: rgba(252, 250, 246, 0.98) !important;
        border-color: rgba(92, 70, 33, 0.12) !important;
        box-shadow: 0 16px 32px rgba(90, 70, 42, 0.12) !important;
    }

    html[data-theme="light"] .nav-links .mobile-quote-item .nav-link {
        color: #fff !important;
    }
}
