/* ─── GLOBAL THEME ─────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    font-family: 'InterVariable', sans-serif, ui-sans-serif, system-ui,
                 "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    min-height: 100%;
}

body {
    margin: 0;
    padding: 0;
    background: #fff;
}

/* ─── HERO BTN ─────────────────────────────────────────────── */
.btn-outline {
    display: inline-block;
    padding: 14px 32px;
    border: 2px solid #ffffff;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    background: transparent;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: background 0.2s, color 0.2s;
}
.btn-outline:hover {
    background-color: #162d5e;
    color: #ffffff;
}

/* ─── SITE NAV (fixed, same SVG as hero — seamless continuation) ── */
:root {
    --nav-height: 100px;
}

#site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    /* Layer 1 (foreground): SVG
       Layer 2 (background): solid color */
    background-color: #273B54;
}
#site-nav nav a,
#site-nav nav button {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
}

/* ─── S1: HERO ─────────────────────────────────────────────── */
#s1 #hero {
    position: relative;
    background-image:
        url('/FINAL-top-2.png'),
        url('/FINAL-bg-2.png');
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
    min-height: 100vh;
    padding-top: var(--nav-height);
}

/* below md (768 px) the text centres → show only the plain background */
@media (max-width: 767px) {
    #s1 #hero {
        background-image: url('/FINAL-bg-2.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
}

/* Blurred circle image in hero right third */
.blurred-edge-img {
position: absolute;
    right: -0%;
top: 50%;
transform: translateY(-50%) scale(1.2);
width: 43vw;
max-width: 720px;
min-width: 293px;
    pointer-events: none;
    -webkit-mask-image: radial-gradient(circle, black 28%, rgba(0,0,0,0.6) 50%, transparent 72%);
    mask-image: radial-gradient(circle, black 28%, rgba(0,0,0,0.6) 50%, transparent 72%);
    z-index: 2;
}
#s1 #hero::before {
    display: none;
}
#s1 #hero > * {
    position: relative;
    z-index: 1;
}
#s1 .hero-heading {
    font-family: 'Montserrat', sans-serif;
    font-size: 84px;
    line-height: 1.15;
    margin: 0 0 4px 0;
    letter-spacing: -0.5px;
}
#s1 .hero-white {
    color: #ffffff;
    font-weight: 700;
}
#s1 .hero-gray {
    color: #9aa5b4;
    font-weight: 500;
}
#s1 .hero-sub {
    font-family: 'Montserrat', sans-serif;
    font-size: 33px;
    font-weight: 600;
    color: #ffffff;
    margin-top: 20px;
    margin-bottom: 0;
}
#s1 .btn-outline { color: #ffffff; }
#s1 #hero .container {
    padding-left: 0;
}

/* ─── S2: KAPCSOLAT ────────────────────────────────────────── */
#s2 {
    display: flex;
    width: 100%;
    height: 100vh;
}
#s2 .s-left {
    flex: 1; padding: 60px 50px;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    background-color: #ffffff;
}
#s2 .s-left h2 {
    font-family: 'Montserrat', sans-serif; font-size: 56px; font-weight: 800;
    color: #0f2a4a; background-color: #ffffff; line-height: 1.2; margin-bottom: 24px;
}
#s2 .s-left p {
    font-family: 'Montserrat', sans-serif; font-size: 15px; font-weight: 400;
    color: #3a3a3a; background-color: #ffffff; line-height: 1.7;
    margin-bottom: 40px; max-width: 480px;
}
#s2 .s-right {
    flex: 1; padding: 60px 50px;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    background-color: #ffffff;
}
#s2 .s-right ul {
    list-style: none; display: flex; flex-direction: column; gap: 28px;
}
#s2 .s-right ul li {
    display: flex; align-items: flex-start; gap: 16px;
    font-family: 'Montserrat', sans-serif; font-size: 19px; font-weight: 700;
    color: #0f2a4a; background-color: #ffffff; line-height: 1.4;
}

