:root {
  --cream: #fffdf6;
  --cream-2: #fffaf0;
  --ink: #16475a;
  --muted: #5f7580;
  --teal: #0e8292;
  --teal-dark: #0a6572;
  --yellow: #ffc70f;
  --green: #73b844;
  --green-dark: #4c982d;
  --coral: #ff725c;
  --sky: #8ed7e6;
  --line: rgba(18, 81, 96, 0.14);
  --shadow: 0 22px 60px rgba(31, 86, 98, 0.12);
  --soft-shadow: 0 12px 34px rgba(31, 86, 98, 0.09);
  --radius: 8px;
  --max: 1640px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 6% 13%, rgba(128, 194, 55, 0.11), transparent 22rem),
    radial-gradient(circle at 93% 5%, rgba(255, 199, 15, 0.1), transparent 23rem),
    var(--cream);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}


body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 30;
  display: grid;
  grid-template-columns: 250px 1fr 200px;
  align-items: center;
  gap: 24px;
  width: min(calc(100% - 80px), 1500px);
  min-height: 84px;
  margin: 18px auto 0;
  padding: 10px 14px 10px 28px;
  background: rgba(255, 253, 246, 0.94);
  border: 1px solid rgba(22, 71, 90, 0.11);
  border-radius: 58px;
  box-shadow: 0 20px 55px rgba(84, 97, 73, 0.13);
  backdrop-filter: blur(18px);
}

.brand {
  width: 180px;
}

.brand img {
  width: 100%;
  height: 64px;
  object-fit: contain;
  object-position: left center;
}

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(28px, 3.4vw, 54px);
  color: #596e76;
  font-size: 1.04rem;
  font-weight: 900;
}

.main-nav a {
  position: relative;
  padding: 12px 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 3px;
  background: var(--yellow);
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

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

.main-nav a[aria-current="page"] {
  color: var(--ink);
}

.main-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border: 2px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button svg {
  width: 21px;
  height: 21px;
}

.button--yellow {
  color: #173f2f;
  background: var(--yellow);
  box-shadow: 0 15px 34px rgba(255, 199, 15, 0.25);
}

.button--yellow:hover {
  box-shadow: 0 18px 38px rgba(255, 199, 15, 0.34);
}

.button--outline {
  color: var(--ink);
  background: #fffdfa;
  border-color: rgba(14, 101, 114, 0.58);
}

.button--outline:hover {
  border-color: var(--teal);
  box-shadow: var(--soft-shadow);
}

.header-cta {
  justify-self: end;
  min-width: 180px;
  min-height: 56px;
  padding: 0 26px;
  border-radius: 999px;
}

.nav-toggle {
  display: none;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(460px, 1.05fr) minmax(500px, 1fr);
  width: 100%;
  margin: -110px 0 0;
  min-height: 660px;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  left: -10%;
  top: -8%;
  width: 72%;
  height: 130%;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 199, 15, 0.18), transparent 220px),
    radial-gradient(circle at 80% 88%, rgba(115, 184, 68, 0.18), transparent 240px),
    #ffffff;
  border-radius: 0 56% 50% 0 / 0 46% 46% 0;
  box-shadow: 42px 0 90px rgba(119, 160, 76, 0.14);
}

.hero::after {
  content: none;
}

.hero__copy {
  position: relative;
  z-index: 2;
  align-self: center;
  padding-top: 130px;
  padding-left: clamp(40px, 5vw, 96px);
  padding-right: 24px;
  padding-bottom: 30px;
}


.hero-balloon {
  position: absolute;
  top: 110px;
  left: clamp(360px, 30vw, 480px);
  width: 200px;
  height: 180px;
  color: var(--ink);
  pointer-events: none;
  overflow: visible;
  z-index: 3;
}

.hero-balloon__body {
  fill: var(--coral);
  stroke: var(--ink);
  stroke-width: 2.4;
  stroke-linejoin: round;
}

.hero-balloon__highlight {
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 2.6;
  fill: none;
  stroke-linecap: round;
}

.hero-balloon__tie {
  fill: var(--ink);
  stroke: var(--ink);
  stroke-width: 1.4;
  stroke-linejoin: round;
  opacity: 0.9;
}

.hero-balloon__string {
  stroke: var(--ink);
  stroke-width: 1.7;
  fill: none;
  opacity: 0.82;
  stroke-linecap: round;
}

.hero-balloon__shoe {
  fill: var(--ink);
  stroke: var(--ink);
  stroke-width: 1.4;
  stroke-linejoin: round;
}

.hero-balloon__hair-tuft {
  fill: #4a2424;
  stroke: #4a2424;
  stroke-width: 1.4;
  stroke-linejoin: round;
}

.hero-balloon__brow {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.6;
  stroke-linecap: round;
}

.hero-balloon__head {
  fill: #ffd7a8;
  stroke: var(--ink);
  stroke-width: 2.4;
  stroke-linejoin: round;
}

.hero-balloon__hair {
  fill: #6b3a3a;
  stroke: #4a2424;
  stroke-width: 2.2;
  stroke-linejoin: round;
}

.hero-balloon__blush {
  fill: #f6a59a;
  stroke: none;
  opacity: 0.85;
}

.hero-balloon__eye {
  fill: var(--ink);
  stroke: none;
}

.hero-balloon__mouth {
  stroke: var(--ink);
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
}

.hero-balloon__dress {
  fill: var(--green);
  stroke: var(--ink);
  stroke-width: 2.4;
  stroke-linejoin: round;
}

.hero-balloon__collar {
  fill: var(--ink);
  stroke: none;
}

