/*
Theme Name: Confectii Modulare
Author: Marius
Description: Tema pentru constructii modulare si confectii metalice. Culori beton, otel si corten. Clasica, fara Editorul de site; merge pe PHP 5.6.
Version: 2.0
Requires PHP: 5.6
Text Domain: confectii-modulare
*/

/* Paleta: beton #E8E9E5, otel #1F2A33, otel deschis #5C6B78, corten #8E3F1F, linie #C9CCC6 */

/* Resetări de bază */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Barlow', Arial, sans-serif;
    color: #2E3A44;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #E8E9E5;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* --- 1. BARA DE SUS (TOP HEADER) --- */
.top-header {
    background-color: #1F2A33; /* Albastru închis profund */
    color: #ffffff;
    font-size: 13.5px;
    padding: 8px 0;
    border-bottom: 2px solid #8E3F1F; /* O dungă subțire azurie */
}

.top-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-phones i {
    color: #8E3F1F;
    margin-right: 5px;
}

.top-phones span {
    font-weight: 600;
    margin-right: 10px;
}

.top-phones a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.top-phones a:hover {
    color: #8E3F1F;
}

.phone-separator {
    color: #8E3F1F;
    margin: 0 8px;
}

/* Social Iconițe */
.top-socials a {
    color: #ffffff;
    margin-left: 15px;
    font-size: 15px;
    transition: transform 0.2s ease, color 0.2s ease;
    display: inline-block;
}

.top-socials a:hover {
    color: #8E3F1F;
    transform: scale(1.15);
}

/* --- 2. HEADER-UL PRINCIPAL, LOGO ȘI TEXT --- */
.site-header {
    background-color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 15px 0 !important; /* Mai puțin padding ca să fie compact */
}

.header-main-container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

/* Containerul principal pentru grupul siglă-text */
.logo-group {
    flex: 0 1 auto; /* Nu se întinde, se conformează conținutului */
}

/* Link-ul care conține atât sigla cât și textul */
.logo-link {
    display: flex !important;
    align-items: center !important; /* Aliniază sigla și textul pe verticală */
    text-decoration: none !important;
    gap: 15px !important; /* Spațiu între siglă și text */
}

/* Stilul pentru sigla grafică */
.site-logo-img {
    max-height: 60px !important; /* Limitează înălțimea siglei */
    width: auto !important; /* Menține proporțiile */
    object-fit: contain;
}

/* Wrapper-ul pentru textul "Logo" (Nume și Slogan) */
.logo-text-wrapper {
    display: flex !important;
    flex-direction: column !important; /* Numele sus, Sloganul jos */
}

/* Stilul pentru numele principal: Dr. Diana Stegaru */
.site-title-custom {
    color: #1F2A33 !important; /* Albastru închis profund, la fel ca înainte */
    font-size: 24px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    line-height: 1.2 !important;
}

/* Stilul pentru slogan (Textul cu suflet) */
.site-tagline-custom {
    color: #8E3F1F !important; /* Azuriu, culoarea de accent */
    font-size: 13px !important;
    font-weight: 500 !important;
    margin-top: 2px !important;
    text-transform: none !important; /* Elimină uppercase-ul automat */
    letter-spacing: normal !important;
}

/* --- 3. MENIUL DE NAVIGARE (STIL STOMPRAX) --- */
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-navigation li {
    margin-left: 6px;
}

/* Stilul butoanelor de tip tab */
.main-navigation a {
    display: block;
    color: #5C6B78;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 18px;
    border-radius: 0;
    transition: all 0.3s ease;
}

/* Efectul de hover și clasa activă */
.main-navigation a:hover,
.main-navigation li.current-menu-item a {
    background-color: #8E3F1F; /* Fundal azuriu pe hover/activ */
    color: #ffffff;            /* Text alb pe hover/activ */
}


/* --- 4. SECȚIUNEA DE CONȚINUT --- */
.site-main {
    margin-top: 40px;
}

.content-area {
    background: #ffffff;
    padding: 30px;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.entry-header h2 {
    margin-top: 0;
}

.entry-header h2 a {
    color: #1F2A33;
    text-decoration: none;
}

.entry-header h2 a:hover {
    color: #8E3F1F;
}


/* --- 5. FOOTER-UL --- */
.site-footer {
    background-color: #1F2A33;
    color: #bbb;
    text-align: center;
    padding: 25px 0;
    margin-top: 60px;
    font-size: 13px;
    border-top: 3px solid #8E3F1F;
}

/* Stil special pentru link-ul și iconița de WhatsApp */
.top-phones a.whatsapp-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-weight: 600 !important; /* Îl facem puțin mai vizibil */
}

