/* General Resets & Typography */
:root {
    --primary-green: #18a34c;
    --dark-background: #222;
    --light-gray-background: #f8f8f8;
    --text-color-dark: #333;
    --text-color-light: #fff;
    --card-bg: #fff;
    --border-color: #eee;
    --background-color-light: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'SF Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: var(--text-color-dark);
    background-color: var(--background-color-light);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'SF Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

h1 { font-size: 2.8rem; font-weight: 700; }
h2 { font-size: 2.2rem; font-weight: 600; text-align: center; margin-bottom: 2.5rem; }
h3 { font-size: 1.8rem; font-weight: 600; }

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-green);
}

a:hover {
    text-decoration: underline;
}

ul {
    list-style: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}
/* General Button Styles */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--background-color-light);
    color: var(--text-color-dark);
    border: 2px solid var(--primary-green);
}

.btn-primary:hover {
    background-color: var(--primary-green);
    color: var(--text-color-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-decoration: none; /* Adăugat: Elimină sublinierea la hover */
}

.btn-secondary, .whatsapp-hero-btn, .whatsapp-contact-btn {
    background-color: var(--primary-green);
    color: var(--text-color-light);
    border: none;
}

.btn-secondary:hover, .whatsapp-hero-btn:hover, .whatsapp-contact-btn:hover {
    background-color: #148a3e;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-decoration: none; /* Adăugat: Elimină sublinierea la hover */
}

/* Header Styling */
.header {
    background-color: var(--background-color-light);
    color: var(--text-color-dark);
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Stiluri pentru link-urile din navigație */
.header .nav ul li a {
    color: var(--text-color-dark);
}

.header .nav ul li a:hover {
    color: var(--primary-green);
}

/* Stiluri pentru numărul de telefon din header */
.header-contact .phone-number {
    color: var(--text-color-dark);
}

.header-contact .phone-number:hover {
    color: var(--primary-green);
}

/* Stiluri pentru butonul WhatsApp din header (dacă nu e deja gestionat) */
.header-contact .whatsapp-btn {
    background-color: var(--primary-green);
    color: var(--text-color-light);
}

.whatsapp-btn:hover {
    background-color: #148a3e;
    text-decoration: none;
}

/* Stiluri pentru logo-ul text (main-title și sub-title) */
.logo-text .main-title {
    color: var(--text-color-dark);
}

.logo-text .sub-title {
    color: #666;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Stiluri pentru Butonul Burger (ascuns pe desktop, vizibil pe mobil) */
.burger-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-color-dark);
    padding: 10px;
    z-index: 1001;
}

/* Ascunde secțiunea de contact din header pe mobil implicit */
.header-contact.hidden-on-mobile {
    display: none;
}

.logo a {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color-dark);
    text-decoration: none;
}

.logo a:hover {
    color: var(--primary-green);
    /* text-decoration: none; */ /* Aici nu e necesar, deoarece regula generală a:hover va aplica sublinierea */
}

.nav ul {
    display: flex;
    gap: 30px;
}

.nav a {
    color: var(--text-color-dark);
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: var(--primary-green);
    text-decoration: none;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 20px;
}

