/* ==========================================================================
   ST. MARY PUBLIC INTER COLLEGE — Design System
   A premium, editorial design system for an institutional school website.
   ========================================================================== */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600;700&display=swap');

/* ==========================================================================
   1. DESIGN TOKENS (CSS Custom Properties)
   ========================================================================== */
:root {
  /* --- Color Palette --- */
  --color-navy:         #0F2744;
  --color-navy-light:   #1A3A5C;
  --color-navy-dark:    #091B30;
  --color-gold:         #C8A951;
  --color-gold-light:   #E8D48B;
  --color-gold-dark:    #A88B3A;
  --color-cream:        #FAF8F5;
  --color-cream-dark:   #F0EDE8;
  --color-white:        #FFFFFF;
  --color-charcoal:     #2D3436;
  --color-grey-dark:    #4A5568;
  --color-grey:         #6B7280;
  --color-grey-light:   #E5E7EB;
  --color-grey-lighter: #F3F4F6;
  --color-success:      #059669;
  --color-success-bg:   #ECFDF5;
  --color-warning:      #D97706;
  --color-warning-bg:   #FFFBEB;
  --color-danger:       #DC2626;
  --color-danger-bg:    #FEF2F2;
  --color-info:         #2563EB;
  --color-info-bg:      #EFF6FF;

  /* --- Semantic Aliases & Functional Tokens --- */
  --color-primary:        var(--color-navy);
  --color-primary-light:  var(--color-navy-light);
  --color-primary-dark:   var(--color-navy-dark);
  --color-accent:         var(--color-gold);
  --color-accent-light:   var(--color-gold-light);
  --color-accent-dark:    var(--color-gold-dark);
  --color-surface:        var(--color-white);
  --color-error:          var(--color-danger);

  /* --- Neutral Scale --- */
  --color-neutral-100:    #F8F9FA;
  --color-neutral-200:    #E9ECEF;
  --color-neutral-300:    #DEE2E6;
  --color-neutral-400:    #CED4DA;
  --color-neutral-500:    #6C757D;
  --color-neutral-600:    #495057;
  --color-neutral-700:    #343A40;
  --color-neutral-800:    #212529;
  --color-neutral-900:    #121416;

  /* --- Numeric Spacing Aliases --- */
  --space-1:              0.25rem;   /* 4px */
  --space-2:              0.5rem;    /* 8px */
  --space-3:              0.75rem;   /* 12px */
  --space-4:              1rem;      /* 16px */
  --space-5:              1.25rem;   /* 20px */
  --space-6:              1.5rem;    /* 24px */
  --space-8:              2rem;      /* 32px */
  --space-10:             2.5rem;    /* 40px */
  --space-12:             3rem;      /* 48px */
  --space-14:             3.5rem;    /* 56px */
  --space-16:             4rem;      /* 64px */
  --space-20:             5rem;      /* 80px */
  --space-24:             6rem;      /* 96px */

  /* --- Typography Aliases --- */
  --font-size-xs:         var(--fs-xs);
  --font-size-sm:         var(--fs-small);
  --font-size-base:       var(--fs-body);
  --font-size-lg:         var(--fs-body-lg);
  --font-size-xl:         var(--fs-h3);
  --font-size-2xl:        var(--fs-h2);
  --font-weight-medium:   var(--fw-medium);
  --font-weight-semibold: var(--fw-semibold);
  --font-weight-bold:     var(--fw-bold);

  /* --- Transition Aliases --- */
  --transition-normal:    var(--transition-base);

  /* --- Typography --- */
  --font-heading:       'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:          'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --fs-hero:            clamp(2.5rem, 5vw, 4rem);
  --fs-h1:              clamp(2rem, 4vw, 3rem);
  --fs-h2:              clamp(1.75rem, 3vw, 2.25rem);
  --fs-h3:              clamp(1.25rem, 2.5vw, 1.75rem);
  --fs-h4:              clamp(1.1rem, 2vw, 1.35rem);
  --fs-h5:              1.125rem;
  --fs-body:            1rem;
  --fs-body-lg:         1.125rem;
  --fs-small:           0.875rem;
  --fs-xs:              0.8125rem;

  --fw-light:           300;
  --fw-regular:         400;
  --fw-medium:          500;
  --fw-semibold:        600;
  --fw-bold:            700;

  --lh-tight:           1.2;
  --lh-snug:            1.35;
  --lh-normal:          1.6;
  --lh-relaxed:         1.75;

  --ls-tight:          -0.02em;
  --ls-normal:          0;
  --ls-wide:            0.05em;
  --ls-wider:           0.1em;

  /* --- Spacing --- */
  --space-xs:           0.25rem;   /* 4px */
  --space-sm:           0.5rem;    /* 8px */
  --space-md:           1rem;      /* 16px */
  --space-lg:           1.5rem;    /* 24px */
  --space-xl:           2rem;      /* 32px */
  --space-2xl:          3rem;      /* 48px */
  --space-3xl:          4rem;      /* 64px */
  --space-4xl:          5rem;      /* 80px */
  --space-5xl:          7rem;      /* 112px */

  /* --- Layout --- */
  --container-max:      1280px;
  --container-narrow:   900px;
  --container-wide:     1440px;
  --sidebar-width:      280px;

  /* --- Borders & Radius --- */
  --radius-sm:          4px;
  --radius-md:          8px;
  --radius-lg:          12px;
  --radius-xl:          16px;
  --radius-full:        9999px;
  --border-thin:        1px solid var(--color-grey-light);
  --border-gold:        2px solid var(--color-gold);

  /* --- Shadows --- */
  --shadow-sm:          0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md:          0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg:          0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl:          0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-card:        0 1px 3px rgba(0,0,0,0.06), 0 6px 16px rgba(0,0,0,0.04);
  --shadow-card-hover:  0 4px 12px rgba(0,0,0,0.08), 0 12px 28px rgba(0,0,0,0.06);

  /* --- Transitions & Motion Tokens --- */
  --transition-fast:    150ms ease;
  --transition-base:    250ms ease;
  --transition-slow:    400ms ease;
  --transition-slower:  600ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-expo:      cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart:     cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out-smooth: cubic-bezier(0.65, 0, 0.35, 1);
  --header-height:      82px;

  /* --- Z-index layers --- */
  --z-dropdown:         100;
  --z-sticky:           200;
  --z-overlay:          300;
  --z-modal:            400;
  --z-toast:            500;
}


