/* Beachwood's warm paper, charcoal, and vermilion palette. */
:root {
  --color-page: #f5f0e6;
  --color-section-alt: #eee7db;
  --color-surface: #fffaf1;
  --color-surface-2: #eee7db;
  --color-ink: #181916;
  --color-muted: #55534d;
  --color-line: #d6cdbf;
  --color-brand: #b4191c;
  --color-brand-dark: #151613;
  --color-brand-hover: #d12427;
  --color-accent: #a8171b;
  --color-accent-soft: #ece0d3;
  --color-on-brand: #fff9ef;
  --font-display: "Baskerville", "Palatino Linotype", Georgia, serif;
  --font-body: Georgia, "Times New Roman", serif;
  --font-ui: "Segoe UI", Arial, sans-serif;
  --site-width: 1240px;
  --gutter: clamp(22px, 4.5vw, 72px);
  --section-space: clamp(72px, 8vw, 112px);
  --radius: 0;
  --button-radius: 0;
}

body {
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

::selection {
  color: #fff;
  background: var(--color-accent);
}

:focus-visible {
  outline: 2px solid #cf3a36;
  outline-offset: 4px;
}

html {
  scroll-padding-top: 116px;
}

.section:nth-of-type(even) {
  background: var(--color-page);
}

.section + .section {
  border-top: 0;
}

.hero h1,
.section h1,
.section h2 {
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.06;
}

.section h2 {
  font-size: clamp(38px, 4vw, 58px);
  margin-bottom: 26px;
}

.section p {
  line-height: 1.65;
}

.section p + p {
  margin-top: 20px;
}

.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font: 600 10px/1.4 var(--font-ui);
  letter-spacing: 0.22em;
}

.section .section-eyebrow {
  color: #8b241f;
  margin-bottom: 24px;
}

.section-eyebrow::before {
  content: "";
  width: 48px;
  height: 2px;
  background: var(--color-brand);
}

.faq-list,
.benefit-card,
.reason-card,
.section-media img,
.lead-modal-close {
  border-radius: 0;
}

.faq-list summary {
  font-weight: 600;
}

.legal-document h1,
.legal-document h2,
.lead-modal-panel h2 {
  font-weight: 400;
  letter-spacing: -0.035em;
}

.lead-modal-panel {
  background: var(--color-page);
}

.lead-capture-form {
  font-family: var(--font-ui);
}

/* The homepage header floats over the hero. Interior pages use a solid masthead. */
#site-header {
  position: sticky;
  top: 0;
  z-index: 50;
}

[data-page="home"] #site-header {
  position: fixed;
  inset: 0 0 auto;
}

.site-header {
  position: relative;
  padding-top: 18px;
  padding-bottom: 18px;
  color: #f8f2e8;
  background: var(--color-brand-dark);
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  transition: background 240ms, padding 240ms, box-shadow 240ms;
}

[data-page="home"] .site-header {
  padding-top: 22px;
  padding-bottom: 22px;
  background: transparent;
}

[data-page="home"] .site-header.is-scrolled,
.site-header:has(.nav-open) {
  padding-top: 12px;
  padding-bottom: 12px;
  background: var(--color-brand-dark);
  box-shadow: 0 6px 24px #0002;
}

[data-page="home"] .site-header:has(.nav-open) {
  background: var(--color-brand-dark);
  transition-property: padding, box-shadow;
}

.nav {
  gap: clamp(14px, 2vw, 28px);
}

.brand {
  gap: 16px;
  color: #fff8ed;
}

.brand-emblem {
  display: block;
  width: 70px;
  height: 70px;
  flex-shrink: 0;
  transition: transform 300ms;
}

.brand-wordmark {
  display: grid;
  gap: 6px;
  font: 400 clamp(24px, 2.2vw, 32px)/1 var(--font-display);
  white-space: nowrap;
}

.brand-wordmark small {
  font: 10px/1.2 var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.4em;
}

.nav-links {
  gap: clamp(14px, 1.7vw, 26px);
  flex-wrap: nowrap;
}

.nav-links a,
.nav-dropdown summary {
  position: relative;
  color: #f8f2e8;
  font: 400 15px/1.3 var(--font-body);
  letter-spacing: 0;
  text-transform: none;
}

.nav-links > a::after {
  content: "";
  position: absolute;
  inset: auto 0 4px;
  height: 2px;
  background: #cf302c;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms;
}

