/* ============================================================
   WFCOC Site Styles — mobile-first, Bootstrap 5.3 base
   ============================================================ */

:root {
    --navy:       #1F1B4E;
    --primary:    #4A3F8F;
    --primary-lt: #6456B7;
    --gray-100:   #F3F4F6;
    --gray-200:   #E5E7EB;
    --gray-300:   #D1D5DB;
    --gray-400:   #9CA3AF;
    --gray-500:   #6B7280;
    --gray-600:   #4B5563;
    --gray-700:   #374151;
    --gray-800:   #1F2937;
    --gray-900:   #111827;
    --light-bg:   #F4F2FF;
    --white:      #FFFFFF;
    --text:       #1A1633;
    --muted:      #6B6587;
    --border:     #E2DEFC;
    --success:    #2E7D52;
    --shadow-sm:  0 2px 8px rgba(31,27,78,0.08);
    --shadow-md:  0 4px 16px rgba(31,27,78,0.12);
    --shadow-lg:  0 8px 32px rgba(31,27,78,0.16);
    --radius:     10px;
    --radius-lg:  18px;
    --radius-sm:  6px;
    --transition: 0.25s ease;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--light-bg);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
    color: var(--navy);
}

a { color: var(--primary); transition: color var(--transition); }
a:hover { color: var(--primary-lt); }

/* ---- Top Contact Bar ---- */
.topbar {
    background: #16134a;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 0.4rem 0;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.65);
}
.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.topbar-left { gap: 1rem; }
.topbar-right { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.6rem; margin-left: auto; }
.topbar-link {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    transition: color var(--transition);
}
.topbar-link:hover { color: var(--gray-300); }
.topbar-divider { color: rgba(255,255,255,0.25); }

/* ---- Language Switch (Phase 1, route-based — see _LanguageSwitch.cshtml) ---- */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.lang-switch-link {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 0.76rem;
    font-weight: 600;
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.25);
    transition: color var(--transition), background var(--transition), border-color var(--transition);
    white-space: nowrap;
}
.lang-switch-link:hover { color: var(--white); border-color: rgba(255,255,255,0.5); }
.lang-switch-link.active {
    color: var(--navy);
    background: var(--white);
    border-color: var(--white);
    font-weight: 700;
}
.lang-switch-link.active:hover { color: var(--navy); }

/* ---- Skip Link ---- */
.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    background: var(--gray-200);
    color: var(--navy);
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 0 0 var(--radius) var(--radius);
    z-index: 9999;
    transition: top var(--transition);
}
.skip-link:focus { top: 0; color: var(--navy); }

/* ---- Navbar ---- */
.navbar {
    background: var(--white) !important;
    box-shadow: var(--shadow-sm);
    padding: 0.55rem 0;
}

.navbar-brand {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--navy) !important;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

/* Language switch, rendered inline in the (now white) navbar — kept minimal/textual
   so it doesn't visually compete with the Give Online CTA. */
.navbar .nav-lang { margin-left: 0.6rem; padding-left: 0.6rem; border-left: 1px solid var(--border); }
.navbar .lang-switch { gap: 0.35rem; }
.navbar .lang-switch-link {
    color: var(--gray-400);
    border: none;
    background: none;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.1rem;
}
.navbar .lang-switch-link:hover { color: var(--primary); }
.navbar .lang-switch-link.active {
    background: none;
    color: var(--primary) !important;
    font-weight: 700;
}

.navbar-brand span {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.navbar-toggler {
    border-color: var(--border);
    padding: 0.4rem 0.6rem;
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2826,22,51,0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-nav .nav-link {
    color: var(--text) !important;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 0.85rem !important;
    border-radius: 0;
    border-bottom: 2px solid transparent;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.navbar-nav .nav-link:hover {
    color: var(--primary) !important;
    background: var(--light-bg);
}
.navbar-nav .nav-link.active,
.navbar-nav .nav-link.dropdown-toggle.active {
    color: var(--primary) !important;
    background: none;
    border-bottom-color: var(--primary);
}

/* About / Resources dropdowns */
.navbar .dropdown-menu {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 0.4rem 0;
    min-width: 240px;
}
.navbar .dropdown-item {
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 500;
    padding: 0.55rem 1.1rem;
    transition: background var(--transition), color var(--transition);
}
.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    background: var(--light-bg);
    color: var(--primary);
}

.navbar-nav .nav-link.nav-cta {
    background: var(--primary);
    color: var(--white) !important;
    font-weight: 700;
    border-radius: 50px;
    border-bottom: none;
    padding: 0.5rem 1.1rem !important;
    margin-left: 0.5rem;
}
.navbar-nav .nav-link.nav-cta:hover {
    background: var(--primary-lt);
    color: var(--white) !important;
}

/* ---- Hero ---- */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--primary) 100%);
    color: var(--white);
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}

