/* ==========================================================================
   Home landing page (2026-11 redesign)
   Loaded after style.css / vertical.css. The global h1/h2/p rules in style.css
   set font sizes with !important, so the sizes here need it as well.

   Layout rules: every section's content sits in .content-container +
   .landing-section, so it all starts at the same horizontal position.
   Body copy is 16px (--p).
   ========================================================================== */

/* --- Hero ------------------------------------------------------------------
   The photo is the client's banner with the headline removed, so the real
   wall shows behind the live text. It is capped at the content width; a tiny
   blurred copy of the wall fills the rest of the row on wider screens and the
   photo's side edges fade into it. Text sizes use min(vw, px): they scale
   down with the block and stop growing at its cap. */
.landing-hero {
    background: #6f7173 url("../images/home/hero-backdrop.webp") center / cover no-repeat;
}

.landing-hero-inner {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: var(--width-lg);
    margin: 0 auto;
    aspect-ratio: 2000 / 782;
}

.landing-hero-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
}

@media (min-width: 1151px) {
    .landing-hero-photo {
        -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
        mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
    }
}

.landing-hero-text {
    position: absolute;
    left: 38%;
    right: 4%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: var(--white);
}

/* The shadow goes on a wrapper: a filter on the masked logo itself would be
   clipped by its own mask. */
.landing-hero-logo-wrap {
    display: block;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.45));
    margin-bottom: 4px;
}

.landing-hero-logo {
    display: block;
    width: min(17vw, 195px);
    aspect-ratio: 244 / 94;
    background-color: #d6bab2;
    -webkit-mask: url("../images/logo.svg") center / contain no-repeat;
    mask: url("../images/logo.svg") center / contain no-repeat;
}

.landing-hero-title {
    font-family: "Nunito", "Poppins", sans-serif;
    font-size: min(3.900vw, 45px) !important;
    font-weight: 900;
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
    margin: 0;
}

.landing-hero-title span {
    display: block;
    white-space: nowrap;
}

.landing-hero-script {
    font-family: "Sacramento", cursive;
    font-size: min(4.600vw, 54px);
    line-height: 1;
    color: #f4d6cf;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    margin-top: 6px;
}

.landing-hero-flourish {
    width: min(24vw, 280px);
    height: auto;
    color: #f4d6cf;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    margin-top: -4px;
}

.landing-hero-tagline {
    font-family: "Nunito", "Poppins", sans-serif;
    font-size: min(1.900vw, 21px);
    font-weight: 800;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
    margin-top: 14px;
}

/* --- Section titles ------------------------------------------------------- */
.landing-title {
    font-family: "Nunito", "Poppins", sans-serif;
    font-size: clamp(20px, 2.6vw, 28px) !important;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    text-align: center;
    color: var(--primary);
    margin: 0;
}

.landing-title-cta {
    font-size: clamp(22px, 2.6vw, 26px) !important;
    font-weight: 900;
}

.landing-section {
    padding: 3.5rem 2rem;
}

.landing-section-tight {
    padding-top: 0.5rem;
}

/* --- Store badges (navy variant): one at each edge of the content ---------- */
.app-badges.app-badges-landing {
    justify-content: space-between;
    gap: 1rem 2rem;
    margin-top: 2rem;
}

.app-badges-landing .app-badge {
    flex: 0 1 46%;
    min-width: 240px;
    justify-content: center;
    gap: 16px;
    padding: 16px 26px;
    border-radius: 22px;
    background-color: var(--primary);
    border-color: var(--primary);
}

/* Design order: Google Play first, App Store second. */
.app-badges-landing .app-badge:first-child {
    order: 2;
}

.app-badges-landing .app-badge-icon {
    font-size: 44px;
}

.app-badges-landing .app-badge-icon-play {
    font-size: 38px;
}

.app-badges-landing .app-badge-top {
    font-size: 0.95rem;
}

.app-badges-landing .app-badge-store {
    font-size: 1.650rem;
    white-space: nowrap;
}

/* --- "Ki ne szeretne ragyogóbb arcot?" band -------------------------------- */
.landing-band {
    background-color: var(--primary);
    color: var(--white);
    font-family: "Nunito", "Poppins", sans-serif;
}

.landing-band-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 3rem;
}

.landing-band-title {
    font-size: clamp(20px, 2.6vw, 28px) !important;
    font-weight: 500;
    line-height: 1.2;
    margin: 0 0 1.25rem;
}

.landing-band-lead,
.landing-band-list li {
    font-size: var(--p) !important;
    line-height: 1.6;
    margin: 0;
}