/* ─── S3: SZOLGÁLTATÁSAINK ─────────────────────────────────── */
#s3 {
    min-height: 100vh; display: flex; align-items: center;
    background-color: #b0b5bc;
}
#s3 .s3-inner {
    max-width: 1100px; margin: 0 auto; padding: 60px 40px; width: 100%;
}
#s3 .s3-header { text-align: center; margin-bottom: 16px; }
#s3 .s3-header h2 {
    font-size: 2.8rem; font-weight: 300; color: #1a1a2e; margin-bottom: 24px;
}
#s3 .s3-header p {
    font-size: 1.05rem; font-weight: 700; color: #1a1a2e;
    text-align: left; line-height: 1.6; max-width: 800px;
}
#s3 .s3-divider {
    width: 120px; height: 2px; background-color: #c8c8d0;
    margin: 32px auto 48px auto;
}
#s3 .s3-content { display: flex; align-items: center; gap: 60px; }
#s3 .s3-text { flex: 1; }
#s3 .s3-text h3 {
    font-size: 1.55rem; font-weight: 800; color: #0d2255;
    line-height: 1.35; margin-bottom: 20px;
}
#s3 .s3-text p { font-size: 0.95rem; color: #333; line-height: 1.75; margin-bottom: 18px; }
#s3 .s3-text .highlight { color: #3a6fd8; }
#s3 .s3-text .cta { color: #3a6fd8; }
#s3 .btn-more {
    display: inline-block; margin-top: 10px; padding: 14px 28px;
    border: 2px solid #1a1a2e; color: #1a1a2e; font-size: 0.95rem; font-weight: 500;
    text-decoration: none; background: transparent; cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
#s3 .btn-more:hover { background-color: #1a1a2e; color: #fff; }
#s3 .s3-img-col { flex: 1; display: flex; justify-content: center; align-items: center; }
#s3 .diamond-wrap { position: relative; width: 360px; height: 360px; }
#s3 .diamond-bg {
    position: absolute; width: 100%; height: 100%;
    background-color: #e8e9ee; transform: rotate(45deg); border-radius: 24px;
}
#s3 .machine-placeholder {
    position: absolute; width: 85%; height: 85%;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    z-index: 1; display: flex; align-items: center; justify-content: center;
}
#s3 .machine-box {
    width: 160px; height: 220px;
    background: linear-gradient(160deg, #1a2a5e 60%, #2a3a7e 100%);
    border-radius: 8px; display: flex; flex-direction: column;
    align-items: center; justify-content: flex-start;
    padding: 12px 10px; box-shadow: 0 8px 32px rgba(0,0,0,0.18); position: relative;
}
#s3 .machine-screen {
    width: 100%; height: 80px; background: #fff; border-radius: 4px;
    margin-bottom: 10px; display: grid;
    grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 4px; padding: 6px;
}
#s3 .screen-cell { border-radius: 3px; }
#s3 .screen-cell.blue   { background: #3a6fd8; }
#s3 .screen-cell.gray   { background: #c8c8d0; }
#s3 .screen-cell.red    { background: #e84040; }
#s3 .screen-cell.yellow { background: #f5c300; }
#s3 .machine-label {
    font-size: 0.45rem; color: #c8d0e8; letter-spacing: 1px;
    margin-bottom: 8px; text-align: right; width: 100%;
}
#s3 .machine-body { width: 100%; flex: 1; background: #1e2f6a; border-radius: 4px; }
#s3 .machine-base { width: 200px; height: 18px; background: #aab0c0; border-radius: 4px; margin-top: -4px; }
#s3 .machine-brand { position: absolute; bottom: 10px; font-size: 0.38rem; color: #c8d0e8; letter-spacing: 1.5px; }

/* ─── S4: KIKNEK TUDUNK ────────────────────────────────────── */
#s4 { display: flex; width: 100%; height: 100vh; }
#s4 .s-left {
    flex: 1; padding: 60px 50px;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    background-color: #ffffff;
}
#s4 .s-left h2 {
    font-family: 'Montserrat', sans-serif; font-size: 56px; font-weight: 800;
    color: #0f2a4a; background-color: #ffffff; line-height: 1.2; margin-bottom: 24px;
}
#s4 .s-left p {
    font-family: 'Montserrat', sans-serif; font-size: 14px; font-weight: 400;
    color: #3a3a3a; background-color: #ffffff; line-height: 1.7;
    margin-bottom: 40px; max-width: 480px;
}
#s4 .s-right {
    flex: 1; padding: 60px 50px;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    background-color: #ffffff;
}
#s4 .s-right ul { list-style: none; display: flex; flex-direction: column; gap: 28px; }
#s4 .s-right ul li {
    display: flex; align-items: flex-start; gap: 16px;
    font-family: 'Montserrat', sans-serif; font-size: 19px; font-weight: 700;
    color: #0f2a4a; background-color: #ffffff; line-height: 1.4;
}

/* ─── S5: FACTORY IMAGE ────────────────────────────────────── */
#s5 { width: 100%; overflow: hidden; display: block; }
#s5 img { width: 100%; height: auto; display: block; }

