/* ==========================================================================
   Evangelical Anglican Church of India — Design Tokens
   Palette: warm ivory paper, deep evergreen, antique gold
   Type: Fraunces (display) + Public Sans (body/UI)
   Signature: "bulletin card" — a stamped, perforated card motif borrowed
   from the printed Sunday program handed out at the door.
   ========================================================================== */

:root {
    /* Surfaces */
    --ivory: #fbf8f1;
    --paper: #f4eee1;
    --paper-deep: #ece2ca;
    --white: #ffffff;

    /* Ink */
    --ink: #2a241d;
    --ink-soft: #5c5245;
    --ink-muted: #8c8172;

    /* Brand */
    --evergreen: #1f4a3d;
    --evergreen-deep: #163529;
    --evergreen-tint: #e7efe9;
    --evergreen-tint-2: #d4e3da;

    --gold: #b8863a;
    --gold-deep: #93692a;
    --gold-tint: #f6ecda;

    --rust: #9c4a35;
    --rust-tint: #f7e9e2;

    /* Lines / shadow */
    --line: #e4dac9;
    --line-soft: #ece4d4;
    --shadow-sm: 0 1px 2px rgba(42, 36, 29, 0.06);
    --shadow-md: 0 10px 30px -12px rgba(42, 36, 29, 0.18);
    --shadow-lg: 0 24px 60px -20px rgba(22, 53, 41, 0.28);

    /* Radius — editorial, not pill-happy */
    --radius-sm: 6px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-full: 999px;

    --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.55s cubic-bezier(0.4, 0, 0.2, 1);

    --font-display: 'Fraunces', 'Georgia', serif;
    --font-body: 'Public Sans', 'Inter', sans-serif;

    --container: 1200px;
    --header-height: 88px;
    --topbar-height: 0px;
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--ivory);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
    padding-top: calc(var(--header-height) + var(--topbar-height));
    font-size: 16px;
}

html, body { overflow-x: hidden !important; }

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
button { cursor: pointer; border: none; outline: none; font-family: inherit; transition: var(--transition); background: none; }

input, select, textarea {
    font-family: inherit;
    outline: none;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 13px 16px;
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--evergreen-tint);
    color: var(--evergreen-deep);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}
input:focus, select:focus, textarea:focus {
    border-color: var(--evergreen);
    margin: 0;
    box-shadow: 0 0 0 3px rgba(31, 74, 61, 0.12);
}
textarea { resize: vertical; min-height: 130px; }

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

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { font-family: var(--font-display); }

@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; }
}

/* ==========================================================================
   Preloader
   ========================================================================== */
