/* ==========================================================================
   CLEVEN · Holding — clevennetwork.com
   ========================================================================== */

:root {
  /* cor e tipografia vêm de ../shared/tokens.css */
  --bg: var(--cleven-bg);
  --surface: var(--cleven-surface);
  --ink: var(--cleven-ink);
  --muted: var(--cleven-muted);
  --line: var(--cleven-line);
  --label: var(--cleven-silver);

  --metal: var(--cleven-metal);

  --font: var(--cleven-font);
  --mono: var(--cleven-font-mono);

  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --section-y: clamp(88px, 12vw, 168px);

  --ease: var(--cleven-ease);
}

/* ---------- reset ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

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

/* ---------- acessibilidade ---------- */

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

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--gutter);
  z-index: 500;
  padding: 12px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  text-decoration: none;
  transition: top 180ms var(--ease);
}

.skip-link:focus {
  top: 16px;
}

.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;
}

/* ---------- primitivos ---------- */

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

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

.eyebrow {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--label);
}

.section-title {
  font-size: clamp(30px, 4.4vw, 52px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-top: 22px;
  max-width: 16ch;
}

/* fio de metal — a "base" da marca, usado com parcimônia */
.rule-metal {
  height: 1px;
  border: 0;
  margin: 0;
  background: var(--metal);
  opacity: 0.55;
}

/* ---------- header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 6, 6, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
}

.logo__mark {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--metal);
  flex: none;
}

.header__tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- hero ---------- */

.hero {
  padding-block: clamp(96px, 17vw, 210px) clamp(72px, 10vw, 130px);
}

.hero__title {
  font-size: clamp(44px, 8.6vw, 104px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.96;
  margin-top: 28px;
  max-width: 13ch;
}

/* segunda linha em prata: "muitos negócios" é o que a base sustenta */
.hero__title em {
  font-style: normal;
  background: var(--metal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  margin-top: clamp(36px, 5vw, 60px);
  margin-left: auto;
  max-width: 52ch;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.7;
}

/* ---------- caminhos (foco principal) ---------- */

.paths__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 40px;
}

.paths__note {
  max-width: 34ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

/* as colunas nascem da mesma base e sobem alturas diferentes */
.paths__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr) 0.62fr;
  align-items: end;
  gap: 14px;
  margin-top: clamp(52px, 7vw, 86px);
}

.path {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: 26px 24px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  /* sem topo (o topo é o acabamento) e sem base: a base é o fio de metal */
  border-top: 0;
  border-bottom: 0;
  text-decoration: none;
  transition: background 300ms var(--ease), transform 300ms var(--ease),
    border-color 300ms var(--ease);
}

/* topo acabado (metal) vs. topo em obra (tracejado) */
.path::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--metal);
  opacity: 0.75;
  transition: opacity 300ms var(--ease);
}

.path--live {
  min-height: 340px;
}

.path--soon {
  min-height: 250px;
  background: transparent;
}

.path--soon::before {
  height: 0;
  border-top: 1px dashed #2e2e2e;
  background: none;
  opacity: 1;
}

.path--more {
  min-height: 150px;
  padding-inline: 20px;
  background: transparent;
}

.path--more .path__name {
  font-size: 19px;
  letter-spacing: -0.015em;
  padding-top: 26px;
}

.path--more .path__desc {
  font-size: 13px;
}

.path--more::before {
  height: 0;
  border-top: 1px dashed #262626;
  background: none;
  opacity: 1;
}

.path--more .path__status,
.path--more .path__desc {
  color: #7a7a7a;
}

.path--more .path__name {
  color: #8a8a8a;
}

.path--live:hover,
.path--live:focus-visible {
  background: #141414;
  border-color: #2a2a2a;
  transform: translateY(-4px);
}

.path--live:hover::before,
.path--live:focus-visible::before {
  opacity: 1;
}

.path__status {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
}

.path--soon .path__status {
  color: #8f8f8f;
}

