/* Grupo Camaleon — one-page institucional */

:root {
  color-scheme: light;
  --radius: 0.625rem;

  --background: oklch(0.993 0.004 160);
  --foreground: oklch(0.19 0.024 165);

  --card: oklch(1 0 0);
  --card-foreground: oklch(0.19 0.024 165);

  --primary: oklch(0.52 0.128 163);
  --primary-foreground: oklch(0.99 0.005 160);

  --secondary: oklch(0.965 0.008 160);
  --secondary-foreground: oklch(0.24 0.024 165);

  --muted: oklch(0.965 0.008 160);
  --muted-foreground: oklch(0.505 0.014 165);

  --accent: oklch(0.7 0.168 48);
  --accent-foreground: oklch(0.2 0.03 45);

  --border: oklch(0.9 0.008 165);
  --ring: oklch(0.52 0.128 163);

  --ink: oklch(0.19 0.024 165);
  --ink-foreground: oklch(0.97 0.008 160);
  --ink-muted: oklch(0.74 0.016 165);
  --ink-border: oklch(0.3 0.022 165);

  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Manrope", ui-sans-serif, system-ui, sans-serif;

  --company-eduindica: oklch(0.62 0.16 158);
  --company-eduseller: oklch(0.52 0.19 258);
  --company-fluzz: oklch(0.62 0.19 152);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-color: var(--border);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--primary);
  color: var(--primary-foreground);
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

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

.container-page {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

@media (min-width: 1024px) {
  .container-page {
    padding-inline: 2rem;
  }
}

.font-display {
  font-family: var(--font-display);
}

.camaleon-band {
  background: linear-gradient(
    90deg,
    oklch(0.72 0.176 152) 0%,
    oklch(0.63 0.153 160) 55%,
    oklch(0.5 0.108 172) 100%
  );
}

.text-balance {
  text-wrap: balance;
}

.text-pretty {
  text-wrap: pretty;
}

.icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-lg {
  width: 1.25rem;
  height: 1.25rem;
}

.icon-sm {
  width: 1rem;
  height: 1rem;
}

/* ——— Header ——— */

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  transition: background-color 0.3s ease, border-color 0.3s ease,
    backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-solid {
  background: color-mix(in oklab, var(--background) 97%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 4rem;
}

@media (min-width: 1024px) {
  .site-header__inner {
    height: 4.5rem;
  }
}

.site-logo {
  flex-shrink: 0;
}

.site-logo img {
  height: 30px;
  width: auto;
}

.site-logo__dark {
  display: none;
}

.site-logo__light {
  display: block;
}

.site-header.is-solid .site-logo__dark {
  display: block;
}

.site-header.is-solid .site-logo__light {
  display: none;
}

.nav-desktop {
  display: none;
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: block;
  }
}

.nav-desktop ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-desktop a {
  display: inline-block;
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-muted);
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nav-desktop a:hover {
  background: rgb(255 255 255 / 0.1);
  color: var(--ink-foreground);
}

.site-header.is-solid .nav-desktop a {
  color: var(--muted-foreground);
}

.site-header.is-solid .nav-desktop a:hover {
  background: var(--secondary);
  color: var(--foreground);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  display: none;
  align-items: center;
  border-radius: 0.5rem;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: opacity 0.15s ease;
}

.btn-primary:hover {
  opacity: 0.9;
}

@media (min-width: 1024px) {
  .btn-primary {
    display: inline-flex;
  }
}

/* ——— Bottom nav (mobile app) ——— */

.nav-bottom {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.15rem;
  padding: 0.45rem 0.4rem calc(0.45rem + env(safe-area-inset-bottom, 0px));
  background: color-mix(in oklab, var(--background) 92%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 30px oklch(0.19 0.024 165 / 0.06);
}

.nav-bottom__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-width: 0;
  padding: 0.4rem 0.2rem;
  border-radius: 0.75rem;
  color: var(--muted-foreground);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.1;
  text-align: center;
  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}

.nav-bottom__item span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-bottom__item .icon {
  width: 1.25rem;
  height: 1.25rem;
}

.nav-bottom__item.is-active {
  color: var(--primary);
  background: color-mix(in oklab, var(--primary) 10%, transparent);
}

@media (min-width: 1024px) {
  .nav-bottom {
    display: none;
  }
}

@media (max-width: 1023px) {
  .site-header__inner {
    justify-content: center;
  }

  .header-actions {
    display: none;
  }

  body {
    padding-bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px));
  }

  .site-footer {
    padding-bottom: 0.5rem;
  }
}

/* ——— Hero ——— */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  padding-top: 4rem;
}

@media (min-width: 1024px) {
  .hero {
    padding-top: 4.5rem;
  }
}

