/* =========================================================
   TRIMON — Landing page
   Paleta oficial: #005D52 (verde) · #033830 (verde escuro)
   #141414 / #282828 (grafite) · #EAEAEA / #BCBCBC (cinzas)
   ========================================================= */

:root {
  --green: #005D52;
  --green-dark: #033830;
  --green-hover: #00493F;
  --accent: #2FB39F;          /* verde claro p/ texto sobre fundo escuro (contraste 7:1) */
  --ink: #141414;
  --ink-2: #1C1C1C;
  --graphite: #282828;
  --gray-1: #EAEAEA;
  --gray-2: #BCBCBC;
  --text-dark: #1F2624;
  --text-muted: #4A5552;
  --white: #FFFFFF;
  --surface: #F4F6F5;

  --font-head: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --container: 1180px;
  --header-h: 72px;
  --ease: cubic-bezier(.2,.7,.2,1);
  --shadow-card: 0 10px 40px rgba(0, 0, 0, .08);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--white);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .6em; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.accent { color: var(--accent); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--white); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.section { padding: clamp(64px, 9vw, 112px) 0; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 28px;
  border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-hover); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }

/* botão "pílula" com ícone circular (padrão do layout) */
.btn-pill {
  background: var(--white); color: var(--green);
  padding: 6px 24px 6px 6px; min-height: 48px; font-size: .9rem;
}
.btn-pill:hover { background: var(--gray-1); }
.btn-pill-icon {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--green); color: var(--white); flex: none;
}
.btn-pill-icon svg { width: 16px; height: 16px; fill: currentColor; }
.btn-pill-light .btn-pill-icon { background: var(--ink); }
.btn-pill-outline { background: transparent; border-color: var(--green); color: var(--green); }
.btn-pill-outline:hover { background: var(--green); color: var(--white); }
.btn-pill-outline:hover .btn-pill-icon { background: var(--white); color: var(--green); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  background: rgba(20,20,20,.0);
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-scrolled { background: rgba(20,20,20,.92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand img { width: 128px; }

.nav ul { display: flex; gap: clamp(16px, 3vw, 40px); }
.nav a {
  font-family: var(--font-head); font-size: .8rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; color: var(--white); padding: 10px 2px; position: relative;
  transition: color .2s var(--ease);
}
.nav a:hover, .nav a.is-active { color: var(--accent); }
.nav a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--accent); border-radius: 2px;
}

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px; padding: 0;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.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 {
  position: relative; min-height: min(100svh, 860px); display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 72px; isolation: isolate; overflow: hidden;
}
.hero-bg, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-bg { z-index: -2; }
.hero-bg img { object-fit: cover; object-position: 70% center; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(1,12,10,.92) 0%, rgba(1,12,10,.7) 38%, rgba(1,12,10,0) 70%),
              linear-gradient(0deg, rgba(20,20,20,1) 0%, rgba(20,20,20,0) 22%);
}
.hero-content { max-width: 1180px; }
.hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.25rem); font-weight: 400; max-width: 16ch; margin-bottom: .5em;
}
.hero h1 strong { font-weight: 700; }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--gray-1); margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Legado ---------- */
.legado { padding-bottom: clamp(40px, 6vw, 72px); }
.eyebrow-title { color: var(--accent); font-size: clamp(1.3rem, 2.2vw, 1.6rem); font-weight: 600; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.7; color: var(--gray-1); margin-bottom: 2rem; }

/* ---------- Diferenciais ---------- */
.diferenciais { padding-top: clamp(32px, 5vw, 56px); }
.dif-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.dif-text h2 { font-size: clamp(1.7rem, 3vw, 2.25rem); margin-bottom: 1.4em; }
.dif-list { display: grid; gap: 28px; }
.dif-list li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; }
.dif-icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(47,179,159,.12); color: var(--accent);
}
.dif-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dif-list h3 { font-size: 1.05rem; margin-bottom: .25em; }
.dif-list p { color: var(--gray-2); font-size: .95rem; margin: 0; }
.dif-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dif-photos img { width: 100%; aspect-ratio: 5 / 8; object-fit: cover; border-radius: var(--radius); }
.dif-photos picture:nth-child(2) { margin-top: 48px; }

