@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@700&display=swap');

:root {
  --ink: #132a13;
  --ink-soft: #4f6f52;
  --paper: #221b33;
  --card: #ffffff;
  --accent: #2d6a4f;
  --accent-2: #40916c;
  --border: #d8e2dc;
  --link: #0c772b;
  --link-hover: #1f9a45;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 8%, #5f8f78 0, transparent 42%),
    radial-gradient(circle at 88% 12%, #7a63a0 0, transparent 40%),
    linear-gradient(135deg, #bcc3c0 0%, #cbc8d4 100%);
  color: var(--ink);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--link);
}

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

.hero {
  padding: 0.2rem 1rem 0.35rem;
  background: transparent;
  position: relative;
  overflow: visible;
  z-index: 2;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 28px 0;
  background: #4b2a72;
  z-index: -1;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28px;
  height: 1px;
  background: rgba(255, 255, 255, 0.92);
  z-index: 0;
  transform: scaleX(1);
  transform-origin: center center;
  transition: transform 320ms ease, background-color 320ms ease, height 320ms ease;
}

.hero:has(.header-menu a:hover)::after,
.hero:has(.header-menu a:focus-visible)::after {
  background: #0c772b;
  height: 2px;
  animation: headerLineGrow 320ms ease;
}

@keyframes headerLineGrow {
  0% {
    transform: scaleX(0);
  }
  100% {
    transform: scaleX(1);
  }
}

.nav {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.brand {
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #ffffff;
  transform: translateY(0);
}

.brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-left: 0;
}

.title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-logo {
  display: block;
  position: relative;
  z-index: 4;
  transform: translateY(8px);
}

.brand img {
  width: 160px;
  max-width: 33.6vw;
  height: auto;
  object-fit: contain;
}

.brand-title {
  display: inline-flex;
  align-items: center;
  margin: 0;
  transform: translateY(2px);
  text-decoration: none;
}

.brand-title img {
  display: block;
  width: clamp(210px, 25vw, 380px);
  max-width: 60vw;
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.34));
}

.menu-toggle {
  display: none;
  width: 38px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  border-radius: 8px;
  padding: 6px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  margin: 4px 0;
}

.hero__content {
  width: min(1068px, calc(100% - 2rem));
  margin: 1.25rem auto 0;
  background: rgba(255, 255, 255, 0.62);
  border: 1.5px solid #3f2463;
  border-radius: 14px;
  backdrop-filter: blur(8px) saturate(125%);
  -webkit-backdrop-filter: blur(8px) saturate(125%);
  padding: clamp(0.9rem, 2.2vw, 1.4rem);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.38), 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: riseIn 700ms ease-out;
}

.hero__content p,
.hero__content h1,
.hero__content .eyebrow {
  max-width: 720px;
}

.header-menu {
  max-width: none;
  margin: 4px 0 0;
  display: flex;
  justify-content: flex-start;
  gap: 0.85rem;
  flex-wrap: wrap;
  align-items: center;
}

.header-menu a {
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.15rem 0.5rem;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 180ms ease, border-bottom-color 180ms ease;
}

