:root {
  --bg-top: #f5efe1;
  --bg-bottom: #d4e7f3;
  --surface: rgba(255, 252, 246, 0.88);
  --surface-border: rgba(35, 61, 82, 0.14);
  --surface-glass: rgba(214, 234, 255, 0.9);
  --surface-glass-border: rgba(82, 140, 204, 0.32);
  --surface-glass-highlight: rgba(245, 251, 255, 0.68);
  --shadow: 0 28px 60px rgba(27, 46, 58, 0.12);
  --brand-bar-height: 5.75rem;
  --ink-strong: #173346;
  --ink-soft: #3f5969;
  --ll-purple: #00003a;
  --brand-blue: #0032ac;
  --accent: #b13b29;
  --accent-deep: #80261a;
  --field: #6e9c52;
  --line: #f8f1df;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  padding-top: var(--brand-bar-height);
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;

  color: var(--ink-strong);
  background-color: #fffdf7;
}

.hero {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.45rem 1.25rem 0;
}

.header-brand {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 1rem;
  height: var(--brand-bar-height);
  padding: 0.9rem 1.25rem;
  background: rgba(0, 50, 172, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 24px rgba(5, 9, 28, 0.3);
  backdrop-filter: blur(10px);
  transition:
    box-shadow 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease;
}

.header-brand > * {
  position: relative;
  z-index: 1;
}

.header-brand.is-scrolled {
  background: rgba(0, 50, 172, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 20px rgba(5, 9, 28, 0.24);
}

.header-brand img {
  display: block;
  max-height: 100%;
  width: auto;
  max-width: min(280px, 42vw);
  object-fit: contain;
}

.header-title {
  flex: 1;
  margin: 0;
  font-family: "Arial Black", "Franklin Gothic Heavy", "Impact", sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.05;
  color: #ffeb3b;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  text-transform: uppercase;
}

.mobile-menu-toggle,
.mobile-menu {
  display: none;
}

.hero-image {
  position: relative;
  display: block;
  width: 100%;
  min-height: 320px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-carousel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.22)),
    linear-gradient(90deg, rgba(0, 0, 58, 0.24), transparent 45%);
  pointer-events: none;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.9s ease-in-out;
}

.hero-slide.is-active {
  opacity: 1;
}

@media (min-width: 641px) {
  .hero-slide:first-child {
    object-position: 50% 20%;
  }
}

.hero-copy {
  width: min(100% - 2rem, 540px);
  margin: -4.75rem 0 0 1.25rem;
  padding: 1.35rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  /* border-radius: 1.5rem; */
  background: rgba(248, 241, 223, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 20px 40px rgba(23, 51, 70, 0.12);
}

.eyebrow,
.section-label {
  margin: 0;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
}

h1 {
  margin-top: 0.45rem;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 0.94;
}

.hero-text {
  margin: 0.8rem 0 0;
  max-width: 30ch;
  font-size: 1.05rem;
  color: var(--ink-soft);
}

.page-shell {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1.5rem;
  max-width: 1180px;
  margin: 1.5rem auto 0;
  padding: 0 1.25rem 2.5rem;
}

.card {
  position: relative;
  scroll-margin-top: calc(var(--brand-bar-height) + 1rem);
  padding: 1.6rem;
  border: 1px solid var(--surface-border);
  /* border-radius: 1.7rem; */
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 28px 60px rgba(27, 46, 58, 0.12),
    0 12px 30px rgba(27, 46, 58, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.48);
  backdrop-filter: blur(16px) saturate(135%);
  -webkit-backdrop-filter: blur(16px) saturate(135%);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.card > * {
  position: relative;
  z-index: 1;
}

.section-heading {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.9rem, 2.8vw, 2.6rem);
}

.about p,
.calendar-intro,
.details-grid p,
.footer p {
  line-height: 1.65;
  color: var(--ink-soft);
}

.about-photo {
  margin: 1.25rem 0 0;
}

.about-photo img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.details-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.3rem;
}

.details-grid .about-card {
  padding: 1rem;
  /* border-radius: 1.2rem; */
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(35, 61, 82, 0.08);
}

.details-grid h3 {
  margin-bottom: 0.35rem;
  font-size: 1.1rem;
}

.about-card p + p {
  margin-top: 0.65rem;
}

.about-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  margin-top: 0.85rem;
  padding: 0.58rem 0.85rem;
  border: 1px solid rgba(0, 50, 172, 0.16);
  background: var(--brand-blue);
  color: #fffdf7;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(0, 50, 172, 0.14);
  transition:
    background-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.about-card-link:hover,
