/* =========================================================
   MTC Brazil – Meridian Training Center
   Layout inspirado em piper.com/model/m700-fury
   ========================================================= */

:root {
  /* Marca */
  --navy: #23245f;          /* azul do emblema MTC */
  --navy-deep: #15163d;
  --blue: #1e5bb8;          /* azul Piper */
  --red: #e23a44;           /* vermelho Piper (detalhes) */

  /* Neutros */
  --ink: #0e0f17;
  --ink-2: #3b3d4a;
  --muted: #6b6e7d;
  --line: #e4e5ea;
  --mist: #f4f5f8;
  --paper: #ffffff;

  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --header-h: 76px;
  --max: 1240px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; }
h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; }
p { margin: 0 0 1.1em; }

.container { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.narrow { max-width: 860px; }
.center { text-align: center; }
.section { padding: clamp(72px, 10vw, 128px) 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.eyebrow {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  margin-bottom: 1rem;
}
.eyebrow--dark { color: var(--blue); }

.lead { font-size: 1.15rem; color: var(--ink-2); }

/* ---------- Botões (pílulas estilo Piper) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn--pill { padding: .95em 1.9em; border-radius: 999px; }
.btn:hover { transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--mist); }
.btn--ghost { color: #fff; border-color: rgba(255,255,255,.75); background: transparent; }
.btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--navy); }
.btn--outline { color: var(--ink); border-color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.6rem; }
.center .btn-row { justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .35s var(--ease), box-shadow .35s var(--ease);
}
.header-inner {
  width: min(100% - 32px, 1400px); margin-inline: auto;
  height: var(--header-h);
  display: flex; align-items: center; gap: 28px;
}
.brand { display: block; height: 62px; flex-shrink: 0; }
.brand-logo { height: 100%; width: auto; }
.brand-logo--dark { display: none; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  font-family: var(--font-head); font-weight: 600; font-size: .9rem;
  color: #fff; text-decoration: none; position: relative; padding: 6px 0;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.main-nav a:hover::after,
.main-nav a.is-active::after { transform: scaleX(1); }

.btn--header { background: #fff; color: var(--ink); padding: .7em 1.4em; }

.site-header.is-solid { background: rgba(255,255,255,.96); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.site-header.is-solid .brand-logo--light { display: none; }
.site-header.is-solid .brand-logo--dark { display: block; }
.site-header.is-solid .main-nav a { color: var(--ink); }
.site-header.is-solid .btn--header { background: var(--ink); color: #fff; }
.site-header.is-solid .menu-toggle span { background: var(--ink); }

.menu-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px;
  background: none; border: 0; cursor: pointer; padding: 10px;
}
.menu-toggle span { display: block; height: 2px; background: #fff; margin: 5px 0; transition: transform .3s, opacity .3s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  background: #fff; padding: 12px 24px 28px; display: flex; flex-direction: column;
  box-shadow: 0 20px 40px rgba(0,0,0,.12);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.btn) {
  font-family: var(--font-head); font-weight: 600; color: var(--ink);
  text-decoration: none; padding: 14px 0; border-bottom: 1px solid var(--line);
}
.mobile-menu .btn { margin-top: 18px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: var(--header-h); overflow: hidden; isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%;
  transform: scale(1.06); animation: heroZoom 14s var(--ease) forwards;
}
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8,9,20,.55) 0%, rgba(8,9,20,0) 28%),
    linear-gradient(0deg, rgba(8,9,20,.92) 0%, rgba(8,9,20,.55) 38%, rgba(8,9,20,0) 70%);
}
@keyframes heroZoom { to { transform: scale(1); } }

.hero-content { padding-bottom: 40px; }
.hero h1 { color: #fff; max-width: 14ch; }
.hero h1 span { display: block; font-size: .5em; font-weight: 600; opacity: .9; margin-top: .3em; letter-spacing: -0.01em; }
.hero-sub { font-size: 1.15rem; max-width: 52ch; color: rgba(255,255,255,.88); }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,.22);
  padding: 28px 0 40px;
}
.stat { padding: 0 24px; text-align: center; }
.stat + .stat { border-left: 1px solid rgba(255,255,255,.28); }
.stat strong {
  display: block; font-family: var(--font-head); font-weight: 700;
  font-size: clamp(1.4rem, 2.6vw, 2.2rem); color: #fff; line-height: 1.15;
}
.stat small {
  display: block; margin-top: 6px; font-family: var(--font-head);
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.75);
}

/* ---------- Highlights ---------- */
.highlights { background: var(--navy); color: #fff; }
.highlights-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.highlight {
  display: flex; align-items: center; gap: 14px; padding: 26px 20px;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
}
.highlight + .highlight { border-left: 1px solid rgba(255,255,255,.14); }
.highlight svg {
  width: 30px; height: 30px; flex-shrink: 0; fill: none; stroke: #fff;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .9;
}

/* ---------- Intro / Sobre ---------- */
.intro .lead { font-size: 1.25rem; }
.intro .btn { margin-top: 1rem; }

.authorized {
  margin-top: clamp(64px, 8vw, 104px);
  display: grid; grid-template-columns: 1.5fr 1fr; align-items: center;
  background: var(--mist); border-radius: var(--radius); overflow: hidden;
}
.authorized-media img { width: 100%; height: 100%; aspect-ratio: 16/9; object-fit: cover; }
.authorized-copy { padding: clamp(28px, 4vw, 56px); }
.piper-badge img { width: 150px; margin-bottom: 22px; }
.authorized-copy h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }

/* ---------- Missão & Valores ---------- */
.mission { background: var(--mist); }
.mission-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.mission-copy { position: sticky; top: calc(var(--header-h) + 32px); }
.values { display: grid; gap: 18px; }
.value {
  background: #fff; border-radius: var(--radius); padding: 30px 32px;
  border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.value:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(20,22,60,.08); }
.value-num { font-family: var(--font-head); font-weight: 800; color: var(--blue); font-size: .9rem; letter-spacing: .1em; }
.value h3 { margin: .4em 0 .4em; font-size: 1.45rem; }
.value p { margin: 0; }

/* ---------- Split (Por que escolher) ---------- */
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.feature-list { list-style: none; padding: 0; margin: 2rem 0 0; }
.feature-list li {
  position: relative; padding: 18px 0 18px 34px; border-top: 1px solid var(--line);
}
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 27px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--navy); box-shadow: 0 0 0 5px rgba(35,36,95,.12);
}
.feature-list h3 { font-size: 1.12rem; margin-bottom: .35em; }
.feature-list p { margin: 0; font-size: .98rem; }
.split-media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); }

