/* ============================================================
   INOVA RESPI — Landing Page (index.css)
   ============================================================ */

/* ── Page offset for fixed nav ── */
.page-wrapper {
  padding-top: var(--nav-h);
}

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  padding: 80px 0 64px;
  position: relative;
  overflow: hidden;
}

/* background geometric accent */
.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,98,26,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero__label {
  margin-bottom: 20px;
}

.hero__title {
  font-size: clamp(2.6rem, 4.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}
.hero__title .accent {
  color: var(--orange);
  position: relative;
  display: inline-block;
}
.hero__title .accent::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0; right: 0;
  height: 3px;
  background: var(--orange);
  border-radius: 2px;
  opacity: 0.3;
}

.hero__subtitle {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: 40px;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__map-illustration {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1;
  position: relative;
}

/* Pulsing rings — itinerant concept */
.hero__pulse-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid var(--orange);
  opacity: 0;
  animation: pulse-ring 3s ease-out infinite;
}
.hero__pulse-ring:nth-child(1) { width: 120px; height: 120px; top: 38%; left: 42%; animation-delay: 0s; }
.hero__pulse-ring:nth-child(2) { width: 200px; height: 200px; top: 32%; left: 36%; animation-delay: 0.8s; }
.hero__pulse-ring:nth-child(3) { width: 300px; height: 300px; top: 24%; left: 28%; animation-delay: 1.6s; }

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

.hero__map-dot {
  position: absolute;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--orange);
  top: 44%;
  left: 48%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 4px rgba(232,98,26,0.2);
  z-index: 2;
}

.hero__map-bg {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8rem;
  color: rgba(232,98,26,0.15);
  overflow: hidden;
  position: relative;
}

/* Grid overlay on map */
.hero__map-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.4;
}

.hero__map-icon {
  position: relative;
  z-index: 1;
  font-size: 8rem;
  line-height: 1;
  user-select: none;
}

/* ── Stats strip ── */
.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 64px;
}
.hero__stat {
  background: var(--bg-card);
  padding: 28px 32px;
  text-align: center;
}
.hero__stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.hero__stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ═══════════════════════════════════════════
   MISSÃO
═══════════════════════════════════════════ */
.missao {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.missao__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.missao__visual {
  order: -1;
}
.missao__cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.missao__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: all var(--dur) var(--ease);
}
.missao__card:hover {
  border-color: var(--orange);
  box-shadow: 0 6px 24px var(--shadow);
}
.missao__card-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--orange-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
[data-theme="dark"] .missao__card-icon {
  background: rgba(232,98,26,0.15);
}
.missao__card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.missao__card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════
   COMO FUNCIONA
═══════════════════════════════════════════ */
.como {
  text-align: center;
}
.como__title { margin-bottom: 12px; }
.como__sub {
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 56px;
  font-size: 1.05rem;
}
.como__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
/* connector line between steps */
.como__steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: calc(12.5% + 24px);
  right: calc(12.5% + 24px);
  height: 2px;
  background: linear-gradient(90deg, var(--orange) 0%, var(--orange-light) 100%);
  z-index: 0;
}
.como__step {
  position: relative;
  z-index: 1;
}
.como__step-num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  position: relative;
  box-shadow: 0 8px 20px rgba(232,98,26,0.3);
  transition: transform 0.3s var(--ease);
}
.como__step:hover .como__step-num {
  transform: scale(1.1);
}
.como__step-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.como__step-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════
   PRODUTOS (preview)
═══════════════════════════════════════════ */
.produtos-preview__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  gap: 24px;
}
.produtos-preview__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.produto-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--dur) var(--ease);
}
.produto-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px var(--shadow);
  border-color: var(--orange-light);
}
.produto-card__thumb {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--orange-pale) 0%, rgba(232,98,26,0.08) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  border-bottom: 1px solid var(--border);
}
[data-theme="dark"] .produto-card__thumb {
  background: linear-gradient(135deg, rgba(232,98,26,0.15) 0%, rgba(232,98,26,0.04) 100%);
}
.produto-card__body {
  padding: 24px;
}
.produto-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.produto-card__desc {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}
.produto-card__link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}
.produto-card:hover .produto-card__link { gap: 8px; }

/* ═══════════════════════════════════════════
   CTA SECTION
═══════════════════════════════════════════ */
.cta-section {
  background: var(--orange);
  color: var(--white);
  text-align: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  pointer-events: none;
}
.cta-section::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}
.cta-section__inner {
  position: relative;
  z-index: 1;
}
.cta-section__title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.cta-section__sub {
  font-size: 1.05rem;
  opacity: 0.85;
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.cta-section .btn-white {
  background: var(--white);
  color: var(--orange);
  font-weight: 700;
  padding: 15px 36px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--dur) var(--ease);
}
.cta-section .btn-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}

/* ═══════════════════════════════════════════
   BLOG PREVIEW
═══════════════════════════════════════════ */
.blog-preview__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  gap: 24px;
}
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: all var(--dur) var(--ease);
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px var(--shadow);
  border-color: var(--orange-light);
}
.blog-card__thumb {
  aspect-ratio: 16/9;
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.blog-card__body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.blog-card__date {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.blog-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 10px;
}
.blog-card:hover .blog-card__title { color: var(--orange); }
.blog-card__excerpt {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}
.blog-card__read {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ═══════════════════════════════════════════
   RESPONSIVE — Landing
═══════════════════════════════════════════ */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding: 48px 0; }
  .hero::before { display: none; }
  .hero__subtitle { margin: 0 auto 40px; }
  .hero__actions { justify-content: center; }
  .hero__visual { order: -1; max-width: 360px; margin: 0 auto; }
  .hero__stats { grid-template-columns: 1fr; }
  .missao__inner { grid-template-columns: 1fr; gap: 40px; }
  .missao__visual { order: 0; }
  .como__steps { grid-template-columns: 1fr 1fr; }
  .como__steps::before { display: none; }
  .produtos-preview__grid { grid-template-columns: 1fr; }
  .produtos-preview__header { flex-direction: column; align-items: flex-start; }
  .blog-preview__header { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .como__steps { grid-template-columns: 1fr; }
}
