/* =========================================================
   NowWatt — Premium Design System v6.1 (Refinements)
   ========================================================= */
:root {
  --bg: #040b08;
  --bg-2: #071210;
  --surface: rgba(156, 194, 24, 0.06);
  --surface-2: rgba(156, 194, 24, 0.10);
  --border: rgba(156, 194, 24, 0.18);
  --border-strong: rgba(156, 194, 24, 0.50);
  --text: #e6f1ee;
  --text-dim: #b0c4b8;
  --text-muted: #7a8c82;
  --primary: #9cc218;
  --primary-2: #0f8f36;
  --primary-glow: rgba(156, 194, 24, 0.35);
  --accent: #21abd2;
  --danger: #ef4444;
  --warn: #f59e0b;
  --grad-primary: linear-gradient(135deg, #9cc218 0%, #0f8f36 100%);
  --grad-text: linear-gradient(135deg, #9cc218, #0f8f36 60%, #9cc218);
  --grad-bg: radial-gradient(1200px 600px at 80% -10%, rgba(156, 194, 24, 0.25), transparent 60%), radial-gradient(900px 500px at -10% 30%, rgba(33, 171, 210, 0.15), transparent 60%), linear-gradient(180deg, #040b08, #071210);
  --shadow-1: 0 10px 40px -10px rgba(156, 194, 24, 0.35);
  --shadow-2: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --container: 1200px;
  --header-h: 80px;
  --ease: cubic-bezier(.4, 0, .2, 1);
  color-scheme: dark light;
}
.light {
  --bg: #fafdfb;
  --bg-2: #f0f7f1;
  --surface: rgba(15, 143, 54, 0.05);
  --surface-2: rgba(15, 143, 54, 0.09);
  --border: rgba(15, 143, 54, 0.20);
  --border-strong: rgba(15, 143, 54, 0.55);
  --text: #0a1912;
  --text-dim: #2d4a3a;
  --text-muted: #507a60;
  --primary: #0f8f36;
  --primary-2: #9cc218;
  --primary-glow: rgba(15, 143, 54, 0.25);
  --accent: #21abd2;
  --grad-text: linear-gradient(135deg, #0f8f36, #9cc218 60%, #0f8f36);
  --grad-bg: radial-gradient(1200px 600px at 80% -10%, rgba(156, 194, 24, 0.12), transparent 60%), linear-gradient(180deg, #fafdfb, #f0f7f1);
  --shadow-2: 0 30px 80px -20px rgba(0, 0, 0, 0.08);
  color-scheme: light;
}
.high-contrast { filter: contrast(1.3) saturate(1.15); }

* { box-sizing: border-box; margin: 0; padding: 0 }
html { scroll-behavior: smooth; scroll-padding-top: 100px }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto } }
html.font-lg { font-size: 18px }
html.font-xl { font-size: 20px }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text); background: var(--bg); background-image: var(--grad-bg); background-attachment: fixed;
  line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; min-height: 100vh
}
img { max-width: 100%; display: block; height: auto }
a { color: var(--primary-2); text-decoration: none; transition: color .25s var(--ease) }
a:hover { color: var(--accent) }
h1, h2, h3, h4, h5, h6 { font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; color: var(--text) }
h1 { font-size: clamp(1.8rem, 4vw, 3rem) }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem) }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem) }
h4 { font-size: 1.1rem }
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem }
section { padding: 5rem 0; position: relative }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--primary-2); font-weight: 600; font-size: .82rem;
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: .5rem;
}
.eyebrow svg { width: 14px; height: 14px }

.fade-up, .reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity .7s cubic-bezier(.2, .9, .4, 1.1), transform .7s cubic-bezier(.2, .9, .4, 1.1);
}
.fade-up.visible, .reveal.visible { opacity: 1; transform: translateY(0) }
@media (prefers-reduced-motion: reduce) { .fade-up, .reveal { opacity: 1 !important; transform: none !important; transition: none !important } }
.fade-up-delay-1 { transition-delay: .05s }
.fade-up-delay-2 { transition-delay: .1s }
.fade-up-delay-3 { transition-delay: .15s }

