/* ============================================================
   Grace Mission Church — Home Page Styles (index.html)
   ============================================================ */

/* --- Hero Section --- */
.hero {
    padding: var(--sp-9) 0 var(--sp-10);
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-8);
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeIn 0.6s ease-out 0.15s forwards;
}

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 {
    margin-bottom: var(--sp-5);
}

.hero-content p {
    font-size: 1.125rem;
    color: var(--ink-muted);
    max-width: 480px;
    margin-bottom: var(--sp-6);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: var(--sp-4);
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-height: 540px;
    width: auto;
    object-fit: none;
    filter: saturate(0.3) contrast(0.95);
    opacity: 0.85;
    mask-image: linear-gradient(to left, black 50%, transparent 100%);
    -webkit-mask-image: linear-gradient(to left, black 50%, transparent 100%);
}

/* --- Bible Full-Bleed Widescreen Video Hero --- */
.page-header--hero-video-bg {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: var(--sp-12) 0 var(--sp-10);
    border-bottom: 1px solid var(--border-delicate);
    background: #17130f;
    width: 100%;
    box-sizing: border-box;
}

.bible-hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    pointer-events: none;
    filter: saturate(0.78) contrast(1.04) brightness(0.88);
}

/* --- Visitor-first featured message and engagement paths --- */
.featured-message-section {
    padding-top: var(--sp-6);
}

.featured-message {
    display: grid;
    grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
    min-height: 470px;
    overflow: hidden;
    border: 1px solid var(--border-delicate);
    border-radius: var(--radius-lg);
    background: var(--bg-paper-light);
    box-shadow: var(--shadow-lg);
}

.featured-message__art {
    display: grid;
    place-items: center;
    min-height: 100%;
    padding: clamp(1.5rem, 4vw, 3.5rem);
    background:
        radial-gradient(circle at 50% 42%, rgba(197, 160, 89, 0.2), transparent 42%),
        linear-gradient(145deg, #241a15, #100d0b 74%);
}

.featured-message__art img {
    width: min(100%, 460px);
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: 50%;
    mix-blend-mode: screen;
}

.featured-message__art video {
    width: min(100%, 460px);
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 0 0 1px var(--border-delicate), 0 18px 40px rgba(0, 0, 0, 0.45);
}

.featured-message__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2rem, 5vw, 4.75rem);
}

.featured-message__kicker {
    margin: var(--sp-5) 0 var(--sp-2);
    color: var(--accent-mahogany);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.featured-message__copy h2 {
    margin: 0 0 var(--sp-4);
    font-size: clamp(2.35rem, 5vw, 4.75rem);
    line-height: 0.98;
}

.featured-message__copy > p:not(.featured-message__kicker) {
    max-width: 58ch;
    color: var(--ink-muted);
    font-size: 1.08rem;
}

.featured-message__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
    margin: var(--sp-4) 0 var(--sp-6);
}

.featured-message__meta span {
    padding: 0.42rem 0.72rem;
    border: 1px solid var(--border-delicate);
    border-radius: 999px;
    color: var(--ink-muted);
    font-size: 0.78rem;
    font-weight: 600;
}

.featured-message__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-3);
}

.section-eyebrow--compact {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.engagement-section {
    padding-top: var(--sp-5);
}

.engagement-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--sp-4);
}

.engagement-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 310px;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    overflow: hidden;
    border: 1px solid var(--border-delicate);
    border-top: 3px solid var(--accent-gold);
    border-radius: var(--radius-md);
    background: var(--bg-paper-light);
    color: var(--ink-primary);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.engagement-card::after {
    content: '';
    position: absolute;
    right: -55px;
    bottom: -70px;
    width: 165px;
    height: 165px;
    border: 1px solid rgba(197, 160, 89, 0.22);
    border-radius: 50%;
}

.engagement-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-gold);
    box-shadow: var(--shadow-md);
}

.engagement-card:focus-visible {
    outline: 3px solid var(--accent-gold);
    outline-offset: 4px;
}

