@import url("https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,300;0,400;0,600;0,700;0,800;1,300;1,400&display=swap");

/* ============================================================
   Contend Splash — mobile-first
   Font stack: Futura (macOS/iOS) → Jost (web fallback)
   ============================================================ */

/* ── Watermark ── */
.contend-watermark {
    position: absolute;
    top: 38%;
    left: calc(50% + 82vw);
    transform: translate(-50%, -50%);
    width: 300vw;
    max-width: 3000px;
    pointer-events: none;
    z-index: 1;
}
.contend-watermark img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.10;
}

/* ── Reset Divi ── */
body.contend-splash #page-container,
body.contend-splash #main-header,
body.contend-splash #main-footer,
body.contend-splash #top-header,
body.contend-splash .et_pb_section,
body.contend-splash .et_pb_row {
    margin: 0 !important;
    padding: 0 !important;
}

body.contend-splash,
body.contend-splash html {
    background: #000;
    overflow: hidden;
    height: 100lvh;
}

/* ── Root ── */
.contend-root {
    font-family: 'Futura', 'Jost', 'Century Gothic', 'Trebuchet MS', sans-serif;
    height: 100lvh;
    overflow: hidden;
}

/* ── Hero ── */
.contend-hero {
    position: relative;
    height: 100lvh;
    min-height: 100vh;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
}

/* Darker overlay — heavy at top, near-black at bottom, texture visible */
.contend-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.96) 0%,
        rgba(0, 0, 0, 0.98) 50%,
        rgba(0, 0, 0, 1.00) 100%
    );
}

/* ── Inner ── */
.contend-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 80px 28px 48px;
    text-align: center;
    width: 100%;
    max-width: 420px;
    height: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

/* ── Logo ── */
.contend-logo {
    width: clamp(160px, 55vw, 260px);
    height: auto;
    margin-bottom: 28px;
}

/* ── Date chip ── */
.contend-date-chip {
    display: inline-block;
    padding: 7px 16px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    cursor: pointer;
    font-family: 'Futura', 'Jost', 'Century Gothic', 'Trebuchet MS', sans-serif;
    transition: background 0.2s, border-color 0.2s;
}
.contend-date-chip:hover,
.contend-date-chip:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.45);
    outline: none;
}

/* ── Scripture modal ── */
.contend-scripture-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 200;
}
.contend-scripture-backdrop.is-open {
    display: block;
}
.contend-scripture-modal {
    position: fixed;
    top: 44%;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    width: min(480px, calc(100vw - 40px));
    max-height: calc(100dvh - 80px);
    background: rgba(10, 10, 10, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 36px 32px 32px;
    color: #ffffff;
    z-index: 201;
    display: none;
    flex-direction: column;
    gap: 16px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    font-family: 'Futura', 'Jost', 'Century Gothic', 'Trebuchet MS', sans-serif;
}
.contend-scripture-modal[open],
.contend-scripture-modal.is-open {
    display: flex;
}
/* Reset native <dialog> chrome */
.contend-scripture-modal::backdrop { display: none; }
.contend-scripture-close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.contend-scripture-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}
.contend-scripture-ref {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}
.contend-scripture-text {
    font-size: clamp(15px, 3.5vw, 17px);
    font-weight: 300;
    line-height: 1.7;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    border: none;
    padding: 0;
}

/* ── Title ── */
.contend-title {
    font-family: 'Futura', 'Jost', 'Century Gothic', 'Trebuchet MS', sans-serif;
    font-size: clamp(22px, 6vw, 30px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0 0 48px;
}

/* ── Tagline ── */
.contend-blurb {
    font-size: 14px;
    font-weight: 300;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.75);
    margin: 0 0 36px;
    font-style: italic;
    letter-spacing: 0.2px;
}

/* ── Actions ── */
.contend-actions {
    display: grid;
    gap: 12px;
    width: 100%;
    margin-top: auto;
    padding-bottom: 8px;
}

