/* EHM Consultoria — versão HTML/CSS/PHP
   Verde primário #01A550 · Azul-marinho #1F396F */

:root {
  --green: #01a550;
  --green-dark: #018a43;
  --navy: #1f396f;
  --navy-90: rgba(31, 57, 111, 0.9);
  --navy-70: rgba(31, 57, 111, 0.7);
  --bg: #ffffff;
  --surface: #f6f7fa;
  --fg: #16203a;
  --muted: #5c6883;
  --border: #e3e7ee;
  --danger: #d64545;
  --amber: #b45309;
  --radius: 8px;
  --max: 1280px;
}

* { box-sizing: border-box; border-color: var(--border); }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .display {
  font-family: "Sora", ui-sans-serif, system-ui, sans-serif;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0;
}
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
svg { flex: none; }

/* Layout */
.container { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 24px; } }
.section { padding: 80px 0; }
@media (min-width: 768px) { .section { padding: 112px 0; } }
.section--surface { background: var(--surface); }
.section--navy { background: var(--navy); color: #fff; }
.narrow { max-width: 680px; }
.narrow-lg { max-width: 800px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--green);
}
.eyebrow::before { content: ""; display: block; width: 24px; height: 1px; background: var(--green); }

.h1 { font-size: 34px; font-weight: 700; }
.h2 { font-size: 28px; font-weight: 700; color: var(--navy); }
.h3 { font-size: 18px; font-weight: 600; color: var(--navy); }
@media (min-width: 768px) {
  .h1 { font-size: 48px; }
  .h2 { font-size: 36px; }
}
.section--navy .h1, .section--navy .h2, .section--navy .h3 { color: #fff; }
.lead { margin-top: 24px; font-size: 18px; color: var(--muted); }
.section--navy .lead { color: rgba(255, 255, 255, 0.8); }
.muted { color: var(--muted); }
.mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; } .mt-10 { margin-top: 40px; }
.mt-12 { margin-top: 48px; }
.small { font-size: 14px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; border: 1px solid transparent;
  cursor: pointer; transition: transform .18s ease, background-color .18s ease;
}
.btn--primary { background: var(--green); color: #fff; box-shadow: 0 10px 22px -12px rgba(1, 165, 80, .8); }
.btn--primary:hover { background: var(--green-dark); transform: translateY(-2px); }
.btn--ghost { border-color: rgba(255, 255, 255, .3); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); }
.btn--outline { border-color: var(--border); color: var(--navy); }
.btn--outline:hover { border-color: var(--green); color: var(--green); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 64px; }
.header__logo img { height: 48px; width: auto; }
.nav { display: none; align-items: center; gap: 28px; }
.nav a { font-size: 14px; font-weight: 500; color: rgba(22, 32, 58, .75); transition: color .15s; }
.nav a:hover, .nav a.is-active { color: var(--green); }
.header__actions { display: flex; align-items: center; gap: 8px; }
.header__cta { display: none; }
.menu-btn {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: var(--radius); background: transparent; cursor: pointer;
}
.mobile-nav { display: none; border-top: 1px solid var(--border); }
.mobile-nav.is-open { display: block; }
.mobile-nav ul { display: flex; flex-direction: column; gap: 4px; padding: 16px 0; }
.mobile-nav a { display: block; padding: 10px 12px; border-radius: var(--radius); font-size: 14px; font-weight: 500; }
.mobile-nav a:hover, .mobile-nav a.is-active { background: var(--surface); color: var(--green); }
@media (min-width: 768px) {
  .nav { display: flex; }
  .header__cta { display: inline-flex; }
  .menu-btn, .mobile-nav { display: none !important; }
}

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img.hero__photo { height: 100%; width: 100%; object-fit: cover; opacity: .3; }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, var(--navy) 0%, rgba(31, 57, 111, .85) 45%, rgba(31, 57, 111, .3) 100%);
}
.hero__isotipo {
  display: none; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  height: 110%; width: auto; opacity: .4; pointer-events: none;
}
@media (min-width: 768px) { .hero__isotipo { display: block; } }
@media (min-width: 1024px) { .hero__isotipo { right: 64px; } }
.hero__inner { position: relative; padding: 96px 0; max-width: 620px; }
@media (min-width: 768px) { .hero__inner { padding: 128px 0; } }
.hero__title { margin-top: 16px; font-size: 38px; font-weight: 700; color: #fff; }
@media (min-width: 768px) { .hero__title { font-size: 60px; } }
.hero__title span { color: var(--green); }
.hero__text { margin-top: 24px; font-size: 18px; color: rgba(255, 255, 255, .8); }

/* Page hero (internal pages) */
.pagehero { position: relative; overflow: hidden; background: var(--navy); color: #fff; padding: 80px 0; }
@media (min-width: 768px) { .pagehero { padding: 112px 0; } }
.pagehero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.pagehero__overlay { position: absolute; inset: 0; background: linear-gradient(to right, var(--navy), rgba(31,57,111,.9) 55%, rgba(31,57,111,.6)); }
.pagehero .container { position: relative; }

/* Trust strip */
.trust { border-bottom: 1px solid var(--border); background: var(--surface); }
.trust__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; padding-top: 32px; padding-bottom: 32px; }
@media (min-width: 768px) { .trust__grid { grid-template-columns: repeat(4, 1fr); } }
.trust__k { font-family: "Sora", sans-serif; font-size: 22px; font-weight: 700; color: var(--navy); }

/* Grids & cards */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}
.card {
  border: 1px solid var(--border); background: #fff; border-radius: 12px; padding: 28px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(1, 165, 80, .4); box-shadow: 0 18px 40px -28px rgba(22, 32, 58, .6); }
.card--flat:hover { transform: none; box-shadow: none; }
.icon-box {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(1, 165, 80, .1); color: var(--green);
}
.icon-box--solid { background: var(--green); color: #fff; }
.icon-box--sm { width: 32px; height: 32px; border-radius: 8px; }

/* Split sections */
.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.split--portrait { grid-template-columns: 1fr; }
@media (min-width: 900px) { .split--portrait { grid-template-columns: minmax(0, 360px) 1fr; } }
.split__img { display: block; width: 100%; height: auto; border-radius: 16px; object-fit: cover; box-shadow: 0 28px 60px -34px rgba(22, 32, 58, .8); }
.ratio-45 { aspect-ratio: 4 / 5; max-width: 360px; object-position: center top; }
.ratio-43 { aspect-ratio: 4 / 3; }
.order-1 { order: 1; } .order-2 { order: 2; }
@media (max-width: 899px) { .order-1, .order-2 { order: 0; } }

.checklist { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; }
.checklist li { display: flex; gap: 16px; }
.checklist strong { display: block; color: var(--navy); font-weight: 600; }

/* Service cards */
.service-card { overflow: hidden; border: 1px solid var(--border); background: #fff; border-radius: 16px; box-shadow: 0 1px 2px rgba(16,24,40,.05); }
.service-card__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; }
.service-card__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(31,57,111,.7), rgba(31,57,111,.08) 55%, transparent);
}
.service-card__label { position: absolute; left: 16px; bottom: 16px; z-index: 1; display: flex; align-items: center; gap: 12px; }
.service-card__label h3 { font-size: 24px; font-weight: 700; color: #fff; }
.service-card__body { padding: 28px; }
.group-title { font-size: 14px; font-weight: 600; color: var(--navy); }
.group-title--upper { text-transform: uppercase; letter-spacing: .08em; color: var(--green); }
.ticks { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.ticks li { display: flex; gap: 8px; font-size: 14px; color: rgba(22,32,58,.85); }
.ticks svg { color: var(--green); margin-top: 3px; }

/* Benefit tiles */
.tile { background: var(--navy); color: #fff; border-radius: 12px; padding: 24px; }
.tile svg { color: var(--green); }
.tile p.t { margin-top: 20px; font-size: 18px; font-weight: 600; }
.tile p.d { margin-top: 8px; font-size: 14px; color: rgba(255,255,255,.7); }

/* Segment rows */
.seg-row { display: flex; align-items: center; gap: 16px; border: 1px solid var(--border); background: #fff; border-radius: 12px; padding: 20px; transition: border-color .2s; }
.seg-row:hover { border-color: rgba(1,165,80,.4); }
.seg-row p { font-weight: 500; color: var(--navy); }

/* Why now */
.panel { border-radius: 16px; padding: 32px; border: 1px solid var(--border); }
.panel--bad { border-color: rgba(214,69,69,.25); background: rgba(214,69,69,.05); }
.panel--good { border-color: rgba(1,165,80,.25); background: rgba(1,165,80,.05); }
.panel__title { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.panel--bad .panel__title { color: var(--danger); }
.panel--good .panel__title { color: var(--green); }
.panel ul { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.panel li { display: flex; gap: 12px; font-size: 14px; }
.panel--bad svg { color: var(--danger); margin-top: 3px; }
.panel--good svg { color: var(--green); margin-top: 3px; }
.notice { margin-top: 32px; display: flex; gap: 16px; border-radius: 12px; border: 1px solid rgba(245,158,11,.3); background: rgba(245,158,11,.1); padding: 24px; font-size: 14px; }
.notice svg { color: var(--amber); }

/* Gallery mosaic */
.mosaic { margin-top: 48px; display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; gap: 16px; }
@media (min-width: 640px) { .mosaic { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; } }
.mosaic figure { position: relative; overflow: hidden; border-radius: 12px; border: 1px solid var(--border); margin: 0; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.mosaic figure:hover img { transform: scale(1.05); }
.mosaic figcaption {
  position: absolute; inset-inline: 0; bottom: 0; padding: 16px;
  font-size: 13px; font-weight: 500; color: #fff;
  background: linear-gradient(to top, rgba(31,57,111,.92), transparent);
}
@media (min-width: 640px) { .mosaic .big { grid-column: span 2; grid-row: span 2; } }

/* CTA */
.cta { position: relative; overflow: hidden; background: var(--navy); color: #fff; }
.cta__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .25; }
.cta__overlay { position: absolute; inset: 0; background: linear-gradient(to right, var(--navy), rgba(31,57,111,.95) 50%, rgba(31,57,111,.6)); }
.cta .container { position: relative; padding-top: 96px; padding-bottom: 96px; }
.cta__quote { margin-top: 24px; font-size: 18px; font-style: italic; color: rgba(255,255,255,.8); }

.strip-cta { border-top: 1px solid var(--border); background: var(--navy); color: #fff; padding: 64px 0; }
.strip-cta__inner { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; justify-content: space-between; }
@media (min-width: 768px) { .strip-cta__inner { flex-direction: row; align-items: center; } }

/* Contact */
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.2fr; } }
.contact-card { display: flex; gap: 16px; align-items: flex-start; border: 1px solid var(--border); background: #fff; border-radius: 12px; padding: 20px; transition: border-color .2s, background-color .2s; }
.contact-card:hover { border-color: rgba(1,165,80,.4); }
.contact-card--accent { border-color: rgba(1,165,80,.3); background: rgba(1,165,80,.05); }
.contact-card--accent:hover { background: rgba(1,165,80,.1); }
.contact-card .lbl { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.contact-card .val { margin-top: 4px; font-weight: 600; color: var(--navy); }
.aside-stack { display: flex; flex-direction: column; gap: 20px; }

.form { border: 1px solid var(--border); background: #fff; border-radius: 16px; padding: 24px; box-shadow: 0 1px 2px rgba(16,24,40,.05); }
@media (min-width: 768px) { .form { padding: 32px; } }
.form__grid { display: grid; gap: 16px; margin-top: 24px; }
@media (min-width: 640px) { .form__grid { grid-template-columns: repeat(2, 1fr); } }
.field { display: block; }
.field > span { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 600; color: var(--navy); }
.field input, .field textarea {
  width: 100%; border: 1px solid var(--border); border-radius: var(--radius);
  background: #fff; padding: 10px 14px; font: inherit; font-size: 14px; color: var(--fg);
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(1,165,80,.18); }
.form-alert { margin-top: 20px; border-radius: var(--radius); padding: 14px 16px; font-size: 14px; }
.form-alert--ok { background: rgba(1,165,80,.1); border: 1px solid rgba(1,165,80,.3); color: #0a6b39; }
.form-alert--err { background: rgba(214,69,69,.08); border: 1px solid rgba(214,69,69,.3); color: #a13333; }

/* Footer */
.footer { border-top: 1px solid var(--border); background: var(--navy); color: #fff; }
.footer__grid { display: grid; gap: 40px; padding-top: 56px; padding-bottom: 56px; }
@media (min-width: 768px) { .footer__grid { grid-template-columns: repeat(4, 1fr); } }
.footer__brand { grid-column: span 1; }
@media (min-width: 768px) { .footer__brand { grid-column: span 2; } }
.footer__logo { display: inline-flex; background: #fff; border-radius: 8px; padding: 12px; }
.footer__logo img { height: 36px; width: auto; }
.footer p.about { margin-top: 16px; max-width: 420px; font-size: 14px; color: rgba(255,255,255,.7); }
.footer h3 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.6); }
.footer ul { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer li { display: flex; gap: 8px; align-items: flex-start; }
.footer svg { color: var(--green); margin-top: 3px; }
.footer a:hover { color: var(--green); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer__bottom .container { display: flex; flex-direction: column; gap: 8px; align-items: center; justify-content: space-between; padding-top: 20px; padding-bottom: 20px; font-size: 12px; color: rgba(255,255,255,.6); }
@media (min-width: 768px) { .footer__bottom .container { flex-direction: row; } }

/* WhatsApp floating */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 50;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--green); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 28px -10px rgba(1,165,80,.8);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.06); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); 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; } }
