/* =============================================================
   COMBATE RASANTE — Design System
   Arquitetura: Design Tokens → Base → Layout → Components → Pages → Utilities → Responsive
   Metodologia: BEM + Utility Classes | Mobile-First
   ============================================================= */

/* ─── 1. DESIGN TOKENS ─────────────────────────────────────── */
:root {
  /* Cores */
  --color-brand:        #16a34a;
  --color-brand-light:  #22c55e;
  --color-brand-dark:   #0f7a37;
  --color-brand-glow:   rgba(22, 163, 74, 0.35);
  --color-brand-soft:   rgba(22, 163, 74, 0.12);
  --color-brand-glass:  rgba(52, 120, 72, 0.28);

  --color-surface:      rgba(4, 21, 15, 0.60);
  --color-surface-mid:  rgba(3, 58, 36, 0.75);
  --color-surface-top:  rgba(4, 105, 64, 0.92);

  --color-border:       rgba(255, 255, 255, 0.16);
  --color-border-hover: rgba(34, 197, 94, 0.50);

  --color-text:         #ffffff;
  --color-text-muted:   rgba(255, 255, 255, 0.75);
  --color-text-dim:     rgba(255, 255, 255, 0.55);

  --color-bg-body:      #04150f;
  --color-form-bg:      rgba(255, 255, 255, 0.92);
  --color-form-text:    #0b1a13;

  /* Danger */
  --color-danger:       #ef4444;
  --color-danger-soft:  rgba(239, 68, 68, 0.20);

  /* Sucesso flash */
  --color-success-soft: rgba(34, 197, 94, 0.22);
  --color-success-line: #22c55e;

  /* Espaçamentos */
  --space-xs:    4px;
  --space-sm:    8px;
  --space-md:    16px;
  --space-lg:    24px;
  --space-xl:    40px;
  --space-2xl:   64px;

  /* Border radius */
  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --radius-pill: 999px;

  /* Sombras */
  --shadow-sm:   0 4px 12px rgba(0, 0, 0, 0.20);
  --shadow-md:   0 10px 28px rgba(0, 0, 0, 0.35);
  --shadow-lg:   0 20px 50px rgba(0, 0, 0, 0.50);
  --shadow-glow: 0 8px 24px var(--color-brand-glow);

  /* Tipografia */
  --font-body:    system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: inherit;

  --text-xs:   0.72rem;
  --text-sm:   0.85rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.35rem;
  --text-2xl:  clamp(1.5rem, 3.5vw, 2rem);
  --text-hero: clamp(2.6rem, 8vw, 5.5rem);

  /* Transições */
  --transition-fast: 0.15s ease;
  --transition-base: 0.22s ease;

  /* Sombra de texto para legibilidade sobre foto de fundo */
  --text-shadow-strong: 0 1px 3px rgba(0,0,0,0.90), 0 2px 8px rgba(0,0,0,0.55);
  --text-shadow-medium: 0 1px 2px rgba(0,0,0,0.85), 0 2px 6px rgba(0,0,0,0.45);
  --text-shadow-subtle: 0 1px 2px rgba(0,0,0,0.70), 0 1px 4px rgba(0,0,0,0.35);

  /* Layout */
  --container-max:    1120px;
  --container-pad:    clamp(16px, 4vw, 32px);
  --navbar-height:    68px;
}

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

html {
  min-height: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg-body);
  background-image: url("/static/img/hero-combate.png");
  background-size: cover;          /* preenche sem barras pretas */
  background-position: center top; /* ancora o topo — avião visível */
  background-repeat: no-repeat;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* iOS/Safari: fixed trava o scroll — forçar scroll, mantém cover */
@supports (-webkit-touch-callout: none) {
  body {
    background-attachment: scroll;
  }
}

main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
}

/* ─── 3. LAYOUT ─────────────────────────────────────────────── */
.container {
  width: min(var(--container-max), calc(100% - var(--container-pad) * 2));
  margin-inline: auto;
  position: relative;
}

