/* =========================================================================
   ST. MARY'S COOPERATIVE SCHOOLS
   Shared stylesheet — modern editorial theme (White + Gold)
   Used by: index / about / schools / news / contact
   ========================================================================= */

/* ---------- Design Tokens ---------- */
:root {
  --gold:        #C9A84C;
  --gold-dark:   #A8862F;
  --gold-light:  #E6D196;
  --gold-tint:   #FBF8EF;
  --white:       #FFFFFF;
  --cream:       #F6F2E8;
  --ink:         #14130F;   /* near-black display text */
  --ink-soft:    #2A2823;
  --slate:       #6A675E;   /* muted body text */
  --line:        #E7E1D2;
  --line-dark:   rgba(255,255,255,.16);

  --shadow-sm:   0 6px 22px rgba(20,19,15,0.06);
  --shadow-md:   0 18px 50px rgba(20,19,15,0.12);
  --shadow-gold: 0 18px 48px rgba(201,168,76,0.30);

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --maxw: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 4px;             /* tight, editorial corners */
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; }
::selection { background: var(--gold); color: #fff; }

a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--gold-dark);
  outline-offset: 3px;
}

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: clamp(72px, 10vw, 140px) 0; }

.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 700; letter-spacing: 3.5px;
  text-transform: uppercase; color: var(--gold-dark);
}
.kicker::before { content: ''; width: 26px; height: 1px; background: var(--gold); }
.kicker.center { justify-content: center; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -0.01em; }
.display { font-size: clamp(2.6rem, 6vw, 5rem); }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); margin-top: 18px; }
.section-head p { color: var(--slate); margin-top: 20px; font-size: 1.08rem; max-width: 60ch; }
.section-head.center p { margin-left: auto; margin-right: auto; }

.lead { font-size: 1.15rem; color: var(--ink-soft); }
.muted { color: var(--slate); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 700; font-size: 13.5px; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 16px 30px; border-radius: 50px; cursor: pointer;
  border: 1.5px solid transparent; background: var(--ink); color: #fff;
  transition: background-color .3s var(--ease), color .3s var(--ease),
              border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.btn svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.btn:hover { transform: translateY(-3px); }
.btn:hover svg { transform: translateX(4px); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-dark); box-shadow: var(--shadow-gold); }
.btn-dark:hover { background: var(--gold); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-light:hover { background: #fff; color: var(--ink); }

/* Text link with animated underline */
.link-underline {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 13px; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--gold-dark); position: relative; padding-bottom: 4px;
}
.link-underline::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 100%;
  background: var(--gold); transform: scaleX(.25); transform-origin: left; transition: transform .35s var(--ease);
}
.link-underline:hover::after { transform: scaleX(1); }
.link-underline svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.link-underline:hover svg { transform: translateX(4px); }

/* =========================================================================
   CURSOR HALO (subtle) — only enabled on fine pointers via JS (.halo-on)
   ========================================================================= */
.cursor-halo, .cursor-dot { display: none; }
.halo-on .cursor-halo {
  display: block; position: fixed; top: 0; left: 0; z-index: 9998;
  width: 46px; height: 46px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at center, rgba(201,168,76,.40), rgba(201,168,76,0) 68%);
  transform: translate(-50%, -50%); will-change: transform, width, height;
  transition: width .3s var(--ease), height .3s var(--ease), opacity .3s var(--ease);
}
.halo-on .cursor-dot {
  display: block; position: fixed; top: 0; left: 0; z-index: 9999;
  width: 6px; height: 6px; border-radius: 50%; pointer-events: none;
  background: var(--gold-dark); transform: translate(-50%, -50%); will-change: transform;
}
.halo-on.halo-hover .cursor-halo { width: 76px; height: 76px; }

/* =========================================================================
   HEADER / NAV
   ========================================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  display: flex; align-items: center; gap: 28px;
  padding: 22px var(--gutter);
  transition: padding .35s var(--ease), background-color .35s var(--ease),
              box-shadow .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
/* Transparent over hero — light text */
.site-header { color: #fff; }
.site-header.scrolled {
  background: rgba(255,255,255,0.15); backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px); color: var(--ink);
  box-shadow: var(--shadow-sm); border-bottom: 1px solid rgba(201,168,76,0.3);
  padding-top: 14px; padding-bottom: 14px;
}
/* Pages without a dark hero can force the solid header from the start */
.site-header.solid {
  position: fixed; background: rgba(255,255,255,0.15); backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px); color: var(--ink); border-bottom: 1px solid rgba(201,168,76,0.3);
}

