@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color:          #B71C2C;
    --secondary-color:        #E6E8EB;

    --header-bg-color:        #ffffff;
    --nav-top-bg-color:       #ffffff;
    --nav-sub-bg-color:       #ffffff;
    --nav-holder-bg-color:    #ffffff;
    --nav-item-color:         #0D223D;

    --primary-t-color:        #0D223D;

    --primary-bg-color:       #E6E8EB;
    --primary-bg-color-2:     #d8dadd;
    --primary-bg-color-3:     rgba(183, 28, 44, 0.12);

    --secondary-bg-color:     #0D223D;
    --secondary-bg-color-2:   #081829;
    --secondary-bg-color-3:   #122a4a;

    --dark-grey-color:        #0D223D;
    --footer-bg-color:        #ffffff;

    --primary-p-color:        #7A7D80;
    --secondary-p-color:      #c0c3d0;

    --nav-brand-height:       55px;
    --footer-brand-height:    250px;

    --h1-font:                'Inter', sans-serif;
    --h2-font:                'Inter', sans-serif;
    --p-font:                 'Inter', sans-serif;
}

.primary-button:hover,
.primary-button:focus {
    background-color: #8e1520;
    border-color: #8e1520;
    color: #ffffff;
}

.outline-button:hover,
.outline-button:focus {
    background-color: var(--secondary-bg-color);
    border-color: #ffffff;
    color: #ffffff;
}

.odd .outline-button:hover,
.odd .outline-button:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
    color: #ffffff;
}

.badges .badge:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}

.badges .badge:hover a:not(.btn),
.badges .badge a:not(.btn):hover {
    color: #ffffff;
}

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

#process,
#process * {
    cursor: default;
}

#about .pre-title {
    color: var(--secondary-bg-color);
}

#slider .slide-content .inner {
    padding-top: 220px;
}

#slider.featured:after {
    filter: sepia(1) saturate(4) hue-rotate(315deg);
    opacity: 0.12;
}

#projects h2 a {
    color: inherit;
    text-decoration: none;
}

.hero-blue-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(160deg, rgba(13, 34, 61, 0.28) 0%, rgba(13, 34, 61, 0.10) 100%);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    clip-path: polygon(0 0, 52% 0, 48% 100%, 0 100%);
    z-index: 2;
    display: flex;
    align-items: center;
}

.hero-panel-inner {
    padding: 130px 0 0 6%;
    max-width: 44%;
}

.hero-panel-inner .title {
    font-size: 2rem !important;
    font-weight: 400 !important;
    line-height: 1.25;
    white-space: nowrap;
}

.hero-accent {
    color: var(--primary-color);
    display: block;
    margin-top: 0.5rem;
}

@media (max-width: 1199.98px) {
    .hero-blue-panel {
        clip-path: none;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.2) 100%);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .hero-panel-inner {
        width: 100%;
        max-width: 100%;
        padding: 140px 6% 0 6%;
        text-align: center;
    }

    .hero-panel-inner .title,
    .hero-panel-inner .hero-accent,
    .hero-panel-inner .description {
        text-align: center;
        white-space: normal;
    }

    .hero-panel-inner .buttons {
        display: flex;
        justify-content: center;
    }

    .hero-panel-inner .buttons > div {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 767.98px) {
    .hero-panel-inner .title {
        font-size: 1.9rem !important;
    }
}



#footer {
    padding-top: 50px !important;
    padding-bottom: 50px !important;
}

.footer-top {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.footer-body {
    padding-top: 0.5rem !important;
}

.footer-body .col-12 {
    margin-bottom: 1rem !important;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.875rem;
    padding-top: 1rem !important;
    margin-top: 0 !important;
}

.footer-bottom p,
.footer-bottom a {
    color: rgba(255, 255, 255, 0.55);
}

.footer-bottom a:hover {
    color: var(--primary-color);
}

.footer-col-title {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

#footer .footer-nav li a:not(.btn),
#footer .footer-nav li a:link:not(.btn),
#footer .footer-nav li a:visited:not(.btn),
#footer .navbar-nav .nav-item .nav-link:not(.btn),
#footer .navbar-nav .nav-item .nav-link:link:not(.btn),
#footer .navbar-nav .nav-item .nav-link:visited:not(.btn) {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    line-height: 2;
    transition: color 0.3s ease;
}

#footer .footer-nav li a:hover:not(.btn),
#footer .navbar-nav .nav-item .nav-link:hover:not(.btn) {
    color: var(--primary-color);
    text-decoration: none;
}

.footer-nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 1rem;
}

