/* Nextia — Identidade visual
 * Navy #0B1F3A — confiança e profissionalismo
 * Blue #2563EB — tecnologia
 * Cyan #06B6D4 — inovação digital
 * Slate — textos e superfícies neutras
 */

:root {
  --color-navy: #0B1F3A;
  --color-navy-light: #132d52;
  --color-blue: #2563EB;
  --color-blue-dark: #1d4ed8;
  --color-cyan: #06B6D4;
  --color-cyan-soft: #67e8f9;
  --color-slate-900: #0f172a;
  --color-slate-700: #334155;
  --color-slate-500: #64748b;
  --color-slate-200: #e2e8f0;
  --color-slate-100: #f1f5f9;
  --color-slate-50: #f8fafc;
  --color-white: #ffffff;
  --gradient-brand: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-blue) 100%);
  --gradient-hero: linear-gradient(160deg, #0B1F3A 0%, #132d52 45%, #1e3a5f 100%);
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(11, 31, 58, 0.08);
  --shadow-md: 0 8px 30px rgba(11, 31, 58, 0.12);
  --shadow-lg: 0 20px 50px rgba(11, 31, 58, 0.18);
  --header-h: 148px;
  --logo-h: 120px;
  --transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-slate-700);
  background: var(--color-white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-cyan); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-navy);
  line-height: 1.2;
  margin: 0 0 0.75rem;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.125rem; font-weight: 600; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--color-navy);
  color: var(--color-white);
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-slate-200);
  min-height: var(--header-h);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}
.brand {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.brand .site-logo {
  display: block;
  height: var(--logo-h);
  width: auto;
  max-width: min(480px, 88vw);
  object-fit: contain;
}
.footer-brand .site-logo--footer {
  height: 96px;
  width: auto;
  max-width: 380px;
  margin-bottom: 0.25rem;
}
.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.5rem;
}
.site-nav a {
  color: var(--color-slate-700);
  font-weight: 500;
  font-size: 0.95rem;
}
.site-nav a.active:not(.btn) { color: var(--color-blue); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-navy);
  border-radius: 2px;
  transition: var(--transition);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--gradient-brand);
  color: var(--color-white) !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}
.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
  color: var(--color-white) !important;
}
.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--color-white) !important;
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white) !important;
}
.btn-secondary {
  background: var(--color-navy);
  color: var(--color-white) !important;
}
.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }

/* Hero */
.hero {
  background: var(--gradient-hero);
  color: var(--color-white);
  padding: clamp(4rem, 10vw, 7rem) 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 90% 20%, rgba(6, 182, 212, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 10% 80%, rgba(37, 99, 235, 0.2), transparent);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero h1 { color: var(--color-white); }
.hero-lead {
  font-size: 1.125rem;
  opacity: 0.9;
  max-width: 32rem;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-visual {
  display: flex;
  justify-content: center;
}
.hero-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 380px;
}
.hero-stat {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.hero-stat:last-child { border-bottom: none; }
.hero-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--gradient-brand);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.hero-stat strong { display: block; color: var(--color-white); font-family: var(--font-display); }
.hero-stat span { font-size: 0.875rem; opacity: 0.75; }

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 5.5rem) 0; }
.section-alt { background: var(--color-slate-50); }
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}
.section-header p { color: var(--color-slate-500); font-size: 1.05rem; }
.label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-cyan);
  margin-bottom: 0.5rem;
}
.label::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--gradient-brand);
  vertical-align: middle;
  margin-right: 0.5rem;
}

/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--color-white);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(37, 99, 235, 0.25);
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(37, 99, 235, 0.15));
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.card p { color: var(--color-slate-500); font-size: 0.95rem; margin-bottom: 0; }