/* ─── S6: MIÉRT VÁLASSZON ──────────────────────────────────── */
#s6 { display: flex; width: 100%; height: 100vh; background-color: #ffffff; }
#s6 .s-left {
    flex: 1; padding: 60px 50px;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
}
#s6 .s-left h2 {
    font-family: 'Montserrat', sans-serif; font-size: 56px; font-weight: 800;
    color: #0f2a4a; line-height: 1.2; margin-bottom: 24px;
}
#s6 .s-left p {
    font-family: 'Montserrat', sans-serif; font-size: 14px; font-weight: 400;
    color: #3a3a3a; line-height: 1.7;
    margin-bottom: 40px; max-width: 480px;
}
#s6 .s-right {
    flex: 1; padding: 60px 50px;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
}
#s6 .s-right ul { list-style: none; display: flex; flex-direction: column; gap: 28px; }
#s6 .s-right ul li {
    display: flex; align-items: flex-start; gap: 16px;
    font-family: 'Montserrat', sans-serif; font-size: 19px; font-weight: 600;
    color: #0f2a4a; line-height: 1.4;
}

/* ─── S-LEFT GROUP (keeps items left-aligned as a centred block) ── */
.s-left-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: 480px;
}

/* ─── S7: TÉRKÉP ───────────────────────────────────────────── */
#s7 { position: relative; width: 100%; height: 100vh; overflow: hidden; display: flex; align-items: center; }
#s7-map {
    position: absolute; top: 0; left: 0; width: 66%; height: 100vh; z-index: 0;
}
#s7 .map-frame {
    position: relative;
    z-index: 1;
    width: 40%;
    height: 70vh;
    border: 0;
    margin-left: 5%;
}
#s7 .panel {
    position: absolute; top: 0; right: 0; width: 52%; height: 100vh;
    z-index: 1;
    background-color: rgba(13, 34, 85, 0.92);
    clip-path: url(#panel-clip);
    display: flex; align-items: center; justify-content: center;
    padding: 60px 60px 60px 130px;
}
#s7 .panel-content { text-align: center; max-width: 420px; }
#s7 .panel-content h2 {
    font-family: 'Montserrat', sans-serif; font-size: 56px; font-weight: 800;
    color: #9aa5b4; text-align: center;
    line-height: 1.2; margin-bottom: 32px;
}
#s7 .panel-content p {
    font-family: 'Montserrat', sans-serif; font-size: 15px; font-weight: 400;
    color: #ffffff; text-align: center; line-height: 1.75;
}

/* ─── S8: KAPCSOLATFELVÉTEL ────────────────────────────────── */
#s8 {
    width: 100%; min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 60px 40px; background-color: #e8e9ec;
}
#s8 .s8-card { width: 100%; max-width: 1200px; }
#s8 h2 {
    font-family: 'Montserrat', sans-serif; font-size: 56px; font-weight: 800;
    color: #1a2a44; margin-bottom: 12px;
}
#s8 .subtitle {
    font-family: 'Montserrat', sans-serif; font-size: 14px; font-weight: 400;
    color: #4a4a4a; margin-bottom: 36px;
}
#s8 .input-row { display: flex; gap: 12px; margin-bottom: 12px; }
#s8 .input-row input, #s8 .input-row select {
    flex: 1; padding: 18px 20px; font-size: 1rem; color: #888;
    background-color: #ffffff; border: 1px solid #d8d9dc; outline: none;
    appearance: none; -webkit-appearance: none; font-family: inherit;
}
#s8 .input-row input::placeholder { color: #999; }
#s8 .select-wrap { flex: 1; position: relative; }
#s8 .select-wrap select { width: 100%; cursor: pointer; color: #888; }
#s8 .select-wrap .chevron {
    position: absolute; right: 18px; top: 50%;
    transform: translateY(-50%); font-size: 1rem; color: #555; pointer-events: none;
}
#s8 textarea {
    width: 100%; padding: 18px 20px; font-size: 1rem; color: #888;
    background-color: #ffffff; border: 1px solid #d8d9dc; outline: none;
    resize: none; height: 110px; font-family: inherit; margin-bottom: 20px;
}
#s8 textarea::placeholder { color: #999; }
#s8 .bottom-row { display: flex; align-items: flex-end; gap: 32px; }
#s8 .checkboxes { flex: 1; display: flex; flex-direction: column; gap: 10px; }
#s8 .check-item { display: flex; align-items: flex-start; gap: 12px; }
#s8 .check-item input[type="checkbox"] { display: none; }
#s8 .check-circle {
    width: 22px; height: 22px; min-width: 22px; border-radius: 50%;
    border: 2px solid #0d2255; background-color: #ffffff;
    display: flex; align-items: center; justify-content: center;
    margin-top: 1px; cursor: pointer; position: relative;
}
#s8 .check-item input[type="checkbox"]:checked + .check-circle::after {
    content: ''; width: 6px; height: 11px;
    border: 2.5px solid #0d2255; border-top: none; border-left: none;
    transform: rotate(45deg) translate(-1px, -1px); display: block;
}
#s8 .check-label { font-size: 0.85rem; color: #333; line-height: 1.55; cursor: pointer; }
#s8 .btn-submit {
    padding: 14px 48px;
    border: 2px solid #0d2255;
    color: #0d2255;
    background: transparent;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
    cursor: pointer;
    align-self: flex-end;
    transition: background 0.2s, color 0.2s;
}
#s8 .btn-submit:hover {
    background-color: #0d2255;
    color: #ffffff;
}

