/*
 * ═══════════════════════════════════════════════════════
 * REDEPRIME · SENTINEL CSS — shared across all pages
 * redeprime-site/styles/sentinel.css
 * ═══════════════════════════════════════════════════════
 */

/* ─── FONT FACES ─── */
@font-face { font-family: 'Avenir LT Pro'; src: url('../fonts/AvenirLTPro-Light.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Avenir LT Pro'; src: url('../fonts/AvenirLTPro-Book.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Avenir LT Pro'; src: url('../fonts/AvenirLTPro-Roman.woff2') format('woff2'); font-weight: 450; font-display: swap; }
@font-face { font-family: 'Avenir LT Pro'; src: url('../fonts/AvenirLTPro-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Avenir LT Pro'; src: url('../fonts/AvenirLTPro-Heavy.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Avenir LT Pro'; src: url('../fonts/AvenirLTPro-Black.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ─── DESIGN TOKENS ─── */
:root {
  --red:        #E30613;
  --red-glow:   rgba(227,6,19,0.16);
  --red-border: rgba(227,6,19,0.45);

  --bg:  #0A0A0A;
  --s-1: #131313;
  --s-2: #1C1C1C;
  --s-3: #262626;

  --bd:   rgba(255,255,255,0.08);
  --bd-2: rgba(255,255,255,0.16);

  --fg-1: #F2F2F2;
  --fg-2: #8A8A8A;
  --fg-3: #5A5A5A;

  --warn: #FF9500;
  --safe: #00B86B;
  --info: #2A7AFF;

  --display: 'Avenir LT Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:    'JetBrains Mono', SFMono-Regular, Consolas, monospace;

  --container: 1440px;
  --gutter:    32px;
}

/* ─── LIGHT THEME OVERRIDES (dark is default/first) ─── */
[data-theme="light"] {
  --red-glow:   rgba(227,6,19,0.08);
  --red-border: rgba(227,6,19,0.35);

  --bg:  #FAFAFA;
  --s-1: #FFFFFF;
  --s-2: #F0F0F0;
  --s-3: #E6E6E6;

  --bd:   rgba(0,0,0,0.08);
  --bd-2: rgba(0,0,0,0.14);

  --fg-1: #141414;
  --fg-2: #62636A;
  --fg-3: #9A9AA0;
}
[data-theme="light"] .nav { background: rgba(250,250,250,0.86); }
[data-theme="light"] .btn-pri { color: #fff; }

/* Logo swap: white wordmark (dark theme) vs black wordmark (light theme) */
.nav-logo img.logo-light, .footer-brand img.logo-light { display: none; }
[data-theme="light"] .nav-logo img.logo-dark, [data-theme="light"] .footer-brand img.logo-dark { display: none; }
[data-theme="light"] .nav-logo img.logo-light, [data-theme="light"] .footer-brand img.logo-light { display: block; }

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
body { background: var(--bg); color: var(--fg-1); font-family: var(--display); font-weight: 400; font-size: 15px; line-height: 1.55; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ─── LAYOUT ─── */
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* ─── TYPOGRAPHY ATOMS ─── */
.eyebrow        { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-2); }
.eyebrow.brand  { color: var(--red); }
.label          { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-2); }
.mono           { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.sec-eyebrow    { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.sec-eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--red); }

/* ─── BUTTONS ─── */
.btn        { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 3px; font-size: 13px; font-weight: 500; letter-spacing: 0.01em; transition: all 180ms ease; border: 1px solid transparent; line-height: 1; white-space: nowrap; }
.btn-pri    { background: var(--red); color: #fff; }
.btn-pri:hover { background: #C40510; }
.btn-sec    { color: var(--fg-1); border-color: var(--bd-2); }
.btn-sec:hover { background: var(--s-2); border-color: var(--fg-2); }
.btn-ghost  { color: var(--fg-1); }
.btn-ghost:hover { color: var(--red); }
.btn .arr   { transition: transform 200ms; }
.btn:hover .arr { transform: translateX(3px); }

/* ─── KEYFRAMES ─── */
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.85); } }

/* ─── NAV ─── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,10,10,0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--bd);
}
.nav-inner  { display: flex; align-items: center; height: 72px; gap: 36px; }
.nav-logo   { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo img { height: 46px; width: auto; display: block; }
.nav-list   { display: flex; gap: 22px; margin-left: 16px; white-space: nowrap; }
.nav-list a { font-size: 13px; color: var(--fg-2); font-weight: 500; transition: color 200ms; position: relative; }
.nav-list a:hover { color: var(--fg-1); }
.nav-list a.active { color: var(--fg-1); }
.nav-list a.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -22px; height: 2px; background: var(--red); }
.nav-cta    { margin-left: auto; display: flex; gap: 10px; align-items: center; }

/* theme toggle */
.theme-toggle-btn { width: 36px; height: 36px; border: 1px solid var(--bd-2); border-radius: 3px; display: flex; align-items: center; justify-content: center; color: var(--fg-2); transition: all 200ms; flex-shrink: 0; }
.theme-toggle-btn:hover { color: var(--red); border-color: var(--red); }
.theme-toggle-btn svg { width: 16px; height: 16px; }

/* language switcher */
.lang-switch { position: relative; display: flex; align-items: center; }
.lang-toggle-btn { width: 36px; height: 36px; border: 1px solid var(--bd-2); border-radius: 3px; display: flex; align-items: center; justify-content: center; overflow: hidden; transition: border-color 200ms; flex-shrink: 0; }
.lang-toggle-btn:hover { border-color: var(--red); }
.lang-flag svg { width: 20px; height: 14px; border-radius: 2px; display: block; }
.lang-menu { position: absolute; top: 100%; right: 0; margin-top: 14px; min-width: 170px; background: var(--s-1); border: 1px solid var(--bd); border-radius: 4px; overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity 180ms, transform 180ms, visibility 180ms; box-shadow: 0 12px 30px rgba(0,0,0,0.35); z-index: 60; }
.lang-switch:hover .lang-menu, .lang-switch:focus-within .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-size: 13px; color: var(--fg-2); border-bottom: 1px solid var(--bd); }
.lang-menu a:last-child { border-bottom: none; }
.lang-menu a:hover { color: var(--fg-1); background: var(--s-2); }
.lang-menu a.active { color: var(--red); }
.lang-menu a svg { width: 20px; height: 14px; border-radius: 2px; flex-shrink: 0; }

/* dropdown */
.nav-drop { position: relative; display: flex; align-items: center; }
.nav-drop > a { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.nav-drop .caret { width: 9px; height: 9px; transition: transform 200ms; }
.nav-drop:hover .caret { transform: rotate(180deg); }
.nav-drop-menu {
  position: absolute; top: 100%; left: 0; margin-top: 14px; min-width: 180px;
  background: var(--s-1); border: 1px solid var(--bd); border-radius: 4px; overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity 180ms, transform 180ms, visibility 180ms;
  box-shadow: 0 12px 30px rgba(0,0,0,0.45);
}
.nav-drop:hover .nav-drop-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-drop-menu a { display: block; padding: 12px 18px; font-size: 13px; color: var(--fg-2); border-bottom: 1px solid var(--bd); }
.nav-drop-menu a:last-child { border-bottom: none; }
.nav-drop-menu a:hover { color: var(--fg-1); background: var(--s-2); }

/* ─── SECTION BASE ─── */
section { padding: 96px 0; border-bottom: 1px solid var(--bd); }
.sec-head { margin-bottom: 56px; }
.sec-head h2 { font-family: var(--display); font-weight: 500; font-size: clamp(32px, 4.4vw, 56px); line-height: 1.05; letter-spacing: -0.03em; max-width: 820px; }
.sec-head .meta { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-2); padding-bottom: 8px; }
.sec-head .sub { margin-top: 20px; font-size: 17px; color: var(--fg-2); max-width: 620px; line-height: 1.6; }
/* sec-head flex variant used on Home */
.sec-head-flex { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; margin-bottom: 56px; }
.sec-head-flex h2 { font-family: var(--display); font-weight: 500; font-size: clamp(32px, 4.4vw, 56px); line-height: 1.05; letter-spacing: -0.03em; max-width: 820px; }

/* ─── SOL-CARDS (shared: both pages use them) ─── */
.sols-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sol-card {
  position: relative; background: var(--s-1); border: 1px solid var(--bd);
  border-radius: 4px; padding: 28px 28px 24px; display: flex;
  flex-direction: column; min-height: 270px; transition: all 220ms; overflow: hidden;
}
.sol-card:hover { border-color: var(--red-border); }
.sol-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 300ms ease; }
.sol-card:hover::before { transform: scaleX(1); }
.sols-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.sol-desc  { font-size: 14px; line-height: 1.6; color: var(--fg-2); margin-top: 14px; margin-bottom: auto; }
a.sol-card { color: inherit; text-decoration: none; }
.sol-num   { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; color: var(--fg-3); margin-bottom: 28px; }
.sol-icon  { width: 40px; height: 40px; border: 1px solid var(--bd-2); border-radius: 3px; display: flex; align-items: center; justify-content: center; margin-bottom: 24px; color: var(--red); }
.sol-icon svg { width: 20px; height: 20px; }
.sol-title { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: auto; }
.sol-foot  { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--bd); display: flex; justify-content: space-between; align-items: center; }
.sol-foot .lbl { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-2); }
.sol-foot .arr { color: var(--fg-2); transition: all 200ms; }
.sol-card:hover .sol-foot .arr { color: var(--red); transform: translateX(3px); }
.sols-cta  { margin-top: 56px; display: flex; justify-content: center; }

/* ─── TEAM IMAGES (shared) ─── */
.team-imgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.team-img  {
  aspect-ratio: 4/5; border: 1px solid var(--bd); border-radius: 4px; position: relative;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.5)),
              repeating-linear-gradient(135deg, #181818, #181818 1px, #131313 1px, #131313 8px);
  overflow: hidden;
}
.team-img::after { content: '[placeholder · imagem]'; position: absolute; left: 14px; bottom: 14px; font-family: var(--mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3); }

