/*
Theme Name: Modern Intro Theme
Author: Gemini
Version: 3.8
Description: Teljes körű Master CSS: 1440px konténer, Fix mobil menü (hierarchiával), Natív CF7 Grid, Natív Dátumválasztó és 404 design.
Minden funkció megtartva, funkcióvesztés nélkül.
*/

/* --- 1. VÁLTOZÓK ÉS GLOBÁLIS ALAPOK --- */
:root {
    --primary: #0073aa;
    --dark: #1d2327;
    --light: #f6f7f7;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --container-width: 1440px; 
    --radius: 4px;
}

* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--dark);
    background-color: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- 2. ÁLTALÁNOS KONTÉNER --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 30px;
    width: 100%;
}

/* --- 3. FEJLÉC (SITE HEADER) --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    padding: 12px 0;
    box-shadow: var(--shadow);
}

.site-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 { 
    margin: 0; 
    font-size: 1.4rem; 
    line-height: 1.2; 
}

.logo a { 
    text-decoration: none; 
    color: var(--primary); 
    font-weight: 900; 
    text-transform: uppercase; 
    letter-spacing: -0.5px; 
}

/* --- 4. NAVIGÁCIÓ (ASZTALI) --- */
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 25px;
}

.main-navigation li { 
    position: relative; 
}

.main-navigation a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 0;
    transition: all 0.3s ease;
    display: block;
}

.main-navigation a:hover { 
    color: var(--primary); 
}

/* --- 5. LEGYÖRDÜLŐ MENÜ (DROPDOWN) --- */
.main-navigation ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    display: block;
    width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border-radius: var(--radius);
    padding: 10px 0;
    flex-direction: column;
    align-items: flex-start;
    z-index: 999;
}

.main-navigation li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-navigation ul ul li { 
    width: 100%; 
}

.main-navigation ul ul a {
    padding: 12px 20px;
    font-size: 0.85rem;
    width: 100%;
}

.main-navigation ul ul a:hover { 
    background: #f8f9fa; 
    color: var(--primary);
}

/* --- 6. KAPCSOLAT GOMB (KIZÁRÓLAG ASZTALI) --- */
@media (min-width: 1151px) {
    /* Csak a legfelső szint utolsó elemét formázzuk gombnak */
    .main-navigation > div > ul > li:last-child > a {
        background: var(--primary);
        color: white !important;
        padding: 10px 24px !important;
        border-radius: var(--radius);
        transition: transform 0.3s, box-shadow 0.3s;
    }

    .main-navigation > div > ul > li:last-child > a:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
    }
}

/* --- 7. MOBIL HAMBURGER IKON --- */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1100;
}

.hamburger-box {
    display: inline-block;
    width: 28px;
    height: 20px;
    position: relative;
}

.hamburger-inner, .hamburger-inner::before, .hamburger-inner::after {
    width: 28px;
    height: 3px;
    background-color: var(--dark);
    position: absolute;
    transition: 0.3s;
}

.hamburger-inner { top: 50%; transform: translateY(-50%); }
.hamburger-inner::before { content: ""; top: -8px; left: 0; }
.hamburger-inner::after { content: ""; top: 8px; left: 0; }

.menu-toggle.is-active .hamburger-inner { background-color: transparent; }
.menu-toggle.is-active .hamburger-inner::before { transform: translateY(8px) rotate(45deg); }
.menu-toggle.is-active .hamburger-inner::after { transform: translateY(-8px) rotate(-45deg); }

/* --- 8. KOMPAKT MOBIL MENÜ (GOMBOK NÉLKÜL) --- */
@media (max-width: 1150px) {
    .menu-toggle { display: block; }

    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.99);
        padding: 60px 25px;
        transition: right 0.4s cubic-bezier(0.77,0.2,0.05,1.0);
        z-index: 1050;
        box-shadow: -10px 0 40px rgba(0,0,0,0.1);
        overflow-y: auto;
    }

    .main-navigation.is-open { right: 0; }

    .main-navigation ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .main-navigation li { width: 100%; }

    /* Mobilon minden gombstílust törlünk a hierarchia miatt */
    .main-navigation a {
        font-size: 1.15rem;
        padding: 12px 0;
        border-bottom: 1px solid #f2f2f2;
        background: transparent !important;
        color: var(--dark) !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    /* Mobil Almenü Hierarchia */
    .main-navigation ul ul {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 15px;
        width: 100%;
        background: transparent;
        display: block;
        margin-bottom: 10px;
    }

    .main-navigation ul ul li { border-left: 2px solid #eee; }
    .main-navigation ul ul a {
        font-size: 0.95rem;
        padding: 8px 12px;
        color: #666 !important;
        border-bottom: none;
    }

    .main-navigation ul ul a::before {
        content: "— ";
        color: var(--primary);
        opacity: 0.5;
    }
}

/* --- 9. HERO SLIDER --- */
.hero-slider {
    position: relative;
    width: 100%;
    height: 650px;
    overflow: hidden;
    background: var(--dark);
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
}

.slide::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.1) 100%);
    z-index: 1;
}

.slide.active { opacity: 1; z-index: 2; }

.slide-content {
    position: relative; /* Pozicionálás a z-index miatt */
    z-index: 2; /* A sötétítő réteg (z-index: 1) fölé emeljük a tartalmat */
    max-width: 550px;
    text-align: left;
    color: var(--white);
    background: rgba(0, 0, 0, 0.45);
    padding: 50px;
    border-radius: 8px;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: fadeInLeft 0.8s ease forwards;
    margin-left: calc((100% - var(--container-width)) / 2 + 30px);
}

.slide-content h2 { 
    font-size: 3.8rem; 
    margin: 0 0 18px 0; 
    font-weight: 800;
    line-height: 1.05;
}

