/* ==========================================================================
   AegisData Compliance & DPO Solutions - Design System & Stylesheet
   ========================================================================== */

/* Imports */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* Design Tokens & CSS Variables */
:root {
  /* Colors */
  --bg-base: #faf8f5;              /* Premium Cream Background */
  --bg-surface: #ffffff;           /* Clean White */
  --bg-surface-glass: rgba(255, 255, 255, 0.75);
  --bg-surface-glass-dark: rgba(250, 248, 245, 0.85);
  --bg-card: #ffffff;
  --bg-card-hover: #fcfbf9;
  
  --color-primary: #0f172a;        /* ArcX Navy Blue */
  --color-primary-rgb: 15, 23, 42;
  --color-secondary: #D4AF37;      /* ArcX Gold */
  --color-secondary-rgb: 212, 175, 55;
  --color-accent: #87CEEB;         /* ArcX Light Blue */
  --color-accent-rgb: 135, 206, 235;
  --color-danger: #dc2626;         /* Incident Red */
  
  --color-text: #0f172a;           /* Dark Slate Blue-Gray */
  --color-text-muted: #475569;     /* Slate Gray for secondary text */
  --color-text-dark: #1e293b;      /* Slightly lighter dark text for contrast */
  
  --border-color: rgba(15, 23, 42, 0.08); /* Soft Dark Borders */
  --border-hover: rgba(15, 23, 42, 0.18);
  --border-primary: rgba(15, 23, 42, 0.2);
  --border-secondary: rgba(212, 175, 55, 0.2);

  /* Shadows & Glows */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 20px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 10px 30px rgba(15, 23, 42, 0.12);
  --glow-primary: 0 0 15px rgba(15, 23, 42, 0.1);
  --glow-secondary: 0 0 15px rgba(212, 175, 55, 0.1);

  --gradient-brand: linear-gradient(135deg, var(--color-secondary), var(--color-accent));

  /* Typography */
  --font-title: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Layout */
  --header-height: 96px;
  --header-height-shrunk: 76px;
  --container-width: 1280px;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-base);
  color: var(--color-text);
  font-family: var(--font-body);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text);
}

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

a:hover {
  color: var(--color-secondary);
}

ul {
  list-style: none;
}

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

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-surface);
  border: 2px solid var(--bg-base);
  border-radius: 5px;
}

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

/* General Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding: 6.5rem 0;
  position: relative;
}

.section-title-wrapper {
  text-align: center;
  margin-bottom: 4rem;
}

.section-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(15, 76, 129, 0.06);
  border: 1px solid var(--border-primary);
  color: var(--color-primary);
  border-radius: 100px;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4.5vw, 2.65rem);
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.section-subtitle {
  color: var(--color-text-muted);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Glowing Ambient Blobs */
.ambient-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 76, 129, 0.04) 0%, rgba(13, 148, 136, 0) 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.ambient-glow-1 { top: 10%; left: -200px; }
.ambient-glow-2 { bottom: 15%; right: -250px; background: radial-gradient(circle, rgba(13, 148, 136, 0.04) 0%, rgba(15, 76, 129, 0) 70%); }
.ambient-glow-3 { top: 50%; left: 30%; width: 600px; height: 600px; }

/* Grid Layouts */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* Premium Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-normal);
  font-family: var(--font-title);
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--gradient-brand);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(var(--color-secondary-rgb), 0.3), 0 4px 12px rgba(var(--color-accent-rgb), 0.15);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-text);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

/* Glassmorphism Styles */
.glass {
  background: var(--bg-surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all var(--transition-normal);
  border-bottom: 1px solid transparent;
}

.header-wrapper.scrolled {
  background: var(--bg-surface-glass-dark);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  transition: height var(--transition-normal);
}

.header-wrapper.scrolled .header-container {
  height: var(--header-height-shrunk);
}

/* Logo */
.logo-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
}

.logo-sub {
  font-size: 0.65rem;
  color: var(--color-text-muted);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-left: 0.2rem;
  transition: all var(--transition-normal);
}

.header-wrapper.scrolled .logo-sub {
  font-size: 0.55rem;
  opacity: 0.8;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.45rem;
  color: var(--color-text);
  transition: all var(--transition-normal);
}

.logo img {
  height: 54px;
  width: auto;
  display: block;
  transition: height var(--transition-normal);
}

.header-wrapper.scrolled .logo img {
  height: 42px;
}

.logo svg {
  width: 32px;
  height: 32px;
}

