/* Base */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  font-family: Montserrat, ui-sans-serif, system-ui, sans-serif;
}

/* Hero */
.hero-bg {
  background-image: url('../images/bg_hero.webp');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* Segmentos */
.segment-hero {
  background-image: linear-gradient(to right, rgba(26, 26, 26, .92) 0%, rgba(26, 26, 26, .78) 55%, rgba(26, 26, 26, .55) 100%), url('../images/bg-sec.webp');
  background-size: cover;
  background-position: center right;
}

/* Prose (política de privacidade) */
.prose-section h2 {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.prose-section p,
.prose-section li {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #525252;
}

.prose-section ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-top: 0.5rem;
}

.prose-section li + li {
  margin-top: 0.35rem;
}

/* Nav */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: #c5a044;
  transition: width .25s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Formulário */
.input-field {
  width: 100%;
  border-radius: 0.75rem;
  background: #ececec;
  border: 0;
  padding: 0.95rem 1.1rem;
  color: #1a1a1a;
  outline: none;
  transition: box-shadow .2s ease, background .2s ease;
}

.input-field:focus {
  background: #f5f5f5;
  box-shadow: 0 0 0 2px rgba(197, 160, 68, .45);
}

.input-field.is-invalid {
  background: #fff8f8;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, .4);
}

.input-field.is-invalid:focus {
  box-shadow: 0 0 0 2px rgba(220, 38, 38, .5);
}

.field-error {
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: #dc2626;
}

.field-error[hidden] {
  display: none;
}

/* Drawer */
#drawer-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

#drawer.is-open {
  transform: translateX(0);
}

body.drawer-open {
  overflow: hidden;
}

/* WhatsApp flutuante */
#WAButton {
  position: fixed;
  z-index: 9999;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  background-color: #0ba360;
  transition: .3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

#WAButton a {
  display: flex;
  position: relative;
  z-index: 99;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

#WAButton::after,
#WAButton::before {
  pointer-events: none;
  content: '';
  position: absolute;
  opacity: 0;
  border: 4px solid #0ba360;
  left: -10px;
  top: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 50%;
  animation: WaveWhatsApp 1.5s ease infinite;
}

#WAButton::after {
  animation-delay: .5s;
}

#WAButton:hover::after,
#WAButton:hover::before {
  border-color: #15cc74;
}

@keyframes WaveWhatsApp {
  0% { transform: scale(0.5); }
  50% { opacity: 1; }
  100% { transform: scale(1.2); opacity: 0; }
}
