/* ===========================================================
   Fluent UX — site institucional
   Mobile-first. Escala para tablet em 700px e desktop em 1024px.
   =========================================================== */

/* ---------- Layout base ---------- */

.shell {
  width: 100%;
  max-width: var(--fx-max);
  margin-inline: auto;
  padding-inline: var(--fx-gutter);
}

.section {
  padding-block: var(--fx-section);
}

.section--tight {
  padding-block: calc(var(--fx-section) * 0.6);
}

.section--dark {
  color: var(--fx-on-dark);
  background: var(--fx-dark);
}

.section--surface {
  background: var(--fx-surface);
}

.eyebrow {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 18px;
  color: var(--fx-primary);
  font-size: var(--fx-step--1);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 26px;
  height: 2px;
  background: currentColor;
  content: "";
}

.section--dark .eyebrow {
  color: var(--fx-primary-bright);
}

.section-head {
  max-width: 34ch;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.section-head--wide {
  max-width: 52ch;
}

.section-head h2 {
  margin: 0;
  font-size: var(--fx-step-3);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.section-head p {
  max-width: 56ch;
  margin: 18px 0 0;
  color: var(--fx-muted);
  font-size: var(--fx-step-1);
  line-height: 1.5;
}

.section--dark .section-head p {
  color: var(--fx-on-dark-muted);
}

/* ---------- Botões ---------- */

.btn {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 15px 26px;
  border: 1px solid transparent;
  border-radius: var(--fx-radius-pill);
  font-size: var(--fx-step-0);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--fx-fast), background var(--fx-fast), border-color var(--fx-fast),
    color var(--fx-fast), box-shadow var(--fx-fast);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  color: var(--fx-on-primary);
  background: var(--fx-gradient);
  box-shadow: 0 12px 30px rgba(15, 237, 15, 0.28);
}

.btn--primary:hover {
  box-shadow: 0 18px 44px rgba(15, 237, 15, 0.38);
}

.btn--ink {
  color: #fff;
  background: var(--fx-ink);
}

.btn--outline {
  border-color: var(--fx-line-strong);
  color: var(--fx-ink);
  background: transparent;
}

.btn--outline:hover {
  border-color: var(--fx-ink);
  background: rgba(17, 17, 17, 0.04);
}

.section--dark .btn--outline,
.site-header--dark .btn--outline {
  border-color: var(--fx-line-dark);
  color: #fff;
}

.section--dark .btn--outline:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.07);
}

.btn--sm {
  padding: 11px 18px;
  font-size: var(--fx-step--1);
}

/* Seta que desliza no hover — microinteração usada nos CTAs e cards. */
.btn__arrow,
.link-arrow__icon {
  transition: transform var(--fx-base);
}

.btn:hover .btn__arrow,
.link-arrow:hover .link-arrow__icon {
  transform: translateX(5px);
}

.link-arrow {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--fx-ink);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--fx-line-strong);
  padding-bottom: 4px;
  transition: border-color var(--fx-fast), color var(--fx-fast);
}

.link-arrow:hover {
  border-color: var(--fx-primary);
  color: var(--fx-primary);
}

/* ---------- Cabeçalho ---------- */

.site-header {
  position: fixed;
  z-index: 60;
  top: 0;
  right: 0;
  left: 0;
  transition: background var(--fx-base), box-shadow var(--fx-base), backdrop-filter var(--fx-base);
}

.site-header__inner {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding-block: 18px;
}

.site-header.is-stuck {
  background: rgba(244, 244, 242, 0.82);
  backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 1px 0 var(--fx-line);
}

.site-header--dark.is-stuck {
  background: rgba(11, 11, 12, 0.72);
  box-shadow: 0 1px 0 var(--fx-line-dark);
}

.site-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.site-logo img {
  width: clamp(112px, 16vw, 148px);
  height: auto;
}

.site-nav {
  display: none;
}

.site-nav__list {
  display: flex;
  gap: clamp(18px, 3vw, 38px);
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__link {
  position: relative;
  padding-block: 6px;
  font-size: var(--fx-step-0);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--fx-fast);
}

.site-nav__link::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--fx-primary-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--fx-base);
  content: "";
}

