/* =========================================================
   Tribal Diocese of Kandhamal — Stylesheet
   Palette derived from the logo (sky blue + gold)
   Typography: Segoe UI
   ========================================================= */

:root {
    /* Brand */
    --blue-900: #082A4D;
    --blue-800: #0E4D92;
    --blue-700: #1565B0;
    --blue-600: #1A73C8;
    --blue:      #2E8FDD;
    --blue-400: #5BB3F0;  /* logo sky blue */
    --blue-300: #80C9FD;  /* logo sky blue (bright) */
    --blue-100: #DCEEFB;
    --blue-050: #EEF6FD;

    --gold-700: #B8770A;
    --gold-600: #D08800;
    --gold:      #F0A800;  /* logo gold */
    --gold-300: #F7C955;

    /* Accent palette (more colorful) */
    --teal:    #14B8A6;
    --teal-l:  #5EEAD4;
    --coral:   #FB6F6F;
    --coral-l: #FCA5A5;
    --purple:  #8B5CF6;
    --purple-l:#C4B5FD;
    --green:   #22C55E;
    --green-l: #86EFAC;
    --pink:    #EC4899;

    /* Neutrals */
    --ink:      #14233A;
    --slate:    #41506A;
    --muted:    #6A7A90;
    --line:     #E2E8F0;
    --bg:       #F6F9FC;
    --white:    #FFFFFF;

    --shadow-sm: 0 2px 8px rgba(14, 77, 146, .06);
    --shadow:    0 10px 30px rgba(14, 77, 146, .10);
    --shadow-lg: 0 24px 60px rgba(8, 42, 77, .18);

    --radius:    16px;
    --radius-sm: 10px;
    --radius-lg: 26px;

    --container: 1200px;
    --ease: cubic-bezier(.22, .61, .36, 1);

    --header-h: 86px;
}

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

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

body {
    margin: 0;
    font-family: "Segoe UI", "Segoe UI Web (West European)", "Helvetica Neue",
                 Arial, system-ui, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--blue-700); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--gold-600); }

h1, h2, h3, h4 { line-height: 1.2; color: var(--blue-900); margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); letter-spacing: -.01em; }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1rem; }

.ic { display: inline-block; margin-right: .35rem; }

.page-wrap { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1 0 auto; }

/* ---------- Layout ---------- */
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }

.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section--tint { background: var(--blue-050); }
.section--dark { background: linear-gradient(135deg, var(--blue-900), var(--blue-700)); color: #DCE7F4; }
.section--dark h2, .section--dark h3 { color: #fff; }

.center { text-align: center; }

.eyebrow {
    display: inline-block;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gold-600);
    margin-bottom: .6rem;
}
.eyebrow::before { content: "✦ "; color: var(--blue-400); }

.section__head { max-width: 720px; margin: 0 auto clamp(2rem, 4vw, 3rem); }
.section__head p { color: var(--slate); font-size: 1.05rem; }

.lead { font-size: 1.12rem; color: var(--slate); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .85rem 1.6rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: .95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease),
                background .25s var(--ease), color .25s var(--ease);
    will-change: transform;
}
.btn:hover { transform: translateY(-3px); }
.btn--sm   { padding: .55rem 1.1rem; font-size: .85rem; }