.brand { display: flex; align-items: center; gap: 13px; }
.brand-mark {
  width: 44px; height: 44px; flex: none; border-radius: 50%;
  background: var(--gold); color: #fff; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 19px;
  box-shadow: 0 4px 14px rgba(201,168,76,.45);
}
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.05; }
.brand-name small {
  display: block; font-family: var(--font-body); font-weight: 700;
  font-size: 9.5px; letter-spacing: 2.6px; text-transform: uppercase;
  opacity: .72; margin-top: 2px;
}

/* Live clock / location meta */
.header-meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase;
  opacity: .8;
}
.header-meta .pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

.header-spacer { flex: 1; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  position: relative; font-size: 12.5px; font-weight: 700; letter-spacing: 1.4px;
  text-transform: uppercase; padding: 4px 0; transition: opacity .25s var(--ease);
}
.nav a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 0;
  background: currentColor; transition: width .3s var(--ease);
}
.nav a:hover::after, .nav a.active::after { width: 100%; }
.nav a.active { color: var(--gold-dark); }
.site-header:not(.scrolled):not(.solid) .nav a.active { color: var(--gold-light); }

.nav-cta {
  font-size: 12px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase;
  padding: 12px 22px; border-radius: 50px; border: 1.5px solid currentColor;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.site-header.scrolled .nav-cta, .site-header.solid .nav-cta { border-color: var(--gold); color: var(--gold-dark); }
.nav-cta:hover { background: var(--gold); color: #fff; border-color: var(--gold); }

/* Hamburger */
.menu-toggle {
  display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.menu-toggle span { width: 26px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .35s var(--ease), opacity .35s var(--ease); }
.menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Full-screen mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 999; background: var(--ink); color: #fff;
  display: flex; flex-direction: column; justify-content: center; padding: 0 var(--gutter);
  transform: translateY(-100%); transition: transform .5s var(--ease); visibility: hidden;
}
.mobile-menu.open { transform: translateY(0); visibility: visible; }
.mobile-menu a {
  font-family: var(--font-display); font-size: clamp(2rem, 9vw, 3.4rem); font-weight: 600;
  padding: 12px 0; border-bottom: 1px solid var(--line-dark);
  display: flex; align-items: baseline; gap: 16px; transition: color .25s var(--ease), padding-left .3s var(--ease);
}
.mobile-menu a span { font-family: var(--font-body); font-size: 13px; letter-spacing: 2px; color: var(--gold-light); }
.mobile-menu a:hover { color: var(--gold-light); padding-left: 14px; }

/* =========================================================================
   HOME HERO (full-bleed, oversized type)
   ========================================================================= */
.hero { position: relative; min-height: 100vh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  background-color: var(--ink); opacity: 0; transform: scale(1.06);
  transition: opacity 1.3s var(--ease), transform 7s linear;
}
.hero-slide.active { opacity: 1; transform: scale(1); }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(20,19,15,.55) 0%, rgba(20,19,15,.15) 32%, rgba(20,19,15,.25) 62%, rgba(20,19,15,.82) 100%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(48px, 8vw, 96px); color: #fff; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 22px;
  font-size: 12px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--gold-light);
}
.hero-eyebrow::before { content: ''; width: 30px; height: 1px; background: var(--gold-light); }
.hero h1 {
  font-size: clamp(3rem, 11.5vw, 11rem); font-weight: 800; line-height: .92;
  letter-spacing: -0.02em; text-shadow: 0 8px 50px rgba(0,0,0,.35);
}
.hero h1 em { font-style: italic; font-weight: 500; color: var(--gold-light); }
.hero-bottom {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 30px; margin-top: clamp(28px, 5vw, 52px);
}
.hero-desc { max-width: 42ch; font-size: 1.05rem; color: rgba(255,255,255,.9); }
.hero-desc strong { color: #fff; font-weight: 700; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero controls */
.hero-controls { position: absolute; right: var(--gutter); bottom: clamp(48px, 8vw, 96px); z-index: 3; display: flex; gap: 12px; }
.hero-arrow {
  width: 54px; height: 54px; border-radius: 50%; cursor: pointer; color: #fff;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.35);
  display: grid; place-items: center; backdrop-filter: blur(4px);
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.hero-arrow:hover { background: var(--gold); border-color: var(--gold); transform: scale(1.06); }
.hero-arrow svg { width: 20px; height: 20px; }
.hero-progress { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; z-index: 3; background: rgba(255,255,255,.12); }
.hero-progress span { display: block; height: 100%; width: 0; background: var(--gold); }

/* Scroll cue */
.scroll-cue {
  position: absolute; left: 50%; bottom: 22px; z-index: 3; transform: translateX(-50%);
  font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase; color: rgba(255,255,255,.7);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.scroll-cue .line { width: 1px; height: 40px; background: linear-gradient(var(--gold-light), transparent); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0%,100% { transform: scaleY(.4); opacity:.5;} 50% { transform: scaleY(1); opacity:1; } }

/* =========================================================================
   PAGE HERO (inner pages)
   ========================================================================= */
.page-hero { position: relative; min-height: 64vh; display: flex; align-items: flex-end; overflow: hidden; }
.page-hero .bg { position: absolute; inset: 0; background-size: cover; background-position: center; background-color: var(--ink); }
.page-hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,19,15,.5), rgba(20,19,15,.78));
}
.page-hero-inner { position: relative; z-index: 2; color: #fff; padding-bottom: clamp(40px, 6vw, 72px); }
.page-hero h1 { font-size: clamp(2.6rem, 8vw, 6rem); font-weight: 800; }
.page-hero .crumbs { margin-top: 16px; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.8); }
.page-hero .crumbs a:hover { color: var(--gold-light); }

