/* ===========================
   CIENPE — CSS
   Paleta: Azul marinho + Teal/Turquesa + Prata
   Baseado na identidade visual da logo
   =========================== */

/* --- RESET & VARIABLES --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Azuis — extraídos da logo */
  --navy: #0d2a52;
  --navy-mid: #143c78;
  --navy-lt: #1e5098;

  /* Teal/Turquesa — cor de destaque da logo */
  --teal: #0fb8b8;
  --teal-lt: #3dd0d0;
  --teal-pale: #d0f2f2;
  --teal-dark: #0a8e8e;

  /* Prata — da borda do "C" na logo */
  --silver: #b4c8d8;
  --silver-lt: #dceaf4;

  /* Neutros */
  --cream: #f2f8fa;
  --white: #ffffff;
  --text: #1a2e45;
  --text-lt: #4a6580;
  --border: rgba(15, 184, 184, 0.2);

  --ff-display: "Playfair Display", Georgia, serif;
  --ff-body: "DM Sans", system-ui, sans-serif;

  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(13, 42, 82, 0.1);
  --shadow-lg: 0 12px 48px rgba(13, 42, 82, 0.18);
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- CUSTOM SCROLLBAR --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--teal);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--teal-lt);
}
* {
  scrollbar-width: thin;
  scrollbar-color: var(--teal) transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--ff-body);
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}
ul {
  list-style: none;
}

/* --- CONTAINER --- */
.container {
  width: min(1200px, 92vw);
  margin-inline: auto;
}

/* --- TYPOGRAPHY UTILS --- */
.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
  position: relative;
  padding-left: 2rem;
}
.section-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1.4rem;
  height: 1px;
  background: var(--teal);
}
.section-label--light {
  color: var(--teal-lt);
}
.section-label--light::before {
  background: var(--teal-lt);
}

.section-title {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 1.2rem;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--text-lt);
  max-width: 560px;
  line-height: 1.7;
}
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header .section-label {
  display: block;
}
.section-header .section-label::before {
  display: none;
}
.section-header .section-sub {
  margin-inline: auto;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--ff-body);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}
.btn--primary {
  background: var(--teal);
  color: var(--navy);
  border-color: var(--teal);
}
.btn--primary:hover {
  background: var(--teal-lt);
  border-color: var(--teal-lt);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 184, 184, 0.35);
}
.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.65);
}
.btn--full {
  width: 100%;
  justify-content: center;
}

/* --- REVEAL ANIMATION --- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   NAV
   =========================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition:
    background 0.4s ease,
    box-shadow 0.4s ease,
    padding 0.4s ease;
}
.nav.scrolled {
  background: rgba(13, 42, 82, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
  padding: 0.6rem 0;
}
.nav__inner {
  width: min(1200px, 92vw);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}
.nav__logo-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 6px;
  padding: 2px;
}
.nav__logo-name {
  font-family: var(--ff-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.04em;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav__links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: 0.04em;
  transition: color 0.3s;
  position: relative;
}
.nav__links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--teal);
  transition: width 0.3s ease;
}
.nav__links a:hover {
  color: var(--white);
}
.nav__links a:hover::after {
  width: 100%;
}
.nav__cta {
  background: var(--teal) !important;
  color: var(--navy) !important;
  padding: 0.5rem 1.4rem;
  border-radius: 50px;
  font-weight: 600 !important;
}
.nav__cta::after {
  display: none !important;
}
.nav__cta:hover {
  background: var(--teal-lt) !important;
}
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===========================
   HERO
   =========================== */
