/* ===========================
   St. Mark's Catholic School
   Modern Redesign
   =========================== */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-navy: #0f1d35;
  --color-navy-light: #1a2e4a;
  --color-white: #ffffff;
  --color-offwhite: #f7f8fa;
  --color-warm-gray: #fafaf9;
  --color-red: #b91c3a;
  --color-red-hover: #9b1630;
  --color-red-light: #fef2f2;
  --color-focus: #1a5fb4;
  --color-focus-light: #e8f0f9;
  --color-focus-hover: #144a8a;
  --color-gray-text: #475569;
  --color-gray-light: #94a3b8;
  --color-gray-border: #e2e8f0;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-placeholder: #d4d4d8;
  --font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --max-width: 1280px;
  --content-width: 1080px;
  --header-height: 80px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.12);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-navy);
  background-color: var(--color-white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-red);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-red-hover);
}

ul,
ol {
  list-style: none;
  padding-left: 0;
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--color-navy);
  line-height: 1.2;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

h1 {
  font-size: 3rem;
  font-weight: 700;
}
h2 {
  font-size: 2.25rem;
  font-weight: 700;
}
h3 {
  font-size: 1.5rem;
  font-weight: 600;
}
h4 {
  font-size: 1.125rem;
  font-weight: 600;
  font-family: var(--font-body);
}

p {
  margin-bottom: 1rem;
  color: var(--color-gray-text);
  font-size: 1.0625rem;
  line-height: 1.75;
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 0 0 5rem;
}

.section--alt {
  background-color: var(--color-offwhite);
}

.section--navy {
  background-color: var(--color-navy);
  color: var(--color-white);
}

.section--navy h2,
.section--navy h3,
.section--navy p {
  color: var(--color-white);
}

.section--navy a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.section--navy a:hover {
  color: var(--color-white);
}

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 100;
  background: var(--color-white);
  height: var(--header-height);
  border-bottom: 1px solid var(--color-gray-border);
}

.site-header--static {
  position: relative;
}

.site-header--sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transform: translateY(0);
  transition:
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.4s;
}

.site-header--sticky.site-header--hidden {
  transform: translateY(-100%);
}

.site-header--sticky.site-header--visible {
  transform: translateY(0);
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Transparent header on homepage hero */
.site-header--transparent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-gray-border);
}

.site-header--transparent .logo,
.site-header--transparent .main-nav a,
.site-header--transparent .nav-toggle {
  color: var(--color-navy);
}

.site-header--transparent .main-nav a:hover {
  background: var(--color-offwhite);
  color: var(--color-focus);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  max-width: none;
  margin: 0;
  padding: 0 5%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  text-decoration: none;
  color: var(--color-navy);
  flex-shrink: 0;
}

.logo:hover {
  text-decoration: none;
  color: var(--color-navy);
}

.logo-image-wrapper {
  display: flex;
  align-items: center;
}

.logo-image {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 50%;
  transition: transform var(--transition);
}

.logo:hover .logo-image {
  transform: scale(1.05);
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
}

.logo-text small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--color-gray-500);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Navigation ---------- */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  margin-left: auto;
}

.main-nav a {
  color: var(--color-navy);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--color-offwhite);
  color: var(--color-focus);
  text-decoration: none;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown__toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-navy);
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.nav-dropdown__toggle svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition);
}

.nav-dropdown__toggle:hover {
  background: var(--color-offwhite);
  color: var(--color-red);
}

.nav-dropdown__toggle[aria-expanded="true"] {
  background: var(--color-offwhite);
  color: var(--color-red);
}

.nav-dropdown__toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.nav-dropdown__menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-white);
  border: 1px solid var(--color-gray-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  z-index: 100;
}

