/* ========================================
   CSS Global - Piscinas VIP
   ======================================== */

/* Variáveis de Cores e Design Tokens */
:root {
  /* Cores Principais */
  --color-primary: #00a8e8;        /* Azul Piscina */
  --color-primary-dark: #0084b4;
  --color-primary-light: #4fc3f7;
  
  --color-secondary: #FFA600;      /* Amarelo Solar */
  --color-secondary-dark: #ffb300;
  --color-secondary-light: #FFA600;
  
  /* Cores Neutras */
  --color-white: #ffffff;
  --color-gray-50: #fafafa;
  --color-gray-100: #f5f5f5;
  --color-gray-200: #eeeeee;
  --color-gray-300: #e0e0e0;
  --color-gray-400: #bdbdbd;
  --color-gray-500: #9e9e9e;
  --color-gray-600: #757575;
  --color-gray-700: #616161;
  --color-gray-800: #424242;
  --color-gray-900: #212121;
  
  /* Cores de Estado */
  --color-success: #4caf50;
  --color-warning: #ff9800;
  --color-error: #f44336;
  
  /* Tipografia */
  --font-primary: 'Fredoka', sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  
  /* Espaçamentos */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  /* Bordas e Sombras */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
  
  /* Transições */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;
  
  /* Container */
  --container-max: 1200px;
  --container-padding: 1rem;
}

/* Reset CSS */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-gray-800);
  background-color: var(--color-white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  color: var(--color-gray-900);
}

h1 { font-size: var(--font-size-5xl); }
h2 { font-size: var(--font-size-4xl); }
h3 { font-size: var(--font-size-3xl); }
h4 { font-size: var(--font-size-2xl); }
h5 { font-size: var(--font-size-xl); }
h6 { font-size: var(--font-size-lg); }

p {
  margin-bottom: var(--space-md);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* Container */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-weight: 500;
  text-align: center;
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  text-decoration: none !important;
}

/* Garantir que links com classe btn não herdem estilos de link */
a.btn,
a.btn:hover,
a.btn:focus,
a.btn:active {
  text-decoration: none !important;
}

.btn__icon {
  width: 1.25em;
  height: 1.25em;
}

.btn--primary,
a.btn--primary {
  background: var(--color-primary);
  color: var(--color-white) !important;
  box-shadow: var(--shadow-md);
}

.btn--primary:hover,
a.btn--primary:hover {
  background: var(--color-primary-dark);
  color: var(--color-white) !important;
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.btn--secondary,
a.btn--secondary {
  background: var(--color-secondary);
  color: var(--color-gray-900) !important;
  box-shadow: var(--shadow-md);
}

.btn--secondary:hover,
a.btn--secondary:hover {
  background: var(--color-secondary-dark);
  color: var(--color-gray-900) !important;
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.btn--large {
  padding: var(--space-lg) var(--space-2xl);
  font-size: var(--font-size-lg);
}

.btn--pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 168, 232, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(0, 168, 232, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 168, 232, 0);
  }
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(0, 168, 232, 0.9);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transition: all var(--transition-base);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav__logo img {
  height: 40px;
  width: auto;
  /* filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
  -webkit-filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3)); */
  transition: filter var(--transition-base);
}

.nav__logo:hover img {
  filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.1));
  -webkit-filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.1));
}

.nav__menu {
  display: flex;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
}

.nav__link {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  transition: color var(--transition-fast);
}

.nav__link:hover {
  color: var(--color-white);
}

.nav__link--cta {
  background: var(--color-secondary);
  color: var(--color-gray-900);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-lg);
}

.nav__link--cta:hover {
  background: var(--color-secondary-dark);
  color: var(--color-gray-900);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: var(--space-sm);
}

.nav__toggle span {
  width: 24px;
  height: 3px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

/* Seções */
section {
  padding: var(--space-3xl) 0;
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section__title {
  margin-bottom: var(--space-md);
}

.section__subtitle {
  font-size: var(--font-size-xl);
  color: var(--color-gray-600);
}

/* WhatsApp Flutuante */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  transition: all var(--transition-base);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-xl);
  color: white;
}

.whatsapp-float__badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--color-error);
  color: white;
  font-size: var(--font-size-xs);
  font-weight: 600;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Footer */
.footer {
  background: var(--color-gray-900);
  color: var(--color-gray-300);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.footer__logo {
  margin-bottom: var(--space-md);
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
  -webkit-filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
  transition: filter var(--transition-base);
}

.footer__brand:hover .footer__logo {
  filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.4));
  -webkit-filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.4));
}

.footer__tagline {
  margin-bottom: 0;
  text-align: center;
}

.footer__title {
  color: var(--color-white);
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-md);
}

.footer__link {
  color: var(--color-gray-300);
  display: block;
  margin-bottom: var(--space-sm);
}

.footer__link:hover {
  color: var(--color-white);
}

.footer__social {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.footer__social-link {
  color: var(--color-gray-300);
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
}

.footer__social-link:hover {
  color: var(--color-secondary);
  transform: translateY(-3px);
  background: rgba(255, 166, 0, 0.15);
  box-shadow: 0 4px 12px rgba(255, 166, 0, 0.2);
}

.footer__bottom {
  text-align: center;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-gray-800);
  font-size: var(--font-size-sm);
}

/* Responsivo */
@media (max-width: 768px) {
  :root {
    --font-size-5xl: 2rem;
    --font-size-4xl: 1.75rem;
    --font-size-3xl: 1.5rem;
    --font-size-2xl: 1.25rem;
  }
  
  .nav__menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(0, 168, 232, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: var(--shadow-lg);
    transition: left var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .nav__menu.active {
    left: 0;
  }
  
  .nav__list {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: var(--space-2xl);
    width: 100%;
    padding: var(--space-xl);
  }
  
  .nav__link {
    font-size: var(--font-size-xl);
    font-weight: 600;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
  }
  
  .nav__link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
  }
  
  .nav__link--cta {
    background: var(--color-secondary);
    color: var(--color-gray-900);
    padding: var(--space-md) var(--space-2xl);
    border-radius: var(--radius-lg);
    font-weight: 700;
    box-shadow: var(--shadow-md);
  }
  
  .nav__link--cta:hover {
    background: var(--color-secondary-dark);
    color: var(--color-gray-900);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
  }
  
  .nav__toggle {
    display: flex;
    z-index: 1001;
    position: relative;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
  }
  
  .nav__toggle:hover {
    background: rgba(255, 255, 255, 0.1);
  }
  
  .nav__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .nav__toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .nav__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
  
  section {
    padding: var(--space-2xl) 0;
  }
  
  .footer__social {
    gap: var(--space-md);
  }
  
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 1rem;
    right: 1rem;
  }
}

/* Animações de Scroll */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

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

/* Utilidades */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); } 