/* --- STILURI GENERALE --- */
:root {
    --bg-color: #f4f4f4;
    --text-color: #333;
    --sidebar-bg: #fff;
    --border-color: #ddd;
    --item-bg: #fff;
    --item-text: #000;
}

body.dark-theme {
    --bg-color: #000;
    --text-color: #fff;
    --sidebar-bg: #000;
    --border-color: #222;
    --item-bg: #000;
    --item-text: #fff;
}

body, html {
    margin: 0; padding: 0;
    height: 100vh; width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* --- THEME TOGGLE --- */
.theme-toggle {
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-color);
    transition: transform 0.3s ease;
    margin-bottom: 20px;
}

.theme-toggle:hover {
    transform: rotate(15deg) scale(1.1);
}

/* --- STATS SECTION --- */
.stats-section {
    background-color: var(--bg-color);
    color: var(--text-color);
    padding: 100px 50px;
    border-top: 1px solid var(--border-color);
    margin-left: 70px; /* Offset for sidebar */
    width: calc(100% - 70px);
}

.stats-section .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    width: 100%;
}

.stat-item {
    text-align: center;
    margin: 20px;
}

.stat-number {
    font-size: 4rem;
    font-weight: 900;
    display: block;
    color: var(--text-color);
    /* Gradient text effect matches hero vibe if desired, keeping it clean white for now */
}

.stat-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.7;
    margin-top: 10px;
    display: block;
}

@media (max-width: 768px) {
    .stats-section {
        margin-left: 0;
        width: 100%;
        padding: 50px 20px;
        flex-direction: column;
    }
    
    .stat-number {
        font-size: 3rem;
    }
}

/* --- SIDEBAR (Desktop) --- */
/* Notă: .sidebar este definit în menu.css acum, dar păstrăm layout-ul general aici */

/* ... (restul stilurilor rămân în menu.css) ... */

.sidebar i { color: #fff; opacity: 0.7; cursor: pointer; transition: 0.3s; }
.sidebar i:hover { opacity: 1; }
.social-links { display: flex; flex-direction: column; gap: 25px; }

/* --- GALERIE (Desktop) --- */
.gallery-wrapper {
    display: flex; /* Orizontal pe desktop */
    height: 100vh;
    margin-left: 70px;
    width: calc(100% - 70px);
}

.gallery-item {
    position: relative;
    flex: 1;
    background-size: cover;
    background-position: center;
    transition: all 0.7s cubic-bezier(0.25, 1, 0.5, 1);
    filter: brightness(0.5);
    overflow: hidden;
    cursor: pointer;
}

/* Logică 33% / 16.5% */
.gallery-item:first-child { flex: 2; filter: brightness(1); }
.gallery-wrapper:hover .gallery-item { flex: 1; filter: brightness(0.5); }
.gallery-wrapper .gallery-item:hover { flex: 2; filter: brightness(1); }

/* --- CONȚINUT TEXT --- */
.item-content {
    position: absolute;
    bottom: 60px; left: 40px;
    color: white; opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    z-index: 10;
}

.gallery-item:first-child .item-content, 
.gallery-item:hover .item-content {
    opacity: 1; transform: translateY(0);
}

.gallery-wrapper:hover .gallery-item:first-child:not(:hover) .item-content {
    opacity: 0; transform: translateY(20px);
}

.title { font-size: 3rem; font-weight: 900; margin: 5px 0; }
.category { background: white; color: black; padding: 2px 10px; font-size: 0.7rem; font-weight: bold; }
.author { display: flex; align-items: center; margin-top: 10px; }
.author-avatar { width: 30px; height: 30px; border-radius: 50%; margin-right: 10px; background-size: cover; border: 1px solid white; }

/* --- ADAPTIVITATE PENTRU TELEFON (Mobil) --- */
@media (max-width: 768px) {
    /* Sidebar devine Header orizontal (definit în menu.css) */
    
    /* Galeria devine verticală (Stivă) */
    .gallery-wrapper {
        flex-direction: column;
        margin-left: 0;
        margin-top: 60px;
        width: 100%;
        height: calc(100vh - 60px);
    }

    /* Pe mobil, elementele se extind pe ÎNĂLȚIME */
    .gallery-item {
        width: 100%;
        flex: 1;
    }

    /* Proporția 33% / 16.5% adaptată pentru înălțime pe mobil */
    .gallery-item:first-child,
    .gallery-wrapper .gallery-item:hover {
        flex: 2.5; /* Ocupă mai mult spațiu vertical */
    }

    .gallery-wrapper:hover .gallery-item:not(:hover) {
        flex: 1;
    }

    /* Ajustări fonturi mobil */
    .title { font-size: 1.8rem; white-space: normal; }
    .item-content { bottom: 20px; left: 20px; }
}

/* --- BUTTONS --- */
.btn-cta {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--text-color);
    color: var(--bg-color);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 0;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    margin-top: 10px;
}

.btn-cta:hover {
    background-color: #f8b500;
    color: #000;
    transform: translateY(-2px);
}

.btn-card {
    display: inline-block;
    padding: 10px 25px;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.btn-card:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
}

/* --- SECTIONS GENERAL --- */
.section {
   
    background-color: var(--bg-color);
    color: var(--text-color);
    border-top: 1px solid var(--border-color);
    margin-block: 100px;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-left: 70px;
    width: calc(100% - 70px);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    text-align: center;
    margin-top: 80px;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- ABOUT SECTION --- */
.about-container {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
    justify-content: center;
}

.about-image {
    flex: 1;
    min-width: 300px;
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.about-content {
    flex: 1;
    min-width: 300px;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    opacity: 0.8;
}

/* --- PROCESS SECTION --- */
.steps-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.step-card {
    flex: 1;
    min-width: 250px;
    text-align: center;
    padding: 20px;
}

.step-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--text-color);
    opacity: 0.8;
}

