/*=============================================================================
   GCI VICTORY CENTER — v2
   Warm, radiant design system built around the golden planet logo.
   Palette derived from logo: #FF7A00 -> #FFC107 -> #FFD700 on cream #FDFBF7.
=============================================================================*/
:root {
    /* Logo-driven palette */
    --gold-deep: #FF7A00;
    --gold-mid: #FFA000;
    --gold: #FFC107;
    --gold-light: #FFD700;
    --gold-pale: #FFF3B0;

    /* Warm neutrals */
    --ink: #2B2118;
    --ink-soft: #4A3D2F;
    --brown: #6F4E37;
    --brown-soft: #8E6E56;
    --cream: #FDFBF7;
    --sand: #F6F0E4;
    --sand-deep: #EDE4D2;
    --white: #FFFFFF;
    --muted: #6E6255;

    /* Gradients */
    --grad-gold: linear-gradient(120deg, #FF7A00 0%, #FFC107 50%, #FFD700 100%);
    --grad-ink: linear-gradient(160deg, #3A2D1F 0%, #211810 100%);

    /* Typography */
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Inter', system-ui, sans-serif;

    /* Spacing */
    --sp-2xs: 0.25rem;
    --sp-xs: 0.5rem;
    --sp-sm: 0.75rem;
    --sp-md: 1rem;
    --sp-lg: 1.5rem;
    --sp-xl: 2.5rem;
    --sp-2xl: 4rem;
    --sp-3xl: 6rem;

    /* Radii & shadows */
    --r-sm: 6px;
    --r-md: 12px;
    --r-lg: 20px;
    --r-pill: 999px;
    --shadow-sm: 0 2px 8px rgba(43, 33, 24, 0.06);
    --shadow-md: 0 10px 30px rgba(43, 33, 24, 0.1);
    --shadow-lg: 0 24px 60px rgba(43, 33, 24, 0.16);

    /* Motion */
    --t-fast: 0.2s ease;
    --t-med: 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--cream);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
    color: var(--ink);
    letter-spacing: -0.01em;
}

.container {
    width: min(1160px, 92%);
    margin: 0 auto;
}

.section {
    padding: var(--sp-2xl) 0;
}

@media (min-width: 768px) {
    .section {
        padding: var(--sp-3xl) 0;
    }
}

/*=============================================================================
   TYPOGRAPHIC HELPERS
=============================================================================*/
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-mid);
}

.eyebrow::before {
    content: '';
    width: 28px;
    height: 2px;
    background: var(--grad-gold);
    border-radius: 2px;
}

.section-title {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    margin-top: var(--sp-sm);
    margin-bottom: var(--sp-md);
}

.section-lead {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 640px;
}

.center {
    text-align: center;
}

.center .eyebrow::before {
    display: none;
}

.center .section-lead {
    margin-left: auto;
    margin-right: auto;
}

.text-gradient {
    background: var(--grad-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/*=============================================================================
   BUTTONS
=============================================================================*/
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.8rem;
    border-radius: var(--r-pill);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--t-med);
    white-space: nowrap;
}

.btn-gold {
    background: var(--grad-gold);
    color: var(--ink);
    box-shadow: 0 8px 24px rgba(255, 138, 0, 0.35);
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(255, 138, 0, 0.45);
}

.btn-outline {
    background: transparent;
    border-color: var(--brown-soft);
    color: var(--brown);
}

.btn-outline:hover {
    border-color: var(--gold-mid);
    color: var(--gold-mid);
    transform: translateY(-3px);
}

.btn-light {
    background: var(--white);
    color: var(--ink);
}

.btn-light:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/*=============================================================================
   NAVBAR
=============================================================================*/
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: var(--sp-md) 0;
    transition: all var(--t-med);
}

.navbar.scrolled {
    background: rgba(253, 251, 247, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow-sm);
    padding: 0.6rem 0;
}

.navbar.on-dark:not(.scrolled) {
    background: transparent;
}

.navbar:not(.on-dark):not(.scrolled) {
    background: transparent;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-lg);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
}

.brand img {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: var(--shadow-sm);
}

.brand-text {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.15rem;
    line-height: 1.05;
    color: var(--ink);
}

