/* ============================================================
   BRAND — All in One Agency
   Paleta oficial: laranja #b94e0e · creme #f2e3d3 · preto #171310
   ============================================================ */

:root {
  --orange: #b94e0e;
  --orange-deep: #8f3c0a;
  --cream: #f2e3d3;
  --cream-soft: #f7ecdf;
  --ink: #171310;
  --ink-soft: #241d18;
  --radius-xl: clamp(28px, 4vw, 56px);
  --pad-x: clamp(20px, 5vw, 80px);
  --font: "Archivo", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: auto; }

body {
  font-family: var(--font);
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

::selection { background: var(--orange); color: var(--cream); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

em { font-style: italic; }
strong { font-weight: 700; }

/* ===== Smooth scroll structure ===== */
body.has-smooth #smooth-wrapper {
  position: fixed;
  inset: 0;
  overflow: hidden;
}
#smooth-content { will-change: transform; }

/* ===== Grain ===== */
#grain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.06;
  mix-blend-mode: multiply;
}

/* ===== Preloader ===== */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--orange);
  z-index: 10000;
  display: grid;
  place-items: center;
  transition: clip-path 0.9s cubic-bezier(0.77, 0, 0.18, 1);
  clip-path: inset(0 0 0% 0);
}
.preloader__logo {
  width: min(46vw, 340px);
  animation: pulse 1.4s ease-in-out infinite;
}
.preloader.done {
  clip-path: inset(0 0 100% 0);
  pointer-events: none;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.65; transform: scale(0.97); }
}

/* ===== Nav ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px var(--pad-x);
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}
.nav__logo { display: flex; align-items: center; }
.nav__logo-img { height: 30px; width: auto; }
.nav__logo-img--dark { display: none; }

.nav__links {
  display: flex;
  gap: clamp(14px, 2.4vw, 34px);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cream);
  transition: color 0.4s ease;
}
.nav__links a { position: relative; padding: 4px 0; }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav__cta {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  white-space: nowrap;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.nav__cta:hover { transform: scale(1.05); background: var(--orange); color: var(--cream); }

/* Nav quando rola (fundo creme) */
.nav.is-scrolled {
  background: color-mix(in srgb, var(--cream) 85%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(23, 19, 16, 0.08);
  padding: 12px var(--pad-x);
}
.nav.is-scrolled .nav__links { color: var(--ink); }
.nav.is-scrolled .nav__logo-img--light { display: none; }
.nav.is-scrolled .nav__logo-img--dark { display: block; }
.nav.is-scrolled .nav__cta { background: var(--orange); color: var(--cream); }

/* ===== Botões ===== */
.btn {
  display: inline-block;
  font-weight: 700;
  font-size: clamp(14px, 1.2vw, 16px);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 18px 34px;
  border-radius: 999px;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s, color 0.3s, border-color 0.3s;
}
.btn:hover { transform: translateY(-3px) scale(1.03); }
.btn--cream { background: var(--cream); color: var(--ink); }
.btn--cream:hover { background: #fff; }
.btn--orange { background: var(--orange); color: var(--cream); }
.btn--orange:hover { background: #d55d15; }
.btn--ghost {
  background: transparent;
  color: var(--cream);
  border: 1.5px solid rgba(242, 227, 211, 0.35);
}
.btn--ghost:hover { border-color: var(--cream); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100svh;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  overflow: hidden;
  background: var(--ink);
  display: flex;
  align-items: flex-end;
}
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23,19,16,0.25) 0%, rgba(23,19,16,0) 35%, rgba(23,19,16,0.55) 100%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 120px var(--pad-x) clamp(48px, 7vh, 90px);
}
.hero__title { margin-bottom: clamp(30px, 5vh, 60px); }
.hero__logo {
  width: min(88vw, 1100px);
  filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.35));
}
.hero__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: clamp(20px, 4vw, 60px);
}
.hero__tagline {
  color: var(--cream);
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  line-height: 1.3;
}
.hero__tagline-sub {
  display: block;
  font-size: 0.55em;
  font-weight: 500;
  letter-spacing: 0.22em;
  opacity: 0.7;
}
.hero__desc {
  color: rgba(242, 227, 211, 0.85);
  max-width: 46ch;
  font-size: clamp(15px, 1.3vw, 18px);
}
.hero__cta { margin-left: auto; }

