/* ===========================================
   header.css — Sleek light header with glow nav
   Mobile-first responsive — scaled for presence
   =========================================== */

/* ---- Foundation ---- */
.site-header {
    position: relative;
    z-index: 1000;
    font-family: var(--brand-font-body, 'Inter', sans-serif);
}

.site-header *, .site-header *::before, .site-header *::after { box-sizing: border-box; }

/* ===========================================
   TOP BAR
   =========================================== */
.top-bar {
    background: var(--brand-bg, #fff);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.top-bar__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 6px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Brand: logo + company name */
.top-bar__brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    flex: 1 1 0;
    min-width: 0;
}

.top-bar__logo-img {
    height: 56px;
    width: auto;
    object-fit: contain;
}

.top-bar__company-name {
    font-family: var(--brand-font-heading, 'Inter', sans-serif);
    font-weight: var(--brand-font-heading-weight, 700);
    font-size: 18px;
    color: var(--brand-text, #111827);
    white-space: nowrap;
    letter-spacing: -0.02em;
}

/* Contacts */
.top-bar__contacts {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1 1 auto;
    justify-content: center;
    min-width: 0;
}

.top-bar__contacts-row--secondary { display: none; }

.top-bar__contacts-row {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: center;
}

.top-bar__contact {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 14.5px;
    color: var(--brand-text-secondary, #6B7280);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.25s;
}

a.top-bar__contact:hover {
    color: var(--brand-primary, #2563EB);
}

.top-bar__contact svg {
    flex-shrink: 0;
    opacity: 0.5;
    width: 18px;
    height: 18px;
}

.top-bar__contact--address {
    font-size: 12.5px;
    opacity: 0.85;
}

/* Right side: social + CTAs */
.top-bar__right {
    display: none;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    flex: 1 1 0;
    min-width: 0;
}

.top-bar__social {
    display: flex;
    align-items: center;
    gap: 4px;
}

.top-bar__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    color: var(--brand-text-secondary, #6B7280);
    transition: color 0.2s, background 0.2s;
}

.top-bar__social-link:hover {
    color: var(--brand-primary, #2563EB);
    background: rgba(37, 99, 235, 0.06);
}

.top-bar__social-link svg { width: 22px; height: 22px; }
.top-bar__social-link img { width: 22px; height: 22px; object-fit: contain; }

.top-bar__cta {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Top bar buttons */
.top-bar__btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 11px 20px;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1;
    border-radius: var(--brand-btn-radius, 8px);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    border: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.top-bar__btn svg {
    width: 18px;
    height: 18px;
}

.top-bar__btn:active { transform: scale(0.97); }

.top-bar__btn--primary {
    background: var(--brand-btn-bg, #2563EB);
    color: var(--brand-btn-text, #fff);
}

.top-bar__btn--primary:hover {
    background: var(--brand-btn-hover, #1D4ED8);
    box-shadow: 0 3px 16px rgba(37, 99, 235, 0.28);
}

.top-bar__btn--ghost {
    background: transparent;
    color: var(--brand-text-secondary, #6B7280);
    border: 1px solid rgba(0, 0, 0, 0.12);
}

.top-bar__btn--ghost:hover {
    color: var(--brand-primary, #2563EB);
    border-color: var(--brand-primary, #2563EB);
    background: rgba(37, 99, 235, 0.04);
}

/* Mobile right */
.top-bar__mobile-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar__mobile-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    color: var(--brand-primary, #2563EB);
    background: rgba(37, 99, 235, 0.07);
    transition: background 0.2s;
}

.top-bar__mobile-phone:hover { background: rgba(37, 99, 235, 0.13); }

/* Hamburger */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    gap: 6px;
    border-radius: 12px;
    transition: background 0.2s;
}

.hamburger:hover { background: rgba(0, 0, 0, 0.04); }

.hamburger__line {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--brand-text, #111827);
    border-radius: 2px;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s;
    transform-origin: center;
}

.hamburger.is-open .hamburger__line:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.hamburger.is-open .hamburger__line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-open .hamburger__line:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }


/* ===========================================
   GLOW NAVIGATION BAR
   The centerpiece — light, floating, per-item color glow
   =========================================== */
.glow-nav {
    display: none; /* shown on desktop */
    justify-content: center;
    padding: 10px 0 16px;
    position: relative;
    z-index: 999;
}

.glow-nav.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 12px 0;
    z-index: 9999;
    animation: glowNavSlideIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes glowNavSlideIn {
    from { opacity: 0; transform: translateY(-14px); }
    to   { opacity: 1; transform: translateY(0); }
}

.glow-nav__bar {
    display: inline-flex;
    align-items: center;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 18px;
    box-shadow:
        0 1px 4px rgba(0, 0, 0, 0.04),
        0 6px 20px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(0, 0, 0, 0.03);
    transition: box-shadow 0.3s;
    position: relative;
}

.glow-nav.is-sticky .glow-nav__bar {
    background: rgba(255, 255, 255, 0.94);
    box-shadow:
        0 2px 10px rgba(0, 0, 0, 0.06),
        0 10px 40px rgba(0, 0, 0, 0.09),
        0 0 0 1px rgba(0, 0, 0, 0.04);
}

.glow-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 3px;
}

/* Individual nav item */
.glow-nav__item {
    position: relative;
}

.glow-nav__link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 13px 22px;
    text-decoration: none;
    color: var(--brand-text-secondary, #6B7280);
    font-size: 15.5px;
    font-weight: 500;
    white-space: nowrap;
    border-radius: 12px;
    transition: color 0.3s;
    overflow: visible;
}

/* The glow — radial gradient using per-item CSS variable */
.glow-nav__glow {
    position: absolute;
    inset: -6px;
    border-radius: 18px;
    opacity: 0;
    transform: scale(0.7);
    transition:
        opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    background: radial-gradient(
        ellipse at center,
        rgba(var(--glow-rgb), 0.16) 0%,
        rgba(var(--glow-rgb), 0.06) 45%,
        transparent 75%
    );
    z-index: 0;
}

.glow-nav__link:hover .glow-nav__glow,
.glow-nav__item.is-active > .glow-nav__link .glow-nav__glow {
    opacity: 1;
    transform: scale(1.7);
}

.glow-nav__item.is-active > .glow-nav__link .glow-nav__glow {
    opacity: 0.9;
    transform: scale(1.9);
}

/* Icon */
.glow-nav__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    color: var(--brand-text-secondary, #6B7280);
    transition: color 0.3s;
}

.glow-nav__icon svg {
    width: 100%;
    height: 100%;
}

.glow-nav__link:hover .glow-nav__icon,
.glow-nav__item.is-active > .glow-nav__link .glow-nav__icon {
    color: var(--glow-color);
}

/* Label */
.glow-nav__label {
    position: relative;
    z-index: 1;
}

.glow-nav__link:hover,
.glow-nav__item.is-active > .glow-nav__link {
    color: var(--brand-text, #111827);
}

/* Chevron for dropdown */
.glow-nav__chevron {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    opacity: 0.4;
    transition: transform 0.3s, opacity 0.3s;
    width: 14px;
    height: 14px;
}

.glow-nav__item.has-dropdown:hover .glow-nav__chevron {
    transform: rotate(180deg);
    opacity: 0.7;
}

/* ===========================================
   DROPDOWN (same light glow style)
   =========================================== */
.glow-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 240px;
    padding-top: 12px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s, visibility 0.25s;
    z-index: 100;
}

.glow-nav__item.has-dropdown:hover > .glow-dropdown,
.glow-dropdown:hover {
    pointer-events: auto;
}

.glow-nav__item.has-dropdown:hover > .glow-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.glow-dropdown__inner {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 14px;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.08),
        0 14px 48px rgba(0, 0, 0, 0.07),
        0 0 0 1px rgba(0, 0, 0, 0.04);
    padding: 8px;
    overflow: hidden;
}

.glow-dropdown__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    font-size: 14.5px;
    font-weight: 450;
    color: var(--brand-text-secondary, #6B7280);
    text-decoration: none;
    border-radius: 10px;
    position: relative;
    transition: color 0.25s, background 0.25s;
}

.glow-dropdown__link::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 3px;
    height: 22px;
    border-radius: 3px;
    background: var(--glow-color, var(--brand-primary));
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.glow-dropdown__link:hover,
.glow-dropdown__link.is-active {
    color: var(--brand-text, #111827);
    background: rgba(var(--glow-rgb), 0.06);
}

.glow-dropdown__link:hover::before,
.glow-dropdown__link.is-active::before {
    transform: translateY(-50%) scaleY(1);
}

.glow-dropdown__icon {
    display: flex;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--brand-text-secondary, #6B7280);
    transition: color 0.25s;
}

.glow-dropdown__icon svg { width: 100%; height: 100%; }

.glow-dropdown__link:hover .glow-dropdown__icon,
.glow-dropdown__link.is-active .glow-dropdown__icon {
    color: var(--glow-color);
}


/* ===========================================
   MOBILE DRAWER
   =========================================== */
.mobile-drawer {
    position: fixed;
    inset: 0;
    z-index: 10000;
    visibility: hidden;
    pointer-events: none;
}

.mobile-drawer.is-open {
    visibility: visible;
    pointer-events: auto;
}

.mobile-drawer__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.3s;
}

.mobile-drawer.is-open .mobile-drawer__overlay { opacity: 1; }

.mobile-drawer__panel {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 320px;
    max-width: 85vw;
    background: #fff;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-drawer.is-open .mobile-drawer__panel { transform: translateX(0); }

.mobile-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.mobile-drawer__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.mobile-drawer__brand img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.mobile-drawer__brand span {
    font-family: var(--brand-font-heading, 'Inter', sans-serif);
    font-weight: 600;
    font-size: 16px;
    color: var(--brand-text, #111827);
}

.mobile-drawer__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--brand-text-secondary, #6B7280);
    border-radius: 10px;
    transition: background 0.2s;
}

.mobile-drawer__close:hover { background: rgba(0, 0, 0, 0.05); }

/* Nav groups */
.mobile-drawer__nav {
    flex: 1;
    padding: 10px 0;
    overflow-y: auto;
}

.mobile-drawer__group {
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.mobile-drawer__row {
    display: flex;
    align-items: center;
}

.mobile-drawer__link {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 500;
    color: var(--brand-text, #111827);
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
}

.mobile-drawer__link:hover {
    color: var(--glow-color, var(--brand-primary));
    background: rgba(var(--glow-rgb, 59,130,246), 0.04);
}

.mobile-drawer__icon {
    display: flex;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--glow-color, var(--brand-text-secondary));
}

.mobile-drawer__icon svg { width: 100%; height: 100%; }

.mobile-drawer__expand {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--brand-text-secondary, #6B7280);
    transition: transform 0.3s;
    flex-shrink: 0;
}

.mobile-drawer__expand.is-open { transform: rotate(180deg); }

.mobile-drawer__sub {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(0, 0, 0, 0.015);
}

.mobile-drawer__sub.is-open { max-height: 600px; }

.mobile-drawer__sublink {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px 12px 38px;
    font-size: 15px;
    color: var(--brand-text-secondary, #6B7280);
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
    border-left: 2px solid transparent;
}

.mobile-drawer__sublink:hover {
    color: var(--glow-color, var(--brand-primary));
    background: rgba(var(--glow-rgb, 59,130,246), 0.04);
    border-left-color: var(--glow-color, var(--brand-primary));
}

/* Drawer footer */
.mobile-drawer__bottom {
    padding: 18px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.mobile-drawer__cta-btn {
    display: block;
    width: 100%;
    padding: 14px 20px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border-radius: var(--brand-btn-radius, 8px);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.mobile-drawer__cta-btn--primary {
    background: var(--brand-btn-bg, #2563EB);
    color: var(--brand-btn-text, #fff);
}

.mobile-drawer__cta-btn--primary:hover {
    background: var(--brand-btn-hover, #1D4ED8);
}

.mobile-drawer__cta-btn--ghost {
    background: transparent;
    color: var(--brand-text-secondary, #6B7280);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-drawer__cta-btn--ghost:hover {
    color: var(--brand-primary, #2563EB);
    border-color: var(--brand-primary, #2563EB);
}

.mobile-drawer__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
    color: var(--brand-text-secondary, #6B7280);
    padding-top: 6px;
}

.mobile-drawer__info a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.mobile-drawer__info a:hover { color: var(--brand-primary, #2563EB); }

.mobile-drawer__social {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 8px;
}

.mobile-drawer__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    color: var(--brand-text-secondary, #6B7280);
    background: rgba(0, 0, 0, 0.03);
    transition: color 0.2s, background 0.2s;
}

.mobile-drawer__social a:hover {
    color: var(--brand-primary, #2563EB);
    background: rgba(37, 99, 235, 0.07);
}

body.drawer-open { overflow: hidden; }


/* Breadcrumbs styles moved to components.css */


/* ===========================================
   RESPONSIVE — Tablet (768px+)
   =========================================== */
@media (min-width: 768px) {
    .top-bar__inner { padding: 0 28px; }
    .top-bar__contacts { display: flex; }
    .top-bar__contact--hours { display: none; }
    .mobile-drawer__panel { width: 360px; }
    .breadcrumbs__inner { padding: 12px 28px; }
}

/* ===========================================
   RESPONSIVE — Desktop (1200px+)
   =========================================== */
@media (min-width: 1200px) {
    .top-bar__inner { padding: 6px 40px; }
    .top-bar__logo-img { height: 138px; }
    .top-bar__company-name { font-size: 22px; }
    .top-bar__contacts { display: flex; }
    .top-bar__contacts-row--secondary { display: flex; }
    .top-bar__right { display: flex; }
    .top-bar__mobile-right { display: none; }

    .glow-nav { display: flex; }

    .breadcrumbs__inner { padding: 12px 40px; }
}
