/* ============================================================
   ST. MARY'S COLLEGE OF EDUCATION — STYLE SYSTEM
   Palette:  navy #122046, royal #1d3566, sky #4fa9db,
             gold #c8a24a, paper #faf7f0, ink #20242c, brick #a8512e
   Type:     Fraunces (display) / Source Sans 3 (body) / JetBrains Mono (labels)
   ============================================================ */

:root{
  --navy:        #122046;
  --navy-deep:   #0b1530;
  --royal:       #1d3566;
  --sky:         #4fa9db;
  --sky-soft:    #eaf4fb;
  --gold:        #c8a24a;
  --gold-soft:   #f1e6c8;
  --brick:       #a8512e;
  --paper:       #faf7f1;
  --paper-dim:   #f1ece1;
  --ink:         #20242c;
  --ink-soft:    #54596a;
  --line:        #e1dccd;
  --radius:      4px;
  --shadow-sm:   0 2px 10px rgba(18,32,70,.08);
  --shadow-md:   0 12px 32px rgba(18,32,70,.14);
  --ease:        cubic-bezier(.22,.61,.36,1);
}

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

body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size:17px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}

h1,h2,h3,h4{
  font-family:'Fraunces', Georgia, serif;
  font-weight:600;
  line-height:1.12;
  margin:0 0 .5em;
  color:var(--navy);
  letter-spacing:-.01em;
}
h1{ font-size:clamp(2.4rem,5vw,4.2rem); font-weight:560; }
h2{ font-size:clamp(1.8rem,3.4vw,2.7rem); }
h3{ font-size:1.35rem; }
p{ margin:0 0 1.1em; color:var(--ink-soft); }
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
ul{ margin:0; padding:0; list-style:none; }
.container{ max-width:1180px; margin:0 auto; padding:0 28px; }

.label{
  font-family:'JetBrains Mono', monospace;
  font-size:.72rem;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--gold);
  font-weight:600;
}
.label.on-dark{ color:var(--sky); }

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:.55em;
  padding:.95em 1.7em;
  border-radius:var(--radius);
  font-family:'Source Sans 3', sans-serif;
  font-weight:600;
  font-size:.95rem;
  letter-spacing:.01em;
  border:1px solid transparent;
  cursor:pointer;
  transition:transform .35s var(--ease), box-shadow .35s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn:focus-visible{ outline:2px solid var(--sky); outline-offset:3px; }
