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

/* ─── RESET & BASE ─────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg-light:    #f1f5f9;
    --bg-mid:      #cbd5e1;
    --ink:         #0f172a;
    --ink-mid:     #334155;
    --ink-soft:    #64748b;
    --accent:      #2563eb;
    --accent-dim:  #1d4ed8;
    --white:       #ffffff;
    --border:      #e2e8f0;
    --font-display: 'Barlow Condensed', sans-serif;
    --font-body:    'Barlow', sans-serif;
}

html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: var(--font-body); background: var(--bg-light); color: var(--ink); overflow-x: hidden; }

/* ─── SCROLL ANIMATIONS (REVEAL) ────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

/* ─── HEADER / NAV ──────────────────────────────────────── */
#site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 0 4vw;
    height: 72px;
    display: flex;
    align-items: center;
    background: transparent;
    transition: transform 0.4s cubic-bezier(0.3, 1, 0.2, 1), background 0.3s, border 0.3s;
    border-bottom: 1px solid transparent;
}
/* Okos menü stílusok */
#site-header.scrolled {
    background: rgba(15,23,42,0.95);
    backdrop-filter: blur(12px);
    border-bottom-color: rgba(37,99,235,0.3);
}
#site-header.hide {
    transform: translateY(-100%);
}

#site-header .logo { color: var(--ink); transition: color 0.3s; }
#site-header.scrolled .logo { color: var(--white); }
#site-header .logo span { color: var(--accent); }

.nav-links a {
    color: var(--ink-mid);
    transition: color 0.25s;
}
#site-header.scrolled .nav-links a { color: rgba(255,255,255,0.7); }
#site-header.scrolled .nav-links a:hover { color: var(--white); }

#site-header.scrolled .nav-links .nav-cta { color: var(--white); background: var(--accent); }
#site-header.scrolled .hamburger span { background: var(--white); }

.nav-inner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: 3px;
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}
.nav-links a {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-decoration: none;
}
.nav-links a:hover { color: var(--ink); }
.nav-links .nav-cta {
    padding: 10px 22px;
    background: var(--ink);
    color: var(--white) !important;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: background 0.25s, transform 0.2s;
}
.nav-links .nav-cta:hover { background: var(--accent); transform: translateY(-1px); }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}
.hamburger span {
    display: block;
    width: 26px;
    height: 2.5px;
    background: var(--ink);
    transition: 0.3s ease;
}

/* ─── HERO ──────────────────────────────────────────────── */
#hero {
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(135deg, #f1f5f9 0%, #dde6f0 50%, #cbd5e1 100%);
    display: flex;
    align-items: center;
    position: relative;
    padding: 72px 0 0;
    overflow: hidden;
}
#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(37,99,235,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(37,99,235,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.hero-art {
    position: absolute;
    left: 6vw;
    top: 50%;
    transform: translateY(-50%);
    width: 380px;
    height: 380px;
    pointer-events: none;
}
.shape { position: absolute; }
.rect-outline {
    width: 240px; height: 240px;
    background: transparent;
    border: 6px solid var(--accent);
    top: 20px; left: 80px;
    opacity: 0.5;
}
.rect-solid-light {
    width: 290px; height: 170px;
    background: #dde6f0;
    border: 1px solid #cbd5e1;
    top: 100px; left: 0;
}
.rect-solid-dark {
    width: 170px; height: 210px;
    background: #334155;
    top: 150px; left: 148px;
}

.hero-text {
    position: relative;
    z-index: 5;
    margin-left: auto;
    margin-right: 15vw;
    max-width: 600px;
    padding-left: 2rem;
}

.hero-tag {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 2px;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
}

.hero-text h1 {
    font-family: var(--font-display);
    font-size: clamp(4.5rem, 9vw, 8rem);
    font-weight: 900;
    color: var(--ink);
    line-height: 0.88;
    letter-spacing: 6px;
    margin-bottom: 1.8rem;
    text-transform: uppercase;
}
.hero-text h1 span {
    color: var(--accent);
    display: block;
    -webkit-text-stroke: 2px var(--accent);
    color: transparent;
}

.hero-text p {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--ink-mid);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 440px;
}

.hero-actions { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.btn-primary {
    display: inline-block;
    padding: 17px 40px;
    background: var(--ink);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-decoration: none;
    text-transform: uppercase;
    border: 2px solid var(--ink);
    transition: background 0.25s, color 0.25s, transform 0.2s;
}
.btn-primary:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }

.btn-ghost {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink-mid);
    text-decoration: none;
    transition: color 0.25s;
    letter-spacing: 0.5px;
}
.btn-ghost:hover { color: var(--accent); }

.hero-scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.5;
}
.hero-scroll-hint span {
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ink-mid);
    font-weight: 600;
}
.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(var(--ink-mid), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.1); }
}

/* ─── SECTION COMMONS ───────────────────────────────────── */
section { padding: 100px 8vw; }

.section-label {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.section-label.light { color: rgba(96,165,250,1); }

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    font-weight: 900;
    color: var(--ink);
    line-height: 0.92;
    letter-spacing: 4px;
    margin-bottom: 3rem;
    text-transform: uppercase;
}
.section-title.light { color: var(--white); }

.section-sub {
    color: var(--ink-soft);
    font-size: 1rem;
    font-weight: 500;
    max-width: 520px;
    line-height: 1.7;
    margin-bottom: 3rem;
}

/* ─── ABOUT ──────────────────────────────────────────────── */
#about { background: var(--white); border-top: 1px solid var(--border); }
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.about-right p {
    color: var(--ink-mid);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}
.about-right p:last-child { margin-bottom: 0; }

