/* =========================================
   DESIGN TOKENS & GLOBAL STYLES
   Ricardo Silva - Aulas de Informática
   ========================================= */

:root {
  /* Colors */
  --primary: #1565c0;
  --primary-dark: #0d47a1;
  --primary-light: #1976d2;
  --primary-glow: rgba(21, 101, 192, 0.15);
  --accent: #ff6d00;
  --accent-light: #ff9100;
  --accent-warm: #e65100;
  --green: #2e7d32;
  --green-light: #43a047;
  --excel: #1d6f42;
  --excel-light: #21a366;
  --senior: #6a1b9a;
  --senior-light: #8e24aa;

  /* Neutrals */
  --white: #ffffff;
  --bg-light: #f0f4f8;
  --bg-gray: #e8ecf0;
  --text-dark: #1a2332;
  --text-body: #374151;
  --text-muted: #6b7280;
  --border: #d1d5db;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.18);
  --shadow-blue: 0 8px 30px rgba(21,101,192,0.25);

  /* Dark Blue Section */
  --dark-blue: #0a1628;
  --dark-blue-mid: #0d2244;

  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;

  /* Spacing */
  --section-py: 5rem;
  --section-py-sm: 3rem;
  --container-max: 1180px;
  --container-px: 1.5rem;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================
   RESET & BASE
   ========================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* =========================================
   SCROLLBAR
   ========================================= */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-light); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: var(--radius-full); }

/* =========================================
   UTILITY CLASSES
   ========================================= */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
}

.section {
  padding: var(--section-py) 0;
  position: relative;
}

.bg-light { background: var(--bg-light); }
.bg-dark-blue { background: linear-gradient(135deg, var(--dark-blue) 0%, var(--dark-blue-mid) 100%); color: var(--white); }

.highlight { color: var(--primary); }
.highlight-warm { color: var(--accent-light); }

.section-header.centered { text-align: center; max-width: 700px; margin: 0 auto 3.5rem; }
.section-header.centered h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
.section-header.centered p { font-size: 1.1rem; color: var(--text-muted); margin-top: 0.75rem; }
.bg-dark-blue .section-header.centered p { color: rgba(255,255,255,0.7); }

/* =========================================
   TYPOGRAPHY
   ========================================= */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }

/* =========================================
   BUTTONS
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(21,101,192,0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(21,101,192,0.5);
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

.btn-secondary {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.25);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-warm {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(255,109,0,0.4);
}
.btn-warm:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255,109,0,0.5);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(37,211,102,0.35);
  justify-content: center;
}
.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37,211,102,0.5);
}

.btn-linkedin {
  background: #0a66c2;
  color: var(--white);
  box-shadow: 0 4px 12px rgba(10,102,194,0.35);
}
.btn-linkedin:hover { transform: translateY(-2px); background: #004182; }

.btn-full { width: 100%; justify-content: center; }
.btn-cta { font-size: 0.9rem; padding: 0.7rem 1.5rem; }

/* =========================================
   BADGES
   ========================================= */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.badge-excel { background: rgba(29,111,66,0.12); color: var(--excel); }
.badge-office { background: rgba(21,101,192,0.12); color: var(--primary); }
.badge-senior { background: rgba(106,27,154,0.12); color: var(--senior); }
.badge-basica { background: rgba(0,150,136,0.12); color: #00796b; }

/* Informática Básica card */
.basica-card::before { background: linear-gradient(90deg, #00796b, #26a69a); }
.basica-icon { color: #00796b; }
.basica-card .module-topics span:hover { background: rgba(0,150,136,0.1); color: #00796b; }
.badge-white { background: rgba(255,255,255,0.15); color: var(--white); border: 1px solid rgba(255,255,255,0.3); }

/* =========================================
   HEADER
   ========================================= */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  transition: var(--transition);
}

#header.scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.logo-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 1.2rem;
}

.logo-text strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
}
.logo-text small {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: block;
}

#mainNav { margin-left: auto; }
#mainNav ul {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}
#mainNav a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-body);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
#mainNav a:hover,
#mainNav a.active {
  color: var(--primary);
  background: var(--primary-glow);
}

.btn-header { margin-left: 0.5rem; }

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: auto;
  border-radius: var(--radius-sm);
}
.menu-toggle span {
  display: block;
  width: 24px; height: 2.5px;
  background: var(--text-dark);
  border-radius: 3px;
  transition: var(--transition);
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* =========================================
   HERO
   ========================================= */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--dark-blue) 0%, #0d2244 40%, #1a3a6e 100%);
  display: flex;
  align-items: center;
  padding: 6rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(21,101,192,0.3) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(255,109,0,0.15) 0%, transparent 50%);
}

