:root {
  --ink: #16171b;
  --ink-soft: #33353c;
  --yellow: #f3b900;
  --yellow-deep: #caa000;
  --bg: #ffffff;
  --bg-alt: #f7f5ef;
  --border: rgba(22, 23, 27, 0.14);
  --header-h: 76px;
  --font-head: "Space Grotesk", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
  .reveal,
  .hero-copy > * {
    opacity: 1 !important;
    transform: none !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; max-width: 62ch; }

a { color: inherit; }

img { max-width: 100%; display: block; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

:focus-visible {
  outline: 3px solid var(--yellow-deep);
  outline-offset: 2px;
}

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--ink);
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-bottom-color: var(--yellow);
}

.site-nav a.nav-cta {
  background: var(--yellow);
  color: var(--ink);
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 600;
  border-bottom: none;
}

.site-nav a.nav-cta:hover,
.site-nav a.nav-cta:focus-visible {
  background: #ffd23a;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 4px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 20px;
  margin: 0 auto;
  background: #fff;
}

/* Background photo sections */
.has-bg { position: relative; overflow: hidden; }
.section-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.section-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.section-overlay { position: absolute; inset: 0; z-index: 1; }
.section-overlay-dark { background: linear-gradient(180deg, rgba(22,23,27,0.82), rgba(22,23,27,0.72)); }
.section-overlay-strong { background: rgba(22,23,27,0.9); }
.section-overlay-yellow { background: linear-gradient(180deg, rgba(243,185,0,0.92), rgba(243,185,0,0.86)); }
.has-bg > .wrap { position: relative; z-index: 2; }

/* Hero */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 0 56px;
}

.hero-abstract { background: var(--ink); }

.hero-inner { max-width: 720px; }

.hero-copy h1,
.hero-copy h2,
.hero-copy .hero-trust { color: #fff; }

.hero-copy h2 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  color: rgba(255,255,255,0.88);
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 22px;
}

.hero-trust {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.8);
  max-width: 46ch;
  border-left: 2px solid var(--yellow);
  padding-left: 14px;
}

.hero-copy > * {
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
}
.hero-copy h1 { animation-delay: 0.1s; }
.hero-copy h2 { animation-delay: 0.28s; }
.hero-copy .hero-actions { animation-delay: 0.46s; }
.hero-copy .hero-trust { animation-delay: 0.62s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--yellow);
  color: var(--ink);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--yellow-deep);
  color: var(--ink);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: rgba(22,23,27,0.6);
}
.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.btn-outline-dark {
  color: #fff;
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.08);
}
.btn-outline-dark:hover,
.btn-outline-dark:focus-visible {
  background: var(--yellow);
  color: var(--ink);
  border-color: var(--yellow);
}

.btn-block { width: 100%; }

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-lead {
  color: var(--ink-soft);
  max-width: 60ch;
  font-size: 1.05rem;
}

/* Sobre */
.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.sobre-pilares { margin: 0; }
.pilar {
  padding: 20px 0;
  border-top: 1px solid var(--border);
}
.pilar:last-child { border-bottom: 1px solid var(--border); }
.pilar dt {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--yellow-deep);
  margin-bottom: 6px;
}
.pilar dd { margin: 0; max-width: 52ch; color: var(--ink-soft); }

.sobre-valores {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.sobre-valores h3 {
  font-family: var(--font-head);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--yellow-deep);
  margin-bottom: 18px;
}
.valores-lista {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.valores-lista li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  font-size: 0.92rem;
  color: var(--ink-soft);
  white-space: nowrap;
}
.valores-lista li::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--yellow);
  flex-shrink: 0;
}

/* Serviços - seção com fundo escuro */
.servicos-section h2,
.servicos-section .section-lead-dark { color: #fff; }
.section-lead-dark { color: rgba(255,255,255,0.75) !important; }

.painel {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}
.painel .photo-card { flex: 0 1 calc((100% - 40px) / 3); }

/* Cards com foto (Serviços + Segmentos) */
.photo-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--yellow);
  display: flex;
  flex-direction: column;
}
.card-photo {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.photo-card:hover .card-photo img { transform: scale(1.06); }

.card-body { padding: 22px 22px 26px; flex: 1; }
.card-body h3 { margin-bottom: 8px; }
.card-body p { margin: 0; font-size: 0.94rem; color: var(--ink-soft); }

.modulo-icon {
  width: 26px;
  height: 26px;
  color: var(--ink);
  margin-bottom: 12px;
}

/* Segmentos - grade de cards */
.segmentos-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 40px;
}
.segmentos-grid .photo-card { flex: 0 1 calc((100% - 48px) / 3); }

