/* CSS Reset & Változók */
:root {
    --bg-main: #ffffff;
    --text-dark: #111111;
    --text-muted: #555555;
    --btn-blue: #0b4073;
    --btn-red: #c01722;
    --footer-bg: #061224;
    --font-main: 'Montserrat', sans-serif;
    --transition-smooth: all 0.4s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Fő szekció (Hero) - Fehér témához igazítva */
.hero-section {
    display: flex;
    min-height: auto;
    background-color: #ffffff;
    position: relative;
}

.hero-content {
    flex: 1;
    padding: 20px 80px 10px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
    background: linear-gradient(90deg, rgba(255,255,255,1) 70%, rgba(255,255,255,0) 100%);
    max-width: 60%;
}

.hero-logo {
    margin-bottom: 0px;
}

/* A logó kép méretének fixálása */
.logo-img {
    max-width: 220px; /* Itt tudod szabályozni a logó méretét, ha még kisebbet akarsz, írj 180px-et */
    height: auto;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: #0b2241;
    margin-top: 5px;
    margin-bottom: 5px;
    letter-spacing: -1px;
}

.hero-divider {
    width: 60px;
    height: 4px;
    background-color: var(--btn-blue);
    margin-bottom: 10px;
}

.hero-text {
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--text-dark);
}

.hero-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 65%;
    height: 100%;
    background-image: url('imgs/uj_epulet.png');
    background-size: cover;
    background-position: center right;
    z-index: 1;
    border-bottom: 4px solid var(--btn-blue);
}

/* ÚJ: Alsó finom elmosódás (Fade), ami lágyítja a kép alját */
.hero-image::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 25%; /* Csak a kép alsó negyedére hat */
    background: linear-gradient(to top, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    z-index: 2;
}


/* Márkaválasztó szekció */
.brands-section {
    padding: 0px 40px 40px 40px;
    max-width: 1500px;
    margin: 0 auto;
}

.section-header {
    margin-top: 15px;
    text-align: center;
    margin-bottom: 15px;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0b2241;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 5px;
}

/* Kétoldali vonalak a címsor mellett */
.section-header h2::before,
.section-header h2::after {
    content: "";
    height: 1px;
    width: 80px;
    background-color: #888;
}

.section-header p {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* 2x2-es Kártya Grid (Az álló látványterv szerint) */
.brand-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.brand-card {
    position: relative;
    height: 330px;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    transition: var(--transition-smooth);
    z-index: 1;
}

.brand-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: var(--transition-smooth);
    transform: scale(1.02);
    z-index: -2;
}

/* Erős sötétítő réteg, hogy a szöveg jól látszódjon */
.brand-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(10, 20, 35, 0.95) 0%, rgba(10, 20, 35, 0.4) 60%, rgba(10, 20, 35, 0) 100%);
    z-index: -1;
}

.brand-content {
    padding: 30px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: flex-end; /* Minden tartalom egyenletesen alulra igazodik */
}

/* A tartó doboz fix marad, hogy ne másszanak el a szövegek */
.brand-logo-wrapper {
    height: 80px; 
    display: flex;
    align-items: center; /* Függőlegesen középre igazítja a logókat a 80px-en belül */
    margin-bottom: 20px;
}

.card-logo {
    object-fit: contain;
    /* Kivettük a globális max-width és max-height értékeket, mert egyénileg adjuk meg */
}

.logo-ford {
    width: 140px; /* Ez a méret jónak tűnt a képeden */
}

.logo-dongfeng {
    height: 75px; /* A Dongfengnél a magasságot növeljük, így arányosan nagyobb lesz */
}

.logo-chery {
    width: 150px; /* A Chery nagyon apró volt, így szélesebbre húzzuk, hogy megnőjön */
}

.logo-maxus {
    height: 75px; /* A Maxus bumszli volt, ezért visszavettük a magasságát, így összemegy */
}

.brand-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.brand-tagline {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    font-weight: 500;
    line-height: 1.5;
    min-height: 60px; /* Fix minimális magasság a szövegnek (biztosan elfér benne 2 sor), hogy a gombok egy vonalban maradjanak */
}

