/* ============================================
   METACAMP — Stylesheet
   Outsourcing de TI
   ============================================ */

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

:root {
  --bg: #f5f5f5;
  --surface: #ffffff;
  --surface2: #f0f0f0;
  --text-primary: #1a1a1a;
  --text-secondary: #555555;
  --text-muted: #999999;
  --red: #cc1f1f;
  --red-dark: #a51818;
  --red-light: #fdf1f1;
  --charcoal: #2d2d2d;
  --border: rgba(0,0,0,0.08);
  --border-strong: rgba(0,0,0,0.14);
  --font-display: 'DM Serif Display', serif;
  --font-body: 'DM Sans', sans-serif;
  --wrap: max(2rem, calc(50% - 640px));
  --radius: 12px;
}

html { scroll-behavior: smooth; }

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

/* ============ NAVIGATION ============ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px);
  border-bottom: 0.5px solid var(--border);
  padding: 0 var(--wrap);
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 36px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text-primary); }

.nav-cta {
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  background: var(--red);
  padding: 9px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s;
  white-space: nowrap;
}

.nav-cta:hover { background: var(--red-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.25s;
}

/* ============ UTILITIES ============ */
.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
  display: block;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 9px;
  text-decoration: none;
  border: none;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

.btn-full { width: 100%; justify-content: center; margin-top: 4px; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s;
  background: none;
  border: none;
  font-family: var(--font-body);
  cursor: pointer;
}

.btn-ghost:hover { color: var(--text-primary); }
.btn-ghost .arr { transition: transform 0.2s; }
.btn-ghost:hover .arr { transform: translateX(3px); }

/* ============ HERO ============ */
.hero {
  padding: 148px var(--wrap) 96px;
  background: var(--surface);
  border-bottom: 0.5px solid var(--border);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red-light);
  border: 0.5px solid rgba(204,31,31,0.2);
  border-radius: 100px;
  padding: 6px 14px 6px 8px;
  font-size: 12px;
  color: var(--red);
  margin-bottom: 28px;
}

.pill-dot {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  animation: blink 2s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 4.5vw, 56px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--charcoal);
  margin-bottom: 22px;
}

.hero h1 em {
  font-style: italic;
  color: var(--red);
}

.hero-desc {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-secondary);
  font-weight: 300;
  margin-bottom: 40px;
  max-width: 460px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* HERO CARD */
.infra-card {
  background: var(--charcoal);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 48px rgba(0,0,0,0.18);
}

.infra-topbar {
  background: rgba(255,255,255,0.06);
  padding: 13px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 0.5px solid rgba(255,255,255,0.08);
}

.dot-row { display: flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.infra-title { font-size: 12px; color: rgba(255,255,255,0.35); margin: 0 auto; }

.infra-body { padding: 22px; }

.infra-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.infra-node {
  background: rgba(255,255,255,0.06);
  border: 0.5px solid rgba(255,255,255,0.1);
  border-radius: 9px;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.infra-node-accent {
  background: var(--red) !important;
  border: none !important;
}

.node-icon { font-size: 18px; flex-shrink: 0; }
.node-label { font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.9); }
.node-sub { font-size: 11px; color: rgba(255,255,255,0.4); margin-top: 1px; }
.node-status { margin-left: auto; width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.status-green { background: #22c55e; }

.infra-connector {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
}

.connector-line { flex: 1; height: 0.5px; background: rgba(255,255,255,0.12); }
.connector-label { font-size: 11px; color: rgba(255,255,255,0.35); white-space: nowrap; }

.infra-badges { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.ibadge {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.07);
  border: 0.5px solid rgba(255,255,255,0.12);
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 500;
}

/* ============ LOGOS STRIP ============ */
.logos-strip {
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  padding: 40px var(--wrap);
  background: var(--bg);
}

.logos-label {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 22px;
}

.logos-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 44px;
  flex-wrap: wrap;
}

.logo-brand-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  opacity: 0.55;
}

/* ============ SOBRE ============ */
.about {
  background: var(--surface);
  padding: 96px var(--wrap);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.5vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--charcoal);
  margin-bottom: 22px;
}

.about h2 em { font-style: italic; color: var(--red); }

.about-desc {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
  font-weight: 300;
  margin-bottom: 32px;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat-cell {
  background: var(--surface);
  padding: 22px;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--red);
  line-height: 1;
  margin-bottom: 5px;
}

.stat-label { font-size: 13px; color: var(--text-muted); }

.about-right { padding-top: 6px; }

.pillar {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 0.5px solid var(--border);
}