#preloader {
    position: fixed; inset: 0; background: var(--ivory);
    display: flex; align-items: center; justify-content: center;
    z-index: 99999; transition: opacity 0.6s ease, visibility 0.6s ease;
}
#preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-content { text-align: center; }
.preloader-image {
    width: 116px; aspect-ratio: 403 / 590; height: auto; margin: 0 auto 18px;
    overflow: visible; animation: pulseImage 1.6s ease-in-out infinite;
}
.preloader-image img { width: 100%; height: 100%; object-fit: contain; display: block; }
.preloader-logo {
    font-family: var(--font-display); font-size: clamp(0.85rem, 5vw, 1.5rem); font-weight: 600;
    color: var(--evergreen-deep); margin-bottom: 10px; letter-spacing: 0.2px; white-space: nowrap;
}
.preloader-bar {
    width: 200px; height: 3px; background: var(--line); border-radius: 10px;
    margin: 8px auto 0; overflow: hidden; position: relative;
}
.preloader-bar::after {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, var(--evergreen), var(--gold), var(--evergreen));
    animation: loadingBar 1.2s ease-in-out infinite; border-radius: 10px;
}
.preloader-text {
    margin-top: 14px; font-size: 0.7rem; color: var(--ink-muted);
    letter-spacing: 3px; text-transform: uppercase; font-weight: 600;
}
@keyframes pulseImage { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes loadingBar { 0% { left: -100%; } 50% { left: 0%; } 100% { left: 100%; } }

/* ==========================================================================
   Top bar
   ========================================================================== */
.topbar {
    background: var(--evergreen-deep); color: rgba(255,255,255,0.82);
    height: var(--topbar-height); display: flex; align-items: center;
    font-size: 0.78rem; position: fixed; top: 0; left: 0; right: 0; z-index: 1001;
    padding: 0 24px;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.topbar-left { display: flex; gap: 22px; }
.topbar-left a { color: rgba(255,255,255,0.82); display: flex; align-items: center; gap: 7px; }
.topbar-left a:hover { color: var(--gold-tint); }
.topbar-right { display: flex; gap: 16px; align-items: center; font-weight: 500; letter-spacing: 0.2px; }
.topbar-right .social-icons { display: flex; gap: 12px; }
.topbar-right .social-icons a { color: rgba(255,255,255,0.65); font-size: 0.88rem; }
.topbar-right .social-icons a:hover { color: var(--gold); }
.topbar-divider { width: 1px; height: 15px; background: rgba(255,255,255,0.18); }

/* ==========================================================================
   Header
   ========================================================================== */
.header {
    position: fixed; top: var(--topbar-height); left: 0; right: 0; z-index: 1000;
    background: rgba(251, 248, 241, 0.92);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line); transition: var(--transition);
    height: var(--header-height);
}
.header.scrolled { box-shadow: var(--shadow-sm); height: 64px; background: rgba(251, 248, 241, 0.98); }
.header .container { max-width: 1600px; display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 100%; }

.logo { display: flex; align-items: center; gap: 16px; flex: 0 0 auto; min-width: 0; margin-right: 28px; transform: translateX(-8px); }
.site-logo-image { width: auto; height: 74px; max-width: none; object-fit: contain; flex-shrink: 0; }
.logo-icon {
    width: 44px; height: 44px; border-radius: 10px;
    background: linear-gradient(155deg, var(--evergreen), var(--evergreen-deep));
    display: flex; align-items: center; justify-content: center; color: var(--gold-tint);
    font-size: 1.2rem; flex-shrink: 0; box-shadow: var(--shadow-sm); overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
}
.logo-icon img { width: 100%; height: 100%; object-fit: cover; }
.logo-word { font-family: var(--font-display); font-weight: 600; font-size: clamp(0.68rem, 1.05vw, 1.05rem); color: var(--evergreen-deep); letter-spacing: 0.1px; white-space: nowrap; flex: 0 1 auto; }
.logo-word span { color: var(--gold-deep); font-style: italic; }

.nav-menu { display: flex; align-items: center; justify-content: flex-start; gap: 2px; min-width: 0; flex: 1 1 auto; }
.nav-link {
    padding: 9px 14px; border-radius: var(--radius-sm); font-weight: 500; font-size: 0.86rem;
    color: var(--ink-soft); position: relative; white-space: nowrap; cursor: pointer;
    background: none; border: none; font-family: var(--font-body);
}
.nav-link:hover, .nav-link.active { color: var(--evergreen-deep); background: var(--evergreen-tint); }
.nav-link.active::after {
    content: ''; position: absolute; bottom: 3px; left: 50%; transform: translateX(-50%);
    width: 16px; height: 2px; background: var(--gold); border-radius: 2px;
}
.nav-actions { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.btn-apply-nav {
    padding: 10px 22px; background: linear-gradient(155deg, var(--gold), var(--gold-deep));
    color: var(--white); border-radius: var(--radius-sm); font-weight: 600; font-size: 0.8rem;
    display: flex; align-items: center; gap: 7px; box-shadow: 0 6px 18px -6px rgba(147,105,42,0.55);
    white-space: nowrap; cursor: pointer; letter-spacing: 0.2px;
}
.btn-apply-nav:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -6px rgba(147,105,42,0.6); }

.hamburger { display: none; flex-direction: column; gap: 5px; padding: 5px; z-index: 1001; }
.hamburger span { width: 22px; height: 2px; background: var(--evergreen-deep); border-radius: 10px; display: block; transition: var(--transition); }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ==========================================================================
   Motion / reveal
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-36px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(36px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.reveal-scale { opacity: 0; transform: scale(0.94); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal-scale.visible { opacity: 1; transform: scale(1); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    min-height: calc(100vh - var(--header-height) - var(--topbar-height));
    display: flex; align-items: center; position: relative; overflow: hidden;
    background:
        radial-gradient(600px 400px at 88% -10%, rgba(31,74,61,0.07), transparent 70%),
        radial-gradient(500px 400px at -5% 110%, rgba(184,134,58,0.08), transparent 70%),
        var(--ivory);
}
.hero .container { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; position: relative; z-index: 1; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px; background: var(--white);
    color: var(--evergreen-deep); padding: 8px 18px; border-radius: var(--radius-full);
    font-size: 0.78rem; font-weight: 600; letter-spacing: 0.4px; margin-bottom: 22px;
    border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.hero-badge i { color: var(--gold-deep); }

.hero-title {
    font-family: var(--font-display); font-size: 3.4rem; font-weight: 600; line-height: 1.12;
    color: var(--ink); letter-spacing: -0.5px; margin-bottom: 22px;
}
.hero-title em { font-style: italic; color: var(--evergreen); font-weight: 500; }
.hero-title .accent-text { font-style: italic; color: var(--gold-deep); font-weight: 500; }

.hero-subtitle { font-size: 1.08rem; color: var(--ink-soft); margin-bottom: 30px; max-width: 480px; line-height: 1.85; }

.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }

.btn-primary {
    padding: 14px 28px; background: var(--evergreen-deep); color: var(--white);
    border-radius: var(--radius-sm); font-weight: 600; font-size: 0.88rem;
    display: inline-flex; align-items: center; gap: 9px;
    box-shadow: 0 10px 26px -10px rgba(22,53,41,0.55); cursor: pointer; letter-spacing: 0.2px;
}
.btn-primary:hover { transform: translateY(-3px); background: var(--evergreen); box-shadow: 0 14px 30px -8px rgba(22,53,41,0.6); }

.btn-secondary {
    padding: 14px 28px; background: var(--white); color: var(--ink);
    border-radius: var(--radius-sm); font-weight: 600; font-size: 0.88rem;
    display: inline-flex; align-items: center; gap: 9px; border: 1.5px solid var(--line); cursor: pointer;
}
.btn-secondary:hover { border-color: var(--evergreen); color: var(--evergreen-deep); transform: translateY(-3px); box-shadow: var(--shadow-sm); }

.btn-download-app {
    padding: 14px 28px; background: linear-gradient(155deg, var(--gold), var(--gold-deep));
    color: var(--white); border-radius: var(--radius-sm); font-weight: 700; font-size: 0.88rem;
    display: inline-flex; align-items: center; gap: 9px;
    box-shadow: 0 10px 26px -8px rgba(147,105,42,0.55); cursor: pointer; letter-spacing: 0.2px;
}
.btn-download-app:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -6px rgba(147,105,42,0.6); }

.btn-white {
    padding: 14px 32px; background: var(--white); color: var(--evergreen-deep);
    border-radius: var(--radius-sm); font-weight: 700; font-size: 0.88rem;
    display: inline-flex; align-items: center; gap: 9px; position: relative; z-index: 1; cursor: pointer;
}
.btn-white:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0,0,0,0.22); }

