/* ===========================================================================
   Trussville Kids Camp: stylesheet
   Authored from brand/tokens.json. Mobile first.
   =========================================================================== */

/* ---- Self-hosted fonts (variable woff2, latin subset) -------------------- */
/* Fredoka covers weights 500 and 600; Nunito Sans covers 400 and 700.
   Each is a single variable file, so one @font-face per family with a range. */
@font-face {
  font-family: "Fredoka";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/fredoka-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("fonts/nunito-sans-latin.woff2") format("woff2");
}

/* ---- Tokens -------------------------------------------------------------- */
:root {
  --bus-yellow: #ffc72c;
  --bus-yellow-deep: #f2b300;
  --navy: #1b2a4a;
  --navy-soft: #4a5670;
  --go-green: #23824f;
  --go-green-deep: #1c6b41;
  --cream: #fff8e8;
  --white: #ffffff;
  --cream-line: #eadfc4;
  --error: #b3261e;

  --font-display: "Fredoka", "Nunito Sans", system-ui, sans-serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 72px;
  --content-width: 1120px;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-pill: 999px;

  --shadow-card: 0 1px 2px #1b2a4a14, 0 6px 16px #1b2a4a14;
  --shadow-lift: 0 2px 4px #1b2a4a1a, 0 10px 24px #1b2a4a1f;
}

/* ---- Reset / base -------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 27px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--navy);
  margin: 0;
}
p {
  margin: 0;
}
a {
  color: var(--navy);
}
img,
svg {
  display: block;
  max-width: 100%;
}
.icon {
  display: inline-block;
  vertical-align: middle;
}

/* ---- Focus ring (keyboard) ---------------------------------------------- */
:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---- Skip link ----------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--cream);
  padding: var(--space-3) var(--space-4);
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 100;
  font-weight: 700;
}
.skip-link:focus {
  left: 0;
}

/* ---- Layout -------------------------------------------------------------- */
.wrap {
  max-width: var(--content-width);
  margin: 0 auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
  width: 100%;
}
.section {
  padding-top: var(--space-7);
  padding-bottom: var(--space-7);
}
.band-cream {
  background: var(--cream);
}
.band-white {
  background: var(--white);
}
.section__heading {
  font-weight: 600;
  font-size: 28px;
  line-height: 34px;
  margin-bottom: var(--space-6);
}
.section__heading--center {
  text-align: center;
}

/* ---- Type helpers -------------------------------------------------------- */
.lead {
  font-size: 18px;
  line-height: 28px;
}
.muted {
  color: var(--navy-soft);
}
.small {
  font-size: 14px;
  line-height: 21px;
}

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
  line-height: 20px;
  text-decoration: none;
  border-radius: var(--radius-pill);
  padding: 15px 28px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}
.btn--block {
  display: flex;
  width: 100%;
}
.btn--yellow {
  background: var(--bus-yellow);
  color: var(--navy);
}
.btn--yellow:hover {
  background: var(--bus-yellow-deep);
}
.btn--green {
  background: var(--go-green);
  color: var(--white);
}
.btn--green:hover {
  background: var(--go-green-deep);
}
.btn--outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn--outline:hover {
  background: var(--navy);
  color: var(--cream);
}

/* ---- Badge --------------------------------------------------------------- */
.badge {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  line-height: 18px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
}
.badge--yellow {
  background: var(--bus-yellow);
  color: var(--navy);
}

/* ---- Card ---------------------------------------------------------------- */
.card {
  background: var(--white);
  border: 1px solid var(--cream-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: var(--space-5);
}
.card h3 {
  font-weight: 500;
  font-size: 22px;
  line-height: 28px;
  margin-bottom: var(--space-2);
}

/* ---- Wordmark ------------------------------------------------------------ */
.wordmark {
  display: inline-block;
  text-decoration: none;
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1;
}
.wordmark__sup {
  display: block;
  font-size: 12px;
  margin-bottom: 2px;
}
.wordmark__main {
  display: block;
  font-size: 24px;
}
.wordmark__pill {
  display: inline-block;
  background: var(--bus-yellow);
  color: var(--navy);
  padding: 1px 8px 3px;
  border-radius: var(--radius-pill);
  margin-right: 3px;
}

/* ---- Header -------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--cream-line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-5);
  padding-top: 12px;
  padding-bottom: 12px;
  flex-wrap: wrap;
}
.site-nav {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}
.site-nav__link {
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
}
.site-nav__link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.site-header__cta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.site-header__phone {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
}
.site-header__phone:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.site-header__phone-text {
  display: none;
}

/* ---- Mobile menu (hamburger) --------------------------------------------- */
.site-header__ask {
  display: none; /* shown on desktop */
}
.menu {
  position: relative;
}
.menu__toggle {
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--navy);
  border-radius: var(--radius-pill);
  color: var(--navy);
  background: transparent;
  cursor: pointer;
}
.menu__toggle::-webkit-details-marker {
  display: none;
}
.menu__icon {
  display: inline-flex;
}
.menu__icon--close {
  display: none;
}
.menu[open] .menu__icon--open {
  display: none;
}
.menu[open] .menu__icon--close {
  display: inline-flex;
}
.menu__panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--cream-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lift);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  z-index: 60;
}
.menu__link {
  display: block;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
}
.menu__link:hover {
  background: var(--cream);
}
.menu__panel .btn {
  margin-top: var(--space-2);
}