/* Background photo variant — applied when hero-bg class is present */
.hero.hero-bg {
    background: var(--navy);
}
.hero.hero-bg::before { display: none; }

.hero-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(90deg, rgba(31,27,78,0.92) 0%, rgba(31,27,78,0.65) 38%, rgba(31,27,78,0.28) 68%, rgba(31,27,78,0.08) 100%),
        url('/images/hero-bg.jpg');
    background-size: cover, cover;
    background-position: center, center;
    z-index: 0;
}

.hero h1 .text-accent { color: var(--primary-lt); display: block; }

/* If no image exists the overlay is invisible, navy background shows through */
.hero-content { position: relative; z-index: 1; }

/* Navbar logo — wide wordmark lockup, sized by height */
.navbar-logo {
    height: 46px;
    width: auto;
    object-fit: contain;
}

/* Hero logo */
.hero-logo-wrap { line-height: 1; }
.hero-logo {
    max-height: 140px;
    max-width: 360px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1) drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='30' cy='30' r='25' fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='1'/%3E%3C/svg%3E") repeat;
    pointer-events: none;
}

.hero-eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gray-300);
    margin-bottom: 0.75rem;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.15;
}

.hero .lead {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: rgba(255,255,255,0.85);
    margin-bottom: 2rem;
    max-width: 560px;
}

.hero-actions .btn { margin: 0.35rem; min-width: 160px; }

/* ---- Quick Info Band ---- */
.info-band { background: var(--navy); padding: 2rem 0; }
.info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    text-decoration: none;
    color: var(--white);
}
.info-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: background var(--transition);
}
.info-item:hover .info-icon { background: rgba(255,255,255,0.2); }
.info-text { display: flex; flex-direction: column; min-width: 0; }
.info-title { font-weight: 700; font-size: 0.95rem; color: var(--white); }
.info-desc {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.65);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
@media (max-width: 767px) {
    .info-desc { white-space: normal; }
}

/* ---- Section Utilities ---- */
.section { padding: 4rem 0; }
.section-sm { padding: 2.5rem 0; }
.section-dark { background: var(--navy); color: var(--white); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }
.section-white { background: var(--white); }
.section-light { background: var(--light-bg); }

.section-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 0.5rem;
}
.section-dark .section-label { color: var(--gray-300); }

.section-title {
    font-size: clamp(1.6rem, 4vw, 2.25rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--muted);
    max-width: 600px;
}
.section-dark .section-subtitle { color: rgba(255,255,255,0.7); }

/* ---- Buttons ---- */
.btn {
    font-weight: 600;
    border-radius: 50px;
    padding: 0.65rem 1.5rem;
    transition: all var(--transition);
    font-size: 0.92rem;
    letter-spacing: 0.01em;
}
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--primary-lt);
    border-color: var(--primary-lt);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
.btn-gold {
    background: var(--gray-700);
    border-color: var(--gray-700);
    color: var(--white);
    font-weight: 700;
}
.btn-gold:hover {
    background: var(--gray-800);
    border-color: var(--gray-800);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
.btn-outline-light:hover { color: var(--navy) !important; }
.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}
.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; }

/* ---- Cards ---- */
.card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    background: var(--white);
    transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.card-body { padding: 1.5rem; }

/* ---- Feature Cards (mission values) ---- */
.feature-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all var(--transition);
    height: 100%;
}
.feature-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}
/* Headings were bumped from h4 to h3 for correct heading hierarchy; pin the size to
   Bootstrap's own h4 formula so nothing visually changes. */
.feature-card h3 {
    font-size: calc(1.275rem + 0.3vw);
}
@media (min-width: 1200px) {
    .feature-card h3 { font-size: 1.5rem; }
}
.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.5rem;
    transition: background var(--transition);
}
.feature-card:hover .feature-icon { background: var(--primary); color: var(--white); }

