/* ==========================================================================
   VIRA STUDIO — estilos do site
   Identidade: vinho, verde-oliva claro, cinza claro e grafite.
   Tipografia: Montserrat (texto) + Bebas Neue (logotipo e display).
   ========================================================================== */

@property --door {
  syntax: "<angle>";
  inherits: true;
  initial-value: 0deg;
}

:root {
  /* Paleta da marca */
  --wine: #66023c;
  --wine-deep: #4d012d;
  --wine-soft: #7d1a52;
  --olive: #cad183;
  --olive-deep: #b3bb67;
  --paper: #f0f0ee;
  --paper-warm: #f3f4ee;
  --graphite: #2e2e2e;
  --ink: #1f1f1f;
  --white: #ffffff;

  /* Semântica */
  --bg: var(--paper);
  --text: var(--graphite);
  --text-muted: #555553;
  --accent: var(--wine);
  --line: rgba(46, 46, 46, 0.16);

  /* Tipografia */
  --font-sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Bebas Neue", "Oswald", Impact, "Arial Narrow", sans-serif;

  /* Escala espaçosa */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --header-h: 76px;
  --radius-pill: 999px;
  --radius: 6px;

  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --shadow-card: 0 1px 2px rgba(31, 31, 31, 0.06), 0 12px 28px -12px rgba(31, 31, 31, 0.25);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Textura de papel dos guias, bem sutil */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

img {
  height: auto;
}

a {
  color: inherit;
}

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--olive);
  color: var(--wine);
}

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

[data-surface="dark"] :focus-visible,
[data-surface="graphite"] :focus-visible {
  outline-color: var(--olive);
}

.site-header :focus-visible {
  outline-color: currentColor;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--olive);
  color: var(--wine);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-pill);
  transform: translateY(-150%);
  transition: transform 0.2s var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Superfícies (cores de seção) ---------- */
[data-surface="dark"] {
  background: var(--wine);
  color: var(--paper);
}

[data-surface="graphite"] {
  background: var(--graphite);
  color: var(--paper);
}

[data-surface="olive"] {
  background: var(--olive);
  color: var(--graphite);
}

[data-surface="light"] {
  background: var(--paper);
  color: var(--graphite);
}

.section {
  position: relative;
  padding-block: clamp(4.5rem, 10vw, 8rem);
}

/* ---------- Tipografia ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow .brand-mark {
  width: 28px;
  height: auto;
}

/* Títulos no estilo dos guias: caixa alta, dois-pontos e sublinhado */
.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.14em;
  text-wrap: balance;
}

.section-title--wine {
  color: var(--wine);
}

.section-lead {
  margin-top: var(--space-5);
  max-width: 60ch;
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
  line-height: 1.65;
  text-wrap: pretty;
}

.section-head {
  display: grid;
  gap: var(--space-4);
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.section-head--center {
  justify-items: center;
  text-align: center;
}

.section-head--center .section-lead {
  margin-inline: auto;
}

/* ---------- Logotipo ---------- */
.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1;
  text-decoration: none;
  color: currentColor;
}

.logo__word {
  font-family: var(--font-display);
  font-size: 2.1rem;
  letter-spacing: 0.01em;
  line-height: 0.82;
}

.logo__tag {
  margin-top: 2px;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* ---------- Botões ---------- */
.btn {
  --btn-bg: var(--olive);
  --btn-fg: var(--wine);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.9rem 1.6rem;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out),
    border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.btn .icon {
  transition: transform 0.25s var(--ease-out);
}

.btn:hover .icon,
.btn:focus-visible .icon {
  transform: translateX(4px);
}

.btn:active {
  transform: scale(0.98);
}

.btn--olive:hover {
  --btn-bg: var(--paper);
}

.btn--wine {
  --btn-bg: var(--wine);
  --btn-fg: var(--paper);
}

.btn--wine:hover {
  --btn-bg: var(--wine-deep);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: currentColor;
  border-color: currentColor;
}

.btn--ghost:hover {
  --btn-bg: rgba(255, 255, 255, 0.08);
}

[data-surface="light"] .btn--ghost:hover,
[data-surface="olive"] .btn--ghost:hover {
  --btn-bg: rgba(46, 46, 46, 0.06);
}

/* Seta em pílula — o ícone "→" dos guias */
.pill-arrow {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 32px;
  border: 1.5px solid currentColor;
  border-radius: var(--radius-pill);
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out);
}

