:root {
  --bg-color: #030909;
  --header-bg-opaque: #030909;
  --header-bg-transparent: rgba(3, 9, 9, 0);
  --text-primary: #ffffff;
  --text-secondary: #a3a3a3;
  --accent-color: #d1b46a;
  /* Golden accent matching premium design */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --font-heading: 'Helvetica Now Text', sans-serif;
  --font-body: 'Helvetica Now Text', sans-serif;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #010303;
}

::-webkit-scrollbar-thumb {
  background: #1f2a2a;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color);
}

/* Header Styles */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-smooth);
  border-bottom: 1px solid rgba(255, 255, 255, 0);
}

.max-w-7xl {
  max-width: 1240px !important;
}

/* Header Transparent (Home Default) */
.site-header.is-transparent {
  background-color: var(--header-bg-transparent);
  padding: 30px 0;
  backdrop-filter: blur(0px);
}

/* Header Sticky / Scrolled & Other Pages */
.site-header.is-scrolled,
.site-header.not-home {
  background: radial-gradient(50% 224.55% at 50% 50%, #0A201D 0%, #030A0A 78.37%, #030909 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Logo Image transitions */
.logo-img {
  height: 56px; /* h-14 equivalent */
  transition: var(--transition-smooth);
}

.site-header.is-scrolled .logo-img,
.site-header.not-home .logo-img {
  height: 38px;
}

/* Nav Links hover effect */
.nav-link {
  position: relative;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  transition: var(--transition-smooth);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #ffffff;
  transition: var(--transition-smooth);
}

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

/* Contact Button */
.btn-contact {
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition-smooth);
}

.btn-contact:hover {
  border-color: var(--text-primary);
  background-color: var(--text-primary);
  color: var(--bg-color) !important;
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom,
      rgba(3, 9, 9, 0.9) 0%,
      rgba(3, 9, 9, 0.4) 30%,
      rgba(3, 9, 9, 0.2) 70%,
      rgba(3, 9, 9, 1) 100%);
  z-index: -1;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  padding: 0 24px;
}

.btn-gradient-green {
  background: linear-gradient(90deg, #1C5950 0%, #030A0A 100%);
  border: 1px solid rgba(28, 89, 80, 0.4);
  transition: var(--transition-smooth);
}

.btn-gradient-green:hover {
  border-color: rgba(28, 89, 80, 0.8);
  opacity: 0.9;
}

.radial-bg-section {
  background: radial-gradient(50% 224.55% at 50% 50%, #0A201D 0%, #030A0A 78.37%, #030909 100%);
}

.valores-section {
  background-color: #13443E;
}

/* Infinite Scroll Carousel */
.scroll-container {
  overflow: hidden;
  width: 100%;
  position: relative;
}

/* Left & Right gradient masks for smooth fade edges */
.scroll-container::before,
.scroll-container::after {
  content: '';
  position: absolute;
  top: 0;
  width: 150px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.scroll-container::before {
  left: 0;
  background: linear-gradient(to right, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.scroll-container::after {
  right: 0;
  background: linear-gradient(to left, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.scroll-content {
  display: flex;
  gap: 6rem;
  width: max-content;
  align-items: center;
  animation: scroll-loop 40s linear infinite;
}

@keyframes scroll-loop {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.carousel-logo {
  transition: var(--transition-smooth);
}

.carousel-logo:hover {
  transform: scale(1.05);
}

.footer-section {
  background: radial-gradient(50% 224.55% at 50% 50%, #0A201D 0%, #030A0A 78.37%, #030909 100%);
}

/* Floating WhatsApp Button & Popup */
.whatsapp-float-btn {
  background-color: #25d366;
  transition: var(--transition-smooth);
}

.whatsapp-float-btn:hover {
  background-color: #20ba5a;
  transform: scale(1.08);
}

.whatsapp-popup-card {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  animation: whatsapp-fade-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes whatsapp-fade-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Scroll Zoom Parallax Image */
.scroll-zoom-img {
  transition: transform 0.15s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

/* Custom Scroll-reveal Animations */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.active {
  opacity: 1;
  transform: translateY(0);
}

/* Sequential animation delays */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* Image zoom-in reveal effect */
.scale-up-image {
  overflow: hidden;
}
.scale-up-image img {
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.scale-up-image:hover img {
  transform: scale(1.04);
}

/* Card hover lift effect */
.card-hover-lift {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* Dynamic slide-in full-screen mobile menu */
.mobile-menu-overlay {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateX(100%);
  opacity: 0;
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  background-color: #1C5950 !important;
}
.mobile-menu-overlay.active {
  transform: translateX(0);
  opacity: 1;
}

/* Accessibility: prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll,
  .mobile-menu-overlay,
  .scale-up-image img,
  .card-hover-lift,
  .whatsapp-popup-card {
    transition: none !important;
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}