.nav-dropdown.is-open .nav-dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown__menu a {
  display: block;
  padding: 0.625rem 1rem;
  color: var(--color-navy);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav-dropdown__menu a:hover {
  background: var(--color-offwhite);
  color: var(--color-red);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.625rem;
  color: var(--color-navy);
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.nav-toggle:hover {
  background: var(--color-offwhite);
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

.search-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-navy);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-toggle:hover {
  background: var(--color-offwhite);
  color: var(--color-focus);
}

.search-toggle svg {
  width: 20px;
  height: 20px;
}

/* ---------- Mobile Nav ---------- */
@media (max-width: 960px) {
  .nav-toggle {
    display: block;
    order: 10;
  }

  .search-toggle {
    display: flex;
    order: 9;
    margin-left: auto;
  }

  .header-inner {
    gap: 0;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-gray-border);
    flex-direction: column;
    padding: 0.75rem;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    align-items: flex-start !important;
    justify-content: flex-start !important;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav > * {
    align-self: flex-start !important;
    text-align: left !important;
  }

  .main-nav a {
    padding: 0.875rem 1rem;
    width: 100%;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    text-align: left !important;
    align-self: flex-start !important;
  }

  .main-nav a:hover {
    background: var(--color-offwhite);
  }

  /* On mobile, convert dropdown to regular links */
  .nav-dropdown {
    display: block;
    width: 100%;
  }

  .nav-dropdown__toggle {
    display: none;
  }

  .nav-dropdown__menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0;
    background: transparent;
    width: 100%;
  }

  .nav-dropdown__menu a {
    padding: 0.875rem 1rem;
    width: 100%;
    font-size: 0.95rem;
    text-align: left !important;
    display: block;
    align-self: flex-start !important;
  }

  .site-header--transparent .main-nav {
    background: var(--color-white);
  }

  .site-header--transparent .main-nav a {
    color: var(--color-navy);
  }
}

/* ---------- Hero (Subpages) ---------- */
.hero {
  position: relative;
  padding: 4rem 0;
  text-align: center;
  overflow: hidden;
  /* Navy fallback so the white <h1> has real contrast (12.6:1) against an
     ancestor background, not just the visual overlay. Without this, pa11y
     traces background inheritance up to <body> (white) and reports 1:1
     contrast on every inner-page hero <h1>. */
  background: var(--color-navy);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: var(--color-navy);
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 29, 53, 0.7),
    rgba(15, 29, 53, 0.85)
  );
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  color: var(--color-white);
  margin-bottom: 0.75rem;
  font-size: 2.75rem;
  letter-spacing: -0.02em;
}

.hero p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

.hero--page {
  padding: 3.5rem 0;
}

.hero--page h1 {
  font-size: 2.5rem;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  padding: 1.25rem 0;
  font-size: 0.875rem;
  color: var(--color-gray-500);
}

.breadcrumb a {
  color: var(--color-gray-500);
  transition: color var(--transition);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--color-red);
}

.breadcrumb span {
  margin: 0 0.5rem;
  /* Was --color-gray-400 (#9ca3af, 2.54:1). Bumped to --color-gray-500
     (#6b7280, 4.83:1) so separators and the current-page label meet
     WCAG 1.4.3 (4.5:1) contrast against the white page background. */
  color: var(--color-gray-500);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8125rem 2rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  letter-spacing: 0.01em;
  gap: 0.5rem;
}

.btn--primary {
  background: var(--color-red);
  color: var(--color-white);
  border-color: var(--color-red);
}

.btn--primary:hover {
  background: var(--color-red-hover);
  border-color: var(--color-red-hover);
  color: var(--color-white);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(185, 28, 58, 0.3);
}

.btn--outline {
  background: transparent;
  color: var(--color-navy);
  border-color: var(--color-gray-border);
}