/* ---------- Cards / Serviços ---------- */
.section-head { max-width: 760px; margin: 0 auto clamp(40px, 5vw, 64px); }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(20,22,60,.10); }
.card-media { overflow: hidden; }
.card-media img { width: 100%; aspect-ratio: 10/7; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }
.card-body { padding: 26px 28px 30px; }
.card-body p { margin: 0; font-size: .98rem; }

/* ---------- Cursos ---------- */
.courses { background: var(--ink); color: rgba(255,255,255,.8); }
.courses h2, .courses h3 { color: #fff; }
.courses .lead { color: rgba(255,255,255,.75); }
.courses .eyebrow { color: #8fb3f0; }

.tabs {
  display: flex; justify-content: center; gap: 6px; margin: 0 auto 40px;
  background: rgba(255,255,255,.08); padding: 6px; border-radius: 999px; width: fit-content;
  max-width: 100%;
}
.tabs button {
  font-family: var(--font-head); font-weight: 600; font-size: .92rem;
  border: 0; border-radius: 999px; padding: .8em 1.6em; cursor: pointer; white-space: nowrap;
  background: transparent; color: rgba(255,255,255,.75); transition: background .25s, color .25s;
}
.tabs button[aria-selected="true"] { background: #fff; color: var(--ink); }

.course {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start;
  animation: fadeUp .6s var(--ease);
}
.course[hidden] { display: none; }
/* telas grandes: foto alta que acompanha o texto ao rolar */
.course-media { position: sticky; top: calc(var(--header-h) + 24px); }
.course-media img { width: 100%; aspect-ratio: 4/5; max-height: calc(100vh - var(--header-h) - 160px); object-fit: cover; border-radius: var(--radius); }
.course-media .course-thumbs img { aspect-ratio: 4/3; max-height: none; }

/* telas médias e celular: foto em cima, largura total; texto embaixo */
@media (max-width: 1100px) {
  .course { grid-template-columns: 1fr; gap: 28px; }
  .course-media { position: static; }
  .course-media img { aspect-ratio: 16/9; max-height: none; }
  .course-copy { max-width: 760px; }
}
.course-copy h3 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.specs {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 1.6rem 0 1.8rem;
  background: rgba(255,255,255,.14); border-radius: var(--radius-sm); overflow: hidden;
}
.specs div { background: var(--ink); padding: 14px 18px; }
.specs dt { font-size: .7rem; font-family: var(--font-head); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.specs dd { margin: 4px 0 0; font-family: var(--font-head); font-weight: 700; color: #fff; font-size: 1.05rem; }

.course-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.course-thumbs button {
  padding: 0; border: 2px solid transparent; border-radius: var(--radius-sm); overflow: hidden;
  cursor: pointer; background: none; opacity: .6; transition: opacity .25s, border-color .25s;
}
.course-thumbs button:hover,
.course-thumbs button.is-active { opacity: 1; border-color: #fff; }
.course-thumbs img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.course-features { list-style: none; padding: 0; margin: -.4rem 0 1.8rem; display: flex; flex-wrap: wrap; gap: 8px; }
.course-features li {
  font-family: var(--font-head); font-weight: 600; font-size: .82rem; color: #fff;
  padding: .45em 1em; border-radius: 999px; border: 1px solid rgba(255,255,255,.3);
}
.course-source { margin: 1rem 0 0; font-size: .78rem; color: rgba(255,255,255,.45); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Tecnologia (vídeo) ---------- */
.tech-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.check-list { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 34px; font-weight: 500; color: var(--ink); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/14px no-repeat;
}
.video-frame {
  position: relative; max-width: 380px; margin-inline: auto;
  aspect-ratio: 9/16; border-radius: 28px; overflow: hidden;
  background: #000; box-shadow: 0 40px 80px rgba(14,15,23,.25), 0 0 0 8px #11121c;
}
.video-frame video { width: 100%; height: 100%; object-fit: cover; }
.video-toggle {
  position: absolute; right: 14px; bottom: 14px; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.9); cursor: pointer; display: grid; place-items: center;
}
.video-toggle svg { width: 18px; height: 18px; fill: var(--ink); }
.video-toggle .i-play { display: none; }
.video-toggle.is-paused .i-play { display: block; }
.video-toggle.is-paused .i-pause { display: none; }
.video-tag {
  position: absolute; left: 50%; top: 14px; transform: translateX(-50%); white-space: nowrap;
  background: rgba(14,15,23,.7); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; padding: 6px 12px; border-radius: 999px; backdrop-filter: blur(6px);
}

/* ---------- Onde treinamos ---------- */
.where { position: relative; color: #fff; isolation: isolate; overflow: hidden; }
.where-media { position: absolute; inset: 0; z-index: -1; }
.where-media img { width: 100%; height: 100%; object-fit: cover; }
.where-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,9,20,.85) 0%, rgba(8,9,20,.35) 60%, rgba(8,9,20,.15) 100%); }
.where-content { padding: clamp(96px, 14vw, 180px) 0; }
.where h2 { color: #fff; font-size: clamp(2.6rem, 6vw, 5rem); margin-bottom: 40px; }
.where-cards { display: flex; flex-wrap: wrap; gap: 18px; }
.where-card {
  min-width: 260px; padding: 26px 30px; border-radius: var(--radius);
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(14px);
}
.where-card small { display: block; font-family: var(--font-head); font-weight: 700; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.where-card strong { display: block; font-family: var(--font-head); font-size: clamp(1.6rem, 3vw, 2.4rem); margin: 6px 0 4px; }
.where-card span { font-size: .92rem; color: rgba(255,255,255,.8); }

/* ---------- Galeria bento ---------- */
.bento-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 60px; gap: 12px;
  grid-auto-flow: dense;
}
.bento {
  position: relative; padding: 0; border: 0; overflow: hidden; border-radius: 14px; background: var(--mist);
  cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  grid-row: span 3; transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.bento--tall { grid-row: span 4; }
.bento--wide { grid-column: span 2; grid-row: span 3; }
.bento--big  { grid-column: span 2; grid-row: span 4; }
.bento:hover { transform: scale(1.02); box-shadow: 0 18px 40px rgba(14,15,23,.18); z-index: 2; }
.bento.is-dragging { cursor: grabbing; transition: none; z-index: 5; box-shadow: 0 24px 50px rgba(14,15,23,.3); }
.bento-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.bento-caption {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px;
  padding: 14px 16px; text-align: left; color: #fff; opacity: 0; transition: opacity .2s;
  background: linear-gradient(0deg, rgba(0,0,0,.8), rgba(0,0,0,.4) 45%, transparent 75%);
}
.bento:hover .bento-caption, .bento:focus-visible .bento-caption { opacity: 1; }
.bento-caption strong { font-family: var(--font-head); font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.bento-caption small { font-size: .8rem; opacity: .75; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bento-badge {
  position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 999px;
  background: rgba(14,15,23,.7); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
}
.bento-spinner {
  position: absolute; left: 50%; top: 50%; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.3); border-top-color: #fff; animation: spin .8s linear infinite; opacity: 0;
}
.bento.is-buffering .bento-spinner, .is-buffering > .bento-spinner { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
.bento.is-entering { animation: bentoIn .55s cubic-bezier(.2,.9,.3,1.2) both; animation-delay: calc(var(--i) * 50ms); }
@keyframes bentoIn { from { opacity: 0; transform: translateY(50px) scale(.9); } to { opacity: 1; transform: none; } }

/* ---------- Galeria ampliada ---------- */
.gallery-modal {
  position: fixed; inset: 0; z-index: 100; background: rgba(240,242,247,.55);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  opacity: 0; transform: scale(.98); transition: opacity .2s, transform .25s var(--ease);
}
.gallery-modal.is-open { opacity: 1; transform: none; }
.gallery-modal[hidden] { display: none; }
.gm-stage { position: absolute; inset: 0 0 96px; display: grid; place-items: center; padding: 24px 72px; }
.gm-frame {
  position: relative; width: min(100%, 960px); aspect-ratio: 16/9; max-height: 72vh; border-radius: 14px; overflow: hidden;
  background: rgba(14,15,23,.85); box-shadow: 0 30px 80px rgba(14,15,23,.35); animation: gmIn .35s cubic-bezier(.2,.9,.3,1.15);
}
@keyframes gmIn { from { opacity: 0; transform: translateY(20px) scale(.97); } to { opacity: 1; transform: none; } }
.gm-media { width: 100%; height: 100%; object-fit: contain; display: block; }
.gm-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 16px; color: #fff; background: linear-gradient(0deg, rgba(0,0,0,.65), transparent); pointer-events: none; }
.gm-caption h3 { color: #fff; margin: 0; font-size: 1.2rem; }
.gm-caption p { margin: 4px 0 0; font-size: .9rem; opacity: .8; }
.gallery-modal video.gm-media + .gm-caption { bottom: 48px; background: none; padding-top: 0; }
.gm-close, .gm-nav {
  position: absolute; border: 0; cursor: pointer; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.85); color: var(--ink); box-shadow: 0 6px 18px rgba(14,15,23,.15); transition: transform .15s, background .15s;
}
.gm-close:hover, .gm-nav:hover { transform: scale(1.1); background: #fff; }
.gm-close svg, .gm-nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.gm-close { top: 14px; right: 14px; width: 40px; height: 40px; }
.gm-nav { top: calc(50% - 48px); width: 46px; height: 46px; transform: translateY(-50%); }
.gm-nav:hover { transform: translateY(-50%) scale(1.1); }
.gm-prev { left: 14px; }
.gm-next { right: 14px; }
.gm-dock {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 101; max-width: calc(100vw - 32px);
  padding: 10px 14px; border-radius: 16px; cursor: grab; touch-action: none;
  background: rgba(56,169,240,.18); border: 1px solid rgba(30,91,184,.3); box-shadow: 0 10px 30px rgba(14,15,23,.18);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.gm-dock:active { cursor: grabbing; }
.gm-dock-row { display: flex; align-items: center; overflow-x: auto; scrollbar-width: none; padding: 10px 6px 2px; touch-action: pan-x; }
.gm-dock-row::-webkit-scrollbar { display: none; }
.gm-thumb {
  position: relative; flex-shrink: 0; width: 40px; height: 40px; margin-left: -8px; padding: 0; border: 0; border-radius: 10px; overflow: hidden;
  cursor: pointer; z-index: var(--z); transform: rotate(var(--tilt)); transition: transform .25s cubic-bezier(.2,.9,.3,1.3), box-shadow .2s;
  box-shadow: 0 4px 10px rgba(14,15,23,.2);
}
.gm-thumb:first-child { margin-left: 0; }
.gm-thumb img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.gm-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent, rgba(255,255,255,.2)); }
.gm-thumb:hover { transform: translateY(-10px) scale(1.3) rotate(0); z-index: 40; }
.gm-thumb.is-active { transform: translateY(-8px) scale(1.2) rotate(0); z-index: 30; box-shadow: 0 0 0 2px rgba(255,255,255,.8), 0 8px 24px rgba(255,255,255,.45); }

/* ---------- Depoimentos ---------- */
.testimonials { background: var(--navy); }
.testimonials h2 { color: #fff; }
.testimonials .eyebrow { color: #a9c2f2; }
.quote {
  margin: 0; padding: 34px 32px; border-radius: var(--radius);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
}
.quote blockquote { margin: 0; color: rgba(255,255,255,.88); font-size: 1.05rem; position: relative; padding-top: 38px; }
.quote blockquote::before {
  content: "“"; position: absolute; top: -18px; left: -4px; font-family: Georgia, serif;
  font-size: 4.5rem; color: #fff; opacity: .35; line-height: 1;
}
.quote blockquote a { color: #a9c2f2; }
.quote figcaption strong { display: block; color: #fff; font-family: var(--font-head); }
.quote figcaption a { text-decoration: none; }
.quote figcaption span { font-size: .85rem; color: rgba(255,255,255,.6); }

/* ---------- FAQ ---------- */
.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  list-style: none; cursor: pointer; padding: 24px 48px 24px 0; position: relative;
  font-family: var(--font-head); font-weight: 600; font-size: 1.12rem; color: var(--ink);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -10px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: rotate(45deg); transition: transform .3s var(--ease), margin .3s;
}
.accordion details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.accordion details p { padding: 0 48px 22px 0; margin: 0; }

/* ---------- Contato ---------- */
.contact { position: relative; background: #000; color: rgba(255,255,255,.82); isolation: isolate; overflow: hidden; padding: clamp(80px, 11vw, 140px) 0 64px; }
.contact-media { position: absolute; inset: 0 0 auto 0; height: 760px; z-index: -1; opacity: .55; }
.contact-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.contact-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.2), #000 95%); }
.contact h2, .contact h3 { color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list svg { width: 24px; height: 24px; flex-shrink: 0; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.contact-list a { color: #fff; }

.contact-form {
  background: #fff; color: var(--ink-2); border-radius: var(--radius); padding: clamp(26px, 4vw, 40px);
  display: grid; gap: 16px; box-shadow: 0 40px 80px rgba(0,0,0,.4);
}
.contact-form h3 { color: var(--ink); margin: 0; font-size: 1.5rem; }
.form-note { margin: -6px 0 4px; font-size: .9rem; color: var(--muted); }
.contact-form label { display: grid; gap: 6px; font-family: var(--font-head); font-weight: 600; font-size: .85rem; color: var(--ink); }
.contact-form input,
.contact-form select,
.contact-form textarea {
  font: inherit; font-family: var(--font-body); font-weight: 400; font-size: 1rem; color: var(--ink);
  padding: 13px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--mist);
  transition: border-color .2s, background .2s; width: 100%;
}
.contact-form select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  padding-right: 48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e0f17' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center; background-size: 18px;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { outline: none; border-color: var(--navy); background-color: #fff; }
.contact-form .is-invalid { border-color: var(--red); }

.map { margin-top: 64px; }
.map iframe { width: 100%; height: 360px; border: 0; border-radius: var(--radius); filter: grayscale(.4) contrast(1.05); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.72); padding: 72px 0 28px; font-size: .95rem; }
.site-footer h4 { color: #fff; margin-bottom: 1.1em; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr .7fr 1.3fr; gap: 40px; }
.footer-brand img { width: 220px; margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; color: rgba(255,255,255,.8); }
.site-footer a:hover { color: #fff; }
.newsletter form { display: flex; gap: 8px; margin-top: 4px; }
.newsletter input {
  flex: 1; min-width: 0; font: inherit; padding: 12px 18px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06); color: #fff;
}
.newsletter input::placeholder { color: rgba(255,255,255,.5); }
.newsletter input:focus { outline: none; border-color: #fff; }
.newsletter .btn { padding: .8em 1.4em; }
.nl-msg { margin-top: 10px; font-size: .9rem; min-height: 1.4em; color: #a9c2f2; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem;
}

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.25);
  transition: transform .3s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Calculadora de voo flutuante ---------- */
.calc-float {
  position: fixed; right: 92px; bottom: 22px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  background: var(--navy); border: 0; display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 10px 30px rgba(14,15,23,.25); transition: transform .3s var(--ease), background .2s;
}
.calc-float:hover { transform: scale(1.08); background: var(--navy-deep); }
.calc-float svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.calc-float[aria-expanded="true"] { background: var(--navy-deep); }
/* [hidden] perde para seletores de classe com a mesma especificidade (ex.: .calc-cats
   define display:flex); força display:none sempre que hidden estiver presente aqui dentro. */
.calc-panel [hidden] { display: none !important; }

.calc-panel {
  position: fixed; right: 22px; bottom: 86px; z-index: 65; width: 360px; max-width: calc(100vw - 32px);
  max-height: min(680px, calc(100vh - 48px)); display: flex; flex-direction: column;
  background: #fff; border-radius: 22px; box-shadow: 0 30px 70px rgba(14,15,23,.3); overflow: hidden;
  opacity: 0; transform: translateY(16px) scale(.97); transform-origin: bottom right;
  transition: opacity .2s var(--ease), transform .22s var(--ease);
}
.calc-panel[hidden] { display: none; }
.calc-panel.is-open { opacity: 1; transform: none; }

.calc-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 4px; flex-shrink: 0; }
.calc-logo { height: 24px; width: auto; opacity: .9; }
.calc-close { border: 0; background: var(--mist); color: var(--ink-2); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.calc-close:hover { background: var(--line); }
.calc-close svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }

.calc-tabs { display: flex; gap: 4px; margin: 2px 14px 8px; padding: 4px; background: var(--mist); border-radius: 999px; flex-shrink: 0; }
.calc-tabs [role="tab"] {
  flex: 1; border: 0; background: transparent; cursor: pointer; padding: 7px 10px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 700; font-size: .76rem; letter-spacing: .01em; color: var(--muted);
}
.calc-tabs [role="tab"][aria-selected="true"] { background: var(--navy); color: #fff; }

.calc-body { padding: 0 14px; overflow-y: auto; flex: 1 1 auto; min-height: 0; }
.calc-cats { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 7px; }
.calc-pill {
  border: 1px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer;
  padding: 5px 11px; border-radius: 999px; font-family: var(--font-head); font-weight: 600; font-size: .72rem;
  transition: background .15s, color .15s, border-color .15s;
}
.calc-pill--cat.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.calc-pill--unit { font-size: .7rem; }
.calc-pill--unit.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Display – calculadora simples */
.calc-display--basic {
  background: var(--mist); border-radius: 14px; padding: 16px 14px 12px; margin-bottom: 10px;
  text-align: right; min-height: 68px; display: flex; flex-direction: column; justify-content: flex-end;
}
.calc-basic-expr { font-size: .78rem; color: var(--muted); min-height: 1.2em; font-variant-numeric: tabular-nums; }
.calc-basic-value {
  font-family: var(--font-head); font-weight: 700; font-size: clamp(1.7rem, 7vw, 2.2rem); color: var(--ink);
  font-variant-numeric: tabular-nums; line-height: 1.15; overflow-wrap: anywhere;
}

/* Display – conversão (estilo painel escuro, como um PFD) */
.calc-display--conv {
  position: relative; background: var(--navy-deep); border-radius: 14px; padding: 8px 14px 8px 42px;
  margin-bottom: 7px; display: grid; gap: 0; flex-shrink: 0;
}
.calc-swap {
  position: absolute; left: 9px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px;
  border: 0; background: rgba(255,255,255,.08); border-radius: 8px; cursor: pointer; display: grid; place-items: center;
}
.calc-swap:hover { background: rgba(255,255,255,.16); }
.calc-swap svg { width: 14px; height: 14px; fill: none; stroke: #e8a33d; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.calc-row {
  display: flex; align-items: baseline; justify-content: flex-end; gap: 7px; border: 0; background: transparent;
  cursor: pointer; padding: 2px 4px; border-radius: 8px; text-align: right;
}
.calc-row-value {
  font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; color: rgba(255,255,255,.4);
  font-variant-numeric: tabular-nums; overflow-wrap: anywhere; transition: color .15s;
}
.calc-row-unit { font-family: var(--font-head); font-weight: 700; font-size: .72rem; color: rgba(232,163,61,.55); min-width: 2.2em; text-align: left; transition: color .15s; }
.calc-row.is-active { background: rgba(255,255,255,.06); }
.calc-row.is-active .calc-row-value { color: #fff; }
.calc-row.is-active .calc-row-unit { color: #e8a33d; }

.calc-units { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 4px; }

/* Teclado */
.calc-keys { flex-shrink: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 8px 14px 14px; }
.calc-key {
  border: 0; border-radius: 11px; background: var(--mist); color: var(--ink);
  font-family: var(--font-head); font-weight: 700; font-size: 1rem; padding: 10px 0; cursor: pointer;
  transition: background .12s, transform .08s;
}
.calc-key:active { transform: scale(.94); }
.calc-key:hover { background: var(--line); }
.calc-key--fn { background: #fff; border: 1px solid var(--line); font-size: .82rem; color: var(--ink-2); }
.calc-key--fn:hover { background: var(--mist); }
.calc-key--clear { color: var(--red); }
.calc-key--op { background: rgba(35,36,95,.08); color: var(--navy); }
.calc-key--op:hover { background: rgba(35,36,95,.15); }
.calc-key--wide { grid-column: span 2; }
.calc-key--eq { background: var(--navy); color: #fff; }
.calc-key--eq:hover { background: var(--navy-deep); }

@media (max-width: 560px) {
  .calc-float { width: 52px; height: 52px; right: 80px; bottom: 16px; }
  .calc-float svg { width: 23px; height: 23px; }

  /* No celular a calculadora assume a tela toda, como se fosse outra página,
     em vez de um painel flutuante pequeno no canto. */
  .calc-panel {
    top: 0; right: 0; bottom: 0; left: 0;
    width: 100%; height: 100%; max-width: none; max-height: none;
    border-radius: 0; box-shadow: none;
    transform: translateY(18px); transform-origin: center;
    padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom);
  }
  .calc-panel.is-open { transform: none; }
  .calc-head { padding: 16px 16px 6px; }
  .calc-logo { height: 28px; }
  .calc-close { width: 34px; height: 34px; }
  .calc-close svg { width: 16px; height: 16px; }
  .calc-tabs { margin: 4px 16px 12px; }
  .calc-tabs [role="tab"] { padding: 10px; font-size: .85rem; }
  .calc-body { padding: 0 16px; }
  .calc-pill { padding: 7px 13px; font-size: .8rem; }
  .calc-basic-value { font-size: clamp(2.2rem, 10vw, 3rem); }
  .calc-row-value { font-size: 1.6rem; }
  .calc-row-unit { font-size: .85rem; }
  .calc-keys { padding: 10px 16px calc(16px + env(safe-area-inset-bottom)); gap: 10px; }
  .calc-key { padding: 16px 0; font-size: 1.1rem; }
}

/* ---------- Animações de entrada ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-media img { animation: none; transform: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .main-nav, .btn--header { display: none; }
  .menu-toggle { display: block; }
  .site-header.is-open { background: #fff; }
  .site-header.is-open .brand-logo--light { display: none; }
  .site-header.is-open .brand-logo--dark { display: block; }
  .site-header.is-open .menu-toggle span { background: var(--ink); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .stat:nth-child(3) { border-left: 0; }
  .highlights-grid { grid-template-columns: repeat(2, 1fr); }
  .highlight:nth-child(3) { border-left: 0; }
  .highlight:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.14); }
  .authorized, .mission-grid, .split-grid, .course, .tech-grid, .contact-grid { grid-template-columns: 1fr; }
  .mission-copy { position: static; }
  .split-media { order: -1; }
  .split-media img { aspect-ratio: 4/3; }
  .cards-3 { grid-template-columns: 1fr; }
  .bento-grid { grid-template-columns: repeat(3, 1fr); }
  .bento--big { grid-column: span 2; }
  .tab-prefix { display: none; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  :root { --header-h: 66px; }
  .brand { height: 42px; }
  .hero-content { padding-bottom: 28px; }
  .btn-row .btn { flex: 1 1 auto; }
  .stat { padding: 0 10px; }
  .highlights-grid { grid-template-columns: 1fr; }
  .highlight + .highlight { border-left: 0; border-top: 1px solid rgba(255,255,255,.14); }
  .specs { grid-template-columns: 1fr 1fr; }
  .tabs button { padding: .75em 1.1em; font-size: .9rem; }

  .footer-grid { grid-template-columns: 1fr; }
  .bento-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 52px; gap: 8px; }
  .bento--wide, .bento--big { grid-column: span 2; }
  .bento-caption { opacity: 1; padding: 10px 12px; }
  .bento-caption small { display: none; }
  .gm-stage { padding: 56px 8px; inset: 0 0 90px; }
  .gm-nav { display: none; }
  .wa-float { width: 52px; height: 52px; right: 16px; bottom: 16px; }
}