.about-card-link:focus-visible {
  background: #001f74;
  box-shadow: 0 14px 24px rgba(0, 50, 172, 0.2);
  transform: translateY(-1px);
}

.about-card-link:focus-visible {
  outline: 3px solid rgba(177, 59, 41, 0.28);
  outline-offset: 3px;
}

.calendar-shell {
  margin-top: 1rem;
  padding: 0.65rem;
  border-radius: 1.4rem;
}

.calendar-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  margin-left: 0.65rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(0, 50, 172, 0.16);
  background: var(--brand-blue);
  color: #fffdf7;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(0, 50, 172, 0.18);
  transition:
    background-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.calendar-link:hover,
.calendar-link:focus-visible {
  background: #001f74;
  box-shadow: 0 16px 28px rgba(0, 50, 172, 0.24);
  transform: translateY(-1px);
}

.calendar-link:focus-visible {
  outline: 3px solid rgba(177, 59, 41, 0.28);
  outline-offset: 3px;
}

.calendar-shell iframe {
  display: block;
  width: 100%;
  min-height: 600px;
  border: 0;
  /* border-radius: 1rem; */
  background: white;
}

.footer {
  padding: 1.4rem 1.25rem 2.5rem;
  text-align: center;
  background: #0032ac;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -10px 24px rgba(5, 9, 28, 0.3);
}

.footer p {
  margin: 0 auto;
  max-width: 42rem;
  font-size: 0.95rem;
  color: #ffeb3b;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

@media (max-width: 860px) {
  .page-shell {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    width: calc(100% - 2.5rem);
    margin: -3.25rem auto 0;
  }
}

@media (max-width: 640px) {
  :root {
    --brand-bar-height: 4.75rem;
  }

  .hero {
    padding: 0.35rem 0.8rem 0;
  }

  .header-brand {
    gap: 0.7rem;
    padding: 0.7rem 0.8rem;
  }

  .header-brand img {
    max-width: 34vw;
  }

  .header-title {
    font-size: clamp(0.9rem, 3.9vw, 1.2rem);
  }

  .mobile-menu-toggle {
    display: inline-flex;
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.14);
    color: #fffdf7;
    cursor: pointer;
  }

  .mobile-menu-toggle span {
    position: absolute;
    width: 1.25rem;
    height: 0.12rem;
    border-radius: 999px;
    background: currentColor;
    transition:
      opacity 160ms ease,
      transform 160ms ease;
  }

  .mobile-menu-toggle span:first-child {
    transform: translateY(-0.42rem);
  }

  .mobile-menu-toggle span:last-child {
    transform: translateY(0.42rem);
  }

  .mobile-menu-toggle[aria-expanded="true"] span:first-child {
    transform: rotate(45deg);
  }

  .mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle[aria-expanded="true"] span:last-child {
    transform: rotate(-45deg);
  }

  .mobile-menu-toggle:focus-visible {
    outline: 3px solid rgba(255, 235, 59, 0.4);
    outline-offset: 3px;
  }

  .mobile-menu {
    position: absolute;
    top: calc(100% - 0.35rem);
    right: 0.8rem;
    z-index: 2;
    min-width: min(14rem, calc(100vw - 1.6rem));
    padding: 0.45rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 0.6rem;
    background: rgba(0, 31, 116, 0.96);
    box-shadow: 0 18px 34px rgba(5, 9, 28, 0.32);
  }

  .mobile-menu.is-open {
    display: grid;
  }

  .mobile-menu a {
    display: flex;
    align-items: center;
    min-height: 2.85rem;
    padding: 0.75rem 0.85rem;
    color: #fffdf7;
    font-size: 1rem;
    font-weight: 800;
    text-decoration: none;
  }

  .mobile-menu a:hover,
  .mobile-menu a:focus-visible {
    background: rgba(255, 255, 255, 0.12);
  }

  .mobile-menu a:focus-visible {
    outline: 3px solid rgba(255, 235, 59, 0.4);
    outline-offset: 2px;
  }

  .hero-image {
    min-height: 265px;
  }

  .hero-copy {
    width: calc(100% - 1.6rem);
    margin-top: -2.5rem;
    padding: 1.2rem 1.15rem;
  }

  .page-shell {
    gap: 1rem;
    margin-top: 1rem;
    padding: 0 0.8rem 2rem;
  }

  .card {
    padding: 1.25rem;
    /* border-radius: 1.3rem; */
  }

  .calendar-shell {
    padding: 0.45rem;
  }

  .calendar-link {
    margin-left: 0.45rem;
  }

  .calendar-shell iframe {
    min-height: 520px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .header-brand {
    transition-duration: 0.01ms;
  }

  .hero-slide {
    transition-duration: 0.01ms;
  }
}