/* ---- Hero ---------------------------------------------------------------- */
.hero__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-7);
}
.hero__text {
  flex: 1 1 480px;
  min-width: 0;
}
.hero__media {
  flex: 1 1 360px;
  min-width: 0;
}
.hero h1 {
  font-weight: 600;
  font-size: 38px;
  line-height: 42px;
  margin: var(--space-4) 0;
}
.hero__lead {
  font-size: 18px;
  line-height: 28px;
  margin-bottom: var(--space-6);
  max-width: 540px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}
.hero__note {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
}
.hero__art {
  border-radius: var(--radius-md);
  width: 100%;
  height: auto;
}

/* ---- Feature grid -------------------------------------------------------- */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
.feature {
  display: flex;
  gap: var(--space-4);
}
.feature__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bus-yellow);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature h3 {
  font-weight: 500;
  font-size: 20px;
  line-height: 26px;
  margin-bottom: 2px;
}

/* ---- Programs ------------------------------------------------------------ */
.programs {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
.card__link {
  display: inline-block;
  margin-top: var(--space-4);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.card p + p {
  margin-top: var(--space-3);
}

/* ---- Schedule ------------------------------------------------------------ */
.schedule__grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-7);
}
.schedule__intro {
  flex: 1 1 320px;
  min-width: 0;
}
.schedule__intro h2 {
  font-weight: 600;
  font-size: 28px;
  line-height: 34px;
  margin-bottom: var(--space-4);
}
.schedule__rows {
  flex: 1 1 460px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.schedule-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 14px 18px;
}
.band-cream .schedule-row {
  background: var(--white);
}
.schedule-row__time {
  flex-shrink: 0;
  width: 84px;
  text-align: center;
  background: var(--bus-yellow);
  color: var(--navy);
  border-radius: var(--radius-pill);
  padding: 6px 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  line-height: 20px;
}

/* ---- Pricing (fallback / off state) -------------------------------------- */
.pricing-fallback {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.pricing-fallback .lead {
  margin-bottom: var(--space-5);
}
.pricing-fallback__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
}
/* On state (only emitted when showPricing is true) */
.pricing-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  max-width: 860px;
  margin: 0 auto;
}
.pricing-cards .price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 36px;
  line-height: 42px;
  margin-bottom: var(--space-2);
}
.pricing-cards .price span {
  font-size: 16px;
  font-weight: 500;
}

/* ---- Summer: photo slot and theme grid ----------------------------------- */
.photo-slot {
  box-sizing: border-box;
  min-height: 320px;
  background: var(--white);
  border: 2px dashed var(--navy-soft);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-6);
  color: var(--navy-soft);
  font-size: 15px;
  line-height: 23px;
}
.center-note {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-6);
}
.themes-off {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.themes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}
.theme-card {
  background: var(--white);
  border: 1px solid var(--cream-line);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}
.theme-card__icon {
  color: var(--navy);
  margin: var(--space-3) 0 var(--space-1);
}
.theme-card__name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  line-height: 26px;
}

/* ---- FAQ ----------------------------------------------------------------- */
.faq {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.faq details {
  border-bottom: 1px solid var(--cream-line);
  padding: 16px 0;
}
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  line-height: 24px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary .faq__sign {
  flex-shrink: 0;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--navy-soft);
}
.faq details[open] summary .faq__sign {
  transform: rotate(45deg);
}
.faq summary .faq__sign {
  transition: transform 150ms ease;
  display: inline-block;
}
.faq details p {
  margin-top: var(--space-3);
}

/* ---- Contact / form ------------------------------------------------------ */
.contact__grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-7);
}
.contact__info {
  flex: 1 1 320px;
  min-width: 0;
}
.contact__info h2 {
  font-weight: 600;
  font-size: 28px;
  line-height: 34px;
  margin-bottom: var(--space-4);
}
.contact__detail {
  margin-top: var(--space-2);
}
.contact__form-wrap {
  flex: 1 1 440px;
  min-width: 0;
}
.form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.field {
  display: flex;
  flex-direction: column;
}
.field label {
  font-weight: 700;
  font-size: 14px;
  line-height: 18px;
  margin-bottom: var(--space-2);
}
.field input,
.field select {
  width: 100%;
  font-family: inherit;
  font-size: 17px;
  line-height: 27px;
  color: var(--navy);
  background: var(--white);
  border: 1.5px solid var(--navy-soft);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}