/* ─── HERO TAG (shared dot pill) ─── */
.hero-tag { display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px; border: 1px solid var(--bd-2); border-radius: 100px; margin-bottom: 32px; white-space: nowrap; }
.hero-tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); animation: pulse 1.8s ease-in-out infinite; flex-shrink: 0; }
.hero-tag .lbl { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-1); white-space: nowrap; }

/* ─── FOOTER ─── */
.footer { padding: 80px 0 40px; background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 64px; padding-bottom: 56px; border-bottom: 1px solid var(--bd); }
.footer-brand img { height: 42px; margin-bottom: 24px; max-width: 100%; }
.footer-brand p { color: var(--fg-2); font-size: 13px; max-width: 280px; line-height: 1.6; }
.footer-col h4 { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-2); margin-bottom: 20px; }
.footer-addr { display: flex; flex-direction: column; gap: 24px; }
.addr-block .city { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }
.addr-block .lines { font-size: 13px; color: var(--fg-1); line-height: 1.55; }
.footer-col .links { display: flex; flex-direction: column; gap: 14px; }
.footer-col .links a { font-size: 13px; color: var(--fg-1); transition: color 180ms; }
.footer-col .links a:hover { color: var(--red); }
.footer-social { display: flex; gap: 8px; margin-top: 24px; }
.footer-social a { width: 36px; height: 36px; border: 1px solid var(--bd-2); border-radius: 3px; display: flex; align-items: center; justify-content: center; transition: all 200ms; color: var(--fg-2); }
.footer-social a:hover { color: var(--red); border-color: var(--red); }
.footer-social svg { width: 14px; height: 14px; }
.footer-bottom { padding-top: 32px; display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3); flex-wrap: wrap; gap: 16px; }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a:hover { color: var(--fg-1); }