.hero__scroll-hint {
  position: absolute;
  z-index: 2;
  right: var(--pad-x);
  top: 46vh;
  color: rgba(242, 227, 211, 0.7);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero__scroll-line {
  width: 1px;
  height: 60px;
  background: rgba(242, 227, 211, 0.4);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  left: 0; top: -100%;
  width: 100%; height: 100%;
  background: var(--cream);
  animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { top: -100%; }
  60%, 100% { top: 100%; }
}

/* ===== Seções genéricas ===== */
.section { padding: clamp(90px, 14vh, 170px) var(--pad-x); }

.section__kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: clamp(20px, 3vh, 36px);
}
.section__kicker--light { color: var(--cream); opacity: 0.75; }

.section__title {
  font-size: clamp(42px, 7.5vw, 110px);
  font-weight: 800;
  font-stretch: 105%;
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin-bottom: clamp(28px, 5vh, 60px);
}
.section__title--light { color: var(--cream); }
.section__title em { color: var(--orange); }

.section--dark {
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius-xl);
  margin: clamp(20px, 3vw, 40px) clamp(10px, 1.5vw, 24px);
  overflow: hidden;
}

/* ===== SOBRE ===== */
.about__title {
  font-size: clamp(34px, 5.4vw, 84px);
  font-weight: 800;
  font-stretch: 103%;
  line-height: 1.04;
  letter-spacing: -0.025em;
  max-width: 20ch;
}
.about__title em { color: var(--orange); font-style: normal; }
.about__row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 6vw, 120px);
  margin-top: clamp(40px, 7vh, 90px);
  align-items: flex-start;
}
.about__side {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(23, 19, 16, 0.55);
  flex: 0 0 auto;
}
.about__text {
  font-size: clamp(18px, 1.8vw, 26px);
  line-height: 1.55;
  max-width: 52ch;
  flex: 1 1 400px;
}
.about__text strong { color: var(--orange); }

/* ===== Marquee ===== */
.marquee {
  overflow: hidden;
  padding: clamp(10px, 2vh, 26px) 0;
  border-top: 1.5px solid rgba(23, 19, 16, 0.12);
  border-bottom: 1.5px solid rgba(23, 19, 16, 0.12);
  white-space: nowrap;
}
.marquee__track {
  display: inline-flex;
  animation: marquee 24s linear infinite;
}
.marquee__track span {
  font-size: clamp(48px, 8vw, 120px);
  font-weight: 800;
  font-stretch: 108%;
  letter-spacing: -0.03em;
  color: var(--ink);
  padding-right: 0.35em;
}
.marquee__track span i {
  font-style: normal;
  color: var(--orange);
  font-size: 0.4em;
  vertical-align: super;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== SERVIÇOS ===== */
.services__intro {
  font-size: clamp(17px, 1.6vw, 24px);
  max-width: 56ch;
  margin-bottom: clamp(24px, 4vh, 44px);
}
.services__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(48px, 8vh, 100px);
}
.chip {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1.5px solid rgba(23, 19, 16, 0.35);
  white-space: nowrap;
}
.chip--fill { background: var(--orange); border-color: var(--orange); color: var(--cream); }
.chip--light { border-color: rgba(242, 227, 211, 0.35); color: var(--cream); }
.chip--accent { background: rgba(185, 78, 14, 0.25); border-color: transparent; }