.gradient-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent }

*:focus { outline: none }
*:focus-visible { outline: 2px solid var(--primary-2); outline-offset: 3px; border-radius: 4px; box-shadow: 0 0 0 2px rgba(156, 194, 24, .2) }
.btn:focus-visible, .icon-btn:focus-visible, .fab:focus-visible { outline: 2px solid var(--primary-2); outline-offset: 3px }

.skip { position: absolute; left: -9999px; top: 0; background: var(--primary); color: #000; padding: .7rem 1rem; border-radius: 0 0 8px 0; z-index: 9999; font-weight: 700 }
.skip:focus { left: 0 }

/* Header */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--header-h); transition: all .35s var(--ease); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); background: rgba(4, 11, 8, .5); border-bottom: 1px solid transparent }
.light .header { background: rgba(250, 253, 251, .85) }
.header.scrolled { background: rgba(4, 11, 8, .92); border-bottom-color: var(--border); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6) }
.light .header.scrolled { background: rgba(250, 253, 251, .96); border-bottom-color: var(--border) }
.nav { height: 100%; display: flex; align-items: center; justify-content: space-between }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.25rem; color: var(--text) }
.brand:hover { color: var(--text) }
.brand-logo {
  height: 56px;   /* maior em desktop */
  width: auto;
  display: block;
  transition: transform 0.2s ease;
}  /* AUMENTEI O LOGO */
.brand-logo:hover {
  transform: scale(1.02);
}
@media (max-width: 640px) {
  .brand-logo {
    height: 48px;
  }
}
.brand-mark { display: none }
.nav-links { display: flex; align-items: center; gap: .15rem; list-style: none }
.nav-links a { padding: .55rem .95rem; color: var(--text-dim); font-weight: 500; font-size: .92rem; border-radius: 8px; position: relative; transition: all .25s var(--ease) }
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--surface) }
.nav-links a.active::after { content: ""; position: absolute; left: 1rem; right: 1rem; bottom: .3rem; height: 2px; background: var(--grad-primary); border-radius: 2px }
.nav-actions { display: flex; align-items: center; gap: .5rem }
.icon-btn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; display: grid; place-items: center; transition: all .25s var(--ease) }
.icon-btn:hover { border-color: var(--border-strong); transform: translateY(-2px); color: var(--primary-2) }
.menu-toggle { display: none }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .85rem 1.5rem; border-radius: 12px; font-weight: 600; font-size: .95rem; border: 1px solid transparent; cursor: pointer; transition: all .3s var(--ease); position: relative; overflow: hidden; font-family: inherit; white-space: nowrap; text-decoration: none }
.btn-primary { background: var(--grad-primary); color: #04120c; box-shadow: var(--shadow-1) }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 50px -10px rgba(156, 194, 24, .6); color: #04120c }
.btn-primary::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .3), transparent 70%); transform: translateX(-100%); transition: transform .8s var(--ease) }
.btn-primary:hover::before { transform: translateX(100%) }
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--text); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px) }
.btn-ghost:hover { border-color: var(--border-strong); color: var(--primary-2); background: var(--surface-2) }
.btn-lg { padding: 1.05rem 2rem; font-size: 1.05rem; border-radius: 14px }
.btn-outline { background: transparent; border: 1px solid var(--border-strong); color: var(--primary-2) }
.btn-outline:hover { background: var(--surface); border-color: var(--primary-2) }

