:root {
  --brand-green: #4eb562;
  --brand-green-dark: #3d9a4f;
  --brand-purple: #4a235a;
  --brand-purple-dark: #3a1b47;
  --brand-purple-light: #8e44ad;
  --brand-charcoal: #2a2030;
  --cream: #f5f2ee;
  --sand: #ebe5dd;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  scrollbar-color: var(--brand-green) #ebe5dd;
  scrollbar-width: thin;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  background-color: var(--cream);
  color: #1c1c1c;
}

p { text-align: justify; }

.bg-cream { background-color: var(--cream); }
.bg-sand { background-color: var(--sand); }
.bg-purple { background-color: var(--brand-purple); }
.bg-purple-light { background-color: var(--brand-purple-light); }
.text-cream { color: var(--cream); }
.text-sand { color: var(--sand); }
.text-charcoal { color: var(--brand-charcoal); }
.text-warm-gray { color: #5c4f63; }
.text-purple { color: var(--brand-purple); }
.text-purple-light { color: var(--brand-purple-light); }
.text-brand { color: var(--brand-green); }
.text-brand-dark { color: var(--brand-green-dark); }
.bg-brand { background-color: var(--brand-green); }
.hover\:text-brand:hover { color: var(--brand-green); }
.hover\:text-brand-dark:hover { color: var(--brand-green-dark); }
.hover\:text-purple:hover { color: var(--brand-purple); }
.group:hover .group-hover\:text-purple { color: var(--brand-purple); }
.group:hover .group-hover\:text-brand-dark { color: var(--brand-green-dark); }
.group:hover .group-hover\:bg-brand { background-color: var(--brand-green); }
.group:hover .group-hover\:text-white { color: #fff; }
.group:hover .group-hover\:border-brand { border-color: var(--brand-green); }

.espaco-equation {
  display: inline-block;
  max-width: 38rem;
  margin: 0;
  padding: 0.7rem 1rem;
  border-radius: 0.35rem 1rem 0.35rem 1rem;
  background: var(--brand-purple);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.35;
  box-shadow: 0 12px 30px -20px rgba(74, 35, 90, 0.65);
}

.espaco-split {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .espaco-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.25rem 2.5rem;
    align-items: start;
  }
}

.help-panel {
  display: grid;
  gap: 0.9rem;
  align-content: start;
}

.help-cards {
  display: grid;
  gap: 0.9rem;
}

::selection {
  background-color: rgba(78, 181, 98, 0.22);
  color: var(--brand-purple-dark);
}

::-webkit-scrollbar { width: 0.75rem; }
::-webkit-scrollbar-track { background: #ebe5dd; }
::-webkit-scrollbar-thumb {
  background: var(--brand-green);
  border: 3px solid #ebe5dd;
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: var(--brand-green-dark); }

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

/* GSAP — esconde até anim-ready (evita flash) */
body[data-page="home"]:not(.anim-ready) .artigo-card,
body[data-page="home"]:not(.anim-ready) .warm-step,
body[data-page="home"]:not(.anim-ready) .espaco-intro-head > *,
body[data-page="home"]:not(.anim-ready) .espaco-shot,
body[data-page="home"]:not(.anim-ready) .team-group-title,
body[data-page="home"]:not(.anim-ready) .team-group-whatsapp,
body[data-page="home"]:not(.anim-ready) .team-card {
  visibility: hidden;
}

.artigo-card,
.team-card,
.espaco-shot,
.warm-step {
  will-change: transform, opacity;
}

#espaco-spaces .espaco-shot {
  border-radius: 0 !important;
}

@media (min-width: 768px) {
  #espaco-spaces .espaco-shot--tl { border-radius: 1.15rem 0 0 0 !important; }
  #espaco-spaces .espaco-shot--tr { border-radius: 0 1.15rem 0 0 !important; }
  #espaco-spaces .espaco-shot--bl { border-radius: 0 0 0 1.15rem !important; }
  #espaco-spaces .espaco-shot--br { border-radius: 0 0 1.15rem 0 !important; }
}

@media (max-width: 767px) {
  #espaco-spaces .espaco-shot:nth-child(1) { border-radius: 1.15rem 0 0 0 !important; }
  #espaco-spaces .espaco-shot:nth-child(2) { border-radius: 0 1.15rem 0 0 !important; }
  #espaco-spaces .espaco-shot:nth-child(5) { border-radius: 0 0 0 1.15rem !important; }
  #espaco-spaces .espaco-shot:nth-child(6) { border-radius: 0 0 1.15rem 0 !important; }
}

.is-hidden { display: none !important; }

#artigos-more[aria-expanded='true'] .artigos-more-icon,
#espaco-more[aria-expanded='true'] .espaco-more-icon {
  transform: rotate(180deg);
}