/* ==========================================================================
   2. CSS RESET & BASE
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

section[id], div[id] {
  scroll-margin-top: calc(var(--header-height) + 16px);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal--left, .reveal--right, .reveal--scale, .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .marquee-track, .brand-marquee__track {
    animation: none !important;
    transform: none !important;
  }
  .parallax-element, .hero__bg img {
    transform: none !important;
    transition: none !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  color: var(--color-charcoal);
  background-color: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

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

a {
  color: var(--color-navy);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: var(--color-gold-dark);
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  max-width: 100%;
  box-sizing: border-box;
}

input[type="file"] {
  max-width: 100%;
  width: 100%;
}

/* Focus visible for accessibility */
:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}


/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
  color: var(--color-navy);
  letter-spacing: var(--ls-tight);
}

h1 { font-size: var(--fs-h1); margin-bottom: var(--space-lg); }
h2 { font-size: var(--fs-h2); margin-bottom: var(--space-lg); }
h3 { font-size: var(--fs-h3); margin-bottom: var(--space-md); }
h4 { font-size: var(--fs-h4); margin-bottom: var(--space-md); }
h5 { font-size: var(--fs-h5); margin-bottom: var(--space-sm); }

p {
  margin-bottom: var(--space-md);
  max-width: 72ch;
}

.text-lead {
  font-size: var(--fs-body-lg);
  line-height: var(--lh-relaxed);
  color: var(--color-grey-dark);
}

.text-small {
  font-size: var(--fs-small);
}

.text-xs {
  font-size: var(--fs-xs);
}

.text-gold { color: var(--color-gold); }
.text-navy { color: var(--color-navy); }
.text-grey { color: var(--color-grey); }
.text-white { color: var(--color-white); }
.text-success { color: var(--color-success); }
.text-danger { color: var(--color-danger); }
.text-warning { color: var(--color-warning); }

.text-center { text-align: center; }
.text-uppercase {
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  font-size: var(--fs-small);
  font-family: var(--font-body);
  font-weight: var(--fw-semibold);
}


/* ==========================================================================
   4. LAYOUT UTILITIES
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.container--wide {
  max-width: var(--container-wide);
}

/* Section spacing */
.section {
  padding-top: var(--space-4xl);
  padding-bottom: var(--space-4xl);
}

