/* ==================== GLOBAL STYLES ==================== */
/* Extracted from styles.css */

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

body {
  font-family: var(--font-body);
  color: var(--gray-900);
  line-height: 1.5;
  background-color: var(--gray-50);
  overflow-x: hidden;
  /* Prevent horizontal scroll from off-canvas menu */
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  color: var(--gray-900);
}

:root {
  /* PALETA CONSTRUIR PORTUGAL */
  /* Laranja - Principal */
  --orange-900: #8b4e18;
  /* Mais escuro */
  --orange-700: #a8601f;
  /* Escuro */
  --orange-600: #c2711f;
  /* Médio */
  --orange-500: #d17c2b;
  /* PRINCIPAL */
  --orange-300: #e59e3d;
  /* REALCE */
  --orange-100: #f5c17d;
  /* Mais claro */
  --orange-50: #fdf3e7;
  /* Muito claro */

  /* Azul Marinho - Secundário */
  --blue-900: #0f1a38;
  /* Mais escuro */
  --blue-700: #192752;
  /* Escuro */
  --blue-500: #213577;
  /* SECUNDÁRIO */
  --blue-300: #3d52a0;
  /* Claro */
  --blue-100: #7a8fd4;
  /* Mais claro */
  --blue-50: #e8ebf7;
  /* Muito claro */

  /* Neutral Palette */
  --gray-900: #0a0a0a;
  --gray-800: #1a1a1a;
  --gray-700: #2d2d2d;
  --gray-600: #4a4a4a;
  --gray-500: #6b6b6b;
  --gray-400: #9b9b9b;
  --gray-300: #c4c4c4;
  --gray-200: #e0e0e0;
  --gray-100: #f0f0f0;
  --gray-50: #f9f9f9;

  /* Semantic Colors */
  --success: #10b981;
  --success-light: #d1fae5;
  --success-dark: #059669;
  --error: #ef4444;
  --error-dark: #dc2626;
  --warning: #f59e0b;

  /* Typography */
  --font-display: "Poppins", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "Roboto Mono", "Courier New", monospace;

  /* Two-Layer Shadows System */
  --shadow-xs-light: 0 1px 2px rgba(33, 53, 119, 0.08);
  --shadow-xs-dark: 0 1px 3px rgba(139, 78, 24, 0.12);
  --shadow-xs: var(--shadow-xs-light), var(--shadow-xs-dark);

  --shadow-sm-light: 0 2px 4px rgba(33, 53, 119, 0.1);
  --shadow-sm-dark: 0 3px 8px rgba(139, 78, 24, 0.15);
  --shadow-sm: var(--shadow-sm-light), var(--shadow-sm-dark);

  --shadow-md-light: 0 2px 8px rgba(33, 53, 119, 0.06);
  --shadow-md-dark: 0 4px 16px rgba(139, 78, 24, 0.08);
  --shadow-md: var(--shadow-md-light), var(--shadow-md-dark);

  --shadow-lg-light: 0 4px 12px rgba(33, 53, 119, 0.08);
  --shadow-lg-dark: 0 8px 24px rgba(139, 78, 24, 0.1);
  --shadow-lg: var(--shadow-lg-light), var(--shadow-lg-dark);

  --shadow-xl:
    0 10px 10px -5px rgba(0, 0, 0, 0.04), 0 20px 25px -5px rgba(0, 0, 0, 0.1);

  /* White & Black */
  --white: #ffffff;
  --black: #000000;

  /* Spacing Scale - Enhanced for consistency */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px; /* Added 12px */
  --space-lg: 16px;
  --space-xl: 20px; /* Added 20px */
  --space-2xl: 24px;
  --space-3xl: 32px;
  --space-4xl: 48px;
  --space-5xl: 64px;

  /* Border Radius - Enhanced */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Transitions - Enhanced */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Additional shadow for 2xl */
  --shadow-2xl: 0 20px 50px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

/* ==================== UTILITY CLASSES ==================== */
/* Gradients */
.gradient-primary {
  background: linear-gradient(
    135deg,
    var(--orange-500) 0%,
    var(--orange-700) 100%
  );
}

.gradient-secondary {
  background: linear-gradient(135deg, var(--blue-500) 0%, var(--blue-700) 100%);
}

.gradient-dark {
  background: linear-gradient(135deg, var(--blue-700) 0%, var(--blue-900) 100%);
}

/* Shadow Utilities */
.shadow-lifted {
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--transition-base);
}

.shadow-lifted:hover {
  box-shadow: var(--shadow-lg);
}

.shadow-elevated {
  box-shadow: var(--shadow-lg);
}

