* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --roxo:        #8b5fa8;
  --roxoMedio:   #5c2d8a;
  --roxoEscuro:  #1a0d2e;
  --dourado:     #c9a96e;
  --douradoClaro:#e8d5a0;
  --fundo:       #08060f;
  --titulo:      rgba(240, 225, 255, 0.92);
  --texto:       rgba(215, 185, 255, 0.70);
}

/* ============ FONTS ============ */
@font-face {
  font-family: "Clash";
  src: url(assets/fonts/ClashDisplay-Bold.ttf);
  font-weight: 700;
}
@font-face {
  font-family: "Clash";
  src: url(assets/fonts/ClashDisplay-Medium.ttf);
  font-weight: 500;
}
@font-face {
  font-family: "Clash";
  src: url(assets/fonts/ClashDisplay-Regular.ttf);
  font-weight: 400;
}
@font-face {
  font-family: "Clash";
  src: url(assets/fonts/ClashDisplay-Light.ttf);
  font-weight: 300;
}

/* ============ BASE ============ */
html, body {
  overflow-x: hidden;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--titulo);
  background-color: var(--fundo);
}

section {
  padding: 4vw;
}

h2 {
  font-size: 3.8vw;
  font-family: "Clash", "Inter", sans-serif;
  line-height: 5vw;
  font-weight: 400;
}

p {
  color: var(--texto);
}

/* ============ HEADER ============ */
header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2.5% 4vw;
  z-index: 99;
  transition: background 0.4s ease, backdrop-filter 0.4s ease;

  .logoHeader {
    height: 44px;
    width: 44px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(139, 95, 168, 0.5));
  }

  .nomeHeader {
    font-size: 18px;
    font-family: "Clash", "Inter", sans-serif;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--titulo);
  }
}

header.scrolled {
  background: rgba(8, 6, 15, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* ============ BUTTONS ============ */
.botaoPrimario {
  background-color: var(--dourado);
  color: rgba(0, 0, 0, 0.88);
  border-radius: 40px;
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 8px 8px 20px;
  font-size: 15px;
  font-weight: 600;
  gap: 12px;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;

  &:hover {
    opacity: 0.85;
    transform: translateY(-2px);
  }

  img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    flex-shrink: 0;
  }
}

.botaoSecundario {
  background-color: transparent;
  color: var(--titulo);
  border: 2px solid rgba(200, 160, 255, 0.25);
  border-radius: 40px;
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 8px 8px 20px;
  font-size: 15px;
  gap: 12px;
  height: 68px;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;

  &:hover {
    border-color: rgba(200, 160, 255, 0.55);
    transform: translateY(-2px);
  }

  img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    flex-shrink: 0;
  }
}

.botoes {
  display: flex;
  gap: 24px;
  align-items: center;
}

/* ============ PRELOADER ============ */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--roxoEscuro);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 28px;
  z-index: 9999;

  .preloader-logo img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    animation: pulseLogo 1.6s ease-in-out infinite;
    filter: drop-shadow(0 0 24px rgba(139, 95, 168, 0.8));
  }

  .preloader-text {
    font-size: 38px;
    color: var(--dourado);
    font-weight: 500;
    font-family: "Clash", "Inter", sans-serif;
  }
}

@keyframes pulseLogo {
  0%, 100% { transform: scale(1);   opacity: 0.8; }
  50%       { transform: scale(1.1); opacity: 1;   }
}

/* ============ HERO ============ */
main {
  width: 100%;
  height: 100lvh;
  overflow: hidden;
}

.hero {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

/* Fallback gradient when no video */
.hero .midiaBackground {
  background:
    radial-gradient(ellipse at 30% 90%, rgba(92, 45, 138, 0.5) 0%, transparent 55%),
    radial-gradient(ellipse at 70% 10%, rgba(139, 95, 168, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(26, 13, 46, 1) 0%, var(--fundo) 100%);
}

.midiaBackground {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;

  &::before {
    content: "";
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--fundo) 10%, rgba(8, 6, 15, 0) 60%);
    position: absolute;
    inset: 0;
    z-index: 1;
  }

  img, video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    bottom: 0;
    left: 0;
    transition: opacity 0.6s ease;
  }
}

