/* Motoboys em Ação — 6ª Edição: Entregando Sorrisos
   Paleta: azul #3272a8 / #35507f, amarelo #f7c52b, ciano #a5e3ff */

html { scroll-behavior: smooth; }
body { margin: 0; background: #3272a8; }
*, *::before, *::after { box-sizing: border-box; }

.mea {
  font-family: 'Poppins', system-ui, sans-serif;
  color: #fff;
  line-height: 1.6;
  font-size: 17px;
}
.mea h1, .mea h2, .mea h3, .mea p, .mea figure, .mea ul { margin: 0; }
/* height:auto neutraliza o atributo height das imagens; a altura real vem do CSS. */
.mea img { display: block; height: auto; }

.disp { font-family: 'Chewy', 'Poppins', system-ui, sans-serif; font-weight: 400; }

/* Texto só para leitores de tela e buscadores */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(1120px, calc(100% - 2 * clamp(20px, 5vw, 48px)));
  margin-inline: auto;
}

.sec { position: relative; padding-bottom: clamp(64px, 9vw, 120px); }

/* Faixa em arco que abre cada seção */
.arc {
  position: relative;
  background: #35507f;
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  padding: clamp(48px, 8vw, 88px) 20px clamp(56px, 9vw, 100px);
  text-align: center;
  box-shadow: 0 20px 44px rgba(14, 30, 66, .35);
  margin-bottom: clamp(40px, 6vw, 72px);
}
.arc h2 {
  font-family: 'Chewy', 'Poppins', sans-serif;
  font-weight: 400;
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.05;
}
.arc .ico { height: clamp(52px, 7vw, 84px); width: auto; margin: 0 auto 12px; }

.decor {
  position: absolute;
  height: auto;
  pointer-events: none;
  will-change: transform;
  filter: drop-shadow(0 14px 18px rgba(10, 24, 56, .35));
}

.card {
  border: 2px dashed rgba(255, 255, 255, .9);
  border-radius: 32px;
  background: rgba(24, 52, 100, .5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: clamp(24px, 4vw, 48px);
}

.flag {
  flex: none;
  width: 20px;
  height: 16px;
  margin-top: 7px;
  background: #ee8a2c;
  clip-path: polygon(0 0, 100% 0, 80% 50%, 100% 100%, 0 100%);
  border-radius: 2px;
}

.item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 22px;
  border-radius: 22px;
  background: rgba(24, 52, 100, .55);
  border: 1px solid rgba(165, 227, 255, .28);
  transition: transform .25s, background .25s;
}
.item:hover { transform: translateY(-4px); background: rgba(24, 52, 100, .8); }

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 30px;
  border-radius: 999px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px) scale(1.03); }
