:root {
  --green: #168e24;
  --green-dark: #0b2412;
  --yellow: #ffbd05;
  --blue: #159bf4;
  --content-width: 990px;
  --body-font: "Poppins", "Trebuchet MS", Arial, sans-serif;
  --display-font: "Barlow Condensed", Impact, "Arial Narrow", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: #0b140e;
  background: #fff;
  font-family: var(--body-font);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
:focus-visible { outline: 3px solid #167ce3; outline-offset: 4px; }
section[id], article[id] { scroll-margin-top: 22px; }

.skip-link {
  position: absolute;
  z-index: 30;
  top: -60px;
  left: 16px;
  padding: 10px 14px;
  background: #fff;
  border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.hero {
  position: relative;
  min-height: 590px;
  background: url("../assets/images/hero-scene.png") center 68% / cover no-repeat;
  isolation: isolate;
}
.site-header {
  position: absolute;
  z-index: 10;
  top: 12px;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--content-width), calc(100% - 48px));
  height: 77px;
  padding: 0 42px 0 16px;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 25px;
  box-shadow: 0 5px 18px rgba(7, 45, 14, .15);
}
.brand { display: flex; align-items: center; flex: none; overflow: hidden; }
.brand--header { align-self: center; width: 145px; height: 77px; margin-top: 0; }
.brand--header img { width: auto; max-width: none; height: 72px; }
.primary-navigation { display: flex; align-items: center; gap: 33px; margin-left: 30px; }
.nav-link { position: relative; white-space: nowrap; font-size: 13px; font-weight: 600; transition: color .2s ease; }
.nav-link:hover, .nav-link.is-active { color: var(--green); }
.nav-link.is-active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 2px;
  background: var(--green);
}
.header-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 129px;
  height: 33px;
  margin-left: 22px;
  padding: 0 10px;
  color: #fff;
  background: linear-gradient(#229930, #087c18);
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 75, 12, .18);
  white-space: nowrap;
  font-size: 11px;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease;
}
.header-contact img { width: 21px; height: 21px; }
.header-contact:hover { transform: translateY(-2px); box-shadow: 0 5px 10px rgba(0, 75, 12, .25); }
.menu-toggle { display: none; }

