/* ===================================================================
   ISSA — Independent Self-Financed Schools' Association
   Design system: "One Roof" — a civic identity built from the
   association's own emblem (the five-colour converging pinwheel).
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Public+Sans:wght@400;500;600;700;800&display=swap');

:root{
  /* ---- Colour: navy from the wordmark, four petals lifted straight
     from the emblem's own pinwheel, warm paper background ---- */
  --navy-950:#0B2038;
  --navy-900:#0F2A4A;
  --navy-800:#173B62;
  --navy-700:#20507F;
  --blue-petal:#2878BE;
  --orange-petal:#E2632B;
  --magenta-petal:#B84693;
  --green-petal:#4C9B62;
  --gold:#C58A2E;
  --paper:#F7F4EC;
  --paper-dim:#EFEADD;
  --ink:#1C1A15;
  --ink-soft:#5B564B;
  --line:#DED6C2;
  --white:#FFFFFF;

  --font-display:'Fraunces', Georgia, serif;
  --font-body:'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container:1180px;
  --radius:4px;
  --shadow-card:0 1px 2px rgba(15,42,74,0.06), 0 8px 24px -12px rgba(15,42,74,0.18);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important; scroll-behavior:auto !important; }
}

body{
  margin:0;
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--paper);
  -webkit-font-smoothing:antialiased;
  line-height:1.6;
}

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

h1,h2,h3,h4{
  font-family:var(--font-display);
  color:var(--navy-900);
  margin:0 0 0.5em;
  line-height:1.12;
  font-weight:600;
  letter-spacing:-0.01em;
}
h1{ font-size:clamp(2.4rem, 4.6vw, 3.9rem); font-weight:600; }
h2{ font-size:clamp(1.7rem, 2.9vw, 2.5rem); }
h3{ font-size:1.3rem; }
p{ margin:0 0 1em; color:var(--ink-soft); }
.lede{ font-size:1.2rem; color:var(--ink-soft); }