.nav-links a:hover,
.nav-dropdown summary:hover,
.nav-dropdown[open] summary {
  color: #fff;
}

.nav-links > a:hover::after,
.nav-links > a:focus-visible::after {
  transform: scaleX(1);
}

.nav-dropdown-menu {
  top: 100%;
  background: var(--color-brand-dark);
  border-color: #ffffff30;
  border-radius: 0;
}

.nav-dropdown-menu a {
  border-radius: 0;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible {
  color: #fff9ef;
  background: #ffffff12;
}

.nav-toggle {
  color: #fff8ed;
  border-color: #fff5;
  border-radius: 0;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  min-height: 52px;
  padding: 20px 28px;
  border: 1px solid transparent;
  box-shadow: none;
  font: 600 11px/1.3 var(--font-ui);
  letter-spacing: 0.14em;
  transition: background 220ms, color 220ms, transform 220ms, box-shadow 220ms;
}

.button::after,
.program-cta::after {
  content: "→";
  font: 400 22px/0.8 Georgia, serif;
  transition: transform 220ms;
}

.nav-action .button {
  min-height: 46px;
  padding: 16px 20px;
  font-size: 10px;
  white-space: nowrap;
}

.nav-action .button::after {
  display: none;
}

.mobile-cta {
  display: none;
}

/* Amber homepage hero and editorial photography. */
.home-hero {
  --hero-overlay: linear-gradient(180deg, #0808069c, transparent 24%),
    linear-gradient(90deg, #080806e0, #08080675 45%, #08080608 82%);
  --hero-image-position: 68% center;
  color: #fff8ed;
  background: #080806;
}

.home-hero.hero-image-ready {
  min-height: 850px;
  display: flex;
  align-items: center;
  padding-top: 158px;
  padding-bottom: 40px;
}

.home-hero .inner {
  padding: 0;
}

.home-hero h1 {
  max-width: 720px;
  margin-bottom: 26px;
  font-size: clamp(54px, 5.3vw, 78px);
  line-height: 0.99;
  text-shadow: 0 2px 24px #0003;
}

.home-hero h1::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin-top: 26px;
  background: #bb2023;
}

.hero-title-phrase {
  white-space: nowrap;
}

.home-hero p:not(.section-eyebrow) {
  max-width: 550px;
  color: #eee7dc;
  font-size: 17px;
  line-height: 1.5;
}

.home-hero h1 + p:not(.section-eyebrow) {
  font-size: 21px;
  line-height: 1.42;
}

.home-hero .text-link {
  color: #fff8ed;
  font-family: var(--font-ui);
}

.home-hero .hero-actions {
  row-gap: 14px;
  margin-top: 26px;
}

.home-hero .hero-actions > * {
  margin-top: 0;
}

.hero-assurances {
  display: flex;
  gap: 0;
  margin: 42px 0 0;
  padding: 0;
  list-style: none;
  color: #f4eee4;
}

.hero-assurances li {
  padding: 0 22px;
  border-right: 1px solid #eee6d76b;
  font-size: 15px;
  line-height: 1.35;
}

.hero-assurances li:first-child {
  padding-left: 0;
}

.hero-assurances li:last-child {
  border: 0;
}

.section.home-intro {
  background-image: radial-gradient(ellipse at bottom right, #cbbba02b, transparent 55%);
}

.about-layout {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(44px, 7vw, 110px);
}

.about-layout .split-copy {
  order: 2;
}

.about-photos {
  position: relative;
  order: 1;
  padding: 0 50px 100px 0;
}

.about-photo-main {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.about-photo-detail {
  position: absolute;
  right: -12px;
  bottom: 0;
  width: 57%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 8px solid var(--color-page);
  box-shadow: 0 12px 40px #1b160b20;
}

.home-bio > .inner > p {
  max-width: 780px;
}

.class-photo-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 28px;
  margin-top: 48px;
}

.class-photo-gallery img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.class-photo-gallery img:nth-child(2) {
  margin-top: 42px;
}

/* Program cards and watermark. */
.section.home-services,
.site-footer {
  position: relative;
  isolation: isolate;
  clip-path: inset(0);
  color: #f9f3e9;
  background: var(--color-brand-dark);
}

.section.home-services {
  background-image: radial-gradient(ellipse at top left, #88816812, transparent 60%);
}

.home-services::before,
.site-footer::before {
  content: "";
  position: fixed;
  top: 50vh;
  right: -9vw;
  z-index: -1;
  width: clamp(380px, 68vw, 920px);
  aspect-ratio: 1;
  background: url("/_assets/media/images/academy-emblem.svg") center / contain no-repeat;
  opacity: 0.1;
  transform: translateY(-50%) rotate(-3deg);
  pointer-events: none;
  animation: watermark-drift 22s ease-in-out infinite alternate;
}

@keyframes watermark-drift {
  from { transform: translateY(calc(-50% - 10px)) rotate(-3deg); }
  to { transform: translateY(calc(-50% + 10px)) rotate(3deg) scale(1.025); }
}

.program-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
}

.program-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0 22px 24px;
  background: #0c0d0b40;
  border: 1px solid #666358;
  transition: transform 300ms, border-color 300ms, background 300ms, box-shadow 300ms;
}

.program-photo,
.nursery-art {
  width: calc(100% + 44px);
  height: auto;
  aspect-ratio: 4 / 3;
  margin: 0 -22px 24px;
}

.program-photo {
  object-fit: cover;
  filter: saturate(0.8);
  transition: filter 350ms;
}

.nursery-art {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(circle at center, #44372c, #27251e 65%);
}

.nursery-art::before {
  content: "";
  width: 42%;
  aspect-ratio: 1;
  background: url("/_assets/media/images/academy-emblem.svg") center / contain no-repeat;
  opacity: 0.65;
}

.program-card h3 {
  min-height: 58px;
  margin: 0 0 12px;
  color: #fff9ef;
  font: 400 27px/1.05 var(--font-display);
  letter-spacing: -0.035em;
}

.home-services .program-card p {
  margin: 0;
  color: #d0ccc2;
  font-size: 16px;
  line-height: 1.6;
}

.home-services .program-card .program-age {
  margin-bottom: 20px;
  color: #cec3b2;
  font: 10px/1.5 var(--font-ui);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.program-age::before {
  content: "";
  display: block;
  width: 34px;
  height: 2px;
  margin-bottom: 14px;
  background: #b82022;
}

.program-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 48px;
  margin-top: auto;
  padding-top: 24px;
  color: #fa9389;
  font: 600 10px/1.4 var(--font-ui);
  letter-spacing: 0.11em;
  text-decoration: none;
  text-transform: uppercase;
}

/* The review rail uses the same review copy as the dedicated page. */
.section.reviews {
  padding-top: 80px;
  padding-bottom: 88px;
  background: #eae1d3;
  text-align: center;
}

.reviews h2,
.reviews .reviews-link,
.reviews .review-position {
  max-width: none;
}

.reviews .reviews-link {
  margin-top: 32px;
}

.review-track {
  display: flex;
  align-items: stretch;
  gap: 24px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 8px 0 14px;
}

.review-track::-webkit-scrollbar {
  display: none;
}

.google-review {
  display: flex;
  flex-direction: column;
  flex: 0 0 calc((100% - 48px) / 3);
  min-width: 0;
  min-height: 310px;
  padding: 26px;
  background: #fffaf2;
  border: 1px solid #d2c6b4;
  scroll-snap-align: start;
  text-align: left;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 45px;
}

.review-author h3 {
  margin: 0;
  color: #292c25;
  font: 500 14px/1.4 var(--font-ui);
  overflow-wrap: anywhere;
}

.review-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  height: 42px;
  border-radius: 50%;
  color: #812c28;
  background: #e9dbcb;
  font: 500 12px/1 var(--font-ui);
}

.review-stars {
  margin: 20px 0 14px;
  color: #aa6511;
  font-size: 19px;
  letter-spacing: 2px;
  line-height: 1;
}

.review-quote {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

.review-quote.is-expanded {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}

.google-review .review-quote p + p {
  margin-top: 14px;
}

.review-expand {
  align-self: flex-start;
  padding: 8px 0;
  margin-top: 6px;
  border: 0;
  background: transparent;
  color: #9e1c1f;
  font: 600 11px/1.5 var(--font-ui);
  cursor: pointer;
}

.review-expand:hover {
  text-decoration: underline;
}

.google-review .review-source {
  margin-top: auto;
  padding-top: 24px;
  color: #777064;
  font: 11px/1.5 var(--font-ui);
}

.review-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}

.review-controls[hidden],
.review-expand[hidden] {
  display: none;
}

.review-arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #bdb09d;
  color: #7f1c1e;
  background: transparent;
  font: 24px/1 var(--font-body);
  cursor: pointer;
}

.review-arrow:hover:not(:disabled) {
  color: #fff9ef;
  background: var(--color-brand);
  border-color: var(--color-brand);
}

.review-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.review-pagination {
  display: flex;
  justify-content: center;
}

.review-dot {
  display: grid;
  place-items: center;
  width: 28px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.review-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border: 1px solid #948573;
  border-radius: 50%;
}

.review-dot[aria-current="true"]::before {
  background: var(--color-brand);
  border-color: var(--color-brand);
  transform: scale(1.25);
}

.reviews .review-position {
  margin-top: 12px;
  color: #6d6357;
  font: 11px/1.5 var(--font-ui);
  letter-spacing: 0.06em;
}

.contact-layout {
  gap: clamp(40px, 6vw, 80px);
}

.contact-card {
  padding: 0;
  border: 0;
  background: transparent;
}

.contact-details {
  gap: 10px;
  font-size: 17px;
}

.contact-details a {
  width: fit-content;
  text-underline-offset: 5px;
}

.location-media {
  gap: 20px;
}

.map-placeholder,
.map-placeholder iframe {
  min-height: 270px;
  border-radius: 0;
}

.map-placeholder {
  filter: saturate(0.55);
}

.site-footer {
  padding-top: 64px;
}

.footer-content {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.6fr) minmax(0, 1fr);
  gap: clamp(34px, 5vw, 60px);
  padding-bottom: 50px;
}