/* Project introduction */
.project-intro-section {
    position: relative; isolation: isolate; overflow: hidden;
    background: #151515; color: var(--white); padding: 104px 0 88px;
}
.project-intro-media,
.project-intro-media::after { position: absolute; inset: 0; }
.project-intro-media { z-index: -2; background: #151515; }
.project-intro-media::after {
    content: ''; z-index: 1;
    background: linear-gradient(90deg, rgba(0,0,0,0.84) 0%, rgba(0,0,0,0.62) 45%, rgba(0,0,0,0.34) 100%);
}
.project-intro-video { width: 100%; height: 100%; object-fit: cover; opacity: 0.64; }
.project-intro-content { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr); gap: 64px; align-items: center; }
.project-intro-copy { max-width: 650px; }
.project-intro-copy .section-tag { color: var(--gold-tint); background: rgba(255,255,255,0.12); }
.project-intro-copy h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: 1.08; font-weight: 600; margin: 18px 0 22px; }
.project-intro-copy p { max-width: 590px; color: rgba(255,255,255,0.78); line-height: 1.8; }
.project-intro-copy .project-intro-lead { color: var(--white); font-size: 1.12rem; line-height: 1.75; margin-bottom: 12px; }
.project-intro-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 30px; }
.project-text-link { color: var(--gold-tint); font-size: 0.88rem; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.project-text-link:hover { color: var(--white); gap: 12px; }
.project-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.project-stat { min-height: 132px; padding: 22px 20px; border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.1); backdrop-filter: blur(8px); display: flex; flex-direction: column; justify-content: space-between; }
.project-stat:last-child { grid-column: 1 / -1; }
.project-stat strong { color: var(--gold-tint); font-family: var(--font-display); font-size: 2.25rem; line-height: 1; }
.project-stat span { color: rgba(255,255,255,0.78); font-size: 0.78rem; line-height: 1.45; }

/* Bulletin card — signature element: mimics a printed order-of-service
   with a perforated top edge and a small stamped seal. */
.bulletin-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    position: relative;
    padding: 22px 22px 20px;
}
.bulletin-card::before {
    content: '';
    position: absolute; top: -1px; left: 14px; right: 14px; height: 10px;
    background-image: radial-gradient(circle at 6px 0, transparent 5px, var(--ivory) 5.5px);
    background-size: 12px 10px;
    background-repeat: repeat-x;
}
.bulletin-seal {
    position: absolute; top: -14px; right: 20px; width: 40px; height: 40px; border-radius: 50%;
    background: linear-gradient(155deg, var(--gold), var(--gold-deep)); color: var(--white);
    display: flex; align-items: center; justify-content: center; font-size: 1rem;
    box-shadow: 0 6px 16px -4px rgba(147,105,42,0.6); border: 2px solid var(--ivory);
}

.hero-stats { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stat-pill {
    display: flex; align-items: center; gap: 10px; background: var(--white);
    border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 16px;
}
.hero-stat-number { font-size: 1.35rem; font-weight: 700; font-family: var(--font-display); color: var(--evergreen-deep); line-height: 1; }
.hero-stat-label { font-size: 0.72rem; color: var(--ink-muted); font-weight: 600; letter-spacing: 0.3px; text-transform: uppercase; }

.hero-image { position: relative; display: flex; align-items: center; justify-content: center; }
.hero-image-main {
    width: 100%; max-width: 440px; aspect-ratio: 4/5;
    border-radius: var(--radius-lg); position: relative; box-shadow: var(--shadow-lg);
    overflow: hidden; border: 6px solid var(--white);
}
.hero-image-main img { width: 100%; height: 100%; object-fit: cover; }
.hero-image-main::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(200deg, transparent 55%, rgba(22,53,41,0.35));
}

