/* Resetare stiluri de bază */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: #0f172a; /* Fundal închis pentru a scoate sticla în evidență */
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

/* Fundal cu fotografie doar pe pagina principală */
body.home-page {
    background: url('images/Pitesti night1.jpg') center center / cover no-repeat fixed;
}

/* Blur mai redus pentru containerul glass pe pagina principală */
body.home-page .glass-container {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* --- FUNDALUL FLUID (LIQUID) --- */
.glass-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 10s infinite alternate ease-in-out;
}

/* Sfere de culoare care se mișcă în fundal */
.blob1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #f59e0b, #ef4444); /* Culori de șantier/asfalt: galben/portocaliu */
    top: -10%;
    left: -10%;
}

.blob2 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4); /* Albastru modern */
    bottom: -20%;
    right: -10%;
    animation-delay: -5s;
}

.blob3 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    top: 40%;
    left: 40%;
    animation-delay: -3s;
    opacity: 0.35;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(80px, 50px) scale(1.2); }
}

/* --- CONTAINERUL GLASSMORPHISM --- */
.glass-container {
    position: relative;
    z-index: 2;
    width: 95%;            
    max-width: 1400px;     
    min-height: 90vh;      /* Păstrează înălțimea minimă */
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    padding: 30px;         
    display: flex;
    flex-direction: column;
    /* height: 90vh; <-- ȘTERGE SAU COMENTEAZĂ ACEASTĂ LINIE */
    /* overflow: hidden; <-- ȘTERGE SAU COMENTEAZĂ ACEASTĂ LINIE */
}

/* --- HEADER & MENIU ORIZONTAL --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
    position: relative; /* Necesar pentru poziționarea corectă a meniului mobil */
}

.logo {
    font-size: 26px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* Ne asigurăm că link-ul din logo nu își schimbă culoarea și aliniază imaginea cu textul */
/* Containerul principal al logo-ului */
.logo {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.03); /* Efect discret de mărire la hover */
}

/* Alinierea elementelor din interior (imagine + bloc text) */
.logo a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center; /* Centrează sigla pe verticală în raport cu textul */
    gap: 15px;           /* Spațiul dintre siglă și text */
}

/* Controlul dimensiunii și efectului pe siglă */
.logo img {
    height: 75px;        /* Am mărit de la 55px la 75px */
    width: auto;         
    object-fit: contain;
    filter: drop-shadow(0 0 8px #f59e0b); 
}

/* Blocul de text - adaptat pentru sigla mai mare */
.logo-text {
    display: flex;
    flex-direction: column; 
    line-height: 1.15;    
    text-align: left;
}

/* Stil pentru "Administratia" */
.line-1 {
    font-size: 16px;      /* Am mărit de la 14px */
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.85;       
}

/* Stil pentru "Strazilor Pitesti" */
.line-2 {
    font-size: 24px;      /* Am mărit de la 20px */
    font-weight: 700;    
    letter-spacing: 0.5px;
}
.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px; /* Am micșorat distanța dintre butoanele meniului (era 15px) */
}

.nav-links > li {
    position: relative; /* Necesar pentru poziționarea dropdown-ului */
}

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 10px 12px; /* Am îngustat ușor padding-ul lateral */
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 4px; /* AICI: Am micșorat distanța dintre text și săgeată (era 5px, acum e o idee mai strânsă) */
}

.nav-links a:hover, .nav-links a.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.05);
}

/* --- DROP-DOWN STIL GLASS --- */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(15, 23, 42, 0.8); /* Fundal mai închis pentru contrast */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    list-style: none;
    width: 220px;
    padding: 10px 0;
    margin-top: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
}

/* Afișare Dropdown la Hover */
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    border-radius: 0;
}

.dropdown-menu li a:hover {
    background: rgba(245, 158, 11, 0.2); /* Hover portocaliu/galben transparent */
    color: #f59e0b;
}

/* Săgeata de dropdown se rotește la hover */
.dropdown:hover i {
    transform: rotate(180deg);
}
.dropdown i {
    transition: transform 0.3s ease;
    font-size: 12px;
}

