/* ============================================================
   IPSER – Modern One-Page Stylesheet
   Design System: Dark purple/teal, glassmorphism, micro-animations
   ============================================================ */

/* ── DESIGN TOKENS ─────────────────────────────────────────── */
:root {
  /* Colors */
  --c-bg:          #0a0415;
  --c-bg-2:        #0f0720;
  --c-bg-3:        #14092c;
  --c-surface:     rgba(255, 255, 255, 0.04);
  --c-surface-h:   rgba(255, 255, 255, 0.08);
  --c-border:      rgba(255, 255, 255, 0.08);
  --c-border-h:    rgba(167, 139, 250, 0.3);

  --c-purple:      #7c3aed;
  --c-purple-l:    #a78bfa;
  --c-purple-xl:   #c4b5fd;
  --c-teal:        #0d9488;
  --c-teal-l:      #2dd4bf;
  --c-teal-xl:     #99f6e4;

  --c-text:        #f1f0f5;
  --c-text-2:      #b8b4c8;
  --c-text-3:      #7c728e;
  --c-white:       #ffffff;

  --grad-main:     linear-gradient(135deg, var(--c-purple) 0%, var(--c-teal) 100%);
  --grad-text:     linear-gradient(135deg, var(--c-purple-l) 0%, var(--c-teal-l) 100%);
  --grad-glow:     radial-gradient(ellipse at 50% 0%, rgba(124, 58, 237, 0.3) 0%, transparent 70%);

  /* Typography */
  --font-sans:     'Inter', system-ui, -apple-system, sans-serif;
  --font-serif:    'Playfair Display', Georgia, serif;

  --fs-xs:    0.75rem;
  --fs-sm:    0.875rem;
  --fs-base:  1rem;
  --fs-lg:    1.125rem;
  --fs-xl:    1.25rem;
  --fs-2xl:   1.5rem;
  --fs-3xl:   1.875rem;
  --fs-4xl:   2.25rem;
  --fs-5xl:   3rem;
  --fs-6xl:   3.75rem;
  --fs-7xl:   4.5rem;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radii */
  --r-sm:  6px;
  --r-md:  12px;
  --r-lg:  20px;
  --r-xl:  28px;
  --r-2xl: 40px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-glow-purple: 0 0 40px rgba(124, 58, 237, 0.3);
  --shadow-glow-teal:   0 0 40px rgba(13, 148, 136, 0.3);
  --shadow-card:        0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-card-h:      0 16px 48px rgba(124, 58, 237, 0.25);

  /* Transitions */
  --t-fast:   150ms ease;
  --t-base:   250ms ease;
  --t-slow:   400ms ease;
  --t-spring: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --nav-h:    72px;
  --max-w:    1200px;
  --section-py: var(--space-24);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-sans);
  background-color: var(--c-bg);
  color: var(--c-text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
address { font-style: normal; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--c-purple-l);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* ── UTILITY CLASSES ────────────────────────────────────────── */
.container {
  width: min(var(--max-w), 100% - var(--space-8));
  margin-inline: auto;
}

.glass {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--c-border);
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered reveals */
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }
.reveal:nth-child(6) { transition-delay: 0.5s; }

/* ── SECTION COMMON ─────────────────────────────────────────── */
.section {
  padding-block: var(--section-py);
  position: relative;
}

.dark-section {
  background: var(--c-bg-2);
}

.dark-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-glow);
  pointer-events: none;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.section-eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-4);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(var(--fs-3xl), 5vw, var(--fs-5xl));
  font-weight: 700;
  line-height: 1.15;
  color: var(--c-text);
  margin-bottom: var(--space-5);
}

.section-title em {
  font-style: italic;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: var(--fs-lg);
  color: var(--c-text-2);
  max-width: 600px;
  margin-inline: auto;
  line-height: 1.7;
}

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.75rem 1.75rem;
  border-radius: var(--r-full);
  font-size: var(--fs-base);
  font-weight: 600;
  transition: transform var(--t-base), box-shadow var(--t-base), background var(--t-base);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--grad-main);
  color: var(--c-white);
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.5);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--c-text);
  border: 1px solid var(--c-border);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--c-purple-l);
  transform: translateY(-2px);
}

