@font-face {
  font-family: "Figtree";
  src: url("/fonts/figtree-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --verde: #163d30;
  --verde-fundo: #11312a;
  --verde-medio: #2d6a50;
  --musgo: #e9efe7;
  --musgo-linha: #cfdbcf;
  --tinta: #1c2520;
  --tinta-suave: #4f5c56;
  --sol: #e9a23b;
  --branco: #ffffff;
  --whatsapp: #25d366;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --largura: 74rem;
  --gutter: clamp(1.1rem, 4vw, 3rem);
  --topo-altura: 4.75rem;
  --suave: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--branco);
  color: var(--tinta);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
}

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--verde);
  line-height: 1.1;
  margin: 0 0 1rem;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 1.5rem + 3vw, 3.9rem); }
h2 { font-size: clamp(1.9rem, 1.4rem + 1.9vw, 3rem); }
h3 { font-size: 1.5rem; line-height: 1.2; }

p { margin: 0 0 1rem; max-width: 62ch; }

a { color: var(--verde); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--verde-medio); }

:focus-visible { outline: 3px solid var(--sol); outline-offset: 3px; border-radius: 3px; }

.pular {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--sol); color: var(--tinta); padding: 0.6rem 1rem;
}
.pular:focus { top: 1rem; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icone { width: 1.25em; height: 1.25em; flex: none; }

/* Buttons */
.botao {
  display: inline-flex; align-items: center; gap: 0.65rem;
  min-height: 3.25rem; padding: 0.8rem 1.5rem;
  border-radius: 0.375rem;
  background: var(--verde); color: var(--branco);
  font-weight: 600; font-size: 1.0625rem; text-decoration: none;
  transition: background-color 0.25s ease, box-shadow 0.35s var(--suave), transform 0.35s var(--suave);
}
.botao:hover { background: var(--verde-medio); color: var(--branco); transform: translateY(-1px); box-shadow: 0 8px 20px -10px rgba(12, 36, 28, 0.55); }
.botao:active { transform: translateY(0); box-shadow: none; }
.botao .icone { transition: transform 0.35s var(--suave); }
.botao:hover .icone { transform: scale(1.08); }
.botao--claro { background: var(--branco); color: var(--verde); }
.botao--claro:hover { background: var(--musgo); color: var(--verde); }
.botao--topo { min-height: 2.75rem; padding: 0.5rem 1.1rem; font-size: 1rem; background: var(--branco); color: var(--verde); }
.botao--topo:hover { background: var(--musgo); color: var(--verde); }
.botao--grande { font-size: 1.375rem; min-height: 3.75rem; padding: 0.9rem 1.75rem; }

/* Header: dark green bar, the hero continues the same field below it */
.topo { position: sticky; top: 0; z-index: 50; background: var(--verde); }
.topo__interno {
  max-width: var(--largura); margin: 0 auto; padding: 0 var(--gutter);
  height: var(--topo-altura); display: flex; align-items: center; gap: 1.5rem;
}
.topo__marca { display: block; }
.topo__marca img { width: auto; height: 2.75rem; }
@media (min-width: 700px) { .topo__marca img { height: 2.6rem; } }
.topo__nav { display: none; gap: 1.6rem; margin-left: auto; }
.topo__nav a {
  color: #e4ede6; text-decoration: none; font-weight: 500; font-size: 1rem;
  background: linear-gradient(var(--sol), var(--sol)) no-repeat left bottom / 0 1px;
  padding-bottom: 2px; transition: color 0.25s ease, background-size 0.4s var(--suave);
}
.topo__nav a:hover { color: var(--branco); background-size: 100% 1px; }
.topo .botao--topo { margin-left: auto; }
@media (min-width: 1040px) {
  .topo__nav { display: flex; }
  .topo .botao--topo { margin-left: 0; }
}

/* Hero */
.abertura { background: var(--verde); color: var(--branco); }
.abertura__interno {
  max-width: var(--largura); margin: 0 auto; padding: 1.5rem var(--gutter) 0;
  display: grid; gap: 2rem;
}
.abertura h1 { color: var(--branco); }
.abertura__lead { font-size: 1.25rem; color: #d7e4da; max-width: 36rem; }
.abertura__acoes { margin-top: 1.75rem; display: grid; gap: 1rem; justify-items: start; }
.abertura__nota { font-size: 0.95rem; color: #bfd3c6; margin: 0; max-width: 30rem; }
.abertura__fotos { position: relative; }
.abertura__foto { object-fit: cover; border-radius: 0.25rem; }
.abertura__foto--2 { display: none; }
/* Phones: one wide-cropped photo peeking under the text */
@media (max-width: 959px) {
  .abertura__interno { padding-top: 2rem; }
  .abertura__fotos { margin: 0.5rem calc(-1 * var(--gutter)) 0; }
  .abertura__foto--1 { width: 100%; aspect-ratio: 16 / 9; border-radius: 0; object-position: 50% 56%; }
}
/* Desktop: the tall pool photo sits on the green field; the garden photo overlaps it and steps down into the white */
@media (min-width: 960px) {
  .abertura__interno { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: end; padding-top: 3.5rem; }
  .abertura__texto { padding-bottom: 6rem; }
  .abertura__fotos { padding-left: 16%; margin-bottom: -4.5rem; }
  .abertura__foto--1 { width: 100%; aspect-ratio: 3 / 4; border-radius: 0.25rem 0.25rem 0 0; }
  .abertura__foto--2 { display: block; position: absolute; left: 0; bottom: 0; width: 40%; aspect-ratio: 3 / 4; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28); }
  #tratamento { padding-top: clamp(6rem, 10vw, 9rem); }
}

/* Sections */
main section { scroll-margin-top: var(--topo-altura); }
.secao { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.secao--musgo { background: var(--musgo); }
#internacao { background: var(--musgo) url("/img/simbolo-marca-verde.svg") no-repeat right -6rem top 2.5rem / min(30rem, 70vw) auto; }
.secao--verde { background: var(--verde) url("/img/simbolo-marca-claro.svg") no-repeat right -7rem bottom -5rem / min(46rem, 90vw) auto; color: var(--branco); }
.secao--verde h2 { color: var(--branco); }
.interno { max-width: var(--largura); margin: 0 auto; padding: 0 var(--gutter); }
.interno--estreito { max-width: 50rem; }
.cabeca { max-width: 50rem; margin-bottom: 2.5rem; }
.cabeca__intro { font-size: 1.1875rem; color: var(--tinta-suave); }

.colunas { display: grid; gap: 2.5rem; }
@media (min-width: 860px) {
  .colunas { grid-template-columns: 5fr 7fr; gap: 5rem; align-items: start; }
}

/* Pillars: a running list in serif, no boxes */
.pilares { margin: 0; display: grid; gap: 1.75rem; }
.pilares dt { font-family: var(--serif); font-weight: 500; color: var(--verde); font-size: 1.5rem; line-height: 1.2; }
.pilares dd { margin: 0.35rem 0 0; color: var(--tinta-suave); }
@media (min-width: 560px) { .pilares { grid-template-columns: 1fr 1fr; gap: 2.25rem 2.5rem; } }

/* Admission */
.modalidades { display: grid; gap: 2rem; margin: 0 0 3.5rem; }
.modalidade { border-top: 2px solid var(--verde); padding-top: 1.25rem; }
.modalidade p { color: var(--tinta-suave); }
@media (min-width: 760px) { .modalidades { grid-template-columns: 1fr 1fr; gap: 3rem; } }

.passos { border-top: 1px solid var(--musgo-linha); padding-top: 2.5rem; }
.passos__titulo { margin-bottom: 1.5rem; }
.passos__lista { list-style: none; counter-reset: passo; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.passos__lista li { counter-increment: passo; display: grid; grid-template-columns: 2.75rem 1fr; gap: 1rem; align-items: start; }
.passos__lista li::before {
  content: counter(passo);
  font-family: var(--serif); font-size: 2rem; line-height: 1; color: var(--verde); font-weight: 500;
  padding-top: 0.1rem;
}
@media (min-width: 860px) { .passos__lista { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }

/* Gallery: one large photo leads, the rest follow in a grid */
.galeria { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem 0.9rem; }
.galeria figure { margin: 0; }
.galeria__foto { display: block; overflow: hidden; border-radius: 0.25rem; background: var(--musgo); }
.galeria img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform 0.9s var(--suave), filter 0.6s ease; }
.galeria figure:hover img { transform: scale(1.045); filter: saturate(1.06); }
.galeria figcaption { margin-top: 0.5rem; font-size: 1rem; color: var(--tinta-suave); transition: color 0.3s ease; }
.galeria figure:hover figcaption { color: var(--verde); }
.galeria__grande { grid-column: 1 / -1; }
.galeria__grande img { aspect-ratio: 3 / 2; }
@media (min-width: 700px) {
  .galeria { grid-template-columns: repeat(4, 1fr); gap: 1.5rem 1.25rem; }
  .galeria__grande { grid-column: 1 / 3; grid-row: 1 / 3; }
  .galeria__grande .galeria__foto { height: 100%; }
  .galeria__grande img { aspect-ratio: auto; height: 100%; }
  .galeria__grande figure { display: grid; grid-template-rows: 1fr auto; height: 100%; }
}

/* Team: on the dark field */
.equipe { margin: 0; display: grid; gap: 0; border-top: 1px solid rgba(255, 255, 255, 0.22); }
.equipe > div { display: grid; gap: 0.15rem; padding: 0.9rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.22); transition: border-color 0.4s ease; }
.equipe dt { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; color: var(--branco); line-height: 1.2; transition: transform 0.45s var(--suave), color 0.3s ease; }
.equipe > div:hover { border-bottom-color: rgba(233, 162, 59, 0.7); }
.equipe > div:hover dt { transform: translateX(0.35rem); color: #f6e7cf; }
.equipe dd { margin: 0; color: #c8d9cd; font-size: 1.0625rem; }
.secao--verde p { color: #d7e4da; }
@media (min-width: 560px) { .equipe > div { grid-template-columns: 15rem 1fr; gap: 1.25rem; align-items: baseline; } }

/* About, with the botanical plate */
.quem__interno { display: grid; gap: 2rem; }
.quem__texto { max-width: 42rem; }
.lema { margin: 2rem 0 0; padding: 0; }
.lema p {
  font-family: var(--serif); font-weight: 500; font-style: italic;
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); line-height: 1.25;
  color: var(--verde); margin: 0; text-wrap: balance;
}
.quem__botanica { width: min(100%, 22rem); margin: 0 0 0 auto; }
@media (min-width: 860px) {
  .quem__interno { grid-template-columns: 7fr 5fr; align-items: end; gap: 4rem; }
  .quem__botanica { width: 100%; max-width: 35rem; }
}

/* FAQ */
.faq { margin-top: 2rem; border-top: 1px solid var(--musgo-linha); }
.faq details { border-bottom: 1px solid var(--musgo-linha); }
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.1rem 0; font-family: var(--serif); font-size: 1.3rem; line-height: 1.25; font-weight: 500; color: var(--verde);
  transition: color 0.25s ease;
}
.faq summary:hover { color: var(--verde-medio); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-family: var(--sans); font-size: 1.6rem; line-height: 1; font-weight: 400; color: var(--verde-medio); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--tinta-suave); padding-bottom: 0.75rem; }

/* Contact */
.contato { background: url("/img/simbolo-marca-verde.svg") no-repeat left -5rem center / min(26rem, 70vw) auto; }
.contato__interno { display: grid; gap: 2.5rem; }
.contato__chamada p { font-size: 1.1875rem; color: var(--tinta-suave); }
.contato .botao { margin-top: 0.5rem; }
.contato__dados { margin: 0; display: grid; gap: 1.5rem; align-content: start; }
.contato__dados dt { font-family: var(--serif); font-size: 1.3rem; color: var(--verde); font-weight: 500; }
.contato__dados dd { margin: 0.25rem 0 0; color: var(--tinta-suave); }
.contato__dados dd a { display: inline-flex; align-items: center; gap: 0.5rem; }
@media (min-width: 860px) {
  .contato__interno { grid-template-columns: 7fr 5fr; gap: 4rem; }
  .contato__dados { grid-template-columns: 1fr 1fr; }
}

/* Footer */
.rodape { background: var(--verde); color: #c8d9cd; padding: 2.5rem 0 6.5rem; font-size: 0.9375rem; }
.rodape__interno { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 3rem; }
.rodape img { width: 7rem; }
.rodape p { margin: 0; }

/* Floating WhatsApp button */
.flutuante {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 60;
  display: grid; place-items: center; width: 3.75rem; height: 3.75rem; border-radius: 50%;
  background: var(--whatsapp); color: var(--branco); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}
.flutuante { transition: transform 0.35s var(--suave), background-color 0.25s ease; }
.flutuante:hover { color: var(--branco); background: #1fbd59; transform: scale(1.06); }
.flutuante svg { width: 2rem; height: 2rem; }

/* Motion: one entrance for the hero, quiet reveals on scroll, all CSS. Browsers without
   scroll-driven animations simply show everything in place. */
@keyframes sobe { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes desliza { from { transform: translateY(10px); } to { transform: none; } }
@keyframes assenta { from { transform: scale(1.035); } to { transform: none; } }
@keyframes surge-foto { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes aparece { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes deriva { from { transform: translateY(2.5rem); } to { transform: translateY(-2.5rem); } }
@keyframes flutua { from { transform: translateY(0); } to { transform: translateY(-1.75rem); } }
@keyframes sombra-topo { from { box-shadow: 0 0 0 rgba(0, 0, 0, 0); } to { box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.55); } }
@keyframes anel { 0% { box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(37, 211, 102, 0.45); } 100% { box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3), 0 0 0 1rem rgba(37, 211, 102, 0); } }

/* The headline only slides (no fade) so it paints immediately. */
.abertura h1 { animation: desliza 0.8s var(--suave) both; }
.abertura__lead { animation: sobe 0.8s var(--suave) 0.12s both; }
.abertura__acoes { animation: sobe 0.8s var(--suave) 0.24s both; }
.abertura__foto--1 { animation: assenta 1.6s var(--suave) both; }
.abertura__foto--2 { animation: surge-foto 1s var(--suave) 0.45s both; }
.flutuante { animation: anel 1.4s ease-out 3s 2; }

@supports (animation-timeline: view()) {
  .topo { animation: sombra-topo linear both; animation-timeline: scroll(); animation-range: 0 6rem; }

  .cabeca, .colunas > div:first-child, .pilares > div, .modalidade, .passos__lista li, .galeria > li,
  .equipe > div, .quem__texto, .faq, .contato__chamada, .contato__dados > div {
    animation: aparece linear both;
    animation-timeline: view();
    animation-range: entry 5% cover 28%;
  }
  .pilares > div:nth-child(even), .modalidade:nth-child(2), .passos__lista li:nth-child(2), .galeria > li:nth-child(4n + 3), .contato__dados > div:nth-child(2) { animation-range: entry 12% cover 32%; }
  .passos__lista li:nth-child(3), .galeria > li:nth-child(4n) { animation-range: entry 18% cover 36%; }
  .galeria > li:nth-child(4n + 1):not(.galeria__grande) { animation-range: entry 24% cover 40%; }

  .quem__botanica { animation: deriva linear both; animation-timeline: view(); animation-range: cover; }
  @media (min-width: 960px) {
    .abertura__foto--2 { animation: surge-foto 1s var(--suave) 0.45s both, flutua linear both; animation-timeline: auto, view(); animation-range: normal, exit 0% exit 100%; }
  }
}

/* Smooth FAQ opening where the browser can animate to auto height. */
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq details::details-content { block-size: 0; overflow: clip; transition: block-size 0.4s var(--suave), content-visibility 0.4s allow-discrete; }
  .faq details[open]::details-content { block-size: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