.logo-text {
  background: linear-gradient(135deg, #ffffff, #9ca3af);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-accent {
  color: var(--color-secondary);
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Navigation Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-muted);
  padding: 1.5rem 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: color var(--transition-fast);
}

.nav-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-text);
}

.nav-link:hover svg {
  transform: rotate(180deg);
}

/* Advanced Dropdowns (Hover) */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 280px;
  background: var(--bg-surface-glass-dark);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all var(--transition-normal);
  z-index: 1010;
}

/* Sub-items positioning */
.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-secondary);
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dropdown-item-link {
  display: flex;
  flex-direction: column;
  padding: 0.5rem;
  border-radius: 6px;
  transition: background var(--transition-fast);
}

.dropdown-item-link:hover {
  background: rgba(255, 255, 255, 0.04);
}

.dropdown-item-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text);
}

.dropdown-item-desc {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 0.15rem;
}

/* Action Group */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.private-area-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.private-area-btn:hover {
  border-color: var(--color-primary);
  box-shadow: var(--glow-primary);
  transform: scale(1.05);
}

.private-area-btn svg {
  width: 20px;
  height: 20px;
  fill: var(--color-text);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding-top: calc(var(--header-height) + 3rem);
  padding-bottom: 7rem;
  overflow: hidden;
  position: relative;
}

.hero-bg-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.hero-bg-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  filter: saturate(0.5) brightness(1.1) opacity(0.08); /* light subtle background texture */
}

/* 3 slides loop - 18s total, 6s per slide */
.hero-bg-slide:nth-child(1) {
  background-image: url('bg_security.png');
  animation: heroSlideshow 18s linear infinite;
  animation-delay: 0s;
}

.hero-bg-slide:nth-child(2) {
  background-image: url('bg_audit.png');
  animation: heroSlideshow 18s linear infinite;
  animation-delay: 6s;
}

.hero-bg-slide:nth-child(3) {
  background-image: url('bg_network.png');
  animation: heroSlideshow 18s linear infinite;
  animation-delay: 12s;
}

@keyframes heroSlideshow {
  0% { opacity: 0; }
  8% { opacity: 0.16; }
  33% { opacity: 0.16; }
  41% { opacity: 0; }
  100% { opacity: 0; }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  position: relative;
  z-index: 5;
}

.hero-content {
  position: relative;
  z-index: 10;
}