.hero {
  min-height: 100vh;
  background: var(--navy);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 8rem 0 6rem;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero__circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(15, 184, 184, 0.15);
}
.hero__circle--1 {
  width: 700px;
  height: 700px;
  top: -200px;
  right: -180px;
  animation: spin 40s linear infinite;
}
.hero__circle--2 {
  width: 400px;
  height: 400px;
  top: -50px;
  right: 30px;
  border-color: rgba(15, 184, 184, 0.25);
  animation: spin 25s linear infinite reverse;
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 184, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 184, 184, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(1200px, 92vw);
  margin-inline: auto;
}
.hero__eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.4rem;
}
.hero__title {
  font-family: var(--ff-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 1.8rem;
}
.hero__title em {
  font-style: italic;
  color: var(--teal);
}
.hero__sub {
  font-size: 1.1rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.68);
  max-width: 560px;
  margin-bottom: 2.5rem;
}
.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__aside {
  position: absolute;
  right: 5vw;
  bottom: 8vh;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  z-index: 2;
}
.hero__stat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}
.hero__stat-number {
  font-family: var(--ff-display);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
}
.hero__stat-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  margin-top: 0.2rem;
}

/* ===========================
   SOBRE
   =========================== */
.sobre {
  padding: 7rem 0;
  background: var(--white);
}
.sobre__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.sobre__text p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-lt);
  margin-bottom: 1.2rem;
}
.sobre__text strong {
  color: var(--navy);
}
.sobre__text em {
  color: var(--teal-dark);
  font-style: italic;
}
.sobre__pillars {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.pillar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--teal-pale);
  border: 1px solid var(--border);
  padding: 0.55rem 1.1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--navy);
}

/* --- Diagram --- */
.sobre__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.sobre__diagram {
  position: relative;
  width: 340px;
  height: 340px;
}
.diagram__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.diagram__ring--outer {
  width: 340px;
  height: 340px;
  border-color: rgba(15, 184, 184, 0.18);
  animation: spin 30s linear infinite;
}
.diagram__ring--mid {
  width: 230px;
  height: 230px;
  border-color: rgba(15, 184, 184, 0.35);
  animation: spin 20s linear infinite reverse;
}
.diagram__ring--inner {
  width: 120px;
  height: 120px;
  border-color: rgba(15, 184, 184, 0.55);
  animation: spin 12s linear infinite;
}
.diagram__core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90px;
  height: 90px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 0 30px rgba(15, 184, 184, 0.3);
  overflow: hidden;
  border: 2px solid rgba(15, 184, 184, 0.4);
}
.diagram__logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}
.diagram__dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 88px;
  text-align: center;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--navy);
  background: var(--teal-pale);
  border: 1px solid var(--teal);
  border-radius: 20px;
  padding: 0.3rem 0.5rem;
  transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-155px)
    rotate(calc(-1 * var(--angle)));
}

/* ===========================
   ATIVIDADES
   =========================== */
.atividades {
  padding: 7rem 0;
  background: var(--cream);
}
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.card {
  background: var(--white);
  border: 1px solid rgba(13, 42, 82, 0.08);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--teal);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s ease;
  border-radius: 4px 0 0 4px;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.card:hover::before {
  transform: scaleY(1);
}
.card__icon {
  width: 52px;
  height: 52px;
  background: var(--navy);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  color: var(--teal);
  flex-shrink: 0;
}
.card__icon svg {
  width: 28px;
  height: 28px;
}
.card__num {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--teal-dark);
  text-transform: uppercase;
}
.card__title {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}
.card__body {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-lt);
  flex: 1;
}
.card__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--teal-dark);
  background: var(--teal-pale);
  border: 1px solid var(--border);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  margin-top: 0.4rem;
  align-self: flex-start;
}

/* ===========================
   TEAM
   =========================== */
.team {
  background-color: var(--white);
  padding: 7rem 0;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.team-images {
  display: flex;
  flex-direction: row;
  width: 100%;
  justify-content: space-evenly;
  align-items: start;
  gap: 20px;
  flex-wrap: wrap;
}

.cont-team-images {
  width: 260px;
  display: flex;
  justify-content: start;
  align-items: center;
  flex-direction: column;
  margin-top: 20px;
}

.cont-team-images img {
  width: 260px;
  height: 370px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgb(225, 240, 252);
  box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.164);
}

.team-name {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}

/* ===========================
   MISSÃO
   =========================== */
