/* ==========================================================================
   MTC 2026 — design layer aligned to the SEMA Scholarships system
   Built on top of Bootstrap 5.3. Keep this thin: retint Bootstrap tokens,
   add fonts + a few reusable helpers. No framework replacement.
   ========================================================================== */

:root {
  --sema-red:        #D32F2F;
  --sema-red-dark:   #b71c1c;
  --sema-red-on-dark:#e24a4a;   /* lightened red that clears WCAG AA (>=4.5:1) on the black nav */
  --sema-ink:        #121212;
  --sema-bg-light:   #F8F9FA;
  --sema-muted:      #94a3b8;
  --sema-shadow-soft:  0 4px 20px -2px rgba(0,0,0,.10);
  --sema-shadow-hover: 0 20px 40px -5px rgba(0,0,0,.18);

  /* Retint Bootstrap's own tokens so text-primary / bg-primary / links go red */
  --bs-primary: #D32F2F;
  --bs-primary-rgb: 211,47,47;
  --bs-link-color: #D32F2F;
  --bs-link-color-rgb: 211,47,47;
  --bs-link-hover-color: #b71c1c;
  --bs-link-hover-color-rgb: 183,28,28;
}

/* ---- Typography ---------------------------------------------------------- */
html { scroll-padding-top: 5.5rem; }   /* so #anchor jumps land below the sticky nav, not under it */
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--sema-ink);
  background-color: var(--sema-bg-light);
  line-height: 1.7;
}
h1, h2, h3, h4, h5, .font-display {
  font-family: 'Montserrat', sans-serif;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.font-condensed { font-family: 'Oswald', sans-serif; }
.fw-black { font-weight: 900 !important; }
.lead { font-size: 1.15rem; line-height: 1.7; }

/* Signature heading treatment (matches scholarships) */
.display-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.12;
}

/* Section eyebrow + accent bar */
.eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  color: var(--sema-red);
}
.section-accent {
  width: 72px; height: 5px;
  background: var(--sema-red);
  border: 0;
  opacity: 1;
}

