/* ═══════════════════════════════════════════════════════
   STILL – KION Automation Center Hungary megnyitó – Stílusok
   ═══════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary:      #F96915;
    --primary-dark: #C2530F;
    --dark:     #231F20;
    --grey-bg:  #F4F4F4;
    --grey-mid: #E0E0E0;
    --graphite: #1C1C1C;
    --text:     #444444;
    --white:    #FFFFFF;
    --max-w:    1160px;
    --section:  80px;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', Arial, sans-serif; color: var(--dark); font-size: 15px; line-height: 1.6; }
img  { max-width: 100%; display: block; }
a    { color: inherit; text-decoration: none; }

/* ── Segédosztályok ─────────────────────────────────── */
.container   { max-width: var(--max-w); margin: 0 auto; padding: 0 40px; }
.section     { padding: var(--section) 0; }
.section-sm  { padding: 60px 0; }
.label       { font-size: 11px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; }
.label-primary { color: var(--primary); }
.label-muted { color: #999; }
.divider     { width: 48px; height: 3px; background: var(--primary); margin: 14px 0 22px; }
.divider-center { margin: 14px auto 22px; }
h2 { font-size: 34px; font-weight: 900; line-height: 1.1; color: var(--dark); }
h3 { font-size: 20px; font-weight: 700; }
p  { color: var(--text); line-height: 1.8; }

/* ── Gombok ──────────────────────────────────────────── */
.btn-primary {
    display: inline-block; background: var(--primary); color: #fff;
    padding: 13px 32px; font-weight: 700; font-size: 12px;
    letter-spacing: 1.5px; text-transform: uppercase; border: none;
    cursor: pointer; transition: background .2s;
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline-white {
    display: inline-block; border: 2px solid #fff; color: #fff;
    padding: 11px 30px; font-weight: 700; font-size: 12px;
    letter-spacing: 1.5px; text-transform: uppercase; background: transparent;
    cursor: pointer; transition: background .2s, color .2s;
}
.btn-outline-white:hover { background: #fff; color: var(--dark); }
.btn-outline-dark {
    display: inline-block; border: 2px solid var(--dark); color: var(--dark);
    padding: 11px 30px; font-weight: 700; font-size: 12px;
    letter-spacing: 1.5px; text-transform: uppercase; background: transparent;
    cursor: pointer; transition: background .2s, color .2s;
}
.btn-outline-dark:hover { background: var(--dark); color: #fff; }
.btn-outline-primary {
    display: inline-block; border: 2px solid var(--primary); color: var(--primary);
    padding: 9px 24px; font-weight: 700; font-size: 11px;
    letter-spacing: 1.5px; text-transform: uppercase; background: transparent;
    cursor: pointer; transition: background .2s, color .2s;
}
.btn-outline-primary:hover { background: var(--primary); color: #fff; }

/* ── Navbar ──────────────────────────────────────────── */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: #fff; border-bottom: 2px solid var(--primary);
    height: 60px; display: flex; align-items: center;
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.navbar-logo {
    display: flex; align-items: center; gap: 10px;
    font-weight: 900; font-size: 13px; color: var(--dark);
    text-transform: uppercase; letter-spacing: 1px;
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
    font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
    text-transform: uppercase; color: var(--dark); padding: 8px 14px;
    transition: color .2s;
}
.nav-link:hover { color: var(--primary); }
.nav-link.external::after { content: ' ↗'; font-size: 9px; }
.nav-cta { margin-left: 8px; }

/* ── Hero ────────────────────────────────────────────── */
.hero {
    min-height: 100vh; padding-top: 60px;
    background: #0a0a0a;
    display: flex; align-items: center;
    position: relative; overflow: hidden;
}
.hero-bg-img {
    position: absolute; inset: 0;
    background: url('/assets/img/STILL-hero-bg.webp') center center / cover no-repeat;
    z-index: 0;
}
.hero-bg-overlay {
    position: absolute; inset: 0; z-index: 0;
    background: rgba(0,0,0,0.6);
}
.hero-logo-main {
    display: block;
    width: 200px;
    height: auto;
}
.hero .container { position: relative; z-index: 1; }
.hero-inner { padding: 90px 0; max-width: 640px; }
.hero-tag {
    display: inline-block; background: var(--primary); color: #fff;
    font-size: 10px; font-weight: 700; letter-spacing: 2px;
    text-transform: uppercase; padding: 5px 14px; margin-bottom: 20px;
}
.hero-title-main { font-size: 38px; font-weight: 900; color: #fff; line-height: 1.15; margin-bottom: 4px; }
.hero-desc { color: #ddd; font-size: 14.5px; margin-bottom: 12px; line-height: 1.8; }

/* ── Info kártyák ────────────────────────────────────── */
.info-cards { background: var(--grey-bg); }
.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.info-card { background: #fff; padding: 30px 24px; border-top: 3px solid var(--primary); }
.info-card-icon { font-size: 30px; color: var(--primary); margin-bottom: 16px; display: block; }
.info-card-label { font-size: 10px; font-weight: 700; color: #999; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 8px; }
.info-card-value { font-size: 16px; font-weight: 700; color: var(--dark); line-height: 1.4; }
.info-card-note  { font-size: 12px; color: #aaa; font-weight: 400; }

/* ── Split block ─────────────────────────────────────── */
.split-block { display: grid; grid-template-columns: 1fr 1fr; }
.split-image { background: #2a2a2a; min-height: 400px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.split-image img { width: 100%; height: 100%; object-fit: cover; }
.split-content { background: #fff; padding: 80px 60px; display: flex; flex-direction: column; justify-content: center; }

/* ── Regisztráció ────────────────────────────────────── */
.registration { background: var(--primary); padding: 80px 0; }
.reg-inner { display: grid; grid-template-columns: 1fr 1.5fr; gap: 70px; align-items: start; }
.reg-intro .label { color: rgba(255,255,255,0.7); margin-bottom: 14px; }
.reg-intro h2 { color: #fff; font-size: 36px; margin-bottom: 20px; }
.reg-intro .divider { background: rgba(255,255,255,0.5); }
.reg-intro p  { color: rgba(255,255,255,0.9); font-size: 14px; }
.reg-form { background: #fff; padding: 40px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 14px; }
.form-label { font-size: 10px; font-weight: 700; color: #888; letter-spacing: 1.2px; text-transform: uppercase; display: block; margin-bottom: 5px; }
.form-control {
    width: 100%; padding: 11px 14px; border: 1px solid #ddd;
    font-size: 13px; font-family: inherit; color: var(--dark);
    transition: border-color .2s; background: #fafafa;
}
.form-control:focus { outline: none; border-color: var(--primary); background: #fff; }
.form-control::placeholder { color: #bbb; }
.form-check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.form-check input { margin-top: 3px; width: 15px; height: 15px; accent-color: var(--primary); flex-shrink: 0; }
.form-check label { font-size: 12px; color: #666; line-height: 1.5; }
.form-check label a { color: var(--primary); text-decoration: underline; }
.btn-submit { width: 100%; padding: 15px; background: var(--dark); color: #fff; border: none; font-weight: 700; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; cursor: pointer; transition: background .2s; display: flex; align-items: center; justify-content: center; gap: 10px; }
.btn-submit:hover { background: #000; }
.form-error { font-size: 11px; color: var(--primary-dark); margin-top: 3px; }
.alert-error { background: #fff0f0; border: 1px solid #ffd0d0; color: #c40000; padding: 12px 16px; font-size: 13px; margin-bottom: 16px; }
.alert-dup    { background: #fff8e1; border: 1px solid #ffe082; color: #8c6d00; padding: 12px 16px; font-size: 13px; margin-bottom: 16px; }

/* ── Záró CTA ────────────────────────────────────────── */
.cta-close { background: var(--dark); padding: 80px 0; text-align: center; }
.cta-line1 { font-size: 28px; font-weight: 900; color: #fff; }
.cta-line2 { font-size: 28px; font-weight: 900; color: var(--primary); }
.cta-date  { font-size: 18px; font-weight: 700; color: #999; margin: 8px 0 36px; }

/* ── Footer ──────────────────────────────────────────── */
.footer { background: #111; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-about { font-size: 12px; color: #666; line-height: 1.7; max-width: 240px; }
.footer-social { display: flex; gap: 14px; margin-top: 18px; }
.footer-social a { color: #555; font-size: 18px; transition: color .2s; }
.footer-social a:hover { color: var(--primary); }
.footer-col-title { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #666; margin-bottom: 14px; }
.footer-link { font-size: 12px; color: #666; display: block; margin-bottom: 8px; transition: color .2s; }
.footer-link:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #1e1e1e; padding-top: 24px; display: flex; justify-content: space-between; align-items: center; }
.footer-copy { font-size: 11px; color: #444; }

/* ── Reszponzív ──────────────────────────────────────── */
@media (max-width: 1024px) {
    .cards-grid         { grid-template-columns: repeat(2, 1fr); }
    .split-block        { grid-template-columns: 1fr; }
    .split-content      { padding: 60px 40px; }
    .reg-inner          { grid-template-columns: 1fr; }
    .footer-grid        { grid-template-columns: 1fr 1fr; }
}
/* ── Hamburger ───────────────────────────────────────── */
.nav-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 200;
}
.nav-burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #231F20;
    transition: all .25s;
    transform-origin: center;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
    :root { --section: 56px; }
    .hero       { padding-top: 60px; }
    .container  { padding: 0 20px; }
    h2          { font-size: 26px; }
    .hero-title-main { font-size: 30px; }
    .cards-grid  { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .form-row    { grid-template-columns: 1fr; }

    /* Hamburger megjelenik, nav-cta eltűnik */
    .nav-burger { display: flex; }
    .nav-cta    { display: none !important; }

    /* Mobil menü */
    .nav-links {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 60px; left: 0; right: 0;
        background: #fff;
        border-top: 2px solid var(--primary);
        box-shadow: 0 8px 24px rgba(0,0,0,0.12);
        padding: 16px 0;
        z-index: 150;
        transform: translateY(-110%);
        transition: transform .28s ease;
        pointer-events: none;
    }
    .nav-links.open {
        transform: translateY(0);
        pointer-events: auto;
    }
    .nav-links .nav-link {
        padding: 14px 24px;
        font-size: 14px;
        border-bottom: 1px solid #f0f0f0;
        display: block;
    }
    /* Regisztrálok gomb a menü aljára */
    .nav-link-reg {
        border: 2px solid var(--primary) !important;
        color: var(--primary) !important;
        font-weight: 700 !important;
        text-align: center;
        margin: 8px 24px 8px !important;
        padding: 11px 24px !important;
        letter-spacing: 1px;
        border-bottom: 2px solid var(--primary) !important;
    }
}