.slide-content p { font-size: 1.3rem; margin-bottom: 35px; opacity: 0.95; }

.hero-btn {
    display: inline-block;
    padding: 16px 38px;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease; /* Ezt a sort add hozzá a meglévőhöz */
}

/* EZT A BLOKKOT MÁSOLD BE PONTOSAN IDE */
.hero-btn:hover {
    background-color: #005177 ;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
/* EDDIG TART AZ ÚJ RÉSZ */

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-35px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-35px); }
    to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 1440px) { .slide-content { margin-left: 30px; } }

/* Mobil optimalizálás (Tabletek és telefonok) */
@media (max-width: 768px) {
    .slide-content { 
        margin: 0 auto; 
        text-align: center; 
        max-width: 90%; 
        padding: 30px; /* Csökkentett padding, hogy több hely legyen a szövegnek */
    }
    .slide-content h2 {
        font-size: 2.2rem; /* Kisebb, mobilbarát főcím */
        margin-bottom: 15px;
    }
    .slide-content p {
        font-size: 1.1rem; /* Kisebb leírás */
        margin-bottom: 25px;
    }
    .hero-slider { height: 500px; }
    
    .wpcf7-form input[type="date"] {
        max-width: 100%;
        width: 100% !important;
        min-width: 0;
        appearance: none;
        -webkit-appearance: none;
    }
    
}

/* Extra kis képernyők (pl. régebbi iPhone-ok vagy ha nagyon szűk a hely) */
@media (max-width: 480px) {
    .slide-content {
        padding: 25px 20px;
        width: 95%;
    }
    .slide-content h2 {
        font-size: 1.8rem;
    }
}

/* --- 10. CONTACT FORM 7 GRID ÉS DÁTUMVÁLASZTÓ FIX --- */
.wpcf7-form {
    max-width: 1000px;
    margin: 0 auto;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

/* 2 oszlopos rács a textarea feletti mezőkhöz */
.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

/* Teljes szélességű elem (pl. üzenet mező) */
.full-width {
    grid-column: 1 / -1;
}

/* Adatkezelési rész stílusa */
.acceptance-area {
    background: var(--light);
    padding: 25px;
    border-radius: var(--radius);
    margin: 30px 0;
    border-left: 4px solid var(--primary);
}

.acceptance-area h3 { margin-top: 0; font-size: 1.2rem; }
.required-notice { color: #d63638; font-weight: 600; margin-bottom: 20px; }
.file-info { display: block; font-size: 0.75rem; color: #888; margin-top: 5px; margin-bottom: 15px; }

/* Mobil nézetben (768px alatt) visszaváltunk 1 oszlopra */
@media (max-width: 768px) {
    .form-grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 991px) {
    .form-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .form-grid { grid-template-columns: 1fr; }
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #444;
}

.required { color: #d63638; margin-left: 3px; }

/* Natív mezők és Dátumválasztó fix */
.wpcf7-form .wpcf7-text,
.wpcf7-form .wpcf7-email,
.wpcf7-form .wpcf7-date,
.wpcf7-form .wpcf7-textarea,
.wpcf7-form .wpcf7-select,
.wpcf7-form input[type="date"] {
    width: 100% !important;
    min-height: 48px; 
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    background-color: #fcfcfc;
    font-family: inherit;
    font-size: 1rem;
    color: var(--dark);
    transition: all 0.3s ease;
    box-sizing: border-box;
    display: block;
    margin-bottom: 5px;
}

/* Naptár ikon színe modern böngészőkben */
.wpcf7-form input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    filter: invert(30%) sepia(100%) saturate(500%) hue-rotate(180deg);
}

/* Fájlfeltöltő mező egyedi formázása */
.wpcf7-form .wpcf7-file {
    background-color: #fff !important;
    border: 1px dashed #ccc !important; /* Szaggatott keret a "dobd ide" érzetért */
    padding: 8px !important;
    cursor: pointer;
}

/* A "Fájl kiválasztása" gomb stílusa (böngészőfüggő szelektorok) */
.wpcf7-form input[type="file"]::file-selector-button,
.wpcf7-form input[type="file"]::-webkit-file-upload-button {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 6px 15px;
    border-radius: var(--radius);
    margin-right: 15px;
    cursor: pointer;
    font-weight: 600;
    font-family: inherit;
    transition: all 0.3s ease;
}

.wpcf7-form input[type="file"]::file-selector-button:hover,
.wpcf7-form input[type="file"]::-webkit-file-upload-button:hover {
    background-color: var(--dark);
}

.wpcf7-form *:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

/* Beküldő gomb */
.wpcf7-submit {
    display: inline-block;
    padding: 15px 45px !important;
    background-color: var(--primary) !important;
    color: #fff !important;
    border: none !important;
    border-radius: var(--radius) !important;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 15px;
}

.wpcf7-submit:hover { 
    background-color: var(--dark) !important; 
    transform: translateY(-2px); 
    box-shadow: var(--shadow);
}

/* --- 11. 404 ÉS HIBAÜZENETEK --- */
.error-404-content {
    padding: 120px 20px;
    text-align: center;
}

.error-404-content h1 {
    font-size: 8rem;
    color: var(--primary);
    margin: 0;
    line-height: 1;
    font-weight: 900;
}

.wpcf7-response-output {
    margin: 20px 0 0 !important;
    padding: 15px !important;
    border-radius: var(--radius) !important;
    font-weight: 600;
    text-align: center;
    border: 2px solid transparent !important;
}

.wpcf7-mail-sent-ok {
    border-color: #00a32a !important;
    color: #00a32a !important;
    background: #f0fff4;
}

.wpcf7-validation-errors {
    border-color: #d63638 !important;
    color: #d63638 !important;
    background: #fff5f5;
}
