/* ================================================
   Blue Container Premium Menu v2.3
   Floating capsule — Outfit font, full blue palette
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@500;600;700;800;900&display=swap');

* {
    -webkit-tap-highlight-color: transparent !important;
}

:root {
    --bc-blue:        #1635a0;
    --bc-blue-dark:   #0d2278;
    --bc-blue-mid:    #2246c8;
    --bc-blue-vivid:  #3358e8;
    --bc-blue-pale:   #eef2ff;
    --bc-green:       #1a6b3c;
    --bc-green-dark:  #124d2b;
    --bc-green-pale:  #e6f4ee;
    --bc-white:       #ffffff;
    --bc-gold:        #b8960c;
    --bc-gray:        #1e293b;
    --bc-gray-mid:    #64748b;
    --bc-font:        'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --bc-ease:        cubic-bezier(0.4, 0, 0.2, 1);
    --bc-ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --bc-ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ================================================
   FLOATING HEADER WRAPPER
   ================================================ */

.bc-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    padding-top: 32px;
    transition: padding-top 0.4s var(--bc-ease-smooth);
    pointer-events: none;
}

.bc-header.scrolled {
    padding-top: 10px;
}

/* ================================================
   TOPBAR — floating pill above capsule
   ================================================ */

.bc-topbar {
    display: flex;
    justify-content: flex-end;
    max-width: 1240px;
    margin: 0 auto 6px;
    pointer-events: all;
    /* Slide up + fade on scroll */
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity 0.35s var(--bc-ease),
        transform 0.35s var(--bc-ease-smooth),
        max-height 0.35s var(--bc-ease-smooth);
    overflow: hidden;
}

.bc-header.scrolled .bc-topbar {
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    max-height: 0;
    margin-bottom: 0;
}

.bc-topbar-inner {
    padding: 0 4px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.bc-topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.bc-topbar-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: var(--bc-font);
    font-size: 16.5px;
    font-weight: 500;
    color: rgba(30,45,90,0.55);
    text-decoration: none;
    letter-spacing: 0.1px;
    transition: color 0.2s var(--bc-ease);
    white-space: nowrap;
}

a.bc-topbar-item:hover {
    color: var(--bc-blue);
}

.bc-whatsapp {
    color: #25D366 !important;
}

.bc-whatsapp:hover {
    opacity: 0.8;
}

.bc-topbar-item svg {
    opacity: 0.6;
    flex-shrink: 0;
}

.bc-whatsapp svg {
    opacity: 1;
}

/* ================================================
   CAPSULE NAVBAR
   ================================================ */

.bc-navbar {
    max-width: 1240px;
    margin: 0 auto;
    background: var(--bc-white);
    border-radius: 99px;
    box-shadow:
        0 2px 6px rgba(0,0,0,0.05),
        0 6px 20px rgba(22,53,160,0.08);
    pointer-events: all;
    transition:
        box-shadow 0.4s var(--bc-ease),
        background 0.4s var(--bc-ease);
}

.bc-header.scrolled .bc-navbar {
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow:
        0 4px 14px rgba(0,0,0,0.07),
        0 10px 30px rgba(22,53,160,0.10);
}

.bc-navbar-inner {
    padding: 0 14px 0 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
    transition: height 0.4s var(--bc-ease-smooth);
}

.bc-header.scrolled .bc-navbar-inner {
    height: 72px;
}

/* ================================================
   LOGO + PHONE GROUP
   ================================================ */

.bc-logo-group {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.bc-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.bc-logo img {
    height: 82px;
    width: auto;
    transition: all 0.4s var(--bc-ease-smooth);
}

.bc-logo:hover img {
    transform: scale(1.03);
    filter: drop-shadow(0 3px 10px rgba(22,53,160,0.2));
}

.bc-header.scrolled .bc-logo img {
    height: 60px;
}

/* Phone — no border, plain link */
.bc-logo-phone {
    display: flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    color: var(--bc-gray-mid);
    font-family: var(--bc-font);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.3px;
    padding: 4px 0;
    border: none;
    background: none;
    transition: color 0.22s var(--bc-ease);
    white-space: nowrap;
}

.bc-logo-phone svg {
    color: var(--bc-blue);
    flex-shrink: 0;
}

.bc-logo-phone:hover {
    color: var(--bc-blue);
}

/* ================================================
   DESKTOP NAVIGATION
   ================================================ */

.bc-nav {
    display: flex;
    align-items: center;
    gap: 2px;
}

.bc-nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

.bc-nav-list li a {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 11px 20px;
    font-family: var(--bc-font);
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    text-decoration: none;
    color: #1e2d5a;
    border-radius: 99px;
    transition: color 0.22s var(--bc-ease), background 0.22s var(--bc-ease);
    white-space: nowrap;
}

.bc-nav-list li a:hover {
    color: var(--bc-blue-dark);
    background: rgba(13,34,120,0.07);
}

.bc-nav-list li a.active {
    color: var(--bc-blue-dark);
    font-weight: 700;
    background: rgba(13,34,120,0.08);
}

/* Animated underline */
.bc-nav-list li a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 19px;
    right: 19px;
    height: 2.5px;
    background: var(--bc-blue-dark);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.28s var(--bc-ease-bounce);
}