.step-card h3 {
    font-size: 1.2rem;
    text-transform: uppercase;
    margin-bottom: 15px;
    font-weight: 700;
}

.step-card p {
    font-size: 0.9rem;
    opacity: 0.7;
    line-height: 1.6;
}

/* --- BENEFITS SECTION --- */
.benefits-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.benefit-card {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    text-align: center;
    padding: 30px;
    background: var(--border-color);
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.benefit-icon {
    font-size: 2.5rem;
    color: #f8b500;
    margin-bottom: 20px;
}

.benefit-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 700;
    text-transform: uppercase;
}

.benefit-card p {
    font-size: 0.95rem;
    opacity: 0.8;
    line-height: 1.6;
}


/* --- GALLERY SECTION --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 0 20px;
}

.gallery-thumb {
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.gallery-thumb:hover img {
    transform: scale(1.1);
}

/* --- LIGHTBOX MODAL --- */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    padding-top: 60px; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgb(0,0,0); 
    background-color: rgba(0,0,0,0.9); 
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    max-height: 80vh;
    object-fit: contain;
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}

.close {
    position: absolute;
    top: 30px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Next & previous buttons */
.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 40px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
    text-decoration: none;
    z-index: 2001; /* Above modal content */
}

/* Position the "next button" to the right */
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

/* Position the "prev button" to the left */
.prev {
    left: 0;
    border-radius: 0 3px 3px 0;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
    color: #f8b500;
}

/* --- TESTIMONIALS SECTION --- */
/* Removed .testimonials-container flex styles as we use bootstrap carousel now */

.testimonial-card {
    background: var(--border-color);
    padding: 40px;
    max-width: 600px; /* Increased width for single slide */
    border-radius: 4px;
    position: relative;
    text-align: center;
    margin: 0 auto; /* Center in slide */
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: #f8b500; /* Custom color for arrows */
    border-radius: 50%;
    padding: 20px;
    background-size: 50% 50%;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%; /* Narow width to not overlap content too much */
    opacity: 0.8;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.testimonial-card p {
    font-style: italic;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.client-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.client-info span {
    font-weight: 700;
    font-size: 0.9rem;
}

/* --- FAQ SECTION --- */
.faq-section .accordion-item {
    background-color: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 10px;
}

.faq-section .accordion-button {
    background-color: var(--border-color); /* Slightly lighter/darker than bg */
    color: var(--text-color);
    font-weight: 700;
    border-radius: 4px !important;
    box-shadow: none;
}

.faq-section .accordion-button:not(.collapsed) {
    background-color: #f8b500;
    color: #000;
}

.faq-section .accordion-button::after {
    filter: invert(1); /* White arrow for dark theme */
}

.faq-section .accordion-button:not(.collapsed)::after {
    filter: brightness(0); /* Black arrow for active state */
}

.faq-section .accordion-body {
    background-color: var(--bg-color);
    color: var(--text-color);
    padding: 20px;
    line-height: 1.6;
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 4px 4px;
}

/* --- CTA SECTION --- */
.cta-section {
    text-align: center;
    padding: 80px 20px;
}

.cta-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 30px;
}

/* --- CONTACT SECTION --- */
.contact-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 50px;
    align-items: flex-start;
}

.contact-info, .contact-form-wrapper {
    flex: 1;
    min-width: 300px;
}

.contact-info h3, .contact-form-wrapper h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    font-weight: 700;
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-info i {
    color: #f8b500;
    font-size: 1.2rem;
    width: 25px; 
    text-align: center;
}

.social-links-contact {
    margin-top: 30px;
    display: flex;
    gap: 20px;
}

.social-links-contact a {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-links-contact a:hover {
    color: #f8b500;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #f8b500;
}

.contact-form button {
    width: 100%;
    border: none;
    cursor: pointer;
}

.contact-form button {
    width: 100%;
    border: none;
    cursor: pointer;
}

/* --- STICKY SOCIAL BUTTONS --- */
.sticky-social {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 24px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.4);
    color: white;
}

.whatsapp { background-color: #25D366; }
.viber { background-color: #7360f2; }
.messenger { background-color: #0084FF; }

/* --- FOOTER --- */
.main-footer {
    background-color: var(--border-color); /* Footer slightly distinct */
    color: var(--text-color);
    padding: 60px 50px 20px;
    transition: background-color 0.3s ease;
    margin-left: 70px;
    width: calc(100% - 70px);
}

.footer-content {
    margin-bottom: 40px;
    border-bottom: 1px solid var(--bg-color);
    padding-bottom: 40px;
}
.footer-content .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
}

.footer-links a {
    color: var(--text-color);
    margin: 0 15px;
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-social a {
    color: var(--text-color);
    margin-left: 20px;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.footer-social a:hover {
    color: #f8b500;
}

.footer-bottom {
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.5;
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 768px) {
    .section, .main-footer, .stats-section, .gallery-wrapper {
        margin-left: 0;
        width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .gallery-wrapper {
        padding: 0; /* Galeria full width */
    }

    .section {
        margin-block: 60px; /* Spațiere mai mică între secțiuni pe mobil */
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-5px);
    }
}