/* Friends of Abuja — styles. Palette and type from the build pack + approved reference. */
@font-face{font-family:"Playfair Display";font-style:normal;font-weight:600;font-display:swap;src:url(/assets/fonts/playfair-display-latin-600-normal.woff2) format("woff2")}
@font-face{font-family:"Playfair Display";font-style:normal;font-weight:700;font-display:swap;src:url(/assets/fonts/playfair-display-latin-700-normal.woff2) format("woff2")}
@font-face{font-family:Inter;font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/inter-latin-400-normal.woff2) format("woff2")}
@font-face{font-family:Inter;font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/inter-latin-500-normal.woff2) format("woff2")}
@font-face{font-family:Inter;font-style:normal;font-weight:600;font-display:swap;src:url(/assets/fonts/inter-latin-600-normal.woff2) format("woff2")}

:root{
  --navy:#071923; --navy-2:#0c2633; --green:#006B4F; --green-dark:#005640; --gold:#D5B15E; --gold-dark:#8a6a1f;
  --ivory:#F8F7F2; --ink:#14232b; --muted:#4a5a62; --line:#e3e0d5; --white:#fff;
  --radius:18px; --radius-sm:12px; --shadow:0 18px 40px -20px rgba(7,25,35,.35);
  --serif:"Playfair Display",Georgia,"Times New Roman",serif;
  --sans:Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  --container:1200px; --header-h:72px;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:calc(var(--header-h) + 12px);-webkit-text-size-adjust:100%}
