/* =========================================================================
   Glory Ministries — Main Stylesheet
   Navy & Gold · Cinematic · Modern · Fully responsive
   ========================================================================= */

/* ---------- 1. Design Tokens ---------- */
:root {
        --navy:        #1C3A6E;
        --navy-deep:   #142c54;
        --navy-darker: #0b1f3d;
        --gold:        #F5A623;
        --gold-soft:   #ffc75a;
        --gold-deep:   #d68a12;
        --dark:        #0D0D0D;
        --ink:         #0f1626;
        --white:       #ffffff;
        --cream:       #f7f5ef;
        --gray-50:     #f6f8fb;
        --gray-100:    #eef1f6;
        --gray-300:    #cfd6e2;
        --gray-500:    #7a869a;
        --gray-700:    #3c4657;

        --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
        --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

        --maxw: 1200px;
        --gutter: clamp(20px, 5vw, 40px);
        --radius: 16px;
        --radius-lg: 24px;
        --shadow-sm: 0 4px 16px rgba(20, 44, 84, 0.08);
        --shadow-md: 0 14px 40px rgba(20, 44, 84, 0.14);
        --shadow-lg: 0 30px 70px rgba(13, 13, 13, 0.28);
        --shadow-gold: 0 12px 34px rgba(245, 166, 35, 0.34);

        --t-fast: 0.2s ease;
        --t-med: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
        --t-slow: 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 2. Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
        margin: 0;
        font-family: var(--font-body);
        font-size: 17px;
        line-height: 1.7;
        color: var(--gray-700);
        background: var(--white);
        overflow-x: hidden;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--gold-deep); }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 0.5em; font-weight: 700; }
p { margin: 0 0 1.2em; }
blockquote { margin: 0; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.screen-reader-text {
        border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
        height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; word-wrap: normal !important;
}
.skip-link { position: absolute; left: -9999px; z-index: 999; padding: 12px 20px; background: var(--gold); color: var(--ink); border-radius: 0 0 8px 0; font-weight: 600; }
.skip-link:focus { left: 0; top: 0; }

/* ---------- 3. Layout helpers ---------- */
.gm-container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section-pad { padding: clamp(60px, 9vw, 120px) 0; }
.center { text-align: center; }
.section-head { max-width: 720px; margin: 0 auto clamp(40px, 6vw, 64px); }
.section-head.center { margin-left: auto; margin-right: auto; }
.eyebrow {
        display: inline-block; font-family: var(--font-body); font-weight: 700; letter-spacing: 0.18em;
        text-transform: uppercase; font-size: 0.78rem; color: var(--gold-deep); margin-bottom: 14px;
}
.eyebrow.gold { color: var(--gold); }
.eyebrow.dark { color: var(--navy-deep); }
.section-title { font-size: clamp(1.9rem, 4.4vw, 3.1rem); margin-bottom: 0.4em; letter-spacing: -0.01em; }
.section-title.light { color: var(--white); }
.section-sub { font-size: 1.08rem; color: var(--gray-500); }
.light-text { color: rgba(255,255,255,0.82); }
.prose { max-width: 800px; }
.prose p { margin-bottom: 1.3em; }
.prose h2, .prose h3 { margin-top: 1.4em; }
.center-prose { margin: 0 auto; text-align: center; }

/* ---------- 4. Buttons ---------- */
.btn {
        display: inline-flex; align-items: center; gap: 10px; justify-content: center;
        padding: 15px 32px; border-radius: 50px; font-weight: 600; font-size: 0.98rem;
        border: 2px solid transparent; transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast), color var(--t-fast);
        letter-spacing: 0.02em; cursor: pointer; text-align: center; line-height: 1;
}
.btn svg { flex-shrink: 0; }
.btn-sm { padding: 11px 22px; font-size: 0.9rem; }
.btn-gold { background: linear-gradient(135deg, var(--gold-soft), var(--gold)); color: var(--ink); box-shadow: var(--shadow-gold); }
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(245,166,35,0.5); color: var(--ink); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-deep); color: var(--white); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-outline:hover { background: var(--white); color: var(--navy); border-color: var(--white); transform: translateY(-3px); }
.text-link { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--navy); }
.text-link:hover { color: var(--gold-deep); }
.text-link svg, .card-link svg { transition: transform var(--t-fast); }
.text-link:hover svg, .card-link:hover svg { transform: translateX(4px); }

/* ---------- 5. Icons ---------- */
.gm-icon { display: inline-block; vertical-align: middle; flex-shrink: 0; }

