/* ==========================================================================
   VBC Ministries — Design System
   Victory Breakthrough Centre Ministries
   ========================================================================== */

/* ===== CSS Reset ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--navy);
    background: var(--white);
    overflow-x: hidden;
}

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

a {
    color: var(--royal);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--navy);
}

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, textarea, select, button {
    font-family: inherit;
    font-size: inherit;
}

:focus-visible {
    outline: 3px solid var(--sky);
    outline-offset: 2px;
}

/* ===== Design Tokens ===== */
:root {
    /* Brand Colors */
    --navy: #101B55;
    --royal: #0057A8;
    --sky: #29B6E6;
    --green: #2E8B28;
    --red: #D71920;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --bible-gray: #D9D9D9;
    --cross-brown: #3B2415;

    /* Semantic */
    --color-text: #101B55;
    --color-text-muted: #5a6178;
    --color-heading: #101B55;
    --color-link: #0057A8;
    --color-bg: #FFFFFF;
    --color-bg-alt: #F5F5F5;
    --color-border: #D9D9D9;
    --color-primary: #D71920;
    --color-secondary: #101B55;
    --color-accent: #29B6E6;
    --color-success: #2E8B28;
    --color-whatsapp: #25D366;

    /* Typography */
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;

    /* Layout */
    --container-max: 1200px;
    --container-padding: 1.25rem;
    --header-height: 80px;

    /* Borders */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(16, 27, 85, 0.08);
    --shadow-md: 0 4px 12px rgba(16, 27, 85, 0.10);
    --shadow-lg: 0 10px 30px rgba(16, 27, 85, 0.12);
    --shadow-xl: 0 20px 50px rgba(16, 27, 85, 0.15);

    /* Transitions */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.15s ease;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-heading);
    line-height: 1.25;
    font-weight: 700;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.625rem);
}

h4 {
    font-size: 1.125rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
}

p:last-child {
    margin-bottom: 0;
}

.lead {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--color-text-muted);
}

.text-white { color: var(--white); }
.text-muted { color: var(--color-text-muted); }
.text-center { text-align: center; }
.text-red { color: var(--red); }
.text-green { color: var(--green); }
.text-sky { color: var(--sky); }

/* ===== Layout ===== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

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

.section--sm {
    padding: var(--space-lg) 0;
}

.section--gray {
    background: var(--color-bg-alt);
}

.section--navy {
    background: var(--navy);
    color: var(--white);
}

.section--navy h1,
.section--navy h2,
.section--navy h3,
.section--navy h4 {
    color: var(--white);
}

.section--green {
    background: var(--green);
    color: var(--white);
}

.section__header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto var(--space-lg);
}

.section__header--left {
    text-align: left;
    margin-left: 0;
}

.section__eyebrow {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--red);
    margin-bottom: 0.75rem;
}

.section--navy .section__eyebrow,
.section--green .section__eyebrow {
    color: var(--sky);
}

.section__title {
    margin-bottom: 0.75rem;
}

.section__subtitle {
    font-size: 1.0625rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

.section--navy .section__subtitle,
.section--green .section__subtitle {
    color: rgba(255, 255, 255, 0.8);
}

/* ===== Grid ===== */
.grid {
    display: grid;
    gap: var(--space-md);
}

.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr 1fr; }

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

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

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    line-height: 1.4;
}

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

.btn:active {
    transform: translateY(0);
}

.btn--primary {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}

.btn--primary:hover {
    background: #b8161b;
    color: var(--white);
    border-color: #b8161b;
}