.btn--primary { background: linear-gradient(135deg, var(--blue-600), var(--blue-700)); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { color: #fff; box-shadow: var(--shadow); }

.btn--gold { background: linear-gradient(135deg, var(--gold), var(--gold-600)); color: #2a1c02; box-shadow: 0 8px 20px rgba(240,168,0,.35); }
.btn--gold:hover { color: #2a1c02; box-shadow: 0 14px 28px rgba(240,168,0,.45); }

.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: #fff; color: var(--blue-800); border-color: #fff; }

.btn--outline { background: transparent; color: var(--blue-700); border-color: var(--blue-300); }
.btn--outline:hover { background: var(--blue-800); color: #fff; border-color: var(--blue-800); }

/* ---------- Top bar ---------- */
.topbar { background: var(--blue-900); color: #BBD3EE; font-size: .82rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; min-height: 38px; }
.topbar__contact { display: flex; gap: 1.4rem; }
.topbar__contact a { color: #BBD3EE; }
.topbar__contact a:hover { color: var(--gold-300); }
.topbar__tag { font-weight: 600; letter-spacing: .04em; color: var(--gold-300); }

/* ---------- Header / Nav ---------- */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .3s var(--ease), padding .3s var(--ease);
}
.header.is-scrolled { box-shadow: var(--shadow); }
.header__inner { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: .7rem; }
.brand__logo { width: 52px; height: 52px; object-fit: contain; flex-shrink: 0; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-weight: 800; font-size: 1.12rem; color: var(--blue-900); }
.brand__sub  { font-size: .8rem; color: var(--gold-600); font-weight: 600; letter-spacing: .04em; }
.brand--light .brand__name { color: #fff; }
.brand--light .brand__sub  { color: var(--gold-300); }

.nav { margin-left: auto; }
.nav__list { list-style: none; display: flex; gap: .35rem; margin: 0; padding: 0; }
.nav__link {
    display: block;
    padding: .55rem .9rem;
    border-radius: 50px;
    color: var(--ink);
    font-weight: 600;
    font-size: .95rem;
    position: relative;
}
.nav__link:hover { color: var(--blue-700); background: var(--blue-050); }
.nav__link.is-active { color: var(--blue-700); background: var(--blue-100); }

.header__cta { flex-shrink: 0; }

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
}
.nav__toggle span { width: 26px; height: 3px; background: var(--blue-800); border-radius: 3px; transition: .3s var(--ease); }
.nav__close {
    display: none;
    position: absolute;
    top: 18px; right: 18px;
    background: none; border: 0; font-size: 2rem; line-height: 1;
    color: var(--blue-800); cursor: pointer;
}

/* ---------- Hero slider ---------- */
.hero {
    position: relative;
    color: #fff;
    overflow: hidden;
    isolation: isolate;
    background: var(--blue-900);
    min-height: clamp(460px, 80vh, 760px);
}
.hero__slides { position: absolute; inset: 0; }

.hero__slide {
    position: absolute; inset: 0;
    display: flex; align-items: center;
    opacity: 0; visibility: hidden;
    transition: opacity 1.1s var(--ease), visibility 1.1s;
    z-index: 1;
}
.hero__slide.is-active { opacity: 1; visibility: visible; z-index: 2; }

.hero__slide-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    transform: scale(1.04);
    transition: transform 7s linear;
    z-index: 0;
}
.hero__slide.is-active .hero__slide-bg { transform: scale(1.16); } /* Ken Burns zoom-in */

.hero__slide-overlay {
    position: absolute; inset: 0; z-index: 1;
    background:
        linear-gradient(115deg, rgba(8,42,77,.93) 0%, rgba(14,77,146,.8) 45%, rgba(26,115,200,.5) 100%);
}

.hero__content { position: relative; z-index: 3; }
.hero__inner { padding: clamp(4rem, 10vw, 7rem) 0; max-width: 760px; }
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero h1 span { color: var(--gold-300); }
.hero p { font-size: 1.15rem; color: #E2EEFB; margin-bottom: 2rem; max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero__badge {
    display: inline-flex; align-items: center; gap: .5rem;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.28);
    padding: .4rem 1rem;
    border-radius: 50px;
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: 1.4rem;
    backdrop-filter: blur(6px);
}

/* Staggered content entrance on each slide */
.hero__slide .hero__inner > * {
    opacity: 0;
    transform: translateY(26px);
}
.hero__slide.is-active .hero__inner > * {
    animation: heroIn .85s var(--ease) forwards;
}
.hero__slide.is-active .hero__inner > *:nth-child(1) { animation-delay: .15s; }
.hero__slide.is-active .hero__inner > *:nth-child(2) { animation-delay: .30s; }
.hero__slide.is-active .hero__inner > *:nth-child(3) { animation-delay: .45s; }
.hero__slide.is-active .hero__inner > *:nth-child(4) { animation-delay: .60s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

/* Arrows */
.hero__arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 12; width: 52px; height: 52px; border-radius: 50%;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3);
    color: #fff; font-size: 2rem; line-height: 1; cursor: pointer;
    display: grid; place-items: center;
    backdrop-filter: blur(6px);
    transition: background .3s var(--ease), color .3s var(--ease), border-color .3s, transform .3s var(--ease);
}
.hero__arrow:hover { background: var(--gold); color: #2a1c02; border-color: transparent; transform: translateY(-50%) scale(1.08); }
.hero__arrow--prev { left: clamp(.8rem, 3vw, 2.5rem); }
.hero__arrow--next { right: clamp(.8rem, 3vw, 2.5rem); }

/* Dots */
.hero__dots {
    position: absolute; left: 50%; bottom: 2.2rem; transform: translateX(-50%);
    z-index: 12; display: flex; gap: .55rem; align-items: center;
}
.hero__dot {
    width: 11px; height: 11px; padding: 0; border: 0; cursor: pointer; border-radius: 50%;
    background: rgba(255,255,255,.45);
    transition: width .35s var(--ease), background .3s;
}
.hero__dot:hover { background: rgba(255,255,255,.8); }
.hero__dot.is-active { width: 34px; border-radius: 6px; background: var(--gold); }

/* Autoplay progress bar */
.hero__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.14); z-index: 12; }
.hero__progress-bar { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-300), var(--gold)); }


/* Wave divider */
.wave { display: block; width: 100%; height: auto; margin-top: -2px; }

