@import url("reset.css");
@import url("variables.css");

body {
  font-family: var(--font-base);
  overflow-wrap: break-word;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-xl) 0;
  position: relative;
  overflow: hidden;
}

.section--navy { background: var(--color-navy); color: var(--color-white); }
.section--ice { background: var(--color-ice); color: var(--color-navy); }
.section--white { background: var(--color-white); color: var(--color-black); }
.section--black { background: var(--color-black); color: var(--color-white); }

/* Grafismo (marca d'água do dodecaedro) nas transições entre seções —
   uso autorizado pelo manual, seção 7.2. Aplicado a todas as seções
   exceto o Hero (que já tem seu próprio grafismo de esferas). */
.section:not(.hero):not(.quem-somos)::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon points='50,5 90,30 78,80 22,80 10,30' fill='none' stroke='%23009933' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

.section > .container {
  position: relative;
  z-index: 1;
}

/* Indicador de progresso (seta de círculos crescentes do manual da
   marca), literalizada como indicador funcional de rolagem da página. */
.scroll-progress {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

@media (min-width: 992px) {
  .scroll-progress {
    display: flex;
  }
}

.progress-dot {
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  border: 2px solid var(--color-green-3);
  background: transparent;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.progress-dot.is-active {
  background: var(--color-green-3);
  transform: scale(1.1);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  display: flex;
  align-items: center;
  z-index: 100;
  background: transparent;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header--solid {
  background: rgba(13, 27, 42, 0.92);
  backdrop-filter: blur(6px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--color-white);
  font-weight: bold;
  font-size: 1.5rem;
  font-style: italic;
}

.site-logo-img {
  height: 44px;
  width: auto;
  display: block;
}

.site-header .site-logo-img {
  height: 72px;
}

.site-footer .site-logo-img {
  height: 30px;
}

.nav-menu {
  display: none;
  gap: var(--space-md);
}

.nav-menu a {
  color: var(--color-white);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-toggle {
  color: var(--color-white);
  font-size: 1.75rem;
  line-height: 1;
}

@media (min-width: 768px) {
  .nav-menu {
    display: flex;
  }
  .nav-toggle {
    display: none;
  }
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-navy);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
  padding-top: var(--header-height);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
  width: 100%;
  min-width: 0;
  margin-top: 206px;
}

.hero-content::before {
  content: "";
  position: absolute;
  inset: -60px;
  z-index: -1;
  background: radial-gradient(
    circle,
    rgba(0, 153, 51, 0.14) 0%,
    rgba(0, 153, 51, 0) 65%
  );
  pointer-events: none;
}

.hero-headline {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: bold;
  margin-top: var(--space-md);
  line-height: 1.3;
  overflow-wrap: break-word;
  word-break: break-word;
}

.hero-subline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-top: 0;
  color: var(--color-ice);
  overflow-wrap: break-word;
  word-break: break-word;
}

.hero-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-md);
  margin-top: 2rem;
}

.hero-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(240, 244, 248, 0.4);
  color: var(--color-white);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.hero-icons a:hover {
  background: var(--color-green-3);
  border-color: var(--color-green-3);
}

.hero-bg {
  position: absolute;
  inset: -20px;
  z-index: 0;
  background-image: url("../assets/hero/escritorio-bg.jpg");
  background-size: cover;
  background-position: center 30%;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(13, 27, 42, 0.88) 0%,
    rgba(13, 27, 42, 0.72) 45%,
    rgba(13, 27, 42, 0.92) 100%
  );
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: bold;
  color: var(--color-green-2);
  margin-bottom: var(--space-md);
  overflow-wrap: break-word;
  word-break: break-word;
}

.section-text {
  font-size: 1.1rem;
  max-width: 800px;
  line-height: 1.7;
}

.section-text + .section-text {
  margin-top: var(--space-sm);
}

.quem-somos {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  color: var(--color-white);
}

.quem-somos-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("../assets/images/quem-somos.jpg");
  background-size: cover;
  background-position: center 30%;
}

.quem-somos-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    100deg,
    rgba(13, 27, 42, 0.94) 0%,
    rgba(13, 27, 42, 0.86) 35%,
    rgba(13, 27, 42, 0.55) 60%,
    rgba(13, 27, 42, 0.15) 85%
  );
}

.quem-somos > .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.quem-somos-text {
  max-width: 640px;
}

@media (max-width: 899px) {
  .quem-somos-overlay {
    background: linear-gradient(
      180deg,
      rgba(13, 27, 42, 0.93) 0%,
      rgba(13, 27, 42, 0.9) 55%,
      rgba(13, 27, 42, 0.8) 100%
    );
  }
}

.quem-somos-text .section-text {
  text-align: justify;
  color: var(--color-ice);
}

.proposito-section {
  text-align: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
}

.proposito-bg {
  position: absolute;
  inset: -20px;
  z-index: 0;
  background-image: url("../assets/images/proposito-bg.jpg");
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.proposito-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(13, 27, 42, 0.72);
}

.proposito-container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.mission-statement {
  position: relative;
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  font-weight: bold;
  line-height: 1.45;
  color: var(--color-white);
  margin: 0 auto;
  text-shadow: 0 2px 12px rgba(13, 27, 42, 0.5);
}

.mission-statement strong {
  color: var(--color-green-4);
}

.reveal {
  opacity: 1; /* estado padrão sem JS, evita FOUC se GSAP falhar ao carregar */
}

.values-carousel {
  position: relative;
  margin-top: var(--space-sm);
}

.values-grid {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--space-md);
  scrollbar-width: none;
  padding-bottom: var(--space-xs);
}

.values-grid::-webkit-scrollbar {
  display: none;
}

