/* style.css (Verzió 5.1 - Térkép Stílusokkal) */

/* Alap Stílusok és Változók */
:root {
    --primary-color: #2C3E50;
    --secondary-color: #3498DB;
    --accent-color: #F39C12;
    --light-bg-color: #FDFEFE;
    --white-color: #FFFFFF;
    --text-color: #34495E;
    --font-primary: 'Open Sans', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
    --shadow-light: 0 5px 15px rgba(0,0,0,0.05);
    --border-radius-main: 8px;
    --nav-height: 80px;
}

/* Globális Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-primary); color: var(--text-color); line-height: 1.7; background-color: var(--white-color); }
.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }

/* Címsorok és Gombok */
h1, h2, h3 { font-family: var(--font-secondary); color: var(--primary-color); line-height: 1.3; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); text-align: center; }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); text-align: center; margin-bottom: 3rem; }
a { text-decoration: none; color: var(--secondary-color); transition: color 0.3s ease; }
a:hover { color: var(--accent-color); }
.btn { display: inline-block; padding: 15px 35px; border-radius: 50px; font-weight: 700; font-family: var(--font-secondary); transition: all 0.3s ease; text-align: center; cursor: pointer; border: none; text-transform: uppercase; }
.btn-primary { background-color: var(--accent-color); color: var(--white-color); }
.btn-primary:hover { transform: translateY(-3px); }
h1.ertek {color:#FFFFFF}

/* Navigáció */
body .navbar {
    display: block;
    background-color: rgba(255, 255, 255, 0.95);
    height: var(--nav-height);
    padding: 0;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-light);
    backdrop-filter: blur(10px);
}
body .navbar .container { display: flex; justify-content: space-between; align-items: center; height: 100%; }
body .navbar .logo { font-size: 1.8rem; font-weight: 700; color: var(--primary-color); }
body .navbar .nav-menu { display: flex; list-style: none; align-items: center; margin: 0; padding: 0; }
body .navbar .nav-menu li { margin: 0; margin-left: 2.5rem; padding: 0; list-style-type: none; }
body .navbar .nav-menu li a { color: var(--primary-color); font-weight: 600; position: relative; padding: 5px 0; }
body .navbar .nav-menu li a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background-color: var(--accent-color); transition: width 0.3s ease; }
body .navbar .nav-menu li a:hover::after { width: 100%; }
body .navbar .nav-toggle { display: none; cursor: pointer; border: none; background: transparent; z-index: 1001; }
.hamburger { display: block; position: relative; width: 25px; height: 2px; background: var(--primary-color); transition: background 0.2s ease-out; }
.hamburger::before, .hamburger::after { content: ''; position: absolute; left: 0; width: 100%; height: 2px; background: var(--primary-color); transition: transform 0.2s ease-out, top 0.2s ease-out, bottom 0.2s ease-out; }
.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }
.nav-toggle.active .hamburger { background: transparent; }
.nav-toggle.active .hamburger::before { transform: rotate(45deg); top: 0; }
.nav-toggle.active .hamburger::after { transform: rotate(-45deg); bottom: 0; }

/* Hero Szekció */
header.hero {
    position: relative;
    height: 80vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 20px;
}
.hero-content p { font-size: 1.2rem; margin-bottom: 2.5rem; font-weight: 300; }

/* Általános Szekciók */
section { padding: 5rem 0; }
section:nth-of-type(even) { background-color: var(--light-bg-color); }
section.page-hero { background-color: var(--primary-color); color: var(--white-color); padding: 4rem 0; }
section.page-hero h1, section.page-hero p { color: var(--white-color); }
section.cta-section { background-color: var(--accent-color); color: var(--white-color); text-align: center; }
section.cta-section h2, section.cta-section p { color: var(--white-color); }
section.cta-section .btn-primary { background-color: var(--white-color); color: var(--accent-color); }

/* Ezek a régi gallery-grid stílusok, amiket a lapozható galéria miatt felülírunk vagy figyelmen kívül hagyunk */
/* .services-highlight-cards, .gallery-grid, .team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; } */

/* === Galéria specifikus stílusok a lapozáshoz === */
.gallery-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.single-image-gallery {
    position: relative; /* Fontos a .overlay pozícionálásához */
    margin-bottom: 20px;
    border: 1px solid #ddd;
    padding: 10px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    max-width: 100%; /* Hogy ne fusson ki */
    margin-left: auto;
    margin-right: auto;
}

.gallery-image-wrapper {
    display: none; /* Alapértelmezetten mind rejtve, csak az "active" látható */
    position: relative; /* Az overlay pozíciójához */
}

.gallery-image-wrapper.active {
    display: block; /* Az aktív kép megjelenítése */
}

.gallery-image-wrapper img {
    max-width: 100%;
    height: auto; /* Tartja az arányokat */
    display: block; /* Eltávolítja az extra helyet a kép alatt */
    margin: 0 auto; /* Középre igazítás */
    border-radius: var(--border-radius-main); /* A már meglévő border-radius változó használata */
}

