/* Demo State University — shared styles */
:root {
  --navy: #1a3a5c;
  --navy-dark: #122840;
  --navy-light: #1e4d87;
  --silver: #8fa3ba;
  --gold: #c9a227;
  --gray: #6b7280;
  --light: #f4f6f9;
  --white: #ffffff;
  --danger: #b91c1c;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #1f2937;
  background: var(--white);
  line-height: 1.6;
}

/* ── DEMO BANNER ── */
.demo-banner {
  background: var(--navy-dark);
  color: var(--silver);
  font-size: 11px;
  letter-spacing: .08em;
  text-align: center;
  padding: 5px 16px;
  text-transform: uppercase;
}
.demo-banner span { color: var(--gold); font-weight: 700; }

/* ── HEADER ── */
header {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-wrap img { height: 48px; width: auto; }
.school-name { line-height: 1.15; }
.school-name strong {
  display: block;
  font-size: 17px;
  letter-spacing: .02em;
  color: var(--white);
}
.school-name small {
  font-size: 11px;
  color: var(--silver);
  letter-spacing: .1em;
  text-transform: uppercase;
}

nav { display: flex; gap: 4px; align-items: center; }
nav a {
  color: rgba(255,255,255,.82);
  text-decoration: none;
  font-size: 13.5px;
  padding: 6px 12px;
  border-radius: 5px;
  transition: background .15s, color .15s;
}
nav a:hover, nav a.active { background: rgba(255,255,255,.12); color: var(--white); }

.nav-cta {
  background: var(--gold) !important;
  color: var(--navy-dark) !important;
  font-weight: 700;
  padding: 7px 16px !important;
}
.nav-cta:hover { background: #e0b430 !important; }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 80px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner { position: relative; max-width: 760px; margin: 0 auto; }
.hero h1 { font-size: clamp(28px, 5vw, 46px); font-weight: 800; line-height: 1.1; margin-bottom: 16px; }
.hero p { font-size: 18px; color: rgba(255,255,255,.82); margin-bottom: 36px; }
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.btn-gold { background: var(--gold); color: var(--navy-dark); }
.btn-outline { background: transparent; border: 2px solid rgba(255,255,255,.7); color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-lg { padding: 16px 36px; font-size: 17px; }

/* ── CONTENT ── */
main { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }

h2.section-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}
.section-subtitle { color: var(--gray); font-size: 16px; margin-bottom: 40px; }

.divider { border: none; border-top: 1px solid #e5e7eb; margin: 0; }

/* ── CARD GRID ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.card {
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 28px 24px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s, transform .15s, border-color .15s;
}
.card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.1); transform: translateY(-2px); border-color: var(--silver); }
.card-icon { font-size: 30px; margin-bottom: 12px; }
.card h3 { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.card p { font-size: 13.5px; color: var(--gray); line-height: 1.5; }

/* ── FORM ── */
.form-card {
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 40px;
  max-width: 460px;
  margin: 0 auto;
  box-shadow: 0 4px 24px rgba(0,0,0,.07);
}
.form-card h2 { color: var(--navy); margin-bottom: 6px; font-size: 22px; font-weight: 800; }
.form-card .sub { color: var(--gray); font-size: 14px; margin-bottom: 28px; }
label { display: block; font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 5px; }
input[type=text], input[type=email], input[type=password], select, textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  color: #1f2937;
  background: #f9fafb;
  margin-bottom: 18px;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--navy-light);
  box-shadow: 0 0 0 3px rgba(30,77,135,.15);
  background: var(--white);
}
.btn-submit {
  width: 100%;
  padding: 13px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: default;
  margin-top: 4px;
}

/* ── STATS BAR ── */
.stats-bar {
  background: var(--navy);
  color: var(--white);
}
.stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px;
  text-align: center;
}
.stat-num { font-size: 36px; font-weight: 800; color: var(--gold); }
.stat-label { font-size: 13px; color: var(--silver); text-transform: uppercase; letter-spacing: .06em; }

/* ── FOOTER ── */
footer {
  background: var(--navy-dark);
  color: var(--silver);
  padding: 48px 24px 24px;
  margin-top: 64px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
@media (max-width: 760px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  nav { display: none; }
  .school-name strong { font-size: 14px; }
  .hero h1 { font-size: 26px; }
}
.footer-brand img { height: 52px; margin-bottom: 12px; }
.footer-brand p { font-size: 13px; line-height: 1.6; }
.footer-col h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--white); margin-bottom: 14px; }
.footer-col a { display: block; font-size: 13px; color: var(--silver); text-decoration: none; margin-bottom: 8px; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { padding-top: 24px; font-size: 12px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.demo-notice { color: var(--gold); font-weight: 700; }

/* ── PAGE HERO (sub-pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: var(--white);
  padding: 56px 24px;
  text-align: center;
}
.page-hero h1 { font-size: clamp(24px, 4vw, 38px); font-weight: 800; margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,.75); font-size: 16px; }

/* ── PRODUCT GRID (bookstore) ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}
.product-card {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow .2s;
}
.product-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.1); }
.product-img {
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  background: var(--light);
}
.product-info { padding: 14px; }
.product-info h4 { font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.product-info .price { font-size: 15px; font-weight: 800; color: var(--navy-light); }
.product-info .old-price { font-size: 12px; color: var(--gray); text-decoration: line-through; }