.hero-balloon__arm,
.hero-balloon__leg {
  fill: none;
  stroke: var(--ink);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-balloon__float {
  transform-origin: 80px 108px;
  animation: balloon-bob 4.6s ease-in-out infinite;
}

@keyframes balloon-bob {
  0%, 100% { transform: rotate(-4deg); }
  50%      { transform: rotate(5deg); }
}

.hero-star {
  position: absolute;
  color: var(--yellow);
  pointer-events: none;
  z-index: 2;
}

.hero-star path {
  fill: var(--yellow);
  stroke: var(--ink);
  stroke-width: 1.4;
  stroke-linejoin: round;
}

.hero-star--a {
  top: 60px;
  right: 200px;
  width: 22px;
  height: 22px;
  transform: rotate(12deg);
}

.hero-star--b {
  bottom: 180px;
  left: clamp(20px, 3vw, 60px);
  width: 16px;
  height: 16px;
  transform: rotate(-18deg);
  opacity: 0.85;
}

.hero-scribble {
  position: absolute;
  bottom: 96px;
  left: clamp(40px, 5vw, 96px);
  width: 120px;
  height: 22px;
  color: var(--coral);
  pointer-events: none;
}

.hero-scribble path {
  stroke: var(--coral);
  stroke-width: 3;
  stroke-linecap: round;
  fill: none;
  opacity: 0.55;
}

.hero-logo {
  display: block;
  width: clamp(180px, 13vw, 240px);
  max-width: 100%;
  height: auto;
  margin: 0 0 22px;
  filter: drop-shadow(0 4px 10px rgba(31, 86, 98, 0.12));
}

.hero h1 {
  max-width: 720px;
  margin: 0 0 20px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 3.4vw, 4.6rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.005em;
}

.hero__copy > p {
  max-width: 560px;
  margin: 0 0 26px;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.5;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 32px;
}

.age-panel {
  display: grid;
  grid-template-columns: auto repeat(4, 1fr);
  align-items: center;
  width: min(100%, 660px);
  min-height: 92px;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 14px 32px rgba(39, 85, 96, 0.1);
  column-gap: 6px;
}

.age-panel__label {
  margin: 0 12px 0 0;
  padding-right: 14px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.15;
  border-right: 1px dashed rgba(22, 71, 90, 0.18);
  white-space: nowrap;
}

.age-panel article {
  padding: 0 2px;
}

.age-panel article + article {
  border-left: 0;
}

.age-panel strong {
  font-size: 0.74rem;
  line-height: 1.15;
  text-align: center;
}

.age-panel article {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 6px;
  min-width: 0;
  padding: 0 12px;
  text-align: center;
}

.age-panel article + article {
  border-left: 1px solid rgba(22, 71, 90, 0.14);
}

.age-panel strong,
.age-panel span:not(.mini-icon) {
  font-size: 0.92rem;
  line-height: 1.12;
}

.age-panel span:not(.mini-icon) {
  color: var(--muted);
}

.mini-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 2px;
  color: #ffffff;
  border-radius: 999px;
}

.mini-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.mini-icon--green {
  background: var(--green);
}

.mini-icon--coral {
  background: var(--coral);
}

.mini-icon--yellow {
  color: #173f2f;
  background: var(--yellow);
}

.mini-icon--teal {
  background: var(--teal);
}

.hero__visual {
  position: relative;
  min-height: 760px;
  overflow: visible;
}

.hero__visual-main {
  width: 108%;
  max-width: none;
  height: 100%;
  min-height: 760px;
  margin-left: -4%;
  object-fit: cover;
  object-position: 55% 48%;
  clip-path: polygon(
    18% 0,
    100% 0,
    100% 100%,
    0 100%,
    4% 86%,
    10% 70%,
    6% 52%,
    12% 34%,
    8% 16%
  );
  box-shadow: 0 26px 60px rgba(31, 86, 98, 0.18);
}

.hero__visual-inset {
  position: absolute;
  right: 4%;
  bottom: 60px;
  width: 420px;
  height: 280px;
  object-fit: cover;
  object-position: 50% 55%;
  border: 10px solid #ffffff;
  border-radius: 22px;
  box-shadow:
    0 28px 50px rgba(31, 86, 98, 0.28),
    0 0 0 2px rgba(18, 81, 96, 0.06);
  transform: rotate(-4deg);
  z-index: 4;
}

.hero-sticker {
  position: absolute;
  top: 200px;
  left: 16%;
  z-index: 5;
  display: grid;
  grid-template-columns: auto auto auto;
  grid-template-rows: auto auto;
  column-gap: 6px;
  align-items: center;
  padding: 12px 18px;
  background: #ffffff;
  border: 2px solid var(--ink);
  border-radius: 18px;
  box-shadow: 0 14px 32px rgba(31, 86, 98, 0.18);
  transform: rotate(-7deg);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  pointer-events: none;
}

.hero-sticker strong {
  grid-row: 1;
  grid-column: 1 / -1;
  color: var(--ink);
  font-size: 1.06rem;
  letter-spacing: 0.02em;
}