/* Hero */
.hero { min-height: 100vh; padding-top: calc(var(--header-h) + 4rem); padding-bottom: 6rem; display: flex; align-items: center; position: relative; overflow: hidden }
.hero + .stats { margin-top: -2rem }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 4rem; align-items: center; width: 100% }
.hero h1 { margin-bottom: 1.25rem }
.hero-sub { font-size: 1.15rem; color: var(--text-dim); max-width: 560px; margin-bottom: 2rem; line-height: 1.75 }
.hero-actions { display: flex; gap: .85rem; flex-wrap: wrap; margin-bottom: 2.5rem }
.hero-trust { display: flex; gap: 1.75rem; flex-wrap: wrap }
.hero-trust div { display: flex; align-items: center; gap: .45rem; color: var(--text-dim); font-size: .88rem; font-weight: 500 }
.hero-trust svg { width: 17px; height: 17px; color: var(--primary-2) }
.hero-visual { position: relative; aspect-ratio: 1; max-width: 520px; margin: 0 auto }
.orb { position: absolute; border-radius: 50%; filter: blur(45px); opacity: .55 }
@media (prefers-reduced-motion: no-preference) { .orb { animation: float 8s ease-in-out infinite } }
.orb-1 { width: 60%; height: 60%; background: var(--primary); top: 10%; left: 5% }
.orb-2 { width: 50%; height: 50%; background: #21abd2; bottom: 0; right: 0; animation-delay: -3s }
.glass-card { position: absolute; background: rgba(156, 194, 24, .08); border: 1px solid rgba(156, 194, 24, .25); border-radius: 20px; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); padding: 1rem 1.25rem; box-shadow: 0 20px 60px -10px rgba(0, 0, 0, .6); z-index: 2 }
@media (prefers-reduced-motion: no-preference) { .glass-card { animation: float 6s ease-in-out infinite } }
.gc-1 { top: 8%; left: 0; animation-delay: 0s }
.gc-2 { top: 38%; right: -20%; animation-delay: -2s }
.gc-3 { bottom: 5%; left: 10%; animation-delay: -4s }
.glass-card .label { font-size: .7rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: .1em }
.glass-card .value { font-size: 1.35rem; font-weight: 800; color: var(--primary-2); font-family: 'Plus Jakarta Sans', sans-serif }
.hero-center-circle { position: absolute; inset: 32%; border-radius: 50%; background: var(--grad-primary); box-shadow: 0 0 120px var(--primary-glow), inset 0 0 60px rgba(255, 255, 255, .3); display: grid; place-items: center; z-index: 1 }
@media (prefers-reduced-motion: no-preference) { .hero-center-circle { animation: spin 30s linear infinite } }
.hero-center-circle svg { width: 40%; height: 40%; color: #04120c }
@media (prefers-reduced-motion: no-preference) { .hero-center-circle svg { animation: spin 30s linear infinite reverse } }
.particles { position: absolute; inset: 0; pointer-events: none; z-index: 0 }

/* Stats */
.stats { padding: 3.5rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); margin-top: 1rem }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center }
.stat-num { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; font-family: 'Plus Jakarta Sans', sans-serif; line-height: 1 }
.stat-label { color: var(--text-dim); margin-top: .5rem; font-size: .9rem }