.field__hint {
  margin-top: var(--space-2);
  font-size: 14px;
  line-height: 21px;
  color: var(--navy-soft);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
.form__privacy {
  font-size: 14px;
  line-height: 21px;
  color: var(--navy-soft);
  margin-top: var(--space-3);
}
.form__status {
  margin-top: var(--space-3);
  font-size: 15px;
  line-height: 23px;
}
.form__status:empty {
  display: none;
}
.form__status--ok {
  color: var(--go-green-deep);
  font-weight: 700;
}
.form__status--error {
  color: var(--error);
  font-weight: 700;
}
.form__status--info {
  color: var(--navy-soft);
  font-weight: 700;
}
.field--choice {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.field--choice legend {
  font-weight: 700;
  font-size: 14px;
  line-height: 18px;
  margin-bottom: var(--space-2);
  padding: 0;
}
.choice-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
}
.choice {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 17px;
  cursor: pointer;
}
.choice input {
  width: 18px;
  height: 18px;
  accent-color: var(--navy);
}

/* ---- Footer -------------------------------------------------------------- */
.site-footer {
  background: var(--navy);
  color: var(--cream);
}
.site-footer a {
  color: var(--cream);
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  padding-top: var(--space-7);
  padding-bottom: var(--space-5);
  justify-content: space-between;
}
.site-footer .wordmark,
.site-footer__brand .wordmark__sup,
.site-footer__brand .wordmark__main {
  color: var(--cream);
}
.site-footer__legal {
  margin-top: var(--space-4);
  font-size: 14px;
  line-height: 21px;
  color: var(--cream);
}
.site-footer__contact {
  font-size: 16px;
  line-height: 26px;
}
.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-weight: 700;
}
.site-footer__base {
  padding-bottom: var(--space-6);
}
.site-footer__base p {
  font-size: 14px;
  line-height: 21px;
  border-top: 1px solid #ffffff22;
  padding-top: var(--space-5);
  margin: 0;
}

/* ---- Policy / document pages --------------------------------------------- */
.doc {
  max-width: 760px;
  margin: 0 auto;
}
.doc h1 {
  font-weight: 600;
  font-size: 32px;
  line-height: 38px;
  margin-bottom: var(--space-4);
}
.doc h2 {
  font-weight: 600;
  font-size: 22px;
  line-height: 28px;
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}
.doc p,
.doc li {
  margin-bottom: var(--space-3);
}
.doc ul {
  padding-left: var(--space-5);
}
.doc__note {
  background: var(--white);
  border: 1px solid var(--cream-line);
  border-left: 4px solid var(--bus-yellow);
  border-radius: var(--radius-sm);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-6);
  font-size: 15px;
  line-height: 23px;
}

/* ===========================================================================
   Desktop (>= 640px and up)
   =========================================================================== */
@media (min-width: 640px) {
  body {
    font-size: 17px;
  }
  .section__heading {
    font-size: 32px;
    line-height: 38px;
  }
  .hero h1 {
    font-size: 56px;
    line-height: 60px;
  }
  .hero__lead {
    font-size: 19px;
    line-height: 30px;
  }
  .lead {
    font-size: 19px;
    line-height: 30px;
  }
  .schedule__intro h2,
  .contact__info h2 {
    font-size: 32px;
    line-height: 38px;
  }
  .features {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: var(--space-6);
  }
  .feature {
    flex-direction: column;
    gap: var(--space-4);
  }
  .feature__icon {
    width: 56px;
    height: 56px;
  }
  .feature h3 {
    font-size: 22px;
    line-height: 28px;
  }
  .programs {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-5);
  }
  .pricing-cards {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
  .faq {
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 0 var(--space-7);
  }
  .field-row {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
  .card {
    padding: var(--space-6);
  }
  .schedule-row__time {
    width: 92px;
    font-size: 18px;
    line-height: 22px;
  }
}

@media (min-width: 880px) {
  .themes {
    grid-template-columns: repeat(5, 1fr);
  }
  .section {
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
  }
  .wrap {
    padding-left: var(--space-5);
    padding-right: var(--space-5);
  }
  .site-nav {
    display: flex;
    order: 2;
  }
  .menu {
    display: none;
  }
  .site-header__ask {
    display: inline-flex;
  }
  .site-header__phone-text {
    display: inline;
  }
  .site-header__cta {
    order: 3;
  }
  .site-header .wordmark {
    order: 1;
  }
  .wordmark__sup {
    font-size: 15px;
    margin-bottom: 3px;
  }
  .wordmark__main {
    font-size: 30px;
  }
  .wordmark__pill {
    padding: 2px 10px 4px;
    margin-right: 4px;
  }
}
