/* --- ALAPBEÁLLÍTÁSOK & SZÍNEK --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f7f5f4; 
    color: #2b2b2b;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

:root {
    --bordo: #701319;
    --bordo-vilagos: #8a1c23;
}

/* --- FIX FEJLÉC STÍLUSA --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(112, 19, 25, 0.08);
    z-index: 1000;
}

.header-container {
    display: flex;
    flex-direction: column; 
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
}

.logo-img {
    height: 100px; 
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.logo-link:hover .logo-img {
    transform: scale(1.02);
}

.main-nav {
    margin-top: 15px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 10px;
}

.main-nav a {
    text-decoration: none;
    color: var(--bordo);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.main-nav a:hover {
    background-color: var(--bordo);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(112, 19, 25, 0.2);
    transform: translateY(-1px);
}

/* --- TARTALMI RÉSZ ÉS SZEKCIÓK --- */
.content-wrapper {
    padding-top: 190px; 
    padding-bottom: 80px;
    flex: 1;
}

.web-section {
    scroll-margin-top: 210px; 
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.section-container {
    max-width: 1200px; 
    margin: 0 auto;
    padding: 60px 20px; 
}

h1, h2, h3 {
    color: var(--bordo);
    margin-bottom: 20px;
}

h1 { font-size: 1.8rem; line-height: 1.3; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 15px; }

p {
    line-height: 1.6;
    font-size: 1.05rem;
    margin-bottom: 15px;
}

.section-desc {
    margin-bottom: 40px;
    color: #666;
}

/* --- HERO SZEKCIÓ --- */
.hero-section {
    background-color: #ffffff;
    border-bottom: 1px solid rgba(112, 19, 25, 0.1);
}

.hero-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

.hero-text {
    flex: 1;
}

.hero-highlight {
    font-size: 1.15rem;
    font-weight: 500;
    color: #444;
    border-left: 4px solid var(--bordo);
    padding-left: 15px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.hero-badge {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    background-color: #fafafa;
    border: 1px solid #eee;
    border-radius: 8px;
    max-width: 280px;
}

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

/* --- RÓLUNK SZÖVEG STRUKTÚRA --- */
.info-group {
    text-align: left;
}

.info-group p {
    margin-bottom: 12px;
}

.margin-top-large {
    margin-top: 50px; 
}

/* --- KÉPGALÉRIA GRID --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px; 
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    background-color: #fff;
    aspect-ratio: 4 / 3; 
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

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

.gallery-item:hover img {
    transform: scale(1.06); 
}

/* --- KAPCSOLAT SZEKCIÓ ÉS ŰRLAP --- */
.contact-section {
    background-color: #ffffff;
}

.contact-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contact-info a {
    color: var(--bordo);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.contact-info a:hover {
    color: var(--bordo-vilagos);
}

.contact-item {
    margin-bottom: 15px;
}

.contact-notice {
    margin-top: 25px;
    font-style: italic;
    color: #555;
}

/* Űrlap mezők formázása */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-weight: 600;
    font-size: 0.95rem;
    color: #444;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--bordo);
    box-shadow: 0 0 0 3px rgba(112, 19, 25, 0.1);
}

/* Küldés gomb */
.submit-btn {
    background-color: var(--bordo);
    color: #ffffff;
    border: none;
    padding: 14px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    box-shadow: 0 4px 12px rgba(112, 19, 25, 0.15);
}

.submit-btn:hover {
    background-color: var(--bordo-vilagos);
}

.submit-btn:active {
    transform: scale(0.98);
}

/* --- LIGHTBOX NAGYÍTÓ --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.25s ease;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* --- FIX LÁBLÉC --- */
.main-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    border-top: 2px solid var(--bordo);
    color: #555555;
    z-index: 1000;
    text-align: center;
}

.footer-container {
    padding: 15px 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* --- RESPONZÍV MEGJELENÉS --- */
@media (min-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr); 
    }
}

@media (min-width: 768px) {
    .header-container {
        flex-direction: row; 
        justify-content: space-between;
        padding: 20px;
    }

    .logo-img { height: 150px; }
    .main-nav { margin-top: 0; }
    .main-nav ul { gap: 15px; }
    .main-nav a { font-size: 1.05rem; padding: 10px 20px; }
    .content-wrapper { padding-top: 190px; }
    .web-section { scroll-margin-top: 190px; }
    .section-container { padding: 80px 20px; }

    .hero-container {
        flex-direction: row;
        justify-content: space-between;
        gap: 50px;
    }

    .hero-badge { max-width: 320px; }
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Nagy képernyőn a kapcsolat egymás mellé kerül */
    .contact-grid {
        flex-direction: row;
        gap: 60px;
    }

    .contact-info, 
    .contact-form-container {
        flex: 1;
    }
}