.btn-primary{ background:var(--gold); color:var(--navy-deep); }
.btn-primary:hover{ transform:translateY(-2px); box-shadow:var(--shadow-md); }
.btn-ghost{ background:transparent; color:#fff; border-color:rgba(255,255,255,.45); }
.btn-ghost:hover{ background:rgba(255,255,255,.12); border-color:#fff; }
.btn-outline{ background:transparent; color:var(--navy); border-color:var(--navy); }
.btn-outline:hover{ background:var(--navy); color:#fff; }
.btn-block{ width:100%; justify-content:center; }

/* ---------- seal / medallion signature motif ---------- */
.seal{
  --d:1px;
  width:64px; height:64px;
  border-radius:50%;
  border:var(--d) dashed var(--gold);
  display:grid; place-items:center;
  position:relative;
  flex:none;
}
.seal::after{
  content:'';
  width:46px;height:46px;
  border-radius:50%;
  border:1px solid var(--gold);
}
.dotted-rule{
  height:1px;
  background-image:radial-gradient(circle, var(--gold) 1.4px, transparent 1.5px);
  background-size:9px 1px;
  background-repeat:repeat-x;
  opacity:.65;
}

/* ============================================================ HEADER */
.site-header{
  position:sticky; top:0; z-index:100;
  background:rgba(11,21,48,.92);
  backdrop-filter:saturate(160%) blur(10px);
  border-bottom:1px solid rgba(255,255,255,.08);
  transition:background .35s var(--ease), padding .35s var(--ease);
}
.site-header .container{
  display:flex; align-items:center; justify-content:space-between;
  padding-top:14px; padding-bottom:14px;
  transition:padding .35s var(--ease);
}
.brand{ display:flex; align-items:center; gap:12px; color:#fff; }
.brand-crest{
  width:42px; height:42px; border-radius:50%;
  background:var(--navy) center/cover no-repeat;
  border:1.5px solid var(--gold);
  flex:none;
}
.brand-text{ display:flex; flex-direction:column; line-height:1.15; }
.brand-text strong{ font-family:'Fraunces',serif; font-size:1.08rem; font-weight:600; }
.brand-text span{ font-family:'JetBrains Mono',monospace; font-size:.62rem; letter-spacing:.14em; color:var(--sky); text-transform:uppercase; }

.main-nav ul{ display:flex; gap:2.1rem; align-items:center; }
.main-nav a{
  color:rgba(255,255,255,.82); font-size:.93rem; font-weight:600;
  position:relative; padding:6px 0;
  transition:color .25s;
}
.main-nav a::after{
  content:''; position:absolute; left:0; right:100%; bottom:0; height:2px;
  background:var(--gold); transition:right .3s var(--ease);
}
.main-nav a:hover{ color:#fff; }
.main-nav a:hover::after, .main-nav a.active::after{ right:0; }
.main-nav a.active{ color:#fff; }

.header-actions{ display:flex; align-items:center; gap:14px; }
.nav-toggle{
  display:none; background:none; border:0; cursor:pointer; padding:6px;
  flex-direction:column; gap:5px;
}
.nav-toggle span{ width:24px; height:2px; background:#fff; display:block; transition:transform .3s, opacity .3s; }

/* ============================================================ HERO */
.hero{
  position:relative; color:#fff;
  min-height:92vh; display:flex; align-items:flex-end;
  overflow:hidden;
  background:var(--navy-deep);
}
.hero-media{ position:absolute; inset:0; z-index:0; }
.hero-media img{ width:100%; height:100%; object-fit:cover; opacity:.55; }
.hero-media::after{
  content:'';
  position:absolute; inset:0;
  background:
    linear-gradient(0deg, rgba(8,14,33,.96) 0%, rgba(8,14,33,.55) 48%, rgba(11,21,48,.35) 100%),
    linear-gradient(100deg, rgba(11,21,48,.75) 0%, rgba(11,21,48,.15) 55%);
}
.hero-inner{ position:relative; z-index:1; padding:140px 0 84px; width:100%; }
.hero .label{ margin-bottom:18px; display:inline-block; }
.hero h1{ color:#fff; max-width:14ch; }
.hero-sub{ max-width:46ch; color:rgba(255,255,255,.82); font-size:1.12rem; }
.hero-cta{ display:flex; gap:16px; margin-top:34px; flex-wrap:wrap; }
.hero-stats{
  margin-top:64px; padding-top:28px;
  border-top:1px solid rgba(255,255,255,.18);
  display:grid; grid-template-columns:repeat(4,1fr); gap:20px;
}
.hero-stats div strong{ display:block; font-family:'Fraunces',serif; font-size:1.9rem; color:var(--gold); }
.hero-stats div span{ font-size:.82rem; color:rgba(255,255,255,.7); }

/* ============================================================ SECTIONS */
section{ padding:104px 0; }
.section-paper{ background:var(--paper); }
.section-dim{ background:var(--paper-dim); }
.section-navy{ background:var(--navy); color:#fff; }
.section-navy h2, .section-navy h3{ color:#fff; }
.section-navy p{ color:rgba(255,255,255,.75); }

.section-head{ max-width:680px; margin-bottom:56px; }
.section-head .label{ display:block; margin-bottom:14px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }

.eyebrow-row{ display:flex; align-items:center; gap:16px; margin-bottom:14px; }

/* fade-up reveal */
.reveal{ opacity:0; transform:translateY(26px); transition:opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible{ opacity:1; transform:none; }

/* ============================================================ ABOUT */
.about-grid{
  display:grid; grid-template-columns:1fr 1.05fr; gap:72px; align-items:center;
}
.about-photo{ position:relative; }
.about-photo .frame{
  border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow-md);
  aspect-ratio:4/5;
}
.about-photo .frame img{ width:100%; height:100%; object-fit:cover; }
.about-photo .seal{
  position:absolute; bottom:-26px; left:-26px;
  background:var(--paper); width:96px; height:96px;
}
.about-photo .seal::after{ width:70px; height:70px; }
.about-photo .seal-text{ font-family:'Fraunces',serif; font-size:.62rem; text-align:center; color:var(--navy); line-height:1.2; letter-spacing:.04em; text-transform:uppercase; }

.fact-strip{
  display:grid; grid-template-columns:repeat(4,1fr); gap:1px;
  background:var(--line); margin-top:54px; border:1px solid var(--line);
}
.fact-strip div{ background:var(--paper); padding:22px 20px; }
.fact-strip strong{ display:block; font-family:'Fraunces',serif; color:var(--navy); font-size:1.05rem; margin-bottom:4px; }
.fact-strip span{ font-size:.84rem; color:var(--ink-soft); }

/* ============================================================ PROGRAM CARDS */
.program-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--line); border:1px solid var(--line); }
.program-card{
  background:var(--paper); padding:38px 32px; position:relative;
  transition:background .3s;
}
.program-card:hover{ background:#fff; }
.program-card .dotted-rule{ margin-bottom:22px; }
.program-card .code{ font-family:'JetBrains Mono',monospace; font-size:.72rem; color:var(--brick); letter-spacing:.08em; }
.program-card h3{ margin:10px 0 12px; }
.program-card p{ font-size:.95rem; margin-bottom:0; }

/* ============================================================ GALLERY */
.gallery-grid{
  display:grid; grid-template-columns:repeat(4,1fr); grid-auto-rows:200px; gap:10px;
}
.gallery-grid figure{ margin:0; overflow:hidden; position:relative; border-radius:var(--radius); }
.gallery-grid img{ width:100%; height:100%; object-fit:cover; transition:transform .6s var(--ease); }
.gallery-grid figure:hover img{ transform:scale(1.06); }
.gallery-grid figcaption{
  position:absolute; left:0; right:0; bottom:0; padding:14px 16px 12px;
  background:linear-gradient(0deg, rgba(8,14,33,.85), transparent);
  color:#fff; font-size:.82rem; font-weight:600;
  opacity:0; transform:translateY(8px);
  transition:opacity .35s, transform .35s;
}
.gallery-grid figure:hover figcaption{ opacity:1; transform:none; }
.gallery-grid .tall{ grid-row:span 2; }
.gallery-grid .wide{ grid-column:span 2; }

/* ============================================================ ADMISSIONS */
.admissions-grid{ display:grid; grid-template-columns:1.1fr .9fr; gap:0; border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; }
.adm-col{ padding:48px 44px; }
.adm-col.requirements{ background:#fff; }
.adm-col.fees{ background:var(--navy); color:#fff; }
.adm-col.fees h3, .adm-col.fees .label{ color:#fff; }
.adm-col.fees .label{ color:var(--gold); }
.check-list li{
  display:flex; gap:14px; padding:14px 0; border-bottom:1px solid var(--line);
  font-size:.96rem; color:var(--ink-soft);
}
.check-list li:last-child{ border-bottom:0; }
.check-list .mark{ flex:none; width:22px; height:22px; border-radius:50%; border:1.5px solid var(--gold); display:grid; place-items:center; font-size:.7rem; color:var(--gold); margin-top:1px; }
.fee-table{ width:100%; border-collapse:collapse; margin:18px 0 28px; }
.fee-table td{ padding:13px 0; border-bottom:1px solid rgba(255,255,255,.16); font-size:.95rem; }
.fee-table td:last-child{ text-align:right; font-family:'JetBrains Mono',monospace; color:var(--gold); }
.note-box{ background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.16); padding:18px 20px; border-radius:var(--radius); font-size:.86rem; color:rgba(255,255,255,.75); margin-top:8px; }

/* ============================================================ QUOTE / MOTTO */
.motto-block{ text-align:center; padding:96px 0; }
.motto-block .seal{ margin:0 auto 28px; }
.motto-block blockquote{
  font-family:'Fraunces',serif; font-style:italic; font-weight:500;
  font-size:clamp(1.6rem,3vw,2.4rem); color:var(--navy); max-width:18ch; margin:0 auto;
  line-height:1.3;
}
.motto-block cite{ display:block; margin-top:20px; font-style:normal; font-size:.82rem; color:var(--ink-soft); }

/* ============================================================ CONTACT */
.contact-grid{ display:grid; grid-template-columns:.9fr 1.1fr; gap:64px; }
.contact-info-list li{ display:flex; gap:16px; padding:18px 0; border-top:1px solid var(--line); }
.contact-info-list li:last-child{ border-bottom:1px solid var(--line); }
.contact-info-list .ic{ width:38px; height:38px; border-radius:50%; background:var(--sky-soft); color:var(--royal); display:grid; place-items:center; flex:none; }
.contact-info-list strong{ display:block; color:var(--navy); font-size:.95rem; }
.contact-info-list span{ font-size:.9rem; color:var(--ink-soft); }

.form-grid{ display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.field{ display:flex; flex-direction:column; gap:8px; margin-bottom:20px; }
.field.full{ grid-column:1/-1; }
.field label{ font-size:.82rem; font-weight:600; color:var(--navy); }
.field input, .field select, .field textarea{
  font-family:inherit; font-size:.96rem; padding:13px 15px;
  border:1px solid var(--line); border-radius:var(--radius); background:#fff;
  color:var(--ink); transition:border-color .25s, box-shadow .25s;
}
.field textarea{ resize:vertical; min-height:120px; }
.field input:focus, .field select:focus, .field textarea:focus{
  outline:none; border-color:var(--sky); box-shadow:0 0 0 3px rgba(79,169,219,.18);
}
.form-status{ font-size:.88rem; margin-top:12px; min-height:1.2em; }
.form-status.ok{ color:#2c7a4b; }
.form-status.err{ color:#b3402a; }

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

/* ============================================================ CTA BAND */
.cta-band{
  background:var(--navy); color:#fff; padding:72px 0; text-align:center;
  background-image:radial-gradient(circle at 18% 30%, rgba(79,169,219,.18), transparent 45%), radial-gradient(circle at 85% 70%, rgba(200,162,74,.14), transparent 45%);
}
.cta-band h2{ color:#fff; margin-bottom:14px; }
.cta-band p{ max-width:48ch; margin:0 auto 32px; color:rgba(255,255,255,.78); }
.cta-row{ display:flex; gap:16px; justify-content:center; flex-wrap:wrap; }

/* ============================================================ FOOTER */
.site-footer{ background:var(--navy-deep); color:rgba(255,255,255,.7); padding:72px 0 28px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1.1fr; gap:48px; padding-bottom:48px; border-bottom:1px solid rgba(255,255,255,.1); }
.footer-brand .brand-text strong{ color:#fff; }
.footer-brand p{ color:rgba(255,255,255,.6); font-size:.9rem; margin-top:16px; max-width:32ch; }
.footer-col h4{ color:#fff; font-family:'Fraunces',serif; font-size:1rem; margin-bottom:18px; }
.footer-col li{ margin-bottom:11px; }
.footer-col a{ color:rgba(255,255,255,.62); font-size:.92rem; transition:color .25s; }
.footer-col a:hover{ color:var(--gold); }
.footer-bottom{ display:flex; justify-content:space-between; align-items:center; padding-top:26px; font-size:.8rem; flex-wrap:wrap; gap:12px; }
.footer-bottom .socials{ display:flex; gap:12px; }
.footer-bottom .socials a{ width:36px; height:36px; border:1px solid rgba(255,255,255,.2); border-radius:50%; display:grid; place-items:center; transition:border-color .25s, background .25s; }
.footer-bottom .socials a:hover{ border-color:var(--gold); background:rgba(200,162,74,.12); }

/* ============================================================ PAGE HEADER (inner pages) */
.page-hero{
  background:var(--navy); color:#fff; padding:170px 0 70px; text-align:left;
  background-image:radial-gradient(circle at 80% 0%, rgba(79,169,219,.18), transparent 50%);
}
.page-hero h1{ color:#fff; margin-bottom:14px; }
.breadcrumb{ font-family:'JetBrains Mono',monospace; font-size:.72rem; letter-spacing:.1em; text-transform:uppercase; color:rgba(255,255,255,.55); margin-bottom:18px; }
.breadcrumb a{ color:rgba(255,255,255,.85); }
.breadcrumb a:hover{ color:var(--gold); }

/* ============================================================ MISC COMPONENTS */
.two-col{ display:grid; grid-template-columns:1fr 1fr; gap:60px; }
.timeline{ position:relative; padding-left:34px; }
.timeline::before{ content:''; position:absolute; left:6px; top:6px; bottom:6px; width:1px; background:var(--line); }
.timeline li{ position:relative; padding-bottom:34px; }
.timeline li::before{ content:''; position:absolute; left:-34px; top:4px; width:11px; height:11px; border-radius:50%; background:var(--paper); border:2px solid var(--gold); }
.timeline strong{ display:block; color:var(--navy); font-family:'Fraunces',serif; font-size:1.05rem; margin-bottom:4px; }

.value-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:36px; }
.value-card{ padding:34px 28px; background:#fff; border:1px solid var(--line); border-radius:var(--radius); }
.value-card .seal{ width:48px; height:48px; margin-bottom:20px; }
.value-card .seal::after{ width:34px; height:34px; }

.team-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:28px; }
.team-card{ text-align:center; }
.team-card .photo{ border-radius:var(--radius); overflow:hidden; aspect-ratio:1; margin-bottom:14px; }
.team-card .photo img{ width:100%; height:100%; object-fit:cover; }
.team-card strong{ display:block; color:var(--navy); font-family:'Fraunces',serif; }
.team-card span{ font-size:.82rem; color:var(--ink-soft); }

/* back to top */
.to-top{
  position:fixed; right:24px; bottom:24px; width:46px; height:46px; border-radius:50%;
  background:var(--navy); color:#fff; display:grid; place-items:center; z-index:90;
  opacity:0; pointer-events:none; transform:translateY(10px);
  transition:opacity .3s, transform .3s; cursor:pointer; border:1px solid rgba(255,255,255,.15);
}
.to-top.show{ opacity:1; pointer-events:auto; transform:none; }

/* ============================================================ RESPONSIVE */
@media (max-width: 980px){
  .about-grid, .two-col{ grid-template-columns:1fr; gap:40px; }
  .admissions-grid{ grid-template-columns:1fr; }
  .program-grid{ grid-template-columns:repeat(2,1fr); }
  .gallery-grid{ grid-template-columns:repeat(3,1fr); }
  .contact-grid{ grid-template-columns:1fr; }
  .value-grid{ grid-template-columns:repeat(3,1fr); }
  .team-grid{ grid-template-columns:repeat(2,1fr); }
  .footer-grid{ grid-template-columns:1fr 1fr; gap:36px; }
  .hero-stats{ grid-template-columns:repeat(2,1fr); row-gap:28px; }
}
@media (max-width: 760px){
  section{ padding:72px 0; }
  .main-nav{
    position:fixed; inset:0 0 0 30%; top:0; background:var(--navy-deep);
    transform:translateX(100%); transition:transform .4s var(--ease);
    padding:110px 32px 32px; z-index:99;
  }
  .main-nav.open{ transform:translateX(0); }
  .main-nav ul{ flex-direction:column; align-items:flex-start; gap:1.6rem; }
  .main-nav a{ font-size:1.1rem; }
  .nav-toggle{ display:flex; }
  .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); }
  .hero{ min-height:88vh; }
  .hero-inner{ padding:120px 0 56px; }
  .program-grid{ grid-template-columns:1fr; }
  .gallery-grid{ grid-template-columns:repeat(2,1fr); grid-auto-rows:160px; }
  .gallery-grid .wide{ grid-column:span 2; }
  .form-grid{ grid-template-columns:1fr; }
  .value-grid{ grid-template-columns:1fr; }
  .team-grid{ grid-template-columns:1fr 1fr; }
  .footer-grid{ grid-template-columns:1fr; gap:32px; }
  .fact-strip{ grid-template-columns:repeat(2,1fr); }
  .adm-col{ padding:38px 26px; }
}
