:root {
  --bg: #050816;
  --bg-elevated: #0b1020;
  --bg-soft: #111827;
  --primary: #1d4ed8;
  --primary-soft: #2563eb;
  --accent: #38bdf8;
  --text: #e5e7eb;
  --text-muted: #9ca3af;
  --border: #1f2937;
  --radius: 10px;
  --shadow-soft: 0 18px 45px rgba(15,23,42,0.7);
}

html.theme-dark {
  /* já está escuro por padrão, mas se quiser claro depois, é aqui que muda */
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #1e293b 0, #020617 45%, #000 100%);
  color: var(--text);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: linear-gradient(90deg, #020617 0, #020617 40%, #0b1120 100%);
  border-bottom: 1px solid rgba(148,163,184,0.25);
  backdrop-filter: blur(14px);
}

.header-left {
  display: flex;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  /*gap: 10px;*/
  text-decoration: none;
  margin-left: -40px;
}

.logo {
  width: 220px;
  height: auto;
  margin-right: -40px; /*Puxa o texto para perto, eliminando o vazio do SVG */
  margin: -35px -65px -35px -35px; 
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 15px;
  letter-spacing: 0.12em;
  font-weight: 700;
  text-transform: uppercase;
}

.brand-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.main-nav {
  display: flex;
  gap: 18px;
  font-size: 14px;
}

.main-nav a {
  position: relative;
  padding-bottom: 2px;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.2s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

.theme-toggle {
  margin-right: 10px;
  background: transparent;
  border: 1px solid rgba(148,163,184,0.6);
  color: var(--text);
  border-radius: 999px;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 14px;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
}

/* MOBILE DRAWER */

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  max-width: 80%;
  height: 100vh;
  background: #020617;
  border-right: 1px solid rgba(148,163,184,0.3);
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  z-index: 60;
  display: flex;
  flex-direction: column;
}

.mobile-drawer.open {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(148,163,184,0.3);
  font-size: 14px;
}

.drawer-close {
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 10px 0;
}

.mobile-nav a {
  padding: 10px 18px;
  font-size: 14px;
}

.mobile-nav a:hover {
  background: rgba(37,99,235,0.15);
}

.mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.7);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 55;
}

.mobile-backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}

/* HERO */

.hero {
  padding: 70px 20px 60px;
}

.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.hero-title {
  font-size: 32px;
  line-height: 1.2;
  margin-bottom: 12px;
}

.hero-title span {
  background: linear-gradient(90deg, #38bdf8, #6366f1);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 520px;
}

.hero-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-radius: 999px;
  padding: 11px 22px;
  border: none;
  color: #e5e7eb;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.btn-secondary {
  border-radius: 999px;
  padding: 10px 20px;
  border: 1px solid rgba(148,163,184,0.7);
  background: transparent;
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
}

.hero-card {
  background: radial-gradient(circle at top, #1d4ed8 0, #020617 55%);
  border-radius: 18px;
  padding: 18px;
  border: 1px solid rgba(148,163,184,0.4);
  box-shadow: var(--shadow-soft);
  font-size: 13px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
  margin-top: 10px;
}

.metric {
  background: rgba(15,23,42,0.8);
  border-radius: 10px;
  padding: 8px 10px;
}

.metric strong {
  display: block;
  font-size: 16px;
}

/* SEÇÕES GENÉRICAS */

.section {
  padding: 40px 20px 30px;
}

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.section-title {
  font-size: 22px;
  margin-bottom: 6px;
}

.section-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.card {
  background: rgba(15,23,42,0.9);
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid rgba(148,163,184,0.35);
  box-shadow: 0 10px 30px rgba(15,23,42,0.7);
  font-size: 14px;
}

/* FOOTER */

.site-footer {
  margin-top: 40px;
  padding: 16px 20px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid rgba(148,163,184,0.3);
  background: #020617;
}

/* RESPONSIVO */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 780px) {
  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .theme-toggle {
    order: 3;
  }
}

.contato-form input,
.contato-form textarea,
.contato-form button {
  display: block;
  width: 100%;
  margin-bottom: 15px;
  padding: 10px;
  box-sizing: border-box;
}

.contato-form textarea {
  min-height: 120px;
  resize: vertical;
}

input[name="nome"], 
input[name="email"] {
  width: 500px; /* ocupa toda a largura disponível */
}

input[name="telefone"] {
  width: 250px; /* metade da largura, se quiser */
}


.contato-form textarea {
  width: 100%;        /* ocupa toda a largura disponível do container */
  max-width: 600px;   /* limita a largura máxima a 600px */
  min-height: 150px;  /* altura mínima */
  resize: vertical;   /* permite redimensionar só na vertical */
  padding: 10px;
  box-sizing: border-box;
}

.contato-form button {
  display: block;
  width: 100%;          /* ocupa toda a largura do container */
  max-width: 200px;     /* largura máxima */
  margin: 20px left;    /* centraliza horizontalmente */
  padding: 12px 20px;
  background-color: #0077cc; /* cor de fundo */
  color: #fff;          /* cor do texto */
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 6px;   /* cantos arredondados */
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contato-form button:hover {
  background-color: #005fa3; /* cor mais escura no hover */
}