.hero-sticker > span:not(.hero-sticker__dot) {
  grid-row: 2;
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-sticker__dot {
  display: none;
}

.hero-sticker::before {
  content: "";
  position: absolute;
  top: -12px;
  right: -12px;
  width: 26px;
  height: 26px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 0 4px 0 rgba(18, 81, 96, 0.08);
}

.hero-confetti {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  z-index: 1;
}

.hero-confetti--a,
.hero-confetti--b,
.hero-confetti--c,
.hero-confetti--d { display: none; }

.hero-squiggle {
  display: none;
  position: absolute;
  top: 12%;
  right: 24px;
  width: 110px;
  height: 38px;
  color: var(--green);
  stroke-width: 3;
  opacity: 0.55;
  z-index: 2;
}

.grass {
  pointer-events: none;
}

.grass--hero {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 70px;
  background: url("assets/doodles/grass-border.svg") left bottom / 370px 70px repeat-x;
  filter: drop-shadow(0 -4px 10px rgba(63, 138, 42, 0.12));
}

.section {
  position: relative;
  width: min(calc(100% - 160px), var(--max));
  margin: 0 auto;
}

.section--programs {
  padding-top: 54px;
}

.section-heading {
  margin-bottom: 34px;
}

.section-heading p {
  margin: 0 0 12px;
  color: var(--teal-dark);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-heading h2 {
  max-width: 510px;
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.15rem, 3vw, 2.9rem);
  font-weight: 800;
  line-height: 1.05;
}

.section-heading > span {
  display: block;
  width: 92px;
  height: 20px;
  margin-top: 16px;
  border-top: 5px solid var(--green);
  border-radius: 50%;
  transform: rotate(-8deg);
}

.section-heading--row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.section-heading--row .button {
  min-height: 58px;
  margin-top: 7px;
}

.news-all-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 7px;
  padding: 14px 16px 14px 14px;
  color: #173f2f;
  background: var(--yellow);
  border-radius: 16px;
  box-shadow: 0 14px 32px rgba(255, 199, 15, 0.42);
  font-weight: 900;
  isolation: isolate;
  transition:
    transform 240ms cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 220ms ease;
}

.news-all-cta::before,
.news-all-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--yellow);
  border-radius: 16px;
  z-index: -1;
  transition: transform 240ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.news-all-cta::before {
  opacity: 0.6;
  transform: translate(-7px, 8px) rotate(-3deg);
}

.news-all-cta::after {
  opacity: 0.35;
  transform: translate(-14px, 14px) rotate(-5.5deg);
}

.news-all-cta:hover,
.news-all-cta:focus-visible {
  transform: translateY(-3px) rotate(0.6deg);
  box-shadow: 0 20px 40px rgba(255, 199, 15, 0.55);
  outline: none;
}

.news-all-cta:hover::before {
  transform: translate(-10px, 11px) rotate(-5deg);
}

.news-all-cta:hover::after {
  transform: translate(-18px, 18px) rotate(-8deg);
}

.news-all-cta__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--yellow);
  background: #173f2f;
  border-radius: 10px;
  flex-shrink: 0;
}

.news-all-cta__icon svg {
  width: 19px;
  height: 19px;
}

.news-all-cta__body {
  display: grid;
  gap: 2px;
  text-align: left;
}

.news-all-cta__label {
  color: #6b5400;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.news-all-cta__title {
  color: #173f2f;
  font-size: 1.02rem;
  line-height: 1.15;
}

.news-all-cta__arrow {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-left: 4px;
  color: #173f2f;
  background: rgba(23, 63, 47, 0.12);
  border-radius: 999px;
  font-size: 1.05rem;
  line-height: 1;
  transition:
    transform 200ms ease,
    background-color 200ms ease,
    color 200ms ease;
}