/* Header: sólido no artigo; transparente no hero da home */
.site-logo--color,
.site-logo--white { transition: opacity 0.3s ease; }

.site-logo--white {
  position: absolute;
  inset: 0;
  width: auto;
  height: 100%;
  opacity: 0;
}

header.site-header {
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

body[data-page="home"] header.site-header:not(.header-scrolled):not(.menu-open) {
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
}

body[data-page="home"] header.site-header:not(.header-scrolled):not(.menu-open) .site-logo--color { opacity: 0; }
body[data-page="home"] header.site-header:not(.header-scrolled):not(.menu-open) .site-logo--white { opacity: 1; }
body[data-page="home"] header.site-header:not(.header-scrolled):not(.menu-open) .nav-link { color: rgba(255, 255, 255, 0.88); }
body[data-page="home"] header.site-header:not(.header-scrolled):not(.menu-open) .nav-link:hover,
body[data-page="home"] header.site-header:not(.header-scrolled):not(.menu-open) .nav-link.active { color: #fff; }
body[data-page="home"] header.site-header:not(.header-scrolled):not(.menu-open) .nav-link.active::after { background: #fff; }
body[data-page="home"] header.site-header:not(.header-scrolled):not(.menu-open) #menu-toggle { color: rgba(255, 255, 255, 0.92); }

header.site-header.header-scrolled,
header.site-header.menu-open {
  background: #fdfbf8;
  border-bottom-color: rgba(42, 32, 48, 0.07);
}

header.site-header.header-scrolled {
  box-shadow: 0 8px 30px -12px rgba(42, 32, 48, 0.12);
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
  padding: 0.4rem 0.35rem;
  font-size: 0.625rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(42, 32, 48, 0.72);
  transition: color 0.3s;
}

@media (min-width: 1280px) {
  .nav-link {
    padding: 0.4rem 0.5rem;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
  }
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0.15rem;
  left: 0.35rem;
  right: 0.35rem;
  height: 1px;
  background: var(--brand-purple-light);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-link:hover,
.nav-link.active { color: var(--brand-green); }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }

#mobile-menu {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s, opacity 0.5s;
}

#mobile-menu.open {
  max-height: 32rem;
  opacity: 1;
}

.sr-only:focus {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background: var(--brand-green);
  color: #f5f2ee;
}

/* Hero sticky + Swiper + equações orgânicas */
.hero-banner {
  position: sticky;
  top: 0;
  z-index: 0;
  height: clamp(26rem, 72vh, 38rem);
  min-height: clamp(26rem, 72vh, 38rem);
  background: #2a2030;
  color: #fff;
  overflow: hidden;
}

.page-reveal {
  position: relative;
  z-index: 2;
  overflow: visible;
  background: var(--cream);
}

#equipe {
  background-color: var(--sand);
}

.site-footer {
  background-color: var(--sand);
  color: #5c4f63;
}

.site-header,
#mobile-menu {
  background-color: var(--cream);
}

.page-reveal::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -3px;
  height: 8px;
  background: var(--cream);
  z-index: 2;
  pointer-events: none;
}

.section-brush {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  user-select: none;
  line-height: 0;
}

.section-brush--hero {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  width: 100%;
  transform: translateY(calc(-100% + 5px));
}

.hero-swiper,
.hero-swiper .swiper-wrapper,
.hero-slide {
  height: 100%;
  min-height: inherit;
}

.hero-slide { position: relative; overflow: hidden; }

.hero-slide-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-slide-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(105deg, rgba(42, 32, 48, 0.5) 0%, rgba(42, 32, 48, 0.22) 45%, rgba(42, 32, 48, 0.05) 100%),
    linear-gradient(180deg, rgba(42, 32, 48, 0.2) 0%, transparent 40%, rgba(42, 32, 48, 0.45) 100%);
  pointer-events: none;
}

.hero-slide-frame {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: inherit;
  padding-top: 5.5rem;
  padding-bottom: 9rem;
}

.hero-eqs {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
  width: min(100%, 40rem);
}

.hero-eq {
  display: inline-block;
  max-width: 100%;
  margin: 0;
  padding: 1rem 1.45rem;
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  box-shadow: 0 16px 32px -18px rgba(0, 0, 0, 0.45);
}