body{margin:0;font-family:var(--sans);font-size:1.0625rem;line-height:1.6;color:var(--ink);background:var(--ivory);overflow-x:hidden}
img{max-width:100%;height:auto;display:block}
a{color:var(--green)}
a:hover{color:var(--green-dark)}
h1,h2,h3{font-family:var(--serif);line-height:1.12;margin:0 0 .5em;color:var(--navy);font-weight:700}
h2{font-size:clamp(2rem,1.4rem + 2.4vw,3.1rem)}
h3{font-size:1.3rem;font-weight:600}
p{margin:0 0 1rem}
ul{padding:0}
.container{width:min(100% - 2.5rem,var(--container));margin-inline:auto}
.section{padding:clamp(4rem,3rem + 4vw,6.5rem) 0}
.visually-hidden{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip-link{position:absolute;left:1rem;top:-100px;z-index:100;background:var(--gold);color:var(--navy);padding:.7rem 1rem;border-radius:8px;font-weight:600}
.skip-link:focus{top:1rem}
:focus-visible{outline:3px solid var(--gold);outline-offset:3px;border-radius:6px}
.gold{color:var(--gold)}
.lead{font-size:clamp(1.05rem,1rem + .3vw,1.2rem);color:var(--muted);max-width:62ch}
.eyebrow{font-size:.78rem;letter-spacing:.18em;font-weight:600;text-transform:uppercase;color:var(--gold);margin-bottom:1rem}
.eyebrow-green{color:var(--green)}
.eyebrow-gold{color:var(--gold-dark)}
.note{font-size:.95rem;color:var(--muted);border-left:3px solid var(--gold);padding-left:.9rem}

/* Buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.55rem;min-height:48px;padding:.8rem 1.4rem;border-radius:10px;font-weight:600;font-size:1rem;text-decoration:none;border:2px solid transparent;cursor:pointer;transition:transform .2s ease,background-color .2s ease,box-shadow .2s ease;font-family:var(--sans)}
.btn:hover{transform:translateY(-2px)}
.btn-green{background:var(--green);color:#fff}
.btn-green:hover{background:var(--green-dark);color:#fff}
.btn-gold{background:var(--gold);color:var(--navy)}
.btn-gold:hover{background:#e2c277;color:var(--navy)}
.btn-outline-light{border-color:rgba(248,247,242,.8);color:var(--ivory);background:rgba(7,25,35,.25)}
.btn-outline-light:hover{background:rgba(248,247,242,.12);color:#fff}
.btn-block{width:100%}

/* Header */
.site-header{position:sticky;top:0;z-index:50;background:rgba(7,25,35,.96);backdrop-filter:saturate(1.2) blur(8px);border-bottom:1px solid rgba(213,177,94,.18)}
.header-inner{display:flex;align-items:center;justify-content:space-between;height:var(--header-h);gap:1rem}
.brand{display:inline-flex;align-items:center;gap:.65rem;color:var(--ivory);text-decoration:none}
.brand:hover{color:#fff}
.brand-mark{width:36px;height:36px;color:var(--gold);flex:none}
.brand-text{font-family:var(--serif);font-weight:700;font-size:1.35rem;letter-spacing:.01em}
.site-nav{display:flex;align-items:center;gap:2rem}
.nav-list{display:flex;gap:1.6rem;list-style:none;margin:0}
.nav-list a{color:var(--ivory);text-decoration:none;font-weight:500;font-size:.97rem;padding:.4rem 0;border-bottom:2px solid transparent}
.nav-list a:hover,.nav-list a[aria-current="true"]{border-bottom-color:var(--gold);color:#fff}
.nav-cta{min-height:44px;padding:.6rem 1.1rem}
.nav-toggle{display:none;align-items:center;gap:.5rem;background:transparent;border:1px solid rgba(248,247,242,.35);color:var(--ivory);border-radius:10px;min-height:44px;padding:.5rem .8rem;font:600 .95rem var(--sans);cursor:pointer}
.nav-toggle-bars,.nav-toggle-bars::before,.nav-toggle-bars::after{display:block;width:20px;height:2px;background:currentColor;border-radius:2px;position:relative;transition:transform .2s ease,opacity .2s ease}
.nav-toggle-bars::before,.nav-toggle-bars::after{content:"";position:absolute;left:0}
.nav-toggle-bars::before{top:-6px}.nav-toggle-bars::after{top:6px}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars{background:transparent}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before{transform:translateY(6px) rotate(45deg)}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after{transform:translateY(-6px) rotate(-45deg)}

@media (max-width:960px){
  .nav-toggle{display:inline-flex}
  .site-nav{position:absolute;top:var(--header-h);left:0;right:0;flex-direction:column;align-items:stretch;gap:1rem;background:var(--navy);padding:1rem 1.25rem 1.5rem;border-bottom:1px solid rgba(213,177,94,.25);box-shadow:0 20px 30px -10px rgba(0,0,0,.4)}
  .js .site-nav:not(.is-open){display:none}
  .nav-list{flex-direction:column;gap:0}
  .nav-list a{display:block;padding:.85rem .25rem;border-bottom:1px solid rgba(248,247,242,.1);font-size:1.05rem}
  .nav-cta{width:100%}
}

/* Hero */
.hero{position:relative;isolation:isolate;color:var(--ivory);min-height:min(88vh,820px);display:flex;align-items:center;padding:5rem 0 9rem;overflow:hidden;background:var(--navy)}
.hero-media,.hero-media img{position:absolute;inset:0;width:100%;height:100%;z-index:-2}
.hero-media img{object-fit:cover;object-position:62% 40%}
.hero::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(7,25,35,.96) 0%,rgba(7,25,35,.86) 38%,rgba(7,25,35,.35) 72%,rgba(7,25,35,.2) 100%),linear-gradient(0deg,rgba(7,25,35,.85) 0%,rgba(7,25,35,0) 35%)}
.hero-lines{position:absolute;inset:0;width:100%;height:100%;z-index:-1;opacity:.55;pointer-events:none}
.hero-lines .arc{stroke-dasharray:6 8;animation:dash 30s linear infinite}
@keyframes dash{to{stroke-dashoffset:-560}}
.hero-content{max-width:var(--container)}
.hero-title{color:var(--ivory);font-size:clamp(2.9rem,1.6rem + 6vw,5.6rem);margin-bottom:.15em;letter-spacing:-.01em}
.hero-tagline{font-family:var(--serif);font-size:clamp(1.5rem,1.1rem + 1.8vw,2.4rem);color:var(--ivory);margin-bottom:1.1rem;font-weight:600}
.hero-desc{max-width:46ch;font-size:clamp(1.02rem,.98rem + .3vw,1.18rem);color:rgba(248,247,242,.9);margin-bottom:2rem}
.hero-actions{display:flex;flex-wrap:wrap;gap:1rem}
.photo-credit{font-size:.75rem;color:rgba(248,247,242,.75);margin:0}
.photo-credit a{color:inherit}
.hero-credit{position:absolute;right:1rem;bottom:.6rem}

/* Opportunities */
.opportunities{position:relative;z-index:2;margin-top:-6.5rem}
.opp-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1.25rem;list-style:none;margin:0}
.card{background:var(--white);border-radius:var(--radius);box-shadow:var(--shadow);border:1px solid rgba(7,25,35,.06)}
.opp-card{padding:1.6rem 1.4rem;display:flex;flex-direction:column}
.opp-card h3{margin:.9rem 0 .45rem}
.opp-card p{color:var(--muted);font-size:.98rem;flex:1}
.card-link{font-weight:600;text-decoration:none;color:var(--green);display:inline-flex;gap:.4rem;align-items:center;min-height:44px}
.card-link:hover{text-decoration:underline}
.icon{display:inline-grid;place-items:center;width:48px;height:48px;border-radius:12px;background:rgba(0,107,79,.09);color:var(--green);flex:none}
.icon svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
@media (max-width:1100px){.opp-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:560px){.opp-grid{grid-template-columns:1fr}.opportunities{margin-top:-5rem}}

