:root {
    --bg-main: #121212;
    --bg-card: #1e1e1e;
    --accent: #6a994e; /* Az új zöld színed */
    --accent-hover: #557d3e; /* Ennek a sötétebb változata a gombokhoz */
    --text-light: #ffffff;
    --text-dim: #a0a5b1;
}

body {
    background-color: var(--bg-main);
    color: var(--text-dim);
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    line-height: 1.6;
    transition: background-color 0.25s ease, color 0.25s ease;
}

h1, h2, h3 { color: var(--text-light); font-weight: 600; }

/* Fejléc */
.glass-header {
    background: linear-gradient(to bottom, #0a0a0a, #121212);
    border-bottom: 1px solid #333;
    padding-bottom: 40px;
}

.top-bar {
    display: flex; justify-content: flex-start; align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    padding: 20px 5%;
}

.nav-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
}

.lang-container {
    display: flex;
    gap: 12px;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    margin-left: 0;
}

.top-bar {
    justify-content: center;
}

.top-bar .lang-container {
    flex: 0 0 auto;
}

.nav-btn {
    min-width: 0;
    flex: 0 1 auto;
    white-space: nowrap;
    max-width: 260px;
}

.sticky-bar .nav-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.sticky-bar .nav-btn,
.sticky-bar .lang-btn {
    font-size: 11px;
    padding: 6px 10px;
    border-radius: 24px;
    min-width: 0;
}

.sticky-bar .sticky-title {
    font-size: 13px;
}

/* Gombok stílusa */
.nav-btn, .lang-btn, .quote-btn, .faq-item .faq-question, .whatsapp-float, .email-float, .lightbox-nav, .close-lightbox {
    position: relative;
    overflow: hidden;
    -webkit-appearance: none;
    appearance: none;
    touch-action: manipulation;
}

.nav-btn, .lang-btn {
    background: transparent;
    border: 1px solid #444;
    color: var(--text-light);
    padding: 10px 22px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 0;
}

.nav-btn:hover, .nav-btn.active-nav {
    background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700;
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 8px 18px rgba(106, 153, 78, 0.3);
}

.nav-btn:active, .lang-btn:active, .lightbox-nav:active, .close-lightbox:active, .quote-btn:active {
    transform: translateY(1px) scale(0.98);
    opacity: 0.95;
}

.lang-btn { opacity: 0.6; padding: 8px 15px; border-radius: 8px; }
.lang-btn:hover {
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 8px 18px rgba(106, 153, 78, 0.22);
}
.lang-btn.active { opacity: 1; border-color: var(--accent); color: var(--accent); }

/* Főcím */
.main-title { text-align: center; margin-top: 30px; }
.main-title h1 { font-size: 36px; letter-spacing: 2px; margin-bottom: 10px; text-transform: uppercase; }
.separator { width: 60px; height: 3px; background: var(--accent); margin: 0 auto 15px auto; }
.main-title p { font-size: 16px; color: var(--text-dim); font-weight: 300; }

/* Tartalom */
.container { max-width: 1100px; margin: -20px auto 100px auto; position: relative; z-index: 10; padding: 0 20px; }
.page { display: none; }
.page.active { display: block; animation: fadeUp 0.5s ease-out; }

.content-box {
    background: var(--bg-card);
    padding: 50px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid #2a2a2a;
}

.lead-text { font-size: 17px; margin-bottom: 30px; }

/* Miért minket blokk */
.features-block {
    background: #171717; border-radius: 12px; padding: 30px;
    border-left: 4px solid var(--accent); margin: 40px 0;
}
.features-block h3 { margin-top: 0; color: var(--accent); }
.features-block ul { list-style: none; padding: 0; margin: 0; }
.features-block li { margin-bottom: 15px; display: flex; align-items: center; gap: 15px; font-size: 16px; color: var(--text-light); }
.features-block li .feature-text { transition: transform 0.25s ease, color 0.25s ease; display: inline-flex; align-items: center; gap: 0.3ch; transform-origin: left center; }
.features-block li:hover .feature-text { transform: translateX(2px); color: var(--accent); }
.features-block li:hover .icon { color: var(--accent); }
.icon { font-size: 20px; transition: color 0.25s ease; }