/* =========================================================================
   MARQUEE strip
   ========================================================================= */
.marquee { background: var(--ink); color: #fff; overflow: hidden; padding: 22px 0; }
.marquee-track { display: flex; gap: 0; white-space: nowrap; width: max-content; animation: marquee 28s linear infinite; }
.marquee-track span { font-family: var(--font-display); font-size: 1.5rem; font-style: italic; padding: 0 34px; opacity: .92; }
.marquee-track span::before { content: '✦'; color: var(--gold); font-style: normal; margin-right: 34px; font-size: .9rem; vertical-align: middle; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================================
   ABOUT / SPLIT sections
   ========================================================================= */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 84px); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media .frame { position: relative; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-md); aspect-ratio: 4/5; background: linear-gradient(135deg, var(--gold-light), var(--gold-dark)); }
.split-media .frame img { width: 100%; height: 100%; object-fit: cover; }
.split-media .badge {
  position: absolute; right: -20px; bottom: -24px; background: var(--gold); color: #fff;
  padding: 24px 30px; border-radius: var(--radius); text-align: center; box-shadow: var(--shadow-gold);
}
.split-media .badge strong { font-family: var(--font-display); font-size: 2.4rem; display: block; line-height: 1; }
.split-media .badge span { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; }
.split-body h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin: 18px 0 22px; }
.split-body p { color: var(--slate); margin-bottom: 18px; }
.rule { width: 64px; height: 2px; background: var(--gold); margin: 22px 0; }

/* Mini stat row */
.mini-stats { display: flex; flex-wrap: wrap; gap: 36px; margin: 28px 0; }
.mini-stats .ms strong { font-family: var(--font-display); font-size: 2.2rem; color: var(--ink); display: block; line-height: 1; }
.mini-stats .ms span { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--slate); }

/* =========================================================================
   SCHOOL CARDS / LISTING
   ========================================================================= */
.bg-cream { background: var(--cream); }
.bg-tint { background: var(--gold-tint); }