.hero-tag {
  display: none;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--color-text) 30%, var(--color-text-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title-accent {
  display: block;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
  max-width: 580px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

/* Hero Visual — Premium Logo Showcase */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-showcase {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 500px;
  height: auto;
  z-index: 5;
}

/* Radial spotlight behind the logo card */
.logo-spotlight {
  position: absolute;
  inset: -40px;
  background: radial-gradient(
    ellipse at center,
    rgba(13, 148, 136, 0.06) 0%,
    rgba(15, 76, 129, 0.02) 35%,
    transparent 70%
  );
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  animation: spotlight-breathe 6s ease-in-out infinite alternate;
}

@keyframes spotlight-breathe {
  0% { transform: scale(0.95); opacity: 0.7; }
  100% { transform: scale(1.08); opacity: 1; }
}

/* Glassmorphism logo card */
.logo-card {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 4rem;
  border-radius: 24px;
  width: 100%;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    0 8px 32px rgba(15, 23, 42, 0.08),
    0 2px 8px rgba(15, 23, 42, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, box-shadow;
}

.logo-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 16px 48px rgba(15, 76, 129, 0.15),
    0 6px 16px rgba(13, 148, 136, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* Logo image inside the card */
.logo-hero {
  height: auto;
  max-width: 100%;
  width: 100%;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-card:hover .logo-hero {
  transform: scale(1.03);
}


/* Ambient rings around the logo card */
.logo-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px dashed rgba(15, 76, 129, 0.07);
  z-index: 1;
  pointer-events: none;
}

.ring-1 {
  width: 260px;
  height: 260px;
  animation: spin-slow 24s linear infinite;
}

.ring-2 {
  width: 320px;
  height: 320px;
  animation: spin-reverse 40s linear infinite;
}

/* Floating Badges — compact */
.floating-badge {
  position: absolute;
  padding: 0.4rem 0.65rem;
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: var(--shadow-md);
  font-size: 0.7rem;
  font-weight: 600;
  z-index: 6;
}

.fb-1 {
  top: 5%;
  right: 0%;
  animation: float-element 5s ease-in-out infinite alternate;
}

.fb-2 {
  bottom: 5%;
  left: 0%;
  animation: float-element-rev 6s ease-in-out infinite alternate;
}

.floating-badge svg {
  width: 14px;
  height: 14px;
  color: var(--color-secondary);
}

/* ==========================================================================
   Statistics / Fast Facts Section
   ========================================================================== */
.stats-section {
  padding: 3.5rem 0;
  position: relative;
  z-index: 10;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stat-card {
  padding: 2rem;
  text-align: center;
  border-radius: 16px;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-secondary), var(--color-accent));
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-secondary);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-num {
  font-size: 2.85rem;
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.25rem;
  font-family: var(--font-title);
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.35rem;
}

.stat-desc {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   Services Section (Detailed Cards)
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.service-card {
  padding: 2.5rem;
  border-radius: 20px;
  position: relative;
  transition: all var(--transition-normal);
  overflow: hidden;
  z-index: 10;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-primary);
  box-shadow: var(--shadow-lg), var(--glow-primary);
}

.service-icon-wrapper {
  width: 56px;
  height: 168px;
  border-radius: 14px;
  background: rgba(15, 76, 129, 0.06);
  border: 1px solid var(--border-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  transition: all var(--transition-normal);
}

.service-card:hover .service-icon-wrapper {
  background: var(--gradient-brand);
  color: #ffffff;
  border-color: transparent;
  transform: scale(1.05);
}

.service-icon-wrapper svg {
  width: 28px;
  height: 28px;
}

.service-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.service-card-description {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.service-feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.service-feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-text);
}

.service-feature-item svg {
  width: 16px;
  height: 16px;
  color: var(--color-secondary);
  flex-shrink: 0;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
}

.service-link svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-fast);
}

.service-link:hover svg {
  transform: translateX(3px);
}

/* Refined service grid cards */
.service-grid-card {
  padding: 2.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
}

.service-grid-card .btn-service-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 8px;
  width: 100%;
  border: 1px solid var(--border-color);
  background: rgba(248, 250, 252, 0.5);
  color: var(--color-text);
  transition: all var(--transition-normal);
  font-family: var(--font-body);
  cursor: pointer;
}

.service-grid-card .btn-service-link:hover {
  background: rgba(15, 76, 129, 0.06);
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-1px);
}

.service-grid-card .card-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.tag-dpo { background: rgba(15, 76, 129, 0.08); color: var(--color-primary); }
.tag-audit { background: rgba(13, 148, 136, 0.08); color: var(--color-secondary); }
.tag-rgpc { background: rgba(37, 99, 235, 0.08); color: var(--color-accent); }
.tag-gov { background: rgba(13, 148, 136, 0.08); color: var(--color-secondary); }

/* ==========================================================================
   Madeira & Nationwide Coverage Section
   ========================================================================== */
.geo-section {
  overflow: hidden;
}

.geo-grid {
  display: grid;
  grid-template-columns: 48% 52%;
  gap: 3rem;
  align-items: center;
}

.geo-visual-map {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 380px;
}

.map-container {
  width: 100%;
  height: 340px;
  background: var(--bg-surface-glass);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* Pure CSS Map Representation */
.map-bg-grid {
  position: absolute;
  width: 200%;
  height: 200%;
  background-image: radial-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  transform: rotate(-10deg);
  z-index: 1;
}

.map-hub {
  position: absolute;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.hub-ping {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(5, 213, 167, 0.15);
  animation: pulse-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.hub-dot {
  width: 16px;
  height: 16px;
  background: var(--color-secondary);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 15px var(--color-secondary);
  z-index: 6;
}

.hub-label {
  position: absolute;
  top: 100%;
  white-space: nowrap;
  background: var(--bg-surface-glass-dark);
  border: 1px solid var(--border-secondary);
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 0.5rem;
  box-shadow: var(--shadow-sm);
  color: var(--color-text);
}

.hub-madeira {
  top: 60%;
  left: 30%;
}

.hub-lisboa {
  top: 35%;
  left: 70%;
}

.hub-lisboa .hub-dot {
  background: var(--color-primary);
  box-shadow: 0 0 15px var(--color-primary);
}

.hub-lisboa .hub-label {
  border-color: var(--border-primary);
}

/* Connection line */
.map-connection {
  position: absolute;
  top: 42%;
  left: 38%;
  width: 38%;
  height: 26%;
  border: 1.5px dashed rgba(255, 255, 255, 0.15);
  border-bottom: none;
  border-left: none;
  border-radius: 0 40px 0 0;
  z-index: 2;
  transform: skewX(-5deg);
}

/* Geo content cards */
.geo-card-group {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}

.geo-location-card {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

.geo-location-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-hover);
  transform: translateX(5px);
}

.geo-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.geo-location-card:nth-child(1) .geo-card-icon {
  color: var(--color-secondary);
  background: rgba(13, 148, 136, 0.08);
}

.geo-location-card:nth-child(2) .geo-card-icon {
  color: var(--color-primary);
  background: rgba(15, 76, 129, 0.08);
}

.geo-card-icon svg {
  width: 22px;
  height: 22px;
}

.geo-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.geo-card-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   AI Chatbot "DeepSeek Legal Guard" (Widget & Launcher)
   ========================================================================== */
.chatbot-launcher {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-brand);
  box-shadow: 0 8px 30px rgba(var(--color-secondary-rgb), 0.25);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  transition: all var(--transition-normal);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.chatbot-launcher:hover {
  transform: scale(1.08) rotate(5deg);
  box-shadow: 0 12px 35px rgba(var(--color-secondary-rgb), 0.4);
}

.chatbot-launcher svg {
  width: 26px;
  height: 26px;
  color: #ffffff;
}

.chatbot-launcher::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--color-secondary);
  animation: ping-custom 2s infinite;
  pointer-events: none;
}

