/* ==========================================================================
   Inner pages (Nov 2026 redesign). Loaded after redesign.css.
   Reuses the homepage blocks (title-block, intro__grid, why, plans, …)
   and adds the few page-specific pieces below.
   ========================================================================== */

/* ---------- Pills (focus areas, districts, tests) ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 22px 0 0; }
.pills li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 3px; color: #fff; font: 700 11.5px var(--font-display); letter-spacing: .08em; text-transform: uppercase; }
.pills li:nth-child(4n + 1) { background: var(--sun); color: var(--brand-950); }
.pills li:nth-child(4n + 2) { background: var(--brand); }
.pills li:nth-child(4n + 3) { background: var(--teal); }
.pills li:nth-child(4n + 4) { background: var(--brand-800); }
.pills--outline li { background: transparent !important; color: var(--ink) !important; border: 1px solid var(--line-strong); }
.pills--outline li i { color: var(--teal); }
.pills--dark li { background: rgba(255, 255, 255, .06) !important; color: #fff !important; border: 1px solid rgba(255, 255, 255, .18); }

/* Reversed intro (image left) */
.intro__grid--rev .intro__media { order: -1; }
.intro__media--photo img { max-height: none; aspect-ratio: 4 / 3.2; object-fit: cover; border-radius: 4px; box-shadow: 0 30px 50px -34px rgba(6, 26, 58, .7); }
.intro__media--photo::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; z-index: -1; border-radius: 4px; background: var(--sun); }
.intro__grid--rev .intro__media--photo::before { inset: 18px 18px -18px -18px; background: var(--teal); }
.intro__media { z-index: 0; }
.lead-text { font-size: 16.5px; line-height: 1.75; }

