/* ══════════════════════════════════════════════════════════════
   Estúdio RDC — base.css
   Tokens do design system + reset + componentes globais
   (botões, menu, rodapé, WhatsApp flutuante, animações).
   ══════════════════════════════════════════════════════════════ */

:root {
  /* Marca */
  --rdc-blue: #0047FF;
  --rdc-blue-hover: #2B63FF;
  --rdc-blue-deep: #0A1AB8;
  --rdc-navy: #1A1660;
  --rdc-blue-light: #6A9BFF;
  --rdc-blue-ice: #BCD6FF;

  /* Neutros */
  --rdc-black: #131313;
  --rdc-ink: #0B0B10;
  --rdc-surface: #1B1B21;
  --rdc-border: #2A2A33;
  --rdc-gray: #8A8F9E;
  --rdc-gray-light: #D9DCE3;
  --rdc-offwhite: #F4F5F8;
  --rdc-white: #FFFFFF;
  --rdc-whatsapp: #25D366;

  /* Gradientes e brilho */
  --rdc-gradient: linear-gradient(135deg, var(--rdc-navy) 0%, var(--rdc-blue-deep) 45%, var(--rdc-blue) 100%);
  --rdc-gradient-text: linear-gradient(90deg, #FFFFFF 0%, var(--rdc-blue-ice) 55%, var(--rdc-blue-light) 100%);
  --rdc-glow: 0 0 0 1px rgba(106, 155, 255, .25), 0 8px 40px -8px rgba(0, 71, 255, .65);

  /* Tipografia */
  --rdc-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-display: clamp(3rem, 9vw, 8rem);
  --fs-h1: clamp(2.6rem, 6vw, 5rem);
  --fs-h2: clamp(2rem, 4.2vw, 3.4rem);
  --fs-h3: clamp(1.4rem, 2.2vw, 1.875rem);
  --fs-body-lg: clamp(1.0625rem, 1.4vw, 1.25rem);
  --fs-body: 1.0625rem;
  --fs-small: .875rem;
  --fs-label: .75rem;

  /* Layout */
  --rdc-radius-sm: 10px;
  --rdc-radius: 16px;
  --rdc-radius-lg: 28px;
  --rdc-pill: 999px;
  --rdc-container: 1240px;
  --rdc-gutter: clamp(16px, 4vw, 32px);
  --rdc-section-y: clamp(88px, 12vw, 160px);
  --rdc-ease: cubic-bezier(.22, 1, .36, 1);
  --header-h: 112px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--rdc-black); scroll-padding-top: 100px; }
body {
  font-family: var(--rdc-font);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--rdc-white);
  background: var(--rdc-black);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, picture, video, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4 { line-height: 1.05; font-weight: 900; letter-spacing: -.035em; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--rdc-blue); color: #fff; }
