:root {
    --primary: #00264d;
    --secondary: #296b3d;
    --accent: #D4A017;
    --red: #c8102e;
    --light: #f9f9f5;
    --dark: #1e1e1e;
    --gray: #40484d;
}

#h2id {
    color: var(--secondary);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--dark);
    background: var(--light);
    line-height: 1.8;
    font-size: 18px;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

p,
li {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--dark);
}

.top-bar {
    background: var(--red);
    height: 8px;
}
.valami{
    color: var(--accent);
}
/* HEADER + NAVBAR */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(90deg, #296b3d);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

header.scrolled {
    background: rgba(30, 86, 49, 0.82);
    backdrop-filter: blur(8px);
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

/* LOGO */
.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    color: white;
    transition: all 0.3s;
}

.logo-img {
    width: 100px;
    height: 86px;
    object-fit: contain;
    flex-shrink: 0;
}

.logo:hover {
    transform: scale(1.02);
}

.logo span strong {
    color: var(--accent);
}

/* NAV LINKS */
.nav-links {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    font-size: 20px;
}

.nav-links > a,
.ertekeink-link {
    position: relative;
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    transition: all 0.3s;
}

.nav-links > a::after,
.ertekeink-link::after {
    content: "";
    position: absolute;
    left: 1.1rem;
    bottom: 0.35rem;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}

.nav-links > a:hover,
.ertekeink-link:hover {
    background: rgba(255,255,255,0.08);
    color: var(--accent);
}

.nav-links > a:hover::after,
.ertekeink-link:hover::after {
    width: calc(100% - 2.2rem);
}

/* Ã‰RTÃ‰KEINK MENÃœ */
.nav-item-with-toggle {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% - 2px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 390px;

    max-height: 75vh;
    overflow-y: auto;
    overflow-x: visible;

    background: #296b3d;
    box-shadow: 0 12px 25px rgba(0,0,0,0.35);
    border-radius: 12px;
    padding: 0.55rem;
    z-index: 1001;
}
.dropdown-content.submenu-active {
    display: block !important;
}
.dropdown-content::before {
    content: "";
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    height: 14px;
    background: transparent;
}

.submenu-item {
    position: relative;
    border-radius: 10px;
}

.submenu-main-link {
    width: 100%;
    border: none;
    background: transparent;
    color: white;
    text-align: left;
    font-size: 1.03rem;
    font-weight: 500;
    line-height: 1.45;
    padding: 0.9rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    appearance: none;
    -webkit-appearance: none;
    text-decoration: none;
}

.submenu-main-link:hover {
    background: rgba(255,255,255,0.08);
    color: var(--accent);
}

.submenu-main-link a {
    color: inherit;
    text-decoration: none;
    display: block;
    width: 100%;
}

.submenu-panel {
    display: none;
    position: fixed;
    min-width: 260px;
    max-width: 320px;
    background: #245b34;
    border-radius: 12px;
    box-shadow: 0 12px 25px rgba(0,0,0,0.32);
    padding: 0.45rem 0;
    z-index: 5000;
    left: 0;
    top: 0;
    overflow-y: auto;
    max-height: 75vh;
}



.submenu-panel a {
    display: block;
    padding: 0.8rem 1rem;
    color: white;
    text-decoration: none;
    font-size: 1rem;
    line-height: 1.45;
    white-space: nowrap;
    transition: all 0.25s ease;
}

.submenu-panel a:hover {
    background: rgba(255,255,255,0.08);
    color: var(--accent);
}

/* DESKTOP HOVER */
@media (hover: hover) and (min-width: 1101px) {
    .nav-item-with-toggle:hover > .dropdown-content {
        display: block;
    }
     .dropdown-arrow-btn,
    .submenu-arrow-btn {
        display: none !important;
    }
}

/* HAMBURGER */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 26px;
    height: 3px;
    background: white;
    border-radius: 20px;
    transition: 0.4s;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* MOBIL MENÃœ */


/* HERO */
.hero {
    position: relative;
            min-height: 52vh;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            color: white;
            padding: 200px;
            background:
                linear-gradient(rgba(0, 38, 77, 0.58), rgba(41, 107, 61, 0.56)),
                url('/kepek/teljes.jpg') center/cover;
}

.hero h1,
.hero p,
.hero .hero-content,
.hero .hero-content h1,
.hero .hero-content p {
    max-width: 920px;
    color: white;
}

.hero h1 {
    font-size: clamp(2.8rem, 6vw, 4.8rem);
            margin-bottom: 1rem;
}

.hero p {
    font-size: clamp(1.4rem, 4vw, 1.9rem);
    margin-bottom: 2rem;
    max-width: 600px;
    line-height: 1.9;

}

.cta-button {
    background: var(--accent);
    color: var(--dark);
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
    text-decoration: none;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* CONTAINER */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HOSSZABB BEMUTATÃ“ */
.bemutato-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.bemutato-section h2 {
    text-align: center;
    font-size: 2.6rem;
    margin-bottom: 50px;
    color: var(--primary);
}

.bemutato-item {
    display: flex;
    align-items: center;
    margin-bottom: 80px;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 0.8s forwards;
}

.bemutato-item:nth-child(1) { animation-delay: 0.1s; }
.bemutato-item:nth-child(2) { animation-delay: 0.2s; }
.bemutato-item:nth-child(3) { animation-delay: 0.3s; }
.bemutato-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bemutato-item.reverse {
    flex-direction: row-reverse;
}

.bemutato-content {
    max-width: 600px;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.5);
    backdrop-filter: blur(10px);
}

.bemutato-content h3 {
    font-size: 1.95rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.bemutato-content p {
    font-size: 1.16rem;
    line-height: 1.95;
    color: var(--gray);
}

.bemutato-item.highlight .bemutato-content {
    background: linear-gradient(135deg, #fffdf5 0%, white 100%);
    border-color: var(--accent);
    box-shadow: 0 25px 70px rgba(212,160,23,0.15);
}

.secondary-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0,51,102,0.3);
}

.secondary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0,51,102,0.4);
}