.chatbot-panel {
  position: fixed;
  bottom: 6.5rem;
  right: 2rem;
  width: 380px;
  height: 520px;
  border-radius: 16px;
  background: var(--bg-surface-glass-dark);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 910;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all var(--transition-normal);
}

.chatbot-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Chat Header */
.chat-header {
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-avatar svg {
  width: 18px;
  height: 18px;
  color: var(--bg-base);
}

.chat-title-group {
  display: flex;
  flex-direction: column;
}

.chat-title {
  font-size: 0.95rem;
  font-weight: 700;
}

.chat-status {
  font-size: 0.7rem;
  color: var(--color-secondary);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.chat-status::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--color-secondary);
  border-radius: 50%;
  animation: pulse-glow-simple 1.5s infinite;
}

.chat-close-btn {
  cursor: pointer;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
  padding: 0.25rem;
}

.chat-close-btn:hover {
  color: var(--color-text);
}

.chat-close-btn svg {
  width: 18px;
  height: 18px;
}

/* Chat Messages Box */
.chat-messages {
  flex: 1;
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chat-bubble {
  max-width: 80%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.5;
}

.chat-bubble.bot {
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  color: var(--color-text);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.chat-bubble.user {
  background: var(--gradient-brand);
  border: 1px solid var(--border-primary);
  color: #ffffff;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

/* Quick Suggestion Chips */
.chat-suggestions {
  padding: 0.5rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-top: 1px solid var(--border-color);
}

.suggestion-chip {
  padding: 0.35rem 0.75rem;
  border-radius: 30px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.suggestion-chip:hover {
  background: rgba(15, 76, 129, 0.06);
  border-color: var(--color-primary);
}

/* Chat Input Bar */
.chat-input-area {
  padding: 1rem;
  background: #f1f5f9;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chat-input {
  flex: 1;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  font-size: 0.85rem;
  outline: none;
  transition: border-color var(--transition-fast);
  color: var(--color-text);
}

.chat-input:focus {
  border-color: var(--color-primary);
}

.chat-send-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-brand);
  color: #ffffff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.chat-send-btn:hover {
  transform: scale(1.05);
}

.chat-send-btn svg {
  width: 16px;
  height: 16px;
  color: var(--bg-base);
  margin-left: 2px;
}

/* Typing Indicator */
.typing-dots {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 16px;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background: var(--color-text-muted);
  border-radius: 50%;
  animation: typing-bounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

/* ==========================================================================
   Contact / Diagnostic Form Section
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 45% 55%;
  gap: 3.5rem;
}

.contact-info-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-lead-text {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.contact-method-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.contact-method-item {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.contact-method-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.contact-method-icon svg {
  width: 20px;
  height: 20px;
}

.contact-method-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

.contact-method-value {
  font-weight: 600;
  font-size: 1rem;
}

/* Modern Form Fields */
.contact-form-card {
  padding: 3rem;
  border-radius: 20px;
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-text-muted);
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.85rem 1.1rem;
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition-fast);
  color: var(--color-text);
}

.form-textarea {
  resize: vertical;
  min-height: 168px;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.1rem center;
  background-size: 16px;
  padding-right: 2.5rem;
}

/* Input validation using user-valid / user-invalid */
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(15, 76, 129, 0.1);
  background: #ffffff;
}

