@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');    
/* --- CSS Változók (Téma és Színek) --- */
:root {
    /* Színek */
    --primary: #0e1933;
    --primary-fixed: #dae2ff;
    --secondary-fixed: #e2e2e2;
    --tertiary-fixed: #fae0a9;
    
    --cyan-100: #cffafe;
    --cyan-500: #06b6d4;
    --cyan-600: #0891b2;
    --cyan-700: #0e7490;
    
    --background: #f8f9fa;
    --surface: #f8f9fa;
    --surface-container-lowest: #ffffff;
    --surface-container-high: #e7e8e9;
    
    --on-surface: #191c1d;
    --on-surface-variant: #45464d;
    --outline: #76777e;
    --outline-variant: #c6c6ce;
    
    --text-dark: #242E49;
    --slate-50: #f8fafc;
    --slate-200: #e2e8f0;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-900: #0f172a;

    /* Méretezés & Tipográfia */
    --container-max: 1200px;
    --section-padding: 80px;
    --font-inter: 'DM Sans', sans-serif;
}

/* --- Alaphelyzetbe állítás (Reset) --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-inter);
    background-color: var(--background);
    color: var(--on-surface);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: transparent; }
img { max-width: 100%; height: auto; display: block; }
span.bold { font-weight: bold};

/* Material Icons Alapbeállítás */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined', sans-serif;
    font-size: 24px;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* --- Újrafelhasználható komponensek --- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}
@media (min-width: 1024px) {
    .container { padding: 0 32px; }
}

.text-primary { color: var(--primary); }
.text-center { text-align: center; }

/* Gombok */
.btn {
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.15s ease-in-out;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn:active { transform: scale(0.95); }

.btn-primary {
    background-color: var(--cyan-600);
    color: #ffffff;
    padding: 12px 24px;
}

.btn-primary:hover { background-color: var(--cyan-700); }

.btn-text {
    color: var(--primary);
    padding: 8px 16px;
}

.btn-text:hover { background-color: var(--surface-container-high); }

.btn-large {
    height: 56px;
    padding: 0 32px;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
}

.btn-large:hover {
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
}

.btn-block {
    width: 100%;
    height: 44px;
    margin-top: 8px;
}

/* --- Navigáció --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 50;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--slate-200);
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    & img {
        width: 10vw;
        min-width: 100px;
    }
}

.nav-links {
    display: none;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: var(--slate-600);
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.15s;
}

.nav-link:hover {
    color: var(--text-dark);
    background-color: var(--slate-50);
}

.nav-link.active {
    color: var(--cyan-600);
    font-weight: 700;
    border-bottom: 2px solid var(--cyan-600);
    border-radius: 0;
    padding-bottom: 4px;
}

.nav-actions {
    display: none;
    align-items: center;
    gap: 16px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-menu-toggle {
    display: block;
    padding: 8px;
    color: var(--on-surface);
}

.nav-mobile {
    position: fixed;
    top: 0;
    right: 0;
    background-color: var(--background);
    width: 100vw;
    height: 100vh;
    content: "";
    z-index: 101;
    transform: translateX(-100%);
    transition: transform 0.3s ease;

    &.active {
        transform: translateX(0);
    }

    & .mobile-menu-close {
        padding: 8px;
        color: var(--on-surface);
        position: absolute;
        right: 25px;
        top: 20px;
    }

    & .nav-links-mobile {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 100%;
        gap: 1rem;
        font-size: 20px;

        & .btn-mobile {
            width: 50%;
            font-size: 20px;
        }
    }
}

@media (min-width: 768px) {
    .nav-links, .nav-actions { display: flex; }
    .mobile-menu-toggle { display: none; }
}

.lang-block {
    position: relative;
    width: 36px;
    height: 32px;
    z-index: 100;
    scale: 0.8;

    &:hover {
        & .lang-select {
            background-color: var(--surface-container-lowest);
            box-shadow: 0px 4px 20px rgba(0,0,0,0.15);
            height: auto;
        }
    }

    & .lang-select {
        position: absolute;
        top: -6px;
        left: -6px;
        width: 48px;
        display: flex;
        flex-direction: column;
        gap: 8px;
        background-color: transparent;
        padding: 6px;
        border-radius: 8px;
        height: 38px;
        overflow: hidden;
        transition: background-color 0.2s ease, box-shadow 0.2s ease;
    }

    & .lang-element {
        & a {
            display: block;
        }
        & img {
            border: 1px solid var(--outline-variant);
            border-radius: 4px;
            width: 100%;
            height: 26px;
            object-fit: cover;
            display: block;
            transition: opacity 0.2s;
        }
        &:hover img {
            opacity: 0.8;
        }
    }
}

/* --- Fő tartalom & Hero --- */
.main-content {
    padding-top: 80px; /* Offset for fixed nav */
}

.hero-section {
    position: relative;
    padding: 96px 0 128px;
    background-color: var(--surface-container-lowest);
    overflow: hidden;
}

@media (min-width: 1024px) {
    .hero-section { padding: 144px 0 160px; }
}

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

.hero-gradient {
    position: absolute;
    inset: 0;
    z-index: 10;
    background: linear-gradient(to right, #ffffff 0%, rgba(255, 255, 255, 0.9) 50%, transparent 100%);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.hero-container {
    position: relative;
    z-index: 10;
}

.hero-content {
    max-width: 768px;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--on-surface-variant);
    margin-bottom: 40px;
    max-width: 672px;
    
    & span {
        display: inline-block;
    }
}

.hero-partner {
    margin-top: 40px;

    & img {
        width: 200px;
    }
}

.trust-badges {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--outline-variant);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 768px;
}