.shadow-floating {
  box-shadow: var(--shadow-xl);
}

/* Border Radius Utilities */
.rounded-sm {
  border-radius: var(--radius-sm);
}
.rounded-md {
  border-radius: var(--radius-md);
}
.rounded-lg {
  border-radius: var(--radius-lg);
}
.rounded-xl {
  border-radius: var(--radius-xl);
}
.rounded-2xl {
  border-radius: var(--radius-2xl);
}
.rounded-full {
  border-radius: var(--radius-full);
}

/* Transition Utilities */
.transition-fast {
  transition: all var(--transition-fast);
}
.transition-base {
  transition: all var(--transition-base);
}
.transition-slow {
  transition: all var(--transition-slow);
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(
    135deg,
    var(--orange-500) 0%,
    var(--orange-700) 100%
  );
  border-radius: 12px;
  border: 2px solid var(--gray-100);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    135deg,
    var(--orange-700) 0%,
    var(--orange-900) 100%
  );
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.02em;
  z-index: 1;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.5),
    transparent
  );
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn:hover::after {
  opacity: 1;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--orange-500) 0%,
    var(--orange-700) 100%
  );
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover:not(:disabled) {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(-1px);
}

.btn-primary:disabled {
  background: linear-gradient(135deg, var(--gray-300) 0%, var(--gray-400) 100%);
  cursor: not-allowed;
  opacity: 0.7;
  color: var(--gray-600);
}

.btn-secondary {
  background: white;
  color: var(--blue-700);
  border: 2px solid var(--blue-500);
  box-shadow: var(--shadow-sm);
  font-weight: 700;
}

.btn-secondary:hover {
  background: linear-gradient(135deg, var(--blue-500) 0%, var(--blue-700) 100%);
  color: white;
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.btn-secondary:disabled {
  background: white;
  color: var(--gray-400);
  border: 2px solid var(--gray-300);
  cursor: not-allowed;
  opacity: 0.7;
}

/* ==================== BADGE ==================== */
.badge {
  display: none;
}

.badge.pulse {
  animation: pulse 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.15);
  }
}

/* ==================== MODAL OVERLAY ==================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  animation: fadeInOverlay 0.3s ease;
}

@keyframes fadeInOverlay {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal-overlay.show {
  display: flex;
}

.modal {
  background: white;
  border-radius: 24px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-2xl);
  animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
  }
}

.modal-header {
  background: linear-gradient(
    135deg,
    var(--orange-500) 0%,
    var(--orange-700) 100%
  );
  padding: 24px 32px;
  color: white;
  border-radius: 24px 24px 0 0;
}

.modal-header h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-body {
  padding: 32px;
}

/* whatsapp button */
.whatsapp_float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  left: 40px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px #999;
  z-index: 100;
  animation: pulse 2s infinite;
  display: flex;
  /* Adicionado para centralizar melhor */
  align-items: center;
  /* Adicionado para centralizar melhor */
  justify-content: center;
  /* Adicionado para centralizar melhor */
  text-decoration: none;
  /* Remove o sublinhado do link */
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* WhatsApp Button - Tablet */
@media (max-width: 768px) {
  .whatsapp_float {
    width: 54px;
    height: 54px;
    bottom: 20px;
    left: 20px;
  }

  .whatsapp_float svg {
    width: 30px;
    height: 30px;
  }
}

/* WhatsApp Button - Mobile */
@media (max-width: 480px) {
  .whatsapp_float {
    width: 50px;
    height: 50px;
    bottom: 16px;
    left: 16px;
    z-index: 1001;
  }

  .whatsapp_float svg {
    width: 28px;
    height: 28px;
  }
}

/* ==================== TOAST NOTIFICATION ==================== */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: linear-gradient(
    135deg,
    var(--success) 0%,
    var(--success-dark) 100%
  );
  color: white;
  padding: 16px 24px;
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  font-family: var(--font-display);
  font-weight: 700;
  display: none;
  align-items: center;
  gap: 12px;
  z-index: 2000;
}

.toast.show {
  display: flex;
  animation: slideInRight 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toast.hide {
  animation: slideOutRight 0.3s ease-out forwards;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px) translateY(20px);
  }

  to {
    opacity: 1;
  }
}

@keyframes slideOutRight {
  to {
    opacity: 0;
    transform: translateX(100px);
  }
}

.toast-icon {
  font-size: 1.5em;
  padding-right: 8px;
}

/* ==================== HEADER ==================== */
.header {
  background: white;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.header-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header-logo .logo-img,
.logo-img {
  height: 80px;
  width: auto;
  display: block;
}

/* Desktop Navigation */
.header-nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  gap: 8px;
  list-style: none;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 16px;
  color: var(--gray-600);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: var(--orange-500);
  background: var(--orange-50);
}

