/*
Theme Name: StegaruDent Custom
Author: Marius
Description: Tema oficiala pentru StegaruDent, inspirata din standardele clinice moderne.
Version: 1.1
*/

/* Resetări de bază */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #444;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #fcfcfc;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* --- 1. BARA DE SUS (TOP HEADER) --- */
.top-header {
    background-color: #0d3852; /* Albastru închis profund */
    color: #ffffff;
    font-size: 13.5px;
    padding: 8px 0;
    border-bottom: 2px solid #00a4e4; /* O dungă subțire azurie */
}

.top-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-phones i {
    color: #00a4e4;
    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: #00a4e4;
}

.phone-separator {
    color: #00a4e4;
    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: #00a4e4;
    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: #0d3852 !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: #00a4e4 !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: #555;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 18px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

/* Efectul de hover și clasa activă */
.main-navigation a:hover,
.main-navigation li.current-menu-item a {
    background-color: #00a4e4; /* 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: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.entry-header h2 {
    margin-top: 0;
}

.entry-header h2 a {
    color: #0d3852;
    text-decoration: none;
}

.entry-header h2 a:hover {
    color: #00a4e4;
}


/* --- 5. FOOTER-UL --- */
.site-footer {
    background-color: #111;
    color: #bbb;
    text-align: center;
    padding: 25px 0;
    margin-top: 60px;
    font-size: 13px;
    border-top: 3px solid #0d3852;
}

/* 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: #f8fafc !important;
    border-left: 4px solid #00a4e4 !important;
    padding: 25px !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06) !important;
}

.contact-card h3 {
    margin-top: 0 !important;
    color: #0d3852 !important;
    font-size: 20px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.contact-card h3 i {
    color: #00a4e4 !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: #444 !important;
}

.contact-list a {
    color: #0d3852 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}

.contact-list a:hover {
    color: #00a4e4 !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: #f8fafc !important;
    border-left: 4px solid #00a4e4 !important;
    padding: 25px !important;
    border-radius: 6px !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: #0d3852 !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
}

.price-header-card p {
    margin: 6px 0 0 0 !important;
    color: #555555 !important;
    font-size: 15px !important;
}

.price-category-title {
    background: #0d3852 !important;
    color: #ffffff !important;
    padding: 10px 16px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    border-left: 4px solid #00a4e4 !important;
    border-radius: 4px 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 #e2e8f0 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02) !important;
}

.price-table th {
    background-color: #f1f5f9 !important;
    color: #0d3852 !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 #cbd5e1 !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: #444444 !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.price-table tr:nth-child(even) {
    background-color: #f8fafc !important;
}

.price-table td.price-value {
    text-align: right !important;
    font-weight: 700 !important;
    color: #00a4e4 !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: #00a4e4 !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: #0d3852 !important;
    font-size: 28px !important;
    margin-top: 0 !important;
    text-align: left !important;
}

/* Paragraph introductiv justificat */
.clinic-tour-header p.tour-intro-text {
    color: #555 !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: 10px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06) !important;
    border: 1px solid #edf2f7 !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: #0d3852 !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: #666 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    text-align: justify !important; /* Aliniere stânga-dreapta egală */
}