/* Service cards */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 1.75rem }
.service-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; transition: all .4s var(--ease); overflow: hidden; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); display: flex; flex-direction: column }
.service-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(156, 194, 24, .18), transparent 40%); opacity: 0; transition: opacity .4s; pointer-events: none }
.service-card:hover { transform: translateY(-8px); border-color: var(--border-strong); box-shadow: var(--shadow-2) }
.service-card:hover::before { opacity: 1 }
.service-card .icon { width: 58px; height: 58px; border-radius: 14px; background: var(--grad-primary); display: grid; place-items: center; color: #04120c; margin-bottom: 1.25rem; box-shadow: 0 10px 30px -5px var(--primary-glow); position: relative; z-index: 1 }
.service-card .icon svg { width: 27px; height: 27px }
.service-card h3 { margin-bottom: .5rem; position: relative; z-index: 1 }
.service-card p { color: var(--text-dim); margin-bottom: 1.25rem; font-size: .94rem; position: relative; z-index: 1; line-height: 1.65; flex: 1 }
.service-card .more { display: inline-flex; align-items: center; gap: .4rem; color: var(--primary-2); font-weight: 600; font-size: .88rem; position: relative; z-index: 1; transition: gap .25s var(--ease); margin-top: auto }
.service-card .more svg { transition: transform .25s var(--ease) }
.service-card:hover .more svg { transform: translateX(5px) }

/* Timeline */
.timeline { position: relative; max-width: 900px; margin: 0 auto; padding-left: 2.5rem; counter-reset: step }
.timeline::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: linear-gradient(180deg, transparent, var(--primary), transparent) }
.timeline-item {
  position: relative;
  padding-bottom: 3rem;
  padding-left: 1rem;  /* ← isto empurra o texto para a direita */
}
.timeline-item:last-child { padding-bottom: 0 }
.timeline-item::before { content: counter(step); counter-increment: step; position: absolute; left: -2.75rem; top: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--grad-primary); color: #04120c; display: grid; place-items: center; font-weight: 800; font-family: 'Plus Jakarta Sans', sans-serif; box-shadow: 0 0 30px var(--primary-glow); font-size: 1rem }
.timeline-item h3 { margin-bottom: .75rem; font-size: 1.25rem }
.timeline-item p { color: var(--text-dim); line-height: 1.8; margin-bottom: .5rem }