.bc-nav-list li a:hover::after,
.bc-nav-list li a.active::after {
    transform: scaleX(1);
}

/* ================================================
   NAV ACTIONS — calculator + shop
   ================================================ */

.bc-nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 12px;
}

/* ── Configurator — verde sters ── */
.bc-calc-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: var(--bc-green-pale);
    color: var(--bc-green);
    border: none;
    text-decoration: none;
    font-family: var(--bc-font);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    border-radius: 99px;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.25s var(--bc-ease), color 0.25s var(--bc-ease), box-shadow 0.25s var(--bc-ease);
}

.bc-calc-btn span,
.bc-calc-btn svg {
    position: relative;
    z-index: 1;
}

.bc-calc-btn:hover {
    background: var(--bc-green);
    color: var(--bc-white);
    box-shadow: 0 4px 16px rgba(26,107,60,0.25);
}

/* ── Shop — albastru inchis solid, accent intens ── */
.bc-shop-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    background: var(--bc-blue-dark);
    color: var(--bc-white) !important;
    text-decoration: none;
    font-family: var(--bc-font);
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 99px;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.25s var(--bc-ease), transform 0.22s var(--bc-ease-bounce), box-shadow 0.25s var(--bc-ease);
}

/* Shine sweep */
.bc-shop-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
    transition: left 0.45s var(--bc-ease);
}

.bc-shop-btn:hover::before { left: 100%; }

.bc-shop-btn:hover {
    background: #060e36;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(13,34,120,0.40);
}

.bc-shop-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.bc-shop-btn svg {
    transition: transform 0.28s var(--bc-ease-bounce);
}

.bc-shop-btn:hover svg {
    transform: translateX(2px) scale(1.1);
}

/* ================================================
   HAMBURGER — Hidden on desktop
   ================================================ */

.bc-hamburger { display: none; }

/* ================================================
   RESPONSIVE — 1280px
   ================================================ */

@media (max-width: 1280px) {
    .bc-navbar {
        max-width: calc(100% - 48px);
        margin: 0 24px;
    }
    .bc-nav-list li a {
        padding: 10px 15px;
        font-size: 16px;
    }
    .bc-shop-btn {
        padding: 10px 18px;
        font-size: 14px;
    }
    .bc-calc-btn {
        padding: 9px 15px;
        font-size: 13px;
    }
}

/* ================================================
   RESPONSIVE — 1100px
   ================================================ */

@media (max-width: 1100px) {
    .bc-navbar {
        max-width: calc(100% - 32px);
        margin: 0 16px;
    }
    .bc-nav-list li a {
        padding: 9px 12px;
        font-size: 14px;
        letter-spacing: 0.3px;
    }
    .bc-shop-btn {
        padding: 10px 16px;
        font-size: 14px;
    }
    .bc-calc-btn {
        padding: 9px 14px;
        font-size: 13px;
    }
    .bc-logo img { height: 66px; }
    .bc-header.scrolled .bc-logo img { height: 52px; }
    .bc-logo-phone span { display: none; }
    .bc-logo-phone { gap: 0; }
}

/* ================================================
   MOBILE ≤ 991px
   ================================================ */

