:root{
    --navy:#1B2A4A;
    --navy-deep:#131f38;
    --cream:#FBF6EE;
    --amber:#E8A33D;
    --terracotta:#C9553D;
    --sand:#DCD3C3;
    --sand-dim:rgba(220,211,195,0.55);
    --charcoal:#2E2E2E;
    --ink-soft:#4a5163;
    --radius-card:20px;
    --radius-pill:999px;
    --shadow-soft:0 14px 40px rgba(19,31,56,0.10);
    --shadow-strong:0 20px 50px rgba(19,31,56,0.18);
  }

  *{ box-sizing:border-box; }
  html{ scroll-behavior:smooth; overflow-x:hidden; width:100%; font-size:118%; }
  body{ overflow-x:hidden; width:100%; }
  body{ margin:0; font-family:'Figtree', sans-serif; background:var(--cream); color:var(--charcoal); -webkit-font-smoothing:antialiased; }
  a{ text-decoration:none; color:inherit; }
  img{ display:block; max-width:100%; }
  a:focus-visible, button:focus-visible{ outline:2px solid var(--amber); outline-offset:3px; border-radius:2px; }
  .wrap{ max-width:1200px; margin:0 auto; padding:0 1.75rem; }
  h1,h2,h3{ font-family:'Fraunces', serif; margin:0; }
  .eyebrow{ font-weight:700; font-size:0.78rem; letter-spacing:0.14em; text-transform:uppercase; color:var(--terracotta); margin:0 0 0.85rem; display:block; }
  .section-title{ font-size:clamp(1.6rem, 3vw, 2.3rem); font-weight:600; color:var(--navy); line-height:1.2; margin-bottom:1rem; }
  .section-lede{ font-size:1.02rem; line-height:1.75; color:var(--ink-soft); max-width:60ch; }
  section{ padding:5rem 0; }
  @media (max-width:720px){ section{ padding:3.25rem 0; } }

  .btn{
    display:inline-flex; align-items:center; gap:0.5rem; font-weight:600; font-size:0.92rem;
    padding:0.75rem 1.5rem; border-radius:var(--radius-pill); border:none; cursor:pointer;
    transition:background 0.2s ease, transform 0.15s ease, color 0.2s ease, border-color 0.2s ease;
  }
  .btn svg{ width:15px; height:15px; }
  .btn-primary{ background:var(--terracotta); color:var(--cream); }
  .btn-primary:hover{ background:#b3492f; transform:translateY(-1px); }
  .btn-ghost{ background:transparent; color:var(--navy); border:1.5px solid rgba(27,42,74,0.25); }
  .btn-ghost:hover{ border-color:var(--navy); background:rgba(27,42,74,0.05); }
  .btn-on-dark{ background:var(--amber); color:var(--navy-deep); }
  .btn-on-dark:hover{ background:#d4922f; transform:translateY(-1px); }

  .fade-up{ opacity:0; transform:translateY(18px); }
  .fade-up.is-visible{ opacity:1; transform:translateY(0); transition:opacity 0.7s ease, transform 0.7s ease; }
  @media (prefers-reduced-motion: reduce){ .fade-up{ opacity:1; transform:none; transition:none; } }

  /* ================= NAVBAR ================= */
  .nav-wrap{ position:fixed; top:0; left:0; width:100%; z-index:1000; margin-top: -10px; display:flex; justify-content:center; padding-top:1.25rem; pointer-events:none; }
  .navbar{
    pointer-events:auto; width:80%; max-width:1180px; display:flex; align-items:center; justify-content:space-between;
    gap:1.5rem; padding:0.75rem 1.25rem 0.75rem 1rem;
    background:rgba(27,42,74,0.72); backdrop-filter:blur(14px) saturate(140%); -webkit-backdrop-filter:blur(14px) saturate(140%);
    border:1px solid rgba(232,163,61,0.18); border-radius:var(--radius-pill); box-shadow:0 8px 30px rgba(19,31,56,0.18);
    transition:width 0.45s cubic-bezier(.22,1,.36,1), max-width 0.45s cubic-bezier(.22,1,.36,1),
               border-radius 0.45s cubic-bezier(.22,1,.36,1), background 0.45s ease, padding 0.45s ease;
  }
  .navbar.is-scrolled{
    width:100%; max-width:100%; border-radius:0; padding:0.7rem 2.5rem;margin-top: -20px;
    background:rgba(19,31,56,0.92); border-color:transparent; border-bottom:1px solid rgba(232,163,61,0.14);
  }
  .nav-logo{ display:flex; align-items:center; gap:0.6rem; flex-shrink:0; }
  .nav-logo .glyph{
    width:34px; height:34px; border-radius:50%; background:var(--amber); color:var(--navy-deep);
    display:flex; align-items:center; justify-content:center; font-family:'Fraunces', serif; font-weight:700; font-size:1rem; flex-shrink:0;
  }
  /* Alternate logo: swap .glyph + .name for a real image asset, then uncomment
     the <img> in the HTML and this rule.
  .nav-logo-img{ height:34px; width:auto; display:block; }
  */
  .nav-logo .name{ font-family:'Fraunces', serif; font-weight:600; font-size:1.02rem; color:var(--cream); white-space:nowrap; max-width:38vw; overflow:hidden; text-overflow:ellipsis; }
  .nav-links{ display:flex; align-items:center; gap:2rem; list-style:none; margin:0; padding:0; }
  .nav-links a{ position:relative; color:var(--sand); font-size:0.93rem; font-weight:500; padding:0.3rem 0.05rem; transition:color 0.2s ease; }
  .nav-links a::after{ content:""; position:absolute; left:0; bottom:-2px; width:0%; height:2px; background:var(--amber); transition:width 0.25s ease; }
  .nav-links a:hover{ color:var(--cream); }
  .nav-links a:hover::after{ width:100%; }
  .nav-links a.active{ color:var(--cream); }
  .nav-links a.active::after{ width:100%; background:var(--terracotta); }
  .nav-cta{
    display:inline-flex; align-items:center; gap:0.45rem; background:var(--terracotta); color:var(--cream);
    font-weight:600; font-size:0.88rem; padding:0.6rem 1.25rem; border-radius:var(--radius-pill); border:none;
    cursor:pointer; white-space:nowrap; flex-shrink:0; transition:background 0.2s ease, transform 0.15s ease;
  }
  .nav-cta:hover{ background:#b3492f; transform:translateY(-1px); }
  .nav-toggle{ display:none; background:none; border:none; cursor:pointer; padding:0.4rem; color:var(--cream); min-width:44px; min-height:44px; align-items:center; justify-content:center; }
  .nav-toggle svg{ width:22px; height:22px; }
  @media (max-width:820px){
    .navbar{ width:92%; padding:0.65rem 0.65rem 0.65rem 0.9rem; }
    .navbar.is-scrolled{ padding:0.6rem 1.1rem; }
    .nav-links{
      position:fixed; top:0; right:0; height:100vh; width:min(78vw,320px); background:var(--navy-deep);
      flex-direction:column; align-items:flex-start; justify-content:center; gap:1.75rem; padding:2rem;
      transform:translateX(100%); transition:transform .35s ease;
    }
    .nav-links.is-open{ transform:translateX(0); }
    .nav-links a{ font-size:1.1rem; }
    .nav-cta{ display:none; }
    .nav-links .mobile-cta{ display:inline-flex; margin-top:0.5rem; }
    .nav-toggle{ display:inline-flex; }
  }
  @media (max-width:400px){
    .navbar{ width:94%; padding:0.6rem 0.55rem 0.6rem 0.75rem; }
    .navbar.is-scrolled{ padding:0.55rem 0.9rem; }
    .nav-logo .glyph{ width:30px; height:30px; font-size:0.9rem; }
    .nav-logo .name{ font-size:0.92rem; max-width:32vw; }
  }

  /* ================= PAGE HEADER ================= */
  .page-header{
    position:relative; padding:10.5rem 0 4rem;
    background:radial-gradient(1000px 460px at 15% -10%, rgba(232,163,61,0.16), transparent 60%),
               linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
    color:var(--cream); overflow:hidden;
  }
  .page-header::before{
    content:""; position:absolute; inset:0;
    background-image:radial-gradient(rgba(251,246,238,0.05) 1px, transparent 1px);
    background-size:22px 22px; opacity:0.5;
  }
  .page-header .wrap{ position:relative; z-index:1; max-width:700px; }
  .page-header h1{ font-size:clamp(2.1rem, 4.6vw, 3.2rem); font-weight:600; line-height:1.14; margin-bottom:1rem; }
  .page-header p{ color:var(--sand); font-size:1.05rem; line-height:1.75; max-width:54ch; }

  /* ================= SUB NAV (in-page tabs) ================= */
  .subnav-wrap{ position:sticky; top:0; z-index:500; background:var(--cream); border-bottom:1px solid rgba(27,42,74,0.08); }
  .subnav{ display:flex; gap:0.5rem; overflow-x:auto; padding:1rem 0; scrollbar-width:none; }
  .subnav::-webkit-scrollbar{ display:none; }
  .subnav a{
    flex-shrink:0; font-weight:600; font-size:0.88rem; padding:0.55rem 1.1rem;
    border-radius:var(--radius-pill); color:var(--ink-soft); border:1.5px solid rgba(27,42,74,0.12);
    transition:background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  }
  .subnav a:hover{ border-color:var(--amber); }
  .subnav a.is-active{ background:var(--navy); color:var(--cream); border-color:var(--navy); }

  /* ================= SPLIT LAYOUT ================= */
  .split{ display:grid; grid-template-columns:1fr 1fr; gap:4rem; align-items:center; }
  .split .media{ border-radius:var(--radius-card); overflow:hidden; box-shadow:var(--shadow-soft); aspect-ratio:4/3; }
  .split .media img{ width:100%; height:100%; object-fit:cover; }
  @media (max-width:880px){ .split{ grid-template-columns:1fr; gap:2.5rem; } }
  .split.reverse .media{ order:2; }
  @media (max-width:880px){ .split.reverse .media{ order:1; } .split.reverse .copy{ order:2; } }

  .value-list{ list-style:none; margin:1.75rem 0 0; padding:0; display:grid; gap:0.9rem; }
  .value-list li{ display:flex; gap:0.75rem; align-items:flex-start; font-size:0.96rem; color:var(--ink-soft); line-height:1.55; }
  .value-list .dot{
    width:8px; height:8px; border-radius:50%; background:var(--terracotta); margin-top:0.5rem; flex-shrink:0;
  }

  /* ================= WHAT WE DO CARDS ================= */
  .help-grid{ display:grid; grid-template-columns:repeat(3, 1fr); gap:1.75rem; margin-top:3rem; }
  @media (max-width:920px){ .help-grid{ grid-template-columns:repeat(2,1fr); } }
  @media (max-width:600px){ .help-grid{ grid-template-columns:1fr; } }
  .help-card{ background:#fff; border-radius:var(--radius-card); overflow:hidden; box-shadow:var(--shadow-soft); transition:transform 0.25s ease, box-shadow 0.25s ease; }
  .help-card:hover{ transform:translateY(-6px); box-shadow:var(--shadow-strong); }
  .help-card .thumb{ aspect-ratio:16/10; overflow:hidden; }
  .help-card .thumb img{ width:100%; height:100%; object-fit:cover; }
  .help-card .body{ padding:1.5rem 1.5rem 1.75rem; }
  .help-card h3{ font-size:1.06rem; font-weight:600; color:var(--navy); margin-bottom:0.6rem; }
  .help-card p{ font-size:0.92rem; line-height:1.6; color:var(--ink-soft); margin:0; }

  /* ================= JOB SEARCH PROGRAMME ================= */
  .programme-section{ background:var(--navy); color:var(--cream); }
  .programme-grid{ display:grid; grid-template-columns:1fr 1fr; gap:4rem; align-items:center; }
  @media (max-width:880px){ .programme-grid{ grid-template-columns:1fr; gap:2.5rem; } }
  .programme-section .eyebrow{ color:var(--amber); }
  .programme-section h2{ color:var(--cream); }
  .programme-section .section-lede{ color:var(--sand); }
  .programme-media{ border-radius:var(--radius-card); overflow:hidden; box-shadow:var(--shadow-strong); aspect-ratio:4/3; }
  .programme-media img{ width:100%; height:100%; object-fit:cover; }
  .step-list{ list-style:none; margin:2rem 0 0; padding:0; display:grid; gap:1.1rem; }
  .step-list li{ display:flex; gap:1rem; align-items:flex-start; }
  .step-list .num{
    width:32px; height:32px; border-radius:50%; background:rgba(232,163,61,0.16); color:var(--amber);
    font-family:'Fraunces', serif; font-weight:600; font-size:0.9rem; display:flex; align-items:center; justify-content:center; flex-shrink:0;
  }
  .step-list .text{ color:var(--sand); font-size:0.95rem; line-height:1.6; padding-top:0.3rem; }
  .step-list .text b{ color:var(--cream); display:block; margin-bottom:0.15rem; font-weight:600; }

  /* ================= TEAM ================= */
  .team-lead{
    display:grid; grid-template-columns:0.85fr 1.15fr; gap:3rem; align-items:center;
    background:#fff; border-radius:var(--radius-card); box-shadow:var(--shadow-soft); overflow:hidden; margin-bottom:2.5rem;
  }
  .team-lead .photo{ aspect-ratio:1/1; overflow:hidden; }
  .team-lead .photo img{ width:100%; height:100%; object-fit:cover; }
  .team-lead .info{ padding:2.5rem 2.5rem 2.5rem 0; }
  @media (max-width:820px){
    .team-lead{ grid-template-columns:1fr; }
    .team-lead .info{ padding:0 1.75rem 2rem; }
  }
  .team-lead .role{ color:var(--terracotta); font-weight:700; font-size:0.8rem; letter-spacing:0.08em; text-transform:uppercase; margin-bottom:0.5rem; display:block; }
  .team-lead h3{ font-size:1.4rem; font-weight:600; color:var(--navy); margin-bottom:0.75rem; }
  .team-lead p{ color:var(--ink-soft); line-height:1.7; font-size:0.96rem; margin:0; }

  .team-photo-wide{ border-radius:var(--radius-card); overflow:hidden; box-shadow:var(--shadow-soft); aspect-ratio:21/9; }
  .team-photo-wide img{ width:100%; height:100%; object-fit:cover; }
  .team-caption{ text-align:center; color:var(--ink-soft); font-size:0.9rem; margin-top:1rem; }

  /* ================= CTA STRIP ================= */
  .cta-strip{ background:linear-gradient(120deg, var(--terracotta), #a8442e); color:var(--cream); border-radius:28px; padding:3.5rem 3rem; text-align:center; }
  .cta-strip h2{ color:var(--cream); font-size:clamp(1.5rem,3vw,2.1rem); margin-bottom:0.75rem; }
  .cta-strip p{ color:rgba(251,246,238,0.9); margin-bottom:1.75rem; }
  .cta-actions{ display:flex; gap:1rem; justify-content:center; flex-wrap:wrap; }

  /* ================= FOOTER ================= */
  .site-footer{ position:relative; background:linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%); color:var(--cream); overflow:hidden; padding:5rem 1.5rem 0; }
  .watermark{
    position:absolute; left:50%; bottom:-2.2rem; transform:translateX(-50%); width:100%; text-align:center;
    font-family:'Fraunces', serif; font-weight:600; font-size:clamp(2.6rem, 11vw, 9rem); letter-spacing:-0.01em;
    white-space:nowrap; color:transparent; -webkit-text-stroke:1px rgba(232,163,61,0.16); pointer-events:none; user-select:none; z-index:0;
  }
  .footer-inner{ position:relative; z-index:1; max-width:1240px; margin:0 auto; }
  .footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1.15fr; gap:3rem; padding-bottom:3.5rem; border-bottom:1px solid rgba(220,211,195,0.15); }
  @media (max-width:880px){ .footer-grid{ grid-template-columns:1fr 1fr; row-gap:2.75rem; } }
  @media (max-width:540px){ .footer-grid{ grid-template-columns:1fr; } }
  .col-brand{ padding-right:1rem; }
  .brand-mark{ display:flex; align-items:center; gap:0.65rem; margin-bottom:1.1rem; }
  .brand-mark .glyph{
    width:38px; height:38px; border-radius:50%; background:var(--amber); color:var(--navy-deep);
    display:flex; align-items:center; justify-content:center; font-family:'Fraunces', serif; font-weight:700; font-size:1.1rem; flex-shrink:0;
  }
  .brand-mark .name{ font-family:'Fraunces', serif; font-weight:600; font-size:1.15rem; color:var(--cream); }
  .col-brand p.tagline{ font-size:0.95rem; line-height:1.65; color:var(--sand); max-width:30ch; margin:0 0 1.6rem; }
  .social-row{ display:flex; gap:0.65rem; }
  .social-row a{
    width:36px; height:36px; border-radius:50%; border:1px solid rgba(220,211,195,0.3);
    display:flex; align-items:center; justify-content:center; color:var(--sand);
    transition:border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
  }
  .social-row a:hover{ border-color:var(--amber); color:var(--navy-deep); background:var(--amber); }
  .social-row svg{ width:16px; height:16px; }
  .col-links h3{ font-family:'Fraunces', serif; font-weight:600; font-size:0.85rem; letter-spacing:0.09em; text-transform:uppercase; color:var(--amber); margin:0 0 1.25rem; }
  .col-links ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:0.75rem; }
  .col-links a{ font-size:0.95rem; color:var(--sand); position:relative; transition:color 0.2s ease; }
  .col-links a:hover{ color:var(--cream); }
  .col-links a::before{
    content:""; position:absolute; left:-14px; top:50%; width:5px; height:5px; border-radius:50%;
    background:var(--terracotta); transform:translateY(-50%) scale(0); transition:transform 0.2s ease;
  }
  .col-links a:hover::before{ transform:translateY(-50%) scale(1); }
  .col-contact address{ font-style:normal; font-size:0.95rem; line-height:1.7; color:var(--sand); margin:0 0 1.4rem; }
  .col-contact address a:hover{ color:var(--amber); }
  .footer-donate-btn{
    display:inline-flex; align-items:center; gap:0.5rem; background:var(--terracotta); color:var(--cream);
    font-weight:600; font-size:0.9rem; padding:0.7rem 1.3rem; border-radius:var(--radius-pill); border:none; cursor:pointer;
    transition:background 0.2s ease, transform 0.15s ease;
  }
  .footer-donate-btn:hover{ background:#b3492f; transform:translateY(-1px); }
  .footer-bottom{
    position:relative; z-index:1; max-width:1240px; margin:0 auto; display:flex; align-items:center; justify-content:space-between;
    flex-wrap:wrap; gap:1rem; padding:1.6rem 0 4.5rem; font-size:0.82rem; color:var(--sand-dim);
  }
  .footer-bottom .legal{ display:flex; gap:1.5rem; flex-wrap:wrap; }
  .footer-bottom .legal a:hover{ color:var(--amber); }
  .charity-reg strong{ color:var(--sand); font-weight:600; }


  /* ================= VIDEO WALL ================= */
  .video-wall{ display:grid; grid-template-columns:repeat(2, 1fr); gap:1.75rem; margin-top:3rem; }
  @media (max-width:820px){ .video-wall{ grid-template-columns:1fr; } }
  .video-card{
    background:#fff; border-radius:var(--radius-card); overflow:hidden; box-shadow:var(--shadow-soft);
    transition:transform 0.25s ease, box-shadow 0.25s ease;
  }
  .video-card:hover{ transform:translateY(-5px); box-shadow:var(--shadow-strong); }
  .video-frame{ position:relative; aspect-ratio:16/9; background:var(--navy-deep); overflow:hidden; }
  .video-frame video{ width:100%; height:100%; object-fit:cover; display:block; background:var(--navy-deep); }
  .video-card .caption{ padding:1.1rem 1.4rem 1.4rem; }
  .video-card .caption .tag{
    display:inline-block; font-size:0.72rem; font-weight:700; letter-spacing:0.07em; text-transform:uppercase;
    color:var(--terracotta); background:rgba(201,85,61,0.08); padding:0.3rem 0.7rem; border-radius:var(--radius-pill); margin-bottom:0.6rem;
  }
  .video-card .caption p{ font-size:0.92rem; color:var(--ink-soft); line-height:1.55; margin:0; }
  

  /* Text testimonials grid — pulled dynamically from the admin dashboard */
  .testi-grid{ display:grid; grid-template-columns:repeat(3, 1fr); gap:1.5rem; margin-bottom:1rem; }
  @media (max-width:900px){ .testi-grid{ grid-template-columns:repeat(2, 1fr); } }
  @media (max-width:600px){ .testi-grid{ grid-template-columns:1fr; } }
  .quote-card{ background:var(--cream); border:1.5px solid rgba(27,42,74,0.08); border-radius:var(--radius-card); padding:1.85rem 2rem; }
  .quote-card .stars{ color:var(--amber); font-size:0.95rem; letter-spacing:0.12em; margin-bottom:0.75rem; }
  .quote-card .quote-text{ font-size:0.98rem; color:var(--charcoal); line-height:1.7; font-style:italic; margin:0 0 1.25rem; }
  .quote-who{ display:flex; align-items:center; gap:0.75rem; }
  .quote-who .avatar{ width:42px; height:42px; border-radius:50%; background:var(--navy); color:var(--cream); overflow:hidden; display:flex; align-items:center; justify-content:center; font-family:'Fraunces', serif; font-weight:700; font-size:0.9rem; flex-shrink:0; }
  .quote-who .avatar img{ width:100%; height:100%; object-fit:cover; }
  .quote-who b{ display:block; font-size:0.9rem; color:var(--navy); }
  .quote-who span{ font-size:0.8rem; color:var(--ink-soft); }