/* ─── SHARED COMPONENTS ────────────────────────────────────── */

/* Ghost outlined — light bg sections (S2, S4) */
.btn-contact {
    display: inline-block;
    padding: 14px 32px;
    border: 2px solid #0d2255;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    background: #0d2255;
    cursor: pointer;
    letter-spacing: 0.5px;
    width: fit-content;
    transition: background 0.2s, color 0.2s;
}
.btn-contact:hover {
    background-color: #162d5e;
    border-color: #162d5e;
    color: #9aa5b4;
}

/* Ghost outlined — S6 (same scheme, semantic alias) */
.btn-contact-dark {
    display: inline-block;
    padding: 14px 32px;
    border: 2px solid #0d2255;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    background: #0d2255;
    cursor: pointer;
    letter-spacing: 0.5px;
    width: fit-content;
    transition: background 0.2s, color 0.2s;
}
.btn-contact-dark:hover {
    background-color: #162d5e;
    border-color: #162d5e;
    color: #9aa5b4;
}

.diamond {
    width: 18px; height: 18px; min-width: 18px;
    background-color: #b8b8b8; transform: rotate(45deg); margin-top: 3px;
    border-radius: 4px;
}

/* ─── FOOTER ───────────────────────────────────────────────── */
#site-footer {
width: 100%; background-color: #273B54; color: #cdd3e0; padding: 48px 64px 24px 64px;
}
#site-footer .logo-row { display: flex; align-items: center; gap: 14px; margin-bottom: 40px; }
#site-footer .logo-icon { width: 48px; height: 48px; }
#site-footer .logo-text { display: flex; align-items: center; gap: 10px; }
#site-footer .logo-text .brand { font-size: 1.3rem; font-weight: 700; letter-spacing: 4px; color: #ffffff; }
#site-footer .logo-text .separator { color: #8899bb; font-size: 1rem; letter-spacing: 2px; }
#site-footer .logo-text .service { font-size: 1rem; font-weight: 400; letter-spacing: 4px; color: #8899bb; }
#site-footer .columns { display: flex; gap: 48px; margin-bottom: 40px; }
#site-footer .col { flex: 1; }
#site-footer .col-title { font-size: 0.82rem; font-weight: 700; color: #8899bb; margin-bottom: 12px; }
#site-footer .col p { font-style: normal; font-size: 0.88rem; color: #cdd3e0; line-height: 1.75; }
#site-footer .col p strong { color: #cdd3e0; }
#site-footer .col ul { list-style: none; padding: 0; margin-top: 4px; }
#site-footer .col ul li {
    font-size: 0.88rem; color: #cdd3e0; line-height: 1.9; padding-left: 14px; position: relative;
}
#site-footer .col ul li::before { content: "•"; position: absolute; left: 0; color: #8899bb; }
#site-footer .col ul li a { color: #cdd3e0; text-decoration: underline; text-underline-offset: 3px; }
#site-footer .col ul li a:hover { color: #ffffff; }
#site-footer .copyright {
    border-top: 1px solid #1e3570; padding-top: 18px;
    text-align: right; font-size: 0.82rem; color: #8899bb;
}

/* ─── FLUID TYPOGRAPHY (works at ALL widths, no breakpoint jumps) ── */
#s1 .hero-heading {
    font-size: clamp(28px, 5vw, 56px);
}
#s1 .hero-sub {
    font-size: clamp(15px, 2vw, 22px);
}
#s2 .s-left h2, #s4 .s-left h2, #s6 .s-left h2 {
    font-size: clamp(28px, 4vw, 56px);
}
#s7 .panel-content h2 {
    font-size: clamp(28px, 4vw, 56px);
}
#s8 h2 {
    font-size: clamp(28px, 4vw, 56px);
}