/* Culoarea oficială WhatsApp pentru iconiță */
.top-phones a.whatsapp-link i {
    color: #25D366 !important; 
    font-size: 17px !important;
    margin: 0 !important;
}

/* Efect discret la trecerea mouse-ului */
.top-phones a.whatsapp-link:hover {
    color: #25D366 !important;
    opacity: 0.9;
}

/* --- STIL PAGINĂ CONTACT --- */
.contact-cards-container {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 30px !important;
    margin-top: 20px !important;
}

.contact-card {
    flex: 1 1 300px !important;
    background: #F3F4F1 !important;
    border-left: 4px solid #8E3F1F !important;
    padding: 25px !important;
    border-radius: 0 !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06) !important;
}

.contact-card h3 {
    margin-top: 0 !important;
    color: #1F2A33 !important;
    font-size: 20px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.contact-card h3 i {
    color: #8E3F1F !important;
}

.contact-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 15px 0 0 0 !important;
}

.contact-list li {
    margin-bottom: 12px !important;
    font-size: 15px !important;
    color: #2E3A44 !important;
}

.contact-list a {
    color: #1F2A33 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}

.contact-list a:hover {
    color: #8E3F1F !important;
    text-decoration: underline !important;
}


/* --- REGULI RESPONSIVE PENTRU MOBIL (Sub 768px) --- */
@media screen and (max-width: 768px) {

    /* 1. Aliniere bara de sus (Telefoane) pe rânduri separate */
    .top-bar .container {
        flex-direction: column !important;
        gap: 8px !important;
        text-align: center !important;
    }

    /* 2. Header-ul principal (Logo + Meniu): le așezăm vertical */
    .header-main-container {
        flex-direction: column !important;
        align-items: center !important;
        gap: 15px !important;
    }

    /* Centrarea grupului Logo/Slogan */
    .logo-group {
        text-align: center !important;
    }
    
    .logo-link {
        flex-direction: column !important;
        gap: 8px !important;
    }

    /* 3. Meniul se rupe și vine pe rândul următor, centrat */
    .main-navigation ul {
        flex-wrap: wrap !important; /* Permite ruperea butoanelor pe rândul următor */
        justify-content: center !important;
        gap: 8px !important;
        padding: 0 !important;
    }

    .main-navigation li a {
        padding: 8px 12px !important;
        font-size: 14px !important;
        display: inline-block !important;
    }

    /* 4. Pagina de Contact: Cardurile se așază unul sub altul */
    .contact-cards-container {
        flex-direction: column !important;
        gap: 15px !important;
    }

    .contact-card {
        width: 100% !important;
    }

    /* 5. Inălțimea hărții ajustată pentru ecran mic */
    .map-container iframe {
        height: 300px !important;
    }
}

/* --- STIL PAGINĂ LISTĂ PREȚURI --- */
.price-page-wrapper {
    max-width: 900px !important;
    margin: 0 auto !important;
    font-family: inherit !important;
}

.price-header-card {
    background: #F3F4F1 !important;
    border-left: 4px solid #8E3F1F !important;
    padding: 25px !important;
    border-radius: 0 !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06) !important;
    margin-bottom: 25px !important;
}

.price-header-card h2 {
    margin: 0 !important;
    color: #1F2A33 !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
}

.price-header-card p {
    margin: 6px 0 0 0 !important;
    color: #5C6B78 !important;
    font-size: 15px !important;
}

.price-category-title {
    background: #1F2A33 !important;
    color: #ffffff !important;
    padding: 10px 16px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    border-left: 4px solid #8E3F1F !important;
    border-radius: 0 4px 0 0 !important;
    margin-top: 25px !important;
    margin-bottom: 0 !important;
}

.price-table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin-bottom: 20px !important;
    background-color: #ffffff !important;
    border: 1px solid #DADCD7 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02) !important;
}

.price-table th {
    background-color: #E8E9E5 !important;
    color: #1F2A33 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 13px !important;
    padding: 12px 15px !important;
    text-align: left !important;
    border-bottom: 2px solid #C9CCC6 !important;
}

.price-table th.price-col-head {
    text-align: right !important;
    width: 140px !important;
}

.price-table td {
    padding: 12px 15px !important;
    text-align: left !important;
    font-size: 14.5px !important;
    color: #2E3A44 !important;
    border-bottom: 1px solid #DADCD7 !important;
}