.news-all-cta:hover .news-all-cta__arrow,
.news-all-cta:focus-visible .news-all-cta__arrow {
  color: var(--yellow);
  background: #173f2f;
  transform: translateX(4px);
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.program-card,
.news-card,
.facility-grid article {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(18, 81, 96, 0.16);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(31, 86, 98, 0.06);
}

.program-card {
  position: relative;
  container-type: inline-size;
}

.program-card img {
  width: 100%;
  aspect-ratio: 1.38 / 1;
  object-fit: cover;
}

.card-icon {
  position: absolute;
  top: calc(100cqi / 1.38 - 27px);
  left: 18px;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: #ffffff;
  border: 5px solid #ffffff;
  border-radius: 999px;
  box-shadow: 0 10px 20px rgba(31, 86, 98, 0.16);
  z-index: 2;
}

.card-icon svg {
  width: 25px;
  height: 25px;
}

.card-icon--coral {
  background: var(--coral);
}

.card-icon--yellow {
  color: #173f2f;
  background: var(--yellow);
}

.card-icon--teal {
  background: var(--teal);
}

.card-icon--green {
  background: var(--green);
}

.program-card div {
  padding: 38px 24px 26px;
}

.program-card h3,
.news-card h3,
.facility-grid h3 {
  margin: 0 0 6px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.48rem;
  font-weight: 800;
  line-height: 1.1;
}

.program-card strong {
  display: block;
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 1rem;
}

.program-card p,
.news-card p,
.facility-grid p,
.contact-panel p {
  color: var(--muted);
}

.program-card p {
  margin: 0;
}

.news-card a {
  color: var(--coral);
  font-weight: 900;
}

.news-card a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  color: var(--ink);
  background: #fffdfa;
  border: 2px solid var(--coral);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.news-card a::after {
  content: "→";
  font-size: 1.05rem;
  line-height: 1;
  transition: transform 180ms ease;
}

.news-card:hover a,
.news-card:focus-visible a,
.news-card a:hover,
.news-card a:focus-visible {
  color: #ffffff;
  background: var(--coral);
  box-shadow: 0 10px 22px rgba(229, 109, 88, 0.28);
  outline: none;
}

.news-card a:hover::after,
.news-card a:focus-visible::after,
.news-card:hover a::after {
  transform: translateX(3px);
}

.anchor-point {
  display: block;
  position: relative;
  top: -120px;
}

.section--news {
  padding-top: 86px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.news-card {
  position: relative;
  container-type: inline-size;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.news-card img {
  width: 100%;
  aspect-ratio: 1.62 / 1;
  object-fit: cover;
}

.news-card:hover,
.news-card:focus-visible {
  border-color: rgba(14, 130, 146, 0.34);
  box-shadow: 0 18px 38px rgba(31, 86, 98, 0.12);
  transform: translateY(-3px);
  outline: none;
}

.date-tag {
  position: absolute;
  left: 0;
  top: calc(100cqw / 1.62 - 36px);
  min-width: 132px;
  padding: 7px 14px;
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
}

.date-tag--coral {
  background: var(--coral);
}

.date-tag--teal {
  background: var(--teal);
}

.date-tag--green {
  background: var(--green);
}

.date-tag--yellow {
  color: #173f2f;
  background: var(--yellow);
}

.news-card div {
  position: relative;
  z-index: 1;
  padding: 34px 24px 27px;
}

.news-card h3 {
  font-size: 1.45rem;
}

.news-card p {
  min-height: 56px;
  margin: 0 0 20px;
}

.flower-doodle {
  position: absolute;
  left: -78px;
  bottom: -36px;
  width: 78px;
  height: auto;
}

.girl-doodle {
  position: absolute;
  right: -80px;
  bottom: -24px;
  width: 96px;
  height: auto;
}

.page-main {
  width: 100%;
  padding-top: 36px;
}

.news-archive {
  padding-top: 22px;
}

.archive-heading {
  align-items: center;
  margin-bottom: 30px;
}

.archive-heading h1,
.article-hero h1 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 800;
  line-height: 1.02;
}

.archive-heading h1 {
  font-size: clamp(2.4rem, 4vw, 3.7rem);
}

.archive-heading__aside {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  max-width: 650px;
}

.archive-heading__aside p {
  max-width: 440px;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.45;
}

.archive-list {
  padding-top: 58px;
  padding-bottom: 76px;
}

.archive-list--first {
  padding-top: 28px;
}

.archive-count {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  color: var(--teal-dark);
  background: #ffffff;
  border: 1px solid rgba(18, 81, 96, 0.13);
  border-radius: 999px;
  font-weight: 900;
  box-shadow: var(--soft-shadow);
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 38px;
}

.pagination__link {
  display: inline-grid;
  place-items: center;
  min-width: 46px;
  min-height: 46px;
  padding: 0 16px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid rgba(18, 81, 96, 0.16);
  border-radius: 8px;
  font-weight: 900;
}

.pagination__link--current {
  color: #173f2f;
  background: var(--yellow);
  border-color: var(--yellow);
}

.pagination__link--disabled {
  color: rgba(22, 71, 90, 0.42);
  background: rgba(255, 255, 255, 0.62);
}

.inscription-page {
  padding-top: 22px;
}

.inscription-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(320px, 0.84fr);
  gap: 32px;
  align-items: start;
  padding-top: 40px;
  padding-bottom: 36px;
}

.inscription-form {
  scroll-margin-top: 130px;
}

.inscription-form .visit-form__head {
  align-items: flex-start;
}

.form-grid--inscription {
  gap: 16px;
}

.inscription-aside {
  position: sticky;
  top: 130px;
  padding: 28px;
  background:
    linear-gradient(150deg, rgba(255, 199, 15, 0.1), rgba(142, 215, 230, 0.13)),
    #ffffff;
  border: 1px solid rgba(18, 81, 96, 0.14);
  border-radius: 16px;
  box-shadow: 0 18px 42px rgba(31, 86, 98, 0.08);
}

.inscription-aside h2,
.inscription-aside h3 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 800;
  line-height: 1.05;
}

.inscription-aside h2 {
  margin-top: 12px;
  font-size: 2rem;
}

.inscription-aside h3 {
  margin-top: 24px;
  font-size: 1.35rem;
}

.inscription-aside p {
  margin: 12px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.inscription-aside a {
  color: var(--teal-dark);
  font-weight: 900;
}

.next-steps {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding-left: 1.2rem;
  color: var(--ink);
  font-weight: 900;
}

.aside-map-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  padding: 14px 22px;
  color: var(--ink);
  background: #fffdfa;
  border: 2px solid var(--teal);
  border-radius: 999px;
  font-weight: 900;
  font-size: 1rem;
  box-shadow: 0 10px 26px rgba(14, 101, 114, 0.14);
  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.aside-map-button__icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #ffffff;
  background: var(--teal);
  border-radius: 999px;
  transition:
    background-color 180ms ease,
    color 180ms ease;
}

.aside-map-button__icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.aside-map-button__arrow {
  margin-left: 2px;
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 180ms ease;
}

.aside-map-button:hover,
.aside-map-button:focus-visible {
  color: #ffffff;
  background: var(--teal);
  box-shadow: 0 14px 32px rgba(14, 101, 114, 0.3);
  transform: translateY(-1px);
  outline: none;
}

.aside-map-button:hover .aside-map-button__icon,
.aside-map-button:focus-visible .aside-map-button__icon {
  color: var(--teal);
  background: #ffffff;
}

.aside-map-button:hover .aside-map-button__arrow,
.aside-map-button:focus-visible .aside-map-button__arrow {
  transform: translateX(3px);
}

.location-section {
  scroll-margin-top: 130px;
}

.location-map {
  position: relative;
  overflow: hidden;
  margin-top: 28px;
  background: #ffffff;
  border: 1px solid rgba(18, 81, 96, 0.16);
  border-radius: 18px;
  box-shadow: 0 14px 32px rgba(31, 86, 98, 0.08);
}

