/* =============================================================
   JLJ Top Cleaning Kft. – Fő stíluslap
   ============================================================= */

:root {
    --ink:        #0d1822;
    --ink-2:      #142430;
    --muted:      #68737d;
    --paper:      #f6f7f4;
    --white:      #fff;
    --line:       #dfe4e1;
    --accent:     #7bd92f;
    --accent-dark:#5bbb16;
    --shadow:     0 18px 60px rgba(13,24,34,.12);
    --radius:     20px;
    --container:  1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button, input, textarea { font: inherit; }

.container { width: min(calc(100% - 40px), var(--container)); margin: auto; }

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .16em;
    font-size: .78rem;
    font-weight: 800;
    color: var(--accent-dark);
    margin-bottom: 14px;
}

h1, h2, h3, p { margin-top: 0; }
h1 {
    font-size: clamp(2.7rem, 6vw, 5.6rem);
    line-height: .98;
    letter-spacing: -.05em;
    max-width: 850px;
    margin-bottom: 24px;
}
h2 {
    font-size: clamp(2.1rem, 4vw, 4rem);
    line-height: 1.05;
    letter-spacing: -.04em;
    margin-bottom: 20px;
}
h3 { font-size: 1.35rem; line-height: 1.2; letter-spacing: -.02em; }
p  { color: var(--muted); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 22px;
    border-radius: 10px;
    font-weight: 800;
    border: 1px solid transparent;
    transition: .25s ease;
    cursor: pointer;
}
.btn-primary  { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: #8de543; transform: translateY(-2px); }
.btn-secondary { border-color: rgba(255,255,255,.38); color: #fff; background: rgba(255,255,255,.03); }
.btn-secondary:hover { background: rgba(255,255,255,.08); }
.arrow { font-size: 1.15em; }

/* ─── Header / Nav ────────────────────────────────────────── */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(13,24,34,.08);
    transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: 0 6px 32px rgba(13,24,34,.13); }

.nav {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 900; letter-spacing: -.03em; }
.brand-mark {
    width: 42px; height: 42px; border-radius: 12px; background: var(--ink);
    display: grid; place-items: center; color: var(--accent); font-weight: 900;
    position: relative; overflow: hidden;
}
.brand-mark::after {
    content: ""; position: absolute; width: 18px; height: 10px; border-radius: 100% 0 100% 0;
    background: var(--accent); transform: rotate(-28deg);
}
.brand-copy { line-height: 1; }
.brand-copy small { display: block; font-size: .58rem; letter-spacing: .08em; margin-top: 5px; color: #61707a; }

.menu { display: flex; align-items: center; gap: 30px; font-weight: 700; font-size: .92rem; }
.menu a { color: #4a5862; }
.menu a:hover { color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 18px; }
.phone { font-weight: 800; font-size: .9rem; }
.mobile-toggle { display: none; border: 0; background: none; font-size: 1.6rem; cursor: pointer; }

/* ─── Hero ────────────────────────────────────────────────── */
.hero {
    --hero-bg-img: url("https://images.unsplash.com/photo-1565793298595-6a879b1d9492?auto=format&fit=crop&w=2000&q=88");
    min-height: 760px;
    position: relative;
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
    background: #0b1520;
}
/* Ken Burns: a háttérkép animált pszeudo-elemen */
.hero::after {
    content: "";
    position: absolute;
    inset: -6%;
    z-index: 0;
    background: var(--hero-bg-img) center/cover no-repeat;
    animation: kenBurns 18s ease-in-out infinite alternate;
    will-change: transform;
}
/* Gradient + grid textúra overlay */
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background:
        linear-gradient(90deg,rgba(7,18,27,.96) 0%,rgba(7,18,27,.92) 38%,rgba(7,18,27,.45) 65%,rgba(7,18,27,.16) 100%),
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: auto, 36px 36px, 36px 36px;
    mask-image: linear-gradient(to right, #000, transparent 60%);
}
.hero-inner { position: relative; z-index: 2; padding: 100px 0 70px; }
.hero p { color: rgba(255,255,255,.82); max-width: 660px; font-size: 1.12rem; margin-bottom: 32px; }
.hero strong.accent { color: var(--accent); }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 52px; }
.featured {
    display: flex; align-items: center; gap: 20px;
    border-top: 1px solid rgba(255,255,255,.18);
    width: max-content;
    padding-top: 24px;
}
.featured-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: rgba(255,255,255,.55); font-weight: 800; }
.featured img { height: 38px; width: auto; filter: brightness(0) invert(1); opacity: .9; }
.hero-badge {
    position: absolute; right: 0; bottom: 42px;
    padding: 18px 22px;
    border-left: 3px solid var(--accent);
    background: rgba(9,22,31,.82);
    backdrop-filter: blur(10px);
    text-transform: uppercase;
    font-size: .75rem;
    letter-spacing: .08em;
    font-weight: 800;
    line-height: 1.35;
}

/* ─── Sections ────────────────────────────────────────────── */
.section { padding: 110px 0; }

.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 70px; align-items: center; }
.about-photo {
    --about-bg-img: url("https://images.unsplash.com/photo-1581094794329-c8112a89af12?auto=format&fit=crop&w=1200&q=85");
    min-height: 560px; border-radius: 22px; overflow: hidden; position: relative; box-shadow: var(--shadow);
    background:
        linear-gradient(to top, rgba(6,17,24,.3), transparent 55%),
        var(--about-bg-img) center/cover;
}
.about-note {
    position: absolute; right: 24px; bottom: 24px;
    width: 220px; padding: 20px; border-radius: 14px;
    color: #fff; background: rgba(12,26,35,.88); backdrop-filter: blur(10px);
    font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800;
}
.about-copy p { font-size: 1.04rem; max-width: 620px; }
.mini-features {
    display: grid; grid-template-columns: repeat(4,1fr); gap: 20px;
    margin-top: 38px; padding-top: 28px; border-top: 2px solid var(--accent);
}
.mini-feature { font-size: .78rem; font-weight: 800; color: var(--ink); }
.mini-icon {
    width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 12px;
    display: grid; place-items: center; margin-bottom: 12px; font-size: 1.1rem;
    transition: transform .25s ease, background .25s ease, border-color .25s ease;
}
.mini-feature:hover .mini-icon { transform: scale(1.15); background: var(--accent); border-color: var(--accent); }