/* Árajánlat gomb - frissített zöld árnyalattal */
.action-section { text-align: center; margin: 40px 0; }
.quote-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #fff;
    padding: 16px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    box-shadow: 0 10px 28px rgba(106, 153, 78, 0.25);
    cursor: pointer;
}
.quote-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(106, 153, 78, 0.4);
}
.quote-btn:active { transform: translateY(-1px) scale(0.97); }

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    pointer-events: none;
    transform: scale(0);
    opacity: 0.85;
    animation: ripple-expand 0.55s ease-out forwards;
}

@keyframes ripple-expand {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.lightbox-caption {
    display: none;
}

.lightbox {
    background-color: rgba(0,0,0,0.98);
    overflow: hidden;
    touch-action: none;
}

.lightbox img {
    width: auto;
    height: auto;
    max-width: 98%;
    max-height: 98%;
    margin: 0 auto;
}

/* Galéria */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; margin-top: 30px; }
.gallery-grid img {
    width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px;
    cursor: pointer; transition: transform 0.35s ease, filter 0.35s ease, border-color 0.35s ease;
    filter: grayscale(30%); border: 2px solid transparent;
}
.gallery-grid img:hover { transform: scale(1.05); filter: grayscale(0%); border-color: var(--accent); z-index: 2; position: relative; }

/* Gallery filters */
.gallery-filters { display: flex; gap: 10px; flex-wrap: nowrap; margin-bottom: 16px; justify-content: center; align-items: center; }
.gallery-filter-btn { background: transparent; border: 1px solid #444; color: var(--text-light); padding: 10px 22px; border-radius: 30px; cursor: pointer; font-family: 'Montserrat', sans-serif; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; min-width: 160px; text-align: center; transition: all 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease; }
.gallery-filter-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; transform: translateY(-1px) scale(1.03); box-shadow: 0 8px 18px rgba(106,153,78,0.3); }
.gallery-filter-btn:hover { transform: translateY(-1px) scale(1.03); box-shadow: 0 8px 18px rgba(106,153,78,0.22); }

.gallery-grid img.hidden { display: none !important; }

/* Kapcsolat blokk */
.contact-info {
    background: #171717;
    padding: 25px;
    border-radius: 12px;
    margin-top: 30px;
    border: 1px solid #2a2a2a;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.contact-info:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0,0,0,0.3); }
.contact-info p { color: var(--text-light); font-size: 16px; margin: 10px 0; }

.close-lightbox:hover { transform: scale(1.05); box-shadow: 0 10px 20px rgba(106,153,78,0.25); }
.lightbox-nav:hover { background: rgba(0,0,0,0.8); transform: translateY(-50%) scale(1.03); box-shadow: 0 10px 24px rgba(0,0,0,0.35); }
.lightbox { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.95); justify-content: center; align-items: center; flex-direction: column; padding: 0; overflow: hidden; }
.lightbox img { display: block; width: auto; height: auto; max-width: calc(100% - 80px); max-height: calc(100% - 80px); border-radius: 4px; box-shadow: 0 0 30px rgba(0,0,0,0.8); border: 2px solid #333; margin: auto; }
.close-lightbox { position: absolute; top: 20px; right: 40px; color: var(--accent); font-size: 50px; cursor: pointer; transition: 0.3s ease; }
/* Lightbox navigation buttons */
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 60px; height: 60px; border-radius: 50%; background: rgba(0,0,0,0.6); color: #fff; border: 1px solid rgba(255,255,255,0.08); font-size: 34px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease; }
.lightbox-nav:hover { background: rgba(0,0,0,0.8); }
.lightbox-nav.prev { left: 30px; }
.lightbox-nav.next { right: 30px; }
.lightbox-nav:active { transform: translateY(-50%) scale(0.98); }
/* Disabled state for nav buttons */
.lightbox-nav.disabled { opacity: 0.35; pointer-events: none; }

/* Sticky top bar that appears on scroll */
.sticky-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(18,18,18,0.98);
    border-bottom: 1px solid #222;
    z-index: 1600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    overflow: hidden;
    transform: translateY(-110%);
    opacity: 0;
    max-height: 0;
    padding: 0 12px;
    visibility: hidden;
    transition: transform 0.45s cubic-bezier(.22,.9,.35,1), opacity 0.45s ease, max-height 0.45s ease, padding 0.45s ease;
    pointer-events: none;
}
.sticky-bar.visible {
    transform: translateY(0);
    opacity: 1;
    max-height: 120px;
    padding: 10px 12px;
    visibility: visible;
    pointer-events: auto;
}
.container {
    transition: padding-top 0.45s cubic-bezier(.22,.9,.35,1);
}