.engagement-card__label {
    margin-bottom: auto;
    color: var(--accent-mahogany);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.engagement-card h3 {
    margin: var(--sp-8) 0 var(--sp-3);
    font-size: clamp(1.45rem, 2.3vw, 2rem);
}

.engagement-card p {
    color: var(--ink-muted);
}

.engagement-card__action {
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding-top: var(--sp-5);
    color: var(--accent-mahogany);
    font-size: 0.88rem;
    font-weight: 700;
}

@media (max-width: 900px) {
    .featured-message {
        grid-template-columns: 1fr;
    }

    .featured-message__art {
        min-height: 340px;
    }

    .featured-message__art img,
    .featured-message__art video {
        width: min(72vw, 360px);
    }

    .featured-message__meta {
        justify-content: center;
    }

    .featured-message__actions {
        justify-content: center;
    }

    .featured-message__actions .btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
        text-align: center;
    }

    .engagement-grid {
        grid-template-columns: 1fr;
        gap: var(--sp-3);
    }

    .engagement-card {
        min-height: auto;
        padding: var(--sp-5) var(--sp-4);
    }

    .engagement-card h3 {
        margin: var(--sp-3) 0 var(--sp-2);
        font-size: clamp(1.3rem, 4.8vw, 1.55rem);
    }

    .engagement-card p {
        font-size: 0.95rem;
        line-height: 1.55;
        margin-bottom: var(--sp-2);
    }

    .engagement-card__action {
        padding-top: var(--sp-2);
    }
}

@media (prefers-reduced-motion: reduce) {
    .engagement-card {
        transition: none;
    }

    .engagement-card:hover {
        transform: none;
    }
}

.bible-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background:
        linear-gradient(180deg, rgba(23, 19, 15, 0.45) 0%, rgba(23, 19, 15, 0.65) 55%, rgba(23, 19, 15, 0.95) 100%),
        radial-gradient(circle at center, rgba(23, 19, 15, 0.2) 0%, rgba(23, 19, 15, 0.8) 100%);
    pointer-events: none;
}

.hero-container-centered {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.page-header--hero-video-bg .hero-content {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
    color: #FAF8F2;
    width: 100%;
}

.page-header--hero-video-bg .hero-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    color: #FAF8F2;
    margin: var(--sp-3) 0 var(--sp-2);
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6);
    letter-spacing: 0.02em;
    line-height: 1.15;
}

.page-header--hero-video-bg .hero-content p {
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    color: #E8DDC9;
    margin: 0 auto var(--sp-6);
    max-width: 540px;
    text-align: center;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.7);
    line-height: 1.6;
}

.page-header--hero-video-bg .hero-actions {
    display: flex;
    justify-content: center;
    gap: var(--sp-4);
    flex-wrap: wrap;
}

.page-header--hero-video-bg .gold-badge {
    background: rgba(201, 169, 106, 0.22);
    border: 1px solid rgba(201, 169, 106, 0.6);
    color: #E8DDC9;
    backdrop-filter: blur(8px);
}

.page-header--hero-video-bg .btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(232, 221, 201, 0.35);
    color: #FAF8F2;
    backdrop-filter: blur(8px);
}

.page-header--hero-video-bg .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: var(--accent-gold);
    color: #FAF8F2;
}

/* Quiet any accidental autoplay-with-sound overlay */
.bible-hero-bg-video::-webkit-media-controls-overlay-play-button {
    display: none;
}

/* Respect reduced-motion: hold on first frame */
@media (prefers-reduced-motion: reduce) {
    .bible-hero-bg-video {
        animation: none;
    }
}

@media (max-width: 768px) {
    .page-header--hero-video-bg {
        min-height: 380px;
        padding: var(--sp-8) var(--sp-3) var(--sp-6);
    }

    .page-header--hero-video-bg .hero-content {
        padding: 0 var(--sp-2);
    }

    .page-header--hero-video-bg .hero-content h1 {
        font-size: clamp(1.9rem, 7vw, 2.6rem);
    }

    .page-header--hero-video-bg .hero-content p {
        font-size: 0.95rem;
        margin-bottom: var(--sp-5);
    }

    .page-header--hero-video-bg .hero-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 290px;
        margin: 0 auto;
        gap: var(--sp-3);
    }

    .page-header--hero-video-bg .hero-actions .btn {
        width: 100%;
        max-width: 100%;
        justify-content: center;
    }
}


/* --- Craft.wild.as Feature: Split Discernment Comparison Block --- */
.split-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-6);
    margin: var(--sp-8) 0;
}

.comparison-card {
    border-radius: var(--radius-card);
    padding: var(--sp-7);
    border: 1px solid var(--border-delicate);
}

.comparison-card--brilliant {
    background: var(--bg-paper-light);
}

.comparison-card--hopeless {
    background: var(--accent-mahogany);
    color: var(--bg-parchment);
    border-color: var(--accent-gold);
}

.comparison-card--hopeless h3,
.comparison-card--hopeless h4 {
    color: var(--bg-parchment);
}

.comparison-card--hopeless p {
    color: var(--accent-gold-light);
}

.comparison-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--sp-3);
}

