/* Dom Royale — páginas estáticas (recriadas a partir do Elementor original) */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  color: #000;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

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

p { margin: 0 0 .9em; }
p:last-child { margin-bottom: 0; }

.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;
}

/* ---------- Seção principal (fundo + caixa de conteúdo) ---------- */
.hero {
  display: flex;
  flex-direction: column;
  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover;
}

.hero__inner {
  width: 100%;
  max-width: var(--content-width, 1140px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--gap, 20px);
}

/* ---------- Animações de entrada (equivalentes às do Elementor) ---------- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInLeft {
  from { opacity: 0; transform: translate3d(-100%, 0, 0); }
  to   { opacity: 1; transform: none; }
}
.anim-fade { animation: fadeIn 1.25s both; }
.anim-left { animation: fadeInLeft 1.25s both; }
.d200 { animation-delay: .2s; }
.d300 { animation-delay: .3s; }
.d400 { animation-delay: .4s; }
.d500 { animation-delay: .5s; }

@media (prefers-reduced-motion: reduce) {
  .anim-fade, .anim-left { animation: none; }
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  background: #000;
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  border-radius: 3px;
  transition: background-color .3s, color .3s, transform .3s;
}
.btn svg { width: 1em; height: 1em; fill: currentColor; flex: none; }
.btn:hover, .btn:focus-visible { background: #7a7a7a; color: #fff; }
.btn:focus-visible { outline: 2px solid #000; outline-offset: 3px; }

.btn--grow:hover, .btn--grow:focus-visible { transform: scale(1.1); }

@keyframes pulseGrow { to { transform: scale(1.1); } }
.btn--pulse:hover, .btn--pulse:focus-visible {
  animation: pulseGrow .3s linear infinite alternate;
}

/* =================================================================
   HOME — "Seja um Parceiro Revendedor" (formulário)
   ================================================================= */
.page-home .hero {
  min-height: 911px;
  justify-content: center;
  padding: 0 0 176px 101px;
  background-image: url("/assets/img/bg-home-desktop.webp");
  --content-width: 1280px;
  --gap: 7px;
}

.page-home .logo { width: 13%; padding-bottom: 15px; }
.page-home .logo img { width: 100%; }

.page-home h1 {
  width: 33%;
  margin: 0;
  font-size: 42px;
  font-weight: 600;
  line-height: 1.2;
}

.page-home .lead-text {
  width: 36%;
  font-size: 22px;
  font-weight: 300;
  line-height: 27px;
}

.lead-form { width: 35%; }

.lead-form .field { margin-bottom: 5px; }

.lead-form label {
  display: block;
  color: #979797;
  font-size: 15px;
  line-height: 1.3;
}

.lead-form input {
  width: 100%;
  font-family: inherit;
  font-size: 13px;
  color: #444;
  background: rgba(255, 255, 255, .9);
  border: 1px solid #a0a0a0;
  border-radius: 32px;
  padding: 6px 14px;
  min-height: 40px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.lead-form input::placeholder { color: #bbb; }
.lead-form input:focus { border-color: #000; box-shadow: 0 0 0 2px rgba(0, 0, 0, .08); }
.lead-form input[aria-invalid="true"] { border-color: #c0392b; }

.lead-form .btn {
  width: 100%;
  margin-top: 5px;
  padding: 12px 24px;
  font-family: "Poppins", sans-serif;
  border-radius: 36px;
}
.lead-form .btn[disabled] { opacity: .7; cursor: progress; animation: none; }

.form-msg {
  min-height: 1.2em;
  margin-top: 8px;
  font-size: 13px;
  color: #c0392b;
}

/* Tablet e mobile: fundo vertical. A foto ocupa o 1º terço da imagem
   (1080x1920) e o resto é branco. Imagem fixada pela largura: o branco
   começa em ~61vw, então o conteúdo começa ali e a logo nunca fica
   sobre as peças (no original ela ficava escondida). */
@media (max-width: 1024px) {
  .page-home .hero {
    min-height: 100vh;
    min-height: 100svh;
    justify-content: flex-start;
    padding: 61vw 0 32px;
    background-color: #fff;
    background-image: url("/assets/img/bg-home-mobile.webp");
    background-position: top center;
    background-size: 100% auto;
    --content-width: 632px;
  }
  .page-home .hero__inner { align-items: center; }
  .page-home .logo { width: 110px; padding: 0 0 6px; }
  .page-home h1 { width: 100%; text-align: center; }
  .page-home .lead-text { width: 420px; max-width: 90%; text-align: center; }
  .lead-form { width: 407px; max-width: 90%; }
}

@media (max-width: 767px) {
  .page-home .logo { width: 78px; padding: 0 0 4px; }
  .page-home h1 { width: 100%; text-align: center; font-size: 27px; }
  .page-home .lead-text { width: 75%; text-align: center; font-size: 15px; line-height: 1.4; }
  .lead-form { width: 79%; }
}

/* =================================================================
   ATENDIMENTO — /bio e /whatsapp (obrigado)
   ================================================================= */
.page-atendimento .hero {
  min-height: 904px;
  padding-top: 201px;
  background-image: url("/assets/img/bg-atendimento-desktop.webp");
}

.page-atendimento .logo { width: 11%; padding-bottom: 25px; }
.page-atendimento .logo img { width: 100%; }

.page-atendimento h1 {
  margin: 0;
  font-size: 52px;
  font-weight: 800;
  line-height: 1.2;
}

.page-atendimento .cta-text {
  width: 28%;
  font-size: 27px;
  line-height: 31px;
}

.page-atendimento .btn { padding: 10px 75px; line-height: 1.5; }
.page-whatsapp .btn { padding: 10px 40px; }

@media (max-width: 1024px) {
  .page-atendimento .hero__inner { align-items: center; }
  .page-atendimento .cta-text { width: 499px; max-width: 100%; text-align: center; }
  .page-atendimento .hero {
    /* Mesmo esquema da home: foto no topo, branco a partir de ~61vw */
    min-height: 100vh;
    min-height: 100svh;
    padding: 61vw 0 32px;
    justify-content: flex-start;
    background-color: #fff;
    background-image: url("/assets/img/bg-atendimento-mobile.webp");
    background-size: 100% auto;
  }
  .page-atendimento .logo { width: 160px; padding-bottom: 20px; }
}

@media (max-width: 767px) {
  .page-atendimento .logo { width: 125px; }
  .page-atendimento h1 { width: 100%; text-align: center; font-size: 36px; }
  .page-atendimento .cta-text { width: 100%; font-size: 21px; line-height: 1.1; }
  .page-atendimento .cta-text p { margin-bottom: 10px; }
  .page-atendimento .btn {
    width: 215px;
    font-size: 12px;
    line-height: 1.3;
    padding: 10px 25px;
  }
  .page-whatsapp .btn { font-size: 11px; padding: 10px 20px; }
}