/* Spacer element reserves vertical space when sticky appears to avoid layout jumps */
#sticky-spacer {
    height: 0;
    transition: height 0.45s cubic-bezier(.22,.9,.35,1);
}
body.sticky-active #sticky-spacer {
    height: var(--sticky-height);
}
.sticky-inner {
    width: 1100px;
    max-width: 95%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.sticky-title { color: var(--text-light); font-weight: 700; font-size: 16px; letter-spacing: 1px; cursor: pointer; }
.sticky-inner .nav-container { display: flex; gap: 8px; }

@media (max-width: 768px) {
    .sticky-bar {
        height: auto;
        padding: 0 8px;
        min-height: 54px;
    }
    .sticky-bar.visible {
        padding: 8px;
        max-height: 110px; /* allow taller mobile sticky to show full nav */
    }
    /* On small screens move the original header out of view (use transform to avoid reflow) */
    .glass-header.shift-up { transform: translateY(-100%); opacity: 0; pointer-events: none; }

    /* Ensure spacer grows on mobile when sticky active */
    body.sticky-active #sticky-spacer { height: 110px; }
    .sticky-title { font-size: 12px; }
    .sticky-inner {
        width: 100%;
        max-width: 100%;
        padding: 0;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    .top-bar { justify-content: center; gap: 12px; }
    .nav-container { width: 100%; max-width: 620px; }
    .nav-container { flex-direction: row; justify-content: center; align-items: stretch; }
    .nav-container .nav-btn { flex: 0 1 calc(50% - 8px); }
    .sticky-bar .nav-container { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 6px; }
    .lang-container { margin-top: 8px; width: 100%; justify-content: center; margin-left: 0; }
    .nav-btn, .lang-btn { padding: 7px 10px; font-size: 11px; }
    .quote-btn { padding: 14px 24px; font-size: 14px; }
    .gallery-grid { grid-template-columns: 1fr; }
}

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; will-change: opacity, transform; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Ensure page-specific blocks are hidden when their page is not active
   This prevents content (FAQ, gallery, timeline, etc.) from showing
   on other pages when markup was duplicated or mis-nested. */
.page:not(.active) .gallery-grid,
.page:not(.active) .faq-section,
.page:not(.active) .timeline,
.page:not(.active) .work-process {
    display: none !important;
}

/* Timeline styles */
.timeline { position: relative; padding-left: 100px; }
.timeline::before { content: ""; position: absolute; left: 48px; top: 0; bottom: 0; width: 2px; background: repeating-linear-gradient(transparent, transparent 6px, rgba(255,255,255,0.12) 6px, rgba(255,255,255,0.12) 8px); }
.timeline-step { position: relative; margin-bottom: 28px; transition: transform 0.25s ease; }
.timeline-number { position: absolute; left: 18px; top: 50%; transform: translateY(calc(-50% + 4px)); width: 60px; height: 60px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 20px; box-shadow: 0 6px 18px rgba(0,0,0,0.5); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.timeline-content { background: var(--bg-card); padding: 18px; border-radius: 12px; border: 1px solid #2a2a2a; box-shadow: 0 6px 20px rgba(0,0,0,0.45); margin-left: 96px; transition: transform 0.25s ease; }
.timeline-content h3 { margin: 0 0 8px 0; color: var(--text-light); transition: transform 0.25s ease; }
.timeline-content p { margin: 0; color: var(--text-dim); transition: transform 0.25s ease; }
.timeline-step:hover .timeline-number { transform: translateY(calc(-50% - 2px)) scale(1.08); box-shadow: 0 8px 22px rgba(0,0,0,0.55); }
.timeline-step:hover .timeline-content { transform: scale(1.02); }
.timeline-step:hover .timeline-content h3,
.timeline-step:hover .timeline-content p { transform: scale(1.02); }

/* FAQ accordion styles */
.faq-section { margin-top: 36px; }
.faq-section h3 { margin-bottom: 14px; color: var(--text-light); }
.faq-list { display: grid; gap: 12px; }
.faq-item { background: rgba(255,255,255,0.02); border: 1px solid #242424; border-radius: 10px; padding: 8px 12px; overflow: hidden; }
.faq-item .faq-question { width: 100%; text-align: left; background: transparent; border: none; cursor: pointer; padding: 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 700; color: var(--text-light); font-family: inherit; appearance: none; -webkit-appearance: none; transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease; }
.faq-item .faq-question:hover,
.faq-item .faq-question:focus { outline: none; box-shadow: none; background: transparent; transform: none; color: var(--text-light); }
.faq-item .faq-question:focus-visible { outline: none; background: transparent; color: var(--text-light); }
.faq-item .faq-question:active { transform: scale(0.98); }
.faq-item .faq-answer { max-height: 0; overflow: hidden; padding: 0 10px; color: var(--text-dim); line-height: 1.5; opacity: 0; display: none; transition: max-height 0.5s ease, opacity 0.4s ease, padding 0.5s ease; }
.faq-item.open .faq-answer { display: block; max-height: 500px; padding: 10px 10px 14px 10px; opacity: 1; }
.faq-item.open { box-shadow: 0 10px 30px rgba(0,0,0,0.45); }
.faq-item .faq-question::after { content: '\25BE'; transition: transform 0.2s ease; opacity: 0.85; }
.faq-item.open .faq-question::after { transform: rotate(180deg); }

@media (max-width: 768px) {
    .faq-list { gap: 10px; }
}

@media (max-width: 768px) {
    .timeline { padding-left: 70px; }
    .timeline::before { left: 34px; }
    .timeline-number { position: absolute; left: 6px; top: 50%; transform: translateY(calc(-50% + 3px)); width: 48px; height: 48px; font-size: 18px; display:flex; align-items:center; justify-content:center; }
    .timeline-content { margin-left: 64px; }
}

/* Work process */
.work-process { background: #151515; padding: 24px; border-radius: 12px; margin: 30px 0; border-left: 4px solid var(--accent); }
.work-process h3 { color: var(--accent); margin-top: 0; }
.process-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.process-steps li { background: rgba(255,255,255,0.03); padding: 12px 14px; border-radius: 8px; display: flex; gap: 10px; align-items: center; color: var(--text-light); }
.process-steps li strong { color: var(--accent); min-width: 28px; display: inline-block; }

/* Back to top button */
#back-to-top { position: fixed; left: 30px; bottom: 30px; z-index: 2000; width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: #fff; border: none; box-shadow: 0 6px 20px rgba(0,0,0,0.4); font-size: 20px; cursor: pointer; transform: translateY(28px) scale(0.95); opacity: 0; transition: opacity 0.28s cubic-bezier(.22,.9,.35,1), transform 0.28s cubic-bezier(.22,.9,.35,1); }
#back-to-top.visible { transform: translateY(0) scale(1); opacity: 1; }
#back-to-top:active { transform: translateY(0) scale(0.98); }

@media (max-width: 768px) {
    .process-steps { grid-template-columns: 1fr; }
    /* match floating-buttons responsive offset */
    #back-to-top { left: 20px; bottom: 20px; }
}

/* Header shift when sticky appears */
.glass-header { transition: transform 0.42s cubic-bezier(.22,.9,.35,1), opacity 0.42s ease; will-change: transform, opacity; }
.glass-header.shift-up { transform: translateY(var(--header-shift)); opacity: 0; pointer-events: none; }

@media (max-width: 768px) {
    .glass-header.shift-up { transform: translateY(-100%); opacity: 0; pointer-events: none; }
}

/* Lebegő gombok */
.floating-buttons { position: fixed; bottom: 30px; right: 30px; display: flex; flex-direction: column; gap: 15px; z-index: 1000; }
.whatsapp-float, .email-float {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    border-radius: 30px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: transform 0.3s ease, box-shadow 0.2s ease;
    box-shadow: 0 10px 22px rgba(0,0,0,0.4);
    transform: scale(1.03);
}
.whatsapp-float:hover, .email-float:hover { transform: translateX(-5px); }
.whatsapp-float:active, .email-float:active { transform: translateX(-3px) scale(0.97); }
.whatsapp-float { background: #25d366; color: #000; }
.email-float { background: #2c3e50; border: 1px solid #444; }

html[lang="hu"] .ro { display: none !important; }
html[lang="ro"] .hu { display: none !important; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Mobil nézet */
@media (max-width: 768px) {
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-filters { flex-wrap: wrap; gap: 8px; justify-content: center; }
    .gallery-filter-btn { min-width: 0; flex: 0 1 calc(50% - 10px); padding: 8px 10px; font-size: 13px; letter-spacing: 0.3px; white-space: normal; line-height: 1.1; text-transform: none; }
    .top-bar { flex-direction: column; gap: 20px; }
    .content-box { padding: 30px 20px; }
    .main-title h1 { font-size: 26px; }
    .floating-buttons { right: 20px; bottom: 20px; }
}

/* Enhanced timeline visuals to match design mockup */
.timeline {
    padding-left: 140px;
}
.timeline::before {
    left: 64px;
    width: 4px;
    background: repeating-linear-gradient(transparent, transparent 10px, rgba(255,255,255,0.06) 10px, rgba(255,255,255,0.06) 14px);
}
.timeline-number {
    position: absolute;
    left: 26px;
    top: 50%;
    transform: translateY(calc(-50% + 6px));
    width: 56px;
    height: 56px;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.timeline-content {
    margin-left: 112px;
    padding: 20px 22px;
    border-radius: 12px;
    transition: transform 0.32s cubic-bezier(.22,.9,.35,1), box-shadow 0.32s ease;
}
.timeline-step { position: relative; margin-bottom: 28px; }

/* Only animate the number and content on hover — not the whole step background */
.timeline-number { transition: transform 0.32s cubic-bezier(.22,.9,.35,1), box-shadow 0.32s ease; }
.timeline-content { transition: transform 0.32s cubic-bezier(.22,.9,.35,1), box-shadow 0.32s ease; }
.timeline-step:hover .timeline-number { transform: translateY(calc(-50% - 2px)) scale(1.02); box-shadow: 0 14px 32px rgba(0,0,0,0.45); }
.timeline-step:hover .timeline-content { transform: translateY(-6px) scale(1.01); box-shadow: 0 14px 32px rgba(0,0,0,0.45); }
.timeline-step:hover .timeline-content h3,
.timeline-step:hover .timeline-content p { transform: scale(1.02); }

@media (max-width: 900px) {
    .timeline { padding-left: 90px; }
    .timeline::before { left: 44px; }
    .timeline-number { position: absolute; left: 8px; top: 50%; transform: translateY(calc(-50% + 3px)); width: 48px; height: 48px; font-size: 16px; display:flex; align-items:center; justify-content:center; }
    .timeline-content { margin-left: 84px; padding: 16px; }
}