.section--sm {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

.section--lg {
  padding-top: var(--space-5xl);
  padding-bottom: var(--space-5xl);
}

.section--navy {
  background-color: var(--color-navy);
  color: var(--color-white);
}
.section--navy h1, .section--navy h2, .section--navy h3,
.section--navy h4, .section--navy h5 {
  color: var(--color-white);
}
.section--navy p {
  color: rgba(255, 255, 255, 0.85);
}

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

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

.section--grey {
  background-color: var(--color-grey-lighter);
}

/* Flexbox utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }
.gap-2xl { gap: var(--space-2xl); }

/* Grid */
.grid {
  display: grid;
  gap: var(--space-xl);
}

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

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}


/* ==========================================================================
   5. SECTION HEADINGS
   ========================================================================== */
.section-header {
  margin-bottom: var(--space-2xl);
}

.section-header--center {
  text-align: center;
}

.section-label {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  font-size: var(--fs-xs);
  font-family: var(--font-body);
  font-weight: var(--fw-semibold);
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
}

.section--navy .section-label {
  color: var(--color-gold-light);
}

.section-title {
  font-size: var(--fs-h2);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background-color: var(--color-gold);
  margin-top: var(--space-md);
  border-radius: 2px;
}

.section-header--center .section-title::after,
.section-header.text-center .section-title::after,
.text-center .section-title::after {
  margin-left: auto;
  margin-right: auto;
}

.section-header:has(.divider) .section-title::after,
.section-title.no-underline::after {
  display: none;
}

.section-desc {
  font-size: var(--fs-body-lg);
  color: var(--color-grey-dark);
  max-width: 60ch;
  margin-top: var(--space-md);
}

.section-header--center .section-desc {
  margin-left: auto;
  margin-right: auto;
}

.section--navy .section-desc {
  color: rgba(255, 255, 255, 0.75);
}


/* ==========================================================================
   6. BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.8125rem 1.75rem;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  text-decoration: none;
  cursor: pointer;
  line-height: 1;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

.btn--primary,
.btn--accent {
  background-color: var(--color-gold);
  color: var(--color-navy-dark);
  border-color: var(--color-gold);
  font-weight: var(--fw-semibold);
}
.btn--primary:hover,
.btn--accent:hover {
  background-color: var(--color-gold-light);
  border-color: var(--color-gold-light);
  color: var(--color-navy-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(200, 169, 81, 0.4);
}

.btn--secondary {
  background-color: var(--color-navy);
  color: var(--color-white);
  border-color: var(--color-navy);
}
.btn--secondary:hover {
  background-color: var(--color-navy-light);
  border-color: var(--color-navy-light);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

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

.btn--outline-white,
.btn--outline-light {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
}
.btn--outline-white:hover,
.btn--outline-light:hover {
  background-color: var(--color-white);
  color: var(--color-navy-dark);
  border-color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn--ghost {
  background: transparent;
  color: var(--color-navy);
  border-color: transparent;
  padding-left: 0;
  padding-right: 0;
}
.btn--ghost:hover {
  color: var(--color-gold-dark);
}
.btn--ghost::after {
  content: '→';
  transition: transform var(--transition-fast);
}
.btn--ghost:hover::after {
  transform: translateX(4px);
}

.btn--sm {
  padding: 0.5rem 1.25rem;
  font-size: var(--fs-xs);
}

.btn--lg {
  padding: 1rem 2.25rem;
  font-size: var(--fs-body);
}

.btn--danger {
  background-color: var(--color-danger);
  color: var(--color-white);
  border-color: var(--color-danger);
}
.btn--danger:hover {
  background-color: #B91C1C;
  border-color: #B91C1C;
  color: var(--color-white);
}

.btn--success {
  background-color: var(--color-success);
  color: var(--color-white);
  border-color: var(--color-success);
}
.btn--success:hover {
  background-color: #047857;
  border-color: #047857;
  color: var(--color-white);
}

.btn--icon {
  padding: 0.625rem;
  border-radius: var(--radius-md);
}


/* ==========================================================================
   7. CARDS
   ========================================================================== */
.card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.card__body {
  padding: var(--space-lg);
}

.card__meta {
  font-size: var(--fs-xs);
  color: var(--color-grey);
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  margin-bottom: var(--space-sm);
}

.card__title {
  font-size: var(--fs-h4);
  margin-bottom: var(--space-sm);
  line-height: var(--lh-snug);
}

.card__title a {
  color: var(--color-navy);
  transition: color var(--transition-fast);
}
.card__title a:hover {
  color: var(--color-gold-dark);
}