/* ---------- 6. Header / Nav ---------- */
.site-header {
        position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
        transition: background var(--t-med), box-shadow var(--t-med), padding var(--t-med);
        padding: 18px 0; background: var(--navy);
}
.site-header[data-transparent="true"] { background: transparent; }
.site-header.scrolled { background: rgba(20, 44, 84, 0.96); backdrop-filter: blur(12px); box-shadow: 0 8px 30px rgba(0,0,0,0.25); padding: 10px 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.gm-logo { display: inline-flex; align-items: center; }
.gm-logo-img { height: 52px; width: auto; transition: height var(--t-med); }
.site-header.scrolled .gm-logo-img { height: 44px; }
.footer-logo, .gm-logo-img { max-height: 60px; }

.main-navigation { margin-left: auto; }
.nav-menu { display: flex; align-items: center; gap: 30px; }
.nav-menu li { position: relative; }
.nav-menu a { color: rgba(255,255,255,0.9); font-weight: 500; font-size: 0.98rem; padding: 6px 0; position: relative; }
.nav-menu a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--gold); transition: width var(--t-med); }
.nav-menu a:hover, .nav-menu .current-menu-item > a { color: var(--gold-soft); }
.nav-menu a:hover::after, .nav-menu .current-menu-item > a::after { width: 100%; }

/* Dropdown */
.nav-menu .sub-menu {
        position: absolute; top: 130%; left: 0; min-width: 210px; background: var(--white); border-radius: 12px;
        box-shadow: var(--shadow-md); padding: 10px; opacity: 0; visibility: hidden; transform: translateY(8px);
        transition: all var(--t-med); z-index: 20;
}
.nav-menu li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-menu .sub-menu a { color: var(--gray-700); display: block; padding: 9px 14px; border-radius: 8px; }
.nav-menu .sub-menu a::after { display: none; }
.nav-menu .sub-menu a:hover { background: var(--gray-50); color: var(--navy); }

.header-actions { display: flex; align-items: center; gap: 16px; }
.header-cta { white-space: nowrap; }

/* Hamburger */
.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; position: relative; z-index: 120; }
.menu-toggle .bar { display: block; width: 100%; height: 2px; background: var(--white); border-radius: 2px; transition: transform var(--t-med), opacity var(--t-fast); }
.menu-toggle .bar + .bar { margin-top: 6px; }
.menu-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- 7. Hero ---------- */
.hero {
        position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
        color: var(--white); overflow: hidden; isolation: isolate;
}
.hero__bg {
        position: absolute; inset: 0; z-index: -3;
        background: radial-gradient(120% 120% at 70% 20%, #24487f 0%, var(--navy-deep) 45%, var(--navy-darker) 100%);
}
.hero__bg.has-image { background-image: var(--hero-img); background-size: cover; background-position: center; }
.hero__overlay {
        position: absolute; inset: 0; z-index: -2;
        background: linear-gradient(180deg, rgba(11,31,61,0.72) 0%, rgba(11,31,61,0.55) 40%, rgba(11,31,61,0.9) 100%);
}
.hero__rays { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero__rays span {
        position: absolute; top: -30%; left: 50%; width: 8vw; height: 160%;
        background: linear-gradient(to bottom, rgba(245,166,35,0.28), rgba(245,166,35,0) 70%);
        transform-origin: top center; filter: blur(6px); opacity: 0.5; animation: rayPulse 7s ease-in-out infinite;
}
.hero__rays span:nth-child(1) { transform: rotate(-22deg) translateX(-40vw); animation-delay: 0s; }
.hero__rays span:nth-child(2) { transform: rotate(-10deg) translateX(-18vw); animation-delay: 1.2s; }
.hero__rays span:nth-child(3) { transform: rotate(2deg); animation-delay: 0.6s; }
.hero__rays span:nth-child(4) { transform: rotate(14deg) translateX(20vw); animation-delay: 1.8s; }
.hero__rays span:nth-child(5) { transform: rotate(26deg) translateX(42vw); animation-delay: 0.9s; }
@keyframes rayPulse { 0%, 100% { opacity: 0.25; } 50% { opacity: 0.6; } }

.hero__inner { position: relative; text-align: center; max-width: 900px; margin: 0 auto; padding: 120px 0 100px; }
.hero__eyebrow { color: var(--gold-soft); letter-spacing: 0.24em; text-transform: uppercase; font-weight: 700; font-size: 0.85rem; display: block; margin-bottom: 22px; }
.hero__title { color: var(--white); font-size: clamp(2.8rem, 8vw, 6rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 0.3em; text-shadow: 0 6px 40px rgba(0,0,0,0.4); }
.hero__subtitle { font-size: clamp(1.05rem, 2.2vw, 1.35rem); color: rgba(255,255,255,0.88); max-width: 680px; margin: 0 auto 2em; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Shimmer on hero headline */
.shimmer {
        background: linear-gradient(100deg, #ffffff 30%, var(--gold-soft) 45%, #fff 60%);
        background-size: 220% auto; -webkit-background-clip: text; background-clip: text;
        -webkit-text-fill-color: transparent; animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: -220% center; } }

/* Scroll indicator */
.scroll-indicator { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; color: rgba(255,255,255,0.75); animation: floaty 2.4s ease-in-out infinite; }
.scroll-indicator:hover { color: var(--gold-soft); }
.mouse { width: 26px; height: 42px; border: 2px solid currentColor; border-radius: 14px; display: flex; justify-content: center; padding-top: 7px; }
.wheel { width: 4px; height: 8px; border-radius: 3px; background: currentColor; animation: wheel 1.6s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(12px); } }
@keyframes floaty { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

/* ---------- 8. Today's Word ---------- */
.todays-word { background: linear-gradient(135deg, var(--navy-deep), var(--navy-darker)); color: var(--white); position: relative; overflow: hidden; }
.word-inner { text-align: center; padding: clamp(50px, 7vw, 80px) 0; position: relative; }
.word-bar { display: block; width: 70px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--gold), var(--gold-soft)); margin: 0 auto 26px; }
.word-label { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-soft); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.8rem; margin-bottom: 18px; }
.word-quote { font-family: var(--font-head); font-style: italic; font-size: clamp(1.5rem, 4vw, 2.6rem); color: var(--white); line-height: 1.35; max-width: 900px; margin: 0 auto 18px; }
.word-ref { color: var(--gold-soft); font-weight: 600; font-style: normal; letter-spacing: 0.04em; }

/* ---------- 9. Welcome ---------- */
.welcome-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.welcome-media { position: relative; }
.welcome-media img, .img-placeholder { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; }
.img-placeholder {
        aspect-ratio: 4/3; background: linear-gradient(135deg, var(--gray-100), var(--gray-50));
        border: 2px dashed var(--gray-300); display: flex; flex-direction: column; align-items: center; justify-content: center;
        gap: 12px; color: var(--gray-500); text-align: center; padding: 30px;
}
.img-placeholder.tall { aspect-ratio: 3/4; }
.img-placeholder span { max-width: 260px; font-size: 0.9rem; }
.welcome-badge {
        position: absolute; bottom: -22px; right: -14px; background: linear-gradient(135deg, var(--gold-soft), var(--gold));
        color: var(--ink); font-weight: 700; padding: 16px 26px; border-radius: 14px; box-shadow: var(--shadow-gold); font-family: var(--font-head);
}
.welcome-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 10px; }