/* About */
.sobre-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center }
.sobre-features { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem }
.sobre-feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; transition: border-color .25s var(--ease) }
.sobre-feature:hover { border-color: var(--border-strong) }
.sobre-feature .sf-icon { width: 42px; height: 42px; border-radius: 10px; background: var(--grad-primary); display: grid; place-items: center; color: #04120c; margin-bottom: .75rem }
.sobre-feature .sf-icon svg { width: 20px; height: 20px }
.sobre-feature b { display: block; color: var(--text); margin-bottom: .25rem; font-size: .95rem }
.sobre-feature span { color: var(--text-dim); font-size: .85rem; line-height: 1.5 }
.sobre-visual { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2.5rem; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); min-height: 400px; display: flex; flex-direction: column; justify-content: center; gap: 2rem }
.cert-item { display: flex; gap: 1rem; align-items: flex-start }
.cert-item .ci-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--grad-primary); display: grid; place-items: center; flex-shrink: 0; color: #04120c }
.cert-item .ci-icon svg { width: 24px; height: 24px }
.cert-item b { display: block; color: var(--text); margin-bottom: .2rem }
.cert-item span { color: var(--text-dim); font-size: .88rem; line-height: 1.55 }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: .75rem }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all .3s var(--ease) }
.faq-item[open] { border-color: var(--border-strong); background: var(--surface-2) }
.faq-item summary { padding: 1.25rem 1.5rem; cursor: pointer; font-weight: 600; color: var(--text); display: flex; justify-content: space-between; align-items: center; list-style: none; gap: 1rem; font-size: 1rem }
.faq-item summary::-webkit-details-marker { display: none }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--primary-2); transition: transform .3s var(--ease); font-weight: 300; flex-shrink: 0 }
.faq-item[open] summary::after { transform: rotate(45deg) }
.faq-item .answer { padding: 0 1.5rem 1.25rem; color: var(--text-dim); line-height: 1.75; font-size: .97rem }
.faq-item .answer a { color: var(--primary-2) }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start }
.contact-info h3 { margin-bottom: .75rem }
.contact-info > p { color: var(--text-dim); line-height: 1.7; margin-bottom: 1.5rem }
.contact-info ul { list-style: none; display: flex; flex-direction: column; gap: 1.25rem }
.contact-info li { display: flex; align-items: flex-start; gap: 1rem; color: var(--text-dim) }
.contact-info li svg { width: 22px; height: 22px; color: var(--primary-2); flex-shrink: 0; margin-top: 2px }
.contact-info li b { color: var(--text); display: block; margin-bottom: .15rem }
.form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px) }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 0 }
.field { margin-bottom: 1.25rem }
.field label { display: block; margin-bottom: .45rem; color: var(--text); font-weight: 500; font-size: .9rem }
.field input, .field textarea, .field select { width: 100%; padding: .88rem 1rem; background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; color: var(--text); font-family: inherit; font-size: .95rem; transition: all .25s var(--ease) }
.field input::placeholder, .field textarea::placeholder { color: var(--text-muted) }
.light .field input, .light .field textarea, .light .field select { background: #f4f8f5 }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow) }
.field input[aria-invalid=true], .field textarea[aria-invalid=true], .field select[aria-invalid=true] { border-color: var(--danger) }
.field textarea { resize: vertical; min-height: 120px }
.field-error { color: var(--danger); font-size: .82rem; margin-top: .3rem; display: none }
.field-error.show { display: block }
.field-honey { position: absolute; left: -9999px; opacity: 0; pointer-events: none }
.checkbox { display: flex; gap: .6rem; align-items: flex-start; color: var(--text-dim); font-size: .85rem; line-height: 1.55 }
.checkbox input { width: 18px; height: 18px; accent-color: var(--primary); margin-top: 2px; flex-shrink: 0 }
.alert { padding: 1rem 1.1rem; border-radius: 10px; margin-bottom: 1rem; font-size: .9rem; display: none }
.alert.show { display: block; animation: fadeIn .3s ease }
.alert-success { background: rgba(156, 194, 24, .12); border: 1px solid var(--border-strong); color: var(--primary-2) }
.alert-error { background: rgba(239, 68, 68, .1); border: 1px solid rgba(239, 68, 68, .4); color: #fca5a5 }

/* CTA Banner */
.cta-banner { background: var(--grad-primary); border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 4rem); text-align: center; color: #04120c; position: relative; overflow: hidden; box-shadow: var(--shadow-2) }
.cta-banner::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .4), transparent 50%); pointer-events: none }
.cta-banner h2 { color: #04120c; margin-bottom: .75rem; position: relative }
.cta-banner p { color: #04120ccc; font-size: 1.1rem; max-width: 560px; margin: 0 auto 1.75rem; position: relative }
.cta-banner .btn-primary { background: #04120c; color: var(--primary-2); position: relative; box-shadow: none }
.cta-banner .btn-primary:hover { background: #000; color: var(--accent) }

/* Footer */
.footer { background: var(--bg-2); border-top: 1px solid var(--border); padding: 4rem 0 2rem; margin-top: 4rem }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem }
.footer h4 { font-size: .95rem; margin-bottom: 1.25rem; color: var(--text) }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: .6rem }
.footer ul a { color: var(--text-dim); font-size: .9rem; transition: color .2s var(--ease) }
.footer ul a:hover { color: var(--primary-2) }
.socials { display: flex; gap: .6rem; margin-top: 1rem }
.socials a { width: 40px; height: 40px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); display: grid; place-items: center; color: var(--text-dim); transition: all .25s var(--ease) }
.socials a:hover { background: var(--grad-primary); color: #04120c; border-color: transparent; transform: translateY(-3px) }
.footer-bottom { padding-top: 2rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; color: var(--text-muted); font-size: .85rem }

/* ---------- NOVO MENU MOBILE (Bottom Sheet) - CORRIGIDO ---------- */
/* Botão hamburger (só visível em mobile) */
.menu-toggle {
  display: none;  /* oculto por padrão */
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #04120c;
  border: 0;
  cursor: pointer;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  z-index: 1000;
}

/* Em mobile: fixo no canto inferior direito */
@media (max-width: 960px) {
  .menu-toggle {
    display: flex;
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
  }
}

.menu-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 15px 35px -8px rgba(0, 0, 0, 0.6);
}

/* Esconde o menu desktop em mobile */
@media (max-width: 960px) {
  .nav-links {
    display: none !important;
  }
}

/* Menu mobile (bottom sheet) */
.mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-radius: 28px 28px 0 0;
  padding: 1.5rem 1.5rem 2rem;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  z-index: 1001;
  box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
}

