/* Procura X — Official palette: black + gold */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: #0A0A0A;
  color: #F5F5F5;
  font-family: 'Inter', system-ui, sans-serif;
  overflow-x: hidden;
  margin: 0;
  min-width: 0;
}
img { max-width: 100%; height: auto; }

.gradient-gold {
  background: linear-gradient(135deg, #D4AF37 0%, #E8C547 50%, #B8942E 100%);
}
.text-gradient-gold {
  background: linear-gradient(135deg, #F5E6A3, #E8C547, #D4AF37);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.card-hover {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
@media (hover: hover) {
  .card-hover:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -12px rgba(212, 175, 55, 0.18);
    border-color: rgba(212, 175, 55, 0.35) !important;
  }
}
.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: #D4AF37;
  transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }
.hero-bg {
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(212, 175, 55, 0.14), transparent),
    radial-gradient(ellipse 50% 40% at 90% 50%, rgba(212, 175, 55, 0.06), transparent),
    #0A0A0A;
}
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.35), transparent);
}
.glass {
  background: rgba(26, 26, 26, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(212, 175, 55, 0.12);
}
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #111; }
::-webkit-scrollbar-thumb { background: #D4AF37; border-radius: 4px; }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.logo-icon {
  filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.4));
}

.wa-float {
  position: fixed;
  bottom: max(16px, env(safe-area-inset-bottom, 16px));
  right: max(16px, env(safe-area-inset-right, 16px));
  z-index: 60;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s ease;
  animation: pulse-wa 2.5s infinite;
}
.wa-float:hover { transform: scale(1.08); }
@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 8px 32px rgba(37, 211, 102, 0.65); }
}

.form-input {
  background: rgba(26,26,26,0.9);
  border: 1px solid rgba(255,255,255,0.08);
  transition: border-color 0.3s, box-shadow 0.3s;
  font-size: 16px; /* prevents iOS zoom on focus */
}
.form-input:focus {
  outline: none;
  border-color: #D4AF37;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}
.success-msg { display: none; }
.success-msg.show { display: block; }

.page-hero {
  padding-top: 120px;
  padding-bottom: 40px;
  background:
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(212, 175, 55, 0.1), transparent),
    #0A0A0A;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 9999px;
  padding: 2px;
  font-size: 12px;
  font-weight: 600;
}
.lang-switch a {
  padding: 4px 10px;
  border-radius: 9999px;
  color: #9ca3af;
  transition: all 0.2s;
  text-decoration: none;
}
.lang-switch a:hover { color: #E8C547; }
.lang-switch a.active {
  background: linear-gradient(135deg, #D4AF37, #E8C547);
  color: #0A0A0A;
}

.gold-line {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, #D4AF37, #E8C547);
  border-radius: 2px;
}

/* ========== MOBILE ========== */
@media (max-width: 767px) {
  .page-hero {
    padding-top: 100px;
    padding-bottom: 28px;
  }
  .page-hero h1 {
    font-size: 1.65rem !important;
    line-height: 1.25 !important;
  }
  .hero-bg {
    min-height: auto;
    padding-bottom: 2.5rem;
  }
  .hero-bg .logo-icon,
  .hero-logo {
    height: 5.5rem !important;
    max-width: 85vw;
  }
  .wa-float {
    width: 48px;
    height: 48px;
    bottom: max(12px, env(safe-area-inset-bottom));
    right: max(12px, env(safe-area-inset-right));
  }
  .wa-float svg {
    width: 1.5rem;
    height: 1.5rem;
  }
  /* Methodology 5 steps: stack cleaner on mobile */
  .method-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 1rem !important;
  }
  .method-grid > :last-child {
    grid-column: 1 / -1;
  }
  /* Touch-friendly buttons */
  a.px-8.py-4 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-top: 0.875rem;
    padding-bottom: 0.875rem;
    font-size: 0.95rem;
  }
  /* Reduce section title sizes on mobile */
  section h2.font-display {
    font-size: 1.5rem !important;
    line-height: 1.3 !important;
  }
  /* Nav logo slightly smaller on small phones */
  #navbar img.logo-icon {
    height: 2.75rem !important;
  }
  /* Mobile menu full width links */
  #mobile-menu a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  #mobile-menu a.rounded-full {
    justify-content: center;
  }
}

@media (max-width: 380px) {
  .page-hero h1,
  .hero-bg h1 {
    font-size: 1.45rem !important;
  }
  .hero-bg .logo-icon {
    height: 4.5rem !important;
  }
}

@media (min-width: 768px) {
  .wa-float {
    width: 58px;
    height: 58px;
    bottom: 28px;
    right: 28px;
  }
  .page-hero {
    padding-top: 140px;
    padding-bottom: 56px;
  }
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .wa-float { animation: none; }
}