.brand-sub {
    display: block;
    font-family: var(--font-body);
    font-size: 0.62rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-mid);
    font-weight: 600;
}

.navbar.on-dark:not(.scrolled) .brand-text {
    color: var(--white);
}

.navbar.on-dark:not(.scrolled) .brand-sub {
    color: var(--gold-light);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--sp-lg);
}

.nav-links a {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--ink-soft);
    position: relative;
    padding: 0.25rem 0;
    transition: color var(--t-fast);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--grad-gold);
    border-radius: 2px;
    transition: width var(--t-med);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--ink);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.navbar.on-dark:not(.scrolled) .nav-links a {
    color: rgba(255, 255, 255, 0.85);
}

.navbar.on-dark:not(.scrolled) .nav-links a:hover,
.navbar.on-dark:not(.scrolled) .nav-links a.active {
    color: var(--white);
}

.nav-cta {
    display: none;
}

.nav-links a.nav-cta::after {
    display: none;
}

@media (min-width: 1024px) {
    .nav-links a.nav-cta {
        display: inline-flex;
        padding: 0.4rem 1.5rem;
        font-size: 0.85rem;
    }
}

/* Mobile menu */
.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 26px;
    height: 3px;
    border-radius: 3px;
    background: var(--ink);
    position: relative;
    transition: all var(--t-fast);
}

.navbar.on-dark:not(.scrolled) .hamburger {
    background: var(--white);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    border-radius: 3px;
    background: inherit;
    transition: all var(--t-fast);
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

.mobile-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

.mobile-toggle[aria-expanded="true"] .hamburger::before {
    top: 0;
    transform: rotate(45deg);
    background: var(--ink);
}

.mobile-toggle[aria-expanded="true"] .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
    background: var(--ink);
}

@media (max-width: 900px) {
    .mobile-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(320px, 82vw);
        height: 100vh;
        background: var(--cream);
        flex-direction: column;
        justify-content: center;
        gap: var(--sp-lg);
        box-shadow: var(--shadow-lg);
        transition: right var(--t-med);
        z-index: 1000;
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links a {
        font-size: 1.35rem;
        font-family: var(--font-display);
        color: var(--ink);
    }

    .navbar.on-dark .nav-links a {
        color: var(--ink);
    }

    .navbar.on-dark:not(.scrolled) .nav-links a {
        color: var(--ink);
    }

    .nav-links a.nav-cta {
        display: inline-flex;
        padding: 0.4rem 1.5rem;
        font-size: 0.85rem;
    }
}

/*=============================================================================
   HERO
=============================================================================*/
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    color: var(--white);
    overflow: hidden;
    background: var(--ink);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.45;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(1200px 500px at 80% -10%, rgba(255, 193, 7, 0.22), transparent 60%),
        radial-gradient(900px 500px at 10% 110%, rgba(255, 122, 0, 0.18), transparent 60%),
        linear-gradient(170deg, rgba(43, 33, 24, 0.55) 0%, rgba(43, 33, 24, 0.88) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 140px 0 90px;
    max-width: 760px;
}

.hero-logo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
    margin-bottom: var(--sp-lg);
}

.hero h1 {
    color: var(--white);
    font-size: clamp(2.6rem, 6vw, 4.6rem);
    margin: var(--sp-md) 0;
}

.hero .lead {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 560px;
}

.hero .eyebrow {
    color: var(--gold-light);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-md);
    margin-top: var(--sp-xl);
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-lg);
    margin-top: var(--sp-2xl);
    padding-top: var(--sp-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-stat {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.hero-stat strong {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--gold-light);
    font-weight: 600;
}

/*=============================================================================
   CARDS & GRIDS
=============================================================================*/
.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-2xl);
    align-items: center;
}

@media (min-width: 860px) {
    .grid-2 {
        grid-template-columns: 1fr 1fr;
    }
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-xl);
}

@media (min-width: 700px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.grid-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-xl);
}