.brand-btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 4px;
    transition: var(--transition-smooth);
    margin-top: auto; /* Ez a varázsszó: A gombot az aljára tolja, ha netán a felette lévő szövegek között maradna egy kis helykülönbség */
}

.btn-blue {
    background-color: var(--btn-blue);
}

.btn-red {
    background-color: var(--btn-red);
}

/* Hover animációk */
.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
}

.brand-card:hover .brand-bg-img {
    transform: scale(1.06);
}

.brand-btn:hover {
    filter: brightness(1.2);
    padding-left: 28px;
    padding-right: 20px;
}

/* Lábléc - Sötét kék téma ikonokkal */
footer {
    background-color: var(--footer-bg);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

/* Hullámos háttér imitáció (opcionális finom gradient) */
footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.03) 0%, transparent 60%);
    pointer-events: none;
}

.footer-contacts {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 60px;
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 1;
}

.contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--btn-blue); /* Ikon színe világosabb kék, vagy fehér */
}

.contact-icon svg {
    color: #619aeb;
}

.contact-text {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 4px;
    letter-spacing: 1px;
}

.contact-value {
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-bottom {
    text-align: center;
    padding: 25px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    z-index: 1;
    position: relative;
}

/* Reszponzivitás */
/* Reszponzivitás */
@media (max-width: 1200px) {
    .brand-grid {
        grid-template-columns: repeat(2, 1fr); /* Kisebb képernyőn visszaugrik 2 oszlopra */
        gap: 30px;
    }
    .brand-card {
        height: 420px; /* Visszaadjuk a magasságot, ha csak 2 van egymás mellett */
    }
    .hero-content {
        max-width: 80%;
    }
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        flex-direction: column; /* Egymás alá kerül a szöveg és a kép */
        min-height: auto;
    }
    
    .hero-content {
        max-width: 100%;
        padding: 30px 20px; /* Csökkentettük a felső paddingot (a túlzott gap miatt) */
        background: #ffffff; /* Mobilon nincs szükség színátmenetre, mert egymás alatt vannak */
        text-align: center; /* Mobilon a középre igazítás sokkal modernebb */
        align-items: center; /* Logó és Divider középre */
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-text {
        font-size: 1rem;
        line-height: 1.5;
        text-align: center;
    }
    
    /* --- FŐ KÉP (MOBIL NÉZET) --- */
    .hero-image {
        position: relative;
        /* Nem vágjuk le a széleken, hanem elegáns kártyát csinálunk belőle! */
        width: calc(100% - 40px); 
        margin: 10px auto 30px auto; /* Középre igazítva, szép térközökkel */
        height: 280px; 
        
        /* Prémium kerekítés és lebegő árnyék */
        border-radius: 16px; 
        box-shadow: 0 15px 35px rgba(11, 34, 65, 0.2); 
        
        /* A kék díszvonal itt is megjelenik a kártya alján */
        border-bottom: 4px solid var(--btn-blue);
        overflow: hidden; /* Biztosítja, hogy a kép ne lógjon ki a kerekítésből */
    }

    /* ÚJ: Mobilon egy gyönyörű, belső sötétedést kap alulról, ami mélységet (3D hatást) ad a képnek */
    .hero-image::before {
        display: block;
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 50%; /* A kép alsó felét sötétíti finoman */
        background: linear-gradient(to top, rgba(6, 18, 36, 0.4) 0%, transparent 100%);
        pointer-events: none;
        z-index: 2;
    }

    /* Mobilon eltüntetjük a finomító ködöt, mert a kép a szöveg ALATT van, nem mellette */
    .hero-image::after {
        display: none; 
    }

    .brands-section {
        padding: 20px 20px 40px 20px; /* Mobilon is szebb margók */
    }

    .brand-grid {
        grid-template-columns: 1fr; 
    }
    
    .brand-card {
        height: clamp(350px, 50vh, 400px); /* Mobilon rugalmas, de élvezhető magasság */
    }
    
    .footer-contacts {
        flex-direction: column;
        gap: 30px;
        align-items: flex-start;
        padding-left: 20px;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    /* Mobilon rövidebb díszvonalak */
    .section-header h2::before,
    .section-header h2::after {
        width: 40px; 
    }
}