.location-map iframe {
  display: block;
  width: 100%;
  height: clamp(320px, 48vw, 480px);
  border: 0;
}

.location-map__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 10px 16px;
  color: var(--ink);
  background: rgba(255, 253, 246, 0.96);
  border: 2px solid var(--teal);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 900;
  box-shadow: 0 8px 22px rgba(14, 101, 114, 0.18);
  backdrop-filter: blur(4px);
  transition:
    background-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.location-map__link:hover,
.location-map__link:focus-visible {
  color: #ffffff;
  background: var(--teal);
  outline: none;
}

.inscription-aside__image {
  width: 100%;
  height: 210px;
  margin-top: 24px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(31, 86, 98, 0.12);
}

.prep-section {
  padding-top: 34px;
  padding-bottom: 82px;
}

.prep-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.prep-card {
  position: relative;
  min-height: 260px;
  padding: 28px;
  background: #ffffff;
  border: 1px solid rgba(18, 81, 96, 0.16);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(31, 86, 98, 0.06);
}

.prep-card .card-icon {
  position: static;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border: 0;
  transform: none;
}

.prep-card h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.42rem;
  font-weight: 800;
  line-height: 1.08;
}

.prep-card p {
  margin: 0;
  color: var(--muted);
}

.inscription-footer-scene {
  position: relative;
  min-height: 182px;
  overflow: hidden;
}

.inscription-footer-scene .footer-kids {
  bottom: 26px;
}

.inscription-footer-scene .grass--footer {
  bottom: 0;
}

.article-page {
  padding-bottom: 90px;
}

.news-article {
  width: min(calc(100% - 160px), 1120px);
  margin: 38px auto 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
  padding: 12px 22px;
  color: var(--ink);
  background: #fffdfa;
  border: 2px solid var(--teal);
  border-radius: 999px;
  font-weight: 900;
  font-size: 0.98rem;
  box-shadow: 0 8px 22px rgba(14, 101, 114, 0.12);
  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.back-link::before {
  content: "←";
  font-size: 1.15rem;
  line-height: 1;
  transition: transform 180ms ease;
}

.back-link:hover,
.back-link:focus-visible {
  color: #ffffff;
  background: var(--teal);
  box-shadow: 0 12px 28px rgba(14, 101, 114, 0.28);
  transform: translateY(-1px);
  outline: none;
}

.back-link:hover::before,
.back-link:focus-visible::before {
  transform: translateX(-3px);
}

.article-hero {
  display: grid;
  gap: 18px;
  max-width: 880px;
  margin-bottom: 30px;
}

.article-hero h1 {
  font-size: clamp(2.65rem, 5vw, 5rem);
}

.article-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.55;
}

.date-pill {
  justify-self: start;
  padding: 8px 14px;
  color: #ffffff;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.date-pill--coral {
  background: var(--coral);
}

.date-pill--teal {
  background: var(--teal);
}

.date-pill--green {
  background: var(--green);
}

.date-pill--yellow {
  color: #173f2f;
  background: var(--yellow);
}

.article-cover {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(31, 86, 98, 0.14);
}

.article-body {
  max-width: 780px;
  margin: 34px auto 0;
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1.75;
}

.article-body p {
  margin: 0 0 20px;
}

.article-gallery {
  margin-top: 58px;
}

.article-gallery--slider {
  position: relative;
  padding: 0;
}

.gallery-slider__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.gallery-slider__head h2 {
  margin: 0;
  color: var(--teal-dark);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery-controls {
  display: flex;
  gap: 8px;
}

.gallery-controls button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid rgba(18, 81, 96, 0.16);
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}

.gallery-controls button:hover {
  background: #fff8df;
  border-color: rgba(255, 199, 15, 0.7);
  transform: translateY(-2px);
}

.gallery-slider {
  overflow: hidden;
}

.gallery-slider__track {
  display: grid;
  grid-auto-columns: minmax(240px, 34%);
  grid-auto-flow: column;
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 2px 2px 12px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.gallery-slide {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  scroll-snap-align: start;
}

.gallery-slide img {
  display: block;
  width: 100%;
  aspect-ratio: 1.18 / 1;
  object-fit: cover;
  border-radius: 8px;
  cursor: zoom-in;
  transition:
    filter 160ms ease,
    transform 160ms ease;
}

.gallery-slide img:hover,
.gallery-slide img:focus-visible,
.gallery-grid img:hover,
.gallery-grid img:focus-visible {
  filter: saturate(1.06);
  transform: scale(1.015);
}

.gallery-slide img:focus-visible,
.gallery-grid img:focus-visible {
  outline: 3px solid rgba(255, 199, 15, 0.9);
  outline-offset: -5px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.gallery-grid figure {
  margin: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(18, 81, 96, 0.14);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(31, 86, 98, 0.06);
}

.gallery-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 1.55 / 1;
  object-fit: cover;
  cursor: zoom-in;
  transition:
    filter 160ms ease,
    transform 160ms ease;
}

.gallery-grid figcaption {
  padding: 14px 16px 16px;
  color: var(--muted);
  font-weight: 800;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 46px);
  background: rgba(15, 55, 64, 0.74);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.gallery-lightbox__image {
  display: block;
  width: auto;
  max-width: min(1120px, 100%);
  max-height: 84vh;
  object-fit: contain;
  background: #ffffff;
  border: 8px solid rgba(255, 255, 255, 0.88);
  border-radius: 14px;
  box-shadow: 0 28px 70px rgba(9, 37, 45, 0.34);
}

.gallery-lightbox__close {
  position: absolute;
  top: clamp(14px, 3vw, 28px);
  right: clamp(14px, 3vw, 28px);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid rgba(18, 81, 96, 0.16);
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}

.gallery-lightbox__close:hover,
.gallery-lightbox__close:focus-visible {
  background: #fff8df;
  border-color: rgba(255, 199, 15, 0.72);
  transform: translateY(-2px);
}

.gallery-lightbox__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: clamp(42px, 5vw, 54px);
  height: clamp(42px, 5vw, 54px);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(18, 81, 96, 0.16);
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 14px 34px rgba(9, 37, 45, 0.18);
  transform: translateY(-50%);
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}

