/* ============================================================
   NEFROVIDA — style.css (Index / Landing Page)
   Padronizado + responsivo para celular
   ============================================================ */

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

/* ── Variáveis globais ── */
:root {
  --navy-light:       #070d1f;
  --navy-light-mid:   #0d1b35;
  --navy-light-light: #152244;
  --blue:       #1a6fd4;
  --cyan:       #38b6ff;
  --cyan-light: #7dd3fc;
  --white:      #f0f6ff;
  --muted:      #EDE8E8;
  --green:      #4DD0B9;
  --orange:     #E89547;
  --grid:       rgba(255,255,255,0.04);
  --textobranco:#EDE8E8;

  --btn-h:        48px;
  --btn-h-sm:     40px;
  --btn-px:       1.5rem;
  --btn-px-sm:    1rem;
  --btn-radius:   99px;
  --btn-font:     0.9rem;
  --btn-font-sm:  0.82rem;
}

li { color: var(--white); }
.light li { color: black; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--navy-light);
  color: var(--white);
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  /* Compensa a altura da nav fixa para o conteúdo não ficar escondido atrás dela */
  padding-top: 68px;
}

/* ── Grade de fundo ── */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
}

section, footer {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* ── NAV ──
   CORREÇÃO: position:fixed em vez de sticky.
   sticky quebra quando html/body têm overflow-x:hidden.
   fixed funciona sempre e mantém a nav visível ao rolar.
 ── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 4vw;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(7,13,31,0.95);
  gap: 0.8rem;
}

.nav-logo {
  font-family: 'Pacifico', cursive;
  font-size: 1.5rem;
}
.nav-logo span { color: var(--cyan); }

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}
.nav-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav-badge {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--cyan);
  border: 1px solid rgba(56,182,255,0.3);
  padding: 0.35rem 0.9rem;
  border-radius: 99px;
  background: rgba(56,182,255,0.05);
  white-space: nowrap;
}

/* ── BOTÃO PADRÃO ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: var(--btn-h-sm);
  padding: 0 var(--btn-px-sm);
  background: var(--blue);
  color: #fafafa;
  border: none;
  border-radius: var(--btn-radius);
  font-size: var(--btn-font);
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  box-shadow: 0 4px 30px rgba(26,111,212,0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(56,182,255,0.4);
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

/* ── Container dos botões da nav ──
   CORREÇÃO: classe .nav-links adicionada ao div no HTML.
   No mobile vira scroll horizontal para todos os botões
   ficarem sempre acessíveis sem sumir.
 ── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 1;
  min-width: 0;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--btn-h-sm);
  padding: 0 var(--btn-px-sm);
  background: var(--blue);
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: var(--btn-radius);
  font-size: var(--btn-font-sm);
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--cyan);
  transform: translateY(-1px);
}

/* ── HERO ── */
#hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 6vw 4rem;
}

.hero-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2rem;
}
.hero-chip {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 5px 12px;
  border-radius: 99px;
  white-space: nowrap;
  transition: all 0.2s;
}
.hero-chip-accent {
  color: var(--cyan);
  background: rgba(56,182,255,0.08);
  border-color: rgba(56,182,255,0.25);
  box-shadow: 0 0 12px rgba(56,182,255,0.15);
}
.hero-chip-dot {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.2);
  user-select: none;
}

.hero-tag {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--cyan);
  border: 1px solid rgba(56,182,255,0.3);
  padding: 0.35rem 1rem;
  border-radius: 99px;
  margin-bottom: 2.5rem;
  text-transform: uppercase;
}

.hero-icon {
  width: 150px;
  height: 150px;
  border-radius: 20px;
  overflow: hidden;
  margin: 0 auto 2rem;
  box-shadow:
    0 0 40px rgba(56,182,255,0.35),
    0 0 90px rgba(26,111,212,0.25),
    0 8px 32px rgba(0,0,0,0.5);
}
.hero-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

h1 {
  font-family: 'Pacifico', cursive;
  font-weight: 300;
  line-height: 1;
  font-size: clamp(3rem, 10vw, 8rem);
  letter-spacing: 0.01em;
  margin-bottom: 1rem;
}
h1 em {
  font-style: normal;
  color: var(--cyan);
  font-family: 'Pacifico', cursive;
}

