/* ==========================================================================
   [NOME DO ESCRITÓRIO] — Modelo 05 · Grid Corporativo
   ========================================================================== */

:root {
  --white: #ffffff;
  --gray-light: #f2f3f5;
  --graphite: #22262b;
  --graphite-soft: #4a5058;
  --steel: #3a5a78;
  --steel-dark: #2c4560;
  --steel-light: #ebeff2;
  --border: #dde1e5;
  --font: 'IBM Plex Sans', 'Segoe UI', Arial, sans-serif;
  --container: 1240px;
  --radius: 2px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--graphite);
  background: var(--white);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

section { scroll-margin-top: 96px; }

/* ===== Reveal (scroll) ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ===== Tipografia utilitária ===== */
.eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 600;
  color: var(--steel);
  margin-bottom: 14px;
}
.eyebrow--light { color: #9fb8cc; }
.eyebrow--center { text-align: center; }

.section-title {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -0.01em;
  color: var(--graphite);
  margin-bottom: 16px;
}
.section-title--light { color: var(--white); }
.section-title--center { text-align: center; }

.section-lede {
  font-size: 16px;
  color: var(--graphite-soft);
  max-width: 560px;
  line-height: 1.7;
}

.section-head { margin-bottom: 48px; }
.section-head--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.link-arrow {
  font-size: 14px;
  font-weight: 600;
  color: var(--steel);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.link-arrow:hover { border-color: var(--steel); }

/* ===== Botões ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all .25s ease;
}
.btn--solid { background: var(--steel); color: var(--white); }
.btn--solid:hover { background: var(--steel-dark); }
.btn--ghost { border-color: var(--graphite); color: var(--graphite); background: transparent; }
.btn--ghost:hover { background: var(--graphite); color: var(--white); }
.btn--full { width: 100%; }

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid transparent;
  padding: 22px 0;
  transition: padding .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.header.is-scrolled {
  padding: 14px 0;
  border-color: var(--border);
  box-shadow: 0 6px 24px rgba(34, 38, 43, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo__mark {
  width: 18px;
  height: 18px;
  background: var(--steel);
  transform: rotate(45deg);
  flex-shrink: 0;
  position: relative;
}
.logo__mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  background: var(--white);
}
.logo__text {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.04em;
  color: var(--graphite);
  line-height: 1.1;
}
.logo__text em {
  display: block;
  font-style: normal;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--graphite-soft);
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--graphite-soft);
  transition: color .2s ease;
}
.nav a:hover { color: var(--steel); }
.nav__cta {
  border: 1.5px solid var(--graphite);
  color: var(--graphite) !important;
  padding: 10px 20px;
  border-radius: var(--radius);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.nav__cta:hover {
  background: var(--graphite);
  color: var(--white) !important;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--graphite);
  transition: transform .25s ease, opacity .25s ease;
}

/* ===== Hero ===== */
.hero {
  padding: 168px 0 88px;
  background: var(--gray-light);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero__texto h1 {
  font-size: clamp(34px, 4.4vw, 54px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.015em;
  color: var(--graphite);
  margin-bottom: 22px;
}
.hero__lede {
  font-size: 17px;
  color: var(--graphite-soft);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 36px;
}
.hero__acoes {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero__selo {
  display: flex;
  gap: 40px;
  border-top: 1px solid var(--border);
  padding-top: 28px;
}
.hero__selo li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero__selo strong {
  font-size: 26px;
  font-weight: 700;
  color: var(--steel);
}
.hero__selo span {
  font-size: 12px;
  color: var(--graphite-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero__mosaico {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  height: 460px;
}
.hero__foto { overflow: hidden; border-radius: var(--radius); }
.hero__foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.hero__foto:hover img { transform: scale(1.06); }
.hero__foto--a { grid-column: 1; grid-row: 1 / 3; }
.hero__foto--b { grid-column: 2 / 4; grid-row: 1; }
.hero__foto--c { grid-column: 2; grid-row: 2; }
.hero__foto--d { grid-column: 3; grid-row: 2; }

/* ===== Números ===== */
.numeros {
  background: var(--graphite);
  padding: 64px 0;
}
.numeros__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.numero {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 22px;
  border-left: 2px solid var(--steel);
}
.numero__valor {
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}
.numero__label {
  font-size: 13px;
  color: #a7adb5;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== Áreas de atuação ===== */
.atuacao { padding: 100px 0; }
.atuacao__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.atuacao__card {
  background: var(--white);
  padding: 40px 34px;
  transition: background .25s ease;
}
.atuacao__card:hover { background: var(--steel-light); }
.atuacao__icone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  color: var(--steel);
  margin-bottom: 22px;
}
.atuacao__icone svg { width: 100%; height: 100%; }
.atuacao__card h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--graphite);
  margin-bottom: 10px;
}
.atuacao__card p {
  font-size: 14.5px;
  color: var(--graphite-soft);
  line-height: 1.7;
}

/* ===== Equipe ===== */
.equipe { padding: 100px 0; background: var(--gray-light); }
.equipe__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.pessoa {
  background: var(--white);
  border: 1px solid var(--border);
  padding-bottom: 26px;
}
.pessoa__foto { aspect-ratio: 4 / 4.6; overflow: hidden; margin-bottom: 22px; }
.pessoa__foto img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(35%); transition: filter .3s ease; }
.pessoa:hover .pessoa__foto img { filter: grayscale(0%); }
.pessoa h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--graphite);
  padding: 0 22px;
  margin-bottom: 4px;
}
.pessoa__cargo {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--steel);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0 22px;
  margin-bottom: 14px;
}
.pessoa__bio {
  font-size: 14px;
  color: var(--graphite-soft);
  line-height: 1.65;
  padding: 0 22px;
}

/* ===== Portfólio (mosaico) ===== */
.portfolio { padding: 100px 0; }
.mosaico {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 150px;
  grid-auto-flow: dense;
  gap: 12px;
}
.mosaico__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  display: block;
}
.mosaico__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.mosaico__item:hover img { transform: scale(1.07); }
.mosaico__legenda {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 16px 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--white);
  background: linear-gradient(0deg, rgba(15,18,22,0.85) 0%, rgba(15,18,22,0) 100%);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s ease, transform .3s ease;
}
.mosaico__item:hover .mosaico__legenda { opacity: 1; transform: translateY(0); }

