﻿:root {
    --home-navy: #0b1d34;
    --home-navy-dark: #071321;
    --home-gold: #d4af37;
    --home-light-gold: #f4d98b;
    --home-white: #f7f6f1;
    --home-text: #f4f0e8;
}


/* ===========================================================
   HERO
   =========================================================== */

.hero {
    position: relative;
    display: flex;
    min-height: 100vh;
    align-items: flex-start;
    overflow: hidden;
    background-position: 43% center;
    background-repeat: no-repeat;
    background-size: cover;
    isolation: isolate;
    animation: hero-background-movement 18s ease-in-out infinite alternate;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(
            90deg,
            rgba(3, 10, 20, 0.78) 0%,
            rgba(3, 10, 20, 0.72) 12%,
            rgba(3, 10, 20, 0.62) 22%,
            rgba(3, 10, 20, 0.46) 31%,
            rgba(3, 10, 20, 0.24) 39%,
            rgba(3, 10, 20, 0.08) 47%,
            rgba(3, 10, 20, 0.02) 56%,
            rgba(3, 10, 20, 0) 68%
        ),
        linear-gradient(
            0deg,
            rgba(3, 10, 20, 0.36) 0%,
            rgba(3, 10, 20, 0.12) 20%,
            transparent 42%
        );
}

.hero-container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding-top: 94px;
    padding-right: clamp(24px, 4vw, 64px);
    padding-bottom: 62px;
    padding-left: clamp(46px, 4.2vw, 72px);
}

.hero-content {
    width: 100%;
    max-width: 445px;
    margin: 0;
}

.hero-ministry-introduction {
    width: 100%;
    max-width: 430px;
}


/* ===========================================================
   HERO INTRODUCTION
   =========================================================== */

.hero-ministry-name {
    max-width: 430px;
    margin: 0;
    color: var(--home-light-gold);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.35rem, 3.3vw, 3.75rem);
    font-weight: 700;
    letter-spacing: 0.065em;
    line-height: 1.03;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.65),
        0 6px 18px rgba(0, 0, 0, 0.35);
    text-transform: uppercase;
}

.hero-ministry-statement {
    max-width: 400px;
    margin: 25px 0 0;
    color: var(--home-text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.03rem, 1.18vw, 1.22rem);
    line-height: 1.62;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.8),
        0 4px 12px rgba(0, 0, 0, 0.45);
}

.hero-divider {
    display: flex;
    width: 100%;
    max-width: 410px;
    align-items: center;
    gap: 16px;
    margin: 31px 0;
}

.hero-divider-line {
    display: block;
    height: 1px;
    flex: 1;
    background: linear-gradient(
        90deg,
        rgba(212, 175, 55, 0.42),
        rgba(244, 217, 139, 0.9)
    );
}

.hero-divider-line:last-child {
    background: linear-gradient(
        90deg,
        rgba(244, 217, 139, 0.9),
        rgba(212, 175, 55, 0.42)
    );
}

.hero-divider-diamond {
    display: block;
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    background-color: var(--home-gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.35);
    transform: rotate(45deg);
}


/* ===========================================================
   HERO MESSAGE
   =========================================================== */

.hero .hero-content .hero-title {
    max-width: 430px;
    margin: 0;
    color: var(--home-light-gold);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.3rem, 3vw, 3.35rem);
    font-weight: 700;
    line-height: 1.04;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.7),
        0 6px 18px rgba(0, 0, 0, 0.35);
    text-wrap: balance;
}

.hero .hero-content .hero-title span {
    display: block;
}

.hero-description {
    max-width: 395px;
    margin: 27px 0 0;
    color: var(--home-white);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1rem, 1.08vw, 1.16rem);
    line-height: 1.65;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.82),
        0 5px 14px rgba(0, 0, 0, 0.42);
}


/* ===========================================================
   HERO ACTIONS
   =========================================================== */

.hero-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 13px;
    margin-top: 31px;
}

.hero-primary-action,
.hero-secondary-action {
    display: inline-flex;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 14px 19px;
    border: 1px solid transparent;
    border-radius: 2px;
    font-size: 0.69rem;
    font-weight: 800;
    letter-spacing: 0.075em;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    transition:
        transform 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease,
        color 180ms ease;
}

.hero-primary-action {
    border-color: var(--home-gold);
    background: linear-gradient(
        135deg,
        var(--home-light-gold),
        var(--home-gold)
    );
    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
    color: var(--home-navy-dark);
}

.hero-primary-action:hover,
.hero-primary-action:focus {
    border-color: var(--home-light-gold);
    background: linear-gradient(
        135deg,
        #f9e6a7,
        var(--home-light-gold)
    );
    box-shadow:
        0 11px 28px rgba(0, 0, 0, 0.38),
        0 0 18px rgba(212, 175, 55, 0.25);
    color: var(--home-navy-dark);
    transform: translateY(-2px);
}