@media (max-width: 767.98px) {
    .footer-nav-grid {
        grid-template-columns: 1fr;
    }

    #footer .footer-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #footer .footer-body .navbar-nav {
        align-items: center;
    }
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#footer .footer-social a:not(.btn),
#footer .footer-social a:link:not(.btn),
#footer .footer-social a:visited:not(.btn) {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 1rem;
    transition: color 0.3s ease;
}

#footer .footer-social a:hover:not(.btn) {
    color: var(--primary-color);
}

header .navbar.sub {
    top: 0;
    background: rgba(13, 34, 61, 0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: none;
    transition:
        background 0.8s ease,
        backdrop-filter 0.8s ease,
        box-shadow 0.8s ease,
        padding 0.6s ease !important;
}

header .navbar.sub:not(.navbar-sticky) .navbar-nav .nav-link:not(.btn) {
    color: rgba(255, 255, 255, 0.92);
}

header .navbar.sub:not(.navbar-sticky) .navbar-brand img {
    filter: brightness(0) invert(1);
}

header .navbar-sticky.sub {
    background: rgba(245, 246, 250, 0.82) !important;
    backdrop-filter: blur(28px) !important;
    -webkit-backdrop-filter: blur(28px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.08) !important;
}

header .navbar-sticky.sub .navbar-nav .nav-link:not(.btn) {
    color: var(--nav-item-color);
}

header .navbar-sticky.sub .navbar-brand img {
    filter: none;
}

.navbar-expand .navbar-nav.icons .nav-link:not(.btn):not(.title):hover {
    color: var(--primary-color);
}

.navbar .icons .nav-link:focus,
.navbar .icons .nav-link:active,
.navbar .toggle .nav-link:focus,
.navbar .toggle .nav-link:active {
    outline: none;
    box-shadow: none;
}

.navbar-expand .navbar-nav.items .nav-link:not(.btn):not(.title):hover {
    color: var(--primary-color);
}

.qualion-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.15);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: qualion-spin 0.75s linear infinite;
}

@keyframes qualion-spin {
    to { transform: rotate(360deg); }
}

.page-header-block {
    background: linear-gradient(to bottom, #0D223D 20%, rgba(13, 34, 61, 0.75) 50%, rgba(13, 34, 61, 0.35) 75%, rgba(13, 34, 61, 0) 100%);
    height: 150px;
    margin-bottom: -80px;
    position: relative;
    z-index: 0;
}

.page-section-top {
    padding-top: 180px !important;
    position: relative;
    z-index: 1;
}

.service-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 160px;
    background: linear-gradient(135deg, #0D223D 0%, #122a4a 100%);
}

.service-card-placeholder--raktar-es-logisztika {
    background: linear-gradient(135deg, #122a4a 0%, #1a3a62 100%);
}

.service-card-placeholder--hr-es-outsourcing {
    background: linear-gradient(135deg, #1a3a62 0%, #0D223D 100%);
}

.service-card-placeholder--takaritasi-es-facility {
    background: linear-gradient(135deg, #1a3a62 0%, #0D223D 100%);
}

.service-card-icon {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.25);
}


/* ─── Index + Services: fix cím a card alján ─── */
#projects .card .card-static-title,
#services .card .card-static-title {
    margin: 0;
    padding: 12px 25px 16px;
    font-size: 1.2rem;
    line-height: 1.3;
    word-break: keep-all;
    hyphens: none;
}

.service-card-category {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-color);
    margin-bottom: 0.4rem;
}

#services .pre-title {
    color: var(--secondary-bg-color);
}

[class*="filter-item-"] {
    transition-duration: 0.4s !important;
}

@media (max-width: 575.98px) {
    #services .btn-group {
        flex-direction: column;
        align-items: stretch;
    }

    #services .btn-group .btn {
        border-radius: 4px !important;
        margin-bottom: 4px;
    }
}

#menu .modal-content,
#search .modal-content {
    background: rgba(10, 22, 42, 0.45);
    backdrop-filter: blur(32px) saturate(1.4);
    -webkit-backdrop-filter: blur(32px) saturate(1.4);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

#menu .modal-header,
#search .modal-header {
    padding: 28px 32px;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-close {
    position: relative;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    cursor: pointer;
    background: none;
    border: none;
}

.sidebar-close::before,
.sidebar-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 1.5px;
    background: rgba(255, 255, 255, 0.5);
    transform-origin: center;
    transition: background 0.25s ease;
}

.sidebar-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.sidebar-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.sidebar-close:hover::before,
.sidebar-close:hover::after {
    background: #ffffff;
}