.pill-arrow .icon {
  width: 18px;
  height: 18px;
  transition: transform 0.25s var(--ease-out);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.text-link:hover {
  text-decoration-color: var(--olive);
}

button.text-link {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  color: var(--paper);
  background: rgba(102, 2, 60, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background-color 0.35s var(--ease-out), color 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out);
}

.site-header .logo {
  color: var(--olive);
  transition: color 0.35s var(--ease-out);
}

/* O logo muda de cor conforme a seção que está por baixo */
.site-header[data-theme="light"] {
  background: rgba(240, 240, 238, 0.92);
  color: var(--graphite);
  box-shadow: 0 1px 0 var(--line);
}

.site-header[data-theme="light"] .logo {
  color: var(--wine);
}

.site-header[data-theme="olive"] {
  background: rgba(202, 209, 131, 0.94);
  color: var(--graphite);
}

.site-header[data-theme="olive"] .logo {
  color: var(--wine);
}

.site-header[data-theme="graphite"] {
  background: rgba(46, 46, 46, 0.94);
}

.site-header[data-theme="graphite"] .logo {
  color: var(--olive);
}

.site-header[data-theme="light"] .btn--nav,
.site-header[data-theme="olive"] .btn--nav {
  --btn-bg: var(--wine);
  --btn-fg: var(--paper);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  height: 100%;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.6vw, 1.75rem);
}

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-out);
}

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

.btn--nav {
  min-height: 44px;
  padding: 0.6rem 1.2rem;
  font-size: 0.75rem;
}

