/* =========================================================
   Prof. Calebe Mattos — folha de estilo única
   Visual: creme + laranja + verde-petróleo (cores do logo)
   Mobile-first, sem frameworks. Cores e fontes em :root.
   ========================================================= */

:root {
  --cream: #fff8ef;
  --cream-2: #fbefe1;
  --paper: rgba(255, 248, 239, .93);
  --ink: #1d0e03;
  --ink-2: #4b3a2c;
  --muted: #7a685a;
  --line: rgba(29, 14, 3, .14);
  --teal: #00464d;
  --teal-2: #275c59;
  --orange: #e99724;
  --orange-soft: #fbe3c2;
  --whats: #25d366;
  --insta: #6920ce;

  --font-body: "Questrial", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-title: "Nunito Sans", "Avenir Next", "Avenir", "Segoe UI", system-ui, sans-serif;

  --max: 1120px;
  --gutter: 20px;
  --radius: 4px;
  --radius-photo: 18px;
  --shadow: 0 18px 40px -18px rgba(29, 14, 3, .28);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1rem/1.7 var(--font-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* manchas desfocadas laranja/verde (a mesma arte do Wix), fixas atrás do conteúdo */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(255,248,239,.15) 0%, rgba(255,248,239,.55) 45%, var(--cream) 80%),
    url("../img/fundo.webp") left top / 200% auto no-repeat,
    var(--cream);
}
@media (min-width: 900px) {
  body::before {
    background:
      linear-gradient(90deg, rgba(255,248,239,0) 0%, rgba(255,248,239,.25) 28%, var(--cream) 50%),
      url("../img/fundo.webp") left center / auto 100% no-repeat,
      var(--cream);
  }
}