/* Ã‰RTÃ‰KEINK */
.ertekeink-section {
    padding: 100px 0;
    background: #fff;
}

.ertekeink-section h2 {
    text-align: center;
    font-size: 2.9rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.section-subtitle {
    text-align: center;
    font-size: 1.45rem;
    color: var(--gray);
    margin-bottom: 40px;
    font-style: italic;
    line-height: 1.85;
}

.ertek-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2.5rem;
}

.ertek-card {
    position: relative;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    overflow: hidden;
    padding: 1rem 1rem 1rem;
    background: linear-gradient(145deg, white 0%, #fafafa 100%);
    border-radius: 24px;
    text-decoration: none;
    color: var(--dark);
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
}

.ertek-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.ertek-card:hover::before {
    transform: scaleX(1);
}

.ertek-card .card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.card-content {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: center;
    padding: 0.2rem 0 0.8rem 0;
}

.card-bg-img {
    position: relative;
    width: 100%;
    height: 290px;
    object-fit: contain;
    object-position: center;
    display: block;
}

.ertek-card h4 {
    font-size: 1.52rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--primary);
}

.ertek-card p {
    font-size: 1.08rem;
    color: var(--gray);
    margin: 0;
    line-height: 1.85;
}

.ertek-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 35px 80px rgba(0,0,0,0.2);
    border-color: var(--accent);
    background: linear-gradient(145deg, #fffdf5 0%, white 100%);
}

/* DETAIL OLDALAK */
.detail-title {
    font-size: clamp(2.4rem, 5vw, 3.7rem);
    color: var(--primary);
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.detail-title::after {
    content: '';
    width: 120px;
    height: 5px;
    background: var(--accent);
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.content-container {
    max-width: 1000px;
    margin: 140px auto 60px;
    padding: 0 20px;
}

.sub-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.sub-card {
    flex: 0 1 clamp(260px, 30%, 380px);
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s;
    text-align: center;
    cursor: pointer;
}

.sub-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.sub-icon {
    height: 120px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.sub-content {
    padding: 1.5rem;
}

.sub-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--primary);
}

.sub-content p {
    font-size: 1.08rem;
    line-height: 1.85;
    color: var(--gray);
}

.back-button {
    display: inline-block;
    background: var(--secondary);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 3rem auto 0;
    display: block;
    width: fit-content;
    transition: all 0.3s;
    text-align: center;
}

.back-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,51,102,0.3);
}