.nav-toggle {
  display: none;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-right: -8px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle .icon {
  width: 26px;
  height: 26px;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

@media (max-width: 1080px) {
  .nav-toggle {
    display: grid;
  }

  /* O backdrop-filter do header vira o bloco de contenção do menu fixo,
     então a altura precisa ser explícita (o header está sempre em top: 0) */
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    gap: var(--space-6);
    padding: var(--space-6) var(--gutter) var(--space-7);
    background: var(--wine);
    color: var(--paper);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out),
      visibility 0s linear 0.25s;
  }

  .nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__link {
    width: 100%;
    min-height: 60px;
    border-bottom: 1px solid rgba(240, 240, 238, 0.18);
    font-size: 1.25rem;
    font-weight: 700;
  }

  .nav__link::after {
    display: none;
  }

  .btn--nav {
    min-height: 56px;
    font-size: 0.875rem;
  }

  .site-header .nav .btn--nav {
    --btn-bg: var(--olive);
    --btn-fg: var(--wine);
  }

  body.nav-open {
    overflow: hidden;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: min(100svh, 920px);
  padding-top: calc(var(--header-h) + clamp(2rem, 6vw, 4rem));
  padding-bottom: clamp(3rem, 6vw, 5rem);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

.hero__quote {
  width: 56px;
  height: auto;
  margin-bottom: var(--space-5);
  color: var(--paper);
}

.hero__title {
  font-size: clamp(2.5rem, 6.2vw, 5.25rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-wrap: balance;
}

.hero__title strong {
  font-weight: 800;
  color: var(--olive);
}

.hero__lead {
  margin-top: var(--space-6);
  max-width: 46ch;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  color: rgba(240, 240, 238, 0.88);
}

.hero__lead strong {
  color: var(--paper);
  font-weight: 700;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4) var(--space-6);
  margin-top: var(--space-7);
}

.hero__visual {
  position: relative;
  display: grid;
  justify-items: center;
}

/* Porta: a "virada de chave" dos guias, desenhada em CSS */
.door {
  --door: 38deg;
  position: relative;
  width: min(340px, 72vw);
  aspect-ratio: 3 / 4.6;
  animation: door-open 1.8s var(--ease-out) 0.5s backwards;
  transition: --door 0.9s var(--ease-out);
}

.hero:has(.btn--olive:hover, .btn--olive:focus-visible) .door {
  --door: 60deg;
}

@keyframes door-open {
  from {
    --door: 0deg;
  }
}

.door__frame {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #fbf8f1 0%, var(--paper) 100%);
  box-shadow: 0 0 120px 10px rgba(240, 240, 238, 0.14);
}

.door__leaf {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #5b0235 0%, #6e0440 60%, #720645 100%);
  transform-origin: left center;
  transform: perspective(1300px) rotateY(var(--door));
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.18);
}

.door__knob {
  position: absolute;
  right: 12%;
  top: 52%;
  width: 11px;
  height: 22px;
}

.door__knob::before,
.door__knob::after {
  content: "";
  position: absolute;
  left: 50%;
  background: #1c0010;
  transform: translateX(-50%);
}

.door__knob::before {
  top: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.door__knob::after {
  top: 7px;
  width: 6px;
  height: 14px;
  clip-path: polygon(20% 0, 80% 0, 100% 100%, 0 100%);
}

/* Luz que sai pela fresta da porta e se espalha no chão */
.door__floor {
  position: absolute;
  top: 100%;
  left: -60%;
  width: 170%;
  height: 55%;
  background: linear-gradient(180deg, rgba(240, 240, 238, 0.85), rgba(240, 240, 238, 0) 95%);
  clip-path: polygon(69% 0, 94% 0, 86% 100%, 6% 100%);
  opacity: 0.5;
  animation: floor-in 1.8s var(--ease-out) 0.5s backwards;
}

@keyframes floor-in {
  from {
    opacity: 0;
  }
}

@media (max-width: 860px) {
  .hero {
    min-height: auto;
  }

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

  .hero__visual {
    order: -1;
    justify-items: start;
  }

  .door {
    width: 84px;
  }

  .hero__quote {
    display: none;
  }

  .door__floor {
    display: none;
  }
}

/* ==========================================================================
   Faixa de valores (marquee)
   ========================================================================== */
.strip {
  position: relative;
  overflow: hidden;
  padding-block: 1.15rem;
  border-block: 1px solid rgba(102, 2, 60, 0.15);
}

.strip__track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}

.strip:hover .strip__track {
  animation-play-state: paused;
}

.strip__group {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  padding-right: 2.25rem;
}

.strip__item {
  color: var(--wine);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.strip .brand-mark {
  width: 26px;
  color: var(--wine);
}

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

/* ==========================================================================
   Sobre nós
   ========================================================================== */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.about__text p + p {
  margin-top: var(--space-5);
}

.about__text p {
  max-width: 58ch;
  font-size: 1.0625rem;
  line-height: 1.75;
}

.about__text strong {
  color: var(--wine);
  font-weight: 700;
}

.statement {
  position: relative;
  padding: clamp(2rem, 4vw, 3rem);
  background: var(--wine);
  color: var(--paper);
  box-shadow: var(--shadow-card);
}

.statement__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--olive);
}

.statement__equation {
  margin-top: var(--space-5);
  font-family: var(--font-display);
  font-size: clamp(3.25rem, 7vw, 5.5rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0.01em;
}

.statement__equation span {
  display: block;
}

.statement__equation .plus {
  color: var(--olive);
  font-size: 0.6em;
  line-height: 1.1;
}

.statement__equation .olive {
  color: var(--olive);
}

.statement__text {
  margin-top: var(--space-5);
  max-width: 34ch;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(240, 240, 238, 0.88);
}

.statement__refs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-6);
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.3rem 0.9rem;
  border: 1.5px solid currentColor;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.statement .chip {
  color: var(--olive);
}

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