/* ---------- Statement band (mission quote) ---------- */
.statement { position: relative; overflow: hidden; padding: 90px 0; text-align: center; background: linear-gradient(180deg, #041128, var(--brand-950) 60%, #0b2a5a); }
.statement .container { position: relative; z-index: 2; max-width: 900px; }
.statement i.fa-quote-left { display: block; margin-bottom: 18px; color: var(--sun); font-size: 34px; }
.statement small { display: block; margin-bottom: 14px; color: var(--sun); font: 700 12px var(--font-display); letter-spacing: .24em; text-transform: uppercase; }
.statement p { margin: 0; color: #fff; font: 600 clamp(20px, 2.5vw, 28px)/1.5 var(--font-display); }

/* ---------- Info grid (company at a glance, contact) ---------- */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; }
.info-card { display: flex; gap: 16px; align-items: flex-start; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 4px; transition: transform .25s, box-shadow .25s; }
.info-card:hover { transform: translateY(-4px); box-shadow: 0 24px 34px -26px rgba(6, 26, 58, .55); }
.info-card dt, .info-card h5 { margin: 0 0 4px; color: var(--muted); font: 700 11px var(--font-display); letter-spacing: .12em; text-transform: uppercase; }
.info-card dd, .info-card p { margin: 0; color: var(--ink); font-size: 14.5px; font-weight: 600; line-height: 1.5; word-break: break-word; }
.info-card a { color: var(--ink); }
.info-card a:hover { color: var(--brand); }
.info-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Centered prose ---------- */
.prose-center { max-width: 860px; margin: 0 auto; }
.prose-center p { font-size: 16px; line-height: 1.8; }
.prose-center > p:first-of-type::first-letter { float: left; margin: 6px 12px 0 0; padding: 10px 14px; border-radius: 4px; background: var(--brand); color: #fff; font: 800 38px/1 var(--font-display); }

/* ---------- Cards (DB-driven grids) ---------- */
.card { border-radius: 4px; border-color: var(--line); }
.card:hover { transform: translateY(-4px); box-shadow: 0 26px 40px -28px rgba(6, 26, 58, .6); }
.card { transition: transform .25s, box-shadow .25s; }
.card__body { border-bottom: 3px solid var(--sun); }
.card-grid > :nth-child(4n + 2) .card__body { border-bottom-color: var(--brand); }
.card-grid > :nth-child(4n + 3) .card__body { border-bottom-color: var(--teal); }
.card-grid > :nth-child(4n + 4) .card__body { border-bottom-color: var(--brand-800); }
.card__title { font-size: 17px; }
.card__tag { background: var(--sun); color: var(--brand-950); font-family: var(--font-display); }

/* ---------- Horizontal bars (workforce) ---------- */
.hbars { list-style: none; display: grid; gap: 16px; }
.hbars li { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; }
.hbars span { font-size: 14px; color: var(--ink); font-weight: 600; }
.hbars b { font: 800 16px var(--font-display); color: var(--brand); }
.hbars__track { grid-column: 1 / -1; height: 10px; border-radius: 5px; background: var(--line); overflow: hidden; }
.hbars__track i { display: block; height: 100%; width: 0; border-radius: 5px; transition: width 1.2s var(--ease); }
.hbars li:nth-child(4n + 1) i { background: var(--sun); }
.hbars li:nth-child(4n + 2) i { background: var(--brand); }
.hbars li:nth-child(4n + 3) i { background: var(--teal); }
.hbars li:nth-child(4n + 4) i { background: var(--brand-800); }
.hbars.is-visible i, html:not(.js) .hbars i { width: var(--w); }
.hbars-total { display: flex; align-items: baseline; gap: 12px; margin-bottom: 24px; }
.hbars-total b { color: var(--brand); font: 800 54px/1 var(--font-display); }
.hbars-total span { font: 700 13px var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }

/* People list */
.roster { list-style: none; display: grid; gap: 12px; }
.roster li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--sun); border-radius: 4px; }
.roster li:nth-child(4n + 2) { border-left-color: var(--brand); }
.roster li:nth-child(4n + 3) { border-left-color: var(--teal); }
.roster li:nth-child(4n + 4) { border-left-color: var(--brand-800); }
.roster b { display: block; color: var(--ink); font: 700 14.5px var(--font-display); }
.roster div span { display: block; font-size: 13px; color: var(--muted); line-height: 1.45; }
.roster em { margin-left: auto; flex-shrink: 0; padding: 4px 10px; border-radius: 3px; background: var(--bg-soft); color: var(--brand); font: 700 11.5px var(--font-display); font-style: normal; }

/* ---------- Zigzag feature rows (What we do, Mission) ---------- */
.zig + .zig { margin-top: 90px; }
.zig { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.zig:nth-child(even) .zig__media { order: 2; }
.zig__media { position: relative; z-index: 0; }
.zig__media img { width: 100%; aspect-ratio: 4 / 3.1; object-fit: cover; border-radius: 4px; box-shadow: 0 30px 50px -34px rgba(6, 26, 58, .7); }
.zig__media::before { content: ""; position: absolute; z-index: -1; inset: 18px -18px -18px 18px; border-radius: 4px; background: var(--tone, var(--sun)); }
.zig:nth-child(even) .zig__media::before { inset: 18px 18px -18px -18px; }
.zig__num { display: inline-grid; place-items: center; width: 54px; height: 54px; margin-bottom: 16px; border-radius: 50%; background: var(--tone, var(--sun)); color: #fff; font: 800 18px var(--font-display); box-shadow: 0 0 0 6px rgba(6, 26, 58, .06); }
.zig--sun { --tone: var(--sun); }
.zig--blue { --tone: var(--brand); }
.zig--teal { --tone: var(--teal); }
.zig--navy { --tone: var(--brand-800); }
.zig--sun .zig__num { color: var(--brand-950); }
.zig h3 { margin-bottom: 14px; font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }
.zig p { font-size: 15px; line-height: 1.75; }
.zig .checklist li::before { background: var(--tone, var(--sun)); color: #fff; }
.zig--sun .checklist li::before { color: var(--brand-950); }

/* ---------- Process steps (light) ---------- */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; list-style: none; counter-reset: s; position: relative; }
.process::before { content: ""; position: absolute; top: 44px; left: 10%; right: 10%; height: 3px; background: linear-gradient(90deg, var(--sun), var(--brand), var(--teal), var(--brand-800)); }
.process li { position: relative; counter-increment: s; text-align: center; }
.process .tone-icon { position: relative; width: 88px; height: 88px; margin: 0 auto 18px; border-radius: 50%; font-size: 30px; border: 6px solid var(--brand-950); }
.process .tone-icon::after { content: counter(s); position: absolute; top: -4px; right: -4px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--brand-950); font: 800 12px var(--font-display); }
.process h4 { margin: 0 0 6px; color: #fff; font-size: 15px; }
.process p { margin: 0; font-size: 13px; color: rgba(255, 255, 255, .65); }

/* ---------- Projects ---------- */
.big-project { display: grid; grid-template-columns: 1.05fr 1fr; background: #fff; border-radius: 4px; overflow: hidden; box-shadow: 0 30px 50px -36px rgba(6, 26, 58, .6); }
.big-project + .big-project { margin-top: 36px; }
.big-project:nth-child(even) .big-project__media { order: 2; }
.big-project__media { position: relative; min-height: 380px; }
.big-project__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.big-project__badge { position: absolute; left: 24px; bottom: 24px; padding: 16px 20px; border-radius: 4px; background: var(--sun); color: var(--brand-950); }
.big-project:nth-child(even) .big-project__badge { background: var(--brand); color: #fff; }
.big-project__badge b { display: block; font: 800 34px/1 var(--font-display); }
.big-project__badge span { font-size: 12.5px; font-weight: 600; }
.big-project__body { padding: 40px 42px; }
.big-project__body h3 { font-size: clamp(19px, 2vw, 23px); line-height: 1.35; margin-bottom: 12px; }
.big-project__body p { font-size: 14.5px; }
.tag { border-radius: 3px; font-family: var(--font-display); }
.facts { border-top-color: var(--line); }

.data-table-wrap { border-radius: 4px; box-shadow: 0 26px 40px -32px rgba(6, 26, 58, .5); }
.data-table th { background: var(--brand-950); color: #fff; border-bottom: 3px solid var(--sun); font-family: var(--font-display); }
.data-table tbody tr:nth-child(even) { background: var(--bg-soft); }
.data-table tbody tr:hover { background: #fff8e6; }
.capacity { background: var(--sun); color: var(--brand-950); border-radius: 3px; font-family: var(--font-display); }

.check-cards { list-style: none; display: grid; gap: 14px; }
.check-cards li { display: flex; gap: 14px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 4px; }
.check-cards .tone-icon { width: 38px; height: 38px; font-size: 14px; }
.check-cards h5 { margin: 0 0 4px; font-size: 14.5px; }
.check-cards p { margin: 0; font-size: 13.5px; color: var(--muted); }
.col-title { margin: 0 0 22px; font-size: 20px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.col-title::after { content: ""; display: block; width: 40px; height: 3px; margin-top: 12px; background: var(--sun); }
.split-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }

/* ---------- Involvement ---------- */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 70px; }
.stat-box { padding: 30px 26px; border-radius: 4px; color: #fff; text-align: center; box-shadow: 0 24px 40px -30px rgba(6, 26, 58, .7); }
.stat-box:nth-child(1) { background: var(--sun); color: var(--brand-950); }
.stat-box:nth-child(2) { background: var(--brand); }
.stat-box:nth-child(3) { background: var(--teal); }
.stat-box b { display: block; font: 800 50px/1 var(--font-display); }
.stat-box b small { font-size: .38em; margin-left: 4px; }
.stat-box p { margin: 12px 0 0; font-size: 13.5px; opacity: .9; }
.challenge-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 960px; margin: 0 auto; }
.challenge-note { display: flex; align-items: center; gap: 14px; justify-content: center; max-width: 820px; margin: 60px auto 26px; text-align: left; }
.challenge-note p { margin: 0; color: rgba(255, 255, 255, .85); }
.dark-card { padding: 28px 26px; border-radius: 4px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); transition: border-color .25s, background .25s; }
.dark-card:hover { border-color: rgba(248, 184, 24, .5); background: rgba(255, 255, 255, .07); }
.dark-card .tone-icon { margin-bottom: 18px; }
.dark-card h4 { margin: 0 0 8px; color: #fff; font-size: 16px; }
.dark-card p { margin: 0; font-size: 13.5px; color: rgba(255, 255, 255, .68); }
.dark-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.scroll-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 1fr); gap: 20px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; }
.scroll-row > * { scroll-snap-align: start; }

/* ---------- Activities news ---------- */
.news-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-item { display: flex; flex-direction: column; padding: 26px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--sun); border-radius: 4px; color: var(--ink); transition: transform .25s, box-shadow .25s; }
.news-item:nth-child(4n + 2) { border-top-color: var(--brand); }
.news-item:nth-child(4n + 3) { border-top-color: var(--teal); }
.news-item:nth-child(4n + 4) { border-top-color: var(--brand-800); }
.news-item:hover { color: var(--ink); transform: translateY(-4px); box-shadow: 0 26px 40px -28px rgba(6, 26, 58, .55); }
.news-item__src { margin-bottom: 14px; color: var(--teal); font: 700 11px var(--font-display); letter-spacing: .14em; text-transform: uppercase; }
.news-item h3 { flex: 1; margin: 0 0 20px; font: 600 17px/1.6 var(--font-body); }
.news-item__more { color: var(--brand); font: 700 12px var(--font-display); letter-spacing: .08em; text-transform: uppercase; }

.empty-note { padding: 40px; text-align: center; border: 2px dashed var(--line-strong); border-radius: 4px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: start; }
.contact-panel { position: relative; overflow: hidden; padding: 36px 32px; border-radius: 4px; background: linear-gradient(180deg, #041128, var(--brand-950) 60%, #0b2a5a); color: rgba(255, 255, 255, .75); }
.contact-panel > * { position: relative; z-index: 1; }
.contact-panel h3 { color: #fff; font-size: 20px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 24px; }
.contact-panel ul:not(.socials) { list-style: none; display: grid; gap: 20px; margin-bottom: 28px; }
.contact-panel ul:not(.socials) > li { display: flex; gap: 14px; align-items: flex-start; }
.contact-panel h5 { margin: 0 0 2px; color: #fff; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.contact-panel a, .contact-panel p { margin: 0; color: rgba(255, 255, 255, .72); font-size: 14px; word-break: break-word; }
.contact-panel a:hover { color: var(--sun); }
.contact-panel .tone-icon { width: 42px; height: 42px; font-size: 16px; }
.form-card { padding: 36px; background: #fff; border-radius: 4px; box-shadow: 0 30px 50px -36px rgba(6, 26, 58, .6); }
.form-card .form-grid { gap: 16px; }
.form-card label { font: 700 11.5px var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.form-control { border-radius: 3px; }
.form-control:focus { border-color: var(--sun); box-shadow: 0 0 0 3px rgba(248, 184, 24, .25); }
.map-card { border-radius: 4px; border-top: 4px solid var(--sun); }

/* ---------- CTA band ---------- */
.cta-band { overflow: hidden; }
.cta-band::before { background: linear-gradient(90deg, rgba(4, 17, 40, .94), rgba(0, 72, 168, .85)); }
.cta-band .stars { z-index: 1; }
.cta-band .container { z-index: 2; }
.cta-band__title { text-transform: uppercase; letter-spacing: .05em; font-weight: 800; }
.cta-band__title span { display: block; margin-top: 6px; color: rgba(255, 255, 255, .7); font: 400 15px var(--font-body); letter-spacing: 0; text-transform: none; }

/* ---------- Gallery ---------- */
.gallery-grid--lg { gap: 0; }
.gallery-grid--lg .gallery-tile { border-radius: 0; }
.gallery-tile::after { background: linear-gradient(180deg, rgba(0, 72, 168, .2), rgba(6, 26, 58, .85)); }
.gallery-tile__icon { border-radius: 50%; background: var(--sun); color: var(--brand-950); }

/* Reveal hooks */
.js .info-grid > *, .js .zig > *, .js .process > *, .js .big-project, .js .stat-row > *, .js .dark-grid > *,
.js .challenge-row > *, .js .news-list > *, .js .roster > *, .js .check-cards > *, .js .contact-grid > *, .js .statement .container {
    opacity: 0; transform: translateY(16px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
    transition-delay: var(--d, 0s);
}

/* ---------- Responsive ---------- */
@media (max-width: 1150px) {
    .info-grid--4 { grid-template-columns: repeat(2, 1fr); }
    .process { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
    .process::before { display: none; }
}
@media (max-width: 991px) {
    .info-grid, .news-list, .dark-grid { grid-template-columns: 1fr 1fr; }
    .zig { grid-template-columns: 1fr; gap: 40px; }
    .zig:nth-child(even) .zig__media { order: 0; }
    .zig + .zig { margin-top: 70px; }
    .big-project { grid-template-columns: 1fr; }
    .big-project:nth-child(even) .big-project__media { order: 0; }
    .big-project__media { min-height: 260px; }
    .split-cols, .contact-grid { grid-template-columns: 1fr; }
    .stat-row { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
    .info-grid, .info-grid--4, .news-list, .dark-grid, .challenge-row { grid-template-columns: 1fr; }
    .process { grid-template-columns: 1fr 1fr; }
    .big-project__body, .form-card, .contact-panel { padding: 26px 20px; }
    .intro__media--photo::before, .zig__media::before { inset: 12px -10px -12px 10px !important; }
    .roster em { display: none; }
}

.plans--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 991px) { .plans--3 { grid-template-columns: 1fr; } }

/* ---------- WhatsApp chat button ---------- */
.wa-chat {
    position: fixed; left: 22px; bottom: 22px; z-index: 95;
    display: inline-flex; align-items: center; gap: 10px;
    height: 56px; padding: 0 18px 0 14px; border-radius: 28px;
    background: #25d366; color: #fff;
    font: 700 13px var(--font-display); letter-spacing: .04em;
    box-shadow: 0 14px 30px -12px rgba(18, 140, 126, .8);
    transition: transform .2s, background .2s;
}
.wa-chat i { font-size: 28px; }
.wa-chat:hover { background: #128c7e; color: #fff; transform: translateY(-3px); }
.wa-chat::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); animation: waPulse 2.4s infinite; }
@keyframes waPulse { 70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }
@media (max-width: 767px) {
    .wa-chat { left: 14px; bottom: 14px; width: 54px; height: 54px; padding: 0; justify-content: center; }
    .wa-chat__label { display: none; }
}

/* Optional admin-uploaded photos */
.member__avatar { overflow: hidden; }
.member__avatar img { width: 100%; height: 100%; object-fit: cover; }
.logo-row li img { max-height: 42px; max-width: 140px; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.logo-row li:hover img { filter: none; opacity: 1; }