#menu .modal-body {
    padding: 40px 32px;
    align-items: flex-start;
}

#menu .menu .navbar-nav {
    width: 100%;
    font-size: 1rem;
}

#menu .menu .nav-item {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

#menu .menu .nav-link:not(.btn) {
    font-size: 1.35rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 0;
    width: 100%;
    padding: 16px 0;
    margin: 0;
    letter-spacing: 0.01em;
    display: flex;
    align-items: center;
    transition: color 0.25s ease, padding-left 0.25s ease;
    background: none;
}

#menu .menu .nav-link:not(.btn):hover {
    color: #ffffff;
    padding-left: 8px;
}

#search .modal-body {
    padding: 40px 32px;
    align-items: flex-start;
}

#search .modal-body h2 {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
}

#search .modal-body .badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

#search .modal-body .badges .badge {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.7);
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}

#search .modal-body .badges .badge:hover {
    background: rgba(183, 28, 44, 0.3);
    border-color: rgba(183, 28, 44, 0.5);
    color: #ffffff;
}

#search .modal-body .badges .badge a:not(.btn) {
    color: inherit;
}

#search .modal-body .form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    color: #ffffff;
    padding: 14px 18px;
    font-size: 1rem;
    margin-top: 1.5rem;
    transition: border-color 0.2s ease, background 0.2s ease;
}

#search .modal-body .form-control::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

#search .modal-body .form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: none;
    color: #ffffff;
    outline: none;
}

#search .modal-body .btn {
    margin-top: 1.25rem;
}

/* ─── Navbar icons: locale switcher + search ikon egy sorban ─── */
header .navbar-expand .navbar-nav.icons {
    display: inline-flex !important;
    flex-direction: row;
    align-items: center;
}

/* ─── Mobil menü: nyelváltó a modal alján ─── */
#menu .modal-body.menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.mobile-menu-lang {
    margin-top: auto;
    margin-left: -25px;
    margin-right: -25px;
    padding: 1.5rem 25px 0.5rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.mobile-menu-lang a,
.mobile-menu-lang a:link,
.mobile-menu-lang a:visited {
    font-size: 0.85rem !important;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.6) !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.mobile-menu-lang a:hover {
    color: #ffffff !important;
}

/* ─── Navbar locale switcher ─── */
.locale-switcher-item {
    position: relative;
    margin-left: 8px;
    padding-left: 8px;
}

.locale-switcher-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 14px;
    background: currentColor;
    opacity: 0.3;
}

.locale-switcher {
    font-size: 0.75rem !important;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 6px 10px !important;
    opacity: 0.75;
    transition: opacity 0.2s ease;
}

.locale-switcher:hover {
    opacity: 1;
}

/* ─── Hero → első szekció padding csökkentése (aloldalak) ─── */
#services.section-1,
#contact.section-1,
#about-intro.section-1,
#career-intro.section-1,
#privacy.section-1 {
    padding-top: 60px !important;
}

#career-intro .pre-title {
    color: var(--secondary-bg-color);
}

/* ─── Services oldal: szűrőgombok feletti felesleges hely ─── */
#services .row.justify-content-center.text-center:first-child {
    margin-bottom: 2rem;
}

#services .overflow-holder {
    padding-top: 30px !important;
}

/* ─── About oldal: szekciók közötti padding ─── */
#about-intro.section-1 {
    padding-bottom: 60px !important;
}

#about-services.section-2 {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
}

#about-services .row.text-center.intro {
    margin-bottom: 2rem !important;
}

/* About page: ikonok középre igazítása */
#about-services .item {
    text-align: center;
}

#about-services .item .icon {
    display: block;
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* About page: Facility menedzsment ne törjön ─── */
#about-services .item h4 {
    font-size: 0.95rem;
    white-space: nowrap;
}

/* ─── MunKaland szekció ─── */
#munkaland {
    padding-top: 60px !important;
    padding-bottom: 80px !important;
}

#munkaland .pre-title {
    color: var(--secondary-bg-color);
}

@media (min-width: 768px) {
    #munkaland .pre-title {
        margin-left: 0;
    }
}

.munkaland-logo {
    width: 100%;
    max-width: 280px;
}


/* ─── Főoldal contact szekció: alcím alatti padding ─── */
#contact .row.intro {
    margin-bottom: 0 !important;
}

#contact .row.intro p {
    margin-bottom: 0.75rem !important;
}

/* ─── Hash navigáció: ne takarjon el a navbar ─── */
#contact {
    scroll-margin-top: 130px;
}

