/* ==========================================================================
   BENASOD FOUNDATION — Design System
   Palette drawn from the mark: deep navy, warm gold, warm cream ground.
   Display: Fraunces (warm, editorial serif) / Body: Inter / Labels: Inter tracked caps
   ========================================================================== */

:root{
  --navy-900:#0f2440;
  --navy-800:#16304f;
  --navy-700:#1e3f68;
  --navy-600:#2b527f;
  --gold-700:#8a682d; /* WCAG AA (4.5:1+) for small text on cream/white */
  --gold-600:#b6893f;
  --gold-500:#c9a15a;
  --gold-400:#dbbd83;
  --gold-100:#f3e8d3;
  --cream:#faf7f1;
  --cream-2:#f3eee3;
  --white:#ffffff;
  --ink:#1e2530;
  --slate:#5c6470;
  --slate-light:#8b93a0;
  --line:#e6dfd0;
  --line-strong:#d8cfba;

  --font-display:'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container:1200px;
  --radius:6px;
  --radius-lg:14px;
  --shadow-sm:0 1px 3px rgba(15,36,64,0.06), 0 1px 2px rgba(15,36,64,0.04);
  --shadow-md:0 8px 24px rgba(15,36,64,0.08);
  --shadow-lg:0 20px 48px rgba(15,36,64,0.12);
  --ease:cubic-bezier(.4,0,.2,1);
}

*,*::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(--cream);
  -webkit-font-smoothing:antialiased;
  line-height:1.6;
}

img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}
ul{margin:0;padding:0;list-style:none;}
button{font-family:inherit;}

h1,h2,h3,h4{
  font-family:var(--font-display);
  color:var(--navy-900);
  margin:0;
  font-weight:600;
  line-height:1.15;
  letter-spacing:-0.01em;
}

h1{font-size:clamp(2.4rem,4.4vw,4rem);}
h2{font-size:clamp(1.9rem,3vw,2.7rem);}
h3{font-size:clamp(1.25rem,1.8vw,1.5rem);}

p{margin:0 0 1em;color:var(--slate);}
p:last-child{margin-bottom:0;}

.container{
  max-width:var(--container);
  margin:0 auto;
  padding:0 32px;
}

@media (max-width:640px){
  .container{padding:0 20px;}
}

/* -------------------- Eyebrow / label style (echoes "FOUNDATION" tracking) -------------------- */
.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-family:var(--font-body);
  font-size:0.72rem;
  font-weight:600;
  letter-spacing:0.22em;
  text-transform:uppercase;
  color:var(--gold-700);
  margin-bottom:16px;
}
.eyebrow::before{
  content:"";
  width:22px;
  height:1px;
  background:var(--gold-600);
  display:inline-block;
}

/* -------------------- Buttons -------------------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:14px 30px;
  border-radius:999px;
  font-size:0.95rem;
  font-weight:600;
  letter-spacing:0.01em;
  border:1px solid transparent;
  cursor:pointer;
  transition:all .25s var(--ease);
  white-space:nowrap;
}
.btn-primary{
  background:var(--navy-800);
  color:var(--white);
}
.btn-primary:hover{background:var(--navy-900); transform:translateY(-1px); box-shadow:var(--shadow-md);}
.btn-gold{
  background:var(--gold-500);
  color:var(--navy-900);
}
.btn-gold:hover{background:var(--gold-600); transform:translateY(-1px); box-shadow:var(--shadow-md);}
.btn-outline{
  background:transparent;
  border-color:var(--navy-800);
  color:var(--navy-800);
}
.btn-outline:hover{background:var(--navy-800); color:var(--white);}
.btn-outline-light{
  background:transparent;
  border-color:rgba(255,255,255,0.5);
  color:var(--white);
}
.btn-outline-light:hover{background:rgba(255,255,255,0.12); border-color:var(--white);}
.btn-sm{padding:10px 22px; font-size:0.85rem;}

:focus-visible{
  outline:2.5px solid var(--gold-500);
  outline-offset:3px;
  border-radius:4px;
}

/* -------------------- Header / Nav -------------------- */
.site-header{
  position:sticky;
  top:0;
  z-index:1000;
  background:rgba(250,247,241,0.92);
  backdrop-filter:saturate(180%) blur(10px);
  border-bottom:1px solid var(--line);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px 32px;
  max-width:var(--container);
  margin:0 auto;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
}
.brand img{height:46px;width:auto;}
.brand-text{display:flex; flex-direction:column; line-height:1.1;}
.brand-text .name{font-family:var(--font-display); font-weight:600; font-size:1.15rem; color:var(--navy-900); letter-spacing:0.01em;}
.brand-text .sub{font-size:0.6rem; letter-spacing:0.24em; color:var(--slate); font-weight:600;}