:focus-visible { outline: 2px solid var(--rdc-blue-ice); outline-offset: 3px; border-radius: 4px; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 1000; background: #fff; color: var(--rdc-black); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 16px; }

/* ── Utilitários ───────────────────────────────────────────── */
.container { width: 100%; max-width: calc(var(--rdc-container) + var(--rdc-gutter) * 2); margin-inline: auto; padding-inline: var(--rdc-gutter); }
.section { padding-block: var(--rdc-section-y); position: relative; }
.section--light { background: var(--rdc-offwhite); color: var(--rdc-black); }
.section--ink { background: var(--rdc-ink); }
.label { display: inline-flex; align-items: center; gap: .6em; font-size: var(--fs-label); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--rdc-blue-light); }
.label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.section--light .label { color: var(--rdc-blue); }
.section-title { font-size: var(--fs-h2); margin-top: 18px; max-width: 18ch; }
.section-title--wide { max-width: 24ch; }
.section-lead { margin-top: 20px; font-size: var(--fs-body-lg); color: rgba(255, 255, 255, .68); max-width: 58ch; line-height: 1.6; }
.section--light .section-lead { color: rgba(19, 19, 19, .64); }
.section-head { margin-bottom: clamp(48px, 6vw, 72px); }
.section-head--split { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.text-gradient { background: var(--rdc-gradient-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.text-blue { color: var(--rdc-blue-light); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.icon { width: 1.25em; height: 1.25em; flex: none; }
.icon--xs { width: .85em; height: .85em; }
.icon--sm { width: 1em; height: 1em; }
.icon--lg { width: 28px; height: 28px; }

/* ── Botões ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: 1rem 1.6rem; border-radius: var(--rdc-pill);
  font-weight: 600; font-size: 1rem; line-height: 1; white-space: nowrap;
  transition: transform .35s var(--rdc-ease), background-color .25s, box-shadow .35s, color .25s, border-color .25s;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { padding: .75rem 1.15rem; font-size: .9375rem; }
.btn--block { width: 100%; }
.btn-primary { background: var(--rdc-blue); color: #fff; box-shadow: var(--rdc-glow); }
.btn-primary:hover { background: var(--rdc-blue-hover); box-shadow: 0 0 0 1px rgba(188, 214, 255, .4), 0 12px 50px -6px rgba(0, 71, 255, .85); }
.btn-secondary { background: #fff; color: var(--rdc-black); }
.btn-secondary:hover { background: var(--rdc-blue-ice); }
.btn-ghost { color: #fff; border: 1px solid rgba(255, 255, 255, .22); }
.btn-ghost:hover { border-color: var(--rdc-blue-light); background: rgba(0, 71, 255, .12); }
.btn-ghost-dark { color: var(--rdc-black); border: 1px solid var(--rdc-gray-light); }
.btn-ghost-dark:hover { border-color: var(--rdc-blue); color: var(--rdc-blue); }
.btn-whatsapp { background: var(--rdc-whatsapp); color: #08301a; }
.btn-whatsapp:hover { box-shadow: 0 10px 40px -8px rgba(37, 211, 102, .7); }
.btn .btn-arrow { transition: transform .35s var(--rdc-ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* Botão com feixe de luz girando na borda (ref. huly) */
@property --beam-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.btn-beam { position: relative; isolation: isolate; background: var(--rdc-ink); color: #fff; }
.btn-beam::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; z-index: -1;
  background: conic-gradient(from var(--beam-angle), rgba(255,255,255,.12) 0 55%, var(--rdc-blue-ice) 72%, var(--rdc-blue) 84%, rgba(255,255,255,.12) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: beam-spin 3.2s linear infinite;
}
@keyframes beam-spin { to { --beam-angle: 360deg; } }

/* ── Cards ────────────────────────────────────────────────── */
.card { position: relative; background: var(--rdc-surface); border: 1px solid var(--rdc-border); border-radius: var(--rdc-radius-lg); overflow: hidden; transition: transform .5s var(--rdc-ease), border-color .3s, box-shadow .4s; }
.card:hover { transform: translateY(-6px); border-color: rgba(106, 155, 255, .45); }
.card--light { background: #fff; border-color: var(--rdc-gray-light); color: var(--rdc-black); }
.card--light:hover { border-color: var(--rdc-blue); box-shadow: 0 24px 60px -30px rgba(0, 71, 255, .45); }
.card-spot::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 71, 255, .26), transparent 45%); opacity: 0; transition: opacity .4s; }
.card-spot:hover::before { opacity: 1; }
.chip { display: inline-flex; align-items: center; padding: .35rem .8rem; border-radius: var(--rdc-pill); background: rgba(255, 255, 255, .08); font-size: .75rem; font-weight: 500; color: rgba(255, 255, 255, .8); }
.grain { position: relative; }
.grain::after { content: ""; position: absolute; inset: 0; opacity: .07; pointer-events: none; border-radius: inherit; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

/* ── Header ───────────────────────────────────────────────── */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; transform: translateZ(0); transition: transform .5s var(--rdc-ease), background-color .4s, backdrop-filter .4s; }
.header-spacer { height: var(--header-h); }
.page-home .header-spacer { display: none; } /* home: hero passa por baixo do menu */
.nav-top { border-bottom: 1px solid rgba(255, 255, 255, .06); font-size: .8125rem; color: rgba(255, 255, 255, .6); transition: margin-top .45s var(--rdc-ease), opacity .3s; }
.nav-top__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; height: 38px; }
.nav-top__item { display: inline-flex; align-items: center; gap: 6px; }
.nav-top a:hover { color: #fff; }
.nav-main__inner { display: flex; align-items: center; gap: 24px; height: 74px; }
.nav-logo img { height: 40px; width: auto; }
.nav-links { margin-left: auto; }
.nav-links > ul { display: flex; align-items: center; gap: 4px; }
.nav-links > ul > li { position: relative; }
.nav-links > ul > li > a { display: inline-flex; align-items: center; gap: 4px; padding: 10px 14px; border-radius: var(--rdc-pill); font-size: .9375rem; font-weight: 500; color: rgba(255, 255, 255, .78); transition: color .2s, background-color .2s; }
.nav-links > ul > li > a:hover, .nav-links a.is-active { color: #fff; background: rgba(255, 255, 255, .06); }
.nav-cta { margin-left: 8px; }
.nav-burger { display: none; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; border: 1px solid rgba(255, 255, 255, .15); margin-left: auto; }

/* scroll: some a faixa de cima, barra ganha vidro */
.site-header.is-scrolled { background: rgba(19, 19, 19, .72); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 1px 0 rgba(255, 255, 255, .06); }
.site-header.is-scrolled .nav-top { margin-top: -39px; opacity: 0; }
.site-header.is-hidden { transform: translate3d(0, -100%, 0); }

/* Dropdown — sem vão entre o link e o painel (padding-top faz a ponte do hover) */
.dropdown { position: absolute; top: 100%; left: 50%; padding-top: 12px; transform: translate(-50%, 8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .35s var(--rdc-ease), visibility .25s; }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dropdown__list { width: 340px; padding: 10px; border-radius: 20px; background: rgba(27, 27, 33, .96); border: 1px solid var(--rdc-border); backdrop-filter: blur(20px); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8); }
.dropdown__link { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 14px; transition: background-color .2s; }
.dropdown__link:hover { background: rgba(0, 71, 255, .14); }
.dropdown__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(0, 71, 255, .15); color: var(--rdc-blue-light); flex: none; }
.dropdown__link strong { display: block; font-size: .9375rem; font-weight: 600; }
.dropdown__link small { display: block; font-size: .8125rem; color: var(--rdc-gray); }

/* Sidebar mobile */
.nav-mobile { position: fixed; inset: 0; z-index: 200; }
.nav-mobile[hidden] { display: none; }
.nav-mobile__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); opacity: 0; transition: opacity .35s; }
.nav-mobile__panel { position: absolute; inset: 0 0 0 auto; width: min(380px, 88vw); background: var(--rdc-ink); border-left: 1px solid var(--rdc-border); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .45s var(--rdc-ease); overflow-y: auto; overscroll-behavior: contain; }
.nav-mobile.is-open .nav-mobile__backdrop { opacity: 1; }
.nav-mobile.is-open .nav-mobile__panel { transform: none; }
.nav-mobile__head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--rdc-border); }
.nav-mobile__head img { height: 34px; width: auto; }
.nav-mobile__close { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--rdc-border); }
.nav-mobile__list { padding: 12px 24px; flex: 1; }
.nav-mobile__list > li { border-bottom: 1px solid var(--rdc-border); }
.nav-mobile__list > li > a, .acc__btn { display: flex; width: 100%; justify-content: space-between; align-items: center; padding: 18px 0; font-size: 1.125rem; font-weight: 600; }
.acc__btn .icon { transition: transform .3s var(--rdc-ease); }
.acc__btn[aria-expanded="true"] .icon { transform: rotate(45deg); }
.acc__panel { padding-bottom: 12px; }
.acc__panel a { display: flex; align-items: center; gap: 10px; padding: 10px 0; color: rgba(255, 255, 255, .72); }
.acc__panel a .icon { color: var(--rdc-blue-light); }
.acc__all { color: var(--rdc-blue-light) !important; font-weight: 600; }
.nav-mobile__foot { padding: 24px; border-top: 1px solid var(--rdc-border); text-align: center; font-size: .875rem; color: var(--rdc-gray); }
.nav-mobile__foot p { margin-top: 12px; }