.price-table tr:nth-child(even) {
    background-color: #F3F4F1 !important;
}

.price-table td.price-value {
    text-align: right !important;
    font-weight: 700 !important;
    color: #8E3F1F !important;
    white-space: nowrap !important;
}


/* --- SECȚIUNE GALERIE & TUR CABINET --- */
.clinic-tour-section {
    padding: 40px 0 !important;
}

.clinic-tour-header {
    max-width: 800px !important;
    margin: 0 auto 40px auto !important;
}

.clinic-tour-header .sub-title {
    color: #8E3F1F !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    display: block !important;
    margin-bottom: 8px !important;
    text-align: left !important;
}

.clinic-tour-header h2 {
    color: #1F2A33 !important;
    font-size: 28px !important;
    margin-top: 0 !important;
    text-align: left !important;
}

/* Paragraph introductiv justificat */
.clinic-tour-header p.tour-intro-text {
    color: #5C6B78 !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    text-align: justify !important; /* Aliniere stânga-dreapta egală */
}

/* Structura pe 3 coloane */
.clinic-tour-grid {
    display: flex !important;
    gap: 25px !important;
    flex-wrap: wrap !important;
}

.tour-card {
    flex: 1 1 300px !important;
    background: #ffffff !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid #DADCD7 !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
}

.tour-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
}

.tour-image-wrapper {
    width: 100% !important;
    height: 240px !important;
    overflow: hidden !important;
}

.tour-image-wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.4s ease !important;
}

.tour-card:hover .tour-image-wrapper img {
    transform: scale(1.05) !important;
}

.tour-content {
    padding: 20px !important;
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

.tour-content h3 {
    color: #1F2A33 !important;
    font-size: 18px !important;
    margin-top: 0 !important;
    margin-bottom: 10px !important;
    text-align: left !important;
}

/* Textul din interiorul cardurilor justificat */
.tour-content p {
    color: #5C6B78 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    text-align: justify !important; /* Aliniere stânga-dreapta egală */
}



/* ===== Adaugiri v2.0 ===== */
h1, h2, h3, h4, .site-title-custom, .main-navigation a, .price-category-title {
    font-family: 'Barlow Semi Condensed', 'Arial Narrow', sans-serif;
    letter-spacing: -0.01em;
}
a { color: #8E3F1F; }
a:hover { color: #1F2A33; }
.entry-header h1, .entry-header h2 { color: #1F2A33; margin-top: 0; font-size: 2.2rem; line-height: 1.1; }

/* Logo incarcat din Aspect -> Personalizeaza */
.custom-logo { max-height: 60px; width: auto; display: block; }

/* Butoane din editorul de blocuri */
.wp-block-button__link, .wp-element-button {
    background-color: #8E3F1F; color: #fff; border-radius: 0;
    font-family: 'Barlow Semi Condensed', 'Arial Narrow', sans-serif; font-weight: 600;
    padding: 12px 26px; text-decoration: none;
}
.wp-block-button__link:hover { background-color: #1F2A33; color: #fff; }

/* Galerii: toate pozele la acelasi format 4:3, oricum au fost facute */
.wp-block-gallery .wp-block-image img,
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; height: auto; }
.wp-block-image img { height: auto; max-width: 100%; }

/* Poza mare de sus (blocul Cover) pe toata latimea continutului */
.content-area .wp-block-cover { margin-left: -30px; margin-right: -30px; }
.home .content-area { padding-top: 0; }
.home .content-area .wp-block-cover:first-child { margin-top: 0; }

/* Footer */
.site-footer a { color: #E8E9E5; }
.site-footer .footer-cols { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; text-align: left; margin-bottom: 20px; }
.site-footer .footer-cols > div { flex: 1 1 220px; }
.site-footer h3 { color: #fff; font-size: 18px; margin: 0 0 8px; }
.site-footer .footer-copy { border-top: 1px solid #5C6B78; padding-top: 15px; color: #C9CCC6; }

/* Banner GDPR */
#gdpr-cookie-banner { background: #1F2A33 !important; border-top: 3px solid #8E3F1F; }
#accept-gdpr-btn { background: #8E3F1F !important; border-radius: 0 !important; }

@media screen and (max-width: 768px) {
    .top-header-container { flex-direction: column; gap: 6px; text-align: center; }
    .content-area { padding: 20px; }
    .content-area .wp-block-cover { margin-left: -20px; margin-right: -20px; }
}
