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

:root {
  --primary:       #0066ff;
  --primary-dark:  #0052cc;
  --whatsapp:      #25d366;
  --whatsapp-dark: #1eb954;
  --bg:            #f8fafc;
  --bg-white:      #ffffff;
  --bg-secondary:  #f1f5f9;
  --dark:          #0f172a;
  --text:          #334155;
  --text-muted:    #64748b;
  --border:        #e2e8f0;
  --radius:        16px;
  --radius-lg:     24px;
  --max-w:         1200px;
  --shadow-sm:     0 4px 20px rgba(0,0,0,.06);
  --shadow-md:     0 10px 40px rgba(0,0,0,.08);
  --shadow-lg:     0 30px 80px rgba(0,0,0,.10);
  --transition:    all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Outfit', 'Inter', sans-serif;
  color: var(--dark);
  line-height: 1.15;
}

a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }

/* ── Reveal Animation ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(0.16,1,.3,1), transform .7s cubic-bezier(0.16,1,.3,1);
}
.reveal.active { opacity: 1; transform: translateY(0); }

/* ── Header ── */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  padding: 1.5rem 0;
  transition: var(--transition);
}
.site-header.scrolled {
  padding: 1rem 0;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 24px rgba(0,0,0,.07);
}
.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-family: 'Outfit', sans-serif;
  font-weight: 700; font-size: 1.15rem;
  color: #fff; letter-spacing: -.01em;
  transition: color .2s;
}
.site-header.scrolled .logo { color: var(--dark); }
.site-header .logo img { width: 36px; height: 36px; object-fit: contain; border-radius: 8px; }
.site-header nav { display: flex; gap: 2rem; }
.site-header nav a {
  font-size: .9rem; font-weight: 600;
  color: rgba(255,255,255,.85);
  transition: color .2s;
  text-decoration: none;
}
.site-header nav a:hover { color: #fff; }
.site-header.scrolled nav a { color: var(--text-muted); }
.site-header.scrolled nav a:hover { color: var(--primary); }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .9rem 2rem; border-radius: 50px;
  background: var(--primary); color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 600; font-size: .95rem;
  border: none; cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,102,255,.25);
}
.btn-primary:hover {
  background: var(--primary-dark); color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,102,255,.3);
  text-decoration: none;
}
.btn-whatsapp {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .9rem 2rem; border-radius: 50px;
  background: var(--whatsapp); color: #fff;
  font-weight: 600; font-size: .95rem;
  border: none; cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(37,211,102,.25);
}
.btn-whatsapp:hover {
  background: var(--whatsapp-dark); color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,211,102,.3);
}
.btn-lg { padding: 1.1rem 2.4rem; font-size: 1.05rem; }
.btn-full { width: 100%; justify-content: center; }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 55%, #0f172a 100%);
  text-align: center;
  overflow: hidden;
  padding-top: 80px;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 30% 40%, rgba(0,102,255,.18) 0%, transparent 65%),
    radial-gradient(ellipse 50% 50% at 75% 60%, rgba(0,102,255,.10) 0%, transparent 60%);
  pointer-events: none;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(15,23,42,.35) 0%, rgba(15,23,42,.55) 100%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-logo {
  width: 90px; height: 90px; object-fit: contain;
  border-radius: 20px; margin: 0 auto 1.75rem;
  box-shadow: 0 0 36px rgba(0,102,255,.35);
}
.hero-badge {
  display: inline-block; margin-bottom: 1.25rem;
  padding: .3rem 1rem; border-radius: 999px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.9);
}
.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 700; color: #fff;
  letter-spacing: -.03em; margin-bottom: 1.25rem;
}
.hero p { font-size: 1.2rem; color: rgba(255,255,255,.75); max-width: 600px; margin: 0 auto 2.5rem; }
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Section Shared ── */
section { padding: 6rem 0; }

.section-tag {
  display: inline-block; padding: .3rem .9rem; border-radius: 999px;
  background: rgba(0,102,255,.08); border: 1px solid rgba(0,102,255,.15);
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 1rem;
}

h2.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700;
  color: var(--dark); letter-spacing: -.02em; margin-bottom: .5rem;
  position: relative; display: inline-block;
}
h2.section-title::after {
  content: '';
  display: block; width: 48px; height: 3px;
  background: var(--primary); border-radius: 2px;
  margin-top: .75rem;
}
.section-subtitle { color: var(--text-muted); font-size: 1.05rem; max-width: 520px; margin-top: .5rem; }

/* ── About ── */
#sobre { background: var(--bg-white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about-text .section-title::after { margin-left: 0; }
.about-badge {
  display: inline-block; margin-top: 1.5rem;
  padding: .45rem 1.1rem; border-radius: 8px;
  background: rgba(0,102,255,.07); border: 1px solid rgba(0,102,255,.15);
  font-size: .85rem; color: var(--primary); font-weight: 500;
}
.about-image-wrap {
  border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 1/1; background: var(--bg-secondary);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
}
.about-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.about-placeholder { font-size: 5rem; opacity: .25; }

/* ── Services ── */
#servicos { background: var(--bg-secondary); }
#servicos .container > .section-tag,
#servicos .container > .section-title,
#servicos .container > .section-subtitle { display: block; text-align: center; margin-left: auto; margin-right: auto; }
#servicos .container > .section-title::after { margin-left: auto; margin-right: auto; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.service-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0,102,255,.2);
}
.service-icon {
  width: 64px; height: 64px;
  background: rgba(0,102,255,.07);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem; margin: 0 auto 1.25rem;
}
.service-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--dark); margin-bottom: .625rem; }
.service-card p { font-size: .9rem; color: var(--text-muted); line-height: 1.65; }

