/* ============================================================
   BASE — Exotic Detail
   ============================================================ */
body {
  background-color: var(--black);
  color: var(--gray-1);
  font-family: var(--f-body);
  font-size: var(--t-body);
  font-weight: 400;
  letter-spacing: 0.3px;
}

/* Ensure main and HTML do not restrict sticky scroll layout */
html, body {
  overflow-x: visible !important;
  max-width: 100%;
}

main {
  display: block;
  opacity: 1;
  overflow: visible;
  position: relative;
}

/* ---- Shared layout ---- */
.section {
  padding: var(--section-pad-y) var(--section-pad-x);
  position: relative;
}

/* Stacking de seções nativo via CSS Sticky (Alta Performance) */
.section {
  padding: var(--section-pad-y) var(--section-pad-x);
  position: relative;
  background: var(--dark-1);
}

  /* Aplicamos 'sticky' a TODAS as seções para que o site inteiro
     haja como cartas escorregando, como no projeto Alvaro. 
     Aplicado globalmente (Desktop & Mobile) */
  #hero, 
  #sobre, 
  #equipe, 
  #servicos, 
  #servico-vitrificacao, 
  #servico-polimento, 
  #servico-higienizacao, 
  #servico-descontaminacao, 
  #servico-cristalizacao, 
  #servico-lavagem,
  #galeria,
  #contato {
    position: sticky;
    top: 0;
  }

  /* Z-Index Hierarchy: O z-index crescente faz as seções deslizarem umas por cima das outras */
  #hero { z-index: 1; background: var(--black); }
  #sobre { z-index: 2; background: var(--dark-1); }
  #equipe { z-index: 3; background: var(--dark-2); }
  #servicos { z-index: 4; background: var(--dark-1); }
  
  /* O Piling mágico dos serviços */
  #servico-vitrificacao { z-index: 5; background: var(--dark-2); }
  #servico-polimento { z-index: 6; background: var(--dark-1); }
  #servico-higienizacao { z-index: 7; background: var(--dark-2); }
  #servico-descontaminacao { z-index: 8; background: var(--dark-1); }
  #servico-cristalizacao { z-index: 9; background: var(--dark-2); }
  #servico-lavagem { z-index: 10; background: var(--dark-1); }
  
  #galeria { z-index: 11; background: var(--dark-2); }
  #contato { z-index: 12; background: var(--dark-1); }
  #agendamento { z-index: 13; background: var(--dark-2); }
  #site-footer { position: relative; z-index: 14; background: var(--black); }

.section-dark  { background: var(--dark-1); }
.section-light { background: var(--dark-2); }

.section-inner {
  max-width: var(--inner-max);
  margin: 0 auto;
}

/* ---- Typography helpers ---- */
.t-red { color: var(--red); }

.sec-title {
  font-family: var(--f-display);
  font-size: var(--t-h2);
  line-height: 1;
  letter-spacing: 3px;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.sec-sub {
  font-family: var(--f-body);
  font-size: 16px;
  font-weight: 400;
  color: var(--gray-3);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 56px;
  letter-spacing: 0.3px;
}

.sec-label {
  font-family: var(--f-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
  display: block;
}

/* ---- Decorative rules ---- */
.rule-red {
  width: 48px;
  height: 2px;
  background: var(--red);
  margin-bottom: 32px;
}

/* ---- Buttons ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--red);
  color: var(--white);
  font-family: var(--f-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 16px 32px;
  border-radius: var(--radius-btn);
  transition: background var(--t-fast) ease, transform var(--t-fast) ease;
  will-change: transform;
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--white);
  font-family: var(--f-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 15px 31px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-btn);
  transition: border-color var(--t-fast) ease, color var(--t-fast) ease, transform var(--t-fast) ease;
  will-change: transform;
  white-space: nowrap;
}

.btn-ghost:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-2px);
}

.btn-ghost:active {
  transform: translateY(0) scale(0.98);
}

/* ---- Custom cursor (desktop only) ---- */
#custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  background: var(--red);
  border-radius: 50%;
  pointer-events: none;
  z-index: var(--z-cursor);
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
  will-change: transform;
}

#custom-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(227,30,36,0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: var(--z-cursor);
  transform: translate(-50%, -50%);
  transition: width 0.4s var(--ease-out-expo), height 0.4s var(--ease-out-expo), opacity 0.3s ease;
  will-change: transform;
}

#custom-cursor.cursor-hover {
  width: 6px;
  height: 6px;
}

#custom-cursor-ring.cursor-hover {
  width: 56px;
  height: 56px;
  border-color: rgba(227,30,36,0.8);
}