.pillar:last-child { border-bottom: none; }
.pillar-num { font-size: 11px; font-weight: 500; color: var(--red); min-width: 22px; padding-top: 3px; }
.pillar h4 { font-size: 15px; font-weight: 500; margin-bottom: 4px; color: var(--charcoal); }
.pillar p { font-size: 14px; color: var(--text-secondary); line-height: 1.65; font-weight: 300; }

/* ============ SERVIÇOS ============ */
.services {
  background: var(--bg);
  padding: 96px var(--wrap);
}

.services-head {
  max-width: 560px;
  margin-bottom: 52px;
}

.services h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.5vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--charcoal);
  margin-bottom: 14px;
}

.services h2 em { font-style: italic; color: var(--red); }

.services-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.75;
  font-weight: 300;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 0.5px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.svc {
  background: var(--surface);
  padding: 32px 28px;
  transition: background 0.18s;
}

.svc:hover { background: var(--surface2); }

.svc-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 18px;
  background: var(--red-light);
}

.svc-tag {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
  display: block;
}

.svc-title {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  color: var(--charcoal);
}

.svc-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 300;
}

.svc-list {
  list-style: none;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.svc-list li {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.svc-list li::before {
  content: "—";
  color: var(--red);
  font-size: 11px;
  flex-shrink: 0;
}

.svc-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.svc-list-right { padding-top: 64px; }

/* ============ PARCEIROS ============ */
.partners {
  background: var(--charcoal);
  padding: 96px var(--wrap);
}

.partners .section-label { color: rgba(255,255,255,0.4); }

.partners h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.5vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 14px;
}

.partners h2 em { font-style: italic; color: rgba(255,255,255,0.5); }

.partners-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.5);
  line-height: 1.75;
  font-weight: 300;
  max-width: 520px;
  margin-bottom: 48px;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border: 0.5px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  overflow: hidden;
}

.partner-cell {
  background: rgba(255,255,255,0.03);
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background 0.18s;
}

.partner-cell:hover { background: rgba(255,255,255,0.07); }

.partner-logo-text {
  font-size: 17px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  letter-spacing: -0.02em;
}

.partner-type {
  font-size: 10px;
  color: #e57373;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.partner-desc-text {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  line-height: 1.5;
  margin-top: 4px;
}

/* ============ CONTATO ============ */
.contact {
  background: var(--surface);
  padding: 96px var(--wrap);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.5vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--charcoal);
  margin-bottom: 14px;
}

.contact h2 em { font-style: italic; color: var(--red); }

.contact-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 32px;
}

.cinfo { display: flex; flex-direction: column; gap: 14px; }

.cinfo-item { display: flex; align-items: center; gap: 12px; }

.cinfo-icon {
  width: 36px;
  height: 36px;
  background: var(--red-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.cinfo-text strong {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 1px;
}

.cinfo-text span { font-size: 14px; color: var(--text-secondary); }

.form-group { margin-bottom: 14px; }

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 11px 14px;
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg);
  border: 0.5px solid var(--border-strong);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s;
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus { border-color: var(--red); }
.form-input::placeholder { color: var(--text-muted); }

textarea.form-input {
  resize: vertical;
  min-height: 96px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ============ FOOTER ============ */
footer {
  background: var(--charcoal);
  padding: 44px var(--wrap);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-left { display: flex; align-items: center; }

.footer-logo-img {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  margin-left: 14px;
}

.footer-links { display: flex; gap: 24px; }

.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: rgba(255,255,255,0.85); }

/* ============ ANIMAÇÕES ============ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-up { animation: fadeUp 0.6s ease forwards; }

/* ============ RESPONSIVO ============ */
@media (max-width: 900px) {
  .hero-inner,
  .about-grid,
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero { padding: 120px 1.5rem 64px; }
  .about, .services, .partners, .contact { padding: 64px 1.5rem; }
  .logos-strip { padding: 32px 1.5rem; }
  footer { padding: 36px 1.5rem; }

  .services-grid { grid-template-columns: 1fr; }
  .svc-wide { grid-template-columns: 1fr; }
  .svc-list-right { padding-top: 0; }

  .partners-grid { grid-template-columns: repeat(2, 1fr); }

  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 66px;
    left: 0; right: 0;
    background: #fff;
    border-bottom: 0.5px solid var(--border);
    padding: 20px 1.5rem;
    gap: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }

  .form-row { grid-template-columns: 1fr; }

  footer {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .partners-grid { grid-template-columns: 1fr 1fr; }
  .infra-row { grid-template-columns: 1fr; }
  .logos-row { gap: 20px; }
}
