body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 950px;
    margin: 0 auto;
    padding: 0 20px 20px 20px;
    background-color: #f9f9f9;
}
/* Meniu Navigare */
nav {
    background-color: #02475e;
    padding: 15px 20px;
    margin: 0 -20px 30px -20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
/* ==========================================================================
   STIL REPROIECTAT PENTRU LOGO TIP BANNER ȘI MENIU
   ========================================================================== */
.logo-banner {
    width: 100%;
    text-align: center;
    padding: 20px 0;
    background-color: #ffffff; /* Fundal alb curat pentru a pune în valoare sigla */
    margin: 0 -20px; /* Aliniere perfectă cu marginile paginii */
}

.logo-banner img {
    max-width: 100%;
    height: auto;
    max-height: 120px; /* Înălțime generoasă pentru formatul de banner */
    display: inline-block;
}

/* Meniu ajustat pentru a sta sub banner */
nav {
    background-color: #02475e;
    padding: 12px 20px;
    margin: 0 -20px 30px -20px;
    display: flex;
    justify-content: center; /* Centrează butoanele din meniu sub siglă */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.92em;
    white-space: nowrap;
    transition: color 0.2s;
}

@media (max-width: 600px) {
    .logo-banner {
        padding: 15px 0;
    }
    .logo-banner img {
        max-height: 80px;
    }
}


h1, h2, h3 { 
    color: #02475e; 
    text-align: center; /* Forțează centrarea pe orice ecran, chiar și la cuvintele rămase pe rândul 2 */
}


/* Pagina Principala */
.hero {
    background: linear-gradient(135deg, #02475e 0%, #1a7494 100%);
    color: white;
    padding: 40px 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: center;
}
.hero h1 { color: white; margin-top: 0; }
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}
.feature-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border-top: 4px solid #02475e;
}
.feature-card h3 { color: #02475e; margin-top: 0; }
.cta-box {
    background: white;
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    border: 2px dashed #02475e;
}
.btn-green {
    display: inline-block;
    background-color: #25D366;
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    font-weight: bold;
    border-radius: 5px;
    margin-top: 15px;
}

/* Pagina de Comparatie */
.contact-info {
    background-color: #e2f0f9;
    padding: 12px 15px;
    border-left: 5px solid #02475e;
    font-weight: bold;
    margin-bottom: 20px;
    border-radius: 0 5px 5px 0;
}
.contact-info a { color: #02475e; text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }

.table-container {
    width: 100%;
    overflow-x: auto;
    margin: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 5px;
}
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { padding: 14px 15px; text-align: left; border-bottom: 1px solid #ddd; }
th { background-color: #02475e; color: white; }
tr:hover { background-color: #f1f7fa; }
.yes { color: #2e7d32; font-weight: bold; }
.no { color: #c62828; font-weight: bold; }

.flex-container { display: flex; gap: 20px; margin-top: 20px; }
.box {
    flex: 1;
    padding: 20px;
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.box-imeter { border-top: 4px solid #2e7d32; }
.box-vechi { border-top: 4px solid #c62828; }
ul { list-style-type: none; padding: 0; }
ul li { margin-bottom: 8px; }

.example-box {
    background-color: #fff;
    padding: 20px;
    border-left: 5px solid #ff9800;
    margin: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Recenzii */
.testimonials-section { margin: 50px 0; }
/*
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.testimonial-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid #eef2f5;
} */
/* ==========================================================================
   STIL RECENZII UNUL SUB ALTUL (Layout Vertical tip Feed)
   ========================================================================== */
.testimonials-grid {
    display: flex;
    flex-direction: column; /* Forțează așezarea elementelor unul sub altul */
    gap: 20px; /* Spațiul dintre recenzii */
    margin-top: 25px;
    max-width: 800px; /* Îngustează puțin lista pentru o citire mai confortabilă pe PC */
    margin-left: auto;
    margin-right: auto;
}

.testimonial-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid #eef2f5;
    border-left: 4px solid #25D366; /* Adaugă o dungă verde elegantă în stânga fiecărei recenzii */
    transition: transform 0.2s;
}

.testimonial-card:hover {
    transform: translateX(5px); /* Efect discret de deplasare spre dreapta la trecerea mouse-ului */
}
.stars { color: #ffb100; font-size: 1.1em; margin-bottom: 10px; }
.testimonial-text { font-style: italic; color: #555; font-size: 0.95em; margin-bottom: 15px; }
.testimonial-author { font-weight: bold; color: #02475e; font-size: 0.95em; }
.testimonial-role {
    font-size: 0.8em; color: #777; background: #f0f4f8;
    padding: 3px 8px; border-radius: 12px; display: inline-block; margin-top: 5px;
}

/* Caseta Finala de Contact (Fostul Footer) */
.conclusion {
    background-color: #fff; color: #333; padding: 25px; text-align: center;
    font-size: 1.2em; line-height: 1.8; border: 2px dashed #02475e;
    border-radius: 8px; margin-top: 40px; box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.cta-container { display: flex; justify-content: center; gap: 15px; margin-top: 20px; }
.cta-btn {
    display: inline-flex; align-items: center; justify-content: center;
    color: white; text-decoration: none; padding: 12px 25px; font-weight: bold;
    border-radius: 5px; font-size: 0.9em; transition: opacity 0.2s; min-width: 180px;
}
.cta-btn:hover { opacity: 0.9; }
.btn-call { background-color: #02475e; }
.btn-whatsapp { background-color: #25D366; }

/* ==========================================================================
   OPTIMIZARE PENTRU MOBIL ȘI TABLETE (Ecrane sub 950px)
   ========================================================================== */
@media (max-width: 950px) {
	    /* Maximizează spațiul util pentru text pe ecranele de telefon */
    .tech-content {
        padding: 15px !important; /* Reduce spațiul gol de pe margini de la 30px la 15px */
        margin-top: 10px;
    }

    body {
        padding: 0 10px 10px 10px;
    }
    
    .flex-container { 
        display: block; 
    }
    .box { 
        margin-bottom: 15px; 
    }

    /* Transformarea tabelului în carduri verticale */
    .table-container {
        box-shadow: none;
        background: transparent;
    }
    
    /* Corectat: thead în loc de theme */
    table, thead, tbody, th, td, tr { 
        display: block; 
    }
    
    /* Ascundem complet capul de tabel pe ecrane mici */
    thead tr { 
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    tr { 
        background: #fff;
        border: 1px solid #ddd; 
        margin-bottom: 20px;
        padding: 15px;
        border-radius: 8px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }
    
    tr:hover {
        background-color: #fff;
    }
    
    td { 
        border: none;
        border-bottom: 1px solid #eee; 
        position: relative;
        padding-left: 0;
        padding-top: 10px;
        padding-bottom: 10px;
    }
    
    td:last-child { 
        border-bottom: 0; 
    }
    
   /* Etichetele explicative care apar în fața fiecărei informații pe mobil */
    td:nth-of-type(1)::before { 
        content: "Caracteristică:"; 
        display: block;
        font-size: 0.75em;
        color: #777;
        font-weight: bold;
        margin-bottom: 4px;
    }
    td:nth-of-type(2)::before { 
        content: "Sistemul i-meter (Inteligent):"; 
        display: block;
        font-size: 0.75em;
        color: #2e7d32;
        font-weight: bold;
        margin-bottom: 4px;
    }
    td:nth-of-type(3)::before { 
        content: "Contoare radio vechi (Clasice):"; 
        display: block;
        font-size: 0.75em;
        color: #c62828;
        font-weight: bold;
        margin-bottom: 4px;
    }
}

@media (max-width: 600px) {
    nav { flex-direction: column; gap: 15px; text-align: center; }
    .cta-container { flex-direction: column; align-items: center; }
    .cta-btn { width: 100%; max-width: 280px; }
}

/* ==========================================================================
   STIL BARA DE ACCEPTARE COOKIE-URI (COOKIE BANNER)
   ========================================================================== */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 850px;
    background-color: #ffffff;
    color: #333333;
    padding: 15px 25px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    border-left: 4px solid #25D366; /* Dungă de accent verde */
    z-index: 99999; /* Se asigură că stă deasupra oricărui alt element din pagină */
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-content p {
    margin: 0;
    font-size: 0.9em;
    line-height: 1.5;
}

.cookie-content a {
    color: #02475e;
    text-decoration: underline;
    font-weight: bold;
}

.cookie-btn {
    background-color: #25D366;
    color: white;
    border: none;
    padding: 8px 20px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
    transition: background 0.2s;
    white-space: nowrap;
}

.cookie-btn:hover {
    background-color: #1b5e20;
}

/* Ajustare pentru ecrane mici (mobil) */
/* ==========================================================================
   STIL REPROIECTAT PENTRU MENIU HAMBURGER (Ecrane sub 600px)
   ========================================================================== */
@media (max-width: 600px) {
    nav { 
        justify-content: flex-end; /* Mută butonul hamburger în dreapta barei */
        padding: 10px 20px;
        position: relative;
    }

    /* Ascundem meniul clasic pe mobil și îl pregătim pentru deschidere verticală */
    .nav-links {
        display: none; 
        flex-direction: column;
        gap: 0;
        width: 100%;
        position: absolute;
        top: 100%; /* Apare exact sub bara albastră a meniului */
        left: 0;
        background-color: #02475e;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        z-index: 9999;
    }

    /* Clasa care se activează prin JavaScript când meniul este deschis */
    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        width: 100%;
        padding: 15px 20px;
        box-sizing: border-box;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-links a:last-child {
        border-bottom: none;
    }

    /* Designul celor 3 linii orizontale (Butonul Hamburger) */
    .hamburger-menu {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 24px;
        height: 18px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        box-sizing: border-box;
    }

    .hamburger-menu span {
        width: 100%;
        height: 2px;
        background-color: #ffffff; /* Culoarea albă pentru linii */
        transition: all 0.3s ease;
    }

    /* Efect vizual opțional: transformă cele 3 linii într-un "X" când meniul e deschis */
    .hamburger-menu.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger-menu.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Ajustări finale pentru butoane de contact și cookie-uri pe mobil */
    .cta-container { flex-direction: column; align-items: center; }
    .cta-btn { width: 100%; max-width: 280px; }
}

/* Ascundem butonul hamburger pe calculatoare (Desktop) */
@media (min-width: 601px) {
    .hamburger-menu {
        display: none;
    }
}

/* Stil pentru butonul de contact din textul legal */
.legal-btn-call {
    display: inline-flex;
    align-items: center;
    background-color: #02475e;
    color: white !important;
    text-decoration: none !important;
    padding: 4px 12px;
    font-weight: bold;
    font-size: 0.85em;
    border-radius: 4px;
    margin-left: 5px;
    transition: background 0.2s;
    vertical-align: middle;
}
.legal-btn-call:hover {
    background-color: #1a7494;
}


/* ==========================================================================
   BUTON CONT CLIENT (LOGIN) - FUNDAL ALB ȘI SCRIS VERDE
   ========================================================================== */
/* ==========================================================================
   BUTON CONT CLIENT (LOGIN) - ROTUNJIT (PILL SHAPE) & VIZIBIL PE MOBIL
   ========================================================================== */
nav .nav-links a.btn-login-nav {
    background-color: #ffffff !important;
    color: #2e7d32 !important;
    border: 2px solid #2e7d32 !important;
    padding: 6px 18px !important;
    border-radius: 25px !important;       /* Formă mult mai rotunjită, tip pastilă */
    font-weight: bold !important;
    margin-left: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
}

/* Efect la trecerea mouse-ului (Hover) */
nav .nav-links a.btn-login-nav:hover {
    background-color: #2e7d32 !important; /* La hover se inversează culorile */
    color: #ffffff !important;
    border-color: #ffffff !important;
}

/* Ajustare perfectă pentru ecrane de telefon (Mobil) */
@media (max-width: 600px) {
    nav .nav-links a.btn-login-nav {
        background-color: #2e7d32 !important; /* Pe mobil devine VERDE PLIN pentru contrast maxim */
        color: #ffffff !important;            /* Scris ALB ca să se vadă perfect */
        border: 2px solid #ffffff !important; /* Contur ALB fin */
        border-radius: 25px !important;       /* Păstrează forma rotunjită și pe mobil */
        margin: 15px auto !important;         /* Îl centrează și îi lasă spațiu liber sus/jos */
        width: 80% !important;                /* Ocupă 80% din lățime, ca un buton adevărat, nu o bandă lipită */
        max-width: 250px !important;
        padding: 12px 20px !important;
        box-sizing: border-box !important;
        display: flex !important;
    }
}