@media (min-width: 640px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1000px) {
    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Frame: crops image */
.frame {
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: var(--sand);
}

.frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.frame-4x5 {
    aspect-ratio: 4 / 5;
}

.frame-4x3 {
    aspect-ratio: 4 / 3;
}

.frame-16x9 {
    aspect-ratio: 16 / 9;
}

.frame-1x1 {
    aspect-ratio: 1 / 1;
}

/*=============================================================================
   BANDS (background sections)
=============================================================================*/
.band-cream {
    background: var(--cream);
}

.band-sand {
    background: var(--sand);
}

.band-ink {
    background: var(--ink);
    color: var(--white);
}

.band-ink h2,
.band-ink h3 {
    color: var(--white);
}

.band-ink .section-lead {
    color: rgba(255, 255, 255, 0.7);
}

/*=============================================================================
   SERVICE CARDS
=============================================================================*/
.service-card {
    background: var(--white);
    border: 1px solid var(--sand-deep);
    border-radius: var(--r-md);
    padding: var(--sp-xl) var(--sp-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform var(--t-med), box-shadow var(--t-med);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.service-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto var(--sp-md);
    border-radius: 16px;
    background: var(--grad-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--ink);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: var(--sp-xs);
}

.service-card .time {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--gold-mid);
    margin-bottom: var(--sp-sm);
}

.service-card p:last-child {
    color: var(--muted);
    font-size: 0.95rem;
}

/*=============================================================================
   VALUE / FEATURE CARDS
=============================================================================*/
.value-card {
    background: var(--white);
    border: 1px solid var(--sand-deep);
    border-radius: var(--r-md);
    padding: var(--sp-xl) var(--sp-lg);
    box-shadow: var(--shadow-sm);
    transition: transform var(--t-med), box-shadow var(--t-med);
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--grad-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t-med);
}

.value-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.value-card:hover::before {
    transform: scaleX(1);
}

.value-card .num {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gold-mid);
    letter-spacing: 0.1em;
}

.value-card h3 {
    font-size: 1.3rem;
    margin: var(--sp-sm) 0 var(--sp-xs);
}

.value-card p {
    color: var(--muted);
    font-size: 0.95rem;
}

/*=============================================================================
   LEADERSHIP
=============================================================================*/
.leader-card {
    background: var(--white);
    border: 1px solid var(--sand-deep);
    border-radius: var(--r-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--t-med), box-shadow var(--t-med);
    text-align: center;
    cursor: pointer;
}

.leader-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.leader-img-wrap {
    aspect-ratio: 4 / 5;
    overflow: hidden;
}

.leader-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 22%;
    transition: transform var(--t-med);
}

.leader-card:hover .leader-img-wrap img {
    transform: scale(1.05);
}

.leader-info {
    padding: var(--sp-lg) var(--sp-md) var(--sp-xl);
}

.leader-info h3 {
    font-size: 1.15rem;
    margin-bottom: var(--sp-2xs);
}

.leader-role {
    font-size: 0.85rem;
    color: var(--gold-mid);
    font-weight: 600;
    letter-spacing: 0.03em;
}

/*=============================================================================
   SERMON CARDS
=============================================================================*/
.sermon-card {
    background: var(--white);
    border: 1px solid var(--sand-deep);
    border-radius: var(--r-md);
    padding: var(--sp-xl);
    box-shadow: var(--shadow-sm);
    transition: transform var(--t-med), box-shadow var(--t-med);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
}

.sermon-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.sermon-card::after {
    content: 'Read summary \2192';
    display: inline-block;
    margin-top: auto;
    padding-top: var(--sp-md);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--gold-mid);
}

.sermon-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--brown);
    margin-bottom: var(--sp-sm);
}

.sermon-date svg {
    width: 15px;
    height: 15px;
}

.sermon-card h3 {
    font-size: 1.35rem;
    margin-bottom: var(--sp-sm);
}

.sermon-scripture {
    display: inline-block;
    background: var(--sand);
    color: var(--brown);
    font-weight: 600;
    font-size: 0.82rem;
    padding: 0.25rem 0.7rem;
    border-radius: var(--r-pill);
    margin-bottom: var(--sp-md);
}

