/* Rumoz — site de apresentação */
:root {
  --mata: #1f3e3a;
  --mata-suave: #4d625e;
  --serra: #4f8f95;
  --coral: #f36f56;
  --coral-escuro: #d9573c;
  --creme: #fbf5e9;
  --superficie: #fffdf8;
  --montanha: #6e9d8a;
  --linhas: #eadfca;
  --areia: #efe6d4;
  --serifa: "Newsreader", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --margem: 5.3125rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* No desktop o hero inteiro escala junto com a janela, na proporção do layout (1561 x 1008):
   1rem = 16px quando a janela tem esse tamanho. No celular, 1rem = 16px fixo. */
@media (min-width: 901px) {
  html { font-size: clamp(12.5px, min(1.025vw, 1.5873svh), 22px); }
}
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--mata);
  background: var(--creme);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--mata); outline-offset: 0.1875rem; border-radius: 0.375rem; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.875rem;
  height: 2.75rem; padding: 0 1.625rem;
  border-radius: 62.4375rem;
  font-weight: 500; font-size: 1rem; white-space: nowrap;
  transition: background-color .2s, transform .2s, box-shadow .2s;
}
.btn svg { width: 1.375rem; height: 1.375rem; transition: transform .2s; }
.btn-coral { background: var(--coral); color: #fff; box-shadow: 0 0.5rem 1.375rem -0.625rem rgba(217, 87, 60, .7); }
.btn-coral:hover { background: var(--coral-escuro); transform: translateY(-1px); }
.btn-coral:hover svg { transform: translateX(0.1875rem); }
.btn-contorno { border: 1.5px solid var(--mata); }
.btn-contorno:hover { background: var(--mata); color: var(--creme); }
.btn-grande { height: 3.4375rem; padding: 0 1.75rem; gap: 0.75rem; font-size: 1.25rem; }

/* ---------- Topo ---------- */
.topo {
  position: absolute; inset: 0 0 auto 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.5rem 4rem 1.5rem 5rem;
}
.marca { display: inline-flex; align-items: center; gap: 1rem; }
.marca img { width: 2.75rem; height: 2.75rem; border-radius: 0.625rem; display: block; }
.marca span { font-weight: 600; font-size: 1.5625rem; letter-spacing: .36em; margin-right: -.36em; }
.menu { display: flex; gap: 3rem; font-size: 0.9688rem; font-weight: 500; }
.menu a { position: relative; padding: 0.5rem 0; }
.menu a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--mata); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.menu a:hover::after, .menu a[aria-current]::after { transform: scaleX(1); }
.topo-acoes { display: flex; gap: 1.375rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh;
  padding: 9.625rem var(--margem) 4rem;
  display: flex; flex-direction: column;
  background: #cfdcec url("assets/hero-serra.webp") center bottom / cover no-repeat;
}
/* véu claro à esquerda, para o texto ler bem sobre a foto */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(251, 245, 233, .5) 0, rgba(251, 245, 233, 0) 11.25rem),
    radial-gradient(75% 110% at 0% 55%, rgba(251, 245, 233, .82) 0, rgba(251, 245, 233, .6) 42%, rgba(251, 245, 233, 0) 78%);
}
.hero-conteudo { max-width: 40rem; display: flex; flex-direction: column; }

