/* ==========================================================================
   GGB TOOLS - DESIGN SYSTEM & STYLESHEET
   Follows Landing Page Design System:
   - Font: Manrope (approved single font) + Geist Mono for precision numbers
   - No italics, no ultra bold (max 800)
   - Spacing & radius tokens compliant
   - Flat backgrounds (no gradient backgrounds)
   - Custom fluid dynamics cubic-bezier(0.32, 0.72, 0, 1)
   - Colors: Petroleum Blue (#04465B), Accent Orange (#F76B1C), Slate (#0F172A)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Geist+Mono:wght@400;500;600;700&display=swap');

:root {
  /* Brand Tokens */
  --color-primary: #04465B;
  --color-primary-dark: #022E3C;
  --color-primary-light: #08617E;
  --color-accent: #F76B1C;
  --color-accent-hover: #E05609;
  --color-accent-light: #FFF7ED;
  --color-dark: #0F172A;
  --color-slate-900: #0F172A;
  --color-slate-800: #1E293B;
  --color-slate-700: #334155;
  --color-slate-600: #475569;
  --color-slate-500: #64748B;
  --color-slate-400: #94A3B8;
  --color-slate-200: #E2E8F0;
  --color-slate-100: #F1F5F9;
  --color-slate-50: #F8FAFC;
  --color-white: #FFFFFF;

  /* Typography */
  --font-main: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', monospace;

  /* Physics Transitions */
  --ease-spring: cubic-bezier(0.32, 0.72, 0, 1);
  --transition-fluid: all 0.7s cubic-bezier(0.32, 0.72, 0, 1);
  --transition-fast: all 0.25s cubic-bezier(0.32, 0.72, 0, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  background-color: var(--color-white);
  color: var(--color-slate-900);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Strict Typography enforcement */
* {
  font-style: normal !important; /* No italics */
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main);
  font-weight: 700;
  text-wrap: balance;
  color: inherit;
  letter-spacing: -0.02em;
}

p, li, span, label, input, textarea {
  text-wrap: pretty;
}

/* Text Mono class for measurements and numbers */
.font-mono {
  font-family: var(--font-mono) !important;
}

/* Hero Heading Text Gradient (Only allowed on text, not background) */
.hero-gradient-text {
  background: linear-gradient(90deg, #04465B 0%, #0F172A 60%, #475569 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

.hero-gradient-text-dark {
  background: linear-gradient(90deg, #FFFFFF 0%, #CBD5E1 60%, #94A3B8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

/* Top Announcement Bar */
.top-bar {
  background-color: var(--color-slate-900);
  border-bottom: 1px solid var(--color-slate-800);
  color: var(--color-slate-300);
  font-size: 12px;
  line-height: 16px;
  position: relative;
  z-index: 900;
}

/* Fluid Island Navigation (Detached glass pill) */
.island-nav {
  position: sticky;
  top: 12px;
  z-index: 999;
  display: flex;
  justify-content: center;
  pointer-events: none;
  width: 100%;
  margin-top: 12px;
}

.island-nav-inner {
  pointer-events: auto;
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  border-radius: 9999px;
  padding: 8px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition-fluid);
  max-width: 95%;
}

.island-nav.scrolled .island-nav-inner {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 30px -10px rgba(15, 23, 42, 0.12);
  border-color: rgba(203, 213, 225, 0.9);
}

.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-slate-700);
  text-decoration: none;
  transition: var(--transition-fast);
  padding: 6px 12px;
  border-radius: 9999px;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-primary);
  background-color: var(--color-slate-100);
}

/* Button Component (Compliant with B1/B2/B9) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-sm {
  font-size: 14px;
  line-height: 20px;
  padding: 6px 14px;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(247, 107, 28, 0.25);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.btn-secondary:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-1px);
}

.btn-secondary:active {
  transform: scale(0.98);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-slate-200);
}

.btn-outline:hover {
  background-color: var(--color-slate-50);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Tagline Reveal Section (Mandatory B11) */
.tagline-reveal {
  padding: 80px 24px;
  background-color: var(--color-slate-900);
  color: var(--color-white);
  text-align: center;
}

.tagline-word {
  display: inline-block;
  opacity: 0.60;
  color: #CBD5E1;
  transition: opacity 0.5s cubic-bezier(0.32, 0.72, 0, 1), color 0.5s cubic-bezier(0.32, 0.72, 0, 1), transform 0.5s cubic-bezier(0.32, 0.72, 0, 1);
  margin-right: 0.28em;
}

.tagline-word.revealed {
  opacity: 1;
  color: #FFFFFF;
  transform: scale(1.02);
}

.tagline-word.highlight {
  color: #F76B1C;
  opacity: 0.95;
}