.btn--secondary {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

.btn--secondary:hover {
    background: #0d1544;
    color: var(--white);
    border-color: #0d1544;
}

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

.btn--outline:hover {
    background: var(--navy);
    color: var(--white);
}

.btn--white {
    background: var(--white);
    color: var(--navy);
    border-color: var(--white);
}

.btn--white:hover {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn--outline-white {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn--outline-white:hover {
    background: var(--white);
    color: var(--navy);
    border-color: var(--white);
}

.btn--whatsapp {
    background: var(--color-whatsapp);
    color: var(--white);
    border-color: var(--color-whatsapp);
}

.btn--whatsapp:hover {
    background: #1da851;
    color: var(--white);
    border-color: #1da851;
}

.btn--sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.8125rem;
}

.btn--lg {
    padding: 1rem 2.25rem;
    font-size: 1rem;
}

.btn--block {
    display: flex;
    width: 100%;
}

.btn--green {
    background: var(--green);
    color: var(--white);
    border-color: var(--green);
}

.btn--green:hover {
    background: #247a20;
    color: var(--white);
    border-color: #247a20;
}

/* ===== Skip Link ===== */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--navy);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    z-index: 2000;
    border-radius: 0 0 var(--radius-sm) 0;
    font-weight: 600;
    font-size: 0.875rem;
}

.skip-link:focus {
    top: 0;
    color: var(--white);
}

/* ===== Header ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.header__topbar {
    background: var(--navy);
    color: var(--white);
    font-size: 0.8125rem;
    padding: 0.4rem 0;
}

.header__topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.header__topbar-text {
    opacity: 0.9;
}

.header__topbar-links {
    display: flex;
    gap: 1.25rem;
}

.header__topbar-link {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8125rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.header__topbar-link:hover {
    color: var(--sky);
}

@media (max-width: 640px) {
    .header__topbar-text { display: none; }
    .header__topbar-inner { justify-content: center; }
}

/* ===== Navigation ===== */
.nav {
    border-bottom: 1px solid var(--bible-gray);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: 1rem;
}

.nav__logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    height: 100%;
    text-decoration: none;
}

.nav__logo:hover {
    opacity: 0.9;
}

.nav__logo-img {
    height: 100%;
    width: auto;
    max-width: none;
    object-fit: contain;
    padding: 4px 0;
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}

.nav__link {
    display: block;
    padding: 0.5rem 0.875rem;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--navy);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    position: relative;
}

.nav__link:hover {
    color: var(--royal);
    background: var(--light-gray);
}

.nav__link.active {
    color: var(--red);
}

.nav__link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0.875rem;
    right: 0.875rem;
    height: 2px;
    background: var(--red);
    border-radius: 1px;
}

.nav__menu-cta {
    margin-left: 0.5rem;
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    border-radius: var(--radius-sm);
}

.nav__toggle-bar {
    width: 24px;
    height: 3px;
    background: var(--navy);
    border-radius: 2px;
    transition: all var(--transition);
}

.nav__toggle.active .nav__toggle-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav__toggle.active .nav__toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav__toggle.active .nav__toggle-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 991px) {
    .nav__toggle {
        display: flex;
        flex-shrink: 0;
    }

    .nav__inner {
        gap: 0.5rem;
    }

    .nav__logo {
        min-width: 0;
        overflow: hidden;
    }

    .nav__logo-img {
        max-width: 100%;
        height: auto;
        max-height: calc(var(--header-height) - 8px);
    }

    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        max-width: 85vw;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 5rem 1.5rem 2rem;
        gap: 0.25rem;
        box-shadow: var(--shadow-xl);
        transition: right var(--transition);
        overflow-y: auto;
    }

    .nav__menu.open {
        right: 0;
    }

    .nav__link {
        padding: 0.875rem 1rem;
        font-size: 1rem;
        border-radius: var(--radius-sm);
    }

    .nav__link.active::after {
        display: none;
    }

    .nav__link.active {
        background: var(--light-gray);
    }

    .nav__menu-cta {
        margin-left: 0;
        margin-top: 0.75rem;
    }

    .nav__menu-cta .btn {
        width: 100%;
    }
}

/* ===== Hero ===== */
.hero {
    background: var(--navy);
    color: var(--white);
    padding: var(--space-2xl) 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    border: 2px solid rgba(41, 182, 230, 0.08);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 350px;
    height: 350px;
    border: 2px solid rgba(0, 87, 168, 0.15);
    border-radius: 50%;
}

.hero__inner {
    position: relative;
    z-index: 1;
    max-width: 820px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(41, 182, 230, 0.15);
    border: 1px solid rgba(41, 182, 230, 0.3);
    color: var(--sky);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero__title {
    color: var(--white);
    margin-bottom: 1.25rem;
}

.hero__title-highlight {
    color: var(--sky);
}

.hero__scripture {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--sky);
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 0.25rem 0;
    border-bottom: 2px solid var(--red);
}