/* ─── PROCESS ────────────────────────────────────────────── */
#process { background: var(--ink); color: var(--white); }
.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.1);
}
.process-card {
    background: var(--ink);
    padding: 3.5rem 2.5rem;
    position: relative;
    transition: background 0.3s;
}
.process-card:hover { background: #152238; }
.process-card::before {
    content: attr(data-num);
    position: absolute;
    top: 1.5rem; right: 1.5rem;
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 900;
    color: rgba(255,255,255,0.03);
    line-height: 1;
    pointer-events: none;
    transition: color 0.3s;
}
.process-card:hover::before { color: rgba(37,99,235,0.1); }
.process-card h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 1px;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}
.process-card p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
    position: relative;
    z-index: 2;
}

/* ─── GUARANTEE ──────────────────────────────────────────── */
#guarantee { background: var(--white); }

/* ─── CONTACT ────────────────────────────────────────────── */
#contact {
    background: var(--bg-light);
    border-top: 1px solid var(--border);
    padding: 100px 8vw;
}
.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 6rem;
    align-items: start;
}
/* Ezt a szekciót átszínezzük világosra, hogy elváljon a lábléctől */
#contact .section-title.light,
#contact .section-label.light { color: var(--ink); }
#contact .section-label.light { color: var(--accent); }
#contact .contact-left p { color: var(--ink-mid); font-size: 1rem; line-height: 1.75; margin-bottom: 3rem; max-width: 360px; }
.contact-details { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-detail { display: flex; flex-direction: column; gap: 0.3rem; }
.cd-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); }
.contact-detail span:last-child { color: var(--ink); font-size: 0.95rem; font-weight: 600; }

/* Form styles light version */
.contact-form-wrap { display: flex; flex-direction: column; gap: 1.5rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label { font-size: 0.78rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-soft); }
.form-group input, .form-group textarea, .form-group select {
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 14px 16px;
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s;
    width: 100%;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: #94a3b8; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.form-group textarea { resize: vertical; min-height: 100px; }

/* Service Selector Light */
.service-selector { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.service-option { cursor: pointer; }
.service-option input[type="radio"] { display: none; }
.so-box {
    display: flex; flex-direction: column; gap: 0.3rem; padding: 1rem 1rem;
    border: 1px solid var(--border); background: var(--white);
    transition: all 0.25s; cursor: pointer;
}
.service-option:hover .so-box { border-color: var(--ink-mid); }
.service-option input:checked + .so-box { border-color: var(--accent); background: rgba(37,99,235,0.05); }
.so-num { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; color: var(--ink-mid); opacity: 0.3; line-height: 1; }
.service-option input:checked + .so-box .so-num { color: var(--accent); opacity: 1; }
.so-name { font-size: 0.82rem; font-weight: 700; color: var(--ink); letter-spacing: 0.5px; }
.so-desc { font-size: 0.72rem; color: var(--ink-soft); font-weight: 500; }

.btn-submit {
    display: flex; align-items: center; justify-content: space-between; width: 100%;
    padding: 18px 24px; background: var(--ink); border: none; color: var(--white);
    font-family: var(--font-display); font-size: 1.05rem; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase; cursor: pointer;
    transition: background 0.25s, transform 0.2s;
}
.btn-submit:hover { background: var(--accent); transform: translateY(-2px); }
.btn-submit .btn-arrow { font-size: 1.3rem; transition: transform 0.25s; }
.btn-submit:hover .btn-arrow { transform: translateX(5px); }

.form-success {
    display: none; align-items: center; gap: 1rem; padding: 1.2rem 1.5rem;
    border: 1px solid rgba(37,99,235,0.4); background: rgba(37,99,235,0.1);
    color: var(--ink); font-size: 0.9rem; font-weight: 600;
}
.form-success svg { width: 24px; height: 24px; flex-shrink: 0; }
.form-success.visible { display: flex; }

/* ─── FOOTER ─────────────────────────────────────────────── */
#footer { background: #070d1a; padding: 32px 8vw; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-logo { font-family: var(--font-display); font-size: 1.1rem; font-weight: 900; letter-spacing: 3px; color: rgba(255,255,255,0.3); }
.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.2); font-weight: 500; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 0.78rem; font-weight: 600; color: rgba(255,255,255,0.25); text-decoration: none; transition: color 0.25s; letter-spacing: 1px; }
.footer-links a:hover { color: rgba(255,255,255,0.6); }

.website-field-wrap {
    display: none !important;
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 900px) {
    .hamburger { display: flex; }
    .nav-links {
        position: fixed; top: 72px; left: 0; right: 0;
        background: rgba(15,23,42,0.98); backdrop-filter: blur(10px);
        flex-direction: column; align-items: flex-start;
        padding: 2rem 4vw; gap: 1.5rem;
        transform: translateY(-150%); transition: transform 0.4s cubic-bezier(.77,0,.18,1);
        z-index: 99; border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .nav-links.open { transform: translateY(0); }
    .nav-links a { color: rgba(255,255,255,0.8) !important; font-size: 1rem; }
    .nav-links .nav-cta { color: var(--white) !important; }
}

@media (max-width: 860px) {
    .hero-art { display: none; }
    .hero-text { margin: 0 auto; padding: 2rem 4vw; text-align: center; }
    .hero-text p { margin: 0 auto 2.5rem; }
    .hero-actions { justify-content: center; }
    section { padding: 70px 5vw; }
    .about-grid, .contact-inner { grid-template-columns: 1fr; gap: 3rem; }
    .process-grid { grid-template-columns: 1fr; }
    .service-selector { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
    .hero-text h1 { letter-spacing: 3px; }
    .section-title { font-size: 2.4rem; }
    .footer-inner { flex-direction: column; text-align: center; }
}