.header-menu a:hover {
  color: #0c772b;
  border-bottom-color: #0c772b;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(27, 18, 42, 0.98);
  display: none;
  z-index: 30;
  padding: 1rem;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu__close {
  margin-left: auto;
  display: block;
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
  border-radius: 8px;
  padding: 0.4rem 0.7rem;
  font-weight: 700;
}

.mobile-menu__panel {
  height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.mobile-menu__panel a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 700;
  transition: color 180ms ease;
}

.mobile-menu__panel a:hover {
  color: #0c772b;
}

.cookie-learn-more {
  color: #3f2463;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-learn-more:hover {
  color: #2d0f4f;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

h1,
h2 {
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  margin: 0 0 0.8rem;
}

h1 {
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  line-height: 1.2;
}

.hero__content p {
  font-size: 0.95rem;
  margin: 0.5rem 0;
}

main {
  max-width: 1100px;
  margin: 1.1rem auto 2rem;
  padding: 0 1rem;
  width: 100%;
  flex: 1 0 auto;
}

.policy-page {
  max-width: 1100px;
  margin: 1.1rem auto 2rem;
  padding: 0 1rem;
}

.policy-card {
  background: rgba(255, 255, 255, 0.68);
  border: 1.5px solid #3f2463;
  border-radius: 14px;
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  padding: clamp(1rem, 2.5vw, 1.4rem);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.32), 0 10px 24px rgba(0, 0, 0, 0.16);
}

.policy-card h1,
.policy-card h2 {
  color: #2d0f4f;
}

.policy-card h2 {
  margin-top: 1rem;
  font-size: 1.1rem;
}

.policy-card p,
.policy-card li {
  font-size: 0.95rem;
  line-height: 1.45;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.card {
  background: rgba(255, 255, 255, 0.62);
  border: 1.5px solid #3f2463;
  border-radius: 14px;
  backdrop-filter: blur(8px) saturate(125%);
  -webkit-backdrop-filter: blur(8px) saturate(125%);
  padding: 1rem;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.32), 0 10px 24px rgba(0, 0, 0, 0.16);
}

.card--highlight {
  background: linear-gradient(135deg, rgba(237, 247, 242, 0.82), rgba(245, 239, 255, 0.82));
}

.status {
  display: block;
  background: rgba(255, 255, 255, 0.55);
  color: #2d0f4f;
  border: 1px solid #ccbce7;
  border-radius: 10px;
  padding: 0.5rem 0.65rem;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.35;
}

.status-line + .status-line {
  margin-top: 0.25rem;
}

.section {
  margin-top: 1.3rem;
  background: rgba(255, 255, 255, 0.62);
  border: 1.5px solid #3f2463;
  border-radius: 14px;
  backdrop-filter: blur(8px) saturate(125%);
  -webkit-backdrop-filter: blur(8px) saturate(125%);
  padding: 1rem;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.32), 0 10px 24px rgba(0, 0, 0, 0.16);
}

.section--mini {
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

.section__header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}

.calendar-nav {
  display: grid;
  grid-template-columns: 36px minmax(180px, auto) 36px;
  align-items: center;
  gap: 0.35rem;
  margin: 0 auto;
}

.calendar-nav-title {
  text-align: center;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
}

.calendar-nav-btn {
  border: 1px solid #4b2a72;
  background: #e8dbff;
  color: #2d0f4f;
  border-radius: 8px;
  width: 32px;
  height: 30px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.calendar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)) minmax(0, 0.62fr);
  gap: 0.45rem;
}

.calendar__head {
  text-align: center;
  font-weight: 700;
  color: var(--ink-soft);
  font-size: 0.85rem;
  padding-bottom: 0.25rem;
}

.calendar__day {
  min-height: 86px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #d8e2dc;
  border-radius: 10px;
  padding: 0.45rem;
  position: relative;
  overflow: visible;
}

.calendar__day.day-no-school {
  background: #dee1e5;
  border-color: #b7bcc3;
}

.calendar__day.day-summer-break {
  background: #d8dce1;
  border-color: #aeb5be;
}

.calendar__day.day-half-day::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0) 50%,
    rgba(158, 163, 170, 0.34) 50%,
    rgba(158, 163, 170, 0.34) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.calendar__day--empty {
  background: rgba(255, 255, 255, 0.35);
}

.calendar__week-row {
  display: contents;
}

.calendar__weekend-stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 0.34rem;
}

.calendar__weekend-stack .calendar__day {
  min-height: 42px;
  padding: 0.34rem;
}

.calendar__weekend-stack .calendar__day p {
  display: none;
}

.day-outside-month {
  background: #eef0f3;
  border-color: #d2d7de;
}

.day-outside-month .date {
  color: #7a828d;
}

.calendar__day .date {
  font-weight: 700;
  font-size: 0.9rem;
}

.calendar__day p {
  margin: 1.1rem 0 0;
  font-size: 0.75rem;
  line-height: 1.25;
  color: var(--ink-soft);
  position: relative;
  z-index: 2;
}

.calendar__day .summer-break-label {
  margin: 1.1rem 0 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #4b5563;
}

.lunch-chip {
  margin-top: 0;
  border: 1px solid #4b2a72;
  background: #e8dbff;
  color: #2d0f4f;
  border-radius: 999px;
  padding: 0.14rem 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.1;
  display: block;
  width: fit-content;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9;
}

.lunch-chip:focus-visible {
  outline: 2px solid #5e8dff;
  outline-offset: 1px;
}

.lunch-tooltip {
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 26px;
  background: #e8dbff;
  color: #2d0f4f;
  border: 1px solid #4b2a72;
  border-radius: 8px;
  padding: 0.42rem 0.5rem;
  font-size: 0.72rem;
  line-height: 1.25;
  white-space: nowrap;
  max-width: none;
  z-index: 12;
  box-shadow: 0 8px 18px rgba(31, 17, 53, 0.18);
}