.missao {
  padding: 7rem 0;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.missao__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.missao__lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 184, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 184, 184, 0.06) 1px, transparent 1px);
  background-size: 80px 80px;
}
.missao__content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}
.missao__quote {
  font-family: var(--ff-display);
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  font-style: italic;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
  border-top: 1px solid rgba(15, 184, 184, 0.35);
  border-bottom: 1px solid rgba(15, 184, 184, 0.35);
  padding: 2.5rem 1rem;
  margin-bottom: 3rem;
}
.missao__quote::before,
.missao__quote::after {
  content: '"';
  font-size: 4rem;
  color: var(--teal);
  line-height: 0;
  vertical-align: -1rem;
  opacity: 0.6;
}
.missao__values {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.value {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.value__icon {
  font-size: 1.8rem;
}
.value__label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

/* ===========================
   CONTATO
   =========================== */
.contato {
  padding: 7rem 0;
  background: var(--white);
}
.contato__layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: start;
}
.contato__info .section-title {
  margin-bottom: 1rem;
}
.contato__info p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-lt);
  margin-bottom: 2rem;
}
.contato__details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contato__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.5;
}
.contato__icon {
  width: 36px;
  height: 36px;
  background: var(--teal-pale);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* --- MAP --- */
.contato__map {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 420px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(13, 42, 82, 0.08);
}
.contato__map iframe {
  width: 100%;
  height: 100%;
  display: block;
}
.map__directions {
  position: absolute;
  bottom: 1.2rem;
  right: 1.2rem;
  background: var(--navy);
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  border: 1px solid rgba(15, 184, 184, 0.3);
  transition: var(--transition);
}
.map__directions:hover {
  background: var(--teal);
  color: var(--navy);
  border-color: var(--teal);
}

/* ===========================
   FOOTER
   =========================== */
.footer {
  background: var(--navy-mid);
  padding: 4rem 0 0;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer__brand p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 1rem;
}
.footer__sub {
  font-size: 0.75rem !important;
  color: var(--teal) !important;
  margin-top: 0.3rem !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.footer__brand .nav__logo-name {
  color: var(--white);
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.footer__links h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.4rem;
}
.footer__links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.3s;
}
.footer__links a:hover {
  color: var(--teal-lt);
}
.footer__bottom {
  padding: 1.5rem 0;
  text-align: center;
}
.footer__bottom p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
  .hero__aside {
    position: static;
    flex-direction: row;
    justify-content: center;
    gap: 3rem;
    padding: 2.5rem 0 0;
  }
  .hero__stat {
    align-items: center;
    text-align: center;
  }
  .hero {
    padding-bottom: 0;
    min-height: auto;
    padding-top: 7rem;
  }
}

@media (max-width: 768px) {
  .nav__links {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100vh;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 3rem 2.5rem;
    gap: 2rem;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease;
    transform: translateX(100%);
  }
  .nav__links.open {
    display: flex;
    transform: translateX(0);
  }
  .nav__links a {
    font-size: 1.1rem;
  }
  .nav__burger {
    display: flex;
  }
  .nav__burger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav__burger.active span:nth-child(2) {
    opacity: 0;
  }
  .nav__burger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .sobre__layout,
  .contato__layout {
    grid-template-columns: 1fr;
  }
  .sobre__visual {
    order: -1;
  }
  .sobre__diagram {
    width: 260px;
    height: 260px;
  }
  .diagram__ring--outer {
    width: 260px;
    height: 260px;
  }
  .diagram__ring--mid {
    width: 175px;
    height: 175px;
  }
  .diagram__ring--inner {
    width: 90px;
    height: 90px;
  }
  .diagram__dot {
    transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-118px)
      rotate(calc(-1 * var(--angle)));
  }

  .cards {
    grid-template-columns: 1fr;
  }
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero__aside {
    flex-wrap: wrap;
    gap: 2rem;
  }
  .contato__map {
    height: 320px;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 2.6rem;
  }
  .hero__actions {
    flex-direction: column;
  }
  .btn {
    justify-content: center;
  }
  .missao__values {
    gap: 1.2rem;
  }
}