.comparison-card--brilliant .comparison-tag {
    color: #1a6b1a;
}

.comparison-card--hopeless .comparison-tag {
    color: var(--accent-gold);
}

/* --- Craft.wild.as Feature: Numbered Step Cards (01 - 04 Process) --- */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-5);
    margin-top: var(--sp-6);
}

.process-card {
    background: var(--bg-paper-light);
    border: 1px solid var(--border-delicate);
    border-radius: var(--radius-card);
    padding: var(--sp-6);
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, border-color 0.25s ease;
    position: relative;
}

.process-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-2px);
}

.process-number {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: var(--sp-2);
}

/* --- Craft.wild.as Feature: Scripture Context Protocol Grid --- */
.protocol-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-5);
    margin: var(--sp-6) 0;
}

.protocol-card {
    background: var(--bg-paper-light);
    border: 1px solid var(--border-delicate);
    border-radius: var(--radius-card);
    padding: var(--sp-6);
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.protocol-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-2px);
}

.protocol-card h3 {
    font-size: 1.15rem;
    margin-bottom: var(--sp-2);
}

.protocol-card p {
    color: var(--ink-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* --- Craft.wild.as Feature: Discipleship Maturity Staircase (L1, L3, L5) --- */
.staircase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-6);
    margin-top: var(--sp-6);
}

.staircase-card {
    background: var(--bg-paper-light);
    border: 1px solid var(--border-delicate);
    border-radius: var(--radius-card);
    padding: var(--sp-6);
    box-shadow: var(--shadow-card);
    position: relative;
    border-top: 3px solid var(--accent-gold);
}

.staircase-level {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-mahogany);
    margin-bottom: var(--sp-2);
}


/* --- Community Story & Mission Section (Phase Up Spec) --- */
.community-story-section {
    padding: var(--sp-8) 0 var(--sp-9) 0;
    background: #F5F2E9;
}

/* SECTION 1 — HERO IMAGE */
.community-hero-image-wrap {
    width: 100%;
    border-radius: var(--radius-card);
    overflow: hidden;
    border: 1px solid #D6CBB8;
    box-shadow: 0 12px 36px rgba(60, 53, 46, 0.08);
    margin-bottom: 56px;
    position: relative;
    background: #F5F2E9;
}

.community-hero-image {
    width: 100%;
    height: clamp(420px, 45vw, 520px);
    object-fit: cover;
    display: block;
    filter: saturate(0.96) contrast(1.02);
}

.community-hero-image-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(245, 242, 233, 0.04) 0%, rgba(60, 53, 46, 0.28) 100%);
    pointer-events: none;
}

/* SECTION 2 — HEADER BLOCK */
.community-header {
    text-align: center;
    max-width: 860px;
    margin: 0 auto 48px auto;
}

.community-section-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(28px, 3.2vw, 36px);
    color: #3C352E;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.community-subheader {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: clamp(18px, 2vw, 22px);
    color: #4F463C;
    margin: 0;
    line-height: 1.4;
}

/* SECTION 3 — TWO-COLUMN STORY */
.story-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(48px, 5vw, 64px);
    max-width: 1080px;
    margin: 0 auto 64px auto;
}

.story-col {
    background: #FAF8F2;
    border: 1px solid #D6CBB8;
    border-radius: var(--radius-card);
    padding: var(--sp-7);
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 16px rgba(60, 53, 46, 0.04);
}

.story-col-label {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #3C352E;
    margin-bottom: var(--sp-3);
}

.story-col p {
    color: #3C352E;
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
}

/* SECTION 4 — THREE-PILLAR ROW */
.pillars-three-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    max-width: 1080px;
    margin: 0 auto 64px auto;
}

.pillar-card {
    background: #FAF8F2;
    border: 1px solid #D6CBB8;
    border-radius: var(--radius-card);
    padding: var(--sp-7) var(--sp-5);
    text-align: center;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
    cursor: default;
    box-shadow: 0 4px 16px rgba(60, 53, 46, 0.04);
}

.pillar-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-gold);
    box-shadow: 0 12px 28px rgba(60, 53, 46, 0.10);
}

.pillar-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(79, 70, 60, 0.08);
    color: #4F463C;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--sp-4);
}