.etiqueta {
  align-self: flex-start; margin: 0;
  display: inline-flex; align-items: center; gap: 0.8125rem;
  height: 2.125rem; padding: 0 0.9375rem 0 0.8125rem;
  border: 1px solid rgba(31, 62, 58, .28); border-radius: 62.4375rem;
  background: rgba(255, 253, 248, .55);
  font-size: 0.8438rem; font-weight: 500; letter-spacing: .02em; text-transform: uppercase;
}
.etiqueta i { width: 0.5625rem; height: 0.5625rem; border-radius: 50%; background: #2fae4e; }

h1 {
  margin: 2.3125rem 0 0;
  font-family: var(--serifa); font-weight: 500;
  font-size: 6.1562rem;
  line-height: 1; letter-spacing: -.025em;
  color: #17463c;
}
h1 em { display: block; font-weight: 500; color: var(--coral); }

.subtitulo {
  margin: 0.6875rem 0 0; max-width: 19.5em;
  font-size: 1.5625rem; line-height: 1.36;
  color: var(--mata-suave);
}

.hero-acoes { margin-top: 1.75rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.125rem 1.625rem; }
.ver { display: inline-flex; align-items: center; gap: 0.875rem; }
.ver-play {
  width: 3.375rem; height: 3.375rem; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid var(--coral); background: rgba(255, 253, 248, .5);
  transition: background-color .2s, color .2s;
}
.ver-play svg { width: 1.375rem; height: 1.375rem; fill: currentColor; stroke: none; margin-left: 2px; }
.ver:hover .ver-play { background: var(--coral); color: #fff; }
.ver strong { display: block; font-weight: 500; font-size: 1rem; }
.ver small { display: block; margin-top: 0.3125rem; font-size: 0.875rem; color: var(--mata-suave); }

.pilares {
  list-style: none; margin: 0; padding: 6rem 0 0;
  display: flex;
  font-size: 0.9062rem; font-weight: 500; line-height: 1.45; text-align: center;
}
.pilares li { padding: 0 1.875rem; border-left: 1px solid rgba(31, 62, 58, .22); }
.pilares li:first-child { padding-left: 0; border-left: 0; }
.pilares svg { display: block; height: 2.25rem; margin: 0 auto 0.75rem; stroke-width: 1.5; }

/* ---------- Selos flutuantes ---------- */
.selo-dados {
  position: absolute; top: 11.25rem; right: 3.25rem;
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.9375rem 1.125rem; border-radius: 1.125rem;
  background: rgba(255, 255, 255, .42);
  -webkit-backdrop-filter: blur(0.875rem) saturate(1.2); backdrop-filter: blur(0.875rem) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, .55);
  transition: background-color .2s;
}
.selo-dados:hover { background: rgba(255, 255, 255, .62); }
.selo-icone { width: 2.375rem; height: 2.375rem; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .8); }
.selo-icone svg { width: 1.5rem; height: 1.5rem; }
.selo-texto strong { display: block; font-weight: 500; font-size: 0.9688rem; }
.selo-texto small { display: block; margin-top: 0.25rem; font-size: 0.8125rem; color: var(--mata-suave); }
.selo-seta { width: 1.0625rem; height: 1.0625rem; margin-left: 0.375rem; transition: transform .2s; }
.selo-dados:hover .selo-seta { transform: translateX(0.1875rem); }
.selo-fio { position: absolute; right: 100%; top: 2.25rem; width: 3.75rem; height: 2.5rem; color: #fff; stroke-width: 1; }
.selo-fio circle { fill: #fff; stroke: none; }

.selo-offline {
  position: absolute; top: 28.5625rem; right: 5.1875rem;
  width: 9.375rem; height: 9.375rem; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.625rem;
  background: rgba(31, 62, 58, .12);
  -webkit-backdrop-filter: blur(0.375rem); backdrop-filter: blur(0.375rem);
  color: #fff; font-weight: 500; font-size: 0.9688rem; line-height: 1.4; text-align: center;
  text-shadow: 0 1px 0.5rem rgba(31, 62, 58, .45);
}
.selo-anel { position: absolute; inset: -0.25rem; width: calc(100% + 0.5rem); height: calc(100% + 0.5rem); }
.anel-base { stroke: rgba(255, 255, 255, .35); stroke-width: 1; }
.anel-arco { stroke: #fff; stroke-width: 3; }
.anel-ponta { fill: #fff; stroke: none; }
.selo-wifi { width: 2rem; height: 1.75rem; stroke-width: 1.8; }

/* ---------- Entrada ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-conteudo > *, .selo-dados, .selo-offline { animation: subir .8s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-conteudo > :nth-child(2) { animation-delay: .08s; }
  .hero-conteudo > :nth-child(3) { animation-delay: .16s; }
  .hero-conteudo > :nth-child(4) { animation-delay: .24s; }
  .hero-conteudo > :nth-child(5) { animation-delay: .34s; }
  .selo-dados { animation-delay: .5s; }
  .selo-offline { animation-delay: .62s; }
  @keyframes subir { from { opacity: 0; transform: translateY(1.125rem); } }
}

/* ---------- Telas menores ---------- */
.menu-botao { display: none; }

@media (max-width: 1080px) {
  .selo-fio { display: none; }
  .topo-acoes { margin-left: auto; }
  .topo { gap: 0.75rem; }
  .menu-botao {
    display: grid; place-items: center; flex: none;
    width: 2.75rem; height: 2.75rem; padding: 0;
    border: 1.5px solid var(--mata); border-radius: 50%;
    background: transparent; color: var(--mata); cursor: pointer;
  }
  .menu-botao svg { width: 1.375rem; height: 1.375rem; stroke-width: 1.8; }
  .menu-botao .xis, .topo.aberto .menu-botao .tracos { display: none; }
  .topo.aberto .menu-botao .xis { display: inline; }
  .topo.aberto .menu-botao { background: var(--mata); color: var(--creme); }
  .menu {
    display: none;
    position: absolute; top: calc(100% - 0.5rem); right: var(--margem); left: var(--margem);
    flex-direction: column; gap: 0;
    padding: 0.5rem; border-radius: 1.375rem;
    background: var(--superficie); border: 1px solid var(--linhas);
    box-shadow: 0 1.25rem 2.5rem -1rem rgba(31, 62, 58, .35);
    font-size: 1.0625rem;
  }
  .topo.aberto .menu { display: flex; }
  .menu a { padding: 0.875rem 1rem; border-radius: 0.875rem; }
  .menu a::after { display: none; }
  .menu a:hover, .menu a[aria-current] { background: var(--areia); }
}
@media (min-width: 561px) and (max-width: 1080px) {
  .menu { left: auto; width: 17.5rem; }
}
@media (max-width: 900px) {
  :root { --margem: clamp(1.25rem, 5.4vw, 5rem); }
  .topo { padding-left: var(--margem); padding-right: var(--margem); }
  h1 { font-size: clamp(3.25rem, 9vw, 5rem); }
  .subtitulo { font-size: clamp(1.15rem, 2.6vw, 1.4rem); }
  .selo-dados { right: auto; }
  .hero { padding-top: 8rem; padding-bottom: min(52vw, 18.75rem); min-height: 100svh; background-position: 68% bottom; background-image: url("assets/hero-serra-900.webp"); }
  .hero::before {
    background: linear-gradient(180deg, rgba(251, 245, 233, .9) 0, rgba(251, 245, 233, .8) calc(100% - min(64vw, 23.75rem)), rgba(251, 245, 233, 0) calc(100% - min(30vw, 11.25rem)));
  }
  .hero-conteudo { max-width: none; }
  .pilares { padding-top: 2.75rem; }
  h1 { margin-top: 1.75rem; }
  .subtitulo { margin-top: 1.25rem; }
  /* os selos saem de cima da foto e viram uma linha abaixo do conteúdo */
  .selo-dados, .selo-offline { position: static; margin-top: 1rem; align-self: flex-start; }
  .selo-dados { margin-top: 2.25rem; background: rgba(255, 255, 255, .6); }
  .selo-offline {
    width: auto; height: auto; flex-direction: row; gap: 0.75rem;
    padding: 0.75rem 1.125rem; border-radius: 62.4375rem;
    background: rgba(31, 62, 58, .9); text-shadow: none;
  }
  .selo-offline br, .selo-anel { display: none; }
  .selo-wifi { width: 1.5rem; height: 1.3125rem; }
}
@media (max-width: 560px) {
  .topo { padding-top: 1.125rem; }
  .topo-acoes .btn-coral { display: none; }
  .marca { gap: 0.75rem; }
  .marca img { width: 2.375rem; height: 2.375rem; }
  .marca span { font-size: 1.25rem; }
  .btn { height: 2.5rem; padding: 0 1.25rem; font-size: 0.9375rem; }
  .btn-grande { height: 3.375rem; width: 100%; font-size: 1.125rem; }
  .hero { padding-top: 6.75rem; }
  h1 { margin-top: 1.5rem; }
  .subtitulo { margin-top: 1.375rem; max-width: none; }
  .pilares { font-size: 0.8125rem; }
  .pilares li { flex: 1; padding: 0 0.5rem; }
  .pilares li:first-child { padding-left: 0; }
  .pilares svg { height: 2.125rem; }
}