.section {
  position: relative;
  padding-block: var(--space-xl);
}

.section--tight { padding-block: var(--space-lg); }
.section--flush { padding-block: 0; }

/* Backgrounds transparentes para não cobrir o fundo global */
main,
.section,
.section-alt,
.home-hero,
.home-carousel-section,
.page-section,
.home-stream-hero,
.netflix-section {
  background: transparent;
}

/* ─── 4. NAVBAR ─────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1100;  /* acima do intro video (900) */
  height: var(--navbar-height);
  background: var(--color-surface-top);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.navbar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

/* Logo */
.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
  flex-shrink: 0;
}

.navbar__logo-img {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.navbar__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}

.navbar__logo-title {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--color-text);
  white-space: nowrap;
  text-shadow: var(--text-shadow-subtle);
}

.navbar__logo-subtitle {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  text-shadow: var(--text-shadow-subtle);
}

/* Links de navegação */
.navbar__nav {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid var(--color-border);
}

.navbar__link {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding-inline: 14px;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
  transition: background var(--transition-fast);
  white-space: nowrap;
  text-shadow: var(--text-shadow-subtle);
}

.navbar__link:hover {
  background: rgba(255, 255, 255, 0.10);
}

.navbar__link--cta {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.navbar__link--cta:hover {
  background: rgba(255, 255, 255, 0.20);
}

/* Hamburguer */
.navbar__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-text);
  font-size: 1.5rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--transition-fast);
}

.navbar__toggle:hover {
  background: rgba(255, 255, 255, 0.20);
}

/* ─── 5. GLASS CARD (componente base) ───────────────────────── */
.glass-card {
  background: var(--color-brand-glass);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.glass-card--compact  { padding: var(--space-md); }
.glass-card--standard { padding: var(--space-lg); }
.glass-card--wide     { padding: var(--space-lg) var(--space-xl); }

/* ─── 6. BOTÕES ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-pill);
  border: none;
  font-family: inherit;
  font-size: var(--text-base);
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(135deg, var(--color-brand-light), var(--color-brand));
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.btn--primary:hover {
  box-shadow: 0 12px 32px var(--color-brand-glow);
}

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

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.20);
  border-color: var(--color-border-hover);
}

.btn--danger {
  background: var(--color-danger-soft);
  color: var(--color-text);
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.btn--danger:hover {
  background: rgba(239, 68, 68, 0.30);
  border-color: var(--color-danger);
}

.btn--full { width: 100%; }

/* ─── 7. FORMULÁRIOS ────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group + .form-group {
  margin-top: var(--space-md);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: var(--color-form-bg);
  color: var(--color-form-text);
  font-size: max(16px, var(--text-base)); /* previne zoom iOS em inputs */
  font-family: inherit;
  transition: border-color var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-brand);
}

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

/* ─── 8. FLASH MESSAGES ─────────────────────────────────────── */
.flash-stack {
  width: min(var(--container-max), calc(100% - 32px));
  margin: 10px auto 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  z-index: 50;
}

.flash-item {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.30);
  color: var(--color-text);
  font-size: var(--text-sm);
  line-height: 1.4;
}

.flash-item--success {
  background: var(--color-success-soft);
  border-left: 3px solid var(--color-success-line);
}

.flash-item--error {
  background: var(--color-danger-soft);
  border-left: 3px solid var(--color-danger);
}

/* ─── 9. NAVBAR MOBILE ──────────────────────────────────────── */
@media (max-width: 768px) {
  .navbar__toggle { display: inline-flex; }

  .navbar__nav {
    /* Menu dropdown — lado direito, embaixo do botão hamburguer */
    display: none;
    position: absolute;
    top: calc(var(--navbar-height) + 4px);
    right: 10px;          /* alinha pela direita */
    left: auto;           /* NÃO estica para a esquerda */
    width: 200px;         /* largura compacta */
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    padding: 6px;
    border-radius: 16px;
    background: rgba(10, 80, 45, 0.97);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 999;
  }

  .navbar__nav.is-open { display: flex; }

  .navbar__link {
    width: 100%;
    justify-content: flex-start;  /* texto alinhado à esquerda */
    padding-inline: 12px;
    height: 36px;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
  }

  .navbar__link:hover {
    background: rgba(255, 255, 255, 0.12);
  }

  .navbar__link--cta {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255,255,255,0.15);
    margin-top: 2px;
  }
}