/* DOKUMENTUMOK */
.documents-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 140px 20px 80px;
}

.category-title {
    font-family: 'Playfair Display', serif;
    color: var(--primary);
    font-size: clamp(2.05rem, 3vw, 2.7rem);
    margin: 3rem 0 1rem;
}

.category-title.no-break-title {
    white-space: nowrap;
}

.documents-note {
    background: linear-gradient(135deg, rgba(212,160,23,0.10), rgba(41,107,61,0.08));
    border: 1px solid rgba(212,160,23,0.18);
    border-left: 4px solid #d4a017;
    border-radius: 16px;
    padding: 1rem 1.2rem;
    margin: 0 0 1.2rem 0;
    color: var(--gray);
    line-height: 1.85;
    font-size: 1.08rem;
}

.documents-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.document-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.2rem;
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 20px;
    padding: 1.15rem 1.25rem;
    box-shadow: 0 10px 26px rgba(0,0,0,0.05);
}

.document-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 35px rgba(0,0,0,0.15);
    border-color: var(--accent);
}

.document-info {
    flex: 1;
    min-width: 0;
}

.document-info h4 {
    margin: 0 0 0.45rem 0;
    color: var(--primary);
    font-size: 1.15rem;
    line-height: 1.5;
}

.document-meta {
    color: var(--gray);
    font-size: 1.04rem;
    line-height: 1.75;
    margin-bottom: 0.2rem;
}

.download-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 130px;
    padding: 0.85rem 1.1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: 0.25s ease;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(0,51,102,0.16);
}

.download-btn:hover {
    transform: translateY(-1px) scale(1.02);
    filter: brightness(1.05);
    color: white;
}

/* FOOTER + BACK TO TOP */
footer {
    background: linear-gradient(135deg, var(--secondary));
    color: white;
    padding: 2.5rem 0 2rem;
    margin-top: 5rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--secondary), transparent);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.footer-content p {
    margin: 0 0 0.8rem 0;
    font-size: 1.28rem;
    line-height: 1.8;
    color: white;
    text-align: center;
}

.footer-content p:last-child {
    margin-bottom: 0;
}