.btn--outline-light {
  background: transparent;
  color: var(--c-text);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn--whatsapp {
  background: #25D366;
  color: var(--c-white);
  font-size: var(--fs-lg);
  padding: 1rem 2rem;
  width: 100%;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

.btn--whatsapp:hover {
  background: #20bd5a;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
}

.btn--whatsapp svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.btn--emergency {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.6rem 1.25rem;
  border-radius: var(--r-full);
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
  font-weight: 600;
  font-size: var(--fs-sm);
  transition: background var(--t-base);
}

.btn--emergency:hover { background: rgba(239, 68, 68, 0.3); }

.btn--sm { padding: 0.5rem 1.25rem; font-size: var(--fs-sm); }
.btn--full { width: 100%; justify-content: center; }

/* ── NAVBAR ─────────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background var(--t-slow), box-shadow var(--t-slow);
}

#navbar.scrolled {
  background: rgba(10, 4, 21, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 1px 0 var(--c-border);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: min(var(--max-w), 100% - var(--space-8));
  margin-inline: auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--fs-xl);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--c-text);
  transition: opacity var(--t-fast);
}

.nav-logo:hover { opacity: 0.85; }

.logo-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.logo-icon svg { width: 100%; height: 100%; }

.logo-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-link {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--c-text-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--r-full);
  transition: color var(--t-fast), background var(--t-fast);
}

.nav-link:hover {
  color: var(--c-text);
  background: var(--c-surface-h);
}

.nav-link--cta {
  background: var(--grad-main);
  color: var(--c-white);
  padding: 0.5rem 1.25rem;
  margin-left: var(--space-2);
}

.nav-link--cta:hover {
  color: var(--c-white);
  background: var(--grad-main);
  opacity: 0.9;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  border-radius: var(--r-sm);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: transform var(--t-base), opacity var(--t-base);
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 4, 21, 0.75) 0%,
    rgba(10, 4, 21, 0.55) 40%,
    rgba(13, 148, 136, 0.2) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-8);
  max-width: 800px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-teal-l);
  margin-bottom: var(--space-4);
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(var(--fs-5xl), 8vw, var(--fs-7xl));
  font-weight: 700;
  line-height: 1.1;
  color: var(--c-white);
  margin-bottom: var(--space-6);
  animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-subtitle {
  font-size: clamp(var(--fs-base), 2vw, var(--fs-xl));
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: var(--space-10);
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-16);
  animation: fadeInUp 0.8s ease 0.5s both;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: var(--fs-4xl);
  font-weight: 700;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: var(--space-1);
}

.stat-label {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
}

.scroll-hint {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: rgba(255, 255, 255, 0.5);
  animation: bounce 2s ease-in-out infinite;
}

.scroll-hint svg { width: 28px; height: 28px; }

/* ── SOBRE ───────────────────────────────────────────────────── */
.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.sobre-text {
  transition-delay: 0s !important;
}

.sobre-desc {
  color: var(--c-text-2);
  font-size: var(--fs-base);
  line-height: 1.8;
  margin-bottom: var(--space-5);
}

.sobre-desc strong { color: var(--c-text); font-weight: 600; }

.valores-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.valor-item {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}

.valor-icon {
  font-size: var(--fs-2xl);
  line-height: 1;
  flex-shrink: 0;
}

.valor-item strong {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: var(--space-1);
}

.valor-item p {
  font-size: var(--fs-xs);
  color: var(--c-text-3);
  line-height: 1.5;
}

.sobre-visual {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition-delay: 0.2s !important;
}

.sobre-card {
  border-radius: var(--r-lg);
  padding: var(--space-6);
  transition: border-color var(--t-base), transform var(--t-base), box-shadow var(--t-base);
}

.sobre-card:hover {
  border-color: var(--c-border-h);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-h);
}

.sobre-card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-4);
  font-size: var(--fs-4xl);
  line-height: 1;
}

