/* =========================================================
   Arthur Caetano Filippi — Folha de estilo principal
   1. Tokens de design
   2. Reset e base
   3. Utilitários
   4. Componentes (botões)
   5. Seção 01 — Hero
   6. Responsivo
   7. Acessibilidade e preferências do usuário
   ========================================================= */

/* ---------- 1. Tokens de design ---------- */
:root {
  /* Cores da marca */
  --color-accent: #d99559;
  --color-accent-dark: #433020;
  --color-cream: #f2f0eb;
  --color-white: #ffffff;
  --color-black: #000000;

  --color-bg: var(--color-black);
  --color-text: var(--color-white);
  --color-text-muted: rgba(255, 255, 255, 0.82);

  /* Degradês da marca */
  --gradient-brand: linear-gradient(100deg, var(--color-accent) 0%, var(--color-cream) 100%);
  --gradient-band: linear-gradient(180deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);

  /* Tipografia */
  --font-display: "Lexend Zetta", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Escala fluida */
  --fs-eyebrow: clamp(0.68rem, 0.55rem + 0.55vw, 0.95rem);
  /* Fallback (sem JS): estimativa conservadora. O tamanho exato é calculado
     em runtime por js/main.js (mede a largura real do texto renderizado). */
  --fs-title: clamp(1.625rem, calc((100vw - 2 * var(--container-pad)) * 0.05), 6.5rem);
  --fs-tagline: clamp(0.85rem, 0.7rem + 0.7vw, 1.2rem);
  --fs-tagline-oneline: clamp(0.85rem, calc((100vw - 2 * var(--container-pad)) * 0.014), 1.3rem);
  --fs-text: clamp(0.95rem, 0.88rem + 0.35vw, 1.25rem);

  /* Espaçamento */
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.25rem;
  --space-xl: 3.5rem;

  /* Layout */
  --container-max: 1140px;
  --container-pad: clamp(1.25rem, 4vw, 3rem);

  /* Movimento */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-organic: cubic-bezier(0.16, 1, 0.3, 1); /* desacelera suave, sem "batida" mecânica */
  --dur: 0.7s;
}

/* ---------- 2. Reset e base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, p { margin: 0; }

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

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: 4px;
}

/* ---------- 3. Utilitários ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--color-accent);
  color: var(--color-black);
  font-weight: 600;
}
.skip-link:focus { left: 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;
}

/* ---------- 4. Componentes ---------- */
.btn {
  --btn-bg-1: color-mix(in srgb, var(--color-accent) 55%, white);
  --btn-bg-2: var(--color-accent);

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-width: 150px;
  min-height: 44px;
  padding: 0.9em 1.6em;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 0.8rem + 0.4vw, 1.1rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  cursor: pointer;
  background-size: 280% auto;
  background-position: left top;
  transition: background-position 0.8s var(--ease-out),
              transform 0.35s var(--ease-out),
              box-shadow 0.35s var(--ease-out);
  will-change: transform, background-position;
}

.btn span { white-space: nowrap; }

.btn--primary {
  background-image: linear-gradient(
    325deg,
    var(--btn-bg-2) 0%,
    var(--btn-bg-1) 55%,
    var(--btn-bg-2) 90%
  );
  color: var(--color-white);
  box-shadow:
    0 0 20px rgba(217, 149, 89, 0.4),
    0 5px 5px -1px rgba(217, 149, 89, 0.25),
    inset 3px 3px 6px rgba(255, 224, 196, 0.45),
    inset -3px -3px 6px rgba(140, 84, 34, 0.3);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background-position: right top;
  transform: translateY(-2px);
  box-shadow:
    0 0 26px rgba(217, 149, 89, 0.55),
    0 8px 18px -4px rgba(217, 149, 89, 0.4),
    inset 3px 3px 6px rgba(255, 224, 196, 0.45),
    inset -3px -3px 6px rgba(140, 84, 34, 0.3);
}