.tagline-word.highlight.revealed {
  color: #FF8A3D;
  opacity: 1;
}

/* Card System - Flat, full borders around */
.card {
  background-color: var(--color-white);
  border: 1px solid var(--color-slate-200);
  border-radius: 16px;
  padding: 24px;
  transition: var(--transition-fluid);
}

.card:hover {
  border-color: var(--color-slate-400);
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -6px rgba(15, 23, 42, 0.08);
}

/* Nested Radii Formula: inner = outer - padding */
.card-nested-inner {
  border-radius: 8px; /* 16px outer - 8px gap */
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 998;
  display: flex;
  align-items: center;
  gap: 12px;
}

.whatsapp-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background-color: #25D366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  cursor: pointer;
  border: none;
  transition: var(--transition-fluid);
  position: relative;
  text-decoration: none;
}

.whatsapp-btn:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 14px 28px rgba(37, 211, 102, 0.5);
}

.whatsapp-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #25D366;
  opacity: 0.75;
  animation: pulse-ring 2.2s cubic-bezier(0.32, 0.72, 0, 1) infinite;
  z-index: -1;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.75; }
  50% { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(1.4); opacity: 0; }
}

.whatsapp-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background-color: #EF4444;
  color: white;
  font-size: 11px;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

.whatsapp-tooltip {
  background-color: var(--color-white);
  color: var(--color-slate-900);
  border: 1px solid var(--color-slate-200);
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
  max-width: 260px;
  font-size: 13px;
  line-height: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: var(--transition-fluid);
}

.whatsapp-tooltip strong {
  color: var(--color-primary);
  font-size: 13px;
}

.whatsapp-online-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #22C55E;
  margin-right: 4px;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: var(--color-white);
  border-radius: 16px;
  border: 1px solid var(--color-slate-200);
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  transform: translateY(24px) scale(0.96);
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
}

.modal-backdrop.active .modal-content {
  transform: translateY(0) scale(1);
}

/* Cookie Banner LGPD */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 997;
  max-width: 420px;
  background-color: var(--color-white);
  border: 1px solid var(--color-slate-200);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 20px 30px -10px rgba(15, 23, 42, 0.15);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.6s ease;
}

.cookie-banner.visible {
  transform: translateY(0);
  opacity: 1;
}

/* Form Styles */
.form-input, .form-select, .form-textarea {
  width: 100%;
  font-family: var(--font-main);
  font-size: 15px;
  color: var(--color-slate-900);
  background-color: var(--color-slate-50);
  border: 1px solid var(--color-slate-200);
  border-radius: 8px;
  padding: 10px 14px;
  transition: var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  background-color: var(--color-white);
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(4, 70, 91, 0.15);
}

.form-input.error, .form-select.error, .form-textarea.error {
  border-color: #EF4444;
  background-color: #FEF2F2;
}

.form-error-msg {
  font-size: 12px;
  color: #DC2626;
  margin-top: 4px;
  display: none;
}

.form-error-msg.visible {
  display: block;
}

/* Animated reveals */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(4px);
  transition: opacity 0.8s cubic-bezier(0.32, 0.72, 0, 1),
              transform 0.8s cubic-bezier(0.32, 0.72, 0, 1),
              filter 0.8s cubic-bezier(0.32, 0.72, 0, 1);
}

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

/* Mobile Hamburger Morph */
.hamburger-btn {
  width: 40px;
  height: 40px;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger-line {
  width: 22px;
  height: 2px;
  background-color: var(--color-slate-800);
  border-radius: 2px;
  transition: var(--transition-fluid);
}

.hamburger-btn.active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 990;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.32, 0.72, 0, 1);
}

.mobile-menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-link {
  color: var(--color-white);
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.5s ease;
}

.mobile-menu-overlay.active .mobile-nav-link {
  transform: translateY(0);
  opacity: 1;
}

/* FAQ Accordion */
.faq-item {
  border: 1px solid var(--color-slate-200);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition-fast);
  background-color: var(--color-white);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: transparent;
  border: none;
  text-align: left;
  font-family: var(--font-main);
  font-size: 17px;
  font-weight: 700;
  color: var(--color-slate-900);
  cursor: pointer;
  gap: 16px;
}

.faq-question:hover {
  color: var(--color-primary);
}

.faq-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.32, 0.72, 0, 1);
  padding: 0 24px;
  color: var(--color-slate-600);
  font-size: 15px;
  line-height: 24px;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 20px;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .nav-desktop-links {
    display: none !important;
  }
  .hamburger-btn {
    display: flex !important;
  }
  .island-nav-inner {
    padding: 6px 14px;
    gap: 12px;
    width: 92%;
    justify-content: space-between;
  }
  .whatsapp-tooltip {
    display: none;
  }
  .cookie-banner {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }
}
