/* ==================================================
   PRIME MOMENT - MAIN STYLESHEET
   Acesta este fișierul CSS complet și consolidat.
================================================== */

/* === 1. FOUNDATIONS: RESET & VARIABLES === */
:root {
    --primary-color: #005A9C; /* Albastru profesional */
    --secondary-color: #F4F6F8; /* Gri deschis pentru fundaluri */
    --accent-color: #4CAF50; /* Verde proaspăt pentru butoane */
    --text-color: #333;
    --heading-font: 'Poppins', sans-serif;
    --body-font: 'Lato', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    color: var(--text-color);
    line-height: 1.7;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-family: var(--heading-font);
    color: var(--primary-color);
    margin-bottom: 20px;
}

h1 { font-size: 42px; }
h2 { font-size: 36px; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }

p {
    margin-bottom: 15px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

section {
    padding: 80px 0;
}


/* === 2. REUSABLE COMPONENTS === */

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    font-family: var(--heading-font);
    border: none;
    cursor: pointer;
}
.btn-primary {
    background-color: var(--accent-color);
    color: white;
}
.btn-primary:hover {
    background-color: #45a049;
    transform: translateY(-2px);
}
.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}
.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* --- Section Title --- */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

/* --- Page Header (for subpages) --- */
.page-header {
    background-color: var(--secondary-color);
    padding: 60px 0;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}
.page-header h1 {
    margin-bottom: 10px;
}


/* === 3. LAYOUT: HEADER & FOOTER === */

/* --- Header --- */
.main-header {
    background-color: white;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-family: var(--heading-font);
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}
.main-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    transition: color 0.3s;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}
.main-nav a:hover {
    color: var(--primary-color);
}
.main-nav a.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}
.mobile-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* --- Footer --- */
.main-footer {
    background-color: #222;
    color: #ccc;
    padding: 60px 0 20px 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col h4 {
    color: white;
}
.footer-col ul {
    list-style: none;
}
.footer-col li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-col a {
    color: #ccc;
    transition: color 0.3s;
}
.footer-col a:hover {
    color: white;
}
.social-icons a {
    font-size: 20px;
    margin-right: 15px;
}
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 14px;
}


/* === 4. HOMEPAGE SECTIONS === */

/* --- Hero Section --- */
#hero {
    background-image: linear-gradient(rgba(0, 70, 128, 0.8), rgba(0, 45, 82, 0.8)), url('/images/mechanic-black-gloves-carefully-wipes-engine-car-with-red-rag.jpg');
    /* MODIFICAȚI: Asigurați-vă că această cale este corectă pe serverul dvs. */
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    text-align: center;
}
#hero h1 { color: white; }
#hero .sub-headline {
    font-size: 24px;
    font-family: var(--heading-font);
    font-weight: 600;
    margin-bottom: 25px;
}
#hero p { max-width: 700px; margin-left: auto; margin-right: auto; }

/* --- Intro Section --- */
#intro .intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
#intro .intro-image {
    width: 100%;
    border-radius: 8px;
}

/* --- Benefits Section --- */
#benefits { background-color: var(--secondary-color); }
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.feature-box {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    align-items: flex-start;
    gap: 20px;
}
.feature-box i { font-size: 28px; color: var(--accent-color); margin-top: 5px; }

/* --- About Us & Final CTA --- */
#about { background-color: var(--secondary-color); }
#final-cta { background-color: var(--primary-color); color: white; text-align: center; }
#final-cta h2 { color: white; }
#final-cta p { max-width: 600px; margin: 0 auto 30px auto; }


/* === 5. PRODUCT & CATEGORY STYLES === */

/* --- Product Grid (Used on Homepage & Products Page) --- */
.card-grid, .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* --- Enhanced Product Card --- */
.card, .product-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover, .product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 90, 156, 0.15);
}
.card-img, .product-card-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s ease-out;
}
.card:hover .card-img, .product-card:hover .product-card-img {
    transform: scale(1.05);
}
.card-body, .product-card-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-top: 1px solid #f0f0f0;
}
.product-card-body { text-align: left; }
.card-body h3, .product-card-body h3 {
    margin-top: 0;
    min-height: 40px;
}
.product-card .price {
    font-size: 18px;
    font-weight: bold;
    color: #4CAF50;
    margin-bottom: 20px;
}
.product-card .details-link {
    display: inline-block;
    margin-top: auto;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    align-self: flex-start;
}
.no-products {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 1.2em;
    padding: 40px 0;
}


/* === 6. PAGE-SPECIFIC LAYOUTS === */

