/*
 * responsive.css — Breakpoints
 * mobile:   max-width 734px
 * tablet:   735px – 1068px
 * desktop:  1069px – 1439px
 * desktop estreito: 1069px – 1280px (overrides em bloco dedicado)
 * large:    1440px – 2159px
 * xlarge:   2160px+  (4K)
 */

/* ── Large — 1440px ──────────────────────────── */
@media (min-width: 1440px) {

  :root {
    --max-content-width-wide: 1360px;
  }

  .hero__split {
    max-width: 1360px;
    gap: var(--space-4xl);
    padding-left:  0;
    padding-right: 0;
  }

  .hero__title {
    font-size: clamp(var(--text-6xl), 4vw, var(--text-display));
  }
}

/* ── XLarge — 2160px (4K) ────────────────────── */
@media (min-width: 2160px) {

  :root {
    --max-content-width-wide: 1920px;
    --nav-height-global: 68px;
  }

  .hero__split {
    max-width: 1920px;
    gap: var(--space-md);
    padding-left:  80px;
    padding-right: 80px;
    padding-bottom: 140px;
  }

  .hero__title {
    font-size: 4.5rem;
  }

  .hero__subtitle {
    font-size: 1.375rem;
    max-width: 620px;
  }

  .hero__video-wrapper {
    border-radius: var(--radius-2xl);
    box-shadow:
      0 0 0 1.5px rgba(255, 149, 0, 0.22),
      0 40px 100px rgba(0, 0, 0, 0.55);
  }
}

/* ── Desktop estreito — 1069px a 1280px ─────── */
@media (max-width: 1280px) and (min-width: 1069px) {


  .story-section__two-col {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    align-items: start;
  }

  .beja-importance__grid .story-section__col-img img {
    height: auto;
    max-height: 360px;
    aspect-ratio: 4 / 3;
  }

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

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

  .bento-cell--tall {
    grid-row: span 1;
    min-height: 240px;
  }

  .missao-card {
    flex-direction: column;
  }

  .missao-card__img-wrap {
    flex: none;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .missao-card__img-wrap img {
    min-height: 0;
  }

  .missao-card__body {
    min-height: 0;
  }
}

/* ── Tablet ───────────────────────────────── */
@media (max-width: 1068px) {

  /* 90vw de largura — 5vw de gutter automático em cada lado */
  :root {
    --max-content-width:      90vw;
    --max-content-width-wide: 90vw;
  }

  .section-inner,
  .section-inner--wide {
    padding: 0 var(--space-md);   /* gutter mínimo 16px */
  }

  /* Hero split — coluna em tablet */
  .hero__split {
    gap: var(--space-2xl);
    padding: var(--space-2xl) var(--space-lg) var(--space-3xl);
    text-align: center;
  }

  .hero__video {
    width: 100%;
  }

  .hero__text {
    align-items: center;
  }

  .hero__title,
  .hero__subtitle {
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero__title {
    width: auto;
    min-width: auto;
  }

  .hero__subtitle { margin-bottom: var(--space-xl); }

  .hero__actions {
    justify-content: center;
  }

  /* Missão — padding menor */
  .missao-section {
    padding: var(--space-3xl) 0 var(--space-2xl);
  }

  .missao-section__header {
    margin-bottom: var(--space-xl);
  }

  .missao-cards {
    padding: 0;
  }

  /* Stat cards */
  .stat-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Feature cards */
  .feature-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }

  /* CTA cards */
  .cta-cards {
    gap: var(--space-md);
  }

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

  /* Story two-col */
  .story-section__two-col {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    align-items: start;
  }

  .beja-importance__grid .story-section__col-img img {
    height: auto;
    max-height: 320px;
    aspect-ratio: 4 / 3;
  }

  /* Missão — cards empilhados */
  .missao-card {
    flex-direction: column;
  }

  .missao-card__img-wrap {
    flex: none;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .missao-card__img-wrap img {
    min-height: 0;
  }

  .missao-card__body {
    min-height: 0;
  }

  .story-section__two-col--reverse {
    direction: ltr;
  }

  /* Bento */
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    min-height: 0;
  }

  .bento-grid.has-selection {
    min-height: 0;
  }

  .bento-cell           { min-height: 220px; }
  .bento-cell--wide     { grid-column: span 2; }
  .bento-cell--tall     { grid-row: span 1; min-height: 240px; }

  .bento-grid.has-selection .bento-cell {
    grid-column: auto !important;
    grid-row: auto !important;
  }

  .bento-grid.has-selection .bento-cell.is-active {
    grid-column: 1 / -1 !important;
    min-height: min(50vw, 380px);
  }

  .bento-grid.has-selection .bento-cell:not(.is-active) {
    min-height: 180px;
  }

  /* Footer */
  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }
}


