/* --- 1. ALAPOK ÉS VÁLTOZÓK --- */
:root {
    --bg-cream: #FBF9F6;
    --bg-beige: #E5D7C8;
    --text-dark: #5A534A;
    --accent-rose: #C49A81;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-cream);
    color: var(--text-dark);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}



/* --- 2. NAVIGÁCIÓ ÉS MOBIL MENÜ --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(251, 249, 246, 0.9);
    z-index: 1000;
    border-bottom: 1px solid var(--bg-beige);
    border-radius: 0 0 16px 16px;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--text-dark);
    text-decoration: none;
    z-index: 1002;
}

.logo span { font-style: italic; color: var(--accent-rose); }

/* Asztali menü lista */
.nav-list {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
}

.mobile-logo { display: none; }

.nav-left { display: flex; justify-content: flex-end; gap: 60px; padding-right: 60px; list-style: none; }
.nav-right { display: flex; justify-content: flex-start; gap: 60px; padding-left: 60px; list-style: none; }

.nav-left li a,
.nav-right li a {
    font-family: 'Playfair Display', serif;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

.nav-left li a:hover, .nav-left li a.active,
.nav-right li a:hover, .nav-right li a.active { color: var(--accent-rose); }

/* Mobil Menu Toggle Gomb */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1002;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    transition: 0.3s;
    border-radius: 2px;
}

/* --- 3. HERO SZEKCIÓ (SLIDER) --- */
.hero-slider {
    position: relative;
    /* ÚJ: Méretezés és pozicionálás a "lebegő vászon" hatáshoz */
    width: 95%;
    max-width: 1400px;
    height: 80vh; /* Kisebb magasság, hogy a kártya ne töltse ki a teljes képernyőt */
    margin: 120px auto 60px; /* Felül 120px a navi miatt, alul 60px térköz, oldalt auto a középre igazításhoz */

    /* ÚJ: Lekerekítés és árnyék a prémium megjelenésért */
    overflow: hidden; /* Fontos, hogy a képek ne lógjanak ki a lekerekített sarkokból */
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(90, 83, 74, 0.15);

    background-color: var(--text-dark); /* Fallback, ha a képek nem töltődnek be */
}

.hero-slider::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(40, 40, 40, 0.25); /* Finom sötétítő réteg */
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 0;
    /* ÚJ: Triptichon rács */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px; /* Finom térköz a képek között */
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block; /* Biztosítjuk, hogy ne legyen alatta extra hely */
}

.slide.active {
    opacity: 1;
}

.slider-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    color: var(--bg-cream);
    text-align: center;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5); /* Jobb olvashatóság */
}

.slider-text h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 4.5vw, 4.5rem);
    font-weight: 400;
    line-height: 1.1;
    margin: 0;
}

.slider-text h2 {
    font-family: var(--font-sans);
    font-size: clamp(0.9rem, 1.5vw, 1.2rem);
    color: var(--bg-cream);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 300;
    margin-top: 10px;
}

/* ÚJ: Slider lapozó nyilak */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: transparent;
    border: none;
    color: var(--bg-cream);
    font-size: 3rem;
    font-weight: 100;
    cursor: pointer;
    padding: 10px 20px;
    transition: color 0.3s ease, background-color 0.3s ease;
    text-shadow: 0 1px 5px rgba(0,0,0,0.4);
}

.slider-arrow.prev {
    left: 20px;
}

.slider-arrow.next {
    right: 20px;
}

.slider-arrow:hover {
    color: var(--accent-rose);
    background-color: rgba(251, 249, 246, 0.1);
}
/* --- 4. SZEKCIÓK ÉS DINAMIKUS GALÉRIA --- */
.section { padding: 100px 5%; }