.mosaico__item--g1 { grid-column: span 2; grid-row: span 2; }
.mosaico__item--g2 { grid-column: span 1; grid-row: span 1; }
.mosaico__item--g3 { grid-column: span 1; grid-row: span 2; }
.mosaico__item--g4 { grid-column: span 1; grid-row: span 1; }
.mosaico__item--g5 { grid-column: span 2; grid-row: span 1; }
.mosaico__item--g6 { grid-column: span 1; grid-row: span 1; }
.mosaico__item--g7 { grid-column: span 1; grid-row: span 1; }
.mosaico__item--g8 { grid-column: span 2; grid-row: span 2; }
.mosaico__item--g9 { grid-column: span 2; grid-row: span 1; }

/* ===== Clientes ===== */
.clientes { padding: 84px 0 100px; }
.clientes .section-title { margin-bottom: 40px; }
.clientes__faixa {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px 48px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 36px 0;
}
.clientes__faixa span {
  font-size: 15px;
  font-weight: 600;
  color: var(--graphite-soft);
  letter-spacing: 0.02em;
  opacity: 0.85;
  transition: opacity .2s ease, color .2s ease;
}
.clientes__faixa span:hover { opacity: 1; color: var(--steel); }

/* ===== Contato ===== */
.contato {
  background: var(--graphite);
  padding: 100px 0;
}
.contato__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
}
.contato__lede {
  font-size: 15.5px;
  color: #b7bcc2;
  line-height: 1.75;
  max-width: 460px;
  margin-bottom: 36px;
}
.contato__info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}
.contato__info li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid #383e46;
  padding-top: 16px;
}
.contato__info strong {
  font-size: 12px;
  font-weight: 600;
  color: #9fb8cc;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.contato__info span { font-size: 15px; color: var(--white); }

.contato__mapa {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #2c3138;
  border: 1px solid #383e46;
  border-radius: var(--radius);
  padding: 20px;
  color: #9fb8cc;
}
.contato__mapa svg { width: 26px; height: 26px; flex-shrink: 0; }
.contato__mapa span { font-size: 13.5px; color: #b7bcc2; }

.contato__form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--graphite-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.form-row input,
.form-row textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 14px;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--graphite);
  background: var(--white);
  transition: border-color .2s ease;
  resize: vertical;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--steel);
}
.form-success {
  display: none;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--steel);
}
.form-success.is-visible { display: block; }

