/* Definirea Culorilor (Tema Galben/Negru) */
:root {
    --primary-color: #FFD700; /* Galben (Gold) */
    --secondary-color: #000000; /* Negru */
    --text-color-light: #ffffff;
    --text-color-dark: #333333;
    --background-dark: #1a1a1a;
    --background-light: #f4f4f4;
}

/* Reset de Bază (Îmbunătățit) */
html {
    box-sizing: border-box;
}
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: inherit; /* Utilizare modernă a box-sizing */
}

body {
    color: var(--text-color-dark);
    background-color: var(--background-light);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ========================================= */
/* --- 1. PRELOADER (Loading Animation) --- */
/* ========================================= */

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-dark); /* Fundal negru/închis */
    z-index: 999999; /* Asigură că este deasupra tuturor elementelor */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.6s ease-out, visibility 0.6s ease-out;
}

/* Clasa adăugată de JS la finalizarea încărcării */
#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Stil pentru animația de cerc rotativ */
.loader {
    width: 80px;
    height: 80px;
    border: 8px solid rgba(255, 255, 255, 0.2); /* Margine albă, semi-transparentă */
    border-top-color: var(--primary-color); /* Partea superioară în Galben */
    border-radius: 50%;
    animation: spin 1s linear infinite; /* Aplică animația de rotire */
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-text {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}


/* ========================================= */
/* --- 2. Header & Navigation --- */
/* ========================================= */

.main-header {
    background-color: var(--secondary-color);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

/* --- LOGO ÎMBUNĂTĂȚIT --- */
.logo {
    text-decoration: none; 
    cursor: pointer;
    display: inline-block;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-color-light);
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.logo:hover .logo-text {
    color: var(--primary-color);
}

.logo-text .ltd {
    color: var(--primary-color);
    font-size: 0.8em;
    font-weight: normal;
    transition: color 0.3s ease;
}

.logo:hover .logo-text .ltd {
    color: var(--text-color-light);
}
/* --- END LOGO --- */

.main-nav a {
    color: var(--text-color-light);
    text-decoration: none;
    margin-left: 25px;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

/* Efect modern de underline la hover */
.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    transition: width 0.3s ease-in-out;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--primary-color);
}

.main-nav a:hover::after, .main-nav a.active::after {
    width: 100%;
}

.nav-link.call-to-action {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: bold;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.nav-link.call-to-action:hover {
    transform: translateY(-2px);
    background-color: #e6c300;
    color: var(--secondary-color);
}

.nav-link.call-to-action::after {
    display: none;
}


/* ========================================= */
/* --- 3. Hero Section & Butoane Generale --- */
/* ========================================= */

.hero-section {
    background: var(--secondary-color);
    color: var(--text-color-light);
    height: 80vh;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(0, 0, 0, 0.8));
    z-index: 1;
}

.hero-section .container {
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    animation: fadeIn 1s ease-out;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    font-weight: 900;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.hero-buttons .btn {
    display: inline-block;
    padding: 15px 30px;
    margin: 0 10px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.hero-buttons .btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 15px rgba(255, 215, 0, 0.3);
}

/* ========================================= */
/* --- 4. Secțiuni Generale --- */
/* ========================================= */

.about-section, .services-section, .accreditations-section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    border-radius: 2px;
}

.about-section {
    background-color: var(--background-light);
    text-align: center;
}

.description-text {
    max-width: 800px;
    margin: 20px auto;
    font-size: 1.15rem;
    color: var(--text-color-dark);
}

.description-text strong {
    color: var(--primary-color);
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
}

/* --- Services Grid --- */
.services-section {
    background-color: var(--background-dark);
    color: var(--text-color-light);
}

.services-section .section-title {
    color: var(--text-color-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(255, 215, 0, 0.1);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    overflow: hidden;
    position: relative;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(255, 215, 0, 0.3);
    background-color: #0c0c0c;
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.service-card p {
    color: #ccc;
}

/* --- Buton CTA "View All Services" (Sub Services Grid) --- */
.section-cta-buttons {
    text-align: center;
    margin-top: 50px;
    padding-bottom: 20px;
}

.services-section .section-cta-buttons .btn-primary {
    background-color: var(--primary-color); 
    color: var(--secondary-color);
    border: none;
    padding: 18px 45px;
	text-decoration: none; /* <-- ADAUGĂ SAU VERIFICĂ AICI */
    font-size: 1.15rem;
    font-weight: bold;
    letter-spacing: 0.8px;
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: inline-block;
}

.services-section .section-cta-buttons .btn-primary:hover {
    background-color: #e6c300;
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 25px rgba(255, 215, 0, 0.4);
    color: var(--secondary-color);
}


/* ========================================= */
/* --- 5. Call-to-Action Banner (Cu Glare) --- */
/* ========================================= */
.call-to-action-banner {
    background-color: var(--primary-color); 
    color: var(--secondary-color);
    padding: 60px 0;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.call-to-action-banner h2 {
    color: var(--secondary-color);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.call-to-action-banner p {
    font-size: 1.25rem;
    margin-bottom: 25px;
    font-weight: 500;
}

/* Stilul principal pentru butonul CTA "Request Quote" */
.call-to-action-banner .btn-primary.cta-btn {
    background-color: var(--secondary-color); 
    color: var(--primary-color); 
    border: 2px solid var(--secondary-color); 
    padding: 18px 50px; 
    font-size: 1.2rem; 
    font-weight: 700; 
	text-decoration: none;
    border-radius: 8px; 
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative; 
    overflow: hidden; 
    z-index: 1; 
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Efect de glare (reflexie) la hover */
.call-to-action-banner .btn-primary.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%; 
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent); 
    transition: all 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: -1; 
}

/* Stil de hover: butonul se ridică, umbra devine mai intensă, textul devine alb, și efectul de glare se activează */
.call-to-action-banner .btn-primary.cta-btn:hover {
    background-color: var(--secondary-color); 
    color: var(--text-color-light); 
    transform: translateY(-7px) scale(1.03); 
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.5); 
    border-color: var(--text-color-light); 
}

/* Activează efectul de glare la hover */
.call-to-action-banner .btn-primary.cta-btn:hover::before {
    left: 100%; 
}

/* ========================================= */
/* --- 6. ACCREDITATIONS --- */
/* ========================================= */
.accreditations-section {
    background-color: var(--secondary-color);
    text-align: center;
    padding: 80px 0;
    color: var(--text-color-light);
}

.accreditations-section .section-title {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.accreditations-section .description-text {
    color: #f0f0f0;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

.accreditation-icons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.accreditation-item {
    padding: 30px 20px;
    background-color: var(--background-dark);
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.accreditation-item:hover {
    background-color: #0d0d0d;
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(255, 215, 0, 0.3);
}

.accreditation-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.accreditation-item:hover .accreditation-icon {
    color: #fff;
}

.accreditation-item p {
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--text-color-light);
    margin-top: 10px;
}

/* ========================================= */
/* --- 7. FOOTER --- */
/* ========================================= */
footer {
    background-color: var(--secondary-color);
    color: #b0b0b0;
    padding: 40px 0 10px 0;
}

footer .container {
    /* 4 coloane: Logo (1.5x) + 3 secțiuni text (1x) */
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 30px;
    border-bottom: 1px solid #333;
    padding-bottom: 20px;
}

.footer-logo-col {
    display: flex;
    align-items: flex-start;
}

.footer-logo {
    max-width: 100%;
    height: auto;
    filter: brightness(1.2);
}

footer h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

footer p {
    margin: 5px 0;
}

footer a {
    color: #ffd700; 
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    margin-top: 15px;
    font-size: 0.9rem;
    color: #777;
}

.footer-meta.legal-links a {
    display: block;
    margin-bottom: 5px;
}

/* --- WhatsApp Button --- */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 16px rgba(37, 211, 102, 0.6);
}

/* --- Animații CSS & Scroll Effects --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-animate.in-view {
    opacity: 1;
    transform: translateY(0);
}

.hero-section, .hero-content, .main-header {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
}


/* ========================================= */
/* --- MEDIA QUERIES (OPTIMEZARE MOBIL) --- */
/* ========================================= */

@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    /* Navigare */
    .main-header .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav {
        margin-top: 15px;
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
    }

    .main-nav a {
        margin: 5px 10px;
        padding: 5px 0;
        font-size: 0.9rem;
    }

    .nav-link.call-to-action {
        padding: 6px 12px;
    }

    /* Secțiunea Hero */
    .hero-section {
        height: auto;
        min-height: 400px;
        padding: 80px 20px 60px 20px;
        align-items: center;
    }

    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-bottom: 0.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .hero-buttons .btn {
        width: 90%;
        max-width: 300px;
        margin: 8px 0;
        padding: 12px 20px;
    }

    /* Secțiuni Generale */
    .about-section, .services-section, .accreditations-section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Grid-uri (Servicii) */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    /* Buton Services Grid */
    .section-cta-buttons {
        margin-top: 40px; 
        padding-bottom: 15px;
    }

    .services-section .section-cta-buttons .btn-primary {
        padding: 14px 30px; 
        font-size: 1rem; 
        width: 90%; 
        max-width: 300px; 
        margin: 0 auto; 
        display: block; 
    }

    /* CTA Banner */
    .call-to-action-banner {
        padding: 40px 15px;
    }
    
    .call-to-action-banner h2 {
        font-size: 1.8rem;
    }

    .call-to-action-banner p {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }

    .call-to-action-banner .btn-primary.cta-btn { 
        width: 100%;
        max-width: 320px; 
        display: block;
        margin: 0 auto;
        padding: 14px 25px; 
        font-size: 1.05rem;
    }
    
    /* Acreditări */
    .accreditation-icons-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Footer (Rearanjat pe o singură coloană) */
    footer .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }

    .footer-logo-col {
        display: block;
        text-align: center;
        margin-bottom: 20px;
    }

    .footer-logo {
        max-width: 250px;
        margin: 0 auto;
    }

    footer .footer-meta,
    footer .footer-info {
        text-align: center;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    /* Ajustări pentru telefoane foarte mici */
    .logo-text {
        font-size: 1.5rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .main-nav {
        justify-content: center;
        margin-top: 10px;
    }

    .accreditation-icons-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* ... Alte reguli pentru 768px (Navigare, etc.) ... */

    /* Secțiunea Hero - Ajustări Specifice paginii Services.html */
    .hero-section {
        height: auto !important; /* Anulează stilul inline height: 40vh */
        min-height: 280px; /* O înălțime minimă mai mică pentru mobil */
        padding: 60px 20px 40px 20px !important; /* Anulează stilul inline padding-top: 100px și adaugă padding uniform */
        align-items: center !important; /* Centrează conținutul vertical */
    }

    /* Asigură-te că Hero Content este centrat pe mobil */
    .hero-section .hero-content {
        text-align: center !important; /* Centrare pe mobil (Anulează text-align: left din stilul inline) */
    }

    /* Titlul Hero */
    .hero-title {
        font-size: 2rem !important; /* Dimensiune mică pentru telefoane (Anulează stilul inline font-size: 3.5rem) */
        line-height: 1.2;
        margin-bottom: 0.5rem;
    }

    .hero-subtitle {
        font-size: 1rem; /* Subtitlu mai mic */
        margin-bottom: 0;
    }