/* Container & Grids */
body {
  overflow-x: hidden;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
}

@media (min-width: 768px) {
  .grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
  .grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
}

/* Background Variations */
.bg-warm { background-color: var(--warm-bg); }
.bg-light { background-color: var(--surface); }
.bg-dark { 
  background-color: var(--dark-bg); 
  color: var(--on-dark); 
}

.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark p {
  color: #ffffff;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Section Specific Overrides */
.hero-section {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  color: #ffffff;
}

/* Ponto 1: Hero Typography - Refined Scale */
.hero-title {
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.hero-logo {
  height: clamp(4.2rem, 4.4vw, 4.8rem);
}

.audience-caption {
  font-family: var(--font-headline);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.16;
  text-wrap: balance;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

#mentora {
  padding-bottom: 0 !important; /* Ponto 7 - Fixa na base */
}

#inscricao {
  scroll-margin-top: 1.5rem;
}

.manifesto-parallax {
  background: linear-gradient(rgba(30, 27, 26, 0.85), rgba(42, 39, 36, 0.85)),
              url('../img/cmm-foto-nanda-palestrante.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

.audience-parallax {
  background:
    linear-gradient(rgba(249, 245, 240, 0.9), rgba(249, 245, 240, 0.92)),
    url('../img/cmm-curseduca-cover.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}


@media (max-width: 1023px) {
  .manifesto-parallax,
  .audience-parallax { background-attachment: scroll; }
}

/* Images & Overlays */
.overlay-dark {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.8) 100%);
  z-index: 1;
}

.overlay-brown {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(45,27,13,0.3) 0%, rgba(45,27,13,0.95) 100%);
  z-index: 1;
}

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

.hero-media {
  background-color: #6a4529;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.hero-media__picture,
.hero-media__image {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-media__picture {
  position: absolute;
  inset: 0;
}

.hero-media__image {
  object-fit: cover;
  object-position: left top;
}

/* Navigation */
.nav-blur {
  background: rgba(251, 249, 245, 0.8);
  backdrop-filter: blur(12px);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  transition: all 0.3s ease;
}

@media (max-width: 767px) {
  .section {
    padding: 3.5rem 0;
  }

  .hero-section {
    min-height: max(100svh, 46rem);
    align-items: flex-start;
    padding-top: max(2rem, env(safe-area-inset-top));
    padding-bottom: 2.75rem;
  }

  .hero-media__image {
    object-position: center center;
  }

  .overlay-brown {
    background: linear-gradient(90deg, rgba(45, 27, 13, 0.92) 0%, rgba(45, 27, 13, 0.82) 34%, rgba(45, 27, 13, 0.42) 68%, rgba(45, 27, 13, 0.14) 100%);
  }

  .hero-section .max-w-7xl,
  .section .max-w-7xl,
  .section .max-w-5xl,
  .section .max-w-4xl {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .hero-section .max-w-7xl {
    justify-content: stretch;
  }

  .hero-section .fade-in {
    width: 100%;
    max-width: 100%;
  }

  .hero-section .fade-in > img:first-child {
    width: min(276px, 82vw);
    height: auto;
    margin-bottom: 1.5rem;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 2.55rem);
    line-height: 1.06;
    margin-bottom: 1rem !important;
    max-width: 13ch;
  }

  .hero-section .hero-title + p {
    font-size: 1rem !important;
    line-height: 1.45;
    margin-bottom: 1.5rem !important;
    max-width: 30ch;
  }

  .hero-section ul {
    display: grid;
    gap: 0.9rem;
    margin-bottom: 1.75rem !important;
  }

  .hero-section ul li {
    gap: 0.75rem;
  }

  .hero-section ul li > span:last-child {
    font-size: 0.92rem;
    line-height: 1.45;
  }

  .hero-section ul .material-symbols-outlined {
    font-size: 1.1rem;
    margin-top: 0.15rem;
  }

  .hero-actions {
    width: 100%;
    align-items: stretch !important;
    gap: 0.875rem;
  }

  .hero-section .btn {
    width: 100%;
    padding: 0.95rem 1rem;
    min-height: 56px;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    border-radius: 14px;
  }

  .hero-section .btn-secondary {
    background: rgba(255, 255, 255, 0.08);
  }

  blockquote {
    padding: 1.5rem 1.25rem 2rem;
    margin: 1.5rem 0;
  }

  .quote-quote {
    font-size: 2.5rem;
  }

  .quote-open {
    top: -10px;
    left: 0;
  }

  .quote-close {
    bottom: -18px;
    right: 0;
  }

  .identity-rect {
    width: min(100%, 320px);
    padding: 0.85rem 1rem;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    margin: 0;
  }

  .grid-3,
  .audience-grid,
  .transformation-grid {
    gap: 1.25rem;
  }

  .section .text-center.mb-16 {
    margin-bottom: 2.5rem !important;
  }

  .section .text-center.mb-12 {
    margin-bottom: 2rem !important;
  }

  .card {
    padding: 1.4rem;
    border-radius: 24px;
  }

  .transformation-card {
    padding: 1.5rem 1.25rem !important;
  }

  .transformation-card .material-symbols-outlined {
    font-size: 2rem !important;
    margin-bottom: 1rem;
  }

  .transformation-card h4 {
    margin-bottom: 0.65rem;
  }

  .impact-chips {
    gap: 0.75rem;
    margin-bottom: 2rem !important;
  }

  .chip {
    width: min(100%, 320px);
    padding: 0.95rem 1rem;
    font-size: 0.92rem;
    line-height: 1.4;
  }

  .modules-swiper {
    margin-top: 1.75rem !important;
  }

  .modules-swiper .swiper-button-next,
  .modules-swiper .swiper-button-prev {
    display: none !important;
  }

  .modules-swiper .swiper-slide {
    width: min(82vw, 320px);
  }

  .audience-grid article {
    border-radius: 22px;
  }

  .audience-grid article .absolute.inset-0 {
    padding: 1.15rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 20%, rgba(23, 14, 8, 0.54) 62%, rgba(16, 9, 4, 0.92) 100%);
  }

  .audience-grid article p {
    font-size: 1.14rem !important;
  }

  #mentora .max-w-7xl {
    gap: 0;
  }

  #mentora {
    padding-bottom: 1.5rem !important;
    overflow: visible;
  }

  #inscricao {
    padding-top: 4.5rem;
  }

  .mentor-visual {
    height: 500px !important;
    margin-top: 0;
    margin-bottom: -1.25rem;
    align-items: flex-end;
    overflow: visible;
    position: relative;
    padding-top: 1rem;
  }

  .mentor-visual::after {
    display: none;
  }

  .mentor-visual img {
    height: 100% !important;
    width: auto;
    max-width: none;
    transform: translateY(0);
    position: relative;
    z-index: 0;
    filter: drop-shadow(0 18px 38px rgba(45, 27, 13, 0.18));
  }

  .mentor-card {
    padding: 1.5rem 1.25rem !important;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    position: relative;
    z-index: 2;
  }

  .offer-panel {
    border-radius: 28px !important;
    padding: 1.75rem 1.25rem !important;
  }

  .offer-panel .mb-12 {
    margin-bottom: 1.75rem !important;
  }

  .offer-panel .tag {
    margin-bottom: 1.5rem !important;
  }

  .offer-panel .flex.items-center.justify-center.gap-2 {
    flex-direction: column;
    gap: 0.25rem;
  }

  .offer-panel .text-7xl {
    font-size: clamp(2.8rem, 15vw, 4.2rem) !important;
  }

  .offer-panel .btn {
    padding-top: 1rem;
    padding-bottom: 1rem;
    font-size: 0.95rem !important;
  }

  .site-footer {
    padding: 2.4rem 0;
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
  }

  .site-footer__brand {
    flex-direction: column;
    gap: 1rem;
  }

  .site-footer__copy {
    align-items: center;
  }

  .site-footer__logo {
    height: 2.45rem;
  }

  .site-footer__rights,
  .site-footer__signature {
    font-size: 0.82rem;
    text-align: center;
  }

  .site-footer__signature {
    white-space: normal;
  }
}

@media (min-width: 768px) {
  .hero-logo {
    transform: scale(1.2);
    transform-origin: left center;
  }

  .audience-caption {
    font-size: clamp(1.45rem, 1.15rem + 0.55vw, 1.9rem);
    line-height: 1.18;
    font-family: var(--font-headline);
    font-weight: 500;
    letter-spacing: -0.015em;
    text-wrap: balance;
    text-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  }

  .mentor-visual {
    overflow: visible;
    position: relative;
  }

  .mentor-visual img {
    display: block;
    height: 100%;
    filter: drop-shadow(0 18px 38px rgba(45, 27, 13, 0.18));
  }
}
