/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue: #1D4ED8;
  --blue-light: #3B82F6;
  --blue-dark: #1e3a8a;
  --green: #34C759;
  --green-dark: #28a745;
  --gray: #86868B;
  --gray-light: #F5F5F7;
  --gray-mid: #E8E8ED;
  --black: #1D1D1F;
  --white: #FFFFFF;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(0,0,0,0.07);
  --shadow-md: 0 8px 40px rgba(0,0,0,0.10);
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== TYPOGRAPHY ===== */
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { color: var(--gray); line-height: 1.7; }

.gradient-text {
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-sm { padding: 8px 20px; font-size: 0.875rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }

.btn-primary {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(52,199,89,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-outline:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
  transform: translateY(-2px);
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 0;
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.logo-text { font-weight: 700; font-size: 1.25rem; color: var(--black); letter-spacing: -0.02em; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--black);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}
.nav-links a:hover { color: var(--blue); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== SECTIONS ===== */
.section { padding: 100px 0; }
.section-alt { background: var(--gray-light); }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}
.section-header h2 { margin-bottom: 16px; }
.section-header p { font-size: 1.1rem; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  background: linear-gradient(160deg, var(--white) 0%, #EEF3FF 50%, var(--white) 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(29,78,216,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-content { display: flex; flex-direction: column; gap: 24px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(29,78,216,0.08);
  color: var(--blue);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  width: fit-content;
}

.hero h1 { color: var(--black); }
.hero-sub { font-size: 1.15rem; color: var(--gray); max-width: 480px; }

.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 8px;
}
.stat { display: flex; flex-direction: column; }
.stat strong { font-size: 1.2rem; font-weight: 700; color: var(--black); }
.stat span { font-size: 0.8rem; color: var(--gray); }
.stat-divider { width: 1px; height: 36px; background: var(--gray-mid); }

/* Hero Visual */
.hero-visual {
  position: relative;
  height: 420px;
}
.hero-blob {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 320px; height: 320px;
  background: linear-gradient(135deg, rgba(29,78,216,0.12), rgba(59,130,246,0.08));
  border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%;
  animation: blobmorph 8s ease-in-out infinite;
}
@keyframes blobmorph {
  0%,100% { border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%; }
  33% { border-radius: 40% 60% 30% 70% / 60% 40% 60% 40%; }
  66% { border-radius: 70% 30% 50% 50% / 40% 70% 30% 60%; }
}

.hero-card {
  position: absolute;
  background: white;
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: float 6s ease-in-out infinite;
}
.card-1 { top: 20px; right: 0; animation-delay: 0s; }
.card-2 { bottom: 40px; left: 10px; animation-delay: 2s; }
.card-3 { top: 50%; right: 20px; transform: translateY(-50%); animation-delay: 4s; flex-direction: column; align-items: flex-start; gap: 4px; }

@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.card-3 { animation: float3 6s ease-in-out infinite; }
@keyframes float3 {
  0%,100% { transform: translateY(-50%); }
  50% { transform: translateY(calc(-50% - 10px)); }
}

.card-icon { font-size: 1.5rem; }
.card-text strong { display: block; font-size: 0.85rem; font-weight: 600; color: var(--black); }
.card-text span { font-size: 0.75rem; color: var(--gray); }
.card-dots { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; color: var(--gray); }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot.green { background: var(--green); box-shadow: 0 0 0 3px rgba(52,199,89,0.2); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 3px rgba(52,199,89,0.2); } 50% { box-shadow: 0 0 0 6px rgba(52,199,89,0.1); } }
.card-3 strong { font-size: 0.85rem; color: var(--black); }

/* ===== SERVICES CARDS ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: white;
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--gray-mid);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(29,78,216,0.15);
}
.service-icon { font-size: 2rem; margin-bottom: 16px; }
.service-card h3 { color: var(--black); margin-bottom: 8px; }
.service-card p { font-size: 0.9rem; }

/* ===== DIFERENCIAIS ===== */
.diferenciais-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}
.diferencial {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.diferencial-icon {
  font-size: 2rem;
  min-width: 56px;
  height: 56px;
  background: rgba(29,78,216,0.07);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.diferencial-content h3 { color: var(--black); margin-bottom: 6px; }
.diferencial-content p { font-size: 0.9rem; }

/* ===== TIMELINE ===== */
.timeline {
  display: flex;
  align-items: flex-start;
  gap: 0;
  justify-content: center;
}
.timeline-step {
  flex: 1;
  text-align: center;
  padding: 0 16px;
  position: relative;
}
.step-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}
.step-number {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  color: white;
  font-weight: 800;
  font-size: 1.1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-icon { font-size: 1.6rem; }
.timeline-step h3 { font-size: 0.95rem; color: var(--black); margin-bottom: 6px; }
.timeline-step p { font-size: 0.82rem; }

.timeline-connector {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-light), rgba(29,78,216,0.2));
  margin-top: 24px;
  flex-shrink: 0;
}

/* ===== PROJETOS ===== */
.projetos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.projeto-tag {
  background: white;
  border: 1px solid var(--gray-mid);
  border-radius: 50px;
  padding: 10px 22px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--black);
  transition: var(--transition);
  cursor: default;
  text-align: center;
}
.projeto-tag:hover {
  background: rgba(29,78,216,0.05);
  border-color: var(--blue-light);
  color: var(--blue);
  transform: translateY(-2px);
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: white;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-mid);
  overflow: hidden;
  transition: var(--transition);
}
.faq-item.open { border-color: rgba(29,78,216,0.2); }

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--black);
  text-align: left;
  gap: 16px;
}
.faq-icon {
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--blue);
  transition: var(--transition);
  flex-shrink: 0;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-answer p {
  padding: 0 24px 20px;
  font-size: 0.92rem;
}
.faq-item.open .faq-answer { max-height: 200px; }