/* ---------- 10. Service Times ---------- */
.services { background: var(--gray-50); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card { text-align: center; padding: 44px 30px; }
.service-icon {
        display: inline-flex; align-items: center; justify-content: center; width: 76px; height: 76px; border-radius: 50%;
        background: linear-gradient(135deg, var(--navy), var(--navy-deep)); color: var(--gold-soft); margin-bottom: 22px; box-shadow: var(--shadow-sm);
}
.service-day { display: block; text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.78rem; font-weight: 700; color: var(--gold-deep); margin-bottom: 8px; }
.service-title { font-size: 1.5rem; margin-bottom: 12px; }
.service-time { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); font-weight: 600; margin-bottom: 14px; }
.service-desc { color: var(--gray-500); font-size: 0.97rem; margin-bottom: 20px; }

/* ---------- 11. Generic card ---------- */
.gm-card {
        background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden;
        transition: transform var(--t-med), box-shadow var(--t-med); border: 1px solid rgba(20,44,84,0.05);
}
.gm-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.card-body { padding: 26px; }
.card-media { display: block; position: relative; aspect-ratio: 3/2; overflow: hidden; background: var(--gray-100); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.gm-card:hover .card-media img { transform: scale(1.06); }
.card-media__placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--gray-300); }
.card-play {
        position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 64px; height: 64px; border-radius: 50%;
        background: rgba(245,166,35,0.94); color: var(--ink); display: flex; align-items: center; justify-content: center;
        box-shadow: var(--shadow-gold); transition: transform var(--t-fast); padding-left: 4px;
}
.gm-card:hover .card-play { transform: translate(-50%,-50%) scale(1.1); }
.card-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 0.82rem; color: var(--gray-500); margin-bottom: 12px; }
.card-meta span { display: inline-flex; align-items: center; gap: 6px; }
.card-cat a { color: var(--gold-deep); font-weight: 600; }
.card-title { font-size: 1.4rem; margin-bottom: 10px; line-height: 1.25; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--navy); }
.card-scripture { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); font-weight: 600; font-size: 0.92rem; margin-bottom: 14px; }
.card-excerpt { color: var(--gray-500); font-size: 0.96rem; margin-bottom: 16px; }
.card-link { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--gold-deep); font-size: 0.92rem; }
.card-link:hover { color: var(--navy); }