/* ---- Ministry Photo Cards ---- */
.ministry-photo-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    height: 170px;
}
.ministry-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.ministry-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--navy), var(--primary));
    font-size: 2rem;
}
.ministry-photo-caption {
    position: absolute;
    inset: auto 0 0 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.4) 65%, transparent 100%);
    color: var(--white);
    padding: 0.75rem 1rem;
}
.ministry-photo-caption h3 { color: var(--white); font-size: 0.92rem; margin: 0 0 0.15rem; }
.ministry-photo-caption p {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.85);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---- Side CTA Card (Giving / Contact rail) ---- */
.side-cta-card {
    background: var(--light-bg);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}
.side-cta-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.side-cta-card p { font-size: 0.88rem; color: var(--muted); }

/* ---- Building God's Family Wall ---- */
.family-wall-mark {
    width: 44px;
    height: 44px;
    object-fit: contain;
    margin: 0 auto 0.75rem;
}
.family-block {
    background: linear-gradient(135deg, var(--navy) 0%, var(--primary) 100%);
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 100%;
    box-shadow: var(--shadow-sm);
    opacity: 0;
    transform: translateY(24px);
}
.family-wall.is-visible .family-block { animation: buildIn 0.6s ease-out forwards; }
.family-wall.is-visible .row > *:nth-child(1) .family-block { animation-delay: 0s; }
.family-wall.is-visible .row > *:nth-child(2) .family-block { animation-delay: 0.15s; }
.family-wall.is-visible .row > *:nth-child(3) .family-block { animation-delay: 0.3s; }
@keyframes buildIn {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
.family-block-trigger {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    background: none;
    border: none;
    color: var(--white);
    padding: 2rem 1.5rem 1.5rem;
    cursor: pointer;
    text-align: center;
}
.family-block-icon {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.14);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
    transition: background var(--transition);
}
.family-block:hover .family-block-icon,
.family-block:focus-within .family-block-icon,
.family-block.is-expanded .family-block-icon { background: rgba(255,255,255,0.28); }
.family-block-title {
    font-weight: 700;
    font-size: 1.35rem;
}
.family-block-detail {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 1.5rem;
    transition: max-height var(--transition), opacity var(--transition), padding var(--transition);
}
.family-block:hover .family-block-detail,
.family-block:focus-within .family-block-detail,
.family-block.is-expanded .family-block-detail {
    max-height: 220px;
    opacity: 1;
    padding: 0 1.5rem 1.75rem;
}
.family-block-detail p {
    color: rgba(255,255,255,0.85);
    font-size: 0.93rem;
    margin-bottom: 0.9rem;
}
.family-block-cta {
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.family-block-cta:hover, .family-block-cta:focus-visible { color: rgba(255,255,255,0.8); }
@media (prefers-reduced-motion: reduce) {
    .family-block {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    .family-block-icon, .family-block-detail, .family-block-cta {
        transition: none !important;
    }
}

/* ---- Service Times ---- */
.service-times-card {
    background: var(--navy);
    border-radius: var(--radius-lg);
    padding: 2rem;
    color: var(--white);
}
.service-times-card h3 { color: var(--gray-300); margin-bottom: 1.5rem; }
.service-time-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 0.95rem;
}
.service-time-item:last-child { border-bottom: none; }
.service-time-label { color: rgba(255,255,255,0.75); }
.service-time-value { font-weight: 700; color: var(--gray-300); }
.lang-badges { display: flex; gap: 0.5rem; }
.lang-badge { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 0.25rem 0.6rem; border-radius: 999px; }
.lang-en { background: rgba(255,255,255,0.15); color: #fff; }
.lang-es { background: var(--gray-200); color: var(--navy); }
.service-lang-note { font-size: 0.8rem; color: rgba(255,255,255,0.6); line-height: 1.5; }

/* Light card variant: white body with a solid navy header band (floating hero card look) */
.service-times-card.light {
    background: var(--white);
    color: var(--text);
    padding: 0;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.service-times-card.light .stc-header {
    background: var(--navy);
    color: var(--white);
    padding: 1.1rem 1.5rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.92rem;
    text-align: center;
}
.service-times-card.light .stc-body { padding: 1.25rem 1.5rem 1.5rem; }
.service-times-card.light .lang-badges { justify-content: center; margin-bottom: 1rem; }
.service-times-card.light .lang-en { background: var(--light-bg); color: var(--navy); }
.service-times-card.light .lang-es { background: var(--gray-200); color: var(--navy); }
.service-times-card.light .service-time-item { border-bottom-color: var(--border); }
.service-times-card.light .service-time-label { color: var(--muted); }
.service-times-card.light .service-time-value { color: var(--navy); }
.service-times-card.light .service-lang-note { color: var(--muted); }

/* ---- Staff / Elder Cards ---- */
.person-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    height: 100%;
    transition: all var(--transition);
}
.person-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}
.person-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--light-bg);
    border: 3px solid var(--border);
    margin: 0 auto 1rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
}
.person-avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--navy), var(--primary));
    color: var(--white);
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 0.02em;
}
.person-avatar-lg .avatar-placeholder { font-size: 1.9rem; }
.person-name { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.25rem; }
.person-role {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
}
.person-bio { font-size: 0.9rem; color: var(--muted); }
.person-card-horizontal { display: flex; align-items: flex-start; gap: 2rem; text-align: left; }
.person-avatar-lg { width: 120px; height: 120px; font-size: 2.5rem; }
@media (max-width: 575px) {
    .person-card-horizontal { flex-direction: column; align-items: center; }
    .person-card-horizontal .text-start { text-align: center !important; }
}

