/* --- SETĂRI GLOBALE & FONTURI --- */
:root {
    --blue: #0d6efd;
    --orange: #fd7e14;
    --dark: #212529;
    --grey: #6c757d;
    --light-grey: #f8f9fa;
    --white: #ffffff;
    --border-color: #dee2e6;
    --font-family: 'Poppins', sans-serif;
    --box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

body {
    font-family: var(--font-family);
    color: var(--dark);
    background-color: var(--white);
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1140px;
    margin: 0 auto;
}

h1, h2, h3 { font-weight: 600; line-height: 1.3; }
.section-title { font-size: 2.5rem; text-align: center; color: var(--dark); margin-bottom: 1rem; }
.section-subtitle { font-size: 1.1rem; text-align: center; color: var(--grey); max-width: 600px; margin: 0 auto 3rem auto; }

/* --- HEADER --- */
.site-header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}
.logo { font-size: 1.8rem; font-weight: 700; color: var(--dark); text-decoration: none; }
.logo img {
    max-height: 50px; /* Înălțimea maximă a logo-ului */
    width: auto; /* Lățimea se ajustează proporțional */
    display: block;
    /* Adăugat: Asigură că imaginea nu este prea lată pe desktop dacă textul face parte din ea */
    max-width: 250px; /* Limitează lățimea logo-ului și pe desktop */
}
.main-nav { display: flex; }
.main-nav a { margin: 0 1rem; color: var(--dark); text-decoration: none; font-weight: 500; transition: color 0.2s; }
.main-nav a:hover { color: var(--blue); }
.cta-button {
    background-color: var(--orange);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s, transform 0.2s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
    box-sizing: border-box; /* Asigură că padding-ul nu mărește lățimea/înălțimea totală */
}
.cta-button:hover { background-color: #e87311; transform: translateY(-2px); }
.header-cta { display: flex; align-items: center; gap: 0.5rem; }
.mobile-menu-toggle { display: none; background: none; border: none; font-size: 1.8rem; cursor: pointer; color: var(--dark); }


/* --- HERO SECTION --- */
.hero { padding: 4rem 0; }
.hero .container { display: flex; align-items: center; gap: 3rem; }
.hero-content { flex: 1; }
.hero-image { flex: 1; text-align: right; }
.hero-image img { max-width: 100%; height: auto; display: block; }
/* Ajustare dimensiune font pentru titlu pentru a încăpea pe 2 rânduri - atât desktop cât și mobil */
.hero-title {
    font-size: 2.8rem; /* Ajustat de la 3.5rem pentru desktop */
    margin-bottom: 1rem;
    line-height: 1.2;
}
.hero-subtitle { font-size: 1.2rem; color: var(--grey); margin-bottom: 2rem; }
/* Butonul CTA din hero - ajustări pentru a nu fi tăiat */
.hero-content .cta-button {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    white-space: nowrap; /* Asigură că nu se rupe */
    min-width: 200px; /* Asigură o lățime minimă */
}


/* --- INFO BAR --- */
.info-bar { background-color: var(--light-grey); padding: 1.5rem 0; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.info-bar .container { display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap; }
.info-item { display: flex; align-items: center; gap: 0.8rem; color: var(--grey); font-weight: 500; margin: 0.5rem 1rem; }
.info-item i { font-size: 1.5rem; color: var(--blue); }

/* --- CARD-BASED SECTIONS (Services, Process) --- */
.services-section, .process-section { padding: 5rem 0; }
.services-section { background-color: var(--light-grey); }
.services-grid, .process-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--box-shadow); }
.card-icon { font-size: 3rem; color: var(--blue); margin-bottom: 1.5rem; }
.card-title { font-size: 1.5rem; margin-bottom: 1rem; }
.process-card { position: relative; }
.process-number { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); width: 40px; height: 40px; line-height: 40px; border-radius: 50%; background-color: var(--blue); color: var(--white); font-weight: 600; }