.sobre-card h3 {
  font-size: var(--fs-lg);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.sobre-card p, .sobre-card address {
  font-size: var(--fs-sm);
  color: var(--c-text-2);
  line-height: 1.6;
}

.sobre-card--accent {
  border-color: rgba(13, 148, 136, 0.2);
}

.sobre-card--small {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  padding: var(--space-4) var(--space-5);
}

.sobre-tag {
  padding: var(--space-1) var(--space-3);
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  font-weight: 600;
  background: var(--c-surface-h);
  border: 1px solid var(--c-border);
  color: var(--c-text-2);
}

/* ── SERVIÇOS ────────────────────────────────────────────────── */
.servicos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.servico-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--space-8);
  transition: border-color var(--t-base), transform var(--t-base), box-shadow var(--t-base);
  position: relative;
  overflow: hidden;
}

.servico-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-main);
  opacity: 0;
  transition: opacity var(--t-slow);
}

.servico-card:hover {
  border-color: var(--c-purple-l);
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-h);
}

.servico-card:hover::before { opacity: 0.05; }

.servico-card--highlight {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15) 0%, rgba(13, 148, 136, 0.15) 100%);
  border-color: rgba(124, 58, 237, 0.3);
  grid-column: span 1;
}

.servico-icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-5);
  position: relative;
  z-index: 1;
}

.servico-icon svg {
  width: 100%;
  height: 100%;
}

.servico-card h3 {
  font-size: var(--fs-lg);
  font-weight: 600;
  margin-bottom: var(--space-3);
  position: relative;
  z-index: 1;
}

.servico-card p {
  font-size: var(--fs-sm);
  color: var(--c-text-2);
  line-height: 1.7;
  margin-bottom: var(--space-4);
  position: relative;
  z-index: 1;
}

.servico-list {
  position: relative;
  z-index: 1;
}

.servico-list li {
  font-size: var(--fs-xs);
  color: var(--c-text-3);
  padding: var(--space-1) 0;
  padding-left: var(--space-5);
  position: relative;
}

.servico-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--c-teal-l);
  font-size: var(--fs-xs);
}

/* ── ESPECIALIDADES ──────────────────────────────────────────── */
.especialidades-wrapper {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-12);
  align-items: start;
}

.especialidades-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.esp-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  padding: var(--space-5);
  border-radius: var(--r-md);
  border: 1px solid transparent;
  transition: background var(--t-base), border-color var(--t-base);
  cursor: default;
}

.esp-item:hover {
  background: var(--c-surface);
  border-color: var(--c-border);
}

.esp-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad-main);
  flex-shrink: 0;
  margin-top: 6px;
}

.esp-text h3 {
  font-size: var(--fs-base);
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.esp-text p {
  font-size: var(--fs-sm);
  color: var(--c-text-2);
  line-height: 1.6;
}

.especialidades-cta {
  width: 280px;
  position: sticky;
  top: calc(var(--nav-h) + var(--space-8));
}

.cta-box {
  border-radius: var(--r-xl);
  padding: var(--space-8);
  text-align: center;
  border: 1px solid var(--c-border);
}

.cta-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-4);
}

.cta-box h3 {
  font-size: var(--fs-lg);
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.cta-box p {
  font-size: var(--fs-sm);
  color: var(--c-text-2);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

/* ── CONVÊNIOS ───────────────────────────────────────────────── */
.convenios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}

.convenio-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--space-6);
  text-align: center;
  transition: border-color var(--t-base), transform var(--t-base);
}

.convenio-card:hover {
  border-color: var(--c-border-h);
  transform: translateY(-3px);
}

.convenio-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.convenio-logo svg { width: 120px; height: 40px; }

.convenios-note {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  background: rgba(167, 139, 250, 0.08);
  border: 1px solid rgba(167, 139, 250, 0.2);
  border-radius: var(--r-lg);
  padding: var(--space-5) var(--space-6);
}

.note-icon { font-size: var(--fs-2xl); flex-shrink: 0; }

