:root {
  --blue-deep:  #122369;
  --blue-mid:   #1A4BA0;
  --blue-light: #2472C8;
  --cyan:       #00BCD4;
  --navy:       #1E2D4E;
  --text-dark:  #2B3A52;
  --text-gray:  #8A9BB5;
  --bg:         #F0F4F9;
  --card-bg:    #FFFFFF;
}

/* ── Reset / Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text-dark);
  line-height: 1.6;
}

/* ── Navbar ───────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(18, 35, 105, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0 3rem;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06), 0 4px 30px rgba(0,0,0,0.2);
}

.navbar-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.navbar-logo {
  height: 52px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  transition: opacity 0.2s, transform 0.2s;
}

.navbar-brand:hover .navbar-logo {
  opacity: 0.85;
  transform: scale(1.03);
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  list-style: none;
}

.navbar-links a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 500;
  padding: 0.45rem 1rem;
  border-radius: 7px;
  transition: color 0.18s, background 0.18s;
  letter-spacing: 0.01em;
}

.navbar-links a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.navbar-cta {
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.5) !important;
  padding: 0.4rem 1.25rem !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  transition: background 0.2s, border-color 0.2s !important;
}

.navbar-cta:hover {
  background: rgba(255, 255, 255, 0.13) !important;
  border-color: #ffffff !important;
}

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 90px 2rem 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,188,212,0.18) 0%, transparent 70%);
  top: -100px; right: -100px;
  border-radius: 50%;
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.12); }
}

.hero-content { position: relative; z-index: 1; max-width: 800px; }

.hero-badge {
  display: inline-block;
  background: rgba(0,188,212,0.15);
  border: 1px solid rgba(0,188,212,0.4);
  color: var(--cyan);
  padding: .35rem 1rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero h1 span { color: var(--cyan); }

.hero-sub {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--text-dark);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.btn-primary {
  display: inline-block;
  background: var(--cyan);
  color: var(--blue-deep);
  padding: .85rem 2.2rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(0,188,212,0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,188,212,0.45);
}

/* ── Seções ───────────────────────────────────────────── */
section { padding: 5rem 2rem; }

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header .tag {
  display: inline-block;
  background: rgba(0,188,212,0.1);
  color: var(--cyan);
  border: 1px solid rgba(0,188,212,0.3);
  padding: .25rem .9rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .75rem;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--navy);
}

.section-header p {
  color: var(--text-gray);
  max-width: 580px;
  margin: .75rem auto 0;
  font-size: 1.05rem;
}

/* ── Cards de Solução ─────────────────────────────────── */
.solucoes { background: #ffffff; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
  max-width: 1100px;
  margin: 0 auto;
}

.card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(18,35,105,0.08);
  transition: transform .25s, box-shadow .25s;
  border-top: 4px solid var(--blue-light);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(18,35,105,0.14);
}

.card-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue-mid), var(--cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}

.card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .6rem;
}

.card p {
  color: var(--text-gray);
  font-size: .97rem;
  line-height: 1.65;
}

.card-features {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.feature-tag {
  background: rgba(36,114,200,0.1);
  color: var(--blue-mid);
  padding: .22rem .75rem;
  border-radius: 6px;
  font-size: .8rem;
  font-weight: 600;
}

/* ── Sobre Nós ────────────────────────────────────────── */
.sobre {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue-deep) 100%);
  color: #fff;
}

.sobre .section-header h2 { color: #fff; }
.sobre .section-header p  { color: rgba(255,255,255,0.7); }

.valores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.valor-item {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 1.5rem;
}

.valor-item .icon { font-size: 1.75rem; margin-bottom: .75rem; }

.valor-item h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .4rem;
  color: var(--cyan);
}

.valor-item p {
  font-size: .9rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.55;
}

/* ── Footer ───────────────────────────────────────────── */
footer {
  background: var(--blue-deep);
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 2rem;
  font-size: .88rem;
}

footer strong { color: var(--cyan); }

/* ── Responsivo ───────────────────────────────────────── */
@media (max-width: 640px) {
  .navbar-links { display: none; }
  .hero { padding-top: 100px; }
}

