@font-face {
  font-family: "Phillips Muler";
  src: url("./fonts/Angelface.otf") format("opentype");
  font-display: swap;
}
@font-face {
  font-family: "Code Pro Black";
  src: url("./fonts/mundo-sans-std-medium.otf") format("opentype");
  font-display: swap;
}
@font-face {
  font-family: "Paul Slab";
  src: url("./fonts/paul-slab-semi-bold.otf") format("opentype");
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Paul Slab", serif;
  background: #faf0e6;
  color: #142042;
  overflow-x: hidden;
}

/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #142042 0%, #1a2d5a 100%);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("./imagens/BG1.png") center/cover no-repeat;
  opacity: 0.15;
  animation: bgChange 16s ease-in-out infinite alternate;
  will-change: background-image;
  content-visibility: auto;
}

/* Animação alternando entre BG1 e BG2 */
@keyframes bgChange {
  0% {
    background-image: url("./imagens/BG1.png");
  }
  50% {
    background-image: url("./imagens/BG2.png");
  }
  100% {
    background-image: url("./imagens/BG1.png");
  }
}

@keyframes zoomIn {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.1);
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 30% 50%,
    rgba(204, 166, 103, 0.1),
    transparent 50%
  );
}

.hero-content {
  position: relative;
  z-index: 50; /* Bem acima de tudo */
  text-align: center;
  padding: 20px;
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  font-family: "Phillips Muler", cursive;
  font-size: clamp(58px, 12vw, 80px);
  color: #cca667;
  margin-bottom: 10px;
  animation: fadeInUp 1s ease-out 0.3s both;
  text-shadow: 0 5px 20px rgba(204, 166, 103, 0.3);
  letter-spacing: 2px;
}

.hero-subtitle {
  font-family: "Code Pro Black", sans-serif;
  font-size: clamp(14px, 4vw, 18px);
  color: #faf0e6;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 50px;
  animation: fadeInUp 1s ease-out 0.6s both;
}

.cta-button {
  display: inline-block;
  padding: 20px 50px;
  background: #cca667;
  color: #142042;
  text-decoration: none;
  font-family: "Code Pro Black", sans-serif;
  font-size: 16px;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 50px;
  transition: all 0.4s ease;
  box-shadow: 0 10px 30px rgba(204, 166, 103, 0.3);
  animation: fadeInUp 1s ease-out 0.9s both, pulse 2s ease-in-out 2s infinite;
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.cta-button:hover::before {
  width: 300px;
  height: 300px;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.cta-button:hover {
  background: #142042;
  color: #cca667;
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(204, 166, 103, 0.5);
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  color: #cca667;
  font-size: 24px;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(10px);
  }
}

/* About Section */
.about {
  padding: 100px 20px;
  background: rgba(250, 240, 230, 0.98); /* Quase opaco mas deixa ver a cobra */
  position: relative;
  z-index: -2; /* BEM acima da cobra */
}

.section-title {
  font-family: "Phillips Muler", cursive;
  font-size: clamp(50px, 10vw, 80px);
  color: #142042;
  text-align: center;
  margin-bottom: 15px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 1px;
  z-index: 20;
}

.section-title.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-subtitle {
  font-family: "Code Pro Black", sans-serif;
  text-align: center;
  color: #cca667;
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 60px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 1s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.section-subtitle.visible {
  opacity: 1;
  transform: translateY(0);
}

.about-content {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}

.about-image {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  margin: 0 auto 40px;
  border: 6px solid #cca667;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(20, 32, 66, 0.2);
  opacity: 0;
  transform: scale(0.7) rotate(-10deg);
  transition: all 1s cubic-bezier(0.4, 0, 0.2, 1) 0.4s;
  position: relative;
  z-index: 10;
}

.about-image::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(204, 166, 103, 0.3),
    transparent
  );
  transform: rotate(45deg);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) rotate(45deg);
  }
}

.about-image.visible {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text {
  font-size: 16px;
  line-height: 1.9;
  color: #142042;
  margin-bottom: 25px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-text:nth-of-type(2) {
  transition-delay: 0.6s;
}

.about-text:nth-of-type(3) {
  transition-delay: 0.8s;
}

.about-text.visible {
  opacity: 1;
  transform: translateY(0);
}

/* #region Procedimentos Section */
/* Estrutura do flip card */
.proc-card {
  perspective: 1000px;
  height: 200px; /* Altura fixa para manter consistência */
}

.proc-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.proc-card-front,
.proc-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 25px;
  padding: 30px;
  background: rgba(250, 240, 230, 0.95);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);
}

.proc-card-back {
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(20, 32, 66, 0.95),
    rgba(26, 45, 90, 0.95)
  );
  overflow: hidden;
}

.proc-card-back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 25px;
}

.procedimentos {
  padding: 100px 20px;
  background: linear-gradient(
    180deg,
    rgba(250, 240, 230, 0.98) 0%,
    rgba(20, 32, 66, 0.98) 100%
  );
  position: relative;
  overflow: hidden;
  z-index: -2;
}