.convenios-note p {
  font-size: var(--fs-sm);
  color: var(--c-text-2);
  line-height: 1.7;
}

.convenios-note strong { color: var(--c-purple-l); }

/* ── PROJETO ACOLHE ──────────────────────────────────────────── */
.acolhe {
  background: linear-gradient(135deg, var(--c-bg) 0%, rgba(13, 148, 136, 0.05) 100%);
}

.acolhe-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: var(--space-16);
  align-items: center;
}

.acolhe-blob {
  max-width: 380px;
  margin: auto;
}

.acolhe-blob svg { width: 100%; height: auto; }

.acolhe-text {
  transition-delay: 0.2s !important;
}

.acolhe-desc {
  color: var(--c-text-2);
  font-size: var(--fs-base);
  line-height: 1.8;
  margin-bottom: var(--space-5);
}

.acolhe-desc strong { color: var(--c-text); }

.acolhe-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.acolhe-feature {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  font-size: var(--fs-sm);
  color: var(--c-text-2);
}

.acolhe-feature span:first-child {
  color: var(--c-teal-l);
  font-weight: 700;
  font-size: var(--fs-lg);
  flex-shrink: 0;
}

/* ── CURSOS ──────────────────────────────────────────────────── */
.cursos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.curso-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--space-8);
  transition: border-color var(--t-base), transform var(--t-base), box-shadow var(--t-base);
}

.curso-card:hover {
  border-color: var(--c-border-h);
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-h);
}

.curso-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-4);
}

.curso-tag {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-teal-l);
  margin-bottom: var(--space-3);
}

.curso-card h3 {
  font-size: var(--fs-xl);
  font-weight: 600;
  margin-bottom: var(--space-3);
  line-height: 1.3;
}

.curso-card p {
  font-size: var(--fs-sm);
  color: var(--c-text-2);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

.curso-meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.curso-meta-item {
  font-size: var(--fs-xs);
  color: var(--c-text-3);
}

.curso-card--cta {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(13, 148, 136, 0.1) 100%);
  border-color: rgba(124, 58, 237, 0.25);
}

/* ── CONTATO ─────────────────────────────────────────────────── */
.contato {
  background: var(--c-bg-3);
}

.contato-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

.info-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.info-card {
  border-radius: var(--r-lg);
  padding: var(--space-5);
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  transition: border-color var(--t-base);
}

.info-card:hover { border-color: var(--c-border-h); }

.info-card-icon { font-size: var(--fs-2xl); flex-shrink: 0; }

.info-card-content h3 {
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-text-3);
  margin-bottom: var(--space-1);
}

.info-card-content a,
.info-card-content p,
.info-card-content address {
  font-size: var(--fs-sm);
  color: var(--c-text-2);
  line-height: 1.5;
  transition: color var(--t-fast);
}

.info-card-content a:hover { color: var(--c-purple-l); }

/* Form */
.contato-form {
  border-radius: var(--r-xl);
  padding: var(--space-8);
  border: 1px solid var(--c-border);
}

.contato-form h3 {
  font-size: var(--fs-2xl);
  font-weight: 600;
  margin-bottom: var(--space-6);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

label {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--c-text-2);
}

input, select, textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 0.75rem 1rem;
  font-size: var(--fs-base);
  font-family: var(--font-sans);
  color: var(--c-text);
  transition: border-color var(--t-base), box-shadow var(--t-base);
  width: 100%;
}

input::placeholder, textarea::placeholder {
  color: var(--c-text-3);
}

input:focus, select:focus, textarea:focus {
  border-color: var(--c-purple-l);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
  outline: none;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c728e' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px;
  cursor: pointer;
}

select option { background: var(--c-bg-2); }

textarea { resize: vertical; min-height: 120px; }

.form-privacy {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-xs);
  color: var(--c-text-3);
  margin-top: var(--space-4);
}

.form-privacy svg { width: 12px; height: 12px; flex-shrink: 0; }

/* Map */
.map-wrapper {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--c-border);
}