/* ---- Sermon Cards ---- */
.sermon-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 100%;
    transition: all var(--transition);
}
.sermon-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}
.sermon-card-header {
    background: linear-gradient(135deg, var(--navy), var(--primary));
    padding: 1.25rem 1.5rem;
    color: var(--white);
}
.sermon-series {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-300);
    margin-bottom: 0.4rem;
}
.sermon-title { font-size: 1.05rem; font-weight: 700; color: var(--white); margin: 0; }
.sermon-card-body { padding: 1.25rem 1.5rem; }
.sermon-meta { font-size: 0.82rem; color: var(--muted); margin-bottom: 0.75rem; }
.sermon-scripture {
    display: inline-block;
    background: var(--light-bg);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    margin-bottom: 0.75rem;
}
.sermon-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}
.sermon-video-wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
}

/* ---- What We Believe ---- */
.belief-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    height: 100%;
}
.belief-card h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.belief-card p { color: var(--text); font-size: 0.94rem; margin-bottom: 1rem; }
.belief-verses {
    display: block;
    background: var(--light-bg);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.92rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    line-height: 1.5;
}

/* ---- FullCalendar Theme ---- */
.wfcoc-calendar { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }

.wfcoc-calendar .fc-toolbar-title { font-size: 1.1rem; font-weight: 800; color: var(--navy); }

.wfcoc-calendar .fc-button-primary {
    background: var(--primary); border-color: var(--primary);
    font-size: 0.8rem; font-weight: 600; border-radius: var(--radius) !important;
}
.wfcoc-calendar .fc-button-primary:hover,
.wfcoc-calendar .fc-button-primary:not(:disabled):active,
.wfcoc-calendar .fc-button-primary:not(:disabled).fc-button-active {
    background: var(--navy); border-color: var(--navy);
}
.wfcoc-calendar .fc-col-header-cell { background: var(--navy); }
.wfcoc-calendar .fc-col-header-cell-cushion { color: var(--gray-300); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; text-decoration: none; }

.wfcoc-calendar .fc-daygrid-day-number { color: var(--navy); font-weight: 600; font-size: 0.85rem; }
.wfcoc-calendar .fc-day-today { background: var(--light-bg) !important; }
.wfcoc-calendar .fc-day-today .fc-daygrid-day-number { color: var(--primary); }

.wfcoc-calendar .fc-event {
    border-radius: 4px; font-size: 0.75rem; font-weight: 600;
    cursor: pointer; border: none;
}

/* ---- Sermon Hero ---- */
.sermon-hero { background: var(--navy); border-radius: var(--radius-lg); overflow: hidden; }

