:root {
  --maroon: #750d18;
  --deep: #240307;
  --gold: #f5c518;
  --cream: #fff9e8;
  --ink: #17120f;
  --white: #ffffff;
  --muted: #6d625c;
  --shadow: 0 20px 55px rgba(50, 6, 12, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #ffffff;
  font-family: Inter, Arial, sans-serif;
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

/* HERO */

.hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  color: #ffffff;
  background:
    linear-gradient(
      90deg,
      rgba(30, 0, 5, 0.83),
      rgba(30, 0, 5, 0.25)
    ),
    url("images/school-heronew.jpg")
    center / cover no-repeat;
}

/* NAVIGATION */

.nav {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1320px;
  margin: auto;
  padding: 22px 5%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  text-decoration: none;
}

.brand img {
  width: 58px;
  height: 65px;
  object-fit: contain;
}

.brand span {
  display: flex;
  flex-direction: column;
}

.brand strong {
  font-family: "Playfair Display", serif;
  font-size: 21px;
}

.brand small {
  margin-top: 3px;
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.navLinks {
  display: flex;
  align-items: center;
  gap: 28px;
}

.navLinks a {
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.navLinks .navCta {
  padding: 11px 18px;
  border-radius: 999px;
  color: #17120f;
  background: var(--gold);
}

.menuButton {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 9px 15px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.heroOverlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.12),
      transparent 45%,
      rgba(36, 3, 7, 0.45)
    );
}

.heroContent {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 145px 6% 130px;
}

.eyebrow,
.sectionLabel {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2.1px;
}

.hero h1 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(58px, 7.5vw, 108px);
  line-height: 0.88;
  letter-spacing: -3px;
}

.hero h1 span {
  color: var(--gold);
}

.heroText {
  max-width: 650px;
  margin: 28px 0;
  color: #f8efef;
  font-size: 18px;
  line-height: 1.7;
}

.heroActions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primaryButton,
.secondaryButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 800;
  text-decoration: none;
}

.primaryButton {
  color: #1a1203;
  background: var(--gold);
}

.secondaryButton {
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.heroCard {
  position: absolute;
  right: 6%;
  bottom: 40px;
  z-index: 3;
  width: min(340px, 88%);
  border-top: 4px solid var(--gold);
  padding: 24px;
  color: #ffffff;
  background: rgba(52, 3, 10, 0.9);
  box-shadow: var(--shadow);
}

.heroCard span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.heroCard strong {
  display: block;
  margin: 7px 0;
  font-family: "Playfair Display", serif;
  font-size: 30px;
}

.heroCard p {
  margin: 0;
  color: #eadcdf;
  font-size: 13px;
  line-height: 1.5;
}

/* MAIN */

main {
  overflow: hidden;
}

/* WELCOME */

.welcomeSection {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: end;
  max-width: 1200px;
  margin: auto;
  padding: 105px 6%;
}

.welcomeSection h2,
.sectionHeading h2,
.messageCopy h2,
.checklistIntro h2 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.02;
}

.welcomeSection > p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

/* ESSENTIALS */

.essentialsSection {
  padding: 100px 6%;
  background: var(--cream);
}

.sectionHeading {
  max-width: 1200px;
  margin: 0 auto 45px;
}

.sectionHeading > p:last-child {
  color: var(--muted);
}

.essentialsGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: auto;
}

.infoCard {
  position: relative;
  min-height: 330px;
  border: 1px solid #eadfc4;
  padding: 32px;
  background: #ffffff;
}

.infoCard.featured {
  color: #ffffff;
  background: var(--maroon);
  transform: translateY(-14px);
}

.cardNumber {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2px;
}

.infoCard h3 {
  margin: 70px 0 13px;
  font-family: "Playfair Display", serif;
  font-size: 28px;
}

.infoCard p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.infoCard.featured p {
  color: #eadcdf;
}

.infoCard button {
  position: absolute;
  left: 32px;
  bottom: 30px;
  border: 0;
  padding: 0;
  color: inherit;
  background: none;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 5px;
}

/* SCHOOL MESSAGE */

.messageSection {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  min-height: 610px;
  background: var(--deep);
}

.crestPanel {
  display: grid;
  place-items: center;
  padding: 70px;
  background:
    radial-gradient(
      circle,
      rgba(245, 197, 24, 0.28),
      transparent 45%
    ),
    linear-gradient(
      135deg,
      #8e1420,
      #4c0710
    );
}

.crestPanel img {
  width: min(360px, 75%);
  filter:
    drop-shadow(
      0 24px 25px rgba(0, 0, 0, 0.38)
    );
}

.messageCopy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 9%;
  color: #ffffff;
}

.messageCopy p:not(.sectionLabel) {
  color: #d8c6c8;
  line-height: 1.8;
}

.messageCopy blockquote {
  margin: 25px 0 0;
  padding-left: 18px;
  border-left: 3px solid var(--gold);
  color: var(--gold);
  font-family: "Playfair Display", serif;
  font-size: 24px;
}

/* EVENTS */

.eventsSection {
  max-width: 1200px;
  margin: auto;
  padding: 105px 6%;
}

.eventGrid {
  display: grid;
  gap: 14px;
}

.eventCard {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 28px;
  align-items: center;
  border-top: 1px solid #ded4cf;
  padding: 25px 0;
}

.eventDate {
  display: flex;
  align-items: center;
  gap: 12px;
}

