/*
 * The school-website sections added to SNA's landing page. Built only from SNA's tokens (--sna-*) and its
 * section rhythm (.landing-section padding, 76rem container, 1.25rem card radius), so there are no
 * one-off sizes. Every section's background starts where the previous one ends: no white bands between.
 */

/* ── Theme: SNA's palette for the shared widgets (shared/assets/widgets.css) ── */
.landing-page {
  --w-green: var(--sna-green);
  --w-ink: var(--sna-ink);
  --w-line: var(--sna-line);
  --w-muted: var(--sna-muted);
  --w-orange: var(--sna-orange);
  --w-orange-dark: var(--sna-orange-dark);
  --w-orange-soft: var(--sna-orange-soft);
  --w-pink: var(--sna-pink);
  --w-primary: var(--sna-primary);
  --w-primary-dark: var(--sna-primary-dark);
  --w-primary-darker: var(--sna-primary-darker);
  --w-primary-soft: var(--sna-primary-soft);
  --w-yellow: var(--sna-yellow);
}

/* ── Nav: seven links need more room, so the menu button stays until 1180px ── */
@media (min-width: 900px) and (max-width: 1179px) {
  .landing-nav .landing-nav-links {
    display: none;
  }
  .landing-nav .landing-menu-btn {
    display: flex;
  }
  .landing-nav .landing-mobile-menu.is-open {
    display: flex !important;
  }
  .landing-nav .landing-mobile-menu > .landing-btn {
    display: none;
  }
}
@media (min-width: 1180px) {
  .landing-nav .landing-nav-links {
    gap: 1.5rem;
  }
}
.sn-lang {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.75rem;
  border-radius: 0.65rem;
  border: 1px solid var(--sna-line);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--sna-primary-dark);
  background: #fff;
}
.sn-lang:hover {
  background: color-mix(in srgb, var(--sna-primary) 6%, #fff);
}
/* On phones the header keeps only the brand and the menu button; the language switch moves into the menu. */
@media (max-width: 899px) {
  .landing-nav-right > .sn-lang {
    display: none;
  }
}
.landing-mobile-menu > .sn-lang {
  align-self: flex-start;
  margin-top: 0.25rem;
}

/* The CTA sits between Contact (mint) and the footer: same mint, so no white band. */
.landing-cta-wrap {
  max-width: none;
  background: color-mix(in srgb, var(--sna-primary) 6%, #fff);
}
.landing-cta-wrap > * {
  max-width: 76rem;
  margin-left: auto;
  margin-right: auto;
}

/* ── Programs ── */
.sn-program::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--tone, var(--sna-primary));
}
.sn-program .sn-card-icon {
  background: var(--tone-soft);
  color: var(--tone-ink);
}
.sn-program .sn-chip {
  background: var(--tone-soft);
  color: var(--tone-ink);
}
.sn-program:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgb(12 31 61 / 0.12);
}

/* ── A day at school (dark band, like How It Works) ── */
.sn-day-list {
  position: relative;
  max-width: 76rem;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .sn-day-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .sn-day-list {
    grid-template-columns: repeat(3, 1fr);
  }
}
.sn-day-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  border-radius: 1.25rem;
  background: rgb(255 255 255 / 0.06);
  border: 1px solid rgb(255 255 255 / 0.12);
}
.sn-day-time {
  flex-shrink: 0;
  min-width: 3.5rem;
  padding: 0.35rem 0.6rem;
  border-radius: 0.65rem;
  text-align: center;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--sna-primary-darker);
  background: var(--sna-green-soft);
}
.sn-day-item h3 {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.3rem;
}
.sn-day-item p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgb(255 255 255 / 0.72);
}