.hero__grid-bg {
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: linear-gradient(
      to right,
      var(--ink-foreground) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, var(--ink-foreground) 1px, transparent 1px);
  background-size: 72px 72px;
}

.hero__glow {
  pointer-events: none;
  position: absolute;
  top: -8rem;
  left: 50%;
  width: 520px;
  height: 520px;
  border-radius: 9999px;
  opacity: 0.22;
  filter: blur(130px);
  background: oklch(0.62 0.16 158);
  transform: translateX(-50%);
}

.hero__inner {
  position: relative;
  padding-block: 5rem;
}

@media (min-width: 1024px) {
  .hero__inner {
    padding-block: 7rem;
  }
}

.hero__content {
  max-width: 48rem;
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.eyebrow__line {
  height: 1px;
  width: 2.5rem;
  border-radius: 9999px;
}

.eyebrow--light {
  color: var(--primary);
}

.hero h1 {
  margin-top: 1.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 7.2vw + 0.35rem, 2.4rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink-foreground);
  text-wrap: balance;
  overflow-wrap: break-word;
}

@media (min-width: 640px) {
  .hero h1 {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 3.75rem;
  }
}

.hero__underline {
  position: relative;
  display: inline;
}

@media (min-width: 640px) {
  .hero__underline {
    white-space: nowrap;
  }
}

.hero__underline > span:first-child {
  position: relative;
  z-index: 1;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  background-image: linear-gradient(
    90deg,
    oklch(0.72 0.176 152) 0%,
    oklch(0.63 0.153 160) 55%,
    oklch(0.5 0.108 172) 100%
  );
  background-repeat: no-repeat;
  background-size: 100% 6px;
  background-position: 0 100%;
  padding-bottom: 0.2rem;
}

@media (min-width: 640px) {
  .hero__underline > span:first-child {
    background-image: none;
    padding-bottom: 0;
  }
}

.hero__underline-bar {
  display: none;
}

@media (min-width: 640px) {
  .hero__underline-bar {
    display: block;
    position: absolute;
    inset-inline: 0;
    bottom: -0.25rem;
    height: 6px;
    border-radius: 9999px;
    opacity: 0.9;
  }
}

.hero__lead {
  margin-top: 1.75rem;
  margin-inline: auto;
  max-width: 38rem;
  font-size: 1.0625rem;
  line-height: 1.625;
  color: var(--ink-muted);
}

.hero__ctas {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.btn-light {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.5rem;
  background: var(--ink-foreground);
  color: var(--ink);
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: opacity 0.15s ease;
}

.btn-light:hover {
  opacity: 0.9;
}

.btn-light:hover .icon {
  transform: translateX(2px);
}

.btn-light .icon {
  transition: transform 0.15s ease;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--ink-border);
  color: var(--ink-foreground);
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background-color 0.15s ease;
}

.btn-ghost:hover {
  background: rgb(255 255 255 / 0.05);
}

.hero__band {
  height: 4px;
  width: 100%;
}

/* ——— Marquee ——— */

.marquee {
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--background);
  padding-block: 1.25rem;
}

.marquee__track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 2.5rem;
  padding-right: 2.5rem;
  animation: marquee-x 34s linear infinite;
}

.marquee__item {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.marquee__label {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  white-space: nowrap;
}

.marquee__dot {
  width: 0.375rem;
  height: 0.375rem;
  flex-shrink: 0;
  border-radius: 9999px;
}

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

@media (prefers-reduced-motion: reduce) {
  .marquee__track {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ——— Sections shared ——— */

.section {
  border-bottom: 1px solid var(--border);
  padding-block: 5rem;
}

@media (min-width: 1024px) {
  .section {
    padding-block: 7rem;
  }
}

.section--muted {
  background: color-mix(in oklab, var(--secondary) 40%, transparent);
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
}

.section-title {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 1.875rem;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

@media (min-width: 640px) {
  .section-title {
    font-size: 2.25rem;
  }
}

.section-lead {
  margin-top: 1.25rem;
  font-size: 1.0625rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}

.section-lead--sm {
  font-size: 0.9375rem;
}

/* ——— About ——— */

.about__intro {
  display: grid;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .about__intro {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 5rem;
    align-items: center;
  }
}

.about__copy {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-size: 1.0625rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}

.stats {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--border);
}

@media (min-width: 1024px) {
  .stats {
    margin-top: 5rem;
    grid-template-columns: repeat(4, 1fr);
  }
}

.stats__item {
  background: var(--card);
  padding: 2rem 1.5rem;
}

.stats__value {
  display: block;
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--foreground);
  font-variant-numeric: tabular-nums;
}

@media (min-width: 1024px) {
  .stats__value {
    font-size: 3rem;
  }
}

.stats__suffix {
  color: var(--primary);
}

.stats__label {
  display: block;
  margin-top: 0.625rem;
  font-size: 0.875rem;
  line-height: 1.375;
  color: var(--muted-foreground);
}

/* ——— Companies ——— */

.companies__intro {
  max-width: 42rem;
}

.companies__list {
  margin-top: 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .companies__list {
    margin-top: 4rem;
  }
}

.company-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--card);
}