.btn--outline:hover {
  background: var(--color-navy);
  color: var(--color-white);
  border-color: var(--color-navy);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn--white {
  background: var(--color-white);
  color: var(--color-navy);
  border-color: var(--color-white);
}

.btn--gold {
  /* Darkened from #a87d28 (3.73:1) → #8a6620 (5.25:1) for WCAG AA contrast
     against white text. */
  background: #8a6620;
  color: var(--color-white);
  border-color: #8a6620;
}

.btn--gold:hover {
  background: #6f521a;
  color: var(--color-white);
  border-color: #6f521a;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn--white:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-navy);
  border-color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.btn--ghost {
  display: inline-flex;
  align-items: center;
  padding: 0.8125rem 2rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all var(--transition);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--color-white);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn--sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.8125rem;
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}

.card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: transparent;
}

.card__img {
  width: 100%;
  height: 200px;
  background: var(--color-gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray-400);
  font-size: 0.8125rem;
}

.card__body {
  padding: 1.75rem;
}

.card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.card h3 a {
  color: var(--color-navy);
  text-decoration: none;
  transition: color var(--transition);
}

.card h3 a:hover {
  color: var(--color-red);
}

.card p {
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
  color: var(--color-gray-text);
}

.card .btn {
  font-size: 0.8125rem;
  padding: 0.5rem 1.25rem;
}

/* Legacy card support (no __body wrapper) */
.card:not(:has(.card__body)) {
  padding: 1.75rem;
}

/* ---------- Content Pages ---------- */
.page-content {
  padding: 0 0 5rem;
}

.page-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.75rem;
}

.page-content h2:first-child {
  margin-top: 0;
}

.page-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.page-content ul,
.page-content ol {
  margin-bottom: 1.25rem;
  color: var(--color-gray-text);
  padding-left: 0;
  list-style: none;
}

.page-content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
  padding-left: 1.5rem;
  position: relative;
}

.page-content li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-red);
}

.page-content ol {
  counter-reset: list-counter;
}

.page-content ol li {
  counter-increment: list-counter;
}

.page-content ol li::before {
  content: counter(list-counter);
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  color: var(--color-red);
  font-weight: 700;
  font-size: 0.875rem;
  top: 0;
}

/* Lists inside content div (sidebar pages) */
.content ul,
.content ol,
.content-area ul,
.content-area ol {
  margin-bottom: 1.25rem;
  color: var(--color-gray-text);
  padding-left: 0;
  list-style: none;
}

.content li,
.content-area li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
  padding-left: 1.5rem;
  position: relative;
}

.content li::before,
.content-area li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-red);
}

.page-content a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(185, 28, 58, 0.3);
}

.page-content a:hover {
  text-decoration-color: var(--color-red);
}

/* ---------- Sidebar Layout ---------- */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
}

.sidebar {
  padding-top: 0.5rem;
}

.sidebar-nav {
  list-style: none;
  padding: 0;
}

.sidebar-nav h3 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-gray-light);
  margin-bottom: 0.75rem;
  padding-left: 1rem;
}

.sidebar-nav li {
  margin-bottom: 0.125rem;
}

.sidebar-nav a {
  display: block;
  padding: 0.625rem 1rem;
  color: var(--color-gray-text);
  font-size: 0.9375rem;
  font-weight: 450;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  text-decoration: none;
}

.sidebar-nav a:hover {
  color: var(--color-navy);
  background: var(--color-offwhite);
  text-decoration: none;
}

.sidebar-nav a.active {
  color: var(--color-focus);
  background: var(--color-focus-light);
  font-weight: 600;
  text-decoration: none;
}

/* Content-first variant: content before sidebar in HTML, but sidebar still on the left visually */
.content-with-sidebar.content-first {
  grid-template-columns: 280px 1fr;
}

.content-with-sidebar.content-first > .sidebar {
  order: -1;
}