/* ─── 10. HOME HERO ─────────────────────────────────────────── */
.home-hero {
  padding-block: clamp(var(--space-xl), 6vw, 80px) var(--space-xl);
}

.home-hero__copy {
  max-width: 600px;
}

.home-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: var(--color-brand-soft);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: var(--color-brand-light);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.home-hero__title {
  font-size: var(--text-hero);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: var(--color-text);
  text-shadow: 0 1px 3px rgba(0,0,0,0.90), 0 2px 8px rgba(0,0,0,0.60), 0 0 20px rgba(0,0,0,0.30);
  margin-bottom: var(--space-md);
}

.home-hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.4rem);
  line-height: 1.55;
  color: var(--color-text-muted);
  text-shadow: 0 1px 2px rgba(0,0,0,0.85), 0 2px 6px rgba(0,0,0,0.50);
  max-width: 500px;
  margin-bottom: var(--space-lg);
}

/* ─── 11. CAROUSEL HOME ─────────────────────────────────────── */
.home-carousel-section {
  padding-bottom: var(--space-xl);
}

.carousel {
  position: relative;
  padding-inline: 52px;
}

.carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 24px) / 3);
  gap: 12px;
  overflow-x: auto;
  padding-block: 6px 12px;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.carousel__track::-webkit-scrollbar { display: none; }

.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: rgba(4, 21, 15, 0.60);
  color: var(--color-text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: border-color var(--transition-base), background var(--transition-base);
}

.carousel__btn:hover {
  background: rgba(4, 21, 15, 0.85);
  border-color: var(--color-border-hover);
}

.carousel__btn--prev { left: 0; }
.carousel__btn--next { right: 0; }

/* Feature card */
.feature-card {
  display: block;
  min-height: 160px;
  padding: var(--space-md);
  border-radius: var(--radius-xl);
  background: var(--color-brand-glass);
  border: 1px solid var(--color-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--color-text);
  transition: transform var(--transition-base), border-color var(--transition-base);
  text-decoration: none;
}

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

.feature-card__badge {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(52, 120, 72, 0.45);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.feature-card__text {
  margin-top: var(--space-sm);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

/* ─── 12. PAGE SECTION (páginas internas) ───────────────────── */
.page-section {
  padding-block: var(--space-lg) var(--space-xl);
  flex: 1;
}

.page-header {
  margin-bottom: var(--space-lg);
}

.page-header__title {
  font-size: var(--text-2xl);
  font-weight: 900;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
  text-shadow: var(--text-shadow-strong);
}

.page-header__subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 680px;
  line-height: 1.6;
  text-shadow: var(--text-shadow-medium);
}

/* Grid de cards de páginas internas */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
  align-items: start; /* cada card tem a altura do próprio conteúdo */
}

.page-card {
  padding: var(--space-lg);
  border-radius: var(--radius-xl);
  background: var(--color-brand-glass);
  border: 1px solid var(--color-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--color-text);
  transition: transform var(--transition-base), border-color var(--transition-base);
  align-self: start; /* garante individualmente, mesmo em grids aninhados */
}

.page-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-border-hover);
}

.page-card__title {
  font-size: var(--text-lg);
  font-weight: 800;
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}

.page-card__body {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* ─── 13. CONTATO ───────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 360px);
  gap: var(--space-md);
  align-items: start;
  margin-top: var(--space-md);
}

.contact-form-card {
  padding: var(--space-lg);
}

.contact-side {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.contact-info-card {
  padding: var(--space-md);
}

.contact-info-card__title {
  font-size: var(--text-base);
  font-weight: 800;
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}

.contact-info-lines {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--color-text-muted);
}