.company-card__top {
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 4px;
}

.company-card__body {
  display: grid;
  gap: 2rem;
  padding: 1.75rem;
}

@media (min-width: 1024px) {
  .company-card__body {
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 3rem;
    padding: 2.5rem;
  }
}

.company-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
}

.company-card__meta img {
  height: 2rem;
  width: auto;
  object-fit: contain;
}

@media (min-width: 640px) {
  .company-card__meta img {
    height: 2.25rem;
  }
}

.company-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--secondary);
  padding: 0.25rem 0.625rem;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  color: var(--secondary-foreground);
}

.company-card__tagline {
  margin-top: 1.5rem;
  max-width: 42rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.375;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

@media (min-width: 640px) {
  .company-card__tagline {
    font-size: 1.6rem;
  }
}

.company-card__desc {
  margin-top: 1rem;
  max-width: 42rem;
  font-size: 0.9375rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}

.company-card__highlights {
  margin-top: 1.75rem;
  display: grid;
  gap: 0.625rem;
}

@media (min-width: 640px) {
  .company-card__highlights {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.625rem 1.5rem;
  }
}

.company-card__highlights li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
}

.company-card__highlights .icon {
  margin-top: 0.125rem;
}

.company-card__highlights span {
  font-size: 0.875rem;
  line-height: 1.375;
  color: var(--foreground);
}

.company-card__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .company-card__aside {
    align-items: flex-end;
  }
}

.company-card__index {
  display: none;
  font-family: var(--font-display);
  font-size: 3.75rem;
  font-weight: 800;
  color: var(--border);
  line-height: 1;
}

@media (min-width: 1024px) {
  .company-card__index {
    display: block;
  }
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: var(--background);
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}

.btn-outline:hover {
  background: var(--secondary);
}

/* ——— Timeline ——— */

.timeline {
  margin-top: 3.5rem;
}

@media (min-width: 1024px) {
  .timeline {
    margin-top: 4rem;
  }
}

.timeline__item {
  display: grid;
  gap: 1rem;
  border-top: 1px solid var(--border);
  padding-block: 2rem;
}

.timeline__item:last-child {
  border-bottom: 1px solid var(--border);
}

@media (min-width: 640px) {
  .timeline__item {
    grid-template-columns: 110px 1fr;
    gap: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .timeline__item {
    grid-template-columns: 140px 1fr;
  }
}

.timeline__year {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--primary);
}

.timeline__content {
  max-width: 42rem;
}

.timeline__content h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

@media (min-width: 640px) {
  .timeline__content h3 {
    font-size: 1.25rem;
  }
}

.timeline__content p {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}

/* ——— Footer ——— */

.site-footer {
  border-top: 1px solid var(--ink-border);
  background: var(--ink);
}

.site-footer__band {
  height: 1px;
  width: 100%;
  opacity: 0.6;
}

.site-footer__inner {
  padding-block: 3.5rem;
}

@media (min-width: 1024px) {
  .site-footer__inner {
    padding-block: 4rem;
  }
}

.site-footer__grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .site-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.site-footer__brand img {
  height: 34px;
  width: auto;
}

.site-footer__brand p {
  margin-top: 1.25rem;
  max-width: 24rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--ink-muted);
}

.site-footer__brand > p:first-of-type {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-foreground);
}

.site-footer__brand-note {
  margin-top: 0.75rem;
}

.site-footer__nav h2 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.site-footer__nav ul {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.site-footer__nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: color-mix(in oklab, var(--ink-foreground) 85%, transparent);
  transition: color 0.15s ease;
}

.site-footer__nav a:hover {
  color: var(--ink-foreground);
}

.site-footer__bottom {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-top: 1px solid var(--ink-border);
  padding-top: 1.75rem;
}

@media (min-width: 640px) {
  .site-footer__bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.site-footer__bottom p {
  font-size: 0.75rem;
  color: var(--ink-muted);
}

/* ——— Scroll reveal ——— */

.reveal {
  opacity: 0;
  transform: translateY(1.35rem);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  --reveal-delay: 90ms;
}

.reveal-delay-2 {
  --reveal-delay: 180ms;
}

.reveal-delay-3 {
  --reveal-delay: 270ms;
}

.reveal-delay-4 {
  --reveal-delay: 360ms;
}

.reveal-delay-5 {
  --reveal-delay: 450ms;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* No mobile: conteúdo visível de imediato (sem espera de scroll) */
@media (max-width: 1023px) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