.hero-floating-card {
    position: absolute; background: var(--white); border-radius: var(--radius-md);
    padding: 14px 18px; box-shadow: var(--shadow-md); display: flex; align-items: center;
    gap: 11px; animation: floatY 4s ease-in-out infinite; border: 1px solid var(--line);
}
.hero-floating-card.card-1 { top: 6%; left: -14px; animation-delay: 0.4s; }
.hero-floating-card.card-2 { bottom: 10%; right: -14px; animation-delay: 0.9s; }
.hero-floating-card.card-3 { bottom: 26%; left: -34px; animation-delay: 1.4s; }
.floating-icon { width: 36px; height: 36px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 0.95rem; flex-shrink: 0; }
.floating-icon.green { background: var(--evergreen-tint); color: var(--evergreen-deep); }
.floating-icon.amber { background: var(--gold-tint); color: var(--gold-deep); }
.floating-icon.blue { background: #eaf1fb; color: #2b5a99; }
.floating-text h4 { font-size: 0.8rem; font-weight: 700; color: var(--ink); font-family: var(--font-body); }
.floating-text p { font-size: 0.72rem; color: var(--ink-muted); }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ==========================================================================
   Section shell
   ========================================================================== */
.section { padding: 96px 0; }
.section.tint { background: var(--paper); }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-tag {
    display: inline-flex; align-items: center; gap: 8px; font-size: 0.72rem; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase; color: var(--evergreen-deep);
    background: var(--evergreen-tint); padding: 7px 16px; border-radius: var(--radius-full);
    margin-bottom: 16px;
}
.section-tag::before,
.section-tag::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.section-title { font-size: 2.3rem; font-weight: 600; color: var(--ink); letter-spacing: -0.4px; margin-bottom: 14px; line-height: 1.22; }
.section-title em { font-style: italic; color: var(--evergreen); }
.section-subtitle { font-size: 1rem; color: var(--ink-soft); line-height: 1.85; }

/* ==========================================================================
   Feature / Program / Resource / Counsellor / Pastor cards
   ========================================================================== */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature-card {
    background: var(--white); border-radius: var(--radius-md); padding: 32px 22px; text-align: center;
    border: 1px solid var(--line); transition: var(--transition); position: relative; overflow: hidden;
}
.feature-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--evergreen), var(--gold));
    transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; font-size: 1.3rem; transition: var(--transition); }