/* ---------- 12. Featured Sermon ---------- */
.featured-sermon { position: relative; color: var(--white); overflow: hidden; }
.featured-sermon__bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 120% at 20% 10%, #223f70, var(--navy-darker)); }
.featured-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(36px, 6vw, 70px); align-items: center; }
.video-wrap { position: relative; aspect-ratio: 16/9; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: #000; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; background: linear-gradient(135deg, #1b3462, #0b1f3d); color: rgba(255,255,255,0.7); text-align: center; padding: 30px; }
.video-placeholder .card-play { position: static; transform: none; }
.placeholder-text { max-width: 280px; font-size: 0.9rem; }
.featured-meta { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: 18px; }
.featured-meta span { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-soft); font-weight: 600; font-size: 0.92rem; }

/* ---------- 13. Plan Your Visit ---------- */
.visit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.visit-card { padding: 40px 32px; }
.visit-icon, .value-icon, .give-icon {
        display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 18px;
        background: linear-gradient(135deg, rgba(245,166,35,0.16), rgba(245,166,35,0.06)); color: var(--gold-deep); margin-bottom: 20px;
}
.visit-card h3, .value-card h3, .give-card h3 { font-size: 1.35rem; margin-bottom: 12px; }
.visit-card p, .value-card p, .give-card p { color: var(--gray-500); font-size: 0.97rem; margin-bottom: 0; }

/* ---------- 14. Radio band ---------- */
.radio-band { background: linear-gradient(120deg, var(--gold), var(--gold-soft) 60%, #ffd98a); color: var(--ink); }
.radio-inner { display: flex; align-items: center; gap: 30px; padding: clamp(40px, 6vw, 64px) 0; flex-wrap: wrap; }
.radio-icon { display: inline-flex; align-items: center; justify-content: center; width: 84px; height: 84px; border-radius: 50%; background: var(--navy); color: var(--gold-soft); flex-shrink: 0; box-shadow: var(--shadow-md); }
.radio-text { flex: 1; min-width: 260px; }
.radio-title { font-size: clamp(1.6rem, 3.6vw, 2.4rem); color: var(--navy-deep); margin-bottom: 6px; }
.radio-details { font-size: 1.1rem; margin-bottom: 0; color: var(--navy-deep); }

/* ---------- 15. Global ---------- */
.global { position: relative; color: var(--white); overflow: hidden; }
.global__bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(110% 120% at 80% 20%, #21406f, var(--navy-darker)); }
.global__bg::after {
        content: ""; position: absolute; inset: 0;
        background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
        background-size: 26px 26px; opacity: 0.6;
}
.global-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(36px, 6vw, 70px); align-items: center; }
.global-regions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 24px; margin: 22px 0 30px; }
.global-regions li { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.9); font-weight: 500; }
.global-regions svg { color: var(--gold-soft); }
.global-logo { background: var(--white); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 48px); box-shadow: var(--shadow-lg); }
.global-logo img { margin: 0 auto; max-height: 380px; width: auto; }

/* ---------- 16. Testimonials ---------- */
.testimonials { background: var(--cream); }
.testimonials-track {
        display: flex; gap: 26px; overflow-x: auto; padding: 10px 4px 26px; scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--gold) transparent;
}
.testimonials-track::-webkit-scrollbar { height: 8px; }
.testimonials-track::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 8px; }
.testimonials-track::-webkit-scrollbar-track { background: rgba(0,0,0,0.05); border-radius: 8px; }
.testimonial-card { flex: 0 0 min(380px, 82vw); scroll-snap-align: start; padding: 40px 34px; position: relative; }
.quote-mark { position: absolute; top: 10px; right: 26px; font-family: var(--font-head); font-size: 5rem; line-height: 1; color: rgba(245,166,35,0.28); }
.testimonial-card blockquote { font-size: 1.05rem; color: var(--gray-700); font-style: italic; margin-bottom: 22px; }
.testimonial-card figcaption { display: flex; align-items: center; gap: 14px; }
.testimonial-avatar { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--navy), var(--navy-deep)); color: var(--gold-soft); font-weight: 700; font-family: var(--font-head); }
.testimonial-name { font-weight: 700; color: var(--ink); font-style: normal; }
.carousel-hint { text-align: center; color: var(--gray-500); font-size: 0.85rem; margin-top: 8px; }

