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

:root {
  --primary:      #0a0a0a;
  --accent:       #2563eb;
  --accent-light: #3b82f6;
  --accent-dark:  #1d4ed8;
  --bg:           #ffffff;
  --bg-soft:      #f8fafc;
  --bg-dark:      #0f172a;
  --text:         #1e293b;
  --text-muted:   #64748b;
  --border:       #e2e8f0;
  --radius:       12px;
  --max-w:        1100px;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.08);
  --shadow-md:    0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:    0 8px 32px rgba(0,0,0,.14);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: .875rem 0;
  box-shadow: var(--shadow-sm);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.site-header .logo {
  display: flex; align-items: center; gap: .625rem;
  font-weight: 700; font-size: 1rem; color: var(--primary);
  max-width: 60%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.site-header .logo img { height: 32px; width: auto; border-radius: 6px; flex-shrink: 0; }
.site-header nav { display: flex; gap: .25rem; flex-shrink: 0; }
.site-header nav a {
  font-size: .875rem; font-weight: 500; color: var(--text-muted);
  padding: .375rem .75rem; border-radius: 6px;
  transition: color .15s, background .15s;
}
.site-header nav a:hover { color: var(--accent); background: #eff6ff; text-decoration: none; }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 55%, #1d4ed8 100%) !important;
  color: #fff;
  padding: 6rem 0 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(59,130,246,.25) 0%, transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-badge {
  display: inline-block;
  font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: #93c5fd; background: rgba(59,130,246,.15);
  border: 1px solid rgba(59,130,246,.3);
  border-radius: 100px; padding: .375rem 1rem;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(1.75rem, 5vw, 3.25rem);
  font-weight: 800; line-height: 1.15;
  color: #ffffff;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.8);
  max-width: 580px; margin: 0 auto 2.25rem;
  line-height: 1.7;
}
.hero-logo {
  width: 88px; height: 88px; object-fit: contain;
  border-radius: 20px; margin: 0 auto 2rem;
  box-shadow: 0 8px 32px rgba(0,0,0,.35);
  border: 2px solid rgba(255,255,255,.15);
}
.btn-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .875rem 2.25rem;
  background: var(--accent); color: #fff;
  font-size: 1rem; font-weight: 600; border-radius: 10px;
  box-shadow: 0 4px 16px rgba(37,99,235,.4);
  transition: background .2s, transform .15s, box-shadow .2s;
}
.btn-primary:hover {
  background: var(--accent-light); text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37,99,235,.5);
}

/* ── Sections ── */
section { padding: 5rem 0; }
.section-alt { background: var(--bg-soft); }
.section-tag {
  display: inline-block;
  font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); background: #eff6ff;
  border-radius: 100px; padding: .3rem .85rem;
  margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800; color: var(--primary);
  margin-bottom: .625rem; line-height: 1.2;
}
.section-subtitle { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 2.75rem; max-width: 540px; }

/* ── About ── */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
@media (min-width: 768px) { .about-grid { grid-template-columns: 1fr 1fr; } }
.about-text p { color: var(--text-muted); line-height: 1.85; margin-bottom: 1rem; }
.about-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: #f0fdf4; border: 1px solid #bbf7d0;
  color: #166534; font-size: .875rem; font-weight: 600;
  border-radius: 8px; padding: .5rem 1rem; margin-top: 1rem;
}
.about-image-wrap {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-radius: 20px; padding: 2rem;
  display: flex; align-items: center; justify-content: center;
  min-height: 240px;
  box-shadow: var(--shadow-md);
}
.about-image-wrap img { border-radius: 12px; max-height: 220px; object-fit: contain; }
.about-placeholder {
  font-size: 5rem; opacity: .25;
}

/* ── Services ── */
#servicos { background: var(--bg-soft); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
  display: flex; flex-direction: column; gap: 1rem;
}
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.service-icon {
  width: 48px; height: 48px;
  background: #eff6ff; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}
.service-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--primary); }
.service-card p { color: var(--text-muted); font-size: .95rem; line-height: 1.7; }