/* ── Admissions ── */
.sn-admissions {
  max-width: 76rem;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .sn-admissions {
    grid-template-columns: 3fr 2fr;
    gap: 1.5rem;
  }
}
.sn-steps {
  display: grid;
  gap: 1rem;
}
.sn-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem 1.5rem;
  background: #fff;
  border: 1px solid var(--sna-line);
  border-radius: 1.25rem;
}
.sn-step-num {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--sna-primary), var(--sna-primary-dark));
}
.sn-step h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--sna-ink);
  margin-bottom: 0.25rem;
}
.sn-step p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--sna-muted);
}
.sn-side-title {
  font-size: 1rem !important;
}
.sn-admissions-side .sn-checks svg {
  color: var(--sna-orange);
}

/* ── Notices ── */
.sn-notice {
  border-left: 4px solid var(--sna-primary);
}
.sn-notice--event {
  border-left-color: var(--sna-pink);
}
.sn-notice--event .sn-chip--kind {
  background: rgb(237 85 145 / 0.12);
  color: #b8306a;
}
.sn-notice--holiday {
  border-left-color: var(--sna-orange);
}
.sn-notice--holiday .sn-chip--kind {
  background: rgb(245 130 32 / 0.12);
  color: var(--sna-orange-dark);
}
.sn-notice-date {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--sna-muted);
  font-variant-numeric: tabular-nums;
}
.sn-empty {
  max-width: 76rem;
  margin: 0 auto;
  text-align: center;
  color: var(--sna-muted);
}

/* ── Gallery ── */
.sn-gallery {
  max-width: 76rem;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 1024px) {
  .sn-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}
.sn-gallery-tile {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 1.25rem;
  overflow: hidden;
  background: linear-gradient(135deg, var(--tone-soft), #fff);
  border: 1px solid var(--sna-line);
}
.sn-gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sn-gallery-art {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tone);
}
.sn-gallery-art svg {
  width: 30%;
  height: 30%;
  max-width: 4.5rem;
  max-height: 4.5rem;
  transition: transform 0.35s var(--ease-out-expo);
}
.sn-gallery-tile:hover .sn-gallery-art svg {
  transform: scale(1.1) rotate(-4deg);
}
.sn-gallery-caption {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--tone-ink);
  background: rgb(255 255 255 / 0.92);
}

/* ── FAQ ── */
.sn-faq {
  max-width: 48rem;
  margin: 0 auto;
  display: grid;
  gap: 0.75rem;
}
.sn-faq-item {
  background: #fff;
  border: 1px solid var(--sna-line);
  border-radius: 1rem;
}
.sn-faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
  padding: 1rem 1.25rem;
  font-weight: 700;
  color: var(--sna-ink);
}
.sn-faq-item summary::-webkit-details-marker {
  display: none;
}
.sn-faq-item summary svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  color: var(--sna-primary);
  transition: transform 0.2s;
}
.sn-faq-item[open] summary svg {
  transform: rotate(180deg);
}
.sn-faq-item p {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--sna-muted);
}

/* ── Contact and enquiry form ── */
.sn-contact {
  max-width: 76rem;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .sn-contact {
    grid-template-columns: 2fr 3fr;
    gap: 1.5rem;
  }
}
.sn-contact-info {
  display: grid;
  gap: 1rem;
}
.sn-contact-card {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
}
.sn-contact-card h3 {
  margin-bottom: 0.35rem;
}
.sn-contact-card address,
.sn-contact-card a {
  display: block;
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--sna-muted);
}
.sn-contact-card a:hover {
  color: var(--sna-primary-dark);
}
.sn-hours {
  display: grid;
  gap: 0.25rem;
  font-size: 0.9rem;
}
.sn-hours div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.sn-hours dt {
  color: var(--sna-muted);
}
.sn-hours dd {
  font-weight: 700;
  color: var(--sna-ink);
  font-variant-numeric: tabular-nums;
}

.sn-form-card h3 {
  font-size: 1.35rem;
}
.sn-form-lead {
  margin-bottom: 1.25rem;
}