.sermon-excerpt {
    color: var(--muted);
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/*=============================================================================
   EVENTS
=============================================================================*/
.event-item {
    display: flex;
    flex-direction: column;
    gap: var(--sp-md);
    background: var(--white);
    border: 1px solid var(--sand-deep);
    border-radius: var(--r-md);
    padding: var(--sp-lg);
    box-shadow: var(--shadow-sm);
    transition: transform var(--t-med), box-shadow var(--t-med);
}

.event-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.event-date-badge {
    flex-shrink: 0;
    width: 74px;
    text-align: center;
    background: var(--grad-gold);
    border-radius: var(--r-sm);
    padding: var(--sp-sm);
    color: var(--ink);
}

.event-date-badge .day {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1;
}

.event-date-badge .month {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

@media (min-width: 600px) {
    .event-item {
        flex-direction: row;
        align-items: center;
    }
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-sm);
    font-size: 0.82rem;
    color: var(--brown);
    font-weight: 600;
    margin-bottom: var(--sp-xs);
}

.event-item h3 {
    font-size: 1.25rem;
    margin-bottom: var(--sp-xs);
}

.event-item p {
    color: var(--muted);
    font-size: 0.95rem;
}

/*=============================================================================
   FEATURED EVENT
=============================================================================*/
.event-feature {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-2xl);
    align-items: center;
    max-width: 980px;
    margin: 0 auto;
}

@media (min-width: 860px) {
    .event-feature {
        grid-template-columns: 1fr 1.1fr;
    }
}

.event-feature-poster {
    aspect-ratio: 4 / 5;
    max-width: 440px;
    margin: 0 auto;
}

.event-feature-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (min-width: 860px) {
    .event-feature-poster {
        width: 100%;
        margin: 0;
    }
}

.event-feature-details .eyebrow {
    margin-bottom: var(--sp-sm);
}

/*=============================================================================
   MEDIA GALLERY
=============================================================================*/
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-md);
}

@media (min-width: 640px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.gallery-item {
    border-radius: var(--r-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--t-med);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item .g-tall {
    aspect-ratio: 3 / 4;
}

.gallery-item .g-wide {
    aspect-ratio: 4 / 3;
}

/*=============================================================================
   CONTACT
=============================================================================*/
.contact-card {
    background: var(--white);
    border: 1px solid var(--sand-deep);
    border-radius: var(--r-md);
    padding: var(--sp-xl);
    box-shadow: var(--shadow-sm);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-2xl);
}

@media (min-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr 1.2fr;
        align-items: center;
    }
}

.field {
    margin-bottom: var(--sp-md);
}

.field label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: var(--sp-xs);
    color: var(--ink);
}

.field input,
.field textarea,
.field select {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--sand-deep);
    border-radius: var(--r-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: var(--cream);
    color: var(--ink);
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.18);
}

.map-embed {
    border-radius: var(--r-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.info-list {
    margin-top: var(--sp-lg);
}

.info-list li {
    display: flex;
    gap: var(--sp-sm);
    align-items: flex-start;
    margin-bottom: var(--sp-md);
    color: var(--ink-soft);
}

.info-list .ico {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--sand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.info-list strong {
    display: block;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.05rem;
}

/*=============================================================================
   GIVING / CTA BAND
=============================================================================*/
.cta-band {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--ink);
    color: var(--white);
    padding: var(--sp-2xl) var(--sp-xl);
    text-align: center;
}

.cta-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(700px 300px at 50% -20%, rgba(255, 193, 7, 0.28), transparent 60%),
        radial-gradient(600px 300px at 10% 120%, rgba(255, 122, 0, 0.2), transparent 60%);
}

.cta-band > * {
    position: relative;
    z-index: 2;
}

.cta-band h2 {
    color: var(--white);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    margin-bottom: var(--sp-md);
}

.cta-band p {
    color: rgba(255, 255, 255, 0.75);
    max-width: 560px;
    margin: 0 auto var(--sp-lg);
}

/*=============================================================================
   PAGE HEADER (interior pages)
=============================================================================*/
.page-header {
    position: relative;
    padding: 150px 0 60px;
    background: var(--ink);
    color: var(--white);
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 400px at 85% -10%, rgba(255, 193, 7, 0.2), transparent 55%),
        radial-gradient(700px 400px at 5% 120%, rgba(255, 122, 0, 0.16), transparent 55%);
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    color: var(--white);
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    margin: var(--sp-sm) 0;
}

.page-header .lead {
    color: rgba(255, 255, 255, 0.75);
    max-width: 560px;
    font-size: 1.05rem;
}

/*=============================================================================
   MODAL
=============================================================================*/
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--sp-lg);
}