.mobile-nav.open {
  transform: translateY(0);
}

.mobile-nav a {
  display: block;
  padding: 1rem 1.2rem;
  color: var(--text-dim);
  font-weight: 500;
  font-size: 1.05rem;
  border-radius: 16px;
  transition: all 0.2s;
  margin-bottom: 0.25rem;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  background: var(--surface);
  color: var(--text);
  padding-left: 1.5rem;
}

.mobile-nav .close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--surface);
  border: none;
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.mobile-nav .close-btn:hover {
  background: var(--surface-2);
}

/* Ajuste do FAB stack para não conflitar com o botão */
.fab-stack {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  z-index: 90;
}

/* Em mobile, o FAB stack fica acima do menu-toggle? Ajustar */
@media (max-width: 960px) {
  .fab-stack {
    bottom: 6rem;  /* espaço para o menu hamburger */
    right: 1.5rem;
  }
}
.fab {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  color: #fff;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, .5);
  transition: all .3s var(--ease);
  position: relative;
  text-decoration: none;
}
.fab:hover { transform: translateY(-4px) scale(1.08); }
.fab svg { width: 24px; height: 24px; }
.fab-wa { background: #25d366; }
.fab-top { background: var(--grad-primary); color: #04120c; opacity: 0; pointer-events: none; transform: translateY(20px); }
.fab-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* Page hero (subpages) */
.page-hero { padding-top: calc(var(--header-h) + 4rem); padding-bottom: 3rem; text-align: center; position: relative }
.page-hero h1 { margin-bottom: 1rem }
.page-hero p { color: var(--text-dim); max-width: 680px; margin: 0 auto; font-size: 1.1rem; line-height: 1.7 }
.breadcrumbs { display: flex; justify-content: center; gap: .5rem; margin-bottom: 1.5rem; color: var(--text-muted); font-size: .85rem; flex-wrap: wrap }
.breadcrumbs a { color: var(--text-dim) }
.breadcrumbs a:hover { color: var(--primary-2) }
.breadcrumbs [aria-current=page] { color: var(--primary-2); font-weight: 500 }

/* Service detail */
.service-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 1.1rem; margin: 1.5rem 0 }
.feature-list li { display: flex; gap: .75rem; color: var(--text-dim); align-items: flex-start; line-height: 1.65 }
.feature-list svg { width: 22px; height: 22px; color: var(--primary-2); flex-shrink: 0; margin-top: 2px }
.feature-list b { color: var(--text); display: inline }
.service-visual { position: sticky; top: 100px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); min-height: 400px; display: grid; place-items: center; text-align: center }
.service-visual .icon-big { width: 110px; height: 110px; border-radius: 28px; background: var(--grad-primary); display: grid; place-items: center; color: #04120c; margin: 0 auto 1.5rem; box-shadow: 0 0 60px var(--primary-glow) }
@media (prefers-reduced-motion: no-preference) { .service-visual .icon-big { animation: pulse 4s ease-in-out infinite } }
.service-visual .icon-big svg { width: 56px; height: 56px }
.service-visual-stats { margin-top: 2rem; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; text-align: center }

/* Legal pages */
.legal-body { color: var(--text-dim); line-height: 1.85; max-width: 820px; margin: 0 auto }
.legal-body h2 { font-size: 1.25rem; margin: 2.5rem 0 .75rem; color: var(--text); padding-top: 2rem; border-top: 1px solid var(--border) }
.legal-body h2:first-of-type { border-top: none; padding-top: 0; margin-top: 1rem }
.legal-body p { margin-bottom: .75rem }
.legal-body ul { margin: 1rem 0 1rem 1.5rem; display: flex; flex-direction: column; gap: .4rem }
.legal-body a { color: var(--primary-2) }

/* Section head */
.section-head { margin-bottom: 3rem; text-align: center; max-width: 760px; margin-left: auto; margin-right: auto; position: relative; z-index: 2 }
.section-head .eyebrow { display: inline-flex; margin-bottom: 1rem }
.section-head h2 { margin-bottom: .85rem }
.section-head p { color: var(--text-dim); font-size: 1.05rem; line-height: 1.7 }
section .container > .section-head + * { margin-top: 1rem }

/* Cookies */
.cookies { position: fixed; bottom: 1.5rem; left: 1.5rem; right: 7rem; max-width: 540px; background: var(--surface-2); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 1.25rem 1.5rem; z-index: 95; box-shadow: var(--shadow-2); display: none; align-items: center; gap: 1rem; flex-wrap: wrap }
.cookies.show { display: flex; animation: slideUp .4s var(--ease) }
.cookies p { flex: 1; min-width: 240px; color: var(--text-dim); font-size: .85rem; margin: 0; line-height: 1.6 }
.cookies p a { color: var(--primary-2) }
.cookies .actions { display: flex; gap: .5rem }
.cookies button { padding: .55rem 1rem; border-radius: 8px; font-size: .85rem; font-weight: 600; cursor: pointer; font-family: inherit; border: 1px solid var(--border); background: var(--surface); color: var(--text); transition: all .2s }
.cookies button:hover { border-color: var(--primary) }
.cookies button.accept { background: var(--grad-primary); color: #04120c; border: 0 }
.cookies button.accept:hover { opacity: .9 }

/* Animations */
@keyframes float { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-15px) } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 30px var(--primary-glow) } 50% { box-shadow: 0 0 55px rgba(156, 194, 24, .6) } }
@keyframes spin { to { transform: rotate(360deg) } }
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px) } to { opacity: 1; transform: translateY(0) } }

