/* =========================================
   WEBRAKÉTA FOOTER
========================================= */

.wr-footer {
    position: relative;
    overflow: hidden;
    margin-top: 0;
    background: var(--ink, #1e3a5f);
    color: #ffffff;
    font-family: var(--font-body, "Inter", sans-serif);
}

.wr-footer * {
    box-sizing: border-box;
}

/* háttérrács */

.wr-footer__grid-bg {
    position: absolute;
    inset: 0;
    opacity: .16;
    pointer-events: none;
    background-image:
        linear-gradient(to right, rgba(255,255,255,.06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,.06) 1px, transparent 1px);
    background-size: 48px 48px;
}

/* piros pálya */

.wr-footer__trajectory {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: .35;
    pointer-events: none;
}

/* tartalom */

.wr-footer__inner {
    position: relative;
    max-width: var(--container-xl, 1280px);
    margin: 0 auto;
    padding: 96px 48px 48px;
}

.wr-footer__cols {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 120px;
}

/* bal oldal */

.wr-footer__logo {
    display: inline-block;
}

.wr-footer__logo img {
    display: block;
    width: auto;
    max-width: 260px;
    height: auto;
}

.wr-footer__tagline {
    margin: 28px 0 0;
    max-width: 420px;
    font-size: 17px;
    line-height: 28px;
    color: rgba(255,255,255,.78);
}

/* CTA */

.wr-footer__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    margin-top: 40px;

    min-height: 56px;
    padding: 0 32px;

    border-radius: 999px;

    background: var(--coral, #f03a47);
    color: #ffffff;

    font-family: var(--font-sans, "Inter", sans-serif);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;

    text-decoration: none;

    box-shadow:
        0 18px 50px -16px rgba(240,58,71,.45);

    transition:
        transform .25s ease,
        background .25s ease,
        box-shadow .25s ease;
}

.wr-footer__cta:hover {
    background: var(--coral-dark, #d9323e);
    color: #ffffff;
    transform: translateY(-2px);
}

.wr-footer__cta-icon {
    display: block;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* jobb oldal */

.wr-footer__nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 64px;
}

/* címek */

.wr-footer__heading {
    margin: 0 0 24px;

    font-family: var(--font-mono, "JetBrains Mono", monospace);

    font-size: 15px;
    font-weight: 600;
    line-height: 21px;

    letter-spacing: .14em;
    text-transform: uppercase;

    color: var(--coral, #f03a47);
    white-space: nowrap;

}

/* listák */

.wr-footer__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wr-footer__list li {
    margin-bottom: 16px;
}

.wr-footer__list a,
.wr-footer__list span {
    color: rgba(255,255,255,.82);
    text-decoration: none;
    font-size: 17px;
    font-weight: 400;
    line-height: 27px;
    transition: color .2s ease;
}

.wr-footer__list a:hover {
    color: var(--coral, #f03a47);
}

/* kontakt */

.wr-footer__list--icons li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wr-footer__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 18px;
    min-width: 18px;
    height: 18px;

    color: var(--coral, #f03a47);
}

.wr-footer__icon svg {
    display: block;
    width: 17px;
    height: 17px;

    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wr-footer__list--icons span:not(.wr-footer__icon),
.wr-footer__list--icons a {
    white-space: nowrap;
}

/* alsó rész */

.wr-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 24px;

    margin-top: 72px;
    padding-top: 32px;

    border-top: 1px solid rgba(255,255,255,.12);
}

.wr-footer__bottom p {
    margin: 0;

    color: rgba(255,255,255,.65);

    font-size: 12px;
    line-height: 16px;
}

.wr-footer__mono {
    font-family: var(--font-mono, "JetBrains Mono", monospace);
    font-size: 12px;
    line-height: 16px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

/* tablet */

@media (max-width: 1024px) {

    .wr-footer__inner {
        padding: 80px 32px 40px;
    }

    .wr-footer__cols {
        grid-template-columns: 1fr;
        gap: 56px;
    }

    .wr-footer__nav {
        gap: 40px;
    }
}

/* mobil */

@media (max-width: 768px) {

    .wr-footer {
        margin-top: 0;
    }

    .wr-footer__inner {
        padding: 64px 24px 32px;
    }

    .wr-footer__nav {
        grid-template-columns: 1fr 1fr;
        gap: 32px 24px;
    }

    .wr-footer__nav > *:nth-child(3) {
        grid-column: 1 / -1;
    }

    .wr-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .wr-footer__cta {
        width: auto;
        justify-content: center;
    }

    .wr-footer__list--icons span:not(.wr-footer__icon),
    .wr-footer__list--icons a {
        white-space: normal;
    }

    /* Mobil betűméretek — a téma alap stílusait felülírjuk, hogy a Lovable layouttal egyezzen */
    .wr-footer .wr-footer__tagline {
        font-size: 16px !important;
        line-height: 26px !important;
    }

    .wr-footer .wr-footer__nav .wr-footer__heading,
    .wr-footer h2.wr-footer__heading,
    .wr-footer h3.wr-footer__heading,
    .wr-footer .wr-footer__heading {
        font-size: 14px !important;
        line-height: 20px !important;
    }

    .wr-footer .wr-footer__list a,
    .wr-footer .wr-footer__list span {
        font-size: 16px !important;
        line-height: 26px !important;
    }

    .wr-footer .wr-footer__cta {
        width: auto !important;
        display: inline-flex !important;
        justify-content: center;
        min-height: 44px !important;
        padding: 12px 20px !important;
        font-size: 14px !important;
        line-height: 20px !important;
    }

    .wr-footer .wr-footer__bottom {
        margin-top: 40px !important;
        padding-top: 24px !important;
    }

    .wr-footer .wr-footer__bottom,
    .wr-footer .wr-footer__bottom p,
    .wr-footer .wr-footer__mono {
        font-size: 12px !important;
        line-height: 16px !important;
    }
}

.wr-footer__icon,
.wr-footer__icon svg {
    color: var(--coral, #f03a47);
    stroke: var(--coral, #f03a47);
    fill: none;
}

/* Jogi linkek a lábléc alján (adatvédelmi és cookie tájékoztató).
   A wr-footer__bottom flex-sorban ül, mobilon a sor amúgy is tördel. */
.wr-footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.wr-footer__legal a {
    color: rgba(255, 255, 255, .82);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, .28);
}

.wr-footer__legal a:hover {
    color: #fff;
    border-bottom-color: #fff;
}

@media (max-width: 767px) {
    .wr-footer__bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
}