/* ---------- 17. Book ---------- */
.book { position: relative; color: var(--white); overflow: hidden; background: linear-gradient(135deg, var(--navy-darker), #16305c); }
.book-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.book-cover { display: flex; justify-content: center; perspective: 1400px; }
.book-3d { transform: rotateY(-22deg) rotateX(4deg); transition: transform var(--t-slow); }
.book-3d:hover { transform: rotateY(-8deg) rotateX(2deg); }
.book-front {
        width: 260px; height: 370px; border-radius: 6px 14px 14px 6px; padding: 34px 28px;
        background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: var(--ink);
        box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255,255,255,0.2); display: flex; flex-direction: column; position: relative; overflow: hidden;
}
.book-front::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 12px; background: rgba(0,0,0,0.18); }
.book-kicker { text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.72rem; font-weight: 700; margin-bottom: auto; padding-top: 10px; }
.book-name { font-family: var(--font-head); font-size: 2rem; font-weight: 800; line-height: 1.1; margin-bottom: 14px; }
.book-author { font-weight: 600; letter-spacing: 0.04em; }
.book-spine-glow { position: absolute; top: -40%; right: -30%; width: 80%; height: 180%; background: radial-gradient(circle, rgba(255,255,255,0.5), transparent 60%); transform: rotate(20deg); }
.book-byline { color: var(--gold-soft); font-weight: 600; margin-bottom: 16px; }

/* ---------- 18. Prayer CTA ---------- */
.prayer-cta { position: relative; color: var(--white); text-align: center; overflow: hidden; }
.prayer-cta__bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(100% 120% at 50% 0%, #26497c, var(--navy-darker)); }
.prayer-inner { max-width: 720px; margin: 0 auto; }
.prayer-icon, .prayer-cta .prayer-icon { display: inline-flex; align-items: center; justify-content: center; width: 84px; height: 84px; border-radius: 50%; background: rgba(245,166,35,0.16); color: var(--gold-soft); margin-bottom: 24px; }
.prayer-form { margin-top: 30px; }
.prayer-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.prayer-form input, .prayer-form textarea,
.newsletter-form input, .gm-ajax-form input, .gm-ajax-form textarea, .contact-form input, .contact-form textarea, .comment-form input, .comment-form textarea, .search-field {
        width: 100%; padding: 15px 18px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.25);
        background: rgba(255,255,255,0.1); color: var(--white); font-family: inherit; font-size: 1rem; transition: border var(--t-fast), background var(--t-fast);
}
.prayer-form input::placeholder, .prayer-form textarea::placeholder, .newsletter-form input::placeholder { color: rgba(255,255,255,0.6); }
.prayer-form input:focus, .prayer-form textarea:focus { outline: none; border-color: var(--gold); background: rgba(255,255,255,0.16); }
.prayer-form textarea { margin-bottom: 18px; resize: vertical; }
.prayer-form .btn { width: 100%; }
.form-feedback { margin: 16px 0 0; font-weight: 600; min-height: 1.2em; }
.form-feedback.success { color: var(--gold-soft); }
.form-feedback.error { color: #ff9a9a; }

/* ---------- 19. Newsletter ---------- */
.newsletter { background: var(--gray-50); }
.newsletter-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.newsletter-form { display: flex; gap: 12px; flex-wrap: wrap; }
.newsletter-form input { flex: 1; min-width: 220px; color: var(--ink); background: var(--white); border: 1px solid var(--gray-300); }
.newsletter-form input::placeholder { color: var(--gray-500); }
.newsletter-form input:focus { outline: none; border-color: var(--gold); }
.newsletter-form .form-feedback { flex-basis: 100%; color: var(--navy); }

/* ---------- 20. Footer ---------- */
.site-footer { position: relative; background: var(--navy-darker); color: rgba(255,255,255,0.75); padding: clamp(56px, 8vw, 90px) 0 0; overflow: hidden; }
.footer-glow { position: absolute; top: -120px; left: 50%; transform: translateX(-50%); width: 600px; height: 300px; background: radial-gradient(circle, rgba(245,166,35,0.14), transparent 70%); pointer-events: none; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; position: relative; }
.footer-logo { height: 58px; width: auto; margin-bottom: 18px; }
.footer-tagline { font-family: var(--font-head); font-style: italic; color: rgba(255,255,255,0.8); }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.social-link { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.08); color: var(--white); transition: all var(--t-fast); }
.social-link:hover { background: var(--gold); color: var(--ink); transform: translateY(-3px); }
.footer-heading { color: var(--white); font-size: 1.15rem; margin-bottom: 20px; }
.footer-menu li, .footer-times li, .footer-contact li { margin-bottom: 12px; }
.footer-menu a { color: rgba(255,255,255,0.72); }
.footer-menu a:hover { color: var(--gold-soft); padding-left: 5px; }
.footer-times li { display: flex; flex-direction: column; }
.footer-times strong { color: var(--white); font-weight: 600; }
.footer-times span { font-size: 0.9rem; color: rgba(255,255,255,0.6); }
.footer-contact li { display: flex; align-items: flex-start; gap: 12px; }
.footer-contact svg { color: var(--gold-soft); flex-shrink: 0; margin-top: 3px; }
.footer-contact a { color: rgba(255,255,255,0.72); }
.footer-contact a:hover { color: var(--gold-soft); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 50px; padding: 26px 0; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.88rem; }
.footer-bottom p { margin: 0; }
.footer-scripture { font-family: var(--font-head); font-style: italic; color: var(--gold-soft); }