.feature-icon.teal { background: var(--evergreen-tint); color: var(--evergreen-deep); }
.feature-icon.amber { background: var(--gold-tint); color: var(--gold-deep); }
.feature-icon.blue { background: #eaf1fb; color: #2b5a99; }
.feature-icon.rose { background: var(--rust-tint); color: var(--rust); }
.feature-card:hover .feature-icon { transform: scale(1.08) rotate(-4deg); }
.feature-card h3 { font-size: 1.08rem; font-weight: 700; color: var(--ink); margin-bottom: 9px; font-family: var(--font-display); }
.feature-card p { font-size: 0.87rem; color: var(--ink-muted); line-height: 1.65; }

.programs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.program-card { background: var(--white); border-radius: var(--radius-md); padding: 32px 26px; border: 1px solid var(--line); transition: var(--transition); position: relative; overflow: hidden; }
.program-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.program-card .program-icon { width: 50px; height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-bottom: 18px; }
.program-card h3 { font-size: 1.12rem; font-weight: 700; color: var(--ink); margin-bottom: 10px; font-family: var(--font-display); }
.program-card p { font-size: 0.87rem; color: var(--ink-muted); line-height: 1.75; margin-bottom: 16px; }
.program-link { font-weight: 600; font-size: 0.85rem; color: var(--evergreen-deep); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.program-link:hover { gap: 10px; color: var(--gold-deep); }

/* Events */
.events-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.event-card { background: var(--white); border-radius: var(--radius-md); overflow: visible; border: 1px solid var(--line); transition: var(--transition); position: relative; margin-top: 14px; }
.event-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.event-date-box {
    background: linear-gradient(155deg, var(--evergreen), var(--evergreen-deep)); color: var(--white);
    padding: 16px 20px; display: flex; align-items: center; gap: 14px; border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.event-date-day { font-size: 1.9rem; font-weight: 700; font-family: var(--font-display); line-height: 1; }
.event-date-month { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; opacity: 0.85; }
.event-card-body { padding: 22px; }
.event-card-body h4 { font-size: 1.02rem; font-weight: 700; color: var(--ink); margin-bottom: 8px; font-family: var(--font-display); }
.event-card-body p { font-size: 0.85rem; color: var(--ink-muted); line-height: 1.65; }

.event-image-wrapper { position: relative; overflow: hidden; border-radius: var(--radius-md) var(--radius-md) 0 0; }
.event-image-wrapper img { width: 100%; height: 220px; object-fit: cover; transition: transform 0.5s ease; }
.event-card:hover .event-image-wrapper img { transform: scale(1.06); }
.event-date-badge {
    position: absolute; bottom: 14px; left: 14px; background: var(--white); padding: 8px 15px;
    border-radius: var(--radius-sm); text-align: center; box-shadow: var(--shadow-md); z-index: 2;
    border: 1px solid var(--line);
}
.event-date-badge .day { font-size: 1.6rem; font-weight: 700; color: var(--evergreen-deep); line-height: 1; display: block; font-family: var(--font-display); }
.event-date-badge .month { font-size: 0.7rem; font-weight: 600; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 1px; }
.event-info { padding: 22px; background: var(--white); }
.event-date-time { display: flex; align-items: center; gap: 7px; font-size: 0.82rem; color: var(--ink-muted); margin-bottom: 10px; }
.event-date-time i { color: var(--gold-deep); }
.event-info h4 { font-size: 1.08rem; font-weight: 700; color: var(--ink); margin-bottom: 8px; font-family: var(--font-display); }
.event-info p { font-size: 0.87rem; color: var(--ink-muted); line-height: 1.65; margin-bottom: 14px; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-item { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 1; position: relative; cursor: pointer; border: 1px solid var(--line); }
.gallery-item img { transition: var(--transition-slow); }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(22,53,41,0.75) 0%, transparent 45%); opacity: 0; transition: var(--transition); }
.gallery-item:hover::after { opacity: 1; }
.gallery-overlay { position: absolute; bottom: 14px; left: 14px; right: 14px; color: var(--white); z-index: 2; opacity: 0; transform: translateY(10px); transition: var(--transition); }
.gallery-item:hover .gallery-overlay { opacity: 1; transform: translateY(0); }
.gallery-overlay h5 { font-size: 0.88rem; font-weight: 700; margin-bottom: 2px; font-family: var(--font-display); }
.gallery-overlay p { font-size: 0.72rem; opacity: 0.88; }

/* Testimonials */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testimonial-card { background: var(--white); border-radius: var(--radius-md); padding: 32px 26px; border: 1px solid var(--line); transition: var(--transition); text-align: center; }
.testimonial-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.testimonial-avatar { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--white); font-weight: 700; overflow: hidden; font-family: var(--font-display); }
.testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-card .stars { color: var(--gold); margin-bottom: 12px; font-size: 0.78rem; letter-spacing: 2px; }
.testimonial-card blockquote { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.75; font-style: italic; margin-bottom: 16px; font-family: var(--font-display); }
.testimonial-card .author { font-weight: 700; font-size: 0.85rem; color: var(--ink); }
.testimonial-card .role { font-size: 0.75rem; color: var(--ink-muted); }

/* CTA banner */
.cta-banner {
    background: linear-gradient(155deg, var(--evergreen-deep), var(--evergreen));
    border-radius: var(--radius-lg); padding: 60px 40px; text-align: center; position: relative; overflow: hidden;
}
.cta-banner::before { content: ''; position: absolute; top: -60%; right: -10%; width: 340px; height: 340px; background: rgba(184,134,58,0.14); border-radius: 50%; }
.cta-banner::after { content: ''; position: absolute; bottom: -40%; left: -8%; width: 260px; height: 260px; background: rgba(255,255,255,0.05); border-radius: 50%; }
.cta-banner h2 { font-size: 2.05rem; font-weight: 600; color: var(--white); margin-bottom: 14px; letter-spacing: -0.4px; position: relative; z-index: 1; }
.cta-banner p { font-size: 1rem; color: rgba(255,255,255,0.82); max-width: 500px; margin: 0 auto 30px; position: relative; z-index: 1; }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { background: var(--white); border-radius: var(--radius-md); margin-bottom: 12px; border: 1px solid var(--line); overflow: hidden; transition: var(--transition); }
.faq-item.active { box-shadow: var(--shadow-md); border-color: var(--evergreen); }
.faq-question { padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; font-weight: 600; font-size: 0.96rem; color: var(--ink); width: 100%; text-align: left; gap: 14px; font-family: var(--font-body); }
.faq-question i { transition: var(--transition); color: var(--evergreen); flex-shrink: 0; font-size: 0.85rem; }
.faq-item.active .faq-question i { transform: rotate(180deg); color: var(--gold-deep); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; padding: 0 22px; color: var(--ink-soft); font-size: 0.9rem; line-height: 1.75; }
.faq-item.active .faq-answer { max-height: 400px; padding: 0 22px 18px; }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group-full { grid-column: 1 / -1; }
.form-label { font-weight: 600; font-size: 0.84rem; color: var(--ink); margin-bottom: 5px; display: block; }
.form-group { margin-bottom: 15px; }
.form-card { background: var(--white); padding: 36px; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); border: 1px solid var(--line); }