.hero-eq--light {
  color: #4a235a;
  background: #fff;
  border-radius: 1.15rem 2.6rem 1.4rem 2.3rem;
  transform: rotate(-1deg);
}

.hero-eq--pink,
.hero-eq--purple,
.hero-eq--green {
  color: #fff;
  border-radius: 2.3rem 1.15rem 2.6rem 1.4rem;
  margin-left: 1.1rem;
  transform: rotate(0.85deg);
}

.hero-eq--pink { background: #e83e8c; }
.hero-eq--purple { background: var(--brand-purple-light); }
.hero-eq--green { background: var(--brand-green); }

.hero-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(8.5rem, 13vw, 12.5rem);
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  pointer-events: none;
}

.hero-controls > * { pointer-events: auto; }

.hero-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(42, 32, 48, 0.45);
  color: #fff;
  backdrop-filter: blur(8px);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.hero-nav:hover {
  background: rgba(42, 32, 48, 0.7);
  border-color: rgba(255, 255, 255, 0.5);
}

.hero-swiper-pagination {
  position: static !important;
  width: auto !important;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-swiper-pagination .swiper-pagination-bullet {
  width: 0.5rem;
  height: 0.5rem;
  margin: 0 !important;
  background: rgba(255, 255, 255, 0.45);
  opacity: 1;
}

.hero-swiper-pagination .swiper-pagination-bullet-active {
  width: 1.3rem;
  border-radius: 999px;
  background: #fff;
}

@media (max-width: 640px) {
  .hero-banner,
  .hero-swiper {
    height: clamp(24rem, 68vh, 32rem);
    min-height: clamp(24rem, 68vh, 32rem);
  }

  .hero-slide-frame {
    justify-content: center;
    padding-top: 5rem;
    padding-bottom: 8rem;
  }

  .hero-eqs {
    align-items: center;
    width: 100%;
    gap: 1rem;
  }

  .hero-eq {
    text-align: center;
    padding: 1.05rem 1.25rem;
    font-size: 1.08rem;
  }

  .hero-eq--light,
  .hero-eq--pink,
  .hero-eq--purple,
  .hero-eq--green {
    margin-left: 0;
    transform: none;
  }

  .hero-controls { bottom: clamp(7.5rem, 16vw, 11rem); }
}

.grain-overlay {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
}

.team-group-title::before {
  content: '';
  width: 0.28rem;
  height: 1.05em;
  flex: 0 0 auto;
  margin-top: 0.12em;
  border-radius: 999px;
  background: var(--brand-purple);
}

.team-card.is-featured .team-card-photo {
  border-color: var(--brand-green);
}

#metodologia .warm-step p {
  text-align: justify !important;
}

.hero-chip {
  display: inline-flex;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--brand-purple);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(142, 68, 173, 0.1);
}

