/* --- 1. VARIABILE & RESETARE --- */
:root {
    /* CULORI VIBRANTE */
    --primary: #027e3e;       /* Verde Vibrant */
    --primary-dark: #005228;  
    --accent: #e2aa00;        /* Galben Solar */
    --accent-hover: #e4c768;   
    
    --text-dark: #222222;
    --text-light: #555555;
    --bg-light: #f0f7f2;      
    --white: #ffffff;
    
    --shadow: 0 8px 20px rgba(0, 166, 81, 0.15); 
    --radius: 20px;           
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); 
    
    /* FONTURI */
    --font-heading: 'Playfair Display', serif; /* Font elegant pentru titluri */
    --font-body: 'Nunito', sans-serif;         /* Font rotund pentru text */
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 16px;
    background-color: var(--white);
    overflow-x: hidden; 
}

/* Aplicăm fontul din siglă pentru titluri */
h1, h2, h3, h4, .nav-links a {
    font-family: var(--font-heading);
}

img {
    max-width: 100%;
    display: block;
    border-radius: var(--radius); 
}

ul { list-style: none; }
a { text-decoration: none; color: inherit; transition: var(--transition); }

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

/* --- 2. HEADER & NAV --- */
header {
    background: rgba(255, 255, 255, 0.98);
    padding: 10px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-bottom-left-radius: var(--radius);
    border-bottom-right-radius: var(--radius);
}

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

.nav-logo {
    height: 75px;
    width: auto;
    border-radius: 0; 
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-links ul {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.95rem;
    color: var(--primary-dark);
    padding: 8px 15px;
    border-radius: 30px;
}

.nav-links a:hover {
    color: var(--primary);
    background-color: var(--bg-light);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--primary);
    cursor: pointer;
    padding: 5px;
}

/* --- 3. HERO SECTION (VIDEO BG) --- */
.hero {
    position: relative;
    height: 95vh; 
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
    margin-top: 0;
    border-bottom-left-radius: 40px; 
    border-bottom-right-radius: 40px;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -2;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

.hero-content h1 {
    font-weight: 700;
    font-size: 4rem;
    margin-bottom: 15px;
    color: var(--accent);
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-family: var(--font-body); /* Subtitlul rămâne lizibil */
    font-size: 1.4rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 700;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 50px; 
    font-weight: 700;
    text-transform: uppercase;
    font-family: var(--font-heading); /* Butoanele preiau fontul elegant */
    letter-spacing: 0.5px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-primary {
    background-color: var(--accent);
    color: var(--text-dark);
    border-color: var(--accent);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 20px rgba(255, 193, 7, 0.4); 
}

.btn-outline {
    border-color: var(--white);
    color: var(--white);
    background-color: transparent;
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-dark);
    transform: translateY(-3px) scale(1.02);
}

/* --- 4. SECȚIUNI GENERALE --- */
.section { padding: 100px 0; }
.bg-light { background-color: var(--bg-light); }

.section-title {
    text-align: center;
    font-weight: 700;
    font-size: 2.8rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 6px;
    background: var(--accent);
    margin: 15px auto 0;
    border-radius: 10px;
}

.section-desc {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px auto;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* --- 5. GRID SERVICII (Centrat) --- */
.services-grid {
    display: flex;           /* Schimbăm din Grid în Flex pentru centrare */
    flex-wrap: wrap;         /* Permite elementelor să treacă pe rândul următor */
    justify-content: center; /* ACEASTA este comanda care centrează rândul de jos */
    gap: 40px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
    
    /* Setări pentru dimensiune în Flexbox */
    flex-basis: 320px;       /* Lățimea minimă de pornire (similar cu minmax din grid) */
    flex-grow: 1;            /* Permite cardului să se extindă */
    max-width: 380px;        /* Limitează lățimea ca să nu devină prea late când sunt doar 2 */
    width: 100%;             /* Siguranță pentru mobil */
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 15px 30px rgba(0, 166, 81, 0.25);
}

.service-img img {
    width: 100%;
    aspect-ratio: 5 / 7;     /* Păstrăm formatul cerut anterior */
    object-fit: cover;
    border-radius: var(--radius) var(--radius) 0 0; 
    transition: transform 0.5s ease;
}

.service-card:hover .service-img img {
    transform: scale(1.05);
}

.service-img { overflow: hidden; }

.service-info {
    padding: 30px;
    text-align: center;
}

.service-info h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 700;
}

.service-info strong {
    color: var(--primary);
    font-weight: 700;
}

/* --- CALENDAR DINAMIC --- */
.calendar-wrapper {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
    margin-top: 40px;
}

.month-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    flex: 1;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
    border: 1px solid transparent;
}