/* ─── MOBILE (≤ 768px) ──────────────────────────────────────── */
@media (max-width: 768px) {

    /* Nav */
    :root { --nav-height: 80px; }

    /* ── S1: Hero ── */
    #s1 #hero { min-height: 100svh; padding-bottom: 40px; }
    .blurred-edge-img {
        width: 100% !important;
        max-width: 320px !important;
    }

    /* ── S2, S4, S6: Stack panels vertically ── */
    #s2, #s4, #s6 {
        flex-direction: column;
        height: auto;
    }
    #s2 .s-left, #s2 .s-right,
    #s4 .s-left, #s4 .s-right,
    #s6 .s-left, #s6 .s-right {
        padding: 36px 20px;
    }
    #s2 .s-left p, #s4 .s-left p, #s6 .s-left p {
        margin-bottom: 24px;
    }
    #s2 .s-right ul, #s4 .s-right ul, #s6 .s-right ul {
        gap: 16px;
        padding: 0;
    }
    #s2 .s-right ul li,
    #s4 .s-right ul li,
    #s6 .s-right ul li {
        font-size: 15px;
        gap: 12px;
    }
    .btn-contact, .btn-contact-dark {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
    }

    /* ── S3: Blog cards — force single column, override Tailwind ── */
    #s3 { min-height: unset; align-items: unset; }
    #s3 .grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
    }
    #s3 > div { padding: 0 16px; }
    #s3 .text-center { padding: 0 16px; }

    /* ── S5: Factory image ── */
    #s5 {
        height: auto;
        position: static !important;
        left: auto !important;
        right: auto !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* ── S7: Map section — remove clip-path, stack content ── */
    #s7 {
        height: auto;
        min-height: unset;
        overflow: visible;
        display: block;
        padding: 60px 20px;
    }
    #s7 .s7-bg {
        background-size: cover;
        background-position: center;
    }
    #s7 .panel {
        position: relative;
        width: 100%;
        height: auto;
        clip-path: none;
        padding: 0;
        background-color: transparent;
        justify-content: flex-start;
    }
    #s7 .panel-content {
        max-width: 100%;
        text-align: left;
    }
    #s7 .panel-content h2 { margin-bottom: 20px; }
    #s7 .panel-content p { font-size: 14px; }

    /* ── S8: Contact form ── */
    #s8 { padding: 40px 16px; min-height: unset; }
    #s8 .input-row {
        flex-direction: column;
        gap: 10px;
    }
    #s8 .input-row input,
    #s8 .select-wrap { flex: unset; width: 100%; }
    #s8 .bottom-row {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
    #s8 .btn-submit {
        width: 100%;
        padding: 16px;
        align-self: unset;
    }
    #s8 textarea { height: 130px; }

    /* ── Footer ── */
    #site-footer { padding: 36px 20px 20px 20px; }
    #site-footer .columns {
        flex-direction: column;
        gap: 24px;
        margin-bottom: 28px;
    }
    #site-footer .copyright { text-align: center; font-size: 0.78rem; }

    /* ── Cookie banner (inline styles in _Layout — override here) ── */
    #site-nav + * ~ div[x-data="cookieConsent()"] {
        flex-direction: column !important;
        gap: 16px !important;
        padding: 16px !important;
    }
}

/* ─── TABLET (769px – 1024px) ───────────────────────────────── */
@media (min-width: 769px) and (max-width: 1024px) {

    /* ── S2, S4, S6 ── */
    #s2, #s4, #s6 { height: auto; min-height: 100svh; }
    #s2 .s-left, #s2 .s-right,
    #s4 .s-left, #s4 .s-right,
    #s6 .s-left, #s6 .s-right { padding: 48px 32px; }
    #s2 .s-right ul li,
    #s4 .s-right ul li,
    #s6 .s-right ul li { font-size: 16px; }

    /* ── S3: Blog — 2 column grid on tablet ── */
    #s3 .grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        grid-auto-flow: row !important;
        gap: 16px !important;
    }
    #s3 > div { padding: 0 24px; }

    /* ── S7 ── */
    #s7 .panel { padding: 40px 40px 40px 80px; }

    /* ── S8 ── */
    #s8 { padding: 60px 32px; }
    #s8 .input-row { flex-wrap: wrap; }
    #s8 .input-row input,
    #s8 .select-wrap { flex: 1 1 calc(50% - 6px); min-width: 0; }

    /* ── Footer ── */
    #site-footer { padding: 40px 32px 24px 32px; }
    #site-footer .columns { flex-wrap: wrap; gap: 28px; }
    #site-footer .col { flex: 1 1 calc(50% - 24px); }
}