/* About */
.about-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:3rem;align-items:center}
.pillars{list-style:none;margin:0;display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}
.pillar{background:var(--white);border:1px solid var(--line);border-radius:var(--radius-sm);padding:1.3rem 1.1rem;text-align:center}
.pillar .icon{margin:0 auto .7rem}
.pillar h3{font-size:1.08rem}
.pillar p{font-size:.92rem;color:var(--muted);margin:0}
@media (max-width:960px){.about-grid{grid-template-columns:1fr}}
@media (max-width:640px){.pillars{grid-template-columns:1fr}}

/* Community */
.community{position:relative;background:var(--navy);color:var(--ivory);display:grid;grid-template-columns:42% 58%;min-height:560px;overflow:hidden}
.community-photo{margin:0;grid-column:2;grid-row:1;position:relative}
.community-photo img{width:100%;height:100%;object-fit:cover;object-position:50% 35%}
.community-photo::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,var(--navy) 0%,rgba(7,25,35,0) 30%);z-index:1;pointer-events:none}
.community-photo figcaption{position:absolute;right:0;bottom:0;z-index:2;font-size:.78rem;background:rgba(7,25,35,.8);color:var(--ivory);padding:.45rem .8rem;border-top-left-radius:10px}
.community-photo figcaption a{color:inherit}
.community-inner{grid-column:1;grid-row:1;width:auto;margin:0;padding:clamp(3.5rem,3rem + 3vw,6rem) 2rem clamp(3.5rem,3rem + 3vw,6rem) max(1.25rem,calc((100vw - var(--container))/2))}
.community h2{color:var(--ivory);font-size:clamp(2.2rem,1.5rem + 3vw,3.6rem)}
.community .lead{color:rgba(248,247,242,.88);margin-bottom:1.8rem}
.mini-points{list-style:none;margin:2.2rem 0 0;display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}
.mini-points li{display:flex;flex-direction:column;gap:.55rem;font-size:.92rem;font-weight:500;color:var(--ivory)}
.mini-points .icon{background:rgba(213,177,94,.15);color:var(--gold);width:42px;height:42px}
@media (max-width:960px){
  .community{grid-template-columns:1fr}
  .community-photo{grid-column:1;grid-row:1;aspect-ratio:3/2}
  .community-photo::before{background:linear-gradient(0deg,var(--navy) 0%,rgba(7,25,35,0) 35%)}
  .community-photo figcaption{left:0;right:auto;top:0;bottom:auto;border-radius:0 0 10px 0}
  .community-inner{grid-column:1;grid-row:2;padding:2.5rem 1.25rem 3.5rem;width:min(100% - 0rem,var(--container));margin-inline:auto}
}
@media (max-width:420px){.mini-points{grid-template-columns:1fr}.mini-points li{flex-direction:row;align-items:center}}