.feedback-link {
    color: #f59e0b;
    text-decoration: none;
    font-weight: 600;
    padding: 0.2rem 0.4rem;
    border-radius: 6px;
    background: rgba(245, 158, 11, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.feedback-link:hover {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

#back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    font-size: 1.3rem;
    font-weight: bold;
    box-shadow: 0 8px 18px rgba(0,0,0,0.25);
    z-index: 1000;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* RESPONSIVE */

.room-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    margin-top: 1.8rem;
}

.room-visual-card img {
    width: 100%;
    max-width: 420px;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
} 

 @media (max-width: 1100px) {
.submenu-item.open > .submenu-panel {
        display: block;
    }

    .submenu-panel {
        position: static !important;
        width: 100%;
        max-width: 100%;
        min-width: 100%;
        margin-top: 0.4rem;
        padding: 0.4rem;
        background: rgba(255,255,255,0.07);
        border-radius: 12px;
        overflow-y: auto;
        max-height: 280px;
    }
    nav {
        padding: 0.8rem 1rem;
        min-height: 78px;
    }

    .logo {
        font-size: 1.05rem;
        gap: 0.5rem;
        max-width: calc(100% - 70px);
    }

    .logo-img {
        width: 48px;
        height: 48px;
    }

    .hamburger {
        display: flex;
        z-index: 3001;
    }


    .nav-links {
        position: fixed;
        top: 0;
        left: 100%;
        width: 100%;
        height: 100dvh;

        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;

        padding: 90px 1rem 6rem;
        background: #296b3d;

        overflow-y: auto;
        overflow-x: hidden;

        transition: left 0.35s ease;
        box-shadow: -10px 0 35px rgba(0,0,0,0.35);

        z-index: 2500;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links > a {
        width: 100%;
        padding: 1rem;
        border-radius: 14px;
        background: rgba(255,255,255,0.05);
    }

    /* ROWS */
    .ertekeink-row,
    .submenu-row {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        width: 100%;
    }

    .ertekeink-link,
    .submenu-main-link {
        flex: 1;
        min-width: 0;
    }

    /* ARROWS */
    .dropdown-arrow-btn,
    .submenu-arrow-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 46px;
        height: 46px;
        border: none;
        border-radius: 12px;
        background: rgba(255,255,255,0.08);
        color: var(--accent);
        font-size: 0.95rem;
        cursor: pointer;
        flex-shrink: 0;
        line-height: 1;
        padding: 0;
        transition: 0.25s ease;
    }

    .nav-item-with-toggle.open .dropdown-arrow-btn,
    .submenu-item.open .submenu-arrow-btn {
        transform: rotate(180deg);
    }

    /* DROPDOWN */
    .dropdown-content {
        position: static !important;
        transform: none !important;

        width: 100%;
        min-width: 0;
        max-width: 100%;

        margin-top: 0.5rem;

        background: rgba(0,0,0,0.15);
        border-radius: 14px;
        padding: 0.45rem;

        display: none;
        box-shadow: none;

        max-height: none;
        overflow: visible;
    }

    .nav-item-with-toggle.open > .dropdown-content {
        display: block;
    }

    /* SUBMENUS */
    .submenu-item,
    .submenu-row,
    .submenu-panel {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .submenu-main-link {
        width: 100%;
        padding: 1rem;
        font-size: 0.96rem;
        border-radius: 12px;

        white-space: normal;
        line-height: 1.45;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .submenu-panel {
        position: static !important;
        display: none;

        margin-top: 0.35rem;
        margin-bottom: 0.4rem;

        padding: 0.35rem 0;

        background: rgba(255,255,255,0.07);
        border-radius: 12px;
        box-shadow: none;
    }

    .submenu-item.open > .submenu-panel {
        display: block;
    }

    .submenu-panel a {
        display: block;

        padding: 0.85rem 1rem 0.85rem 1.35rem;

        font-size: 0.92rem;
        line-height: 1.45;

        white-space: normal;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    footer {
        display: block !important;
        width: 100%;
        margin-top: 4rem;
        padding: 1.2rem 1rem 1rem !important;
        position: relative;
        z-index: 1;
    }

    .footer-content {
        padding: 0 !important;
        max-width: 100%;
    }

    .footer-content p {
        font-size: 1.25rem !important;
        line-height: 1.7;
    }

    /* BACK TO TOP */
    #back-to-top {
        position: fixed !important;
        right: 14px !important;
        bottom: 14px !important;

        width: 48px !important;
        height: 48px !important;

        z-index: 99999 !important;
    }
    .nav-item-with-toggle,
    .submenu-item {
        width: 100%;
        display: block;
    }

    .dropdown-content {
        width: 100%;
        display: none;
        position: static !important;
        transform: none !important;

        margin-top: 0.5rem;
        padding: 0.5rem;

        background: rgba(0,0,0,0.15);
        border-radius: 14px;

        overflow: visible;
        max-height: none;
    }

    .nav-item-with-toggle.open > .dropdown-content {
        display: block;
    }

    .submenu-row {
        width: 100%;
        display: flex;
        align-items: stretch;
        gap: 0.5rem;
    }

    .submenu-main-link {
        flex: 1;
        width: auto;
        min-width: 0;
    }

    .submenu-arrow-btn {
        width: 46px;
        flex-shrink: 0;
    }

    .submenu-panel {
        display: none;
        position: static !important;

        width: 100%;
        min-width: 100%;
        max-width: 100%;

        margin-top: 0.4rem;
        padding: 0.4rem;

        background: rgba(255,255,255,0.07);
        border-radius: 12px;

        overflow-y: auto;
        max-height: 280px;
    }

    .submenu-item.open > .submenu-panel {
        display: block;
    }

    .submenu-panel a {
        display: block;
        width: 100%;

        padding: 0.85rem 1rem;
        white-space: normal;
        word-break: break-word;
    }
} 