@media (max-width: 860px) {
  .content-with-sidebar,
  .content-with-sidebar.content-first {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .sidebar {
    order: -1;
    padding-top: 0;
  }

  /* Hide any <h3> heading inside the sidebar on mobile -
     the disclosure summary takes its place */
  .sidebar > h3 {
    display: none;
  }

  /* Collapsible disclosure wrapper injected by JS */
  .sidebar-disclosure {
    border: 1px solid var(--color-gray-border);
    border-radius: var(--radius-sm);
    background: var(--color-white);
    overflow: hidden;
  }

  .sidebar-disclosure > summary {
    list-style: none;
    cursor: pointer;
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-navy);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    user-select: none;
  }

  .sidebar-disclosure > summary::-webkit-details-marker {
    display: none;
  }

  .sidebar-disclosure > summary::after {
    content: "";
    width: 0.625rem;
    height: 0.625rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform var(--transition);
    flex-shrink: 0;
    margin-right: 0.25rem;
  }

  .sidebar-disclosure[open] > summary::after {
    transform: rotate(-135deg);
    margin-top: 0.25rem;
  }

  .sidebar-disclosure > summary:focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: -3px;
  }

  .sidebar-disclosure > summary:hover {
    background: var(--color-offwhite);
  }

  /* The list inside the disclosure - vertical, like desktop */
  .sidebar-disclosure .sidebar-nav,
  .sidebar-disclosure ul {
    list-style: none;
    margin: 0;
    padding: 0.5rem;
    border-top: 1px solid var(--color-gray-border);
  }

  .sidebar-disclosure li {
    margin-bottom: 0.125rem;
  }

  .sidebar-disclosure a {
    display: block;
    padding: 0.625rem 0.75rem;
    color: var(--color-gray-text);
    font-size: 0.9375rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
  }

  .sidebar-disclosure a:hover {
    color: var(--color-navy);
    background: var(--color-offwhite);
  }

  .sidebar-disclosure a.active {
    color: var(--color-focus);
    background: var(--color-focus-light);
    font-weight: 600;
  }
}

/* ---------- Forms ---------- */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  color: var(--color-navy);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--color-gray-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--color-navy);
  transition: all var(--transition);
  background: var(--color-white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-red);
  box-shadow: 0 0 0 4px rgba(185, 28, 58, 0.08);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  background: var(--color-red-light);
  border-left: 4px solid var(--color-red);
  padding: 1.125rem 1.5rem;
  margin-bottom: 2rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.9375rem;
  color: var(--color-gray-text);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.75);
  padding: 4.5rem 0 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.site-footer h4 {
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}

.footer-info p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9375rem;
  margin-bottom: 0.35rem;
}

.footer-info .footer-logo {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1.25rem;
}

.footer-info a {
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--transition);
}

.footer-info a:hover {
  color: var(--color-white);
}



.footer-nav {
  list-style: none;
  padding: 0;
}

.footer-nav li {
  margin-bottom: 0.625rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9375rem;
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: var(--color-white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom p a {
  color: #8dc3f2;
}

/* ---------- Search Modal ---------- */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 5rem 1rem 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.search-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.search-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 29, 53, 0.85);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.search-modal__content {
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  padding: 2rem;
  box-shadow: var(--shadow-xl);
  transform: translateY(-20px);
  transition: transform 0.25s ease;
}

.search-modal.is-open .search-modal__content {
  transform: translateY(0);
}

.search-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.search-modal__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-navy);
  margin: 0;
}

.search-modal__close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-gray-500);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.search-modal__close:hover {
  background: var(--color-offwhite);
  color: var(--color-navy);
}

.search-modal__close svg {
  width: 24px;
  height: 24px;
}

.search-form {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  padding: 1rem 3rem 1rem 1.25rem;
  border: 2px solid var(--color-gray-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-navy);
  transition: all var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--color-focus);
  box-shadow: 0 0 0 4px rgba(26, 95, 180, 0.08);
}

.search-input::placeholder {
  color: var(--color-gray-400);
}

.search-submit {
  position: absolute;
  right: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-gray-400);
  transition: color var(--transition);
}

.search-submit:hover {
  color: var(--color-red);
}