img, video, iframe { max-width: 100%; display: block; }
img, video { height: auto; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--orange); }
h1, h2, h3, h4 { font-family: var(--font-title); font-weight: 300; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.1rem, 6.4vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 4.4vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.6vw, 1.5rem); font-weight: 400; }
p { margin: 0 0 1em; }
strong { font-weight: 700; }
main { flex: 1; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.panel { background: var(--paper); box-shadow: var(--shadow); }
.section { padding: clamp(48px, 8vw, 96px) 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.lead { font-size: clamp(1.05rem, 2.2vw, 1.2rem); color: var(--ink-2); max-width: 64ch; }
.center .lead { margin-inline: auto; }
.eyebrow { display: inline-block; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--teal-2); margin-bottom: .8em; }
.mark { background: linear-gradient(transparent 55%, var(--orange-soft) 55%); padding: 0 .15em; }
.divider { height: 1px; background: var(--line); margin: 0; border: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--teal); color: var(--cream); padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .7em 1.5em;
  border-radius: var(--radius); border: 1px solid transparent;
  font: 400 1rem/1.2 var(--font-body); letter-spacing: .02em; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -10px rgba(29,14,3,.45); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--primary { background: var(--teal); color: var(--cream); }
.btn--primary:hover { background: var(--teal-2); color: var(--cream); }
.btn--outline { background: rgba(255,248,239,.7); border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--cream); }
.btn--whats { background: #49c77a; color: #fff; }
.btn--whats:hover { background: #3bb86b; color: #fff; }
.btn--insta { background: var(--insta); color: #fff; }
.btn--insta:hover { background: #5a17b6; color: #fff; }
.btn--orange { background: var(--orange); color: var(--ink); }
.btn--orange:hover { background: #f2a73e; color: var(--ink); }
.btn--block { width: 100%; }
.btn[aria-busy="true"] { opacity: .6; pointer-events: none; }
.btn-stack { display: grid; gap: 12px; max-width: 420px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.center .btn-row { justify-content: center; }

/* ---------- Cabeçalho ----------
   Celular: marca centralizada (logo acima do nome) + botão de menu.
   Computador: marca no centro e o menu dividido em 3 itens de cada lado.
   Ao rolar a página o cabeçalho fica mais baixo (classe .is-scrolled). */
:root { --header-h: 76px; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 248, 239, .97);
  box-shadow: 0 1px 0 var(--line), 0 10px 24px -18px rgba(29,14,3,.45);
}
.header-bar { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; height: var(--header-h); transition: height .25s ease; }
.brand { justify-self: center; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--ink); text-decoration: none; font-family: var(--font-body); font-size: 1rem; letter-spacing: .16em; line-height: 1; white-space: nowrap; }
.brand img { width: 34px; height: auto; transition: width .25s ease; }
.brand span { padding-left: .16em; } /* compensa o espaçamento das letras para centralizar */
.brand:hover { color: var(--teal); }
.nav-desk { display: none; }

.nav-toggle { justify-self: end; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-right: -10px; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.nav-toggle svg { width: 28px; height: 28px; }
.nav-toggle .i-close { display: none; }
.nav-open .nav-toggle .i-close { display: block; }
.nav-open .nav-toggle .i-menu { display: none; }

/* menu do celular: tela cheia, limpo, letras grandes */
.site-nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--cream); overflow-y: auto; display: none; }
.nav-open { overflow: hidden; }
.nav-open .site-nav { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav > ul { padding: 12px var(--gutter) 24px; }
.site-nav a { display: block; padding: 14px 2px; color: var(--ink); text-decoration: none; font-family: var(--font-title); font-weight: 300; font-size: 1.5rem; border-bottom: 1px solid var(--line); }
.site-nav a[aria-current="page"] { color: var(--teal); }
.site-nav a[aria-current="page"]::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); margin: 0 10px 4px 0; }
.site-nav .sub-list a { font-size: 1.1rem; padding: 10px 2px 10px 22px; color: var(--ink-2); font-family: var(--font-body); }
.nav-cta { margin-top: 8px; padding: 0 var(--gutter) 40px; display: grid; gap: 10px; }
.site-nav .nav-cta a.btn { display: flex; border: 0; padding: .7em 1.5em; font-family: var(--font-body); font-size: 1.05rem; }

@media (min-width: 1200px) {
  :root { --header-h: 108px; }
  .site-header.is-scrolled { --header-h: 72px; }
  .header-bar { grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); column-gap: 32px; max-width: 1280px; }
  .hdr-spacer, .nav-toggle, .site-nav { display: none !important; }
  .nav-open { overflow: auto; }
  .brand { gap: 8px; font-size: 1.15rem; }
  .brand img { width: 46px; }
  .is-scrolled .brand { gap: 5px; font-size: 1rem; }
  .is-scrolled .brand img { width: 26px; }

  .nav-desk { display: block; }
  .nav-desk > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: clamp(12px, 1.4vw, 20px); }
  .nav-left > ul { justify-content: flex-end; }
  .nav-right > ul { justify-content: flex-start; }
  .nav-desk li { position: relative; }
  .nav-desk a { position: relative; display: block; padding: 10px 2px; color: var(--ink); text-decoration: none; font-size: .74rem; letter-spacing: .09em; text-transform: uppercase; white-space: nowrap; }
  .nav-desk > ul > li > a::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: 4px; height: 1.5px; background: var(--orange); opacity: 0; transition: left .2s ease, right .2s ease, opacity .2s; }
  .nav-desk > ul > li > a:hover::after, .nav-desk > ul > li > a[aria-current="page"]::after { left: 0; right: 0; opacity: 1; }
  .nav-desk a:hover, .nav-desk a[aria-current="page"] { color: var(--teal); }

  .nav-desk .sub-list { list-style: none; margin: 0; position: absolute; top: 100%; left: 50%; min-width: 220px; padding: 8px; background: var(--cream); border: 1px solid var(--line); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translate(-50%, 6px); transition: opacity .15s, transform .15s, visibility .15s; }
  .nav-desk .has-sub:hover .sub-list, .nav-desk .has-sub:focus-within .sub-list { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .nav-desk .sub-list a { padding: 10px 12px; text-transform: none; letter-spacing: .02em; font-size: .9rem; text-align: center; }
  .nav-desk .sub-list a:hover, .nav-desk .sub-list a[aria-current="page"] { background: var(--cream-2); }
}

