/* ==========================================================================
   PROJETO DIGITAL - Design System & Styles
   ========================================================================== */

:root {
  --font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --color-white: #ffffff;
  --color-black: #000000;
  --color-dark: #121212;
  --color-dark-hover: #2a2a2a;
  --color-gray-100: #f8f9fa;
  --color-gray-200: #e9ecef;
  --color-gray-400: #ced4da;
  --color-gray-600: #6c757d;
  --color-gray-800: #343a40;
  --color-whatsapp: #25d366;
  --color-whatsapp-dark: #128c7e;
  --color-success: #10b981;
  --color-error: #ef4444;
  --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.18);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-pill: 9999px;
}

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

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

body {
  font-family: var(--font-family);
  background-color: var(--color-white);
  color: var(--color-dark);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 80px;
  background-color: #1a1a1a;
  overflow: hidden;
}

.hero-bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  transition: transform 10s ease-out;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.40) 50%,
    rgba(0, 0, 0, 0.65) 100%
  );
}

/* Top Navigation */
.top-nav {
  position: relative;
  z-index: 10;
  padding: 28px 0;
}

.nav-container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  opacity: 0.9;
  text-decoration: none;
  transition: var(--transition-smooth);
  padding: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
}

.social-icon:hover {
  opacity: 1;
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.2);
}

/* Hero Content Area */
.hero-container {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  margin: 40px auto;
}

.hero-content {
  text-align: center;
  max-width: 860px;
  width: 100%;
}

.hero-title {
  color: var(--color-white);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-transform: uppercase;
  margin-bottom: 48px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  animation: fadeInDown 0.8s ease-out forwards;
}

/* Email Form */
.email-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 440px;
  margin: 0 auto;
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.input-wrapper {
  width: 100%;
}

.email-form input[type="email"] {
  width: 100%;
  padding: 16px 20px;
  font-family: var(--font-family);
  font-size: 1rem;
  color: var(--color-dark);
  background-color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-sm);
  outline: none;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.email-form input[type="email"]::placeholder {
  color: #757575;
}

.email-form input[type="email"]:focus {
  border-color: var(--color-white);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition-smooth);
  border-radius: var(--radius-sm);
  letter-spacing: 0.02em;
}

.btn-primary {
  width: 100%;
  padding: 16px 28px;
  background-color: var(--color-white);
  color: var(--color-black);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: #e6e6e6;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-dark {
  padding: 14px 36px;
  background-color: var(--color-black);
  color: var(--color-white);
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
}

.btn-dark:hover {
  background-color: var(--color-dark-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Form Feedback */
.form-feedback {
  margin-top: 16px;
  font-size: 0.95rem;
  font-weight: 500;
  min-height: 24px;
  transition: var(--transition-smooth);
}

.form-feedback.success {
  color: #34d399;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.form-feedback.error {
  color: #f87171;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   Footer Section
   ========================================================================== */
.footer-section {
  background-color: var(--color-white);
  padding: 60px 0 24px 0;
  margin-top: auto;
  border-top: 1px solid var(--color-gray-200);
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
}

.footer-info {
  line-height: 1.6;
}

.cnpj-text {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-dark);
  letter-spacing: 0.01em;
}

.rights-text {
  font-size: 1.05rem;
  color: var(--color-dark);
  font-weight: 400;
}

.footer-action {
  margin-top: 4px;
}

.sub-footer {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--color-gray-200);
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-gray-600);
}

.sub-footer a {
  color: var(--color-dark);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.sub-footer a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Floating WhatsApp Button
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background-color: var(--color-whatsapp);
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  transition: var(--transition-smooth);
  animation: pulse 2.5s infinite;
}

.whatsapp-float:hover {
  background-color: var(--color-whatsapp-dark);
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.55);
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 768px) {
  .hero-section {
    min-height: 75vh;
    padding-bottom: 50px;
  }

  .nav-container {
    justify-content: center;
  }

  .hero-title {
    margin-bottom: 32px;
  }

  .email-form {
    width: 100%;
    padding: 0 16px;
  }

  .footer-section {
    padding: 48px 0 20px 0;
  }

  .cnpj-text {
    font-size: 1.05rem;
  }

  .rights-text {
    font-size: 0.95rem;
  }

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 54px;
    height: 54px;
  }
}
