/*
Theme Name: Alföld Gépker
Author: Horizon Marketing
Description: Egyedi WordPress téma az Alföld Gépker számára.
Version: 1.1
*/

/* --- Globális Változók és Alapok --- */
:root {
    --bg-dark: #0a0a0a;
    --bg-lighter: #151515;
    --gold: #e0ba5a;
    --gold-hover: #c4a14d;
    --text-light: #ffffff;
    --text-gray: #aaaaaa;
    
    /* Prémium lekerekítések (Shapes) */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

body {
    margin: 0;
    background-color: var(--bg-dark);
    color: var(--text-light);
    /* Montserrat betűtípus alkalmazása */
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
}

/* --- Görgetésjelző (Scroll Progress Bar) --- */
.scroll-progress-container {
    position: absolute; /* Hogy a fix fejléc tetejéhez igazodjon */
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 9999; 
}
.scroll-progress-bar {
    height: 100%;
    background: var(--gold);
    width: 0%; /* Alapból 0, a JS fogja növelni */
    transition: width 0.1s ease-out; /* Finom mozgás */
    box-shadow: 0 0 10px var(--gold); /* Prémium izzás */
}
/* --- Fejléc és Navigáció (Asztali nézet) --- */
.site-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 1.5rem 10%; 
    background: rgba(10, 10, 10, 0.95); 
    border-bottom: 1px solid rgba(255,255,255,0.05); 
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Szöveges logó formázása */
.text-logo {
    font-size: 1.8rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-light);
    letter-spacing: 1px;
}

/* Menü lista javítása */
.main-navigation ul { 
    list-style: none; /* Eltünteti a pöttyöket */
    margin: 0; 
    padding: 0;
    display: flex; 
    gap: 2rem; 
}
.main-navigation a { 
    text-decoration: none; /* Eltünteti az aláhúzást */
    color: var(--text-light); 
    font-weight: 500; 
    text-transform: uppercase; 
    font-size: 0.85rem; 
    letter-spacing: 1px;
    transition: color 0.3s; 
}
/* Hover ÉS Aktív állapotok */
.main-navigation a:not(.nav-contact-btn):hover::after,
.main-navigation a:not(.nav-contact-btn).active-scroll::after,
.main-navigation a:not(.nav-contact-btn).active-page::after {
    width: 100%;
}

.main-navigation a:not(.nav-contact-btn):hover,
.main-navigation a:not(.nav-contact-btn).active-scroll,
.main-navigation a:not(.nav-contact-btn).active-page { 
    color: var(--gold); 
}
.main-navigation a:hover { color: var(--gold); }
/* Kapcsolat gomb kapszula formázása a navbarban */
.main-navigation a.nav-contact-btn {
    background-color: var(--gold);
    color: var(--bg-dark); /* Sötét szöveg a sárga alapon */
    padding: 8px 24px;
    border-radius: 50px; /* Ettől lesz tökéletes kapszula alakja */
    font-weight: 700;
    border: 1px solid var(--gold);
    transition: all 0.3s ease;
}

.main-navigation a.nav-contact-btn:hover {
    background-color: transparent;
    color: var(--gold);
}
.menu-toggle { 
    display: none; 
    background: none; 
    border: none; 
    font-size: 1.8rem; 
    color: var(--text-light);
    cursor: pointer; 
}

/* --- Tipográfia és Gombok --- */
h1, h2, h3, h4 { margin-top: 0; font-weight: 600; letter-spacing: 0.5px; }
.gold-text { color: var(--gold); }
.section-title { 
    text-align: center; 
    color: var(--text-light); 
    text-transform: uppercase; 
    font-size: 1.8rem; 
    margin-bottom: 3.5rem; 
    position: relative; 
    letter-spacing: 2px;
}
.section-title::after { 
    content: ''; 
    display: block; 
    width: 60px; 
    height: 2px; 
    background: var(--gold); 
    margin: 15px auto 0; 
}

.btn-primary {
    display: inline-block;
    background-color: var(--gold);
    color: var(--bg-dark);
    padding: 14px 35px;
    text-decoration: none;
    font-weight: bold;
    border-radius: var(--radius-sm); /* Lekerekített gomb */
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 1px solid var(--gold);
}
.btn-primary:hover {
    background-color: transparent;
    color: var(--gold);
}