/* ---------- Faixa institucional (Escola Orquestra) ---------- */
.org-band { background: var(--teal); color: var(--cream); font-size: .88rem; }
.org-band .container { display: flex; flex-wrap: wrap; gap: 2px 14px; align-items: baseline; padding-block: 10px; }
.org-band strong { letter-spacing: .04em; }
.org-band span { opacity: .85; }

/* ---------- Hero (home) ---------- */
.hero { padding: clamp(28px, 6vw, 72px) 0 clamp(40px, 7vw, 80px); }
.hero .container { display: grid; gap: 36px; align-items: center; }
.hero-photos { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 440px; width: 100%; margin: 0 auto; }
.hero-photos img { width: 100%; aspect-ratio: 285 / 308; object-fit: cover; border-radius: var(--radius-photo); box-shadow: var(--shadow); background: var(--cream-2); }
.hero-photos img:last-child { transform: translateY(32px); }
.hero h1 { margin-bottom: .35em; }
.hero .tagline { font-family: var(--font-title); font-weight: 300; font-size: clamp(1.2rem, 2.8vw, 1.55rem); line-height: 1.35; color: var(--ink); margin-bottom: 1.1em; }
.hero p { color: var(--ink-2); }
.hero .btn-stack { margin-top: 26px; }
@media (min-width: 900px) {
  .hero .container { grid-template-columns: .9fr 1.1fr; gap: 64px; }
  .hero-photos { grid-template-columns: 1fr; max-width: 330px; gap: 0; }
  .hero-photos img:first-child { width: 78%; }
  .hero-photos img:last-child { width: 78%; justify-self: end; margin-top: -60px; transform: none; }
}

/* ---------- Vídeos: player próprio, estilo Instagram ---------- */
.video-card { margin: 0; display: grid; gap: 10px; align-content: start; }
.video-card figcaption { font-size: .92rem; color: var(--ink-2); padding: 0 2px; line-height: 1.4; }

.player { position: relative; overflow: hidden; border-radius: 14px; background: #0d0a08; box-shadow: var(--shadow); isolation: isolate; -webkit-tap-highlight-color: transparent; }
.player video { width: 100%; height: auto; display: block; background: #0d0a08; }
/* leve sombreado embaixo para a linha de progresso aparecer sobre qualquer imagem */
.player::after { content: ""; position: absolute; inset: auto 0 0 0; height: 70px; background: linear-gradient(transparent, rgba(0,0,0,.38)); pointer-events: none; opacity: 0; transition: opacity .3s; }
.player.is-started::after { opacity: 1; }

/* área de toque: o vídeo inteiro (play/pausa) */
.p-toggle { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; border: 0; padding: 0; background: transparent; cursor: pointer; color: #fff; }
.p-toggle:focus-visible { outline: 2px solid var(--orange); outline-offset: -4px; border-radius: 14px; }
.p-play {
  width: 66px; height: 66px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .55);
  backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2);
  box-shadow: 0 10px 30px -8px rgba(0,0,0,.45);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), opacity .3s ease, background-color .2s;
}
.p-play svg { width: 24px; height: 24px; margin-left: 3px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.25)); }
.p-toggle:hover .p-play { transform: scale(1.07); background: rgba(255, 255, 255, .26); }
.is-playing .p-play { opacity: 0; transform: scale(.7); }