.card__excerpt {
  color: var(--color-grey-dark);
  font-size: var(--fs-small);
  line-height: var(--lh-normal);
  margin-bottom: var(--space-md);
}

.card__footer {
  padding: var(--space-md) var(--space-lg);
  border-top: var(--border-thin);
}


/* ==========================================================================
   8. FORMS
   ========================================================================== */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  color: var(--color-navy);
  margin-bottom: var(--space-xs);
}

.form-label--required::after {
  content: ' *';
  color: var(--color-danger);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--color-charcoal);
  background-color: var(--color-white);
  border: 1px solid var(--color-grey-light);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  appearance: none;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(200, 169, 81, 0.15);
}

.form-control::placeholder {
  color: var(--color-grey);
}

.form-control--error {
  border-color: var(--color-danger);
}
.form-control--error:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236B7280' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-error {
  display: block;
  font-size: var(--fs-xs);
  color: var(--color-danger);
  margin-top: var(--space-xs);
}

.form-help {
  display: block;
  font-size: var(--fs-xs);
  color: var(--color-grey);
  margin-top: var(--space-xs);
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  margin-top: 3px;
  accent-color: var(--color-gold);
}


/* ==========================================================================
   9. BADGES & STATUS LABELS
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.25rem 0.75rem;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  border-radius: var(--radius-full);
  line-height: 1;
  white-space: nowrap;
}

.badge--gold {
  background-color: var(--color-gold-light);
  color: var(--color-navy-dark);
}

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

.badge--success {
  background-color: var(--color-success-bg);
  color: var(--color-success);
}

.badge--warning {
  background-color: var(--color-warning-bg);
  color: var(--color-warning);
}

.badge--danger {
  background-color: var(--color-danger-bg);
  color: var(--color-danger);
}

.badge--info {
  background-color: var(--color-info-bg);
  color: var(--color-info);
}

.badge--outline {
  background: transparent;
  border: 1px solid currentColor;
}


/* ==========================================================================
   10. BREADCRUMBS
   ========================================================================== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--fs-small);
  color: var(--color-grey);
  padding: var(--space-md) 0;
}

.breadcrumb a {
  color: var(--color-grey);
  transition: color var(--transition-fast);
}
.breadcrumb a:hover {
  color: var(--color-gold-dark);
}

.breadcrumb__separator {
  color: var(--color-grey-light);
}

.breadcrumb__current {
  color: var(--color-navy);
  font-weight: var(--fw-medium);
}


/* ==========================================================================
   11. PAGINATION
   ========================================================================== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-xl) 0;
}

.pagination__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 var(--space-sm);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  color: var(--color-grey-dark);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.pagination__link:hover {
  background-color: var(--color-grey-lighter);
  color: var(--color-navy);
}

.pagination__link--active {
  background-color: var(--color-navy);
  color: var(--color-white);
}
.pagination__link--active:hover {
  background-color: var(--color-navy-light);
  color: var(--color-white);
}

.pagination__link--disabled {
  opacity: 0.4;
  pointer-events: none;
}


/* ==========================================================================
   12. ALERTS & MESSAGES
   ========================================================================== */
.alert {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  font-size: var(--fs-small);
  line-height: var(--lh-normal);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.alert--success {
  background-color: var(--color-success-bg);
  color: #065F46;
  border-left: 4px solid var(--color-success);
}

.alert--danger {
  background-color: var(--color-danger-bg);
  color: #991B1B;
  border-left: 4px solid var(--color-danger);
}

.alert--warning {
  background-color: var(--color-warning-bg);
  color: #92400E;
  border-left: 4px solid var(--color-warning);
}

.alert--info {
  background-color: var(--color-info-bg);
  color: #1E40AF;
  border-left: 4px solid var(--color-info);
}


/* ==========================================================================
   13. EMPTY STATES
   ========================================================================== */
.empty-state {
  text-align: center;
  padding: var(--space-3xl) var(--space-xl);
}

.empty-state__icon {
  font-size: 3rem;
  color: var(--color-grey-light);
  margin-bottom: var(--space-lg);
}

.empty-state__title {
  font-size: var(--fs-h4);
  color: var(--color-grey-dark);
  margin-bottom: var(--space-sm);
}

.empty-state__text {
  color: var(--color-grey);
  font-size: var(--fs-small);
  max-width: 40ch;
  margin: 0 auto var(--space-lg);
}


/* ==========================================================================
   14. TABLES
   ========================================================================== */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: var(--border-thin);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-small);
}