.hero-sub {
  font-size: clamp(0.9rem, 1.5vw, 1.15rem);
  color: var(--muted);
  max-width: 540px;
  line-height: 1.7;
  margin: 0 auto 2.5rem;
}

.hero-divider {
  width: 40px;
  height: 2px;
  background: var(--blue);
  margin: 0 auto 2rem;
  border-radius: 2px;
}

.hero-meta {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  margin-bottom: 2rem;
}

/* ── TAGS ── */
.tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 2.5rem;
}
.tag {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(56,182,255,0.2);
  border-radius: 99px;
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
  color: var(--cyan-light);
  background: rgba(56,182,255,0.05);
  backdrop-filter: blur(8px);
}
.tag::before { content: '•'; color: var(--cyan); }

/* ── SEÇÕES ── */
section { padding: 7rem 6vw; }

.section-label {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.8rem;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.section-title em {
  font-style: italic;
  color: var(--cyan);
  font-family: 'Pacifico', cursive;
}

/* ── IMPACT ── */
#impact {
  background: linear-gradient(160deg, var(--navy-light-mid) 0%, var(--navy-light) 100%);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.impact-inner { max-width: 900px; }
.impact-headline {
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 3rem;
}
.impact-headline em {
  font-style: italic;
  color: var(--cyan);
  font-family: 'Playfair Display', serif;
}

/* ── VÍDEO DO APP ── */
#video-app {
  background: linear-gradient(160deg, var(--navy-light-mid) 0%, var(--navy-light) 100%);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 5rem 6vw;
  text-align: center;
}
.video-inner { max-width: 860px; margin: 0 auto; }
.video-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1rem;
}
.video-title em {
  font-style: italic;
  color: var(--cyan);
  font-family: 'Playfair Display', serif;
}
.video-sub {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.5);
  max-width: 500px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.video-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(56,182,255,0.15),
    0 24px 64px rgba(0,0,0,0.6),
    0 0 80px rgba(56,182,255,0.08);
}
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ── IMPACTO SOCIAL ── */
#impacto-social {
  background: #f2f6fb;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.ods-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 40px 0 32px;
}
@media (max-width: 680px) { .ods-grid { grid-template-columns: 1fr; } }