/* ─── AOS animáció időzítés ─── */
[data-aos] {
    transition-duration: 600ms !important;
}

@media (max-width: 991.98px) {
    [data-aos] {
        transition-duration: 400ms !important;
    }
}

/* ─── Aloldalak hero title: mobilon kisebb méret ─── */
@media (max-width: 767px) {
    .slider-h-50 .slide-content .title {
        font-size: 2rem !important;
    }
}

@media (max-width: 374px) {
    .slider-h-50 .slide-content .title {
        font-size: 1.6rem !important;
    }
}

/* ─── Hero subtitle (services filter kategória) ─── */
.hero-subtitle {
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.04em;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-subtitle.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Search sidebar: liquid glass ─── */
#search .modal-content {
    background: rgba(255, 255, 255, 0.06) !important;
    backdrop-filter: blur(60px) saturate(2) brightness(0.88) !important;
    -webkit-backdrop-filter: blur(60px) saturate(2) brightness(0.88) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.12) !important;
}

#search .modal-body .badges {
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}

#search .modal-body .badges .badge {
    display: inline-block;
    width: auto;
    text-align: left;
    padding: 8px 16px;
    font-size: 0.875rem;
}

/* ─── Mobil menü: liquid glass ─── */
#menu .modal-content {
    background: rgba(255, 255, 255, 0.06) !important;
    backdrop-filter: blur(60px) saturate(2) brightness(0.88) !important;
    -webkit-backdrop-filter: blur(60px) saturate(2) brightness(0.88) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.12) !important;
}

/* Mobil menü: menüpontok vizuálisan jobban elkülönítve ─── */
#menu .menu .nav-link:not(.btn) {
    font-size: 1.5rem;
    font-weight: 600;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#menu .menu .nav-link:not(.btn)::after {
    display: none;
}

/* ─── Service modal ─── */
#service-modal .modal-dialog {
    max-width: 560px;
}

#service-modal .modal-content {
    border-radius: 12px;
    overflow: hidden;
    border: none;
    box-shadow: 0 20px 60px rgba(13, 34, 61, 0.18);
}

#service-modal .modal-body {
    padding: 36px 40px 36px !important;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    position: relative;
}

.service-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: rgba(13, 34, 61, 0.35);
    font-size: 0.9rem;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    transition: color 0.2s ease;
}

.service-modal-close:hover {
    color: var(--secondary-bg-color);
}

.service-modal-category {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(13, 34, 61, 0.4);
    margin-top: 2px !important;
    margin-bottom: 4px !important;
    align-self: flex-start;
}

.service-modal-name {
    font-size: 1.5rem !important;
    font-weight: 700;
    color: var(--primary-t-color);
    line-height: 1.3;
    margin-bottom: 12px !important;
}

.service-modal-description {
    font-size: 0.9rem;
    color: #7A7D80;
    line-height: 1.7;
    margin-bottom: 28px !important;
    max-height: 260px;
    overflow-y: auto;
}

.service-modal-cta {
    align-self: center;
}

/* ─── Form: JS validáció hibastílus ─── */
.contact-form-wrapper {
    position: relative;
}

.input-group {
    position: relative;
}

.field-error {
    border-color: #e01020 !important;
    box-shadow: 0 0 0 2px rgba(224, 16, 32, 0.25) !important;
}

@keyframes qualion-shake {
    0%, 100% { transform: translateX(0); }
    15%       { transform: translateX(-6px); }
    30%       { transform: translateX(6px); }
    45%       { transform: translateX(-5px); }
    60%       { transform: translateX(5px); }
    75%       { transform: translateX(-3px); }
    90%       { transform: translateX(3px); }
}

.field-shake {
    animation: qualion-shake 0.45s ease;
}

/* ─── Form: sikerüzenet fade-out + checkmark ─── */
.form-success-overlay {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}

.form-success-checkmark {
    margin-bottom: 20px;
}

.checkmark-svg {
    width: 72px;
    height: 72px;
    display: block;
    stroke: #22c55e;
    stroke-miterlimit: 10;
    animation: checkmark-pop 0.25s ease-in-out 0.85s both;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    fill: none;
    animation: checkmark-draw 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-path {
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    animation: checkmark-draw 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.75s forwards;
}

@keyframes checkmark-draw {
    to { stroke-dashoffset: 0; }
}

@keyframes checkmark-pop {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.08); }
}

.form-success-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-t-color);
    margin-bottom: 8px;
}

.form-success-text {
    color: #7A7D80;
    font-size: 0.95rem;
}