/* --- CONȚINUT PAGINĂ --- */
.content {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    padding: 20px 10px;
}

/* Pe pagina principală (index) centrăm vertical conținutul */
.content.hero-layout {
    align-items: center;
}

.content h1 span {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.content p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.6;
}

a.btn-glass, .btn-glass {
    display: inline-flex !important; /* Forțăm poziționarea corectă */
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1) !important; /* Fundalul de sticlă */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important; /* Forțăm textul să fie alb, nu albastru */
    padding: 12px 28px;
    text-decoration: none !important; /* Scoatem linia de sub text */
    border-radius: 30px !important; /* Margini rotunjite ca o pastilă */
    font-weight: 600;
    margin-top: 25px; /* Îl îndepărtăm puțin de paragraful de mai sus */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

.btn-glass i {
    transition: transform 0.3s ease;
}

a.btn-glass:hover, .btn-glass:hover {
    background: #f59e0b !important; /* Devine galben reflectorizant */
    color: #0f172a !important; /* Textul devine întunecat pentru contrast */
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.4);
}

/* Mișcarea săgeții din buton la hover */
a.btn-glass:hover i, .btn-glass:hover i {
    transform: translateX(5px);
}

/* Ascundem butonul de mobil pe desktop */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    z-index: 101;
    transition: 0.3s;
}

/* --- MEDIA QUERY PENTRU MOBIL ȘI TABLETE --- */
@media screen and (max-width: 992px) {
    .menu-toggle {
        display: block; /* Afișăm butonul hamburger */
    }

    /* Transformăm bara de navigare într-un meniu vertical ascuns */
    .navbar {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(15, 23, 42, 0.95); /* Fundal închis fluid */
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-radius: 15px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        padding: 20px;
        box-shadow: 0 15px 30px rgba(0,0,0,0.5);
        
        /* Starea inițială: ascuns prin prăbușire/opacitate */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.4s ease;
        z-index: 100;
    }

    /* Clasa care se va activa din JS la click pe hamburger */
    .navbar.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-links {
        flex-direction: column; /* Aliniere verticală */
        align-items: stretch;
        gap: 10px;
    }

    .nav-links a {
        padding: 12px 15px;
        width: 100%;
        justify-content: space-between; /* Pune săgeata în dreapta */
    }

    /* Modificări Dropdown pe Mobil */
    .dropdown-menu {
        position: relative; /* Nu mai plutește, împinge conținutul în jos */
        top: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.03);
        margin-top: 5px;
        box-shadow: none;
        
        /* Ascuns implicit pe mobil */
        display: none; 
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    /* Clasa activată din JS pentru afișarea sub-meniului pe mobil */
    .dropdown-menu.open {
        display: block;
    }

    .dropdown:hover .dropdown-menu {
        transform: none; /* Anulăm efectul de hover de pe desktop */
    }


    /* Conținutul paginii se adaptează și el pe mobil */
    .content h1 {
        font-size: 30px;
    }
    
    .glass-container {
        min-height: auto;
        padding: 15px;
    }
	
    .content {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    .hero-text {
        max-width: 100%;
        margin-bottom: 20px;
    }
    .hero-text h1 {
        font-size: 34px;
    }
    .services-grid {
        max-width: 100%;
    }

}
/* --- STIL PENTRU FOOTER (COPYRIGHT) --- */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: auto; /* Împinge footer-ul automat în josul paginii */
    width: 100%;
    text-align: center;
}

footer p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    letter-spacing: 0.5px;
}

footer strong {
    color: #f59e0b; /* Numele tău va fi evidențiat cu galbenul de șantier/asfalt */
    font-weight: 600;
}
.hero-text {
    flex: 1;
    max-width: 500px;
}
.hero-text h1 {
    font-size: 46px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
}
.services-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
    width: 100%;
    max-width: 620px;
}

.mini-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 16px;
}

.mini-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 22px 18px;
    text-align: center;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}

.mini-card i {
    font-size: 28px;
    color: #f59e0b;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.mini-card .card-emoji {
    display: block;
    font-size: 30px;
    margin-bottom: 14px;
    line-height: 1;
    transition: transform 0.3s ease;
}