.value-tag {
  position: relative;
  flex: 0 0 85%;
  scroll-snap-align: start;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(13, 27, 42, 0.12);
}

@media (min-width: 600px) {
  .value-tag {
    flex: 0 0 calc(50% - var(--space-md) / 2);
  }
}

@media (min-width: 992px) {
  .value-tag {
    flex: 0 0 calc(33.333% - var(--space-md) * 2 / 3);
  }
}

.value-tag-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.value-tag-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(13, 27, 42, 0.05) 0%,
    rgba(13, 27, 42, 0.55) 55%,
    rgba(13, 27, 42, 0.94) 100%
  );
}

.value-tag-body {
  position: relative;
  z-index: 2;
  padding: var(--space-md);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.value-tag-body strong {
  color: var(--color-white);
  font-size: 1.05rem;
}

.value-tag-body span {
  font-size: 0.9rem;
  color: var(--color-ice);
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-navy);
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(13, 27, 42, 0.18);
  z-index: 3;
}

.carousel-arrow:hover {
  background: var(--color-green-3);
  color: var(--color-white);
}

.carousel-arrow--prev {
  left: -8px;
}

.carousel-arrow--next {
  right: -8px;
}

@media (min-width: 1100px) {
  .carousel-arrow--prev {
    left: -22px;
  }
  .carousel-arrow--next {
    right: -22px;
  }
}

.founder-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: start;
}

@media (min-width: 768px) {
  .founder-grid {
    grid-template-columns: 260px 1fr;
  }
}

.founder-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.founder-photo {
  aspect-ratio: 4 / 5;
  width: 100%;
  max-width: 260px;
  background: var(--color-navy);
  object-fit: cover;
  object-position: center top;
}

.founder-bio-scroll .section-text {
  text-align: justify;
}

@media (min-width: 768px) {
  .founder-bio-scroll {
    max-height: 45vh;
    overflow-y: auto;
    padding-right: var(--space-md);
    scrollbar-width: thin;
    scrollbar-color: var(--color-green-3) transparent;
  }

  .founder-bio-scroll::-webkit-scrollbar {
    width: 8px;
  }

  .founder-bio-scroll::-webkit-scrollbar-track {
    background: transparent;
  }

  .founder-bio-scroll::-webkit-scrollbar-thumb {
    background-color: var(--color-green-3);
    border-radius: 999px;
  }
}

.founder-name {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--color-navy);
  margin-top: var(--space-sm);
}

.founder-tagline {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-top: var(--space-xs);
}

.founder-quote {
  position: relative;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: bold;
  line-height: 1.5;
  color: var(--color-green-1);
  border-left: 3px solid var(--color-green-3);
  padding-left: var(--space-sm);
  margin: 0 0 var(--space-md);
}

#negocios {
  padding: var(--header-height) 0 var(--space-sm);
}

#negocios .section-title {
  margin-bottom: var(--space-sm);
}

.business-grid {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: var(--space-sm);
  column-gap: var(--space-md);
  margin-top: var(--space-sm);
}

@media (min-width: 700px) {
  .business-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.business-card {
  position: relative;
  aspect-ratio: 2.6 / 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(13, 27, 42, 0.1);
}

.business-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.business-card-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: var(--space-sm) var(--space-md);
  background: linear-gradient(
    180deg,
    rgba(13, 27, 42, 0) 0%,
    rgba(13, 27, 42, 0.85) 100%
  );
}

.business-card-title h3 {
  color: var(--color-white);
  font-size: 1rem;
  margin: 0;
}

.business-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: rgba(13, 27, 42, 0.95);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.business-card:hover .business-card-overlay,
.business-card:focus-within .business-card-overlay {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.business-card-overlay h3 {
  color: var(--color-green-4);
  font-size: 1.05rem;
  margin-bottom: var(--space-xs);
}

.business-card-overlay p {
  color: var(--color-ice);
  font-size: 0.9rem;
  line-height: 1.55;
  text-align: justify;
}

/* Dispositivos sem hover (touch): mantém a descrição sempre visível,
   evitando esconder conteúdo atrás de uma interação inacessível. */
@media (hover: none) {
  .business-card {
    aspect-ratio: auto;
  }

  .business-card-title {
    display: none;
  }

  .business-card-overlay {
    position: static;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

@media (min-width: 600px) {
  .ecosystem-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .ecosystem-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.ecosystem-card {
  background: rgba(240, 244, 248, 0.06);
  border: 1px solid rgba(240, 244, 248, 0.2);
  padding: var(--space-md);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
}

.ecosystem-card h3 {
  font-size: 1rem;
}

.badge-soon {
  display: inline-block;
  background: rgba(0, 153, 51, 0.25);
  color: var(--color-green-4);
  font-size: 0.75rem;
  font-weight: bold;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}

#ecossistema {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

#contato {
  border-top: 1px solid rgba(240, 244, 248, 0.15);
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  font-size: 1.1rem;
}

.contact-list a {
  text-decoration: underline;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: start;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-icons {
  justify-content: flex-start;
  margin-top: var(--space-md);
}

.contact-invite {
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  font-weight: 600;
  line-height: 1.6;
  color: var(--color-ice);
  text-align: center;
}

.site-footer {
  background: var(--color-black);
  color: var(--color-white);
  padding: var(--space-md) 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  text-align: center;
  font-size: 0.85rem;
}

@media (min-width: 600px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
  }
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--color-royal);
  outline-offset: 2px;
}

@media (max-width: 767px) {
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    flex-direction: column;
    background: var(--color-navy);
    padding: var(--space-md);
    gap: var(--space-sm);
    transform: translateY(-150%);
    transition: transform 0.3s ease;
  }

  .nav-menu.is-open {
    display: flex;
    transform: translateY(0);
  }
}