@media (max-width: 1080px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: inline-flex; }
  :root { --header-h: 100px; }
}
@media (max-width: 720px) {
  .nav-top__hide-sm { display: none; }
  .nav-top__item:last-child { display: none; }
  .nav-top__inner { justify-content: center; }
  .nav-main__inner { height: 62px; }
  .nav-logo img { height: 34px; }
}

/* ── Rodapé ───────────────────────────────────────────────── */
.site-footer { position: relative; overflow: hidden; background: var(--rdc-ink); border-top: 1px solid var(--rdc-border); padding-top: clamp(64px, 8vw, 100px); }
.footer-cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: 56px; border-bottom: 1px solid var(--rdc-border); }
.footer-cta__title { font-size: var(--fs-h3); font-weight: 900; letter-spacing: -.03em; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; padding-block: 56px; }
.footer-brand img { height: 52px; width: auto; }
.footer-brand p { margin-top: 20px; color: var(--rdc-gray); max-width: 34ch; font-size: .9375rem; }
.footer-title { font-size: var(--fs-label); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .45); margin-bottom: 18px; }
.site-footer ul li + li { margin-top: 10px; }
.site-footer ul a, .footer-contact span { color: rgba(255, 255, 255, .78); font-size: .9375rem; display: inline-flex; align-items: center; gap: 8px; transition: color .2s; }
.site-footer ul a:hover { color: var(--rdc-blue-light); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-block: 24px; border-top: 1px solid var(--rdc-border); font-size: .8125rem; color: var(--rdc-gray); position: relative; z-index: 1; }
.footer-bottom nav { display: flex; gap: 20px; }
.footer-bottom a:hover { color: #fff; }
.footer-giant { font-size: clamp(4rem, 17vw, 16rem); font-weight: 900; letter-spacing: -.06em; line-height: .78; text-align: center; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(106, 155, 255, .16); margin-top: 8px; user-select: none; background: linear-gradient(180deg, rgba(0, 71, 255, .18), transparent 70%); -webkit-background-clip: text; background-clip: text; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* WhatsApp flutuante */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--rdc-whatsapp); color: #fff; box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .6); transition: transform .35s var(--rdc-ease); }
.wa-float .icon { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.08); }
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--rdc-whatsapp); animation: wa-pulse 2.4s ease-out infinite; }
@keyframes wa-pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(1.6); opacity: 0; } }

/* ── Estados iniciais das animações (só com JS ativo) ────────── */
.js .animate-fade-up { opacity: 0; transform: translateY(40px); }
.js .animate-blur-in { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .animate-fade-up, .js .animate-blur-in { opacity: 1; transform: none; }
}
