:root {
    /* Brand */
    --color-primary: #213B5E;
    --color-accent: #E6C081;

    /* Supporting */
    --color-green: #689738;
    --color-brown: #CA9E67;

    /* Neutrals */
    --color-bg: #FFFFFF;
    --color-text: #1A1A1A;
    --color-muted: #6B7280;
    --color-border: #E5E7EB;

    /* Semantic */
    --color-danger: #DC2626;

    /* Effects */
    --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.12);
    --shadow-light: 0 10px 30px rgba(0, 0, 0, 0.08);

    /* Spacing */
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-5: 40px;
    --space-6: 48px;
    --space-8: 64px;
    --space-10: 80px;
    --space-12: 96px;
    --space-16: 128px;

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 12px;
}

@font-face {
    font-family: 'Rogan';
    src: url('/themes/custom/mfk/fonts/Rogan_Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Rogan';
    src: url('/themes/custom/mfk/fonts/Rogan_SemiBold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Rogan';
    src: url('/themes/custom/mfk/fonts/Rogan_Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

body {
    background: var(--color-bg);
    color: var(--color-text);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
}

h1 {
    font-family: 'Rogan', sans-serif;
    font-weight: 700;
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 16px;
}

h2 {
    font-family: 'Rogan', sans-serif;
    font-weight: 600;
    font-size: 28px;
    line-height: 1.3;
    margin-bottom: 16px;
}

h3 {
    font-family: 'Rogan', sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 12px;
}

p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.small {
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-muted);
}

.container {
    max-width: 1140px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-1);

    padding: 12px 24px;

    border-radius: var(--radius-sm);
    border: 1px solid transparent;

    font-weight: 600;
    font-size: 14px;
    line-height: 1;

    text-decoration: none;
    cursor: pointer;

    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-accent {
    background: var(--color-accent);
    color: var(--color-primary);
}

.btn-accent:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: #fff;
}

.btn:disabled,
.btn.disabled {
    opacity: 0.5;
    pointer-events: none;
}

nav#navbar-top {
    background-color: var(--color-bg);
}

.content-link {
    position: relative;
    text-decoration: none;
    color: var(--color-accent);
}

.content-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: width 0.2s ease;
}

.content-link:hover::after,
.content-link:focus::after {
    width: 100%;
}

.content-link:hover,
.content-link:focus {
    color: var(--color-primary);
}

li#main-menu-link-contentfd1f041e-77ec-48c4-96b1-3d9e3453c13f a.is-active.sf-depth-1 {
    background: var(--color-accent);
}

/* LOGÓ */

a.navbar-brand {
    display: flex;
    align-items: center;
    color: var(--color-primary);
    font-weight: 700;
    font-family: 'Rogan';
}

.navbar-brand img {
    font-size: initial;
    height: 80px;
    width: auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* MENÜ */

#navbar-main {
    background-color: var(--color-bg);
}

#superfish-main {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: flex-end;
}

#superfish-main>li {
    margin: 0;
    padding: 0;
    background: transparent;
}

#superfish-main a {
    display: inline-flex;
    align-items: center;

    padding: 8px 16px;

    border-radius: 8px;

    font-size: 14px;
    font-weight: 500;

    color: var(--color-primary);
    text-decoration: none;

    transition: all 0.2s ease;
}

#superfish-main a:hover {
    background: rgba(33, 59, 94, 0.08);
}

#superfish-main .is-active {
    background: var(--color-primary);
    color: #fff;
}

#superfish-main .is-active:hover {
    opacity: 0.9;
}

#superfish-main a {
    padding: 10px 18px;
    border-radius: 10px;
}

#superfish-main .active-trail>a {
    background: var(--color-primary);
    color: #fff;
}

section.row.region.region-header-form {
    margin: 0;
}

#block-mfk-nyelvvalaszto nav.links {
    display: inline-flex;
    align-items: center;
    padding: 4px;
    background: #f1f3f5;
    border-radius: 10px;
    flex-wrap: nowrap;
}

#block-mfk-nyelvvalaszto nav.links span {
    display: flex;
    padding: 5px;
}

#block-mfk-nyelvvalaszto nav.links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

#block-mfk-nyelvvalaszto nav.links a.is-active {
    background: var(--color-primary);
    color: #fff;
}

