/* ==========================================================================
   PALETA DE CULORI ȘI VARIABILE (Temă Calmă / Terapie Copii)
   ========================================================================== */
:root {
    --therapy-primary: #4A90E2;    /* Albastru cald */
    --therapy-green: #5CBA63;      /* Verde pastel */
    --therapy-orange: #FF9F43;     /* Portocaliu blând */
    --text-dark: #2C3E50;          /* Text principal */
    --text-muted: #7F8C8D;         /* Text secundar */
    --bg-light: #F8FAFC;           /* Fundalul general */
    --white: #FFFFFF;

    /* Teme pentru Smart Canvas Banner */
    --banner-calm-bg: #E3F2FD;
    --banner-calm-text: #1E88E5;
    --banner-curious-bg: #FFF3E0;
    --banner-curious-text: #FB8C00;
    --banner-important-bg: #FFEBEE;
    --banner-important-text: #E53935;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
}

/* ==========================================================================
   1. STILURI SMART CANVAS BANNER (Header Dinamic)
   ========================================================================== */
.smart-canvas-banner {
    position: relative;
    width: 100%;
    padding: 12px 20px;
    text-align: center;
    background-size: cover;
    background-position: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 999;
}
.smart-canvas-banner.theme-calm { background-color: var(--banner-calm-bg); color: var(--banner-calm-text); }
.smart-canvas-banner.theme-curious { background-color: var(--banner-curious-bg); color: var(--banner-curious-text); }
.smart-canvas-banner.theme-important { background-color: var(--banner-important-bg); color: var(--banner-important-text); }

.banner-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.15); 
    z-index: 1;
}
.banner-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}
.banner-text {
    font-weight: 600;
    font-size: 14px;
}
.banner-btn {
    display: inline-block;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 20px;
    background-color: var(--white);
    color: var(--text-dark);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}
.smart-canvas-banner.theme-calm .banner-btn { color: var(--banner-calm-text); }
.smart-canvas-banner.theme-curious .banner-btn { color: var(--banner-curious-text); }
.smart-canvas-banner.theme-important .banner-btn { color: var(--banner-important-text); }
.banner-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* ==========================================================================
   2. SECȚIUNEA HERO
   ========================================================================== */
.therapy-main {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    background: transparent;
    box-shadow: none;
}

/*.therapy-hero {
    text-align: center;
    /* TEHNICA APLICATĂ: Gradient alb cu 88% opacitate PESTE imaginea de fundal */
  /*  background: linear-gradient(rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.88)), url('./img/og-image.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    padding: 60px 40px;
    border-radius: 24px;
    margin-bottom: 50px;
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.05);
}*/

.hero-section {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.45)), url('./img/og-image.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 8px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.05);
    position: relative;
}

.therapy-hero h1 {
    font-size: 36px;
    color: var(--therapy-primary);
    margin-bottom: 15px;
    font-weight: 800;
}

.therapy-hero p {
    font-size: 18px;
    color: var(--text-dark);
    max-width: 800px;
    margin: 0 auto 25px auto;
    line-height: 1.6;
}

.btn-primary {
    display: inline-block;
    background-color: var(--therapy-orange);
    color: var(--white);
    padding: 14px 32px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 159, 67, 0.3);
}

.btn-primary:hover {
    background-color: #f38b2c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 159, 67, 0.4);
}

/* ==========================================================================
   3. STRUCTURĂ BARA DE NAVIGARE (Desktop)
   ========================================================================== */
.main-menu {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 15px 20px;
    position: relative;
    z-index: 1000;
}

.menu-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.menu-logo {
    display: flex;
    align-items: center;
}
.menu-logo img {
    height: 50px;
    width: auto;
    display: block;
}

#menu-toggle, 
.hamburger {
    display: none;
}

.menu-links {
    list-style: none;
    display: flex;
    gap: 15px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.menu-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 15px;
    padding: 10px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.menu-links a:hover {
    background-color: #F1F5F9;
    color: var(--therapy-primary);
}

.btn-login { background-color: var(--therapy-green); color: var(--white) !important; }
.btn-logout { background-color: var(--text-muted); color: var(--white) !important; }
.btn-admin { background-color: var(--therapy-primary); color: var(--white) !important; }

/* ==========================================================================
   4. GRID-UL DE SERVICII
   ========================================================================== */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}
.section-title h2 {
    font-size: 26px;
    color: var(--text-dark);
    letter-spacing: 1px;
}
.section-title p {
    color: var(--text-muted);
    font-size: 16px;
}
.therapy-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    margin-bottom: 60px;
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.02);
}
.therapy-row.reverse {
    flex-direction: row-reverse;
}
.feature-col-text {
    flex: 1;
}
.feature-col-text h2 {
    font-size: 24px;
    color: var(--therapy-primary);
    margin-bottom: 15px;
}
.feature-col-text p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 15px;
}
.feature-col-text ul {
    list-style: none;
    padding: 0;
}
.feature-col-text ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    font-size: 15px;
}
.feature-col-text ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--therapy-green);
    font-weight: bold;
    font-size: 16px;
}