.btn--primary:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px var(--color-black),
    0 0 0 6px var(--color-accent);
}

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

.btn__icon {
  flex: none;
  transition: transform 0.35s var(--ease-out);
}
.btn:hover .btn__icon { transform: translate(2px, -2px); }

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}

/* ---------- 4b. Menu fixo (glass) ---------- */
html { scroll-padding-top: 5rem; } /* compensa o nav fixo nos saltos de âncora */

.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
}

/* Menu mobile aberto: painel sólido preto (a barra normal usa degradê) */
.nav.is-menu-open {
  background-image: none;
  background-color: var(--color-bg);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.25rem, 0.9rem + 1.6vw, 2.5rem);
  padding-block: 0.9rem;
}

.nav__logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--color-white);
  white-space: nowrap;
}

.nav__logo span { color: var(--color-accent); }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 0.8rem + 1vw, 2rem);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
}

.nav__links > a {
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.25s var(--ease-out);
}

.nav__links > a:hover,
.nav__links > a:focus-visible {
  color: var(--color-accent);
}

/* Dropdown "Serviços" */
.nav__dropdown { position: relative; }

.nav__dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  transition: color 0.25s var(--ease-out);
}

.nav__dropdown-toggle:hover,
.nav__dropdown-toggle:focus-visible,
.nav__dropdown.is-open .nav__dropdown-toggle {
  color: var(--color-accent);
}

.nav__chevron { transition: transform 0.25s var(--ease-out); }
.nav__dropdown.is-open .nav__chevron { transform: rotate(180deg); }

.nav__dropdown-menu {
  position: absolute;
  top: calc(100% + 0.9rem);
  left: 50%;
  transform: translate(-50%, -8px);
  width: 15rem;
  padding: 0.5rem;
  background-color: rgba(15, 11, 8, 0.9);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out), visibility 0.25s;
}

.nav__dropdown.is-open .nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nav__dropdown-menu a {
  display: flex;
  flex-direction: column;
  gap: 0.15em;
  padding: 0.65em 0.85em;
  border-radius: 0.6rem;
  transition: background-color 0.2s var(--ease-out);
}

.nav__dropdown-menu a:hover,
.nav__dropdown-menu a:focus-visible {
  background-color: rgba(217, 149, 89, 0.12);
}

.nav__dropdown-menu strong {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-white);
}

.nav__dropdown-menu span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

.nav__cta {
  min-width: 0;
  padding: 0.55em 1.3em;
  font-size: 0.82rem;
}

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}

.nav__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-white);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}

.nav.is-menu-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-menu-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-menu-open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem clamp(1.25rem, 4vw, 3rem) 1.5rem;
  font-family: var(--font-body);
}

.nav.is-menu-open .nav__mobile { display: flex; }

.nav__mobile > a {
  padding: 0.75em 0.25em;
  color: var(--color-white);
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav__mobile-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.75em 0.25em;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: none;
  font: inherit;
  font-weight: 500;
  color: var(--color-white);
  cursor: pointer;
}

.nav__mobile-services {
  display: none;
  flex-direction: column;
  padding-left: 1rem;
}

.nav__mobile-dropdown-toggle.is-open + .nav__mobile-services { display: flex; }
.nav__mobile-dropdown-toggle.is-open .nav__chevron { transform: rotate(180deg); }

.nav__mobile-services a {
  padding: 0.6em 0.25em;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}

.nav__mobile .nav__cta { margin-top: 0.75rem; align-self: flex-start; }

@media (max-width: 900px) {
  .nav__inner { justify-content: space-between; }
  .nav__links,
  .nav__inner > .nav__cta { display: none; }
  .nav__burger { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  .nav__dropdown-menu,
  .nav__chevron,
  .nav__burger span {
    transition: none;
  }
}

/* ---------- 5. Seção 01 — Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(var(--vh, 1vh) * 100); /* fallback: --vh definido pelo JS */
  min-height: 100svh;
  padding-block: var(--space-xl);
  isolation: isolate;
}