.gallery-lightbox__nav--prev {
  left: clamp(12px, 4vw, 68px);
}

.gallery-lightbox__nav--next {
  right: clamp(12px, 4vw, 68px);
}

.gallery-lightbox__nav:hover,
.gallery-lightbox__nav:focus-visible {
  background: #fff8df;
  border-color: rgba(255, 199, 15, 0.72);
}

.gallery-lightbox__nav--prev:hover,
.gallery-lightbox__nav--prev:focus-visible {
  transform: translate(-3px, -50%);
}

.gallery-lightbox__nav--next:hover,
.gallery-lightbox__nav--next:focus-visible {
  transform: translate(3px, -50%);
}

.gallery-lightbox-open {
  overflow: hidden;
}

.section--facilities {
  padding-top: 86px;
}

.section--facilities .section-heading {
  margin-bottom: 24px;
}

.facility-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.facility-grid article > img {
  width: 100%;
  aspect-ratio: 1.84 / 1;
  object-fit: cover;
}

.facility-grid article > div {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  padding: 24px 24px 28px;
}

.line-icon {
  color: var(--teal);
}

.line-icon svg {
  width: 43px;
  height: 43px;
  stroke-width: 2.1;
}

.line-icon--sun {
  color: var(--yellow);
}

.line-icon--leaf {
  color: var(--green);
}

.facility-grid h3 {
  margin-bottom: 4px;
  font-size: 1.32rem;
}

.facility-grid p {
  margin: 0;
}

.contact-panel {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: min(calc(100% - 40px), 1720px);
  min-height: 700px;
  margin: 56px auto 0;
  padding: 48px 20px 210px;
  overflow: hidden;
  background: #fffdfa url("assets/foto_equipa_final.jpeg") right 40% / 108% auto no-repeat;
  border: 1px solid rgba(18, 81, 96, 0.13);
  border-radius: 34px 34px 0 0;
  box-shadow: 0 -2px 30px rgba(31, 86, 98, 0.06);
}

.contact-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(255, 253, 250, 0.22) 0%,
      rgba(255, 253, 250, 0.1) 50%,
      rgba(255, 253, 250, 0) 100%
    ),
    linear-gradient(to top, rgba(23, 63, 47, 0.16), transparent 42%);
  box-shadow: inset 0 -1px 0 rgba(18, 81, 96, 0.08);
}

.contact-panel::after {
  content: none;
}

.viseu-mark {
  position: absolute;
  left: clamp(12px, 2.4vw, 44px);
  bottom: 60px;
  z-index: 3;
  display: block;
  width: min(250px, 100%);
  height: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35))
    drop-shadow(0 6px 14px rgba(0, 0, 0, 0.18));
}

.visit-form {
  position: relative;
  z-index: 4;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(142, 215, 230, 0.08), rgba(255, 199, 15, 0.06)),
    rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  box-shadow: 0 18px 42px rgba(31, 86, 98, 0.18);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
}

.contact-cta {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  width: 100%;
  max-width: 188px;
}

.contact-cta__header {
  padding: 18px 16px 20px;
  background:
    linear-gradient(135deg, rgba(142, 215, 230, 0.1), rgba(255, 199, 15, 0.08)),
    rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 18px;
  box-shadow: 0 14px 36px rgba(31, 86, 98, 0.18);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
}

.contact-cta__tag {
  display: inline-block;
  color: var(--teal-dark);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-cta__header h3 {
  margin: 8px 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  line-height: 1.1;
}

.contact-cta__header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.contact-cta__button {
  width: 100%;
  min-height: 50px;
  padding: 0 8px;
  gap: 6px;
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0;
  box-shadow: 0 14px 32px rgba(255, 199, 15, 0.32);
}

.contact-cta__button svg {
  width: 16px;
  height: 16px;
}

.contact-cta__phone {
  justify-content: center;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(31, 86, 98, 0.14);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  font-size: 0.98rem;
}

.contact-cta__phone svg {
  width: 18px;
  height: 18px;
}

.contact-cta__phones {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-cta__phones .contact-cta__phone {
  width: 100%;
  padding: 8px 12px;
}

.contact-cta__phone span {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.15;
}

.contact-cta__phone small {
  color: var(--teal-dark);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.contact-phones {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.contact-phones a {
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.15;
}

.contact-phones small {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.45;
  cursor: pointer;
}

.form-consent input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--teal);
  cursor: pointer;
}

.form-consent a {
  color: var(--teal-dark);
  font-weight: 900;
  text-decoration: underline;
}

.legal-doc {
  width: min(calc(100% - 160px), 900px);
}

.legal-body h2 {
  margin: 34px 0 10px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.15;
}

.legal-body ul {
  margin: 0 0 20px;
  padding-left: 1.3rem;
  display: grid;
  gap: 8px;
}

.legal-body a {
  color: var(--teal-dark);
  font-weight: 800;
  text-decoration: underline;
}

.visit-form::before {
  content: "";
  position: absolute;
  right: 18px;
  top: 18px;
  width: 58px;
  height: 40px;
  background:
    radial-gradient(circle at 18% 70%, var(--coral) 0 4px, transparent 5px),
    radial-gradient(circle at 50% 44%, var(--yellow) 0 4px, transparent 5px),
    radial-gradient(circle at 82% 68%, var(--green) 0 4px, transparent 5px);
  opacity: 0.6;
}

.visit-form__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding-right: 70px;
}

.visit-form__head span {
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.visit-form h2,
.visit-form h3 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
  line-height: 1;
}

.intent-switch {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 18px;
  padding: 6px;
  background: #fff8df;
  border: 1px solid rgba(255, 199, 15, 0.32);
  border-radius: 10px;
}

.intent-switch label {
  cursor: pointer;
}

.intent-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.intent-switch span {
  display: grid;
  place-items: center;
  min-height: 44px;
  color: var(--ink);
  border-radius: 7px;
  font-weight: 900;
  transition:
    background-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease;
}

.intent-switch input:checked + span {
  color: #173f2f;
  background: var(--yellow);
  box-shadow: 0 8px 18px rgba(255, 199, 15, 0.23);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.form-grid label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--ink);
  font-weight: 900;
}

