:root {
  --ink: #1a231d;
  --muted: #4c5b51;
  --paper: #f9faf7;
  --cream: #edf2e9;
  --dark: #142018;
  --accent: #cafd80;
  --edge: #d4ded1;
  --focus: #176448;
  --font: system-ui, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.62 var(--font); }
p, h1, h2, h3 { margin: 0; }
img { display: block; width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.wrap { width: min(100% - 2.75rem, 74rem); margin-inline: auto; }

.sr-skip { position: fixed; z-index: 4; inset: .65rem auto auto .65rem; transform: translateY(-150%); background: #fff; padding: .55rem .9rem; }
.sr-skip:focus { transform: none; }
.header { background: #fff; border-bottom: 1px solid var(--edge); }
.masthead { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem 1.5rem; min-height: 80px; align-items: center; }
.marca { display: inline-flex; gap: .55rem; align-items: center; min-height: 46px; justify-self: start; text-decoration: none; }
.marca img { flex: none; width: 52px; aspect-ratio: 128 / 94; object-fit: contain; }
.marca small, .marca strong { display: block; line-height: 1.1; }
.marca small { font-size: .64rem; font-weight: 650; text-transform: uppercase; letter-spacing: .08em; }
.marca strong { font-size: 1.05rem; font-weight: 825; letter-spacing: -.02em; }
nav { display: flex; align-items: stretch; gap: clamp(.45rem, 1.2vw, 1.3rem); }
nav a { display: inline-flex; justify-content: center; align-items: center; min-width: 54px; min-height: 44px; padding-inline: .25rem; text-decoration: none; font-size: .9rem; font-weight: 600; }
nav a:hover, .texto-link:hover { text-decoration: underline; text-underline-offset: .35em; }

.botao {
  display: inline-flex;
  min-height: 48px;
  min-width: 47px;
  align-items: center;
  justify-content: space-between;
  gap: .9rem;
  padding: .55rem .92rem;
  border: 1px solid transparent;
  border-radius: .22rem;
  background: var(--accent);
  color: #142018;
  font-weight: 790;
  text-decoration: none;
  transition: background-color .18s ease, box-shadow .18s ease;
}
.botao:hover { background: #b5e85e; box-shadow: 0 3px 13px #1a2c2330; }
.topo { justify-self: end; }
.alternativa { border-color: #a2b4a3; background: transparent; color: #f8fff9; }
.alternativa:hover { background: #304133; }
.botao:focus-visible, .footer a:focus-visible { outline-color: #136953; }
.hero .botao:focus-visible, .contato .botao:focus-visible { outline-color: #fff; }

.hero { position: relative; isolation: isolate; background: #19261d; color: #fbfff9; }
.hero-foto {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 54% 43%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #142018b8;
  pointer-events: none;
}
.hero-conteudo { display: flex; align-items: center; justify-content: center; min-height: min(69vw, 680px); padding-block: 4.75rem; text-align: center; }
.hero-texto { max-width: 62rem; }
.hero h1 {
  max-width: 21ch;
  margin-inline: auto;
  color: white;
  font-size: clamp(2.35rem, 4.65vw, 4.2rem);
  font-weight: 820;
  line-height: 1.02;
  letter-spacing: -.048em;
  text-wrap: balance;
}
.hero p { max-width: 42ch; margin: 1.15rem auto 1.45rem; color: #e8f1e9; font-size: clamp(1rem, 1.4vw, 1.16rem); }

h2 { font-size: clamp(2rem, 3.9vw, 3.65rem); line-height: 1.07; font-weight: 810; letter-spacing: -.045em; text-wrap: balance; }
h3 { font-size: 1.28rem; line-height: 1.25; }
.servicos, .kids-grade, .contato-grade { padding-block: clamp(3rem, 7.2vw, 6rem); }
.section-head p, .kids p { max-width: 47ch; margin-top: .85rem; color: var(--muted); }
.grade { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 2rem; border: 1px solid var(--edge); }
.grade article { min-height: 9rem; padding: 1.15rem; background: #fff; border-inline-end: 1px solid var(--edge); }
.grade article:last-child { border-inline-end: 0; }
.grade h3::before { content: ""; display: block; width: 2rem; height: 3px; margin-bottom: .75em; background: #247d54; }
.grade p { margin-top: .65rem; color: var(--muted); }
.kids { background: var(--cream); }
.kids-grade { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1fr); gap: clamp(2rem, 6.5vw, 6rem); align-items: center; }
.kids img { width: 100%; object-fit: cover; border-radius: .4rem; }
.texto-link { display: inline-flex; min-height: 44px; min-width: 44px; gap: .8rem; align-items: center; color: #1b6346; font-weight: 760; text-underline-offset: .3em; }
.kids .texto-link { margin-top: .75rem; }

.contato { background: var(--dark); color: #f3faf4; }
.contato-grade { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 1.5rem 2.2rem; }
address { font-style: normal; margin-top: .85rem; }
.contato p { max-width: 35ch; color: #dbe7dc; margin-top: .65rem; }
.botoes { display: flex; flex-wrap: wrap; gap: .65rem; }
.footer { background: #fff; }
.rodape { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding-block: .7rem; }

@media (prefers-reduced-motion: no-preference) {
  .hero-texto { animation: entrar .42s cubic-bezier(.15,.66,.31,1) both; }
  @keyframes entrar { from { transform: translateY(8px); opacity: .5; } to { transform: translateY(0); opacity: 1; } }
}

@media (max-width: 960px) {
  .grade { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grade article:nth-child(even) { border-inline-end: 0; }
  .grade article:nth-child(-n+2) { border-bottom: 1px solid var(--edge); }
}

@media (max-width: 640px) {
  .wrap { width: calc(100% - 2rem); }
  .masthead { grid-template-columns: 1fr auto; gap: .3rem .6rem; padding-top: .32rem; }
  .marca img { width: 39px; }
  .marca strong { font-size: .94rem; }
  .topo { grid-column: 2; grid-row: 1; gap: .45rem; min-height: 44px; padding-inline: .65rem; }
  nav { grid-column: 1 / -1; justify-content: space-between; border-top: 1px solid var(--edge); }
  .hero-conteudo { min-height: 33rem; padding-block: 3rem; }
  .hero-foto { object-position: 47% 57%; }

  .hero::after { background: #142018bd; }
  .hero h1 { max-width: 15ch; }
  .grade, .kids-grade, .contato-grade { grid-template-columns: minmax(0, 1fr); }
  .grade article { min-height: auto; padding: 1rem; border-inline-end: 0; border-bottom: 1px solid var(--edge); }
  .grade article:last-child { border-bottom: 0; }
  .kids-grade img { order: 2; }
}

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