.month-card h3.month-name {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    text-transform: uppercase;
    text-align: center;
    border-bottom: 2px solid var(--bg-light);
    padding-bottom: 10px;
}

.month-tasks {
    list-style: none;
    padding: 0;
    flex-grow: 1;
}

.month-tasks li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.4;
}

.month-tasks li::before {
    content: '\f06c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--accent);
    font-size: 0.8rem;
}

.month-card.primary {
    flex: 1.2;
    border: 2px solid var(--primary);
    transform: scale(1.05);
    z-index: 10;
    background-color: #fff;
    box-shadow: 0 15px 40px rgba(0, 166, 81, 0.2);
}

.current-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--text-dark);
    padding: 5px 20px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.month-card.secondary {
    opacity: 0.8;
    background-color: rgba(255,255,255,0.6);
    transform: scale(0.95);
}

.btn-calendar {
    margin-top: 20px;
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
}

/* --- 6. PORTOFOLIU --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 50px;
}

.portfolio-item {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    border-bottom: 4px solid var(--primary); 
}

.ba-container {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.ba-img {
    position: relative;
    flex: 1;
    overflow: hidden;
    border-radius: var(--radius);
}

.ba-img img {
    width: 100%;
    /* MODIFICARE: Aspect ratio 5:7 în loc de înălțime fixă */
    aspect-ratio: 5 / 7;
    object-fit: cover;
    border-radius: var(--radius);
    transition: transform 0.5s ease;
}

.ba-img:hover img {
    transform: scale(1.03); 
}

.ba-label {
    position: absolute;
    top: 15px; 
    left: 15px;
    transform: none;
    padding: 6px 15px;
    font-size: 0.85rem;
    border-radius: 30px;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    font-family: var(--font-body); /* Labelurile rămân clean */
}

.ba-label.before {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-light);
}

.ba-label.after {
    background: var(--accent);
    color: var(--text-dark);
}

.portfolio-item h4 {
    color: var(--primary-dark);
    margin-top: 15px;
    font-size: 1.3rem;
    font-weight: 700;
}

/* --- 7. CONTACT & FORM --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.contact-info h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.info-list { margin: 30px 0; }

.info-list li {
    font-size: 1.2rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.info-list i {
    color: var(--primary);
    background: var(--white); /* Contrast mai bun pe fundal verde */
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.3rem;
    box-shadow: 0 4px 10px rgba(0, 166, 81, 0.1);
}

.btn-facebook-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #1877F2;
    color: white;
    padding: 18px 35px;
    border-radius: 50px;
    font-weight: bold;
    margin-top: 30px;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.3);
}

.btn-facebook-large:hover {
    background-color: #115dc5;
    transform: translateY(-3px);
}

.contact-form-container {
    background: var(--white);
    padding: 50px;
    border-radius: 30px; 
    box-shadow: var(--shadow);
    position: relative;
    border: 3px solid var(--bg-light);
}

.contact-form h3 {
    color: var(--primary);
    margin-bottom: 30px;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
}

.form-group { margin-bottom: 25px; }

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-left: 10px;
    font-family: var(--font-body);
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #eee;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    background-color: #f9fbf9;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(0, 166, 81, 0.1);
}

.btn-block {
    width: 100%;
    padding: 18px;
    font-size: 1.1rem;
}