/* Membership */
.membership{background:linear-gradient(180deg,var(--ivory) 0%,#efece2 100%)}
.section-head{max-width:760px;margin-bottom:2.5rem}
.member-grid{list-style:none;margin:0;display:grid;grid-template-columns:repeat(3,1fr);gap:1.4rem}
.member-card{padding:1.8rem 1.6rem;display:flex;flex-direction:column;border-top:4px solid var(--green)}
.member-card-featured{border-top-color:var(--gold)}
.member-head{display:flex;align-items:center;gap:.9rem;margin-bottom:.9rem}
.member-head h3{margin:0;font-size:1.45rem}
.member-card > p{color:var(--muted)}
.fit-title{font-weight:600;color:var(--navy)!important;margin-bottom:.4rem;font-size:.95rem}
.checks{list-style:none;margin:0 0 1.6rem;flex:1}
.checks li{position:relative;padding-left:1.7rem;margin-bottom:.5rem;font-size:.96rem}
.checks li::before{content:"";position:absolute;left:0;top:.42em;width:1rem;height:.55rem;border-left:2px solid var(--green);border-bottom:2px solid var(--green);transform:rotate(-45deg)}
.member-note{margin-top:1.6rem;color:var(--muted);font-size:.95rem;text-align:center}
@media (max-width:960px){.member-grid{grid-template-columns:1fr;max-width:560px}}

/* Cities */
.cities{background:var(--white)}
.city-grid{list-style:none;margin:0;display:grid;grid-template-columns:repeat(7,1fr);gap:.9rem}
.city-card{position:relative;border-radius:var(--radius-sm);padding:1.3rem 1rem;background:var(--navy);color:var(--ivory);min-height:120px;display:flex;flex-direction:column;justify-content:flex-end;overflow:hidden}
.city-card::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 85% 15%,rgba(213,177,94,.35),transparent 55%);pointer-events:none}
.city-card::after{content:"";position:absolute;top:1rem;left:1rem;width:10px;height:10px;border-radius:50%;background:var(--gold);box-shadow:0 0 0 5px rgba(213,177,94,.2)}
.city-name{font-family:var(--serif);font-size:1.25rem;font-weight:700;position:relative}
.city-meta{font-size:.8rem;color:rgba(248,247,242,.8);position:relative}
.city-home{background:var(--green)}
.cities-note{font-size:.9rem;color:var(--muted);margin:1rem 0 0}
.cities-cta{margin-top:2rem;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1rem 2rem;padding:1.4rem 1.6rem;border-radius:var(--radius);background:var(--ivory);border:1px solid var(--line)}
.cities-cta p{margin:0;font-family:var(--serif);font-size:1.3rem;color:var(--navy);font-weight:600}
@media (max-width:1100px){.city-grid{grid-template-columns:repeat(4,1fr)}}
@media (max-width:640px){.city-grid{grid-template-columns:repeat(2,1fr)}.city-home{grid-column:1/-1}}

/* FAQ */
.faq-inner{max-width:860px}
.faq-list details{background:var(--white);border:1px solid var(--line);border-radius:var(--radius-sm);margin-bottom:.8rem}
.faq-list summary{cursor:pointer;list-style:none;padding:1.1rem 3rem 1.1rem 1.3rem;font-weight:600;color:var(--navy);position:relative;min-height:48px}
.faq-list summary::-webkit-details-marker{display:none}
.faq-list summary::after{content:"+";position:absolute;right:1.2rem;top:50%;transform:translateY(-50%);font-size:1.5rem;color:var(--green);line-height:1}
.faq-list details[open] summary::after{content:"–"}
.faq-list details p{padding:0 1.3rem 1.2rem;margin:0;color:var(--muted)}

