﻿/* ==========================================================
   GWM MODERN CHURCH HOME
   Scoped only to: .gwm-modern-church-home
   Safe add-on. Does not affect gateway, menus, footer, or other pages.
========================================================== */

.gwm-modern-church-home {
    --gwm-bg: #fffdf7;
    --gwm-soft: #f7f1e4;
    --gwm-ink: #181510;
    --gwm-muted: #6f6758;
    --gwm-gold: #b88a2e;
    --gwm-gold-dark: #8a641d;
    --gwm-line: rgba(24, 21, 16, 0.12);
    --gwm-dark: #15120c;
    --gwm-radius: 22px;
    background: var(--gwm-bg);
    color: var(--gwm-ink);
}

.gwm-modern-church-home * {
    box-sizing: border-box;
}

.gwm-modern-church-home img {
    max-width: 100%;
    height: auto;
    display: block;
}

.gwm-home-wrap {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.gwm-home-hero {
    padding: clamp(72px, 10vw, 120px) 0 clamp(48px, 8vw, 80px);
    background:
        radial-gradient(circle at top right, rgba(184, 138, 46, 0.18), transparent 34%),
        linear-gradient(180deg, #fffaf0 0%, #fffdf7 100%);
}

.gwm-home-hero-grid,
.gwm-two-col,
.gwm-contact-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(32px, 6vw, 72px);
    align-items: center;
}

.gwm-home-kicker,
.gwm-section-heading p {
    margin: 0 0 14px;
    color: var(--gwm-gold-dark);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.gwm-home-hero h1,
.gwm-modern-church-home h2 {
    margin: 0;
    color: var(--gwm-ink);
    font-weight: 850;
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.gwm-home-hero h1 {
    font-size: clamp(2.8rem, 7vw, 5.8rem);
    max-width: 820px;
}

.gwm-modern-church-home h2 {
    font-size: clamp(2rem, 4vw, 3.6rem);
}

.gwm-modern-church-home h3 {
    margin: 0 0 10px;
    color: var(--gwm-ink);
    font-size: 1.15rem;
    line-height: 1.2;
}

.gwm-home-lead,
.gwm-modern-church-home p {
    color: var(--gwm-muted);
    font-size: 1rem;
    line-height: 1.75;
}

.gwm-home-lead {
    max-width: 660px;
    margin: 24px 0 0;
    font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.gwm-home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.gwm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 22px;
    border-radius: 999px;
    font-size: 0.94rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.gwm-btn:hover {
    transform: translateY(-2px);
}

.gwm-btn-primary {
    background: var(--gwm-gold);
    color: #fff;
    box-shadow: 0 16px 38px rgba(184, 138, 46, 0.26);
}

.gwm-btn-light {
    background: #fff;
    color: var(--gwm-ink);
    border: 1px solid var(--gwm-line);
}

.gwm-btn-outline {
    color: var(--gwm-ink);
    border: 1px solid var(--gwm-line);
    background: transparent;
}

.gwm-home-hero-visual {
    position: relative;
    border-radius: calc(var(--gwm-radius) + 10px);
    overflow: hidden;
    min-height: 520px;
    background: #eee3cf;
    box-shadow: 0 28px 80px rgba(24, 21, 16, 0.14);
}

.gwm-home-hero-visual img {
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
}

.gwm-video-pill {
    position: absolute;
    left: 22px;
    bottom: 22px;
    display: inline-flex;
    padding: 12px 18px;
    border-radius: 999px;
    color: #fff;
    background: rgba(21, 18, 12, 0.82);
    backdrop-filter: blur(10px);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 800;
}

.gwm-home-strip {
    padding: 22px 0;
    background: #15120c;
    color: #fff;
}

.gwm-strip-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.gwm-strip-grid div {
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
}

.gwm-strip-grid span {
    display: block;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.8rem;
}

.gwm-strip-grid strong {
    color: #fff;
    font-size: 1rem;
}

.gwm-home-section {
    padding: clamp(70px, 9vw, 110px) 0;
}

.gwm-home-soft {
    background: var(--gwm-soft);
}

.gwm-section-heading {
    max-width: 780px;
    margin-bottom: 34px;
}

.gwm-card-grid {
    display: grid;
    gap: 18px;
}

.gwm-card-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.gwm-card-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.gwm-action-card,
.gwm-ministry-card,
.gwm-contact-card,
.gwm-media-panel {
    border: 1px solid var(--gwm-line);
    border-radius: var(--gwm-radius);
    background: #fff;
    padding: 28px;
    text-decoration: none;
    box-shadow: 0 14px 42px rgba(24, 21, 16, 0.05);
}

.gwm-action-card {
    color: inherit;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.gwm-action-card:hover {
    transform: translateY(-4px);
    border-color: rgba(184, 138, 46, 0.45);
    box-shadow: 0 22px 60px rgba(24, 21, 16, 0.1);
}

.gwm-action-card span {
    display: inline-flex;
    margin-bottom: 22px;
    color: var(--gwm-gold-dark);
    font-size: 0.82rem;
    font-weight: 900;
}

.gwm-image-frame {
    border-radius: calc(var(--gwm-radius) + 6px);
    overflow: hidden;
    min-height: 460px;
    background: #eadfc9;
}

.gwm-image-frame img {
    width: 100%;
    height: 100%;
    min-height: 460px;
    object-fit: cover;
}

.gwm-text-link {
    display: inline-flex;
    margin-top: 12px;
    color: var(--gwm-gold-dark);
    font-weight: 900;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
}

.gwm-home-dark {
    background:
        radial-gradient(circle at top right, rgba(184, 138, 46, 0.22), transparent 32%),
        var(--gwm-dark);
    color: #fff;
}

.gwm-home-dark h2,
.gwm-home-dark h3 {
    color: #fff;
}

.gwm-home-dark p {
    color: rgba(255, 255, 255, 0.72);
}

.gwm-home-dark .gwm-home-kicker {
    color: #dfb65d;
}

.gwm-media-panel {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

.gwm-event-row,
.gwm-giving-box {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: center;
    border: 1px solid var(--gwm-line);
    border-radius: calc(var(--gwm-radius) + 8px);
    padding: clamp(28px, 5vw, 48px);
    background: #fff;
}

.gwm-event-row span {
    display: inline-flex;
    margin-bottom: 12px;
    color: var(--gwm-gold-dark);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.gwm-home-giving {
    background: linear-gradient(135deg, #fffaf0 0%, #f3ead6 100%);
}

.gwm-giving-box h2 {
    max-width: 850px;
}

.gwm-contact-card p {
    margin: 0 0 12px;
}

@media (max-width: 960px) {
    .gwm-home-hero-grid,
    .gwm-two-col,
    .gwm-contact-grid {
        grid-template-columns: 1fr;
    }

    .gwm-card-grid-4,
    .gwm-card-grid-3,
    .gwm-strip-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gwm-home-hero-visual,
    .gwm-home-hero-visual img,
    .gwm-image-frame,
    .gwm-image-frame img {
        min-height: 380px;
    }
}

@media (max-width: 640px) {
    .gwm-home-wrap {
        width: min(100% - 28px, 1180px);
    }

    .gwm-card-grid-4,
    .gwm-card-grid-3,
    .gwm-strip-grid {
        grid-template-columns: 1fr;
    }

    .gwm-home-hero {
        padding-top: 56px;
    }

    .gwm-home-hero h1 {
        font-size: clamp(2.35rem, 14vw, 3.4rem);
    }

    .gwm-home-actions,
    .gwm-event-row,
    .gwm-giving-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .gwm-btn {
        width: 100%;
    }

    .gwm-home-hero-visual,
    .gwm-home-hero-visual img,
    .gwm-image-frame,
    .gwm-image-frame img {
        min-height: 320px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gwm-btn,
    .gwm-action-card {
        transition: none;
    }

    .gwm-btn:hover,
    .gwm-action-card:hover {
        transform: none;
    }
}