/* Animated Grid Pattern */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-overlay { display: none; } /* Kept for legacy; bg done via pseudo */

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  color: var(--white);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
  padding: 0.4rem 1.2rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-heading);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
  animation: fadeSlideDown 0.6s ease both;
}

.hero-content h1 {
  color: var(--white);
  margin-bottom: 1.25rem;
  animation: fadeSlideUp 0.7s ease 0.1s both;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-content h1 .highlight { color: var(--accent-light); }

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.82);
  max-width: 620px;
  margin-bottom: 2.5rem;
  animation: fadeSlideUp 0.7s ease 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  animation: fadeSlideUp 0.7s ease 0.3s both;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  animation: fadeSlideUp 0.7s ease 0.4s both;
}

.stat {
  display: flex;
  flex-direction: column;
}
.stat strong {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.stat span {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.2rem;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
}
.hero-scroll-hint a {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  color: var(--white);
  font-size: 1rem;
  transition: var(--transition);
}
.hero-scroll-hint a:hover { background: rgba(255,255,255,0.2); }

/* =========================================
   MODULE SECTIONS
   ========================================= */
.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.section-text h2 { margin-bottom: 1rem; }
.section-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  line-height: 1.7;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.97rem;
}
.feature-list li i {
  color: var(--primary);
  margin-top: 0.25rem;
  flex-shrink: 0;
  background: var(--primary-glow);
  width: 22px; height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.7rem;
}

.trigger-phrase {
  font-size: 1.1rem;
  color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: 1.5rem;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
}

/* Course section CTA row */
.curso-section-ctas {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.btn-course-detail {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}
.btn-course-detail:hover {
  border-bottom-color: var(--primary);
  gap: 0.65rem;
}

/* Module Visual Cards */
.module-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.module-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
}
.excel-card::before { background: linear-gradient(90deg, var(--excel), var(--excel-light)); }
.office-card::before { background: linear-gradient(90deg, var(--primary-dark), var(--primary-light)); }

.module-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

.module-icon-big {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  color: var(--excel);
  line-height: 1;
}
.office-icon { color: var(--primary); }

.module-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.module-topics span {
  background: var(--bg-light);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-heading);
  color: var(--text-dark);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.excel-card .module-topics span:hover { background: rgba(29,111,66,0.1); color: var(--excel); }
.office-card .module-topics span:hover { background: var(--primary-glow); color: var(--primary); }

.module-audience {
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-heading);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* =========================================
   SENIOR SECTION
   ========================================= */
.module-senior {
  background: linear-gradient(135deg, #fdf4ff 0%, #f3e5f5 100%);
}
.module-senior .feature-list li i { color: var(--senior); background: rgba(106,27,154,0.1); }
.module-senior .trigger-phrase { color: var(--senior); border-left-color: var(--senior); }
.module-senior .section-text h2 .highlight { color: var(--senior); }

.senior-img-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: visible;
}
.senior-photo {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
  object-fit: cover;
}
.senior-img-badge {
  position: absolute;
  bottom: -1rem; left: 50%; transform: translateX(-50%);
  background: var(--white);
  border-radius: var(--radius-full);
  padding: 0.6rem 1.4rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--senior);
}
.senior-img-badge i { color: var(--accent); font-size: 1.1rem; }

.senior-phrase { color: var(--senior); border-left-color: var(--senior-light) !important; }

.senior-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* =========================================
   DIFERENCIAIS
   ========================================= */
.diferenciais-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.diferencial-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}
.diferencial-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-6px);
  border-color: rgba(255,255,255,0.2);
}

.diferencial-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  margin: 0 auto 1.25rem;
  font-size: 1.6rem;
  color: var(--white);
  box-shadow: 0 8px 20px rgba(255,109,0,0.35);
}

.diferencial-card h3 { color: var(--white); font-size: 1rem; margin-bottom: 0.6rem; }
.diferencial-card p { color: rgba(255,255,255,0.68); font-size: 0.9rem; line-height: 1.65; }

/* =========================================
   SOBRE
   ========================================= */
.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: center;
}

.sobre-photo-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.sobre-photo-wrapper {
  position: relative;
  display: inline-block;
}