/* Contact */
.contact{background:var(--ivory);border-top:1px solid var(--line)}
.contact-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:3rem;align-items:start}
.contact-points{list-style:none;margin:1.5rem 0 0}
.contact-points li{position:relative;padding-left:1.8rem;margin-bottom:.6rem}
.contact-points li::before{content:"";position:absolute;left:0;top:.45em;width:.7rem;height:.7rem;border-radius:50%;background:var(--gold)}
.form-wrap{padding:clamp(1.3rem,1rem + 1.5vw,2.2rem)}
.contact-form{display:grid;grid-template-columns:1fr 1fr;gap:1rem 1.2rem}
.field{display:flex;flex-direction:column;gap:.35rem;min-width:0}
.field-full{grid-column:1/-1}
.field label{font-weight:600;font-size:.94rem;color:var(--navy)}
.req{color:#b3261e}
.opt{font-weight:400;color:var(--muted)}
input[type=text],input[type=email],select,textarea{width:100%;font:inherit;font-size:1rem;color:var(--ink);background:#fff;border:1.5px solid #c9c5b8;border-radius:10px;padding:.75rem .9rem;min-height:48px}
textarea{resize:vertical;min-height:130px}
input:focus,select:focus,textarea:focus{border-color:var(--green);outline:3px solid rgba(0,107,79,.25);outline-offset:0}
[aria-invalid="true"]{border-color:#b3261e!important}
.field-error{color:#b3261e;font-size:.88rem;margin:0}
.field-hint{color:var(--muted);font-size:.82rem;margin:0;text-align:right}
.field-check{flex-direction:row;align-items:flex-start;gap:.7rem}
.field-check input{width:22px;height:22px;margin-top:.15rem;accent-color:var(--green);flex:none}
.field-check label{font-weight:400;color:var(--ink)}
.hp{position:absolute!important;left:-10000px;width:1px;height:1px;overflow:hidden}
.privacy-mini{font-size:.86rem;color:var(--muted);margin:0}
.btn-submit{min-height:52px;font-size:1.05rem}
.btn-submit[disabled]{opacity:.65;cursor:progress;transform:none}
.notice{border-radius:10px;padding:1rem 1.1rem;margin-bottom:1.2rem;font-size:.97rem;border:1px solid}
.notice-ok{background:#e7f4ee;border-color:#8cc5ac;color:#0b4a37}
.notice-err{background:#fdeceb;border-color:#e3a39d;color:#7c1d16}
.notice-warn{background:#fff6dc;border-color:#e0c068;color:#5c4407}
@media (max-width:960px){.contact-grid{grid-template-columns:1fr}}
@media (max-width:560px){.contact-form{grid-template-columns:1fr}}

/* Privacy */
.privacy{background:var(--white);border-top:1px solid var(--line)}
.privacy-inner{max-width:860px}
.privacy h2{font-size:clamp(1.7rem,1.4rem + 1.2vw,2.3rem)}
.privacy-list{margin:0}
.privacy-list dt{font-weight:600;color:var(--navy);margin-top:1rem}
.privacy-list dd{margin:.2rem 0 0;color:var(--muted)}

/* Footer */
.site-footer{background:var(--navy);color:rgba(248,247,242,.85);padding:3rem 0 1.5rem}
.footer-inner{display:grid;grid-template-columns:1.3fr 1.6fr auto;gap:2rem;align-items:center;padding-bottom:2rem;border-bottom:1px solid rgba(248,247,242,.12)}
.footer-brand p{margin:.7rem 0 0;font-size:.92rem}
.footer-nav ul{list-style:none;margin:0;display:flex;flex-wrap:wrap;gap:.4rem 1.4rem}
.footer-nav a{color:var(--ivory);text-decoration:none;font-size:.95rem;display:inline-block;padding:.35rem 0}
.footer-nav a:hover{text-decoration:underline}
.powered{display:inline-flex;align-items:center;gap:.9rem;text-decoration:none;color:var(--ivory);background:rgba(248,247,242,.06);border:1px solid rgba(213,177,94,.35);border-radius:14px;padding:.6rem 1rem .6rem .6rem}
.powered:hover{background:rgba(248,247,242,.12);color:#fff}
.powered-logo{background:#fff;border-radius:10px;padding:6px;display:block}
.powered-logo img{width:72px;height:auto}
.powered-text{font-weight:600;font-size:1rem}
.footer-legal{display:flex;flex-wrap:wrap;justify-content:space-between;gap:.5rem 1rem;padding-top:1.2rem;font-size:.85rem}
.footer-legal p{margin:0}
.footer-legal a{color:var(--ivory)}
@media (max-width:960px){.footer-inner{grid-template-columns:1fr}.powered{justify-self:start}}

/* Reveal motion (JS adds .js; only animates when motion allowed) */
@media (prefers-reduced-motion:no-preference){
  .js .reveal{opacity:0;transform:translateY(18px);transition:opacity .6s ease,transform .6s ease}
  .js .reveal.is-visible{opacity:1;transform:none}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation:none!important;transition:none!important}
  .btn:hover{transform:none}
}

/* --- Refinements after visual QA against the approved reference --- */
.hero-credit{bottom:auto;top:.6rem}
.city-card{padding-top:2.3rem;min-height:128px}
@media (min-width:1101px){.city-name{font-size:1.12rem}}
.membership{background:radial-gradient(circle at 85% 10%,rgba(213,177,94,.16),transparent 45%),linear-gradient(160deg,var(--navy) 0%,#0b2a2a 60%,#063f33 100%);color:var(--ivory)}
.membership .section-head h2{color:var(--ivory)}
.membership .section-head .lead{color:rgba(248,247,242,.85)}
.membership .eyebrow-gold{color:var(--gold)}
.membership .member-note{color:rgba(248,247,242,.8)}
.membership .member-card{color:var(--ink)}
@media (max-width:640px){.hero-credit{left:1.25rem;right:1.25rem;top:.4rem;font-size:.68rem}.hero{padding-top:3.5rem}}
.footer-brand p a{color:var(--gold)}
.privacy-list dd a{overflow-wrap:anywhere}