/* Modais — overlay + .is-open (JS) */
.espaco-modal,
.team-modal,
.wa-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.espaco-modal { z-index: 200; padding: 1.25rem; }
.team-modal {
  z-index: 9990;
  padding: max(0.75rem, env(safe-area-inset-top)) max(0.75rem, env(safe-area-inset-right)) max(0.75rem, env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
}
.wa-modal { z-index: 90; padding: 1rem; transition: opacity 0.28s ease, visibility 0.28s ease; }

.espaco-modal.is-open,
.team-modal.is-open,
.wa-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.espaco-modal-backdrop,
.team-modal-backdrop {
  position: absolute;
  inset: 0;
}

.espaco-modal-backdrop {
  background: rgba(36, 26, 42, 0.94);
  backdrop-filter: blur(10px);
}

.team-modal-backdrop { background: rgba(36, 26, 42, 0.72); }

.team-modal-panel {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.team-modal-panel::-webkit-scrollbar { display: none; }

.team-modal-close {
  position: fixed !important;
  top: max(0.85rem, env(safe-area-inset-top));
  right: max(0.85rem, env(safe-area-inset-right));
  z-index: 10000 !important;
  margin: 0;
  width: 2.85rem !important;
  height: 2.85rem !important;
  background: #fff !important;
  box-shadow: 0 12px 28px -14px rgba(42, 32, 48, 0.7);
  touch-action: manipulation;
}

.team-modal-photo { object-position: var(--team-photo-position, center 12%); }

@media (min-width: 640px) {
  .team-modal-close {
    position: absolute !important;
    top: 0.85rem;
    right: 0.85rem;
    width: 2.35rem !important;
    height: 2.35rem !important;
    margin: 0;
  }

  .team-modal-photo { object-position: center 12%; }
}

body.team-modal-open .site-header,
body.team-modal-open .wa-float,
body.team-modal-open .wa-modal {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.espaco-modal-slide {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  max-height: 78vh;
}

.espaco-modal-slide img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 0.75rem;
}

.espaco-modal-swiper .swiper-pagination {
  position: relative;
  margin-top: 1.25rem;
}

.espaco-modal-swiper .swiper-pagination-bullet {
  width: 7px;
  height: 7px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  opacity: 1;
}

.espaco-modal-swiper .swiper-pagination-bullet-active {
  background: var(--brand-green);
  border-color: var(--brand-green);
  width: 1.35rem;
  border-radius: 999px;
}

.team-modal-formation li::marker { color: var(--brand-green); }

.wa-modal-panel { transform: translateY(12px); transition: transform 0.28s ease; }
.wa-modal.is-open .wa-modal-panel { transform: translateY(0); }

/* Corpo do artigo (HTML gerado) */
.artigo-page-body { margin-top: 1.6rem; }

.artigo-page-body p,
.artigo-page-body li {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #3d3344;
}

.artigo-page-body p { margin: 0 0 1.15rem; }
.artigo-page-body p:last-child { margin-bottom: 0; }

.artigo-page-body h2,
.artigo-page-body h3 {
  margin: 1.8rem 0 0.7rem;
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 500;
  color: var(--brand-charcoal);
}

.artigo-page-body h2 { font-size: 1.45rem; }
.artigo-page-body h3 { font-size: 1.2rem; }

.artigo-page-body ul,
.artigo-page-body ol {
  margin: 0 0 1.15rem;
  padding-left: 1.25rem;
}

.artigo-page-body a { color: var(--brand-purple); }
.artigo-page-body em,
.artigo-page-body i { font-style: italic; }

/* Cartão de visita virtual */
body.vcard-page {
  background: var(--cream);
  overflow-x: hidden;
}

.vcard-sheet {
  display: grid;
  background: #fff;
  border: 1px solid rgba(74, 35, 90, 0.08);
  border-radius: 1.75rem;
  box-shadow: 0 18px 48px -28px rgba(42, 32, 48, 0.35);
}

.vcard-brand {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  padding: 1.15rem 1.25rem 0.35rem;
}

.vcard-brand img {
  display: block;
  height: 3.1rem;
  width: auto;
  max-width: calc(100% - 1rem);
}

.vcard-sheet p {
  text-align: center;
}

.vcard-portrait {
  width: 100%;
  background: var(--sand);
}

.vcard-portrait img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.vcard-body {
  display: grid;
  justify-items: stretch;
  width: 100%;
  padding: 1.25rem 1.35rem 1.4rem;
}

.vcard-info {
  display: grid;
  gap: 0.4rem;
  width: 100%;
  text-align: center;
}

.vcard-role {
  margin: 0;
  font-family: Outfit, system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-purple);
}

.vcard-name {
  margin: 0;
  font-family: Outfit, system-ui, sans-serif;
  font-size: clamp(1.55rem, 6vw, 1.9rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--brand-charcoal);
}

.vcard-credential {
  margin: 0;
  font-family: Outfit, system-ui, sans-serif;
  font-size: 0.98rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: #6f6574;
  font-variant-numeric: tabular-nums;
}

.vcard-sheet--plain .vcard-body {
  padding-top: 1.7rem;
}

.vcard-links {
  display: grid;
  gap: 0.55rem;
  width: 100%;
  margin-top: 1.25rem;
}

.vcard-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 3.05rem;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(74, 35, 90, 0.14);
  background: #faf8f5;
  color: var(--brand-purple);
  font-family: Outfit, system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.vcard-link:hover,
.vcard-link:focus-visible {
  background: #f3eef6;
  border-color: rgba(74, 35, 90, 0.28);
  transform: translateY(-1px);
}

.vcard-link .bi {
  font-size: 1.15rem;
  line-height: 1;
}

.vcard-link--wa {
  border: 0;
  background: #25d366;
  color: #fff;
  box-shadow: 0 12px 24px -14px rgba(37, 211, 102, 0.75);
}

.vcard-link--wa:hover,
.vcard-link--wa:focus-visible {
  background: #1ebe57;
  border-color: transparent;
}

@media (prefers-reduced-motion: reduce) {
  .vcard-link,
  .vcard-link:hover {
    transform: none;
  }
}