/* ─── Services ────────────────────────────────────────────── */
.services { padding-top: 96px; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.section-head p { max-width: 620px; margin: 0 auto; }
.service-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.service-card {
    min-height: 300px;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
    isolation: isolate;
    transition: .3s ease;
    box-shadow: 0 6px 22px rgba(6,18,26,.08);
}
.service-card:hover { transform: translateY(-5px); }
.service-card::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(to top, rgba(6,17,24,.9), rgba(6,17,24,.08));
}
/* Háttérkép elem (a ::after pseudo-element helyett, hogy az image_url shortcode-ból jöhessen) */
.service-card__bg {
    position: absolute; inset: 0; z-index: -2;
    background-position: center; background-size: cover;
    transition: transform .6s ease;
}
.service-card:hover .service-card__bg { transform: scale(1.07); }
.service-no { font-size: 2.1rem; color: var(--accent); font-weight: 900; margin-bottom: auto; }
.service-card h3 { font-size: 1.55rem; margin-bottom: 8px; }
.service-card p { color: rgba(255,255,255,.78); margin-bottom: 0; max-width: 430px; }
.service-link {
    position: absolute; right: 28px; bottom: 28px;
    width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%;
    display: grid; place-items: center; font-size: 1.2rem;
}

/* ─── Why ─────────────────────────────────────────────────── */
.why {
    --why-bg-img: url("https://images.unsplash.com/photo-1565793298595-6a879b1d9492?auto=format&fit=crop&w=1600&q=70");
    background:
        linear-gradient(rgba(8,22,31,.96), rgba(8,22,31,.96)),
        var(--why-bg-img) center/cover;
    color: #fff;
}
.why-grid {
    display: grid; grid-template-columns: 1.15fr repeat(3,1fr);
    gap: 0; border-top: 1px solid rgba(255,255,255,.14); border-bottom: 1px solid rgba(255,255,255,.14);
}
.why-intro, .why-item { padding: 42px 34px; min-height: 290px; }
.why-intro { padding-left: 0; }
.why-intro h2 { font-size: clamp(2.4rem,4vw,4.6rem); margin-bottom: 0; }
.why-item { border-left: 1px solid rgba(255,255,255,.14); }
.why-num { font-size: 1.7rem; color: rgba(255,255,255,.42); font-weight: 900; margin-bottom: 46px; }
.why-item h3 { font-size: 1.35rem; margin-bottom: 12px; }
.why-item p { color: rgba(255,255,255,.68); font-size: .93rem; }

