/*
Theme Name: Bridge Productions (Clarity)
Theme URI: https://bridgeproductions.org
Description: Child theme of Twenty Twenty-Five implementing the Bridge Productions "Clarity" design. Native-block content styled here; palette + fonts in theme.json. Dark mode is handled by the active "Dark Mode" code snippet.
Author: Bridge Productions
Template: twentytwentyfive
Version: 1.0.3
Requires at least: 6.7
Requires PHP: 8.0
Text Domain: twentytwentyfive-child
*/

/* ============================================================
   Design tokens map to WordPress preset color variables so the
   existing body.dark snippet (which overrides those same vars)
   flips the whole page automatically.
   navy teal teal-deep gray paper paper-2 white line
   ============================================================ */

:root{
  --bp-navy:#122438;
  --bp-teal:#1891A8;
  --bp-teal-deep:#0f7287;
  --bp-gray:#8d8d8d;
  --bp-paper:#f6f8f9;
  --bp-paper-2:#eef2f4;
  --bp-white:#ffffff;
  --bp-line:#dde4e8;
  --bp-muted:#46555f;
  --bp-nav-ink:#3a4854;
  --bp-navy-muted:#aebac4;
}
/* Dark mode: redefine tokens at body level so every var(--bp-*) flips.
   Complements the active Dark Mode snippet (which flips the wp preset vars). */
body.dark{
  --bp-navy:#eef4f8;
  --bp-teal:#23a6c0;
  --bp-teal-deep:#52cee2;
  --bp-gray:#8295a2;
  --bp-paper:#101d28;
  --bp-paper-2:#172634;
  --bp-white:#0d1822;
  --bp-line:#28394a;
  --bp-muted:#a9b8c4;
  --bp-nav-ink:#9fb0bd;
  --bp-navy-muted:#a9b8c4;
}

body{
  font-family: var(--wp--preset--font-family--source-sans-3), system-ui, sans-serif;
  color: var(--bp-navy);
  background: var(--bp-white);
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
}
html{scroll-behavior:smooth}

/* kill the theme's default big top/bottom block gaps inside our sections */
.bp-page :where(.wp-block-group, .wp-block-columns){margin-block:0}

/* ---------- content width helpers ---------- */
.bp-container,.bp-inner{max-width:1180px;margin-inline:auto;padding-inline:40px}
.bp-inner > *{max-width:100%}

/* ============================================================
   BUTTONS  (native .wp-block-button)
   ============================================================ */
.wp-block-button .wp-block-button__link{
  font-weight:600;font-size:15px;line-height:1;
  padding:12px 22px;border-radius:6px;border:1px solid transparent;
  transition:all .2s;
}
.wp-block-button.bp-btn-lg .wp-block-button__link{padding:15px 28px;font-size:16px}

/* primary comes from theme.json (teal -> teal-deep) */