.sermon-hero-player { position: relative; width: 100%; padding-top: 56.25%; background: #000; }
.sermon-hero-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.sermon-hero-info { padding: 1.5rem 2rem 2rem; }
.sermon-hero-badge {
    display: inline-block; background: var(--gray-200); color: var(--navy);
    font-size: 0.7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
    padding: 0.2rem 0.7rem; border-radius: 50px; margin-bottom: 0.75rem;
}
.sermon-hero-title { font-size: 1.35rem; font-weight: 800; color: var(--white); margin: 0 0 0.4rem; line-height: 1.3; }
.sermon-hero-speaker { font-size: 0.9rem; color: rgba(255,255,255,0.65); margin: 0; }

/* ---- Bulletin Card ---- */
.bulletin-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.bulletin-card-cover {
    background: linear-gradient(135deg, var(--navy) 0%, var(--primary) 100%);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bulletin-card-logo { height: 64px; width: auto; object-fit: contain; filter: brightness(0) invert(1); opacity: 0.9; }
.bulletin-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.bulletin-card-date { font-weight: 700; color: var(--navy); margin-bottom: 0; }

/* ---- Welcome Card ---- */
.welcome-card {
    background: var(--light-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.welcome-card-body { padding: 1.5rem; }
.welcome-card-body h3 { margin-bottom: 0.5rem; }
.welcome-card-body p { font-size: 0.92rem; color: var(--text); margin-bottom: 1rem; }
.welcome-card-photo { width: 100%; height: 160px; object-fit: cover; margin-top: auto; }

/* ---- Sermon Thumbnail Cards ---- */
.sermon-thumb-card {
    display: block; border-radius: var(--radius); overflow: hidden;
    background: var(--white); border: 1px solid var(--border);
    transition: transform var(--transition), box-shadow var(--transition);
}
.sermon-thumb-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.sermon-thumb-img-wrap { position: relative; width: 100%; padding-top: 56.25%; background: #111; }
.sermon-thumb-img-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sermon-thumb-play {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.3); color: #fff; font-size: 2rem; opacity: 0;
    transition: opacity var(--transition);
}
.sermon-thumb-card:hover .sermon-thumb-play { opacity: 1; }

.sermon-thumb-info { padding: 0.75rem 0.9rem 1rem; }
.sermon-thumb-title {
    font-size: 0.82rem; font-weight: 700; color: var(--navy);
    margin: 0 0 0.25rem; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.sermon-thumb-speaker { font-size: 0.75rem; color: var(--muted); margin: 0; }

/* ---- Event Cards ---- */
.event-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem;
    align-items: flex-start;
    transition: all var(--transition);
    margin-bottom: 1rem;
}
.event-card:hover { box-shadow: var(--shadow-md); transform: translateX(4px); }
.event-date-badge {
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius);
    padding: 0.5rem 0.75rem;
    text-align: center;
    min-width: 58px;
    flex-shrink: 0;
}
.event-date-badge .month {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-300);
    display: block;
}
.event-date-badge .day {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
    display: block;
}
.event-info h5 { font-size: 1rem; font-weight: 700; margin-bottom: 0.25rem; }
.event-info p { font-size: 0.86rem; color: var(--muted); margin: 0; }
.event-location { font-size: 0.8rem; color: var(--muted); margin-top: 0.35rem; }

/* ---- Contact Form ---- */
.contact-form .form-control, .contact-form .form-select {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.contact-form .form-control:focus, .contact-form .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(74,63,143,0.12);
    outline: none;
}
.form-label { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.4rem; }

/* ---- Info Box ---- */
.info-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
/* Labels were bumped from h6 to h3 for correct heading hierarchy; pin the size to
   Bootstrap's own h6 size so nothing visually changes. */
.info-box h3 {
    font-size: 1rem;
}
.info-box-icon {
    width: 40px;
    height: 40px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    flex-shrink: 0;
}

/* ---- Visit Page ---- */
.visit-step {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}
.step-number {
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.05rem;
    flex-shrink: 0;
}
.step-content h4 { font-size: 1rem; font-weight: 700; margin-bottom: 0.35rem; }
.step-content p { font-size: 0.9rem; color: var(--muted); margin: 0; }

/* ---- Map Embed ---- */
.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.map-container iframe { display: block; }

/* ---- Give Page ---- */
.give-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--primary) 100%);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    color: var(--white);
    text-align: center;
    margin-bottom: 2rem;
}
.give-hero h2 { color: var(--gray-300); }
.give-option {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    height: 100%;
    transition: all var(--transition);
}
.give-option:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.give-option-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.give-option h4 { font-weight: 700; margin-bottom: 0.5rem; }
.give-option p { font-size: 0.9rem; color: var(--muted); margin-bottom: 1.25rem; }

/* ---- History Timeline ---- */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}
.timeline-item { position: relative; margin-bottom: 2rem; }
.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.625rem;
    top: 0.35rem;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border: 2px solid var(--white);
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--primary);
}
.timeline-year {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.25rem;
}
.timeline-item h5 { font-weight: 700; margin-bottom: 0.35rem; }
.timeline-item p { font-size: 0.9rem; color: var(--muted); margin: 0; }