.procedimentos::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(
    to bottom,
    rgba(250, 240, 230, 0.98),
    transparent
  );
  z-index: 1; /* Dentro da própria section */
}

.procedimentos .section-title {
  color: #142042;
}

.proc-container {
  max-width: 600px;
  margin: 0 auto;
}

.proc-card {
  border-radius: 25px;
  margin-bottom: 25px;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateX(-100px) rotateY(-15deg);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.proc-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(204, 166, 103, 0.2),
    transparent
  );
  transition: left 0.7s ease;
}

.proc-card:hover::before {
  left: 100%;
}

.proc-card.visible {
  opacity: 1;
  transform: translateX(0) rotateY(0deg);
}

.proc-card:nth-child(even) {
  transform: translateX(100px) rotateY(15deg);
}

.proc-card:nth-child(even).visible {
  transform: translateX(0) rotateY(0deg);
}

.proc-card:hover:not(.flipped) {
  transform: translateY(-10px) scale(1.02);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: none !important;
}

.proc-card.flipped {
  transform: none !important;
}

.proc-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 15px;
}

.proc-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #cca667, #d4b580);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #142042;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 8px 20px rgba(204, 166, 103, 0.3);
  position: relative;
}

/* Estilo para a imagem dentro do ícone */
.proc-icon img {
  filter: brightness(0) saturate(100%) invert(10%) sepia(45%) saturate(2029%)
    hue-rotate(200deg) brightness(95%) contrast(101%);
  transition: filter 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.proc-icon::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 20px;
  border: 2px solid transparent;
  background: linear-gradient(135deg, #cca667, #142042) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.proc-card:hover:not(.flipped) .proc-icon {
  transform: rotate(360deg) scale(1.1);
  background: linear-gradient(135deg, #142042, #1a2d5a);
  color: #cca667;
}

.proc-card:hover:not(.flipped) .proc-icon img {
  filter: brightness(0) saturate(100%) invert(71%) sepia(13%) saturate(1066%)
    hue-rotate(358deg) brightness(92%) contrast(86%);
}

.proc-card:hover:not(.flipped) .proc-icon::after {
  opacity: 1;
}

.proc-name {
  font-family: "Code Pro Black", sans-serif;
  font-size: 19px;
  color: #142042;
  letter-spacing: 0.5px;
  flex: 1;
}

.proc-desc {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
  padding-left: 90px;
}

.proc-number {
  position: absolute;
  top: 15px;
  right: 20px;
  font-family: "Code Pro Black", sans-serif;
  font-size: 48px;
  color: rgba(204, 166, 103, 0.1);
  transition: all 0.3s ease;
}

.proc-card:hover:not(.flipped) .proc-number {
  color: rgba(204, 166, 103, 0.3);
  transform: scale(1.2);
}

/* #endregion */

/* #region galeria */
.galeria {
  padding: 100px 20px;
  background: rgba(20, 32, 66, 0.98);
  position: relative;
  overflow: hidden;
}

.galeria::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(204, 166, 103, 0.05) 0%,
    transparent 70%
  );
  animation: rotate 30s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.galeria .section-title {
  color: #cca667;
}

.galeria .section-subtitle {
  color: #faf0e6;
}

.galeria-slider {
  max-width: 500px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  height: 450px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  cursor: grab;
  user-select: none;
  touch-action: pan-y pinch-zoom;
}

.galeria-slider.grabbing {
  cursor: grabbing;
}

.galeria-track {
  display: flex;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  will-change: transform;
}

.galeria-track.dragging {
  transition: none;
}

.galeria-item {
  min-width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent; /* Remove highlight no mobile */
  touch-action: manipulation; /* Melhora responsividade no touch */
}

.galeria-slider.grabbing .galeria-item {
  cursor: grabbing;
}

.galeria-img-before,
.galeria-img-after {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.galeria-img-before {
  position: relative;
  z-index: 1;
}

.galeria-img-after-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  clip-path: circle(0% at 50% 50%);
  transition: clip-path 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.galeria-img-after-container.revealing {
  transition: clip-path 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.galeria-img-after-container.revealed {
  clip-path: circle(150% at var(--click-x, 50%) var(--click-y, 50%));
}

/* Indicador visual do clique */
.galeria-item {
  position: relative;
  overflow: hidden;
}

/* Círculo dinâmico de clique */
.galeria-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at var(--click-x, 50%) var(--click-y, 50%),
    rgba(204, 166, 103, 0.4) 0%,
    rgba(204, 166, 103, 0.15) 20%,
    transparent 50%
  );
  opacity: 0;
  pointer-events: none;
  z-index: 3;
  transition: opacity 0.3s ease;
  filter: blur(2px);
}

.galeria-item.clicking::after {
  opacity: 1;
  animation: pulseCircle 1s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Animação de expansão do círculo */
@keyframes pulseCircle {
  0% {
    background: radial-gradient(
      circle at var(--click-x, 50%) var(--click-y, 50%),
      rgba(255, 223, 150, 0.9) 0%,
      rgba(204, 166, 103, 0.6) 10%,
      transparent 20%
    );
    transform: scale(0.4);
    opacity: 1;
  }
  50% {
    background: radial-gradient(
      circle at var(--click-x, 50%) var(--click-y, 50%),
      rgba(255, 223, 150, 0.5) 0%,
      rgba(204, 166, 103, 0.3) 25%,
      transparent 50%
    );
    transform: scale(1.4);
    opacity: 0.7;
  }
  100% {
    background: radial-gradient(
      circle at var(--click-x, 50%) var(--click-y, 50%),
      rgba(204, 166, 103, 0) 0%,
      transparent 100%
    );
    transform: scale(2);
    opacity: 0;
  }
}

.galeria-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  background: linear-gradient(to top, rgba(20, 32, 66, 0.95), transparent);
  color: #faf0e6;
  font-size: 16px;
  text-align: center;
  font-family: "Code Pro Black", sans-serif;
  letter-spacing: 1px;
  z-index: 4;
}

.galeria-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
  position: relative;
  z-index: 10;
}