.hero-secondary-action {
    border-color: rgba(247, 246, 241, 0.68);
    background-color: rgba(3, 10, 20, 0.32);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
    color: var(--home-white);
    backdrop-filter: blur(2px);
}

.hero-secondary-action:hover,
.hero-secondary-action:focus {
    border-color: var(--home-gold);
    background-color: rgba(3, 10, 20, 0.72);
    box-shadow:
        0 11px 28px rgba(0, 0, 0, 0.34),
        0 0 14px rgba(212, 175, 55, 0.15);
    color: var(--home-light-gold);
    transform: translateY(-2px);
}


/* ===========================================================
   HERO SCRIPTURE
   =========================================================== */

.hero-scripture {
    max-width: 405px;
    margin: 34px 0 0;
    padding-left: 18px;
    border-left: 2px solid var(--home-gold);
    color: var(--home-white);
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.85),
        0 5px 14px rgba(0, 0, 0, 0.45);
}

.hero-scripture p {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(0.96rem, 1.05vw, 1.11rem);
    font-style: italic;
    line-height: 1.55;
}

.hero-scripture cite {
    display: block;
    margin-top: 10px;
    color: var(--home-gold);
    font-size: 0.71rem;
    font-style: normal;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
    text-transform: uppercase;
}


/* ===========================================================
   ONE STORY
   =========================================================== */

.one-story {
    position: relative;
    overflow: hidden;
    padding: 118px 0 124px;
    background:
        linear-gradient(
            90deg,
            rgba(28, 25, 22, 0.12) 0%,
            rgba(28, 25, 22, 0.58) 23%,
            rgba(28, 25, 22, 0.92) 43%,
            rgba(28, 25, 22, 0.98) 100%
        ),
        url("/images/hero-doorway.png");
    background-position: left 73%;
    background-repeat: no-repeat;
    background-size: cover;
    color: var(--home-white);
    text-align: center;
}

.one-story::before {
    position: absolute;
    top: 0;
    left: 50%;
    width: 100%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(212, 175, 55, 0.28) 10%,
        rgba(244, 217, 139, 0.92) 50%,
        rgba(212, 175, 55, 0.28) 90%,
        transparent 100%
    );
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.18);
    content: "";
    transform: translateX(-50%);
}

.one-story::after {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(18, 17, 15, 0.15) 0%,
            rgba(18, 17, 15, 0.34) 18%,
            rgba(18, 17, 15, 0.72) 37%,
            rgba(18, 17, 15, 0.94) 58%,
            rgba(18, 17, 15, 0.98) 100%
        ),
        radial-gradient(
            circle at 50% 8%,
            rgba(212, 175, 55, 0.11),
            transparent 34%
        );
    content: "";
    pointer-events: none;
}

.one-story-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 28px;
}

.one-story .section-label {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 25px;
    color: var(--home-gold);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.32em;
    text-transform: uppercase;
}

.one-story .section-label::before,
.one-story .section-label::after {
    display: block;
    width: 44px;
    height: 1px;
    background-color: rgba(212, 175, 55, 0.62);
    content: "";
}

.one-story h2 {
    max-width: 850px;
    margin: 0 auto 34px;
    color: var(--home-light-gold);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.45rem, 4.5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.15;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.28);
    text-wrap: balance;
}

.one-story p {
    max-width: 740px;
    margin: 0 auto 24px;
    color: rgba(247, 246, 241, 0.88);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.05rem, 1.45vw, 1.22rem);
    line-height: 1.82;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.one-story p + p {
    margin-top: 4px;
}