.therapy-img-box {
    flex: 1;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}
.therapy-img-box img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}
.therapy-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: bold;
    color: var(--white);
    border-radius: 20px;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.badge-green { background-color: var(--therapy-green); }
.badge-orange { background-color: var(--therapy-orange); }

/* ==========================================================================
   5. STILURI PENTRU TABLETE
   ========================================================================== */
@media (max-width: 1024px) and (min-width: 769px) {
    .therapy-main { margin: 20px auto; }
    .therapy-hero { padding: 40px 30px; }
    .therapy-hero h1 { font-size: 30px; }
    .therapy-hero p { font-size: 16px; }
    .therapy-row { gap: 30px; padding: 20px; }
    .feature-col-text h2 { font-size: 21px; }
    .therapy-img-box img { height: 280px; }
}

/* ==========================================================================
   6. STILURI PENTRU MOBIL
   ========================================================================== */
@media (max-width: 768px) {
    .banner-content { flex-direction: column; gap: 8px; }
    .banner-text { font-size: 13px; line-height: 1.4; }
    .banner-btn { width: 100%; max-width: 200px; padding: 8px 0; }
    .therapy-hero { padding: 30px 15px; margin-bottom: 30px; border-radius: 16px; }
    .therapy-hero h1 { font-size: 24px; }
    .therapy-hero p { font-size: 15px; margin-bottom: 20px; }
    .btn-primary { width: 100%; box-sizing: border-box; text-align: center; }
    .therapy-row, .therapy-row.reverse { flex-direction: column !important; gap: 20px; padding: 15px; margin-bottom: 35px; }
    .feature-col-text, .therapy-img-box { width: 100% !important; }
    .therapy-img-box { order: -1; }
    .therapy-img-box img { height: 220px; }
    .feature-col-text h2 { font-size: 20px; margin-top: 10px; text-align: center; }
    .feature-col-text p { font-size: 14.5px; text-align: justify; }
}

/* ==========================================================================
   7. FOOTER
   ========================================================================== */
footer {
    background-color: #2C3E50;
    color: #FFFFFF !important;
    padding: 30px 20px 15px 20px;
    margin-top: auto;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto 20px auto;
    gap: 30px;
    text-align: left;
}

.footer-col {
    flex: 1;
    min-width: 220px;
}

.footer-col h3 {
    color: #FFFFFF;
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 700;
    position: relative;
    padding-bottom: 6px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 3px;
    background-color: #4A90E2; 
    border-radius: 2px;
}

.footer-brand {
    font-size: 20px !important;
    color: #4A90E2 !important;
}

.footer-col p {
    color: #CBD5E1;
    line-height: 1.5;
    margin: 0;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: #CBD5E1;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-col ul li a:hover {
    color: #4A90E2;
}

.footer-col ul li a.icon-home::before { content: "🏠"; }
.footer-col ul li a.icon-services::before { content: "🧩"; }
.footer-col ul li a.icon-contact::before { content: "✉️"; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
    width: 100%;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    color: #94A3B8;
    font-size: 13px;
}

footer .menu-logo img {
    height: 40px;
    width: auto;
}

/* ==========================================================================
   8. LOGICĂ ȘI AFIȘARE MENIUL BURGER (max-width: 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
    /* Afișăm butonul hamburger */
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 26px;
        height: 18px;
        cursor: pointer;
        z-index: 1001;
    }

    /* CORECTURĂ: Stilul liniilor din interiorul butonului burger */
    .hamburger span {
        display: block;
        height: 3px;
        width: 100%;
        background-color: var(--text-dark); /* Culoarea liniilor */
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    .menu-logo img {
        height: 40px;
    }

    .menu-links {
        display: none; 
        flex-direction: column;
        width: 100%;
        background-color: var(--white);
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 20px !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        gap: 10px;
        z-index: 999;
        border-top: 1px solid #E2E8F0;
    }

    .menu-links li {
        width: 100%;
    }

    .menu-links a {
        display: block;
        width: 100%;
        padding: 12px;
        text-align: center;
        box-sizing: border-box;
    }

    #menu-toggle:checked ~ .menu-links {
        display: flex;
    }

    /* ANIMAȚIE DE TRANSFORMARE ÎN "X" */
    #menu-toggle:checked ~ .hamburger span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    #menu-toggle:checked ~ .hamburger span:nth-child(2) {
        opacity: 0;
    }
    #menu-toggle:checked ~ .hamburger span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .footer-top {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-col ul li a {
        justify-content: center;
    }
    .footer-bottom-container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}