/* --- Products Page (Catalog with Filters) --- */
.products-layout { display: flex; gap: 30px; }
.products-sidebar { flex: 0 0 280px; }
.products-main-content { flex: 1; }
.filter-group { background-color: #f9f9f9; padding: 20px; border-radius: 8px; margin-bottom: 25px; border: 1px solid #e9e9e9; }
.filter-group h4 { margin-top: 0; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid #ddd; }
.filter-group input[type="search"], .filter-group input[type="number"] { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 5px; margin-bottom: 10px; }
.price-filter-inputs { display: flex; gap: 10px; align-items: center; }
.category-list { list-style: none; padding: 0; margin: 0; }
.category-list li a { display: block; padding: 8px 12px; color: var(--primary-color); border-radius: 5px; transition: background-color 0.2s; }
.category-list li a:hover { background-color: #eef5ff; }
.category-list li a.active { background-color: var(--primary-color); color: white; font-weight: bold; }
.filter-buttons { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.filter-buttons .btn-reset { text-align: center; background: #f1f1f1; color: #555; }
.content-header { display: flex; justify-content: space-between; align-items: center; background: #f9f9f9; padding: 15px 20px; border-radius: 8px; margin-bottom: 30px; }
.content-header .results-count { font-weight: bold; }

/* --- Product Detail Page --- */
.product-detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: flex-start; }
.product-gallery .main-image { width: 100%; height: auto; max-height: 500px; object-fit: cover; border-radius: 8px; border: 1px solid #eee; margin-bottom: 20px; }
.thumbnail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 10px; }
.thumbnail { width: 100%; height: 100px; object-fit: cover; border-radius: 5px; cursor: pointer; border: 2px solid transparent; transition: border-color 0.3s; }
.thumbnail:hover, .thumbnail.active { border-color: var(--primary-color); }
.product-info h1 { font-size: 36px; margin-top: 0; }
.product-info .price { font-size: 28px; font-weight: bold; color: var(--accent-color); margin-bottom: 25px; }
.back-to-products { display: inline-block; margin-bottom: 40px; font-weight: bold; }

/* --- Contact Page --- */
.contact-grid { display: grid; grid-template-columns: 1.8fr 1.2fr; gap: 50px; align-items: flex-start; }
.contact-form-wrapper { position: relative; }
.contact-form .form-group { margin-bottom: 20px; }
.contact-form label { display: block; margin-bottom: 8px; font-weight: bold; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 5px; font-size: 16px; }
.contact-info-box { background-color: var(--secondary-color); padding: 30px; border-radius: 8px; }
.contact-info-item { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 25px; }
.contact-info-item i { font-size: 20px; color: var(--primary-color); margin-top: 5px; flex-shrink: 0; width: 25px; text-align: center; }
.contact-action-buttons { margin-top: 15px; display: flex; flex-direction: column; gap: 10px; }
.action-btn { display: flex; align-items: center; gap: 10px; padding: 12px 15px; border-radius: 5px; font-weight: bold; transition: all 0.3s ease; color: white; }
.action-btn.btn-phone { background-color: var(--accent-color); }
.action-btn.btn-phone:hover { background-color: #45a049; }
.action-btn.btn-email { background-color: var(--primary-color); }
.action-btn.btn-email:hover { background-color: #004a80; }
.map-container { margin-top: 30px; border-radius: 8px; overflow: hidden; }
.map-container iframe { width: 100%; height: 250px; border: 0; }
#success-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(255, 255, 255, 0.98); display: none; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 30px; border-radius: 8px; opacity: 0; transition: opacity 0.5s ease; }
#success-overlay.visible { display: flex; opacity: 1; }
#success-overlay .icon { font-size: 60px; color: var(--accent-color); margin-bottom: 20px; animation: pop-in 0.5s ease-out; }
@keyframes pop-in { 0% { transform: scale(0.5); opacity: 0; } 80% { transform: scale(1.1); } 100% { transform: scale(1); opacity: 1; } }
#form-status-error { margin-top: 15px; padding: 10px; border-radius: 5px; font-weight: bold; background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; display: none; }


/* === 7. RESPONSIVE DESIGN === */
@media (max-width: 992px) {
    .products-layout { flex-direction: column; }
    .products-sidebar { flex: 1; }
}

@media (max-width: 768px) {
    h1 { font-size: 32px; }
    h2 { font-size: 28px; }
    section { padding: 60px 0; }
    .main-header .container { position: relative; }
    .main-nav { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background: white; box-shadow: 0 4px 10px rgba(0,0,0,0.1); padding: 20px; }
    .main-nav.active { display: flex; }
    .main-nav ul { flex-direction: column; gap: 20px; }
    .mobile-toggle { display: block; }
    #hero { padding: 80px 0; }
    #intro .intro-grid { grid-template-columns: 1fr; }
    .product-detail-layout { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
}
