/* ===================================================
   1. RESET, GLOBALE & STRUCTURĂ DE BAZĂ
=================================================== */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f7fa;
    color: #333;
}

.wrap {
    width: auto;
    margin: auto;
    padding: 20px;
}

/* ===== HEADER / HERO (MAI CURAT, MAI ENERGETIC) ===== */
.pagina-separata-header {
    background: linear-gradient(135deg, rgb(15,112,183), #084f82);
    color: #fff;
    padding: 60px 20px 40px;
    text-align: center;
}

/* ===== HEADER FORM ===== */
.header-form-section {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    flex-wrap: wrap;
}

.header-image {
    flex: 1;
    min-width: 300px;
}

.header-image img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* ===== FORM ===== */
.reservation-form {
    width: 400px;
    min-width: 300px;
    background-color: #2b3438;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.reservation-form h2 {
    color: #f39200;
    margin-bottom: 1em;
    text-align: center;
    font-size: 1.5em;
}

.reservation-form input,
.reservation-form select {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 1em;
    box-sizing: border-box;
    outline: none;
}

.reservation-form input:focus,
.reservation-form select:focus {
    border-color: rgb(15,112,183);
}

.reservation-form button {
    width: 100%;
    padding: 14px;
    background-color: rgb(243,146,0);
    color: #fff;
    border: none;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.reservation-form button:hover {
    background-color: rgb(220,130,0);
}

/* ===================================================
   3. SECȚIUNEA PAGINĂ CANALIZARE & TIPURI
=================================================== */
.canalizare-page {
    width: 100%;
    max-width: 1100px;
    margin: auto;
    padding: 40px 20px;
}

.canalizare-hero {
    text-align: center;
    margin-bottom: 50px;
}

.canalizare-hero h1 {
    font-size: 28px;
    color: #111;
    margin-bottom: 12px;
    font-weight: 700;
}

.canalizare-hero p {
    font-size: 16px;
    color: #555;
    max-width: 850px;
    margin: auto;
    line-height: 1.6;
}

.canalizare-types {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.canalizare-type {
    display: flex;
    gap: 40px;
    align-items: center;
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    transition: 0.3s ease;
}

.canalizare-type:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.canalizare-type.reverse {
    flex-direction: row-reverse;
}

.canalizare-img {
    flex: 1;
}

.canalizare-img img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    display: block;
}

.canalizare-info {
    flex: 1.3;
}

.canalizare-info h2 {
    font-size: 24px;
    margin: 0 0 15px 0;
    color: rgb(15,112,183);
    font-weight: 700;
}

.canalizare-info p {
    font-size: 15px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 15px;
}

.canalizare-info ul {
    margin: 0;
    padding-left: 20px;
}

.canalizare-info ul li {
    margin-bottom: 10px;
    color: #333;
    font-size: 14.5px;
    list-style-type: square;
}

/* ===================================================
   4. TABEL DE PREȚURI PREMIUM
=================================================== */
.canalizare-price-table {
    margin: 60px auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    overflow: hidden;
    padding: 1px;
}

.canalizare-price-table h2 {
    text-align: center;
    margin: 30px 0 20px 0;
    color: rgb(15,112,183);
    font-size: 26px;
    font-weight: 700;
}

.canalizare-price-table table {
    width: 100%;
    border-collapse: collapse;
}

.canalizare-price-table thead {
    background: rgb(15,112,183);
    color: #fff;
}

.canalizare-price-table th {
    padding: 18px 16px;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
}

.canalizare-price-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #eef2f7;
    font-size: 14.5px;
    color: #444;
}

.canalizare-price-table tbody tr:hover {
    background: #f4f7fa;
}

.canalizare-price-table tbody tr:last-child td,
.canalizare-price-table tbody tr:nth-last-child(2) td {
    font-weight: 600;
    color: #111;
    background: #fafbfc;
}

/* ===================================================
   5. MENTENANȚĂ ȘI CARDURI SERVICE CONSTRUCTIV
=================================================== */
.canalizare-service-modern {
    margin-top: 60px;
    text-align: center;
}

.canalizare-service-modern h2 {
    font-size: 28px;
    color: rgb(15, 112, 183);
    margin: 0 0 10px 0;
    font-weight: 700;
}

.canalizare-service-modern .service-subtitle {
    font-size: 15px;
    color: #666;
    max-width: 650px;
    margin: 0 auto 45px auto;
}

.service-grid-modern {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.service-card-modern {
    background: #ffffff;
    padding: 35px 22px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    border: 1px solid #eef2f7;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(15, 112, 183, 0.12);
    border-color: rgba(15, 112, 183, 0.2);
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: rgba(15, 112, 183, 0.1);
    margin-bottom: 20px;
    position: relative;
    transition: 0.3s;
}

.service-card-modern:hover .service-icon {
    background: rgb(15, 112, 183);
}

.service-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    transition: 0.3s;
}

.icon-video::after { width: 16px; height: 16px; border: 3px solid rgb(15, 112, 183); }
.service-card-modern:hover .icon-video::after { border-color: #fff; }

.icon-desfundare::after {
    width: 20px; height: 6px;
    border-top: 3px double rgb(15, 112, 183);
    border-bottom: 3px double rgb(15, 112, 183);
    border-radius: 0;
}
.service-card-modern:hover .icon-desfundare::after { border-top-color: #fff; border-bottom-color: #fff; }

.icon-fose::after { width: 14px; height: 18px; border: 3px solid rgb(15, 112, 183); border-radius: 0 0 8px 8px; }
.service-card-modern:hover .icon-fose::after { border-color: #fff; }

.icon-urgenta { background: rgba(243, 146, 0, 0.1); }
.icon-urgenta::after {
    width: 0; height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 16px solid rgb(243, 146, 0);
    transform: translate(-50%, -50%) rotate(15deg);
}
.service-card-modern:hover .icon-urgenta { background: rgb(243, 146, 0); }
.service-card-modern:hover .icon-urgenta::after { border-bottom-color: #fff; }

.service-card-modern h3 { font-size: 17px; margin: 0 0 12px 0; color: #111; font-weight: 600; }
.service-card-modern p { font-size: 14px; color: #666; line-height: 1.5; margin: 0; }

/* ===================================================
   6. SECȚIUNI GENERICE, FAQ & AVANTAJE
=================================================== */
.section {
    margin-bottom: 60px;
}

.section h2 {
    text-align: center;
    font-size: 30px;
    margin-bottom: 10px;
    color: rgb(15,112,183);
    font-weight: 700;
    padding-top: 20px;
}

.section .sub {
    text-align: center;
    color: #666;
    margin-bottom: 35px;
}

/* ===== SYSTEM ACCORDION (FAQ) ===== */
/* ===================================================
   FAQ SYSTEM (ADAPTAT PENTRU CATALOG & RETAIL)
=================================================== */
.srv-faq {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
}

.srv-faq h2 {
    text-align: center;
    margin-top: 50px;       /* Distanța optimă față de secțiunea de sus */
    margin-bottom: 30px;    /* Spațiu curat până la prima întrebare */
    color: rgb(15, 112, 183); /* Albastrul oficial din identitatea ta vizuală */
    font-size: 26px;        
    font-weight: 700;
}

.intrebari-frecvente-item,
.faq-item {
    max-width: 1000px;
    margin: 0 auto 12px auto;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    background: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Efect discret la trecerea cu mouse-ul peste blocul de întrebare */
.faq-item:hover {
    box-shadow: 0 4px 12px rgba(15, 112, 183, 0.06);
}

.intrebari-frecvente-item summary,
.faq-item summary {
    cursor: pointer;
    padding: 18px 20px;
    font-weight: 600;
    font-size: 16px;
    background: #f8fafc;
    color: #1e293b;
    outline: none;
    
    /* Aliniere flexibilă pentru text și indicatorul +/- */
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

/* Eliminarea completă a indicatorilor nativi din browsere (Chrome, Safari, Firefox) */
.intrebari-frecvente-item summary::-webkit-details-marker,
.faq-item summary::-webkit-details-marker {
    display: none !important;
}
.intrebari-frecvente-item summary::marker,
.faq-item summary::marker {
    display: none !important;
}

/* Stilizare fundal când elementul este deschis */
.intrebari-frecvente-item details[open] summary,
.faq-item details[open] summary {
    background: #e8f3ff; /* Fundalul albastru deschis curat */
    color: rgb(15, 112, 183);
    border-bottom: 1px solid #e2e8f0;
}

/* Indicator dinamic '+' generat din CSS */
.intrebari-frecvente-item summary::after,
.faq-item summary::after {
    content: '+';
    font-size: 22px;
    color: #64748b;
    font-weight: 600;
    margin-left: 15px;
    transition: transform 0.2s ease;
}

/* Transformare în '−' când accordionul este deschis */
.intrebari-frecvente-item details[open] summary::after,
.faq-item details[open] summary::after {
    content: '−';
    color: rgb(15, 112, 183);
}

/* Zona textului cu răspunsul */
.intrebari-frecvente-item .faq-answer,
.faq-item .faq-answer {
    background: #ffffff;
}

.intrebari-frecvente-item p,
.faq-item p {
    margin: 0;
    padding: 20px;
    line-height: 1.6;
    color: #475569;
    font-size: 15px;
}

/* ===================================================
   OPTIMIZARE STRICTĂ MOBIL PENTRU FAQ (≤ 768px)
=================================================== */
@media (max-width: 768px) {
    .srv-faq h2 {
        font-size: 22px !important;
        margin-top: 35px !important;
        margin-bottom: 20px !important;
        padding: 0 10px;
    }
    
    .intrebari-frecvente-item summary,
    .faq-item summary {
        padding: 15px 16px !important;
        font-size: 14.5px !important; /* Text ușor micșorat pentru a nu rupe rândurile aiurea */
    }
    
    .intrebari-frecvente-item p,
    .faq-item p {
        padding: 16px !important;
        font-size: 14px !important;
        line-height: 1.5;
    }
    
    .intrebari-frecvente-item summary::after,
    .faq-item summary::after {
        font-size: 18px !important;
    }
}

/* ===== BLOC AVANTAJE ===== */
.avantaje {
    background: #ffffff;
    padding: 60px 40px;
    margin-top: 50px;
    text-align: center;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.avantaje h2 {
    font-size: 30px;
    color: rgb(15,112,183);
    margin-bottom: 15px;
}

.avantaje-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.avantaj {
    background: #f8fafc;
    padding: 35px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    transition: 0.3s;
}

.avantaj:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.avantaj-icon {
    width: 70px;
    height: 70px;
    background: rgb(15,112,183);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px auto;
}

.avantaj-icon img {
    width: 35px;
    height: 35px;
}

.avantaj h3 { font-size: 18px; margin-bottom: 10px; color: #111; }
.avantaj p { font-size: 15px; color: #555; line-height: 1.5; }

/* ===================================================
   7. ZONES & MAP (CONSTRUCT INTERFEȚE STRUCTURATE)
=================================================== */
.zones-map-container {
    display: flex;
    gap: 25px;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.zones-map-image {
    flex: 1;
    min-width: 280px;
    text-align: center;
}

.zones-map-image img {
    width: 100%;
    max-width: 380px;
    height: auto;
    border-radius: 8px;
}

.zones-list {
    flex: 2;
    min-width: 300px;
}

.zones-list ul {
    columns: 3;
    -webkit-columns: 3;
    -moz-columns: 3;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.zones-list li {
    margin-bottom: 8px;
    font-size: 16px;
}

.zones-list li a {
    text-decoration: none;
    color: rgb(15,112,183);
    transition: 0.2s;
}

.zones-list li a:hover {
    text-decoration: underline;
}

/* ===================================================
   8. SECȚIUNILE DE CTA (CALL TO ACTION) & FIN
=================================================== */
.cta {
    display: flex;
    align-items: center;
    gap: 30px;
    background: rgb(15,112,183);
    color: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    margin-top: 50px;
    box-shadow: 0 8px 25px rgba(15,112,183, 0.15);
}

.cta-image { flex: 1; text-align: center; }
.cta-image img { width: 100%; max-width: 220px; border-radius: 10px; }
.cta-text { flex: 2; text-align: left; }

.cta-text h2 { font-size: 30px; color: #ffffff !important; margin: 0 0 10px 0; font-weight: 700; }
.cta-text p { font-size: 18px; margin-bottom: 25px; color: #e2f0ff; }
.cta-text a {
    display: inline-flex;
    align-items: center;
    background: rgb(243,146,0);
    color: #fff !important;
    padding: 15px 30px;
    font-size: 18px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: 0.3s;
}
.cta-text a:hover { background: rgb(220,130,0); }
.cta-text a i { margin-right: 8px; }

/* ===== CTA FIN BLOCK ===== */
.fin {
    background: linear-gradient(135deg,#0f70b7,#084f82);
    color: #fff;
    padding: 60px 25px;
    text-align: center;
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
    margin-top: 60px;
}

.fin h2 { font-size: 30px; margin: 0 0 12px 0; font-weight: 700; }
.fin p { font-size: 18px; margin-bottom: 25px; color: #e2f0ff; }
.fin a {
    display: inline-block;
    background: #fff;
    color: #0f70b7 !important;
    padding: 16px 36px;
    border-radius: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
}
.fin a:hover { transform: scale(1.03); box-shadow: 0 8px 20px rgba(0,0,0,0.2); }

/* ===== FOOTER STANDARD ===== */
.pagina-separata-header ~ footer {
    text-align: center;
    padding: 15px;
    background: #222;
    color: #ddd;
    margin-top: 50px;
    font-size: 13px;
    border-top: 1px solid #444;
}

.pagina-separata-header ~ footer a {
    color: #f39a00;
    text-decoration: none;
    margin: 0 5px;
}

/* ===================================================
   9. MAXIMUM DE OPTIMIZARE SPECIFICĂ PENTRU MOBIL (≤ 768px)
=================================================== */
@media (max-width: 768px) {
    /* Structura Grid devine coloană unică */
    .header-form-section,
    .canalizare-type, 
    .canalizare-type.reverse,
    .cta,
    .zones-map-container {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 25px !important;
    }

    /* Imagini adaptate pe lățime completă controlată */
    .header-image, .reservation-form, .canalizare-img, .canalizare-info, .cta-image, .cta-text, .zones-map-image, .zones-list {
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 100% !important;
    }

    .header-image img {
        height: 280px;
    }

    .canalizare-img img {
        max-width: 280px;
        margin: 0 auto;
    }

    /* Elemente text aliniate central pe mobil */
    .reservation-form h2, .canalizare-info h2, .cta-text h2 {
        text-align: center !important;
    }

    .canalizare-info ul {
        text-align: left !important;
        display: inline-block;
    }

    /* Rezolvare overflow tabel prețuri (Scroll Orizontal cursiv) */
    .canalizare-price-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 8px;
    }

    .canalizare-price-table table {
        min-width: 600px; /* Evită strivirea datelor tehnice */
    }

    /* Optimizare Grid de servicii și avantaje (2 coloane pe tablete/mobile mari) */
    .service-grid-modern {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }

    /* FORȚARE REGULĂ: Strict 3 Coloane Compacte pentru listă zone pe ecrane mobile */
    .zones-map-image img {
        width: 70% !important;
    }

    .zones-list ul {
        columns: 3 !important;
        -webkit-columns: 3 !important;
        -moz-columns: 3 !important;
        gap: 8px !important;
        text-align: left !important;
    }

    .zones-list li {
        margin-bottom: 8px !important;
        font-size: 12px !important; /* Dimensiune optimă anti-rupere */
        word-break: break-word;
    }

    /* Butoane întinse complet pe lățimea ecranului pentru uzabilitate tactilă */
    .cta-text a, .reservation-form button {
        display: flex !important;
        justify-content: center;
        align-items: center;
        width: 100% !important;
        padding: 16px !important;
    }
}

/* ===================================================
   10. OPTIMIZARE SUPLIMENTARĂ PENTRU ECRANE FOARTE MICI (≤ 480px)
=================================================== */
@media (max-width: 480px) {
    .service-grid-modern {
        grid-template-columns: 1fr !important; /* Trecere pe o singură coloană pe telefoane mici */
    }
    
    .pagina-separata-header h1 {
        font-size: 24px !important;
    }

    .canalizare-price-table h2, .canalizare-service-modern h2, .avantaje h2, .fin h2 {
        font-size: 22px !important;
    }
}