/* carregando: anel girando em volta do botão */
.is-loading .p-play { opacity: 1; transform: none; border-color: rgba(255,255,255,.25); border-top-color: #fff; animation: p-spin .8s linear infinite; }
.is-loading .p-play svg { opacity: 0; }
@keyframes p-spin { to { transform: rotate(360deg); } }

/* som */
.p-mute { position: absolute; z-index: 2; right: 10px; bottom: 16px; width: 34px; height: 34px; border-radius: 50%; border: 0; display: grid; place-items: center; color: #fff; background: rgba(20, 14, 10, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); cursor: pointer; opacity: 0; transform: scale(.85); pointer-events: none; transition: opacity .25s, transform .25s; }
.p-mute svg { width: 18px; height: 18px; }
.p-mute .i-off { display: none; }
.is-muted .p-mute .i-on { display: none; }
.is-muted .p-mute .i-off { display: block; }
.is-started .p-mute { opacity: 1; transform: none; pointer-events: auto; }

/* linha de progresso fina (toque/arraste para avançar) */
.p-bar { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 14px; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .25s; touch-action: none; }
.p-bar::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.28); }
.p-bar span { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: #fff; border-radius: 0 2px 2px 0; }
.p-bar:hover::before, .p-bar:hover span { height: 5px; }
.is-started .p-bar { opacity: 1; pointer-events: auto; }

/* sem JavaScript: controles nativos, sem sobreposições */
.no-js .p-toggle, .no-js .p-mute, .no-js .p-bar { display: none; }

/* galeria "Veja meus alunos": desliza no celular, grade no computador */
.reel { display: grid; grid-auto-flow: column; grid-auto-columns: min(72%, 270px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 16px; margin-top: 28px; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--orange) transparent; }
.reel > * { scroll-snap-align: start; }
.reel video { aspect-ratio: 9 / 16; object-fit: cover; }
.reel .is-wide video { object-fit: contain; }
.give .player { max-width: 100%; }
.reel figcaption { min-height: 2.9em; line-height: 1.4; }
@media (min-width: 900px) { .reel { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); overflow: visible; } }
.swipe-hint { font-size: .85rem; color: var(--muted); margin-top: -4px; }
@media (min-width: 900px) { .swipe-hint { display: none; } }

/* ---------- Grades e cartões ---------- */
.grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.card { background: var(--cream); border: 1px solid var(--line); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.card p:last-child { margin-bottom: 0; }
.card h3 { margin: 0; }

/* seções em círculo (Escola Orquestra) */
.circles { display: grid; gap: 28px 18px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .circles { grid-template-columns: repeat(3, 1fr); gap: 44px 28px; } }
.circle { display: grid; justify-items: center; text-align: center; gap: 10px; color: var(--ink); text-decoration: none; }
.circle img { width: clamp(96px, 26vw, 132px); aspect-ratio: 1; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow); transition: transform .2s; }
a.circle:hover img { transform: scale(1.04); }
.circle strong { font-weight: 400; font-size: 1.08rem; text-decoration: underline; text-underline-offset: 4px; }
a.circle:hover strong { color: var(--teal); }
.circle span { font-size: .9rem; color: var(--muted); max-width: 26ch; }
.soon { display: inline-block; font-size: .75rem; padding: 2px 10px; border-radius: 999px; background: var(--orange-soft); color: var(--ink); }

/* cartão com ícone redondo (Material didático) */
.icon-card .head { display: flex; gap: 16px; align-items: center; }
.icon-card .head img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; }
.icon-card .head p { margin: 2px 0 0; color: var(--muted); font-size: .95rem; }
.icon-card ol, .icon-card ul { margin: 0; padding-left: 1.2em; color: var(--ink-2); }
.code { font-family: ui-monospace, Menlo, monospace; background: var(--orange-soft); padding: 2px 8px; user-select: all; white-space: nowrap; }

/* blocos de imagem com texto embutido (Testados e Aprovados) */
.tile { position: relative; display: block; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--cream-2); }
.tile img { width: 100%; aspect-ratio: 7 / 4; object-fit: cover; transition: transform .35s, filter .35s; }
a.tile:hover img { transform: scale(1.04); filter: brightness(1.08); }
.tile .badge { position: absolute; top: 10px; right: 10px; font-size: .74rem; padding: 3px 10px; border-radius: 999px; background: var(--cream); color: var(--ink); }
.tile.is-soon img { filter: grayscale(.7) brightness(.85); }

/* ---------- Banner com caixa de título (estilo do Wix) ---------- */
.banner { position: relative; display: grid; place-items: center; min-height: clamp(220px, 42vw, 420px); overflow: hidden; }
.banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner .label { position: relative; background: var(--cream); padding: clamp(14px, 3vw, 26px) clamp(20px, 5vw, 48px); margin: 20px; text-align: center; font-family: var(--font-title); font-weight: 300; font-size: clamp(1.4rem, 4vw, 2.4rem); line-height: 1.2; box-shadow: var(--shadow); }
.page-top { padding-top: clamp(16px, 4vw, 40px); }

