/* ============================================================
   MINALKUS ENGENHARIA — style guide
   Verde da marca: #17994D | fundo branco/cinza #F4F6F4
   ============================================================ */

:root {
  --brand: #17994D;
  --brand-dark: #0E743A;
  --brand-deep: #0B4E29;
  --brand-light: #EAF6EF;
  --brand-soft: #D5EFDD;
  --ink: #0A0F0C;
  --mist: #F4F6F4;
  --line: #E1E6E2;
  --slate: #5A645E;
  --white: #ffffff;
  --radius: 16px;
  --shadow-card: 0 1px 2px rgba(10, 15, 12, 0.04), 0 8px 24px -12px rgba(10, 15, 12, 0.12);
  --shadow-lift: 0 1px 2px rgba(10, 15, 12, 0.05), 0 20px 40px -18px rgba(10, 15, 12, 0.25);
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, "Roboto Mono", monospace;
  --header-h: 88px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); font-size: 17.5px; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

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

/* ---------- Utilidades de marca ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--brand); font-weight: 600;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--brand); }
.eye-dark { color: var(--brand-soft); }
.eye-dark::before { background: var(--brand-soft); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 0.95rem; line-height: 1;
  padding: 14px 24px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--brand-dark); }

.btn-light { background: #fff; color: var(--brand-dark); }
.btn-light:hover { background: var(--brand-light); }

.btn-block { width: 100%; }

.section { padding: 84px 0; }
.section-white { background: var(--white); }
.section-mist { background: var(--mist); }
.section-dark { background: var(--ink); color: #fff; }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); margin-top: 14px; }
.section-head .section-sub { margin-top: 16px; font-size: 1.1rem; color: var(--slate); }

/* Brand letter — marca registrada */
.accent { color: var(--brand); }

/* ---------- Técnico: cantoneiras ---------- */
.tech-frame { position: relative; }
.tech-frame::before,
.tech-frame::after {
  content: ""; position: absolute; width: 20px; height: 20px;
  border: 2px solid rgba(23, 153, 77, 0.85); z-index: 2; pointer-events: none;
}
.tech-frame::before { top: -8px; left: -8px; border-right: 0; border-bottom: 0; }
.tech-frame::after { bottom: -8px; right: -8px; border-left: 0; border-top: 0; }

/* ---------- HEADER ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: inline-flex; }
.brand-logo { height: 72px; width: auto; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav > a:not(.nav-cta) { font-size: 0.95rem; font-weight: 500; color: var(--ink); transition: color 0.2s; }
.nav > a:not(.nav-cta):hover { color: var(--brand); }
.nav-cta { padding: 11px 20px; font-size: 0.9rem; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform 0.25s, opacity 0.25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero { padding: 72px 0 64px; background: var(--white); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); letter-spacing: -0.03em; margin-top: 20px; max-width: 17ch; }
.hero-sub { margin-top: 20px; font-size: 1.13rem; color: var(--slate); max-width: 52ch; }

.stats { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stats li { border-left: 2px solid var(--line); padding-left: 14px; }
.stats strong { display: block; font-size: 1.5rem; color: var(--brand); letter-spacing: -0.02em; }
.stats span { font-size: 0.78rem; color: var(--slate); line-height: 1.3; display: block; margin-top: 2px; }

.hero-ctas { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }

.hero-media { position: relative; }
.hero-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lift); }
.hero-photo img { width: 100%; height: 460px; object-fit: cover; }
.hero-badge {
  position: absolute; right: -12px; bottom: 20px;
  background: var(--brand); color: #fff;
  padding: 14px 18px; border-radius: 12px; box-shadow: var(--shadow-lift);
}
.hero-badge strong { display: block; font-size: 0.95rem; }
.hero-badge span { font-size: 0.75rem; opacity: 0.9; }

/* ---------- TICKER ---------- */
.ticker { background: var(--mist); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.ticker-track { display: flex; width: max-content; padding: 14px 0; animation: ticker 32s linear infinite; }
.ticker-track span {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--slate); white-space: nowrap;
  padding-right: 8px;
}
.ticker-track span::before { content: "✦"; color: var(--brand); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ---------- SERVIÇOS ---------- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }

.service-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: rgba(23, 153, 77, 0.4); }
.service-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.service-card:hover .service-media img { transform: scale(1.05); }
.service-tag {
  position: absolute; top: 12px; left: 12px;
  background: var(--brand); color: #fff;
  font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 6px;
}
.service-body { display: flex; flex-direction: column; flex: 1; padding: 20px; }
.service-body h3 { font-size: 1.12rem; letter-spacing: -0.01em; }
.service-body p { margin-top: 10px; font-size: 0.95rem; color: var(--slate); flex: 1; }
.service-link {
  margin-top: 18px; font-weight: 600; color: var(--brand); font-size: 0.95rem; display: inline-flex; align-items: center; gap: 6px;
  width: fit-content;
}
.service-link:hover { color: var(--brand-dark); }

/* ---------- DIFERENCIAIS ---------- */
.diferenciais-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.diferenciais-intro h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); margin-top: 14px; max-width: 14ch; }
.diferenciais-intro .section-sub { margin-top: 16px; color: var(--slate); }

.art-card { margin-top: 28px; background: #fff; border: 1px solid rgba(23, 153, 77, 0.35); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-card); }
.art-kicker { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--slate); }
.art-card p { margin-top: 10px; font-size: 1.05rem; font-weight: 600; line-height: 1.45; }
.art-card p strong { color: var(--brand); }