.form-grid label > span {
  font-size: 0.86rem;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  color: var(--ink);
  background: #fffdfa;
  border: 1px solid rgba(18, 81, 96, 0.2);
  border-radius: 8px;
  font: inherit;
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.form-grid textarea {
  min-height: 86px;
  padding-top: 12px;
  resize: vertical;
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  background: #ffffff;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(14, 130, 146, 0.12);
}

.form-grid select:disabled {
  color: rgba(22, 71, 90, 0.48);
  background: #eef6f3;
  cursor: not-allowed;
}

.field-wide {
  grid-column: 1 / -1;
}

.form-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 800;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
}

.form-actions .button {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.quick-phone {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--teal-dark);
  font-weight: 900;
}

.quick-phone svg {
  width: 20px;
  height: 20px;
}

.footer-kids {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 3;
  width: min(700px, 88%);
  transform: translateX(-50%);
  pointer-events: none;
}

.footer-kids img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 6px 10px rgba(46, 84, 36, 0.22));
}

.grass--footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 96px;
  z-index: 2;
  background: url("assets/doodles/grass-border.svg") left bottom / 560px 96px repeat-x;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 100px;
  gap: 28px;
  align-items: center;
  min-height: 74px;
  padding: 18px 104px 22px;
  color: #ffffff;
  background: var(--green);
  font-size: 0.88rem;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  gap: 18px;
}

.site-footer nav a + a::before {
  content: "·";
  margin-right: 18px;
}

.socials {
  display: flex;
  justify-content: end;
  gap: 13px;
}

.socials a {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--green);
  background: #ffffff;
  border-radius: 999px;
  font-weight: 900;
}

@media (max-width: 1100px) {
  .hero-balloon,
  .flower-doodle,
  .girl-doodle {
    display: none;
  }
}