/* ── Buttons ── */
.contend-btn {
    display: block;
    text-align: center;
    padding: 14px 24px;
    border-radius: 999px;
    font-family: 'Futura', 'Jost', 'Century Gothic', 'Trebuchet MS', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.contend-btn:hover,
.contend-btn:focus {
    opacity: 0.85;
    outline: none;
}

.contend-btn--primary {
    background: #ffffff;
    color: #111111;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.contend-btn--secondary {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.contend-btn--disabled {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.35);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    cursor: not-allowed;
    pointer-events: none;
}

/* ── Burger button ── */
.contend-burger {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 20px);
    right: 20px;
    z-index: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    color: #ffffff;
    padding: 0;
    transition: opacity 0.2s;
}
.contend-burger.is-hidden {
    opacity: 0;
    pointer-events: none;
}

/* ── Full-screen nav menu ── */
.contend-nav-menu {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.97);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
}
.contend-nav-menu.is-open {
    opacity: 1;
    pointer-events: auto;
}
.contend-nav-close {
    position: absolute;
    top: calc(env(safe-area-inset-top, 0px) + 20px);
    right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    color: #ffffff;
    padding: 0;
}
.contend-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
}
.contend-nav-link {
    font-family: 'Futura', 'Jost', 'Century Gothic', 'Trebuchet MS', sans-serif;
    font-size: clamp(16px, 5.5vw, 52px);
    font-weight: 800;
    letter-spacing: clamp(1px, 0.5vw, 3px);
    text-transform: uppercase;
    white-space: nowrap;
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}
.contend-nav-link:hover { opacity: 0.5; }

/* ── About modal ── */
.contend-about-modal {
    position: fixed;
    inset: 0;
    background: #0d0a06;
    z-index: 350;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}
.contend-about-modal.is-open {
    transform: translateY(0);
}
.contend-about-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(env(safe-area-inset-top, 0px) + 24px) 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}
.contend-about-header h2 {
    font-family: 'Futura', 'Jost', 'Century Gothic', 'Trebuchet MS', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}
.contend-about-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.contend-about-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}
.contend-about-body {
    flex: 1;
    overflow-y: auto;
    padding: 40px 28px calc(env(safe-area-inset-bottom, 0px) + 60px);
    -webkit-overflow-scrolling: touch;
}
.contend-about-body p {
    font-family: 'Futura', 'Jost', 'Century Gothic', 'Trebuchet MS', sans-serif;
    font-size: clamp(15px, 4vw, 18px);
    font-weight: 300;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 1.4em;
    letter-spacing: 0.2px;
}
.contend-about-body p:last-child { margin-bottom: 0; }

/* ── Desktop gate overlay ── */
.contend-desktop-gate {
    display: none;
}
@media (min-width: 1025px) {
    .contend-desktop-gate {
        display: flex;
        position: fixed;
        inset: 0;
        z-index: 9999;
        background: #000;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 40px;
        font-family: 'Futura', 'Jost', 'Century Gothic', 'Trebuchet MS', sans-serif;
    }
    .contend-desktop-gate img {
        width: clamp(120px, 16vw, 200px);
        height: auto;
        opacity: 0.9;
        margin-bottom: 40px;
    }
    .contend-desktop-gate p {
        font-size: clamp(14px, 1.4vw, 17px);
        font-weight: 300;
        line-height: 1.7;
        color: rgba(255, 255, 255, 0.6);
        max-width: 380px;
        margin: 0 0 10px;
        letter-spacing: 0.3px;
    }
    .contend-desktop-gate strong {
        color: #ffffff;
        font-weight: 700;
        letter-spacing: 1px;
    }
}

/* ── Scale up ── */
@media (min-width: 480px) {
    .contend-logo { width: clamp(200px, 40vw, 280px); }
    .contend-title { font-size: clamp(24px, 5vw, 32px); }
}

@media (min-width: 1024px) {
    .contend-inner { max-width: 520px; }
    .contend-logo { width: clamp(240px, 22vw, 340px); }
    .contend-title { font-size: clamp(26px, 2.8vw, 36px); }
    .contend-blurb { font-size: 15px; }
}
