/* --- FUNDAMENTE --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --base-bg: #E6D2B5;
    --primary: #8E402A;
    --accent: #76774C;
    --contrast: #C89F05;
    --text-dark: #2D241E;
    --white: #ffffff;
}

body {
    font-family: 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- HEADER --- */
header {
    background: rgba(230, 210, 181, 0.98);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
}

.nav-menu { display: flex; align-items: center; gap: 30px; }
.nav-links { list-style: none; display: flex; gap: 20px; }
.nav-links a { text-decoration: none; color: var(--text-dark); font-weight: 600; transition: 0.3s; }
.nav-links a:hover { color: var(--primary); }

.menu-toggle { display: none; }

/* --- HERO & SLIDESHOW --- */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slideshow-container {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
}

.slide {
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    display: none;
}

.fade { animation: fadeEffect 1.5s; }
@keyframes fadeEffect { from {opacity: 0.4} to {opacity: 1} }

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 20px;
    margin-top: -30px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.3s;
    user-select: none;
    z-index: 10;
    background: rgba(0,0,0,0.2);
    border-radius: 50%;
    line-height: 1;
}
.next { right: 20px; }
.prev { left: 20px; }
.prev:hover, .next:hover { background: rgba(0,0,0,0.6); }

.hero-overlay {
    position: absolute; inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 2;
}