@media (max-width: 1260px) {
  .site-header {
    grid-template-columns: 240px 1fr auto;
    width: min(calc(100% - 34px), 1575px);
  }

  .brand {
    width: 190px;
  }

  .main-nav {
    gap: 24px;
  }

  .hero {
    grid-template-columns: 1fr;
    width: 100%;
    margin-top: -100px;
    min-height: auto;
    overflow: visible;
  }

  .hero::before {
    width: min(780px, calc(100% + 40px));
  }

  .hero__copy {
    padding-left: 24px;
    padding-right: 24px;
    padding-top: 130px;
  }

  .hero__visual-main {
    width: 100%;
    margin-left: 0;
  }

  .hero__visual-inset {
    width: min(420px, calc(100% - 40px));
    height: auto;
    aspect-ratio: 1.5 / 1;
    bottom: 40px;
  }

  .hero h1 {
    max-width: 660px;
  }

  .hero__visual {
    min-height: 420px;
    clip-path: none;
    border-radius: 0;
  }

  .hero__visual img {
    min-height: 420px;
  }

  .section {
    width: min(calc(100% - 34px), var(--max));
  }

  .inscription-shell {
    grid-template-columns: 1fr;
  }

  .inscription-aside {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    column-gap: 28px;
    align-items: start;
  }

  .inscription-aside .mini-icon,
  .inscription-aside h2,
  .inscription-aside p,
  .inscription-aside h3,
  .next-steps {
    grid-column: 1;
  }

  .inscription-aside__image {
    grid-column: 2;
    grid-row: 1 / span 6;
    height: 100%;
    min-height: 280px;
    margin-top: 0;
  }

  .prep-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .program-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-icon {
    top: 223px;
    transform: none;
  }

  .program-card img {
    height: 250px;
    aspect-ratio: auto;
  }

  .contact-panel {
    justify-content: stretch;
    padding: 38px 24px 220px;
    background: #fffdfa url("assets/foto_equipa_final.jpeg") center 30% / cover no-repeat;
  }

  .contact-panel .contact-cta {
    max-width: none;
  }

  .contact-panel::before {
    height: auto;
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto auto;
    min-height: 78px;
    padding: 8px 10px 8px 20px;
    border-radius: 28px;
  }

  .brand {
    width: 150px;
  }

  .brand img {
    height: 60px;
  }

  .main-nav {
    position: fixed;
    inset: 116px 18px auto;
    display: grid;
    justify-content: stretch;
    gap: 6px;
    padding: 18px;
    background: #fffdf6;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition:
      opacity 180ms ease,
      transform 180ms ease;
  }

  .main-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-toggle {
    display: grid;
    place-content: center;
    gap: 5px;
    width: 46px;
    height: 46px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 50%;
  }

  .nav-toggle span:not(.sr-only) {
    width: 18px;
    height: 2px;
    background: var(--ink);
    border-radius: 999px;
  }

  .header-cta {
    min-width: 0;
    padding-inline: 16px;
  }

  .header-cta svg {
    display: none;
  }

  .hero {
    margin-top: -90px;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 8vw, 3.4rem);
  }

  .hero-balloon {
    right: 0;
    width: 150px;
  }

  .age-panel {
    grid-template-columns: repeat(2, 1fr);
  }

  .age-panel article + article {
    border-left: 0;
  }

  .age-panel article:nth-child(odd) {
    border-right: 1px solid rgba(22, 71, 90, 0.14);
  }

  .age-panel article {
    padding-block: 10px;
  }

  .news-grid,
  .facility-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .page-main {
    padding-top: 34px;
  }

  .inscription-aside {
    grid-template-columns: 1fr;
  }

  .inscription-aside .mini-icon,
  .inscription-aside h2,
  .inscription-aside p,
  .inscription-aside h3,
  .next-steps,
  .inscription-aside__image {
    grid-column: auto;
    grid-row: auto;
  }

  .inscription-aside__image {
    height: 240px;
    min-height: 0;
    margin-top: 24px;
  }

  .news-article {
    width: min(calc(100% - 34px), var(--max));
  }

  .archive-heading__aside {
    align-items: flex-start;
    justify-content: flex-start;
    margin-top: 14px;
  }

  .gallery-slider__track {
    grid-auto-columns: minmax(230px, 52%);
  }

  .section-heading--row {
    display: block;
  }

  .flower-doodle,
  .girl-doodle {
    display: none;
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding-inline: 24px;
    text-align: center;
  }

  .site-footer nav,
  .socials {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 620px) {
  .site-header {
    width: min(calc(100% - 20px), 1575px);
  }

  .prep-grid {
    grid-template-columns: 1fr;
  }

  .header-cta {
    display: none;
  }

  .hero {
    width: 100%;
  }

  .hero__copy {
    padding-top: 116px;
    padding-right: 18px;
  }

  .hero__actions {
    display: grid;
  }

  .age-panel,
  .program-grid {
    grid-template-columns: 1fr;
  }

  .age-panel__label {
    margin: 0 0 8px;
    padding: 0 0 12px;
    border-right: 0;
    border-bottom: 1px dashed rgba(22, 71, 90, 0.18);
    text-align: center;
  }

  .age-panel article + article {
    border-left: 0;
    border-top: 1px solid rgba(22, 71, 90, 0.14);
    padding-block: 14px;
  }

  .card-icon {
    top: 213px;
  }

  .program-card img {
    height: 240px;
  }

  .age-panel article:nth-child(odd) {
    border-right: 0;
  }

  .hero__visual,
  .hero__visual img {
    min-height: 360px;
  }

  .section--programs,
  .section--news,
  .section--facilities {
    padding-top: 48px;
  }

  .program-card h3,
  .news-card h3 {
    font-size: 1.32rem;
  }

  .news-article {
    width: min(calc(100% - 20px), var(--max));
  }

  .news-archive {
    padding-top: 14px;
  }

  .archive-list--first {
    padding-top: 18px;
  }

  .archive-heading h1 {
    font-size: clamp(2.2rem, 12vw, 3.3rem);
  }

  .archive-heading__aside {
    display: grid;
    gap: 12px;
  }

  .gallery-slider__track {
    grid-auto-columns: minmax(210px, 82%);
  }

  .archive-count {
    justify-self: start;
  }

  .archive-list,
  .article-page {
    padding-bottom: 58px;
  }

  .article-hero h1 {
    font-size: clamp(2.25rem, 11vw, 3.45rem);
  }

  .article-body {
    font-size: 1rem;
  }

  .pagination {
    justify-content: stretch;
  }

  .pagination__link {
    flex: 1;
    padding-inline: 8px;
  }

  .contact-panel {
    width: min(calc(100% - 20px), 1720px);
    padding: 28px 22px 190px;
    background-position: center 56%;
  }

  .contact-panel::before {
    height: auto;
  }

  .viseu-mark {
    left: 22px;
    bottom: 88px;
    width: min(172px, 48vw);
    padding: 9px 10px;
  }

  .footer-kids {
    width: min(390px, 92%);
    bottom: 20px;
  }

  .grass--footer {
    height: 72px;
    background-size: 420px 72px;
  }

  .grass--hero {
    height: 58px;
    background-size: 330px 58px;
  }

  .visit-form {
    padding: 18px;
  }

  .visit-form__head {
    display: grid;
    padding-right: 48px;
  }

  .intent-switch,
  .form-grid,
  .form-actions {
    grid-template-columns: 1fr;
  }

  .form-actions {
    display: grid;
    justify-items: stretch;
  }

  .quick-phone {
    justify-content: center;
  }

  .footer-kids img {
    width: 100%;
  }
}

/* ---- Estados dinâmicos (notícias da API + formulário) ---- */
.news-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 28px 4px;
  color: #6b6780;
  font-weight: 600;
  text-align: center;
}

.form-status {
  margin: 14px 0 0;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 600;
  min-height: 0;
}
.form-status:empty { display: none; }
.form-status--ok {
  background: #e3f3dd;
  color: #3d7a2c;
}
.form-status--error {
  background: #ffe2de;
  color: #c64536;
}