.services__list { display: flex; flex-direction: column; }
.service-card {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: clamp(24px, 5vw, 90px);
  padding: clamp(36px, 6vh, 64px) 0;
  border-top: 1.5px solid rgba(23, 19, 16, 0.15);
  transition: background 0.4s ease;
}
.service-card:last-child { border-bottom: 1.5px solid rgba(23, 19, 16, 0.15); }
.service-card__num {
  font-size: clamp(15px, 1.4vw, 20px);
  font-weight: 700;
  color: var(--orange);
  padding-top: 0.5em;
}
.service-card h3 {
  font-size: clamp(26px, 3.6vw, 54px);
  font-weight: 800;
  font-stretch: 103%;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  max-width: 22ch;
  transition: color 0.3s ease;
}
.service-card:hover h3 { color: var(--orange); }
.service-card p {
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.65;
  max-width: 68ch;
  color: rgba(23, 19, 16, 0.8);
  grid-column: 2;
}

.services__promise {
  margin-top: clamp(60px, 10vh, 120px);
  background: var(--orange);
  color: var(--cream);
  border-radius: var(--radius-xl);
  padding: clamp(40px, 7vh, 80px) clamp(28px, 5vw, 80px);
}
.services__promise-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  opacity: 0.8;
  margin-bottom: 20px;
}
.services__promise-text {
  font-size: clamp(26px, 3.6vw, 54px);
  font-weight: 800;
  font-stretch: 103%;
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 26ch;
}

/* ===== METODOLOGIA ===== */
.method__inner, .presence__inner, .footer__inner {
  padding: clamp(90px, 13vh, 160px) var(--pad-x);
}
.method__intro {
  font-size: clamp(17px, 1.6vw, 24px);
  max-width: 54ch;
  opacity: 0.9;
  margin-bottom: clamp(50px, 9vh, 110px);
}
.method__intro strong { color: var(--orange); filter: brightness(1.5); }

.method__steps { list-style: none; }
.method-step {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: clamp(24px, 5vw, 80px);
  padding: clamp(30px, 5vh, 52px) 0;
  border-top: 1px solid rgba(242, 227, 211, 0.16);
}
.method-step__num {
  font-size: clamp(40px, 6vw, 90px);
  font-weight: 800;
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(242, 227, 211, 0.5);
  min-width: 1.2em;
}
.method-step h3 {
  font-size: clamp(22px, 2.6vw, 40px);
  font-weight: 800;
  font-stretch: 103%;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.method-step p {
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.6;
  max-width: 62ch;
  opacity: 0.78;
}
.method-step:hover .method-step__num {
  color: var(--orange);
  -webkit-text-stroke: 0;
  transition: color 0.4s ease;
}

.method__outro {
  margin-top: clamp(50px, 8vh, 100px);
  font-size: clamp(20px, 2.4vw, 36px);
  font-weight: 500;
  line-height: 1.35;
  max-width: 40ch;
}
.method__outro em { color: var(--orange); filter: brightness(1.4); font-style: normal; font-weight: 800; }

/* ===== CASES ===== */
.case {
  border: 1.5px solid rgba(23, 19, 16, 0.15);
  border-radius: var(--radius-xl);
  padding: clamp(32px, 6vh, 70px) clamp(24px, 4.5vw, 70px);
  margin-bottom: clamp(20px, 3vh, 36px);
  background: var(--cream-soft);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.case:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 70px -30px rgba(23, 19, 16, 0.3);
}
.case__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(20px, 3vh, 32px);
}
.case__head h3 {
  font-size: clamp(30px, 4.5vw, 64px);
  font-weight: 800;
  font-stretch: 105%;
  letter-spacing: -0.025em;
}
.case__text {
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.6;
  max-width: 65ch;
  color: rgba(23, 19, 16, 0.85);
  margin-bottom: clamp(24px, 4vh, 40px);
}
.case__tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.case__tags li {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(185, 78, 14, 0.12);
  color: var(--orange-deep);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: clamp(20px, 3vw, 40px);
}
.stat { border-top: 2px solid var(--orange); padding-top: 18px; }
.stat__value {
  display: block;
  font-size: clamp(40px, 5.5vw, 84px);
  font-weight: 800;
  font-stretch: 108%;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--orange);
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(23, 19, 16, 0.6);
  line-height: 1.5;
}