.landing-band-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.landing-band-list li {
    position: relative;
    padding-left: 1.1em;
}

.landing-band-list li::before {
    content: "•";
    position: absolute;
    left: 0;
}

.landing-band-closing {
    font-size: 20px !important;
    font-weight: 400;
    line-height: 1.45;
    margin: 2rem 0 0;
}

.landing-band-closing span {
    display: block;
}

.landing-band-img {
    flex: 0 0 auto;
    width: 26%;
    max-width: 250px;
    height: auto;
    border-radius: 24px;
}

/* --- Effects: cards alternating with photos -------------------------------- */
.landing-effects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 2rem 4rem;
    margin-top: 2.5rem;
}

.landing-effect-card {
    background-color: var(--white);
    border: 5px solid var(--grey);
    border-radius: 24px;
    padding: 2rem 1.75rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
}

.landing-effect-card h3 {
    font-size: 30px !important;
    font-weight: 600;
    color: var(--primary);
    margin: 0;
}

.landing-effect-card p {
    font-size: 22px !important;
    line-height: 1.5;
    color: var(--font-dark);
    margin: 0;
}

.landing-effect-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
}

/* --- E-book gift ------------------------------------------------------------ */
.landing-ebook {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.landing-ebook-img {
    flex: 0 0 auto;
    width: 40%;
    max-width: 400px;
    height: auto;
    border-radius: 24px;
}

.landing-ebook-body {
    flex: 1 1 auto;
    max-width: 520px;
    margin-left: auto;
    text-align: right;
}

.landing-ebook-text {
    font-family: "Nunito", "Poppins", sans-serif;
    font-size: clamp(18px, 2.2vw, 24px) !important;
    font-weight: 500;
    line-height: 1.4;
    color: var(--primary);
    margin: 0 0 1.5rem;
}

.landing-ebook-btn {
    font-size: 15px;
    font-weight: 500;
    padding: 0.75rem 1.75rem;
    max-width: 100%;
}

/* --- Responsive ------------------------------------------------------------- */
@media (max-width: 860px) {
    .landing-effects-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        max-width: 460px;
        margin-inline: auto;
    }

    /* Keep "card, then its photo" order when the columns stack. */
    .landing-effects-grid > :nth-child(3) {
        order: 4;
    }

    .landing-effects-grid > :nth-child(4) {
        order: 3;
    }

    .landing-effects-grid > :nth-child(n + 5) {
        order: 5;
    }

    .landing-effect-img {
        height: auto;
    }

    .landing-effect-card h3 {
        font-size: 24px !important;
    }

    .landing-effect-card p {
        font-size: 18px !important;
    }

    .app-badges.app-badges-landing {
        justify-content: center;
    }

    .app-badges-landing .app-badge {
        flex: 0 1 300px;
    }
}

@media (max-width: 700px) {
    /* Phone hero: the portrait half of the photo, headline over its darkened lower part. */
    .landing-hero-inner {
        aspect-ratio: 945 / 900;
    }

    .landing-hero-text {
        left: 0;
        right: 0;
        top: auto;
        bottom: 0;
        transform: none;
        padding: 14vw 4vw 5vw;
        background: linear-gradient(180deg, rgba(50, 53, 58, 0) 0%, rgba(50, 53, 58, 0.92) 45%, #32353a 100%);
    }

    .landing-hero-logo-wrap {
        display: none;
    }

    .landing-hero-title {
        font-size: min(5.600vw, 28px) !important;
    }

    .landing-hero-script {
        font-size: min(8vw, 40px);
    }

    .landing-hero-flourish {
        width: min(44vw, 220px);
    }

    .landing-hero-tagline {
        font-size: min(3.600vw, 16px);
        margin-top: 8px;
    }

    .landing-section {
        padding: 2.5rem 1rem;
    }

    .app-badges-landing .app-badge {
        flex: 0 1 280px;
        padding: 12px 22px;
    }

    .app-badges-landing .app-badge-store {
        font-size: 1.350rem;
    }

    .landing-section-tight {
        padding-top: 0.5rem;
    }

    .landing-band-top {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }

    .landing-band-img {
        width: 100%;
        max-width: 260px;
        align-self: center;
    }

    .landing-band-closing {
        font-size: 18px !important;
    }

    .landing-ebook {
        flex-direction: column;
        gap: 1.5rem;
    }

    .landing-ebook-img {
        width: 100%;
        max-width: 340px;
    }

    .landing-ebook-body {
        margin-left: 0;
        text-align: center;
    }
}