/* --- Ikonok (Prémium formákkal) --- */
.icon-wrapper {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(224, 186, 90, 0.08); /* Finom arany háttér */
    border-radius: 50%; /* Kör alakú forma */
    color: var(--gold);
    font-size: 1.8rem;
    transition: transform 0.3s;
}
.situation-item:hover .icon-wrapper, .us-item:hover .icon-wrapper, .benefit-item:hover .icon-wrapper {
    transform: scale(1.1);
}

/* --- Hero Video Szekció --- */
.hero-video-section {
    position: relative;
    height: 90vh; /* Kicsit magasabb, epikusabb tér */
    min-height: 600px;
    display: flex;
    align-items: center;
    padding: 0 10%; /* Balra zárás a belső margóval */
    overflow: hidden; /* Ne lógjon ki a videó */
}

/* Videó méretezése és pozícionálása, hogy mindig kitöltse a hátteret */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
}

/* Kifinomult árnyékolás: Bal oldalon (a szöveg mögött) sokkal sötétebb, jobbra átlátszóbb */
.hero-overlay { 
    position: absolute; 
    top: 0; left: 0; width: 100%; height: 100%; 
    background: linear-gradient(90deg, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.6) 50%, rgba(10,10,10,0.1) 100%); 
    z-index: 1; 
}

.hero-content { 
    position: relative; 
    z-index: 2; 
    max-width: 800px; 
}

/* Új, extra prémium tipográfia a főcímhez */
.hero-content h1 { 
    font-size: 5.5rem; /* Hatalmas betűméret */
    font-weight: 900; /* Extra vastag */
    line-height: 1.05; 
    margin-bottom: 1.5rem; 
    letter-spacing: -2px; /* Divatos, szűkebb betűköz a nagy címeknél */
    text-shadow: 0 15px 30px rgba(0,0,0,0.8); /* Árnyék, hogy "leugorjon" a videóról */
}

.hero-content h2 { 
    font-size: 2.2rem; 
    font-weight: 400; 
    margin-bottom: 2rem; 
    color: #f5f5f5; 
    text-shadow: 0 10px 20px rgba(0,0,0,0.8);
}

.hero-content p { 
    font-size: 1.25rem; 
    color: #cccccc; 
    font-weight: 400;
    max-width: 600px;
    line-height: 1.8;
    border-left: 3px solid var(--gold); /* Egy elegáns aranyszínű vonal a bekezdés bal oldalán */
    padding-left: 20px;
}
/* --- Közös Szekció Stílusok --- */
section { padding: 6rem 10%; }
.familiar-situation, .why-us-section { background-color: var(--bg-dark); }
.categories-section, .why-own-section { background-color: var(--bg-lighter); }

/* --- Rácsok és Kártyák (Lekerekítve) --- */
.situation-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
    gap: 3rem; 
    text-align: center; 
    margin-bottom: 3rem; 
}
.situation-item h4 { font-size: 1.1rem; margin-bottom: 15px; }
.situation-item p { color: var(--text-gray); font-size: 0.95rem; }
.situation-conclusion { text-align: center; color: var(--gold); font-style: italic; font-size: 1.3rem; margin-top: 2rem; }

.category-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 3rem; 
    text-align: center; 
}
.category-card { 
    background: var(--bg-dark); 
    padding: 2.5rem; 
    border: 1px solid rgba(255,255,255,0.05); 
    border-radius: var(--radius-md); /* Kártya sarkainak lekerekítése */
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); /* Prémium árnyék */
    transition: transform 0.4s, border-color 0.4s; 
}
.category-card:hover { transform: translateY(-10px); border-color: rgba(224, 186, 90, 0.4); }
.category-card h4 { font-size: 1.3rem; margin-bottom: 1rem; letter-spacing: 1px; }
.cat-image { 
    aspect-ratio: 4/ 3; /* Ez biztosítja a tökéletes 1:1 méretet */
    width: auto; /* A szélességet a kártya adja meg */
    background-size: cover; 
    background-position: center; 
    margin: -2.5rem -2.5rem 2rem -2.5rem; /* Kép kihúzása a paddingig */
    border-radius: var(--radius-md) var(--radius-md) 0 0; /* Csak a tetejét kerekítjük */
}
.category-card p { color: var(--text-gray); margin-bottom: 2.5rem; }

