/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    /* Paleta Profesională (Navy Blue) */
    --primary: #0f3460;       /* Navy Blue închis - Header, Footer, Titluri */
    --secondary: #16213e;     /* Aproape negru - Text principal */
    --accent: #e94560;        /* Accent (opțional) */
    --link-blue: #0066cc;     /* Link-uri și butoane */
    --bg-light: #f3f4f6;      /* Fundal general gri deschis */
    --white: #ffffff;
    --muted: #6b7280;         /* Text secundar */
    --border: #e5e7eb;        /* Linii gri deschis */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--secondary);
    line-height: 1.6;
    font-size: 16px;
    
    /* FIX PENTRU FOOTER (Sticky Footer) */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Main ocupă tot spațiul liber */
main { flex: 1; width: 100%; }

a { color: inherit; text-decoration: none; transition: color 0.2s; }
img { max-width: 100%; display: block; }
ul, ol { margin-bottom: 15px; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }


/* =========================================
   2. HEADER (ALB - CLEAN)
   ========================================= */
header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

header.header-scrolled {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
}

.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 0; position: relative; min-height: 70px;
}

.brand-only { display: flex; align-items: center; text-decoration: none; z-index: 1002; }
.brand-img { height: 50px; width: auto; display: block; transition: transform .2s ease; }
.brand-only:hover .brand-img { transform: translateY(-2px); }

.nav-wrapper { display: flex; align-items: center; }

nav a {
    margin-left: 24px; font-size: 15px; font-weight: 600; color: var(--secondary); position: relative;
}
nav a:hover { color: var(--link-blue); }
nav a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -4px;
    height: 2px; background: var(--link-blue); transform: scaleX(0); transition: transform 0.2s;
}
nav a:hover::after { transform: scaleX(1); }