/* Camadas de fundo — overflow escondido aqui, não no .hero,
   pra não cortar acento/ink do texto que passe da linha por 1-2px */
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  /* Parallax sutil controlado via JS */
  transform: scale(1.06) translate3d(0, var(--parallax, 0px), 0);
  transition: transform 0.2s linear;
}

/* Brilho quente atrás do texto */
.hero__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    58% 46% at 50% 34%,
    rgba(217, 149, 89, 0.28) 0%,
    rgba(217, 149, 89, 0.08) 45%,
    transparent 72%
  );
  mix-blend-mode: screen;
  pointer-events: none;
}

/* Escurecimento para garantir contraste do texto (WCAG AA) */
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.34) 38%, rgba(0, 0, 0, 0.86) 100%),
    radial-gradient(78% 66% at 50% 42%, transparent 0%, rgba(0, 0, 0, 0.62) 100%);
  pointer-events: none;
}

/* Conteúdo */
.hero__inner {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.hero__eyebrow {
  width: 100%;
  text-align: center;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-eyebrow);
  letter-spacing: 1em;
  text-indent: 1em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0.85;
}

/* Degradê aplicado em cada letra (não no <p> pai): o filter do blur abaixo
   isola a letra numa camada própria e quebra o clip-text herdado do pai */
.hero__eyebrow span {
  display: inline-block;
  background-image: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: eyebrow-blur 1.5s calc(var(--i, 0) * 0.2s) infinite linear alternate;
}

@keyframes eyebrow-blur {
  0% { filter: blur(0); }
  100% { filter: blur(4px); }
}

.hero__title {
  width: 100%;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--fs-title);
  line-height: 1.15;
  letter-spacing: -0.25em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;

  /* Degradê #D99559 → #F2F0EB aplicado ao texto */
  background-image: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero__tagline {
  width: 100%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-tagline);
  letter-spacing: 0.1em;
  color: var(--color-white);
  max-width: 42ch;
}

/* Acima de ~720px cabe em uma linha só sem ficar ilegível */
@media (min-width: 720px) {
  .hero__tagline {
    font-size: var(--fs-tagline-oneline);
    letter-spacing: 0.12em;
    max-width: none;
    white-space: nowrap;
  }

  .hero__tagline-break { display: none; }
}

.hero__tagline-seg { white-space: nowrap; }

.hero__text {
  font-size: var(--fs-text);
  font-weight: 400;
  line-height: 1.55;
  color: var(--color-text-muted);
  max-width: 68ch;
  text-wrap: balance;
}

.hero__actions { margin-top: var(--space-2xs); }

/* ---------- 5b. Seção 02 — Marquee de serviços ---------- */
.marquee {
  position: relative;
  z-index: 1;
  background-color: var(--color-bg);
  margin-top: clamp(-6rem, -3rem - 4vw, -2.5rem);
  padding-block: clamp(0.5rem, 0.3rem + 1vw, 1.25rem) clamp(1.5rem, 1.2rem + 1.4vw, 2.5rem);
  overflow: hidden;
}

.marquee__band {
  position: relative;
  width: 108%;
  margin-inline: -4%;
  overflow: hidden;
  transform: rotate(-0.6deg);
  background-image: var(--gradient-band);
  box-shadow: 0 14px 34px -18px rgba(0, 0, 0, 0.7);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 34s linear infinite;
}

.marquee__list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: clamp(0.65rem, 0.55rem + 0.5vw, 1rem) 0;
  white-space: nowrap;
}

.marquee__list li {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(0.8rem, 0.72rem + 0.35vw, 1.05rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-white);
  padding-inline: 1.1em;
}