/* ---- Page Hero ---- */
.page-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--primary) 100%);
    color: var(--white);
    padding: 3.5rem 0 3rem;
}
.page-hero h1 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 0.5rem; }
.page-hero p { color: rgba(255,255,255,0.78); font-size: 1.05rem; margin: 0; }
.page-hero .breadcrumb { margin-bottom: 1rem; }
.breadcrumb-item a { color: var(--gray-300); }
.breadcrumb-item.active { color: rgba(255,255,255,0.6); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.4); }

/* ---- Footer ---- */
footer {
    background: var(--navy);
    color: rgba(255,255,255,0.8);
    padding: 2.25rem 0 1.25rem;
}
footer h5 {
    color: var(--gray-300);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.85rem;
}
footer a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.86rem; }
footer a:hover { color: var(--gray-300); }
footer .footer-nav li { margin-bottom: 0.4rem; }
.footer-brand { font-size: 1.05rem; font-weight: 800; color: var(--white); margin-bottom: 0.35rem; }
.footer-tagline { font-size: 0.82rem; color: var(--gray-300); }
.footer-divider {
    border-color: rgba(255,255,255,0.1);
    margin: 1.5rem 0 1rem;
}
.footer-bottom { font-size: 0.8rem; color: rgba(255,255,255,0.65); }
.footer-social { display: flex; gap: 0.75rem; margin-top: 0.75rem; }
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.75);
    transition: background var(--transition), color var(--transition);
}
.social-icon:hover, .social-icon:focus-visible { background: var(--gray-200); color: var(--navy); }
.social-icon svg { fill: currentColor; }

/* ---- PWA Install Banner ---- */
#pwa-install-banner {
    display: none;
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--navy);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-lg);
    z-index: 1050;
    width: calc(100% - 2rem);
    max-width: 420px;
    border: 1px solid rgba(255,255,255,0.1);
}
#pwa-install-banner.show { display: flex; align-items: center; gap: 1rem; }
.pwa-install-text { flex: 1; font-size: 0.9rem; }
.pwa-install-text strong { display: block; color: var(--gray-300); }

/* ---- Alerts ---- */
.alert-info {
    background: var(--light-bg);
    border-color: var(--border);
    color: var(--muted);
    border-radius: var(--radius-lg);
}

/* ---- Announcement Cards ---- */
.announcement-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}
.announcement-card h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.announcement-card p { font-size: 0.88rem; color: var(--muted); margin: 0; }
.announcement-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--light-bg);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}
.announcement-card-wide { display: flex; gap: 1.25rem; align-items: flex-start; }
.announcement-card-wide .announcement-icon { margin-bottom: 0; flex-shrink: 0; }
.announcement-rte { font-size: 0.9rem; color: var(--text); }
.announcement-rte p:last-child { margin-bottom: 0; }

/* ---- Minister Post / Reflection body (richtext) ---- */
.reflection-body { font-size: 1rem; line-height: 1.75; color: var(--text); }
.reflection-body p { margin-bottom: 1.25rem; }
.reflection-body p:last-child { margin-bottom: 0; }

/* ---- Accessibility ---- */
:focus-visible {
    outline: 2px solid var(--gray-500);
    outline-offset: 3px;
}
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
    .navbar-collapse { background: var(--light-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.5rem; margin-top: 0.5rem; }
    .navbar-nav .nav-link.nav-cta { margin-left: 0; margin-top: 0.25rem; display: inline-block; }
    .navbar-nav .nav-link { padding: 0.85rem 1rem !important; }
    .navbar .dropdown-item { padding: 0.85rem 1.1rem; }
    .navbar-collapse.collapsing { transition: height 0.3s ease; }
}

@media (max-width: 767.98px) {
    .hero { padding: 3.5rem 0 3rem; }
    .section { padding: 2.75rem 0; }
    .hero-actions .btn { width: 100%; margin: 0.25rem 0; }
    .event-card { flex-direction: column; }
    .event-date-badge { display: flex; align-items: center; gap: 0.5rem; min-width: auto; padding: 0.35rem 0.75rem; }
    .event-date-badge .month { font-size: 0.75rem; }
    .event-date-badge .day { font-size: 1.1rem; }
    .visit-step { flex-direction: column; gap: 0.75rem; }
}

@media (max-width: 575.98px) {
    .service-times-card { padding: 1.5rem; }
    .give-hero { padding: 2rem 1.5rem; }
    .feature-card, .person-card, .give-option { padding: 1.5rem 1rem; }
}
