/* ==========================================================================
   MEDE.JÁ PORTAS — Estrutura de Layout, Seções & Responsividade
   ========================================================================== */

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease, backdrop-filter 0.4s ease;
  border-bottom: 1px solid var(--border-dark);
  background: rgba(18, 52, 59, 0.78);
  backdrop-filter: blur(14px);
}

header.light-mode {
  background: rgba(244, 241, 234, 0.88);
  border-bottom: 1px solid var(--border-light);
  color: var(--petrol);
}

nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

nav a {
  text-decoration: none;
  color: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.82;
  transition: opacity 0.2s ease, color 0.2s ease;
}

nav a:hover {
  opacity: 1;
  color: var(--copper);
}

/* CENA 01 — HERO FULL-BLEED CINEMATOGRÁFICO */
.hero {
  position: relative;
  width: 100%;
  min-height: 94vh;
  padding: 112px 0 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background-color: var(--petrol-dark);
}

.hero-overlay-content {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 0 5vw;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-center-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 36px 0 44px;
}

.hero-content {
  max-width: 580px;
}

.hero h1 {
  font-size: clamp(2.4rem, 4.4vw, 3.85rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--offwhite);
  margin-bottom: 22px;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.hero h1 span {
  color: var(--sage);
}

.hero p {
  font-size: 1.12rem;
  line-height: 1.6;
  color: rgba(244, 241, 234, 0.86);
  max-width: 540px;
  margin-bottom: 34px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

.hero-meta {
  font-size: 0.8rem;
  color: rgba(244, 241, 234, 0.72);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

/* CENA 02 — SCROLLYTELLING PINADO */
.scrolly-wrapper {
  position: relative;
  height: 300vh;
  background-color: var(--petrol);
}

.scrolly-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 96px 5vw 48px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 56px;
  overflow: hidden;
}

.scrolly-steps {
  position: relative;
}

.scrolly-heading {
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 28px;
  line-height: 1.15;
}

/* CENA 03 & 04 — PRANCHA TÉCNICA CLARA (#F4F1EA) */
.light-section {
  background-color: var(--offwhite);
  color: var(--petrol);
  padding: 110px 5vw;
  position: relative;
}

.light-section--compact-top {
  padding-top: 20px;
}

.section-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
  font-weight: 600;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: clamp(2rem, 3.4vw, 2.85rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--petrol);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.06rem;
  line-height: 1.6;
  color: rgba(18, 52, 59, 0.75);
  max-width: 640px;
  margin-bottom: 48px;
}

/* Grids estruturais das seções claras */
.simulator-box {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 32px;
}

.profiles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* CENA 05 — ECOSSISTEMA MEDE.JÁ */
.ecosystem-section {
  background: var(--white);
  color: var(--petrol);
  padding: 96px 5vw;
  border-top: 1px solid var(--border-light);
}

.eco-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* CENA 06 — GRAND FINALE CTA */
.finale-section {
  background-color: var(--petrol);
  color: var(--offwhite);
  padding: 110px 5vw 60px;
  border-top: 1px solid var(--border-dark);
}

.finale-box {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--border-dark);
}

.finale-box h2 {
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  font-weight: 600;
  line-height: 1.12;
  margin: 20px 0 16px;
}

.finale-box p {
  font-size: 1.08rem;
  color: rgba(244, 241, 234, 0.78);
  max-width: 520px;
  margin-bottom: 32px;
  line-height: 1.6;
}

footer {
  padding-top: 36px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 0.84rem;
  color: rgba(244, 241, 234, 0.6);
}

.footer-brand {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-brand strong {
  color: var(--offwhite);
  letter-spacing: 0.06em;
}

.footer-brand .dot {
  color: var(--copper);
}

footer a {
  color: inherit;
  text-decoration: none;
  margin-left: 24px;
}

footer a:hover {
  color: var(--copper);
}

/* Responsividade */
@media (max-width: 960px) {
  .scrolly-sticky,
  .simulator-box,
  .finale-box {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 96px;
  }

  .hero-center-grid {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 0 34px;
    gap: 28px;
  }

  .profiles-grid {
    grid-template-columns: 1fr;
  }

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

  nav a:not(.btn-pill) {
    display: none;
  }

  .scrolly-wrapper {
    height: auto;
  }

  .scrolly-sticky {
    position: relative;
    height: auto;
    padding: 72px 5vw 64px;
    gap: 32px;
  }

  .scrolly-steps {
    margin-bottom: 8px;
  }

  footer a:first-child {
    margin-left: 0;
  }
}

@media (max-width: 560px) {
  .eco-grid {
    grid-template-columns: 1fr;
  }
}