/* ── Mobile ───────────────────────────────── */
@media (max-width: 734px) {

  /* 90vw de largura — 5vw de gutter automático em cada lado */
  :root {
    --section-padding-v:      var(--section-padding-v-mobile);
    --max-content-width:      90vw;
    --max-content-width-wide: 90vw;
  }

  .section-inner,
  .section-inner--wide {
    padding: 0 var(--space-md);   /* gutter mínimo 16px */
  }

  /* NAV */
  .global-nav__links { display: none; }
  .global-nav__cta   { display: none; }
  .global-nav__hamburger { display: flex; }

  .global-nav__logo-text {
    font-size: 0.75rem;
  }

  /* Hero */
  .hero__split {
    gap: var(--space-xl);
    padding: var(--space-xl) var(--space-md) var(--space-3xl);
    text-align: center;
  }

  .hero__video {
    width: 100%;
  }

  .hero__text {
    align-items: center;
  }

  .hero__title,
  .hero__subtitle {
    text-align: center;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero__title {
    width: auto;
    min-width: auto;
  }

  .hero__subtitle { margin-bottom: var(--space-xl); }

  .hero__actions {
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-sm);
  }

  .hero__actions .btn {
    width: auto;
    padding: 12px var(--space-md);
    font-size: var(--text-md);
    justify-content: center;
  }

  /* Missão — padding menor */
  .missao-section {
    padding: var(--space-2xl) 0;
  }

  .missao-section__header {
    margin-bottom: var(--space-lg);
  }

  .missao-cards {
    padding: 0;
    gap: var(--space-sm);
  }

  /* Stat cards — single col */
  .stat-cards {
    grid-template-columns: 1fr;
    background: none;
    gap: 0;
  }

  .stat-card {
    border-bottom: 0.5px solid var(--color-border-dark);
    padding: var(--space-xl) var(--space-md);
  }

  .stat-card:last-child { border-bottom: none; }

  /* Feature cards */
  .feature-cards {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  /* CTA cards */
  .cta-cards {
    gap: var(--space-md);
  }

  /* Bento — single col */
  .bento-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: var(--space-sm);
    min-height: 0;
  }

  .bento-grid.has-selection {
    min-height: 0;
  }

  .bento-cell           { height: 220px; }
  .bento-cell--wide     { grid-column: span 1; }
  .bento-cell--tall     { grid-row: span 1; height: 220px; }

  .bento-grid.has-selection .bento-cell {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    height: auto;
    min-height: 160px;
  }

  .bento-grid.has-selection .bento-cell.is-active {
    min-height: min(72vw, 400px);
  }

  .bento-grid.has-selection .bento-cell:not(.is-active) {
    min-height: 140px;
  }

  /* Partners */
  .partners-grid {
    gap: var(--space-2xl);
  }

  .partner-divider { display: none; }

  /* Story col img */
  .story-section__col-img img {
    height: 260px;
  }

  /* Footer */
  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .site-footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  /* CTA section actions */
  .cta-section__actions {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .cta-section__actions .btn {
    width: 100%;
    max-width: 320px;
  }
}


/* ── Mobile Small ─────────────────────────── */
@media (max-width: 480px) {

  .global-nav__logo-text { display: none; }

  .hero__subtitle {
    font-size: var(--text-base);
  }
}
