/* ══════════════════════════════════════════════════════════════════════
   FiareFi – nyilvános oldalak (kezdőlap, jogi oldalak)
   A változók és az alapelemek a site.css-ben vannak.
   ══════════════════════════════════════════════════════════════════════ */

/* A lábléc rövid oldalon is a képernyő aljára kerül. */
.site-body { display: flex; flex-direction: column; }
.site-body > main { flex: 1; }

/* ── Fejléc ─────────────────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 247, 242, .92);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    backdrop-filter: saturate(140%) blur(10px);
    transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--beige), 0 10px 30px rgba(59, 36, 22, .07); }

.site-header-inner {
    display: flex;
    align-items: center;
    gap: 40px;
    min-height: 104px;
}
.site-brand { display: flex; align-items: center; flex: none; }
.site-brand img { height: 78px; width: auto; }

.site-nav {
    display: flex;
    align-items: center;
    gap: 36px;
    flex: 1;
    min-width: 0;
    align-self: stretch;
    border-bottom: 1px solid var(--beige);
}
.site-nav-links {
    display: flex;
    gap: 34px;
    flex: 1;
    margin: 0;
    padding: 0;
    list-style: none;
}
.site-nav-links a {
    position: relative;
    padding: 8px 0;
    color: var(--brown);
    font-size: 15.5px;
    font-weight: 600;
}
.site-nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .2s ease;
}
.site-nav-links a:hover { text-decoration: none; }
.site-nav-links a:hover::after,
.site-nav-links a.is-active::after { transform: scaleX(1); }

/* ── Hős szakasz ────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; }
.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
    align-items: center;
    gap: 16px;
    min-height: 600px;
    padding-block: 24px 48px;
}
.hero-copy { position: relative; z-index: 2; }
.eyebrow {
    margin-bottom: 18px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gold-text);
}
.hero-title { font-size: clamp(38px, 5vw, 60px); line-height: 1.08; }
.hero-lead {
    max-width: 30em;
    margin-top: 22px;
    font-size: 18px;
    line-height: 1.6;
    color: var(--brown-soft);
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-top: 32px; }

.hero-visual {
    position: relative;
    align-self: center;
    /* A doboz a kép arányát követi, így a kézírásos felirat minden
       szélességnél a képhez igazodik. */
    aspect-ratio: 760 / 620;
    /* A kép a tartalmi sávon túl, a képernyő jobb széle felé is kifuthat. */
    margin-right: -56px;
}
.hero-visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center right;
}
.hero-script {
    position: absolute;
    right: 9%;
    bottom: 0;
    margin: 0;
    font-family: var(--font-script);
    font-size: clamp(26px, 2.9vw, 40px);
    font-weight: 600;
    line-height: 1.12;
    color: var(--brown);
    transform: rotate(-7deg);
    transform-origin: right bottom;
}
.hero-script span { display: block; }

/* ── Megoldások (négy pillér) ───────────────────────────────────────── */
.pillars { background: var(--beige-wash); border-block: 1px solid var(--beige); }
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
    margin: 0;
    padding: 52px 0;
    list-style: none;
}
.pillar { text-align: center; }
.pillar-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    color: var(--brown);
}
.pillar-icon .icon { width: 48px; height: 48px; stroke-width: 2; }
.pillar-title { font-family: var(--font-sans); font-size: 18px; font-weight: 700; letter-spacing: 0; }
.pillar-text { margin-top: 4px; font-size: 15.5px; color: var(--brown-soft); }

/* ── Funkciók (kép + lista) ─────────────────────────────────────────── */
.features { padding: 72px 0; }
.features-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: 64px;
}
.features-visual {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--beige);
    box-shadow: var(--shadow);
}
.features-visual img { width: 100%; height: auto; }
.section-title { font-size: clamp(30px, 3.6vw, 44px); }
.section-lead { margin-top: 18px; font-size: 17px; line-height: 1.65; color: var(--brown-soft); }

.check-list { display: grid; gap: 14px; margin: 28px 0 0; padding: 0; list-style: none; }
.check-list li { display: flex; align-items: center; gap: 14px; font-size: 17px; font-weight: 500; }
.check-list .check {
    display: grid;
    place-items: center;
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--brown);
    color: var(--cream);
}
.check-list .check .icon { width: 16px; height: 16px; stroke-width: 3; }

/* ── Számok ─────────────────────────────────────────────────────────── */
.stats { background: var(--brown); color: var(--cream); }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    padding: 44px 0;
    list-style: none;
}
.stat { padding: 6px 20px; text-align: center; }
.stat + .stat { border-left: 1px solid rgba(200, 155, 60, .28); }
.stat-icon { display: grid; place-items: center; height: 44px; margin-bottom: 10px; color: var(--gold); }
.stat-icon .icon { width: 38px; height: 38px; }
.stat-value { display: block; font-family: var(--font-serif); font-size: clamp(30px, 3.4vw, 42px); font-weight: 700; line-height: 1.1; }
.stat-label { display: block; margin-top: 4px; font-size: 15px; color: rgba(250, 247, 242, .82); }