.main-nav{display:flex; align-items:center; gap:2px;}
.main-nav a{
  padding:10px 16px;
  font-size:0.92rem;
  font-weight:500;
  color:var(--navy-800);
  border-radius:999px;
  transition:background .2s var(--ease), color .2s var(--ease);
}
.main-nav a:hover{background:var(--cream-2);}
.main-nav a.active{color:var(--gold-600); font-weight:600;}

.header-cta{display:flex; align-items:center; gap:14px;}

.nav-toggle{
  display:none;
  background:none;
  border:none;
  cursor:pointer;
  padding:8px;
  color:var(--navy-900);
}
.nav-toggle svg{width:26px;height:26px;}

@media (max-width:960px){
  .main-nav{
    position:fixed;
    inset:0 0 0 auto;
    top:78px;
    height:calc(100vh - 78px);
    width:min(320px,80vw);
    background:var(--white);
    flex-direction:column;
    align-items:flex-start;
    padding:24px;
    gap:4px;
    box-shadow:var(--shadow-lg);
    transform:translateX(100%);
    transition:transform .3s var(--ease);
    overflow-y:auto;
  }
  .main-nav.open{transform:translateX(0);}
  .main-nav a{width:100%; padding:14px 16px;}
  .header-cta .btn-outline{display:none;}
  .nav-toggle{display:inline-flex;}
  .brand-text .sub{display:none;}
}

/* -------------------- Hero -------------------- */
.hero{
  position:relative;
  overflow:hidden;
  padding:88px 0 100px;
}
.hero-grid{
  display:grid;
  grid-template-columns:1.05fr 0.95fr;
  gap:56px;
  align-items:center;
}
.hero h1{margin-bottom:22px;}
.hero .lede{font-size:1.15rem; max-width:520px; margin-bottom:34px;}
.hero-actions{display:flex; gap:16px; flex-wrap:wrap;}
.hero-art{position:relative; display:flex; align-items:center; justify-content:center;}
.hero-art svg{width:100%; max-width:460px; height:auto;}

@media (max-width:900px){
  .hero-grid{grid-template-columns:1fr; gap:40px;}
  .hero-art{order:-1;}
  .hero-art svg{max-width:280px;}
}

/* -------------------- Page hero (interior pages) -------------------- */
.page-hero{
  background:linear-gradient(160deg,var(--navy-900),var(--navy-700) 65%,var(--navy-600));
  color:var(--white);
  padding:76px 0 68px;
  position:relative;
  overflow:hidden;
}
.page-hero .eyebrow{color:var(--gold-400);}
.page-hero .eyebrow::before{background:var(--gold-400);}
.page-hero h1{color:var(--white); max-width:720px;}
.page-hero p{color:rgba(255,255,255,0.78); max-width:640px; font-size:1.05rem; margin-top:14px;}
.page-hero .motif{position:absolute; right:-60px; top:50%; transform:translateY(-50%); opacity:0.18; width:420px;}

/* -------------------- Sections -------------------- */
.section{padding:96px 0;}
.section-tight{padding:64px 0;}
.section-header{max-width:680px; margin-bottom:56px;}
.section-header.center{margin-left:auto; margin-right:auto; text-align:center;}
.section-alt{background:var(--white);}
.section-navy{background:var(--navy-900); color:var(--white);}
.section-navy h2{color:var(--white);}
.section-navy p{color:rgba(255,255,255,0.72);}
.section-navy .eyebrow{color:var(--gold-400);}
.section-navy .eyebrow::before{background:var(--gold-400);}

.divider{
  display:flex; align-items:center; justify-content:center; gap:16px;
  margin:0 auto 56px;
  max-width:340px;
}
.divider span{height:1px; flex:1; background:var(--line-strong);}
.divider .dot{width:6px;height:6px;border-radius:50%;background:var(--gold-500); flex:none;}

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