.hero__text {
    font-size: 1.125rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    max-width: 620px;
    margin-bottom: 2rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero__meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.hero__meta-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
}

.hero__meta-value {
    font-family: var(--font-heading);
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--white);
}

/* ===== Page Header (inner pages) ===== */
.page-header {
    background: var(--navy);
    color: var(--white);
    padding: var(--space-xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 400px;
    height: 400px;
    border: 2px solid rgba(41, 182, 230, 0.06);
    border-radius: 50%;
}

.page-header__inner {
    position: relative;
    z-index: 1;
}

.page-header__title {
    color: var(--white);
    margin-bottom: 0.75rem;
}

.page-header__subtitle {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 600px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    margin-top: 1.25rem;
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb a {
    color: var(--sky);
}

.breadcrumb a:hover {
    color: var(--white);
}

.breadcrumb__sep {
    opacity: 0.5;
}

/* ===== Cards ===== */
.card {
    background: var(--white);
    border: 1px solid var(--bible-gray);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    transition: all var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--sky);
}

.card--flat:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
}

.card__icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.card__icon--navy { background: var(--navy); color: var(--white); }
.card__icon--royal { background: var(--royal); color: var(--white); }
.card__icon--sky { background: var(--sky); color: var(--white); }
.card__icon--green { background: var(--green); color: var(--white); }
.card__icon--red { background: var(--red); color: var(--white); }

.card__title {
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.card__text {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    line-height: 1.65;
}

/* ===== Service Time Cards ===== */
.service-card {
    background: var(--white);
    border: 1px solid var(--bible-gray);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    text-align: center;
    transition: all var(--transition);
    border-top: 4px solid var(--royal);
}

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

.service-card:nth-child(2) { border-top-color: var(--green); }
.service-card:nth-child(3) { border-top-color: var(--red); }

.service-card__day {
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--royal);
    margin-bottom: 0.5rem;
}

.service-card__name {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.service-card__time {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--red);
}

/* ===== Event Cards ===== */
.event-card {
    background: var(--white);
    border: 1px solid var(--bible-gray);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

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

.event-card__img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

/* Fallback header background when no image */
.event-card:not(:has(.event-card__img)) .event-card__header {
    background: var(--light-gray);
    padding-top: 2.5rem;
}

/* Calendar tear-off date badge */
.event-card__date {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    width: 56px;
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    z-index: 2;
    transition: transform var(--transition);
}

.event-card:hover .event-card__date {
    transform: scale(1.05);
}

.event-card__date-month {
    display: block;
    text-align: center;
    padding: 0.3rem 0;
    font-family: var(--font-heading);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--white);
    background: var(--navy);
}

.event-card__date-day {
    display: block;
    text-align: center;
    padding: 0.375rem 0 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--navy);
}

/* Date badge color variants by event type */
.event-card__date--crusade .event-card__date-month { background: var(--red); }
.event-card__date--crusade .event-card__date-day { color: var(--red); }

.event-card__date--conference .event-card__date-month { background: var(--royal); }
.event-card__date--conference .event-card__date-day { color: var(--royal); }

.event-card__date--service .event-card__date-month { background: var(--green); }
.event-card__date--service .event-card__date-day { color: var(--green); }

.event-card__date--outreach .event-card__date-month { background: var(--navy); }
.event-card__date--outreach .event-card__date-day { color: var(--navy); }

/* Recurring event date badge (star icon) */
.event-card__date--recurring .event-card__date-month {
    background: var(--royal);
    font-size: 0.625rem;
    padding: 0.35rem 0;
}

.event-card__date--recurring .event-card__date-day {
    color: var(--royal);
    font-size: 1.25rem;
    padding: 0.375rem 0 0.5rem;
}

.event-card__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem var(--space-md);
    border-bottom: 1px solid var(--bible-gray);
}

.event-card__type {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--royal);
}

.event-card__type::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--royal);
}

.event-card__type--crusade { color: var(--red); }
.event-card__type--crusade::before { background: var(--red); }

