/* Paleta e base - mobile first */
:root {
  --primary: #1e60d4;
  --accent: #2fb34a;
  --bg-dark: #0b0f19;
  --surface: #ffffff;
  --muted: #475569;
  --text: #0f172a;
  --light: #f5f7fb;
  --radius: 0.35rem;
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.25rem;
  --space-5: 1.75rem;
  --space-6: 2.25rem;
  --icon-size: 1rem;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial; color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

.skip-link { position: absolute; left: -9999px; top: -9999px; }
.skip-link:focus { left: 12px; top: 12px; background: var(--primary); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 2000; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* Topbar moderno */
.topbar { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,0.9); backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid #e9eef5; }
.topbar-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--space-2); height: 64px; }
.brand { display: flex; align-items: center; text-decoration: none; color: var(--text); font-weight: 700; }
.brand-logo { height: 3rem; width: auto; margin-right: var(--space-2); object-fit: contain; }
.brand-text { letter-spacing: .2px; }
.nav { display: flex; align-items: center; justify-content: center; gap: var(--space-2); }
.nav a { color: var(--text); text-decoration: none; padding: var(--space-1) var(--space-2); border-radius: var(--radius); transition: background .2s ease, color .2s ease; }
.nav a:hover { background: #eef3ff; color: var(--primary); }
.nav a.active { background: #e6efff; color: var(--primary); }
.cta { display: flex; align-items: center; gap: 8px; }
.hamburger { display: none; background: transparent; border: 0; color: var(--text); font-size: 1.375rem; cursor: pointer; }

/* Botões com microinterações */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: var(--space-2) var(--space-3); border-radius: var(--radius); text-decoration: none; font-weight: 600; transition: transform .1s ease, box-shadow .2s ease, filter .2s ease; will-change: transform; }
.btn:active { transform: translateY(1px); }
.btn-lg { padding: var(--space-4) var(--space-5); font-size: 1.06rem; }
.btn-whatsapp { background: var(--accent); color: #fff; box-shadow: 0 12px 30px rgba(47,179,74,.25); }
.btn-call { background: var(--primary); color: #fff; box-shadow: 0 12px 30px rgba(30,96,212,.25); }
.btn-secondary { background: #ffffff; color: var(--primary); border: 2px solid var(--primary); }
.btn:hover { filter: brightness(.97); }
.btn:focus-visible { outline: 3px solid #9bc3ff; outline-offset: 2px; }
.icon { font-size: var(--icon-size); }

/* Hero com imagem e overlay */
.hero { position: relative; min-height: 70vh; display: grid; align-items: center; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; will-change: transform; transform: translate3d(0,0,0); z-index: 0; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,15,25,.68) 0%, rgba(11,15,25,.72) 60%, rgba(11,15,25,.82) 100%); z-index: 1; }
.hero-inner { position: relative; text-align: center; padding: var(--space-6) 0; display: grid; gap: var(--space-3); justify-items: center; z-index: 2; }
.hero h1 { font-size: 1.9rem; margin: 0 0 12px; letter-spacing: .2px; }
.subtitle { margin: 0 0 22px; color: #e5efff; }
.actions { display: flex; gap: 12px; justify-content: center; margin-bottom: 20px; flex-wrap: wrap; }
.badges { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.badge { display: flex;align-items: center; justify-content: center; gap: 8px;background: rgba(255,255,255,.12); color: #fff; padding: 8px 12px; border-radius: 999px; font-size: .9rem; }

/* Seções e cartões */
.section { padding: 56px 0; background: #fff; }
.section.alt { background: var(--light); }
.section h2 { margin-top: 0; font-size: 1.6rem; }
.section-actions { margin-top: 20px; display: flex; gap: 10px; }

.grid-services { display: grid; grid-template-columns: 1fr; gap: var(--space-3); }
.card { background: #fff; border: 1px solid #e9eef5; border-radius: var(--radius); padding: var(--space-4); box-shadow: 0 8px 22px rgba(16,24,40,.06); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(16,24,40,.08); }
.card h3 { margin-top: 0; color: var(--primary); }

.company-info { display: grid; grid-template-columns: 1fr; gap: var(--space-3); margin-bottom: var(--space-3); }
.info-block { background: #fff; border: 1px solid #e9eef5; border-radius: var(--radius); padding: var(--space-3); }

.gallery { display: grid; grid-template-columns: 1fr; gap: var(--space-2); }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid #e9eef5; background: #fff; }
.gallery img { display: block; width: 100%; height: 190px; object-fit: cover; }

.testimonials { display: grid; grid-template-columns: 1fr; gap: 16px; }
.testimonials blockquote { margin: 0; background: #fff; border: 1px solid #e9eef5; border-radius: 12px; padding: 18px; box-shadow: 0 8px 22px rgba(16,24,40,.06); }
.testimonials cite { display: block; margin-top: 8px; color: #666; }

.legal details { background: #fff; border: 1px solid #e9eef5; border-radius: 12px; padding: 12px 16px; margin-top: 12px; }
.legal summary { cursor: pointer; font-weight: 600; color: var(--primary); }

.footer { background: #0b0f19; color: #fff; padding: 22px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; }

/* Animations - reveal on scroll */
[data-animate] { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .6s cubic-bezier(.2,.8,.2,1); will-change: opacity, transform; }
.in-view { opacity: 1; transform: none; }

/* Responsivo (larguras maiores) */
@media (min-width: 768px) {
  .hero h1 { font-size: 2.4rem; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .grid-services { grid-template-columns: repeat(2, 1fr); }
  .testimonials { grid-template-columns: repeat(2, 1fr); }
  .company-info { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-services { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .testimonials { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1200px) {
  .hero { min-height: 72vh; }
  .hero h1 { font-size: 2.8rem; }
}

/* Orientação */
@media (orientation: landscape) {
  .hero { min-height: 65vh; }
}

/* Menu mobile */
@media (max-width: 767px) {
  .topbar-inner { grid-template-columns: auto 1fr auto; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; padding: var(--space-2) var(--space-3); border-bottom: 1px solid #e9eef5; box-shadow: 0 12px 30px rgba(16,24,40,.08); z-index: 1200; }
  .nav.open { display: block; }
  .nav a { display: block; padding: 12px 8px; border-bottom: 1px solid #e9eef5; }
  .hamburger { display: inline-block; }
  .cta a{display: none;}
  .topbar-inner {justify-content: space-between; display: flex;}
}

/* Tablet layout */
@media (min-width: 768px) and (max-width: 1199px) {
  .topbar-inner { grid-template-columns: auto 1fr auto; }
  .nav { justify-content: center; }
  .cta { gap: var(--space-2); }
}

/* Desktop amplo */
@media (min-width: 1200px) {
  .topbar-inner { grid-template-columns: auto 1fr auto; }
  .nav { justify-self: center; }
}

/* Hero background – hero.jpg direto */
.hero-bg { background-image: url('assets/hero.jpg'); background-position: center; background-size: cover; }