/* =============================================================================
   fan-urbanismo.css — Fan Urbanismo institutional page
   Sections: #hero, #quem-somos, #nossa-missao, #mvv,
             #video-sec, #numeros
   ============================================================================= */

/* Títulos e tags dos blocos desta página */
.stag { color: var(--preto); }
.stitle { color: #0E566F; }

/* ── HERO (mesmo padrão de developments) ───────────────────────────────────── */
#hero {
  position: relative;
  height: 100vh; min-height: 600px; max-height: 800px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
}
.hero-bg picture,
.hero-bg img,
.hero-bg video {
  display: block;
  width: 100%; height: 100%;
}
.hero-bg img,
.hero-bg video {
  object-fit: cover;
  object-position: center;
}
.hero-youtube {
  position: absolute;
  top: 50%; left: 50%;
  width: 100vw; height: 56.25vw;
  min-width: 177.78vh; min-height: 100vh;
  transform: translate(-50%, -50%);
  border: 0; pointer-events: none;
}
.hero-poster { position: absolute; inset: 0; }
.hero-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.38);
}
.hero-content {
  position: relative; z-index: 2;
  padding-bottom: 72px;
  padding-left: var(--pp); padding-right: var(--pp);
  max-width: 1920px; margin: 0 auto; width: 100%;
}
.hero-tag {
  font-size: 14px; font-weight: 700; color: white;
  text-transform: uppercase; letter-spacing: .1em;
  margin-bottom: 16px;
}
.hero-h1 {
  font-size: clamp(36px, 3.5vw, 56px); font-weight: 700;
  color: white; line-height: 1.15; max-width: 700px;
}
.hero-bg--urb {
  background-image: url('https://www.figma.com/api/mcp/asset/445524ef-d359-4a0d-8602-e6cfac5eb601');
}

/* ── SEÇÕES INSTITUCIONAIS (zig-zag) ────────────────────────────────────────── */
#quem-somos  { background: #fff; }
#nossa-missao { background: var(--g01); }

.urb-row { column-gap: 80px; }

.urb-text {
  display: flex; flex-direction: column;
}
.urb-stitle { margin-bottom: 24px; }
.urb-body {
  font-size: 16px; color: var(--g08); line-height: 1.7;
  margin-bottom: 1.4em;
}
.urb-body:last-child { margin-bottom: 0; }

.urb-img {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.urb-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .65s cubic-bezier(.4, 0, .2, 1);
}
.urb-img:hover img { transform: scale(1.04); }

/* ── MISSÃO, VISÃO E VALORES ────────────────────────────────────────────────── */
#mvv { background: #fff; }

.urb-mvv-hdr {
  text-align: center;
  margin-bottom: 56px;
}
.urb-mvv-hdr .stag { display: block; text-align: center; margin-bottom: 12px; }
.urb-mvv-hdr .stitle { display: block; }

.urb-mvv-grid { row-gap: 0; }

.urb-mvv-card {
  background: #fff;
  border: 1px solid var(--g02);
  border-radius: 16px;
  padding: 40px 32px;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.urb-mvv-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0,0,0,.08);
  border-color: rgba(14,86,111,.25);
}

.urb-mvv-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(14,86,111,.07);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 28px;
  transition: background var(--t);
}
.urb-mvv-card:hover .urb-mvv-icon { background: rgba(14,86,111,.16); }
.urb-mvv-icon svg { width: 24px; height: 24px; stroke: #0E566F; }
.urb-mvv-icon img {
  width: 28px; height: 28px;
  object-fit: contain;
}

.urb-mvv-title {
  font-size: 20px; font-weight: 700; color: var(--preto);
  margin-bottom: 16px;
}
.urb-mvv-text {
  font-size: 15px; color: var(--g08); line-height: 1.7;
}

/* ── VÍDEO ──────────────────────────────────────────────────────────────────── */
#video-sec {
  position: relative;
  height: 580px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--g06);
}
.vid-bg {
  position: absolute; inset: 0;
  will-change: transform;
}
.vid-bg picture,
.vid-bg img {
  display: block;
  width: 100%; height: 100%;
}
.vid-bg img { object-fit: cover; }
.vid-ov {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.48);
}

.vid-center-wrap {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  align-items: center; gap: 32px;
  pointer-events: none;
}
.vid-label { text-align: center; pointer-events: none; }
.vid-eyebrow {
  font-size: 13px; font-weight: 700; color: rgba(255,255,255,.65);
  text-transform: uppercase; letter-spacing: .12em;
  margin-bottom: 8px;
}
.vid-headline {
  font-size: clamp(28px, 3.5vw, 48px); font-weight: 700;
  color: #fff; line-height: 1.15;
}