.event-card__type--conference { color: var(--royal); }
.event-card__type--conference::before { background: var(--royal); }

.event-card__type--service { color: var(--green); }
.event-card__type--service::before { background: var(--green); }

.event-card__type--outreach { color: var(--navy); }
.event-card__type--outreach::before { background: var(--navy); }

.event-card__time {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin-top: 2px;
}

.event-card__body {
    padding: var(--space-md);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-card__title {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.event-card__location {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: var(--royal);
    margin-bottom: 0.75rem;
}

.event-card__description {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 1rem;
}

.event-card__status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    align-self: flex-start;
}

.event-card__status--upcoming {
    background: rgba(46, 139, 40, 0.1);
    color: var(--green);
}

.event-card__status--past {
    background: rgba(16, 27, 85, 0.08);
    color: var(--navy);
}

.event-card__status--recurring {
    background: rgba(0, 87, 168, 0.1);
    color: var(--royal);
}

/* ===== Sermon Cards ===== */
.sermon-card {
    background: var(--white);
    border: 1px solid var(--bible-gray);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

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

.sermon-card__media {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.sermon-card__media iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.sermon-card__play {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--red);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    box-shadow: var(--shadow-md);
}

.sermon-card:hover .sermon-card__play {
    transform: scale(1.1);
    background: var(--white);
    color: var(--red);
}

.sermon-card__duration {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    background: rgba(16, 27, 85, 0.85);
    color: var(--white);
    padding: 0.2rem 0.625rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

.sermon-card__body {
    padding: var(--space-md);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sermon-card__date {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.sermon-card__title {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.sermon-card__scripture {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--royal);
    background: rgba(0, 87, 168, 0.08);
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
}

.sermon-card__description {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 0.75rem;
}

.sermon-card__speaker {
    font-size: 0.875rem;
    color: var(--navy);
    font-weight: 600;
    padding-top: 0.75rem;
    border-top: 1px solid var(--bible-gray);
}

/* ===== Quick Link Cards ===== */
.quick-link {
    display: block;
    background: var(--white);
    border: 1px solid var(--bible-gray);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    transition: all var(--transition);
    color: var(--navy);
    position: relative;
    overflow: hidden;
}

.quick-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--royal);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.quick-link:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    color: var(--navy);
    border-color: var(--sky);
}

.quick-link:hover::before {
    transform: scaleX(1);
}

.quick-link__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    background: var(--light-gray);
    color: var(--navy);
}

.quick-link__title {
    font-size: 1.125rem;
    margin-bottom: 0.375rem;
}

.quick-link__text {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.quick-link__arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 0.75rem;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--red);
}

/* ===== Feature / Value Cards ===== */
.value-card {
    text-align: center;
    padding: var(--space-lg) var(--space-md);
}

.value-card__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.value-card__title {
    margin-bottom: 0.625rem;
}

.value-card__text {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
}

/* ===== Stats Section ===== */
.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

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

.stat {
    text-align: center;
    padding: var(--space-md);
}

.stat__number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--sky);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat__label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

/* ===== CTA Banner ===== */
.cta-banner {
    background: var(--red);
    color: var(--white);
    padding: var(--space-lg) 0;
    text-align: center;
}

.cta-banner__title {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.cta-banner__text {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.cta-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

/* ===== Forms ===== */
.form {
    max-width: 640px;
}

.form__group {
    margin-bottom: 1.25rem;
}

.form__row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

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

.form__label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.form__label .required {
    color: var(--red);
}

.form__input,
.form__textarea,
.form__select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--bible-gray);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    color: var(--navy);
    background: var(--white);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form__input:focus,
.form__textarea:focus,
.form__select:focus {
    outline: none;
    border-color: var(--royal);
    box-shadow: 0 0 0 3px rgba(0, 87, 168, 0.1);
}

.form__textarea {
    min-height: 140px;
    resize: vertical;
}

.form__hint {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin-top: 0.375rem;
}

.form__alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
}

.form__alert--success {
    background: rgba(46, 139, 40, 0.1);
    border: 1px solid var(--green);
    color: var(--green);
}

