/* style.css - Foaia de stil pentru site-ul public */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700&family=Roboto+Slab:wght@400;700&display=swap');

:root {
    --primary-font: 'Montserrat', sans-serif;
    --secondary-font: 'Roboto Slab', serif;
    --primary-color: #0a2e36;
    --secondary-color: #f08a5d;
    --light-bg-color: #f9f9f9;
    --text-color: #333;
    --white-color: #ffffff;
    --border-color: #e0e0e0;
    --container-width: 1200px;
}

/* --- Reset & Base Styles --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--primary-font);
    color: var(--text-color);
    line-height: 1.7;
    background-color: var(--white-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden; /* Previne scroll-ul orizontal nedorit */
}
main {
    flex-grow: 1;
    padding-top: 80px; /* Spatiu pentru header-ul fix */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--secondary-font);
    color: var(--primary-color);
    font-weight: 700;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}
.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}
.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

/* --- Header & Navigation --- */
.main-header {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo a {
    font-family: var(--secondary-font);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}
.site-logo img {
    max-height: 50px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0; /* Reset margin */
}

.main-nav a {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 1rem;
    padding: 5px 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.mobile-nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--primary-color);
    z-index: 1001; /* Asiguram ca e deasupra altor elemente din header */
}

.header-contact-btn-wrapper {
    display: flex;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.header-contact-btn-wrapper a {
    padding: 10px 20px;
    color: var(--white-color);
    font-weight: 700;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}
.header-contact-btn-wrapper a:hover {
    opacity: 0.9;
    transform: scale(1.05);
    color: var(--white-color);
}
.header-contact-btn-wrapper .call-part {
    background-color: var(--secondary-color);
}
.header-contact-btn-wrapper .whatsapp-part {
    background-color: #25D366;
}

/* Ascundem butoanele de mobil pe desktop */
.main-nav .mobile-contact {
    display: none;
}


/* --- Hero Section & Slider --- */
.hero.hero-slider {
    width: 100%;
    height: 85vh;
    min-height: 600px;
    margin-top: -80px; /* Compenseaza pentru padding-top-ul de pe main */
    overflow: hidden; 
}

.hero .swiper-slide {
    display: flex;
    justify-content: flex-start; 
    align-items: center;
    text-align: left; 
    color: var(--white-color);
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero .swiper-slide::after { /* Overlay pentru fiecare slide */
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(10, 46, 54, 0.6);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px 5%; 
    max-width: 50%; 
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--white-color);
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 30px; 
}

.hero .swiper-button-next,
.hero .swiper-button-prev {
    color: var(--white-color);
}

.hero .swiper-pagination-bullet-active {
    background: var(--white-color);
}

/* --- Page Header (pentru sub-pagini) --- */
.page-header {
    padding: 60px 0;
    margin-top: -80px; /* Compenseaza pentru padding-top-ul de pe main */
    background-size: cover;
    background-position: center;
    position: relative;
    color: white;
}
.page-header::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(10, 46, 54, 0.7);
}
.page-header h1 {
    padding-top: 80px; /* Spatiu pentru header-ul fix */
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    font-size: 3rem;
}


.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--secondary-color);
    color: var(--white-color);
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #d66c3a;
    color: var(--white-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* --- Products Grid --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* --- Stiluri card produs normal --- */
.product-card {
    background-color: var(--white-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.product-card .product-image {
    height: 250px;
    position: relative;
    display: block;
}

.product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card .product-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; 
}

.product-card .product-content h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    min-height: 50px; 
}

.product-card .product-content h3 a {
    color: var(--primary-color);
}
.product-card .product-content h3 a:hover {
    color: var(--secondary-color);
}
.product-card .product-category {
    font-size: 0.85em;
    color: #777;
    margin-bottom: 15px;
    font-weight: 500;
}

.product-card .product-price {
    font-family: var(--secondary-font);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-top: auto; 
    padding-top: 15px;
}

.product-card .btn-details {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.9em;
    transition: all 0.3s ease;
    margin-top: 15px;
}
.product-card .btn-details:hover {
    background-color: var(--secondary-color);
    color: var(--white-color);
}

/* --- Stiluri pentru carduri mici de produs --- */
.product-grid-small {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}
.product-card-small {
    background-color: var(--white-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.product-card-small:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
.product-card-small .product-image {
    height: 180px; 
}
.product-card-small .product-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.product-card-small .product-content h3 {
    font-size: 1rem;
    min-height: auto;
    margin-bottom: 5px;
}
.product-card-small .product-category {
    font-size: 0.8em;
    margin-bottom: 10px;
}
.product-card-small .product-price {
    font-size: 1.1rem;
    margin-top: auto;
    padding-top: 10px;
}
.product-card-small .btn-details {
    padding: 8px; 
    font-size: 0.8em;
    margin-top: 10px;
}


/* --- Pagina de Produs --- */
.single-product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}
/* MODIFICAT: Stiluri pentru galeria produsului */
.product-gallery-main {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}
.product-gallery-main img {
    width: 100%;
    height: auto; /* Asigura ca imaginea nu este decupata */
    aspect-ratio: 1 / 1; /* Mentine imaginea patrata, dar fara a decupa */
    object-fit: contain; /* Asigura ca toata imaginea este vizibila */
    display: block;
}
.product-gallery-main .lightbox-trigger {
    cursor: zoom-in;
    display: block;
}
.product-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
}
.thumbnail-item {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.7;
    transition: all 0.3s ease;
}
.thumbnail-item:hover {
    opacity: 1;
    border-color: var(--secondary-color);
}
.thumbnail-item.active {
    opacity: 1;
    border-color: var(--primary-color);
}

.product-details h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}
.product-details .price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 20px;
}
.product-description {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}
.whatsapp-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #25D366;
    color: white;
    padding: 15px 30px;
    margin-top: 20px;
}
.whatsapp-btn:hover {
    background-color: #1EBE57;
    color: white;
}
.share-buttons a {
    font-size: 1.5rem;
    margin-right: 15px;
}

