/* ==========================================================================
   Mosaic Blue - static rebuild of the Wix site
   Layout, palette and typography matched to the live site.
   Markup, CSS and JS are written from scratch (no Wix code).
   ========================================================================== */

:root{
  /* Palette sampled from the live site */
  --navy:        #081959;
  --navy-bar:    #213e8c;
  --rose:        #c84869;
  --blue:        #2a70de;
  --green:       #45952c;
  --cream:       #f7f5e1;
  --sky:         #cfe1ff;
  --orange:      #fba714;
  --ink:         #333333;
  --grey:        #9b9b9b;

  /* Poppins is the real heading face on the live site.
     Avenir LT (licensed through Wix) is replaced by Nunito Sans,
     the closest freely-licensed match. */
  --f-head: "Poppins", "Segoe UI", Helvetica, Arial, sans-serif;
  --f-body: "Nunito Sans", "Poppins", "Segoe UI", Helvetica, Arial, sans-serif;

  --header-h: 110px;
  --wrap: 1200px;
  --prose: 980px;
}

*,*::before,*::after{box-sizing:border-box}

html{scroll-behavior:smooth}

body{
  margin:0;
  font-family:var(--f-body);
  font-weight:300;
  font-size:18px;
  line-height:1.7;
  color:var(--ink);
  background:#fff;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

img{max-width:100%;display:block}
a{color:inherit}

h1,h2,h3,h4{
  font-family:var(--f-head);
  font-weight:600;
  color:var(--ink);
  margin:0;
  line-height:1.3;
}

p{margin:0 0 1.2em}
p:last-child{margin-bottom:0}

.wrap{max-width:var(--wrap);margin:0 auto;padding:0 24px}
.prose{max-width:var(--prose);margin:0 auto;padding:0 24px}
.center{text-align:center}

.skip-link{
  position:absolute;left:-9999px;top:0;z-index:2000;
  background:var(--navy);color:#fff;padding:12px 20px;font-family:var(--f-head);
}
.skip-link:focus{left:0}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header{
  position:fixed;top:0;left:0;right:0;z-index:1000;
  height:var(--header-h);
  background:#fff;
  display:flex;align-items:stretch;
  box-shadow:0 1px 0 rgba(0,0,0,.06);
}

.site-header__inner{
  flex:1;
  display:flex;align-items:center;
  padding-left:48px;
  min-width:0;
}

.logo{flex:0 0 auto;display:block}
.logo img{width:238px;height:auto}

.main-nav{
  flex:1;
  display:flex;align-items:center;justify-content:center;
  gap:clamp(18px,3.2vw,56px);
}

.main-nav a{
  font-family:var(--f-body);
  font-weight:300;
  font-size:17px;
  letter-spacing:.02em;
  text-transform:uppercase;
  text-decoration:none;
  color:#000;
  white-space:nowrap;
  padding:6px 2px;
  position:relative;
  transition:color .25s ease;
}
.main-nav a::after{
  content:"";position:absolute;left:0;right:0;bottom:0;height:2px;
  background:var(--blue);
  transform:scaleX(0);transform-origin:center;
  transition:transform .3s ease;
}
.main-nav a:hover::after,.main-nav a:focus-visible::after{transform:scaleX(1)}
.main-nav a[aria-current="page"]{color:var(--grey);cursor:default}
.main-nav a[aria-current="page"]::after{display:none}

.donate-btn{
  flex:0 0 auto;
  display:flex;align-items:center;justify-content:center;
  width:150px;
  background:var(--orange);
  color:#fff;
  font-family:var(--f-head);
  font-weight:600;
  font-size:21px;
  text-decoration:none;
  transition:background .25s ease;
}
.donate-btn:hover,.donate-btn:focus-visible{background:#e3940a}

.nav-toggle{
  display:none;
  flex:0 0 auto;
  width:56px;background:none;border:0;cursor:pointer;
  padding:0;align-items:center;justify-content:center;
}
.nav-toggle span{
  display:block;width:26px;height:2px;background:#000;position:relative;
  transition:background .2s ease;
}
.nav-toggle span::before,.nav-toggle span::after{
  content:"";position:absolute;left:0;width:26px;height:2px;background:#000;
  transition:transform .3s ease,top .3s ease;
}
.nav-toggle span::before{top:-8px}
.nav-toggle span::after{top:8px}
.nav-toggle[aria-expanded="true"] span{background:transparent}
.nav-toggle[aria-expanded="true"] span::before{top:0;transform:rotate(45deg)}
.nav-toggle[aria-expanded="true"] span::after{top:0;transform:rotate(-45deg)}

/* page content sits below the fixed header */
main{padding-top:var(--header-h)}

/* ==========================================================================
   Social rail (fixed, right edge)
   ========================================================================== */

.social-rail{
  position:fixed;right:0;top:50%;transform:translateY(-50%);
  z-index:900;
  background:var(--blue);
  display:flex;flex-direction:column;
  padding:10px 0;
}
.social-rail a{
  display:flex;align-items:center;justify-content:center;
  width:46px;height:40px;color:#fff;
  transition:opacity .2s ease;
}
.social-rail a:hover{opacity:.7}
.social-rail svg{width:19px;height:19px;fill:currentColor}

/* ==========================================================================
   Hero / banners
   ========================================================================== */

.hero{
  width:100%;
  aspect-ratio:1900/888;
  max-height:76vh;
  background:#000 center/cover no-repeat;
}

.banner{
  width:100%;
  aspect-ratio:1900/500;
  max-height:60vh;
  background:#ccc center/cover no-repeat;
}

.page-title{
  background:var(--navy);
  color:#fff;
  text-align:center;
  padding:52px 24px;
}
.page-title h1{
  color:#fff;
  font-size:clamp(32px,5vw,70px);
  line-height:1.15;
}

/* ==========================================================================
   Home - three coloured tiles
   ========================================================================== */

.tiles{display:grid;grid-template-columns:repeat(3,1fr)}
.tile{
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:2px;
  min-height:152px;padding:22px 20px;
  text-align:center;text-decoration:none;color:#fff;
  transition:filter .3s ease;
}
.tile:hover{filter:brightness(1.12)}
.tile strong{
  font-family:var(--f-head);font-weight:600;font-size:clamp(24px,2.6vw,40px);
  line-height:1.1;
}
.tile span{font-size:17px;font-weight:300}
.tile--rose{background:var(--rose)}
.tile--blue{background:var(--blue)}
.tile--navy{background:var(--navy)}

/* ==========================================================================
   Split rows (image + text)
   ========================================================================== */

.split{
  display:grid;grid-template-columns:1fr 1fr;align-items:center;
  gap:clamp(32px,5vw,80px);
  max-width:var(--wrap);margin:0 auto;padding:clamp(56px,7vw,100px) 24px;
}
.split__media img{width:100%;height:100%;object-fit:cover}
.split__body h2{font-size:clamp(24px,2.4vw,30px);line-height:1.7}
.split__body p{margin-top:1.1em}
.split__body .accent{color:var(--blue)}

/* full-bleed alternating bands (About: mission / vision) */
.band{
  display:grid;grid-template-columns:1fr 1fr;align-items:stretch;
  min-height:420px;
}
/* matches the 950x555 proportion of the bands on the live site */
.band__media{min-height:320px;aspect-ratio:950/555;background:#ccc center/cover no-repeat}
.band__media img{width:100%;height:100%;object-fit:cover}
.band__body{
  display:flex;flex-direction:column;justify-content:center;
  text-align:center;
  padding:clamp(36px,5vw,70px) clamp(24px,6vw,110px);
}
.band__body h2{font-size:clamp(26px,2.6vw,34px);margin-bottom:.6em}
.band--flip .band__media{order:2}
.band--flip .band__body{order:1}

/* two photos side by side */
.duo{display:grid;grid-template-columns:1fr 1fr}
.duo img{width:100%;height:100%;object-fit:cover;aspect-ratio:3/2}

/* ==========================================================================
   Quote band (green)
   ========================================================================== */

.quote-band{
  background:var(--green);
  color:#fff;
  text-align:center;
  padding:clamp(44px,6vw,80px) 24px;
}
.quote-band p{
  max-width:var(--prose);margin:0 auto;
  font-family:var(--f-body);font-weight:300;font-style:italic;
  font-size:clamp(21px,2.6vw,34px);line-height:1.35;
}
.quote-band cite{
  display:block;margin-top:14px;font-size:17px;font-style:normal;font-weight:300;
}

.section-head{
  text-align:center;
  padding:clamp(48px,6vw,80px) 24px 0;
}
.section-head h2{font-size:clamp(26px,3.4vw,40px)}

/* ==========================================================================
   Testimonial slider
   ========================================================================== */

.testimonials{padding:clamp(40px,5vw,70px) 0 clamp(48px,6vw,80px);position:relative}
.slider{max-width:1360px;margin:0 auto;padding:0 72px;overflow:hidden}
.slider__track{display:flex;transition:transform .6s cubic-bezier(.4,0,.2,1)}
.slide{
  flex:0 0 100%;
  display:grid;grid-template-columns:minmax(0,560px) 1fr;align-items:center;
}
.slide__photo{
  width:100%;aspect-ratio:1/1.03;border-radius:50%;object-fit:cover;
  border:8px solid #fff;box-shadow:0 10px 34px rgba(0,0,0,.14);
  position:relative;z-index:2;
}
.slide__card{
  background:var(--cream);
  padding:clamp(28px,3.4vw,46px) clamp(24px,3vw,44px) clamp(28px,3.4vw,46px) clamp(44px,5vw,80px);
  margin-left:-60px;
  font-size:17px;line-height:1.55;
}
.slide__card p{margin-bottom:1.1em}

.slider__arrow{
  position:absolute;top:50%;transform:translateY(-50%);
  background:none;border:0;cursor:pointer;color:var(--rose);
  width:52px;height:52px;display:flex;align-items:center;justify-content:center;
  transition:transform .2s ease;
}
.slider__arrow:hover{transform:translateY(-50%) scale(1.15)}
.slider__arrow--prev{left:8px}
.slider__arrow--next{right:8px}
.slider__arrow svg{width:40px;height:16px;stroke:currentColor;fill:none;stroke-width:1.5}

.slider__dots{display:flex;justify-content:center;gap:10px;margin-top:30px}
.slider__dots button{
  width:9px;height:9px;padding:0;border-radius:50%;cursor:pointer;
  border:1px solid var(--rose);background:transparent;
  transition:background .2s ease;
}
.slider__dots button[aria-current="true"]{background:var(--rose)}

/* ==========================================================================
   Make a difference (navy panel + photo)
   ========================================================================== */

.cta-split{display:grid;grid-template-columns:1fr 1.6fr;align-items:stretch}
.cta-split__panel{
  background:var(--navy);color:#fff;
  display:flex;flex-direction:column;justify-content:center;
  padding:clamp(40px,5vw,70px) clamp(24px,4vw,56px);
}
.cta-split__panel h2{color:#fff;font-size:clamp(34px,4.4vw,56px);line-height:1.08}
.cta-split__panel p{
  font-size:clamp(20px,2vw,26px);font-family:var(--f-head);font-weight:400;
  margin:.5em 0 1.2em;
}
.cta-split__media{min-height:320px}
.cta-split__media img{width:100%;height:100%;object-fit:cover;min-height:320px}

.btn{
  display:inline-block;align-self:flex-start;
  background:var(--orange);color:#fff;
  font-family:var(--f-head);font-weight:600;font-size:19px;
  padding:11px 28px;text-decoration:none;
  transition:background .25s ease,transform .2s ease;
}
.btn:hover,.btn:focus-visible{background:#e3940a;transform:translateY(-2px)}

/* ==========================================================================
   Programs page
   ========================================================================== */

.program-strip{
  display:grid;grid-template-columns:1fr 1.05fr 1fr;align-items:stretch;
  min-height:420px;
}
.program-strip img{width:100%;height:100%;object-fit:cover;min-height:280px}
.program-strip__card{
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  text-align:center;gap:18px;padding:40px 28px;background:#fff;
}
.program-strip__card h2{
  font-size:clamp(34px,4vw,50px);line-height:1.1;
  text-shadow:2px 3px 0 rgba(0,0,0,.18);
}
.program-strip__card h2.is-green{color:var(--green)}
.program-strip__card h2.is-rose{color:var(--rose)}
.program-strip__card .kicker{
  font-family:var(--f-body);font-weight:300;font-size:22px;
  letter-spacing:.14em;text-transform:uppercase;line-height:1.5;color:#000;
}
.program-strip__card .tagline{
  font-size:19px;font-weight:300;font-style:italic;max-width:19ch;
}
.program-strip__card .tagline.is-green{color:var(--green)}
.program-strip__card .tagline.is-rose{color:var(--rose)}

/* ==========================================================================
   Prose blocks
   ========================================================================== */

.text-block{padding:clamp(48px,6vw,80px) 0}
.text-block h2{font-size:clamp(26px,3vw,36px);margin-bottom:.7em}
.text-block h3{font-size:22px;margin:1.9em 0 .4em}
.text-block .lead{font-size:19px}
.text-block--center{text-align:center}

/* ==========================================================================
   Founder
   ========================================================================== */

.founder-bar{
  background:var(--navy-bar);color:#fff;text-align:center;
  padding:22px 24px;
}
.founder-bar h2{
  color:#fff;font-size:clamp(24px,3vw,36px);
  display:flex;align-items:center;justify-content:center;gap:16px;
}
.founder{
  display:grid;grid-template-columns:1.9fr 1fr;gap:clamp(30px,4vw,60px);
  max-width:var(--wrap);margin:0 auto;padding:clamp(40px,5vw,70px) 24px;
}
.founder h3{font-size:clamp(26px,2.6vw,32px);margin-bottom:.1em}
.founder .role{font-family:var(--f-head);font-weight:600;font-size:17px;margin-bottom:1.4em}
.founder img{width:100%;object-fit:cover;object-position:top center}

/* ==========================================================================
   Contact page
   ========================================================================== */

.contact-split{display:grid;grid-template-columns:1fr 1fr;align-items:stretch}
.contact-split__body{
  display:flex;flex-direction:column;justify-content:center;
  padding:clamp(40px,5vw,80px) clamp(24px,5vw,80px);
  text-align:center;
}
.contact-split__body h2{font-size:clamp(26px,3vw,36px);margin-bottom:.5em}
.contact-split__media{min-height:420px}
.contact-split__media img{width:100%;height:100%;object-fit:cover;min-height:420px}

.contact-form{
  margin:34px auto 0;max-width:470px;width:100%;text-align:left;
  background:#f7f8fa;padding:26px 24px 24px;
}
.field{margin-bottom:20px}
.field label{
  display:block;font-size:14px;font-weight:400;color:#555;margin-bottom:2px;
}
.field input,.field textarea{
  width:100%;border:0;border-bottom:1px solid #b9bcc2;background:transparent;
  font-family:var(--f-body);font-size:16px;font-weight:300;color:var(--ink);
  padding:7px 2px;transition:border-color .2s ease;
}
.field input:focus,.field textarea:focus{outline:none;border-bottom-color:var(--blue)}
.field textarea{resize:vertical;min-height:84px}
.field-row{display:grid;grid-template-columns:1fr 1fr;gap:22px}
.contact-form .btn{display:block;margin:4px auto 0;text-align:center;border:0;cursor:pointer;width:140px}
.form-note{margin-top:14px;font-size:15px;text-align:center;min-height:1.4em}
.form-note.is-ok{color:var(--green)}
.form-note.is-err{color:var(--rose)}

/* Honeypot: offered to bots, kept away from people. Moved off-screen rather
   than display:none, because a bot that skips hidden inputs is exactly the
   bot this is for. The markup also carries aria-hidden and tabindex="-1", so
   nobody tabbing or using a screen reader can reach it. */
.hp-field{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer{background:var(--sky);padding:clamp(40px,5vw,62px) 0 0}
.site-footer__cols{
  display:grid;grid-template-columns:repeat(3,1fr);
  gap:clamp(28px,4vw,60px);
  max-width:var(--wrap);margin:0 auto;padding:0 24px;
}
.site-footer h2{font-size:23px;margin-bottom:.35em}
.site-footer h3{font-size:21px;margin:1.1em 0 .2em}
.site-footer p{font-size:17px;line-height:1.6}
.site-footer a{color:inherit}
.site-footer .highlight{color:var(--navy-bar);font-weight:400}

.site-footer__bar{
  background:var(--navy-bar);color:#fff;
  margin-top:clamp(40px,5vw,62px);
  padding:13px 24px;
}
.site-footer__bar-inner{
  max-width:var(--wrap);margin:0 auto;
  display:flex;flex-wrap:wrap;gap:10px 28px;
  align-items:center;justify-content:space-between;
  font-size:15px;
}
.site-footer__bar a{text-decoration:none}
.site-footer__bar a:hover{text-decoration:underline}
.site-footer__legal{display:flex;flex-wrap:wrap;gap:8px}
.site-footer__legal span{opacity:.6}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

.reveal{opacity:0;transform:translateY(34px);transition:opacity .8s ease,transform .8s ease}
.reveal.is-visible{opacity:1;transform:none}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .reveal{opacity:1;transform:none;transition:none}
  .slider__track{transition:none}
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width:1180px){
  :root{--header-h:92px}
  .site-header__inner{padding-left:24px}
  .logo img{width:190px}
  .main-nav{gap:clamp(12px,2.2vw,28px)}
  .main-nav a{font-size:15px}
  .donate-btn{width:120px;font-size:18px}
  .slide__card{margin-left:-40px}
}

@media (max-width:900px){
  :root{--header-h:82px}
  body{font-size:17px}

  .nav-toggle{display:flex}
  .main-nav{
    position:fixed;top:var(--header-h);left:0;right:0;
    flex-direction:column;justify-content:flex-start;gap:0;
    background:#fff;
    padding:8px 0 20px;
    border-top:1px solid #eee;
    box-shadow:0 14px 24px rgba(0,0,0,.12);
    max-height:0;overflow:hidden;
    transition:max-height .35s ease;
  }
  .main-nav.is-open{max-height:70vh;overflow-y:auto}
  .main-nav a{display:block;width:100%;text-align:center;padding:14px 20px;font-size:17px}
  .main-nav a::after{display:none}

  .social-rail{
    top:auto;bottom:0;right:0;left:0;transform:none;
    flex-direction:row;justify-content:center;padding:0;
  }
  .social-rail a{height:44px;width:54px}

  .tiles{grid-template-columns:1fr}
  .split,.band,.duo,.cta-split,.contact-split,.founder,.program-strip{grid-template-columns:1fr}
  .band--flip .band__media{order:0}
  .band--flip .band__body{order:0}
  .split__media{order:-1}
  .founder img{max-width:420px;margin:0 auto}
  .program-strip img{aspect-ratio:4/3;min-height:0}
  .program-strip__card{order:-1;padding:44px 24px}

  .slider{padding:0 24px}
  .slide{grid-template-columns:1fr}
  .slide__photo{max-width:300px;margin:0 auto}
  .slide__card{margin:-40px 0 0;padding:70px 26px 30px}
  .slider__arrow{display:none}

  .cta-split__panel{text-align:center}
  .cta-split__panel .btn{align-self:center}

  .site-footer__cols{grid-template-columns:1fr;text-align:center}
  .site-footer__bar{margin-bottom:44px}
  .site-footer__bar-inner{justify-content:center;text-align:center}
}

@media (max-width:560px){
  .logo img{width:150px}
  .donate-btn{width:96px;font-size:16px}
  .field-row{grid-template-columns:1fr;gap:0}
  .hero{aspect-ratio:4/3}
  .banner{aspect-ratio:3/2}
}