/* ---------- 21. Back to top ---------- */
.back-to-top {
        position: fixed; right: 24px; bottom: 24px; width: 48px; height: 48px; border-radius: 50%; border: 0;
        background: var(--gold); color: var(--ink); display: flex; align-items: center; justify-content: center;
        box-shadow: var(--shadow-gold); opacity: 0; visibility: hidden; transform: translateY(20px) rotate(180deg);
        transition: all var(--t-med); z-index: 90;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0) rotate(180deg); }
.back-to-top:hover { transform: translateY(-4px) rotate(180deg); }

/* ---------- 22. Inner page hero ---------- */
.page-hero { position: relative; color: var(--white); padding: clamp(140px, 20vw, 220px) 0 clamp(50px, 8vw, 90px); overflow: hidden; background: radial-gradient(120% 140% at 70% 0%, #24487f, var(--navy-darker)); text-align: center; }
.page-hero__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,31,61,0.4), rgba(11,31,61,0.85)); }
.page-hero__inner { position: relative; max-width: 780px; margin: 0 auto; }
.page-hero__title { font-size: clamp(2.2rem, 6vw, 4rem); color: var(--white); margin-bottom: 0.3em; }
.page-hero__title.light { color: var(--white); }
.page-hero__sub { font-size: 1.1rem; }
.page-hero--sm { padding: clamp(140px, 16vw, 190px) 0 clamp(36px, 5vw, 56px); }

/* ---------- 23. Content + sidebar ---------- */
.content-with-sidebar { display: grid; grid-template-columns: 1fr 320px; gap: 48px; padding-top: clamp(40px, 6vw, 70px); padding-bottom: clamp(50px, 8vw, 90px); }
.posts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.widget-area .widget { margin-bottom: 34px; background: var(--gray-50); border-radius: var(--radius); padding: 24px; }
.widget-title { font-size: 1.15rem; margin-bottom: 16px; color: var(--navy-deep); }
.widget ul li { margin-bottom: 10px; }
.widget a { color: var(--gray-700); }
.widget a:hover { color: var(--gold-deep); }

/* Search form */
.search-form { display: flex; gap: 8px; }
.search-form .search-field { background: var(--white); color: var(--ink); border: 1px solid var(--gray-300); }
.search-form .search-submit { padding: 0 18px; border: 0; border-radius: 12px; background: var(--navy); color: #fff; font-weight: 600; }
.search-form .search-submit:hover { background: var(--gold); color: var(--ink); }

/* ---------- 24. Sermons / Events / Values grids ---------- */
.sermons-grid, .values-grid, .give-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.value-card, .give-card { text-align: center; padding: 40px 30px; }
.events-list { display: grid; gap: 22px; }
.event-card { display: grid; grid-template-columns: 96px 1fr; align-items: stretch; }
.event-card .event-thumb { display: none; }
.event-date { background: linear-gradient(135deg, var(--navy), var(--navy-deep)); color: var(--white); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px 10px; }
.event-month { text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; color: var(--gold-soft); font-size: 0.85rem; }
.event-day { font-family: var(--font-head); font-size: 2.2rem; font-weight: 800; line-height: 1; }
.event-year { font-size: 0.8rem; opacity: 0.8; }
.event-meta { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 12px; }
.event-meta span { display: inline-flex; align-items: center; gap: 6px; color: var(--navy); font-weight: 600; font-size: 0.9rem; }

/* Sermon filter chips */
.sermon-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; justify-content: center; }
.filter-chip { padding: 9px 20px; border-radius: 50px; background: var(--gray-100); color: var(--gray-700); font-weight: 600; font-size: 0.9rem; }
.filter-chip:hover, .filter-chip.active { background: var(--navy); color: var(--white); }