.footer-lockup {
  color: #f5eddf;
}

.footer-lockup strong {
  font-size: 25px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.footer-lockup em {
  color: #c5bbaa;
  font: 9px/1.6 var(--font-ui);
  letter-spacing: 0.15em;
}

.footer-links a,
.footer-legal-links a,
.footer-visit address,
.footer-visit a,
.social-links a {
  color: #bfb8ab;
}

.footer-column h2 {
  margin-bottom: 16px;
  color: #f4eade;
  font: 600 10px/1.4 var(--font-ui);
}

.footer-bottom-wrap {
  border-color: #ffffff20;
}

.footer-bottom {
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: auto;
  padding-top: 22px;
  padding-bottom: 22px;
  color: #b0a898;
  font: 11px/1.6 var(--font-ui);
  letter-spacing: 0.06em;
}

.footer-links a:hover,
.footer-visit a:hover,
.footer-legal-links a:hover,
.social-links a:hover {
  color: #fff9ef;
}

.reveal-pending:not(:focus-within) {
  opacity: 0;
  transform: translateY(24px);
}

.reveal-ready {
  transition: opacity 650ms ease, transform 650ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .button:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px #82131522;
  }

  .button:hover::after,
  .program-cta:hover::after {
    transform: translateX(5px);
  }

  .brand:hover .brand-emblem {
    transform: rotate(-6deg);
  }

  .program-card:hover,
  .program-card:focus-within {
    transform: translateY(-6px);
    border-color: #c64a3e;
    background: #25251e;
    box-shadow: 0 16px 36px #0004;
  }

  .program-card:hover .program-photo {
    filter: saturate(1.1);
  }
}