.vid-play {
  pointer-events: all;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(255,255,255,.7);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t), transform var(--t);
}
#video-sec:hover .vid-play {
  background: rgba(255,255,255,.85);
  transform: scale(1.1);
}
.vid-play-icon {
  width: 0; height: 0;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  border-left: 26px solid #0E566F;
  margin-left: 6px;
}

/* ── MODAL VÍDEO ────────────────────────────────────────────────────────────── */
.vid-modal {
  position: fixed; inset: 0; z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.vid-modal.is-open { opacity: 1; pointer-events: auto; }
.vid-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.82);
  cursor: pointer;
}
.vid-modal__box {
  position: relative; z-index: 1;
  width: min(900px, 92vw);
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  transform: scale(.95);
  transition: transform .3s ease;
}
.vid-modal.is-open .vid-modal__box { transform: scale(1); }
.vid-modal__close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0,0,0,.6); color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background var(--t);
}
.vid-modal__close:hover { background: rgba(255,0,0,.85); }
.vid-modal__close svg { width: 18px; height: 18px; }
.vid-modal__frame { position: relative; padding-bottom: 56.25%; height: 0; }
.vid-modal__frame iframe,
.vid-modal__frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }
.vid-modal__frame video { display: none; background: #000; }
.vid-modal__frame.is-file iframe { display: none; }
.vid-modal__frame.is-file video { display: block; }

/* ── NOSSOS NÚMEROS ─────────────────────────────────────────────────────────── */
#numeros {
  position: relative;
  overflow: hidden;
}
.num-bg {
  position: absolute; inset: 0;
}
.num-bg picture,
.num-bg img,
.num-bg video {
  display: block;
  width: 100%; height: 100%;
}
.num-bg img,
.num-bg video { object-fit: cover; }
.num-bg video {
  position: absolute; inset: 0;
}
.num-youtube {
  position: absolute;
  top: 50%; left: 50%;
  width: 100vw; height: 56.25vw;
  min-width: 177.78vh; min-height: 100vh;
  transform: translate(-50%, -50%);
  border: 0; pointer-events: none;
}
.num-poster { position: absolute; inset: 0; }
.num-ov {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.65);
}
.num-ctn {
  position: relative; z-index: 2;
  padding-top: 96px; padding-bottom: 96px;
}
.num-head {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}
.num-eyebrow {
  font-size: 13px; font-weight: 700;
  color: rgba(255,255,255,.72);
  text-transform: uppercase; letter-spacing: .12em;
  margin-bottom: 10px;
}
.num-title {
  font-size: clamp(30px, 4vw, 48px); font-weight: 700;
  color: #fff; line-height: 1.15;
}
.num-subtitle {
  font-size: 16px; color: rgba(255,255,255,.76);
  line-height: 1.7; margin-top: 14px;
}
.num-row {
  display: flex;
  align-items: center;
  justify-content: center;
  container-type: inline-size;
  --cols: var(--num-cols, 3);
}
.num-item {
  flex: 1; min-width: 0;
  text-align: center;
  padding: 0 var(--num-pad, 40px);
}
.num-val {
  /* Cabe o maior número da linha (--len caracteres) na largura de cada coluna (--cols) */
  font-size: clamp(24px, calc((100cqi / var(--cols, 3) - 2 * var(--num-pad, 40px)) / var(--len, 4) * 1.6), 96px);
  font-weight: 900; white-space: nowrap;
  color: #fff; line-height: 1;
  margin-bottom: 16px;
}
.num-lbl {
  font-size: 15px; font-weight: 500;
  color: rgba(255,255,255,.72);
  text-transform: uppercase; letter-spacing: .08em;
}
.num-divider {
  width: 1px; height: 120px;
  background: rgba(255,255,255,.2);
  flex-shrink: 0;
}

/* ── RESPONSIVO ─────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .urb-row { column-gap: 48px; }

  #quem-somos .col-6,
  #nossa-missao .col-6 { grid-column: span 12; }

  /* No zig-zag de nossa-missao, a imagem fica no topo em mobile */
  #nossa-missao .urb-img-col { order: -1; }

  .urb-mvv-grid .col-4 { grid-column: span 12; }
  .urb-mvv-grid { row-gap: 24px; }
  .urb-mvv-hdr  { margin-bottom: 40px; }

  .num-row { --num-pad: 16px; }
}

@media (max-width: 640px) {
  .urb-img   { aspect-ratio: 16 / 9; }
  #video-sec { height: 400px; }
  .vid-headline { font-size: 28px; }

  .num-row      { flex-direction: column; gap: 48px; --cols: 1; --num-pad: 0px; }
  .num-divider  { width: 80px; height: 1px; }
  .num-item     { padding: 0; width: 100%; }

}