.pillar-card h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(18px, 1.8vw, 20px);
    color: #3C352E;
    margin: 0 0 var(--sp-2) 0;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pillar-card p {
    color: #4F463C;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* SECTION 5 — MISSION STATEMENT */
.mission-statement-card {
    background: #FAF8F2;
    border: 1px solid #D6CBB8;
    border-radius: var(--radius-card);
    padding: var(--sp-8) var(--sp-7);
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
    box-shadow: 0 8px 28px rgba(60, 53, 46, 0.06);
}

.mission-quote {
    font-family: var(--font-heading);
    font-size: clamp(24px, 2.8vw, 30px);
    font-weight: 500;
    font-style: normal;
    color: #3C352E;
    line-height: 1.45;
    margin: 0 0 12px 0;
    padding: 0;
    border: none;
}

.mission-subtext {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(16px, 1.6vw, 18px);
    color: #4F463C;
    line-height: 1.6;
    margin: 0 0 48px 0;
}

/* SECTION 6 — CTA BUTTON */
.mission-cta-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 0;
}

.btn-story-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    padding: 14px 28px;
    background: #4F463C;
    color: #F5F2E9 !important;
    border: 1px solid #4F463C;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 14px rgba(79, 70, 60, 0.18);
}

.btn-story-cta:hover {
    background: #3C352E;
    border-color: #3C352E;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(60, 53, 46, 0.24);
}

/* --- Service Strip Location Card --- */
.service-strip-section {
    padding: var(--sp-4) 0 var(--sp-7);
}

.service-strip-card {
    background: var(--bg-paper-light);
    border: 1px solid var(--accent-gold);
    border-radius: var(--radius-card);
    padding: var(--sp-6);
    text-align: center;
    box-shadow: var(--shadow-card);
}

.service-strip-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--sp-4);
}

.service-strip-header h2 {
    margin-bottom: 0.25rem;
    font-size: clamp(1.5rem, 3.2vw, 2.1rem);
}

.service-strip-header p {
    color: var(--ink-muted);
    margin: 0;
    font-size: 1rem;
}

.service-strip-actions {
    display: flex;
    justify-content: center;
    gap: var(--sp-3);
    flex-wrap: wrap;
    width: 100%;
}

@media (max-width: 768px) {
    .service-strip-section {
        padding: var(--sp-3) 0 var(--sp-5);
    }

    .service-strip-card {
        padding: var(--sp-5) var(--sp-4);
    }

    .service-strip-header h2 {
        font-size: clamp(1.25rem, 5vw, 1.55rem);
        line-height: 1.3;
    }

    .service-strip-header p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .service-strip-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--sp-2);
        max-width: 360px;
        margin: 0 auto;
    }

    .service-strip-actions .btn-gold {
        grid-column: span 2;
        width: 100%;
        justify-content: center;
    }

    .service-strip-actions .btn-outline {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 0.5rem;
        font-size: 0.825rem;
    }

    /* Community Story Mobile Polish */
    .community-story-section {
        padding: var(--sp-6) 0 var(--sp-7);
    }

    .community-hero-image-wrap {
        margin-bottom: var(--sp-5);
        border-radius: var(--radius-soft);
    }

    .community-hero-image {
        height: clamp(200px, 52vw, 280px);
    }

    .community-header {
        margin: 0 auto var(--sp-5) auto;
    }

    .community-section-title {
        font-size: clamp(22px, 5.5vw, 28px);
    }

    .community-subheader {
        font-size: clamp(15px, 3.8vw, 18px);
        line-height: 1.4;
    }

    .story-two-col {
        grid-template-columns: 1fr;
        gap: var(--sp-4);
        margin: 0 auto var(--sp-5) auto;
    }

    .story-col {
        padding: var(--sp-5) var(--sp-4);
    }

    .story-col-label {
        font-size: 1.05rem;
        margin-bottom: var(--sp-2);
    }

    .story-col p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .pillars-three-row {
        grid-template-columns: 1fr;
        gap: var(--sp-3);
        margin: 0 auto var(--sp-5) auto;
    }

    .pillar-card {
        padding: var(--sp-5) var(--sp-4);
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .pillar-icon {
        width: 48px;
        height: 48px;
        margin-bottom: var(--sp-3);
    }

    .pillar-card h3 {
        font-size: 1.1rem;
        margin-bottom: var(--sp-1);
    }

    .pillar-card p {
        font-size: 0.9rem;
    }

    .mission-statement-card {
        padding: var(--sp-6) var(--sp-4);
    }

    .mission-quote {
        font-size: clamp(1.2rem, 4.8vw, 1.5rem);
        line-height: 1.4;
        margin-bottom: var(--sp-3);
    }

    .mission-subtext {
        font-size: 0.95rem;
        line-height: 1.55;
        margin-bottom: var(--sp-5);
    }

    .btn-story-cta {
        width: 100%;
        max-width: 320px;
        text-align: center;
        padding: 12px 20px;
    }
}