#block-mfk-nyelvvalaszto nav.links a:hover {
    background: rgba(33, 59, 94, 0.1);
}

#block-mfk-nyelvvalaszto nav.links .hu a::after {
    content: "HU";
}

#block-mfk-nyelvvalaszto nav.links .en a::after {
    content: "EN";
}

#block-mfk-nyelvvalaszto nav.links a {
    font-size: 0;
}

#block-mfk-nyelvvalaszto nav.links a::after {
    font-size: 13px;
}




/* HERO */

.highlighted aside.container-fluid.section.clearfix {
    padding: 0;
}

.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    overflow: hidden;

    padding: var(--space-12) 0;

    /* 🔥 átmenet trükk */
    margin-bottom: -80px;
}

.hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    position: relative;
}

.hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(33, 59, 94, 0.7),
            rgba(33, 59, 94, 0.9));
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 560px;
    padding-left: var(--space-2);
}

.hero__content h1 {
    font-size: 56px;
    line-height: 1.1;
    margin-bottom: var(--space-3);
}

.hero__content p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: var(--space-4);
}

.hero__content .btn {
    margin-top: var(--space-2);
}

.hero__content .btn-outline {
    border-color: var(--color-bg);
    color: var(--color-bg);
}

@media (max-width: 768px) {
    .hero__video {
        display: none;
    }
}

/* INTRO */

.section {
    /* padding-top: var(--space-12); */
    padding-bottom: var(--space-12);
}

.section-intro {
    position: relative;
    padding: calc(var(--space-16) + 80px) 0 var(--space-16);

    background: linear-gradient(180deg,
            #f8f9fb 0%,
            var(--color-bg) 100%);

    overflow: hidden;
}

.section-intro::after {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -40px;

    width: 520px;
    height: 520px;

    background: url('/themes/custom/mfk/assets/logo-mark.svg') no-repeat center;
    background-size: contain;

    opacity: 0.02;
    /* finomabb */
    pointer-events: none;

    transform: scale(1.2);
}

.intro {
    display: flex;
    align-items: center;
    gap: var(--space-10);
}

.intro__content {
    max-width: 600px;
}

.intro__content h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: var(--space-3);
}

.intro__content p {
    margin-bottom: var(--space-2);
    line-height: 1.6;
}

.section-intro {
    background: linear-gradient(180deg,
            #f8f9fb 0%,
            #ffffff 100%);
}

.intro__text h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: var(--space-4);
}

.intro__text {
    flex: 1;
    max-width: 640px;
}

.intro__text p {
    margin-bottom: var(--space-2);
    line-height: 1.7;
}

.intro__media {
    flex: 0 0 420px;
    position: relative;
    transform: translateY(20px);
}

.intro__media img {
    width: 100%;
    max-width: 420px;

    border-radius: var(--radius-lg);

    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18);

    object-fit: cover;
}

.intro__media::after {
    content: "";
    position: absolute;
    inset: 0;

    border-radius: var(--radius-lg);

    background: linear-gradient(120deg,
            rgba(33, 59, 94, 0.08),
            transparent);
}

/* INTRO ACCORDION – SMOOTH */

.intro__more {
    max-height: 0;
    overflow: hidden;

    opacity: 0;
    transform: translateY(-12px);

    transition:
        max-height 0.7s ease,
        opacity 0.4s ease 0.1s,
        transform 0.4s ease 0.1s;

    position: relative;
}

.intro__more p {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.intro__more.is-open p {
    opacity: 1;
    transform: translateY(0);
}

.intro__more.is-open p:nth-child(1) {
    transition-delay: 0.05s;
}

.intro__more.is-open p:nth-child(2) {
    transition-delay: 0.1s;
}

.intro__more.is-open p:nth-child(3) {
    transition-delay: 0.15s;
}

.intro__more.is-open p:nth-child(4) {
    transition-delay: 0.2s;
}

.intro__more.is-open {
    max-height: 1000px;

    opacity: 1;
    transform: translateY(0);
}


/* gomb kis anim */
.intro__toggle {
    margin-top: var(--space-3);
    transition: transform 0.25s ease;
}

.intro__toggle:hover {
    transform: translateY(-2px);
}

/* fade effekt marad */
.intro__more:not(.is-open)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 40px;

    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0),
            rgba(255, 255, 255, 1));

    pointer-events: none;
}

/* KAPCSOLAT */