/* ---- Rhythm -------------------------------------------------------------- */
.section { padding: 4.5rem 0; }
@media (max-width: 767.98px) { .section { padding: 3rem 0; } }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  letter-spacing: 0.08em;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-primary {
  --bs-btn-bg: var(--sema-red);
  --bs-btn-border-color: var(--sema-red);
  --bs-btn-hover-bg: var(--sema-red-dark);
  --bs-btn-hover-border-color: var(--sema-red-dark);
  --bs-btn-active-bg: var(--sema-red-dark);
  --bs-btn-active-border-color: var(--sema-red-dark);
  --bs-btn-disabled-bg: var(--sema-red);
  --bs-btn-disabled-border-color: var(--sema-red);
}
/* Keep the legacy btn-danger used across the header/pages on-brand */
.btn-danger {
  --bs-btn-bg: var(--sema-red);
  --bs-btn-border-color: var(--sema-red);
  --bs-btn-hover-bg: var(--sema-red-dark);
  --bs-btn-hover-border-color: var(--sema-red-dark);
  --bs-btn-active-bg: var(--sema-red-dark);
  --bs-btn-active-border-color: var(--sema-red-dark);
}
.btn-primary:hover, .btn-danger:hover, .btn-dark:hover, .btn-outline-dark:hover { transform: translateY(-2px); }
.btn-cta {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---- Cards --------------------------------------------------------------- */
.card {
  border: none;
  border-radius: 16px;
  box-shadow: var(--sema-shadow-soft);
  overflow: hidden;
}
.hover-lift { transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s; }
.hover-lift:hover { transform: translateY(-5px); box-shadow: var(--sema-shadow-hover); }
/* Vertically center the director block so it doesn't leave dead space next to the taller MPMC card */
.card-body:has(#contact) { display: flex; flex-direction: column; justify-content: center; }

/* Icon chip for quick-fact / feature rows */
.icon-chip {
  width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(211,47,47,.10);
  border-radius: 12px;
  color: var(--sema-red);
  flex: 0 0 auto;
}
.icon-chip .material-icons { font-size: 1.6rem; }

/* ---- Navbar (scholarships-style, kept sticky so the banner stays visible) */
.navbar-brand {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}
.navbar-brand .brand-mark { color: var(--sema-red); }
.mtc-logo { height: 46px; width: auto; }   /* pre-composited: SEMA badge stays red, wordmark is white for the dark nav */
@media (max-width: 575.98px) { .mtc-logo { height: 38px; } }
.navbar .nav-link {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.95rem;
}
.navbar .dropdown-item {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}
.navbar-dark .nav-link:hover,
.navbar-dark .nav-link:focus { color: var(--sema-red-on-dark) !important; }
.dropdown-menu {
  border-top: 3px solid var(--sema-red);
  border-radius: 0 0 8px 8px;
}
.dropdown-menu-dark .dropdown-item:hover,
.dropdown-menu-dark .dropdown-item:focus { color: var(--sema-red-on-dark); background: rgba(255,255,255,.08); }

/* ---- Gallery lightbox ---------------------------------------------------- */
.mtc-gallery img { cursor: zoom-in; transition: opacity .2s ease; width: 100%; height: 220px; object-fit: cover; }
.mtc-gallery img:hover { opacity: .9; }
@media (max-width: 575.98px) { .mtc-gallery img { height: 150px; } }
.mtc-lightbox {
  position: fixed; inset: 0; z-index: 1090;
  display: none; align-items: center; justify-content: center;
  background: rgba(18,18,18,.92); padding: 2rem; cursor: zoom-out;
}
.mtc-lightbox.open { display: flex; }
.mtc-lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.mtc-lightbox-close {
  position: absolute; top: 1rem; right: 1.75rem;
  color: #fff; font-size: 2.75rem; line-height: 1; cursor: pointer;
  font-family: Arial, sans-serif;
}
.mtc-lightbox-close:hover { color: var(--sema-red); }
.mtc-lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 3.25rem; height: 3.25rem; border: 0;
  background: rgba(255,255,255,.12); color: #fff;
  font-size: 2rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.mtc-lightbox-nav:hover { background: var(--sema-red); }
.mtc-lightbox-nav.prev { left: 1rem; }
.mtc-lightbox-nav.next { right: 1rem; }

/* ---- Schedule agenda rows ------------------------------------------------ */
.sched-row { display: flex; flex-wrap: wrap; gap: .15rem 1.25rem; padding: .65rem 0; border-bottom: 1px solid #eee; }
.sched-row:last-child { border-bottom: 0; }
.sched-time { flex: 0 0 8.5rem; font-weight: 700; color: var(--sema-ink); }
.sched-event { flex: 1 1 12rem; }
.sched-event .spon { color: #64748b; font-style: italic; }

/* ---- Sponsorship tier price ---------------------------------------------- */
.tier-price { font-family: 'Montserrat', sans-serif; font-weight: 900; color: var(--sema-red); font-size: 2.1rem; line-height: 1; }

/* ---- Suite floor plan ---------------------------------------------------- */
.mtc-floorplan { max-width: 460px; margin: 0 auto; }
.mtc-legend { list-style: none; padding: 0; }
.mtc-legend li { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; border-bottom: 1px solid #eee; }
.mtc-legend li:last-child { border-bottom: 0; }
.mtc-legend .sw { display: inline-block; width: 12px; height: 12px; margin-right: 8px; vertical-align: middle; border: 1px solid #94a3b8; }

/* ---- FAQ accordion ------------------------------------------------------- */
.accordion-button { font-family: 'Montserrat', sans-serif; font-weight: 700; }
.accordion-button:not(.collapsed) { color: var(--sema-red); background-color: rgba(211,47,47,.06); box-shadow: none; }
.accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(211,47,47,.15); }

/* ---- Footer -------------------------------------------------------------- */
.site-footer a { color: #333; text-decoration: none; }
.site-footer a:hover { color: var(--sema-red); }
.footer-links {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
}

/* ---- Reduced motion ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .hover-lift:hover { transform: none; }
  .btn:hover { transform: none; }
}