/* ===== CTA FINAL ===== */
.cta-final { background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 50%, var(--blue-light) 100%); }
.cta-box { text-align: center; max-width: 640px; margin: 0 auto; }
.cta-box h2 { color: white; margin-bottom: 16px; }
.cta-box p { color: rgba(255,255,255,0.8); font-size: 1.05rem; margin-bottom: 36px; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== FORMULÁRIO ===== */
.contact-form {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 0.9rem; font-weight: 600; color: var(--black); }

.form-group input,
.form-group select,
.form-group textarea {
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--black);
  background: white;
  border: 1.5px solid var(--gray-mid);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  transition: var(--transition);
  outline: none;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(29,78,216,0.1);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-group select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2386868B' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }

/* Checkbox */
.checkbox-label { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 0.9rem; color: var(--gray); }
.checkbox-label input[type="checkbox"] { display: none; }
.checkmark {
  width: 20px; height: 20px;
  border: 2px solid var(--gray-mid);
  border-radius: 6px;
  flex-shrink: 0;
  transition: var(--transition);
  position: relative;
}
.checkbox-label input:checked + .checkmark {
  background: var(--blue);
  border-color: var(--blue);
}
.checkbox-label input:checked + .checkmark::after {
  content: '';
  position: absolute;
  top: 2px; left: 5px;
  width: 6px; height: 10px;
  border: 2px solid white;
  border-top: none; border-left: none;
  transform: rotate(45deg);
}

.form-success {
  display: none;
  background: rgba(52,199,89,0.1);
  border: 1px solid rgba(52,199,89,0.3);
  color: #1a7a35;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 0.95rem;
  font-weight: 500;
}

/* ===== FOOTER ===== */
.footer {
  background: #111827;
  color: rgba(255,255,255,0.6);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-logo .logo-text { color: white; }
.logo-img-footer { width: 36px; height: 36px; filter: brightness(0) invert(1); }
.footer-col p { font-size: 0.88rem; line-height: 1.7; margin-top: 12px; }
.footer-location { margin-top: 8px !important; }

.footer-col h4 {
  color: white;
  font-size: 0.95rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-col h4 svg { opacity: 0.7; flex-shrink: 0; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li { font-size: 0.88rem; }
.footer-col ul a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: var(--transition);
  overflow-wrap: anywhere;
  word-break: break-all;
}
.footer-col ul a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-bottom-inner {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p { margin: 0; }

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 999;
  width: 60px; height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: var(--transition);
  animation: bounce 3s ease-in-out infinite;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.55);
  animation: none;
}
@keyframes bounce {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ===== ANIMATIONS ===== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { height: 280px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .diferenciais-list { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .nav-links { display: none; flex-direction: column; gap: 20px; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: white; justify-content: center; align-items: center; z-index: 999; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; z-index: 1000; position: relative; }

  /* Cards: 2 colunas no mobile */
  .cards-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .service-card { padding: 20px 16px; }
  .service-icon { font-size: 1.6rem; margin-bottom: 10px; }
  .service-card h3 { font-size: 0.9rem; }
  .service-card p { font-size: 0.82rem; }

  /* Diferenciais: carrossel horizontal */
  .diferenciais-list {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding-bottom: 16px;
    scrollbar-width: none;
    max-width: 100%;
    grid-template-columns: unset;
  }
  .diferenciais-list::-webkit-scrollbar { display: none; }
  .diferencial {
    flex-direction: column;
    align-items: flex-start;
    scroll-snap-align: start;
    min-width: 240px;
    max-width: 240px;
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-mid);
  }

  /* Timeline: coluna com ícone ao lado do número */
  .timeline { flex-direction: column; align-items: stretch; }
  .timeline-step { text-align: left; padding: 0; }
  .step-header { justify-content: flex-start; }
  .timeline-connector { width: 2px; height: 28px; margin: 4px 0 4px 23px; }

  /* Projetos: 2 colunas uniformes */
  .projetos-grid { gap: 10px; }
  .projeto-tag {
    flex: 1 1 calc(50% - 5px);
    max-width: calc(50% - 5px);
    padding: 10px 12px;
    font-size: 0.82rem;
  }

  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-visual { display: none; }
  .hero { min-height: auto; }
  .hero-ctas { flex-direction: column; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-stats { gap: 16px; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
}
/* ===== LEGAL PAGES ===== */
.legal-header {
  padding: 160px 0 60px;
  background: var(--gray-light);
  text-align: center;
}
.legal-content {
  padding: 80px 0;
}
.legal-text {
  max-width: 800px;
  margin: 0 auto;
}
.legal-text h2 {
  font-size: 1.5rem;
  color: var(--black);
  margin: 40px 0 20px;
}
.legal-text h3 {
  font-size: 1.2rem;
  color: var(--black);
  margin: 30px 0 15px;
}
.legal-text p {
  margin-bottom: 20px;
  font-size: 1rem;
}
.legal-text ul {
  margin-bottom: 20px;
  padding-left: 20px;
}
.legal-text li {
  margin-bottom: 10px;
  color: var(--gray);
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 32px;
  transition: var(--transition);
}
.back-link:hover {
  transform: translateX(-4px);
}

@media (max-width: 768px) {
  .legal-header { padding: 120px 0 40px; }
  .legal-content { padding: 40px 0; }
}