#block-mfk-kapcsolat {
    background: #f7f7f7;
}

/* CONTACT SECTION */

.section-contact {
    padding-top: var(--space-12);
    padding-bottom: var(--space-12);
}

.contact {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-10);
    align-items: start;
}

.contact__left {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.contact__info h2 {
    margin-bottom: var(--space-3);
}

.contact__info p {
    margin-bottom: var(--space-2);
}

.contact__form {
    width: 100%;
}

.contact__form form {
    width: 100%;
}

/* IMAGE */

.contact__media {
    display: flex;
    justify-content: center;
}

.contact__media img {
    width: 100%;
    /* max-width: 420px; */
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* FORM */

.contact__content {
    max-width: 520px;
}

.contact__content h2 {
    margin-bottom: var(--space-4);
}

label.form-check-label {
    padding-left: 10px;
    padding-top: 5px;
}

.js-webform-type-checkbox.webform-type-checkbox.js-form-item.js-form-type-checkbox.checkbox.form-check.mb-3.js-form-item-elolvastam-es-elfogadom-az-a-adatvedelmi-tajekoztatoban-a-foglal.form-item-elolvastam-es-elfogadom-az-a-adatvedelmi-tajekoztatoban-a-foglal {
    display: flex;
}

#edit-actions-submit {
    position: relative;
    padding-left: 36px;
}

#edit-actions-submit::before {
    content: "\f1d8";
    /* paper-plane */

    font-family: "Font Awesome 6 Free";
    font-weight: 900;

    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);

    font-size: 14px;
    line-height: 1;
}

/* WEBFORM CLEANUP */

.contact__content .form-control,
.contact__content input,
.contact__content textarea {
    border-radius: 8px;
    border: 1px solid var(--color-border);
    padding: 12px 14px;
}

.contact__content textarea {
    min-height: 120px;
}

.contact__content .form-actions {
    margin-top: var(--space-3);
}

/* RESPONSIVE */

@media (max-width: 992px) {
    .contact {
        grid-template-columns: 1fr;
    }

    .contact__media {
        order: -1;
    }
}

/* EMPTY PAGE */

/* EMPTY – ADVANCED */

.section-empty {
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
    position: relative;
    overflow: hidden;
}

/* háttér brand grafika (mint intro) */
.section-empty::after {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -60px;
    width: 500px;
    height: 500px;

    background: url('/themes/custom/mfk/assets/logo-mark.svg') no-repeat center;
    background-size: contain;

    opacity: 0.03;
    pointer-events: none;
}

/* középre */
.empty {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

/* ICON */

.empty__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-4);

    border-radius: 50%;

    background: rgba(33, 59, 94, 0.06);
    color: var(--color-primary);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 28px;

    animation: emptyPulse 2.5s ease-in-out infinite;
}

/* pulse animáció */
@keyframes emptyPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.85;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* TITLE */

.empty__title {
    font-size: 32px;
    margin-bottom: var(--space-2);
}

/* TEXT */

.empty__text {
    color: var(--color-muted);
    margin-bottom: var(--space-4);
    font-size: 16px;
}

/* BUTTON */

.empty__actions {
    margin-top: var(--space-3);
}

/* FOOTER */

.site-footer {
    background: var(--color-primary);
    padding: 0;
}

.site-footer .block {
    border: none;
}

.site-footer__top .region {
    width: 100%;
    padding: 0;
}

.footer {
    background: var(--color-primary);
    color: #fff;
    padding-top: var(--space-0);
    padding-bottom: var(--space-6);
    margin-top: var(--space-6);
}

/* GRID */

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: var(--space-8);
    margin-bottom: var(--space-6);
}

/* BRAND */

.footer__logo {
    height: 200px;
    margin-bottom: var(--space-3);
    filter: brightness(0) invert(1);
}

.footer__text {
    color: rgba(255, 255, 255, 0.7);
    max-width: 320px;
    font-size: 14px;
}

/* TITLE */

.footer__title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: var(--space-2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.8);
}

/* MENU */

.footer__menu,
.footer__contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__menu li,
.footer__contact li {
    margin-bottom: 8px;
}

.footer a {
    position: relative;
}

.footer a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: width 0.2s ease;
}

.footer a:hover::after {
    width: 100%;
}

/* BOTTOM */

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding-top: var(--space-3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);

    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.site-footer__top .content li a {
    text-decoration: none;
}

