/* ==========================================================================
   1. CONFIGURĂRI GENERALE & VARIABILE
   ========================================================================== */
:root {
    --primary-color: #F2A900;    /* Galben industrial / Siguranță */
    --primary-hover: #D49200;
    --dark-bg: #121212;         /* Negru Carbon */
    --light-bg: #F8F9FA;        /* Gri deschis */
    --text-dark: #1E293B;       /* Antracit pentru text pe fundal deschis */
    --text-light: #F8FAFC;      /* Text deschis */
    --border-color: #E2E8F0;
    --max-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #ffffff;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* ==========================================================================
   2. HEADER & NAVIGARE
   ========================================================================== */
.main-header {
    background-color: var(--dark-bg);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--primary-color);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-bold {
    color: var(--text-light);
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: #94A3B8;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.main-nav a:hover, 
.main-nav a.active {
    color: var(--primary-color);
}

.btn-whatsapp-header {
    background-color: #25D366;
    color:#000000; /* Text negru în loc de white */
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 0.85rem;
}

.btn-whatsapp-header:hover {
    background-color: #128C7E;
    color: #ffffff; /* Când utilizatorul ține mouse-ul pe buton, fundalul devine verde închis, deci textul se schimbă în alb pentru contrast */
    transform: translateY(-2px);
}
/* Folosim un selector mai specific pentru a suprascrie orice altă regulă de link */
a.btn-whatsapp-large, 
.hero-buttons a.btn-whatsapp-large {
    background-color: #25D366 !important; /* !important garantează că această regulă câștigă */
    color: #121212 !important;            /* Forțează textul să fie negru în stare statică */
    padding: 18px 28px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 0.9rem;
    text-align: center;
    display: inline-block; /* Ne asigurăm că se comportă ca un buton */
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
}

/* Regula pentru hover rămâne neschimbată, dar o facem la fel de specifică */
a.btn-whatsapp-large:hover, 
.hero-buttons a.btn-whatsapp-large:hover {
    background-color: #128C7E !important;
    color: #ffffff !important; /* Devine alb doar la hover */
    transform: translateY(-3px);
}

/* ==========================================================================
   3. HERO SECTION (ZONA PRINCIPALĂ - FULL WIDTH BACKGROUND)
   ========================================================================== */
.hero-section {
    position: relative;
    padding: 40px 0; /* Spațiere mai generoasă sus și jos */
    
    /* Încărcăm imaginea pe tot fundalul secțiunii */
    background-image: url('../images/sudor-hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Creăm o mască închisă peste imagine (un gradient de la negru intens în stânga, spre transparent în dreapta) */
/* Acest gradient asigură că textul din stânga se citește impecabil, iar poza din dreapta rămâne vizibilă */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(18, 18, 18, 0.9) 0%, rgba(18, 18, 18, 0.65) 50%, rgba(18, 18, 18, 0.3) 100%);
    z-index: 1;
}

/* Punem tot conținutul deasupra măștii negre */
.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Limităm lățimea textului la maximum 55% din ecran ca să rămână exact în stânga */
.hero-content {
    max-width: 600px;
    width: 100%;
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1px;
    color: var(--text-light);
    text-transform: uppercase;
}

.hero-content h1 span {
    color: var(--primary-color);
    display: block;
}

.hero-content p {
    font-size: 1.15rem;
    color: #E2E8F0; /* Text ușor mai deschis pentru lizibilitate maximă */
    margin-bottom: 1px;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* ==========================================================================
   4. SERVICII (SERVICES SECTION)
   ========================================================================== */
.services-section {
    padding: 100px 0;
    background-color: #ffffff;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 60px;
    position: relative;
    text-transform: uppercase;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 15px auto 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: var(--light-bg);
    padding: 40px 30px;
    border-radius: 8px;
    border-bottom: 4px solid var(--border-color);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-bottom-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color); /* Le face automat galbene */
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.service-card p {
    color: #64748B;
    font-size: 0.95rem;
}

/* ==========================================================================
   5. RESPONSIVENESS (PENTRU MOBIL)
   ========================================================================== */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
        gap: 15px;
    }
    .main-nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
}
/* ==========================================================================
   6. PORTFOLIO SECTION (LUCRĂRI RECENTE)
   ========================================================================== */
.portfolio-section {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.portfolio-card {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-5px);
}

.portfolio-img-placeholder {
    height: 220px;
    background-color: #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.img-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #94A3B8;
    letter-spacing: 1px;
}

.portfolio-info {
    padding: 25px;
}

.portfolio-info h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.portfolio-info p {
    color: #64748B;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.portfolio-link {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
}

.portfolio-link:hover {
    color: var(--primary-hover);
}

.portfolio-cta {
    text-align: center;
}

.btn-secondary {
    display: inline-block;
    border: 2px solid var(--dark-bg);
    color: var(--dark-bg);
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-secondary:hover {
    background-color: var(--dark-bg);
    color: var(--text-light);
}

/* ==========================================================================
   7. DE CE NOI (ADVANTAGES)
   ========================================================================== */
.advantages-section {
    padding: 60px 0;
    background-color: var(--dark-bg);
    color: var(--text-light);
    border-top: 4px solid var(--primary-color);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.advantage-item {
    text-align: center;
}

.advantage-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.advantage-item h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    color: var(--primary-color);
}

.advantage-item p {
    color: #94A3B8;
    font-size: 0.85rem;
}

/* ==========================================================================
   8. CUM LUCRĂM (WORKFLOW)
   ========================================================================== */
.workflow-section {
    padding: 100px 0;
    background-color: #ffffff;
}

.workflow-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    position: relative;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--light-bg);
    border: 3px solid var(--primary-color);
    color: var(--dark-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 20px auto;
}

.step h5 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.step p {
    font-size: 0.85rem;
    color: #64748B;
}

/* ==========================================================================
   9. DESPRE ATELIER
   ========================================================================== */
.about-section {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-img-placeholder {
    height: 400px;
    background-color: #E2E8F0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-content h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.about-content p {
    color: #64748B;
    margin-bottom: 30px;
}

.about-bullets {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.about-bullets li {
    font-weight: 600;
    font-size: 0.95rem;
}

/* ==========================================================================
   10. FOOTER & CONTACT
   ========================================================================== */
.main-footer {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding: 80px 0 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h3 {
    font-size: 1.2rem;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: 700;
}

.footer-contact-item {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-contact-item a:hover {
    color: var(--primary-color);
}

.footer-subtext {
    font-size: 0.8rem;
    color: #94A3B8;
    margin-top: 5px;
}

.footer-map-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
}

.footer-rating {
    margin-bottom: 20px;
}

.stars {
    color: #FFD700;
    font-size: 1.2rem;
    display: block;
}

.rating-text {
    font-size: 0.9rem;
    color: #CBD5E1;
}

.btn-rating {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--dark-bg);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 0.85rem;
}

.btn-rating:hover {
    background-color: var(--primary-hover);
}

.footer-bottom {
    background-color: #0B0B0B;
    padding: 25px 0;
    text-align: center;
    border-top: 1px solid #1E293B;
    font-size: 0.85rem;
    color: #64748B;
}

/* ==========================================================================
   11. ADĂUGĂRI PENTRU RESPONSIVITATEA MOBIL
   ========================================================================== */
@media (max-width: 992px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    .workflow-steps {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    .workflow-steps {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-buttons {
        flex-direction: column; /* Butoanele se pun unul sub altul pe mobil */
    }
}