.hero .conteudo {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Card badge */
.cardSubtitulo {
  width: 310px;
  height: 48px;
  position: relative;
  border-radius: 40px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(26, 10, 46, 0.55);

  &::before {
    content: "";
    width: 100%;
    height: 100%;
    background-color: rgba(26, 10, 46, 0.5);
    position: absolute;
    z-index: 1;
    border-radius: 40px;
    box-shadow:
      -1px -2px 0 0 rgba(200, 160, 255, 0.2) inset,
       1px  2px 0 0 rgba(200, 160, 255, 0.2) inset;
  }

  video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
  }

  h3 {
    position: relative;
    z-index: 2;
    font-size: 13px;
    color: var(--douradoClaro);
    mix-blend-mode: color-dodge;
    font-weight: 500;
    letter-spacing: 0.12em;
  }
}

/* Hero logo */
.logoHero {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin: 2.5vw 0 1.5vw;
  filter: drop-shadow(0 0 40px rgba(139, 95, 168, 0.65));
}

.hero .conteudo h2 {
  margin: 0.5vw 0 2vw;
  width: 72vw;
  text-align: center;
}

.hero .conteudo p {
  font-size: clamp(14px, 1.05vw, 20px);
  line-height: 1.7;
  text-align: center;
  width: 50vw;
  margin-bottom: 40px;
}

/* Transition columns */
.transition {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 9;
  display: flex;
  pointer-events: none;

  div {
    width: 100%;
    height: 100%;
    background-color: var(--fundo);
  }
}

/* ============ TEXTO TRANSIÇÃO ============ */
.textoTransicao {
  width: 100%;
  height: 100lvh;
  position: absolute;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4vw;
  pointer-events: none;

  p {
    font-size: 4.8vw;
    font-family: "Clash", "Inter", sans-serif;
    text-align: center;
    color: var(--titulo);
    line-height: 1.3;
  }
}

/* ============ SOBRE A MARCA ============ */
.sobre {
  width: 100%;
  background-color: var(--fundo);
  position: relative;
  z-index: 3;
  padding: 9vw 4vw;

  .sobre-conteudo {
    display: flex;
    align-items: center;
    gap: 7vw;
    max-width: 1400px;
    margin: 0 auto;
  }

  .sobre-texto {
    flex: 1;

    .tag {
      display: block;
      font-size: 13px;
      color: var(--dourado);
      letter-spacing: 0.18em;
      text-transform: uppercase;
      margin-bottom: 1.8vw;
    }

    h2 {
      margin-bottom: 2vw;
    }

    p {
      font-size: clamp(14px, 1.05vw, 19px);
      line-height: 1.85;
      margin-bottom: 1.2vw;
    }
  }

  .sobre-logo {
    position: relative;
    width: 300px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;

    img {
      width: 100%;
      position: relative;
      z-index: 1;
      filter: drop-shadow(0 0 60px rgba(139, 95, 168, 0.55));
    }

    .sobre-logo-glow {
      width: 280px;
      height: 280px;
      border-radius: 50%;
      background: radial-gradient(ellipse, rgba(139, 95, 168, 0.35) 0%, transparent 70%);
      position: absolute;
      z-index: 0;
    }
  }
}

