:root,
#contato-saude {
  --unit: 173 54 106;
  --unit-hover: 145 39 86;
  --unit-soft: 245 233 238;
  --unit-edge: 173 54 106;
}
:root[data-unit="aprendizagem"],
#contato-aprendizagem {
  --unit: 46 161 99;
  --unit-hover: 26 127 72;
  --unit-soft: 235 247 239;
  --unit-edge: 46 161 99;
}
:root[data-unit="infantil"],
#contato-infantil {
  --unit: 49 93 112;
  --unit-hover: 26 78 100;
  --unit-soft: 221 235 240;
  --unit-edge: 130 172 188;
}
.brand-name {
  font-family: "Gabriela", Georgia, serif;
  font-weight: 400;
}
.brand-name > span { font-family: Arial, Helvetica, sans-serif; }

/* A floating navigation bar with room around it, including while scrolling. */
.site-header {
  position: sticky;
  top: 16px;
  z-index: 40;
  width: calc(100% - 48px);
  max-width: 1280px;
  margin: 16px auto 0;
  border: 1px solid rgb(var(--unit) / .12);
  border-radius: 28px;
  background: rgb(252 250 250 / .94);
  box-shadow: 0 12px 36px rgb(43 40 48 / .08), 0 2px 6px rgb(43 40 48 / .03);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.site-header > .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 20px;
}
.site-header .header-brand { flex-shrink: 0; }
.site-header .header-contact { flex-shrink: 0; }
.site-header > .mobile-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  left: 0;
  border: 1px solid transparent;
  border-radius: 24px;
  background: #fcfafa;
  background: linear-gradient(125deg, rgb(var(--unit-soft) / .65), rgb(252 250 250 / .98)), #fcfafa;
  box-shadow: 0 16px 36px rgb(43 40 48 / .1);
}
.site-header > .mobile-menu-panel.is-open {
  max-height: min(31rem, calc(100dvh - 120px));
  overflow-y: auto;
  overscroll-behavior: contain;
  border-color: rgb(var(--unit) / .12);
}
@media (max-width: 639px) {
  .site-header {
    top: 12px;
    width: calc(100% - 24px);
    margin-top: 12px;
    border-radius: 24px;
  }
  .site-header > .header-inner { gap: 8px; padding: 10px 12px; }
  .site-header .header-brand { gap: 8px; }
  .site-header .header-brand img { width: 40px; height: 40px; }
  .site-header .brand-name { font-size: clamp(15px, 4.5vw, 19px); }
  .site-header .menu-toggle { width: 42px; height: 42px; }
}
.faq-item summary { list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible {
  outline: 2px solid rgb(var(--unit));
  outline-offset: 6px;
  border-radius: 2px;
}
.faq-item[open] summary { color: rgb(var(--unit)); }
.faq-item[open] summary i { transform: rotate(45deg); }
body *, body *::before, body *::after {
  transition-property: color, background-color, border-color, outline-color, box-shadow;
  transition-duration: 500ms;
  transition-timing-function: cubic-bezier(.22, 1, .36, 1);
}
/* #area-brand { background-color: rgb(var(--unit-soft)); } */
#area-title { color: rgb(var(--unit)); }
:root { --unit-index: 0; }
:root[data-unit="aprendizagem"] { --unit-index: 1; }
:root[data-unit="infantil"] { --unit-index: 2; }

/* One persistent indicator travels between units instead of separate underlines. */
.unit-navigation,
.unit-tabs { position: relative; }
.unit-navigation::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 1;
  background-color: rgb(var(--unit));
  transition: transform 650ms cubic-bezier(.22, 1, .36, 1), background-color 650ms ease;
}
#unit-tab-indicator {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  left: 0;
  bottom: -1px;
  width: calc(100% / 3);
  height: 3px;
  background-color: rgb(var(--unit));
  transform: translateX(0%);
  transition: transform 650ms cubic-bezier(.22, 1, .36, 1), background-color 650ms ease;
}
.unit-tabs [data-area] { border-bottom-color: transparent; }
.unit-navigation::after {
  left: 0;
  top: 0;
  width: 3px;
  height: calc(100% / 3);
  transform: translateY(calc(var(--unit-index) * 100%));
}
@media (min-width: 640px) {
  .unit-navigation::after {
    top: auto;
    bottom: -1px;
    width: calc(100% / 3);
    height: 3px;
    transform: translateX(calc(var(--unit-index) * 100%));
  }
}
nav [data-area-link] {
  position: relative;
  transition: background-color 600ms ease, color 600ms ease;
}
nav [data-area-link][aria-current="true"] {
  color: rgb(var(--unit));
  background-color: rgb(var(--unit-soft) / .65);
}
header a[href="#inicio"] img,
footer a[href="#inicio"] img { object-fit: contain; flex-shrink: 0; }
.brand-logo-frame {
  position: relative;
  display: grid;
  flex-shrink: 0;
  overflow: hidden;
  isolation: isolate;
}
.brand-logo-frame > img { grid-area: 1 / 1; }
.brand-logo-frame > .brand-logo-outgoing {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
[id^="contato-"] { border-top-color: rgb(var(--unit-edge)); }
[id^="contato-"] h3 { color: rgb(var(--unit)); }
/* @media (prefers-reduced-motion: reduce) {
  body *, body *::before, body *::after {
    transition-duration: 0s !important;
    animation: none !important;
  }
  // Keep the explicitly requested tab-position feedback when motion is reduced. 
  #unit-tab-indicator {
    transition-duration: 650ms, 0s !important;
  }
} */

/* Explicit, gentle motion for the requested interactions. */
.faq-item summary i {
  transition: transform 420ms cubic-bezier(.22, 1, .36, 1) !important;
}
.faq-item[data-expanded="false"] summary i { transform: rotate(0); }
.faq-item[data-expanded="true"] summary i { transform: rotate(45deg); }
.method-steps > li > span { position: relative; isolation: isolate; }
.method-steps > li > span::before {
  content: "";
  position: absolute;
  inset: -3px;
  z-index: -1;
  border-radius: inherit;
  background: rgb(var(--unit) / .18);
  pointer-events: none;
  animation: method-pulse 3.6s ease-in-out infinite !important;
}
.method-steps > li:nth-child(2) > span::before { animation-delay: .3s !important; }
.method-steps > li:nth-child(3) > span::before { animation-delay: .6s !important; }
.method-steps > li:nth-child(4) > span::before { animation-delay: .9s !important; }
@keyframes method-pulse {
  0%, 100% { transform: scale(1); opacity: .35; }
  50% { transform: scale(1.25); opacity: .35; }
}
@media print {
  .method-steps > li > span::before { animation: none !important; }
}

.spaces-gallery { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 255px; gap: 20px; }
.space-photo { position: relative; overflow: hidden; border-radius: 12px; background: rgb(var(--unit-soft)); }
.space-photo-main { grid-column: span 2; grid-row: span 2; border-radius: 120px 12px 12px 12px; }
.space-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms cubic-bezier(.22,1,.36,1); }
.space-photo:hover img { transform: scale(1.035); }
.space-photo figcaption { position: absolute; inset: 35% 0 0; display: flex; flex-direction: column; justify-content: end; padding: 28px; color: white; background: linear-gradient(transparent, rgb(20 25 23 / .8)); }
.space-label { font-size: 10px; text-transform: uppercase; letter-spacing: 2px; }
.space-caption { margin-top: 10px; font-size: 20px; line-height: 1.4; }
.review-note { position: relative; margin-top: 16px; box-shadow: 0 10px 30px rgb(var(--unit) / .06); }
.review-note::before { content: ''; position: absolute; top: -13px; left: calc(50% - 38px); width: 76px; height: 28px; background: rgb(var(--unit) / .17); border-left: 2px dotted rgb(255 255 255 / .65); border-right: 2px dotted rgb(255 255 255 / .65); transform: rotate(-7deg); }
.review-note:nth-child(2)::before { transform: rotate(5deg); }
.review-note:nth-child(3)::before { transform: rotate(-3deg); }
.review-note figcaption { display: flex; align-items: center; gap: 10px; }
.review-initial { display: grid; place-items: center; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: rgb(var(--unit-soft)); color: rgb(var(--unit)); font-size: 13px; font-weight: 600; }
@media (max-width: 767px) {
  .spaces-gallery { grid-template-columns: 1fr; grid-template-rows: 380px; grid-auto-rows: 260px; gap: 16px; }
  .space-photo-main { grid-column: auto; grid-row: auto; border-top-left-radius: 80px; }
  .space-photo figcaption { padding: 22px; }
}