.site-footer .content a,
.site-footer .content a.is-active {
    text-decoration: none;
    color: var(--color-white);
}

/* RESPONSIVE */

@media (max-width: 992px) {
    .footer__grid {
        grid-template-columns: 1fr;
        gap: var(--space-5);
    }

    .footer__bottom {
        flex-direction: column;
        gap: var(--space-2);
        text-align: center;
    }
}


/* PROJECTS */

.projects {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    margin-top: var(--space-6);
}

/* CARD */

.project-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;

    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    height: 100%;

    transition: all 0.25s ease;
}

/* IMAGE PLACEHOLDER */

.project-card__image {
    height: 160px;

    background: linear-gradient(135deg,
            rgba(33, 59, 94, 0.08),
            rgba(33, 59, 94, 0.02));
}

/* CONTENT */

.project-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card__content {
    padding: var(--space-3);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card__content h3 {
    font-size: 16px;
    margin-bottom: var(--space-1);
}

.project-card__content .btn,
.project-card__content a {
    margin-top: auto;
}

/* HOVER */

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-light);
}

/* CTA */

.projects__cta {
    margin-top: var(--space-6);
    text-align: center;
}

@media (max-width: 992px) {
    .projects {
        grid-template-columns: 1fr;
    }
}

/* overlay háttér */
.menu-open main,
.menu-open .hero,
.menu-open .section {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);

    opacity: 0;
    visibility: hidden;
    transition: 0.25s ease;

    z-index: 998;
}

/* aktív állapot */
.menu-open .mobile-menu-overlay {
    opacity: 1;
    visibility: visible;
}

.menu-open header {
    filter: none;
}

/* HAMBURGER */

.navbar-toggler {
    border: none;
    padding: 8px;
    border-radius: 8px;
    background: transparent;
    margin-left: auto;
    padding-right: 10px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* saját ikon */
.navbar-toggler-icon {
    background-image: none;
    width: 22px;
    height: 2px;
    background-color: var(--color-primary);
    position: relative;
    display: block;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: var(--color-primary);
    transition: all 0.2s ease;
}

.navbar-toggler-icon::before {
    top: -6px;
}

.navbar-toggler-icon::after {
    top: 6px;
}

.menu-open .hero {
    filter: brightness(0.6);
    transition: 0.2s ease;
}

@media (max-width: 1199px) {

    #CollapsingNavbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;

        background: #ffffff;

        padding: var(--space-4);
        border-top: 1px solid var(--color-border);

        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
        z-index: 999;
    }

    #superfish-main {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-2);
        width: 100%;
        margin-top: var(--space-2);
    }

    #superfish-main a {
        width: 100%;
        padding: 12px 14px;
        border-radius: 8px;
        font-size: 16px;
        font-weight: 500;
    }

    #superfish-main a:hover {
        background: rgba(33, 59, 94, 0.08);
    }

    #superfish-main .is-active {
        background: var(--color-primary);
        color: #fff;
    }

    .region-header-form {
        margin-top: var(--space-3);
        width: 100%;
    }

    #block-mfk-nyelvvalaszto nav.links {
        width: 100%;
        justify-content: flex-end;
    }

    #block-mfk-nyelvvalaszto {
        padding: 0;
    }


    #CollapsingNavbar {
        animation: slideDown 0.25s ease;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }


    #superfish-main a[href*="contact"].is-active {
        background: var(--color-accent);
        color: var(--color-primary);
        font-weight: 600;
    }
}

/* reset */
.navbar-toggler {
    border: none;
    background: transparent;
    padding: 8px;
}

/* container */
.hamburger {
    width: 26px;
    height: 18px;
    position: relative;
    display: inline-block;
}

/* vonalak */
.hamburger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* pozíciók */
.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 8px;
}

.hamburger span:nth-child(3) {
    top: 16px;
}

/* ===== ANIMÁCIÓ ===== */

.menu-open .hamburger span:nth-child(1) {
    transform: rotate(45deg);
    top: 8px;
}

.menu-open .hamburger span:nth-child(2) {
    opacity: 0;
}

.menu-open .hamburger span:nth-child(3) {
    transform: rotate(-45deg);
    top: 8px;
}

@media (max-width: 576px) {
    a.navbar-brand {
        font-size: 0;
    }
}