/* --- Lightbox Global --- */
.lightbox-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85); display: none; justify-content: center;
    align-items: center; z-index: 2000; padding: 20px; box-sizing: border-box;
}
.lightbox-content {
    max-width: 90%; max-height: 90vh; display: block; object-fit: contain;
    border-radius: 8px; box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease-in-out;
}
.lightbox-close {
    position: absolute; top: 20px; right: 35px; color: #fff; font-size: 40px;
    line-height: 1; font-weight: bold; cursor: pointer; transition: color 0.3s ease;
}
.lightbox-close:hover { color: #bbb; }
@keyframes zoomIn { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* --- Pagina Contact --- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}
.contact-form .form-group {
    margin-bottom: 20px;
}
.contact-form .form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
}
.contact-info ul {
    list-style: none;
}
.contact-info li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
}
.contact-info li i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.google-map {
    margin-top: 50px;
    padding: 0;
}
.google-map iframe {
    width: 100%;
    display: block;
}

/* --- Galerie --- */
.gallery-grid {
    column-count: 3;
    column-gap: 15px;
}
.gallery-item {
    margin-bottom: 15px;
    display: inline-block;
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}
.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}
.gallery-item a.lightbox-trigger {
    cursor: zoom-in;
    display: block;
}
.gallery-item .video-responsive {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
}
.gallery-item .video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.gallery-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 40px 20px 20px 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.gallery-item:hover .overlay {
    opacity: 1;
}
.gallery-item .overlay h4 {
    color: white;
    font-size: 1.1rem;
    margin: 0;
}


/* --- Footer --- */
.main-footer {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 20px 0;
    margin-top: auto; /* Impinge footer-ul in josul paginii */
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}
.footer-column h4 {
    font-family: var(--secondary-font);
    color: var(--white-color);
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}
.footer-column h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: var(--secondary-color);
}
.footer-column ul {
    list-style: none;
    padding: 0;
}
.footer-column li {
    margin-bottom: 10px;
}
.footer-column a, .footer-column p {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}
.footer-column a:hover {
    color: var(--white-color);
    padding-left: 5px;
}
.footer-column p {
    line-height: 1.8;
}
.footer-column i {
    margin-right: 10px;
    color: var(--secondary-color);
}
.footer-logo {
    font-family: var(--secondary-font);
    font-size: 2rem;
    font-weight: 700;
    color: var(--white-color);
    margin-bottom: 15px; /* Adaugam spatiu sub logo */
}
.footer-logo img {
    max-height: 50px;
    filter: brightness(0) invert(1); /* Face logo-ul alb */
}
.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9em;
}

/* Stiluri Social Media Footer */
.footer-social {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}
.footer-social a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}
.footer-social a:hover {
    color: var(--white-color);
    transform: translateY(-3px);
}


/* --- Responsive --- */
@media (max-width: 992px) {
    .section { padding: 60px 0; }
    .section-title h2 { font-size: 2rem; }
    
    .hero .swiper-slide {
        justify-content: center; 
        text-align: center; 
    }
    .hero-content {
        max-width: 90%; 
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content p {
        margin: 0 auto 30px auto;
    }

    .single-product-layout, .contact-layout { grid-template-columns: 1fr; }
    .gallery-grid { column-count: 2; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    
    /* --- CORECTIE MENIU MOBIL - REVENIRE LA STILUL TOP-DOWN --- */
    .header-contact-btn-wrapper {
        display: none; 
    }
    .mobile-nav-toggle {
        display: block;
        z-index: 1003; 
    }
    .main-nav {
        display: none; 
        position: absolute;
        top: 100%; /* Pozitionat exact sub header */
        left: 0;
        width: 100%;
        background-color: var(--white-color);
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 10px 0;
        z-index: 1002;
    }
    .main-nav.active {
        display: block;
    }
    .main-nav ul {
        display: flex;
        flex-direction: column;
        gap: 0;
        width: 100%;
        text-align: left;
    }
    .main-nav li {
        border-bottom: 1px solid var(--border-color);
        width: 100%;
    }
    .main-nav li:last-child {
        border-bottom: none;
    }
    .main-nav a {
        display: block;
        padding: 15px 20px;
        font-size: 1rem;
    }
    .main-nav a::after { 
        display: none; 
    }
    /* Stil pentru butoanele de contact in meniul mobil */
    .main-nav .mobile-contact {
        display: flex;
        flex-direction: column;
        gap: 15px;
        width: auto;
        margin: 20px;
    }
     .main-nav .mobile-contact a {
        padding: 15px 20px;
        border-radius: 50px;
        font-size: 1rem;
        text-align: center;
        color: var(--white-color); 
    }
    .main-nav .mobile-contact .call-part {
        background-color: var(--secondary-color);
    }
    .main-nav .mobile-contact .whatsapp-part {
        background-color: #25D366;
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }
    .gallery-grid { column-count: 1; }
    .footer-grid { grid-template-columns: 1fr; }
}