.search-submit svg {
  width: 20px;
  height: 20px;
}

.search-note {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--color-gray-400);
  text-align: center;
}

@media (max-width: 480px) {
  .search-modal {
    padding: 3rem 1rem 1rem;
  }

  .search-modal__content {
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Utilities ---------- */
.text-center {
  text-align: center;
}
.mt-1 {
  margin-top: 0.5rem;
}
.mt-2 {
  margin-top: 1rem;
}
.mt-3 {
  margin-top: 1.5rem;
}
.mt-4 {
  margin-top: 2rem;
}
.mb-1 {
  margin-bottom: 0.5rem;
}
.mb-2 {
  margin-bottom: 1rem;
}
.mb-3 {
  margin-bottom: 1.5rem;
}
.mb-4 {
  margin-bottom: 2rem;
}

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 10000;
  padding: 0.75rem 1.5rem;
  background: var(--color-navy);
  color: var(--color-white);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  text-decoration: none;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
  color: var(--color-white);
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Photo Placeholders ---------- */
.img-placeholder {
  background: var(--color-gray-300);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray-400);
  font-size: 0.8125rem;
  min-height: 200px;
}

.img-placeholder--hero {
  border-radius: 0;
  min-height: 100%;
}

.img-placeholder--wide {
  min-height: 320px;
  border-radius: var(--radius-lg);
}

.img-placeholder--square {
  aspect-ratio: 1;
  min-height: unset;
}

/* Photo grid for campus life sections */
.photo-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 240px 240px;
}

.photo-grid__item {
  background: var(--color-gray-300);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray-400);
  font-size: 0.8125rem;
  overflow: hidden;
}

.photo-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.15s ease;
}

.photo-grid__item--wide {
  grid-column: span 2;
}

.photo-grid__item--tall {
  grid-row: span 2;
}

/* Feature list (used on info pages) */
.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  padding: 0.625rem 0 0.625rem 2rem;
  position: relative;
  color: var(--color-gray-text);
  font-size: 1.0625rem;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-red);
  font-weight: 700;
}

/* Quick links grid */
.quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
  list-style: none;
  padding: 0;
}

.quick-links a {
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem;
  background: var(--color-offwhite);
  border: 1px solid var(--color-gray-border);
  border-radius: var(--radius-sm);
  color: var(--color-navy);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: all var(--transition);
}

.quick-links a:hover {
  background: var(--color-red);
  color: var(--color-white);
  border-color: var(--color-red);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(185, 28, 58, 0.2);
}

/* ============================================
   Landing Page (Homepage)
   ============================================ */
.landing-frame {
  margin: 0;
  padding: 0;
}

.landing-inner {
  overflow: hidden;
}

.landing-container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ---------- Landing Hero ---------- */
.hero-landing {
  position: relative;
  min-height: 90vh;
  max-height: 1100px;
  margin-top: 80px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  overflow: hidden;
  /* Navy fallback so the white hero <h1> has real ancestor-background
     contrast (12.6:1). Without this, pa11y reports 1:1 against the white
     <body>, and if the slideshow ever fails to load the lower-frame text
     would be invisible against the light gray placeholder. */
  background: var(--color-navy);
}

.hero-landing__bg {
  position: absolute;
  inset: 0;
  background: var(--color-navy);
  z-index: 0;
}

.hero-landing__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15, 29, 53, 0.97) 0%,
    rgba(15, 29, 53, 0.92) 15%,
    rgba(15, 29, 53, 0.8) 35%,
    rgba(15, 29, 53, 0.5) 55%,
    rgba(15, 29, 53, 0.15) 75%,
    rgba(15, 29, 53, 0) 100%
  );
  z-index: 1;
  pointer-events: none;
}