.section-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    margin-bottom: 50px;
    font-style: italic;
    color: var(--text-dark);
    text-align: center;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.photo-item {
    background: var(--bg-beige);
    border: 1px solid var(--bg-beige);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    aspect-ratio: 4/5;
    box-shadow: 0 10px 30px rgba(90, 83, 74, 0.08);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.photo-item:hover {
    border-color: var(--accent-rose);
    transform: translateY(-5px);
}

.photo-item:hover img { transform: scale(1.05); }

/* Űrlap visszajelző státusz üzenet */
.form-status-message {
    margin-top: 15px;
    font-size: 0.95rem;
    font-style: italic;
    transition: 0.3s ease;
    text-align: center;
}

.form-status-message.success {
    color: #4caf50; /* Kellemes zöld a sikerhez */
}

.form-status-message.error {
    color: #f44336; /* Figyelmeztető piros a hibához */
}

/* Letiltott gomb stílusa küldés közben */
.submit-btn:disabled {
    background: #555;
    color: #aaa;
    cursor: not-allowed;
}

/* --- 5. SZOLGÁLTATÁSOK --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--bg-beige);
    padding: 40px 20px;
    border: 1px solid var(--bg-beige);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
    box-shadow: 0 10px 30px rgba(90, 83, 74, 0.08);
}

.service-card h3 { 
    color: var(--accent-rose); 
    font-family: var(--font-serif);
    font-size:200%; 
    margin-bottom: 15px; 
    text-align: center;
}

.service-card p { 
    color: var(--text-dark); 
    font-size: 0.9rem; 
    text-align: center;
    line-height: 1.6;
    padding: 15px 20px 25px 20px;
}

/* --- 6. RÓLAM (ABOUT) --- */
.about-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.about-content h3 { font-family: var(--font-serif); color: var(--accent-rose); margin-bottom: 20px; }
.about-content p { color: var(--text-dark); margin-bottom: 15px; }


/* --- 7. Ajánlat kérés (Content) --- */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input, .contact-form textarea {
    background: var(--bg-beige);
    border: 1px solid var(--bg-beige);
    padding: 15px;
    color: var(--text-dark);
    font-family: var(--font-sans);
    border-radius: 5px;
}

.submit-btn {
    background: var(--accent-rose);
    color: var(--bg-cream);
    border: none;
    border-radius: 5px;
    padding: 18px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: 0.3s;
}

.submit-btn:hover {
    background: #a8816b;
}



/* --- 8. MOBIL NÉZET (RESPONSIVE) --- */
@media (max-width: 768px) {
    .menu-toggle { display: flex; }

    .mobile-logo { display: block; }
    .desktop-logo { display: none; }

    .nav-list {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(251, 249, 246, 0.95);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s ease;
    }

    .nav-list.active { right: 0; }
    
    .nav-left, .nav-right {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding-left: 0; /* Mobilon nullázzuk a paddingot */
        padding-right: 0;
    }
    .nav-left li, .nav-right li { margin: 10px 0; }

    .about-container { grid-template-columns: 1fr; text-align: center; }

    /* Hamburger X animáció */
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    .slider-arrow {
        font-size: 2rem;
        padding: 5px 10px;
    }
    .slider-arrow.prev {
        left: 10px;
    }
    .slider-arrow.next {
        right: 10px;
    }
}

/* --- 9. LIGHTBOX (MODAL GALÉRIA) --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(251, 249, 246, 0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    animation: zoom 0.3s ease;
}

@keyframes zoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: var(--text-dark);
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

/* --- 10. KATEGÓRIA KÁRTYÁK (GALÉRIA FŐOLDAL) --- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.category-card {
    display: block;
    text-decoration: none;
    background: var(--bg-beige);
    border: 1px solid var(--bg-beige);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.4s ease, border-color 0.4s ease;
    height: 450px;
    position: relative;
}

.category-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background: linear-gradient(to top, rgba(251, 249, 246, 0.9) 0%, rgba(251, 249, 246, 0) 100%);
    background-position: center;
    transition: transform 0.6s ease;
}

.category-card:hover {
    border-color: var(--accent-rose);
    transform: translateY(-10px);
}

.category-card:hover .category-image {
    transform: scale(1.05);
}

.category-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 20px;
    background: transparent;
    text-align: center;
    color: var(--text-dark);
}

.category-info h3 {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--accent-rose);
    margin-bottom: 5px;
    font-style: italic;
}

.category-info p {
    font-size: 0.95rem;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--accent-rose);
    text-decoration: none;
    cursor: pointer;
}

/* --- ALGALÉRIA ÉS LIGHTBOX STÍLUSOK --- */
.subgallery-main {
    padding-top: 140px;
    padding-left: 2%; /* Felülírjuk az eredeti nagy margót, hogy szélesebb lehessen a tartalom */
    padding-right: 2%;
}

.back-nav {
    max-width: 100%; /* Alkalmazkodik a megnövelt szélességhez */
    margin: 20px auto 40px auto;
    text-align: center;
}

.back-nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: 0.3s;
}