.marquee__list li:not(:last-child)::after {
  content: "\00b7";
  display: inline-block;
  margin-left: 1.1em;
  color: rgba(255, 255, 255, 0.7);
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* Animação de entrada */
/* Blur reveal com easing orgânico: desfoca + sobe + funde, sem "bater" no lugar */
[data-reveal] {
  opacity: 0;
  filter: blur(14px);
  transform: translateY(24px);
}

.is-ready [data-reveal] {
  opacity: 1;
  filter: blur(0);
  transform: none;
  transition: opacity 1.1s var(--ease-organic),
              filter 1.1s var(--ease-organic),
              transform 1.1s var(--ease-organic);
}

.is-ready [data-reveal]:nth-child(1) { transition-delay: 0.05s; }
.is-ready [data-reveal]:nth-child(2) { transition-delay: 0.16s; }
.is-ready [data-reveal]:nth-child(3) { transition-delay: 0.3s; }
.is-ready [data-reveal]:nth-child(4) { transition-delay: 0.44s; }
.is-ready [data-reveal]:nth-child(5) { transition-delay: 0.58s; }

/* ---------- 5c. Seção 03 — Soluções ---------- */
.solutions {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 2rem + 5vw, 6rem);
  padding-bottom: clamp(5rem, 3rem + 10vw, 10rem);
  background-color: var(--color-bg);
}

.solutions > .container {
  position: relative;
  z-index: 1;
}

/* Texto gigante decorativo, cortado no rodapé da seção — reutilizado
   em qualquer seção com fundo escuro (03, 04, ...) */
.giant-text {
  position: absolute;
  left: 50%;
  bottom: clamp(0.5rem, 2rem - 6vw, 2.5rem);
  z-index: 0;
  margin: 0;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3.5rem, 1.5rem + 14vw, 12rem);
  line-height: 1;
  letter-spacing: -0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.12);
  filter: blur(4px);
  pointer-events: none;
  user-select: none;
}

/* Título de seção reutilizável: linha fina + linha em destaque com degradê */
.section-heading {
  margin: 0 0 clamp(2rem, 1.5rem + 2vw, 3.5rem);
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.45em;
}

.section-heading__line {
  display: block;
  font-weight: 300;
  font-size: clamp(1.4rem, 1rem + 2.6vw, 2.6rem);
  color: var(--color-white);
}

.section-heading__highlight {
  display: block;
  font-weight: 900;
  font-size: clamp(2rem, 1.3rem + 4.6vw, 4.2rem);

  background-image: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.section-heading--center { text-align: center; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 1rem + 1.2vw, 2rem);
}

.card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: clamp(0.85rem, 0.7rem + 0.6vw, 1.25rem);
  min-height: clamp(26rem, 20rem + 22vw, 37rem);
  padding: clamp(1.25rem, 1.05rem + 0.9vw, 1.75rem);
  background-color: var(--color-black);
  border: 1px solid rgba(217, 149, 89, 0.35);
  border-radius: 1.75rem;
  box-shadow: 0 24px 60px -34px rgba(0, 0, 0, 0.85);
  transition: transform 0.4s var(--ease-organic), box-shadow 0.4s var(--ease-organic);
}

.card:hover,
.card:focus-within,
.card[data-reveal-scroll].is-visible:hover,
.card[data-reveal-scroll].is-visible:focus-within {
  transform: scale(1.05);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.9);
}

@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
}

.card__tags {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0 2px 2px 0; /* espaço pro anel de foco/borda não cortar */
  overflow-x: auto;
  scrollbar-width: none;
}
.card__tags::-webkit-scrollbar { display: none; }

.card__tags li {
  position: relative;
  flex: none;
  white-space: nowrap;
  padding: 0.32em 0.75em;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
}

/* Anel em degradê sem preenchimento: uma camada com "buraco" no meio via mask */
.card__tags li::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background-image: linear-gradient(100deg, var(--color-accent) 0%, var(--color-cream) 100%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.card__tags li span {
  position: relative;
  background-image: linear-gradient(100deg, var(--color-accent) 0%, var(--color-cream) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* A imagem vira o fundo inteiro do card; o conteúdo flutua por cima */
.card__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.15) 32%,
    rgba(0, 0, 0, 0.72) 62%,
    rgba(0, 0, 0, 0.95) 100%
  );
}