.path__name {
  margin-top: auto;
  padding-top: 40px;
  font-size: clamp(21px, 1.9vw, 27px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.path--soon .path__name {
  color: #a0a0a0;
}

.path__brand {
  display: block;
  margin-bottom: 9px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.path--soon .path__brand,
.path--more .path__brand {
  color: #7a7a7a;
}

.path__desc {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}

.path--soon .path__desc {
  color: #7a7a7a;
}

.path__action {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.path__action span {
  transition: transform 300ms var(--ease);
}

.path--live:hover .path__action span,
.path--live:focus-visible .path__action span {
  transform: translateX(5px);
}

/* a base compartilhada por todas as frentes */
.paths__base {
  margin-top: 0;
}

/* ---------- fundadores ---------- */

.founders__intro {
  margin-top: 22px;
  max-width: 44ch;
  color: var(--muted);
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.6;
}

.founder {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  padding-block: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line);
}

.founder:first-of-type {
  margin-top: clamp(52px, 7vw, 86px);
}

.founder__portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}

.founder__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* o preto e branco, e a cor no hover, vivem em shared/fotos.css */

/* inicial por trás da foto — aparece se a imagem faltar */
.founder__initial {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 64px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: #2a2a2a;
}

.founder__portrait img {
  position: relative;
  z-index: 1;
}

.founder__name {
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.founder__role {
  display: block;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--label);
}

.founder__bio {
  margin-top: 22px;
  max-width: 62ch;
  color: var(--muted);
  line-height: 1.75;
}

/* ---------- o que construímos ---------- */

.build {
  border-top: 1px solid var(--line);
}

.build__body {
  margin-top: clamp(40px, 5vw, 64px);
  max-width: 66ch;
}

.build__body p + p {
  margin-top: 26px;
}

.build__body p {
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.75;
}

.build__statement {
  margin-top: clamp(52px, 6vw, 78px);
  max-width: 24ch;
  font-size: clamp(26px, 3.6vw, 44px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--ink);
}

/* ---------- contato ---------- */

.contact {
  border-top: 1px solid var(--line);
}

.contact__title {
  margin-top: 22px;
  font-size: clamp(30px, 4.4vw, 52px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.08;
  max-width: 15ch;
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(36px, 4.5vw, 54px);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 260ms var(--ease), border-color 260ms var(--ease),
    color 260ms var(--ease);
}

.btn--primary {
  background: var(--ink);
  color: #060606;
  border-color: var(--ink);
}

.btn--primary:hover {
  background: #ffffff;
  border-color: #ffffff;
}

.btn--ghost:hover {
  border-color: #3a3a3a;
  background: var(--surface);
}

.contact__direct {
  margin-top: 30px;
  color: var(--muted);
  font-size: 15px;
}

.contact__direct a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid #333;
  padding-bottom: 2px;
  transition: border-color 220ms var(--ease);
}

.contact__direct a:hover {
  border-color: var(--ink);
}

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding-block: 40px 48px;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}

.footer__meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer__cnpj {
  display: inline-block;
  margin-top: 6px;
  text-transform: none;
  letter-spacing: 0.04em;
  color: var(--muted-2, #6d6d6d);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.footer__legal a {
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  transition: color 200ms var(--ease);
}

.footer__legal a:hover,
.footer__legal a:focus-visible {
  color: var(--ink);
}

/* ---------- bolinha que segue o cursor ---------- */

/* a bolinha do cursor vive em ../shared/cursor.css + cursor.js */

/* ---------- entrada em cena ---------- */

/* o conteúdo só se esconde se houver JS para revelá-lo de volta */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 760ms var(--ease), transform 760ms var(--ease);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* abertura do hero, escalonada, depois que o loader sai */
.js[data-cleven="ready"] .hero .reveal {
  transition-delay: var(--d, 0ms);
}

/* ---------- responsivo ---------- */

@media (max-width: 1080px) {
  .paths__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .paths__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .path--live,
  .path--soon,
  .path--more {
    min-height: 230px;
  }

  .founder {
    grid-template-columns: 200px 1fr;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }

  .paths__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .path,
  .path--live,
  .path--soon,
  .path--more {
    min-height: 0;
  }

  .path__name {
    padding-top: 28px;
  }

  .founder {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .founder__portrait {
    max-width: 220px;
  }

  .hero__lead {
    margin-left: 0;
  }

  .header__tag {
    display: none;
  }
}

/* ---------- sem movimento ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

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