@media (max-width: 991px) {
    /* Mobile: tot floating, ca pe desktop */
    .bc-header {
        padding-top: 14px;
        pointer-events: none;
    }
    .bc-navbar {
        max-width: calc(100% - 32px);
        margin: 0 16px;
        border-radius: 99px;
        box-shadow:
            0 2px 6px rgba(0,0,0,0.06),
            0 6px 20px rgba(22,53,160,0.09);
        pointer-events: all;
    }
    .bc-header.scrolled {
        padding-top: 8px;
    }
    .bc-header.scrolled .bc-navbar {
        background: rgba(255,255,255,0.96);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }
    .bc-navbar-inner {
        padding: 0 14px 0 22px;
        height: 78px;
    }
    .bc-header.scrolled .bc-navbar-inner { height: 66px; }
    .bc-logo img { height: 58px; }
    .bc-header.scrolled .bc-logo img { height: 48px; }
    .bc-logo-phone { display: none; }
    .bc-nav { display: none; }
    .bc-topbar { display: none !important; }

    /* Hamburger — cerc rotund */
    .bc-hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 54px;
        height: 54px;
        background: var(--bc-blue);
        border: none;
        border-radius: 99px;
        cursor: pointer;
        padding: 0;
        z-index: 100001;
        position: relative;
        flex-shrink: 0;
        -webkit-user-select: none !important;
        user-select: none !important;
        outline: none !important;
        -webkit-appearance: none;
        appearance: none;
        transition: background 0.3s var(--bc-ease), transform 0.3s var(--bc-ease-bounce);
    }
    .bc-hamburger:hover {
        background: var(--bc-blue-mid);
        transform: scale(1.05);
    }
    .bc-hamburger:focus,
    .bc-hamburger:active {
        outline: none !important;
        background: var(--bc-blue);
    }
    .bc-hamburger-line {
        display: block;
        width: 26px;
        height: 2.5px;
        background: var(--bc-white);
        border-radius: 2px;
        transition: all 0.4s var(--bc-ease);
        transform-origin: center;
    }
    .bc-hamburger-line:nth-child(1) { margin-bottom: 6px; }
    .bc-hamburger-line:nth-child(2) { width: 18px; align-self: flex-start; margin-left: 14px; }
    .bc-hamburger-line:nth-child(3) { margin-top: 6px; }
    .bc-hamburger.active { background: rgba(255,255,255,0.12); }
    .bc-hamburger.active .bc-hamburger-line { width: 26px; margin-left: 0; }
    .bc-hamburger.active .bc-hamburger-line:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .bc-hamburger.active .bc-hamburger-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
    .bc-hamburger.active .bc-hamburger-line:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
}

/* ================================================
   FULLSCREEN OVERLAY (Mobile)
   ================================================ */

.bc-mobile-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 100000;
    pointer-events: none;
    overflow: hidden;
}
.bc-mobile-overlay.active { pointer-events: all; }

.bc-overlay-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, var(--bc-blue) 0%, var(--bc-blue-dark) 100%);
    clip-path: circle(0% at calc(100% - 43px) 57px);
    transition: clip-path 0.6s var(--bc-ease-smooth);
}
.bc-mobile-overlay.active .bc-overlay-bg {
    clip-path: circle(150% at calc(100% - 43px) 57px);
}
.bc-overlay-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.04) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s var(--bc-ease);
}
.bc-mobile-overlay.active .bc-overlay-bg::before { opacity: 1; }

.bc-close-btn {
    position: absolute;
    top: 18px; right: 18px;
    width: 54px; height: 54px;
    background: rgba(255,255,255,0.12);
    border: none;
    border-radius: 99px;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.4s var(--bc-ease), transform 0.4s var(--bc-ease);
    transition-delay: 0s;
    -webkit-user-select: none !important;
    user-select: none !important;
    outline: none !important;
    -webkit-appearance: none;
    appearance: none;
}
.bc-close-btn:focus,
.bc-close-btn:active,
.bc-close-btn:hover {
    outline: none !important;
    background: rgba(255,255,255,0.1);
}
.bc-mobile-overlay.active .bc-close-btn {
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.4s;
}
.bc-close-btn span {
    position: absolute;
    top: 50%; left: 50%;
    width: 18px; height: 2px;
    background: var(--bc-white);
    border-radius: 1px;
}
.bc-close-btn span:first-child { transform: translate(-50%, -50%) rotate(45deg); }
.bc-close-btn span:last-child  { transform: translate(-50%, -50%) rotate(-45deg); }

