/* =========================================================
   F30 STUDIOS — sistema visual conforme Manual de Marca 2024
   Paleta: #222222 (base) · #6F7271 (cinza) · #DCE3EB (gelo) · #0047BA (azul Studios)
   Tipografia: Video (títulos, caixa alta) + Fractul (texto).
   Enquanto os arquivos originais não chegam, usamos substitutas:
   Chakra Petch ≈ Video · Manrope ≈ Fractul. Pra trocar, descomente
   os @font-face abaixo e coloque os arquivos em /fonts.
   ========================================================= */

/*
@font-face { font-family: 'Video'; src: url('fonts/Video-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Fractul'; src: url('fonts/FractulVariable.woff2') format('woff2'); font-weight: 300 800; font-display: swap; }
*/

:root {
  --bg: #222222;
  --bg-2: #1A1A1A;
  --grey: #6F7271;
  --grey-2: #3A3C3C;
  --ice: #DCE3EB;
  --ice-70: rgba(220, 227, 235, .7);
  --ice-40: rgba(220, 227, 235, .4);
  --ice-15: rgba(220, 227, 235, .15);
  --blue: #0047BA;
  --blue-deep: #00348A;
  --display: 'Video', 'Chakra Petch', 'Arial Narrow', sans-serif;
  --text: 'Fractul', 'Manrope', system-ui, sans-serif;
  --cut: 22px;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--text); color: var(--ice); background: var(--bg); line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, .display { font-family: var(--display); text-transform: uppercase; font-weight: 700; line-height: 1.05; letter-spacing: .01em; }
h1 { font-size: clamp(2.3rem, 6.2vw, 4.8rem); }
h2 { font-size: clamp(1.7rem, 4vw, 3rem); }
h3 { font-size: 1.15rem; letter-spacing: .03em; }
p { color: var(--ice-70); max-width: 60ch; }
strong { color: var(--ice); font-weight: 700; }
.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
@media (max-width: 640px) { .container { width: calc(100% - 32px); } }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---- recortes a 45° ---- */
/* moldura HUD: os quatro cantos */
.hud { clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut)); }
/* tag: só o canto inferior direito, como na tag STUDIOS do logo */
.tag { clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%); }
/* moldura HUD com borda fina (borda via pseudo-elemento, porque clip-path corta borders) */
.frame { position: relative; }
.frame::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: var(--ice-40); clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut), var(--cut) 0, calc(var(--cut) + .5px) 1px, 1px calc(var(--cut) + .5px), 1px calc(100% - var(--cut) - .5px), calc(var(--cut) + .5px) calc(100% - 1px), calc(100% - var(--cut) - .5px) calc(100% - 1px), calc(100% - 1px) calc(100% - var(--cut) - .5px), calc(100% - 1px) calc(var(--cut) + .5px), calc(100% - var(--cut) - .5px) 1px, calc(var(--cut) + .5px) 1px); }
.frame.blue-line::before { background: var(--blue); }

/* ---- régua de traços (elemento do manual) ---- */
.ruler { height: 14px; flex: 1; background: repeating-linear-gradient(90deg, var(--ice-40) 0 1px, transparent 1px 12px); }
.ruler.dim { background: repeating-linear-gradient(90deg, var(--ice-15) 0 1px, transparent 1px 12px); }
.titled { display: flex; align-items: center; gap: 28px; }
.titled h2 { white-space: nowrap; }
@media (max-width: 720px) { .titled { gap: 16px; } .titled h2 { white-space: normal; } .titled .ruler:first-child { display: none; } }

/* ---- marcas de registro "+" ---- */
.cross { position: absolute; width: 18px; height: 18px; pointer-events: none; }
.cross::before, .cross::after { content: ""; position: absolute; background: var(--ice-40); }
.cross::before { left: 50%; top: 0; width: 1px; height: 100%; }
.cross::after { top: 50%; left: 0; height: 1px; width: 100%; }

/* ---- botões ---- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; font-family: var(--display); text-transform: uppercase; letter-spacing: .06em; font-size: .9rem; font-weight: 700; background: var(--blue); color: var(--ice); --cut: 12px; transition: background .2s var(--ease), color .2s var(--ease); }
.btn:hover { background: var(--ice); color: var(--blue); }
.btn.ghost { background: transparent; color: var(--ice); box-shadow: inset 0 0 0 1px var(--ice-40); clip-path: none; }
.btn.ghost:hover { background: var(--ice); color: var(--bg); box-shadow: none; }
.btn.light { background: var(--ice); color: var(--blue); }
.btn.light:hover { background: var(--bg); color: var(--ice); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---- header ---- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(34,34,34,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--ice-15); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.header .logo img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; font-size: .92rem; font-weight: 500; color: var(--ice-70); }
.nav a { position: relative; padding: 6px 0; transition: color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ice); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--blue); }
.nav .btn { padding: 11px 18px; color: var(--ice); }
.menu-btn { display: none; width: 44px; height: 44px; background: none; border: 0; align-items: center; justify-content: center; }
.menu-btn span { display: block; width: 24px; height: 2px; background: var(--ice); position: relative; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; width: 24px; height: 2px; background: var(--ice); }
.menu-btn span::before { top: -7px; } .menu-btn span::after { top: 7px; }
@media (max-width: 900px) {
  .menu-btn { display: flex; }
  .nav { position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--ice-15); padding: 8px 20px 20px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .2s var(--ease); }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--ice-15); }
  .nav a[aria-current="page"]::after { display: none; }
  .nav .btn { margin-top: 12px; justify-content: center; }
}

/* ---- seções ---- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section.deep { background: var(--bg-2); }
.section.blue { background: var(--blue); }
.section.blue p { color: var(--ice); }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head p { font-size: 1.05rem; max-width: 62ch; }

/* ---- imagens em P&B (manual: imageria em preto e branco) ---- */
.bw { filter: grayscale(1) contrast(1.05); }

/* ---- rodapé ---- */
.footer { background: var(--bg-2); border-top: 1px solid var(--ice-15); color: var(--ice-70); padding: 64px 0 28px; }
.footer .grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer img { height: 110px; width: auto; }
.footer h4 { font-family: var(--display); text-transform: uppercase; letter-spacing: .06em; color: var(--ice); font-size: .9rem; margin-bottom: 14px; }
.footer li { margin-bottom: 8px; font-size: .95rem; }
.footer li a:hover { color: var(--ice); }
.footer .legal { border-top: 1px solid var(--ice-15); padding-top: 24px; font-size: .82rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: var(--grey); }
@media (max-width: 760px) { .footer .grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---- WhatsApp flutuante ---- */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 56px; height: 56px; background: var(--blue); display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.4); --cut: 12px; transition: background .2s; }
.wa-float:hover { background: var(--ice); }
.wa-float svg { width: 28px; height: 28px; fill: var(--ice); }
.wa-float:hover svg { fill: var(--blue); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