/* ─── MOBILE NAV (burger + drawer) ─── */
.nav-burger { display: none; width: 36px; height: 36px; border: none; background: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer; flex-shrink: 0; }
.nav-burger span { display: block; width: 20px; height: 2px; background: var(--fg-1); border-radius: 1px; transition: transform 220ms ease, opacity 220ms ease; }
.nav-burger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.is-active span:nth-child(2) { opacity: 0; }
.nav-burger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-drawer-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,0.5); opacity: 0; visibility: hidden; transition: opacity 220ms ease, visibility 220ms ease; }
.mobile-drawer-overlay.is-open { opacity: 1; visibility: visible; }
.mobile-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 91; width: min(84vw, 340px); background: var(--s-1); border-left: 1px solid var(--bd); box-shadow: -20px 0 50px rgba(0,0,0,0.35); transform: translateX(100%); transition: transform 260ms ease; overflow-y: auto; }
.mobile-drawer.is-open { transform: translateX(0); }
.mobile-drawer-inner { display: flex; flex-direction: column; padding: 88px 24px 40px; gap: 4px; }
.mobile-drawer-link { display: block; padding: 14px 8px; font-size: 16px; font-weight: 500; color: var(--fg-1); border-bottom: 1px solid var(--bd); }
.mobile-drawer-link.active { color: var(--red); }
.mobile-drawer-sublink { padding-left: 22px; font-size: 14px; color: var(--fg-2); }
.mobile-drawer-cta { margin-top: 20px; justify-content: center; }