.one-story-button {
    display: inline-flex;
    min-height: 56px;
    align-items: center;
    justify-content: center;
    gap: 11px;
    margin-top: 28px;
    padding: 16px 36px;
    border: 1px solid var(--home-gold);
    border-radius: 2px;
    background: linear-gradient(
        135deg,
        var(--home-light-gold),
        var(--home-gold)
    );
    box-shadow:
        0 10px 26px rgba(0, 0, 0, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    color: var(--home-navy-dark);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-decoration: none;
    text-transform: uppercase;
    transition:
        background-color 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease,
        color 180ms ease,
        transform 180ms ease;
}

.one-story-button::after {
    content: "→";
    font-size: 1rem;
    line-height: 1;
}

.one-story-button:hover,
.one-story-button:focus {
    border-color: var(--home-light-gold);
    background: linear-gradient(
        135deg,
        #f9e6a7,
        var(--home-light-gold)
    );
    box-shadow:
        0 14px 32px rgba(0, 0, 0, 0.32),
        0 0 18px rgba(212, 175, 55, 0.16);
    color: var(--home-navy-dark);
    transform: translateY(-3px);
}


/* ===========================================================
   ANIMATIONS
   =========================================================== */

.hero-reveal {
    opacity: 0;
    transform: translateY(30px);
}

.page-ready .hero-reveal {
    animation: hero-reveal-up 750ms ease forwards;
    animation-delay: var(--reveal-delay, 0s);
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(35px);
    transition:
        opacity 700ms ease,
        transform 700ms ease;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes hero-reveal-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hero-background-movement {
    from {
        background-position: 42.5% 50%;
    }

    to {
        background-position: 43.5% 49%;
    }
}


/* ===========================================================
   LARGE DESKTOP
   =========================================================== */

@media (min-width: 1500px) {
    .hero-container {
        padding-top: 105px;
        padding-left: clamp(58px, 4.4vw, 88px);
    }

    .hero-content {
        max-width: 470px;
    }

    .hero-ministry-name,
    .hero .hero-content .hero-title {
        max-width: 460px;
    }
}


/* ===========================================================
   TABLET
   =========================================================== */

@media (max-width: 991px) {
    .hero {
        min-height: auto;
        background-position: 50% center;
        animation: none;
    }

    .hero-overlay {
        background:
            linear-gradient(
                90deg,
                rgba(3, 10, 20, 0.84) 0%,
                rgba(3, 10, 20, 0.72) 38%,
                rgba(3, 10, 20, 0.42) 68%,
                rgba(3, 10, 20, 0.18) 100%
            ),
            linear-gradient(
                0deg,
                rgba(3, 10, 20, 0.52) 0%,
                transparent 44%
            );
    }

    .hero-container {
        padding-top: 104px;
        padding-bottom: 80px;
    }

    .hero-content {
        max-width: 540px;
    }

    .hero-ministry-introduction,
    .hero-ministry-name,
    .hero-ministry-statement,
    .hero-divider,
    .hero .hero-content .hero-title,
    .hero-description,
    .hero-scripture {
        max-width: 100%;
    }

    .one-story {
        padding: 96px 0 102px;
        background-position: 18% 73%;
    }

    .one-story::after {
        background:
            linear-gradient(
                90deg,
                rgba(18, 17, 15, 0.38) 0%,
                rgba(18, 17, 15, 0.76) 42%,
                rgba(18, 17, 15, 0.96) 100%
            ),
            radial-gradient(
                circle at 50% 8%,
                rgba(212, 175, 55, 0.1),
                transparent 34%
            );
    }
}


/* ===========================================================
   MOBILE
   =========================================================== */

@media (max-width: 767px) {
    .hero {
        min-height: 100vh;
        background-position: 58% center;
    }

    .hero-overlay {
        background:
            linear-gradient(
                0deg,
                rgba(3, 10, 20, 0.96) 0%,
                rgba(3, 10, 20, 0.86) 58%,
                rgba(3, 10, 20, 0.58) 100%
            );
    }

    .hero-container {
        padding-top: 96px;
        padding-right: 20px;
        padding-bottom: 62px;
        padding-left: 20px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-ministry-name {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .hero-divider {
        margin: 26px 0;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-primary-action,
    .hero-secondary-action {
        width: 100%;
    }

    .hero-scripture {
        margin-top: 32px;
    }

    .one-story {
        padding: 78px 0 84px;
        background-position: 25% 73%;
        text-align: left;
    }

    .one-story::after {
        background:
            linear-gradient(
                0deg,
                rgba(18, 17, 15, 0.98) 0%,
                rgba(18, 17, 15, 0.92) 62%,
                rgba(18, 17, 15, 0.74) 100%
            );
    }

    .one-story-content {
        max-width: none;
        padding: 0 20px;
    }

    .one-story h2,
    .one-story p {
        margin-right: 0;
        margin-left: 0;
    }

    .one-story .section-label {
        gap: 10px;
        letter-spacing: 0.24em;
    }

    .one-story .section-label::before,
    .one-story .section-label::after {
        width: 28px;
    }

    .one-story-button {
        width: 100%;
    }
}


/* ===========================================================
   REDUCED MOTION
   =========================================================== */

@media (prefers-reduced-motion: reduce) {
    .hero {
        animation: none;
    }

    .hero-reveal,
    .page-ready .hero-reveal,
    .reveal-on-scroll,
    .reveal-on-scroll.is-visible {
        opacity: 1;
        transform: none;
        animation: none;
        transition: none;
    }

    .hero-primary-action,
    .hero-secondary-action,
    .one-story-button {
        transition: none;
    }
}