/* ─── Partners ────────────────────────────────────────────── */
.partners { background: #fff; }
.logo-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 26px; margin-top: 50px; }
.logo-card {
    min-height: 105px; border: 1px solid var(--line); border-radius: 16px; background: #fff;
    display: grid; place-items: center; padding: 18px;
    transition: .25s ease;
}
.logo-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(13,24,34,.08); }
.logo-card img {
    max-width: 150px; max-height: 56px; object-fit: contain;
    filter: grayscale(1); opacity: .72; transition: .25s ease;
}
.logo-card:hover img { filter: grayscale(0); opacity: 1; }

/* ─── CTA ─────────────────────────────────────────────────── */
.cta { padding: 0; background: #fff; }
.cta-wrap {
    --cta-bg-img: url("https://images.unsplash.com/photo-1565793298595-6a879b1d9492?auto=format&fit=crop&w=1800&q=80");
    min-height: 300px;
    display: flex; align-items: center; justify-content: space-between; gap: 40px;
    padding: 52px;
    color: #fff;
    border-radius: 22px;
    overflow: hidden;
    position: relative;
    background:
        linear-gradient(90deg, rgba(7,19,28,.96), rgba(7,19,28,.72)),
        var(--cta-bg-img) center/cover;
}
.cta-copy { position: relative; z-index: 1; max-width: 700px; }
.cta h2 { font-size: clamp(2.2rem,4vw,4.4rem); margin-bottom: 12px; }
.cta p { color: rgba(255,255,255,.73); margin: 0; }

/* ─── Contact ─────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 74px; align-items: start; }
.contact-list { display: grid; gap: 18px; margin-top: 34px; }
.contact-item { display: flex; gap: 14px; align-items: center; font-weight: 700; }
.contact-ico { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; display: grid; place-items: center; }
.form-card { background: #fff; border-radius: 20px; padding: 30px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
label { font-size: .78rem; font-weight: 800; color: #52616b; }
input, textarea {
    width: 100%; border: 1px solid #dbe2df; background: #fbfcfb;
    border-radius: 10px; padding: 14px 15px; outline: none; transition: .2s ease;
}
input:focus, textarea:focus { border-color: var(--accent-dark); box-shadow: 0 0 0 3px rgba(123,217,47,.12); }
textarea { min-height: 130px; resize: vertical; }
.form-card .btn { width: 100%; margin-top: 16px; }

/* ─── Footer ──────────────────────────────────────────────── */
footer { background: #0a1720; color: #fff; padding: 34px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-nav { display: flex; gap: 22px; color: rgba(255,255,255,.65); font-size: .82rem; }
.copyright { color: rgba(255,255,255,.48); font-size: .78rem; text-align: right; }

/* ─── Scroll reveal ───────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ─── Ken Burns ───────────────────────────────────────────── */
@keyframes kenBurns {
    from { transform: scale(1)    translate(0, 0); }
    to   { transform: scale(1.08) translate(-2%, -1%); }
}

/* ─── Hero entrance ───────────────────────────────────────── */
@keyframes heroSlide  { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
@keyframes heroSlideX { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
.hero-inner > h1  { animation: heroSlide  .85s cubic-bezier(.23,1,.32,1) .10s both; }
.hero-inner > p   { animation: heroSlide  .85s cubic-bezier(.23,1,.32,1) .30s both; }
.hero-ctas        { animation: heroSlide  .85s cubic-bezier(.23,1,.32,1) .48s both; }
.featured         { animation: heroSlide  .85s cubic-bezier(.23,1,.32,1) .66s both; }
.hero-badge       { animation: heroSlideX .85s cubic-bezier(.23,1,.32,1) .82s both; }

/* ─── Irányfüggő reveal ───────────────────────────────────── */
[data-anim=left].reveal  { transform: translateX(-34px); }
[data-anim=right].reveal { transform: translateX(34px); }
[data-anim=left].reveal.in, [data-anim=right].reveal.in { transform: none; }

/* ─── Stagger delays ──────────────────────────────────────── */
.service-card.reveal:nth-child(2) { transition-delay: 100ms; }
.service-card.reveal:nth-child(3) { transition-delay: 200ms; }
.service-card.reveal:nth-child(4) { transition-delay: 300ms; }
.why-item.reveal:nth-child(2) { transition-delay: 100ms; }
.why-item.reveal:nth-child(3) { transition-delay: 200ms; }
.why-item.reveal:nth-child(4) { transition-delay: 300ms; }
.logo-card.reveal:nth-child(2)  { transition-delay:  65ms; }
.logo-card.reveal:nth-child(3)  { transition-delay: 130ms; }
.logo-card.reveal:nth-child(4)  { transition-delay: 195ms; }
.logo-card.reveal:nth-child(5)  { transition-delay: 260ms; }
.logo-card.reveal:nth-child(6)  { transition-delay: 325ms; }
.logo-card.reveal:nth-child(7)  { transition-delay: 390ms; }
.logo-card.reveal:nth-child(8)  { transition-delay: 455ms; }
.logo-card.reveal:nth-child(9)  { transition-delay: 520ms; }
.logo-card.reveal:nth-child(10) { transition-delay: 585ms; }

/* ─── Gomb nyíl micro-animáció ────────────────────────────── */
@keyframes arrowRight { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px); } }
.btn:hover .arrow { display: inline-block; animation: arrowRight .4s ease; }

/* ─── Reduced motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .hero-inner > h1, .hero-inner > p, .hero-ctas, .featured, .hero-badge { animation: none; opacity: 1; }
    .hero::after { animation: none; }
    .reveal, [data-anim=left].reveal, [data-anim=right].reveal { opacity: 1; transform: none; transition: none; }
}

/* ─── Responsive: 980px ───────────────────────────────────── */
@media (max-width: 980px) {
    .menu, .phone { display: none; }
    .mobile-toggle { display: block; }
    .hero { min-height: 690px; }
    .hero-badge { display: none; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .about-photo { min-height: 450px; }
    .mini-features { grid-template-columns: repeat(2,1fr); }
    .why-grid { grid-template-columns: 1fr 1fr; }
    .why-intro { grid-column: 1 / -1; padding-left: 0; }
    .why-item:nth-child(3) { border-left: 0; }
    .logo-grid { grid-template-columns: repeat(3,1fr); }

    /* Mobil menü nyitott állapot */
    .menu.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 76px; left: 0; right: 0;
        background: rgba(255,255,255,.98);
        backdrop-filter: blur(14px);
        border-bottom: 1px solid rgba(13,24,34,.08);
        padding: 20px;
        z-index: 49;
        gap: 16px;
    }
}

/* ─── Responsive: 720px ───────────────────────────────────── */
@media (max-width: 720px) {
    .container { width: min(calc(100% - 28px), var(--container)); }
    .site-header .btn { display: none; }
    .nav { height: 68px; }
    .menu.open { top: 68px; }
    .hero { min-height: 640px; background-position: 60% center; }
    .hero-inner { padding: 80px 0 60px; }
    h1 { font-size: clamp(2.8rem,13vw,4.3rem); }
    .hero p { font-size: 1rem; }
    .featured { width: 100%; justify-content: space-between; }
    .section { padding: 78px 0; }
    .about-grid { gap: 36px; }
    .about-photo { min-height: 370px; }
    .service-grid { grid-template-columns: 1fr; }
    .service-card { min-height: 260px; }
    .why-grid { grid-template-columns: 1fr; }
    .why-item { border-left: 0; border-top: 1px solid rgba(255,255,255,.14); }
    .why-intro, .why-item { padding: 30px 0; min-height: auto; }
    .why-num { margin-bottom: 20px; }
    .logo-grid { grid-template-columns: repeat(2,1fr); gap: 12px; }
    .cta-wrap { padding: 34px 24px; display: block; }
    .cta .btn { margin-top: 26px; }
    .form-grid { grid-template-columns: 1fr; }
    .field.full { grid-column: auto; }
    .footer-inner { align-items: flex-start; flex-direction: column; }
    .footer-nav { flex-wrap: wrap; }
    .copyright { text-align: left; }
}