.card{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  padding:32px 28px;
  transition:transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card:hover{transform:translateY(-4px); box-shadow:var(--shadow-md); border-color:transparent;}
.card .icon{
  width:48px;height:48px;
  border-radius:12px;
  background:var(--gold-100);
  display:flex;align-items:center;justify-content:center;
  margin-bottom:20px;
  color:var(--navy-800);
}
.card .icon svg{width:24px;height:24px;}
.card h3{margin-bottom:10px;}
.card p{font-size:0.95rem;}

.card-dark{
  background:var(--navy-800);
  color:var(--white);
}
.card-dark h3{color:var(--white);}
.card-dark p{color:rgba(255,255,255,0.72);}
.card-dark .icon{background:rgba(255,255,255,0.1); color:var(--gold-400);}

/* -------------------- Stats -------------------- */
.stat{text-align:center; padding:0 12px;}
.stat .num{
  font-family:var(--font-display);
  font-size:clamp(2.2rem,4vw,3.2rem);
  color:var(--gold-400);
  font-weight:600;
  line-height:1;
  margin-bottom:8px;
}
.stat .label{font-size:0.85rem; letter-spacing:0.05em; color:rgba(255,255,255,0.75); text-transform:uppercase; font-weight:500;}

/* -------------------- Photo placeholder blocks -------------------- */
.photo{
  border-radius:var(--radius-lg);
  overflow:hidden;
  background:linear-gradient(135deg,var(--navy-700),var(--navy-900));
  position:relative;
  display:flex;align-items:flex-end;
  min-height:220px;
  color:#fff;
}
.photo img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0;}
.photo .cap{position:relative; z-index:2; padding:20px; font-size:0.85rem; font-weight:600; background:linear-gradient(0deg,rgba(15,36,64,0.85),transparent);width:100%;}

/* -------------------- Value list -------------------- */
.value-row{
  display:flex;
  gap:20px;
  padding:26px 0;
  border-bottom:1px solid var(--line);
}
.value-row:last-child{border-bottom:none;}
.value-row .num{
  font-family:var(--font-display);
  font-size:1.4rem;
  color:var(--gold-500);
  min-width:44px;
}
.value-row h4{font-family:var(--font-display); font-size:1.15rem; color:var(--navy-900); margin:0 0 6px;}
.value-row p{font-size:0.94rem;margin:0;}

/* -------------------- Testimonials -------------------- */
.quote-card{
  background:var(--white);
  border-radius:var(--radius-lg);
  padding:36px 32px;
  border:1px solid var(--line);
}
.quote-card .mark{font-family:var(--font-display); font-size:2.6rem; color:var(--gold-400); line-height:1; margin-bottom:8px;}
.quote-card p{font-style:italic; color:var(--ink); font-size:1.02rem;}
.quote-card .who{margin-top:18px; font-weight:600; font-style:normal; color:var(--navy-800); font-size:0.9rem;}
.quote-card .who span{display:block; font-weight:400; color:var(--slate); font-size:0.82rem; margin-top:2px;}

/* -------------------- CTA band -------------------- */
.cta-band{
  background:var(--navy-900);
  border-radius:var(--radius-lg);
  padding:56px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:32px;
  flex-wrap:wrap;
  position:relative;
  overflow:hidden;
}
.cta-band h2{color:var(--white); max-width:520px;}
.cta-band p{color:rgba(255,255,255,0.7); margin-top:10px; max-width:480px;}
.cta-actions{display:flex;gap:14px;flex-wrap:wrap;}

