/* ==========================================================================
   ARIM AUTOMOTIVE - STYLE.CSS (Optimizat pentru Mobil)
   ========================================================================== */
:root {
    --primary-red: #D60000;
    --primary-black: #111111;
    --secondary-black: #1a1a1a;
    --pure-white: #ffffff;
    --light-gray: #f8f9fa;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--primary-black); background-color: var(--pure-white); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* Utilitare */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-red { color: var(--primary-red); }
.text-center { text-align: center; }
.section-padding { padding: 60px 0; } /* Ajustat de la 80px */
.bg-light { background-color: var(--light-gray); }
.mt-2 { margin-top: 20px; }
.mb-2 { margin-bottom: 20px; }
.font-weight-bold { font-weight: 700; }
.shadow-lg { box-shadow: 0 10px 30px rgba(0,0,0,0.15); }

.section-title {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 2rem; /* Mai mic pentru mobil implicit */
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Navigare */
.navbar {
    background-color: var(--pure-white);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0; left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--font-heading); font-weight: 700; font-size: 1.2rem; }
.nav-menu ul { display: flex; gap: 20px; align-items: center; }
.nav-menu a { font-weight: 600; font-size: 0.85rem; text-transform: uppercase; }
.nav-menu a:hover, .nav-menu a.active { color: var(--primary-red); }

/* Buton Contact Nav */
.btn-contact { 
    background-color: var(--primary-red); 
    padding: 10px 20px; 
    border-radius: 8px; 
    color: var(--pure-white) !important; 
    border: 2px solid var(--primary-red);
}
.btn-contact:hover {
    background-color: var(--pure-white) !important;
    color: var(--primary-red) !important;
}

/* Hamburger */
.hamburger { display: none; cursor: pointer; background: transparent; border: none; z-index: 1001; }
.bar { display: block; width: 25px; height: 3px; margin: 5px auto; background-color: var(--primary-black); transition: var(--transition); }

/* Headere & Hero */
.hero, .page-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--pure-white);
    background-size: cover;
    background-position: center;
}
.hero { height: 100vh; background-image: url('headerindex.png'); }
.page-header { height: 40vh; margin-top: 60px; }
.overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.5) 100%); z-index: 1; }
.hero-content, .header-content { position: relative; z-index: 2; width: 100%; padding: 0 20px; }
.hero-content h1, .header-content h1 { font-family: var(--font-heading); font-size: 2.2rem; text-shadow: 2px 2px 10px rgba(0,0,0,0.7); }

/* Imagini Headere */
.header-scoala { background-image: url('headerscoala.png'); }
.header-detailing { background-image: url('headerdetailing.png'); }
.header-motorsport { background-image: url('headermotorsport.png'); }
.header-proiecte { background-image: url('headerproiecte.png'); }
.header-contact { background-image: url('headercontact.png'); }

/* Carduri & Grila */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.modern-card { background: var(--pure-white); padding: 30px 20px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); transition: var(--transition); height: 100%; display: flex; flex-direction: column; border-top: 5px solid transparent; border-radius: 8px; }
.modern-card:hover { transform: translateY(-5px); border-top-color: var(--primary-red); }

.custom-list li { position: relative; padding-left: 25px; margin-bottom: 12px; text-align: left; }
.custom-list li::before { content: "\f00c"; font-family: "Font Awesome 5 Free"; font-weight: 900; position: absolute; left: 0; color: var(--primary-red); }

/* Layout Split */
.split-container { display: flex; align-items: center; gap: 40px; }
.split-text { flex: 1; }
.split-image { flex: 1; display: flex; justify-content: center; }
.rounded-image { border-radius: 15px; max-width: 400px; width: 100%; height: auto; }

/* Butoane */
.btn-main, .btn-outline { 
    display: inline-block; 
    padding: 12px 30px; 
    font-weight: 700; 
    text-transform: uppercase; 
    cursor: pointer; 
    border-radius: 8px; 
    transition: var(--transition);
    border: 2px solid var(--primary-red);
    font-size: 0.9rem;
}
.btn-main { background: var(--primary-red); color: #fff; }
.btn-main:hover { background: var(--pure-white); color: var(--primary-red); }
.btn-outline { background: var(--pure-white); color: var(--primary-red); }
.btn-outline:hover { background: var(--primary-red); color: var(--pure-white); }

/* Footer */
footer { background: #0a0a0a; color: #bbb; padding: 60px 0 20px; text-align: left; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; margin-bottom: 40px; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; }
.footer-col h3, .footer-col h4 { color: #fff; margin-bottom: 20px; font-family: var(--font-heading); }
footer a:hover { color: var(--primary-red); }
.footer-bottom { border-top: 1px solid #222; padding-top: 20px; text-align: center; font-size: 0.85rem; }

/* ==========================================================================
   MEDIA QUERIES - OPTIMIZARE MOBIL
   ========================================================================== */

@media (max-width: 992px) {
    .hamburger { display: block; }
    
    .nav-menu { 
        position: fixed; 
        left: -100%; 
        top: 60px; 
        background: #fff; 
        width: 100%; 
        height: calc(100vh - 60px); 
        flex-direction: column; 
        justify-content: center; 
        transition: 0.4s; 
        z-index: 1000;
    }
    
    .nav-menu.active { left: 0; }
    .nav-menu ul { flex-direction: column; gap: 25px; width: 100%; padding: 40px; }
    .nav-menu a { font-size: 1.2rem; }
    
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .hero-content h1 { font-size: 1.8rem; }
    .section-title { font-size: 1.6rem; }
    
    .split-container { flex-direction: column; text-align: center; }
    .split-container.reverse-mobile { flex-direction: column-reverse; }
    .footer-col { align-items: center; text-align: center; }
    footer { text-align: center; }
}

@media (max-width: 480px) {
    .section-padding { padding: 40px 0; }
    .btn-main, .btn-outline { width: 100%; text-align: center; }
    .logo { font-size: 1rem; }
}

.comunitate-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px; /* Spațiul dintre butoane */
}