/* Social items */
.social-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px var(--space-md);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--color-border);
  backdrop-filter: blur(8px);
  text-decoration: none;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

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

.social-item__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}

.social-item__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.social-item__name {
  font-size: var(--text-sm);
  font-weight: 800;
  color: var(--color-text);
}

.social-item__sub {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* Mapa */
.map-embed {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  margin-top: var(--space-sm);
  position: relative;
  /* Garante que o iframe fique acima do backdrop-filter do card pai */
  isolation: isolate;
}

.map-embed iframe {
  width: 100%;
  height: 200px;
  display: block;
  border: none;
  /* Permite interação total: mouse, toque, scroll */
  pointer-events: all;
  position: relative;
  z-index: 1;
}

/* Overlay de "clique para ativar" no mobile — remove no hover/touch */
.map-embed::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: pointer;
  background: transparent;
  /* No desktop some ao hover; no mobile remove via JS */
  transition: opacity 0.2s;
}

.map-embed:hover::after,
.map-embed.map-active::after {
  display: none;   /* libera o iframe completamente */
}

/* ─── 14. AUTH / LOGIN ──────────────────────────────────────── */
.auth-section {
  padding-block: var(--space-xl) var(--space-2xl);
}

.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
  max-width: 820px;
  margin-inline: auto;
}

.auth-card {
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
  background: var(--color-brand-glass);
  border: 1px solid var(--color-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
}

.auth-card__title {
  font-size: var(--text-2xl);
  font-weight: 900;
  margin-bottom: var(--space-xs);
  color: var(--color-text);
}

.auth-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
  line-height: 1.5;
}

.auth-card__list {
  padding-left: var(--space-md);
  margin-top: var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-card__list li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  list-style: disc;
}

/* ─── 15. EQUIPE ────────────────────────────────────────────── */
.team-section {
  padding-block: var(--space-xl) var(--space-2xl);
}

.team-divider {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin: var(--space-xl) 0 var(--space-md);
}

.team-divider__label {
  font-size: var(--text-xs);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  white-space: nowrap;
  text-shadow: var(--text-shadow-subtle);
}

.team-divider__line {
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: var(--space-md);
}

.team-card {
  position: relative;
  border-radius: var(--radius-xl);
  padding: var(--space-md);
  background: var(--color-brand-glass);   /* igual page-card/glass-card */
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
}

.team-card::before {
  content: "";
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.05), transparent 60%);
  pointer-events: none;
}

.team-card__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: var(--space-sm);
}

.team-card__avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.8rem;
  background: rgba(255, 255, 255, 0.18);
  border: 2px solid rgba(34, 197, 94, 0.50);
  color: var(--color-text);
  flex-shrink: 0;
  overflow: hidden;
  object-fit: cover;
}

.team-card__name {
  font-size: var(--text-lg);
  font-weight: 900;
  color: var(--color-text);
  line-height: 1.2;
}

.team-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--space-xs);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 800;
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.90);
}

.tag--primary {
  background: rgba(22, 163, 74, 0.25);
  border-color: rgba(22, 163, 74, 0.45);
  color: var(--color-text);
}

.team-card__desc {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.55;
  margin-top: var(--space-sm);
}

/* ─── 16. FOOTER ────────────────────────────────────────────── */
.footer {
  flex-shrink: 0;
  position: relative;
  z-index: 1100;  /* acima do intro video (900) */
  background: var(--color-surface-mid);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--color-border);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: var(--space-lg);
  padding-block: var(--space-lg);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--space-sm);
}

.footer__logo-img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
}

.footer__brand-title {
  font-size: var(--text-sm);
  font-weight: 800;
  color: var(--color-text);
}