.card__title {
  display: flex;
  flex-direction: column;
  gap: 0.15em;
  margin: auto 0 0; /* empurra o bloco de texto pro rodapé, sobra respiro pra imagem no meio */
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.05rem, 0.92rem + 0.5vw, 1.35rem);
  line-height: 1.2;
  letter-spacing: -0.25em;
  text-transform: uppercase;

  /* Degradê #D99559 → #F2F0EB → #D99559 aplicado ao texto (as 2 linhas juntas) */
  background-image: linear-gradient(
    100deg,
    var(--color-accent) 0%,
    var(--color-cream) 50%,
    var(--color-accent) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.card__text {
  margin: 0;
  color: var(--color-text-muted);
  font-size: clamp(0.85rem, 0.8rem + 0.2vw, 0.95rem);
  line-height: 1.65;
}

.card__cta {
  align-self: flex-start;
  width: auto;
  min-width: 0;
  padding: 0.6em 1.3em;
  font-size: 0.85rem;
  white-space: nowrap;
}

/* ---------- 5d. Seção 04 — Ser escolhido ---------- */
.why {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding-block: clamp(3rem, 2rem + 5vw, 6rem);
  padding-bottom: clamp(5rem, 3rem + 10vw, 10rem);
  background-color: var(--color-bg);
  border-bottom-left-radius: 1.75rem;
  border-bottom-right-radius: 1.75rem;
}

.why > .container {
  position: relative;
  z-index: 1;
}

.why__content {
  max-width: 46rem;
}

.why__content .section-heading__highlight { white-space: nowrap; }

.why__text {
  margin: 0 0 1.1em;
  color: var(--color-text-muted);
  font-size: clamp(0.95rem, 0.88rem + 0.35vw, 1.1rem);
  line-height: 1.65;
}

.why__text-highlight {
  font-weight: 600;

  background-image: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.why__cta { margin-top: clamp(0.5rem, 0.3rem + 1vw, 1.25rem); }

/* ---------- 5e. Seção 05 — Garantia ---------- */
.guarantee {
  /* Degradê exclusivo desta seção — sobrescreve --gradient-brand só aqui */
  --gradient-brand: linear-gradient(100deg, #8d5c31 0%, #f9c973 100%);

  position: relative;
  z-index: 0;
  margin-top: -2.5rem; /* o preto (.why) sobe por cima, com o mesmo arredondamento */
  background-color: var(--color-white);
  border-radius: 1.75rem;
  padding-block: clamp(2.5rem, 1.8rem + 3.5vw, 4.5rem);
}

.guarantee__top {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 1.4rem + 3vw, 4.5rem);
}

.guarantee__media {
  flex: 0 0 auto;
  width: clamp(11rem, 8rem + 12vw, 18rem);
}

.guarantee__media img {
  width: 100%;
  height: auto;
}

.guarantee__inner {
  flex: 1;
  min-width: 0;
  max-width: 34rem;
}

.guarantee__inner .section-heading { margin-bottom: clamp(0.75rem, 0.5rem + 1vw, 1.25rem); }
.guarantee__inner .section-heading__line { color: var(--color-black); }
.guarantee__inner .section-heading__highlight { white-space: nowrap; }

.guarantee__text {
  margin: 0 0 1em;
  color: rgba(0, 0, 0, 0.72);
  font-size: clamp(0.9rem, 0.84rem + 0.25vw, 1.05rem);
  line-height: 1.65;
}

.guarantee__text:last-child { margin-bottom: 0; }

.guarantee__text strong {
  font-weight: 700;

  background-image: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* Linha do tempo com as 3 etapas */
.timeline {
  margin: clamp(2.5rem, 2rem + 2.5vw, 3.5rem) 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.timeline {
  counter-reset: timeline-step;
}

.timeline__item {
  counter-increment: timeline-step;
  position: relative;
  padding-left: 3.25rem;
  padding-bottom: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);

  /* Blur reveal com easing orgânico ao entrar na viewport (classe via JS) */
  opacity: 0;
  filter: blur(14px);
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-organic),
              filter 0.9s var(--ease-organic),
              transform 0.9s var(--ease-organic);
}

.timeline__item.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: none;
}

.timeline__item:last-child { padding-bottom: 0; }

/* Fade-in genérico ao rolar a página — marcar qualquer bloco com
   data-reveal-scroll pra ele animar quando entrar na viewport */
[data-reveal-scroll] {
  opacity: 0;
  filter: blur(14px);
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-organic),
              filter 0.9s var(--ease-organic),
              transform 0.9s var(--ease-organic);
}

