/* Final accessibility, navigation, and interaction safeguards. */
html {
  scroll-padding-top: 112px;
  overflow-x: clip;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 241, 223, .94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 26px rgba(23, 58, 43, .07);
}

@media (min-width: 851px) {
  .topbar {
    justify-content: flex-start;
  }

  .topbar nav {
    margin-left: clamp(28px, 3.5vw, 54px);
  }

  .topbar > .button,
  .topbar > .topbar-actions {
    margin-left: auto;
  }
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #d77c53;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 18px;
  top: 12px;
  z-index: 1000;
  padding: 12px 18px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .18);
  transform: translateY(-160%);
  transition: transform .2s;
}

.skip-link:focus {
  transform: translateY(0);
}

.mobile-nav {
  display: none;
}

.contact-dialog {
  width: min(430px, calc(100vw - 32px));
  max-width: none;
  margin: auto;
  padding: 38px;
  border: 0;
  border-radius: 28px;
  background: #f6f1df;
  color: var(--ink);
  box-shadow: 0 28px 90px rgba(18, 35, 30, .32);
}

.contact-dialog::backdrop {
  background: rgba(12, 29, 23, .62);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.contact-dialog .eyebrow {
  margin-bottom: 14px;
}

.contact-dialog h2 {
  margin: 0 36px 18px 0;
  font: 600 clamp(25px, 7vw, 34px)/1.12 Unbounded, sans-serif;
  letter-spacing: -.04em;
}

.contact-dialog > p:not(.eyebrow) {
  margin: 0 0 26px;
  line-height: 1.6;
}

.contact-dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, .7);
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.contact-dialog-call {
  width: 100%;
  gap: 5px;
  flex-direction: column;
  text-align: center;
}

.contact-dialog-call span {
  white-space: nowrap;
  font-size: 17px;
}

/* A clear but calm response for every interactive element. */
a[href],
button,
input[type="submit"] {
  transition: color .22s ease, background-color .22s ease, border-color .22s ease,
    box-shadow .22s ease, opacity .22s ease, transform .22s ease;
}

.brand:hover {
  color: var(--green);
  transform: translateY(-1px);
}

.topbar nav a:hover,
.mobile-nav a:hover,
.text-link:hover,
.format-card > a:hover,
.call-link:hover,
footer a:hover {
  opacity: 1;
}

.topbar nav a:hover,
.text-link:hover,
.format-card > a:hover,
footer a:hover {
  color: #d16343;
}

.text-link:hover span,
.format-card > a:hover span,
.resource-card[href]:hover .resource-arrow,
.social-link:hover .social-arrow {
  display: inline-block;
  transform: translateX(4px);
}

.button:hover,
button:not(:disabled):hover,
.route-options a:hover,
.review-options > a:hover,
.social-link:hover,
.call-link:hover {
  box-shadow: 0 10px 24px rgba(23, 58, 43, .16);
}

.button:active,
button:not(:disabled):active,
.mobile-nav a:active,
.route-options a:active,
.review-options > a:active,
.social-link:active,
.call-link:active {
  transform: translateY(1px) scale(.98);
}

