/* ===================================================
   Sacred Heart Academy — shared stylesheet
   Palette: navy blue, yellow/gold, white, black
=================================================== */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Inter:wght@400;500;600;700&display=swap');

:root{
  --navy: #0c1b3a;
  --navy-deep: #060f24;
  --navy-mid: #16295a;
  --gold: #d9b23c;
  --gold-bright: #f2cc57;
  --white: #f8f7f2;
  --black: #0a0a0a;
  --shadow: 0 10px 30px rgba(6,15,36,.25);
  --radius: 14px;
  --serif: 'Cinzel', 'Times New Roman', serif;
  --script: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: var(--sans);
  background: var(--white);
  color: var(--navy-deep);
  line-height:1.6;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
h1,h2,h3,h4{ font-family: var(--serif); color: var(--navy); letter-spacing:.02em; }
.script{ font-family: var(--script); font-style:italic; }

.container{ max-width:1180px; margin:0 auto; padding:0 24px; }

/* ---------- Top utility bar ---------- */
.topbar{
  background: var(--navy-deep);
  color: var(--gold-bright);
  font-size: 13px;
}
.topbar .container{
  display:flex; align-items:center; justify-content:space-between;
  padding-top:6px; padding-bottom:6px;
}
.topbar .links{ display:flex; gap:18px; align-items:center; }
.topbar a:hover{ color:#fff; }
.backpack-btn{
  display:flex; align-items:center; gap:6px;
  background: rgba(217,178,60,.12);
  border:1px solid rgba(217,178,60,.4);
  border-radius:20px; padding:3px 12px;
  cursor:pointer;
}

/* ---------- Header / Nav ---------- */
header.site-header{
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-mid) 100%);
  box-shadow: 0 12px 34px rgba(6,15,36,.4);
  border-bottom: 2px solid var(--gold);
  position: sticky; top:0; z-index:100;
}
.topbar{ border-bottom: 1px solid rgba(217,178,60,.25); }
.nav-wrap{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 24px;
}
.crest-brand{ display:flex; align-items:center; gap:14px; cursor:pointer; user-select:none; }
.crest-brand:active{ transform: scale(.97); }
.crest-title h1{
  margin:0; font-size:22px; color:#fff; letter-spacing:.12em;
  text-shadow: 0 2px 12px rgba(217,178,60,.35);
}
.crest-title span{
  display:block; font-family: var(--script); font-style:italic;
  color: var(--gold-bright); font-size:14px; letter-spacing:.04em;
}

.crest{
  width:58px; height:58px; flex-shrink:0; border-radius:50%; object-fit:cover;
  border:2px solid var(--gold); box-shadow:0 0 0 3px var(--navy-deep), 0 6px 16px rgba(0,0,0,.45);
  background:var(--navy-deep);
}