@media (max-width: 1120px) {
  .program-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .program-card h3 {
    min-height: 0;
  }

  .program-photo,
  .nursery-art {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 1150px) {
  .nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 14px;
  }

  .brand-emblem {
    width: 58px;
    height: 58px;
  }

  .nav-toggle {
    display: grid;
    grid-column: 3;
    grid-row: 1;
  }

  .nav-action {
    grid-column: 2;
    grid-row: 1;
  }

  .nav-links {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    margin: 0;
    padding: 14px 0 4px;
    border-top: 1px solid #ffffff30;
    text-align: left;
  }

  .nav.nav-open .nav-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    justify-items: start;
    gap: 6px 16px;
  }

  .nav-links a,
  .nav-dropdown summary {
    justify-content: flex-start;
  }

  .nav-dropdown {
    display: grid;
    position: static;
    max-width: 100%;
    justify-items: start;
  }

  .nav-dropdown-menu {
    position: static;
    min-width: 0;
    justify-items: stretch;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .nav-dropdown-menu a {
    padding-left: 10px;
    white-space: normal;
    text-align: left;
  }

  .site-header:has(.nav-open) {
    max-height: 100dvh;
    overflow-y: auto;
  }
}

@media (max-width: 1000px) {
  .google-review {
    flex-basis: calc((100% - 24px) / 2);
  }
}

