/* Cordas Prime – landing page. Cores tiradas do logo: dourado #C9A24B, azul-marinho #0F1B3D, fundo #F7F6F2. */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../assets/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --bg: #F7F6F2;
  --bg-2: #E9ECF3;
  --ink: #0F1B3D;
  --ink-2: #4B5570;
  --orange: #C9A24B;
  --orange-d: #8A6A1F;
  --white: #fff;
  --pad: 28px;
  --max: 1120px;
  --arc: 44% 0 0 0;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 700px) { :root { --pad: 56px; --arc: 50% 0 0 0; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  position: relative;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.55 "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.cta :focus-visible, .trust :focus-visible { outline-color: var(--orange); }

h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -.03em; line-height: 1; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 9.4vw, 6.4rem); line-height: .94; letter-spacing: -.04em; }
h2 { font-size: clamp(2rem, 5.6vw, 3.9rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.02em; }
p { margin: 0; }
.lead { font-size: clamp(1.125rem, 2.2vw, 1.4rem); line-height: 1.45; color: var(--ink-2); max-width: 34ch; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--pad) * 2); margin-inline: auto; padding-inline: var(--pad); position: relative; z-index: 2; }
.section { padding-block: clamp(88px, 14vw, 170px); position: relative; }

/* ---------- Corda ---------- */
.rope {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 1; pointer-events: none; overflow: hidden;
}
.js .rope #ropeGroup { visibility: hidden; }
.js .rope.is-ready #ropeGroup { visibility: visible; }
.rope { contain: strict; }
@media (max-width: 699px) {
  .rope { filter: none; }
  .hero__photo img { transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .8em 1.4em; border-radius: 999px;
  background: var(--orange); color: var(--ink);
  font-weight: 700; font-size: 1rem; line-height: 1.1; text-decoration: none;
  transition: transform .2s var(--ease), background-color .2s;
}
.btn:hover { background: #D8B45E; transform: translateY(-2px); }
.btn--sm { padding: .65em 1.15em; font-size: .95rem; }
.btn--lg { padding: 1em 1.7em; font-size: 1.1rem; }
.btn--xl { padding: 1.15em 1.8em; font-size: clamp(1.05rem, 3.6vw, 1.5rem); max-width: 100%; text-align: center; }
.ico { width: 1.35em; height: 1.35em; flex: none; }
.link { font-weight: 700; text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.link:hover { text-decoration-color: var(--ink); }

/* ---------- Topo ---------- */
.top { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; padding: 14px var(--pad); max-width: calc(var(--max) + var(--pad) * 2); margin-inline: auto; }
.brand img { width: auto; height: 52px; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(28px, 6vw, 80px) clamp(72px, 10vw, 130px); }
.hero__grid { display: grid; gap: 40px; align-items: center; }
.hero__text { display: grid; gap: 26px; justify-items: start; }
.hero__photo {
  position: relative; overflow: hidden; border-radius: var(--arc);
  aspect-ratio: 4 / 5; max-width: 440px; width: 100%; justify-self: end; background: var(--bg-2);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.35fr 1fr; gap: 56px; }
}

/* ---------- Faixa de confiança (cobre a corda) ---------- */
.trust { position: relative; z-index: 3; background: var(--ink); color: var(--white); padding-block: 34px; }
.trust .wrap { z-index: auto; }
.trust__grid { display: grid; gap: 14px 40px; align-items: center; }
.trust__item { display: flex; align-items: baseline; gap: .5em; font-size: clamp(1.05rem, 2.4vw, 1.3rem); }
.trust__item strong { font-weight: 700; }
.trust__item--main strong { font-size: clamp(2.6rem, 7vw, 4.2rem); line-height: .9; letter-spacing: -.04em; color: var(--orange); font-variant-numeric: tabular-nums; min-width: 1.4ch; }
.trust__cta { display: none; }
@media (min-width: 900px) {
  .trust__grid { grid-template-columns: auto 1fr 1fr auto; }
  .trust__cta { display: block; }
}

/* ---------- Tipos ---------- */
.types h2 { margin-bottom: clamp(48px, 8vw, 96px); }
.type { display: grid; gap: 22px; margin-bottom: clamp(64px, 9vw, 110px); }
.type:last-child { margin-bottom: 0; }
.type__body { display: grid; gap: 12px; justify-items: start; }
.type__body p { color: var(--ink-2); max-width: 36ch; }
@media (min-width: 800px) {
  .type { width: 56%; }
  .type--r { margin-left: auto; }
}

.type__img { width: 100%; height: auto; border-radius: 40px 0 0 0; background: #E9ECF3; }
.type__img--photo { aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- Galeria ---------- */
.gallery__grid { list-style: none; margin: clamp(36px, 6vw, 64px) 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.gallery__grid li { aspect-ratio: 3 / 4; overflow: hidden; border-radius: 28px 0 0 0; background: var(--bg-2); }
.gallery__grid img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 700px) { .gallery__grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (min-width: 1000px) {
  .gallery__grid { grid-template-columns: repeat(4, 1fr); }
  .gallery__grid li:nth-child(4n+2), .gallery__grid li:nth-child(4n+4) { margin-top: 40px; }
}

/* ---------- Cores ---------- */
.colors .lead { margin-top: 18px; }
.swatches { list-style: none; margin: clamp(36px, 6vw, 64px) 0 0; padding: 0; display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .swatches { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .swatches { grid-template-columns: repeat(4, 1fr); gap: 20px 24px; } }
.swatch {
  all: unset; box-sizing: border-box; cursor: pointer; display: grid; gap: 8px; width: 100%;
  grid-template-columns: 1fr; padding: 0 0 14px; border-bottom: 2px solid transparent;
}
.swatch img { width: 100%; height: 44px; object-fit: cover; border-radius: 999px; transition: transform .25s var(--ease); }
.swatch:hover img { transform: scaleX(1.02); }
.swatch__name { font-weight: 700; }
.swatch[aria-pressed="true"] { border-bottom-color: var(--ink); }
.swatch:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.colors__ask { margin-top: clamp(36px, 5vw, 56px); font-size: clamp(1.2rem, 3vw, 1.6rem); font-weight: 600; }

/* ---------- Aplicações / Para quem / Passos / Sobre ---------- */
.whom__list { list-style: none; margin: clamp(32px, 6vw, 64px) 0 0; padding: 0; }
.whom__list li { font-size: clamp(1.8rem, 6vw, 3.6rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.12; padding-block: .22em; border-top: 2px solid var(--ink); }
.whom__list li:last-child { border-bottom: 2px solid var(--ink); }

.steps__list { list-style: none; margin: clamp(32px, 6vw, 64px) 0 0; padding: 0; display: grid; gap: 28px; counter-reset: s; }
.steps__list li { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; }
.steps__n { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: var(--orange); font-weight: 800; font-size: 1.5rem; }
.steps__list p { font-size: clamp(1.3rem, 3.4vw, 2rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
@media (min-width: 900px) {
  .steps__list { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .steps__list li { grid-template-columns: 1fr; gap: 18px; align-items: start; }
}

.about__grid { display: grid; gap: 28px; align-items: end; }
.about__num { display: flex; align-items: baseline; gap: .25em; }
.about__num strong { font-size: clamp(6rem, 22vw, 13rem); line-height: .8; letter-spacing: -.06em; color: var(--orange-d); font-variant-numeric: tabular-nums; }
.about__num span { font-size: clamp(1.6rem, 5vw, 3rem); font-weight: 700; }
.about h2 { margin-bottom: 18px; }
@media (min-width: 900px) { .about__grid { grid-template-columns: auto 1fr; gap: 72px; } }

/* ---------- Chamada final ---------- */
.cta { position: relative; background: var(--ink); color: var(--white); padding-block: clamp(96px, 14vw, 170px); text-align: center; }
.cta__inner { display: grid; justify-items: center; }
.loop-zone { margin-block: clamp(150px, 14vw, 190px); padding-inline: 34px; max-width: 100%; display: grid; justify-items: center; }
.cta .btn--xl.pulse { animation: pulse 1.9s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.045); } }
.cta__phone { font-size: 1.2rem; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Rodapé ---------- */
.foot { position: relative; z-index: 2; padding-block: 64px 120px; }
.foot__grid { display: grid; gap: 36px; }
.foot img { width: auto; height: 64px; }
.foot address { font-style: normal; display: grid; gap: 14px; }
.foot a { text-underline-offset: 4px; }
.foot__links { line-height: 1.9; }
.foot__copy { margin-top: 48px; color: var(--ink-2); font-size: .9rem; }
@media (min-width: 800px) { .foot__grid { grid-template-columns: 1fr 1.4fr 1fr; } .foot { padding-bottom: 80px; } }

/* ---------- Botão flutuante ---------- */
.fab {
  position: fixed; z-index: 10; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: .5em; height: 60px; min-width: 60px; padding: 0 17px;
  border-radius: 999px; background: var(--orange); color: var(--ink); text-decoration: none; font-weight: 700;
  box-shadow: 0 6px 20px rgba(15, 27, 61, .28);
}
.fab .ico { width: 26px; height: 26px; }
.fab span { display: none; }
@media (min-width: 700px) { .fab span { display: inline; } .fab { padding: 0 22px 0 18px; } }

/* ---------- Revelações (só com JS e sem movimento reduzido) ---------- */
.js [data-reveal], .js [data-reveal-rope] { opacity: 0; transform: translateY(28px); }
.js .no-anim [data-reveal], .no-anim [data-reveal], .no-anim [data-reveal-rope] { opacity: 1 !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero__photo img { transform: none; }
}