/* --- 8. FOOTER UPDATE --- */
footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.8);
    text-align: center;
    padding: 50px 0 30px 0;
    margin-top: 50px;
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
}

/* STILIZARE LOGO FOOTER */
.footer-logo {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

.footer-logo img {
    height: 90px;
    width: auto;
    border-radius: 50%; /* Opțional, dacă e rotund */
    background: white; /* Chenar alb subțire pentru contrast pe fundal închis */
    padding: 5px;
}

.footer-legal h3 {
    color: var(--accent);
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 700;
}

.footer-legal p {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.copyright {
    margin-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

/* --- 9. FLOAT WHATSAPP --- */
.float-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
    z-index: 100;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55); 
}

.float-wa:hover {
    transform: scale(1.1) rotate(10deg);
}

/* --- 10. RESPONSIVE --- */
@media (max-width: 1024px) {
    .hero-content h1 { font-size: 3rem; }
    .contact-wrapper { grid-template-columns: 1fr; gap: 40px; }
    .contact-form-container { padding: 30px; }
}

@media (max-width: 768px) {
    :root {
        --radius: 15px; 
    }
    
    .section { padding: 60px 0; }

    .nav-logo { height: 60px; }

    .nav-links {
        display: none;
        position: absolute;
        top: 90px;
        left: 10px;
        right: 10px;
        background: var(--white);
        padding: 20px;
        border-radius: var(--radius);
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        text-align: center;
    }

    .nav-links.active { display: block; animation: fadeInDown 0.3s ease; }
    
    @keyframes fadeInDown {
        from { opacity: 0; transform: translateY(-20px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    .nav-links ul { flex-direction: column; gap: 10px; }
    .nav-links a { display: block; padding: 12px; background: var(--bg-light); }
    
    .mobile-menu-btn { display: block; }

    .hero { height: auto; min-height: 90vh; padding-top: 100px; padding-bottom: 50px; border-radius: 0 0 30px 30px; }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .hero-buttons { flex-direction: column; gap: 10px; }
    .btn { width: 100%; text-align: center; padding: 12px 20px; }

    .section-title { font-size: 2rem; }
    
    .services-grid { grid-template-columns: 1fr; }

    .portfolio-grid { grid-template-columns: 1fr; }
    
    .ba-container {
        flex-direction: column;
        gap: 15px;
    }

    .ba-img img {
        height: auto; 
        /* MODIFICARE: Eliminat max-height pentru a permite formatul 5:7 pe mobil */
        /* max-height: 300px; */
    }
    
    .calendar-wrapper { flex-direction: column; gap: 30px; }
    .month-card.primary { order: -1; transform: scale(1); }
    .month-card.secondary { transform: scale(1); opacity: 1; }

    .contact-info h2 { font-size: 2rem; }
    .info-list li { font-size: 1rem; }
    .contact-form-container { padding: 25px; }
    
    .float-wa { width: 60px; height: 60px; font-size: 30px; bottom: 20px; right: 20px; }
}

/* --- STILURI MODAL (POPUP) --- */
.modal {
    display: none; /* Ascuns implicit */
    position: fixed;
    z-index: 2000; /* Peste tot restul site-ului */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Fundal întunecat transparent */
    backdrop-filter: blur(5px); /* Efect de ceață în spate */
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: var(--white);
    margin: 10% auto; /* Centrat vertical */
    padding: 40px;
    border-radius: var(--radius);
    width: 90%;
    max-width: 500px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    position: relative;
    border-top: 5px solid var(--primary);
    animation: slideUp 0.3s;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 10px;
    transition: 0.3s;
}

.close-modal:hover {
    color: var(--primary);
}

.modal-content h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.8rem;
    text-align: center;
}

.modal-content p {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 30px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* --- SEMNĂTURĂ DEVELOPER --- */
.developer {
    font-size: 0.8rem;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.4);
}

.developer a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.4);
    transition: color 0.3s;
}

.developer a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.separator {
    margin: 0 5px;
    opacity: 0.3;
}