/* ---------- Serviços ---------- */
.servicos-wrap {
  position: relative; padding: clamp(32px, 5vw, 56px) 0 clamp(48px, 6vw, 72px);
  background: linear-gradient(180deg, var(--ink) 0 62%, var(--white) 62% 100%);
}
.servicos-card {
  background: var(--green); border-radius: var(--radius-lg);
  padding: clamp(36px, 5vw, 64px) clamp(22px, 5vw, 64px);
  box-shadow: 0 30px 60px rgba(0,0,0,.25);
}
.servicos-card h2 { font-size: clamp(1.7rem, 3vw, 2.25rem); }
.servicos-intro { max-width: 640px; margin: 0 auto 2.5rem; color: rgba(255,255,255,.9); }
.servicos-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 2.5rem; }
.servico { padding: 0 clamp(16px, 3vw, 40px); }
.servico + .servico { border-left: 1px solid rgba(255,255,255,.35); }
.servico h3 { display: flex; align-items: center; gap: 10px; font-size: 1.35rem; margin-bottom: 1rem; }
.servico h3 svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.servico li { position: relative; padding-left: 18px; margin-bottom: .85rem; color: rgba(255,255,255,.92); font-size: .95rem; line-height: 1.5; }
.servico li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }

/* ---------- Clientes (marquee) ---------- */
.clientes { background: var(--ink); padding: clamp(48px, 6vw, 72px) 0; }
.clientes h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); font-weight: 500; margin-bottom: 1.8rem; }
.marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track, .marquee.is-paused .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; gap: 56px; padding-right: 56px; align-items: center; }
.logo-slot {
  width: 180px; height: 64px; display: grid; place-items: center; flex: none;
  border: 1px dashed rgba(255,255,255,.22); border-radius: 12px;
  color: rgba(255,255,255,.45); font-size: .8rem; letter-spacing: .04em;
}
.marquee-group img { height: 48px; width: auto; filter: grayscale(1) brightness(1.6); opacity: .85; transition: filter .2s, opacity .2s; }
.marquee-group img:hover { filter: none; opacity: 1; }
.marquee-toggle {
  position: absolute; right: 16px; bottom: 50%; transform: translateY(50%); width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3); background: var(--graphite); color: var(--white); cursor: pointer; display: grid; place-items: center;
  -webkit-mask-image: none; mask-image: none;
}
.marquee-toggle svg { width: 14px; height: 14px; fill: currentColor; }
.marquee-toggle .i-play { display: none; }
.marquee-toggle[aria-pressed="true"] .i-play { display: block; }
.marquee-toggle[aria-pressed="true"] .i-pause { display: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Cases & Depoimentos ---------- */
.cases { background: var(--white); color: var(--text-dark); }
.depoimentos { background: var(--surface); color: var(--text-dark); }
.section-head { max-width: 640px; margin: 0 auto 2.5rem; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.25rem); color: var(--green); }
.section-head p { color: var(--text-muted); }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.soon-card {
  margin: 0; background: var(--white); border: 1px solid #E1E6E4; border-radius: var(--radius);
  padding: 28px; min-height: 200px; display: flex; flex-direction: column; justify-content: flex-end;
  position: relative; overflow: hidden;
}
.cases .soon-card { background: var(--surface); }
.soon-card::before {
  content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,93,82,.10), rgba(0,93,82,0) 70%);
}
.soon-card .tag {
  align-self: flex-start; margin-bottom: auto; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--green); background: rgba(0,93,82,.08); padding: 6px 12px; border-radius: 999px;
}
.soon-card h3 { font-size: 1.15rem; margin: 1.6rem 0 .3rem; color: var(--text-dark); }
.soon-card p { color: var(--text-muted); margin: 0; font-size: .95rem; }
.quote { justify-content: space-between; }
.quote-mark { width: 32px; height: 32px; fill: rgba(0,93,82,.25); }
.quote blockquote { margin: 1.4rem 0 0; }
.quote blockquote p { font-size: 1rem; font-style: italic; }