/* Diferencial */
.faixa-diferencial { padding: 64px 0; }
.faixa-diferencial p {
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  font-weight: 600;
  line-height: 1.35;
  max-width: 46ch;
  margin: 0;
  color: var(--ink);
}

/* Atuação */
.atuacao-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
}
#atuacao h2, #atuacao p { color: #fff; }
#atuacao p { color: rgba(255,255,255,0.82); }
.lista-check {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.lista-check li {
  position: relative;
  padding-left: 26px;
  color: #fff;
}
.lista-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 12px;
  height: 12px;
  background: var(--yellow);
}

/* Scroll reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

.painel .photo-card:nth-child(2),
.segmentos-grid .photo-card:nth-child(2) { transition-delay: 0.08s; }
.painel .photo-card:nth-child(3),
.segmentos-grid .photo-card:nth-child(3) { transition-delay: 0.16s; }
.painel .photo-card:nth-child(4),
.segmentos-grid .photo-card:nth-child(4) { transition-delay: 0.24s; }
.painel .photo-card:nth-child(5),
.segmentos-grid .photo-card:nth-child(5) { transition-delay: 0.32s; }

.sobre-pilares .pilar:nth-child(2) { transition-delay: 0.08s; }
.sobre-pilares .pilar:nth-child(3) { transition-delay: 0.16s; }

/* Contato */
.contato-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 48px;
  align-items: start;
}
.lista-contato {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.lista-contato li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.rotulo {
  font-size: 0.78rem;
  color: var(--ink-soft);
}
.lista-contato a { text-decoration: none; font-weight: 600; }
.lista-contato a:hover,
.lista-contato a:focus-visible { color: var(--yellow-deep); }

.contato-cta {
  background: var(--ink);
  color: #fff;
  padding: 32px;
  align-self: stretch;
}
.contato-cta p { color: #fff; font-weight: 600; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.85);
}
.footer-top-bar { height: 4px; background: var(--yellow); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding: 56px 24px 44px;
}

.footer-brand .brand { margin-bottom: 16px; }
.footer-brand strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 10px;
}
.footer-brand p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  max-width: 34ch;
  margin: 0 0 18px;
}
.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
}
.footer-social:hover,
.footer-social:focus-visible { color: var(--yellow); }

.footer-col h3 {
  font-family: var(--font-head);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 18px;
}
.footer-nav { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.footer-nav a { text-decoration: none; font-size: 0.92rem; color: rgba(255,255,255,0.85); }
.footer-nav a:hover, .footer-nav a:focus-visible { color: var(--yellow); }

.footer-contato { display: flex; flex-direction: column; }
.footer-contato h3 { margin-bottom: 18px; }
.footer-contato a,
.footer-contato p {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-decoration: none;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.85);
  margin: 0 0 16px;
}
.footer-contato svg { flex-shrink: 0; margin-top: 2px; color: var(--yellow); }
.footer-contato a:hover,
.footer-contato a:focus-visible { color: var(--yellow); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); }
.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 24px;
}
.footer-bottom-inner p {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}
.footer-top-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}
.footer-top-link:hover,
.footer-top-link:focus-visible { color: var(--yellow); }

/* WhatsApp float */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  z-index: 90;
  text-decoration: none;
}
.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  background: #1ebe5b;
  color: #fff;
}

/* Responsive */
@media (max-width: 900px) {
  .sobre-grid,
  .atuacao-grid,
  .contato-grid {
    grid-template-columns: 1fr;
  }
  .painel .photo-card { flex-basis: calc((100% - 20px) / 2); }
  .segmentos-grid .photo-card { flex-basis: calc((100% - 24px) / 2); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ink);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 24px;
    gap: 16px;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a.nav-cta { margin-top: 8px; }
  .painel .photo-card,
  .segmentos-grid .photo-card { flex-basis: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
}