.ods-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  border: 1px solid rgba(0,0,0,0.06);
}
.ods-icon {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.ods-card-body { flex: 1; min-width: 0; }
.ods-number {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.ods-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0d1b35;
  margin-bottom: 8px;
  line-height: 1.3;
}
.ods-card-text {
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.65;
}
.ods-note {
  font-size: 0.78rem;
  color: #64748b;
  text-align: center;
  padding: 14px 20px;
  background: rgba(0,0,0,0.03);
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.06);
  margin-top: 8px;
}
.ods-note strong { color: #0d1b35; }

/* ── SEÇÃO CLARA ── */
.light {
  background: #f2f6fb;
  color: #0d1b35;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}
.light .section-label { color: var(--blue); }
.light .section-title, .light h2, .light h3 { color: #0d1b35; }
.light .section-title em { color: var(--blue); }
.light p { color: #2a2a2a; }
.light ul li { color: #000000; }

/* ── CONTEÚDO TEXTUAL ── */
.content {
  max-width: 780px;
  margin: 0 auto;
}
.content p {
  margin-bottom: 1.1rem;
  font-size: 1.05rem;
  line-height: 1.75;
  text-align: justify;
}
.content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2.5rem 0 0.9rem;
  color: var(--blue);
}
.content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 1.5rem 0 0.6rem;
}
.content ul {
  margin: 1rem 0 1.5rem 1.5rem;
}
.content ul li {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
  line-height: 1.65;
}
.content ul li::marker { color: var(--blue); }
.content strong { color: var(--blue); font-weight: 600; }

/* ── IMAGENS DO APP ── */
.app-screen {
  display: block;
  max-width: 280px;
  width: 100%;
  margin: 1.5rem auto 0.5rem;
  border-radius: 18px;
  box-shadow: 0 15px 50px rgba(13,27,53,0.25);
}
.app-legenda {
  text-align: center;
  color: #5a7a9a;
  font-style: italic;
  font-size: 0.88rem;
  margin-bottom: 2rem;
}

.app-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0 2rem;
}
.app-duo figure { text-align: center; margin: 0; }
.app-duo img {
  max-width: 100%;
  border-radius: 16px;
  box-shadow: 0 10px 35px rgba(13,27,53,0.2);
}
.app-duo figcaption {
  color: #5a7a9a;
  font-style: italic;
  font-size: 0.85rem;
  margin-top: 0.6rem;
}

/* ── CARDS INFO/WARN ── */
.card-info, .card-warn, .card-warn2 {
  border-radius: 14px;
  overflow: hidden;
  margin: 2rem 0;
  box-shadow: 0 4px 20px rgba(13,27,53,0.08);
}
.card-info .head, .card-warn .head, .card-warn2 .head {
  padding: 0.9rem 1.3rem;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}
.card-info .head { background: var(--green); }
.card-warn .head  { background: var(--orange); }
.card-warn2 .head { background: #ED1515; }

.card-info .body, .card-warn .body, .card-warn2 .body {
  padding: 1.2rem 1.3rem;
  color: #0d1b35;
  font-size: 1rem;
  line-height: 1.65;
}
.card-info .body  { background: #E8F9F4; }
.card-warn .body  { background: #FFF4E6; }
.card-warn2 .body { background: #FFE5E5; }
.card-info strong, .card-warn strong, .card-warn2 strong { color: var(--blue); }

/* ── FEATURE CARDS ── */
.feature-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2.5rem;
}
.feature-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.3rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  border-left: 5px solid transparent;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  width: 100%;
  box-sizing: border-box;
}
.feature-card:hover {
  transform: translateX(4px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
}

.features-geral .feature-card:nth-child(1) { border-color: #f59e0b; }
.features-geral .feature-card:nth-child(2) { border-color: #10b981; }
.features-geral .feature-card:nth-child(3) { border-color: #f97316; }
.features-geral .feature-card:nth-child(4) { border-color: #38b6ff; }
.features-seg .feature-card:nth-child(1)   { border-color: #ef4444; }
.features-seg .feature-card:nth-child(2)   { border-color: #8b5cf6; }
.features-seg .feature-card:nth-child(3)   { border-color: #10b981; }

.fc-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  width: 44px;
  text-align: center;
}
.fc-title {
  font-size: 1rem;
  font-weight: 600;
  color: #0d1b35;
  margin-bottom: 0.25rem;
}
.fc-desc {
  font-size: 0.88rem;
  color: #5a7a9a;
  line-height: 1.55;
}

/* ── BANNER EMERGÊNCIA ── */
.emergency-banner {
  background: var(--blue);
  border-radius: 14px;
  padding: 1.3rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #fff;
  box-shadow: 0 4px 24px rgba(26,111,212,0.35);
}
.emergency-banner .fc-title { color: #fff; }
.emergency-banner .fc-desc  { color: rgba(255,255,255,0.85); }

/* ── SUMÁRIO ── */
.sumario {
  background: #fff;
  border-left: 4px solid var(--cyan);
  border-radius: 10px;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  box-shadow: 0 4px 20px rgba(13,27,53,0.08);
}
.sumario ol {
  list-style: none;
  padding-left: 0;
  counter-reset: item;
}
.sumario ol li {
  counter-increment: item;
  padding: 0.55rem 0;
  border-bottom: 1px solid #e2e8f0;
}
.sumario ol li:last-child { border-bottom: none; }
.sumario ol li::before {
  content: counter(item) ". ";
  color: var(--blue);
  font-weight: 700;
  margin-right: 0.5rem;
}
.sumario a {
  text-decoration: none;
  color: #0d1b35;
  transition: color 0.2s;
}
.sumario a:hover { color: var(--blue); }

/* ── DARK FEATURES ── */
#dark-features {
  background: var(--navy-light-mid);
  border-top: 1px solid rgba(255,255,255,0.05);
}
.dark-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.dark-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 2rem;
  transition: border-color 0.2s, background 0.2s;
}
.dark-card:hover {
  border-color: rgba(56,182,255,0.3);
  background: rgba(56,182,255,0.04);
}
.dc-icon  { font-size: 1.8rem; margin-bottom: 1rem; }
.dc-title { font-weight: 600; margin-bottom: 0.5rem; font-size: 0.95rem; }
.dc-desc  { font-size: 0.82rem; color: var(--muted); line-height: 1.6; }

/* ── CTA FINAL ── */
#cta {
  text-align: center;
  background: linear-gradient(160deg, var(--navy-light-light) 0%, var(--navy-light) 100%);
  border-top: 1px solid rgba(255,255,255,0.06);
}
#cta h2 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
#cta h2 em {
  font-style: italic;
  color: var(--cyan);
  font-family: 'Playfair Display', serif;
}
#cta p {
  color: var(--muted);
  max-width: 420px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

/* ── RODAPÉ ── */
footer {
  background: var(--navy-light);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 2.5rem 6vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-meta {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: rgba(122,156,192,0.5);
  text-transform: uppercase;
}

/* ── ANIMAÇÕES ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
}
.glow-1 {
  width: 500px; height: 500px;
  background: rgba(26,111,212,0.12);
  top: -100px; left: -100px;
}
.glow-2 {
  width: 400px; height: 400px;
  background: rgba(56,182,255,0.08);
  bottom: 0; right: -100px;
}

/* ============================================================
   RESPONSIVO
   ============================================================ */

@media (max-width: 768px) {
  section { padding: 4.5rem 5vw; }
  .dark-grid { grid-template-columns: 1fr 1fr; }
  .emergency-banner { flex-direction: column; text-align: center; }
  .nav-badge { display: none; }
}

@media (max-width: 640px) {
  nav {
    padding: 0.75rem 3vw;
    gap: 0.4rem;
  }

  .nav-badge { display: none; }
  .nav-nome  { display: none; }

  .nav-brand { flex-shrink: 0; }

  /* Scroll horizontal — todos os botões ficam acessíveis */
  .nav-links {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.3rem;
    flex-shrink: 1;
    min-width: 0;
  }
  .nav-links::-webkit-scrollbar { display: none; }

  /* Botões dentro da nav: compactos */
  .nav-links .btn-primary {
    height: 34px !important;
    padding: 0 0.5rem !important;
    font-size: 0.68rem !important;
    white-space: nowrap;
    border-radius: 8px !important;
    box-shadow: none !important;
    flex-shrink: 0;
  }

  /* Botões fora da nav (hero e cta): grandes */
  #hero .btn-primary,
  #cta .btn-primary {
    height: 44px !important;
    padding: 0 1.2rem !important;
    font-size: 0.85rem !important;
    width: 100% !important;
    border-radius: 99px !important;
  }

  #hero { padding: 4rem 5vw 3rem; min-height: auto; }
  .hero-icon { width: 110px; height: 110px; }
  h1 { font-size: clamp(2.5rem, 12vw, 4rem); }
  .hero-sub { font-size: 0.95rem; }

  section { padding: 3.5rem 5vw; }
  .section-title { font-size: 1.6rem; }
  .impact-headline { font-size: 2rem; }

  .app-duo { grid-template-columns: 1fr; gap: 1rem; }
  .app-screen { max-width: 220px; }
  .dark-grid { grid-template-columns: 1fr; }
  .feature-card { padding: 1rem 1.2rem; }
  .fc-icon { font-size: 1.5rem; width: 36px; }
  footer { flex-direction: column; text-align: center; }
  #cta { padding: 4rem 5vw; }
  #cta h2 { font-size: 1.8rem; }
  .sumario { padding: 1rem 1.2rem; }
}

@media (max-width: 380px) {
  h1 { font-size: 2.2rem; }
  .hero-icon { width: 90px; height: 90px; }
  .nav-links .btn-primary {
    font-size: 0.6rem !important;
    padding: 0 0.35rem !important;
  }
}
