@import url("/assets/css/components/scroll-bg.css");

/* =========================================================
   Kezdőlap – skóp: .home-*  (nincs globál override)
   ========================================================= */
:root {
    --home-container: 1320px;
    --home-gap: clamp(16px, 3vw, 28px);
    --home-radius: 16px;
    --home-muted: #6b7280;
    --home-shadow-sm: 0 1px 2px rgba(0, 0, 0, .06), 0 2px 8px rgba(0, 0, 0, .05);
    --home-shadow-md: 0 6px 18px rgba(0, 0, 0, .08), 0 2px 8px rgba(0, 0, 0, .04);
    --header-h: 88px;
    /* fallback */
}

/* ---------- Alap konténerek ---------- */
.home .home-section__inner,
.home .home-hero__grid,
.home .home-intro__grid,
.home .home-contact__bar {
    width: min(var(--home-container), 100%);
    margin-inline: auto;
    padding-inline: var(--home-gap);
}

/* ---------- Szekció blokkok ---------- */
.home .home-hero,
.home .home-process,
.home .home-types,
.home .home-services,
.home .home-philo,
.home .home-contact {
    padding-block: clamp(32px, 6vw, 72px);
}

/* =========================================================
   HERO – teljes képernyő + SZALAGOS LOGÓ
   ========================================================= */
.home .home-hero {
    min-block-size: calc(100svh - var(--header-h, 0px));
    padding-block: 0;
}

.home .home-hero__grid {
    min-block-size: inherit;
    display: grid;
    align-content: center;
    padding-block: clamp(12px, 3vh, 28px);
}

@media (min-width:980px) {
    .home .home-hero__grid {
        grid-template-columns: 1.1fr 0.9fr;
        align-items: center;
    }
}

.home .home-hero__title {
    margin: 0 0 .5rem;
}

.home .home-hero__lead {
    margin: 0;
    color: var(--home-muted);
}

/* Szalagos logó – éles megjelenítés */
.home .home-hero__media {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.home .home-hero__media img {
    height: clamp(240px, 42vw, 720px);
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 14px 30px rgba(0, 0, 0, .18));
}

/* ---- CSAK EZ MÓDOSULT: mobilon nagyobb legyen a kép ---- */
@media (max-width:900px) {
    .home .home-hero__media img {
        /* nagyobb minimum, nagyobb vw, nagyobb maximum */
        height: clamp(260px, 78vw, 640px);
    }
}

/* Általános cím és muted */
.home .home-section__title {
    margin: 0 0 .6rem;
    font-size: clamp(20px, 3vw, 28px);
    text-wrap: balance;
}

.home .home-muted {
    color: var(--home-muted);
}

/* =========================================================
   FOLYAMAT (lépések)
   ========================================================= */
.home .home-steps {
    counter-reset: step;
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home .home-steps li {
    counter-increment: step;
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    padding: 12px 14px 12px 48px;
    position: relative;
    box-shadow: var(--home-shadow-sm);
}

.home .home-steps li::before {
    content: counter(step);
    position: absolute;
    inset-inline-start: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #0f766e;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
}

/* =========================================================
   KIEMELT TÍPUSOK – kártyák
   ========================================================= */
.home .home-cards {
    display: grid;
    gap: var(--home-gap);
}

.home .home-cards--4 {
    grid-template-columns: 1fr;
}

@media (min-width:720px) {
    .home .home-cards--4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width:1100px) {
    .home .home-cards--4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

.home .home-card {
    display: grid;
    grid-template-rows: auto 1fr;
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 14px;
    padding: clamp(14px, 2.2vw, 18px);
    text-decoration: none;
    color: inherit;
    box-shadow: var(--home-shadow-sm);
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.home .home-card__media {
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 12px;
    background: #f3f4f6;
    position: relative;
}

.home .home-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.0001);
    transition: transform .35s ease;
}

.home .home-card__body {
    display: grid;
    gap: 6px;
}

.home .home-card__title {
    margin: 0 0 .35rem;
    font-size: clamp(18px, 2.4vw, 20px);
}

.home .home-card__text {
    margin: 0;
    color: var(--home-muted);
}

.home .home-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--home-shadow-md);
    border-color: #e2e8f0;
}

.home .home-card:hover .home-card__media img {
    transform: scale(1.06);
}

/* =========================================================
   SZOLGÁLTATÁSOK – 5 oszlop desktopon + kártyastílus
   ========================================================= */
.home .home-grid-4 {
    display: grid;
    gap: clamp(12px, 1.6vw, 18px);
    grid-template-columns: 1fr;
    /* mobil */
}

@media (min-width:720px) {
    .home .home-grid-4 {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }
}

@media (min-width:1100px) {
    .home .home-grid-4 {
        grid-template-columns: repeat(5, minmax(220px, 1fr));
    }
}

.home .home-service {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 14px;
    box-shadow: var(--home-shadow-sm);
    padding: clamp(12px, 1.6vw, 16px);
    min-height: 100%;
    box-sizing: border-box;
    transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}

.home .home-service:hover {
    box-shadow: var(--home-shadow-md);
    transform: translateY(-2px);
    border-color: #e2e8f0;
}

.home .home-service__title {
    margin: 0 0 .35rem;
    font-size: clamp(16px, 2vw, 18px);
    line-height: 1.22;
    color: #111827;
}

.home .home-service__text {
    margin: 0;
    color: var(--home-muted);
    line-height: 1.45;
}

/* =========================================================
   MŰHELY-FILOZÓFIA
   ========================================================= */
.home .home-quote {
    margin: 0 0 .6rem;
    padding: 8px 0 0 0;
    font-style: italic;
    color: #111827;
}

/* =========================================================
   KAPCSOLATI SÁV
   ========================================================= */
.home .home-contact__bar {
    display: grid;
    gap: var(--home-gap);
    align-items: center;
    grid-template-columns: 1fr;
}

@media (min-width:820px) {
    .home .home-contact__bar {
        grid-template-columns: 1fr auto;
    }
}

.home .home-contact__line {
    font-weight: 500;
    color: #1f2937;
}

.home .home-contact__cta {
    display: inline-flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* =========================================================
   Belépő animációk – trigger: home.js (ha használod)
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {

    .home .reveal,
    .home .home-card,
    .home .home-service,
    .home .home-steps li,
    .home .home-hero__title,
    .home .home-hero__lead,
    .home .home-hero__ctas,
    .home .home-contact__bar {
        opacity: 0;
        transform: translateY(8px);
    }

    .home .inview {
        opacity: 1;
        transform: none;
        transition: opacity .5s ease, transform .5s ease;
        transition-delay: var(--home-delay, 0ms);
    }
}

@media (prefers-reduced-motion: reduce) {

    .home .reveal,
    .home .inview {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Vizuális finomítás a process cím fölé */
.home .home-process .home-section__title {
    margin-bottom: .9rem;
}

.home .home-process .home-section__inner {
    position: relative;
}

.home .home-process .home-section__inner::before {
    content: "";
    position: absolute;
    left: var(--home-gap);
    right: var(--home-gap);
    top: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #e5e7eb, transparent);
}

/* --- FAILSAFE: a Folyamat lépései mindig látszódjanak --- */
.home .home-steps,
.home .home-steps li {
    opacity: 1 !important;
    transform: none !important;
}