/* ---------- Inner page banner ---------- */
.page-banner {
    position: relative;
    color: #fff;
    padding: clamp(3rem, 7vw, 5rem) 0;
    overflow: hidden;
    isolation: isolate;
}
.page-banner__bg {
    position: absolute; inset: 0; z-index: -2;
    background-size: cover; background-position: center;
    transform: scale(1.04);
}
.page-banner::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(120deg, rgba(8,42,77,.9), rgba(26,115,200,.7));
}
.page-banner h1 { color: #fff; margin-bottom: .5rem; }
.breadcrumb { font-size: .9rem; color: #CFE0F2; }
.breadcrumb a { color: var(--gold-300); }
.breadcrumb .sep { margin: 0 .4rem; opacity: .7; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stat {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.stat:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.stat__num { font-size: 2.4rem; font-weight: 800; color: var(--blue-700); line-height: 1; }
.stat__num small { font-size: 1.3rem; color: var(--gold-600); }
.stat__label { color: var(--muted); font-weight: 600; margin-top: .4rem; }

/* ---------- Split feature (image + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split--rev .split__media { order: 2; }
.split__media {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.split__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.split__media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(8,42,77,.25));
}
.split__text h2 { margin-bottom: 1rem; }
.split__text p { color: var(--slate); }

.checklist { list-style: none; padding: 0; margin: 1.4rem 0 1.8rem; }
.checklist li { position: relative; padding-left: 2rem; margin-bottom: .8rem; color: var(--slate); font-weight: 500; }
.checklist li::before {
    content: "✓"; position: absolute; left: 0; top: 0;
    width: 1.3rem; height: 1.3rem; border-radius: 50%;
    background: var(--blue-100); color: var(--blue-700);
    font-size: .8rem; font-weight: 800; display: grid; place-items: center;
}

/* ---------- Card grid ---------- */
.grid { display: grid; gap: 1.75rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
    display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.card__media { aspect-ratio: 16/10; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.07); }
.card__body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.card__body h3 { margin-bottom: .4rem; }
.card__body p { color: var(--slate); font-size: .96rem; margin-bottom: 1.1rem; flex: 1; }
.card__link { font-weight: 700; color: var(--blue-700); }
.card__link::after { content: " →"; transition: margin .25s var(--ease); }
.card:hover .card__link::after { margin-left: .3rem; }

/* Icon card (ministries) */
.icon-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2rem 1.6rem;
    box-shadow: var(--shadow-sm);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
    text-align: left;
}
.icon-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.icon-card__icon {
    width: 60px; height: 60px; border-radius: 16px;
    display: grid; place-items: center;
    font-size: 1.7rem; margin-bottom: 1.1rem;
    background: linear-gradient(135deg, var(--blue-100), var(--blue-050));
    color: var(--blue-700);
}
.icon-card h3 { margin-bottom: .4rem; }
.icon-card p { color: var(--slate); font-size: .96rem; margin: 0; }

/* ---------- Mission / values ---------- */
.values { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.value { text-align: center; padding: 1.5rem; }
.value__icon { font-size: 2rem; margin-bottom: .6rem; }

/* ---------- CTA band ---------- */
.cta-band {
    background: linear-gradient(120deg, var(--blue-800), var(--blue-600));
    color: #fff;
    border-radius: var(--radius-lg);
    padding: clamp(2.5rem, 6vw, 4rem);
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 2rem; position: relative; overflow: hidden;
}
.cta-band::before {
    content: ""; position: absolute; top: -40%; right: -10%;
    width: 380px; height: 380px; border-radius: 50%;
    background: radial-gradient(circle, rgba(240,168,0,.45), transparent 70%);
}
.cta-band h2 { color: #fff; margin-bottom: .4rem; }
.cta-band p { color: #DCE7F4; margin: 0; }
.cta-band__actions { position: relative; z-index: 1; }

/* ---------- Events / News ---------- */
.event {
    display: grid; grid-template-columns: 92px 1fr auto; gap: 1.3rem; align-items: center;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.3rem; box-shadow: var(--shadow-sm);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.event:hover { transform: translateX(6px); box-shadow: var(--shadow); }
.event__date {
    text-align: center; border-radius: 12px; overflow: hidden;
    border: 1px solid var(--line);
}
.event__date__day { background: var(--blue-700); color: #fff; font-size: 1.7rem; font-weight: 800; line-height: 1; padding: .5rem 0; }
.event__date__mon { background: var(--blue-050); color: var(--blue-700); font-size: .78rem; font-weight: 700; text-transform: uppercase; padding: .25rem 0; }
.event__title { margin: 0 0 .2rem; font-size: 1.1rem; }
.event__meta { font-size: .85rem; color: var(--muted); margin: 0; }
.event__cat {
    font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
    background: var(--gold-300); color: #5a3d00; padding: .3rem .7rem; border-radius: 50px; white-space: nowrap;
}

/* ---------- Gallery ---------- */
.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
.gallery__item {
    position: relative; overflow: hidden; border-radius: var(--radius-sm);
    aspect-ratio: 1; cursor: pointer; box-shadow: var(--shadow-sm);
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery__item::after {
    content: "⊕"; position: absolute; inset: 0;
    display: grid; place-items: center;
    color: #fff; font-size: 1.6rem;
    background: rgba(8,42,77,.45);
    opacity: 0; transition: opacity .3s var(--ease);
}
.gallery__item:hover::after { opacity: 1; }
.gallery__item:hover img { transform: scale(1.1); }

/* Lightbox */
.lightbox {
    position: fixed; inset: 0; z-index: 2000;
    background: rgba(6,20,38,.92);
    display: none; align-items: center; justify-content: center; padding: 2rem;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: 12px; box-shadow: var(--shadow-lg); }
.lightbox__close {
    position: absolute; top: 1.2rem; right: 1.6rem;
    background: none; border: 0; color: #fff; font-size: 2.6rem; cursor: pointer; line-height: 1;
}
.lightbox__nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3);
    color: #fff; font-size: 1.6rem; width: 52px; height: 52px; border-radius: 50%;
    cursor: pointer; display: grid; place-items: center; transition: background .25s;
}
.lightbox__nav:hover { background: rgba(255,255,255,.25); }
.lightbox__nav.prev { left: 1.5rem; }
.lightbox__nav.next { right: 1.5rem; }

/* ---------- Parishes table ---------- */
.parish-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.4rem; }
.parish {
    background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--blue-400);
    border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm);
    transition: transform .3s var(--ease), border-left-color .3s var(--ease);
}
.parish:hover { transform: translateY(-5px); border-left-color: var(--gold); }
.parish h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.parish__meta { font-size: .88rem; color: var(--muted); }
.parish__meta strong { color: var(--blue-700); }

/* ---------- Team ---------- */
.team-lead {
    display: grid; grid-template-columns: 260px 1fr; gap: 2.4rem; align-items: center;
    background: linear-gradient(120deg, var(--blue-050), #fff);
    border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 2rem; box-shadow: var(--shadow);
}
.team-lead__photo {
    width: 100%; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden;
    background: var(--blue-100); box-shadow: var(--shadow-sm); border: 3px solid #fff; outline: 2px solid var(--gold);
}
.team-lead__photo img { width: 100%; height: 100%; object-fit: cover; }
.team-lead__photo--placeholder { display: grid; place-items: center; font-size: 3.5rem; color: var(--blue-300); }
.team-lead__body h3 { font-size: 1.6rem; margin: .2rem 0 .3rem; color: var(--blue-900); }
.team-lead__role { font-size: 1rem; font-weight: 700; color: var(--gold-600); text-transform: uppercase; letter-spacing: .03em; margin: 0 0 .9rem; }
.team-lead__bio { color: var(--slate); font-size: 1rem; margin: 0 0 .9rem; }

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
.team-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow-sm); text-align: center;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.team-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.team-card__photo { aspect-ratio: 1; overflow: hidden; background: var(--blue-050); }
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.team-card:hover .team-card__photo img { transform: scale(1.07); }
.team-card__photo--placeholder { display: grid; place-items: center; font-size: 2.4rem; color: var(--blue-300); }
.team-card__body { padding: 1.3rem 1.1rem; }
.team-card__body h3 { font-size: 1.05rem; margin: 0 0 .2rem; }
.team-card__role { font-size: .85rem; font-weight: 700; color: var(--gold-600); text-transform: uppercase; letter-spacing: .03em; margin: 0 0 .6rem; }
.team-card__bio { font-size: .88rem; color: var(--slate); margin: 0 0 .7rem; }
.team-card__contact { display: flex; flex-direction: column; gap: .25rem; font-size: .82rem; }
.team-card__contact a { color: var(--blue-700); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); }
.contact-info { display: grid; gap: 1.2rem; }
.contact-info__item {
    display: flex; gap: 1rem; align-items: flex-start;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.3rem; box-shadow: var(--shadow-sm);
}
.contact-info__icon {
    width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
    display: grid; place-items: center; font-size: 1.3rem;
    background: linear-gradient(135deg, var(--blue-600), var(--blue-800)); color: #fff;
}
.contact-info__item h4 { margin: 0 0 .2rem; font-size: 1rem; color: var(--blue-900); }
.contact-info__item p { margin: 0; color: var(--slate); font-size: .95rem; }

.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; color: var(--ink); }
.field input, .field select, .field textarea {
    width: 100%; padding: .8rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    font-family: inherit; font-size: .95rem; color: var(--ink); background: #FBFCFE;
    transition: border-color .25s, box-shadow .25s;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--blue-400); box-shadow: 0 0 0 4px rgba(91,179,240,.18); background: #fff;
}
.field textarea { resize: vertical; min-height: 130px; }

/* Alerts */
.alert { padding: 1rem 1.2rem; border-radius: var(--radius-sm); margin-bottom: 1.3rem; font-weight: 600; font-size: .95rem; }
.alert--success { background: #E6F7EC; color: #1a7a3f; border: 1px solid #BFE9CE; }
.alert--error   { background: #FBEAEA; color: #b02a2a; border: 1px solid #F3C6C6; }

/* ---------- Map ---------- */
.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.map-embed iframe { display: block; width: 100%; height: 360px; border: 0; }

/* ---------- Footer ---------- */
.footer {
    position: relative;
    background: linear-gradient(160deg, var(--blue-900), #061F39);
    color: #BBD3EE;
    overflow: hidden;
    isolation: isolate;
}
.footer::before {
    /* decorative glow */
    content: ""; position: absolute; z-index: -1;
    top: -120px; right: -80px; width: 420px; height: 420px; border-radius: 50%;
    background: radial-gradient(circle, rgba(91,179,240,.18), transparent 70%);
}
.footer::after {
    content: ""; position: absolute; z-index: -1;
    bottom: -160px; left: -100px; width: 460px; height: 460px; border-radius: 50%;
    background: radial-gradient(circle, rgba(240,168,0,.12), transparent 70%);
}

.footer__accent {
    height: 4px;
    background: linear-gradient(90deg, var(--blue-600), var(--blue-400), var(--gold), var(--gold-600));
}

/* Newsletter band */
.footer__news-wrap { border-bottom: 1px solid rgba(255,255,255,.08); }
.footer__news {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem;
    padding: clamp(1.6rem, 4vw, 2.6rem) 0;
}
.footer__news-text { display: flex; align-items: center; gap: 1rem; }
.footer__news-ic {
    width: 50px; height: 50px; border-radius: 14px; flex-shrink: 0;
    display: grid; place-items: center; font-size: 1.5rem;
    background: linear-gradient(135deg, var(--gold), var(--gold-600)); color: #2a1c02;
    box-shadow: 0 8px 20px rgba(240,168,0,.3);
}
.footer__news-text h3 { color: #fff; margin: 0 0 .1rem; font-size: 1.2rem; }
.footer__news-text p { margin: 0; color: #A8C2E0; font-size: .92rem; }
.footer__news-form { display: flex; gap: .6rem; min-width: 320px; flex: 1; justify-content: flex-end; }
.footer__news-form input {
    flex: 1; max-width: 320px; padding: .8rem 1.1rem;
    border: 1.5px solid rgba(255,255,255,.18); border-radius: 50px;
    background: rgba(255,255,255,.06); color: #fff; font-family: inherit; font-size: .92rem;
    transition: border-color .25s, background .25s;
}
.footer__news-form input::placeholder { color: #8FA8C6; }
.footer__news-form input:focus { outline: none; border-color: var(--gold-300); background: rgba(255,255,255,.12); }
.footer__news-msg {
    flex: 1 1 100%; margin: .5rem 0 0; color: #7FE0AE; font-weight: 600; font-size: .9rem;
}
.footer__news-msg[hidden] { display: none; }

/* Grid */
.footer__grid {
    display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.3fr;
    gap: clamp(1.8rem, 3vw, 2.8rem); padding: clamp(2.5rem, 5vw, 3.5rem) 0;
}
.footer__col--brand .brand { margin-bottom: .4rem; }
.footer__about { font-size: .94rem; margin: 1rem 0 1.4rem; max-width: 330px; line-height: 1.7; }

/* Social icons */
.footer__social { display: flex; gap: .6rem; }
.footer__social a {
    width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
    display: grid; place-items: center; color: #DCE7F4;
    background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
    transition: transform .3s var(--ease), background .3s, color .3s, box-shadow .3s;
}
.footer__social svg { width: 18px; height: 18px; }
.footer__social a:hover {
    transform: translateY(-4px);
    background: linear-gradient(135deg, var(--gold), var(--gold-600));
    color: #2a1c02; border-color: transparent;
    box-shadow: 0 10px 22px rgba(240,168,0,.4);
}

/* Section titles */
.footer__title {
    position: relative; color: #fff; font-size: 1.05rem; margin: 0 0 1.4rem; padding-left: .9rem;
}
.footer__title::before {
    content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 4px; border-radius: 4px;
    background: linear-gradient(180deg, var(--gold), var(--gold-600));
}

/* Link lists with icons */
.footer__links { list-style: none; padding: 0; margin: 0; }
.footer__links li { margin-bottom: .15rem; }
.footer__links a {
    display: flex; align-items: center; gap: .6rem;
    color: #AFC4DE; font-size: .94rem; padding: .4rem 0;
    border-radius: 8px; transition: color .25s, padding-left .25s;
}
.footer__links a .flicon {
    width: 16px; height: 16px; flex-shrink: 0; color: var(--gold-300);
    transition: transform .3s var(--ease), color .25s;
}
.footer__links a:hover { color: #fff; padding-left: .3rem; }
.footer__links a:hover .flicon { color: var(--gold); transform: translateX(3px); }

/* Contact list */
.footer__contact { list-style: none; padding: 0; margin: 0; font-size: .94rem; }
.footer__contact li { display: flex; align-items: center; gap: .85rem; margin-bottom: 1rem; }
.footer__contact .ic-chip {
    width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--blue-600), var(--blue-800));
    color: #fff; box-shadow: 0 6px 14px rgba(8,42,77,.35);
    transition: transform .3s var(--ease), background .3s;
}
.footer__contact .ic-chip svg { width: 18px; height: 18px; }
.footer__contact li:hover .ic-chip { transform: translateY(-3px) rotate(-4deg); background: linear-gradient(135deg, var(--gold), var(--gold-600)); }
.footer__contact a { color: #CFE0F2; }
.footer__contact a:hover { color: var(--gold-300); }
.footer__contact span:last-child { line-height: 1.5; color: #AFC4DE; }

/* Bottom bar */
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.3rem 0; font-size: .85rem; }
.footer__bottom-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .8rem; }
.footer__bottom p { margin: 0; }
.footer__bottom-links { display: flex; gap: 1.2rem; }
.footer__bottom-links a { color: #AFC4DE; font-size: .85rem; }
.footer__bottom-links a:hover { color: var(--gold-300); }
.footer__credit { color: var(--gold-300); }

/* =========================================================
   Colorful accents + new components
   ========================================================= */

/* Gradient eyebrow / headings */
.gradient-text {
    background: linear-gradient(90deg, var(--blue-600), var(--purple), var(--gold));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}

/* Colorful section tint variants */
.section--tint { background: linear-gradient(180deg, var(--blue-050), #F1F8FE); }
.section--aurora {
    background:
        radial-gradient(60% 80% at 10% 10%, rgba(139,92,246,.10), transparent 60%),
        radial-gradient(60% 80% at 90% 20%, rgba(240,168,0,.12), transparent 60%),
        radial-gradient(60% 80% at 50% 100%, rgba(20,184,166,.10), transparent 60%),
        var(--bg);
}

/* ---- Nav: accommodate more links ---- */
.nav__list { gap: .15rem; }
.nav__link { padding: .5rem .72rem; font-size: .9rem; }
.header__cta { font-size: .85rem; padding: .5rem 1.1rem; }

/* ---- Notice ticker ---- */
.ticker {
    background: linear-gradient(90deg, var(--blue-900), var(--blue-700));
    color: #fff; overflow: hidden; border-bottom: 3px solid var(--gold);
}
.ticker__inner { display: flex; align-items: center; gap: 1rem; min-height: 42px; }
.ticker__label {
    background: var(--gold); color: #2a1c02; font-weight: 800; font-size: .78rem;
    padding: .25rem .7rem; border-radius: 6px; flex-shrink: 0; letter-spacing: .03em;
    position: relative; z-index: 1;
}
.ticker__viewport { flex: 1 1 auto; min-width: 0; overflow: hidden; }
.ticker__track {
    display: flex; align-items: center; gap: 1.2rem; white-space: nowrap;
    width: max-content;
    animation: tickerScroll 32s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item { color: #DCE7F4; font-size: .88rem; font-weight: 500; }
.ticker__item:hover { color: var(--gold-300); }
.ticker__sep { color: var(--gold-300); }
@keyframes tickerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---- Notice cards (home preview) ---- */
.notice {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.6rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
    position: relative; overflow: hidden;
}
.notice::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
    background: linear-gradient(180deg, var(--gold), var(--coral));
}
.notice:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.notice__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .7rem; gap: .5rem; }
.notice__tag {
    font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
    background: linear-gradient(135deg, var(--blue-600), var(--purple)); color: #fff;
    padding: .28rem .7rem; border-radius: 50px;
}
.notice__date { font-size: .8rem; color: var(--muted); font-weight: 600; }
.notice h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.notice p { color: var(--slate); font-size: .94rem; margin-bottom: 1rem; flex: 1; }

/* ---- Notices page layout ---- */
.notices-layout { display: grid; grid-template-columns: 280px 1fr; gap: 2.2rem; align-items: start; }
.notices-side { position: sticky; top: calc(var(--header-h) + 16px); }
.notices-side__title { font-size: 1.05rem; margin-bottom: 1rem; padding-left: .9rem; position: relative; }
.notices-side__title::before { content:""; position:absolute; left:0; top:4px; bottom:4px; width:4px; border-radius:4px; background:linear-gradient(180deg,var(--gold),var(--coral)); }
.notices-tags { list-style: none; padding: 0; margin: 0 0 1.6rem; }
.notices-tags li { margin-bottom: .3rem; }
.notices-tags a {
    display: block; padding: .6rem .9rem; border-radius: 10px; color: var(--slate);
    font-weight: 600; font-size: .92rem; transition: all .25s var(--ease);
}
.notices-tags a:hover { background: var(--blue-050); color: var(--blue-700); }
.notices-tags a.is-active {
    background: linear-gradient(135deg, var(--blue-600), var(--blue-800)); color: #fff;
}
.notices-cta {
    background: linear-gradient(135deg, var(--gold), var(--gold-600)); color: #2a1c02;
    border-radius: var(--radius); padding: 1.4rem; text-align: center;
}
.notices-cta h4 { color: #2a1c02; margin-bottom: .3rem; }
.notices-cta p { color: #4a3400; font-size: .88rem; margin-bottom: 1rem; }

.notice--full { padding: 0; display: flex; margin-bottom: 1.4rem; }
.notice--full .notice__bar { width: 6px; flex-shrink: 0; background: linear-gradient(180deg, var(--gold), var(--coral), var(--purple)); }
.notice--full .notice__body { padding: 1.6rem 1.8rem; flex: 1; }
.notice--full h2 { font-size: 1.35rem; margin: .3rem 0 .6rem; }

/* ---- Donate page ---- */
.donate-banner::after { background: linear-gradient(120deg, rgba(123,40,40,.88), rgba(216,136,0,.7)); }
.donate-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(1.6rem, 4vw, 3rem); align-items: start; }
.impact {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.8rem 1.4rem; text-align: center; box-shadow: var(--shadow-sm);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.impact:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.impact__icon {
    width: 60px; height: 60px; border-radius: 16px; margin: 0 auto .8rem;
    display: grid; place-items: center; font-size: 1.7rem;
    background: linear-gradient(135deg, var(--blue-100), var(--blue-050));
}
.impact:nth-child(1) .impact__icon { background: linear-gradient(135deg, #DBEAFE, #EFF6FF); }
.impact:nth-child(2) .impact__icon { background: linear-gradient(135deg, #DCFCE7, #F0FDF4); }
.impact:nth-child(3) .impact__icon { background: linear-gradient(135deg, #FEE2E2, #FEF2F2); }
.impact:nth-child(4) .impact__icon { background: linear-gradient(135deg, #FEF3C7, #FFFBEB); }
.impact__num { font-size: 1.5rem; font-weight: 800; color: var(--blue-800); }
.impact p { color: var(--slate); font-size: .9rem; margin: .3rem 0 0; }

.donate-amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; margin-bottom: 1.2rem; }
.amt-pill {
    padding: .7rem .4rem; border: 1.5px solid var(--line); border-radius: 12px; background: #FBFCFE;
    font-weight: 700; color: var(--blue-700); cursor: pointer; font-family: inherit; font-size: .9rem;
    transition: all .25s var(--ease);
}
.amt-pill:hover { border-color: var(--blue-400); background: var(--blue-050); }
.amt-pill.is-active { background: linear-gradient(135deg, var(--blue-600), var(--blue-800)); color: #fff; border-color: transparent; }

.radio-row { display: flex; gap: .6rem; flex-wrap: wrap; }
.radio-pill {
    flex: 1; min-width: 80px; text-align: center; padding: .7rem 1rem; border: 1.5px solid var(--line);
    border-radius: 12px; font-weight: 600; font-size: .9rem; color: var(--slate); cursor: pointer;
    transition: all .25s var(--ease); position: relative;
}
.radio-pill input { position: absolute; opacity: 0; }
.radio-pill:hover { border-color: var(--blue-400); }
.radio-pill:has(input:checked) { background: linear-gradient(135deg, var(--gold), var(--gold-600)); color: #2a1c02; border-color: transparent; }

.bank-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.6rem; box-shadow: var(--shadow-sm); margin-bottom: 1.4rem;
}
.bank-card--gold { background: linear-gradient(135deg, #FFFBEB, #FEF3C7); border-color: #FDE68A; }
.bank-card h3 { margin-bottom: 1rem; }
.bank-list { margin: 0; }
.bank-list div { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px dashed var(--line); font-size: .94rem; }
.bank-list div:last-child { border-bottom: 0; }
.bank-list dt { color: var(--muted); font-weight: 600; }
.bank-list dd { margin: 0; color: var(--ink); font-weight: 700; }
.upi-id {
    display: inline-block; background: var(--blue-900); color: var(--gold-300); font-weight: 800;
    padding: .5rem 1rem; border-radius: 10px; letter-spacing: .04em; margin: .6rem 0;
}
.qr-box { text-align: center; }
.qr-box img { border-radius: 12px; border: 1px solid var(--line); background: #fff; padding: 8px; }

/* ---- Colorful icon cards (cycle hues) ---- */
.grid--3 .icon-card:nth-child(1) .icon-card__icon { background: linear-gradient(135deg, #DBEAFE, var(--blue-050)); color: var(--blue-700); }
.grid--3 .icon-card:nth-child(2) .icon-card__icon { background: linear-gradient(135deg, #EDE9FE, #F5F3FF); color: var(--purple); }
.grid--3 .icon-card:nth-child(3) .icon-card__icon { background: linear-gradient(135deg, #FCE7F3, #FDF2F8); color: var(--pink); }
.grid--4 .icon-card:nth-child(odd) .icon-card__icon { background: linear-gradient(135deg, #CCFBF1, #F0FDFA); color: var(--teal); }
.grid--4 .icon-card:nth-child(even) .icon-card__icon { background: linear-gradient(135deg, #FEF3C7, #FFFBEB); color: var(--gold-700); }

/* Colorful stat accents */
.stat:nth-child(1) .stat__num { color: var(--blue-700); }
.stat:nth-child(2) .stat__num { color: var(--purple); }
.stat:nth-child(3) .stat__num { color: var(--teal); }
.stat:nth-child(4) .stat__num { color: var(--gold-600); }

/* Colorful event categories */
.event:nth-child(1n) .event__cat { background: var(--blue-100); color: var(--blue-800); }
.event:nth-child(2n) .event__cat { background: #FDE68A; color: #92580a; }
.event:nth-child(3n) .event__cat { background: #DDD6FE; color: #5b21b6; }
.event:nth-child(4n) .event__cat { background: #A7F3D0; color: #065f46; }

/* ---- Scroll reveal ---- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal--delay-1 { transition-delay: .12s; }
.reveal--delay-2 { transition-delay: .24s; }
.reveal--delay-3 { transition-delay: .36s; }

/* ---------- Back to top ---------- */
.to-top {
    position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 900;
    width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
    background: linear-gradient(135deg, var(--blue-600), var(--blue-800)); color: #fff;
    font-size: 1.3rem; box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(20px); transition: .35s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-4px); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 992px) {
    .stats { grid-template-columns: repeat(2, 1fr); }
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .footer__col--brand { grid-column: 1 / -1; }
    .parish-grid { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
    :root { --header-h: 70px; }

    .nav {
        position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px); z-index: 1000;
        background: #fff; box-shadow: var(--shadow-lg);
        transform: translateX(100%); transition: transform .4s var(--ease);
        padding: 5rem 1.5rem 2rem; overflow-y: auto; -webkit-overflow-scrolling: touch;
    }
    .nav.is-open { transform: none; }
    .nav__list { flex-direction: column; gap: .2rem; }
    .nav__link { padding: .9rem 1rem; border-radius: 12px; font-size: 1.05rem; }
    .nav__close { display: block; }
    .nav__toggle { display: flex; }
    .header__cta { display: none; }

    body.nav-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
    body.nav-open::after {
        content: ""; position: fixed; inset: 0; background: rgba(6,20,38,.5); z-index: 999;
    }
}

@media (max-width: 820px) {
    .split { grid-template-columns: 1fr; }
    .split--rev .split__media { order: 0; }
    .grid--3 { grid-template-columns: 1fr 1fr; }
    .values { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: repeat(3, 1fr); }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .team-lead { grid-template-columns: 1fr; text-align: center; }
    .team-lead__photo { max-width: 220px; margin-inline: auto; }
    .donate-grid { grid-template-columns: 1fr; }
    .notices-layout { grid-template-columns: 1fr; }
    .notices-side { position: static; }
}

@media (max-width: 600px) {
    /* Prevent iOS Safari auto-zoom on focus (triggers when input font-size < 16px) */
    .field input, .field select, .field textarea,
    .footer__news-form input { font-size: 16px; }

    .topbar__tag { display: none; }
    .topbar__contact { gap: 1rem; flex-wrap: wrap; }
    .stats { grid-template-columns: 1fr; }
    .grid--3, .grid--4 { grid-template-columns: 1fr; }
    .parish-grid { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: 1fr 1fr; }
    .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer__news { flex-direction: column; align-items: flex-start; }
    .footer__news-form { min-width: 0; width: 100%; justify-content: stretch; }
    .footer__news-form input { max-width: none; }
    .footer__bottom-inner { justify-content: center; text-align: center; }
    .footer__bottom-links { justify-content: center; }
    .form__row { grid-template-columns: 1fr; }
    .event { grid-template-columns: 70px 1fr; }
    .event__cat { grid-column: 1 / -1; justify-self: start; }
    .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
    .cta-band { flex-direction: column; text-align: center; align-items: center; }
    .donate-amounts { grid-template-columns: repeat(2, 1fr); }
    .notice--full { flex-direction: row; }
    .notice--full .notice__body { padding: 1.3rem 1.4rem; }
    .notice--full h2 { font-size: 1.15rem; }
    .hero h1 { font-size: clamp(1.8rem, 8vw, 2.4rem); }
    .hero p { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
    .hero__slide .hero__inner > * { opacity: 1 !important; transform: none !important; }
    .hero__slide-bg { transform: none !important; }
}