/* ---------- Contato ---------- */
.contato { background: var(--white); color: var(--text-dark); }
.form-card, .whats-card {
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
  border: 1px solid #EEF1F0; max-width: 980px; margin-inline: auto;
}
.form-card { padding: clamp(28px, 5vw, 56px) clamp(20px, 6vw, 88px); }
.form-card h2 { color: var(--green); font-size: clamp(1.35rem, 2.4vw, 1.75rem); max-width: 26ch; margin-inline: auto; }
.form-card header p { color: var(--text-muted); max-width: 560px; margin: 0 auto 2rem; font-size: .95rem; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 40px; }
.field-full { grid-column: 1 / -1; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; color: var(--text-dark); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid #D5DCDA; background: var(--white); color: var(--text-dark); font-size: 16px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23005D52' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; cursor: pointer; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(0,93,82,.18); }
.field.has-error input, .field.has-error select { border-color: #C62828; }
.error { color: #B71C1C; font-size: .8rem; margin: 6px 0 0; min-height: 1em; }
.error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .8rem; color: var(--text-muted); margin: 18px 0 22px; text-align: center; }

.btn-submit { min-width: 220px; position: relative; }
.spinner { display: none; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4); border-top-color: var(--white); border-radius: 50%; animation: spin .8s linear infinite; }
.btn-submit.is-loading .spinner { display: inline-block; }
.btn-submit.is-loading { pointer-events: none; opacity: .85; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-status { text-align: center; margin-top: 14px; font-size: .9rem; color: #B71C1C; }
.form-status:empty { display: none; }

.form-success { text-align: center; padding: 12px 0; }
.form-success svg { width: 56px; height: 56px; margin: 0 auto 12px; fill: none; stroke: var(--green); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.form-success h3 { color: var(--green); font-size: 1.4rem; }
.form-success p { color: var(--text-muted); max-width: 440px; margin: 0 auto 1.5rem; }

.whats-card { margin-top: 32px; padding: 32px 24px; text-align: center; }
.whats-title { font-family: var(--font-head); font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 500; line-height: 1.35; margin-bottom: 1.2rem; }
.whats-title span { color: var(--green); }
.whats-card .btn-pill-icon svg { width: 18px; height: 18px; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--ink); color: var(--gray-1); padding: 56px 0 24px; font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; align-items: center; }
.footer-info p { margin-bottom: .8rem; }
.footer-info a, .social a { text-decoration: none; transition: color .2s; }
.footer-info a:hover, .social a:hover { color: var(--accent); }
.with-icon { display: flex; align-items: center; gap: 12px; }
.with-icon svg, .social svg {
  width: 32px; height: 32px; padding: 7px; border-radius: 50%; background: var(--green); flex: none;
  fill: none; stroke: var(--white); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.footer-brand { display: flex; align-items: center; gap: 32px; }
.social { display: grid; gap: 12px; }
.social a { display: flex; align-items: center; gap: 12px; }
.social svg { fill: var(--white); stroke: none; }
.social li:nth-child(2) svg { fill: none; stroke: var(--white); }
.footer-logo { width: 200px; padding-left: 32px; border-left: 1px solid rgba(255,255,255,.3); }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); color: var(--gray-2); font-size: .8rem; }
.footer-bottom p { margin: 0; }

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

/* ---------- Animação de entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 1024px) {
  .servicos-grid { grid-template-columns: 1fr; gap: 28px; }
  .servico { padding: 0; }
  .servico + .servico { border-left: 0; border-top: 1px solid rgba(255,255,255,.3); padding-top: 28px; }
  .servicos-wrap { background: linear-gradient(180deg, var(--ink) 0 80%, var(--white) 80% 100%); }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto; background: rgba(20,20,20,.98);
    padding: 12px 16px 24px; border-top: 1px solid rgba(255,255,255,.08);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { display: block; padding: 14px 4px; font-size: .9rem; border-bottom: 1px solid rgba(255,255,255,.06); }
  .nav a.is-active::after { display: none; }
  .site-header.menu-open { background: rgba(20,20,20,.98); }

  .hero::after { background: linear-gradient(180deg, rgba(1,12,10,.55) 0%, rgba(1,12,10,.85) 55%, rgba(20,20,20,1) 100%); }
  .hero-bg img { object-position: 78% center; }
  .hero { align-items: flex-end; }

  .dif-grid { grid-template-columns: 1fr; }
  .dif-photos { order: -1; }
  .dif-photos img { aspect-ratio: 3 / 4; }
  .dif-photos picture:nth-child(2) { margin-top: 32px; }

  .cards-3 { grid-template-columns: 1fr; }
  .soon-card { min-height: 160px; }
  .form-grid { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-brand { flex-direction: column-reverse; align-items: flex-start; gap: 24px; }
  .footer-logo { padding-left: 0; border-left: 0; width: 160px; }
}

@media (max-width: 480px) {
  .hero-actions .btn { flex: 1 1 100%; }
  .btn-pill { font-size: .85rem; }
  .logo-slot { width: 140px; }
}

/* Movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .marquee-track { animation: none; flex-wrap: wrap; width: 100%; justify-content: center; }
  .marquee-group[aria-hidden="true"] { display: none; }
  .marquee-group { flex-wrap: wrap; justify-content: center; padding: 0 16px; gap: 24px; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-toggle { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}