.galeria-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(204, 166, 103, 0.3);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border: 2px solid transparent;
}

.galeria-dot:hover {
  background: rgba(204, 166, 103, 0.6);
  transform: scale(1.2);
}

.galeria-dot.active {
  background: #cca667;
  transform: scale(1.4);
  border-color: rgba(250, 240, 230, 0.3);
}
/* #endregion */

/* Contato Section */
.contato {
  padding: 100px 20px;
  background: linear-gradient(
    135deg,
    rgba(250, 240, 230, 0.98) 0%,
    rgba(240, 226, 209, 0.98) 100%
  );
  position: relative;
  z-index: 10;
}

.contato-content {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  padding: 22px 45px;
  background: linear-gradient(135deg, #25d366, #20bd5a);
  color: white;
  text-decoration: none;
  font-family: "Code Pro Black", sans-serif;
  font-size: 18px;
  border-radius: 50px;
  transition: all 0.4s ease;
  box-shadow: 0 15px 40px rgba(37, 211, 102, 0.4);
  margin: 30px 0;
  position: relative;
  overflow: hidden;
}

.whatsapp-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.whatsapp-btn:hover::before {
  width: 400px;
  height: 400px;
}

.whatsapp-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 20px 50px rgba(37, 211, 102, 0.6);
}

.whatsapp-icon {
  font-size: 28px;
  animation: swing 2s ease-in-out infinite;
}

/* --- Efeito Slide Down-Up de caracteres --- */
.whatsapp-text {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
}

.whatsapp-text span {
  display: inline-block;
  transform: translateY(120%);
  opacity: 0;
}

.whatsapp-text.animate span {
  animation: slideDownUp 0.6s ease forwards;
}

@keyframes slideDownUp {
  0% {
    transform: translateY(120%);
    opacity: 0;
  }
  60% {
    transform: translateY(-10%);
    opacity: 1;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes swing {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(15deg);
  }
  75% {
    transform: rotate(-15deg);
  }
}

.info-box {
  background: white;
  padding: 40px 30px;
  border-radius: 25px;
  box-shadow: 0 15px 40px rgba(20, 32, 66, 0.15);
  margin-top: 50px;
  border: 1px solid rgba(204, 166, 103, 0.2);
}

.info-item {
  margin: 25px 0;
  font-size: 16px;
  color: #142042;
}

.info-label {
  font-family: "Code Pro Black", sans-serif;
  color: #cca667;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 3px;
  margin-bottom: 8px;
}

/* Footer */
footer {
  background: #142042;
  color: #faf0e6;
  text-align: center;
  padding: 50px 20px;
  font-size: 14px;
}

.footer-signature {
  font-family: "Phillips Muler", cursive;
  font-size: 42px;
  color: #cca667;
  margin-bottom: 15px;
}

.footer-text {
  font-family: "Code Pro Black", sans-serif;
  letter-spacing: 2px;
  font-size: 11px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

/* Floating Elements */
.floating-shape {
  position: fixed;
  pointer-events: none;
  z-index: 1;
}

.shape-1 {
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(204, 166, 103, 0.15), transparent);
  border-radius: 50%;
  top: 20%;
  left: 5%;
  animation: float 8s ease-in-out infinite;
}

.shape-2 {
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(20, 32, 66, 0.08), transparent);
  border-radius: 50%;
  bottom: 15%;
  right: 5%;
  animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) translateX(0px);
  }
  50% {
    transform: translateY(-30px) translateX(15px);
  }
}

/* Responsive */
@media (min-width: 768px) {
  .proc-container {
    max-width: 900px;
  }
}

/* Snake stripe que segue o scroll */
.scroll-snake {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 20; /* Acima do BG mas abaixo do conteúdo */
  overflow: hidden;
}

.snake-path {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
}

.snake-stripe {
  fill: none;
  stroke: #f3dbb4;
  stroke-width: 20;
  stroke-dasharray: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.25;
  filter: blur(1px) drop-shadow(0 0 10px rgba(204, 166, 103, 0.3));
  z-index: 10;
}
