/* RESET GLOBAL & BAZĂ */
* {
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* STRUCTURĂ HEADER */
header.header-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 80px;
    background: linear-gradient(to bottom, rgba(24,38,52,0.98), rgba(24,38,52,0.90));
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    transition: height .3s ease, background .3s ease, box-shadow .3s ease;
}

.header-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media (min-width: 640px) {
    .header-container { padding: 0 24px; }
}

@media (min-width: 1024px) and (pointer: fine) {
    header.header-bg { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
    header.header-bg:hover { background: linear-gradient(135deg, rgba(40,60,78,0.99), rgba(40,60,78,0.92)); backdrop-filter: blur(6px); }
}

/* LOGO & BRANDING */
.logo-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
}
.logo-container {
    display: flex;
    align-items: center;
    gap: 2px;
    font-weight: 900;
    text-decoration: none;
    transition: transform 0.1s ease;
}
.logo-container:active { transform: scale(0.95); }

.logo-montaj { color: #60a5fa; font-size: 14px; transition: font-size 0.3s ease; }
.logo-instalatii { color: #fde047; font-size: 18px; transition: font-size 0.3s ease; }
.logo-sanitare { color: #f87171; font-size: 14px; transition: font-size 0.3s ease; }
.logo-dot { color: #ffffff; font-size: 14px; font-weight: 900; letter-spacing: -0.025em; transition: font-size 0.3s ease; }

@media (min-width: 640px) {
    .logo-montaj, .logo-sanitare, .logo-dot { font-size: 16px; }
    .logo-instalatii { font-size: 20px; }
}
@media (min-width: 768px) {
    .logo-montaj, .logo-sanitare, .logo-dot { font-size: 20px; }
    .logo-instalatii { font-size: 26px; }
}
@media (min-width: 1024px) {
    .logo-montaj, .logo-sanitare, .logo-dot { font-size: 30px; }
    .logo-instalatii { font-size: 36px; }
}

/* SUB-LOGO */
.sub-logo-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    margin-top: 4px;
    color: rgba(255,255,255,0.9);
    font-weight: 700;
    letter-spacing: 0.025em;
    white-space: nowrap;
    transition: all 0.3s ease;
}
.separator { color: rgba(255,255,255,0.4); }

@media (min-width: 640px) { .sub-logo-info { font-size: 13px; } }
@media (min-width: 768px) { .sub-logo-info { font-size: 14px; } }

/* STATUS INTERVENȚII DESKTOP */
.interventii-desktop { display: none; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 16px; transition: transform 0.3s ease; }
.interventii-status { display: flex; align-items: center; gap: 8px; }
.pulse-dot { width: 12px; height: 12px; background-color: #22c55e; border-radius: 9999px; animation: pulse-bullet 1.8s infinite; }
.text-green { color: #4ade80; font-weight: 700; letter-spacing: 0.025em; text-transform: uppercase; font-size: 16px; }
.text-sub-gray { font-size: 15px; color: rgba(255,255,255,0.7); font-weight: 500; margin-top: 2px; }
.font-bold { font-weight: 700; }
.uppercase { text-transform: uppercase; }
.text-15 { font-size: 16px; }

/* NAVIGARE DESKTOP */
.navigation-desktop { display: none; align-items: center; height: 100%; }
.nav-desktop-links {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 100%;
    font-weight: 700;
    font-size: 15px;
    transition: font-size 0.3s ease;
}

.nav-desktop-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all .2s ease;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 12px;
}

@media (min-width: 1024px) {
    .navigation-desktop { gap: 16px; }
    .nav-desktop-links { font-size: 17px; }
    .interventii-desktop .text-15 { font-size: 18px; }
    .interventii-desktop .text-sub-gray { font-size: 16px; }
}
@media (min-width: 1280px) {
    .nav-desktop-links { gap: 20px; font-size: 18px; }
    .navigation-desktop { gap: 24px; }
    .interventii-desktop .text-15 { font-size: 19px; }
    .interventii-desktop .text-sub-gray { font-size: 17px; }
}

/* Culori link-uri navigare */
.nav-desktop-links a.lnk-acasa { color: #ffffff; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); }
.nav-desktop-links a.lnk-servicii { color: #ffffff; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); }
.nav-desktop-links a.lnk-oferte { color: #fca5a5; background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.2); }
.nav-desktop-links a.lnk-preturi { color: #86efac; background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.2); }
.nav-desktop-links a.lnk-realizari { color: #fde047; background: rgba(234,179,8,0.05); border: 1px solid rgba(234,179,8,0.1); }
.nav-desktop-links a.lnk-zone { color: #d8b4fe; background: rgba(168,85,247,0.1); border: 1px solid rgba(168,85,247,0.2); }
.nav-desktop-links a.lnk-contact { color: #93c5fd; background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.2); }

.nav-desktop-links a:hover { transform: scale(1.06); }
.nav-desktop-links a.active::after { content: ''; position: absolute; bottom: -12px; left: 15%; width: 70%; height: 3px; background-color: #3b82f6; border-radius: 9999px; }
.home-link-container { width: 42px; height: 42px; border-radius: 50%; padding: 0; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; }
.svg-base { width: 26px; height: 26px; stroke-width: 2; display: block; transition: all 0.3s ease; }

/* BUTON MENIU MOBIL (BURGER) */
#mobile-menu-button {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 10px;
    border-radius: 12px;
    cursor: pointer;
    color: white;
    display: block;
    transition: all 0.1s;
}
#mobile-menu-button:active { transform: scale(0.9); transition: transform 0.1s; }
.burger-icon { width: 28px; height: 28px; display: block; transition: all 0.3s ease; }

/* INTERFAȚĂ MENIU MOBIL */
#mobile-menu {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(24,38,52,0.98);
    z-index: 100000;
    transform: translateY(-100%);
    transition: transform .4s cubic-bezier(.4, 0, .2, 1);
    display: flex;
    flex-direction: column;
}
#mobile-menu.active { transform: translateY(0); }

.mobile-menu-wrapper {
    padding: 16px 24px 24px 24px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    height: 100vh;
}
.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.mobile-logo-text {
    font-weight: 900;
    letter-spacing: -0.025em;
    font-size: 16px;
}
@media (min-width: 640px) { .mobile-logo-text { font-size: 20px; } }
@media (min-width: 768px) { .mobile-logo-text { font-size: 24px; } }

.text-blue { color: #60a5fa; }
.text-red { color: #f87171; }
.text-green { color: #4ade80; }
.text-yellow { color: #fde047; }
.text-purple { color: #d8b4fe; }
.text-light-gray { color: #94a3b8; }
.text-white { color: #ffffff; }

.mobile-location-status {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    color: #34d399;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.025em;
}
.mobile-location-status span:first-child { width: 10px; height: 10px; background-color: #22c55e; border-radius: 9999px; animation: pulse-bullet 1.8s infinite; }

#close-menu {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: rgba(255,255,255,0.05);
    border: none;
    color: white;
    font-size: 24px;
    font-weight: 300;
    cursor: pointer;
    transition: transform 0.1s;
}
#close-menu:active { transform: scale(0.75); transition: transform 0.1s; }

.mobile-links-container { width: 100%; max-width: 400px; margin: 12px auto 0 auto; }
.mobile-links-stack { display: flex; flex-direction: column; gap: 12px; }

.mobile-menu-link {
    color: #fff;
    text-decoration: none;
    transition: transform .2s ease;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
}
.mobile-menu-link:hover { transform: scale(1.02); }
.mobile-menu-link.active { background: rgba(59,130,246,0.2); border-left: 4px solid #3b82f6; color: #3b82f6; }

/* BUTOANE CONTACT MOBIL */
.mobile-cta-container { width: 100%; max-width: 400px; margin: 16px auto 0 auto; }
.mobile-cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px;
    background: rgba(255,255,255,0.05);
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.btn-call {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    background-color: #2563eb;
    color: white;
    border-radius: 22px;
    font-weight: 900;
    font-size: 14px;
    letter-spacing: -0.3px;
    text-decoration: none;
    position: relative;
}
.btn-call:active { transform: scale(0.95); }

.badge-suna {
    position: absolute;
    top: -10px;
    left: -6px;
    background: #ef4444;
    color: white;
    font-size: 12px;
    font-weight: 800;
    padding: 2px 16px;
    border-radius: 9999px;
    border: 1px solid rgba(255,255,255,0.2);
    animation: pulse-custom 1.8s ease-in-out infinite;
}
.btn-call svg { width: 14px; height: 14px; }

.btn-whatsapp {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    color: #4ade80;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
}
.btn-whatsapp:active { transform: scale(0.95); }
.btn-whatsapp svg { width: 24px; height: 24px; }

.mobile-footer-brand { text-align: center; margin-top: 16px; }
.brand-subtext { color: rgba(255,255,255,0.7); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.brand-maintext {
    margin-top: 4px;
    font-size: 24px;
    font-weight: 900;
    background: linear-gradient(to right, #60a5fa, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.025em;
}
@media (min-width: 640px) { .brand-maintext { font-size: 30px; } }

/* CLASE UTILITARE */
.dsp-flex-center { display: flex; align-items: center; justify-content: center; }
.dsp-flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-12px { gap: 12px; }
.margin-bottom-24px { margin-bottom: 24px; }
.icon-20px { width: 20px; height: 20px; }
.icon-24px { width: 24px; height: 24px; }
.icon-35px { width: 35px; height: 35px; }
.fill-white { fill: #ffffff; }
.fill-current { fill: currentColor; }
.font-black { font-weight: 900; }

/* EFECT SCROLL HEADER */
header.header-bg.header-scrolled {
    height: 60px;
    background: linear-gradient(to bottom, rgba(24,38,52,0.99), rgba(24,38,52,0.95));
    box-shadow: 0 6px 30px rgba(0,0,0,0.3);
}
@media (max-width: 1023px) {
    header.header-bg.header-scrolled { height: 56px; }
}

.header-scrolled .logo-montaj,
.header-scrolled .logo-sanitare,
.header-scrolled .logo-dot { font-size: 12px; }
.header-scrolled .logo-instalatii { font-size: 15px; }
.header-scrolled .sub-logo-info { font-size: 10px; margin-top: 2px; gap: 4px; }
.header-scrolled .nav-desktop-links { font-size: 13px; }
.header-scrolled .nav-desktop-links a { padding: 4px 10px; }
.header-scrolled .home-link-container { width: 34px; height: 34px; }
.header-scrolled .svg-base { width: 20px; height: 20px; }
.header-scrolled .interventii-desktop { transform: scale(0.9); }
.header-scrolled #mobile-menu-button { padding: 6px; }
.header-scrolled .burger-icon { width: 22px; height: 22px; }

/* RESPONSIVE MANAGEMENT */
@media (max-width: 1023px) { header.header-bg { height: 75px; } }
@media (max-width: 360px) { .logo-container { transform: scale(0.9); } }
@media (min-width: 1024px) { .navigation-desktop { display: flex; } #mobile-menu-button { display: none; } }
@media (min-width: 1280px) { .interventii-desktop { display: flex; } }

/* ANIMATII PULS */
@keyframes pulse-custom {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.04); opacity: 0.85; }
}
@keyframes pulse-bullet {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.animate-now { animation: pulse-custom 1.8s ease-in-out infinite; }