/* ===== ANIMAÇÕES PREMIUM ===== */
/* Fade-up mais suave */
.fade-up, .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.9, 0.4, 1.1), transform 0.8s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

/* Stagger effect para cards */
.services-grid .service-card:nth-child(1) { transition-delay: 0.05s; }
.services-grid .service-card:nth-child(2) { transition-delay: 0.10s; }
.services-grid .service-card:nth-child(3) { transition-delay: 0.15s; }
.services-grid .service-card:nth-child(4) { transition-delay: 0.20s; }
.services-grid .service-card:nth-child(5) { transition-delay: 0.25s; }
.services-grid .service-card:nth-child(6) { transition-delay: 0.30s; }
.services-grid .service-card:nth-child(7) { transition-delay: 0.35s; }

/* Hover nos cards com efeito de escala e brilho */
.service-card {
  transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}
.service-card:hover {
  transform: translateY(-12px) scale(1.01);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border-color: var(--border-strong);
}
.service-card .icon {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover .icon {
  transform: scale(1.05);
  box-shadow: 0 20px 40px -8px var(--primary-glow);
}
.service-card .more svg {
  transition: transform 0.25s ease;
}
.service-card:hover .more svg {
  transform: translateX(6px);
}

/* Animação de entrada para botões */
.btn {
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 35px -8px rgba(156, 194, 24, 0.6);
}

/* Fade-in para elementos ao carregar */
@keyframes gentleFadeIn {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}
.hero, .page-hero, .cta-banner {
  animation: gentleFadeIn 0.9s ease-out;
}

/* Responsive */
@media (max-width: 960px) {
  .menu-toggle { display: flex; }
  .nav-links { display: none; }
  .hero-grid, .sobre-grid, .service-detail, .contact-grid, .calc-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 380px; margin: 2rem auto 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .compare { aspect-ratio: 4/3; }
  .service-visual { position: static; min-height: auto; }
  .cookies { right: 1.5rem; max-width: 100%; }
  .a11y-menu { right: 1.5rem; bottom: 8rem; }
}
@media (max-width: 640px) {
  section { padding: 3.5rem 0; }
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 2rem); }
  .hero-grid { gap: 2.5rem; }
  .hero-trust { gap: 1rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:first-child { padding-bottom: 2rem; border-bottom: 1px solid var(--border); }
  .form-row { grid-template-columns: 1fr; }
  .sobre-features { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto; }
}
@media (forced-colors: active) {
  .btn-primary, .brand-mark, .fab, .timeline-item::before { forced-color-adjust: none; }
  .service-card { border: 1px solid ButtonText; }
}
::selection { background: var(--primary); color: #04120c; }
.faq-item summary:focus-visible { outline-offset: -2px; }
@media (hover: none) { .service-card:hover { transform: none; } }
@media print {
  .header, .footer, .fab-stack, .cookies, .a11y-menu, #particles { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  a { color: #000; text-decoration: underline; }
  .container { max-width: 100%; }
}
/* ===== FORÇAR MENU MOBILE CORRETO ===== */
@media (max-width: 960px) {
  .menu-toggle {
    display: flex !important;
    position: fixed !important;
    bottom: 1.5rem !important;
    right: 1.5rem !important;
    z-index: 1000 !important;
    width: 56px !important;
    height: 56px !important;
    background: var(--grad-primary) !important;
    border-radius: 50% !important;
    box-shadow: 0 10px 30px -5px rgba(0,0,0,0.5) !important;
  }
  .fab-stack {
    bottom: 6rem !important;
    right: 1.5rem !important;
  }
}
/* ===== FORÇAR MENU MOBILE (CORRECÇÃO FINAL) ===== */
@media (max-width: 960px) {
  button.menu-toggle,
  .menu-toggle {
    display: flex !important;
    position: fixed !important;
    bottom: 1.5rem !important;
    right: 1.5rem !important;
    z-index: 10000 !important;
    width: 56px !important;
    height: 56px !important;
    background: var(--grad-primary) !important;
    border-radius: 50% !important;
    box-shadow: 0 10px 30px -5px rgba(0,0,0,0.5) !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    cursor: pointer !important;
  }
  
  /* Ajustar FAB stack para não sobrepor */
  .fab-stack {
    bottom: 6rem !important;
    right: 1.5rem !important;
  }
}
/* ===== PORTFOLIO / GALERIA ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.gallery-item .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
  color: #fff;
  padding: 1.5rem;
  transform: translateY(100%);
  transition: transform 0.4s var(--ease);
  text-align: left;
}

.gallery-item .overlay h4 {
  color: #fff;
  margin-bottom: 0.25rem;
  font-size: 1.2rem;
}

.gallery-item .overlay span {
  font-size: 0.85rem;
  opacity: 0.9;
}

.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-2);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item:hover .overlay {
  transform: translateY(0);
}

/* Responsivo */
@media (max-width: 768px) {
  .gallery {
    gap: 1rem;
  }
  .gallery-item .overlay {
    padding: 1rem;
  }
  .gallery-item .overlay h4 {
    font-size: 1rem;
  }
}
/* Estatísticas - estilo da v4 */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-num {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: 'Plus Jakarta Sans', sans-serif;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Responsivo para mobile */
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}
/* ===== ESTATÍSTICAS - SEM BARRAS, BEM ALINHADO ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.stats-grid > div {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 0.5rem;
}

.stat-num {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: 'Plus Jakarta Sans', sans-serif;
  line-height: 1.2;
  margin-bottom: 0.25rem;
  /* Nada de overflow ou nowrap forçado */
  white-space: normal;
  word-break: keep-all;
}

.stat-label {
  color: var(--text-dim);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.3;
}

/* Telemóvel: 2 colunas */
@media (max-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .stat-num {
    font-size: 1.4rem;
  }
  .stat-label {
    font-size: 0.7rem;
  }
}
/* Botão de menu flutuante (mobile) */
.fab-menu {
  background: var(--grad-primary);
  color: #04120c;
}
@media (min-width: 961px) {
  .fab-menu {
    display: none;
  }
}
@media (max-width: 960px) {
  .fab-menu {
    display: flex;
  }
}