.bc-mobile-nav {
    position: absolute;
    top: calc(50% - 30px); left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    padding: 0 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bc-mobile-menu {
    list-style: none;
    margin: 0; padding: 0;
}
.bc-mobile-menu li { margin: 13px 0; }
.bc-mobile-menu li a {
    display: inline-block;
    font-family: var(--bc-font);
    font-size: 36px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--bc-white);
    text-decoration: none;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s var(--bc-ease-smooth);
}
.bc-mobile-overlay.active .bc-mobile-menu li a { opacity: 1; transform: translateY(0); }
.bc-mobile-overlay.active .bc-mobile-menu li:nth-child(1) a { transition-delay: 0.20s; }
.bc-mobile-overlay.active .bc-mobile-menu li:nth-child(2) a { transition-delay: 0.26s; }
.bc-mobile-overlay.active .bc-mobile-menu li:nth-child(3) a { transition-delay: 0.32s; }
.bc-mobile-overlay.active .bc-mobile-menu li:nth-child(4) a { transition-delay: 0.38s; }
.bc-mobile-overlay.active .bc-mobile-menu li:nth-child(5) a { transition-delay: 0.44s; }
.bc-mobile-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    width: 0; height: 3px;
    background: var(--bc-gold);
    transform: translateX(-50%);
    transition: width 0.3s var(--bc-ease);
}
.bc-mobile-menu li a:hover::after { width: 60%; }
.bc-mobile-menu li a:hover { color: rgba(255,255,255,0.9); }

.bc-mobile-separator {
    width: 60px; height: 1px;
    background: rgba(255,255,255,0.2);
    margin: 40px auto;
    opacity: 0;
    transform: scaleX(0);
    transition: all 0.4s var(--bc-ease);
}
.bc-mobile-overlay.active .bc-mobile-separator {
    opacity: 1; transform: scaleX(1); transition-delay: 0.5s;
}

/* Mobile CTA group — ASCUNS implicit */
.bc-mobile-ctas {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
    width: 240px;
    margin: 0 auto;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.4s var(--bc-ease);
}
.bc-mobile-overlay.active .bc-mobile-ctas {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
    transition-delay: 0.52s;
}

/* Shop — solid alb, primar si vizibil */
.bc-mobile-shop {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 17px 20px;
    background: var(--bc-white);
    border: none;
    border-radius: 99px;
    color: var(--bc-blue-dark);
    text-decoration: none;
    font-family: var(--bc-font);
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.18);
    transition: background 0.25s var(--bc-ease), box-shadow 0.25s var(--bc-ease), transform 0.22s var(--bc-ease-bounce);
}
.bc-mobile-shop:hover {
    background: var(--bc-blue-pale);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.22);
}

/* Configurator — ghost discret, secundar */
.bc-mobile-configurator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 20px;
    background: rgba(255,255,255,0.10);
    color: rgba(255,255,255,0.75);
    border: 1.5px solid rgba(255,255,255,0.18);
    border-radius: 99px;
    text-decoration: none;
    font-family: var(--bc-font);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: background 0.25s var(--bc-ease), color 0.25s var(--bc-ease), border-color 0.25s var(--bc-ease), transform 0.22s var(--bc-ease-bounce);
}
.bc-mobile-configurator:hover {
    background: rgba(255,255,255,0.18);
    color: var(--bc-white);
    border-color: rgba(255,255,255,0.35);
    transform: translateY(-2px);
}

/* Contact vertical */
.bc-mobile-contact {
    margin-top: 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.4s var(--bc-ease);
}
.bc-mobile-overlay.active .bc-mobile-contact {
    opacity: 1; transform: translateY(0); transition-delay: 0.62s;
}
.bc-mobile-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    font-family: var(--bc-font);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: color 0.25s var(--bc-ease);
}
.bc-mobile-contact-item svg { flex-shrink: 0; opacity: 0.7; }
.bc-mobile-contact-item:hover { color: var(--bc-white); }
.bc-mobile-wa { color: rgba(37,211,102,0.8) !important; }
.bc-mobile-wa svg { opacity: 1; }
.bc-mobile-wa:hover { color: #25D366 !important; }
.bc-mobile-address span { text-align: center; line-height: 1.4; }

/* ================================================
   BODY LOCK
   ================================================ */

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

/* ================================================
   MOBILE FINE-TUNING
   ================================================ */

@media (max-width: 480px) {
    .bc-mobile-menu li a { font-size: 30px; letter-spacing: 2px; }
    .bc-close-btn { width: 50px; height: 50px; }
    .bc-overlay-bg { clip-path: circle(0% at calc(100% - 39px) 52px); }
    .bc-mobile-overlay.active .bc-overlay-bg { clip-path: circle(150% at calc(100% - 39px) 52px); }
    .bc-mobile-separator { margin: 24px auto; }
}
@media (max-height: 650px) {
    .bc-mobile-menu li { margin: 4px 0; }
    .bc-mobile-menu li a { font-size: 26px; }
    .bc-mobile-separator { margin: 16px auto; }
    .bc-mobile-contact { margin-top: 16px; }
}
@media (min-width: 768px) and (max-width: 991px) {
    .bc-mobile-menu li a { font-size: 48px; }
}