.mini-card h3 {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    line-height: 1.45;
    margin-bottom: 0;
}
.mini-card p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
    margin-bottom: 0;
}

/* Efectul de plutire la hover pe carduri */
.mini-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 
                0 0 15px rgba(245, 158, 11, 0.1);
}

.mini-card:hover i {
    transform: rotate(-10deg) scale(1.1);
}

.mini-card:hover .card-emoji {
    transform: rotate(-10deg) scale(1.1);
}
/* ==========================================================================
   --- SECȚIUNE TIMELINE COMPACT (OPTIMIZAT PENTRU MULTE CONTRACTE) ---
   ========================================================================== */

.content-timeline {
    flex: 1; /* Ocupă tot spațiul rămas între header și footer */
    overflow-y: auto; /* Activează scroll-ul vertical doar aici */
    padding: 30px 15px;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    
    /* Personalizare bară de scroll discretă (pentru browserele moderne) */
    scrollbar-width: thin;
    scrollbar-color: rgba(245, 158, 11, 0.4) rgba(255, 255, 255, 0.05);
}
.content-timeline::-webkit-scrollbar {
    width: 6px;
}
.content-timeline::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}

.content-timeline::-webkit-scrollbar-thumb {
    background-color: rgba(245, 158, 11, 0.4);
    border-radius: 10px;
}

.content-timeline::-webkit-scrollbar-thumb:hover {
    background-color: #f59e0b; /* Devine mai vizibilă la hover */
}

/* Păstrăm un spațiu mic între timeline și footer pentru estetică */
footer {
    background: rgba(15, 23, 42, 0.2); /* Un fundal discret opțional sub footer */
    z-index: 10;
}

.timeline-header {
    text-align: center;
    margin-bottom: 40px;
}

.timeline-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.timeline-header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
}

/* Axa principală */
.timeline {
    position: relative;
    padding-left: 35px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 15px;
    bottom: 15px;
    width: 3px;
    background: linear-gradient(to bottom, #f59e0b, rgba(255, 255, 255, 0.05));
    border-radius: 2px;
}

.timeline-month-group {
    position: relative;
    margin-bottom: 35px;
}

/* Titlul Lunii */
.timeline-month-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #0f172a;
    background: #f59e0b;
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    margin-bottom: 15px;
    margin-left: -35px; 
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
    position: relative;
    z-index: 5;
}

/* Containerul colectiv al lunii */
.timeline-card.compact-list {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 5px 0; /* Spațiere verticală minimă în interior */
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Rândul individual al unui contract */
.contract-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s ease;
}

/* Scoatem bordura de la ultimul contract din listă ca să nu se suprapună urât */
.contract-row:last-child {
    border-bottom: none;
}

.contract-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* Zona de informații text */
.contract-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    margin-right: 20px;
}

.contract-row-date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    min-width: 45px; /* Aliniază datele frumos */
}

.contract-row-id {
    font-size: 14px;
    color: #f59e0b; /* Evidențiem numărul contractului */
    min-width: 110px;
}

.contract-row-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

/* Butonul minimalist de descărcare */
.btn-download-compact {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-download-compact i {
    color: #ef4444; /* Roșu discret pentru PDF */
}

.btn-download-compact:hover {
    background: #f59e0b;
    color: #0f172a;
    border-color: #f59e0b;
}

.btn-download-compact:hover i {
    color: #0f172a; /* Schimbăm culoarea iconiței la hover pentru contrast */
}

/* --- ADAPTARE MOBIL (RĂNDURILE DEVIN BLOCURI ELEMENTARE) --- */
@media screen and (max-width: 768px) {
    .timeline {
        padding-left: 25px;
    }
    .timeline::before {
        left: 8px;
    }
    .timeline-month-title {
        margin-left: -25px;
    }

    .contract-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 15px;
    }

    .contract-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        margin-right: 0;
    }

    .contract-row-date {
        min-width: auto;
    }

    .contract-row-id {
        min-width: auto;
    }
    
    .contract-row .btn-download-compact {
        width: 100%;
        justify-content: center;
    }
}
/* ==========================================================================
   --- SECȚIUNEA CONTACT — DESIGN PROFESIONAL ---
   ========================================================================== */