/* ── Felhívás + ajánlás ─────────────────────────────────────────────── */
.cta { padding: 76px 0; }
.cta-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: center;
    gap: 56px;
}
.cta-lead { margin-top: 12px; font-size: 16.5px; color: var(--brown-soft); }
.cta-actions { margin-top: 26px; }

.testimonial {
    position: relative;
    margin: 0;
    padding: 44px 36px 34px;
    background: var(--beige-wash);
    border: 1px solid var(--beige);
    border-radius: var(--radius-lg);
    text-align: center;
}
.testimonial-mark { display: flex; justify-content: center; gap: 120px; margin-bottom: 8px; color: var(--gold); }
.testimonial-mark .icon { width: 30px; height: 30px; }
.testimonial blockquote { margin: 0; font-size: 19px; font-weight: 500; line-height: 1.5; }
.testimonial figcaption { margin-top: 14px; font-size: 14.5px; color: var(--brown-muted); }

/* ── Lábléc ─────────────────────────────────────────────────────────── */
.site-footer { background: var(--brown); color: var(--cream); }
.site-footer a { color: rgba(250, 247, 242, .82); }
.site-footer a:hover { color: var(--gold-soft); text-decoration: none; }
.footer-main {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr auto;
    gap: 40px;
    padding-block: 52px 44px;
}
.footer-brand img { height: 104px; width: auto; }
.footer-title {
    margin-bottom: 14px;
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0;
    color: var(--cream);
}
.footer-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 15px; }
.footer-list li { display: flex; align-items: center; gap: 10px; }
.footer-list .icon { width: 17px; height: 17px; color: var(--gold); }
.footer-social { display: flex; gap: 12px; align-self: center; }
.footer-social a {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--brown);
    transition: transform .16s ease, background-color .16s ease;
}
.footer-social a:hover { background: var(--gold-soft); color: var(--brown); transform: translateY(-2px); }
.footer-social .icon { width: 19px; height: 19px; }
.footer-bottom { background: var(--brown-deep); border-top: 1px solid rgba(200, 155, 60, .22); }
.footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 24px;
    padding-block: 18px;
    font-size: 13.5px;
    color: rgba(250, 247, 242, .72);
}
.footer-legal { display: flex; gap: 12px; margin: 0; padding: 0; list-style: none; }
.footer-legal li + li::before { content: "|"; margin-right: 12px; opacity: .45; }

/* ── Jogi (szöveges) oldalak ────────────────────────────────────────── */
.legal { padding: 56px 0 88px; }
.legal-inner { max-width: 760px; }
.legal h1 { font-size: clamp(32px, 4vw, 44px); margin-bottom: 18px; }
.legal h2 { font-size: 22px; margin: 32px 0 10px; }
.legal p { margin-bottom: 14px; color: var(--brown-soft); }
.legal-note { margin-top: 30px; }

/* ── Reszponzív ─────────────────────────────────────────────────────── */
@media (max-width: 1020px) {
    .site-header-inner { gap: 24px; min-height: 88px; }
    .site-brand img { height: 64px; }
    .site-nav { gap: 20px; }
    .site-nav-links { gap: 22px; }
    .features-inner { gap: 40px; }
    .footer-main { grid-template-columns: 1fr 1fr; }
    .footer-social { align-self: start; }
}

@media (max-width: 860px) {
    .site-header-inner { flex-wrap: wrap; gap: 0 16px; min-height: 76px; }
    .site-brand img { height: 56px; }
    .site-header .nav-toggle { display: inline-flex; color: var(--brown); }
    .site-nav {
        display: none;
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 8px 0 22px;
        border-bottom: 0;
    }
    .site-nav.is-open { display: flex; }
    .site-nav-links { flex-direction: column; gap: 4px; }
    .site-nav-links a { display: block; padding: 10px 0; font-size: 17px; }
    .site-nav-links a::after { display: none; }

    .hero-inner { grid-template-columns: 1fr; min-height: 0; padding-block: 28px 44px; }
    .hero-visual { order: -1; width: 100%; max-width: 520px; margin: 0 auto 14px; }
    .hero-visual img { object-position: center; }
    .hero-script { right: 4%; }

    .pillars-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 20px; padding: 44px 0; }
    .features { padding: 52px 0; }
    .features-inner { grid-template-columns: 1fr; gap: 32px; }
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 0; }
    .stat:nth-child(odd) { border-left: 0; }
    .cta { padding: 56px 0; }
    .cta-inner { grid-template-columns: 1fr; gap: 36px; }
    .testimonial-mark { gap: 80px; }
}

@media (max-width: 560px) {
    .hero-lead { font-size: 16.5px; }
    .hero-actions .btn-primary { width: 100%; }
    .footer-main { grid-template-columns: 1fr; gap: 30px; padding-block: 40px 34px; }
    .footer-brand img { height: 88px; }
    .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
}