.profile-photo {
  width: 280px; height: 280px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 6px solid var(--white);
  box-shadow: var(--shadow-lg), 0 0 0 3px var(--primary);
  transition: var(--transition);
}
.profile-photo:hover { transform: scale(1.02); }

.photo-decoration {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 2px dashed rgba(21,101,192,0.3);
  animation: spin 20s linear infinite;
  pointer-events: none;
}

.sobre-text h2 { margin-bottom: 1.25rem; }
.sobre-text p { margin-bottom: 1rem; color: var(--text-body); }

.sobre-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.sobre-badges span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-glow);
  color: var(--primary-dark);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  font-family: var(--font-heading);
}

/* =========================================
   TESTIMONIALS
   ========================================= */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.testimonial-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }

.featured-testimonial {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  border-color: transparent;
  box-shadow: var(--shadow-blue);
}
.featured-testimonial p { color: rgba(255,255,255,0.9); }

.testimonial-stars { color: #fbbf24; font-size: 0.85rem; letter-spacing: 0.1em; }
.featured-testimonial .testimonial-stars { color: #fde68a; }

.testimonial-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  font-style: italic;
  flex: 1;
  color: var(--text-body);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: auto;
}
.author-avatar {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.featured-testimonial .author-avatar {
  background: rgba(255,255,255,0.25);
}
.testimonial-author strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.9rem;
}
.testimonial-author small { font-size: 0.78rem; color: var(--text-muted); }
.featured-testimonial .testimonial-author strong { color: var(--white); }
.featured-testimonial .testimonial-author small { color: rgba(255,255,255,0.65); }

/* =========================================
   LEAD MAGNET
   ========================================= */
.lead-magnet {
  padding: 3.5rem 0;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  color: var(--white);
}

.lead-magnet-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 0 1rem;
}

.lead-magnet-icon {
  font-size: 3rem;
  flex-shrink: 0;
  animation: pulse 2s infinite;
}

.lead-magnet-text { flex: 1; min-width: 280px; }
.lead-magnet-text h2 { color: var(--white); font-size: 1.5rem; margin-bottom: 0.4rem; }
.lead-magnet-text p { color: rgba(255,255,255,0.88); font-size: 1rem; }

.lead-magnet .btn-warm {
  background: var(--white);
  color: var(--accent);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  flex-shrink: 0;
}
.lead-magnet .btn-warm:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

/* =========================================
   ACCORDION (FAQ)
   ========================================= */
.accordion-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.accordion-item:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
}
.accordion-header {
  width: 100%;
  background: none;
  border: none;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  text-align: left;
  transition: var(--transition);
}
.accordion-header:hover {
  color: var(--primary);
}
.accordion-header span i {
  color: var(--primary);
  margin-right: 0.5rem;
}
.accordion-arrow {
  color: var(--text-muted);
  transition: transform 0.3s ease;
}
.accordion-body {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.4s ease;
  background: #fafafc;
}

/* =========================================
   CONTATO
   ========================================= */
.contato-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}
.form-group label span { color: var(--accent); }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-dark);
  background: var(--bg-light);
  transition: var(--transition);
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.form-group input.error,
.form-group select.error {
  border-color: #ef4444;
  background: #fff5f5;
}
.form-group textarea { resize: vertical; min-height: 90px; }

.form-privacy {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.contato-info-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.contato-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.contato-card h3 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.contato-card p {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}
.contato-card p:last-child { margin-bottom: 0; }

/* =========================================
   FOOTER
   ========================================= */
#footer {
  background: var(--dark-blue);
  color: rgba(255,255,255,0.78);
  padding: 4rem 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1.5fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.footer-brand .logo-icon {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  flex-shrink: 0;
}
.footer-brand strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--white);
}
.footer-brand small {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  display: block;
  margin-top: 0.2rem;
}

.footer-info p {
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.footer-info p i { color: var(--primary-light); font-size: 0.85rem; }

.footer-social h4,
.footer-links h4 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}
.social-links a {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.1);
}
.social-links a:hover { background: var(--primary); color: var(--white); transform: translateY(-3px); }

.footer-links ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  transition: var(--transition);
}
.footer-links a:hover { color: var(--white); padding-left: 4px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.25rem var(--container-px);
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

/* =========================================
   WHATSAPP FLOAT
   ========================================= */
.whatsapp-float {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 60px; height: 60px;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 1.7rem;
  z-index: 999;
  box-shadow: 0 6px 25px rgba(37,211,102,0.5);
  transition: var(--transition);
  animation: bounceIn 0.5s ease 1s both, pulse-whatsapp 2s infinite 1.5s;
}
.whatsapp-float:hover {
  transform: scale(1.15) rotate(-5deg);
  box-shadow: 0 10px 35px rgba(37,211,102,0.65);
  animation: none;
}

.whatsapp-tooltip {
  position: absolute;
  right: 70px;
  background: var(--dark-blue);
  color: var(--white);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-heading);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: var(--transition);
  pointer-events: none;
}
.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* =========================================
   BACK TO TOP
   ========================================= */