.form__alert--error {
    background: rgba(215, 25, 32, 0.08);
    border: 1px solid var(--red);
    color: var(--red);
}

/* ===== Contact Info Cards ===== */
.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: var(--space-md);
    background: var(--white);
    border: 1px solid var(--bible-gray);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.contact-info-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--sky);
}

.contact-info-card__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--navy);
    color: var(--white);
}

.contact-info-card__label {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-info-card__value {
    font-family: var(--font-heading);
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--navy);
}

.contact-info-card__value a {
    color: var(--navy);
}

.contact-info-card__value a:hover {
    color: var(--royal);
}

/* ===== Map ===== */
.map-embed {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid var(--bible-gray);
    box-shadow: var(--shadow-md);
}

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

/* ===== Social Links ===== */
.social-links {
    display: flex;
    gap: 0.625rem;
    flex-wrap: wrap;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-gray);
    color: var(--navy);
    transition: all var(--transition);
    flex-shrink: 0;
}

.social-link:hover {
    background: var(--royal);
    color: var(--white);
    transform: translateY(-2px);
}

.social-links--footer .social-link {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.social-links--footer .social-link:hover {
    background: var(--sky);
    color: var(--navy);
}

.social-links--lg .social-link {
    width: 48px;
    height: 48px;
}

/* ===== Footer ===== */
.footer {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.8);
    padding-top: var(--space-xl);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    padding-bottom: var(--space-lg);
}

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

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

.footer__col--brand {
    max-width: 360px;
}

.footer__logo {
    margin-bottom: 1rem;
}

.footer__logo-img {
    height: 56px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.footer__tagline {
    font-size: 0.875rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1.25rem;
    font-style: italic;
}

.footer__heading {
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.footer__heading--mt {
    margin-top: 1.5rem;
}

.footer__links li {
    margin-bottom: 0.625rem;
}

.footer__links a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9375rem;
    transition: color var(--transition-fast);
}

.footer__links a:hover {
    color: var(--sky);
}

.footer__service-times li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.875rem;
}

.footer__service-times li:last-child {
    border-bottom: none;
}

.footer__service-day {
    color: var(--sky);
    font-weight: 600;
}

.footer__service-time {
    color: rgba(255, 255, 255, 0.6);
}

.footer__contact-list li {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.65);
}

.footer__contact-list svg {
    color: var(--sky);
    flex-shrink: 0;
}

.footer__contact-list a {
    color: rgba(255, 255, 255, 0.65);
}

.footer__contact-list a:hover {
    color: var(--sky);
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.25rem 0;
}

.footer__bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ===== Floating WhatsApp ===== */
.float-whatsapp {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-whatsapp);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 900;
    transition: all var(--transition);
    animation: pulse-whatsapp 2.5s infinite;
}

.float-whatsapp:hover {
    transform: scale(1.1);
    color: var(--white);
}

@keyframes pulse-whatsapp {
    0% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.7), 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
}

/* ===== Scroll to Top ===== */
.scroll-top {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--royal);
    transform: translateY(-2px);
}

/* ===== Leadership Profile ===== */
.leader-profile {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    align-items: start;
}

@media (min-width: 768px) {
    .leader-profile {
        grid-template-columns: 320px 1fr;
    }
}

.leader-photo {
    aspect-ratio: 3 / 4;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--light-gray);
    border: 1px solid var(--bible-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.leader-photo__placeholder {
    text-align: center;
    padding: var(--space-md);
}

.leader-photo__initials {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.leader-photo__label {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.leader-photo__badge {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    background: var(--navy);
    color: var(--white);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    text-align: center;
}

.leader-photo__badge-name {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
}

.leader-photo__badge-title {
    font-size: 0.75rem;
    color: var(--sky);
    margin-top: 2px;
}

.leader-info__name {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.leader-info__title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--red);
    margin-bottom: 1.5rem;
}

.leader-info__bio p {
    margin-bottom: 1rem;
    line-height: 1.75;
    color: var(--color-text-muted);
}

.leader-info__facts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: var(--light-gray);
    border-radius: var(--radius-md);
}

.leader-info__fact-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.leader-info__fact-value {
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--navy);
}