/* ---------- Planos ---------- */
.plans { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 680px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .plans { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.plan { position: relative; background: var(--cream); border: 1px solid var(--line); display: flex; flex-direction: column; box-shadow: var(--shadow); }
.plan > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.plan .body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.plan h3 { margin: 0; font-family: var(--font-title); font-weight: 300; font-size: 1.45rem; line-height: 1.2; }
.plan .desc { color: var(--ink-2); font-size: .96rem; margin: 0; }
.plan hr { border: 0; height: 1px; background: var(--line); margin: 4px 0; width: 100%; }
.plan .meta { font-size: .9rem; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; }
.plan .price { font-family: var(--font-title); font-size: 1.9rem; font-weight: 400; color: var(--teal); line-height: 1; }
.plan .price small { font-family: var(--font-body); font-size: .85rem; color: var(--muted); }
.plan .tag { position: absolute; top: 12px; left: 12px; background: var(--orange); color: var(--ink); font-size: .74rem; padding: 4px 10px; letter-spacing: .03em; }
.plan .btn { margin-top: auto; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; color: var(--muted); font-size: .9rem; margin-top: 30px; }
.steps { counter-reset: s; }
.steps .card h3::before { counter-increment: s; content: counter(s); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--orange); color: var(--ink); font-family: var(--font-body); font-size: .95rem; margin-right: 10px; vertical-align: 3px; }

/* ---------- Formulários ---------- */
.form { display: grid; gap: 14px; }
.form .row { display: grid; gap: 14px; }
@media (min-width: 640px) { .form .row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-size: .9rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  background: #fffdf9; color: var(--ink);
  border: 1px solid rgba(29,14,3,.3); border-radius: var(--radius);
  font: inherit; font-size: 16px; /* evita zoom no iPhone */
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,70,77,.18); }
.field small { color: var(--muted); font-size: .82rem; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { padding: 12px 14px; font-size: .95rem; display: none; }
.form-msg.ok { display: block; background: #e6f6ec; border: 1px solid #9fd8b4; }
.form-msg.err { display: block; background: #fdeaea; border: 1px solid #efb3b3; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--ink-2); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--teal); flex: none; }

/* ---------- Janela de contratação ---------- */
dialog.modal { width: min(560px, calc(100% - 20px)); max-height: calc(100dvh - 20px); padding: 0; border: 0; border-radius: 6px; background: var(--cream); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); }
dialog.modal::backdrop { background: rgba(29,14,3,.55); }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 20px 20px 0; }
.modal-head h3 { margin: 0; font-family: var(--font-title); font-weight: 300; font-size: 1.5rem; }
.modal-head p { margin: 4px 0 0; color: var(--teal); }
.modal-body { padding: 16px 20px 22px; overflow-y: auto; }
.modal-close { background: none; border: 0; color: var(--muted); font-size: 2rem; line-height: 1; cursor: pointer; width: 44px; height: 44px; flex: none; margin: -8px -10px 0 0; }
.modal-close:hover { color: var(--ink); }

/* ---------- Currículo ---------- */
.cv-name { font-family: var(--font-title); font-weight: 300; text-transform: uppercase; letter-spacing: .02em; }
.cv-intro { display: grid; gap: 28px; align-items: start; }
.cv-intro > img { width: 100%; max-width: 380px; aspect-ratio: 343 / 317; object-fit: cover; box-shadow: var(--shadow); }
@media (min-width: 860px) { .cv-intro { grid-template-columns: 380px 1fr; gap: 48px; } }
.cv-block { display: grid; gap: 24px; }
@media (min-width: 900px) { .cv-block { grid-template-columns: 260px 1fr; gap: 48px; } .cv-block > h2 { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; } }
.timeline { display: grid; gap: 22px; }
.timeline .item { border-left: 2px solid var(--orange); padding: 2px 0 2px 18px; }
.timeline .when { color: var(--teal-2); font-size: .9rem; }
.timeline h3 { margin: .1em 0 .15em; font-size: 1.25rem; }
.timeline .where { color: var(--muted); font-size: .93rem; margin-bottom: .5em; }
.timeline ul { color: var(--ink-2); margin: .3em 0 0; padding-left: 1.1em; }
.timeline li { margin-bottom: .35em; }
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.photo-pair img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: var(--shadow); }
.photo-wide img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; box-shadow: var(--shadow); }