/* Phase 2: the website's own pages (news, events, achievements, team, plain pages). */
.sn-subpage {
  padding-top: 7.5rem;
  min-height: 70vh;
}
.sn-post-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.sn-post-card h3 a {
  color: inherit;
  text-decoration: none;
}
.sn-post-card h3 a:hover {
  text-decoration: underline;
}
.sn-post-media {
  display: block;
  margin: -1.75rem -1.75rem 0;
  border-radius: 1.25rem 1.25rem 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #eef6f3;
}
.sn-post-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sn-article {
  max-width: 46rem;
  margin: 0 auto;
}
.sn-article h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
  margin: 0.25rem 0 0.5rem;
}
.sn-article-date {
  color: #64748b;
  margin: 0 0 1.5rem;
}
.sn-back {
  display: inline-block;
  margin-bottom: 1rem;
  color: color-mix(in srgb, var(--sna-primary) 80%, #000);
  text-decoration: none;
  font-weight: 600;
}
.sn-article-cover {
  width: 100%;
  border-radius: 1rem;
  margin-bottom: 1.5rem;
}
.sn-article-body {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #1f2937;
}
.sn-article-body img {
  max-width: 100%;
  border-radius: 0.75rem;
}
.sn-article-body h2,
.sn-article-body h3 {
  margin: 1.75rem 0 0.5rem;
}
.sn-article-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: 0.75rem;
  margin-top: 2rem;
}
.sn-article-gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0.75rem;
  display: block;
}
.sn-person {
  text-align: center;
}
.sn-person-photo,
.sn-person-initials {
  width: 6rem;
  height: 6rem;
  border-radius: 999px;
  object-fit: cover;
  margin: 0 auto 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e6f4f1;
  color: color-mix(in srgb, var(--sna-primary) 80%, #000);
  font-weight: 700;
  font-size: 1.5rem;
}
.sn-person-role {
  color: color-mix(in srgb, var(--sna-primary) 80%, #000);
  font-weight: 600;
  margin: 0.25rem 0 0.5rem;
}
.sn-person-bio {
  color: #475569;
  font-size: 0.95rem;
}

/* ── Therapy center sections: team (live), fees (live), book an assessment ── */
.sn-person {
  text-align: center;
}
.sn-person-initials {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  border-radius: 999px;
  background: var(--sna-primary-soft);
  color: var(--sna-primary-dark);
  font-weight: 700;
  font-size: 1.25rem;
}
.sn-person-role {
  color: var(--sna-primary-dark);
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}
.sn-price-table {
  max-width: 44rem;
  margin: 0 auto 2rem;
  background: #fff;
  border: 1px solid var(--sna-line);
  border-radius: 1.25rem;
  padding: 1.5rem;
}
.sn-price-table h3 {
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.sn-price-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--sna-line);
}
.sn-price-row:first-child {
  border-top: 0;
}
.sn-price-row dd {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.sn-card .sn-package-price {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--sna-primary-dark);
  font-variant-numeric: tabular-nums;
  margin: 0.25rem 0;
}
.sn-price-note {
  max-width: 44rem;
  margin: 1.5rem auto 0;
  text-align: center;
  color: var(--sna-muted);
  font-size: 0.875rem;
}
.sn-booking .sn-contact-info {
  align-self: center;
}

/* Four steps: one row of four on wide screens (the line under the numbers spans them). */
@media (min-width: 1024px) {
  .landing-timeline:has(> :nth-child(4):last-child) {
    grid-template-columns: repeat(4, 1fr);
  }
  .landing-timeline:has(> :nth-child(4):last-child)::before {
    left: 12.5%;
    right: 12.5%;
  }
}
/* The hero panel when there are no live numbers: what the centre offers. */
.sn-hero-offer {
  position: relative;
  z-index: 1;
  margin-top: 1.5rem;
  background: #fff;
  border-radius: 1.25rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 20px 40px rgb(15 23 42 / 0.18);
  min-width: 16rem;
}
.sn-hero-offer h2 {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--sna-muted);
  margin-bottom: 0.5rem;
}