.hero__inner { width: min(var(--content-width), calc(100% - 48px)); margin: 0 auto; }
.hero__copy { width: 425px; padding-top: 153px; padding-left: 31px; }
.hero h1 { margin: 0; font-family: var(--display-font); font-weight: 900; text-transform: uppercase; letter-spacing: .1px; }
.hero h1 span { display: block; width: max-content; max-width: 100%; paint-order: stroke fill; }
.hero__eyebrow { color: #0b2412; font-size: 40px; line-height: .96; -webkit-text-stroke: 2px #fff; text-shadow: 0 3px 1px rgba(0, 0, 0, .14); transform: scaleX(1.18); transform-origin: left center; }
.hero__yellow { color: #ffb900; font-size: 62px; line-height: .97; -webkit-text-stroke: 3px #fff; text-shadow: 0 4px 2px rgba(0, 0, 0, .14); transform: scaleX(1.21); transform-origin: left center; }
.hero__green { color: #269430; font-size: 70px; line-height: .94; -webkit-text-stroke: 3px #fff; text-shadow: 0 4px 2px rgba(0, 0, 0, .18); transform: scaleX(1.33); transform-origin: left center; }
.hero__copy p { max-width: 335px; margin: 17px 0 17px 3px; padding: 9px 12px; color: #102016; background: rgba(255, 255, 255, .88); border: 1px solid rgba(255, 255, 255, .96); border-radius: 12px; box-shadow: 0 4px 12px rgba(7, 45, 14, .14); font-size: 14px; line-height: 1.55; font-weight: 500; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 13px; font-weight: 700; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; }
.button:hover { transform: translateY(-3px); box-shadow: 0 7px 15px rgba(55, 65, 0, .22); }
.button--yellow { color: #08190e; background: var(--yellow); border-radius: 17px; box-shadow: 0 3px 8px rgba(125, 94, 0, .2); }
.hero__button { min-width: 262px; min-height: 46px; padding: 7px 17px; font-size: 14px; }
.hero__button img { width: 28px; height: 28px; filter: brightness(0); }
.hero__city-logo { width: 160px; max-width: none; height: auto; margin: -5px 0 0 65px; }

.main-content {
  position: relative;
  z-index: 1;
  margin-top: -1px;
  padding-top: 8px;
  background: #fff;
  border-radius: 19px 19px 0 0;
}
.content-wrap { width: min(var(--content-width), calc(100% - 48px)); margin-right: auto; margin-left: auto; }
.section-title {
  position: relative;
  width: max-content;
  margin: 0 auto 4px;
  color: #071e0e;
  font-family: var(--display-font);
  font-size: 36px;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
}
.section-title::before, .section-title::after {
  content: "";
  position: absolute;
  top: 18px;
  width: 23px;
  height: 18px;
  border-top: 5px solid var(--yellow);
  transform: rotate(34deg);
  border-radius: 3px;
}
.section-title::before { left: -46px; }
.section-title::after { right: -46px; transform: rotate(-34deg); }
.about-card {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr) 305px;
  gap: 20px;
  align-items: center;
  min-height: 197px;
  padding: 6px 7px 6px 28px;
  background: #fff;
  border: 1px solid #f4f4f4;
  border-radius: 22px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .1);
}
.about-card__icon { align-self: start; width: 92px; height: 92px; margin-top: 26px; }
.about-card__copy { font-size: 11.5px; line-height: 1.75; font-weight: 500; }
.about-card__copy p { margin: 0; }
.about-card__copy .about-card__emphasis { margin-top: 18px; color: #078a1b; font-size: 12.4px; font-weight: 700; }
.about-card__photo { width: 305px; height: 180px; object-fit: cover; border-radius: 23px; }

.details { display: grid; grid-template-columns: 1fr 1fr 1.1fr; gap: 20px; margin-top: 15px; }
.detail-card { position: relative; min-width: 0; height: 302px; padding: 13px 16px 17px; overflow: hidden; border-radius: 18px; box-shadow: 0 4px 11px rgba(0, 0, 0, .06); transition: transform .2s ease, box-shadow .2s ease; }
.detail-card:hover { transform: translateY(-4px); box-shadow: 0 9px 17px rgba(0, 0, 0, .11); }
.detail-card--classes { background: #edf7ff; }
.detail-card--hours { background: #f3f8f0; }
.detail-card--location { background: #fff8e9; }
.detail-card__heading { display: flex; align-items: center; gap: 6px; min-height: 33px; }
.detail-card__heading img { width: 40px; height: 40px; flex: none; }
.detail-card__heading h2, .contact-heading h2 { margin: 0; color: #07190c; font-family: var(--display-font); font-size: 18px; font-weight: 900; line-height: 1.05; text-transform: uppercase; }
.classes-intro { margin: 4px 0 11px 2px; font-size: 10.8px; line-height: 1.4; white-space: nowrap; }
.class-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.class-row { display: flex; align-items: center; gap: 10px; min-height: 61px; padding: 5px 10px; background: #fff; border-radius: 12px; box-shadow: 0 3px 7px rgba(0, 0, 0, .06); }
.class-row img { width: 48px; height: 48px; flex: none; }
.class-row strong, .class-row small { display: block; }
.class-row strong { font-size: 12.5px; font-weight: 700; }
.class-row small { margin-top: 2px; font-size: 11px; }
.class-dots { display: flex; justify-content: center; gap: 9px; margin-top: 6px; }
.class-dots span { width: 11px; height: 11px; border-radius: 50%; background: #129afb; }
.class-dots span:nth-child(2) { background: #58b728; }
.class-dots span:nth-child(3) { background: #ffb400; }
.detail-card--hours .detail-card__heading { gap: 5px; }
.detail-card--hours .detail-card__heading h2 { font-size: 18px; white-space: nowrap; }
.hours-description { margin: 13px 0 14px 44px; font-size: 11.8px; line-height: 1.5; }
.hours-badge { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 8px; width: 202px; height: 59px; margin-left: auto; margin-right: auto; background: #fff; border-radius: 12px; box-shadow: 0 4px 9px rgba(0, 0, 0, .1); }
.hours-badge img { width: 33px; height: 33px; }
.hours-badge strong { font-family: var(--display-font); font-size: 31px; font-weight: 900; white-space: nowrap; }
.hours-school { position: absolute; right: 0; bottom: 0; left: 0; width: 100%; height: 115px; object-fit: cover; object-position: center bottom; }
.detail-card--location .detail-card__heading { gap: 8px; }
.address { display: flex; align-items: flex-start; gap: 10px; margin: 22px 0 16px; }
.address img { width: 31px; height: 31px; flex: none; }
.address address { font-size: 11.5px; line-height: 1.55; font-style: normal; }
.location-map { display: block; width: 100%; height: 134px; overflow: hidden; border-radius: 12px; box-shadow: 0 3px 7px rgba(0, 0, 0, .1); }
.location-map img { width: 100%; height: 100%; object-fit: cover; }
.location-map:hover img { transform: scale(1.035); }
.location-map img { transition: transform .25s ease; }

.contact { margin-top: 16px; }
.contact-card { position: relative; height: 152px; background: #fff; border: 1px solid #f5f5f5; border-radius: 19px; box-shadow: 0 3px 10px rgba(0, 0, 0, .08); }
.contact-card__phone { position: absolute; top: 28px; left: 29px; z-index: 2; }
.contact-heading { display: flex; align-items: center; gap: 8px; }
.contact-heading img { width: 34px; height: 34px; }
.contact-heading h2 { font-size: 19px; }
.phone-number { display: flex; align-items: center; gap: 8px; width: max-content; margin-top: 17px; color: #0b2513; font-family: var(--display-font); font-size: 26px; font-weight: 900; white-space: nowrap; }
.phone-number img { width: 34px; height: 34px; object-fit: contain; }
.phone-number:hover, .instagram-handle:hover { color: var(--green); }
.contact-card__children { position: absolute; z-index: 2; bottom: -2px; left: 28.3%; width: 280px; max-width: none; height: auto; }
.contact-card__social { position: absolute; z-index: 3; top: 19px; left: 57.4%; }
.contact-card__social h3 { margin: 0 0 13px; font-family: var(--display-font); font-size: 16px; font-weight: 900; text-transform: uppercase; white-space: nowrap; }
.instagram-handle { display: flex; align-items: center; gap: 8px; width: max-content; font-size: 12px; font-weight: 700; white-space: nowrap; }
.instagram-handle img { width: 35px; height: 35px; }
.instagram-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 184px; height: 35px; margin-top: 10px; padding: 0 11px; color: #088d21; border: 1px solid #18a431; border-radius: 10px; font-size: 11px; font-weight: 700; transition: color .2s ease, background-color .2s ease; }
.instagram-button:hover { color: #fff; background: var(--green); }
.contact-card__instagram { position: absolute; z-index: 2; right: 5px; bottom: -39px; width: 190px; max-width: none; height: auto; }

.invitation { position: relative; z-index: 4; display: flex; align-items: center; justify-content: center; gap: 27px; min-height: 53px; max-width: 870px; margin-top: -4px; padding: 6px 24px; color: #fff; background: linear-gradient(#209634, #0b861f); border-radius: 70px 70px 0 0 / 54px 54px 0 0; }
.invitation::before, .invitation::after { content: ""; position: absolute; z-index: -1; bottom: 0; width: 80px; height: 29px; background: #128a25; border-radius: 80px 80px 0 0; }
.invitation::before { left: -37px; }
.invitation::after { right: -37px; }
.invitation p { margin: 0; font-size: 13px; font-weight: 600; line-height: 1.4; }
.invitation__button { min-width: 193px; height: 36px; padding: 0 12px; border-radius: 13px; font-size: 12px; }

.site-footer { position: relative; z-index: 3; min-height: 72px; background: #fff; }
.footer-inner { display: grid; grid-template-columns: 137px 230px 203px 145px; align-items: start; gap: 20px; width: min(800px, calc(100% - 48px)); margin: 0 auto; padding-top: 6px; }
.brand--footer { width: 95px; height: 58px; margin-left: 5px; }
.brand--footer img { width: auto; max-width: none; height: 58px; }
.footer-column { min-height: 53px; padding-left: 20px; border-left: 1px solid #bdbdbd; }
.footer-column h2 { margin: 0 0 1px; font-family: var(--display-font); font-size: 15px; font-weight: 900; line-height: 1; text-transform: uppercase; }
.footer-links { display: grid; grid-template-columns: 92px 95px; column-gap: 7px; }
.footer-column a { display: block; font-size: 9px; line-height: 1.4; }
.footer-column a:hover { color: var(--green); text-decoration: underline; }
.footer-column--contact a { display: flex; align-items: center; gap: 3px; white-space: nowrap; }
.footer-column--contact img { width: 15px; height: 15px; }
.footer-column--city { padding-left: 10px; text-align: right; }
.footer-column--city h2 { white-space: nowrap; text-align: right; }
.footer-column--city img { position: static; display: block; width: min(100%, 120px); max-width: none; height: 56px; margin: 0 0 0 auto; object-fit: contain; }
.copyright { position: relative; margin: -5px 0 0; text-align: center; font-size: 9px; }

@media (max-width: 1000px) {
  .site-header { padding-right: 24px; }
  .primary-navigation { gap: 19px; margin-left: 15px; }
  .header-contact { margin-left: 10px; }
  .about-card { grid-template-columns: 80px minmax(0, 1fr) 30%; gap: 16px; padding-left: 20px; }
  .about-card__icon { width: 80px; height: 80px; }
  .about-card__photo { width: 100%; }
  .detail-card--hours .detail-card__heading h2 { font-size: 16px; }
  .contact-card__social { left: 56%; }
  .contact-card__instagram { right: 9px; width: 145px; }
}

@media (max-width: 800px) {
  .hero { min-height: 690px; background-position: 54% top; }
  .hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(255,255,255,.55), rgba(255,255,255,.12) 66%, transparent); }
  .site-header { top: 12px; width: calc(100% - 32px); height: 72px; padding: 0 18px; border-radius: 22px; }
  .brand--header { width: 119px; height: 72px; margin-top: 0; }
  .brand--header img { width: auto; height: 66px; }
  .menu-toggle { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; order: 3; width: 42px; height: 42px; padding: 0; background: #f0f9ef; border: 0; border-radius: 11px; cursor: pointer; }
  .menu-toggle span { width: 22px; height: 2px; background: var(--green-dark); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }
  .primary-navigation { position: absolute; top: 79px; right: 0; left: 0; display: none; align-items: stretch; gap: 0; margin: 0; padding: 13px; background: #fff; border-radius: 18px; box-shadow: 0 10px 22px rgba(0,0,0,.15); }
  .primary-navigation.is-open { display: flex; flex-direction: column; }
  .nav-link { padding: 12px; font-size: 15px; border-radius: 9px; }
  .nav-link:hover, .nav-link.is-active { background: #eef8ef; }
  .nav-link.is-active::after { display: none; }
  .header-contact { margin: 0 12px 0 auto; }
  .hero__inner { width: calc(100% - 32px); }
  .hero__copy { padding-top: 155px; padding-left: 18px; }
  .main-content { padding-top: 18px; }
  .content-wrap { width: calc(100% - 32px); }
  .about-card { grid-template-columns: 82px 1fr; padding: 18px; }
  .about-card__photo { grid-column: 1 / -1; width: 100%; height: 250px; }
  .details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-card--location { grid-column: 1 / -1; }
  .contact-card { height: 340px; }
  .contact-card__social { top: 93px; left: 29px; }
  .contact-card__children { left: 38%; width: 300px; }
  .contact-card__instagram { right: 10px; width: 150px; }
  .invitation { width: calc(100% - 68px); }
  .footer-inner { grid-template-columns: 95px minmax(0, 1fr) minmax(0, 1fr) 120px; width: calc(100% - 32px); }
  .footer-column--city { grid-column: auto; padding-left: 8px; text-align: right; }
  .footer-column--city h2 { text-align: right; }
  .footer-column--city img { position: static; display: block; width: min(100%, 110px); height: 68px; margin: 0 0 0 auto; object-fit: contain; }
}

@media (max-width: 600px) {
  .hero { min-height: 640px; background-size: auto 100%; background-position: 58% top; }
  .hero::before { background: linear-gradient(90deg, rgba(255,255,255,.75), rgba(255,255,255,.5) 65%, rgba(255,255,255,.08)); }
  .site-header { height: 66px; }
  .brand--header { width: 100px; height: 61px; }
  .brand--header img { width: auto; height: 60px; }
  .header-contact { min-width: 38px; width: 38px; height: 38px; padding: 0; border-radius: 11px; }
  .header-contact span { display: none; }
  .header-contact img { width: 23px; height: 23px; }
  .primary-navigation { top: 73px; }
  .hero__copy { width: min(100%, 430px); padding-top: 145px; padding-left: 5px; }
  .hero__eyebrow { font-size: clamp(29px, 8vw, 40px); }
  .hero__yellow { font-size: clamp(47px, 12vw, 62px); }
  .hero__green { font-size: clamp(54px, 14vw, 70px); }
  .hero__copy p { max-width: 325px; padding: 5px 7px; margin-left: 0; background: rgba(255,255,255,.58); border-radius: 8px; font-size: 13px; }
  .hero__city-logo { width: 150px; margin-left: 35px; }
  .section-title { font-size: 32px; }
  .about-card { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
  .about-card__icon { width: 75px; height: 75px; margin-top: 0; }
  .about-card__copy { font-size: 12px; }
  .about-card__copy .about-card__emphasis { margin-top: 12px; }
  .desktop-break { display: none; }
  .about-card__photo { height: auto; aspect-ratio: 2 / 1; }
  .details { grid-template-columns: 1fr; gap: 15px; }
  .detail-card { height: auto; min-height: 303px; }
  .detail-card--location { grid-column: auto; }
  .detail-card--hours { padding-bottom: 130px; }
  .detail-card--hours .detail-card__heading h2 { font-size: 18px; }
  .class-row { min-height: 60px; }
  .classes-intro { white-space: normal; }
  .contact-card { height: 395px; }
  .contact-card__phone { top: 18px; left: 18px; }
  .contact-heading h2 { font-size: 18px; }
  .phone-number { margin-top: 9px; font-size: 24px; }
  .contact-card__social { top: 112px; left: 18px; }
  .contact-card__social h3 { max-width: calc(100vw - 68px); font-size: 16px; white-space: normal; }
  .instagram-handle { max-width: calc(100vw - 68px); white-space: normal; overflow-wrap: anywhere; }
  .contact-card__children { left: -7px; bottom: 0; width: min(65%, 260px); }
  .contact-card__instagram { right: 5px; bottom: -2px; width: min(39%, 150px); }
  .invitation { flex-direction: column; gap: 8px; width: calc(100% - 50px); min-height: 107px; margin-top: -3px; padding: 18px 16px 13px; border-radius: 45px 45px 0 0; text-align: center; }
  .invitation p { font-size: 12px; }
  .footer-inner { grid-template-columns: 95px 1fr; gap: 15px; padding: 18px 0 8px; }
  .footer-column { min-width: 0; padding-left: 12px; }
  .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 4px; }
  .brand--footer { grid-column: 1; grid-row: 1; width: 100%; margin-left: 0; }
  .brand--footer img { height: 56px; }
  .footer-column--contact { grid-column: 1 / -1; }
  .footer-column--nav { grid-column: 1 / -1; grid-row: 2; }
  .footer-column--contact { grid-row: 3; }
  .footer-column--city { grid-column: 2; grid-row: 1; min-height: 58px; padding-left: 12px; text-align: right; }
  .footer-column--city h2 { text-align: right; }
  .footer-column--city img { position: static; display: block; width: min(100%, 120px); height: 56px; margin: 0 0 0 auto; object-fit: contain; }
  .copyright { margin: 0; padding: 0 16px 14px; }
}

@media (max-width: 360px) {
  .contact-card { height: 425px; }
  .contact-card__social { right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