/* Primary contact choices: a warm phone action above and a vivid online action below. */
.button-call {
  border: 1px solid rgba(117, 44, 26, .12);
  background: linear-gradient(135deg, #ff7b52 0%, #e95f3c 100%);
  color: #fff;
  box-shadow: 0 8px 22px rgba(210, 79, 46, .24);
  white-space: nowrap;
}

.button-call:hover {
  background: linear-gradient(135deg, #f26b45 0%, #cc4f31 100%);
  box-shadow: 0 11px 28px rgba(190, 67, 38, .3);
}

.desktop-online-cta {
  gap: 9px;
  border: 1px solid rgba(23, 77, 58, .16);
  background: linear-gradient(135deg, #285b43 0%, #174d3a 100%);
  color: #fff;
  box-shadow: 0 8px 22px rgba(23, 77, 58, .22);
  white-space: nowrap;
}

.desktop-online-cta span {
  font-size: 17px;
  line-height: 1;
  transition: transform .22s ease;
}

.desktop-online-cta:hover {
  background: linear-gradient(135deg, #347154 0%, #1d5b43 100%);
  box-shadow: 0 11px 28px rgba(23, 77, 58, .3);
}

.desktop-online-cta:hover span {
  transform: translateY(3px);
}

.parent-max-note {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  margin: 28px 0 0;
  padding: 18px 20px;
  border: 1px solid rgba(23, 77, 58, .14);
  border-radius: 18px;
  background: linear-gradient(135deg, #edf3d7 0%, #f8f2df 100%);
  box-shadow: 0 12px 28px rgba(23, 58, 43, .08);
}

.parent-max-note > span {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font: 700 12px/1 Unbounded, sans-serif;
  letter-spacing: .04em;
}

.program-copy .parent-max-note p {
  max-width: none;
  margin: 0;
  color: #28483a;
  font-size: 15px;
  line-height: 1.6;
}

.parent-max-note strong {
  color: #173a2b;
}

/* Round emblem beside the wordmark in the main header. */
.topbar .brand-mark {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  display: block;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 4px 9px rgba(23, 58, 43, .14));
}

/* Keep the two route actions visually separate even with stale cached styles. */
.resource-route .route-options {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 9px !important;
  width: 100%;
  margin-top: auto;
}

.resource-route .route-options > a {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 44px;
  padding: 11px 14px;
  border: 1px solid rgba(36, 76, 57, .22);
  border-radius: 12px;
  background: rgba(255, 255, 255, .58);
  white-space: nowrap;
}

/* Review labels use the existing route-label interaction contract verbatim. */
.resource-reviews .review-options > a {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid rgba(36, 76, 57, .22);
  border-radius: 12px;
  background: rgba(255, 255, 255, .58);
}

/* Keep the nine-photo July story on complete desktop rows. */
.shift-story-gallery .shift-story-gallery-portrait {
  grid-row: span 1;
}

@media (max-width: 850px) {
  html {
    scroll-padding-top: 138px;
  }

  .topbar .brand-mark {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
  }

  .desktop-online-cta {
    display: none;
  }

  .topbar-actions .button-call {
    padding-inline: 15px;
    font-size: 12px;
  }

  .mobile-nav {
    display: flex;
    position: relative;
    top: auto;
    z-index: 90;
    margin-top: -1px;
    gap: 8px;
    padding: 10px 18px 12px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    border-bottom: 1px solid var(--line);
    background: rgba(246, 241, 223, .95);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    scrollbar-width: none;
  }

  .mobile-nav::-webkit-scrollbar {
    display: none;
  }

  .mobile-nav a {
    flex: none;
    min-height: 42px;
    padding: 11px 15px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .45);
    font-size: 13px;
    font-weight: 700;
  }

  .mobile-nav a:hover {
    border-color: rgba(23, 77, 58, .42);
    background: #fff;
    color: var(--green);
    box-shadow: 0 8px 20px rgba(23, 58, 43, .1);
    transform: translateY(-1px);
  }

  .mobile-call {
    border: 1px solid rgba(23, 77, 58, .2);
    background: linear-gradient(135deg, #dafa56 0%, #c4e34c 100%);
    color: #173a2b;
    font-family: Manrope, Arial, sans-serif;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .01em;
    box-shadow: 0 10px 28px rgba(23, 58, 43, .24);
  }

  .mobile-call:hover {
    background: linear-gradient(135deg, #e4fa77 0%, #d1ec62 100%);
    box-shadow: 0 12px 32px rgba(23, 58, 43, .29);
    transform: translateY(-1px);
  }

  .mobile-call.is-form-visible {
    opacity: 0;
    pointer-events: none;
    transform: translateY(24px);
  }

  .parent-max-note {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 13px;
    padding: 16px;
  }

  .parent-max-note > span {
    width: 46px;
    height: 46px;
    font-size: 10px;
  }

  .contact-dialog {
    padding: 34px 24px 26px;
    border-radius: 24px;
  }
}

.hero-assurance {
  display: grid;
  gap: 7px;
  max-width: 670px;
  margin-top: 24px;
  padding: 16px 18px;
  border: 1px solid rgba(23, 58, 43, .16);
  border-radius: 16px;
  background: rgba(255, 255, 255, .46);
  color: #285b43;
}

.hero-assurance p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  text-wrap: pretty;
}

.hero-assurance strong {
  color: #173a2b;
}

.hero-availability {
  width: fit-content;
  max-width: min(100%, calc(100vw - 48px));
  white-space: normal;
  overflow-wrap: anywhere;
  box-sizing: border-box;
  margin: 14px 0 0;
  padding: 9px 13px;
  border-radius: 999px;
  background: #285b43;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.hero-availability + .hero-actions {
  margin-top: 22px;
}

.sticker b {
  font: inherit;
}

.sticker[data-live-remaining="urgent"] {
  padding: 12px;
  font-size: 13px;
  line-height: 1.15;
}

.ticker {
  background: #d77c53;
  color: #10261d;
  border-block: 1px solid rgba(23, 58, 43, 0.2);
  font-family: Manrope, Arial, sans-serif;
  font-weight: 800;
  letter-spacing: .065em;
}

.ticker + .cta {
  margin-top: 24px;
}

@media (max-width: 850px) {
  .hero-visual .sticker[data-live-remaining="urgent"] {
    padding: 8px;
    font-size: 10px;
    line-height: 1.12;
  }
}

@media (max-width: 560px) {
  .ticker + .cta {
    margin-top: 16px;
  }

  .hero-assurance {
    margin-top: 22px;
    padding: 14px 15px;
  }

  .hero-assurance p {
    font-size: 12px;
  }

  .quick-facts {
    margin-top: 28px;
  }

  .hero-visual {
    min-height: 250px;
    margin-top: 22px;
  }

  .hero-visual img {
    width: min(68%, 230px);
    max-height: 250px;
  }

  .hero-visual .sun {
    width: 220px;
    height: 220px;
  }
}

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

  .skip-link {
    transition: none;
  }

  a[href],
  button,
  input[type="submit"] {
    transition: none;
  }
}

/*
 * Keep the four highlighted resource panels visually stable:
 * the outer shell owns the hit-area, while only the inner panel moves.
 */
.resource-reviews-shell {
  grid-column: 1 / -1;
  order: -1;
  min-height: 0;
}

.resource-route-shell > .resource-route,
.resource-reviews-shell > .resource-reviews,
.resource-video-shell > .resource-video,
.resource-social-shell > .resource-social {
  height: 100%;
  transform: none;
  transition: transform .2s ease;
}

.resource-route-shell:hover > .resource-route,
.resource-route-shell:active > .resource-route,
.resource-route-shell:focus-within > .resource-route,
.resource-reviews-shell:hover > .resource-reviews,
.resource-reviews-shell:active > .resource-reviews,
.resource-reviews-shell:focus-within > .resource-reviews,
.resource-video-shell:hover > .resource-video,
.resource-video-shell:active > .resource-video,
.resource-video-shell:focus-within > .resource-video,
.resource-social-shell:hover > .resource-social,
.resource-social-shell:active > .resource-social,
.resource-social-shell:focus-within > .resource-social {
  transform: translateY(-5px);
  border-color: rgba(40, 91, 67, .22);
  box-shadow: 0 10px 26px rgba(40, 91, 67, .09);
  opacity: 1;
  filter: none;
}

.resource-route-shell:hover > .resource-route,
.resource-route-shell:active > .resource-route,
.resource-route-shell:focus-within > .resource-route {
  background: linear-gradient(145deg, #dcebad, #bfd789);
  color: #244c39;
}

.resource-reviews-shell:hover > .resource-reviews,
.resource-reviews-shell:active > .resource-reviews,
.resource-reviews-shell:focus-within > .resource-reviews {
  background: linear-gradient(145deg, #f5ddb9, #edcda2);
  color: #244c39;
}

.resource-video-shell:hover > .resource-video,
.resource-video-shell:active > .resource-video,
.resource-video-shell:focus-within > .resource-video {
  background: linear-gradient(145deg, #3b7259, #285b43);
  color: #fff;
}

.resource-social-shell:hover > .resource-social,
.resource-social-shell:active > .resource-social,
.resource-social-shell:focus-within > .resource-social {
  background: linear-gradient(145deg, #ecc09c, #dda57c);
  color: #244c39;
}

.resource-route-shell .route-options > a:hover,
.resource-route-shell .route-options > a:active,
.resource-route-shell .route-options > a:focus,
.resource-route-shell .route-options > a:focus-visible,
.resource-reviews-shell .review-options > a:hover,
.resource-reviews-shell .review-options > a:active,
.resource-reviews-shell .review-options > a:focus,
.resource-reviews-shell .review-options > a:focus-visible {
  background: rgba(255, 255, 255, .58);
  color: #244c39;
  border-color: rgba(36, 76, 57, .22);
  box-shadow: none;
  opacity: 1;
  filter: none;
  transform: none;
}

.resource-social-shell .social-link:hover,
.resource-social-shell .social-link:active,
.resource-social-shell .social-link:focus,
.resource-social-shell .social-link:focus-visible {
  background: rgba(255, 255, 255, .72);
  color: #244c39;
  border-color: rgba(40, 91, 67, .12);
  box-shadow: none;
  opacity: 1;
  filter: none;
  transform: none;
}

.resource-social-shell .social-link:hover .social-arrow,
.resource-social-shell .social-link:active .social-arrow,
.resource-social-shell .social-link:focus .social-arrow,
.resource-social-shell .social-link:focus-visible .social-arrow {
  transform: none;
}

@media (max-width: 1180px) {
  .resource-social-shell {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .resource-social-shell {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .resource-route-shell > .resource-route,
  .resource-reviews-shell > .resource-reviews,
  .resource-video-shell > .resource-video,
  .resource-social-shell > .resource-social {
    transition: none;
  }

  .resource-route-shell:hover > .resource-route,
  .resource-route-shell:active > .resource-route,
  .resource-route-shell:focus-within > .resource-route,
  .resource-reviews-shell:hover > .resource-reviews,
  .resource-reviews-shell:active > .resource-reviews,
  .resource-reviews-shell:focus-within > .resource-reviews,
  .resource-video-shell:hover > .resource-video,
  .resource-video-shell:active > .resource-video,
  .resource-video-shell:focus-within > .resource-video,
  .resource-social-shell:hover > .resource-social,
  .resource-social-shell:active > .resource-social,
  .resource-social-shell:focus-within > .resource-social {
    transform: none;
  }
}