/* ── Contact ── */
.contact-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px; padding: 2.5rem;
  box-shadow: var(--shadow-md);
  max-width: 680px; margin: 0 auto;
}
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
.contact-item {
  display: flex; flex-direction: column; gap: .3rem;
  padding: 1.25rem; background: var(--bg-soft);
  border-radius: var(--radius); border: 1px solid var(--border);
}
.contact-item span {
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--accent);
}
.contact-item a, .contact-item p {
  font-size: .95rem; font-weight: 500; color: var(--text);
  transition: color .15s;
}
.contact-item a:hover { color: var(--accent); text-decoration: none; }
.social-links { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; justify-content: center; }
.social-links a {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem 1rem; border: 1px solid var(--border);
  border-radius: 8px; font-size: .875rem; font-weight: 500;
  color: var(--text); transition: border-color .2s, color .2s, background .2s;
}
.social-links a:hover { border-color: var(--accent); color: var(--accent); background: #eff6ff; text-decoration: none; }

/* ── Footer ── */
.site-footer {
  background: var(--bg-dark); color: rgba(255,255,255,.65);
  padding: 3rem 0 2rem;
  font-size: .875rem;
}
.footer-inner {
  display: flex; flex-direction: column; gap: 1.5rem;
  align-items: flex-start;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 1.5rem;
}
@media (min-width: 640px) {
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: center; }
}
.footer-brand strong { color: #fff; font-size: 1rem; }
.footer-cnpj { font-size: .75rem; color: rgba(255,255,255,.35); margin-top: .375rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .625rem 1.25rem; }
.footer-links a { color: rgba(255,255,255,.5); font-size: .8rem; transition: color .15s; }
.footer-links a:hover { color: #fff; text-decoration: none; }
.footer-copy { font-size: .75rem; color: rgba(255,255,255,.25); }

/* ── Legal pages ── */
.legal-page { max-width: 760px; margin: 0 auto; padding: 3rem 1.5rem 5rem; }
.legal-page h1 { font-size: 2rem; font-weight: 800; margin-bottom: .5rem; }
.legal-page .updated { color: var(--text-muted); font-size: .875rem; margin-bottom: 2.5rem; }
.legal-page h2 { font-size: 1.2rem; font-weight: 700; margin: 2.5rem 0 .5rem; }
.legal-page p, .legal-page li { color: var(--text-muted); line-height: 1.85; margin-bottom: .75rem; }
.legal-page ul { padding-left: 1.25rem; }
.legal-page a { color: var(--accent); }

/* ── Cookie Banner ── */
.cookie-banner {
  position: fixed; bottom: 1.25rem; left: 50%; z-index: 999;
  transform: translateX(-50%) translateY(calc(100% + 2rem));
  width: calc(100% - 2.5rem); max-width: 640px;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px; padding: 1rem 1.25rem;
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
  transition: transform .4s cubic-bezier(.34,1.56,.64,1), opacity .3s;
  opacity: 0;
}
.cookie-banner--visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.cookie-text {
  font-size: .875rem; color: rgba(255,255,255,.8);
  line-height: 1.5; flex: 1; min-width: 200px;
}
.cookie-text a { color: var(--accent-light); text-decoration: underline; text-underline-offset: 2px; }
.cookie-text a:hover { color: #fff; }
.cookie-actions { display: flex; gap: .625rem; flex-shrink: 0; }
.cookie-btn {
  font-size: .8rem; font-weight: 700; border: none; cursor: pointer;
  padding: .5rem 1.1rem; border-radius: 8px;
  transition: background .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
.cookie-btn--primary {
  background: var(--accent); color: #fff;
}
.cookie-btn--primary:hover { background: var(--accent-light); }
.cookie-btn--outline {
  background: transparent; color: rgba(255,255,255,.6);
  border: 1px solid rgba(255,255,255,.2);
}
.cookie-btn--outline:hover { color: #fff; border-color: rgba(255,255,255,.5); }

/* ── Responsive ── */
@media (max-width: 640px) {
  .site-header nav { display: none; }
  .hero { padding: 4rem 0 3.5rem; }
  section { padding: 3.5rem 0; }
  .contact-box { padding: 1.5rem; }
}