@media (max-width: 600px) {
  .hero-landing__overlay {
    background: linear-gradient(
      to top,
      rgba(15, 29, 53, 0.97) 0%,
      rgba(15, 29, 53, 0.95) 15%,
      rgba(15, 29, 53, 0.9) 35%,
      rgba(15, 29, 53, 0.75) 55%,
      rgba(15, 29, 53, 0.4) 75%,
      rgba(15, 29, 53, 0.1) 100%
    );
  }
}

.hero-landing__content {
  position: relative;
  z-index: 2;
  padding: 9.5rem 5% 4rem;
  max-width: var(--content-width);
}

.hero-landing__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
  padding: 0.5rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
}

.hero-landing__title {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.hero-landing__sub {
  font-size: 1.1875rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 0 2.5rem;
}

.hero-landing__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- Accent Bar ---------- */
.accent-bar {
  background: var(--color-navy);
  padding: 1rem 2rem;
  text-align: center;
}

.accent-bar p {
  margin: 0;
  color: var(--color-white);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.info-strip {
  background: var(--color-navy);
  padding: 1rem 0;
  text-align: center;
}

.info-strip p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* ---------- Hero Slideshow ---------- */
.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-slideshow__slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slideshow__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero-slideshow__slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-slideshow__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero-slideshow__indicators {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 0.625rem;
  align-items: center;
}

.hero-slideshow__indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.08);
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.hero-slideshow__indicator:hover {
  background: rgba(255, 255, 255, 0.35);
}

.hero-slideshow__indicator.is-active {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.9);
  transform: scale(1.15);
}

.hero-slideshow__indicator:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

@media (max-width: 600px) {
  .hero-slideshow__indicators {
    bottom: 1.25rem;
    gap: 0.4rem;
  }

  .hero-slideshow__indicator {
    width: 10px;
    height: 10px;
  }
}

/* ---------- Landing Sections ---------- */
.landing-section {
  padding: 6rem 0;
}

.landing-section--alt {
  background-color: var(--color-offwhite);
}

.section-heading {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-navy);
  text-align: center;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.section-subheading {
  text-align: center;
  color: var(--color-gray-text);
  font-size: 1.0625rem;
  max-width: 580px;
  margin: 0 auto 3.5rem;
  line-height: 1.7;
}

/* ---------- Feature Grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--color-navy);
  transition: all var(--transition);
  overflow: hidden;
  background: var(--color-white);
  border: 1px solid var(--color-gray-border);
}

.feature-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  text-decoration: none;
  color: var(--color-navy);
}

.feature-card__img {
  width: 100%;
  height: 180px;
  background: var(--color-gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray-400);
  font-size: 0.8125rem;
  overflow: hidden;
}

.feature-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.feature-card:hover .feature-card__img img {
  transform: scale(1.04);
}

.feature-card__body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--color-focus-light);
  color: var(--color-focus);
  margin-bottom: 1.25rem;
  transition: all var(--transition);
}

.feature-card:hover .feature-card__icon {
  background: var(--color-focus);
  color: var(--color-white);
}

.feature-card__icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-navy);
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--color-gray-text);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1.25rem;
}

.feature-card__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-focus);
  transition: color var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.feature-card:hover .feature-card__link {
  color: var(--color-focus-hover);
}

/* ---------- Stats Band ---------- */
.stats-band {
  background: var(--color-navy);
  padding: 4.5rem 0;
}

.stats-row {
  display: flex;
  justify-content: center;
  gap: 6rem;
}

.stat {
  text-align: center;
}