/* ── Contact ── */
#contato { background: var(--bg); }
#contato .section-tag,
#contato .section-title,
#contato .section-subtitle { text-align: center; display: block; margin-left: auto; margin-right: auto; }
#contato .section-title::after { margin-left: auto; margin-right: auto; }

.contact-card {
  background: var(--bg-white);
  border-radius: 32px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  padding: 3.5rem;
  margin-top: 3rem;
}
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

/* ── Contact info ── */
.contact-info { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-info-title { font-size: 1.35rem; font-weight: 700; color: var(--dark); margin-bottom: .25rem; }
.contact-info-subtitle { font-size: .9rem; color: var(--text-muted); margin-bottom: .5rem; }
.contact-info-row { display: flex; align-items: flex-start; gap: 1rem; }
.contact-info-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 12px;
  background: rgba(0,102,255,.07);
  border: 1px solid rgba(0,102,255,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.contact-info-row-body { display: flex; flex-direction: column; gap: .15rem; }
.contact-info-row-body span {
  font-size: .72rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--text-muted);
}
.contact-info-row-body a,
.contact-info-row-body p { font-size: .95rem; color: var(--text); font-weight: 500; }
.contact-info-row-body a:hover { color: var(--primary); }

.social-links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.social-links a {
  padding: .35rem .9rem; border-radius: 999px;
  background: var(--bg-secondary); border: 1px solid var(--border);
  font-size: .8rem; color: var(--text-muted);
  transition: var(--transition); text-transform: capitalize;
}
.social-links a:hover { border-color: var(--primary); color: var(--primary); background: rgba(0,102,255,.05); text-decoration: none; }

/* ── Contact form ── */
.contact-form-wrap { border-left: 1px solid var(--border); padding-left: 3rem; }
.contact-form-title { font-size: 1.25rem; font-weight: 700; color: var(--dark); margin-bottom: .25rem; }
.contact-form-subtitle { font-size: .875rem; color: var(--text-muted); margin-bottom: 1.75rem; }
.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-field { display: flex; flex-direction: column; gap: .4rem; }
.form-field label { font-size: .82rem; font-weight: 600; color: var(--dark); letter-spacing: .03em; }
.form-field label span[aria-hidden] { color: var(--primary); margin-left: 2px; }
.field-optional { font-weight: 400; color: var(--text-muted); }

.form-field input,
.form-field textarea {
  width: 100%; padding: .85rem 1rem;
  border: 1.5px solid var(--border); border-radius: 10px;
  font-size: .95rem; font-family: inherit;
  color: var(--dark); background: var(--bg);
  transition: border-color .2s, box-shadow .2s;
  resize: vertical;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: #b0bec5; }
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0,102,255,.1);
  background: var(--bg-white);
}
.field-error { display: none; font-size: .78rem; color: #ef4444; margin-top: .2rem; }

.btn-full { border-radius: 10px; margin-top: .25rem; }

.form-success {
  display: flex; align-items: center; gap: .75rem;
  background: rgba(37,211,102,.08); border: 1px solid rgba(37,211,102,.3);
  color: #16a34a; border-radius: 10px;
  padding: 1rem 1.25rem; font-weight: 600; font-size: .95rem; margin-bottom: 1rem;
}
.form-success span { font-size: 1.25rem; }

.form-privacy { font-size: .75rem; color: var(--text-muted); text-align: center; line-height: 1.5; }
.form-privacy a { color: var(--primary); }

/* ── Footer ── */
.site-footer {
  background: var(--dark);
  border-top: none;
  padding: 3rem 0 2rem;
}
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.footer-brand strong { font-size: .95rem; font-weight: 700; color: #fff; }
.footer-cnpj { font-size: .78rem; color: rgba(255,255,255,.4); margin-top: .25rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.footer-links a { font-size: .82rem; color: rgba(255,255,255,.45); transition: color .15s; }
.footer-links a:hover { color: #fff; text-decoration: none; }
.footer-copy { font-size: .78rem; color: rgba(255,255,255,.25); text-align: center; }

/* ── Cookie Banner ── */
.cookie-banner {
  position: fixed; bottom: 2rem; left: 50%;
  transform: translateX(-50%) translateY(150%);
  width: min(520px, calc(100% - 2rem));
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: 20px; padding: 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  box-shadow: 0 8px 40px rgba(0,0,0,.12);
  z-index: 999;
  transition: transform .5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.cookie-banner--visible { transform: translateX(-50%) translateY(0); }
.cookie-text { font-size: .82rem; color: var(--text-muted); flex: 1; min-width: 200px; line-height: 1.5; }
.cookie-text a { color: var(--primary); }
.cookie-actions { display: flex; gap: .625rem; flex-shrink: 0; }
.cookie-btn {
  padding: .5rem 1.1rem; border-radius: 8px;
  font-size: .82rem; font-weight: 600; cursor: pointer; border: none;
  transition: opacity .15s;
}
.cookie-btn:hover { opacity: .85; }
.cookie-btn--primary { background: var(--primary); color: #fff; }
.cookie-btn--outline { background: transparent; color: var(--text-muted); border: 1.5px solid var(--border); }
.cookie-btn--outline:hover { color: var(--dark); border-color: #94a3b8; }

/* ── Responsive ── */
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-image-wrap { max-width: 340px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .contact-card { padding: 2.5rem; }
  .contact-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-form-wrap { border-left: none; border-top: 1px solid var(--border); padding-left: 0; padding-top: 2.5rem; }
}
@media (max-width: 640px) {
  .site-header nav { display: none; }
  .hero { padding-top: 80px; min-height: 90vh; }
  section { padding: 4rem 0; }
  .services-grid { grid-template-columns: 1fr; }
  .contact-card { padding: 1.75rem; border-radius: 20px; }
  .hero-btns { flex-direction: column; align-items: center; }
}