.btn-main { background: #f7c52b; color: #1d2f58; box-shadow: 0 8px 0 #c9962a; }
.btn-ghost { background: rgba(24, 52, 100, .45); color: #fff; border: 2px solid #a5e3ff; }

.cyan { color: #a5e3ff; }

.photo {
  border: 3px dashed #a5e3ff;
  border-radius: 30px;
  padding: 8px;
  background: rgba(24, 52, 100, .3);
}
.photo .in { overflow: hidden; border-radius: 22px; position: relative; }

.tab {
  min-height: 48px;
  min-width: 96px;
  padding: 8px 26px;
  border-radius: 999px;
  border: 2px solid #a5e3ff;
  background: rgba(24, 52, 100, .5);
  color: #fff;
  font-family: 'Chewy', sans-serif;
  font-size: 24px;
  cursor: pointer;
}
.tab.on { background: #f7c52b; color: #1d2f58; border-color: #f7c52b; }

/* Fotos em moldura de negativo de filme */
.film {
  position: relative;
  background: #dcc36d;
  padding: 12px 30px 12px 12px;
  border-radius: 4px;
  box-shadow: 0 14px 28px rgba(10, 24, 56, .4);
  transition: transform .3s;
}
.film:hover { transform: rotate(0deg) scale(1.04) !important; z-index: 3; }
.film img { width: 100%; height: auto; aspect-ratio: 3/4; object-fit: cover; }
.film-t {
  position: absolute;
  right: 6px;
  top: 12px;
  bottom: 12px;
  writing-mode: vertical-rl;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .18em;
  color: #35507f;
  text-align: center;
}
.film-n { position: absolute; left: 14px; top: -1px; font-size: 10px; font-weight: 700; color: #35507f; }

.stat {
  text-align: center;
  padding: 28px 18px;
  border-radius: 30px;
  background: rgba(24, 52, 100, .55);
  border: 2px dashed rgba(255, 255, 255, .85);
}
.stat b {
  display: block;
  font-family: 'Chewy', sans-serif;
  font-weight: 400;
  font-size: clamp(52px, 8vw, 92px);
  line-height: 1;
  color: #f7c52b;
}

.blob { overflow: hidden; border: 6px solid #8fbbd8; aspect-ratio: 3/4; }

/* Letreiro do logotipo */
.wm {
  font-family: 'Chewy', sans-serif;
  font-weight: 400;
  line-height: .86;
  text-align: center;
  -webkit-text-stroke: 6px #1b4f8a;
  paint-order: stroke fill;
  text-shadow: 0 5px 0 #1b4f8a;
}

.tl { display: grid; grid-template-columns: auto 1fr; gap: 6px 22px; align-items: start; }
.tl-time {
  font-weight: 700;
  color: #a5e3ff;
  font-size: clamp(20px, 2.6vw, 28px);
  white-space: nowrap;
}

.cdbox {
  min-width: 76px;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(24, 52, 100, .7);
  border: 2px dashed rgba(255, 255, 255, .8);
  text-align: center;
}
.cdbox b {
  display: block;
  font-family: 'Chewy', sans-serif;
  font-weight: 400;
  font-size: 34px;
  line-height: 1.1;
  color: #f7c52b;
}
.cdbox span { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }

a.tel { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
a.tel:hover { color: #f7c52b; }

.nav {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 16px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}
.nav:hover { background: rgba(165, 227, 255, .22); }

.fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  box-shadow: 0 8px 0 #c9962a, 0 16px 30px rgba(10, 24, 56, .4);
}

/* Faixas de texto em movimento */
.mqwrap {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.mq { display: flex; gap: 14px; width: max-content; animation: mq 42s linear infinite; }
.mq.rev { animation-direction: reverse; }
.mqwrap:hover .mq { animation-play-state: paused; }
@keyframes mq { to { transform: translateX(calc(-50% - 7px)); } }

.chip {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 16px 28px;
  border-radius: 999px;
  background: rgba(24, 52, 100, .72);
  border: 2px dashed rgba(255, 255, 255, .85);
  font-weight: 600;
  font-size: clamp(16px, 1.8vw, 20px);
}
.chip2 { background: rgba(247, 197, 43, .92); color: #1d2f58; border: 2px solid #f7c52b; }

.strip {
  display: flex;
  gap: clamp(18px, 2.4vw, 30px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 44px max(20px, calc((100% - 1120px) / 2)) 52px;
  scrollbar-width: thin;
  scrollbar-color: #a5e3ff transparent;
  cursor: grab;
}
.strip.dragging { cursor: grabbing; scroll-snap-type: none; }
.strip .film { flex: none; width: clamp(210px, 24vw, 290px); scroll-snap-align: center; }

/* Botão que envolve a foto dentro da moldura */
.film-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  line-height: 0;
}
.film-btn:focus-visible { outline: 3px solid #a5e3ff; outline-offset: 4px; }
.strip.dragging .film-btn { cursor: grabbing; }

/* Foto ampliada (lightbox) */
.lb {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 2vw, 24px);
  padding: clamp(12px, 3vw, 32px);
  background: rgba(10, 24, 56, .93);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.lb[hidden] { display: none; }
.lb-fig {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: min(1100px, 100%);
  max-height: 100%;
  margin: 0;
}
.lb-frame {
  overflow: hidden;
  border-radius: 18px;
  background: #dcc36d;
  padding: 10px;
  box-shadow: 0 20px 50px rgba(5, 14, 36, .6);
  touch-action: none;
}
.lb-frame img {
  display: block;
  max-width: min(78vw, 980px);
  max-height: 72vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  cursor: zoom-in;
  transform: scale(1);
  transform-origin: center center;
  transition: transform .3s ease;
}
.lb-frame img.zoomed { cursor: zoom-out; transform: scale(2.4); transition: transform .2s ease; }
.lb-cap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  align-items: baseline;
  justify-content: center;
  max-width: 70ch;
  text-align: center;
  font-family: 'Poppins', system-ui, sans-serif;
  color: #fff;
  font-size: 16px;
  line-height: 1.5;
}
.lb-count { color: #a5e3ff; font-weight: 700; font-size: 14px; white-space: nowrap; }
.lb-nav, .lb-close {
  flex: none;
  min-width: 52px;
  min-height: 52px;
  border-radius: 999px;
  border: 2px solid #a5e3ff;
  background: rgba(24, 52, 100, .8);
  color: #fff;
  font-size: 24px;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.lb-nav:hover, .lb-close:hover { background: #f7c52b; color: #1d2f58; transform: scale(1.06); }
.lb-close {
  position: absolute;
  top: clamp(12px, 3vw, 28px);
  right: clamp(12px, 3vw, 28px);
  font-size: 30px;
  line-height: 1;
}
@media (max-width: 720px) {
  .lb { flex-wrap: wrap; align-content: center; }
  .lb-fig { order: -1; width: 100%; }
  .lb-frame img { max-width: 88vw; max-height: 58vh; }
}

/* <picture> não deve virar uma caixa a mais: sem isso, alturas em % e
   posicionamento absoluto passam a medir contra o <picture>, não contra o pai. */
.mea picture, .lb-frame picture { display: contents; }

/* Barra de atalhos fixa. O blur fica no CSS para poder ser desligado no celular. */
.nav-bar {
  background: rgba(32, 56, 105, .86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Entrada dos blocos ao rolar, controlada por IntersectionObserver. */
.reveal {
  opacity: 0;
  translate: 0 40px;
  transition: opacity .5s ease, translate .5s ease;
}
.reveal-on { opacity: 1; translate: 0 0; }

/* backdrop-filter é dos efeitos mais caros em GPU de celular e some sob o
   conteúdo durante a rolagem. Em tela pequena, fundo sólido no lugar. */
@media (max-width: 820px), (pointer: coarse) {
  .card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(24, 52, 100, .82);
  }
  .lb {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(10, 24, 56, .97);
  }
  .nav-bar {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(32, 56, 105, .96);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; translate: 0 0; transition: none; }
  .item, .btn, .film, .lb-nav, .lb-close, .lb-frame img { transition: none; }
  .mq { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .mqwrap { -webkit-mask-image: none; mask-image: none; }
}