/* ─── RESPONSIVE SHARED ─── */
@media (max-width: 1500px) { .nav-cta .btn-sec { display: none; } }
@media (max-width: 1320px) { .nav-logo img { height: 38px; } }
@media (max-width: 1180px) { .nav-logo img { height: 28px; } .nav-inner { gap: 24px; } .nav-list { gap: 16px; margin-left: 8px; } }
@media (max-width: 720px) { .nav-logo img { height: 24px; } .hero-tag { white-space: normal; border-radius: 14px; max-width: 100%; } .hero-tag .lbl { white-space: normal; letter-spacing: 0.1em; line-height: 1.4; } }
@media (max-width: 400px) { .nav-logo img { height: 21px; } .nav-inner { gap: 10px; } }
@media (max-width: 1024px) {
  .sols-grid, .sols-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
  .nav-inner { gap: 20px; }
  .nav-list { gap: 16px; margin-left: 12px; }
  .nav-cta { gap: 6px; }
}
@media (max-width: 720px) {
  :root { --gutter: 20px; }
  .nav-list { display: none; }
  .nav-cta .btn-sec { display: none; }
  .nav-burger { display: flex; }
  section { padding: 72px 0; }
  .sols-grid, .sols-grid.cols-4 { grid-template-columns: 1fr; }
  .team-imgs { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Upload de arquivos: feedback do arquivo escolhido */
.field-upload.drag { border-color: var(--red); background: color-mix(in srgb, var(--red) 8%, transparent); }
.field-upload.has-file { border-style: solid; border-color: var(--red-border, var(--red)); flex-direction: column; gap: 10px; }
.upload-files { font-size: 13px; color: var(--fg-1); line-height: 1.5; text-align: center; word-break: break-word; }
.upload-files:empty { display: none; }
.upload-files .upload-name { color: var(--fg-1); }
.upload-files .upload-rm { background: none; border: 0; color: var(--red); cursor: pointer; font: inherit; text-decoration: underline; padding: 0 0 0 6px; }
.upload-files .upload-err { color: var(--red); }
.upload-files { font-family: var(--display); text-transform: none; letter-spacing: 0; margin-top: 8px; }