@media (min-width: 768px) {
    .trust-badges { grid-template-columns: repeat(3, 1fr); }
    .badge-full-width { grid-column: span 1; }
}
.badge-full-width { grid-column: span 2; }

.badge-value {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary);
}

.badge-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--on-surface-variant);
}

/* --- Szolgáltatások (Bento Grid) --- */
.services-section {
    padding: var(--section-padding) 0;
    background-color: var(--background);
}

.section-header { margin-bottom: 64px; }
.section-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin-bottom: 16px;
}
.section-subtitle {
    font-size: 18px;
    color: var(--on-surface-variant);
    max-width: 672px;
}
.section-subtitle.centered { margin: 0 auto; }

.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.service-card {
    background-color: var(--surface-container-lowest);
    border-radius: 12px;
    box-shadow: 0px 4px 20px rgba(0,0,0,0.05);
    border: 1px solid rgba(198, 198, 206, 0.3);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;

    & .card-text {
        padding: 32px;
    }

    & .card-picture {
        width: 100%;
        & img {
            width: 100%;
            border-bottom-left-radius: 12px;
            border-bottom-right-radius: 12px;
        }
    }

    &:nth-of-type(2) {
        flex-direction: column-reverse;
    }
}

@media (min-width: 768px) {
    .service-card, .service-card:nth-of-type(2) {
        flex-direction: row;
    }
    .card-picture {
        width: 60% !important;
        overflow: hidden;
        border-bottom-left-radius: 0 !important;
        border-top-right-radius: 12px;
        border-bottom-right-radius: 12px;
        & img {
            border-bottom-left-radius: 0 !important;
            border-top-right-radius: 12px;
            border-bottom-right-radius: 12px;
            height: 100%;
            object-fit: cover;
            scale: 1.2;
        }
    }
}

.mirror {
    transform: scaleX(-1);
}


.service-card:hover { transform: translateY(-4px); }

.icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.icon-primary { background-color: var(--primary-fixed); color: var(--primary); }
.icon-tertiary { background-color: var(--tertiary-fixed); color: #3c2d06; }
.icon-secondary { background-color: var(--secondary-fixed); color: #5d5f5f; }

.card-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
}

.card-desc {
    color: var(--on-surface-variant);
    margin-bottom: 16px;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--on-surface-variant);
}

.check-icon {
    color: var(--cyan-600);
    font-size: 20px;
}

.card-split-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: center;
}

.split-text { flex: 1; width: 100%; }

.split-image-container {
    flex: 1;
    width: 100%;
    min-height: 200px;
    height: 192px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.split-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (min-width: 768px) {
    .card-split-content { flex-direction: row; }
    .split-image-container { height: 100%; }
}

/* --- Folyamat Szekció --- */
.process-section {
    padding: var(--section-padding) 0;
    background-color: var(--surface);
}

.process-wrapper {
    position: relative;
}

.process-line {
    display: none;
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: rgba(198, 198, 206, 0.5);
    transform: translateY(-50%);
    z-index: 0;
}

.process-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    position: relative;
    z-index: 10;
}