.back-to-top {
  position: fixed;
  bottom: 5.5rem; right: 2.15rem;
  width: 42px; height: 42px;
  background: var(--primary);
  border: none;
  border-radius: 50%;
  color: var(--white);
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  z-index: 998;
  transition: var(--transition);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* =========================================
   MODAL
   ========================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }

.modal-box {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  transform: scale(0.9) translateY(20px);
  transition: var(--transition);
}
.modal-overlay.active .modal-box { transform: scale(1) translateY(0); }

.modal-icon {
  font-size: 3.5rem;
  color: var(--green);
  margin-bottom: 1rem;
}
.modal-box h3 { margin-bottom: 0.75rem; }
.modal-box p { color: var(--text-muted); margin-bottom: 1.75rem; }

/* =========================================
   ANIMATIONS
   ========================================= */
@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-8px); }
}
@keyframes bounceIn {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}
@keyframes pulse-shadow {
  0% { box-shadow: 0 0 0 0 rgba(255,109,0,0.6); }
  70% { box-shadow: 0 0 0 12px rgba(255,109,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,109,0,0); }
}
@keyframes pulse-whatsapp {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.6); }
  70% { box-shadow: 0 0 0 15px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

.pulse-primary {
  animation: pulse-shadow 2.5s infinite;
}
.pulse-primary:hover {
  animation: none;
}

/* Scroll-triggered animations */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-animate].animated {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   CONSULTORIA E SUPORTE TÉCNICO
   ========================================= */
:root {
  --consult: #0f3460;
  --consult-accent: #e94560;
  --consult-light: #16213e;
  --consult-glow: rgba(233,69,96,0.12);
}

.section-consultoria {
  background: linear-gradient(160deg, #0f1923 0%, #162032 60%, #1a2940 100%);
  color: var(--white);
}

/* Nav highlight for Consultoria */
.nav-link-consult {
  color: var(--consult-accent) !important;
  font-weight: 700 !important;
}
.nav-link-consult:hover,
.nav-link-consult.active {
  background: rgba(233,69,96,0.1) !important;
}

/* Badge */
.badge-consult {
  background: rgba(233,69,96,0.15);
  color: var(--consult-accent);
  border: 1px solid rgba(233,69,96,0.25);
}

.highlight-consult { color: var(--consult-accent); }

/* Authority Seal */
.authority-seal {
  display: flex;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.seal-inner {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(233,69,96,0.3);
  border-radius: var(--radius-full);
  padding: 0.7rem 1.75rem;
  flex-wrap: wrap;
  justify-content: center;
}
.seal-inner > i {
  color: var(--consult-accent);
  font-size: 1.4rem;
  flex-shrink: 0;
}
.seal-inner > span {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.88);
}
.seal-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(10,102,194,0.25);
  color: #7bb3e0;
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--font-heading);
  transition: var(--transition);
  border: 1px solid rgba(10,102,194,0.3);
}
.seal-linkedin:hover { background: rgba(10,102,194,0.45); color: var(--white); }

/* Section header on dark bg */
.section-consultoria .section-header.centered p {
  color: rgba(255,255,255,0.65);
}
.consult-tagline {
  margin-top: 0.5rem;
  font-style: italic;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.6);
}

/* Cards grid */
.consult-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.consult-card {
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.consult-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(233,69,96,0.25);
  transform: translateY(-5px);
}

.consult-card-icon {
  width: 52px; height: 52px;
  background: rgba(233,69,96,0.15);
  border: 1px solid rgba(233,69,96,0.25);
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  color: var(--consult-accent);
  flex-shrink: 0;
  transition: var(--transition);
}
.consult-card:hover .consult-card-icon {
  background: rgba(233,69,96,0.25);
}

.consult-card h3 {
  color: var(--white);
  font-size: 1rem;
  line-height: 1.3;
}
.consult-card p {
  color: rgba(255,255,255,0.64);
  font-size: 0.88rem;
  line-height: 1.65;
  flex: 1;
}

.consult-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  width: fit-content;
  margin-top: auto;
}