.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.s-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.s-card:hover { transform: translateY(-12px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.s-thumb { position: relative; height: 200px; overflow: hidden; background: linear-gradient(135deg, var(--gold-light), var(--gold-dark)); }
.s-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.s-card:hover .s-thumb img { transform: scale(1.08); }
.s-thumb .tag {
  position: absolute; top: 14px; left: 14px; background: rgba(255,255,255,.92); color: var(--gold-dark);
  font-size: 10.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 6px 12px; border-radius: 50px;
}
.s-info { padding: 26px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.s-info h3 { font-size: 1.4rem; margin-bottom: 10px; }
.s-info p { color: var(--slate); font-size: .96rem; flex: 1; margin-bottom: 22px; }

/* Detailed school row (schools.html) */
.school-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.school-row + .school-row { margin-top: clamp(64px, 9vw, 120px); }
.school-row.reverse .sr-media { order: 2; }
.sr-media { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-md); aspect-ratio: 16/11; background: linear-gradient(135deg, var(--gold-light), var(--gold-dark)); }
.sr-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.sr-media:hover img { transform: scale(1.05); }
.sr-body .index { font-family: var(--font-display); font-size: 1.1rem; color: var(--gold-dark); letter-spacing: 2px; }
.sr-body h3 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: 8px 0 18px; }
.sr-body p { color: var(--slate); margin-bottom: 22px; }
.sr-feats { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.sr-feats li { font-size: 12px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--gold-dark); background: var(--gold-tint); border: 1px solid var(--gold-light); padding: 8px 14px; border-radius: 50px; }

/* =========================================================================
   STATS band
   ========================================================================= */
.stats-band { background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%); color: #fff; position: relative; overflow: hidden; }
.stats-band::before { content:''; position:absolute; top:-140px; right:-90px; width:420px; height:420px; border-radius:50%; background: rgba(255,255,255,.08); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; position: relative; z-index: 1; }
.stat { text-align: center; }
.stat .num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.6rem, 5.5vw, 4rem); line-height: 1; }
.stat .num .suffix { color: var(--gold-light); }
.stat .label { margin-top: 12px; font-weight: 700; letter-spacing: .6px; font-size: .98rem; color: rgba(255,255,255,.92); }

/* =========================================================================
   NEWS
   ========================================================================= */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.n-card { background:#fff; border:1px solid var(--line); border-radius: var(--radius); overflow:hidden; display:flex; flex-direction:column; box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.n-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.n-img { position: relative; height: 220px; overflow: hidden; background: linear-gradient(135deg, var(--gold-light), var(--gold-dark)); }
.n-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.n-card:hover .n-img img { transform: scale(1.06); }
.n-date { position: absolute; bottom: 14px; left: 14px; background: var(--gold); color:#fff; border-radius: var(--radius); text-align:center; padding: 9px 14px; line-height: 1; box-shadow: var(--shadow-sm); }
.n-date strong { font-family: var(--font-display); font-size: 1.4rem; display:block; }
.n-date span { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }
.n-body { padding: 24px 24px 28px; display:flex; flex-direction:column; flex:1; }
.n-cat { font-size: 11.5px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 12px; }
.n-body h3 { font-size: 1.3rem; line-height: 1.3; margin-bottom: 12px; }
.n-body p { color: var(--slate); font-size: .96rem; flex:1; margin-bottom: 18px; }

/* Events list */
.event-list { border-top: 1px solid var(--line); }
.event { display: grid; grid-template-columns: 120px 1fr auto; gap: 28px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line); transition: padding-left .3s var(--ease); }
.event:hover { padding-left: 12px; }
.event .e-date { font-family: var(--font-display); }
.event .e-date strong { font-size: 2.4rem; display: block; line-height: 1; }
.event .e-date span { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold-dark); }
.event h3 { font-size: 1.35rem; }
.event .e-meta { font-size: 13px; color: var(--slate); letter-spacing: .5px; }