/* ============ CONSULTAS & PERSONALIZADOS ============ */
.consultas,
.personalizados {
  width: 100%;
  padding: 0 0 6vw;
  background-color: var(--fundo);
  position: relative;
  z-index: 3;
  margin-top: -1px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 3.5vw;

  .titulo {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6vw 4vw 0;
    text-align: center;

    h2 { margin-bottom: 10px; }
    p { font-size: clamp(14px, 1vw, 18px); }
  }

  /* wrapper link — reset button styles */
  a.servico-link {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    border: none;
    outline: none;
    padding: 0;
    border-radius: 0;
    background: none;
  }

  a {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    padding: 0;
    border-radius: 0;
    background: none;
    border: none;
    outline: none;
  }

  .servico {
    width: 60%;
    height: 52vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-radius: 5vw;
    position: relative;
    cursor: pointer;

    .servico-bg {
      position: absolute;
      inset: 0;
      transition: transform 0.6s ease;
    }

    &:hover .servico-bg {
      transform: scale(1.04);
    }

    /* Gradients per service */
    .bg-tarot    { background: linear-gradient(135deg, #110820 0%, #4a1f7a 60%, #2d1050 100%); }
    .bg-mapa     { background: linear-gradient(135deg, #081020 0%, #1a3a6e 60%, #0d2040 100%); }
    .bg-espiritual { background: linear-gradient(135deg, #200808 0%, #6e2020 60%, #401010 100%); }
    .bg-limpeza  { background: linear-gradient(135deg, #082010 0%, #1e6040 60%, #0a3020 100%); }
    .bg-banho    { background: linear-gradient(135deg, #150822 0%, #5c2880 60%, #2d1055 100%); }
    .bg-vela     { background: linear-gradient(135deg, #201008 0%, #7a4a18 60%, #4a2808 100%); }
    .bg-kit      { background: linear-gradient(135deg, #0a1808 0%, #3a6018 60%, #1e3808 100%); }

    .servico-info {
      position: relative;
      z-index: 2;
      padding: 2.5vw 3vw;
      background: linear-gradient(0deg, rgba(8, 6, 15, 0.92) 0%, transparent 100%);

      span {
        font-size: 11px;
        color: var(--dourado);
        letter-spacing: 0.22em;
        font-weight: 500;
      }

      h3 {
        font-family: "Clash", "Inter", sans-serif;
        font-size: clamp(20px, 2vw, 38px);
        font-weight: 500;
        margin: 0.6vw 0 0.4vw;
        color: var(--titulo);
      }

      p {
        font-size: clamp(13px, 0.9vw, 17px);
        max-width: 600px;
        opacity: 0;
        transform: translateY(8px);
        transition: opacity 0.3s ease, transform 0.3s ease;
        color: var(--texto);
      }
    }

    &:hover .servico-info p {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* ============ LOJA VIRTUAL ============ */
.loja {
  width: 100%;
  background-color: var(--fundo);
  position: relative;
  z-index: 3;
  padding: 8vw 4vw 10vw;

  .titulo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 4vw;

    h2 { margin-bottom: 10px; }
    p  { font-size: clamp(14px, 1vw, 18px); text-align: center; }
  }

  .produtos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.8vw;
    max-width: 1400px;
    margin: 0 auto;
  }

  .produto {
    border-radius: 1.8vw;
    overflow: hidden;
    border: 1px solid rgba(139, 95, 168, 0.18);
    background: rgba(26, 13, 46, 0.45);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;

    &:hover {
      transform: translateY(-10px);
      border-color: rgba(201, 169, 110, 0.4);
      box-shadow: 0 20px 50px rgba(139, 95, 168, 0.2);
    }

    .produto-img {
      width: 100%;
      aspect-ratio: 1 / 1;

      &.p-sal     { background: radial-gradient(ellipse at 40% 40%, #6a4a8a 0%, #1a0d2e 100%); }
      &.p-incenso { background: radial-gradient(ellipse at 40% 40%, #7a5a30 0%, #2e1a08 100%); }
      &.p-banho   { background: radial-gradient(ellipse at 40% 40%, #2a4a7a 0%, #0d1a30 100%); }
      &.p-vela    { background: radial-gradient(ellipse at 40% 40%, #6a2a7a 0%, #2e0d30 100%); }
    }

    .produto-info {
      padding: 1.4vw 1.6vw 1.8vw;
      display: flex;
      flex-direction: column;
      gap: 0.7vw;

      h3 {
        font-family: "Clash", "Inter", sans-serif;
        font-size: clamp(13px, 1vw, 19px);
        font-weight: 500;
        color: var(--titulo);
        line-height: 1.3;
      }

      p {
        font-size: clamp(11px, 0.82vw, 15px);
        line-height: 1.5;
        color: var(--texto);
      }

      .preco {
        font-family: "Clash", "Inter", sans-serif;
        font-size: clamp(15px, 1.2vw, 22px);
        color: var(--dourado);
        font-weight: 500;
        margin-top: 0.3vw;
      }

      .comprar {
        font-size: 13px;
        padding: 5px 5px 5px 14px;
        align-self: flex-start;
        margin-top: 0.4vw;

        img {
          width: 40px;
          height: 40px;
        }
      }
    }
  }
}

/* ============ 3D SECTION ============ */
.div3d {
  margin-top: -1px;
  padding: 0;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--fundo);

  canvas {
    position: absolute;
    height: 100% !important;
  }

  h2 {
    position: absolute;
    font-size: 12vw;
    color: var(--titulo);
    text-align: center;
  }
}

.animations {
  width: 100%;
  min-height: 100vh;
  position: relative;
}

/* ============ FOOTER ============ */
footer {
  width: 100%;
  height: 100%;
  display: flex;
  padding: 4vw;
  position: absolute;
  align-items: flex-end;
  gap: 32px;
  z-index: 9;
  top: 0;
  left: 0;
  background-color: var(--fundo);

  .midiaBackground {
    background:
      radial-gradient(ellipse at 50% 0%, rgba(92, 45, 138, 0.4) 0%, var(--fundo) 65%);

    img, video { top: 0; bottom: auto; }
  }

  .marcaFooter,
  .conteudo {
    position: relative;
    width: 50%;
  }

  .marcaFooter {
    display: flex;
    flex-direction: column;

    h2 {
      font-size: 9vw;
      line-height: 11vw;

      b {
        color: var(--dourado);
        font-weight: 700;
      }
    }

    div {
      display: flex;
      gap: 20px;
      margin-top: 1vw;

      p { font-size: 13px; }

      a {
        text-decoration: none;
        padding: 0;
        border-radius: 0;
        background: none;
        border: none;
        font-size: 13px;
        color: var(--texto);

        &:hover { color: var(--dourado); }
      }
    }
  }

  .conteudo {
    display: flex;
    flex-direction: column;
    align-items: flex-end;

    h2 {
      text-align: end;
      font-size: 3vw;
      line-height: 3.3vw;
      margin-bottom: clamp(28px, 2vw, 40px);
    }
  }
}

/* ============ DECORATIVE LINE ============ */
.separador {
  width: calc(100% - 8vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 95, 168, 0.3), transparent);
  margin: 0 auto;
}

/* ============ RESPONSIVO ============ */
@media (max-width: 1250px) {
  footer .marcaFooter div { flex-direction: column; gap: 6px; }
}

@media (max-width: 1200px) {
  .hero .conteudo h2 { width: 100%; font-size: 4.5vw; }
  .loja .produtos-grid { grid-template-columns: repeat(2, 1fr); }
  .loja .produto .produto-info { padding: 2.5vw; gap: 1.5vw; }
}

@media (max-width: 1004px) {
  footer {
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 60px;
    padding: 60px 20px;

    .conteudo {
      align-items: center;
      width: 100%;
      h2 { text-align: center; }
    }

    .marcaFooter {
      order: 2;
      div { align-items: center; }
    }

    .marcaFooter,
    .conteudo { justify-content: center; align-items: center; width: 100%; }
  }
}

@media (max-width: 900px) {
  h2,
  .hero .conteudo h2,
  footer .conteudo h2 {
    font-size: 6.4vw;
    line-height: 7vw;
  }

  .hero .conteudo p { width: 100%; }

  .sobre .sobre-conteudo { flex-direction: column; gap: 8vw; }
  .sobre .sobre-logo { width: 220px; }

  .consultas .servico .servico-info h3,
  .personalizados .servico .servico-info h3 { font-size: 4.5vw; }

  .loja .produto .produto-info {
    padding: 3vw;
    h3 { font-size: 2.5vw; }
    p  { font-size: 2vw; }
    .preco { font-size: 3vw; }
  }
}

@media (max-width: 600px) {
  header { padding: 28px 4vw; }

  .botoes { flex-direction: column; gap: 14px; }

  .hero {
    padding: 40px 4vw 4vw;

    .conteudo {
      align-items: flex-start;

      .logoHero {
        width: 110px;
        height: 110px;
        margin: 20px auto 12px;
      }

      .cardSubtitulo { margin: 0 auto; }

      h2, p { text-align: left; }
      h2 { margin: 16px 0 14px; font-size: 7.5vw; line-height: 9vw; }
      p  { margin-bottom: 22px; font-size: 4vw; }
    }

    .midiaBackground { width: 220vw; right: 0; left: auto; }

    .transition div:nth-child(n+6) { display: none; }
  }

  .textoTransicao p { font-size: 6.5vw; width: 100%; }

  .sobre .sobre-logo { display: none; }
  .sobre .sobre-texto h2 { font-size: 7vw; line-height: 8.5vw; }
  .sobre .sobre-texto .tag { font-size: 11px; }

  .consultas .servico,
  .personalizados .servico {
    height: 42vh;

    .servico-info h3 { font-size: 6vw; }
    .servico-info p  { opacity: 1; transform: none; font-size: 3.5vw; }
  }

  .loja {
    padding: 12vw 4vw;

    .produtos-grid {
      grid-template-columns: 1fr;
      gap: 6vw;
    }

    .produto {
      border-radius: 5vw;

      .produto-info {
        padding: 5vw;
        gap: 3vw;

        h3    { font-size: 4.5vw; }
        p     { font-size: 3.5vw; }
        .preco { font-size: 5.5vw; }
      }
    }
  }

  footer {
    gap: 40px;
    padding: 60px 20px;

    .conteudo {
      align-items: flex-start;
      h2 { font-size: 9vw; line-height: 10.5vw; text-align: left; }
    }

    .midiaBackground { width: 220vw; left: 0; }

    .marcaFooter {
      width: 100%;
      h2 { font-size: 21vw; line-height: 23vw; }
      div { margin-top: 10px; gap: 4px; flex-direction: column; align-items: flex-start; }
    }
  }
}
