/* ===== Meseg Engenharia – estilos ===== */
:root {
  --navy: #1d3557;      /* azul da marca */
  --navy-dark: #0f2140;
  --blue: #457b9d;      /* azul secundário da marca */
  --teal: #2a9d8f;
  --accent: #f7a823;    /* laranja-segurança para chamadas de ação */
  --accent-dark: #e08e00;
  --text: #1d1e20;
  --muted: #5a6473;
  --light: #f3f6f9;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 33, 64, .10);
  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--font-body); color: var(--text); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .6em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; color: var(--navy); }
h3 { font-size: 1.15rem; font-weight: 700; color: var(--navy); }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 860px; }
.center { text-align: center; margin-top: 40px; }

.eyebrow { font-family: var(--font-head); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: .8em; }
.eyebrow--dark { color: var(--teal); }

/* ===== Botões ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-head); font-weight: 700; font-size: .95rem; text-decoration: none; padding: 13px 24px; border-radius: 999px; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; text-align: center; }
.btn:hover { transform: translateY(-2px); }
.btn--accent { background: var(--accent); color: var(--navy-dark); box-shadow: 0 6px 18px rgba(247, 168, 35, .35); }
.btn--accent:hover { background: var(--accent-dark); }
.btn--primary { background: var(--navy); color: var(--white); }
.btn--primary:hover { background: var(--navy-dark); }
.btn--ghost { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--sm { padding: 9px 18px; font-size: .85rem; }
.btn--lg { padding: 16px 30px; font-size: 1rem; }
.btn--block { width: 100%; }

/* ===== Topbar e cabeçalho ===== */
.topbar { background: var(--navy-dark); color: #c9d6e6; font-size: .8rem; }
.topbar__inner { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.topbar__links { display: flex; gap: 20px; }
.topbar a { text-decoration: none; }
.topbar a:hover { color: var(--white); }

.header { position: sticky; top: 0; z-index: 50; background: var(--white); box-shadow: 0 2px 14px rgba(15,33,64,.08); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo img { width: 56px; height: 56px; border-radius: 50%; }
.logo__text { font-family: var(--font-head); font-weight: 900; font-size: 1.35rem; color: var(--navy); line-height: 1; }
.logo__text small { display: block; font-weight: 600; font-size: .65rem; color: var(--muted); letter-spacing: .04em; margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--navy); text-decoration: none; }
.nav a:not(.btn):hover { color: var(--teal); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 3px; margin: 5px 0; background: var(--navy); border-radius: 2px; transition: .2s; }

/* ===== Hero ===== */
.hero {
  position: relative; color: var(--white);
  background:
    linear-gradient(100deg, rgba(15,33,64,.96) 0%, rgba(15,33,64,.85) 45%, rgba(15,33,64,.55) 100%),
    url("../img/hero.jpg") center/cover no-repeat;
  padding: 72px 0 96px;
}
.hero__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; }
.hero h1 span { display: block; color: var(--accent); }
.hero__lead { font-size: 1.15rem; color: #dbe5f1; max-width: 600px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 26px; }
.hero__checks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .92rem; color: #dbe5f1; }
.hero__checks li::before { content: "✓"; color: var(--accent); font-weight: 800; margin-right: 8px; }
.hero__stats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hero__stats li { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(6px); border-radius: var(--radius); padding: 22px 20px; }
.hero__stats strong { display: block; font-family: var(--font-head); font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 900; line-height: 1; color: var(--white); }
.hero__stats span { display: block; margin-top: 8px; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: #c9d6e6; font-weight: 600; }

/* ===== Seções ===== */
.section { padding: 88px 0; }
.section--light { background: var(--light); }
.section--dark { background: var(--navy); color: #dbe5f1; }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section__head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.section__head p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; }
.section__head--light p:not(.eyebrow) { color: #c9d6e6; }

/* Riscos */
.risks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.risk { background: var(--white); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); border-top: 4px solid #e4572e; }
.risk p { color: var(--muted); font-size: .95rem; margin: 0; }
.risk__icon { width: 46px; height: 46px; border-radius: 12px; background: #fdebe5; display: grid; place-items: center; margin-bottom: 16px; }
.risk__icon svg { width: 24px; height: 24px; fill: #e4572e; }

/* Cards de soluções */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid #e3e9f0; border-radius: var(--radius); padding: 28px 24px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card p { color: var(--muted); font-size: .95rem; flex: 1; }
.card__link { font-family: var(--font-head); font-weight: 700; font-size: .9rem; color: var(--teal); text-decoration: none; }
.card__link:hover { color: var(--navy); }
.card--featured { background: var(--navy); border-color: var(--navy); }
.card--featured h3 { color: var(--white); }
.card--featured p { color: #c9d6e6; }
.card--featured .card__link { color: var(--accent); }
.card__tag { position: absolute; top: -12px; left: 24px; background: var(--accent); color: var(--navy-dark); font-family: var(--font-head); font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: 4px 10px; border-radius: 999px; }

/* Passos */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: none; }
.step { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 28px 24px; }
.step p { margin: 0; font-size: .95rem; }
.step__num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--navy-dark); font-family: var(--font-head); font-weight: 900; font-size: 1.2rem; margin-bottom: 18px; }

/* Diferenciais */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.split__media { position: relative; }
.split__media img { border-radius: 20px; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; box-shadow: var(--shadow); }
.badge-years { position: absolute; right: -16px; bottom: 28px; display: flex; align-items: center; gap: 12px; background: var(--accent); color: var(--navy-dark); padding: 16px 22px; border-radius: var(--radius); box-shadow: var(--shadow); font-weight: 600; font-size: .85rem; line-height: 1.3; }
.badge-years strong { font-family: var(--font-head); font-size: 2.6rem; font-weight: 900; line-height: 1; }
.split__content > p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; }
.features { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 14px; }
.features li { position: relative; padding-left: 34px; color: var(--muted); }
.features li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--teal); color: var(--white); font-size: .75rem; font-weight: 800; display: grid; place-items: center; }
.features strong { color: var(--navy); }

/* Logos e Google */
.logos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.logos img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: var(--white); border-radius: 12px; padding: 10px; filter: grayscale(1); opacity: .8; transition: .2s; }
.logos img:hover { filter: none; opacity: 1; }
.google { margin: 40px auto 0; max-width: 560px; text-align: center; background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.google__stars { color: #fbbc04; font-size: 1.8rem; letter-spacing: 4px; }
.google p { color: var(--muted); }

/* Planos */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; border: 1px solid #e3e9f0; border-radius: 20px; padding: 36px 30px; background: var(--white); }
.plan h3 { font-size: 1.4rem; }
.plan__for { color: var(--muted); font-size: .95rem; }
.plan ul { list-style: none; padding: 0; margin: 10px 0 28px; display: grid; gap: 10px; flex: 1; }
.plan li { padding-left: 26px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 800; }
.plan--featured { border: 2px solid var(--accent); box-shadow: var(--shadow); transform: scale(1.03); }
.plan__badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--accent); color: var(--navy-dark); font-family: var(--font-head); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: 5px 14px; border-radius: 999px; }

/* Ebook */
.ebook { background: linear-gradient(110deg, var(--teal), var(--blue)); color: var(--white); padding: 56px 0; }
.ebook__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.ebook h2 { color: var(--white); font-size: clamp(1.4rem, 2.8vw, 2rem); }
.ebook p:not(.eyebrow) { margin: 0; color: #eaf4f6; max-width: 620px; }
.ebook .eyebrow { color: #ffe2a8; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--white); border-radius: 12px; box-shadow: 0 2px 10px rgba(15,33,64,.06); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; font-family: var(--font-head); font-weight: 700; color: var(--navy); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--teal); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 24px 20px; margin: 0; color: var(--muted); }

/* Contato */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact__list { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 10px; }
.contact__list li::before { content: "✓"; color: var(--accent); font-weight: 800; margin-right: 10px; }
.contact__direct { display: grid; gap: 8px; }
.contact__direct a { color: var(--white); text-decoration: none; font-weight: 600; word-break: break-word; }
.form { background: var(--white); color: var(--text); border-radius: 20px; padding: 32px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.form h3 { font-size: 1.35rem; margin-bottom: 18px; }
.form label { display: block; font-size: .85rem; font-weight: 600; color: var(--navy); margin-bottom: 14px; }
.form input, .form select, .form textarea { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid #cdd7e3; border-radius: 10px; font: inherit; font-weight: 400; color: var(--text); background: #fbfcfd; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(42,157,143,.2); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form__error { color: #c2410c; font-size: .9rem; font-weight: 600; }
.form__note { font-size: .78rem; color: var(--muted); text-align: center; margin: 12px 0 0; }

/* Rodapé */
.footer { background: var(--navy-dark); color: #aebdd0; padding: 64px 0 0; font-size: .92rem; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 40px; }
.footer a { display: block; text-decoration: none; margin-bottom: 8px; word-break: break-word; }
.footer a:hover { color: var(--white); }
.footer__brand { font-family: var(--font-head); font-weight: 900; font-size: 1.4rem; color: var(--white); }
.footer__title { font-family: var(--font-head); font-weight: 700; color: var(--white); text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }
.social { display: flex; gap: 16px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 20px; padding-bottom: 20px; font-size: .8rem; }
.footer__bottom p { margin: 0; }

/* WhatsApp flutuante */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.25); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; fill: var(--white); }

/* Animação de entrada */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ===== Responsivo ===== */
@media (max-width: 1080px) {
  .cards, .risks, .steps { grid-template-columns: repeat(2, 1fr); }
  .logos { grid-template-columns: repeat(4, 1fr); }
  .nav { gap: 18px; }
}
@media (max-width: 900px) {
  .topbar__inner > span { display: none; }
  .topbar__inner { justify-content: center; }
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--white); padding: 8px 20px 20px; box-shadow: 0 12px 24px rgba(15,33,64,.12); display: none; }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid #edf1f5; }
  .nav .btn { margin-top: 16px; }
  .hero { padding: 64px 0 72px; }
  .hero__grid, .split, .contact { grid-template-columns: 1fr; gap: 40px; }
  .split__media { max-width: 480px; margin: 0 auto; }
  .badge-years { right: 12px; }
  .plans { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .plan--featured { transform: none; }
  .ebook__inner { flex-direction: column; align-items: flex-start; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .section { padding: 64px 0; }
  .cards, .risks, .steps { grid-template-columns: 1fr; }
  .logos { grid-template-columns: repeat(3, 1fr); }
  .topbar__links a[href^="mailto"] { display: none; }
  .logo__text small { display: none; }
  .hero__ctas .btn { width: 100%; }
  .form { padding: 24px 18px; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
}

/* ===== Depoimentos e preços (home-ajustes) ===== */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 0 0 48px; }
.testimonial { margin: 0; display: flex; flex-direction: column; gap: 12px; background: var(--white); border: 1px solid #e3e9f0; border-radius: 20px; padding: 28px; box-shadow: var(--shadow); }
.testimonial__stars { color: var(--accent); letter-spacing: 2px; }
.testimonial p { margin: 0; flex: 1; font-size: 1.02rem; line-height: 1.6; color: var(--text); }
.testimonial cite { font-style: normal; font-family: var(--font-head); font-weight: 700; font-size: .88rem; color: var(--navy); }
.plan__price { margin: 6px 0 2px; font-family: var(--font-head); font-weight: 900; font-size: 2rem; line-height: 1.1; color: var(--navy); }
.plan__price small { font-size: .85rem; font-weight: 600; color: var(--muted); }
.plan__price--text { font-size: 1.4rem; }
.plan__note { margin: 0 0 6px; font-size: .88rem; color: var(--muted); }
.plans__note { margin: 28px auto 0; max-width: 640px; text-align: center; font-size: .9rem; color: var(--muted); }
@media (max-width: 900px) { .testimonials { grid-template-columns: 1fr; } }

/* ===== Hero mais compacto (correção da revisão visual: botões visíveis sem rolar no desktop) ===== */
.hero { padding-top: 40px; padding-bottom: 56px; }
.hero h1 { font-size: clamp(1.8rem, 2.7vw, 2.4rem); }
.hero__lead { margin-bottom: 22px; }

/* ===== Formulário com LGPD, aviso de cookies e política (etapa1-leads) ===== */
.form { position: relative; }
.form label.form__consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--text); font-size: .85rem; line-height: 1.45; }
.form label.form__consent input { width: auto; flex: none; margin: 3px 0 0; }
.form__consent a { color: var(--teal); }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__success { margin: 0 0 12px; padding: 12px 14px; border-radius: 10px; background: #e8f6f3; color: #1d5c54; font-size: .9rem; font-weight: 600; }
.form__success a { color: inherit; }
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 88px; z-index: 60; max-width: 560px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding: 18px 20px; border-radius: 16px; background: var(--white); color: var(--text); box-shadow: var(--shadow); font-size: .9rem; }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; flex: 1 1 260px; }
.cookie-banner a { color: var(--teal); }
.cookie-banner__acoes { display: flex; gap: 8px; }
.legal h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--navy); }
.legal h2 { font-size: 1.2rem; color: var(--navy); margin-top: 1.8em; }
.legal a:not(.btn) { color: var(--teal); }
.legal p, .legal li { overflow-wrap: anywhere; }
