/* ==========================================================================
   Rewardent – ideiglenes landing + Széchenyi Terv Plusz pályázati oldal
   Plain HTML + CSS. A két oldal közös vizuális nyelvet használ:
   sötét, üveghatású kártya, arany kiemelés, verzálos címek.
   A <body> osztálya (page-landing / page-grants) csak a háttér erősségét
   és az elrendezést állítja.
   ========================================================================== */

:root {
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    --gold: #cbb78c;
    --gold-light: #e7d9b8;
    --bg-dark: #0b1120;
    --surface: rgba(9, 14, 28, 0.66);
    --surface-border: rgba(255, 255, 255, 0.14);
    --text: rgba(255, 255, 255, 0.86);
    --text-strong: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.58);
    --bg-image: url("https://weborigo.hu/uploads/original/69aab4a301050.png");
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
    display: block;
}

html {
    height: 100%;
}

body {
    min-height: 100%;
    color: var(--text);
    font-family: var(--font);
    line-height: 1.65;
    background-color: var(--bg-dark);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
}

/* ---- Közös cím-tipográfia -------------------------------------------------- */

.eyebrow {
    display: block;
    margin-bottom: 22px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: var(--gold);
}

.display-title {
    font-size: clamp(2.1rem, 1.4rem + 3.4vw, 3.25rem);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1.1;
    color: var(--text-strong);
}

.rule {
    width: 64px;
    height: 3px;
    margin: 26px 0;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

/* ---- Közös üveg-kártya --------------------------------------------------- */

.panel {
    border: 1px solid var(--surface-border);
    border-radius: 18px;
    background: var(--surface);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 32px 80px -24px rgba(0, 0, 0, 0.65);
    animation: rise-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Landing – "Fejlesztés alatt"
   ========================================================================== */

body.page-landing {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    background-image:
        radial-gradient(ellipse at center, rgba(6, 12, 26, 0.32) 0%, rgba(6, 12, 26, 0.82) 100%),
        var(--bg-image);
}

.page-landing .panel {
    width: 100%;
    max-width: 560px;
    padding: 56px 48px;
}

.page-landing .eyebrow,
.page-landing .rule {
    margin-left: auto;
    margin-right: auto;
}

.page-landing .rule {
    margin-top: 26px;
    margin-bottom: 26px;
}

.page-landing p {
    font-size: 1.05rem;
    color: var(--text);
}

@media (max-width: 480px) {
    .page-landing .panel {
        padding: 40px 26px;
    }

    .page-landing .eyebrow {
        letter-spacing: 0.32em;
    }
}

/* ==========================================================================
   Beúszó "Széchenyi Terv Plusz" banner (a landing oldalon)
   ========================================================================== */

.szt-banner {
    position: fixed;
    left: 1rem;
    bottom: 1rem;
    z-index: 60;
    width: min(340px, calc(100vw - 2rem));
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.4), 0 4px 12px -4px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transform: translateX(calc(-100% - 1.5rem));
    animation: szt-banner-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) 1.1s forwards;
}

.szt-banner.is-collapsed {
    width: auto;
}

/* Fejléc = kapcsoló: kattintásra összecsukja / kinyitja a bannert */
.szt-banner__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    width: 100%;
    padding: 0.7rem 0.85rem 0.7rem 1rem;
    border: 0;
    background: transparent;
    cursor: pointer;
    font: 600 0.6875rem/1 var(--font);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #1e3a8a;
}

.szt-banner__toggle:hover {
    background: #f6f8fc;
}

.szt-banner__chevron {
    flex: none;
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(-135deg);
    transition: transform 0.2s ease;
}

.szt-banner.is-collapsed .szt-banner__chevron {
    transform: translateY(1px) rotate(45deg);
}

.szt-banner__body {
    padding: 0 1rem 1rem;
}

.szt-banner.is-collapsed .szt-banner__body {
    display: none;
}

.szt-banner__link {
    display: block;
    text-decoration: none;
    color: #1d2939;
}