.container{ max-width:var(--container); margin:0 auto; padding:0 28px; }
.section{ padding:88px 0; }
.section--tight{ padding:56px 0; }
.section--navy{ background:var(--navy-900); color:var(--paper); }
.section--navy h2, .section--navy h3{ color:var(--white); }
.section--navy p{ color:#C7D4E3; }
.section--dim{ background:var(--paper-dim); }

.eyebrow{
  display:flex; align-items:center; gap:10px;
  font-family:var(--font-body);
  font-size:0.78rem; font-weight:700; letter-spacing:0.14em; text-transform:uppercase;
  color:var(--gold); margin-bottom:14px;
}
.eyebrow::before{
  content:''; width:22px; height:2px; background:var(--gold); display:inline-block;
}
.section--navy .eyebrow{ color:#F0C878; }
.section--navy .eyebrow::before{ background:#F0C878; }

.head-row{
  display:flex; justify-content:space-between; align-items:flex-end; gap:32px;
  margin-bottom:44px; flex-wrap:wrap;
}
.head-row p{ max-width:520px; margin:0; }

/* ---------- Rosette signature motif ---------- */
.rosette{ display:inline-block; }
.rosette svg{ display:block; }
.rosette--spin{ animation:spin 40s linear infinite; }
@keyframes spin{ to{ transform:rotate(360deg); } }

.divider-rosette{
  display:flex; align-items:center; gap:16px; margin:0 0 40px;
}
.divider-rosette .line{ flex:1; height:1px; background:var(--line); }
.section--navy .divider-rosette .line{ background:rgba(255,255,255,0.16); }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:10px;
  font-family:var(--font-body); font-weight:700; font-size:0.95rem;
  padding:14px 26px; border-radius:var(--radius);
  border:1.5px solid transparent; cursor:pointer;
  transition:transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover{ transform:translateY(-1.5px); }
.btn-primary{ background:var(--gold); color:var(--navy-950); }
.btn-primary:hover{ background:#D89B3D; }
.btn-outline{ border-color:var(--navy-900); color:var(--navy-900); background:transparent; }
.btn-outline:hover{ background:var(--navy-900); color:var(--white); }
.section--navy .btn-outline{ border-color:rgba(255,255,255,0.55); color:var(--white); }
.section--navy .btn-outline:hover{ background:var(--white); color:var(--navy-900); }
.btn-ghost{ color:var(--navy-900); padding:14px 4px; }
.btn-ghost::after{ content:'→'; margin-left:2px; transition:margin 0.15s ease; }
.btn-ghost:hover::after{ margin-left:8px; }

/* ---------- Header / Nav ---------- */
.site-header{
  position:sticky; top:0; z-index:100;
  background:rgba(247,244,236,0.92);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.nav-bar{
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:14px 28px; max-width:var(--container); margin:0 auto;
}
.brand{ display:flex; align-items:center; gap:12px; flex:none; }
.brand-lockup{ height:60px; width:auto; display:block; }
.brand-text{ font-family:var(--font-display); line-height:1.15; }
.brand-text .name{ font-weight:700; font-size:1.02rem; color:var(--navy-900); display:block; }
.brand-text .sub{ font-family:var(--font-body); font-weight:600; font-size:0.66rem; letter-spacing:0.08em; text-transform:uppercase; color:var(--ink-soft); }

.nav-links{ display:flex; align-items:center; gap:0; list-style:none; margin:0; padding:0; flex-wrap:nowrap; }
.nav-links a{
  font-weight:600; font-size:0.86rem; color:var(--navy-800); white-space:nowrap;
  padding:10px 9px; border-radius:3px; transition:background 0.15s ease, color 0.15s ease;
}
.nav-links a:hover{ background:var(--paper-dim); }
.nav-links a.active{ color:var(--navy-950); position:relative; }
.nav-links a.active::after{
  content:''; position:absolute; left:14px; right:14px; bottom:4px; height:2px; background:var(--gold);
}
.nav-cta{ margin-left:6px; }
.nav-cta .btn{ padding:10px 18px; font-size:0.86rem; }
.nav-toggle{
  display:none; background:none; border:none; cursor:pointer; padding:8px;
}
.nav-toggle span{ display:block; width:24px; height:2px; background:var(--navy-900); margin:5px 0; transition:transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle.open span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity:0; }
.nav-toggle.open span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

@media (max-width:1080px){
  .nav-toggle{ display:block; z-index:110; position:relative; }
  .nav-links{
    position:absolute; top:100%; left:0; right:0; background:var(--paper);
    flex-direction:column; align-items:stretch;
    padding:6px 0 16px; gap:0;
    display:none;
    box-shadow:0 16px 28px -14px rgba(15,42,74,0.28);
    border-bottom:1px solid var(--line);
    max-height:calc(100vh - 71px);
    overflow-y:auto;
  }
  .nav-links.open{ display:flex; }
  .nav-links li{ width:100%; }
  .nav-links a{
    display:block; width:100%;
    padding:16px 28px;
    border-bottom:1px solid var(--line);
    border-radius:0;
    font-size:1rem;
  }
  .nav-links a.active::after{ display:none; }
  .nav-links a.active{ color:var(--blue-petal); background:var(--paper-dim); }
  .nav-links a:active{ background:var(--paper-dim); }
  .nav-cta{ margin:18px 28px 0; width:auto; }
  .nav-cta .btn{ width:100%; justify-content:center; }
}

/* lock page scroll while the mobile menu is open */
body.nav-open{ overflow:hidden; }

/* ---------- Hero ---------- */
.hero{
  padding:76px 0 60px;
  position:relative;
  overflow:hidden;
}
.hero-grid{
  display:grid; grid-template-columns:1.15fr 0.85fr; gap:56px; align-items:center;
}
.hero-kicker{
  display:inline-flex; align-items:center; gap:8px;
  font-size:0.78rem; font-weight:700; letter-spacing:0.12em; text-transform:uppercase;
  color:var(--navy-800); background:var(--paper-dim); border:1px solid var(--line);
  padding:7px 14px 7px 10px; border-radius:100px; margin-bottom:22px;
}
.hero h1{ margin-bottom:20px; }
.hero h1 em{ font-style:italic; color:var(--blue-petal); }
.hero-actions{ display:flex; gap:14px; margin-top:30px; flex-wrap:wrap; }
.hero-visual{ display:flex; align-items:center; justify-content:center; position:relative; }
.hero-visual .ring-wrap{ position:relative; width:100%; max-width:360px; }
.hero-visual .core-logo{
  position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
  width:38%; background:var(--paper); border-radius:50%; padding:14px;
  box-shadow:0 12px 30px -10px rgba(15,42,74,0.35);
}

.stat-strip{
  border-top:1px solid var(--line); border-bottom:1px solid var(--line);
  margin-top:56px;
}
.stat-grid{
  display:grid; grid-template-columns:repeat(4,1fr);
}
.stat{
  padding:26px 20px; text-align:left; border-left:1px solid var(--line);
}
.stat:first-child{ border-left:none; padding-left:0; }
.stat .num{ font-family:var(--font-display); font-size:2.1rem; font-weight:600; color:var(--navy-900); display:block; }
.stat .lbl{ font-size:0.82rem; color:var(--ink-soft); }

@media (max-width:860px){
  .hero-grid{ grid-template-columns:1fr; }
  .hero-visual{ order:-1; max-width:220px; margin:0 auto 8px; }
  .stat-grid{ grid-template-columns:repeat(2,1fr); }
  .stat{ border-left:none; border-top:1px solid var(--line); padding-left:0; }
  .stat:nth-child(2n+1){ padding-left:0; }
}

/* ---------- Cards ---------- */
.grid{ display:grid; gap:26px; }
.grid-3{ grid-template-columns:repeat(3,1fr); }
.grid-2{ grid-template-columns:repeat(2,1fr); }
@media (max-width:860px){ .grid-3, .grid-2{ grid-template-columns:1fr; } }

.card{
  background:var(--white); border:1px solid var(--line); border-radius:var(--radius);
  padding:32px; box-shadow:var(--shadow-card);
}
.pillar-card{
  background:var(--white); border-radius:var(--radius); padding:34px 30px;
  border-top:3px solid var(--blue-petal);
  box-shadow:var(--shadow-card);
}
.pillar-card:nth-of-type(2){ border-top-color:var(--orange-petal); }
.pillar-card:nth-of-type(3){ border-top-color:var(--green-petal); }
.pillar-card .petal-dot{ width:34px; height:34px; margin-bottom:18px; }

.service-card{
  padding:30px; background:var(--white); border:1px solid var(--line); border-radius:var(--radius);
  display:flex; gap:20px; align-items:flex-start;
}
.service-card .num{
  font-family:var(--font-display); font-weight:600; font-size:1.6rem; color:var(--line);
  min-width:44px;
}

/* ---------- Leadership ---------- */
.leader-card{
  background:var(--white); border:1px solid var(--line); border-radius:var(--radius);
  padding:26px 22px; text-align:left;
}
.leader-avatar{
  width:52px; height:52px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  font-family:var(--font-display); font-weight:600; font-size:1.1rem; color:var(--white);
  margin-bottom:16px;
}
.leader-role{ font-size:0.74rem; font-weight:700; letter-spacing:0.09em; text-transform:uppercase; color:var(--gold); margin-bottom:6px; }
.leader-name{ font-family:var(--font-display); font-weight:600; font-size:1.12rem; color:var(--navy-900); margin-bottom:2px; }
.leader-school{ font-size:0.88rem; color:var(--ink-soft); }

/* ---------- Member directory ---------- */
.member-card{
  background:var(--white); border:1px solid var(--line); border-radius:var(--radius);
  padding:24px 22px; display:flex; align-items:center; gap:16px;
  transition:border-color 0.15s ease, transform 0.15s ease;
}
.member-card:hover{ border-color:var(--blue-petal); transform:translateY(-2px); }
.member-mark{
  width:44px; height:44px; border-radius:50%; flex:none;
  display:flex; align-items:center; justify-content:center;
  font-family:var(--font-display); font-weight:700; color:var(--white); font-size:1rem;
}
.member-name{ font-weight:700; color:var(--navy-900); font-size:1rem; margin-bottom:2px; }
.member-role{ font-size:0.82rem; color:var(--ink-soft); }

/* ---------- Quote / President's message ---------- */
.president-block{ display:grid; grid-template-columns:220px 1fr; gap:44px; align-items:start; }
@media (max-width:780px){ .president-block{ grid-template-columns:1fr; } }
.president-portrait{
  width:170px; height:170px; border-radius:50%; margin:0 auto;
  object-fit:cover; object-position:center 18%;
  background:linear-gradient(150deg, var(--navy-800), var(--navy-950));
  border:5px solid var(--white); box-shadow:var(--shadow-card);
}
.president-sign{ font-family:var(--font-display); font-style:italic; font-size:1.3rem; color:var(--navy-900); margin-top:20px; }

blockquote.pull{
  font-family:var(--font-display); font-size:1.5rem; font-weight:500; color:var(--navy-900);
  border-left:3px solid var(--gold); padding-left:24px; margin:36px 0; line-height:1.4;
}

/* ---------- Timeline / news ---------- */
.news-card{
  display:grid; grid-template-columns:120px 1fr; gap:28px;
  padding:30px 0; border-top:1px solid var(--line);
}
.news-card:first-of-type{ border-top:none; }
.news-date{ font-family:var(--font-display); color:var(--navy-800); }
.news-date .day{ font-size:2.1rem; font-weight:600; display:block; line-height:1; }
.news-date .rest{ font-size:0.86rem; color:var(--ink-soft); }
.tag{
  display:inline-block; font-size:0.72rem; font-weight:700; letter-spacing:0.08em; text-transform:uppercase;
  background:var(--paper-dim); color:var(--navy-800); padding:5px 10px; border-radius:100px; margin-bottom:10px;
}

.gallery-tile{
  aspect-ratio:4/3; border-radius:var(--radius); display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:8px; color:var(--white); font-size:0.82rem; font-weight:600; text-align:center; padding:12px;
}

/* ---------- Forms ---------- */
.form-grid{ display:grid; grid-template-columns:1fr 1fr; gap:20px; }
@media (max-width:700px){ .form-grid{ grid-template-columns:1fr; } }
.field{ display:flex; flex-direction:column; gap:7px; margin-bottom:20px; }
.field.full{ grid-column:1 / -1; }
.field label{ font-size:0.86rem; font-weight:700; color:var(--navy-900); }
.field input, .field select, .field textarea{
  font-family:var(--font-body); font-size:0.96rem; padding:12px 14px;
  border:1.5px solid var(--line); border-radius:3px; background:var(--white); color:var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus{
  outline:none; border-color:var(--blue-petal); box-shadow:0 0 0 3px rgba(40,120,190,0.14);
}
.check-row{ display:flex; gap:12px; align-items:flex-start; margin-bottom:14px; }
.check-row input{ margin-top:4px; }
.check-row label{ font-size:0.9rem; color:var(--ink-soft); }
.form-note{ font-size:0.86rem; color:var(--ink-soft); margin-top:18px; }
#formStatus{ display:none; padding:16px 18px; border-radius:3px; background:#EAF4EC; border:1px solid #BEDCC4; color:#1F5C31; margin-bottom:22px; font-weight:600; }
#formStatus.show{ display:block; }
#formStatus.show-error{ background:#FBEAEA; border-color:#E7BCBC; color:#8A2323; }

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline:2px solid var(--blue-petal); outline-offset:2px;
}

/* ---------- Page header (interior pages) ---------- */
.page-header{ padding:64px 0 48px; border-bottom:1px solid var(--line); }
.page-header .eyebrow{ margin-bottom:16px; }
.breadcrumb{ font-size:0.84rem; color:var(--ink-soft); margin-bottom:20px; }
.breadcrumb a{ color:var(--navy-800); font-weight:600; }

/* ---------- Footer ---------- */
.site-footer{ background:var(--navy-950); color:#C7D4E3; padding:64px 0 0; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:40px; padding-bottom:48px; }
@media (max-width:820px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:520px){ .footer-grid{ grid-template-columns:1fr; } }
.footer-brand{ display:flex; align-items:center; gap:12px; margin-bottom:16px; }
.footer-brand img{ height:48px; width:48px; }
.footer-brand .name{ font-family:var(--font-display); font-weight:700; color:var(--white); font-size:1.05rem; }
.site-footer h4{ color:var(--white); font-family:var(--font-body); font-size:0.82rem; letter-spacing:0.08em; text-transform:uppercase; margin-bottom:16px; }
.site-footer ul{ list-style:none; margin:0; padding:0; }
.site-footer li{ margin-bottom:10px; }
.site-footer a{ color:#B7C6DA; font-size:0.92rem; transition:color 0.15s ease; }
.site-footer a:hover{ color:var(--white); }
.social-row{ display:flex; gap:10px; margin-top:18px; }
.social-row a{
  width:36px; height:36px; border-radius:50%; border:1px solid rgba(255,255,255,0.22);
  display:flex; align-items:center; justify-content:center; color:#C7D4E3;
  transition:background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.social-row a:hover{ background:var(--gold); border-color:var(--gold); color:var(--navy-950); }

/* ---------- Banner (photo hero for interior pages) ---------- */
.photo-banner{
  position:relative; height:min(58vh, 480px); min-height:320px; overflow:hidden;
}
.photo-banner img{
  width:100%; height:100%; object-fit:cover; object-position:center 30%;
}
.photo-banner::after{
  content:''; position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(11,32,56,0.15) 0%, rgba(11,32,56,0.55) 65%, rgba(11,32,56,0.88) 100%);
}
.photo-banner-copy{
  position:absolute; left:0; right:0; bottom:0; z-index:2; padding:44px 0 36px;
}
.photo-banner-copy .eyebrow{ color:#F0C878; }
.photo-banner-copy .eyebrow::before{ background:#F0C878; }
.photo-banner-copy h1{ color:var(--white); margin-bottom:10px; }
.photo-banner-copy p{ color:#DCE5F0; max-width:640px; }

.footer-bottom{
  border-top:1px solid rgba(255,255,255,0.1); padding:22px 0; display:flex; justify-content:space-between;
  flex-wrap:wrap; gap:10px; font-size:0.82rem; color:#8FA2BC;
}

/* ---------- Reveal on scroll ---------- */
.reveal{ opacity:0; transform:translateY(16px); transition:opacity 0.6s ease, transform 0.6s ease; }
.reveal.in{ opacity:1; transform:translateY(0); }

/* ---------- Petal colour helper classes ---------- */
.bg-blue{ background:var(--blue-petal); }
.bg-orange{ background:var(--orange-petal); }
.bg-magenta{ background:var(--magenta-petal); }
.bg-green{ background:var(--green-petal); }
.bg-navy{ background:var(--navy-900); }