/* Titlu de pagină deasupra panourilor */
.contact-page-header {
    text-align: center;
    margin-bottom: 40px;
}

.contact-page-header h1 {
    font-size: 38px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.15;
}

.contact-page-header h1 span {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-page-header p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 15px;
    margin: 0;
}

/* Layout principal: stânga cu lățime fixă, formularul ocupă restul spațiului disponibil
   (astfel zona de mesaj e mai lată și nu se mai întinde atât de mult pe verticală) */
.contact-section {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 24px;
    width: 100%;
    align-items: start;
}

/* --- PANOUL STÂNGA (Date de contact) --- */
.contact-info-panel {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden; /* pentru accent-bar */
    color: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-info-panel:hover {
    border-color: rgba(245, 158, 11, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

/* Bara de accent galben în partea de sus a panoului info */
.contact-info-accent {
    height: 4px;
    background: linear-gradient(90deg, #f59e0b, #ef4444);
    width: 100%;
    flex-shrink: 0;
}

.contact-info-body {
    padding: 35px 30px 30px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    flex: 1;
}

.contact-info-panel .panel-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #f59e0b;
    margin-bottom: 6px;
}

.contact-info-panel h2 {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 0;
}

/* Elementele individuale de contact */
.info-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.info-item:hover {
    background: rgba(245, 158, 11, 0.06);
    border-color: rgba(245, 158, 11, 0.15);
}

.info-item-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-item-icon i {
    font-size: 16px;
    color: #f59e0b;
}

.info-item-text h4 {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 3px;
}

.info-item-text p {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    margin: 0;
}

/* Program de lucru */
.schedule-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 18px;
}

.schedule-box .panel-title {
    margin-bottom: 12px;
}

.schedule-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 13px;
}

.schedule-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.schedule-row .day {
    color: rgba(255, 255, 255, 0.55);
}

.schedule-row .hours {
    color: #fff;
    font-weight: 500;
}

.schedule-row .closed {
    color: rgba(239, 68, 68, 0.7);
    font-weight: 500;
}

/* Social media */
.social-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-box .panel-title {
    margin-bottom: 0;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    font-size: 15px;
}

.social-icons a:hover {
    background: #f59e0b;
    color: #0f172a;
    border-color: #f59e0b;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}

/* --- PANOUL DREAPTA (Formular) --- */
.contact-form-panel {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    color: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form-panel:hover {
    border-color: rgba(245, 158, 11, 0.15);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.contact-form-body {
    padding: 35px 30px 30px;
}

.contact-form-panel .panel-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #f59e0b;
    margin-bottom: 6px;
}

.contact-form-panel h2 {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 28px;
    line-height: 1.2;
}

/* Rând cu două câmpuri */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Grup câmp individual */
.form-group {
    position: relative;
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 7px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 13px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    outline: none;
    color: #fff;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    appearance: none;
}

.form-group select option {
    background: #0f172a;
    color: #fff;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.04);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.08);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Contor caractere */
.char-counter {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
    text-align: right;
    margin-top: 5px;
    display: block;
}

.char-counter.warn {
    color: #f59e0b;
}

/* Checkbox GDPR */
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 22px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    accent-color: #f59e0b;
    margin-top: 1px;
    cursor: pointer;
    padding: 0;
    border-radius: 4px;
}

.form-check label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.5;
    cursor: pointer;
}

.form-check label a {
    color: #f59e0b;
    text-decoration: none;
}

.form-check label a:hover {
    text-decoration: underline;
}

/* Buton submit */
.btn-submit {
    width: 100%;
    padding: 15px 24px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    border: none;
    border-radius: 12px;
    color: #0f172a;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    letter-spacing: 0.3px;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0);
    transition: background 0.3s ease;
}

.btn-submit:hover::before {
    background: rgba(255, 255, 255, 0.12);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 35px rgba(245, 158, 11, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.btn-submit:hover i {
    transform: translateX(4px);
}

/* Stare loading pe buton */
.btn-submit.loading {
    pointer-events: none;
    opacity: 0.8;
}

/* ==========================================================================
   --- POP-UP TOAST ---
   ========================================================================== */

.popup-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(40, 167, 69, 0.35);
    border-radius: 14px;
    padding: 18px 22px;
    color: #fff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    min-width: 300px;
    transition: all 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.popup-toast.hidden {
    opacity: 0;
    transform: translateY(60px) scale(0.92);
    pointer-events: none;
}

.popup-content {
    display: flex;
    align-items: center;
    gap: 14px;
}

.popup-content i {
    font-size: 26px;
    color: #28a745;
    flex-shrink: 0;
}

.popup-content h4 {
    margin: 0 0 3px;
    font-size: 15px;
    font-weight: 700;
}

.popup-content p {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
}

.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #28a745, #20c997);
    width: 100%;
    border-radius: 0 0 14px 14px;
}

.popup-toast:not(.hidden) .progress-bar {
    animation: shrinkWidth 10s linear forwards;
}

@keyframes shrinkWidth {
    from { width: 100%; }
    to   { width: 0%; }
}

/* ==========================================================================
   --- RESPONSIVE CONTACT ---
   ========================================================================== */

@media screen and (max-width: 992px) {
    body, html {
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
    }

    .glass-container {
        height: auto !important;
        min-height: 100vh;
        overflow: visible !important;
    }

    .content {
        height: auto;
        padding: 20px 0;
    }

    .contact-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-page-header h1 {
        font-size: 28px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .popup-toast {
        bottom: 15px;
        right: 15px;
        left: 15px;
        min-width: auto;
    }
}
/* ==========================================================================
   --- CLASE LIPSĂ — ADĂUGATE LA REPARARE ---
   ========================================================================== */

/* Hero badge (folosit pe index, despre, contracte) */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #f59e0b;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

/* Zona butoanelor hero (index) */
.hero-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 10px;
}

/* Doar pentru cititoare de ecran, ascuns vizual */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- CĂUTARE ÎN SITE (pagina principală) --- */
.site-search-wrapper {
    position: relative;
    max-width: 480px;
    margin-top: 32px;
}

.site-search-form {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.site-search-form:focus-within {
    border-color: #f59e0b;
    background: rgba(255, 255, 255, 0.12);
}

.site-search-form .search-icon {
    position: absolute;
    left: 18px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    pointer-events: none;
}

.site-search-form input[type="text"] {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 15px;
    padding: 15px 44px 15px 46px;
}

.site-search-form input[type="text"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-clear-btn {
    position: absolute;
    right: 10px;
    display: none;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 12px;
    transition: background 0.2s ease;
}

.search-clear-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.search-clear-btn.visible {
    display: flex;
}

.site-search-results {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    max-height: 380px;
    overflow-y: auto;
    background: rgba(20, 25, 40, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
    z-index: 50;
    padding: 8px;
}

.site-search-results.open {
    display: block;
}

.search-result-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 14px;
    border-radius: 10px;
    text-decoration: none;
    color: #fff;
    transition: background 0.15s ease;
}

.search-result-item:hover,
.search-result-item.active {
    background: rgba(245, 158, 11, 0.18);
}

.search-result-title {
    font-size: 14.5px;
    font-weight: 600;
    color: #fff;
}

.search-result-title mark {
    background: rgba(245, 158, 11, 0.55);
    color: #fff;
    border-radius: 3px;
    padding: 0 2px;
}

.search-result-category {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
}

.search-empty {
    padding: 14px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

@media (max-width: 600px) {
    .site-search-wrapper {
        max-width: 100%;
    }
    .site-search-form input[type="text"] {
        font-size: 14px;
        padding: 13px 40px 13px 42px;
    }
}

/* Buton secundar outline (index) */
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.85);
    padding: 12px 28px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    margin-top: 25px;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
    transform: translateY(-2px);
}

/* Wrapper iconiță card (index, despre) */
.card-icon {
    margin-bottom: 15px;
}

/* Shine overlay pe card — efectul "ghost" la hover */
.card-shine {
    position: absolute;
    top: -100%;
    left: -100%;
    width: 60%;
    height: 200%;
    background: linear-gradient(
        105deg,
        transparent 30%,
        rgba(255, 255, 255, 0.08) 50%,
        transparent 70%
    );
    transform: skewX(-15deg);
    pointer-events: none;
    border-radius: inherit;
}

.mini-card {
    position: relative; /* Necesar pentru card-shine */
    overflow: hidden;
}

/* La hover, shine-ul alunecă peste card de la stânga la dreapta */
.mini-card:hover .card-shine {
    left: 150%;
    transition: left 0.55s ease;
}

/* ==========================================================================
   --- PAGINA DESPRE (despre.html) ---
   ========================================================================== */

.about-page {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 40px;
    padding: 30px 10px;
}

.about-hero {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.about-hero h1 {
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 16px;
}

.about-hero h2 {
    
    color: #fff;
    line-height: 1.15;
    margin-bottom: 16px;
}

.about-hero h1 span {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.about-hero p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 0;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.service-panel {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 36px 40px;
    backdrop-filter: blur(10px);
}

.service-panel h2 {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
}

.service-panel > p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 28px;
}

.service-panel h3 {
    font-size: 15px;
    font-weight: 600;
    color: #f59e0b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.activity-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
}

.activity-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    line-height: 1.5;
}

.activity-list li i {
    color: #f59e0b;
    font-size: 14px;
    margin-top: 4px;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .service-panel { padding: 28px 22px; }
}

/* --- Panou serviciu cu imagine (text stânga / imagine dreapta) --- */
.service-panel-media {
    display: flex;
    align-items: center;
    gap: 40px;
}

.service-panel-media .service-panel-text {
    flex: 1 1 0;
    min-width: 0;
}

.service-panel-media .service-panel-image {
    flex: 0 0 320px;
}

.service-panel-media .service-panel-image img {
    display: block;
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
}

@media (max-width: 900px) {
    .service-panel-media {
        flex-direction: column;
    }
    .service-panel-media .service-panel-image {
        flex: none;
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
    }
}

/* --- Secțiuni informative (pagina Despre noi) --- */
.info-section {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    text-align: left;
    scroll-margin-top: 30px;
}

.info-section h2 {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-section .section-num {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.info-block {
    margin-bottom: 26px;
}

.info-block:last-child {
    margin-bottom: 0;
}

.info-block h3 {
    font-size: 15px;
    font-weight: 600;
    color: #f59e0b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.info-block p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 12px;
}

.info-block p:last-child {
    margin-bottom: 0;
}

.value-list,
.simple-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
}

.value-list li,
.simple-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    line-height: 1.6;
    padding-left: 20px;
    position: relative;
}

.value-list li::before,
.simple-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f59e0b;
    flex-shrink: 0;
}

.value-list li strong {
    color: #fff;
}

.doc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
}

.doc-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 18px;
}

.doc-list li span {
    flex: 1;
    min-width: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    font-weight: 500;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.admin-table th,
.admin-table td {
    text-align: left;
    padding: 14px 18px;
    color: rgba(255, 255, 255, 0.85);
}

.admin-table thead th {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.admin-table tbody tr:not(:last-child) td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

@media (max-width: 600px) {
    .info-section h2 { font-size: 20px; }
    .doc-list li { flex-direction: column; align-items: flex-start; }
}

.about-card {
    text-align: left;
}

.link-highlight {
    color: #f59e0b;
}

@media screen and (max-width: 600px) {
    .about-hero h1 { font-size: 30px; }
    .hero-actions { justify-content: center; }
}

/* ==========================================================================
   --- BARA DE CĂUTARE / TOOLBAR CONTRACTE ---
   ========================================================================== */

.timeline-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px 16px;
    flex: 1;
    max-width: 420px;
    transition: border-color 0.3s ease;
}

.search-box:focus-within {
    border-color: rgba(245, 158, 11, 0.4);
}

.search-box i {
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
    flex-shrink: 0;
}

.search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 14px;
    width: 100%;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.contract-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

/* Starea goală la căutare fără rezultate */
.timeline-empty {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.4);
}

.timeline-empty i {
    font-size: 40px;
    margin-bottom: 15px;
    display: block;
    color: rgba(255, 255, 255, 0.2);
}

.timeline-empty p {
    font-size: 15px;
    margin: 0;
}

.hidden {
    display: none !important;
}

@media screen and (max-width: 600px) {
    .timeline-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .search-box {
        max-width: 100%;
    }
}

/* ==========================================================================
   --- PAGINA DECLARAȚII DE AVERE — ACORDEON PE ANI ---
   ========================================================================== */

.declarations-header {
    text-align: center;
    margin-bottom: 36px;
}

.declarations-header h2 {
    font-size: 30px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.declarations-header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    max-width: 560px;
    margin: 0 auto;
}

/* Bara de căutare (refolosește .timeline-toolbar / .search-box deja definite) */

/* Container acordeon */
.years-accordion {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Un "an" = un panou de acordeon */
.year-panel {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.year-panel:hover {
    border-color: rgba(245, 158, 11, 0.18);
}

.year-panel.open {
    border-color: rgba(245, 158, 11, 0.3);
}

/* Antetul clicabil al anului */
.year-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 26px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.year-header-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

.year-number {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    min-width: 70px;
}

.year-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.year-meta-title {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

.year-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #f59e0b;
    font-weight: 600;
}

.year-count-badge i {
    font-size: 10px;
}

/* Săgeata din dreapta */
.year-chevron {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.35s ease, background 0.3s ease, border-color 0.3s ease;
}

.year-panel.open .year-chevron {
    transform: rotate(180deg);
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.3);
}

.year-chevron i {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    transition: color 0.3s ease;
}

.year-panel.open .year-chevron i {
    color: #f59e0b;
}

/* Corpul cu lista de declarații — colapsabil */
.year-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.year-panel.open .year-body {
    max-height: 2000px;
}

.year-body-inner {
    padding: 0 26px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 18px;
    margin-top: -1px;
}

/* O linie = o persoană / declarație */
.declaration-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.declaration-row:hover {
    background: rgba(245, 158, 11, 0.05);
    border-color: rgba(245, 158, 11, 0.18);
    transform: translateX(2px);
}

.declaration-person {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.declaration-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.declaration-avatar i {
    color: #f59e0b;
    font-size: 14px;
}

.declaration-text {
    min-width: 0;
}

.declaration-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.declaration-role {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.declaration-type-tag {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 9px;
    border-radius: 20px;
    flex-shrink: 0;
}

.tag-avere {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.tag-interese {
    background: rgba(59, 130, 246, 0.12);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.25);
}

/* Buton descarcă PDF (mic, identic ca filosofie cu .btn-download-compact) */
.btn-pdf {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    padding: 9px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.btn-pdf:hover {
    background: #f59e0b;
    color: #0f172a;
    border-color: #f59e0b;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(245, 158, 11, 0.3);
}

.btn-pdf i {
    font-size: 13px;
}

/* Empty state reutilizat (.timeline-empty deja există) */

/* Responsive */
@media screen and (max-width: 700px) {
    .declarations-header h2 {
        font-size: 24px;
    }

    .year-header {
        padding: 16px 18px;
    }

    .year-header-left {
        gap: 12px;
    }

    .year-number {
        font-size: 21px;
        min-width: 55px;
    }

    .year-body-inner {
        padding: 16px 16px 18px;
    }

    .declaration-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .declaration-person {
        width: 100%;
    }

    .btn-pdf {
        justify-content: center;
        width: 100%;
    }

    .declaration-type-tag {
        align-self: flex-start;
    }
}

/* ==========================================================================
   SUB-DROPDOWN (nivel 3) — meniul "Informații interes public"
   ========================================================================== */
.dropdown-menu-wide {
    width: 300px;
}

.dropdown-menu-wide > li > a {
    white-space: normal;
    line-height: 1.4;
}

.dropdown-sub {
    position: relative;
}

.dropdown-sub-trigger {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    cursor: pointer;
}

.dropdown-sub-trigger i {
    font-size: 11px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.dropdown-submenu {
    position: absolute;
    top: 0;
    /* Implicit se deschide spre DREAPTA triggerului. */
    left: 100%;
    right: auto;
    margin-left: 6px;
    margin-right: 0;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    list-style: none;
    width: 300px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
    z-index: 110;
}

.dropdown-sub:hover .dropdown-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.dropdown-submenu li a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    line-height: 1.4;
    white-space: normal;
    color: rgba(255, 255, 255, 0.8);
    border-radius: 0;
}

.dropdown-submenu li a:hover {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.dropdown-sub:hover .dropdown-sub-trigger i {
    transform: rotate(90deg);
}

.dropdown-trigger.active,
.dropdown-sub-trigger.active {
    color: #f59e0b;
}

@media screen and (max-width: 992px) {
    .dropdown-menu-wide {
        width: 100%;
    }

    .dropdown-submenu {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        margin-left: 0;
        margin-top: 5px;
        padding-left: 10px;
        background: rgba(255, 255, 255, 0.03);
        box-shadow: none;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .dropdown-submenu.open {
        display: block;
    }

    .dropdown-sub:hover .dropdown-submenu {
        transform: none;
    }
}

/* --- Variantă de rezervă: dacă spre dreapta nu ar încăpea (ferestre
   foarte înguste), JS adaugă .open-left pentru a-l deschide spre stânga --- */
.dropdown-submenu.open-left {
    left: auto;
    right: 100%;
    margin-left: 0;
    margin-right: 6px;
    transform: translateX(-10px);
}

.dropdown-sub:hover .dropdown-submenu.open-left {
    transform: translateX(0);
}

@media screen and (max-width: 992px) {
    .dropdown-submenu.open-left,
    .dropdown-submenu {
        left: 0;
        right: auto;
        margin-left: 0;
        margin-right: 0;
        transform: none;
    }
}

/* ==========================================================================
   INDICATOR DE NAVIGARE (breadcrumb) — „Acasă > Secțiune > Pagină"
   Folosit pe toate paginile interioare (mai puțin pagina principală).
   ========================================================================== */
.iip-breadcrumb {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto -10px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.iip-breadcrumb a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s ease;
}

.iip-breadcrumb a:hover {
    color: #f59e0b;
}

.iip-breadcrumb i {
    font-size: 10px;
    opacity: 0.6;
}

.iip-breadcrumb .current {
    color: rgba(255, 255, 255, 0.85);
}

/* Variantă pentru paginile fără spațiere flex (Contact, registrele cu scroll propriu) */
.iip-breadcrumb.iip-breadcrumb--flow {
    max-width: 100%;
    margin: 0 auto 24px;
}

@media (max-width: 600px) {
    .iip-breadcrumb { font-size: 12.5px; gap: 6px; }
}

/* ==========================================================================
   LISTE CU „AFIȘEAZĂ TOATE" — se văd cele mai recente 15, restul la buton
   Logica se află în script.js (secțiunea 6).
   ========================================================================== */
.recente-active:not(.is-expanded):not(.is-searching) [data-extra] {
    display: none !important;
}

.recente-active.is-expanded [data-extra] {
    animation: recenteIn 0.35s ease backwards;
}

@keyframes recenteIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .recente-active.is-expanded [data-extra] { animation: none; }
}

.recente-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.recente-bar[hidden] {
    display: none;
}

.recente-status {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.6);
}

.recente-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 22px;
    border-radius: 999px;
    border: 1px solid rgba(245, 158, 11, 0.45);
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.recente-btn:hover,
.recente-btn:focus-visible {
    background: rgba(245, 158, 11, 0.2);
    border-color: #f59e0b;
    outline: none;
}

.recente-btn i {
    font-size: 12px;
    transition: transform 0.25s ease;
}

.recente-bar.is-open .recente-btn i {
    transform: rotate(180deg);
}

@media (max-width: 600px) {
    .recente-bar {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .recente-btn {
        justify-content: center;
    }
}

/* iPhone / iPad în modul landscape: Safari mărește singur textul (textul din tabele apare
   înghesuit, iar butoanele — umflate). Această regulă oprește mărirea automată. */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}