/* ==========================================================================
   Quem somos
   ========================================================================== */
.team {
  border-top: 1px solid var(--line);
}

.team__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}

.team__head {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
  margin-bottom: 0;
}

.team__note {
  max-width: 36ch;
  padding-left: var(--space-4);
  border-left: 3px solid var(--wine);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.person {
  display: flex;
  flex-direction: column;
}

.person__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #d9d9d6;
}

.person__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  transition: transform 0.6s var(--ease-out);
}

.person:hover .person__photo img {
  transform: scale(1.03);
}

.person__body {
  display: grid;
  gap: var(--space-3);
  padding-top: var(--space-5);
}

.person__name {
  font-size: 1.1875rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.25;
}

.person__role {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wine);
}

.person__bio {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.person__edu {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: var(--space-2);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.45;
}

.person__edu .icon {
  margin-top: 1px;
  color: var(--wine);
}

@media (max-width: 960px) {
  .team__layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team__head {
    position: static;
    grid-column: 1 / -1;
    margin-bottom: var(--space-4);
  }
}

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

/* ==========================================================================
   Segmentos
   ========================================================================== */
.segments {
  border-top: 1px solid var(--line);
}

.segments__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(0.875rem, 1.6vw, 1.25rem);
}

.segment-card {
  --card-bg: var(--wine);
  --card-fg: var(--olive);
  --card-text: var(--paper);
  position: relative;
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-7);
  width: 100%;
  min-height: 340px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 0;
  background: var(--card-bg);
  color: var(--card-text);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.segment-card:nth-child(4),
.segment-card:nth-child(5) {
  grid-column: span 3;
}

.segment-card--olive {
  --card-bg: var(--olive);
  --card-fg: var(--wine);
  --card-text: var(--graphite);
}

.segment-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.segment-card:hover .pill-arrow {
  background: var(--card-fg);
  color: var(--card-bg);
}

.segment-card:hover .pill-arrow .icon {
  transform: translateX(3px);
}

.segment-card .brand-mark {
  position: absolute;
  right: -30px;
  top: -24px;
  width: 190px;
  color: var(--card-fg);
  opacity: 0.1;
  transition: transform 0.6s var(--ease-out);
}

.segment-card:hover .brand-mark {
  transform: rotate(-8deg) scale(1.05);
}

/* Logotipo + nome do segmento, como nos guias: o rótulo fica alinhado
   ao ponto final de "VIRA." e, se for mais largo, avança para a direita */
.lockup {
  --ws: clamp(3.5rem, 6vw, 4.75rem);
  display: inline-grid;
  grid-template-columns: calc(var(--ws) * 0.62) auto;
  align-self: flex-start;
  color: var(--card-fg, var(--wine));
  line-height: 1;
}

.lockup__word {
  grid-column: 1 / -1;
  justify-self: start;
  font-family: var(--font-display);
  font-size: var(--ws);
  line-height: 0.8;
  letter-spacing: 0.01em;
}

.lockup__seg {
  grid-column: 2;
  justify-self: end;
  margin-top: 6px;
  font-size: clamp(0.8125rem, 1.2vw, 1rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.segment-card__top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
}

.segment-card__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-5);
}

.segment-card__text {
  max-width: 24ch;
  text-align: right;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
}

.segment-card__badge {
  padding: 0.3rem 0.8rem;
  border: 1.5px solid currentColor;
  border-radius: var(--radius-pill);
  color: var(--card-fg);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 960px) {
  .segments__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .segment-card,
  .segment-card:nth-child(4),
  .segment-card:nth-child(5) {
    grid-column: span 1;
  }

  .segment-card:first-child {
    grid-column: span 2;
  }
}

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

  .segment-card,
  .segment-card:first-child,
  .segment-card:nth-child(4),
  .segment-card:nth-child(5) {
    grid-column: span 1;
    min-height: 280px;
  }
}

/* ==========================================================================
   Serviços
   ========================================================================== */