/* Keep hover scoped only to the Lunch chip, not the entire day cell. */
.lunch-tooltip.show {
  display: block;
}

.lunch-tooltip-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lunch-tooltip-list li {
  margin: 0;
  padding: 0;
}

.lunch-modal-backdrop {
  position: fixed;
  inset: 0;
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.52);
  z-index: 60;
}

.lunch-modal-backdrop.open {
  display: flex;
}

.lunch-modal {
  width: min(560px, 100%);
  max-height: 75vh;
  overflow: auto;
  background: #fff;
  border-radius: 18px 18px 0 0;
  padding: 0.95rem 0.95rem 1.2rem;
  position: relative;
}

.lunch-modal-close {
  position: absolute;
  right: 10px;
  top: 6px;
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.lunch-modal h3 {
  margin: 0.3rem 0 0.6rem;
}

.lunch-modal ul {
  margin: 0;
  padding-left: 1.1rem;
}

.event-day {
  background: #e8f3ec;
  border-color: #95d5b2;
}

.info-list {
  margin: 0;
  padding-left: 1rem;
}

.school-contact p {
  margin: 0.2rem 0;
  line-height: 1.4;
}

.school-contact__name {
  font-weight: 800;
  color: #2d0f4f;
}

footer {
  margin-top: 2rem;
  padding: 1rem;
  color: #ffffff;
  font-size: 0.95rem;
  text-align: center;
  background: #4b2a72;
  border-top: 1px solid rgba(255, 255, 255, 0.92);
}

footer p {
  margin: 0.2rem 0;
}

footer a {
  color: var(--link);
  font-weight: 700;
  text-decoration: none;
}

footer a:hover {
  color: var(--link-hover);
}

@media (max-width: 1024px) {
  .hero,
  main,
  footer {
    padding-left: 0.8rem;
    padding-right: 0.8rem;
  }

  .brand img {
    width: 170px;
  }

  .brand-title {
    font-size: clamp(1.65rem, 4.4vw, 2.6rem);
  }

  .header-menu {
    margin-top: 10px;
    gap: 0.65rem;
  }
}

@media (max-width: 760px) {
  .hero {
    padding-top: 0.35rem;
    padding-bottom: 0.45rem;
    background: #4b2a72;
  }

  .hero::before {
    inset: 0;
  }

  .hero::after {
    bottom: 0;
  }

  .nav {
    align-items: center;
    justify-content: center;
    width: 100%;
  }

  .brand {
    width: 100%;
    gap: 0;
    align-items: center;
    justify-content: center;
  }

  .brand-logo {
    display: none;
  }

  .brand-text {
    width: 100%;
    align-items: center;
  }

  .title-row {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    width: 100%;
    min-height: 44px;
    align-items: center;
  }

  .brand-title {
    grid-column: 2;
    justify-self: center;
    font-size: clamp(1rem, 5vw, 1.5rem);
    line-height: 1;
    text-align: center;
    transform: none;
  }

  .header-menu {
    display: none;
  }

  .menu-toggle {
    display: block;
    grid-column: 3;
    justify-self: end;
  }

  .lunch-modal-backdrop {
    align-items: center;
    padding: 0.9rem;
  }

  .lunch-modal {
    width: min(560px, 94vw);
    max-height: 82vh;
    border-radius: 18px;
    padding: 1rem 1rem 1.2rem;
  }

  .hero__content {
    width: calc(100% - 1.6rem);
    margin-top: 0.85rem;
    margin-left: auto;
    margin-right: auto;
    border-radius: 12px;
    padding: 0.8rem;
  }

  .hero__content p,
  .hero__content h1,
  .hero__content .eyebrow {
    max-width: 100%;
  }

  h1 {
    font-size: 1.25rem;
  }

  main {
    margin-top: 0.8rem;
    padding-left: 0.8rem;
    padding-right: 0.8rem;
  }

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

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

  .calendar__head {
    display: none;
  }

  .calendar__day {
    min-height: auto;
    padding: 0.6rem;
  }

  .lunch-tooltip {
    display: none !important;
  }

  .calendar__day--empty {
    display: none;
  }
}

@media (max-width: 480px) {
  .brand-title {
    font-size: 0.95rem;
  }

  .section,
  .card {
    border-radius: 12px;
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