.form-input:user-invalid, .form-textarea:user-invalid {
  border-color: var(--color-danger);
  background: rgba(239, 68, 68, 0.03);
}

.form-input:user-valid, .form-textarea:user-valid {
  border-color: var(--color-secondary);
}

.form-checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.form-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  background: #ffffff;
  cursor: pointer;
  accent-color: var(--color-secondary);
  margin-top: 0.15rem;
}

.form-checkbox-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.form-checkbox-label a {
  text-decoration: underline;
}

.form-status-msg {
  padding: 1rem;
  border-radius: 8px;
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
  display: none;
}

.form-status-msg.success {
  display: block;
  background: rgba(5, 213, 167, 0.1);
  border: 1px solid var(--color-secondary);
  color: var(--color-secondary);
}

.form-status-msg.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--color-danger);
  color: var(--color-danger);
}

/* ==========================================================================
   Footer Section
   ========================================================================== */
.footer {
  background: #0f172a;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 5rem 0 6.5rem;
  position: relative;
  z-index: 10;
  /* Local color overrides for dark footer */
  --color-text: #f9fafb;
  --color-text-muted: #9ca3af;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.18);
}

.footer-grid {
  display: grid;
  grid-template-columns: 28% 20% 20% 32%;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-col-desc {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.footer .logo img {
  height: 70px;
  width: auto;
  display: block;
}

.footer-socials {
  display: flex;
  gap: 0.85rem;
}

.footer-social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
}

.footer-social-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
}

.footer-social-btn svg {
  width: 16px;
  height: 16px;
}

.footer-col-title {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-secondary);
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link-item a {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  transition: color var(--transition-fast);
}

.footer-link-item a:hover {
  color: var(--color-text);
  padding-left: 2px;
}

.footer-contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.footer-contact-bold {
  color: var(--color-text);
  font-weight: 600;
  display: block;
  margin-bottom: 0.15rem;
}

/* Footer Bottom Bar */
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
}

.footer-legal-links button {
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.footer-legal-links button:hover {
  color: var(--color-text);
  text-decoration: underline;
}

/* Electronic Complaints Book & CNPD Icons */
.footer-badges {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-badge-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.65rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
}

.footer-badge-link:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-hover);
  color: var(--color-text);
}

.footer-badge-link img {
  height: 16px;
  width: auto;
}

/* ==========================================================================
   Modals & Dialogs (<dialog>)
   ========================================================================== */
dialog {
  border: none;
  background: transparent;
  padding: 0;
  margin: auto;
  outline: none;
  z-index: 1100;
}

dialog::backdrop {
  background-color: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-content {
  width: 90vw;
  max-width: 680px;
  max-height: 85vh;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  padding: 1.5rem 2rem;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.modal-close-btn {
  cursor: pointer;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
  padding: 0.5rem;
}

.modal-close-btn:hover {
  color: var(--color-text);
}

.modal-close-btn svg {
  width: 20px;
  height: 20px;
}

.modal-body {
  padding: 2.5rem 2rem;
  overflow-y: auto;
  font-size: 0.92rem;
  line-height: 1.7;
}

.modal-body h3 {
  font-size: 1.1rem;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--color-primary);
}

.modal-body p {
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
}

.modal-body ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
  color: var(--color-text-muted);
}

.modal-body li {
  margin-bottom: 0.5rem;
}

/* Mock Login Panel specific style */
.modal-login-body {
  padding: 2rem 2.5rem;
}

.modal-login-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.modal-login-logo svg {
  width: 48px;
  height: 48px;
}

.login-btn {
  width: 100%;
  margin-top: 1rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #ffffff;
  padding: 0.85rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
}