.hero-content {
    position: relative; z-index: 3;
    max-width: 850px; padding: 20px;
    text-align: center; color: var(--white);
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

/* --- SECȚIUNI GENERALE --- */
section { padding: 100px 0; text-align: center; }
.section-title { font-size: 2.5rem; color: var(--primary); margin-bottom: 50px; }

/* Garanția Schimbării */
.section-guarantee { background-color: var(--base-bg); }
.guarantee-highlight { font-size: 1.5rem; font-weight: 700; font-style: italic; max-width: 900px; margin: 0 auto; }

/* Servicii */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; padding: 0 20px; }
.service-card { background: #fdfaf5; padding: 40px; border-radius: 20px; border-top: 6px solid var(--accent); text-align: left; }

/* Despre Mine */
.section-about { background-color: #f9f4ec; }
.about-content-centered { max-width: 900px; margin: 0 auto; text-align: center; }
.about-text-large { margin-bottom: 50px; }
.about-item { margin-bottom: 40px; }
.about-item h3 { font-size: 2rem; color: var(--primary); margin-bottom: 15px; }
.about-item p { font-size: 1.25rem; line-height: 1.8; color: var(--text-dark); }
.quote { font-style: italic; font-size: 1.5rem; color: var(--accent); margin-bottom: 60px; padding: 0 20px; }
.video-frame-container { max-width: 800px; margin: 0 auto; padding: 15px; border: 2px solid var(--primary); border-radius: 15px; background: var(--white); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.about-video { width: 100%; border-radius: 8px; display: block; }

/* Transformări */
.section-transformations { background-color: var(--white); }
.t-grid { display: grid; gap: 30px; max-width: 1000px; margin: 0 auto; padding: 0 20px; }
.t-card { background: #fdfaf5; padding: 30px; border-radius: 20px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.t-flex { display: flex; gap: 20px; margin-top: 20px; }
.before, .after { flex: 1; padding: 20px; border-radius: 12px; text-align: left; }
.before { background: #F9F2E8; border-left: 5px solid var(--primary); }
.after { background: #F1F2EB; border-left: 5px solid var(--accent); }

/* Recenzii Video */
/* --- Recenzii Video --- */
.section-reviews { 
    background-color: #f1f2eb; 
    padding: 100px 0; 
}
.reviews-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 30px; 
}
.video-card { 
    background: var(--white); 
    border-radius: 20px; 
    overflow: hidden; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.05); 
    padding: 0 !important; 
    display: flex; 
    flex-direction: column;
    height: 100%; /* Asigură că toate cardurile de pe același rând au aceeași înălțime */
}
.video-container { 
    width: 100%; 
    height: 350px; /* Înălțime fixă pentru a uniformiza clipurile. O poți modifica (ex: 300px sau 400px) */
    background: #000; /* Un fundal negru curat în spate */
    position: relative;
}
.video-container video { 
    width: 100%; 
    height: 100%; 
    display: block; 
    object-fit: cover; /* Umple spațiul tăind marginile în plus, fără să strivească imaginea */
    border-bottom: 4px solid var(--accent); 
}
.review-info { 
    padding: 20px; 
    text-align: center; 
    flex-grow: 1; /* Împinge textul și aliniază partea de jos a cardurilor */
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.review-info h4 { 
    color: var(--primary); 
    margin-bottom: 5px; 
}
.review-tag { 
    color: var(--accent); 
    font-weight: bold; 
    font-size: 0.8rem; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
}

/* Recenzii Text (Carousel) */
.section-reviews-carousel { background-color: #f9f4ec; padding: 80px 0; }
.carousel-wrapper { display: flex; align-items: center; position: relative; max-width: 1000px; margin: 0 auto 40px; }
.carousel-container { overflow: hidden; width: 100%; margin: 0 20px; }
.carousel-track { display: flex; transition: transform 0.5s ease-in-out; gap: 20px; }
.carousel-item { min-width: calc(33.333% - 20px); background: white; padding: 30px; border-radius: 20px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); text-align: center; }
.carousel-item .stars { color: var(--contrast); margin-bottom: 15px; }

/* Butoane & Controale */
.cta-button, .hero-btn, .review-btn { background: var(--primary); color: white; border: none; padding: 14px 32px; border-radius: 50px; font-weight: bold; cursor: pointer; transition: 0.3s; }
.cta-button:hover, .hero-btn:hover, .review-btn:hover { background: var(--text-dark); }
.ctrl-btn { background: var(--primary); color: white; border: none; width: 45px; height: 45px; border-radius: 50%; cursor: pointer; font-size: 20px; display: flex; align-items: center; justify-content: center; transition: 0.3s; flex-shrink: 0; }
.ctrl-btn:hover { background: var(--accent); }

/* --- FOOTER --- */
.main-footer { background-color: var(--primary); color: white; padding: 60px 0 20px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; text-align: left; }
.footer-column h3, .footer-column h4 { margin-bottom: 20px; color: var(--accent); }
.footer-column p { line-height: 1.6; opacity: 0.9; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 15px; }
.footer-links a { color: white; text-decoration: none; transition: color 0.3s; display: flex; align-items: center; gap: 10px; }
.footer-links a:hover { color: var(--accent); }
.footer-social-icons { display: flex; flex-direction: column; gap: 15px; }
.footer-social-icons a { color: white; text-decoration: none; display: flex; align-items: center; gap: 10px; font-size: 1rem; transition: transform 0.3s; }
.footer-social-icons a:hover { transform: translateX(5px); color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 20px; text-align: center; font-size: 0.9rem; opacity: 0.7; }

/* --- MODALE --- */
.modal { display: none; position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,0.8); align-items: center; justify-content: center; backdrop-filter: blur(5px); }
.modal-content { background: var(--base-bg); padding: 40px; border-radius: 25px; width: 90%; max-width: 500px; position: relative; }
.close { position: absolute; right: 20px; top: 15px; font-size: 28px; cursor: pointer; }
input, textarea { width: 100%; padding: 12px; margin-bottom: 15px; border-radius: 10px; border: 1px solid #ccc; font-family: inherit;}

/* --- RESPONSIVITATE MOBIL --- */
@media (max-width: 768px) {
    .menu-toggle { display: block; cursor: pointer; z-index: 1100; }
    .bar { display: block; width: 25px; height: 3px; margin: 5px; background: var(--primary); transition: 0.3s; }
    
    .nav-menu {
        position: fixed; right: -100%; top: 0; background: var(--base-bg);
        width: 70%; height: 100vh; flex-direction: column; transition: 0.4s; padding: 100px 40px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }
    .nav-menu.active { right: 0; }
    .nav-links { flex-direction: column; gap: 30px; margin-bottom: 30px; }
    
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .nav-btn { width: 100%; padding: 10px; font-size: 0.9rem; }
    .t-flex { flex-direction: column; }
    .hero-content h1 { font-size: 2.2rem; }
    .carousel-item { min-width: 100%; }
}