.modal.open {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(33, 24, 16, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--cream);
    border-radius: var(--r-lg);
    max-width: 760px;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: sticky;
    top: 12px;
    z-index: 3;
    float: right;
    margin: 12px 12px -44px 0;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-sm);
    color: var(--ink);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--t-fast), background var(--t-fast);
}

.modal-close:hover {
    transform: rotate(90deg);
    background: var(--white);
}

.modal-body {
    padding: var(--sp-xl);
}

.modal-body .eyebrow {
    margin-bottom: var(--sp-sm);
}

.modal-body h3 {
    font-size: 1.7rem;
    margin-bottom: var(--sp-md);
}

.modal-body h4 {
    font-size: 1.1rem;
    margin: var(--sp-lg) 0 var(--sp-sm);
    color: var(--brown);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-body h4::before {
    content: '';
    width: 18px;
    height: 2px;
    background: var(--grad-gold);
    border-radius: 2px;
    flex-shrink: 0;
}

.modal-body p {
    color: var(--ink-soft);
    font-size: 0.98rem;
}

.modal-body ul {
    padding-left: 0;
}

.modal-body ul li {
    color: var(--ink-soft);
    padding-left: 1.1rem;
    position: relative;
    margin-bottom: var(--sp-sm);
    font-size: 0.96rem;
}

.modal-body ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--grad-gold);
}

.modal-body .scripture-block {
    background: var(--sand);
    border-left: 3px solid var(--gold);
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
    padding: var(--sp-md);
    margin-bottom: var(--sp-sm);
}

.modal-body .scripture-block cite {
    display: block;
    font-style: normal;
    font-weight: 600;
    color: var(--brown);
    font-size: 0.85rem;
    margin-bottom: var(--sp-xs);
}

.modal-body .scripture-block p {
    font-style: italic;
    color: var(--ink-soft);
}

.modal-body .prayer-box {
    background: linear-gradient(160deg, #FFF8EA, #F6EEDC);
    border: 1px solid var(--sand-deep);
    border-radius: var(--r-sm);
    padding: var(--sp-md);
    font-style: italic;
}

/*=============================================================================
   FOOTER
=============================================================================*/
.footer {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.75);
    padding-top: var(--sp-2xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-xl);
    padding-bottom: var(--sp-2xl);
}

@media (min-width: 700px) {
    .footer-grid {
        grid-template-columns: 1.4fr 1fr 1fr;
    }
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--sp-md);
    margin-bottom: var(--sp-md);
}

.footer-brand img {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    object-fit: cover;
}

.footer-brand .brand-text {
    color: var(--white);
    font-size: 1.3rem;
}

.footer h4 {
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: var(--sp-md);
    color: var(--gold-light);
}

.footer ul li {
    margin-bottom: var(--sp-sm);
}

.footer ul a {
    color: rgba(255, 255, 255, 0.75);
    transition: color var(--t-fast);
}

.footer ul a:hover {
    color: var(--gold-light);
}

.footer p {
    font-size: 0.95rem;
    margin-bottom: var(--sp-sm);
}

.footer p strong {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: var(--sp-md) 0;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/*=============================================================================
   REVEAL ANIMATIONS
=============================================================================*/
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--t-med), transform 0.7s var(--t-med);
}

.reveal.in {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/*=============================================================================
   MISC
=============================================================================*/
.hero .frame,
.page-header ~ main .frame {
    box-shadow: var(--shadow-md);
}

.scripture-chip {
    display: inline-block;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: var(--gold-light);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.3rem 0.9rem;
    border-radius: var(--r-pill);
}

.verse-line {
    font-style: italic;
    color: rgba(255, 255, 255, 0.85);
    max-width: 640px;
    margin: var(--sp-md) 0;
    border-left: 2px solid var(--gold);
    padding-left: var(--sp-md);
}

.verse-line cite {
    display: block;
    font-style: normal;
    font-size: 0.85rem;
    color: var(--gold-light);
    margin-top: var(--sp-xs);
}

.hidden {
    display: none !important;
}

.notice {
    background: var(--sand);
    border: 1px dashed var(--brown-soft);
    border-radius: var(--r-md);
    padding: var(--sp-lg);
    color: var(--brown);
    text-align: center;
}