.eventDate strong {
  color: var(--maroon);
  font-family: "Playfair Display", serif;
  font-size: 48px;
}

.eventDate span {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.eventCard h3 {
  margin: 0 0 7px;
  font-size: 21px;
}

.eventCard p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

/* CHECKLIST */

.checklistSection {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding:
    95px
    max(6%, calc((100% - 1200px) / 2));

  background: var(--gold);
}

.checklistIntro .sectionLabel {
  color: var(--maroon);
}

.checklistIntro p:last-child {
  max-width: 520px;
  line-height: 1.7;
}

.checklist {
  display: grid;
  gap: 12px;
}

.checklist label {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 2px solid rgba(45, 10, 7, 0.17);
  padding: 17px;
  background: rgba(255, 255, 255, 0.55);
  font-weight: 700;
}

.checklist input {
  width: 21px;
  height: 21px;
  accent-color: var(--maroon);
}

.checklist input:checked + span {
  text-decoration: line-through;
  opacity: 0.55;
}

/* FOOTER */

footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 35px 6%;
  color: #ffffff;
  background: #190205;
}

footer img {
  width: 54px;
}

footer p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

footer a {
  color: var(--gold);
  font-weight: 800;
}

/* MODAL */

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(20, 0, 3, 0.75);
  backdrop-filter: blur(7px);
}

.modal[hidden] {
  display: none;
}

.modalBox {
  position: relative;
  width: min(480px, 100%);
  border-top: 5px solid var(--gold);
  padding: 36px;
  background: #ffffff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.modalBox h2 {
  margin: 0 0 13px;
  font-family: "Playfair Display", serif;
  font-size: 36px;
}

.modalBox > p:not(.sectionLabel) {
  color: var(--muted);
  line-height: 1.7;
}

.modalClose {
  position: absolute;
  top: 12px;
  right: 15px;
  border: 0;
  background: none;
  font-size: 27px;
}

.modalDone {
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  color: #ffffff;
  background: var(--maroon);
  font-weight: 800;
}

/* MOBILE */

@media (max-width: 760px) {
  .hero {
    min-height: 720px;
  }

  .nav {
    align-items: flex-start;
  }

  .brand img {
    width: 48px;
    height: 54px;
  }

  .brand strong {
    font-size: 17px;
  }

  .menuButton {
    display: block;
  }

  .navLinks {
    position: absolute;
    top: 85px;
    right: 5%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 210px;
    border-top: 3px solid var(--gold);
    padding: 18px;
    background: #39070d;
    box-shadow: var(--shadow);
  }

  .navLinks.open {
    display: flex;
  }

  .heroContent {
    padding: 115px 6% 170px;
  }

  .hero h1 {
    font-size: 55px;
    letter-spacing: -2px;
  }

  .heroCard {
    left: 6%;
    right: auto;
    bottom: 25px;
  }

  .welcomeSection,
  .checklistSection,
  .messageSection {
    grid-template-columns: 1fr;
  }

  .welcomeSection {
    gap: 25px;
    padding: 75px 6%;
  }

  .essentialsGrid {
    grid-template-columns: 1fr;
  }

  .infoCard.featured {
    transform: none;
  }

  .crestPanel {
    min-height: 420px;
  }

  .messageCopy {
    padding: 70px 7%;
  }

  .eventCard {
    grid-template-columns: 90px 1fr;
  }

  .checklistSection {
    gap: 35px;
    padding: 70px 6%;
  }

  footer {
    grid-template-columns: auto 1fr;
  }

  footer a {
    grid-column: 1 / -1;
  }

  .heroActions {
    align-items: stretch;
  }

  .primaryButton,
  .secondaryButton {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .hero h1 {
    font-size: 47px;
  }

  .heroText {
    font-size: 16px;
  }

  .heroContent {
    padding-top: 95px;
  }

  .eventCard {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .eventDate strong {
    font-size: 38px;
  }

  .crestPanel {
    min-height: 330px;
  }

  .modalBox {
    padding: 30px 23px;
  }
}
/* FINAL MOBILE BUTTON FIX */
@media (max-width: 760px) {
  .nav {
    width: 100%;
    gap: 10px;
    padding: 16px 5%;
  }

  .brand {
    min-width: 0;
    flex: 1;
  }

  .brand span {
    min-width: 0;
  }

  .brand strong,
  .brand small {
    white-space: normal;
  }

  .menuButton {
    flex: 0 0 auto;
    max-width: 90px;
    padding: 9px 14px;
    white-space: nowrap;
  }

  .navLinks {
    right: 5%;
    left: auto;
    width: min(230px, 90vw);
    max-width: calc(100vw - 10%);
  }

  .navLinks a,
  .navLinks .navCta {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    white-space: normal;
    overflow-wrap: break-word;
    text-align: center;
  }

  .heroActions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: 100%;
  }

  .primaryButton,
  .secondaryButton {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 13px 16px;
    white-space: normal;
    line-height: 1.25;
    text-align: center;
  }
}
.lastYearEventsAction {
  display: flex;
  justify-content: center;
  margin-top: 45px;
}

.lastYearEventsButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border-radius: 999px;
  padding: 0 25px;
  color: #ffffff;
  background: #750d18;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.lastYearEventsButton:hover {
  background: #240307;
  transform: translateY(-2px);
}

@media (max-width: 760px) {
  .lastYearEventsButton {
    width: 100%;
    max-width: 340px;
    padding: 14px 18px;
    text-align: center;
  }
}