/* -------------------- Footer -------------------- */
.site-footer{background:var(--navy-900); color:rgba(255,255,255,0.75); padding-top:72px;}
.footer-grid{
  display:grid;
  grid-template-columns:1.6fr 1fr 1fr 1.2fr;
  gap:40px;
  padding-bottom:48px;
  border-bottom:1px solid rgba(255,255,255,0.1);
}
.footer-brand{display:flex; gap:12px; align-items:center; margin-bottom:18px;}
.footer-brand img{height:42px;}
.footer-brand .name{font-family:var(--font-display); color:var(--white); font-size:1.1rem;}
.footer-col h5{color:var(--white); font-size:0.85rem; letter-spacing:0.1em; text-transform:uppercase; margin:0 0 18px; font-weight:600;}
.footer-col a{display:block; padding:6px 0; font-size:0.92rem; color:rgba(255,255,255,0.68); transition:color .2s;}
.footer-col a:hover{color:var(--gold-400);}
.footer-col p{color:rgba(255,255,255,0.68); font-size:0.92rem;}
.footer-tagline{font-family:var(--font-display); font-style:italic; color:var(--gold-300,#dbbd83); font-size:1.05rem; max-width:340px;}
.social-row{display:flex; gap:10px; margin-top:18px;}
.social-row a{
  width:38px;height:38px;border-radius:50%;
  background:rgba(255,255,255,0.08);
  display:flex;align-items:center;justify-content:center;
  transition:background .2s;
}
.social-row a:hover{background:var(--gold-500);}
.social-row svg{width:17px;height:17px;}
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center;
  padding:26px 0; font-size:0.82rem; color:rgba(255,255,255,0.5);
  flex-wrap:wrap; gap:12px;
}
.footer-bottom a{color:rgba(255,255,255,0.5);}
.footer-bottom a:hover{color:var(--gold-400);}

@media (max-width:900px){
  .footer-grid{grid-template-columns:1fr 1fr; row-gap:36px;}
}
@media (max-width:560px){
  .footer-grid{grid-template-columns:1fr;}
}

/* -------------------- Breadcrumb-free page intro utility -------------------- */
.narrow{max-width:760px;}
.center{text-align:center;}
.mx-auto{margin-left:auto;margin-right:auto;}

/* -------------------- Forms -------------------- */
.form-grid{display:grid; grid-template-columns:1fr 1fr; gap:20px;}
.form-grid .full{grid-column:1/-1;}
@media (max-width:640px){.form-grid{grid-template-columns:1fr;}}
label{display:block; font-size:0.85rem; font-weight:600; color:var(--navy-800); margin-bottom:8px;}
input,textarea,select{
  width:100%;
  padding:13px 16px;
  border:1px solid var(--line-strong);
  border-radius:var(--radius);
  font-family:var(--font-body);
  font-size:0.95rem;
  background:var(--white);
  color:var(--ink);
  transition:border-color .2s;
}
input:focus,textarea:focus,select:focus{border-color:var(--navy-700); outline:none;}
textarea{resize:vertical; min-height:130px;}
.field{margin-bottom:0;}
.form-note{font-size:0.82rem; color:var(--slate-light); margin-top:14px;}

/* -------------------- Contact info list -------------------- */
.info-item{display:flex; gap:16px; padding:22px 0; border-bottom:1px solid var(--line);}
.info-item:last-child{border-bottom:none;}
.info-item .icon{
  width:44px;height:44px;border-radius:10px;background:var(--gold-100);
  display:flex;align-items:center;justify-content:center;flex:none;color:var(--navy-800);
}
.info-item .icon svg{width:20px;height:20px;}
.info-item h4{font-family:var(--font-body); font-weight:600; font-size:0.95rem; color:var(--navy-900); margin:0 0 4px;}
.info-item p{font-size:0.92rem; margin:0;}

/* -------------------- Gallery -------------------- */
.gallery-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:18px;}
.gallery-grid .photo{min-height:240px;}
.gallery-grid .tall{grid-row:span 2; min-height:508px;}
@media (max-width:900px){.gallery-grid{grid-template-columns:repeat(2,1fr);} .gallery-grid .tall{grid-row:span 1; min-height:240px;}}
@media (max-width:560px){.gallery-grid{grid-template-columns:1fr;}}

.filter-row{display:flex; gap:10px; flex-wrap:wrap; margin-bottom:40px;}
.filter-btn{
  padding:10px 20px; border-radius:999px; border:1px solid var(--line-strong);
  background:var(--white); font-size:0.85rem; font-weight:600; color:var(--navy-800); cursor:pointer;
  transition:all .2s;
}
.filter-btn.active,.filter-btn:hover{background:var(--navy-800); color:var(--white); border-color:var(--navy-800);}

/* -------------------- Program detail rows -------------------- */
.program-row{
  display:grid;
  grid-template-columns:0.9fr 1.1fr;
  gap:52px;
  align-items:center;
  padding:64px 0;
  border-bottom:1px solid var(--line);
}
.program-row:last-child{border-bottom:none;}
.program-row:nth-child(even) .program-art{order:2;}
.program-row .num{font-family:var(--font-display); color:var(--gold-500); font-size:1rem; letter-spacing:0.1em;}
.program-row h3{font-size:clamp(1.4rem,2vw,1.9rem); margin:10px 0 16px;}
.program-list{margin-top:20px;}
.program-list li{display:flex; gap:10px; padding:6px 0; font-size:0.92rem; color:var(--slate);}
.program-list li svg{width:16px;height:16px;flex:none;margin-top:4px;color:var(--gold-600);}
@media (max-width:820px){
  .program-row{grid-template-columns:1fr; gap:28px;}
  .program-row:nth-child(even) .program-art{order:0;}
}

/* -------------------- Values grid on About -------------------- */
.value-card{padding:28px; border-radius:var(--radius-lg); background:var(--cream-2); border:1px solid var(--line);}
.value-card .num{font-family:var(--font-display); color:var(--gold-500); font-size:1.6rem; display:block; margin-bottom:12px;}

/* -------------------- Utility -------------------- */
.mt-0{margin-top:0;}
.reveal{opacity:0; transform:translateY(18px); transition:opacity .7s var(--ease), transform .7s var(--ease);}
.reveal.in{opacity:1; transform:translateY(0);}

.skip-link{
  position:absolute; left:-999px; top:0; background:var(--navy-900); color:#fff; padding:12px 20px; z-index:2000; border-radius:0 0 8px 0;
}
.skip-link:focus{left:0;}