/* --- CONTACT SECTION --- */
.contact-section { padding: 5rem 0; background-color: var(--light-grey); }
.contact-box { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; background-color: var(--white); padding: 3rem; border-radius: 8px; box-shadow: var(--box-shadow); }
.contact-details h4 { font-size: 1.5rem; margin-top: 0; margin-bottom: 1.5rem; }
.contact-details p { margin-bottom: 1rem; }
.contact-details p i { color: var(--blue); margin-right: 0.8rem; width: 20px; }
.contact-map iframe { width: 100%; height: 100%; border-radius: 8px; min-height: 300px; }

/* --- Stiluri pentru formularul de contact --- */
.contact-form-wrapper {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,0.05);
}

.contact-form-wrapper h4 {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: var(--font-family);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
}

.contact-details {
    display: flex;
    flex-direction: column;
}

.contact-map {
    margin-top: auto;
    padding-top: 2rem;
}


/* --- FOOTER --- */
.site-footer { text-align: center; padding: 2rem 0; background-color: var(--dark); color: var(--light-grey); }


/* --- RESPONSIVE DESIGN --- */

/* Ajustări pentru ecrane de tabletă și laptopuri mici (max-width: 992px) */
@media (max-width: 992px) {
    .main-nav { display: none; }
    .mobile-menu-toggle { display: block; }

    .site-header .container {
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 0.8rem 1.2rem;
    }
    
    .site-header .logo {
        flex-basis: auto;
        margin-right: auto;
    }
    
    /* Ascunde butonul "Sună Acum" din antet în versiunea mobilă */
    .header-cta {
        display: none;
    }

    .hero .container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    .hero-image {
        margin-top: 1rem;
    }
    /* Ajustare dimensiune font pentru titlu pe tabletă */
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.15;
    }
    .hero-subtitle { font-size: 1.1rem; }

    .services-grid, .process-steps { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
    .card { padding: 1.8rem; }

    .contact-box {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }
    .contact-map {
        padding-top: 1.5rem;
    }
}

/* Ajustări pentru ecrane de telefon mobil (max-width: 768px, în special iPhone) */
@media (max-width: 768px) {
    .site-header .container {
        padding: 0.6rem 0.8rem;
    }

    /* Ajustare dimensiune logo pe mobil */
    .logo img {
        max-height: 40px; /* Logo mai mic pe mobil */
        max-width: 200px; /* Limitează lățimea și mai mult */
    }

    .mobile-menu-toggle {
        font-size: 1.5rem;
    }

    .hero { padding: 2rem 0; }
    /* Ajustare dimensiune font pentru titlu pe telefoane */
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.1;
    }
    .hero-subtitle { font-size: 1rem; margin-bottom: 1.5rem; }

    .info-bar .container { flex-direction: column; gap: 1rem; }
    .info-item { margin: 0.3rem 0; }

    .services-grid, .process-steps { grid-template-columns: 1fr; gap: 1rem; }
    .card { padding: 1.5rem; }
    .card-title { font-size: 1.3rem; }
    .card-icon { font-size: 2.5rem; }

    .section-title { font-size: 2rem; }
    .section-subtitle { font-size: 1rem; max-width: 90%; margin-bottom: 2rem; }

    .contact-section { padding: 3rem 0; }
    .contact-box { padding: 1.5rem; }
    .contact-details h4, .contact-form-wrapper h4 { font-size: 1.3rem; }
    .contact-details p { font-size: 0.95rem; }
    .contact-map { padding-top: 1rem; min-height: 250px; }
}

/* Stiluri pentru meniul mobil deschis (trebuie să corespundă cu JS) */
.main-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98);
    z-index: 1050;
    padding-top: 80px;
    overflow-y: auto;
    animation: slideIn 0.3s forwards;
}

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.main-nav.open a {
    margin: 0.8rem 1rem;
    padding: 0.8rem 0;
    font-size: 1.3rem;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.main-nav.open a:last-child {
    border-bottom: none;
}