/* menu "Baixar CV" com duas opções */
.cv-download { position: relative; display: inline-block; }
.cv-download summary { list-style: none; }
.cv-download summary::-webkit-details-marker { display: none; }
.cv-download summary::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); margin: -4px 0 0 4px; }
.cv-download[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.cv-options { position: absolute; z-index: 5; top: calc(100% + 8px); left: 0; min-width: 260px; background: var(--cream); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 6px; display: grid; }
.cv-options a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; color: var(--ink); text-decoration: none; }
.cv-options a:hover { background: var(--cream-2); color: var(--teal); }
.cv-options small { color: var(--muted); }

/* ---------- Contato ---------- */
.contact-cols { display: grid; gap: 22px; }
@media (min-width: 760px) { .contact-cols { grid-template-columns: repeat(3, 1fr); } }
.contact-cols h3 { margin-bottom: .3em; }
.contact-cols a { display: block; color: var(--ink-2); word-break: break-word; }
.contact-cols a:hover { color: var(--teal); }

/* ---------- Doação ---------- */
.give { display: grid; gap: 28px; align-items: start; }
@media (min-width: 860px) { .give { grid-template-columns: 1fr 1fr; gap: 44px; } }
.qr { background: #fff; padding: 14px; max-width: 320px; box-shadow: var(--shadow); }
.give video { width: 100%; max-height: 70vh; background: #000; box-shadow: var(--shadow); }

/* ---------- Rodapé (como no Wix) ---------- */
.site-footer { margin-top: auto; background: var(--paper); border-top: 1px solid var(--line); padding: 40px 0 24px; font-size: .95rem; }
.footer-main { display: grid; gap: 22px; align-items: center; }
@media (min-width: 900px) { .footer-main { grid-template-columns: auto 1fr auto auto auto; gap: 40px; } }
.footer-logo { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--ink); }
.footer-logo img { width: 64px; }
.footer-logo span { font-family: var(--font-title); font-weight: 300; font-size: 2rem; }
.footer-item { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.footer-item svg { width: 20px; height: 20px; color: var(--teal); flex: none; }
.socials { display: flex; gap: 8px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); border: 1px solid var(--line); }
.socials a:hover { color: var(--cream); background: var(--teal); border-color: var(--teal); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; font-size: .82rem; color: var(--muted); }
.footer-bottom a { color: var(--muted); }

/* botões flutuantes (WhatsApp no celular; os três no computador, como no Wix) */
.fab { position: fixed; right: 16px; bottom: 16px; z-index: 40; display: grid; gap: 10px; }
.fab a { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 8px 22px -6px rgba(0,0,0,.45); transition: transform .15s; }
.fab a:hover { transform: scale(1.06); color: #fff; }
.fab svg { width: 28px; height: 28px; }
.fab .f-whats { background: #49c77a; }
.fab .f-insta { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.fab .f-phone { background: #5fd38a; }
.fab .f-insta, .fab .f-phone { display: none; }
@media (min-width: 900px) { .fab .f-insta, .fab .f-phone { display: grid; } }

/* ---------- Páginas de retorno ---------- */
.status-box { max-width: 640px; margin: 0 auto; text-align: center; }
.status-icon { width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; font-size: 2.2rem; }
.status-icon.ok { background: #e0f4e8; color: #1f8a4c; }
.status-icon.wait { background: var(--orange-soft); color: #9a5b06; }
.status-icon.err { background: #fbe0e0; color: #b23b3b; }

/* ---------- Visualizador em tela cheia (estilo Reels) ----------
   Abre ao tocar um vídeo da galeria. Cima = próximo, baixo = fecha. */
.reels { position: fixed; inset: 0; z-index: 100; background: #000; color: #fff; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; overscroll-behavior: contain; opacity: 0; transition: opacity .25s ease; }
.reels.is-open { opacity: 1; }
.reels-track { position: absolute; inset: 0; will-change: transform; transition: transform .38s cubic-bezier(.2,.8,.2,1); }
.reels-track.is-dragging { transition: none; }
.reel-slide { position: absolute; left: 0; width: 100%; height: 100%; overflow: hidden; display: grid; place-items: center; transition: transform .3s cubic-bezier(.2,.8,.2,1), border-radius .3s, opacity .3s; }
.reel-slide::before { content: ""; position: absolute; inset: -40px; background: var(--poster) center / cover no-repeat; filter: blur(34px) brightness(.45) saturate(1.1); transform: scale(1.1); }
.reel-slide video { position: relative; width: 100%; height: 100%; object-fit: cover; background: transparent; }
.reel-slide.is-wide video { object-fit: contain; }
@media (min-width: 700px) { .reel-slide video { object-fit: contain; width: auto; max-width: 100%; max-height: 100%; border-radius: 12px; height: calc(100% - 48px); } }
.reel-slide.is-dragged { border-radius: 22px; }

.reel-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 20px calc(26px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(0,0,0,.6)); font-size: .98rem; line-height: 1.4; text-shadow: 0 1px 3px rgba(0,0,0,.5); pointer-events: none; }
.reel-cap small { display: block; opacity: .75; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 4px; }

.reel-flash { position: absolute; top: 50%; left: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transform: scale(.8); transition: opacity .2s, transform .2s; pointer-events: none; }
.reel-flash svg { width: 30px; height: 30px; margin-left: 4px; }
.reels.is-paused .reel-flash { opacity: 1; transform: none; }
.reels.is-loading .reel-flash { opacity: 1; transform: none; border: 2px solid rgba(255,255,255,.25); border-top-color: #fff; animation: p-spin .8s linear infinite; }
.reels.is-loading .reel-flash svg { opacity: 0; }

.reels-bar { position: absolute; left: 0; right: 0; bottom: env(safe-area-inset-bottom); height: 3px; background: rgba(255,255,255,.25); pointer-events: none; z-index: 3; }
.reels-bar span { display: block; height: 100%; width: 0; background: #fff; }

.reels-btn { position: absolute; z-index: 4; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; color: #fff; background: rgba(20,14,10,.38); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); cursor: pointer; transition: background-color .2s, transform .2s; }
.reels-btn:hover { background: rgba(20,14,10,.6); transform: scale(1.05); }
.reels-btn svg { width: 22px; height: 22px; }
.reels-close { top: calc(14px + env(safe-area-inset-top)); left: 14px; }
.reels-mute { top: calc(14px + env(safe-area-inset-top)); right: 14px; }
.reels-mute .i-off { display: none; }
.reels.is-muted .reels-mute .i-on { display: none; }
.reels.is-muted .reels-mute .i-off { display: block; }
.reels-count { position: absolute; z-index: 4; top: calc(26px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); font-size: .8rem; letter-spacing: .1em; opacity: .8; }
.reels-nav { display: none; }
@media (min-width: 900px) and (hover: hover) {
  .reels-nav { display: grid; gap: 12px; position: absolute; z-index: 4; right: 22px; top: 50%; transform: translateY(-50%); }
  .reels-nav .reels-btn { position: static; }
  .reels-nav .reels-btn[disabled] { opacity: .3; pointer-events: none; }
}
.reels-hint { position: absolute; z-index: 4; left: 50%; bottom: 96px; transform: translateX(-50%); padding: 10px 16px; border-radius: 999px; background: rgba(0,0,0,.5); backdrop-filter: blur(8px); font-size: .85rem; white-space: nowrap; opacity: 0; transition: opacity .4s; pointer-events: none; }
.reels-hint.is-on { opacity: 1; }
.reels-lock { overflow: hidden !important; }