.services__list {
  border-top: 1px solid rgba(240, 240, 238, 0.22);
}

.service {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr) 40px minmax(0, 1.25fr);
  align-items: center;
  gap: var(--space-5);
  padding-block: clamp(1.5rem, 3vw, 2.25rem);
  border-bottom: 1px solid rgba(240, 240, 238, 0.22);
  transition: background-color 0.3s var(--ease-out), padding 0.3s var(--ease-out);
}

.service:hover {
  background: rgba(240, 240, 238, 0.04);
}

.service__num {
  font-family: var(--font-display);
  font-size: 2.75rem;
  line-height: 1;
  color: var(--olive);
}

.service__name {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.service .brand-mark {
  width: 32px;
  color: var(--olive);
}

.service__desc {
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(240, 240, 238, 0.85);
}

.services__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  margin-top: var(--space-8);
}

.services__cta p {
  max-width: 48ch;
  font-size: 1.0625rem;
  color: rgba(240, 240, 238, 0.88);
}

@media (max-width: 860px) {
  .service {
    grid-template-columns: 3.5rem minmax(0, 1fr);
    gap: var(--space-2) var(--space-4);
    align-items: start;
  }

  .service .brand-mark {
    display: none;
  }

  .service__desc {
    grid-column: 2;
  }

  .service__num {
    font-size: 2.25rem;
  }
}

/* ==========================================================================
   Método Vira
   ========================================================================== */
.method {
  background-color: var(--olive);
  background-image: linear-gradient(rgba(46, 46, 46, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 46, 46, 0.07) 1px, transparent 1px);
  background-size: 36px 36px;
  background-position: center top;
}

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-6) var(--space-5) var(--space-6);
  background: var(--paper);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
}

.step__node {
  position: absolute;
  top: 50%;
  left: calc(-1 * clamp(1rem, 2vw, 1.5rem) / 2);
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--graphite);
  color: var(--paper);
  transform: translate(-50%, -50%);
  z-index: 1;
}

.step__node .icon {
  width: 14px;
  height: 14px;
  stroke-width: 3;
}

.step__num {
  font-family: var(--font-display);
  font-size: 2.25rem;
  line-height: 1;
  color: var(--wine);
}

.step__title {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.step__desc {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-muted);
}

@media (max-width: 1080px) {
  .steps {
    grid-template-columns: 1fr;
    max-width: 620px;
    margin-inline: auto;
    padding-left: 34px;
  }

  .steps::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 24px;
    bottom: 24px;
    width: 2px;
    background: var(--graphite);
    opacity: 0.4;
  }

  .step__node {
    top: 36px;
    left: -22px;
  }
}

/* Jornada: ser vista -> ser lembrada */
.journey {
  margin-top: clamp(4rem, 9vw, 7rem);
  padding: clamp(2rem, 4vw, 3.5rem);
  background: var(--paper);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
}

.journey__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.journey__kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.journey__title {
  margin-top: var(--space-2);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  color: var(--wine);
}

.journey__note {
  max-width: 36ch;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.journey__svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.journey__svg .path {
  fill: none;
  stroke: var(--wine);
  stroke-width: 2.2;
  stroke-linecap: round;
}

.journey__svg .word {
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.06em;
  fill: var(--wine);
}

.journey__svg .dot {
  fill: var(--wine);
}

/* Estados da animação (só com JS e sem redução de movimento) */
.js .journey:not(.is-in) .journey__svg .path {
  stroke-dashoffset: 1;
}

.js .journey .journey__svg .path {
  stroke-dasharray: 1;
  transition: stroke-dashoffset 1.1s var(--ease-out) var(--delay, 0s);
}

.js .journey:not(.is-in) .journey__svg .word,
.js .journey:not(.is-in) .journey__svg .dot {
  opacity: 0;
  transform: translateX(-10px);
}

.js .journey .journey__svg .word,
.js .journey .journey__svg .dot {
  transition: opacity 0.5s var(--ease-out) var(--delay, 0s), transform 0.5s var(--ease-out) var(--delay, 0s);
}

.journey__list {
  display: none;
}

@media (max-width: 760px) {
  .journey__svg {
    display: none;
  }

  .journey__list {
    position: relative;
    display: grid;
    gap: var(--space-4);
    padding-left: 28px;
  }

  .journey__list::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: var(--wine);
  }

  .journey__list li {
    position: relative;
    font-size: 1.0625rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--wine);
  }

  .journey__list li::before {
    content: "";
    position: absolute;
    left: -27px;
    top: 50%;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--paper);
    border: 3px solid var(--wine);
    transform: translateY(-50%);
  }

  .journey__list li:last-child::before {
    background: var(--wine);
  }
}