.diferenciais-list { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 40px; padding-top: 6px; }
.diferencial { border-top: 2px solid var(--line); padding-top: 16px; }
.diferencial-num { font-family: var(--font-mono); font-size: 0.85rem; font-weight: 600; color: var(--brand); }
.diferencial h3 { font-size: 1.15rem; margin-top: 8px; }
.diferencial p { margin-top: 8px; color: var(--slate); font-size: 0.95rem; }

/* ---------- PROCESSO ---------- */
.processo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 40px; }
.processo-step { position: relative; }
.processo-num { font-family: var(--font-mono); font-size: 2.6rem; font-weight: 600; color: rgba(23, 153, 77, 0.3); display: block; line-height: 1; }
.processo-step h3 { font-size: 1.15rem; margin-top: 12px; }
.processo-step p { margin-top: 8px; color: var(--slate); font-size: 0.95rem; max-width: 36ch; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
.faq-intro h2 { font-size: clamp(1.9rem, 3.5vw, 2.4rem); margin-top: 14px; }
.faq-intro .section-sub { margin-top: 16px; color: var(--slate); }
.faq-intro .btn { margin-top: 24px; }

.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: none; border: 0; cursor: pointer; text-align: left;
  padding: 18px 20px; font: inherit; font-size: 1.02rem; font-weight: 600; color: var(--ink);
}
.faq-icon { position: relative; flex: 0 0 auto; width: 26px; height: 26px; border: 1px solid var(--line); border-radius: 50%; transition: transform 0.3s, border-color 0.3s; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--slate); }
.faq-icon::before { width: 12px; height: 1.5px; }
.faq-icon::after { width: 1.5px; height: 12px; transition: transform 0.3s; }
.faq-item.open .faq-icon { transform: rotate(45deg); border-color: var(--brand); }
.faq-item.open .faq-icon::before, .faq-item.open .faq-icon::after { background: var(--brand); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s ease; }
.faq-a > p { overflow: hidden; padding: 0 20px; color: var(--slate); font-size: 0.98rem; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-item.open .faq-a > p { padding-bottom: 18px; }

/* ---------- CTA BAND ---------- */
.cta-band { background: var(--brand); color: #fff; padding: 64px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta-kicker { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255, 255, 255, 0.8); }
.cta-copy h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); color: #fff; margin-top: 12px; max-width: 22ch; }

/* ---------- CONTATO ---------- */
.contato-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contato-info h2 { font-size: clamp(1.9rem, 3vw, 2.4rem); color: #fff; margin-top: 14px; }
.contato-sub { margin-top: 16px; color: rgba(255, 255, 255, 0.65); max-width: 50ch; }

.contato-itens { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.contato-item { display: flex; align-items: flex-start; gap: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; padding: 16px; }
.contato-icon { display: flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 42px; height: 42px; border-radius: 10px; background: rgba(23, 153, 77, 0.18); color: var(--brand); }
.contato-icon svg, .contato-icon [class] { display: block; }
.contato-label { display: block; font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.45); }
.contato-item div > span:last-child, .contato-item a { display: block; margin-top: 4px; color: rgba(255, 255, 255, 0.9); font-weight: 500; }
.contato-item a:hover { color: var(--brand); }

.contato-form-wrap { position: sticky; top: calc(var(--header-h) + 20px); }
.contato-form { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-lift); }
.form-kicker { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brand); }
.contato-form h3 { font-size: 1.5rem; margin-top: 8px; }
.contato-form label { display: block; margin-top: 18px; font-size: 0.9rem; font-weight: 500; color: rgba(10, 15, 12, 0.7); }
.contato-form input, .contato-form textarea {
  width: 100%; margin-top: 8px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--mist); font: inherit; font-size: 0.95rem; color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}
.contato-form input:focus, .contato-form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(23, 153, 77, 0.15); }
.contato-form .btn { margin-top: 20px; }
.form-note { margin-top: 12px; font-size: 0.78rem; color: var(--slate); text-align: center; }

.mapa-wrap { margin-top: 48px; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.1); }
.mapa-wrap iframe { display: block; width: 100%; height: 320px; border: 0; }

/* ---------- FOOTER ---------- */
.footer { background: var(--ink); color: #fff; border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 48px 0 32px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-nav a { font-size: 0.92rem; color: rgba(255, 255, 255, 0.6); transition: color 0.2s; }
.footer-nav a:hover { color: var(--brand-soft); }
.footer-bottom { padding-top: 24px; }
.footer-bottom > p { font-family: var(--font-mono); font-size: 0.72rem; color: rgba(255, 255, 255, 0.45); }
.footer-legal { margin-top: 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; color: rgba(255, 255, 255, 0.35); font-size: 0.9rem; }
.footer-art { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); display: inline-block; }

/* ---------- REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- RESPONSIVO ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-photo img { height: 380px; }
  .diferenciais-grid { grid-template-columns: 1fr; gap: 40px; }
  .faq-grid, .contato-grid { grid-template-columns: 1fr; gap: 40px; }
  .contato-form-wrap { position: static; }
}

@media (max-width: 900px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-top: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  }
  .nav.open { max-height: 480px; box-shadow: var(--shadow-lift); }
  .nav > a:not(.nav-cta) { padding: 16px 24px; border-bottom: 1px solid var(--line); }
  .nav .nav-cta { margin: 16px 24px; }
  .nav-toggle { display: block; }
}

@media (max-width: 600px) {
  .section { padding: 60px 0; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 22px; }
  .diferenciais-list { grid-template-columns: 1fr; }
  .processo-grid { grid-template-columns: 1fr; gap: 36px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; }
  .hero-photo img { height: 300px; }
  .mapa-wrap iframe { height: 240px; }
}