.phone-number {
    color: var(--text-color-dark);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.phone-number i {
    color: var(--primary-green);
}

.whatsapp-btn {
    background-color: var(--primary-green);
    color: var(--text-color-light);
    padding: 8px 15px;
    border-radius: 50px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease;
}

.whatsapp-btn i {
    font-size: 1.1rem;
}


/* Hero Section Styling */
.hero-section {
    background-image: url('images/mag-detailing-header.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    color: var(--text-color-light);
    padding: 100px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 60vh;
}

/* Overlay semi-transparent pentru lizibilitatea textului */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 0;
}

/* Asigură că conținutul din hero-section este deasupra overlay-ului */
.hero-section .container,
.hero-section .hero-content {
    position: relative;
    z-index: 1;
}

/* Ajustări pentru textul și logo-ul din Hero Section (dacă nu sunt deja setate culori) */
.hero-section h1,
.hero-section .tagline {
    color: var(--text-color-light);
}

/* Ajustări pentru logo-ul din Hero Section */
.hero-section .hero-logo {
    max-width: 250px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}


.hero-content {
    max-width: 800px;
}

.hero-content h1 {
    color: var(--text-color-light);
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content .tagline {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.hero-buttons .btn {
    margin: 0 10px;
    font-size: 1.1rem;
    padding: 15px 35px;
}

.hero-buttons .btn-secondary {
    color: var(--text-color-light);
    border-color: var(--text-color-light);
}

.hero-buttons .btn-secondary:hover {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
    color: var(--text-color-light);
}

.hero-content .new-hero-text {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    color: var(--text-color-light);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background-color: var(--light-gray-background);
}

.services-section .services-intro-text {
    font-size: 1.1rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem auto;
    color: var(--text-color-dark);
    line-height: 1.6;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.service-card h3 {
    color: var(--primary-green);
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
}

.service-card .price {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-color-dark);
}

.service-card .price span {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-green);
}

.service-card ul {
    text-align: left;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.service-card ul li {
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: var(--text-color-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-card ul li i {
    color: var(--primary-green);
    font-size: 1.2rem;
}

.btn-card {
    background-color: var(--primary-green);
    color: var(--text-color-light);
    padding: 12px 20px;
    width: 100%;
    margin-top: auto;
}

.btn-card:hover {
    background-color: #148a3e;
    text-decoration: none;
}

/* Contact Section */
.contact-section {
    background-color: var(--light-gray-background);
    padding: 80px 0;
    border-top: 1px solid var(--border-color);
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    text-align: center;
}

.contact-buttons {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.btn-directions {
    background-color: #4285F4;
    color: var(--text-color-light);
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 15px;
    margin-bottom: 0;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-directions:hover {
    background-color: #357ae8;
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-directions i {
    font-size: 1.1rem;
}


.contact-info {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.contact-info p i {
    color: var(--primary-green);
    font-size: 1.3rem;
}

.contact-info a {
    font-weight: 600;
}

.social-icons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icons a {
    font-size: 1.8rem;
    color: var(--text-color-dark);
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary-green);
    transform: translateY(-2px);
}

.contact-buttons p {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 25px;
}

.whatsapp-contact-btn {
    background-color: var(--primary-green);
    color: var(--text-color-light);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 0;
}

.whatsapp-contact-btn:hover {
    background-color: #148a3e;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
    background-color: var(--dark-background);
    color: var(--text-color-light);
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
}

.footer-content p {
    margin-bottom: 10px;
}

.footer-content p:last-child {
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    .nav ul {
        gap: 20px;
    }
    .header-contact {
        gap: 15px;
    }
    .hero-content h1 {
        font-size: 2.8rem;
    }
    .hero-content .tagline {
        font-size: 1.2rem;
    }
    .hero-buttons .btn {
        font-size: 1rem;
        padding: 12px 25px;
    }
    .service-card {
        padding: 25px;
    }
    .service-card h3 {
        font-size: 1.4rem;
    }
    .service-card .price {
        font-size: 1.3rem;
    }
    .service-card .price span {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.5rem; }

    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 0 15px;
    }
    .nav {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100%;
        background-color: var(--primary-green);
        padding-top: 80px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
        transition: right 0.3s ease-in-out;
        z-index: 999;
    }
    .nav.active {
        right: 0;
        display: flex;
    }
    .nav ul {
        list-style: none;
        padding: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .nav ul li {
        text-align: center;
        margin: 20px 0;
    }
    /* Mărirea specificității pentru a asigura aplicarea culorii albe */
    #main-nav ul li a {
        color: #fff; /* Explicit alb */
        font-size: 1.3rem;
        padding: 10px 0;
        display: block;
        transition: color 0.2s ease;
    }

    /* Mărirea specificității pentru a asigura aplicarea culorii la hover */
    #main-nav ul li a:hover {
        color: #a4e6bd; /* Verde deschis la hover pentru contrast */
    }

    .burger-menu-btn {
        display: block;
    }

    .header-contact {
        display: none;
    }

    body.no-scroll {
        overflow: hidden;
    }

    .burger-menu-btn .fas.fa-bars {
    transition: transform 0.3s ease;
    }

    .burger-menu-btn.active .fas.fa-bars {
    transform: rotate(90deg);
    }
    
    .hero-section {
        padding: 100px 20px;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content .tagline {
        font-size: 1.1rem;
    }
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    .hero-buttons .btn {
        margin: 0;
        width: 80%;
        max-width: 300px;
        align-self: center;
    }

    .services-section {
        padding: 60px 0;
    }
    .service-card {
        margin-bottom: 20px;
    }

    /* Eliminăm flex-direction: column pentru .contact-content de aici */
    /* Comportamentul de împachetare (wrapping) va fi acum gestionat de flex-wrap: wrap setat global */
    /*
    .contact-content {
        flex-direction: column;
        align-items: center;
    }
    */

    .contact-info, .contact-buttons {
        min-width: unset;
        width: 100%;
        max-width: 450px;
        padding: 25px;
    }
    .contact-info p, .social-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header-contact {
        flex-direction: column;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-content .tagline {
        font-size: 1rem;
    }
    .service-card h3 {
        font-size: 1.2rem;
    }
    .service-card .price span {
        font-size: 1.5rem;
    }
    .service-card ul li {
        font-size: 1rem;
    }
    .btn-card {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    .contact-info p {
        font-size: 1rem;
    }
}

/* Styling pentru Service Card Images */
.service-card .service-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 20px;
}

/* Ajustări pentru textul din card după adăugarea imaginii */
.service-card h3 {
    font-size: 1.4rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    padding-right: 5px;
    color: var(--text-color-dark);
}

/* Noul element spacer pentru a împinge prețul la dreapta */
.service-card h3 .spacer {
    flex-grow: 1;
}

/* Stil pentru prețul inclus în titlu */
.service-card h3 .price-inline {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-green);
    white-space: nowrap;
    text-align: right;
}

/* Stil pentru paragraful de descriere generală */
.service-card p {
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    text-align: left;
    color: var(--text-color-dark);
}

/* Stiluri pentru lista de detalii cu bulete verzi */
.service-card ul {
    text-align: left;
    margin-bottom: 2rem;
    flex-grow: 1;
    list-style: none;
    padding-left: 0;
}

.service-card ul li {
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--text-color-dark);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.service-card ul li i {
    color: var(--primary-green);
    font-size: 1.1rem;
    flex-shrink: 0;
    padding-top: 2px;
}

/* Media Queries - Ajustări pentru Responsive Design */
@media (max-width: 992px) {
    .service-card h3 {
        font-size: 1.3rem;
    }
    .service-card h3 .price-inline {
        font-size: 1.1rem;
    }
    .service-card p {
        font-size: 0.9rem;
    }
    .service-card ul li {
        font-size: 0.9rem;
    }
    .service-card ul li i {
        font-size: 1.0rem;
    }
}

@media (max-width: 768px) {
    .service-card h3 {
        font-size: 1.2rem;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .service-card h3 .price-inline {
        font-size: 1rem;
    }
    .service-card p {
        font-size: 0.85rem;
    }
    .service-card ul li {
        font-size: 0.85rem;
    }
    .service-card ul li i {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .service-card h3 {
        font-size: 1.1rem;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 5px;
    }
    .service-card h3 .price-inline {
        font-size: 0.9rem;
    }
    .service-card p {
        font-size: 0.8rem;
    }
    .service-card ul li {
        font-size: 0.8rem;
    }
    .service-card ul li i {
        font-size: 0.9rem;
    }
}
/* Styling pentru Logo-ul din Header */
.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-color-dark);
}

.square-logo {
    max-height: 60px;
    width: auto;
    border-radius: 8px;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-text .main-title {
    font-family: 'SF Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color-dark);
}

.logo-text .sub-title {
    font-family: 'SF Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    color: #666;
}

/* Ajustări pentru Responsive Design în Header */
@media (max-width: 992px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    .logo {
        order: -1;
        margin-bottom: 10px;
    }
    .logo a {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
    .square-logo {
        max-height: 50px;
    }
    .logo-text .main-title {
        font-size: 1.5rem;
    }
    .logo-text .sub-title {
        font-size: 0.8rem;
    }
    .nav {
        margin-top: 0;
    }
    .header-contact {
        margin-top: 15px;
        flex-direction: row;
        justify-content: center;
        width: 100%;
    }
    .phone-number, .whatsapp-btn {
        width: auto;
    }
}

@media (max-width: 768px) {
    .header-contact {
        flex-direction: column;
        gap: 10px;
    }
    .phone-number, .whatsapp-btn {
        width: 80%;
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .square-logo {
        max-height: 45px;
    }
    .logo-text .main-title {
        font-size: 1.3rem;
    }
    .logo-text .sub-title {
        font-size: 0.75rem;
    }
}
/* Styling pentru Logo-ul din Hero Section */
.hero-logo {
    max-width: 250px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
}

/* Ajustări pentru Responsive Design */
@media (max-width: 768px) {
    .company-logo {
        max-height: 40px;
    }
    .hero-logo {
        max-width: 200px;
    }
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    .logo {
        order: -1;
        margin-bottom: 10px;
    }
    .nav {
        margin-top: 0;
    }
}

/* Ajustare opțională pentru butonul WhatsApp din Hero Section */
.whatsapp-hero-btn {
    background-color: var(--primary-green);
    color: var(--text-color-light);
    border: none;
}

.whatsapp-hero-btn:hover {
    background-color: #148a3e;
    transform: translateY(-2px);
}