.why-own-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 4rem; align-items: center; }
.benefits-container { display: flex; justify-content: space-between; gap: 2rem; }
.benefit-item { text-align: center; flex: 1; }
.benefit-item h4 { font-size: 1rem; margin-bottom: 10px; }
.benefit-item p { color: var(--text-gray); font-size: 0.9rem; }

.selector-container { 
    border: 1px solid rgba(224, 186, 90, 0.3); 
    padding: 3rem 2rem; 
    text-align: center; 
    border-radius: var(--radius-lg); 
    background: linear-gradient(145deg, rgba(20,20,20,1) 0%, rgba(10,10,10,1) 100%);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}
.selector-container h4 { font-size: 1.3rem; margin-bottom: 20px; line-height: 1.4; }
.selector-container p { color: var(--text-gray); margin-bottom: 30px; }

.why-us-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 3rem 2rem; 
    text-align: center; 
}
.us-item h4 { font-size: 1rem; margin-bottom: 10px; }
.us-item p { color: var(--text-gray); font-size: 0.9rem; }

/* --- Rólunk / Szerviz Split --- */
.about-service-section { background-color: var(--bg-dark); }
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.content-box { 
    border: 1px solid rgba(255,255,255,0.08); 
    padding: 3.5rem; 
    background: var(--bg-lighter); 
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
.box-title { text-align: center; font-size: 1.8rem; margin-bottom: 2.5rem; letter-spacing: 1px; }
.gold-subtitle { color: var(--gold); margin-top: 2.5rem; font-size: 1.3rem; margin-bottom: 1rem; }
.box-text p { color: var(--text-gray); text-align: justify; margin-bottom: 1.2rem; font-size: 1.05rem; }

/* --- Aloldali Keskeny Hero Szekció --- */
.subpage-hero {
    position: relative;
    height: 20vh; /* 35vh-ról 20vh-ra csökkentve, sokkal vékonyabb csík */
    min-height: 160px; /* 250px-ről 160px-re visszavéve */
    background-image: url('https://via.placeholder.com/1920x400/111/e0ba5a?text=Minikotrok+Hatter');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.subpage-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}
.subpage-hero h1 {
    font-size: 3.2rem; /* 4rem-ről picit kisebbre, hogy beférjen az alacsonyabb hero-ba */
    font-weight: 800;
    letter-spacing: 3px;
    margin: 0;
    text-shadow: 0 10px 20px rgba(0,0,0,0.8);
}
.hero-line {
    width: 80px;
    height: 3px;
    background-color: var(--gold);
    margin: 15px auto 0;
}

/* --- Termékek Listája (Minikotrók) --- */
.products-showcase {
    padding: 6rem 10%;
    background-color: var(--bg-dark);
}

.product-row {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 8rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.product-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* Az álló (3:4 arányú) kép beállítása */
.product-image-container {
    width: 100%;
    /* Ez a sor a kulcs: megakadályozza, hogy a grid összenyomja a képet */
    align-self: start; 
}

.product-image {
    width: 100%;
    aspect-ratio: 3 / 4; /* EZ adja az álló 4:3 (valójában 3:4) arányt */
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    border: 1px solid rgba(224, 186, 90, 0.2);
    /* Fixáljuk a magasságot, hogy sose vágja le a tartalom hiánya */
    height: auto; 
    min-height: 100%;
}

/* Szöveges rész formázása */
.product-info h2 {
    font-size: 3.5rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
    line-height: 1;
}
.product-info h3 {
    font-size: 1.4rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-weight: 400;
}
.product-info p {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Előnyök prémium lista */
.premium-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem 0;
    display: grid;
    grid-template-columns: 1fr 1fr; /* Két oszlopos lista */
    gap: 15px;
}
.premium-list li {
    color: #ddd;
    font-size: 1.05rem;
    display: flex;
    align-items: flex-start;
}
.premium-list li i {
    color: var(--gold);
    margin-top: 5px;
    margin-right: 10px;
    font-size: 0.9rem;
}

/* Műszaki adatok apró szöveg */
.tech-specs {
    font-size: 0.95rem !important;
    color: #888 !important;
    line-height: 1.8;
}

/* --- Szövegek tökéletes sorkizárása (Minden nézetre) --- */
/* Beállítjuk a hosszú szövegek sorkizárását és az okos elválasztást, hogy mobilon se legyenek lyukak */
.hero-content p,
.product-info p,
.box-text p {
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

/* ==========================================================================
   RESZPONZÍV NÉZETEK (MEDIA QUERIES)
   ========================================================================== */

/* --- 1200px: Kisebb asztali gépek --- */
@media (max-width: 1200px) {
    .why-own-grid { grid-template-columns: 1fr; gap: 3rem; }
    .benefits-container { flex-wrap: wrap; }
    .benefit-item { min-width: 30%; }
}

/* --- 1100px: Menü összecsukása és kártyák tördelése Tableten / Kisebb laptopon --- */
@media (max-width: 1100px) {
    
    /* Navigáció alapok */
    .site-header { 
        padding: 1rem 5%; 
        display: flex; 
        justify-content: space-between; 
        align-items: center;
    }
    
    .menu-toggle { 
        display: block; 
        outline: none; 
        margin-left: auto; 
    }
    
    .menu-toggle i { 
        pointer-events: none; 
        transition: transform 0.3s ease; 
    }
    
    /* Menü ZÁRT állapota */
    .main-navigation ul { 
        display: flex; 
        flex-direction: column; 
        position: absolute; 
        top: 100%; 
        left: 0; 
        right: 0; 
        background: rgba(10, 10, 10, 0.98); 
        gap: 2rem; 
        
        max-height: 0;
        padding: 0 5%;
        margin: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
        border-top: 0px solid transparent;
        text-align: center; 
    }
    
    /* Menü NYITOTT állapota */
    .main-navigation.toggled ul { 
        max-height: 600px; 
        padding: 3rem 5%; 
        border-top: 1px solid rgba(255,255,255,0.05);
    }

    /* Kattintási felület és betűméret */
    .main-navigation a {
        display: block;
        padding: 10px 0;
        width: 100%;
        font-size: 1.2rem; 
        letter-spacing: 2px; 
    }

    /* Kapcsolat kapszula igazítása */
    .main-navigation a.nav-contact-btn {
        display: inline-block;
        width: auto;
        padding: 12px 40px;
        margin-top: 15px; 
    }

    /* Kétoszlopos részek egyoszloposítása */
    .split-layout { grid-template-columns: 1fr; }
    .benefit-item { min-width: 45%; }
    
    /* Termék sorok (Minikotrók aloldal) egyoszlopossá tétele */
    .product-row, .product-row.reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 5rem;
    }
    
    /* Mobil nézetben mindig a kép legyen felül, még a fordított (reverse) soroknál is! */
    .product-row.reverse .product-image-container {
        order: -1; 
    }
    
    .product-info h2 { font-size: 2.5rem; }
    .premium-list { grid-template-columns: 1fr; /* Egyoszlopos lista tableten/mobilon */ }
    .subpage-hero h1 { font-size: 3.2rem; }
}

/* --- 768px: Szigorúan mobiltelefonok --- */
@media (max-width: 768px) {
    
    /* Szekciók mobilra */
    section { padding: 4rem 5%; }
    
    /* Hero mobilra */
    .hero-video-section { padding: 0 5%; height: 85vh; }
    
    /* Mobilon a gradiens fentről lefelé sötétedjen, mert a szöveg kitölti a képernyőt */
    .hero-overlay { background: linear-gradient(180deg, rgba(10,10,10,0.7) 0%, rgba(10,10,10,0.95) 100%); }
    
    /* Hero tipográfia finomítása a sorkizárt elrendezéshez */
    .hero-content h1 { font-size: 3rem; letter-spacing: -1px; }
    .hero-content h2 { font-size: 1.6rem; }
    .hero-content p { 
        font-size: 1.05rem; 
        padding-left: 15px; 
        line-height: 1.6;
    }
    
    .subpage-hero h1 { font-size: 2.6rem; }
    
    /* Előnyök és boxok igazítása */
    .benefits-container { flex-direction: column; gap: 3rem; }
    .benefit-item { min-width: 100%; }
    .content-box { padding: 2rem; }
    
    /* Kategória kártyák belső távolságának finomítása */
    .category-card { padding: 1.5rem; }
    .cat-image { margin: -1.5rem -1.5rem 1.5rem -1.5rem; }
}