/* Grupo Ei Beleza: site institucional (institucional.eibeleza.com.br).
 *
 * Paleta do grupo: material oficial (fundo de LinkedIn/Teams), a mesma do Influ OS e do Cérebro.
 * Cada marca aparece com as cores medidas no próprio site em 14/10/2026:
 *   Beleza Brasileira: fundo #fefdf9, botão #0a5338, dourado #fdd26c, tinta #2c2c2c.
 *   Hidratei: ciano #00acd7 (só decoração: 2,7:1 sobre branco), marinho #063046.
 * Contraste (WCAG, piso 4,5:1): creme/verde 9,7 · #b3c6bc/verde 6,4 · dourado/verde 7,4 ·
 * branco/#0a5338 9,1 · branco/#063046 13,8 · #2c2c2c/#fdd26c 9,7 · terracota/papel 6,3.
 * Tema claro travado: as cores são de marca e não invertem no modo escuro.
 * Raio: blocos e fotos 20px; botões em pílula.
 */

@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces.woff2") format("woff2");
  font-weight: 600 900;
  font-display: swap;
}

@font-face {
  font-family: "Outfit";
  src: url("fonts/outfit.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --verde: #0f4232;
  --creme: #f2ecdf;
  --creme-2: #b3c6bc;
  --papel: #faf7f0;
  --tinta: #1b2b24;
  --tinta-2: #4a5b53;
  --terracota: #a83010;
  --dourado: #f8c888;
  --bb-fundo: #fefdf9;
  --bb-verde: #0a5338;
  --bb-ouro: #fdd26c;
  --bb-tinta: #2c2c2c;
  --hid-fundo: #eef7fa;
  --hid-ciano: #00acd7;
  --hid-marinho: #063046;
  --raio: 20px;
  --display: "Fraunces", Georgia, serif;
  --texto: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--texto);
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

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

h1,
h2 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
}

h2 {
  font-size: clamp(2rem, 4.2vw, 3rem);
}

p {
  margin: 0;
}

.miolo {
  width: min(100% - 32px, 1200px);
  margin-inline: auto;
}

.pular {
  position: absolute;
  left: -9999px;
}

.pular:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  background: var(--dourado);
  color: var(--verde);
  padding: 8px 14px;
  border-radius: 999px;
}

/* Botões: pílula; um empurrão de 1px no clique. */
.botao {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.botao:hover {
  filter: brightness(1.08);
}

.botao:active {
  transform: translateY(1px);
}

.botao-ouro {
  background: var(--dourado);
  color: var(--verde);
}

.botao-verde {
  background: var(--verde);
  color: var(--creme);
}

.botao-bb {
  background: var(--bb-verde);
  color: #fff;
}

.botao-hid {
  background: var(--hid-marinho);
  color: #fff;
}

.acoes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  margin-top: 28px;
}

.acoes a:not(.botao) {
  font-weight: 500;
  text-underline-offset: 4px;
}

.redes {
  display: inline-flex;
  gap: 22px;
}

.selos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
}

.selos li {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgb(0 0 0 / 0.08);
}

.logo-marca {
  height: 26px;
  width: auto;
  margin-bottom: 22px;
}

/* O logo da Hidratei é quase quadrado (gota + nome): mais alto para pesar igual ao da BB. */
.hid .logo-marca {
  height: 48px;
}

/* Topo e abertura: o verde do grupo, com o logo "ei, beleza?" em branco. */
.topo,
.abertura,
.rodape {
  background: var(--verde);
  color: var(--creme);
}

.topo a:focus-visible,
.abertura a:focus-visible,
.rodape a:focus-visible {
  outline-color: var(--dourado);
}

.topo .miolo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.topo img {
  height: 44px;
  width: auto;
}

.topo nav {
  display: flex;
  gap: 20px;
}

.topo nav a {
  text-decoration: none;
  font-weight: 500;
}

.topo nav a:hover {
  color: var(--dourado);
}

.abertura {
  padding: 28px 0 64px;
  overflow: hidden;
}

.abertura .miolo {
  display: grid;
  gap: 44px;
}

.abertura h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
}

.abertura p {
  margin-top: 20px;
  font-size: clamp(1.1875rem, 1.6vw, 1.3125rem);
  line-height: 1.5;
  max-width: 34ch;
}

.fotos {
  position: relative;
  width: 100%;
  max-width: 540px;
  aspect-ratio: 1;
  justify-self: center;
}

.fotos img {
  position: absolute;
  object-fit: cover;
  border-radius: var(--raio);
  box-shadow: 0 24px 48px rgb(4 24 18 / 0.35);
}

.fotos .f1 {
  top: 0;
  left: 0;
  width: 74%;
  height: 92%;
}

.fotos .f2 {
  right: 0;
  bottom: 0;
  width: 48%;
  height: 60%;
  border: 6px solid var(--verde);
}