/* ===== PRESENÇA ===== */
.presence__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 900px;
}
.presence .chip { font-size: clamp(13px, 1.2vw, 16px); padding: 12px 24px; }

/* ===== TIME ===== */
.team__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: clamp(28px, 4vw, 60px);
}
.member__visual {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(120% 120% at 20% 15%, #d86a24 0%, var(--orange) 40%, var(--orange-deep) 100%);
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  overflow: hidden;
}
.member__visual--alt {
  background:
    radial-gradient(120% 120% at 80% 20%, #3a2c22 0%, var(--ink) 55%, #000 100%);
}
.member__visual img {
  grid-area: 1 / 1;
  align-self: stretch;
  justify-self: stretch;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-xl);
  display: block;
}
.member__visual span {
  font-size: clamp(80px, 10vw, 160px);
  font-weight: 800;
  font-stretch: 110%;
  letter-spacing: -0.04em;
  color: var(--cream);
  opacity: 0.9;
}
.member h3 {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 800;
  font-stretch: 105%;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.member__role {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange);
  margin-bottom: 18px;
  max-width: 46ch;
}
.member__bio {
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.65;
  color: rgba(23, 19, 16, 0.8);
  max-width: 60ch;
}

/* ===== MANIFESTO ===== */
.manifesto { text-align: center; }
.manifesto__quote {
  font-size: clamp(28px, 4.6vw, 68px);
  font-weight: 800;
  font-stretch: 103%;
  line-height: 1.1;
  letter-spacing: -0.025em;
  max-width: 24ch;
  margin: 0 auto clamp(24px, 4vh, 40px);
  color: var(--orange);
}
.manifesto__text {
  font-size: clamp(16px, 1.5vw, 21px);
  line-height: 1.6;
  max-width: 58ch;
  margin: 0 auto;
  color: rgba(23, 19, 16, 0.8);
}

/* ===== FOOTER ===== */
.footer { margin-bottom: 0; border-radius: var(--radius-xl) var(--radius-xl) 0 0; margin-left: 0; margin-right: 0; }
.footer__title {
  font-size: clamp(34px, 5.6vw, 88px);
  font-weight: 800;
  font-stretch: 103%;
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 22ch;
  margin-bottom: clamp(36px, 6vh, 70px);
}
.footer__title em { color: var(--orange); filter: brightness(1.35); font-style: normal; }
.footer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: clamp(70px, 12vh, 140px);
}
.footer__logo {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto clamp(40px, 6vh, 70px);
  opacity: 0.95;
}
.footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.55;
  border-top: 1px solid rgba(242, 227, 211, 0.15);
  padding-top: 28px;
}

/* ===== WhatsApp float ===== */
.wa-float {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: 9999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--cream);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 34px -8px rgba(185, 78, 14, 0.6);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s;
}
.wa-float:hover { transform: scale(1.12) rotate(8deg); background: #25d366; }
.wa-float::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--orange);
  opacity: 0;
  animation: ping 2.4s ease-out infinite;
}
@keyframes ping {
  0% { transform: scale(0.9); opacity: 0.7; }
  70%, 100% { transform: scale(1.35); opacity: 0; }
}

/* ===== Reveal animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

.split-reveal .sr-line {
  display: block;
  overflow: hidden;
}
.split-reveal .sr-inner {
  display: block;
  transform: translateY(110%);
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.split-reveal.in-view .sr-inner { transform: translateY(0); }

/* ===== Responsivo ===== */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .hero__cta { margin-left: 0; }
  .hero__scroll-hint { display: none; }
  .service-card { grid-template-columns: 1fr; row-gap: 8px; }
  .service-card p { grid-column: 1; }
  .method-step { grid-template-columns: 1fr; row-gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .split-reveal .sr-inner { opacity: 1; transform: none; }
}