/* Resource / counsellor / pastor cards */
.resources-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.resource-card { background: var(--white); border-radius: var(--radius-md); padding: 28px; border: 1px solid var(--line); transition: var(--transition); text-align: center; }
.resource-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.resource-icon { width: 52px; height: 52px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin: 0 auto 16px; }
.resource-card h4 { font-size: 1.02rem; font-weight: 700; color: var(--ink); margin-bottom: 8px; font-family: var(--font-display); }
.resource-card p { font-size: 0.85rem; color: var(--ink-muted); line-height: 1.65; }

.counselling-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.counsellor-card, .pastor-card { background: var(--white); border-radius: var(--radius-md); padding: 34px 26px; border: 1px solid var(--line); transition: var(--transition); text-align: center; position: relative; overflow: hidden; }
.counsellor-card:hover, .pastor-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.counsellor-card::before, .pastor-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--evergreen), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease; }
.counsellor-card:hover::before, .pastor-card:hover::before { transform: scaleX(1); }
.counsellor-avatar, .pastor-avatar { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 18px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--evergreen-tint); font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--evergreen-deep); border: 3px solid var(--gold-tint); }
.counsellor-avatar img, .pastor-avatar img { width: 100%; height: 100%; object-fit: cover; }
.counsellor-card h4, .pastor-card h4 { font-size: 1.15rem; font-weight: 700; color: var(--ink); margin-bottom: 5px; font-family: var(--font-display); }
.specialty, .pastor-role { font-size: 0.82rem; color: var(--gold-deep); font-weight: 600; margin-bottom: 12px; letter-spacing: 0.3px; }
.counsellor-card p, .pastor-bio { font-size: 0.86rem; color: var(--ink-muted); line-height: 1.7; }

/* Students table (kept, restyled) */
.students-table-wrapper { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--white); }
.students-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.students-table th { background: var(--evergreen-tint); color: var(--evergreen-deep); font-weight: 700; padding: 15px 18px; text-align: left; border-bottom: 2px solid var(--line); white-space: nowrap; }
.students-table td { padding: 13px 18px; border-bottom: 1px solid var(--line-soft); color: var(--ink-soft); }
.students-table tr:hover td { background: var(--paper); }

/* Footer */
.footer { background: var(--evergreen-deep); color: rgba(255,255,255,0.68); padding: 70px 0 0; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 44px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand p { font-size: 0.86rem; line-height: 1.75; margin-top: 16px; max-width: 280px; }
.footer-logo { font-family: var(--font-display); font-size: clamp(0.85rem, 1.7vw, 1.25rem); font-weight: 600; color: var(--white); display: flex; align-items: center; gap: 16px; line-height: 1.12; white-space: nowrap; min-width: 0; }
.footer-logo-image { width: auto; height: 92px; max-width: none; padding: 0; border-radius: 0; object-fit: contain; background: transparent; mix-blend-mode: screen; flex: 0 0 auto; }
.footer-logo span { min-width: 0; white-space: nowrap; }
.footer h4 { color: var(--white); font-size: 0.92rem; font-weight: 700; margin-bottom: 18px; font-family: var(--font-display); }
.footer-links li { margin-bottom: 9px; }
.footer-links a, .footer-links button { font-size: 0.86rem; color: rgba(255,255,255,0.66); cursor: pointer; font-family: var(--font-body); }
.footer-links a:hover, .footer-links button:hover { color: var(--gold-tint); padding-left: 4px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 13px; font-size: 0.86rem; }
.footer-contact i { color: var(--gold); margin-top: 3px; flex-shrink: 0; }
.footer-bottom { padding: 22px 0; text-align: center; font-size: 0.8rem; color: rgba(255,255,255,0.4); }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { width: 36px; height: 36px; border-radius: 9px; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; font-size: 0.9rem; color: rgba(255,255,255,0.8); }
.footer-social a:hover { background: var(--gold); color: var(--evergreen-deep); transform: translateY(-3px); }

/* Page hero */
.page-hero { padding: 56px 0 40px; text-align: center; position: relative; overflow: hidden;
    background: radial-gradient(600px 300px at 50% -20%, rgba(184,134,58,0.1), transparent 70%), var(--paper); }
.page-hero h1 { font-size: 2.6rem; font-weight: 600; color: var(--ink); letter-spacing: -0.6px; margin-bottom: 10px; }
.page-hero .breadcrumb { font-size: 0.85rem; color: var(--ink-muted); display: flex; align-items: center; justify-content: center; gap: 7px; }
.page-hero .breadcrumb a { color: var(--evergreen-deep); font-weight: 600; }
.page-hero .breadcrumb a:hover { color: var(--gold-deep); text-decoration: underline; }

/* Back to top */
.back-to-top {
    position: fixed; bottom: 26px; right: 26px; width: 46px; height: 46px;
    background: var(--evergreen-deep); color: var(--white); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
    box-shadow: var(--shadow-lg); z-index: 999; cursor: pointer; opacity: 0; visibility: hidden; transition: var(--transition);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--gold-deep); transform: translateY(-4px); }