/* Beleza Brasileira: o creme e o dourado da loja, o logo dela e as fotos dela. */
.bb {
  background: var(--bb-fundo);
  color: var(--bb-tinta);
  padding: 64px 0;
}

.bb .miolo {
  display: grid;
  gap: 36px;
}

.bb-capa img {
  width: 100%;
  border-radius: var(--raio);
}

.bb-capa {
  margin: 0;
}

.bb-texto p {
  margin-top: 18px;
  max-width: 46ch;
}

.produtos {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 42%;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  list-style: none;
  margin: 0;
  padding: 16px;
  border-radius: var(--raio);
  background: var(--bb-ouro);
}

.produtos li {
  scroll-snap-align: start;
}

.produtos img {
  width: 100%;
  border-radius: 14px;
}

.produtos span {
  display: block;
  margin-top: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
}

/* Hidratei: o marinho e o ciano da loja, com as fotos de produto dela. */
.hid {
  background: var(--hid-fundo);
  color: var(--hid-marinho);
  padding: 64px 0;
  border-top: 6px solid var(--hid-ciano);
}

.hid .miolo {
  display: grid;
  gap: 36px;
}

.hid-texto p {
  margin-top: 18px;
  max-width: 46ch;
}

.hid-texto .nota {
  margin-top: 16px;
  font-size: 0.9375rem;
}

.grade {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.grade figure {
  margin: 0;
}

.grade img {
  width: 100%;
  border-radius: 14px;
  background: #fff;
}

.grade figcaption {
  margin-top: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
}

.grade .grande {
  grid-column: 1 / -1;
}

.grade .grande img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--raio);
}

/* A empresa: dados, atendimento e revenda. */
.empresa {
  padding: 72px 0;
}

.empresa .miolo {
  display: grid;
  gap: 36px;
}

.empresa .lead {
  margin-top: 18px;
  font-size: 1.1875rem;
  max-width: 44ch;
}

.dados {
  display: grid;
  gap: 24px;
  margin: 0;
}

.dados div {
  padding-top: 16px;
  border-top: 2px solid var(--verde);
}

.dados dt {
  font-weight: 700;
  margin-bottom: 4px;
}

.dados dd {
  margin: 0;
  color: var(--tinta-2);
}

.revenda {
  padding: 28px;
  border-radius: var(--raio);
  background: var(--creme);
}

.revenda h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1.15;
  margin: 0 0 10px;
}

.revenda .botao {
  margin-top: 20px;
}

/* Rodapé. */
.rodape {
  padding: 40px 0;
  font-size: 0.9375rem;
}

.rodape .miolo {
  display: grid;
  gap: 20px;
}

.rodape img {
  height: 56px;
  width: auto;
}

.rodape nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.rodape p {
  color: var(--creme-2);
}

/* Páginas de texto (privacidade, termos). */
.texto-legal {
  padding: 56px 0 72px;
}

.texto-legal .miolo {
  max-width: 72ch;
}

.texto-legal h1 {
  font-size: clamp(2.25rem, 4.5vw, 3rem);
}

.texto-legal h2 {
  font-size: 1.5rem;
  margin-top: 36px;
}

.texto-legal p,
.texto-legal li {
  margin-top: 12px;
}

.texto-legal .data {
  margin-top: 12px;
  color: var(--tinta-2);
}

.texto-legal section + section {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 2px solid var(--verde);
}

@media (min-width: 900px) {
  .abertura {
    padding: 48px 0 96px;
  }

  .abertura .miolo {
    grid-template-columns: 1.15fr 1fr;
    align-items: center;
  }

  .bb,
  .hid {
    padding: 96px 0;
  }

  .logo-marca {
    height: 34px;
  }

  .hid .logo-marca {
    height: 56px;
  }

  .bb .miolo {
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 48px 64px;
  }

  .produtos {
    grid-column: 1 / -1;
    grid-auto-flow: row;
    grid-template-columns: repeat(5, 1fr);
    overflow: visible;
    padding: 20px;
    gap: 16px;
  }

  .hid .miolo {
    grid-template-columns: 1fr 1.3fr;
    align-items: center;
    gap: 64px;
  }

  .grade {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }

  .grade .grande {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
  }

  .grade .grande img {
    aspect-ratio: auto;
    height: 100%;
  }

  .grade .grande {
    display: flex;
  }

  .empresa {
    padding: 104px 0;
  }

  .empresa .miolo {
    grid-template-columns: 1fr 1.2fr;
    gap: 40px 72px;
  }

  .dados {
    grid-template-columns: 1fr 1fr;
    gap: 28px 32px;
  }

  .revenda {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
  }

  .revenda .botao {
    margin-top: 0;
  }

  .rodape .miolo {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 40px;
  }

  .rodape nav {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .botao {
    transition: none;
  }
}