/* ---------- 25. Pagination ---------- */
.gm-pagination, .pagination { display: flex; justify-content: center; gap: 8px; margin-top: 50px; flex-wrap: wrap; }
.gm-pagination .page-numbers, .pagination .page-numbers, .nav-links .page-numbers {
        display: inline-flex; align-items: center; justify-content: center; min-width: 46px; height: 46px; padding: 0 14px;
        border-radius: 12px; background: var(--gray-100); color: var(--gray-700); font-weight: 600; transition: all var(--t-fast);
}
.gm-pagination .page-numbers.current, .pagination .page-numbers.current, .nav-links .page-numbers.current { background: var(--navy); color: #fff; }
.gm-pagination .page-numbers:hover, .pagination .page-numbers:hover { background: var(--gold); color: var(--ink); }
.posts-navigation, .comment-navigation { margin-top: 40px; }

/* ---------- 26. Empty / single ---------- */
.empty-state { text-align: center; padding: 60px 40px; color: var(--gray-500); max-width: 560px; margin: 0 auto; }
.empty-state svg { color: var(--gray-300); margin-bottom: 16px; }
.empty-state h2 { color: var(--ink); margin-bottom: 10px; }

.single-hero { position: relative; color: #fff; padding: clamp(150px, 20vw, 240px) 0 clamp(40px, 6vw, 70px); overflow: hidden; text-align: center; background: var(--navy-deep); }
.single-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.single-hero__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,31,61,0.6), rgba(11,31,61,0.9)); }
.single-hero__inner { position: relative; max-width: 820px; margin: 0 auto; }
.single-title { font-size: clamp(2rem, 5vw, 3.4rem); color: #fff; }
.single-meta { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.single-meta span { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-soft); font-weight: 600; font-size: 0.92rem; }
.single-body { max-width: 820px; padding-top: clamp(36px, 5vw, 60px); padding-bottom: clamp(50px, 8vw, 90px); }
.single-body .video-wrap { margin-bottom: 34px; }
.gm-audio { width: 100%; margin-bottom: 30px; }
.entry-content { font-size: 1.08rem; }
.entry-content img { border-radius: var(--radius); margin: 1.5em 0; }
.entry-content h2, .entry-content h3 { margin-top: 1.5em; }
.entry-content a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { color: var(--gold-deep); }
.entry-content blockquote { border-left: 4px solid var(--gold); padding: 6px 0 6px 24px; margin: 1.6em 0; font-family: var(--font-head); font-style: italic; font-size: 1.3rem; color: var(--ink); }
.single-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 50px; padding-top: 30px; border-top: 1px solid var(--gray-100); font-weight: 600; }
.single-nav .next { margin-left: auto; text-align: right; }
.page-featured-img { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 40px; box-shadow: var(--shadow-md); }