/* Toast */
.toast-notification {
    position: fixed; bottom: 30px; right: 30px; background: var(--evergreen-deep); color: var(--white);
    padding: 15px 22px; border-radius: 12px; display: flex; align-items: center; gap: 11px;
    font-size: 0.85rem; font-weight: 500; box-shadow: var(--shadow-lg); z-index: 10000;
    animation: slideInRight 0.4s ease, fadeOut 0.4s ease 2.5s forwards;
}
@keyframes slideInRight { from { transform: translateX(100px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; transform: translateY(10px); } }

/* About page bits */
.about-image-main { width: 100%; aspect-ratio: 4/3; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 6px solid var(--white); }
.about-image-main img { width: 100%; height: 100%; object-fit: cover; }
.about-intro-grid, .about-direction-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.about-intro-grid { gap: 56px; }
.about-direction-grid { gap: 48px; margin-top: 24px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .programs-grid { grid-template-columns: repeat(2, 1fr); }
    .events-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .resources-grid { grid-template-columns: repeat(2, 1fr); }
    .counselling-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-title { font-size: 2.8rem; }
}
@media (max-width: 768px) {
    :root { --header-height: 76px; --topbar-height: 0px; }
    body { padding-top: var(--header-height); }
    .topbar { display: none; }
    .header { top: 0; }
    .nav-menu {
        position: fixed; top: 0; right: -100%; width: 290px; height: 100vh; background: var(--ivory);
        flex-direction: column; padding: 76px 22px 30px; box-shadow: var(--shadow-xl);
        transition: right 0.4s ease; z-index: 999; align-items: flex-start; gap: 2px; overflow-y: auto;
        border-left: 1px solid var(--line);
    }
    .nav-menu.open { right: 0; }
    .nav-link { width: 100%; padding: 12px 14px; font-size: 0.96rem; border-radius: var(--radius-sm); }
    .nav-actions { gap: 8px; }
    .btn-apply-nav { padding: 8px 15px; font-size: 0.72rem; }
    .hamburger { display: flex; }
    .hero .container { grid-template-columns: 1fr; gap: 34px; text-align: center; }
    .hero-title { font-size: 2.3rem; }
    .hero-subtitle { margin: 0 auto 26px; }
    .hero-buttons { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-image { order: -1; }
    .hero-image-main { max-width: 300px; }
    .hero-floating-card { display: none; }
    .section-title { font-size: 1.85rem; }
    .section { padding: 60px 0; }
    .programs-grid, .events-grid, .testimonials-grid, .features-grid,
    .resources-grid, .counselling-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .form-grid { grid-template-columns: 1fr; }
    .page-hero h1 { font-size: 1.9rem; }
    .cta-banner { padding: 38px 22px; }
    .cta-banner h2 { font-size: 1.5rem; }
    .hero-stat-number { font-size: 1.15rem; }
    .btn-primary, .btn-secondary, .btn-download-app, .btn-white { padding: 12px 22px; font-size: 0.82rem; }
}
@media (max-width: 480px) {
    .hero-title { font-size: 1.9rem; }
    .gallery-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 1.55rem; }
    .site-logo-image { height: 58px; }
    .container { padding: 0 16px; }
    .hero .container { gap: 22px; }
    .form-card { padding: 24px; }
}

/* ==========================================================================
   Cross-page responsive corrections
   ========================================================================== */
.banner-slider-section,
.banner-slider-container,
.banner-slide { min-width: 0; }

.banner-slider-container { width: 100%; height: auto !important; }
.banner-slide { flex: 0 0 100%; width: 100%; max-width: 100%; }
.banner-slide img { width: 100% !important; max-width: 100%; height: auto !important; aspect-ratio: 16 / 7; object-fit: cover; }

@media (max-width: 1024px) {
    .container { padding-left: 20px; padding-right: 20px; }
    .header .container { gap: 16px; }
    .logo-word { font-size: clamp(0.68rem, 1.5vw, 1rem); line-height: 1.2; }
    .nav-menu { gap: 0; }
    .nav-link { padding-left: 9px; padding-right: 9px; font-size: 0.8rem; }
    .btn-apply-nav { padding-left: 14px; padding-right: 14px; }
    .hero .container { gap: 36px; }
    .section { padding: 78px 0; }
}

@media (min-width: 769px) {
    .banner-slide img { height: min(420px, 45vw) !important; aspect-ratio: auto; }
}

@media (max-width: 768px) {
    .container { padding-left: 18px; padding-right: 18px; }
    .header .container { gap: 10px; }
    .logo { gap: 10px; transform: translateX(-4px); }
    .footer-logo { gap: 10px; font-size: clamp(0.72rem, 3.8vw, 1rem); }
    .footer-logo-image { height: 72px; padding: 4px; }
    .nav-actions { margin-left: auto; flex-shrink: 0; }
    .btn-apply-nav { padding: 8px 12px; }

    .banner-slider-container { height: auto !important; }
    .banner-slide img { height: auto !important; aspect-ratio: 16 / 9; object-fit: cover; }
    .banner-arrow { width: 36px; height: 36px; margin: 0 8px; font-size: 1.1rem; }
    .banner-dots { padding: 12px 0 10px; }
    .banner-caption { left: 10px; right: auto; top: 10px; max-width: calc(100% - 20px); padding: 7px 10px; font-size: 0.72rem; }

    .bishop-section .row { grid-template-columns: 1fr !important; gap: 28px !important; }
    .bishop-section .bishop-image-col img { height: min(58vw, 300px) !important; }
    .council-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 24px !important; }
    .council-member h4 { font-size: 0.95rem; line-height: 1.35; }
    .council-member p { line-height: 1.45; }

    .hero { min-height: auto; }
    .hero .container { padding-top: 44px; padding-bottom: 44px; }
    .hero-image-main { width: min(100%, 300px); }
    .hero-buttons > * { justify-content: center; }
    .section-header { margin-bottom: 36px; }
    .section-tag { max-width: 100%; text-align: center; }
    .cta-banner { border-radius: var(--radius-md); }
    .form-card { width: 100%; }
    .nav-menu { right: -100vw; max-width: 100vw; }
    .nav-menu.open { right: 0; }
    .about-intro-grid, .about-direction-grid { grid-template-columns: 1fr; gap: 34px; }
    .about-direction-grid { margin-top: 0; }
    .about-image-main img { height: auto !important; aspect-ratio: 4 / 3; }
    .project-intro-section { padding: 72px 0 60px; }
    .project-intro-media::after { background: rgba(0,0,0,0.62); }
    .project-intro-content { grid-template-columns: 1fr; gap: 38px; }
    .project-intro-copy h1 { font-size: 2.65rem; }
    .project-intro-copy .project-intro-lead { font-size: 1rem; }
    .project-stats { gap: 10px; }
    .project-stat { min-height: 116px; padding: 18px 16px; }
}