.site-nav__link:hover::after,
.site-nav__link[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-header__actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.site-header__cta {
  display: none;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0 11px;
  border: 1px solid var(--fx-line-strong);
  border-radius: var(--fx-radius-pill);
  background: transparent;
  cursor: pointer;
}

.site-header--dark .nav-toggle {
  border-color: var(--fx-line-dark);
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--fx-base), opacity var(--fx-fast);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Menu mobile em tela cheia */
.mobile-nav {
  position: fixed;
  z-index: 55;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 96px var(--fx-gutter) 48px;
  background: var(--fx-dark);
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity var(--fx-base), transform var(--fx-base), visibility var(--fx-base);
}

.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-nav__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-nav__list li {
  border-bottom: 1px solid var(--fx-line-dark);
}

.mobile-nav__list a {
  display: block;
  padding-block: 18px;
  font-size: var(--fx-step-2);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.mobile-nav__footer {
  margin-top: 40px;
  display: grid;
  gap: 14px;
}

.mobile-nav__footer a.btn {
  width: 100%;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding-block: 140px 72px;
  overflow: hidden;
  background: var(--fx-dark);
  color: #fff;
}

.hero::before {
  position: absolute;
  inset: 0;
  background: var(--fx-glow);
  content: "";
}

/* Anel decorativo — mesma linguagem gráfica da tela de login do app de propostas. */
.hero::after {
  position: absolute;
  right: -22%;
  bottom: -40%;
  width: 76vw;
  height: 76vw;
  max-width: 940px;
  max-height: 940px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 72px rgba(255, 255, 255, 0.018), 0 0 0 144px rgba(255, 255, 255, 0.012);
  content: "";
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero__title {
  max-width: 16ch;
  margin: 0;
  font-size: var(--fx-step-5);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

/* A última palavra do título recebe o gradiente da marca. */
.hero__title .accent {
  background: var(--fx-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__text {
  max-width: 54ch;
  margin: 28px 0 0;
  color: var(--fx-on-dark-muted);
  font-size: var(--fx-step-1);
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

.hero__metrics {
  display: grid;
  gap: 28px;
  margin-top: clamp(56px, 9vw, 96px);
  padding-top: 34px;
  border-top: 1px solid var(--fx-line-dark);
}

.hero__metric strong {
  display: block;
  font-size: var(--fx-step-3);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

.hero__metric span {
  display: block;
  max-width: 24ch;
  margin-top: 8px;
  color: var(--fx-on-dark-muted);
  font-size: var(--fx-step--1);
}

.hero__scroll {
  display: none;
}

/* ---------- Apresentação ---------- */

.intro__grid {
  display: grid;
  gap: 32px;
}

.intro__title {
  margin: 0;
  font-size: var(--fx-step-3);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.intro__text {
  margin: 0;
  color: var(--fx-muted);
  font-size: var(--fx-step-1);
  line-height: 1.6;
}

/* ---------- Serviços ---------- */

.services-grid {
  display: grid;
  gap: 1px;
  background: var(--fx-line);
  border: 1px solid var(--fx-line);
  border-radius: var(--fx-radius-lg);
  overflow: hidden;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(26px, 4vw, 38px);
  background: var(--fx-surface);
  text-decoration: none;
  transition: background var(--fx-base);
}

.service-card::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--fx-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--fx-base);
  content: "";
}

.service-card:hover {
  background: var(--fx-surface-2);
}

.service-card:hover::after {
  transform: scaleX(1);
}

.service-card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(8, 115, 21, 0.08);
  color: var(--fx-primary);
}

.service-card__icon svg {
  width: 22px;
  height: 22px;
}

.service-card h3 {
  margin: 0;
  font-size: var(--fx-step-1);
  font-weight: 600;
  letter-spacing: -0.015em;
}

.service-card p {
  margin: 0;
  color: var(--fx-muted);
  font-size: var(--fx-step-0);
  line-height: 1.55;
}

.service-card__index {
  position: absolute;
  top: clamp(20px, 3vw, 30px);
  right: clamp(20px, 3vw, 30px);
  color: var(--fx-line-strong);
  font-size: var(--fx-step--1);
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* ---------- Projetos ---------- */

.projects-grid {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
}

.project-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.project-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--fx-radius-lg);
  background: linear-gradient(135deg, #16171a, #0b0b0c);
}

.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--fx-slow), filter var(--fx-slow);
}

.project-card:hover .project-card__media img {
  transform: scale(1.045);
}

/* Placeholder quando o case ainda não tem capa cadastrada. */
.project-card__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: rgba(255, 255, 255, 0.22);
  font-size: var(--fx-step-2);
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.project-card__tag {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 7px 14px;
  border-radius: var(--fx-radius-pill);
  background: rgba(255, 255, 255, 0.92);
  color: var(--fx-ink);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.project-card__body {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  margin-top: 20px;
}

.project-card__body h3 {
  margin: 0;
  font-size: var(--fx-step-2);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.project-card__meta {
  margin: 8px 0 0;
  color: var(--fx-muted);
  font-size: var(--fx-step--1);
}

.project-card__go {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 1px solid var(--fx-line-strong);
  border-radius: 50%;
  transition: background var(--fx-base), border-color var(--fx-base), color var(--fx-base),
    transform var(--fx-base);
}

.project-card:hover .project-card__go {
  border-color: transparent;
  background: var(--fx-gradient);
  color: var(--fx-on-primary);
  transform: rotate(-45deg);
}

.section--dark .project-card__go {
  border-color: var(--fx-line-dark);
}

/* ---------- Metodologia ---------- */

.steps {
  display: grid;
  gap: 0;
  counter-reset: step;
}

.step {
  display: grid;
  gap: 10px;
  padding-block: clamp(26px, 3.5vw, 38px);
  border-top: 1px solid var(--fx-line-dark);
}

.step:last-child {
  border-bottom: 1px solid var(--fx-line-dark);
}

.step__number {
  color: var(--fx-primary-bright);
  font-size: var(--fx-step--1);
  font-weight: 800;
  letter-spacing: 0.16em;
}

.step h3 {
  margin: 0;
  font-size: var(--fx-step-2);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.step p {
  max-width: 62ch;
  margin: 0;
  color: var(--fx-on-dark-muted);
  line-height: 1.6;
}

/* ---------- Diferenciais ---------- */

.features {
  display: grid;
  gap: 1px;
  background: var(--fx-line);
}

.feature {
  display: grid;
  gap: 12px;
  padding: clamp(28px, 4vw, 42px) 0;
  background: var(--fx-bg);
}

.feature__mark {
  width: 34px;
  height: 3px;
  border-radius: 2px;
  background: var(--fx-gradient);
}

.feature h3 {
  margin: 0;
  font-size: var(--fx-step-1);
  font-weight: 600;
  letter-spacing: -0.015em;
}

.feature p {
  max-width: 46ch;
  margin: 0;
  color: var(--fx-muted);
  line-height: 1.6;
}

/* ---------- Clientes ---------- */

.clients {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--fx-line);
  border: 1px solid var(--fx-line);
  border-radius: var(--fx-radius);
  overflow: hidden;
}

.client {
  display: grid;
  place-items: center;
  min-height: 104px;
  padding: 22px;
  background: var(--fx-surface);
  color: var(--fx-muted);
  font-size: var(--fx-step-0);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
  transition: color var(--fx-base), background var(--fx-base);
}

.client img {
  max-height: 38px;
  width: auto;
  filter: grayscale(1);
  opacity: 0.62;
  transition: filter var(--fx-base), opacity var(--fx-base);
}

.client:hover {
  color: var(--fx-ink);
}

.client:hover img {
  filter: grayscale(0);
  opacity: 1;
}

/* ---------- Depoimentos ---------- */

.testimonials {
  display: grid;
  gap: 20px;
}

.testimonial {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: clamp(26px, 4vw, 40px);
  border: 1px solid var(--fx-line);
  border-radius: var(--fx-radius-lg);
  background: var(--fx-surface);
}

.testimonial__quote {
  margin: 0;
  font-size: var(--fx-step-1);
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.testimonial__quote::before {
  content: "“";
  color: var(--fx-primary);
  font-size: 1.4em;
  line-height: 0;
  vertical-align: -0.15em;
}

.testimonial__author {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: auto;
}

.testimonial__avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--fx-gradient);
  color: var(--fx-on-primary);
  font-weight: 700;
  object-fit: cover;
}

.testimonial__author strong {
  display: block;
  font-weight: 600;
}

.testimonial__author span {
  display: block;
  color: var(--fx-muted);
  font-size: var(--fx-step--1);
}

/* ---------- CTA final ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--fx-radius-lg);
  background: var(--fx-dark);
  color: #fff;
  padding: clamp(40px, 7vw, 84px);
}

.cta-band::before {
  position: absolute;
  inset: 0;
  background: var(--fx-glow);
  content: "";
}

.cta-band__inner {
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  max-width: 18ch;
  margin: 0;
  font-size: var(--fx-step-3);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.cta-band p {
  max-width: 50ch;
  margin: 18px 0 32px;
  color: var(--fx-on-dark-muted);
  font-size: var(--fx-step-1);
}

/* ---------- Rodapé ---------- */

.site-footer {
  padding-block: clamp(52px, 7vw, 84px) 32px;
  background: var(--fx-dark);
  color: #fff;
}

.site-footer__top {
  display: grid;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--fx-line-dark);
}

.site-footer__brand img {
  width: 140px;
  margin-bottom: 20px;
}

.site-footer__brand p {
  max-width: 40ch;
  margin: 0;
  color: var(--fx-on-dark-muted);
}

.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.site-footer h3 {
  margin: 0 0 16px;
  font-size: var(--fx-step--1);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fx-primary-bright);
}

.site-footer ul {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: var(--fx-on-dark-muted);
  text-decoration: none;
  transition: color var(--fx-fast);
}

.site-footer a:hover {
  color: #fff;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  color: rgba(255, 255, 255, 0.44);
  font-size: var(--fx-step--1);
}

/* ---------- Página interna: cabeçalho ---------- */

.page-hero {
  padding-block: 148px clamp(48px, 7vw, 80px);
  background: var(--fx-dark);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  position: absolute;
  inset: 0;
  background: var(--fx-glow);
  content: "";
}

.page-hero__inner {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  max-width: 20ch;
  margin: 0;
  font-size: var(--fx-step-4);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.page-hero p {
  max-width: 58ch;
  margin: 24px 0 0;
  color: var(--fx-on-dark-muted);
  font-size: var(--fx-step-1);
  line-height: 1.55;
}

/* ---------- Filtros do portfólio ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(32px, 5vw, 52px);
}

.filter {
  padding: 10px 18px;
  border: 1px solid var(--fx-line-strong);
  border-radius: var(--fx-radius-pill);
  background: transparent;
  color: var(--fx-muted);
  font-size: var(--fx-step--1);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--fx-fast);
}

.filter:hover {
  border-color: var(--fx-ink);
  color: var(--fx-ink);
}

.filter[aria-pressed="true"] {
  border-color: transparent;
  background: var(--fx-ink);
  color: #fff;
}

/* ---------- Página de case ---------- */

.case-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid var(--fx-line-dark);
}

.case-hero__meta div {
  min-width: 120px;
}

.case-hero__meta dt {
  color: var(--fx-primary-bright);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.case-hero__meta dd {
  margin: 6px 0 0;
  font-size: var(--fx-step-0);
  font-weight: 500;
}

.case-cover {
  margin-top: clamp(-40px, -4vw, -20px);
  position: relative;
  z-index: 2;
}

.case-cover img {
  width: 100%;
  border-radius: var(--fx-radius-lg);
  box-shadow: var(--fx-shadow-lg);
}

.case-body {
  display: grid;
  gap: clamp(40px, 6vw, 72px);
}

.case-block h2 {
  margin: 0 0 16px;
  font-size: var(--fx-step-2);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.case-block .rich {
  max-width: 68ch;
}

.rich {
  color: var(--fx-muted);
  font-size: var(--fx-step-1);
  line-height: 1.65;
}

.rich > *:first-child {
  margin-top: 0;
}

.rich > *:last-child {
  margin-bottom: 0;
}

.rich h2,
.rich h3,
.rich h4 {
  margin: 1.6em 0 0.5em;
  color: var(--fx-ink);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.rich h2 { font-size: var(--fx-step-2); }
.rich h3 { font-size: var(--fx-step-1); }

.rich p { margin: 0 0 1em; }

.rich ul,
.rich ol {
  margin: 0 0 1em;
  padding-left: 1.3em;
}

.rich li { margin-bottom: 0.5em; }

.rich a {
  color: var(--fx-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rich img {
  width: 100%;
  margin: 1.6em 0;
  border-radius: var(--fx-radius);
}

.rich blockquote {
  margin: 1.6em 0;
  padding-left: 24px;
  border-left: 3px solid var(--fx-primary-bright);
  color: var(--fx-ink);
  font-size: var(--fx-step-1);
}

.case-results {
  display: grid;
  gap: 1px;
  background: var(--fx-line);
  border: 1px solid var(--fx-line);
  border-radius: var(--fx-radius);
  overflow: hidden;
}

.case-result {
  padding: clamp(24px, 4vw, 34px);
  background: var(--fx-surface);
}

.case-result strong {
  display: block;
  font-size: var(--fx-step-3);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
  background: linear-gradient(120deg, var(--fx-primary) 0%, #14a521 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.case-result span {
  display: block;
  margin-top: 10px;
  color: var(--fx-muted);
  font-size: var(--fx-step--1);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.chip {
  padding: 8px 16px;
  border: 1px solid var(--fx-line-strong);
  border-radius: var(--fx-radius-pill);
  font-size: var(--fx-step--1);
  font-weight: 500;
}

.gallery {
  display: grid;
  gap: 18px;
}

.gallery figure {
  margin: 0;
}

.gallery img {
  width: 100%;
  border-radius: var(--fx-radius);
  border: 1px solid var(--fx-line);
}

.gallery figcaption {
  margin-top: 10px;
  color: var(--fx-muted);
  font-size: var(--fx-step--1);
}

.case-nav {
  display: grid;
  gap: 1px;
  background: var(--fx-line-dark);
  border-block: 1px solid var(--fx-line-dark);
}

.case-nav a {
  display: grid;
  gap: 8px;
  padding: clamp(26px, 4vw, 40px) 0;
  text-decoration: none;
}

.case-nav span {
  color: var(--fx-primary-bright);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.case-nav strong {
  font-size: var(--fx-step-2);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.case-nav a:last-child {
  text-align: left;
}

/* ---------- Formulário público ---------- */

.form-card {
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid var(--fx-line);
  border-radius: var(--fx-radius-lg);
  background: var(--fx-surface);
  box-shadow: var(--fx-shadow-sm);
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.field > label {
  font-size: var(--fx-step--1);
  font-weight: 600;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--fx-line-strong);
  border-radius: var(--fx-radius-sm);
  background: var(--fx-surface);
  transition: border-color var(--fx-fast), box-shadow var(--fx-fast);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--fx-primary);
  box-shadow: 0 0 0 4px rgba(8, 115, 21, 0.1);
}

.field textarea {
  min-height: 132px;
  resize: vertical;
}

.field__hint {
  color: var(--fx-muted);
  font-size: var(--fx-step--1);
}

.field--error input,
.field--error textarea,
.field--error select {
  border-color: var(--fx-danger);
}

.field__error {
  color: var(--fx-danger);
  font-size: var(--fx-step--1);
}

.field-row {
  display: grid;
  gap: 0 20px;
}

.form-success {
  display: grid;
  gap: 14px;
  place-items: center;
  padding: clamp(36px, 6vw, 64px);
  text-align: center;
}

.form-success__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--fx-gradient);
  color: var(--fx-on-primary);
  font-size: 1.7rem;
}

/* ---------- Animação de entrada ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms var(--fx-ease), transform 700ms var(--fx-ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Estados de carregamento ---------- */

.loading-line {
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--fx-primary-bright), transparent);
  background-size: 200% 100%;
  animation: fx-slide 1.2s linear infinite;
}

@keyframes fx-slide {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

.state-msg {
  padding: clamp(40px, 7vw, 80px) 0;
  text-align: center;
  color: var(--fx-muted);
}

.state-msg h3 {
  margin: 0 0 8px;
  color: var(--fx-ink);
  font-size: var(--fx-step-2);
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* ===========================================================
   Tablet — 700px
   =========================================================== */

@media (min-width: 700px) {
  .hero__metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }

  .services-grid,
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .clients {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .case-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .field-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-nav a:last-child {
    text-align: right;
  }

  .site-footer__top {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  }
}

/* ===========================================================
   Desktop — 1024px
   =========================================================== */

@media (min-width: 1024px) {
  .site-nav {
    display: block;
  }

  .site-header__cta {
    display: inline-flex;
  }

  .nav-toggle {
    display: none;
  }

  .intro__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: clamp(48px, 7vw, 110px);
    align-items: start;
  }

  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .features {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: transparent;
  }

  .feature {
    padding: 0 28px 0 0;
    border-right: 1px solid var(--fx-line);
  }

  .feature:last-child {
    border-right: 0;
  }

  .clients {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .testimonials {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .case-results {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .case-body {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Primeiro projeto da home ocupa a linha inteira. */
  .projects-grid--featured .project-card:first-child {
    grid-column: 1 / -1;
  }

  .projects-grid--featured .project-card:first-child .project-card__media {
    aspect-ratio: 21 / 9;
  }

  .step {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 32px;
    align-items: baseline;
  }

  .step__number {
    font-size: var(--fx-step-1);
  }

  .hero__scroll {
    position: absolute;
    bottom: 40px;
    right: var(--fx-gutter);
    z-index: 1;
    display: flex;
    gap: 12px;
    align-items: center;
    color: var(--fx-on-dark-muted);
    font-size: var(--fx-step--1);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    writing-mode: vertical-rl;
  }

  .hero__scroll::after {
    width: 1px;
    height: 60px;
    background: linear-gradient(var(--fx-primary-bright), transparent);
    content: "";
  }

  .site-footer__cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