[data-reveal-scroll].is-visible {
  opacity: 1;
  filter: blur(0);
  transform: none;
}

.timeline__item::before {
  content: counter(timeline-step);
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background-image: var(--gradient-brand);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--color-white);
}

.timeline__item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(1rem - 1px);
  top: 2rem;
  bottom: 0;
  width: 2px;
  background-color: rgba(0, 0, 0, 0.15);
}

@media (prefers-reduced-motion: reduce) {
  .timeline__item,
  [data-reveal-scroll] {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
  }
}

.timeline__title {
  margin: 0 0 0.4em;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1rem, 0.92rem + 0.35vw, 1.2rem);
  letter-spacing: -0.25em;
  text-transform: uppercase;

  background-image: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.timeline__text {
  margin: 0;
  color: rgba(0, 0, 0, 0.72);
  font-size: clamp(0.88rem, 0.82rem + 0.2vw, 1rem);
  line-height: 1.6;
}

.guarantee__closing {
  margin: clamp(2rem, 1.6rem + 2vw, 3rem) 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.95rem, 0.88rem + 0.3vw, 1.15rem);
  letter-spacing: -0.25em;

  background-image: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* ---------- 5f. Seção 06 — Contato ---------- */
.cta {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 2rem + 5vw, 6rem);
  padding-bottom: clamp(5rem, 3rem + 10vw, 10rem);
  background-color: var(--color-bg);
}

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

.cta__content { max-width: 46rem; }

.cta__text {
  margin: 0 0 0.85em;
  color: var(--color-text-muted);
  font-size: clamp(0.95rem, 0.88rem + 0.35vw, 1.1rem);
  line-height: 1.65;
}

.cta__text strong {
  color: var(--color-white);
  font-weight: 700;
}

.cta__text--muted { opacity: 0.75; }

.cta__button { margin-top: clamp(0.5rem, 0.3rem + 1vw, 1.25rem); }

.cta__note {
  margin: clamp(0.75rem, 0.5rem + 1vw, 1.1rem) 0 0;
  font-family: var(--font-display);
  font-size: 0.85rem;

  background-image: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.cta__note strong {
  font-weight: 900;
}

/* ---------- 5g. Rodapé ---------- */
.footer {
  background-color: var(--color-bg);
  padding-block: clamp(2.5rem, 1.8rem + 3.5vw, 4rem) clamp(1.5rem, 1rem + 2vw, 2.5rem);
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.75rem, 1.4rem + 1.6vw, 3rem);
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem);
}

.footer__heading {
  margin: 0 0 clamp(0.9rem, 0.7rem + 0.8vw, 1.4rem);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 0.92rem + 0.6vw, 1.5rem);
  letter-spacing: -0.25rem;
  text-transform: uppercase;

  background-image: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}


.footer__list {
  display: flex;
  flex-direction: column;
  gap: 0.65em;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--color-text-muted);
  font-size: clamp(0.85rem, 0.8rem + 0.2vw, 0.95rem);
}

.footer__list a { transition: color 0.25s var(--ease-out); }
.footer__list a:hover,
.footer__list a:focus-visible { color: var(--color-accent); }