@media (max-width: 480px) {
    .container { padding-left: 16px; padding-right: 16px; }
    .header .container { padding-left: 12px; padding-right: 12px; }
    .site-logo-image { height: 56px; }
    .logo { gap: 7px; }
    .logo-word { font-size: 0.56rem; letter-spacing: 0; }
    .btn-apply-nav { width: auto; min-width: 68px; height: 36px; padding: 8px 9px; justify-content: center; font-size: 0.68rem; gap: 5px; }
    .btn-apply-nav i { font-size: 0.72rem; }
    .hamburger { padding: 4px; }
    .section { padding: 48px 0; }
    .section-header { margin-bottom: 28px; }
    .section-subtitle { font-size: 0.9rem; }
    .hero .container { padding-top: 28px; padding-bottom: 28px; }
    .hero-buttons { gap: 9px; }
    .hero-buttons > * { width: 100%; }
    .btn-primary, .btn-secondary, .btn-download-app, .btn-white { width: 100%; justify-content: center; }
    .council-grid { grid-template-columns: 1fr !important; }
    .council-member img { width: min(150px, 44vw) !important; height: min(150px, 44vw) !important; }
    .toast-notification { left: 16px; right: 16px; bottom: 16px; }
    .project-intro-section { padding: 56px 0 48px; }
    .project-intro-copy h1 { font-size: 2.15rem; }
    .project-intro-actions { align-items: stretch; flex-direction: column; gap: 16px; }
    .project-intro-actions .btn-white { width: 100%; justify-content: center; }
    .project-stats { grid-template-columns: 1fr 1fr; }
    .project-stat { min-height: 104px; }
    .project-stat strong { font-size: 1.75rem; }
    .project-stat span { font-size: 0.72rem; }
}

/* Keep the long church name clear of navigation in tablet and split-screen widths. */
@media (max-width: 1260px) {
    :root { --header-height: 76px; --topbar-height: 0px; }
    body { padding-top: var(--header-height); }
    .topbar { display: none; }
    .header { top: 0; }
    .header .container { gap: 10px; }
    .logo { margin-right: 0; }
    .nav-menu {
        position: fixed; top: 0; right: -100%; width: 290px; height: 100vh;
        background: var(--ivory); flex-direction: column; padding: 76px 22px 30px;
        box-shadow: var(--shadow-xl); transition: right 0.4s ease; z-index: 999;
        align-items: flex-start; gap: 2px; overflow-y: auto; border-left: 1px solid var(--line);
    }
    .nav-menu.open { right: 0; }
    .nav-link { width: 100%; padding: 12px 14px; font-size: 0.96rem; border-radius: var(--radius-sm); }
    .nav-actions { margin-left: auto; gap: 8px; }
    .btn-apply-nav { padding: 8px 12px; font-size: 0.72rem; }
    .hamburger { display: flex; }
}

