/* =========================================================================
   Gyenis András - Pontos Vizuális Rekonstrukció
   ========================================================================= */

@font-face {
    font-family: 'Posterama';
    src: url('assets/Posterama-Regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Posterama';
    src: url('assets/Posterama-Semi-Bold.ttf') format('truetype');
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'Posterama';
    src: url('assets/Posterama-Bold.ttf') format('truetype');
    font-weight: 700;
    font-display: swap;
}

:root {
    --bg-white: #ffffff;
    --text-dark: #3a4b56;
    --text-light: #d2e3eb;
    --accent-yellow: #f1c40f;
    --accent-yellow-hover: #d4ac0d;
    --brand-dark: #1b2a33; /* Hero doboz és Idézetek háttere */
    --brand-dark-lighter: #283d4a; /* Gombokhoz, hoverhez */
    --brand-light: #C1DFED; /* Frissített vélemények háttere */
    --header-bg: #f5f8fa; /* Görgetett fejléc háttér */
    --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Posterama', sans-serif;
    background-color: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ================= HEADER ================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.header.scrolled {
    background: var(--header-bg);
    border-bottom: 1px solid #e1e8ed;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo img {
    height: 35px;
    width: auto;
    display: block;
}

.btn.contact-btn {
    display: inline-block;
    padding: 10px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--brand-dark);
    background-color: var(--accent-yellow);
    text-decoration: none;
    border-radius: 2px;
    text-transform: none;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.btn.contact-btn:hover {
    background-color: var(--accent-yellow-hover);
}

/* ================= HERO ================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2); /* Nagyon enyhe sötétítés csak */
    z-index: -1;
}

.hero-text-box {
    background: rgba(27, 42, 51, 0.9);
    padding: 30px 60px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 2px;
    text-align: center;
    max-width: 90%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.hero-text-box h2 {
    color: #9ab4c2;
    font-size: 2.8rem;
    font-weight: 400;
    letter-spacing: 2px;
    margin: 0;
}

/* ================= IDÉZETEK (GALLERY CAROUSEL) ================= */
.gallery {
    padding: 0; /* Full szélesség és nincs margó a videó után */
    background-color: var(--bg-white);
}

.gallery .section-title {
    display: none; /* A képeken nincs cím ezen a részen */
}

.gallery-carousel-container {
    position: relative;
    width: 100%;
    max-width: 600px; /* Az idézet képek négyzetesek, középen */
    margin: 40px auto;
    overflow: hidden;
    /* A slider maga nem sötét hátterű, a beletett KÉPEK sötétkékek az eredetin! */
}

.gallery-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.gallery-item {
    min-width: 100%;
    display: flex;
    justify-content: center;
}

.gallery-item img {
    width: 100%;
    max-width: 500px;
    height: auto;
    display: block;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Controls (Nyilak) */
.g-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 3rem;
    color: rgba(27, 42, 51, 0.4); /* Sötét színű nyíl fekete/szürke */
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}
.g-btn:hover {
    color: rgba(27, 42, 51, 1);
}
.g-prev {
    left: 10px;
}
.g-next {
    right: 10px;
}

/* Dots and Prev/Next for Idézetek */
.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.g-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: var(--transition);
}

.g-dot.active {
    background: var(--brand-dark);
}

/* ================= ABOUT ================= */
.about {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.about-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 50px;
    margin-bottom: 60px;
}

.about-text {
    flex: 1;
    min-width: 300px;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.about-text p {
    margin-bottom: 20px;
    text-align: justify;
}

.about-text .lead-text {
    color: var(--brand-dark);
    font-size: 1.05rem;
    font-weight: 600; /* Szolidabb vastagítás az olvashatóságért */
}

.about-image {
    flex: 0 0 400px;
}

.about-grid.reverse {
    flex-direction: row-reverse;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ================= VIDEOS ================= */
.videos {
    padding: 80px 0;
    background-color: #f5f8fa; /* Világos szürke háttér */
}

.video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.video-item {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: #000;
}

.video-item iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ================= RÓLUNK MONDTÁK (TESTIMONIALS MASONRY) ================= */
.testimonials {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.testimonial-masonry {
    column-count: 2;
    column-gap: 30px;
}

.testimonial-card {
    position: relative;
    background-color: var(--brand-light); /* Világos kék */
    padding: 40px 30px 30px;
    margin-bottom: 30px;
    break-inside: avoid;
    border-radius: 2px;
}

/* Idézőjel a kártya tetején középen */
.quote-icon {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background-color: var(--bg-white);
    border: 2px solid var(--brand-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-family: serif;
    color: var(--brand-dark);
    line-height: 1;
    padding-top: 8px; /* Optikai középre igazítás */
}

.testimonial-avatar {
    float: left;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px;
    margin-bottom: 10px;
    background-color: #ccc; /* fallback placeholder */
}

.testimonial-avatar-placeholder {
    float: left;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 20px;
    margin-bottom: 10px;
    background-color: #b0c4de;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-avatar-placeholder::after {
    content: '';
    width: 30px;
    height: 30px;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0iI2ZmZiI+PHBhdGggZD0iTTEyIDEyYzIuMjEgMCA0LTEuNzkgNC00czEuNzktNCA0LTQgNC0xLjc5LTQtNHMyLjIxIDQtNCA0eiIvPjxwYXRoIGQ9Ik0xMiAxNGMtMi42NyAwLTggMS4zNC04IDR2MmgxNnYtMmMwLTIuNjYtNS4zMy00LTgtNHoiLz48L3N2Zz4=') no-repeat center center;
    background-size: contain;
}

.testimonial-content {
    font-size: 0.9rem;
    color: var(--text-dark);
    line-height: 1.6;
}

.testimonial-content p {
    margin-bottom: 15px;
}

.testimonial-info {
    margin-top: 20px;
    clear: both; /* Biztosítjuk, hogy az összegzés az avatar és szöveg alá kerüljön */
}

.testimonial-info h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 2px;
}

.testimonial-info p {
    font-size: 0.8rem;
    color: var(--text-dark);
    opacity: 0.8;
}

/* ================= FOOTER ================= */
.footer {
    background-color: #1E4252; /* Sötétkék lábléc */
    padding: 40px 0;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.copyright {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6); /* Világos kód, hogy jól látszódjon a sötétkék hátteren */
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.social-links a {
    color: #cbd5db;
    transition: var(--transition);
    display: inline-flex;
}

.social-links a:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

.social-links a svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
    .testimonial-masonry {
        column-count: 1;
    }
    .about-image {
        flex: 0 0 100%;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .hero-text-box h2 {
        font-size: 1.8rem;
    }
    .video-grid {
        grid-template-columns: 1fr;
    }
    .container {
        padding: 0 20px;
    }
    .header-container {
        height: 70px;
    }
}