.footer__link--underline { text-decoration: underline; text-underline-offset: 0.2em; }

.footer__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.footer__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  transition: color 0.25s var(--ease-out),
              transform 0.25s var(--ease-out);
}

.footer__social:hover,
.footer__social:focus-visible {
  color: var(--color-accent);
  transform: translateY(-2px);
}

.footer__bottom {
  padding-top: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.footer__bottom p {
  margin: 0;
  color: var(--color-text-muted);
  opacity: 0.7;
  font-size: 0.78rem;
}

/* ---------- 6. Responsivo ---------- */

/* Tablet */
@media (max-width: 900px) {
  .hero__image { object-position: center 18%; }

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

@media (max-width: 620px) {
  .cards { grid-template-columns: 1fr; }

  /* Deixa os spans do título fluírem como texto normal, exceto o último
     que quebra pra própria linha (ex.: "Pra quando pesquisam" / "seu nome") */
  .card__title { display: block; font-size: 1.55rem; }
  .card__title span:last-child { display: block; }
}

/* Mobile */
@media (max-width: 600px) {
  .giant-text { display: none; }

  .guarantee { padding-top: 4.5rem; }
  .guarantee__top { flex-direction: column; }
  .guarantee__media { display: none; }
  .guarantee__inner { max-width: none; }

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

  .hero {
    padding-block: clamp(4rem, 14vh, 7rem);
  }

  .hero__inner { gap: var(--space-sm); }

  .hero__eyebrow { letter-spacing: 0.6em; text-indent: 0.6em; }

  .section-heading { letter-spacing: -0.30em; }

  .hero__title { line-height: 1.06; }

  .hero__text { max-width: 40ch; font-size: 0.85rem; }

  .hero__image {
    object-position: center 12%;
    transform: scale(1.1);
  }

  .hero__scrim {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.42) 34%, rgba(0, 0, 0, 0.9) 100%);
  }

  .btn { width: min(100%, 320px); justify-content: center; }

  .why__cta,
  .cta__button {
    width: auto;
    max-width: 100%;
    font-size: 0.72rem;
    padding: 0.65em 1.15em;
  }
}

/* Telas muito largas */
@media (min-width: 1600px) {
  :root { --container-max: 1280px; }
}

/* Paisagem em telas baixas */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: auto; padding-block: 4rem; }
  .hero__inner { gap: var(--space-xs); }
}

/* ---------- 6b. Botão flutuante de WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  right: clamp(1rem, 4vw, 1.75rem);
  bottom: clamp(1rem, 4vw, 1.75rem);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  color: var(--color-white);
  background-image: linear-gradient(
    325deg,
    color-mix(in srgb, var(--color-accent) 55%, white) 0%,
    var(--color-accent) 55%,
    color-mix(in srgb, var(--color-accent) 55%, white) 90%
  );
  box-shadow:
    0 0 20px rgba(217, 149, 89, 0.45),
    0 8px 20px -6px rgba(0, 0, 0, 0.55);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  transform: scale(1.08);
  box-shadow:
    0 0 26px rgba(217, 149, 89, 0.6),
    0 10px 24px -6px rgba(0, 0, 0, 0.6);
}

@media (max-width: 480px) {
  .whatsapp-float { width: 3.1rem; height: 3.1rem; }
  .whatsapp-float svg { width: 24px; height: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float { transition: none; }
}

/* ---------- 7. Acessibilidade e preferências ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] { opacity: 1; filter: none; transform: none; }
  .hero__image { transform: scale(1.06); }
}

@media (prefers-contrast: more) {
  .hero__text { color: var(--color-white); }
  .hero__scrim { background: rgba(0, 0, 0, 0.7); }
}

@media print {
  .hero { min-height: auto; color: #000; }
  .hero__media { display: none; }
  body { background: #fff; color: #000; }
  .hero__title { -webkit-text-fill-color: #000; color: #000; }
}