/* ===== Quote Block ===== */
.quote-block {
    background: var(--light-gray);
    border-left: 4px solid var(--red);
    padding: var(--space-lg) var(--space-md);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: var(--space-lg) 0;
}

.quote-block__text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--navy);
    font-style: italic;
    margin-bottom: 1rem;
}

.quote-block__author {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    font-weight: 600;
}

/* ===== Mission/Vision Cards ===== */
.mv-card {
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    border: 1px solid var(--bible-gray);
    background: var(--white);
    transition: all var(--transition);
}

.mv-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.mv-card__icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.mv-card--mission .mv-card__icon {
    background: var(--red);
    color: var(--white);
}

.mv-card--vision .mv-card__icon {
    background: var(--royal);
    color: var(--white);
}

.mv-card__title {
    font-size: 1.375rem;
    margin-bottom: 0.75rem;
}

.mv-card__text {
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* ===== Belief List ===== */
.belief-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

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

.belief-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--white);
    border: 1px solid var(--bible-gray);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.belief-item:hover {
    border-color: var(--sky);
    box-shadow: var(--shadow-sm);
}

.belief-item__number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    flex-shrink: 0;
}

.belief-item__title {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.belief-item__text {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ===== Giving Cards ===== */
.give-card {
    background: var(--white);
    border: 2px solid var(--bible-gray);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    transition: all var(--transition);
}

.give-card:hover {
    border-color: var(--sky);
    box-shadow: var(--shadow-lg);
}

.give-card__icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    background: var(--green);
    color: var(--white);
}

.give-card__title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.give-card__detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--bible-gray);
    font-size: 0.9375rem;
}

.give-card__detail:last-child {
    border-bottom: none;
}

.give-card__detail-label {
    color: var(--color-text-muted);
    font-weight: 500;
}

.give-card__detail-value {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--navy);
}

.give-card__note {
    margin-top: 1rem;
    padding: 0.75rem;
    background: var(--light-gray);
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    text-align: center;
}

/* ===== Timeline ===== */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--bible-gray);
}

.timeline__item {
    position: relative;
    padding-bottom: 2rem;
}

.timeline__item:last-child {
    padding-bottom: 0;
}

.timeline__dot {
    position: absolute;
    left: -2rem;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--red);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 2px var(--bible-gray);
}

.timeline__date {
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--royal);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.375rem;
}

.timeline__title {
    font-size: 1.0625rem;
    margin-bottom: 0.375rem;
}

.timeline__text {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ===== YouTube Channel Card ===== */
.youtube-cta {
    background: var(--white);
    border: 1px solid var(--bible-gray);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
    transition: all var(--transition);
}

.youtube-cta:hover {
    box-shadow: var(--shadow-lg);
}

.youtube-cta__icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--red);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.youtube-cta__title {
    margin-bottom: 0.5rem;
}

.youtube-cta__text {
    color: var(--color-text-muted);
    margin-bottom: 1.25rem;
}

/* ===== Platform Cards ===== */
.platform-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: var(--space-md);
    background: var(--white);
    border: 1px solid var(--bible-gray);
    border-radius: var(--radius-md);
    transition: all var(--transition);
    color: var(--navy);
}

.platform-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    color: var(--navy);
    border-color: var(--sky);
}