/* A narrow highlight sweeps across the colored hero lettering. */
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  #inicio .hero-gloss {
    width: fit-content;
    max-width: 100%;
    padding-right: .12em;
    background-color: rgb(var(--unit));
    background-image: linear-gradient(110deg, transparent 48%, rgb(255 255 255 / .18) 49.2%, rgb(255 255 255 / .86) 50%, rgb(255 255 255 / .18) 50.8%, transparent 52%);
    background-size: 280% 100%;
    background-repeat: no-repeat;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  #inicio .hero-gloss.is-glossing {
    animation: hero-gloss-sweep 2.8s ease-in-out 1 both !important;
  }
}
@keyframes hero-gloss-sweep {
  0%, 5% { background-position: 100% 0; }
  100% { background-position: 0% 0; }
}
@media print, (forced-colors: active) {
  #inicio .hero-gloss {
    background: none;
    -webkit-text-fill-color: currentColor;
    animation: none !important;
  }
}

/* A softly expanding, unit-colored mobile navigation. */
.menu-toggle {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgb(var(--unit) / .28);
  border-radius: 14px;
  color: rgb(var(--unit));
  background: rgb(var(--unit-soft) / .72);
  box-shadow: 0 3px 10px rgb(var(--unit) / .06), inset 0 1px rgb(255 255 255 / .8);
  transition: transform 350ms cubic-bezier(.22, 1, .36, 1), color 350ms ease,
    background-color 350ms ease, border-color 350ms ease, box-shadow 350ms ease;
  -webkit-tap-highlight-color: transparent;
}
.menu-toggle:hover { transform: translateY(-1px); }
.menu-toggle:active { transform: scale(.96); }
.menu-toggle:focus-visible {
  outline: 2px solid rgb(var(--unit));
  outline-offset: 3px;
}
.menu-toggle[aria-expanded="true"] {
  color: white;
  background: rgb(var(--unit));
  border-color: rgb(var(--unit));
  box-shadow: 0 7px 18px rgb(var(--unit) / .2), inset 0 1px rgb(255 255 255 / .2);
}
.menu-toggle-icon {
  position: relative;
  display: block;
  width: 20px;
  height: 16px;
}
.menu-toggle-icon > span {
  position: absolute;
  left: 0;
  width: 20px;
  height: 1.7px;
  border-radius: 2px;
  background: currentColor;
  transition: top 420ms cubic-bezier(.22, 1, .36, 1),
    width 320ms ease, opacity 220ms ease,
    transform 420ms cubic-bezier(.22, 1, .36, 1);
}
.menu-toggle-icon > span:nth-child(1) { top: 1px; }
.menu-toggle-icon > span:nth-child(2) { top: 7px; width: 15px; }
.menu-toggle-icon > span:nth-child(3) { top: 13px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-icon > span:nth-child(1) {
  top: 7px;
  transform: rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-toggle-icon > span:nth-child(2) {
  width: 0;
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] .menu-toggle-icon > span:nth-child(3) {
  top: 7px;
  transform: rotate(-45deg);
}
.mobile-menu-panel {
  max-height: 0;
  overflow: hidden;
  padding-right: 1.5rem;
  padding-left: 1.5rem;
  padding-top: 0;
  padding-bottom: 0;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  border-top-color: transparent;
  background: linear-gradient(125deg, rgb(var(--unit-soft) / .7), rgb(255 255 255 / .96));
  box-shadow: 0 12px 24px rgb(var(--unit) / .04);
  transition: max-height 560ms cubic-bezier(.22, 1, .36, 1),
    padding 480ms cubic-bezier(.22, 1, .36, 1), opacity 280ms ease,
    border-color 400ms ease, visibility 0s linear 560ms;
}
.mobile-menu-panel.is-open {
  max-height: 31rem;
  padding-top: 10px;
  padding-bottom: 18px;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  border-top-color: rgb(var(--unit) / .12);
  transition-delay: 0s;
}
.mobile-menu-panel a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding-top: 11px;
  padding-bottom: 11px;
  border-bottom: 1px solid rgb(var(--unit) / .09);
  color: #2b2830;
  opacity: 0;
  transform: translateY(-7px);
  transition: opacity 300ms ease, transform 420ms cubic-bezier(.22, 1, .36, 1),
    color 300ms ease, background-color 300ms ease;
}
.mobile-menu-panel a::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  border-radius: 50%;
  background: rgb(var(--unit));
  transform: scale(.4);
  transition: transform 380ms cubic-bezier(.22, 1, .36, 1),
    box-shadow 380ms ease;
}
.mobile-menu-panel a:last-child { border-bottom: 0; }
.mobile-menu-panel a:hover {
  color: rgb(var(--unit));
  background: rgb(var(--unit) / .035);
}
.mobile-menu-panel a:hover::before,
.mobile-menu-panel.is-open a::before {
  transform: scale(1);
  box-shadow: 0 0 0 4px rgb(var(--unit) / .1);
}
.mobile-menu-panel.is-open a {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 80ms;
}
.mobile-menu-panel.is-open a:nth-child(2) { transition-delay: 125ms; }
.mobile-menu-panel.is-open a:nth-child(3) { transition-delay: 170ms; }
.mobile-menu-panel.is-open a:nth-child(4) { transition-delay: 215ms; }
.mobile-menu-panel.is-open a:nth-child(5) { transition-delay: 260ms; }
.mobile-menu-panel.is-open a:nth-child(6) { transition-delay: 305ms; }
.mobile-menu-panel.is-open a:nth-child(7) { transition-delay: 350ms; }
@media (min-width: 1280px) {
  .menu-toggle, .mobile-menu-panel { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .menu-toggle, .menu-toggle *, .mobile-menu-panel, .mobile-menu-panel a,
  .mobile-menu-panel a::before {
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }
}
.hero-contact-link .contact-arrow-icon {
  transform: rotate(-45deg);
  transition: transform 260ms cubic-bezier(.22, 1, .36, 1);
}
.hero-contact-link:hover .contact-arrow-icon {
  transform: translate(2px, -2px) rotate(-45deg);
}