/* Featured IA card */
.consult-card-featured {
  background: linear-gradient(135deg, rgba(233,69,96,0.15) 0%, rgba(233,69,96,0.05) 100%);
  border-color: rgba(233,69,96,0.3);
  grid-column: span 1;
}
.consult-card-featured:hover {
  background: linear-gradient(135deg, rgba(233,69,96,0.25) 0%, rgba(233,69,96,0.1) 100%);
  border-color: rgba(233,69,96,0.5);
}
.consult-card-featured .consult-card-icon {
  background: rgba(233,69,96,0.25);
  border-color: rgba(233,69,96,0.4);
}

.featured-tag {
  background: rgba(233,69,96,0.2);
  border-color: rgba(233,69,96,0.3);
  color: #f08090;
}

/* CTA row */
.consult-cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.75rem 2rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  flex-wrap: wrap;
}
.consult-cta-text p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.consult-cta-text i { color: var(--consult-accent); }

.btn-consult {
  background: linear-gradient(135deg, var(--consult-accent) 0%, #c0392b 100%);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(233,69,96,0.4);
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-consult:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(233,69,96,0.55);
}

/* Responsive Consultoria */
@media (max-width: 1024px) {
  .consult-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .consult-grid { grid-template-columns: 1fr; }
  .consult-cta-row { flex-direction: column; text-align: center; }
  .btn-consult { width: 100%; justify-content: center; }
  .seal-inner { gap: 0.75rem; }
}

/* =========================================
   RESPONSIVE – TABLET (<=1024px)
   ========================================= */
@media (max-width: 1024px) {
  :root { --section-py: 4rem; }

  .section-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .reverse-on-mobile .section-visual { order: -1; }

  .sobre-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .sobre-photo-col { flex-direction: row; align-items: center; justify-content: center; }
  .profile-photo { width: 200px; height: 200px; }

  .diferenciais-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-inner { grid-template-columns: repeat(2, 1fr); }

  .module-card { max-width: 480px; margin: 0 auto; }
}

/* =========================================
   RESPONSIVE – MOBILE (<=768px)
   ========================================= */
@media (max-width: 768px) {
  :root { --section-py: 3rem; --container-px: 1.25rem; }

  /* Header */
  .menu-toggle { display: flex; }
  .btn-header { display: none; }

  #mainNav {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--white);
    padding: 1rem;
    box-shadow: var(--shadow-md);
    margin-left: 0;
  }
  #mainNav.open { display: block; }
  #mainNav ul { flex-direction: column; gap: 0; }
  #mainNav a { display: block; padding: 0.75rem 1rem; font-size: 1rem; }

  /* Hero */
  .hero { padding: 5rem 0 3rem; min-height: auto; }
  .hero-stats { gap: 1.5rem; }
  .stat strong { font-size: 1.5rem; }

  /* Sections */
  .section-grid { gap: 2rem; }
  .reverse-on-mobile .section-visual { order: -1; }

  /* Diferenciais */
  .diferenciais-grid { grid-template-columns: 1fr; gap: 1rem; }
  .diferencial-card { text-align: left; display: flex; align-items: flex-start; gap: 1rem; }
  .diferencial-icon { width: 50px; height: 50px; font-size: 1.2rem; flex-shrink: 0; margin: 0; }

  /* Sobre */
  .sobre-photo-col { flex-direction: column; }

  /* Testimonials */
  .testimonials-grid { grid-template-columns: 1fr; }

  /* Contato */
  .contato-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-form { padding: 1.75rem 1.25rem; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }

  /* Lead magnet */
  .lead-magnet-inner { flex-direction: column; text-align: center; }
  .lead-magnet .btn-warm { width: 100%; justify-content: center; }

  /* WhatsApp */
  .whatsapp-float { width: 52px; height: 52px; font-size: 1.4rem; bottom: 1.5rem; right: 1.5rem; }
  .back-to-top { bottom: 5rem; right: 1.65rem; }
}

/* =========================================
   RESPONSIVE – SMALL MOBILE (<=480px)
   ========================================= */
@media (max-width: 480px) {
  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.5rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; justify-content: center; }
  .btn { padding: 0.8rem 1.5rem; }
  .section-badge { font-size: 0.72rem; }
  .module-topics span { font-size: 0.78rem; padding: 0.3rem 0.75rem; }
  .senior-actions { flex-direction: column; }
  .sobre-photo-col { align-items: center; }
  .profile-photo { width: 180px; height: 180px; }
}