.back-nav a:hover {
    color: var(--accent-rose);
}

.stories-grid {
    max-width: 100%; /* Eltávolítjuk a 1200px-es korlátot, hogy a képek szétterülhessenek */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.story-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--bg-beige);
    padding-bottom: 10px;
}

.story-title span {
    font-size: 1rem;
    font-family: var(--font-sans);
    color: var(--text-dark);
    margin-left: 15px;
}

/* Képek elrendezése a projekten belül */
.subphoto-grid {
    column-count: 3;
    column-gap: 20px;
}

.subphoto-item {
    background: var(--bg-beige);
    border-radius: 8px;
    border: 1px solid var(--bg-beige);
    overflow: hidden;
    cursor: pointer;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, border-color 0.4s ease;
    break-inside: avoid;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    box-shadow: 0 10px 30px rgba(90, 83, 74, 0.08);
}

.subphoto-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.subphoto-item img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
    transition: transform 0.5s ease;
}

.subphoto-item:hover {
    border-color: var(--accent-rose);
    transform: translateY(-3px);
}

.subphoto-item:hover img {
    transform: scale(1.05);
}

/* --- LIGHTBOX (NAGYÍTOTT KÉP ABLAK) --- */
.lightbox-modal {
    display: flex;
    position: fixed;
    z-index: 2000;
    inset: 0;
    background-color: rgba(251, 249, 246, 0.95);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.lightbox-active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    transform: scale(0.95);
    transition: transform 0.4s ease;
}

.lightbox-active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: var(--text-dark);
    font-size: 2.5rem;
    font-weight: 300;
    cursor: pointer;
    transition: 0.3s;
}

.lightbox-close:hover {
    color: var(--accent-rose);
}

.lightbox-caption {
    margin-top: 20px;
    color: var(--text-dark);
    font-size: 0.9rem;
    letter-spacing: 1px;
    font-family: var(--font-sans);
}

/* --- LIGHTBOX LAPOZÓ NYILAK --- */
.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: var(--text-dark);
    background: transparent;
    border: none;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 15px 20px;
    border-radius: 50%;
    user-select: none;
    z-index: 2010;
}

.lightbox-prev { left: 30px; }
.lightbox-next { right: 30px; }

.lightbox-prev:hover, .lightbox-next:hover {
    color: var(--accent-rose);
    background: rgba(229, 215, 200, 0.6);
}

/* Mobil finomítás a nyilakhoz */
@media (max-width: 767px) {
    .lightbox-prev, .lightbox-next {
        font-size: 2rem;
        padding: 10px;
    }
}

/* --- MASONRY GRID MOBIL NÉZET --- */
@media (max-width: 992px) {
    .photo-grid, .subphoto-grid { column-count: 2; }
    .services-grid, .category-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
    .photo-grid, .subphoto-grid { column-count: 1; }
    .services-grid, .category-grid { grid-template-columns: 1fr; }
}

/* --- 11. HIGHLIGHTS (KIEMELT PILLANATOK) MONTÁZS --- */
.highlights-grid {
    column-count: 5;
    column-gap: 12px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.highlight-item {
    break-inside: avoid;
    margin-bottom: 12px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(90, 83, 74, 0.08);
}

.highlight-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.highlight-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    transition: transform 0.4s ease;
}

.highlight-item:hover img {
    transform: scale(1.05);
}

@media (max-width: 992px) { .highlights-grid { column-count: 3; } }
@media (max-width: 576px) { .highlights-grid { column-count: 2; column-gap: 8px; } .highlight-item { margin-bottom: 8px; } }

/* --- KIS MOBIL KÉPERNYŐK (375px ALATT) --- */
@media (max-width: 375px) {
    .logo {
        font-size: 1.5rem; /* Az eredeti 2rem-ről kisebbre véve */
    }
}