/* ==========================================================================
   Pacote Presença
   ========================================================================== */
.presence__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: var(--space-6);
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.presence .section-title {
  text-decoration-color: var(--olive);
}

.presence .section-lead {
  color: rgba(240, 240, 238, 0.85);
}

.phases {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  counter-reset: phase;
}

.phase {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding-top: var(--space-5);
  border-top: 3px solid var(--olive);
}

.phase__num {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--olive);
}

.phase__title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 3.5vw, 2.75rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.02em;
}

.phase__desc {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(240, 240, 238, 0.85);
}

.phase__items {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-2);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(240, 240, 238, 0.16);
}

.phase__items li {
  display: flex;
  gap: 0.55rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.45;
  color: rgba(240, 240, 238, 0.78);
}

.phase__items .icon {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  color: var(--olive);
  stroke-width: 2.5;
}

.presence__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(240, 240, 238, 0.16);
}

.presence__foot p {
  font-size: 0.9375rem;
  color: rgba(240, 240, 238, 0.75);
}

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

  .phases {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: var(--space-7);
  }
}

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

/* ==========================================================================
   Contato
   ========================================================================== */
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.contact .brand-mark {
  width: 56px;
  margin-bottom: var(--space-5);
  color: var(--graphite);
}

.contact .section-lead {
  color: var(--graphite);
}

.contact__action {
  display: grid;
  justify-items: start;
  gap: var(--space-4);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--paper);
  box-shadow: var(--shadow-card);
}

.contact__label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--wine);
}

.btn--lg {
  min-height: 60px;
  padding: 1rem 2rem;
  font-size: 0.9375rem;
}

/* Botão do WhatsApp: nome à esquerda, número pequeno no canto direito */
.btn--whats {
  width: 100%;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding-inline: 1.5rem;
}

.btn--whats__main {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.btn--whats:hover .icon,
.btn--whats:focus-visible .icon {
  transform: none;
}

.btn--whats__num {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  opacity: 0.8;
}

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

@media (max-width: 560px) {
  .contact__action {
    padding: 1.25rem;
  }

  .btn--whats {
    gap: 0.25rem 0.75rem;
    padding-inline: 1.1rem;
    letter-spacing: 0.05em;
  }

  .btn--whats__num {
    font-size: 0.6875rem;
    letter-spacing: 0.02em;
  }
}

/* ==========================================================================
   Rodapé
   ========================================================================== */
.site-footer {
  padding-block: clamp(4rem, 8vw, 6rem) var(--space-6);
  text-align: center;
}

.footer__brand {
  display: grid;
  justify-items: center;
  gap: var(--space-4);
}

.footer__brand .logo {
  color: var(--olive);
}

.footer__brand .logo__word {
  font-size: clamp(5rem, 14vw, 9rem);
}

.footer__brand .logo__tag {
  font-size: clamp(0.8125rem, 1.6vw, 1.125rem);
}

.footer__tagline {
  margin-top: var(--space-4);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(240, 240, 238, 0.85);
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2) var(--space-5);
  margin-top: var(--space-7);
}

.footer__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(240, 240, 238, 0.85);
}

.footer__nav a:hover {
  color: var(--olive);
}