/* =========================================================================
   FEATURES (why choose us)
   ========================================================================= */
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feat { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 40px 28px; box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.feat:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.feat-icon { width: 64px; height: 64px; border-radius: 50%; display:grid; place-items:center; color: var(--gold-dark); background: var(--gold-tint); border: 1px solid var(--gold-light); margin-bottom: 22px; transition: background-color .3s var(--ease), color .3s var(--ease); }
.feat:hover .feat-icon { background: var(--gold); color:#fff; }
.feat-icon svg { width: 30px; height: 30px; }
.feat h3 { font-size: 1.25rem; margin-bottom: 10px; }
.feat p { color: var(--slate); font-size: .95rem; }

/* =========================================================================
   VALUES / mission grid
   ========================================================================= */
.value-grid { display:grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.value { border: 1px solid var(--line); border-radius: var(--radius); padding: 38px 30px; background:#fff; }
.value .vnum { font-family: var(--font-display); font-size: 2.4rem; color: var(--gold); line-height:1; }
.value h3 { font-size: 1.3rem; margin: 14px 0 10px; }
.value p { color: var(--slate); font-size: .96rem; }

/* Timeline */
.timeline { position: relative; max-width: 760px; margin: 0 auto; padding-left: 30px; }
.timeline::before { content:''; position:absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--gold-light); }
.tl-item { position: relative; padding: 0 0 40px 28px; }
.tl-item::before { content:''; position:absolute; left: -30px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--gold-light); }
.tl-item .year { font-family: var(--font-display); font-size: 1.5rem; color: var(--gold-dark); }
.tl-item h3 { font-size: 1.2rem; margin: 4px 0 8px; }
.tl-item p { color: var(--slate); font-size: .96rem; }

/* =========================================================================
   TESTIMONIALS
   ========================================================================= */
.testi-viewport { max-width: 860px; margin: 0 auto; overflow: hidden; }
.testi-track { display: flex; transition: transform .7s var(--ease); }
.testi-card { min-width: 100%; padding: 0 10px; }
.testi-inner { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: clamp(32px, 5vw, 54px); text-align:center; box-shadow: var(--shadow-sm); }
.stars { display:inline-flex; gap:5px; color: var(--gold); margin-bottom: 22px; }
.stars svg { width: 22px; height: 22px; }
.testi-quote { font-family: var(--font-display); font-style: italic; font-size: clamp(1.2rem, 2.6vw, 1.7rem); line-height: 1.5; }
.testi-person { margin-top: 28px; display:flex; flex-direction:column; align-items:center; gap: 4px; }
.testi-avatar { width: 60px; height: 60px; border-radius:50%; background: var(--gold); color:#fff; display:grid; place-items:center; font-family: var(--font-display); font-weight:700; font-size: 1.4rem; margin-bottom: 8px; }
.testi-person strong { font-size: 1.05rem; }
.testi-person span { font-size: .88rem; color: var(--slate); letter-spacing:.5px; }
.testi-dots { display:flex; gap: 10px; justify-content:center; margin-top: 32px; }
.testi-dots button { width: 11px; height: 11px; border-radius:50%; border:0; cursor:pointer; background: var(--line); padding:0; transition: background-color .3s var(--ease), width .3s var(--ease); }
.testi-dots button.active { background: var(--gold); width: 30px; border-radius: 50px; }

/* =========================================================================
   CTA band
   ========================================================================= */
.cta { position: relative; overflow: hidden; background-size: cover; background-position: center; background-color: var(--ink); color:#fff; text-align:center; }
.cta::after { content:''; position:absolute; inset:0; background: linear-gradient(rgba(20,19,15,.78), rgba(20,19,15,.86)); }
.cta .container { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(2rem, 5vw, 3.6rem); max-width: 18ch; margin: 18px auto 22px; }
.cta p { color: rgba(255,255,255,.85); max-width: 56ch; margin: 0 auto 34px; }
.cta-actions { display:flex; gap: 14px; justify-content:center; flex-wrap: wrap; }

/* =========================================================================
   CONTACT
   ========================================================================= */
.contact-grid { display:grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.info-cards { display:grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 30px; }
.info-card { border:1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; background:#fff; }
.info-card .ic-icon { width: 46px; height:46px; border-radius:50%; background: var(--gold-tint); border:1px solid var(--gold-light); color: var(--gold-dark); display:grid; place-items:center; margin-bottom: 16px; }
.info-card .ic-icon svg { width: 22px; height: 22px; }
.info-card h4 { font-family: var(--font-body); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--slate); margin-bottom: 6px; }
.info-card p { font-size: 1.02rem; color: var(--ink); }

.form { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow-sm); }
.form-row { display:grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 20px; }
.field label { display:block; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--slate); margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--gold-tint);
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold); background: #fff; outline: none; }
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 13px; color: var(--slate); margin-top: 10px; }
.form-success { display:none; margin-top: 16px; padding: 14px 18px; border-radius: var(--radius); background: var(--gold-tint); border: 1px solid var(--gold-light); color: var(--gold-dark); font-weight: 700; }
.form-success.show { display: block; }

.map-wrap { margin-top: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.map-wrap iframe { display:block; width: 100%; height: 420px; border: 0; filter: grayscale(.2) contrast(1.05); }

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer { background: var(--ink); color: rgba(255,255,255,.7); padding: clamp(60px, 8vw, 100px) 0 0; }
.footer-top { display:grid; grid-template-columns: 1.7fr 1fr 1fr 1.3fr; gap: 44px; }
.footer-top h4 { color:#fff; font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 22px; }
.f-brand .fb { display:flex; align-items:center; gap: 13px; margin-bottom: 18px; }
.f-brand .fb strong { font-family: var(--font-display); font-size: 1.35rem; color: var(--gold-light); }
.f-brand p { font-size: .95rem; line-height: 1.8; }
.f-col a, .f-col li { display:block; font-size: .95rem; margin-bottom: 12px; transition: color .25s var(--ease), padding-left .25s var(--ease); }
.f-col a:hover { color: var(--gold-light); padding-left: 6px; }
.f-contact li { display:flex; gap: 12px; align-items:flex-start; font-size: .95rem; margin-bottom: 16px; }
.f-contact svg { width: 18px; height: 18px; flex:none; color: var(--gold-light); margin-top: 3px; }
.socials { display:flex; gap: 12px; margin-top: 24px; }
.socials a { width: 42px; height:42px; border-radius:50%; display:grid; place-items:center; background: rgba(255,255,255,.08); color:#fff; transition: background-color .3s var(--ease), transform .3s var(--ease); }
.socials a:hover { background: var(--gold); transform: translateY(-3px); }
.socials svg { width: 19px; height: 19px; }
.footer-bottom { margin-top: 56px; border-top: 1px solid var(--line-dark); padding: 24px 0; display:flex; justify-content:space-between; gap: 16px; flex-wrap: wrap; font-size: .88rem; color: rgba(255,255,255,.55); }

/* =========================================================================
   REVEAL ANIMATION
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1024px) {
  .cards-4, .feat-grid, .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid, .value-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .header-meta { display: none; }
}
@media (max-width: 860px) {
  .nav, .nav-cta { display: none; }
  .menu-toggle { display: flex; }
  .split, .school-row, .school-row.reverse, .contact-grid { grid-template-columns: 1fr; }
  .split.reverse .split-media, .school-row.reverse .sr-media { order: 0; }
  .split-media { max-width: 460px; }
}
@media (max-width: 620px) {
  .cards-4, .feat-grid, .stats-grid, .news-grid, .value-grid, .form-row, .info-cards, .footer-top { grid-template-columns: 1fr; }
  .stats-grid { gap: 44px; }
  .event { grid-template-columns: 90px 1fr; }
  .event .btn { grid-column: 1 / -1; justify-self: start; }
  .hero-controls { bottom: auto; top: 50%; transform: translateY(-50%); flex-direction: column; right: 12px; }
}

/* =========================================================================
   NEWS SLIDER (dynamic, auto-rotating, compact size)
   ========================================================================= */
/* Top-of-page "Latest News" band: intro on the left, rotating square box on the right */
.news-top { padding: clamp(46px, 6vw, 84px) 0; }
.news-top-inner { display: grid; grid-template-columns: 1fr minmax(300px, 410px); gap: clamp(30px, 5vw, 70px); align-items: center; }
.news-top-inner .section-head { margin: 0; text-align: left; }
.news-top-inner .section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
.nt-link { margin-top: 26px; }

/* The compact square news box */
.news-slider { position: relative; width: 100%; max-width: 410px; margin: 0; padding: 0; }
.ns-viewport { position: relative; overflow: hidden; border-radius: calc(var(--radius) + 6px); aspect-ratio: 1 / 1; border: 1px solid var(--line); box-shadow: var(--shadow-lg); background: linear-gradient(135deg, var(--gold-light), var(--gold-dark)); }
.ns-track { display: flex; height: 100%; transition: transform .6s var(--ease); }
.ns-slide { position: relative; min-width: 100%; height: 100%; background-size: cover; background-position: center; display: flex; align-items: flex-end; }
.ns-slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(22,19,12,.93), rgba(22,19,12,.5) 42%, rgba(22,19,12,.04) 74%); }
.ns-body { position: relative; z-index: 2; width: 100%; padding: clamp(20px, 7%, 30px); color: #fff; }
.ns-body .n-cat { color: var(--gold-light); margin-bottom: 9px; }
.ns-body h3 { font-family: var(--font-display); font-size: clamp(1.15rem, 1.6vw, 1.5rem); line-height: 1.24; color: #fff; margin: 0 0 15px; }
.ns-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 13px; border-top: 1px solid rgba(255,255,255,.22); }
.ns-day { font-size: .82rem; letter-spacing: .03em; color: rgba(255,255,255,.82); }
.ns-link { display: inline-flex; align-items: center; gap: 7px; color: #fff; font-weight: 700; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.ns-link svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.ns-link:hover svg { transform: translateX(4px); }

.ns-arrow { position: absolute; top: 15px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.45); background: rgba(0,0,0,.32); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background-color .3s var(--ease), border-color .3s var(--ease); z-index: 4; }
.ns-arrow:hover { background: var(--gold); border-color: var(--gold); }
.ns-arrow.prev { right: 61px; left: auto; }
.ns-arrow.next { right: 15px; }
.ns-arrow svg { width: 17px; height: 17px; }

.ns-dots { display: flex; gap: 8px; justify-content: center; margin-top: 20px; }
.ns-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; cursor: pointer; background: var(--line); padding: 0; transition: background-color .3s var(--ease), width .3s var(--ease); }
.ns-dots button.active { background: var(--gold); width: 26px; border-radius: 50px; }

/* Signature block (manager / leadership messages) */
.signature { margin: 2px 0 28px; }
.signature strong { font-family: var(--font-display); font-size: 1.3rem; display: block; color: var(--ink); line-height: 1.2; }
.signature span { font-size: .9rem; color: var(--slate); letter-spacing: .4px; }

/* Narrow reading column + long-form prose */
.container.narrow { max-width: 820px; }
.prose p { color: var(--slate); font-size: 1.08rem; line-height: 1.85; margin-bottom: 22px; }
.prose p:first-of-type::first-letter { font-family: var(--font-display); font-size: 3.4em; font-weight: 700; float: left; line-height: .82; padding: 6px 14px 0 0; color: var(--gold-dark); }
.prose .signature { margin-top: 38px; }

@media (max-width: 860px) {
  .news-top-inner { grid-template-columns: 1fr; gap: 32px; }
  .news-slider { max-width: 400px; margin: 0 auto; }
  .nt-link { margin-top: 18px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-slide { transform: none !important; }
}

/* ===== MOBILE RESPONSIVENESS POLISH ===== */
html{overflow-x:clip;}
@media (max-width:640px){
  .field input,.field textarea,.field select{font-size:16px;}
  .form-row{grid-template-columns:1fr;}
}

/* ===== Phase 2: Profile page — leaders grid, placeholders, centered prose ===== */
.small{font-size:.86rem}
.prose-center p{margin:0 0 1rem}
.leaders-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:18px;margin-top:8px}
.leader-card{display:flex;align-items:center;gap:14px;background:var(--white);border:1px solid var(--line);
  border-radius:var(--radius);padding:16px 18px;box-shadow:var(--shadow-sm);transition:box-shadow .25s var(--ease),transform .25s var(--ease)}
.leader-card:hover{box-shadow:var(--shadow-md);transform:translateY(-2px)}
.leader-ph{flex:0 0 48px;width:48px;height:48px;border-radius:50%;display:grid;place-items:center;
  font-family:var(--font-display);font-size:1.25rem;font-weight:700;color:var(--white);
  background:linear-gradient(135deg,var(--gold),var(--gold-dark));box-shadow:var(--shadow-gold)}
.leader-card strong{font-family:var(--font-display);color:var(--ink);font-weight:600}