/* ---------- 27. About / Pastor / CTA / Contact ---------- */
.about-columns { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; align-items: start; }
.about-values { background: var(--gray-50); }
.pastor-grid, .contact-grid, .prayer-page-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 70px); align-items: center; }
.prayer-page-grid, .contact-grid { align-items: start; }
.cta-band { background: linear-gradient(135deg, var(--navy), var(--navy-deep)); color: #fff; text-align: center; padding: clamp(50px, 7vw, 90px) 0; }
.cta-inner { max-width: 640px; margin: 0 auto; }
.give-methods { margin-top: 50px; background: var(--gray-50); border-radius: var(--radius-lg); padding: 40px; }
.give-methods h3 { margin-bottom: 20px; }
.give-methods li { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.give-methods svg { color: var(--gold-deep); flex-shrink: 0; }

.contact-list { margin: 26px 0; }
.contact-list li { display: flex; gap: 16px; margin-bottom: 20px; }
.contact-ic { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; background: rgba(28,58,110,0.08); color: var(--navy); flex-shrink: 0; }
.contact-list strong { display: block; color: var(--ink); }
.contact-social { display: flex; gap: 12px; }
.contact-social .social-link { background: var(--navy); }
.contact-social .social-link:hover { background: var(--gold); }
.gm-ajax-form label { display: block; margin-bottom: 16px; }
.gm-ajax-form label span { display: block; margin-bottom: 6px; font-weight: 600; color: var(--ink); font-size: 0.92rem; }
.contact-form-wrap, .prayer-page-form { padding: 34px; }
.contact-form-wrap h3, .prayer-page-form h3 { margin-bottom: 22px; }
.contact-form-wrap input, .contact-form-wrap textarea, .prayer-page-form input, .prayer-page-form textarea { background: var(--gray-50); border: 1px solid var(--gray-300); color: var(--ink); }
.contact-form-wrap input:focus, .contact-form-wrap textarea:focus, .prayer-page-form input:focus, .prayer-page-form textarea:focus { outline: none; border-color: var(--gold); background: #fff; }
.contact-form-wrap .form-feedback, .prayer-page-form .form-feedback { color: var(--navy); }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form .btn, .contact-form-wrap .btn, .prayer-page-form .btn { width: 100%; }
.prayer-points { margin-top: 20px; }
.prayer-points li { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-weight: 500; color: var(--gray-700); }
.prayer-points svg { color: var(--gold-deep); }
.contact-map { margin-top: 20px; line-height: 0; }
.contact-map iframe { display: block; filter: grayscale(0.1); }
.error-code { font-size: clamp(5rem, 20vw, 11rem); line-height: 1; color: var(--gold-soft); margin: 0; }
.error-text { max-width: 500px; margin: 0 auto 24px; color: rgba(255,255,255,0.85); }
.error-search { max-width: 420px; margin: 30px auto 0; }

/* ---------- 28. Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22,1,0.36,1); will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-group > * { opacity: 0; transform: translateY(36px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22,1,0.36,1); }
.reveal-group.is-visible > * { opacity: 1; transform: none; }
.reveal-group.is-visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-group.is-visible > *:nth-child(3) { transition-delay: 0.2s; }
.reveal-group.is-visible > *:nth-child(4) { transition-delay: 0.3s; }
.reveal-group.is-visible > *:nth-child(5) { transition-delay: 0.4s; }
.reveal-group.is-visible > *:nth-child(6) { transition-delay: 0.5s; }

/* ---------- 29. Responsive ---------- */
@media (max-width: 980px) {
        .featured-grid, .global-grid, .book-grid, .about-columns { grid-template-columns: 1fr; }
        .book-cover { order: 2; }
        .global-logo { max-width: 460px; margin: 0 auto; }
}
@media (max-width: 860px) {
        body { font-size: 16px; }
        .header-cta { display: none; }
        .menu-toggle { display: block; }
        .main-navigation {
                position: fixed; inset: 0 0 0 auto; width: min(360px, 84vw); background: var(--navy-deep);
                transform: translateX(100%); transition: transform var(--t-med); box-shadow: -20px 0 60px rgba(0,0,0,0.4);
                padding: 100px 34px 40px; overflow-y: auto; z-index: 110;
        }
        .main-navigation.is-open { transform: translateX(0); }
        .nav-menu { flex-direction: column; align-items: flex-start; gap: 4px; }
        .nav-menu li { width: 100%; }
        .nav-menu a { display: block; width: 100%; padding: 14px 0; font-size: 1.1rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
        .nav-menu a::after { display: none; }
        .nav-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; padding: 0 0 0 16px; }
        .nav-menu .sub-menu a { color: rgba(255,255,255,0.7); }
        body.menu-open { overflow: hidden; }
        .menu-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.5); opacity: 0; visibility: hidden; transition: opacity var(--t-med); z-index: 105; }
        .menu-backdrop.show { opacity: 1; visibility: visible; }

        .welcome-grid, .newsletter-inner, .pastor-grid, .contact-grid, .prayer-page-grid { grid-template-columns: 1fr; }
        .services-grid, .visit-grid, .sermons-grid, .values-grid, .give-grid { grid-template-columns: 1fr 1fr; }
        .posts-grid { grid-template-columns: 1fr; }
        .content-with-sidebar { grid-template-columns: 1fr; }
        .welcome-media { max-width: 520px; margin: 0 auto; }
        .pastor-photo { max-width: 420px; margin: 0 auto; }
}
@media (max-width: 620px) {
        .services-grid, .visit-grid, .sermons-grid, .values-grid, .give-grid { grid-template-columns: 1fr; }
        .prayer-form .form-row, .contact-form .form-row { grid-template-columns: 1fr; }
        .hero-actions .btn { width: 100%; }
        .footer-grid { grid-template-columns: 1fr 1fr; }
        .event-card { grid-template-columns: 76px 1fr; }
        .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 440px) {
        .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- 30. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
        *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
        .reveal, .reveal-group > * { opacity: 1 !important; transform: none !important; }
}

/* WP core alignment helpers */
.alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull { max-width: 100%; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { font-size: 0.85rem; color: var(--gray-500); text-align: center; margin-top: 8px; }
.sticky, .bypostauthor { display: block; }
.page-links { margin-top: 20px; font-weight: 600; }
.page-links a { display: inline-block; padding: 4px 12px; background: var(--gray-100); border-radius: 8px; margin: 0 4px; }