nav.main-nav ul{
  list-style:none; display:flex; flex-direction:column; gap:2px; margin:0; padding:10px 0;
}
nav.main-nav a{
  display:block; padding:10px 16px; color:#e8e9f0; font-weight:600;
  font-size:13.5px; letter-spacing:.04em; text-transform:uppercase;
  border-radius:8px; transition: background .18s, color .18s;
}
nav.main-nav a:hover, nav.main-nav a.active{
  background: var(--gold); color: var(--navy-deep);
}
.nav-toggle{ display:block; background:none; border:none; color:#fff; font-size:26px; cursor:pointer; }

/* Always a dropdown: the menu stays collapsed behind the ☰ button at every screen size */
nav.main-nav{
  width:100%; max-height:0; overflow:hidden; transition:max-height .3s ease;
}
nav.main-nav.open{ max-height:600px; }
.nav-wrap{ flex-wrap:wrap; }

/* ---------- Hero ---------- */
.hero{
  position:relative; min-height:78vh; display:flex; align-items:center;
  background-size:cover; background-position:center;
  color:#fff; text-align:center; overflow:hidden;
  box-shadow: inset 0 0 0 8px rgba(217,178,60,.55);
}
.hero::before{
  content:''; position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(6,15,36,.5) 0%, rgba(6,15,36,.78) 100%),
              radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,.55) 100%);
}
.hero .container{ position:relative; z-index:2; }
.hero .kicker{
  font-family:var(--script); font-style:italic; color:var(--gold-bright); font-size:20px;
}
.hero h1{ color:#fff; font-size:clamp(34px,6vw,64px); margin:8px 0; }
.hero .tagline{
  display:inline-block; margin-top:18px; padding:10px 26px;
  border:1px solid var(--gold-bright); border-radius:40px;
  letter-spacing:.15em; font-size:13px; font-weight:700;
}
.hero-buttons{ margin-top:28px; display:flex; gap:16px; justify-content:center; flex-wrap:wrap; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-block; padding:13px 28px; border-radius:8px;
  font-weight:700; font-size:14px; letter-spacing:.03em; cursor:pointer; border:none;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover{ transform: translateY(-2px); }
.btn-gold{ background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover{ box-shadow:0 8px 20px rgba(217,178,60,.4); }
.btn-outline{ background:transparent; border:1px solid #fff; color:#fff; }
.btn-outline:hover{ background:rgba(255,255,255,.12); }
.btn-navy{ background: var(--navy); color:#fff; }
.btn-navy:hover{ box-shadow:0 8px 20px rgba(12,27,58,.35); }
.btn-small{ padding:8px 16px; font-size:12px; }

/* ---------- Section basics ---------- */
section{ padding:70px 0; }
.section-head{ text-align:center; max-width:720px; margin:0 auto 42px; }
.section-head h2{ font-size:clamp(26px,4vw,38px); }
.eyebrow{
  color: var(--gold); font-weight:700; letter-spacing:.24em; font-size:12px;
  text-transform:uppercase; position:relative; display:inline-block; padding-bottom:10px;
}
.eyebrow::after{
  content:''; position:absolute; left:50%; bottom:0; transform:translateX(-50%);
  width:46px; height:2px; background:linear-gradient(90deg,transparent,var(--gold),transparent);
}
.section-head .eyebrow{ display:block; }
.alt-bg{ background: #eef0f6; }
.navy-bg{ background: var(--navy); color:#f1f2f7; }
.navy-bg h2, .navy-bg h3{ color:#fff; }

/* ---------- Slideshow (Why SHA offers) ---------- */
.slideshow{
  position:relative; border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow);
  background:var(--navy);
}
.slide{
  display:none; grid-template-columns: 1.1fr 1fr; min-height:420px;
}
.slide.active{ display:grid; animation:fade .6s ease; }
@keyframes fade{ from{opacity:0;} to{opacity:1;} }
.slide .slide-img{ height:100%; min-height:420px; overflow:hidden; }
.slide .slide-img img{ height:100%; width:100%; object-fit:cover; }
.slide .slide-copy{ padding:44px; display:flex; flex-direction:column; justify-content:center; color:#fff; }
.slide .slide-copy h3{ color: var(--gold-bright); font-size:24px; }
.slide-dots{ display:flex; gap:8px; justify-content:center; padding:16px; background:var(--navy-deep); }
.slide-dots button{
  width:10px; height:10px; border-radius:50%; border:none; background:rgba(255,255,255,.3); cursor:pointer;
}
.slide-dots button.active{ background: var(--gold); }
@media (max-width:760px){ .slide{ grid-template-columns:1fr; } .slide .slide-img{ min-height:220px; } }

/* ---------- Testimonials ---------- */
.testimonial-wrap{ max-width:760px; margin:0 auto; text-align:center; position:relative; min-height:160px; }
.testimonial{ display:none; }
.testimonial.active{ display:block; animation:fade .6s ease; }
.testimonial p{ font-family:var(--script); font-style:italic; font-size:26px; color:#fff; }
.testimonial cite{ display:block; margin-top:14px; color:var(--gold-bright); font-weight:600; font-style:normal; letter-spacing:.05em;}

/* ---------- Cards / grids ---------- */
.grid{ display:grid; gap:26px; }
.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:960px){ .grid-3,.grid-4{ grid-template-columns: repeat(2,1fr);} }
@media (max-width:600px){ .grid-2,.grid-3,.grid-4{ grid-template-columns: 1fr; } }

.card{
  background:#fff; border-radius:var(--radius); overflow:hidden; box-shadow:0 6px 18px rgba(12,27,58,.08);
  border:1px solid #e7e9f2; transition: transform .18s, box-shadow .18s, border-color .18s;
}
.card:hover{ transform: translateY(-4px); box-shadow:0 16px 34px rgba(12,27,58,.18); border-color: var(--gold); }
.card .card-img{ height:170px; overflow:hidden; }
.card .card-img img{ width:100%; height:100%; object-fit:cover; }
.card .card-body{ padding:18px 20px 22px; }
.card h3{ font-size:18px; margin:0 0 8px; }
.card ul{ margin:0 0 14px; padding-left:18px; font-size:14px; color:#333; }
.card ul li{ margin-bottom:3px; }

/* Staff card */
.staff-card{ text-align:center; padding:22px 14px; }
.staff-card .photo{
  width:96px; height:96px; border-radius:50%; overflow:hidden; margin:0 auto 14px;
  border:3px solid var(--gold); box-shadow:var(--shadow);
}
.staff-card .photo img{ width:100%; height:100%; object-fit:cover; }
.staff-card h3{ font-size:16px; margin:0 0 4px; }
.staff-card p{ margin:0; font-size:13px; color:#555; }

/* ---------- Sidebar tab layout (About) ---------- */
.tab-layout{ display:grid; grid-template-columns: 260px 1fr; gap:40px; align-items:start; }
.tab-nav{ display:flex; flex-direction:column; gap:6px; position:sticky; top:110px; }
.tab-nav button{
  text-align:left; padding:14px 18px; border-radius:10px; border:1px solid #e2e5ef;
  background:#fff; font-weight:700; font-family:var(--serif); font-size:13px; letter-spacing:.04em;
  cursor:pointer; color:var(--navy);
}
.tab-nav button.active, .tab-nav button:hover{ background:var(--navy); color:#fff; border-color:var(--navy); }
.tab-panel{ display:none; }
.tab-panel.active{ display:block; animation:fade .4s ease; }
@media (max-width:860px){ .tab-layout{ grid-template-columns:1fr; } .tab-nav{ flex-direction:row; flex-wrap:wrap; position:static; } }

/* Alumni quote cards */
.alumni-card{ display:flex; gap:16px; background:#fff; border-radius:var(--radius); padding:18px; border:1px solid #e7e9f2; }
.alumni-card img{ width:64px; height:64px; border-radius:50%; object-fit:cover; flex-shrink:0; }
.alumni-card h4{ margin:0; font-size:15px; color:var(--navy); }
.alumni-card small{ color:var(--gold); font-weight:700; text-transform:uppercase; letter-spacing:.04em; font-size:11px; }
.alumni-card p{ font-family:var(--script); font-style:italic; margin:8px 0 0; color:#333; }

/* ---------- Values chips ---------- */
.chips{ display:flex; flex-wrap:wrap; gap:12px; justify-content:center; }
.chip{
  padding:10px 20px; border-radius:30px; background:var(--navy); color:#fff;
  font-family:var(--serif); font-size:13px; letter-spacing:.05em;
}

/* ---------- Tables (course scheduler) ---------- */
.table-wrap{ overflow-x:auto; border-radius:var(--radius); box-shadow:var(--shadow); }
table{ width:100%; border-collapse:collapse; background:#fff; font-size:13.5px; }
table th{ background:var(--navy); color:#fff; padding:12px 10px; text-align:left; white-space:nowrap; }
table td{ padding:10px; border-bottom:1px solid #eef0f6; white-space:nowrap; }
table tr:hover td{ background:#f7f8fc; }
table select, table input[type=checkbox]{ cursor:pointer; }

/* ---------- Forms ---------- */
.form-box{ background:#fff; border-radius:var(--radius); box-shadow:var(--shadow); padding:36px; max-width:640px; margin:0 auto; }
.form-box label{ display:block; font-weight:600; margin:16px 0 6px; font-size:13px; }
.form-box input, .form-box select, .form-box textarea{
  width:100%; padding:11px 14px; border:1px solid #d8dbe6; border-radius:8px; font-family:inherit; font-size:14px;
}

/* ---------- Shop ---------- */
.product-card .card-img{ height:340px; background:#f4f5f9; }
.product-card .card-img img{ width:100%; height:100%; object-fit:contain; padding:14px; }
.product-card .card-body{ padding:16px 18px 20px; }
.price{ color:var(--navy); font-weight:700; font-size:17px; }
.swatches{ display:flex; gap:6px; margin:10px 0; }
.swatch{
  width:22px; height:22px; border-radius:50%; border:2px solid #fff; box-shadow:0 0 0 1px #ccc; cursor:pointer;
}
.swatch.selected{ box-shadow:0 0 0 2px var(--navy); }
.size-select{ margin-top:8px; }
.add-cart{ margin-top:12px; width:100%; }
.cart-badge{
  background:var(--gold); color:var(--navy-deep); border-radius:50%; width:20px; height:20px;
  display:inline-flex; align-items:center; justify-content:center; font-size:11px; font-weight:800; margin-left:6px;
}

/* ---------- Campus life category tabs ---------- */
.category-pills{ display:flex; flex-wrap:wrap; gap:10px; justify-content:center; margin-bottom:36px; }
.category-pills button{
  border:1px solid var(--navy); background:#fff; color:var(--navy); padding:10px 20px;
  border-radius:30px; font-weight:700; font-size:13px; cursor:pointer; letter-spacing:.03em;
}
.category-pills button.active, .category-pills button:hover{ background:var(--navy); color:#fff; }

/* Ucham analyzer */
.ucham-box{ max-width:520px; margin:0 auto; background:var(--navy); color:#fff; border-radius:var(--radius); padding:36px; text-align:center; box-shadow:var(--shadow); }
.ucham-meter{ font-size:56px; font-weight:800; color:var(--gold-bright); font-family:var(--serif); }
.ucham-label{ font-size:15px; letter-spacing:.1em; text-transform:uppercase; color:var(--gold); margin-top:6px; }
.ucham-desc{ margin-top:16px; font-size:14px; color:#dfe2ee; }
.ucham-history{ margin-top:20px; font-size:12px; color:#a9b0cc; }

/* Blackboard */
.blackboard-wrap{ text-align:center; }
#blackboard{ background:#0e2b1c; border:14px solid #5b3a24; border-radius:8px; cursor:crosshair; touch-action:none; box-shadow:var(--shadow); }
.chalk-controls{ margin-top:14px; display:flex; gap:10px; justify-content:center; flex-wrap:wrap; }
.chalk-controls button{ background:#fff; border:1px solid #ccc; padding:8px 16px; border-radius:8px; cursor:pointer; font-weight:600; }

/* News */
.news-card{ display:flex; gap:20px; align-items:center; }
.news-card .news-icon{ width:56px; height:56px; border-radius:50%; background:var(--gold); display:flex; align-items:center; justify-content:center; font-size:24px; flex-shrink:0; }

/* ---------- Footer ---------- */
footer{ background: var(--navy-deep); color:#cfd3e6; padding:50px 0 24px; border-top:2px solid var(--gold); }
footer h4{ color:#fff; font-size:15px; margin-bottom:14px; }
footer .grid{ grid-template-columns: 2fr 1fr 1fr 1fr; }
footer a{ color:#cfd3e6; display:block; margin-bottom:8px; font-size:13.5px; }
footer a:hover{ color:var(--gold-bright); }
.footer-bottom{ text-align:center; margin-top:34px; padding-top:20px; border-top:1px solid rgba(255,255,255,.08); font-size:12.5px; color:#8a90ab; }
@media (max-width:860px){ footer .grid{ grid-template-columns:1fr 1fr; } }

/* ---------- Griffin message modal ---------- */
.griffin-modal{
  position:fixed; inset:0; background:rgba(6,15,36,.7); display:flex; align-items:center; justify-content:center;
  z-index:1000; opacity:0; pointer-events:none; transition:opacity .25s;
}
.griffin-modal.show{ opacity:1; pointer-events:auto; }
.griffin-modal .box{
  background:#fff; border-radius:var(--radius); padding:36px; max-width:420px; text-align:center; box-shadow:var(--shadow);
  transform: translateY(10px); transition: transform .25s;
}
.griffin-modal.show .box{ transform:translateY(0); }
.griffin-modal .box h3{ color:var(--gold); font-family:var(--script); font-style:italic; font-size:22px; }
.griffin-modal .close-x{ margin-top:18px; }

/* Music player */
.music-player{
  position:fixed; bottom:20px; right:20px; z-index:200; background:var(--navy); color:#fff; border-radius:30px;
  padding:10px 16px; display:flex; align-items:center; gap:10px; box-shadow:var(--shadow); font-size:13px;
}
.music-player button{ background:none; border:none; color:var(--gold-bright); font-size:16px; cursor:pointer; }
.music-player input[type=range]{ width:80px; }

/* Birthday */
.bday-fab{
  position:fixed; bottom:20px; left:20px; z-index:200; background:var(--gold); color:var(--navy-deep);
  border:none; border-radius:50%; width:46px; height:46px; font-size:20px; cursor:pointer; box-shadow:var(--shadow);
}

/* Night mode cursor trail dot */
.magic-dot{
  position:fixed; width:6px; height:6px; border-radius:50%; background:var(--gold-bright);
  pointer-events:none; z-index:9999; box-shadow:0 0 8px 2px rgba(242,204,87,.9);
  transition: opacity .6s ease, transform .6s ease;
}

/* ---------- Cart drawer ---------- */
.cart-btn{ cursor:pointer; }
.cart-overlay{
  position:fixed; inset:0; background:rgba(6,15,36,.55); z-index:1100; opacity:0; pointer-events:none; transition:opacity .25s;
}
.cart-overlay.show{ opacity:1; pointer-events:auto; }
.cart-drawer{
  position:fixed; top:0; right:0; height:100%; width:380px; max-width:90vw; background:#fff; z-index:1101;
  transform:translateX(100%); transition:transform .3s ease; display:flex; flex-direction:column; box-shadow:-10px 0 40px rgba(0,0,0,.3);
}
.cart-overlay.show .cart-drawer{ transform:translateX(0); }
.cart-drawer-head{ background:var(--navy); color:#fff; padding:20px 22px; display:flex; justify-content:space-between; align-items:center; }
.cart-drawer-head button{ background:none; border:none; color:var(--gold-bright); font-size:22px; cursor:pointer; }
.cart-items{ flex:1; overflow-y:auto; padding:16px 22px; }
.cart-item{ display:flex; justify-content:space-between; gap:10px; padding:12px 0; border-bottom:1px solid #eef0f6; font-size:14px; }
.cart-item .meta{ color:#777; font-size:12px; }
.cart-item button{ background:none; border:none; color:#c0392b; cursor:pointer; font-size:12px; }
.cart-drawer-foot{ padding:20px 22px; border-top:1px solid #eef0f6; }
.cart-total{ display:flex; justify-content:space-between; font-weight:700; font-size:17px; margin-bottom:14px; color:var(--navy); }

/* ---------- Department tiles (Academics) ---------- */
.dept-tile{ cursor:pointer; text-align:center; padding:0; }
.dept-tile .card-img{ height:120px; }
.dept-tile.active{ border-color:var(--gold); box-shadow:0 0 0 2px var(--gold); }
.dept-tile .card-body{ padding:14px; }
.dept-tile h3{ font-size:15px; margin:0; }
.dept-tile .count{ color:var(--gold); font-weight:700; font-size:12px; }

.page-banner{
  position:relative; padding:90px 0 60px; text-align:center; color:#fff; background-size:cover; background-position:center;
}
.page-banner::before{ content:''; position:absolute; inset:0; background:rgba(6,15,36,.68); }
.page-banner .container{ position:relative; z-index:2; }
.page-banner h1{ color:#fff; font-size:clamp(30px,5vw,48px); }

.divider{ width:70px; height:3px; background:var(--gold); margin:14px auto 0; }
.flourish{ display:flex; align-items:center; justify-content:center; gap:10px; margin:14px 0 0; }
.flourish::before, .flourish::after{ content:''; width:60px; height:1px; background:linear-gradient(90deg,transparent,var(--gold)); }
.flourish::after{ background:linear-gradient(90deg,var(--gold),transparent); }
.flourish span{ width:8px; height:8px; background:var(--gold); transform:rotate(45deg); }
.center{ text-align:center; }
.muted{ color:#5a5f74; }
.small{ font-size:13px; }
.mt{ margin-top:28px; }
.mb0{ margin-bottom:0; }