/* ===== Footer ===== */
.footer { background: #191c20; color: #b7bcc2; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 40px;
  padding: 72px 0 48px;
}
.footer__col--brand p {
  font-size: 13.5px;
  line-height: 1.7;
  margin-top: 18px;
  color: #8b9099;
  max-width: 280px;
}
.footer .logo__text { color: var(--white); }
.footer .logo__text em { color: #8b9099; }
.footer__col h4 {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}
.footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer__col a, .footer__col span {
  font-size: 14px;
  color: #8b9099;
  transition: color .2s ease;
}
.footer__col a:hover { color: var(--white); }

.footer__base { border-top: 1px solid #2c3036; }
.footer__base-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 22px 0;
  font-size: 12.5px;
  color: #6d7178;
}

/* ===== WhatsApp flutuante ===== */
.whatsapp-float {
  position: fixed;
  right: 26px;
  bottom: 26px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--steel);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(34, 38, 43, 0.28);
  z-index: 90;
  transition: transform .2s ease, background .2s ease;
}
.whatsapp-float:hover { background: var(--steel-dark); transform: translateY(-3px); }
.whatsapp-float svg { width: 26px; height: 26px; }

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 980px) {
  .container { padding: 0 28px; }

  .nav {
    position: fixed;
    top: 0; right: 0;
    width: min(320px, 82vw);
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px;
    padding: 100px 32px 32px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.12);
    transform: translateX(100%);
    transition: transform .3s ease;
    z-index: 99;
  }
  .nav.is-open { transform: translateX(0); }
  .nav a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav__cta { margin-top: 12px; text-align: center; }
  .menu-toggle { display: flex; }
  .menu-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.is-active span:nth-child(2) { opacity: 0; }
  .menu-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero { padding: 140px 0 64px; }
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero__mosaico { height: 380px; }
  .hero__selo { gap: 28px; flex-wrap: wrap; }

  .numeros__grid { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }

  .atuacao__grid { grid-template-columns: repeat(2, 1fr); }

  .equipe__grid { grid-template-columns: repeat(2, 1fr); }

  .mosaico { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 130px; }
  .mosaico__item--g1, .mosaico__item--g8 { grid-column: span 2; grid-row: span 2; }
  .mosaico__item--g5, .mosaico__item--g9 { grid-column: span 3; grid-row: span 1; }
  .mosaico__item--g3 { grid-column: span 1; grid-row: span 2; }

  .contato__grid { grid-template-columns: 1fr; gap: 48px; }

  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__col--brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .container { padding: 0 20px; }

  .header { padding: 16px 0; }
  .logo__text { font-size: 14px; }
  .logo__text em { font-size: 9px; }

  .hero { padding: 120px 0 56px; }
  .hero__mosaico { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; height: 320px; }
  .hero__foto--a { grid-column: 1 / 3; grid-row: 1; }
  .hero__foto--b { grid-column: 1; grid-row: 2; }
  .hero__foto--c { grid-column: 2; grid-row: 2; }
  .hero__foto--d { display: none; }
  .hero__acoes { flex-direction: column; align-items: stretch; }

  .numeros__grid { grid-template-columns: 1fr 1fr; }

  .atuacao, .equipe, .portfolio, .clientes, .contato { padding: 64px 0; }
  .atuacao__grid { grid-template-columns: 1fr; }
  .equipe__grid { grid-template-columns: 1fr 1fr; gap: 18px; }

  .mosaico { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
  .mosaico__item--g1, .mosaico__item--g8 { grid-column: span 2; grid-row: span 2; }
  .mosaico__item--g2, .mosaico__item--g3, .mosaico__item--g4, .mosaico__item--g6, .mosaico__item--g7 { grid-column: span 1; grid-row: span 1; }
  .mosaico__item--g5, .mosaico__item--g9 { grid-column: span 2; grid-row: span 1; }

  .clientes__faixa { gap: 16px 28px; }

  .contato__form { padding: 28px 24px; }

  .footer__grid { grid-template-columns: 1fr; padding: 56px 0 32px; }
  .footer__base-inner { flex-direction: column; }
}