@media (min-width: 768px) {
    .process-line { display: block; }
    .process-grid { grid-template-columns: repeat(4, 1fr); }
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.step-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border: 4px solid var(--surface);
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
    font-size: 24px;
    font-weight: 600;
    background-color: var(--surface-container-high);
    color: var(--on-surface-variant);
}

.step-circle.active {
    background-color: var(--cyan-100);
    color: var(--cyan-700);
}

.step-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-desc {
    font-size: 14px;
    color: var(--on-surface-variant);
}

/* --- Kapcsolat & Dokumentumok --- */
.contact-section {
    padding: var(--section-padding) 0;
    background-color: var(--background);
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 64px;
}



.document-box {
    background-color: var(--surface-container-lowest);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid rgba(198, 198, 206, 0.5);
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
    margin-top: 12px;
}

.document-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.document-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background-color: var(--surface);
    border-radius: 8px;
}

.doc-name {
    font-size: 14px;
    font-weight: 500;
}

.doc-icon { color: var(--outline); }

.contact-col {
    display: grid;
    grid-template-columns: 1fr;

    @media screen and (min-width: 840px) {
        grid-template-columns: 1fr 1fr;
        gap: 20px;

        & .contact-info {
            order: 2;
        }
    }

}
.reps-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rep-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    border: 1px solid rgba(198, 198, 206, 0.3);
    border-radius: 8px;
    transition: background-color 0.15s;
    margin: 1.5rem 0;
    background: var(--surface-container-lowest);
}

.rep-card:hover {
    background-color: var(--surface-container-lowest);
}

.rep-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-fixed);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
}
.rep-icon span { font-size: 20px; }

.rep-name { font-size: 16px; font-weight: 700; }
.rep-address { font-size: 16px; color: var(--on-surface-variant); }
.rep-phone { font-size: 14px; color: var(--primary); margin-top: 4px; }

p.whatsapp {
    margin-bottom: 40px;
    text-decoration: underline;
    font-size: 16px;
    text-align: center;
    transition: color 0.2s ease;
    color: var(--cyan-600);

    @media (min-width: 840px) {
        text-align: end;
        color: var(--primary);

         &:hover {
            color: var(--cyan-600);
        }
    }

}

.contact-form-box {
    background-color: var(--surface-container-lowest);
    border-radius: 12px;
    padding: 32px;
    border: 1px solid rgba(198, 198, 206, 0.3);
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
}

.form-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--on-surface-variant);
    margin-bottom: 4px;
}

.form-group a {
    text-decoration: underline;
    transition: color 0.2s ease;
    &:hover {
        color: var(--cyan-600);
    }
}

.form-control {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid var(--outline-variant);
    border-radius: 8px;
    background-color: var(--surface-container-lowest);
    color: var(--on-surface);
    font-family: inherit;
    font-size: 16px;
}

.form-control:focus {
    outline: none;
    border-color: var(--cyan-500);
    box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.2);
}

.form-group:has(input[type="checkbox"]) {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

input[type="checkbox"] {
    margin-top: 4px;
    flex-shrink: 0;

    & + label {
        display: block;
        margin-bottom: 0;
    }

    &:checked {
        accent-color: var(--cyan-600);
    }
}

/* --- Lábléc --- */
.footer {
    background-color: var(--slate-50);
    border-top: 1px solid var(--slate-200);
    padding: 20px 0;
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}

@media (min-width: 768px) {
    .footer-grid { grid-template-columns: repeat(4, 1fr); }
    .footer-brand { grid-column: span 2; }
}

.footer-logo {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.footer-copy { color: var(--slate-900); }

.footer-heading {
    font-size: 14px;
    font-weight: 600;
    color: var(--slate-900);
    margin-bottom: 16px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: var(--slate-500);
    transition: color 0.15s;
}

.footer-links a:hover {
    color: var(--cyan-600);
    text-decoration: underline;
    text-decoration-color: var(--cyan-500);
    text-underline-offset: 4px;
}