/* ==========================================================
   StarkLab — site institucional
   ========================================================== */

:root {
  --bg: #ffffff;
  --bg-muted: #f6f7f9;
  --text: #16181d;
  --text-soft: #4a505c;
  --text-faint: #6b7280;
  --border: #e4e7ec;
  --accent: #2f4ee0;
  --accent-hover: #2440c4;
  --accent-soft: #eef1fd;
  --dark: #111318;
  --placeholder-bg: #fff6d6;
  --placeholder-text: #7a5a00;

  --radius: 14px;
  --container: 1120px;
  --gutter: 20px;
  --header-h: 68px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  margin: 0 0 16px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}

p { margin: 0 0 16px; }

a { color: var(--accent); }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--dark);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Faixa com a razão social ---------- */

.legal-bar {
  padding: 8px 0;
  background: var(--dark);
  color: #c9ccd4;
  font-size: 0.8125rem;
  line-height: 1.4;
}
.legal-bar strong { color: #fff; font-weight: 600; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--dark);
  color: #fff;
  font-size: 0.95rem;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 11px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  display: none;
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.site-nav.is-open { display: block; }

.site-nav ul { padding: 8px var(--gutter) 16px; }

.site-nav a {
  display: block;
  padding: 12px 0;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.site-nav li:last-child a { border-bottom: 0; }

/* Sem JavaScript, o menu fica sempre visível */
.no-js .nav-toggle { display: none; }
.no-js .site-nav { display: block; position: static; border: 0; }

@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .site-nav,
  .no-js .site-nav {
    display: block;
    position: static;
    border: 0;
    background: transparent;
  }
  .site-nav ul { display: flex; gap: 32px; padding: 0; }
  .site-nav a {
    padding: 6px 0;
    border: 0;
    color: var(--text-soft);
    font-size: 0.95rem;
  }
  .site-nav a:hover { color: var(--text); }
}

/* ---------- Botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }

/* ---------- Tipografia de seção ---------- */

.eyebrow {
  margin-bottom: 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow-light { color: #a9b8ff; }

h1 { font-size: clamp(2.25rem, 7vw, 4rem); }
h2 { font-size: clamp(1.75rem, 4.5vw, 2.5rem); }
h3 { font-size: 1.125rem; margin-bottom: 8px; }

.h-small {
  font-size: 1rem;
  letter-spacing: 0;
  color: var(--text);
}

.lead,
.text-lg {
  font-size: 1.125rem;
  color: var(--text-soft);
}

/* ---------- Hero ---------- */

.hero {
  padding: 88px 0 96px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(900px 400px at 85% -10%, var(--accent-soft), transparent 70%),
    var(--bg);
}
.hero h1 { max-width: 14ch; }
.hero .lead { max-width: 560px; margin-bottom: 32px; }

.hero-legal {
  margin: 28px 0 0;
  font-size: 0.875rem;
  color: var(--text-faint);
}
.hero-legal strong { color: var(--text-soft); font-weight: 600; }

@media (min-width: 768px) {
  .hero { padding: 128px 0 136px; }
  .hero .lead { font-size: 1.25rem; }
}

/* ---------- Seções ---------- */

.section { padding: 72px 0; }
.section-muted { background: var(--bg-muted); }
.section-compact {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

@media (min-width: 768px) {
  .section { padding: 104px 0; }
  .section-compact { padding: 56px 0; }
}

.two-col {
  display: grid;
  gap: 24px;
}
@media (min-width: 900px) {
  .two-col { grid-template-columns: 5fr 7fr; gap: 64px; }
}

/* ---------- Fatos (Sobre) ---------- */

.facts {
  display: grid;
  gap: 1px;
  margin: 32px 0 0;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.facts > div { padding: 18px 20px; background: var(--bg); }
.facts dt {
  font-size: 0.8125rem;
  color: var(--text-faint);
  margin-bottom: 2px;
}
.facts dd { margin: 0; font-weight: 600; }

@media (min-width: 600px) {
  .facts { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Cards (Soluções) ---------- */

.cards {
  display: grid;
  gap: 16px;
  margin-top: 40px;
}
@media (min-width: 600px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(4, 1fr); gap: 20px; } }

.card {
  padding: 28px 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.card p { margin: 0; color: var(--text-soft); font-size: 0.975rem; }

.card-icon {
  width: 40px;
  height: 40px;
  padding: 8px;
  margin-bottom: 20px;
  border-radius: 10px;
  background: var(--accent-soft);
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- StarkLab ---------- */

.brand-panel {
  padding: 48px 28px;
  border-radius: 20px;
  background: var(--dark);
  color: #fff;
}
.brand-panel h2 { color: #fff; }
.brand-panel p:last-child {
  max-width: 640px;
  margin: 0;
  font-size: 1.125rem;
  color: #c9ccd4;
}
@media (min-width: 768px) {
  .brand-panel { padding: 72px 64px; }
}

/* ---------- Contato ---------- */

.contact-list {
  display: grid;
  gap: 12px;
  align-content: start;
}
.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 22px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.contact-label {
  font-size: 0.8125rem;
  color: var(--text-faint);
}
.contact-value {
  font-weight: 600;
  font-size: 1.0625rem;
  word-break: break-word;
}
.contact-value a { text-decoration: none; }
.contact-value a:hover { text-decoration: underline; }

/* ---------- Informações empresariais ---------- */

.company-info {
  display: grid;
  gap: 16px;
  margin: 16px 0 0;
  font-size: 0.9375rem;
}
.company-info dt { font-size: 0.8125rem; color: var(--text-faint); }
.company-info dd { margin: 0; color: var(--text); word-break: break-word; }

@media (min-width: 768px) {
  .company-info { grid-template-columns: 2fr 1.3fr 1.3fr 0.8fr; gap: 24px; }
}

/* Marcação visual de campos ainda não preenchidos.
   Remova a classe "placeholder" do HTML ao preencher o dado real. */
.placeholder {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--placeholder-bg);
  color: var(--placeholder-text);
  font-weight: 600;
}

/* ---------- Rodapé ---------- */

.site-footer {
  padding: 56px 0 32px;
  background: var(--dark);
  color: #c9ccd4;
}
.footer-inner {
  display: grid;
  gap: 32px;
}
.logo-footer { color: #fff; }
.logo-footer .logo-mark { background: #fff; color: var(--dark); }
.footer-tagline { margin: 12px 0 0; font-size: 0.95rem; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}
.footer-links a {
  color: #c9ccd4;
  text-decoration: none;
  font-size: 0.95rem;
}
.footer-links a:hover { color: #fff; }

.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #2a2d35;
  font-size: 0.8125rem;
  color: #9ca1ad;
}
.footer-bottom p { margin: 0; }

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
  .footer-bottom { border-top-color: #2a2d35; }
}