.stat__number {
  display: block;
  font-family: var(--font-heading);
  font-size: 3.25rem;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.stat__label {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

/* ---------- CTA Section ---------- */
.cta-section {
  background: var(--color-offwhite);
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-landing {
    min-height: 80vh;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-row {
    gap: 3.5rem;
  }

  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }

  .photo-grid__item--wide,
  .photo-grid__item--tall {
    grid-column: auto;
    grid-row: auto;
  }

  .photo-grid__item {
    min-height: 200px;
  }
}

@media (max-width: 600px) {
  h1 {
    font-size: 2.25rem;
  }
  h2 {
    font-size: 1.75rem;
  }

  .hero-landing {
    min-height: 60vh;
  }

  .hero-landing__title {
    white-space: normal;
    font-size: 2rem;
    margin-bottom: 0.75rem;
  }

  .hero-landing__sub {
    font-size: 1rem;
    margin-bottom: 1.75rem;
  }

  .hero-landing__actions .btn {
    padding: 0.625rem 1.5rem;
    font-size: 0.8125rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero--page h1 {
    font-size: 1.75rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .stats-row {
    flex-direction: column;
    gap: 2.5rem;
  }

  .stat__number {
    font-size: 2.5rem;
  }

  .section-heading {
    font-size: 2rem;
  }

  .landing-section {
    padding: 4rem 0;
  }

  .landing-container {
    padding: 0 1.25rem;
  }

  .container {
    padding: 0 1.25rem;
  }

  .photo-grid {
    grid-template-columns: 1fr;
  }

  .photo-grid__item {
    min-height: 180px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Notification Bell - static tab on the right edge of the hero ---
   Only appears on the homepage (appended to .hero-landing in JS). Sits flush
   against the right edge with a rounded left side, like a bookmark tab. */
.notification-fab {
  position: absolute;
  top: 18%;
  right: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem 0.75rem 1.1rem;
  border: none;
  background: #8a6620;
  color: var(--color-white);
  cursor: pointer;
  z-index: 5;
  border-top-left-radius: 999px;
  border-bottom-left-radius: 999px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  box-shadow: -4px 4px 14px rgba(15, 29, 53, 0.25);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  /* Slight extra padding on the right so the hover "slide" still bleeds to
     the screen edge without leaving a visible gap. */
  padding-right: 1.25rem;
  margin-right: -0.25rem;
  transition: background-color 0.18s ease, transform 0.18s ease,
    box-shadow 0.18s ease, padding-left 0.18s ease;
}

.notification-fab:hover,
.notification-fab:focus-visible {
  background: #6f521a;
  /* Grow leftward instead of translating, so the right edge stays flush
     against the screen edge (no gap appears on hover). */
  padding-left: 1.4rem;
  box-shadow: -6px 6px 18px rgba(15, 29, 53, 0.3);
}

.notification-fab:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}

.notification-fab__icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  transition: transform 0.18s ease;
}

.notification-fab:hover .notification-fab__icon,
.notification-fab:focus-visible .notification-fab__icon {
  transform: translateX(-3px);
}

@media (prefers-reduced-motion: reduce) {
  .notification-fab {
    transition: none;
  }
}

/* Modal - mirrors .search-modal pattern */
.notification-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.notification-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.notification-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 29, 53, 0.85);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.notification-modal__content {
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 640px;
  max-height: calc(100vh - 4rem);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  transform: translateY(-12px) scale(0.98);
  transition: transform 0.25s ease;
}

.notification-modal.is-open .notification-modal__content {
  transform: translateY(0) scale(1);
}

.notification-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--color-gray-border);
  flex-shrink: 0;
}

.notification-modal__title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-navy);
  margin: 0;
}

.notification-modal__close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-gray-500);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-modal__close:hover {
  background: var(--color-offwhite);
  color: var(--color-navy);
}

.notification-modal__close:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

.notification-modal__close svg {
  width: 22px;
  height: 22px;
}

.notification-modal__body {
  overflow-y: auto;
  background: var(--color-offwhite);
}

.notification-modal__image {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 10rem);
  object-fit: contain;
  background: var(--color-offwhite);
}

@media (max-width: 480px) {
  .notification-fab {
    right: 0;
    bottom: 1rem;
    width: 3rem;
    height: 3rem;
  }
  .notification-fab svg {
    width: 1.25rem;
    height: 1.25rem;
  }
  .notification-modal {
    padding: 1rem;
  }
}