.table th {
  text-align: left;
  font-weight: var(--fw-semibold);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  color: var(--color-grey);
  background-color: var(--color-grey-lighter);
  padding: var(--space-md) var(--space-lg);
  border-bottom: var(--border-thin);
  white-space: nowrap;
}

.table td {
  padding: var(--space-md) var(--space-lg);
  border-bottom: var(--border-thin);
  color: var(--color-charcoal);
  vertical-align: middle;
}

.table tbody tr:hover {
  background-color: var(--color-cream);
}

.table tbody tr:last-child td {
  border-bottom: none;
}


/* ==========================================================================
   15. SCROLL-REVEAL ANIMATIONS
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slower), transform var(--transition-slower);
}

.reveal--left {
  transform: translateX(-30px);
}

.reveal--right {
  transform: translateX(30px);
}

.reveal--scale {
  transform: scale(0.95);
}

.reveal.is-visible,
.reveal.is-revealed {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

/* Stagger children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-slower), transform var(--transition-slower);
}

.reveal-stagger.is-visible > *:nth-child(1),
.reveal-stagger.is-revealed > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.is-visible > *:nth-child(2),
.reveal-stagger.is-revealed > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger.is-visible > *:nth-child(3),
.reveal-stagger.is-revealed > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger.is-visible > *:nth-child(4),
.reveal-stagger.is-revealed > *:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger.is-visible > *:nth-child(5),
.reveal-stagger.is-revealed > *:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger.is-visible > *:nth-child(6),
.reveal-stagger.is-revealed > *:nth-child(6) { transition-delay: 400ms; }

.reveal-stagger.is-visible > *,
.reveal-stagger.is-revealed > *,
.reveal.is-visible .reveal-stagger > *,
.reveal.is-revealed .reveal-stagger > *,
.reveal.is-revealed.reveal-stagger > * {
  opacity: 1;
  transform: translateY(0);
}


/* ==========================================================================
   16. IMAGE UTILITIES
   ========================================================================== */
.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-overlay {
  position: relative;
}
.img-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15,39,68,0.15) 0%, rgba(15,39,68,0.6) 100%);
  pointer-events: none;
}

.aspect-video { aspect-ratio: 16 / 9; }
.aspect-photo { aspect-ratio: 4 / 3; }
.aspect-square { aspect-ratio: 1 / 1; }
.aspect-portrait { aspect-ratio: 3 / 4; }


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

.relative { position: relative; }
.overflow-hidden { overflow: hidden; }

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0; }

.w-full { width: 100%; }
.mx-auto { margin-left: auto; margin-right: auto; }
.block { display: block; }
.inline-block { display: inline-block; }
.hidden { display: none; }

@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
}

@media (min-width: 769px) {
  .hide-desktop { display: none !important; }
}


/* ==========================================================================
   18. PAGE HERO BANNER (interior pages)
   ========================================================================== */
.page-hero {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  padding: var(--space-3xl) 0 var(--space-2xl);
  background-color: var(--color-navy);
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.page-hero__content {
  position: relative;
  z-index: 1;
}

.page-hero__title {
  color: var(--color-white);
  font-size: var(--fs-h1);
  margin-bottom: 0;
}

.page-hero__subtitle {
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--fs-body-lg);
  margin-top: var(--space-sm);
  max-width: 60ch;
}

@media (max-width: 768px) {
  .page-hero {
    min-height: 240px;
    padding: var(--space-2xl) 0 var(--space-xl);
  }
}


/* ==========================================================================
   19. DIVIDER / SEPARATOR
   ========================================================================== */
.divider {
  width: 48px;
  height: 3px;
  background-color: var(--color-gold);
  border: none;
  border-radius: 2px;
  margin: var(--space-lg) 0;
}

.divider--center {
  margin-left: auto;
  margin-right: auto;
}

.divider--white {
  background-color: rgba(255, 255, 255, 0.4);
}


/* ==========================================================================
   20. PRINT STYLES
   ========================================================================== */
@media print {
  body {
    color: #000;
    background: #fff;
  }
  .site-header, .site-footer, .btn, .breadcrumb, .pagination {
    display: none !important;
  }
  a[href]::after {
    content: ' (' attr(href) ')';
    font-size: 0.8em;
    color: #666;
  }
}