.header-phone-btn {
    margin-left: 24px; padding: 8px 18px !important;
    font-size: 14px !important; font-weight: 700 !important;
    display: inline-flex; align-items: center; gap: 8px;
    background-color: transparent; color: var(--primary);
    border: 2px solid var(--primary); border-radius: 50px;
    box-shadow: none !important; transition: all 0.3s ease;
}
.header-phone-btn:hover { background-color: var(--primary); color: #fff; transform: translateY(-2px); }
.header-phone-btn svg { width: 16px; height: 16px; fill: currentColor; }

.mobile-toggle {
    display: none; background: transparent; border: none; cursor: pointer;
    padding: 10px; z-index: 1002; margin-left: auto;
}
.mobile-toggle span {
    display: block; width: 25px; height: 3px; background-color: var(--primary);
    margin: 5px 0; border-radius: 3px; transition: all 0.3s ease;
}


/* =========================================
   3. HERO SECTIONS (BANNER)
   ========================================= */
.hero-wrap {
    padding: 140px 0 100px;
    /* Gradient Navy Blue (stânga) -> Transparent (dreapta) + Imagine */
    background: 
        linear-gradient(
            90deg, 
            rgba(15, 52, 96, 0.98) 0%, 
            rgba(15, 52, 96, 0.9) 45%, 
            rgba(15, 52, 96, 0.3) 100%
        ),
        url('../img/hero-bg.jpg');
        
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    color: var(--white);
    min-height: 600px;
    display: flex; align-items: center;
}

.hero-grid {
    display: flex; flex-direction: column;
    align-items: flex-start; /* Aliniere STÂNGA */
    justify-content: center; width: 100%;
}

.hero-content {
    width: 100%; max-width: 650px; text-align: left;
}

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 16px; border-radius: 50px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 14px; font-weight: 600; margin-bottom: 24px;
    backdrop-filter: blur(5px);
}
.hero-badge .dot { width: 8px; height: 8px; background: #4cc9f0; border-radius: 50%; }

.hero-title {
    font-size: 56px; line-height: 1.1;
    font-weight: 800; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-lead {
    font-size: 18px; color: rgba(255, 255, 255, 0.95);
    margin-top: 20px; margin-bottom: 25px; line-height: 1.6; font-weight: 500;
    max-width: 650px; 
}

.hero-benefits {
    list-style: none; padding: 0; margin-bottom: 0px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 15px 30px;
    max-width: 700px;
}
.hero-benefits li { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; color: #fff; }
.hero-benefits li svg { color: #4cc9f0; flex-shrink: 0; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)); }

.hero-schedule {
    background: rgba(15, 23, 42, 0.6); padding: 8px 20px; border-radius: 50px;
    display: inline-block; font-size: 13px; font-weight: 600; margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.15); backdrop-filter: blur(4px);
}

.hero-cta-group { display: flex; gap: 20px; align-items: center; justify-content: flex-start; }

.btn-outline-light {
    border: 2px solid rgba(255,255,255,0.6); color: #fff; background: transparent;
    display: inline-flex; align-items: center; gap: 10px;
    padding: 12px 28px; border-radius: 50px; font-weight: 700; text-decoration: none; transition: all 0.3s;
}
.btn-outline-light:hover { background: #fff; color: var(--primary); border-color: #fff; transform: translateY(-2px); }
.btn-outline-light svg { width: 20px; height: 20px; }

/* Page Hero */
.page-hero {
    background: var(--primary); color: var(--white); padding: 60px 0; margin-bottom: 40px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.page-hero h1 { font-size: 36px; margin-bottom: 10px; color: #fff; }
.page-hero-lead { max-width: 700px; color: #cbd5e1; font-size: 16px; }


/* =========================================
   4. SECTIONS & CARDS
   ========================================= */
.section { padding: 60px 0; }
.section-title { margin-bottom: 40px; }
.section-title h2 { font-size: 28px; color: var(--primary); margin-bottom: 8px; font-weight: 700; }
.section-title p { color: var(--muted); font-size: 16px; }

.grid-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.service-card {
    background: var(--white); padding: 24px; border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); border: 1px solid var(--border);
    transition: transform 0.3s, box-shadow 0.3s; display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); border-color: var(--link-blue); }
.service-card h3 { color: var(--primary); margin-bottom: 10px; font-size: 18px; }
.service-card p { font-size: 14px; color: var(--muted); margin-bottom: 15px; flex-grow: 1; }
.service-link { font-size: 13px; font-weight: 600; color: var(--link-blue); }


/* =========================================
   5. TARIFE
   ========================================= */
.pricing-wrapper { overflow-x: auto; background: #fff; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.pricing-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.pricing-table th { background: var(--primary); color: #fff; text-align: left; padding: 18px 20px; font-size: 14px; text-transform: uppercase; font-weight: 600; }
.pricing-table td { padding: 16px 20px; color: var(--secondary); border-bottom: 1px solid #e5e7eb; font-size: 15px; }
.pricing-table tr:nth-child(even) { background-color: #f8fafc; }
.pricing-table tr:hover { background-color: #eef2ff; transition: background 0.2s ease; }
.pricing-table td:first-child { font-weight: 600; color: var(--primary); }


/* =========================================
   6. DOCUMENTE
   ========================================= */
.docs-layout { display: grid; grid-template-columns: 260px 1fr; gap: 30px; margin-top: 20px; align-items: flex-start; }
.docs-tabs { display: flex; flex-direction: column; gap: 8px; }
.tab-btn {
    text-align: left; padding: 14px 20px; border-radius: 8px; background: #fff;
    border: 1px solid #e5e7eb; color: var(--muted); font-weight: 600; cursor: pointer;
    transition: all 0.2s ease; font-size: 14px;
}
.tab-btn:not(.active):hover {
    background: #fff; color: var(--link-blue); border-color: var(--link-blue);
    transform: translateX(4px); box-shadow: 0 4px 12px rgba(0, 102, 204, 0.15);
}
.tab-btn.active {
    background: var(--primary); color: #fff; border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(15, 52, 96, 0.3); transform: none;
}
.tab-content {
    background: #fff; padding: 30px; border-radius: 12px; border: 1px solid #e5e7eb;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05); display: none; animation: fadeIn 0.4s ease;
}
.tab-content.is-visible { display: block; }
.tab-content h3 { margin-top: 0; color: var(--primary); font-size: 20px; margin-bottom: 16px; border-bottom: 2px solid #f1f5f9; padding-bottom: 10px; }
.tab-content ul li { margin-bottom: 8px; padding-left: 5px; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }


/* =========================================
   7. PAGINI INTERIOARE
   ========================================= */
.layout-sidebar { display: grid; grid-template-columns: 2.4fr 1fr; gap: 30px; align-items: flex-start; }
.service-card-content {
    background: var(--white); border-radius: 16px; padding: 30px;
    box-shadow: 0 14px 40px rgba(15,23,42,0.08); border: 1px solid var(--border); margin-bottom: 24px;
}
.service-card-content h2 { color: var(--primary); font-size: 22px; margin-bottom: 15px; font-weight: 700; }
.service-card-content h3 { color: #111827; font-size: 18px; margin: 24px 0 12px; font-weight: 600; border-bottom: 1px solid #f3f4f6; padding-bottom: 6px; }
.service-card-content p, .service-card-content li { font-size: 15px; color: #374151; line-height: 1.7; margin-bottom: 10px; }
.service-card-content ul, .service-card-content ol { padding-left: 20px; margin-bottom: 15px; }

.sidebar-sticky { position: -webkit-sticky; position: sticky; top: 110px; z-index: 10; height: fit-content; }
.sidebar-card { background: var(--white); padding: 24px; border-radius: 16px; border: 1px solid var(--border); box-shadow: 0 10px 30px rgba(15,23,42,0.08); margin-bottom: 20px; }
.sidebar-card h3 { font-size: 16px; margin-bottom: 15px; color: var(--primary); text-transform: uppercase; letter-spacing: 0.5px; font-weight:700; }

.contact-box-highlight { background: #f0f7ff; border-left: 4px solid var(--link-blue); padding: 15px; border-radius: 4px; margin-top: 15px; }
.contact-box-highlight div { margin-bottom: 8px; }
.contact-box-highlight span.label { display: block; font-size: 11px; text-transform: uppercase; color: #64748b; font-weight: 700; margin-bottom: 2px; }
.contact-box-highlight a { font-size: 16px; font-weight: 700; color: var(--primary); text-decoration: none; display: block; }
.contact-box-highlight a:hover { color: var(--link-blue); text-decoration: underline; }


/* =========================================
   8. UTILITĂȚI TEXT & DETALII
   ========================================= */
.steps ol { counter-reset: step-counter; list-style: none; padding: 0; }
.steps ol li { position: relative; padding-left: 40px; margin-bottom: 12px; }
.steps ol li::before {
    content: counter(step-counter); counter-increment: step-counter; position: absolute; left: 0; top: 0;
    width: 28px; height: 28px; background: var(--link-blue); color: #fff;
    border-radius: 50%; text-align: center; line-height: 28px; font-size: 14px; font-weight: bold;
}
details { background: #f8fafc; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 10px; overflow: hidden; }
details[open] { background: #fff; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
summary { padding: 12px 16px; font-weight: 600; color: var(--primary); cursor: pointer; background: #f1f5f9; list-style: none; display: flex; justify-content: space-between; align-items: center; }
summary::after { content: '+'; font-weight: bold; font-size: 18px; }
details[open] summary::after { content: '-'; }
details[open] summary { border-bottom: 1px solid var(--border); background: #eef2ff; }
details div { padding: 16px; font-size: 14px; color: var(--secondary); }
.note { background: #fff8dc; border-left: 4px solid #f59e0b; padding: 12px; margin-top: 16px; border-radius: 4px; font-size: 14px; color: #78350f; }


/* =========================================
   9. BUTTONS
   ========================================= */
.btn { display: inline-block; padding: 12px 24px; border-radius: 50px; font-weight: 700; text-decoration: none; transition: all 0.3s; cursor: pointer; border: 2px solid #0f3460; font-size: 14px; }
.btn-primary { background: var(--link-blue); color: #fff; }
.btn-primary:hover { background: #005bb5; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0, 91, 181, 0.3); }
.btn-outline { border-color: var(--link-blue); color: var(--link-blue); background: transparent; }
.btn-outline:hover { background: var(--link-blue); color: #fff; }


/* =========================================
   10. FOOTER (ALBASTRU)
   ========================================= */
footer { background: var(--primary); color: #cbd5e1; padding: 60px 0 20px; margin-top: 0; }
footer h4 { color: var(--white); font-size: 14px; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 700; }
footer ul { list-style: none; padding: 0; font-size: 13px; }
footer li { margin-bottom: 8px; }
footer a { color: #cbd5e1; text-decoration: none; transition: color 0.2s; }
footer a:hover { color: var(--white); text-decoration: underline; }
.footer-copy { text-align: center; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.15); font-size: 13px; }


/* =========================================
   11. FIX CONTACT
   ========================================= */
#contact .layout-sidebar { grid-template-columns: 1fr 1fr; align-items: stretch; }
.contact-map-wrapper { background: #fff; padding: 10px; border-radius: 12px; border: 1px solid #e5e7eb; box-shadow: 0 10px 30px rgba(0,0,0,0.1); height: 100%; min-height: 450px; display: flex; flex-direction: column; }
.contact-map-wrapper iframe { width: 100% !important; height: 100% !important; flex-grow: 1; border-radius: 8px; display: block; border: 0; }


/* =========================================
   12. RESPONSIVE (Mobil - Layout Stivuit)
   ========================================= */
@media (max-width: 900px) {
    
    /* --- GLOBAL TYPOGRAPHY FIX (Titluri mici pe mobil) --- */
    /* Forțăm toate titlurile mari să aibă maxim 24px */
    h1, 
    h2,
    .hero-title, 
    .page-hero h1,
    .section-title h2,
    .service-card-content h2 {
        font-size: 24px !important;
        line-height: 1.3 !important;
        margin-bottom: 15px;
    }

    /* Titlurile secundare și mai mici */
    h3, .service-card-content h3 {
        font-size: 20px !important;
    }

    /* --- HERO SECTION --- */
    /* 1. RE-ACTIVARE HERO & Centrare */
    .hero-wrap { 
        display: block !important; 
        padding: 60px 20px; /* Padding ajustat pentru mobil */
        min-height: auto; /* Să nu fie prea înalt dacă textul e scurt */
        text-align: center;
    }

    /* 2. ALINIAZĂ CONȚINUTUL CENTRAT */
    .hero-grid { align-items: center; }
    .hero-content { 
        align-items: center; /* Centrează textul/badge-ul */
        text-align: center;
    }
    
    /* Hero lead text mai mic */
    .hero-lead { font-size: 15px; margin-bottom: 20px; }
    .page-hero-lead { font-size: 15px; }

    /* 3. BENEFITS (Stack vertical) */
    .hero-benefits {
        grid-template-columns: 1fr; /* Acum este 1 coloană (se stivuiește) */
        gap: 10px; /* Spațiu vertical între bife */
        margin: 0 auto 20px;
        max-width: 350px;
    }
    /* Asigură că textul rămâne aliniat la stânga în chenarul listei */
    .hero-benefits li { justify-content: flex-start; margin: 0 auto; width: 100%; }

    /* 4. BUTOANE (Stack vertical, Full Width) */
    .hero-cta-group { 
        flex-direction: column; /* Butoanele se stivuiesc */
        width: 100%; 
        max-width: 350px;
        margin: 0 auto;
    }
    .hero-cta-group a.btn { 
        width: 100%; /* Butoane pe toată lățimea */
        margin-bottom: 10px; 
        justify-content: center;
    }


    /* --- LAYOUT GENERAL --- */
    .layout-sidebar { grid-template-columns: 1fr; }
    #contact .layout-sidebar { grid-template-columns: 1fr; }
    .header-inner { flex-direction: row; align-items: center; gap: 0; }
    
    /* Navigație mobil */
    .nav-wrapper {
        position: absolute; top: 100%; left: 0; width: 100%;
        background-color: var(--white); flex-direction: column; align-items: center; padding: 0;
        max-height: 0; overflow: hidden;
        transition: max-height 0.4s ease-in-out, padding 0.4s ease;
        border-top: 1px solid var(--border); box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    .nav-wrapper.is-open { max-height: 400px; padding: 20px 0 30px; }

    nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; }
    nav a { margin: 0; padding: 12px 0; font-size: 18px; display: block; width: 100%; text-align: center; border-bottom: 1px solid var(--border); color: var(--secondary); }
    nav a:last-child { border-bottom: none; }
    
    .mobile-toggle { display: block; }
    .brand-only { display: flex; margin-left: 30px; }
    
    /* Ascundem butonul de telefon pe mobil */
    .header-phone-btn { 
        display: none !important; 
    }

    /* Altele */
    .docs-layout { grid-template-columns: 1fr; }
    .docs-tabs { flex-direction: row; overflow-x: auto; padding-bottom: 10px; }
    .tab-btn { white-space: nowrap; }
    .sidebar-sticky { position: static; }
    .contact-map-wrapper { min-height: 350px; margin-top: 20px; }
}

@media (max-width: 480px) {
    .header-phone-btn { display: none !important; }
}