.footer__social {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.footer__social a {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1.5px solid rgba(240, 240, 238, 0.4);
  border-radius: 50%;
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out),
    border-color 0.25s var(--ease-out);
}

.footer__social a:hover {
  background: var(--olive);
  border-color: var(--olive);
  color: var(--wine);
}

.footer__legal {
  margin-top: var(--space-8);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(240, 240, 238, 0.16);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: rgba(240, 240, 238, 0.7);
}

/* ==========================================================================
   Pop-up dos segmentos
   ========================================================================== */
body.modal-open {
  overflow: hidden;
}

.seg-modal {
  width: min(820px, calc(100% - 2rem));
  max-width: none;
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 0;
  background: var(--paper);
  color: var(--graphite);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.55);
  overflow: auto;
  overscroll-behavior: contain;
}

.seg-modal[open] {
  animation: modal-in 0.4s var(--ease-out);
}

.seg-modal::backdrop {
  background: rgba(31, 31, 31, 0.62);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: fade-in 0.3s ease;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

.seg-modal__head {
  --card-bg: var(--wine);
  --card-fg: var(--olive);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: var(--space-5);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--card-bg);
  color: var(--paper);
  overflow: hidden;
}

.seg-modal--olive .seg-modal__head {
  --card-bg: var(--olive);
  --card-fg: var(--wine);
  color: var(--graphite);
}

.seg-modal__head :focus-visible {
  outline-color: currentColor;
}

.seg-modal__head .brand-mark {
  position: absolute;
  right: -40px;
  bottom: -50px;
  width: 260px;
  color: var(--card-fg);
  opacity: 0.1;
  pointer-events: none;
}

.seg-modal .lockup {
  --ws: clamp(3.5rem, 9vw, 5.5rem);
}

.seg-modal__close {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out),
    border-color 0.2s var(--ease-out);
}

.seg-modal__close:hover {
  background: var(--card-fg);
  border-color: var(--card-fg);
  color: var(--card-bg);
}

.seg-modal__phrase {
  position: relative;
  grid-column: 1 / -1;
  max-width: 30ch;
  font-size: clamp(1.25rem, 2.6vw, 1.625rem);
  font-weight: 800;
  line-height: 1.25;
  text-wrap: balance;
}

.seg-modal__body {
  display: grid;
  gap: var(--space-6);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.seg-modal__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
}

.seg-modal__label {
  margin-bottom: var(--space-3);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--wine);
}

.seg-modal__cols p {
  line-height: 1.7;
  color: var(--text-muted);
}

.seg-modal__list {
  display: grid;
  gap: var(--space-3);
}

.seg-modal__list li {
  display: flex;
  gap: 0.6rem;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.45;
}

.seg-modal__list .icon {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: var(--wine);
  stroke-width: 2.5;
}

.seg-modal__note {
  padding: var(--space-4) var(--space-5);
  border-left: 4px solid var(--wine);
  background: var(--white);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.seg-modal__person {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-5);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.seg-modal__person img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 20%;
}

.seg-modal__person .person__name {
  margin-block: var(--space-1) var(--space-2);
}

.seg-modal__bio {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.seg-modal__foot {
  position: sticky;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-5);
  padding: var(--space-4) clamp(1.5rem, 4vw, 2.5rem);
  border-top: 1px solid var(--line);
  background: var(--paper);
}

@media (max-width: 640px) {
  .seg-modal {
    width: calc(100% - 1rem);
    max-height: calc(100dvh - 1rem);
  }

  .seg-modal__cols {
    grid-template-columns: 1fr;
  }

  .seg-modal__person {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: var(--space-4);
    padding: var(--space-4);
  }

  .seg-modal__foot .btn {
    width: 100%;
  }
}

/* ==========================================================================
   Animações de entrada
   ========================================================================== */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}

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

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }

  .strip__track {
    animation: none;
    width: auto;
    justify-content: center;
  }

  .strip__group {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 0.75rem;
  }

  .strip__group--clone {
    display: none;
  }

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