.footer__brand-sub {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.footer__tagline {
  font-size: var(--text-xs);
  line-height: 1.6;
  color: var(--color-text-muted);
}

.footer__heading {
  font-size: var(--text-xs);
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer__list li {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
}

.footer__list a {
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.footer__list a:hover {
  color: var(--color-text);
}

.footer__bottom {
  padding-block: 10px;
  text-align: center;
  font-size: var(--text-xs);
  color: var(--color-text-dim);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ─── 17. UTILITÁRIOS ───────────────────────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.text-muted { color: var(--color-text-muted); }
.text-center { text-align: center; }
.mt-sm  { margin-top: var(--space-sm); }
.mt-md  { margin-top: var(--space-md); }
.mt-lg  { margin-top: var(--space-lg); }

/* ─── 18. ADMIN TABLE ───────────────────────────────────────── */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  color: var(--color-text);
}

.admin-table th {
  padding: 10px 14px;
  text-align: left;
  font-size: var(--text-xs);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
}

.admin-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--color-text-muted);
  vertical-align: top;
  line-height: 1.5;
}

.admin-table tr:last-child td { border-bottom: none; }

.admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.04);
}

/* ─── 19. RESPONSIVIDADE ────────────────────────────────────── */

/* Tablet */
@media (max-width: 1024px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }

  .carousel__track {
    grid-auto-columns: calc((100% - 12px) / 2);
  }

  .auth-layout {
    max-width: 640px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  body {
    /* Remove o background do body no mobile — será tratado via ::before fixo */
    background-image: none;
  }

  /* Pseudo-elemento fixo no viewport — imagem NUNCA se move nem cresce */
  body::before {
    content: "";
    position: fixed;          /* fixo no viewport, não na página */
    inset: 0;                 /* cobre tudo: top/right/bottom/left = 0 */
    z-index: -1;              /* atrás de todo o conteúdo */
    background-image: url("/static/img/hero-mobile-fixed.png");
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
  }

  /* ─ Carousel ─ */
  .carousel { padding-inline: 10px; }

  .carousel__track {
    grid-auto-columns: 58%;   /* ~1.5 visíveis dá dica de scroll */
    scroll-snap-type: x mandatory;
    gap: 10px;
  }

  .feature-card {
    min-height: 120px;
    padding: 12px;
    border-radius: 16px;
    scroll-snap-align: start;
  }

  .feature-card__text  { font-size: 0.88rem; margin-top: 6px; }
  .feature-card__badge { font-size: 0.68rem; }

  /* Esconde setas no mobile — swipe já funciona */
  .carousel__btn { display: none; }

  /* ─ Page ─ */
  .page-section { padding-block: var(--space-lg); }
  .section { padding-block: var(--space-lg); }

  /* ─ Contact ─ */
  .contact-layout {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  /* ─ Auth ─ */
  .auth-layout {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .auth-card { padding: var(--space-lg); }

  /* ─ Team ─ */
  .team-section { padding-block: var(--space-lg) var(--space-xl); }

  /* ─ Footer ─ */
  /* Mobile: esconde colunas de endereço, mostra só brand + copyright */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 0;
    padding-block: 10px 6px;
  }

  /* Esconde colunas de endereço no mobile para não ocupar tela */
  .footer__grid > div:not(:first-child) {
    display: none;
  }

  /* Brand compacto em linha única */
  .footer__brand { margin-bottom: 4px; }
  .footer__tagline { font-size: 0.7rem; line-height: 1.4; }

  .footer__bottom {
    padding-block: 6px;
    font-size: 0.65rem;
  }

  /* ─ Flash ─ */
  .flash-stack {
    position: fixed;
    top: calc(var(--navbar-height) + 8px);
    right: 12px;
    left: auto;
    width: min(220px, calc(100vw - 24px));
    z-index: 1200;
    margin: 0;
  }

  .flash-item {
    font-size: var(--text-xs);
    border-radius: var(--radius-sm);
  }
}

/* Small mobile */
@media (max-width: 420px) {
  .footer__grid { grid-template-columns: 1fr; }

  .carousel { padding-inline: 36px; }
  .carousel__track { grid-auto-columns: 88%; }

  .home-hero__title { font-size: clamp(2.2rem, 11vw, 3rem); }
}