/* ═══════════════════════════════════════════════════════
   FORMULÁRIO DE CONTATO
   ═══════════════════════════════════════════════════════ */

.contato {
  background: linear-gradient(180deg, var(--bg) 0%, #e8eef7 100%);
  padding: 5rem 2rem;
}

/* Card do formulário */
.form-card {
  max-width: 760px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 24px;
  padding: 3rem 3rem 2.5rem;
  box-shadow:
    0 4px 6px rgba(18,35,105,0.04),
    0 12px 40px rgba(18,35,105,0.10),
    0 0 0 1px rgba(18,35,105,0.06);
}

/* Grid 2 colunas */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem 1.75rem;
}

/* Grupo label + campo */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

/* Labels */
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.01em;
}

.required {
  color: var(--cyan);
  margin-left: 3px;
  font-weight: 700;
}

/* Inputs e Textarea */
.form-input {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.96rem;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  color: var(--text-dark);
  background: #F8FAFD;
  border: 1.5px solid #D8E2EF;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  -webkit-appearance: none;
  appearance: none;
}

.form-input::placeholder {
  color: #B0BCCC;
  font-weight: 400;
}

.form-input:hover {
  border-color: #B8C8E0;
}

.form-input:focus {
  border-color: var(--blue-light);
  background: #ffffff;
  box-shadow: 0 0 0 3.5px rgba(36,114,200,0.14);
}

.form-input.error {
  border-color: #E53E3E;
  background: #FFF5F5;
}

.form-input.error:focus {
  box-shadow: 0 0 0 3px rgba(229,62,62,0.14);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

/* Mensagem de erro */
.field-error {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.81rem;
  color: #C53030;
  font-weight: 500;
  margin-top: 0.1rem;
}

.field-error::before {
  content: "⚠";
  font-size: 0.75rem;
}

/* Divisor sutil */
.form-divider {
  grid-column: 1 / -1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #E2E8F4, transparent);
  margin: 0.2rem 0;
}

/* Rodapé do form */
.form-footer {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.4rem;
}

.form-note {
  font-size: 0.82rem;
  color: var(--text-gray);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Botão de envio */
.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: linear-gradient(135deg, var(--blue-mid) 0%, var(--blue-light) 100%);
  color: #ffffff;
  border: none;
  padding: 0.85rem 2rem;
  border-radius: 10px;
  font-size: 0.97rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  box-shadow: 0 4px 16px rgba(26,75,160,0.28);
  white-space: nowrap;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26,75,160,0.36);
}

.btn-submit:active {
  transform: translateY(0);
}

.btn-submit-icon {
  font-size: 1.05rem;
}

/* ── Mensagens flash ──────────────────────────────────── */
.messages-container {
  position: fixed;
  top: 76px;
  right: 1.25rem;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: 420px;
  width: calc(100vw - 2.5rem);
}

.alert {
  padding: 1rem 1.25rem;
  border-radius: 12px;
  font-size: 0.93rem;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(0,0,0,0.14);
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  animation: alertSlide 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes alertSlide {
  from { transform: translateX(40px) scale(0.95); opacity: 0; }
  to   { transform: translateX(0) scale(1);       opacity: 1; }
}

.alert-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 0.05rem; }
.alert-text { flex: 1; line-height: 1.4; }

.alert-success {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border: 1px solid #86efac;
  color: #15803d;
}

.alert-error {
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  border: 1px solid #fca5a5;
  color: #991b1b;
}

.alert-close {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  opacity: 0.5;
  padding: 0;
  color: inherit;
  flex-shrink: 0;
  transition: opacity 0.15s;
}

.alert-close:hover { opacity: 1; }

/* ── Responsivo ───────────────────────────────────────── */
@media (max-width: 640px) {
  .navbar-links { display: none; }
  .hero { padding-top: 100px; }
  .form-card   { padding: 1.75rem 1.25rem; border-radius: 16px; }
  .form-grid   { grid-template-columns: 1fr; gap: 1.1rem; }
  .form-footer { flex-direction: column-reverse; align-items: stretch; }
  .btn-submit  { width: 100%; justify-content: center; }
}