.gallery-image-wrapper .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 10px;
    font-size: 1rem;
    text-align: center;
    transform: translateY(100%); /* Rejtve alapból */
    transition: transform 0.3s ease-out;
    border-bottom-left-radius: var(--border-radius-main);
    border-bottom-right-radius: var(--border-radius-main);
}

.gallery-image-wrapper:hover .overlay {
    transform: translateY(0); /* Hoverre megjelenik */
}

.pagination {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.pagination button {
    background-color: var(--secondary-color);
    color: var(--white-color);
    border: none;
    padding: 12px 25px;
    cursor: pointer;
    border-radius: 50px; /* Lekerekített gombok */
    font-size: 1.1rem;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.pagination button:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

.pagination span {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* Vélemények */
.testimonials { background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); color: var(--white-color); }
.testimonials h2 { color: var(--white-color); }
.testimonial-carousel { overflow: hidden; width: 100%; }
.testimonial-track { display: flex; transition: transform 0.5s ease-in-out; }
.testimonial-item { flex: 0 0 100%; padding: 0 1rem; display: flex; justify-content: center; align-items: center; }
.testimonial-content { background-color: rgba(255, 255, 255, 0.1); backdrop-filter: blur(5px); padding: 2rem; border-radius: var(--border-radius-main); text-align: center; max-width: 800px; width: 100%; }
.testimonial-content p { font-style: italic; font-size: 1.1rem; }

/* Lábléc */
.footer { background-color: var(--primary-color); color: var(--white-color); padding: 4rem 0 2rem 0; font-size: 0.9rem; text-align: center; }
.footer .logo { font-size: 1.8rem; font-weight: 700; margin-bottom: 1rem; color: var(--white-color); }
.footer p { color: rgba(255, 255, 255, 0.7); }
.footer a { color: rgba(255, 255, 255, 0.7); }
.footer nav ul { display: flex; list-style: none; margin: 2rem 0; flex-wrap: wrap; justify-content: center; }
.footer nav ul li { margin: 0.5rem 1rem; }
.footer nav ul li a { color: var(--white-color); font-weight: 600; }
.footer .social-links a { font-size: 1.5rem; margin: 0 1rem; }
.footer .copyright { margin-top: 2rem; border-top: 1px solid rgba(255, 255, 255, 0.2); padding-top: 2rem; }

/* Animációk és Sütik */
.fade-in-section { opacity: 0; transform: translateY(40px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.fade-in-section.is-visible { opacity: 1; transform: translateY(0); }
.cookie-consent-banner { position: fixed; bottom: 0; left: 0; width: 100%; background-color: var(--primary-color); color: var(--white-color); padding: 1.5rem; z-index: 2000; display: flex; justify-content: center; align-items: center; box-shadow: 0 -5px 20px rgba(0,0,0,0.1); transform: translateY(100%); transition: transform 0.5s ease-in-out; }
.cookie-consent-banner.active { transform: translateY(0); }
.cookie-consent-banner p { margin: 0; margin-right: 1.5rem; }
.cookie-consent-banner a { color: var(--accent-color); text-decoration: underline; }

/* === ÚJ TÉRKÉP SZEKCIÓ === */
section.map-section {
    padding: 0; /* Levesszük a felső és alsó paddingot, hogy a térkép kitöltse a rendelkezésre álló helyet. */
}
.map-container {
    text-align: center;
}
.map-container h2 {
    padding-top: 5rem; /* Hogy a címsor ne tapadjon a felette lévő szekcióhoz. */
}
.map-container iframe {
    width: 100%;
    display: block; /* Eltünteti az iframe alatti apró rést. */
    margin-top: -1rem; /* Kicsit feljebb húzza a térképet a címsorhoz képest. */
}

/* Reszponzivitás */
@media (max-width: 992px) {
    body .navbar .nav-toggle { display: block; }
    body .navbar .nav-menu { position: fixed; top: var(--nav-height); right: 0; width: 100%; height: calc(100vh - var(--nav-height)); background: var(--primary-color); flex-direction: column; justify-content: center; align-items: center; transform: translateX(100%); transition: transform 0.3s ease-in-out; }
    body .navbar .nav-menu.active { transform: translateX(0); }
    body .navbar .nav-menu li { margin: 1.5rem 0; }
    body .navbar .nav-menu li a { color: var(--white-color); font-size: 1.5rem; }
    body .navbar .nav-menu li a:hover::after { display: none; }
}

@media (max-width: 767px) {
    section { padding: 3rem 0; }
    .container { padding: 0 1rem; }
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    .hero-content p { font-size: 1rem; }
    .contact-grid { grid-template-columns: 1fr; }
    .testimonial-content { padding: 1.5rem; }
    .footer nav ul { flex-direction: column; }
    .cookie-consent-banner { flex-direction: column; text-align: center; }
    .cookie-consent-banner p { margin: 0 0 1rem 0; }
    .map-container h2 { padding-top: 3rem; }
}