.nav-link.active {
  color: var(--orange-600);
}

.dropdown-arrow {
  width: 12px;
  height: 12px;
  transition: transform 0.2s ease;
}

.nav-item.has-megamenu:hover .dropdown-arrow {
  transform: rotate(180deg);
}

/* CTA Button in Nav */
.nav-btn-cta {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  background: linear-gradient(
    135deg,
    var(--orange-500) 0%,
    var(--orange-700) 100%
  );
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  transition: all 0.2s ease;
}

.nav-btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Profile Button in Nav */
.nav-auth {
  display: none;
  margin-left: 8px;
}

.nav-auth.show {
  display: block;
}

.nav-btn-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--gray-100);
  color: var(--gray-700);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: 100px;
  transition: all 0.2s ease;
}

.nav-btn-profile:hover {
  background: var(--orange-100);
  color: var(--orange-600);
}

.nav-btn-profile svg {
  flex-shrink: 0;
}

/* ==================== FOOTER ==================== */
.footer {
  background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
  color: var(--gray-300);
  padding: var(--space-3xl) 0 var(--space-xl) 0;
  margin-top: var(--space-3xl);
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(
    135deg,
    var(--orange-500) 0%,
    var(--orange-300) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* Fallback for browsers that don't support background-clip: text */
  color: var(--orange-500);
}

@supports (-webkit-background-clip: text) {
  .footer-logo {
    color: transparent;
  }
}

.footer-description {
  line-height: 1.8;
  color: var(--gray-400);
}

.footer-section h4,
.footer-column h4 {
  color: var(--white);
  margin-bottom: var(--space-md);
  font-size: 1.1rem;
  font-family: var(--font-display);
  font-weight: 600;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: 0;
  margin: 0;
}

.footer-links a {
  color: var(--gray-400);
  text-decoration: none;
  transition: color var(--transition-base);
}

.footer-links a:hover {
  color: var(--orange-500);
}

.social-links {
  display: flex;
  gap: var(--space-md);
}

.social-link {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--gray-700) 0%, var(--gray-600) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all var(--transition-base);
  color: var(--white);
  text-decoration: none;
}

.social-link:hover {
  background: linear-gradient(
    135deg,
    var(--orange-500) 0%,
    var(--orange-700) 100%
  );
  transform: translateY(-3px);
  color: var(--white);
}

.footer-bottom {
  padding-top: var(--space-xl);
  border-top: 1px solid var(--gray-700);
  text-align: center;
  color: var(--gray-500);
  font-size: 0.9rem;
}

@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 8px 16px;
    gap: 12px;
  }

  .logo-img {
    height: 60px;
    margin: 0;
  }

  .nav-links {
    display: none;
  }

  /* Ensure auth button is properly hidden on mobile */
  #navAuthItem {
    display: none !important;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* ==================== MOBILE MENU ==================== */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.mobile-menu-btn:hover {
  background: var(--gray-100);
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-nav-overlay.show {
  display: block;
  opacity: 1;
}

/* Mobile Navigation Modal */
.mobile-nav-modal {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 320px;
  height: 100%;
  background: white;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  z-index: 2001;
  overflow-y: auto;
  /* Allow scrolling for long content */
  -webkit-overflow-scrolling: touch;
}

.mobile-nav-overlay.show .mobile-nav-modal {
  right: 0;
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50);
}

.mobile-nav-logo {
  height: 50px;
  width: auto;
}

.mobile-nav-close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  font-size: 1.2rem;
  color: var(--gray-600);
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-nav-close:hover {
  background: var(--error);
  color: white;
  border-color: var(--error);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  padding: 20px;
  gap: 8px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  text-decoration: none;
  color: var(--gray-700);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  border-radius: 12px;
  transition: all 0.2s ease;
  background: var(--gray-50);
}

.mobile-nav-link:hover {
  background: var(--blue-50);
  color: var(--blue-700);
  transform: translateX(4px);
}

.mobile-nav-icon {
  font-size: 1.3em;
}

.mobile-nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  margin-top: 12px;
  text-decoration: none;
  color: white;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: 14px;
  background: linear-gradient(
    135deg,
    var(--orange-500) 0%,
    var(--orange-700) 100%
  );
  box-shadow: var(--shadow-md);
  transition: all 0.2s ease;
}

.mobile-nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Show hamburger menu on mobile */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }
}

/* ==================== UTILITIES ==================== */
/* Hide scrollbar for Chrome, Safari and Opera */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

.no-scrollbar {
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}