/* Portfolio */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.portfolio-card {
  background: var(--color-white);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.portfolio-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.portfolio-thumb {
  height: 160px;
  background: var(--color-slate-100);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.portfolio-thumb img {
  max-height: 80px;
  width: auto;
  object-fit: contain;
}
.portfolio-thumb .placeholder {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-blue);
  opacity: 0.4;
}
.portfolio-body { padding: 1.25rem 1.5rem 1.5rem; }
.portfolio-body .tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-blue);
  background: rgba(37, 99, 235, 0.1);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}
.portfolio-body p {
  font-size: 0.9rem;
  color: var(--color-slate-500);
  margin-bottom: 0.75rem;
}
.portfolio-body a {
  font-weight: 600;
  font-size: 0.9rem;
}

/* Process */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  counter-reset: step;
}
.process-step {
  position: relative;
  padding-left: 3rem;
}
.process-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* CTA band */
.cta-band {
  background: var(--gradient-hero);
  color: var(--color-white);
  text-align: center;
  padding: 4rem 2rem;
  border-radius: var(--radius-lg);
  margin: 0 auto;
  max-width: 1120px;
  width: calc(100% - 2rem);
}
.cta-band h2 { color: var(--color-white); margin-bottom: 1rem; }
.cta-band p { opacity: 0.9; max-width: 480px; margin: 0 auto 1.5rem; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.about-values {
  display: grid;
  gap: 1rem;
}
.value-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: var(--color-white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-slate-200);
}
.value-item strong { color: var(--color-navy); display: block; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
}
.contact-info-card {
  background: var(--color-slate-50);
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1px solid var(--color-slate-200);
}
.contact-info-card li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-slate-200);
}
.contact-info-card li:last-child { border-bottom: none; }

/* Forms */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-navy);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.form-group textarea { min-height: 140px; resize: vertical; }

/* Alerts */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

/* Page header */
.page-hero {
  background: var(--color-slate-50);
  padding: 3rem 0;
  border-bottom: 1px solid var(--color-slate-200);
}
.page-hero h1 { margin-bottom: 0.5rem; }
.page-hero p { color: var(--color-slate-500); max-width: 560px; margin: 0; }

/* Footer */
.site-footer {
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.75);
  padding: 4rem 0 0;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 3rem;
}
.site-footer h3 {
  color: var(--color-white);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}
.footer-brand p { font-size: 0.9rem; margin-top: 1rem; max-width: 280px; }
.footer-links a { color: rgba(255, 255, 255, 0.75); }
.footer-links a:hover { color: var(--color-cyan); }
.social-links { display: flex; gap: 0.75rem; margin-top: 1rem; }
.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  color: var(--color-white) !important;
  font-size: 0.75rem;
  font-weight: 700;
}
.social-links a:hover { background: var(--color-blue); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem 0;
  font-size: 0.85rem;
  text-align: center;
}

.empty-state {
  text-align: center;
  padding: 3rem;
  color: var(--color-slate-500);
  background: var(--color-slate-50);
  border-radius: var(--radius-md);
  border: 1px dashed var(--color-slate-200);
}

/* Botão flutuante WhatsApp */
.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 200;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: whatsapp-pulse 2.5s ease-in-out infinite;
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
  color: #fff;
}
.whatsapp-float:focus-visible {
  outline: 3px solid var(--color-cyan);
  outline-offset: 3px;
}
@keyframes whatsapp-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45); }
  50% { box-shadow: 0 4px 28px rgba(37, 211, 102, 0.65), 0 0 0 8px rgba(37, 211, 102, 0.12); }
}
@media (max-width: 768px) {
  .whatsapp-float {
    right: 1rem;
    bottom: 1rem;
    width: 56px;
    height: 56px;
  }
  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .about-grid,
  .contact-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
}
@media (max-width: 768px) {
  :root {
    --header-h: 108px;
    --logo-h: 80px;
  }
  .footer-brand .site-logo--footer {
    height: 72px;
    max-width: 300px;
  }
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-slate-200);
    padding: 1rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
  }
  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  .site-nav .btn { text-align: center; margin-top: 0.5rem; }
}