.wp-block-button.bp-btn-ghost .wp-block-button__link{
  background:transparent;color:var(--bp-navy);border-color:var(--bp-line);
}
.wp-block-button.bp-btn-ghost .wp-block-button__link:hover{
  border-color:var(--bp-teal);color:var(--bp-teal-deep);
}
.wp-block-button.bp-btn-navy .wp-block-button__link{background:var(--bp-navy);color:#fff}
.wp-block-button.bp-btn-navy .wp-block-button__link:hover{background:#1d3a57}
.wp-block-button.bp-btn-white .wp-block-button__link{background:#fff;color:#122438}
.wp-block-button.bp-btn-white .wp-block-button__link:hover{background:#e8eef1}
.wp-block-button.bp-btn-outline .wp-block-button__link{
  background:transparent;color:#fff;border-color:rgba(255,255,255,.3);
}
.wp-block-button.bp-btn-outline .wp-block-button__link:hover{border-color:#fff}

/* ============================================================
   HEADER  (template part)
   ============================================================ */
.bp-header{
  position:sticky;top:0;z-index:50;
  background:rgba(255,255,255,.86);backdrop-filter:blur(14px);
  border-bottom:1px solid var(--bp-line);
}
body.dark .bp-header{background:rgba(13,24,34,.86)}
.bp-header .bp-header-inner{
  max-width:1180px;margin-inline:auto;padding:0 40px;
  min-height:74px;align-items:center;
}
.bp-logo{align-items:center;gap:12px}
.bp-logo img{height:38px;width:auto;display:block}
.bp-logo a{display:block;line-height:0}
.bp-logo-word{font-weight:700;font-size:19px;letter-spacing:-.01em;color:var(--bp-navy);margin:0}
.bp-logo-word a{color:inherit;text-decoration:none}
.bp-logo-sub{font-weight:300;color:var(--bp-gray)}
.bp-logo-dark{display:none}
body.dark .bp-logo-light{display:none}
body.dark .bp-logo-dark{display:block}
.bp-nav .wp-block-navigation__container{gap:30px}
.bp-nav a{color:var(--bp-nav-ink);font-size:15px;font-weight:500;transition:color .2s}
.bp-nav a:hover{color:var(--bp-teal-deep)}
.bp-header-cta{align-items:center;gap:14px}

/* theme-toggle button base (colors/sun-moon come from the dark-mode snippet) */
.theme-toggle{width:42px;height:42px;flex:none}

/* ============================================================
   HERO
   ============================================================ */
.bp-hero{padding:84px 0 70px;background:linear-gradient(180deg,var(--bp-paper),var(--bp-white))}
.bp-hero .wp-block-columns{gap:64px;align-items:center}
.bp-eyebrow{
  display:inline-flex;align-items:center;gap:14px;
  font-size:13px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--bp-teal-deep);
  margin-bottom:22px;
}
.bp-eyebrow::before{content:"";width:30px;height:2px;background:var(--bp-teal);display:inline-block}
.bp-hero h1{
  font-size:clamp(40px,5vw,68px);font-weight:700;letter-spacing:-.025em;line-height:1.03;
  color:var(--bp-navy);text-wrap:balance;margin:0 0 22px;
}
.bp-hero h1 .bp-hl{color:var(--bp-teal)}
.bp-hero .bp-lead{font-size:20px;color:var(--bp-muted);max-width:48ch;margin:0 0 32px}
.bp-hero-media{position:relative}
.bp-badge{
  position:absolute;left:-22px;bottom:-22px;max-width:220px;
  background:var(--bp-navy);color:#fff;padding:18px 22px;border-radius:12px;
  box-shadow:0 20px 50px rgba(18,36,56,.22);font-size:15px;font-weight:600;line-height:1.3;
}
.bp-badge p{margin:0;color:#fff}

/* ============================================================
   PLACEHOLDER IMAGE (clean, production-friendly — no dashed pattern)
   ============================================================ */
.bp-ph{
  position:relative;background:var(--bp-paper-2);border:1px solid var(--bp-line);
  border-radius:16px;display:flex;align-items:flex-end;overflow:hidden;min-height:100%;
}
.bp-ph.ratio-45{aspect-ratio:4/5}
.bp-ph.ratio-54{aspect-ratio:5/4}
.bp-ph .bp-ph-label{
  font-family:ui-monospace,"SF Mono",Menlo,monospace;font-size:11px;letter-spacing:.07em;
  text-transform:uppercase;color:#5c6b78;background:rgba(255,255,255,.78);
  padding:6px 10px;margin:12px;border-radius:3px;
}
.bp-hero-video video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}

/* ============================================================
   TRUST BAR
   ============================================================ */
.bp-trust{
  background:var(--bp-paper);border-top:1px solid var(--bp-line);border-bottom:1px solid var(--bp-line);
  padding:28px 0;
}
.bp-trust .bp-trust-inner{max-width:1180px;margin-inline:auto;padding:0 40px}
.bp-trust .bp-trust-label{font-family:ui-monospace,monospace;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--bp-gray);margin:0 0 18px}

.bp-trust-rotator{display:grid;justify-items:center}
.bp-trust-page{grid-area:1/1;display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:20px;opacity:0;visibility:hidden;transition:opacity .6s ease}
.bp-trust-page.is-active{opacity:1;visibility:visible}
.bp-trust-item{display:flex;align-items:center;justify-content:center;flex-shrink:0;height:72px;min-width:120px;padding:10px 20px;background:#fff;border:1px solid var(--bp-line);border-radius:10px}
.bp-trust-item img{max-height:48px;max-width:140px;width:auto;height:auto;object-fit:contain}
@media (prefers-reduced-motion: reduce){
  .bp-trust-page{transition:none}
}

/* ============================================================
   SECTIONS + HEADS
   ============================================================ */
.bp-section{padding:84px 0}
.bp-section.bp-alt{background:var(--bp-paper)}
.bp-section.bp-navy{background:var(--bp-navy);color:#fff}
.bp-head{max-width:680px;margin-bottom:44px}
.bp-head.bp-center{margin-inline:auto;text-align:center}
.bp-label{font-family:ui-monospace,monospace;font-size:12px;letter-spacing:.16em;text-transform:uppercase;color:var(--bp-teal-deep);margin-bottom:16px}
.bp-navy .bp-label{color:#3fc6dd}
.bp-head h2{font-size:clamp(30px,3.6vw,48px);font-weight:700;letter-spacing:-.025em;line-height:1.06;color:var(--bp-navy);text-wrap:balance;margin:0}
.bp-navy .bp-head h2{color:#fff}
.bp-head p{color:var(--bp-muted);font-size:18px;margin:16px 0 0}
.bp-navy .bp-head p{color:var(--bp-navy-muted)}

/* ============================================================
   PATHWAYS CARDS  (native Columns -> Column.bp-card)
   ============================================================ */
.bp-grid-3 .wp-block-columns,.bp-grid-3.wp-block-columns{gap:22px}
.bp-card{
  background:var(--bp-white);border:1px solid var(--bp-line);border-radius:16px;
  padding:32px 30px;transition:transform .25s,border-color .25s,box-shadow .25s;
  display:flex;flex-direction:column;gap:14px;
}
.bp-card:hover{transform:translateY(-5px);border-color:var(--bp-teal);box-shadow:0 24px 60px rgba(18,36,56,.12)}
.bp-pill{
  display:inline-flex;align-items:center;align-self:flex-start;gap:8px;
  font-size:12px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;
  padding:7px 13px;border-radius:30px;background:var(--bp-paper-2);color:var(--bp-teal-deep);
}
.bp-card h3{font-size:28px;font-weight:700;letter-spacing:-.01em;color:var(--bp-navy);margin:0}
.bp-card .bp-card-desc{color:var(--bp-muted);font-size:16px;margin:0}
.bp-card ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.bp-card ul li{position:relative;padding-left:22px;color:var(--bp-nav-ink);font-size:15px}
.bp-card ul li::before{content:"";position:absolute;left:0;top:8px;width:8px;height:8px;border-radius:50%;background:var(--bp-teal)}
.bp-card .bp-card-action{margin-top:auto;color:var(--bp-teal-deep);font-weight:600}
.bp-card .bp-card-action a{color:var(--bp-teal-deep)}

/* ============================================================
   STEPS  (native Columns -> Column.bp-step)
   ============================================================ */
.bp-steps .wp-block-columns,.bp-steps.wp-block-columns{gap:22px}
.bp-step{
  background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.1);
  border-radius:14px;padding:28px 24px;display:flex;flex-direction:column;gap:10px;
}
.bp-step .bp-step-num{
  width:42px;height:42px;border-radius:10px;background:var(--bp-teal);color:#fff;
  display:flex;align-items:center;justify-content:center;font-weight:700;font-size:18px;margin-bottom:10px;
}
.bp-step h3{font-size:19px;font-weight:600;color:#fff;margin:0}
.bp-step p{font-size:15px;color:var(--bp-navy-muted);margin:0}

/* ============================================================
   IMPACT
   ============================================================ */
.bp-impact .wp-block-columns{gap:60px;align-items:center}
.bp-quote{border-left:3px solid var(--bp-teal);padding-left:22px;margin:0}
.bp-quote p{font-size:19px;color:var(--bp-navy);font-style:italic;margin:0}
.bp-quote .bp-cite{display:block;margin-top:12px;font-size:14px;font-style:normal;color:var(--bp-gray)}
.bp-stats{display:flex;gap:40px;flex-wrap:wrap;margin-top:8px}
.bp-stat .bp-stat-num{font-size:42px;font-weight:700;color:var(--bp-teal-deep);line-height:1}
.bp-stat .bp-stat-label{font-size:14px;color:var(--bp-gray);margin-top:6px}

/* ============================================================
   ABOUT
   ============================================================ */
.bp-about .wp-block-columns{gap:60px;align-items:flex-start}
.bp-about-title h2{font-size:clamp(28px,3.4vw,42px);font-weight:700;letter-spacing:-.025em;line-height:1.08;color:var(--bp-navy);margin:6px 0 0;text-wrap:balance}
.bp-about-body p{color:var(--bp-muted);font-size:18px;line-height:1.65;margin:0 0 18px}
.bp-about-body p:last-child{margin-bottom:0}
@media(max-width:880px){.bp-about .wp-block-columns{gap:24px}}

/* ============================================================
   CTA BAND
   ============================================================ */
.bp-cta-band{padding:90px 0}
.bp-cta-box{
  background:linear-gradient(120deg,var(--bp-navy),#1d3a57);border-radius:24px;
  padding:70px;text-align:center;position:relative;overflow:hidden;
}
.bp-cta-box::after{
  content:"";position:absolute;right:-60px;top:-60px;width:280px;height:280px;border-radius:50%;
  background:radial-gradient(circle,rgba(24,145,168,.4),transparent 70%);
}
.bp-cta-box h2{font-size:clamp(30px,4vw,50px);font-weight:700;color:#fff;letter-spacing:-.025em;line-height:1.05;text-wrap:balance;max-width:18ch;margin:0 auto;position:relative}
.bp-cta-box p{color:var(--bp-navy-muted);font-size:18px;max-width:48ch;margin:22px auto 36px;position:relative}
.bp-cta-box .wp-block-buttons{justify-content:center;position:relative}

/* ============================================================
   PORTFOLIO (placeholder grid)
   ============================================================ */
.bp-ph.ratio-169{aspect-ratio:16/9}
.bp-portfolio-grid .wp-block-columns{gap:22px}
.bp-portfolio-grid .wp-block-image,.bp-portfolio-grid figure{margin:0}
.bp-ph-link{
  position:absolute;inset:0;z-index:2;
  display:flex;align-items:center;justify-content:center;
  text-decoration:none;transition:background .2s ease;
}
.bp-ph-link:hover,.bp-ph-link:focus-visible{background:rgba(13,24,34,.30)}
.bp-ph-link .bp-play{
  width:60px;height:60px;border-radius:50%;background:rgba(255,255,255,.92);
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 6px 18px rgba(13,24,34,.35);
  transition:transform .2s ease,background .2s ease;
}
.bp-ph-link .bp-play::before{
  content:"";display:block;width:0;height:0;margin-left:5px;
  border-style:solid;border-width:11px 0 11px 18px;
  border-color:transparent transparent transparent #122438;
}
.bp-ph-link:hover .bp-play,.bp-ph-link:focus-visible .bp-play{transform:scale(1.08);background:#fff}
/* Portfolio video lightbox */
.bp-modal-open{overflow:hidden}
.bp-modal{
  position:fixed;inset:0;z-index:9999;
  display:flex;align-items:center;justify-content:center;padding:24px;
  background:rgba(8,15,22,.86);
  opacity:0;visibility:hidden;transition:opacity .2s ease,visibility .2s ease;
}
.bp-modal.is-open{opacity:1;visibility:visible}
.bp-modal-dialog{position:relative;width:min(1120px,100%);aspect-ratio:16/9}
.bp-modal-frame{position:absolute;inset:0}
.bp-modal-frame iframe{
  width:100%;height:100%;border:0;border-radius:12px;background:#000;
  box-shadow:0 24px 60px rgba(0,0,0,.5);
}
.bp-modal-close{
  position:absolute;top:-46px;right:0;width:40px;height:40px;line-height:1;
  display:flex;align-items:center;justify-content:center;
  font-size:30px;color:#fff;background:transparent;border:0;border-radius:8px;cursor:pointer;
  transition:background .15s ease;
}
.bp-modal-close:hover,.bp-modal-close:focus-visible{background:rgba(255,255,255,.14)}
@media (max-width:600px){
  .bp-modal{padding:16px}
  .bp-modal-close{top:-42px}
}
/* Portfolio page: video grid + testimonial grid */
.bp-video-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.bp-video-card{display:flex;flex-direction:column}
.bp-video-card .bp-ph{min-height:0}
.bp-video-cap{font-size:15px;font-weight:600;color:var(--bp-navy);margin:14px 0 0}
.bp-quote-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:32px}
@media(max-width:900px){.bp-video-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:700px){.bp-quote-grid{grid-template-columns:1fr;gap:24px}}
@media(max-width:600px){.bp-video-grid{grid-template-columns:1fr}}

/* ============================================================
   TEAM (placeholder)
   ============================================================ */
.bp-team-grid .wp-block-columns{gap:22px;justify-content:center}
.bp-team-grid .wp-block-column.bp-member{flex:0 0 200px}
.bp-member{text-align:center;display:flex;flex-direction:column;align-items:center;gap:4px}
.bp-avatar{width:104px;height:104px;border-radius:50%;background:var(--bp-paper-2);border:1px solid var(--bp-line);margin-bottom:14px}
.bp-member h3{font-size:18px;font-weight:700;color:var(--bp-navy);margin:0}
.bp-member p{font-size:14px;color:var(--bp-gray);margin:0}
.bp-member-link{display:flex;flex-direction:column;align-items:center;text-decoration:none;color:inherit}
.bp-member-link:hover h3{color:var(--bp-teal-deep)}
.bp-board-wrap{margin-top:56px;text-align:center}
.bp-board-list{max-width:520px;margin-inline:auto}
.bp-board-list p{display:flex;justify-content:space-between;gap:16px;padding:14px 0;margin:0;border-bottom:1px solid var(--bp-line);font-size:16px}
.bp-board-list p:last-child{border-bottom:none}
.bp-board-name{font-weight:700;color:var(--bp-navy)}
.bp-board-role{color:var(--bp-muted)}

/* ============================================================
   CONTACT
   ============================================================ */
.bp-contact .wp-block-columns{gap:60px;align-items:center}
.bp-contact-email{font-size:clamp(22px,2.6vw,30px);font-weight:700;color:var(--bp-teal-deep);letter-spacing:-.01em;margin:0}
.bp-contact-email a{color:var(--bp-teal-deep)}

/* ============================================================
   FOOTER  (template part)
   ============================================================ */
.bp-footer{background:var(--bp-paper);border-top:1px solid var(--bp-line);padding:64px 0 36px}
.bp-footer .bp-footer-inner{max-width:1180px;margin-inline:auto;padding:0 40px}
.bp-foot-top .wp-block-columns{gap:40px}
.bp-foot-top{padding-bottom:46px;border-bottom:1px solid var(--bp-line)}
.bp-foot-brand p{color:#5c6b78;font-size:15px;margin-top:18px;max-width:30ch}
.bp-foot-col h4{font-size:13px;letter-spacing:.12em;text-transform:uppercase;color:var(--bp-gray);margin-bottom:18px;font-weight:600}
.bp-foot-col ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:11px}
.bp-foot-col a{color:var(--bp-muted);font-size:15px}
.bp-foot-col a:hover{color:var(--bp-teal-deep)}
.bp-foot-bot{display:flex;justify-content:space-between;padding-top:26px;color:var(--bp-gray);font-size:14px;flex-wrap:wrap;gap:12px}

/* ============================================================
   INTERIOR PAGES (Apply / Give / Join)
   ============================================================ */
.bp-subhero{padding:70px 0 64px;background:linear-gradient(180deg,var(--bp-paper),var(--bp-white));border-bottom:1px solid var(--bp-line)}
.bp-crumb{font-family:ui-monospace,monospace;font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--bp-gray);margin-bottom:18px}
.bp-subhero h1{font-size:clamp(36px,4.6vw,60px);font-weight:700;letter-spacing:-.025em;line-height:1.02;color:var(--bp-navy);max-width:18ch;text-wrap:balance;margin:0}
.bp-subhero h1 .bp-hl{color:var(--bp-teal)}
.bp-subhero .bp-lead{font-size:20px;color:var(--bp-muted);max-width:54ch;margin:22px 0 0}
.bp-faq details{border-bottom:1px solid var(--bp-line)}
.bp-faq summary{cursor:pointer;padding:24px 0;font-size:19px;font-weight:600;color:var(--bp-navy);list-style:none;display:flex;justify-content:space-between;align-items:center;gap:20px}
.bp-faq summary::-webkit-details-marker{display:none}
.bp-faq summary::after{content:"+";font-size:26px;color:var(--bp-teal);transition:transform .2s}
.bp-faq details[open] summary::after{transform:rotate(45deg)}
.bp-faq details p{padding:0 0 24px;color:var(--bp-muted);font-size:16px;max-width:62ch}

/* ============================================================
   TEAM BIO PAGE
   ============================================================ */
.bp-bio-hero .bp-inner{text-align:center}
.bp-bio-photo{width:160px;height:160px;border-radius:50%;background:var(--bp-paper-2);border:1px solid var(--bp-line);margin:0 auto 24px}
.bp-bio-role{font-size:20px;color:var(--bp-muted);margin:22px 0 0}
.bp-bio-body{max-width:640px;margin-inline:auto;text-align:left}
.bp-bio-body p{font-size:17px;line-height:1.75;color:var(--bp-muted);margin:0 0 20px}
.bp-bio-back{color:var(--bp-teal-deep);font-weight:600;text-decoration:none}
.bp-bio-back:hover{text-decoration:underline}

/* ============================================================
   DARK MODE — section/component overrides (match design reference)
   Cases where a plain token flip is wrong (navy bg would go light).
   ============================================================ */
body.dark .bp-card{background:var(--bp-paper)}
body.dark .bp-badge{background:#122438}
body.dark .bp-section.bp-navy{background:#0a141d}
body.dark .bp-cta-box{background:linear-gradient(120deg,#13283d,#0f2032)}
body.dark .bp-ph .bp-ph-label{background:rgba(13,24,34,.8);color:#9fb0bd}
body.dark .bp-foot-brand p{color:#8295a2}

/* ============================================================
   INTERIOR PAGES (Apply/Give/Join) — tighter vertical rhythm
   than the marketing homepage (pages 33/34/35)
   ============================================================ */
.page-id-33 .bp-section,.page-id-34 .bp-section,.page-id-35 .bp-section{padding-block:44px}
.page-id-33 .bp-subhero,.page-id-34 .bp-subhero,.page-id-35 .bp-subhero{padding:48px 0 36px}
.page-id-33 .bp-cta-band,.page-id-34 .bp-cta-band,.page-id-35 .bp-cta-band{padding-block:48px}
.page-id-33 .bp-head,.page-id-34 .bp-head,.page-id-35 .bp-head{margin-bottom:28px}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media(max-width:880px){
  .bp-nav{display:none}
  .bp-hero .wp-block-columns{gap:32px}
  .bp-grid-3 .wp-block-columns{gap:16px}
}
@media(max-width:600px){
  .bp-section,.bp-hero{padding:56px 0}
  .bp-cta-box{padding:44px 24px}
  .bp-badge{position:static;margin-top:16px;max-width:none}
  .bp-inner,.bp-header-inner,.bp-trust-inner,.bp-footer-inner{padding-inline:20px}
  .bp-header-cta .bp-btn-ghost{display:none}
}