.login-footer-links {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
  font-size: 0.8rem;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes float-slow {
  0% { transform: translate(-50%, -52%); }
  100% { transform: translate(-50%, -48%); }
}

@keyframes float-element {
  0% { transform: translateY(-5px); }
  100% { transform: translateY(5px); }
}

@keyframes float-element-rev {
  0% { transform: translateY(5px); }
  100% { transform: translateY(-5px); }
}

@keyframes spin-slow {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes spin-reverse {
  from { transform: translate(-50%, -50%) rotate(360deg); }
  to { transform: translate(-50%, -50%) rotate(0deg); }
}

@keyframes pulse-glow {
  0% { box-shadow: var(--shadow-lg), 0 0 15px rgba(0, 242, 254, 0.1); }
  100% { box-shadow: var(--shadow-lg), 0 0 30px rgba(0, 242, 254, 0.3), 0 0 15px rgba(5, 213, 167, 0.2); }
}

@keyframes pulse-border {
  0% { border-color: rgba(0, 242, 254, 0.2); }
  50% { border-color: rgba(5, 213, 167, 0.5); }
  100% { border-color: rgba(0, 242, 254, 0.2); }
}

@keyframes pulse-glow-simple {
  0% { opacity: 0.5; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.1); }
  100% { opacity: 0.5; transform: scale(0.9); }
}

@keyframes ping-custom {
  0% { transform: scale(1); opacity: 0.5; }
  70% { transform: scale(1.3); opacity: 0; }
  100% { transform: scale(1.3); opacity: 0; }
}

@keyframes pulse-ping {
  0% { transform: scale(0.8); opacity: 0.6; }
  100% { transform: scale(2.2); opacity: 0; }
}

@keyframes typing-bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  :root {
    --header-height: 86px; --header-height-shrunk: 70px;
  }
  .logo img {
    height: 46px;
  }
  
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  
  .hero-title { font-size: 3rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 4rem; text-align: center; }
  .hero-description { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  
  .services-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 4rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
  :root {
    --header-height: 76px; --header-height-shrunk: 64px;
  }
  .logo img {
    height: 40px;
  }
  .section { padding: 4.5rem 0; }
  .section-title { font-size: 2rem; }
  
  .hero-title { font-size: 2.5rem; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
  
  .geo-grid { grid-template-columns: 1fr; }
  .map-container { height: 260px; }
  
  .stats-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  
  .header-actions { display: none; } /* On mobile, move actions inside menu or simplify */
  
  /* Mobile Navigation Hamburger Menu */
  .mobile-toggle {
    display: block;
    z-index: 1001;
  }
  
  .mobile-toggle svg {
    width: 28px;
    height: 28px;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 340px;
    height: 100vh;
    background: var(--bg-surface-glass-dark);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-left: 1px solid var(--border-color);
    flex-direction: column;
    align-items: flex-start;
    padding: 6rem 2.5rem 2rem;
    gap: 1.5rem;
    transition: right var(--transition-normal);
    overflow-y: auto;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-item {
    width: 100%;
  }
  
  .nav-link {
    width: 100%;
    padding: 0.75rem 0;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  /* Dropdowns on mobile display as accordions */
  .nav-dropdown {
    position: static;
    transform: none !important;
    width: 100%;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.02);
    border: none;
    border-radius: 0;
    padding: 0.5rem 1rem;
    margin-top: 0.5rem;
    display: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  
  .nav-item.active .nav-dropdown {
    display: block;
  }
  
  .chatbot-panel {
    width: calc(100% - 2rem);
    height: 480px;
    right: 1rem;
    bottom: 5.5rem;
  }
  
  .contact-form-card { padding: 2rem 1.5rem; }
  
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-bottom { flex-direction: column; gap: 1.5rem; text-align: center; }
  .footer-legal-links { flex-direction: column; gap: 0.75rem; }
}

/* ==========================================================================
   NEW: FAQ Accordion (details/summary) Styling
   ========================================================================== */
details.stat-card summary {
  cursor: pointer;
  user-select: none;
}

details.stat-card summary::-webkit-details-marker {
  display: none;
}

details.stat-card[open] summary svg {
  transform: rotate(180deg);
}

details.stat-card[open] {
  border-color: var(--border-primary);
}

details.stat-card summary:hover {
  color: var(--color-primary);
}

/* ==========================================================================
   NEW: WhatsApp Floating Button
   ========================================================================== */
.whatsapp-float {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

/* ==========================================================================
   NEW: Cookie Consent Banner Responsive
   ========================================================================== */
@media (max-width: 768px) {
  #cookieConsent {
    flex-direction: column;
    text-align: center;
    padding: 1rem 1.5rem !important;
  }
  
  #cookieConsent p {
    font-size: 0.8rem !important;
  }
}

/* ==========================================================================
   NEW: Scroll Animation Utility
   ========================================================================== */
[data-animate] {
  will-change: opacity, transform;
}

/* ==========================================================================
   NEW: Pacotes section badge highlight
   ========================================================================== */
#pacotes .stat-card {
  transition: all var(--transition-normal);
}

#pacotes .stat-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-secondary);
}