.szt-banner__image {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.szt-banner__cta {
    display: block;
    margin-top: 0.75rem;
    font: 500 0.8125rem/1.3 var(--font);
    color: #1e3a8a;
}

.szt-banner__link:hover .szt-banner__cta {
    text-decoration: underline;
}

@keyframes szt-banner-in {
    to {
        transform: translateX(0);
    }
}

/* ==========================================================================
   Pályázati oldal – grants.html
   ========================================================================== */

body.page-grants {
    background-image:
        linear-gradient(rgba(6, 12, 26, 0.90), rgba(6, 12, 26, 0.94)),
        var(--bg-image);
}

/* A pályázati oldal egy dialógusként jelenik meg: a panelen kívüli terület
   (a .grants-dialog kitölti a nézetet) kattintásra visszavisz a főoldalra. */
.grants-dialog {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: clamp(20px, 6vh, 72px) 20px;
}

.grants-panel {
    position: relative;
    width: 100%;
    max-width: 1000px;
    padding: clamp(30px, 4vw, 56px);
}

.grants-panel .rule {
    margin-bottom: 34px;
}

.dialog-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-strong);
    text-decoration: none;
    transition: background 0.15s ease;
}

.dialog-close:hover,
.dialog-close:focus-visible {
    background: rgba(255, 255, 255, 0.2);
    outline: none;
}

/* Az X-et két elforgatott vonal rajzolja – így pontosan középen van */
.dialog-close::before,
.dialog-close::after,
.lightbox__close::before,
.lightbox__close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 17px;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
}

.dialog-close::before,
.lightbox__close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.dialog-close::after,
.lightbox__close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.grant {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

.grant__body {
    order: 2;
}

.grant__figure {
    order: 1;
    margin: 0;
}

@media (min-width: 768px) {
    .grant {
        grid-template-columns: 57% 43%;
        align-items: start;
    }

    .grant__body {
        order: 1;
    }

    .grant__figure {
        order: 2;
    }
}

.grant__facts p {
    margin-bottom: 0.55rem;
}

.grant__facts .label {
    font-weight: 700;
    color: var(--gold);
}

.grant__facts .spacer {
    margin-top: 1.5rem;
}

.grant__divider {
    height: 1px;
    width: 100%;
    margin: 1.6rem 0;
    background: var(--surface-border);
}

.grant__summary h2 {
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
    color: var(--text-strong);
}

.grant__summary p {
    margin-bottom: 1rem;
}

.grant__financing {
    margin-top: 1.5rem;
    font-style: italic;
    color: var(--text-muted);
}

.image-button {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 16px 36px -18px rgba(0, 0, 0, 0.7);
    cursor: zoom-in;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.image-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 44px -18px rgba(0, 0, 0, 0.75);
}

.image-button:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.grant__figure figcaption {
    margin-top: 0.6rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.grant-infoblokk {
    margin-top: 44px;
    padding-top: 30px;
    border-top: 1px solid var(--surface-border);
}

.grant-infoblokk__box {
    display: inline-block;
    max-width: 100%;
    padding: 16px 20px;
    border-radius: 12px;
    background: #ffffff;
}

.grant-infoblokk__box img {
    width: 100%;
    max-width: 560px;
    height: auto;
}

/* ==========================================================================
   Lightbox – a tájékoztatási tábla nagyítása oldalon belül
   ========================================================================== */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 5vmin, 56px);
    background: rgba(6, 12, 26, 0.86);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: fade-in 0.2s ease both;
}

.lightbox[hidden] {
    display: none;
}

.lightbox__img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 40px 90px -20px rgba(0, 0, 0, 0.8);
}

.lightbox__close {
    position: absolute;
    top: max(16px, 2vmin);
    right: max(18px, 3vmin);
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    cursor: pointer;
}

.lightbox__close:hover {
    background: rgba(255, 255, 255, 0.26);
}

body.is-lightbox-open {
    overflow: hidden;
}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ==========================================================================
   Mozgáscsökkentés
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .panel,
    .szt-banner,
    .lightbox {
        animation-duration: 0.001s;
        animation-delay: 0.001s;
    }
}