@media (max-width: 900px) {
  .about-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-layout .split-copy {
    order: 0;
  }

  .about-photos {
    max-width: 640px;
    width: 100%;
    margin: 0 auto;
    padding-bottom: 74px;
  }

  .about-photo-main {
    aspect-ratio: 5 / 4;
  }

  .about-photo-detail {
    right: 0;
    width: 44%;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  :root {
    --section-space: 68px;
    --mobile-cta-button-height: 52px;
    --mobile-cta-height: calc(var(--mobile-cta-button-height) + 20px + env(safe-area-inset-bottom, 0px));
  }

  .mobile-cta:not([hidden]) {
    position: fixed;
    inset: auto 0 0;
    display: block;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--color-brand-dark);
    box-shadow: 0 -4px 24px #0002;
  }

  .mobile-cta .button {
    width: 100%;
    min-height: var(--mobile-cta-button-height);
    margin: 0;
    padding: 16px 22px;
  }

  .modal-open .mobile-cta:not([hidden]),
  #site-header:has(.nav-open) .mobile-cta:not([hidden]) {
    display: none;
  }

  html:has(.mobile-cta:not([hidden])) {
    scroll-padding-bottom: var(--mobile-cta-height);
  }

  body:has(.mobile-cta:not([hidden])) {
    padding-bottom: var(--mobile-cta-height);
  }

  body {
    font-size: 17px;
  }

  .site-header,
  [data-page="home"] .site-header {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .brand {
    gap: 9px;
  }

  .brand-emblem {
    width: 46px;
    height: 46px;
  }

  .brand .brand-wordmark,
  .brand .brand-wordmark > span {
    display: grid;
    overflow: visible;
    white-space: normal;
  }

  .brand-wordmark {
    gap: 5px;
    font-size: 20px;
  }

  .brand-wordmark small {
    font-size: 8px;
    letter-spacing: 0.2em;
  }

  .nav {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .nav-toggle {
    grid-column: 2;
  }

  .nav-action {
    display: none;
  }

  .nav.nav-open .nav-action {
    display: block;
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .nav.nav-open .nav-action .button {
    width: 100%;
  }

  .nav.nav-open .nav-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-hero.hero-image-ready {
    --hero-image-position: 72% center;
    --hero-overlay: linear-gradient(90deg, #080806e8, #08080683),
      linear-gradient(0deg, #080806b3, transparent 70%);
    min-height: 0;
    padding-top: 132px;
    padding-bottom: 40px;
  }

  .home-hero h1 {
    font-size: clamp(35px, 10.5vw, 63px);
    line-height: 1.02;
  }

  .home-hero h1 + p:not(.section-eyebrow) {
    font-size: 18px;
  }

  .home-hero p:not(.section-eyebrow) {
    font-size: 16px;
  }

  .hero-assurances {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 36px;
  }

  .hero-assurances li {
    padding: 0 9px;
    font-size: 12px;
    text-align: center;
  }

  .button {
    padding: 18px 22px;
  }

  .section h2 {
    font-size: 38px;
  }

  .about-photos {
    padding-right: 30px;
    padding-bottom: 60px;
  }

  .about-photo-main {
    aspect-ratio: 1;
  }

  .about-photo-detail {
    width: 50%;
    border-width: 5px;
  }

  .program-list,
  .footer-content,
  .footer-bottom {
    grid-template-columns: 1fr;
  }

  .program-photo,
  .nursery-art {
    aspect-ratio: 16 / 10;
  }

  .class-photo-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .class-photo-gallery img:first-child {
    grid-column: 1 / -1;
    aspect-ratio: 5 / 4;
    object-position: center 35%;
  }

  .class-photo-gallery img:nth-child(2) {
    margin-top: 0;
  }

  .section.reviews {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .google-review {
    flex-basis: 100%;
    padding: 24px;
  }

  .review-controls {
    gap: 8px;
  }

  .review-dot {
    width: 24px;
  }

  .footer-brand {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .home-services::before,
  .site-footer::before {
    animation: none;
  }

  .reveal-pending:not(:focus-within) {
    opacity: 1;
    transform: none;
  }

  .reveal-ready {
    transition: none;
  }

  .site-header,
  .brand-emblem,
  .nav-toggle span,
  .program-card,
  .program-photo,
  .button,
  .button::after,
  .program-cta::after,
  .nav-links > a::after {
    transition: none;
  }
}