.map-container { width: 100%; }
.map-container iframe { display: block; }

/* ── FOOTER ──────────────────────────────────────────────────── */
.footer {
  background: var(--c-bg);
  border-top: 1px solid var(--c-border);
}

.footer-container {
  width: min(var(--max-w), 100% - var(--space-8));
  margin-inline: auto;
  padding-block: var(--space-16);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid var(--c-border);
}

.footer-brand .nav-logo {
  margin-bottom: var(--space-4);
}

.footer-tagline {
  font-size: var(--fs-sm);
  color: var(--c-text-2);
  line-height: 1.6;
  margin-bottom: var(--space-2);
}

.footer-crp {
  font-size: var(--fs-xs);
  color: var(--c-text-3);
}

.footer-nav h4,
.footer-contact h4,
.footer-emergency h4 {
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-text-3);
  margin-bottom: var(--space-4);
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-nav a {
  font-size: var(--fs-sm);
  color: var(--c-text-2);
  transition: color var(--t-fast);
}

.footer-nav a:hover { color: var(--c-purple-l); }

.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-contact li {
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
}

.footer-contact li svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--c-text-3);
}

.footer-contact a,
.footer-contact p,
.footer-contact address {
  font-size: var(--fs-sm);
  color: var(--c-text-2);
  line-height: 1.5;
  transition: color var(--t-fast);
}

.footer-contact a:hover { color: var(--c-purple-l); }

.footer-emergency p {
  font-size: var(--fs-xs);
  color: var(--c-text-2);
  margin-bottom: var(--space-3);
  line-height: 1.6;
}

.emergency-note {
  font-size: var(--fs-xs) !important;
  color: var(--c-text-3) !important;
  margin-top: var(--space-2) !important;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
}

.footer-bottom p {
  font-size: var(--fs-xs);
  color: var(--c-text-3);
}

/* ── BACK TO TOP ──────────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 999;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--grad-main);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
  transition: transform var(--t-base), opacity var(--t-base);
  opacity: 0;
  pointer-events: none;
}

.back-to-top:not([hidden]) {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover { transform: translateY(-3px); }

.back-to-top svg { width: 20px; height: 20px; }

/* ── ANIMATIONS ──────────────────────────────────────────────── */
@keyframes fadeInUp {
  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 pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(124, 58, 237, 0.3); }
  50% { box-shadow: 0 0 40px rgba(124, 58, 237, 0.6); }
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .servicos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .servico-card--highlight {
    grid-column: span 2;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  
  .nav-menu {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(10, 4, 21, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-4);
    gap: var(--space-1);
    transform: translateY(-110%);
    transition: transform var(--t-slow);
    border-bottom: 1px solid var(--c-border);
  }

  .nav-menu.open {
    transform: translateY(0);
  }

  .nav-link {
    padding: var(--space-3) var(--space-4);
  }

  .nav-link--cta { margin: var(--space-2) 0; text-align: center; }

  .sobre-grid { grid-template-columns: 1fr; }
  .sobre-visual { order: -1; }
  .acolhe-grid { grid-template-columns: 1fr; }
  .acolhe-blob { display: none; }
  .especialidades-wrapper { grid-template-columns: 1fr; }
  .especialidades-cta { width: 100%; position: static; }
  .contato-grid { grid-template-columns: 1fr; }
  .info-cards { grid-template-columns: 1fr 1fr; }
  .cursos-grid { grid-template-columns: 1fr; }
  .convenios-grid { grid-template-columns: repeat(2, 1fr); }
  .valores-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  :root {
    --section-py: var(--space-16);
  }

  .hero-actions { flex-direction: column; align-items: center; }
  .hero-stats { gap: var(--space-6); }
  .stat-divider { height: 30px; }
  .servicos-grid { grid-template-columns: 1fr; }
  .servico-card--highlight { grid-column: span 1; }
  .convenios-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .info-cards { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .sobre-card--small { flex-wrap: wrap; }

  .hero-title { font-size: clamp(2.5rem, 10vw, 4rem); }
}
