/* ==========================================================
   CBBC MISSION PAGE
   Uses the shared site header/footer from css/style.css.
========================================================== */

.mission-page {
    --mission-navy: #103d5a;
    --mission-deep: #092b43;
    --mission-blue: #2f789f;
    --mission-blue-soft: #eaf4f8;
    --mission-green: #5d9275;
    --mission-green-soft: #edf5ef;
    --mission-ink: #263a49;
    --mission-muted: #647583;
    --mission-line: #dce7ec;
    color: var(--mission-ink);
    background: #fff;
    font-family: 'Inter', sans-serif;
}

.mission-page * { box-sizing: border-box; }
.mission-page a { text-decoration: none; }
.mission-page .container { width: min(1160px, calc(100% - 42px)); margin-inline: auto; }
.mission-page .section-pad { padding: 88px 0; }

/* Hero slideshow */
.mission-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    min-height: 610px;
    align-items: center;
    overflow: hidden;
    color: #fff;
    background: var(--mission-deep);
}
.mission-slideshow, .mission-hero-shade { position: absolute; inset: 0; pointer-events: none; }
.mission-slideshow { z-index: -2; overflow: hidden; background: #0b304a; }
.mission-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 48%;
    opacity: 0;
    transform: scale(1.035);
    animation: missionPhotoCrossfade 65s linear infinite;
    will-change: opacity, transform;
}
.mission-slide:nth-child(1)  { animation-delay: 0s; }
.mission-slide:nth-child(2)  { animation-delay: 5s; }
.mission-slide:nth-child(3)  { animation-delay: 10s; }
.mission-slide:nth-child(4)  { animation-delay: 15s; }
.mission-slide:nth-child(5)  { animation-delay: 20s; }
.mission-slide:nth-child(6)  { animation-delay: 25s; }
.mission-slide:nth-child(7)  { animation-delay: 30s; }
.mission-slide:nth-child(8)  { animation-delay: 35s; }
.mission-slide:nth-child(9)  { animation-delay: 40s; }
.mission-slide:nth-child(10) { animation-delay: 45s; }
.mission-slide:nth-child(11) { animation-delay: 50s; }
.mission-slide:nth-child(12) { animation-delay: 55s; }
.mission-slide:nth-child(13) { animation-delay: 60s; }
@keyframes missionPhotoCrossfade {
    0% { opacity: 0; transform: scale(1.035); }
    .7% { opacity: .54; }
    7.7% { opacity: .54; }
    9% { opacity: 0; transform: scale(1.11); }
    100% { opacity: 0; transform: scale(1.11); }
}
.mission-hero-shade {
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(5, 30, 48, .94) 0%, rgba(7, 39, 60, .83) 43%, rgba(7, 39, 60, .48) 100%),
        linear-gradient(0deg, rgba(5, 30, 48, .43), transparent 42%);
}
.mission-hero-content { position: relative; z-index: 1; padding-top: 88px; padding-bottom: 105px; }
.mission-eyebrow, .mission-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #a8d4bd;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .17em;
    line-height: 1.5;
    text-transform: uppercase;
}
.mission-eyebrow span { display: inline-block; width: 25px; height: 2px; background: #a8d4bd; }
.mission-hero h1 {
    margin: 19px 0 16px;
    color: #fff;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(52px, 7vw, 82px);
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: 1.02;
}
.mission-hero-lead { max-width: 690px; margin: 0; color: rgba(255,255,255,.91); font-size: clamp(16px, 2vw, 19px); line-height: 1.8; }
.mission-hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 31px; }
.mission-button {
    display: inline-flex;
    min-height: 49px;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 750;
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.mission-button:hover { transform: translateY(-2px); }
.mission-button-primary { color: #123b55; background: #fff; }
.mission-button-primary:hover { background: #eaf4f8; }
.mission-button-outline { border-color: rgba(255,255,255,.65); color: #fff; background: rgba(255,255,255,.06); }
.mission-button-outline:hover { background: rgba(255,255,255,.16); }
.mission-hero-footnote { margin-top: 29px; color: rgba(255,255,255,.87); font-family: 'Playfair Display', Georgia, serif; font-size: 17px; font-style: italic; }
.mission-hero-footnote span { display: block; margin-top: 5px; color: #b9d8c7; font-family: 'Inter', sans-serif; font-size: 10px; font-style: normal; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.mission-hero-bottom { position: absolute; right: max(21px, calc((100vw - 1160px) / 2)); bottom: 24px; color: rgba(255,255,255,.77); font-size: 10px; font-weight: 800; letter-spacing: .18em; }
.mission-hero-bottom span { display: inline-block; width: 20px; height: 1px; margin: 0 8px 3px 0; background: #a8d4bd; }

/* Commission section */
.mission-commission { background: #fff; }
.mission-commission-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: 65px; align-items: center; }
.mission-section-intro h2, .mission-centered-heading h2, .mission-action-heading h2, .mission-closing h2 {
    margin: 12px 0 18px;
    color: var(--mission-navy);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(35px, 4.4vw, 49px);
    line-height: 1.12;
    letter-spacing: -.025em;
}
.mission-section-intro h2 em, .mission-centered-heading h2 em, .mission-action-heading h2 em, .mission-closing h2 em { color: var(--mission-green); font-weight: 600; }
.mission-section-intro > p { margin: 0; color: var(--mission-muted); font-size: 15px; line-height: 1.85; }
.mission-reference-line { display: flex; align-items: center; gap: 10px; margin-top: 24px; color: var(--mission-navy); font-size: 11px; font-weight: 800; letter-spacing: .045em; }
.reference-mark { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 50%; color: var(--mission-green); background: var(--mission-green-soft); font-size: 16px; }
.mission-scripture-card { position: relative; padding: 34px 37px 25px; border: 1px solid #dce8ed; border-radius: 13px; background: linear-gradient(140deg, #f6fafc 0%, #fff 70%); box-shadow: 0 18px 45px rgba(16,61,90,.08); }
.mission-scripture-card::before { position: absolute; top: 0; left: 36px; width: 70px; height: 4px; border-radius: 0 0 4px 4px; background: var(--mission-green); content: ''; }
.mission-scripture-topline, .mission-scripture-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #729080; font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.mission-scripture-topline span:last-child { color: var(--mission-blue); }
.mission-scripture-card blockquote { margin: 26px 0 25px; color: #344b5a; font-family: 'Playfair Display', Georgia, serif; font-size: 17px; line-height: 1.85; }
.mission-scripture-card blockquote p { margin: 0 0 14px; }
.mission-scripture-card blockquote p:last-child { margin-bottom: 0; }
.mission-scripture-card blockquote sup { margin-right: 5px; color: var(--mission-green); font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 800; }
.mission-scripture-card blockquote strong { color: var(--mission-navy); font-weight: 700; }
.mission-scripture-footer { justify-content: flex-start; padding-top: 17px; border-top: 1px solid var(--mission-line); color: #729080; }
.mission-scripture-footer span { width: 20px; height: 2px; background: var(--mission-green); }
.mission-commission-pillars { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 54px; border: 1px solid var(--mission-line); border-radius: 10px; background: #fff; }
.mission-commission-pillars > div { position: relative; display: flex; min-height: 91px; flex-direction: column; justify-content: center; padding: 16px 22px 16px 62px; }
.mission-commission-pillars > div + div { border-left: 1px solid var(--mission-line); }
.pillar-number { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: #8caf9b; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.mission-commission-pillars strong { color: var(--mission-navy); font-size: 13px; }
.mission-commission-pillars small { margin-top: 5px; color: var(--mission-muted); font-size: 11px; }

/* Commitments */
.mission-commitments { background: #f3f8fa; }
.mission-centered-heading { max-width: 710px; margin: 0 auto 43px; text-align: center; }
.mission-centered-heading h2 { margin-bottom: 13px; }
.mission-centered-heading > p { margin: 0; color: var(--mission-muted); font-size: 15px; line-height: 1.8; }
.mission-commitment-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.mission-commitment-card { grid-column: span 2; display: flex; flex-direction: column; min-height: 100%; padding: 26px 25px 24px; border: 1px solid #e0e9ed; border-radius: 11px; background: #fff; box-shadow: 0 7px 23px rgba(16,61,90,.045); transition: transform .2s ease, box-shadow .2s ease; }
.mission-commitment-card:nth-child(4) { grid-column: 2 / span 2; }
.mission-commitment-card:hover { transform: translateY(-3px); box-shadow: 0 13px 30px rgba(16,61,90,.09); }
.commitment-icon { display: grid; width: 46px; height: 46px; place-items: center; margin-bottom: 20px; border-radius: 12px; color: #347b9d; background: #eaf4f8; font-size: 22px; }
.mission-commitment-card:nth-child(2) .commitment-icon, .mission-commitment-card:nth-child(5) .commitment-icon { color: #5d9275; background: #edf5ef; }
.commitment-number { color: #69927d; font-size: 9px; font-weight: 850; letter-spacing: .14em; }
.mission-commitment-card h3 { margin: 9px 0 11px; color: var(--mission-navy); font-family: 'Playfair Display', Georgia, serif; font-size: 22px; line-height: 1.2; }
.mission-commitment-card > p { margin: 0 0 21px; color: var(--mission-muted); font-size: 13px; line-height: 1.8; }
.commitment-verse { margin-top: auto; padding: 15px 15px 14px; border-left: 3px solid #82ad94; border-radius: 0 6px 6px 0; background: #f5f9f6; }
.commitment-verse strong { display: block; margin-bottom: 7px; color: #3c7257; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.commitment-verse span { display: block; color: #50665a; font-family: 'Playfair Display', Georgia, serif; font-size: 13px; line-height: 1.65; }
.commitment-verse br + strong { margin-top: 13px; }

/* Church photographs */
.mission-in-action { background: #fff; }
.mission-action-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 34px; }
.mission-action-heading h2 { margin-bottom: 0; }
.mission-action-heading > p { max-width: 430px; margin: 0 0 4px; color: var(--mission-muted); font-size: 14px; line-height: 1.8; }
.mission-photo-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 17px; }
.mission-photo-card { position: relative; min-height: 255px; margin: 0; overflow: hidden; border-radius: 10px; background: #d9e5e9; }
.mission-photo-card img { display: block; width: 100%; height: 100%; min-height: 255px; object-fit: cover; transition: transform .45s ease; }
.mission-photo-card:hover img { transform: scale(1.045); }
.mission-photo-card::after { position: absolute; inset: 35% 0 0; background: linear-gradient(0deg, rgba(5,28,44,.88), transparent); content: ''; pointer-events: none; }
.mission-photo-card figcaption { position: absolute; z-index: 1; right: 20px; bottom: 18px; left: 20px; color: #fff; }
.mission-photo-card figcaption strong { display: block; font-family: 'Playfair Display', Georgia, serif; font-size: 20px; }
.mission-photo-card figcaption span { display: block; margin-top: 5px; color: rgba(255,255,255,.86); font-size: 11px; line-height: 1.5; }

/* Closing invitation */
.mission-closing { position: relative; overflow: hidden; padding: 76px 0 82px; color: #fff; background: linear-gradient(120deg, #0b314b, #174d68); }
.mission-closing::after { position: absolute; top: -145px; right: -70px; width: 420px; height: 420px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 32px rgba(255,255,255,.025), 0 0 0 66px rgba(255,255,255,.02); content: ''; }
.mission-closing-inner { position: relative; z-index: 1; }
.mission-closing .mission-kicker { color: #b6d8c5; }
.mission-closing h2 { max-width: 720px; margin: 13px 0 17px; color: #fff; font-size: clamp(34px, 4.5vw, 52px); }
.mission-closing h2 em { color: #b5d9c4; }
.mission-closing p { max-width: 650px; margin: 0; color: rgba(255,255,255,.82); font-size: 15px; line-height: 1.85; }
.mission-closing-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 23px; margin-top: 27px; }
.mission-button-light { color: var(--mission-navy); background: #fff; }
.mission-button-light:hover { background: #eaf4f8; }
.mission-text-link { color: #e5f1eb; font-size: 12px; font-weight: 700; }
.mission-text-link:hover { color: #fff; text-decoration: underline; }

@media (max-width: 980px) {
    .mission-commission-grid { grid-template-columns: 1fr; gap: 31px; }
    .mission-section-intro h2 br { display: none; }
    .mission-commitment-card { grid-column: span 3; }
    .mission-commitment-card:nth-child(4) { grid-column: span 3; }
    .mission-commitment-card:nth-child(5) { grid-column: 2 / span 4; }
    .mission-commission-pillars { grid-template-columns: repeat(2, 1fr); }
    .mission-commission-pillars > div:nth-child(3) { border-left: 0; border-top: 1px solid var(--mission-line); }
    .mission-commission-pillars > div:nth-child(4) { border-top: 1px solid var(--mission-line); }
}
@media (max-width: 650px) {
    .mission-page .container { width: min(100% - 32px, 520px); }
    .mission-page .section-pad { padding: 62px 0; }
    .mission-hero { min-height: 650px; }
    .mission-hero-content { padding-top: 72px; padding-bottom: 95px; }
    .mission-hero h1 { font-size: clamp(47px, 14vw, 67px); }
    .mission-hero-lead { font-size: 15px; line-height: 1.75; }
    .mission-hero-actions { align-items: stretch; flex-direction: column; max-width: 330px; }
    .mission-button { width: 100%; }
    .mission-hero-bottom { right: 16px; bottom: 18px; left: 16px; font-size: 8px; text-align: right; }
    .mission-slide { object-position: center; }
    .mission-hero-shade { background: linear-gradient(90deg, rgba(5,30,48,.92), rgba(7,39,60,.72)), linear-gradient(0deg, rgba(5,30,48,.42), transparent 55%); }
    .mission-scripture-card { padding: 27px 21px 21px; }
    .mission-scripture-card::before { left: 21px; }
    .mission-scripture-topline, .mission-scripture-footer { font-size: 8px; letter-spacing: .09em; }
    .mission-scripture-card blockquote { font-size: 15px; line-height: 1.8; }
    .mission-commission-pillars { grid-template-columns: 1fr 1fr; margin-top: 34px; }
    .mission-commission-pillars > div { min-height: 82px; padding-left: 52px; }
    .mission-commission-pillars > div:nth-child(2) { border-left: 1px solid var(--mission-line); }
    .mission-commission-pillars > div:nth-child(3) { border-top: 1px solid var(--mission-line); }
    .mission-commission-pillars > div:nth-child(4) { border-top: 1px solid var(--mission-line); border-left: 1px solid var(--mission-line); }
    .mission-commitment-grid { display: grid; grid-template-columns: 1fr; }
    .mission-commitment-card, .mission-commitment-card:nth-child(4), .mission-commitment-card:nth-child(5) { grid-column: auto; }
    .mission-centered-heading { margin-bottom: 30px; }
    .mission-action-heading { align-items: start; flex-direction: column; gap: 13px; }
    .mission-photo-grid { grid-template-columns: 1fr; }
    .mission-photo-card, .mission-photo-card img { min-height: 235px; }
    .mission-closing { padding: 61px 0 65px; }
    .mission-closing-actions { align-items: stretch; flex-direction: column; gap: 18px; }
    .mission-text-link { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    .mission-slide { animation: none; opacity: 0; transform: none; }
    .mission-slide:first-child { opacity: .54; }
    .mission-button, .mission-commitment-card, .mission-photo-card img { transition: none; }
}

/* =========================================
   MISSION PAGE - TEXT SIZE ADJUSTMENTS
========================================= */

.mission-commitment-card h3 {
    font-size: 25px;
}

.mission-commitment-card > p {
    font-size: 15px;
    line-height: 1.8;
}

.commitment-verse span {
    font-size: 15px;
    line-height: 1.7;
}

.commitment-verse strong {
    font-size: 10px;
}

.commitment-number {
    font-size: 10px;
}

.mission-centered-heading > p {
    font-size: 16px;
}