.platform-card__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.platform-card__icon--facebook { background: #1877F2; color: var(--white); }
.platform-card__icon--youtube { background: var(--red); color: var(--white); }
.platform-card__icon--tiktok { background: var(--navy); color: var(--white); }

.platform-card__name {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.125rem;
}

.platform-card__handle {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

/* ===== Info Banner ===== */
.info-banner {
    background: rgba(41, 182, 230, 0.08);
    border: 1px solid rgba(41, 182, 230, 0.3);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: var(--space-lg);
}

.info-banner__icon {
    color: var(--royal);
    flex-shrink: 0;
    margin-top: 2px;
}

.info-banner__text {
    font-size: 0.9375rem;
    color: var(--navy);
    line-height: 1.6;
}

/* ===== Misc Utilities ===== */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.sm-only {
    display: none;
}

.divider {
    height: 1px;
    background: var(--bible-gray);
    margin: var(--space-lg) 0;
    border: none;
}

.badge {
    display: inline-block;
    padding: 0.3rem 0.875rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.badge--red { background: rgba(215, 25, 32, 0.1); color: var(--red); }
.badge--green { background: rgba(46, 139, 40, 0.1); color: var(--green); }
.badge--royal { background: rgba(0, 87, 168, 0.1); color: var(--royal); }
.badge--navy { background: rgba(16, 27, 85, 0.08); color: var(--navy); }

/* ===== Animations ===== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

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

    .float-whatsapp {
        animation: none;
    }
}

/* ===== Body Overlay (mobile menu) ===== */
.body-overlay {
    position: fixed;
    inset: 0;
    background: rgba(16, 27, 85, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.body-overlay.visible {
    opacity: 1;
    visibility: visible;
}

/* ===== 404 Page ===== */
.error-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-2xl) 0;
}

.error-page__code {
    font-family: var(--font-heading);
    font-size: clamp(4rem, 15vw, 8rem);
    font-weight: 800;
    color: var(--navy);
    line-height: 1;
}

.error-page__code span {
    color: var(--red);
}

.error-page__title {
    font-size: 1.5rem;
    margin: 1rem 0 0.5rem;
}

.error-page__text {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

/* ===== Hero with Background Image ===== */
.hero--bg {
    background: linear-gradient(rgba(16, 27, 85, 0.82), rgba(16, 27, 85, 0.88)), url('/static/images/sermon-preaching-on-stage.jpg') center center / cover no-repeat, var(--navy);
}

/* ===== Sermon Card Image ===== */
.sermon-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.sermon-card__media {
    position: relative;
}

.sermon-card__media .sermon-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.sermon-card:hover .sermon-card__play {
    transform: translate(-50%, -50%) scale(1.1);
}

/* ===== Event Card Image ===== */
.event-card__img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

/* ===== Split Section (image + text) ===== */
.split-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    align-items: center;
}

@media (min-width: 768px) {
    .split-section {
        grid-template-columns: 1fr 1fr;
    }
}

.split-section__img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4 / 3;
}

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

.split-section__img--tall {
    aspect-ratio: 3 / 4;
}

.split-section--reverse .split-section__img {
    order: -1;
}

@media (min-width: 768px) {
    .split-section--reverse .split-section__img {
        order: 1;
    }
}

/* ===== Leader Photo (real image) ===== */
.leader-photo__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

/* ===== Image Banner ===== */
.image-banner {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.image-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== Flyer Card ===== */
.flyer-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition);
    background: var(--white);
}

.flyer-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.flyer-card img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== Feature Image Card ===== */
.feature-img {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 4 / 3;
}

.feature-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

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

/* ===== Gallery Grid ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

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

.gallery-grid__item {
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 1 / 1;
    box-shadow: var(--shadow-sm);
}

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

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

/* ===== Responsive Adjustments ===== */

/* ---- Phones (≤575px) ---- */
@media (max-width: 575px) {
    /* Container & sections */
    :root {
        --container-padding: 1rem;
        --space-xl: 2.5rem;
        --space-2xl: 3rem;
        --header-height: 64px;
    }

    /* Topbar */
    .header__topbar-links {
        gap: 0.75rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .header__topbar-link {
        font-size: 0.75rem;
    }

    .section {
        padding: var(--space-lg) 0;
    }

    .section__header {
        margin-bottom: var(--space-md);
    }

    .section__subtitle {
        font-size: 0.9375rem;
    }

    .lead {
        font-size: 1rem;
    }

    /* Hero */
    .hero {
        padding: var(--space-xl) 0;
    }

    .hero__text {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero__actions {
        flex-wrap: nowrap;
        margin-bottom: 2rem;
    }

    .hero__actions .btn {
        flex: 1 1 0;
        min-width: 0;
        padding: 0.625rem 0.375rem;
        font-size: 0.8125rem;
        white-space: nowrap;
        overflow: hidden;
        gap: 0.375rem;
    }

    .hero__actions .btn svg {
        flex-shrink: 0;
        width: 16px;
        height: 16px;
    }

    /* Responsive text swapping */
    .sm-hide {
        display: none;
    }

    .sm-only {
        display: inline;
    }

    .hero__meta {
        gap: 1.25rem;
    }

    /* Page header */
    .page-header {
        padding: var(--space-xl) 0;
    }

    /* CTA banner */
    .cta-banner {
        padding: var(--space-lg) 0;
    }

    .cta-banner__actions {
        flex-direction: column;
        width: 100%;
    }

    .cta-banner__actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* Buttons */
    .btn--lg {
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }

    /* Cards */
    .card {
        padding: 1rem;
    }

    .service-card {
        padding: 1rem;
    }

    .mv-card {
        padding: 1.25rem;
    }

    .give-card {
        padding: 1.25rem;
    }

    .give-card__detail {
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    .give-card__detail-value {
        font-size: 0.875rem;
        word-break: break-all;
    }

    /* Quote block */
    .quote-block {
        padding: 1.25rem 1rem;
    }

    .quote-block__text {
        font-size: 1.0625rem;
    }

    /* Stats */
    .stat__number {
        font-size: 1.875rem;
    }

    /* Map */
    .map-embed iframe {
        height: 280px;
    }

    /* Split section */
    .split-section {
        gap: var(--space-md);
    }

    .split-section__img {
        aspect-ratio: 16 / 9;
    }

    /* Leader profile */
    .leader-photo {
        aspect-ratio: 4 / 3;
        max-width: 320px;
        margin: 0 auto;
    }

    .leader-info__facts {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.75rem !important;
    }

    /* Feature images in cards */
    .feature-img {
        aspect-ratio: 16 / 9;
    }

    /* Sermon card text */
    .sermon-card__title {
        font-size: 1rem;
    }

    .sermon-card__play {
        width: 48px;
        height: 48px;
    }

    .sermon-card__body {
        padding: 0.875rem;
    }

    .sermon-card__description {
        font-size: 0.8125rem;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        overflow: hidden;
    }

    /* Event card */
    .event-card__title {
        font-size: 1rem;
    }

    .event-card__date {
        width: 48px;
        top: 0.5rem;
        left: 0.5rem;
    }

    .event-card__date-month {
        font-size: 0.625rem;
        padding: 0.25rem 0;
    }

    .event-card__date-day {
        font-size: 1.25rem;
        padding: 0.25rem 0 0.375rem;
    }

    .event-card__header {
        gap: 0.5rem;
        padding: 0.625rem 0.75rem;
    }

    .event-card__body {
        padding: 0.75rem;
    }

    .event-card__description {
        font-size: 0.8125rem;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        overflow: hidden;
    }

    /* Belief item */
    .belief-item {
        padding: 1rem;
        gap: 0.75rem;
    }

    .belief-item__number {
        width: 32px;
        height: 32px;
        font-size: 0.8125rem;
    }

    /* Contact info card */
    .contact-info-card {
        padding: 1rem;
        gap: 0.75rem;
    }

    .contact-info-card__icon {
        width: 40px;
        height: 40px;
    }

    /* Platform card */
    .platform-card {
        padding: 1rem;
        gap: 0.75rem;
    }

    /* YouTube CTA */
    .youtube-cta {
        padding: 1.25rem;
    }

    .youtube-cta__icon {
        width: 56px;
        height: 56px;
    }

    /* Footer */
    .footer__grid {
        gap: var(--space-md);
    }

    .footer__bottom-inner {
        flex-direction: column;
        text-align: center;
    }

    /* Floating buttons */
    .float-whatsapp {
        bottom: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
    }

    .scroll-top {
        bottom: 1rem;
        left: 1rem;
    }

    /* Grid gap on small screens */
    .grid {
        gap: 0.75rem;
    }
}

/* ---- Very small phones (≤380px) ---- */
@media (max-width: 380px) {
    :root {
        --container-padding: 0.875rem;
    }

    .section {
        padding: 2rem 0;
    }

    .hero__title {
        font-size: 1.75rem;
    }

    .hero__meta {
        gap: 1rem;
    }

    .card {
        padding: 0.875rem;
    }

    .stat__number {
        font-size: 1.5rem;
    }

    .grid {
        gap: 0.625rem;
    }
}
