/* ==========================================
   WINNILOCAL LANDING PAGES
   Max width: 1100px
   ========================================== */

/* Full bleed applies only while a shared background image is configured. */
body.winnilocal-landing.winnilocal-has-background {
    overflow-x: clip;
}

body.winnilocal-landing.winnilocal-has-background #content-wrap {
    width: auto;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    box-sizing: border-box;
    min-height: 100vh;
    background-color: transparent;
    background-image: var(--wl-background-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

body.winnilocal-landing.winnilocal-has-background #primary,
body.winnilocal-landing.winnilocal-has-background #content {
    width: 100%;
    max-width: none;
    background: transparent;
}

body.winnilocal-landing.winnilocal-has-background .wl-landing {
    max-width: 1100px;
}

.wl-landing {
    width: 100%;
    max-width: 1100px;
    margin: 35px auto 60px;
    padding: 0 20px;
    box-sizing: border-box;
    font-family: inherit;
    line-height: 1.7;
}

/* The theme title supplies the page's H1 only where a managed landing page exists. */
body:has(.wl-landing) .entry-title,
body:has(.wl-landing) .page-title,
body:has(.wl-landing) .wp-block-post-title {
    display: none;
}

.wl-landing *,
.wl-landing *::before,
.wl-landing *::after {
    box-sizing: border-box;
}

/* HERO */

.wl-landing .wl-hero {
    background: #f3f5f7;
    border-radius: 16px;
    padding: 55px 50px;
    margin-bottom: 45px;
}

.wl-landing .wl-hero-inner {
    max-width: 850px;
}

.wl-landing .wl-h1 {
    font-size: clamp(32px, 4vw, 46px);
    line-height: 1.2;
    font-weight: 700;
    margin: 0 0 25px;
    color: #20252b;
}

.wl-landing .wl-intro {
    font-size: 19px;
    line-height: 1.75;
    margin: 0 0 30px;
    color: #444;
}

/* CONTENT */

.wl-landing .wl-content {
    width: 100%;
}

.wl-landing .wl-section {
    width: 100%;
    margin: 0 0 45px;
    padding: 0 5px 35px;
    border-bottom: 1px solid #e5e7eb;
}

.wl-landing .wl-h2 {
    font-size: clamp(25px, 3vw, 32px);
    line-height: 1.3;
    font-weight: 700;
    margin: 0 0 22px;
}

.wl-landing .wl-h3 {
    font-size: 21px;
    line-height: 1.4;
    font-weight: 600;
    margin: 0 0 12px;
}

.wl-landing p {
    font-size: 17px;
    line-height: 1.75;
    margin: 0 0 18px;
}

.wl-landing .wl-section-text {
    max-width: 900px;
}

/* CARDS */

.wl-landing .wl-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 30px;
}

.wl-landing .wl-subsections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-top: 25px;
}

.wl-landing .wl-card {
    padding: 28px;
    border-radius: 12px;
    background: #f7f8fa;
    border: 1px solid #e8eaed;
}

.wl-landing .wl-card p {
    font-size: 16px;
    margin-bottom: 0;
}

/* BUTTONS */

.wl-landing .wl-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    background: #20252b;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    transition: background .2s ease;
}

.wl-landing .wl-button:hover,
.wl-landing .wl-button:focus {
    background: #414a55;
    color: #fff;
    text-decoration: none;
}

/* FAQ */

.wl-landing .wl-faq-item {
    border: 1px solid #e3e6e9;
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
}

.wl-landing .wl-faq-item summary {
    padding: 18px 22px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    list-style-position: inside;
}

.wl-landing .wl-faq-answer {
    padding: 0 22px 20px;
}

.wl-landing .wl-faq-answer p {
    margin: 0;
}

/* FINAL CTA */

.wl-landing .wl-final-cta {
    padding: 45px;
    background: #f3f5f7;
    border-radius: 16px;
    text-align: center;
}

.wl-landing .wl-final-cta h2 {
    font-size: 28px;
    margin: 0 0 15px;
}

.wl-landing .wl-final-cta p {
    margin-bottom: 25px;
}

/* TABLET */

@media (max-width: 900px) {

    .wl-landing .wl-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

/* MOBILE */

@media (max-width: 768px) {

    .wl-landing {
        padding: 0 15px;
        margin: 20px auto 40px;
    }

    .wl-landing .wl-hero {
        padding: 35px 25px;
        margin-bottom: 30px;
    }

    .wl-landing .wl-intro {
        font-size: 17px;
    }

    .wl-landing .wl-section {
        margin-bottom: 30px;
        padding-bottom: 25px;
    }

    .wl-landing .wl-card-grid,
    .wl-landing .wl-subsections {
        grid-template-columns: 1fr;
    }

    .wl-landing .wl-card {
        padding: 22px;
    }

    .wl-landing .wl-final-cta {
        padding: 35px 22px;
    }

}
