/* Instituto GR5 Brasil — stylesheet próprio, sem WordPress/Elementor */
@font-face {
  font-family: "Yantramanav";
  src: url("../assets/fonts/yantramanav-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Yantramanav";
  src: url("../assets/fonts/yantramanav-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Yantramanav";
  src: url("../assets/fonts/yantramanav-900.woff2") format("woff2");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src: url("../assets/fonts/open-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/poppins-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --navy: #071126;
  --navy-soft: #071126;
  --blue: #007bb5;
  --heading: #02091a;
  --heading-blue: #00235a;
  --text: #616161;
  --muted: #969aa3;
  --surface: #fafafa;
  --white: #fff;
  --container: 1140px;
  --shadow: 0 18px 50px rgb(1 7 26 / 12%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--surface);
  color: var(--text);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.dark-page {
  background: var(--navy);
  color: #bec2cb;
}

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

img {
  height: auto;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid #3bbcf4;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  transform: translateY(-160%);
  border-radius: 6px;
  background: var(--white);
  color: var(--navy);
  padding: 10px 14px;
  font-weight: 700;
}

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

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 8px;
  color: #a1a1a1;
  font-family: "Yantramanav", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  color: var(--heading);
  font-family: "Yantramanav", sans-serif;
  font-size: clamp(1.8rem, 6vw, 2.35rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

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

.site-header {
  position: fixed;
  top: 14px;
  right: 0;
  left: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.site-nav {
  position: relative;
  display: flex;
  width: min(calc(100% - 28px), 620px);
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgb(255 255 255 / 9%);
  border-radius: 14px;
  background: rgb(1 7 26 / 68%);
  box-shadow: 0 10px 28px rgb(0 0 0 / 16%);
  padding: 6px 8px 6px 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: auto;
  transition: background-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled .site-nav {
  background: rgb(1 7 26 / 92%);
  box-shadow: 0 10px 30px rgb(0 0 0 / 28%);
}

.nav-brand {
  color: var(--white);
  font-family: "Yantramanav", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  text-decoration: none;
}

.nav-toggle {
  display: inline-grid;
  width: 40px;
  height: 36px;
  place-content: center;
  gap: 4px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-links {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  display: none;
  margin: 0;
  border: 1px solid rgb(255 255 255 / 9%);
  border-radius: 12px;
  background: rgb(1 7 26 / 96%);
  padding: 8px;
  list-style: none;
  box-shadow: var(--shadow);
}

.nav-links.is-open {
  display: grid;
}

.nav-links a {
  display: block;
  border-radius: 8px;
  color: var(--white);
  padding: 9px 12px;
  font-family: "Yantramanav", sans-serif;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: rgb(255 255 255 / 10%);
  color: #5ec7f6;
}

.hero {
  position: relative;
  display: grid;
  min-height: 600px;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: var(--navy) url("../assets/images/hero-instituto.jpeg") 42% center / cover no-repeat;
  color: var(--white);
}

.hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(180deg, rgb(1 7 26 / 18%) 20%, rgb(1 7 26 / 52%) 100%),
    linear-gradient(110deg, rgb(1 7 26 / 30%) 0%, rgb(1 7 26 / 58%) 62%, var(--navy) 100%);
  content: "";
}

.hero__inner {
  display: grid;
  gap: 34px;
  padding-block: 130px 90px;
}

.hero__logo {
  width: min(100%, 470px);
  height: auto;
  filter: brightness(0) invert(1);
}

.hero h1 {
  max-width: 630px;
  margin: 0;
  color: var(--white);
  font-family: "Yantramanav", sans-serif;
  font-size: clamp(2.45rem, 11vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-wrap: balance;
}

.mission {
  background: var(--surface);
  padding-block: 82px;
}

.mission__heading {
  max-width: 100%;
  margin: 0 auto 46px;
  text-align: center;
}

.mission-grid {
  display: grid;
  gap: 38px;
}

.mission-card__media {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #e8e8e8;
}

.mission-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.mission-card:hover .mission-card__media img {
  transform: scale(1.035);
}

.mission-card h3 {
  margin: 20px 0 8px;
  color: var(--heading-blue);
  font-family: "Yantramanav", sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.2;
}

.mission-card p {
  margin: 0;
}

.about {
  background: var(--surface);
  padding: 0 0 70px;
}

.about__inner {
  display: grid;
  gap: 42px;
  align-items: center;
}

.about__video {
  width: 100%;
  aspect-ratio: 9 / 16;
  background: #080808;
  object-fit: cover;
}

.about__copy p {
  margin: 18px 0 0;
}

.about__copy strong {
  color: #4d4d4d;
}

.supporters {
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
  padding-block: 48px 54px;
}

.supporters h2 {
  margin: 0 0 30px;
  font-family: "Poppins", sans-serif;
  font-size: 1.15rem;
  font-weight: 400;
  text-align: center;
}

.logo-carousel {
  position: relative;
}

.logo-carousel__viewport {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.logo-carousel__track {
  display: flex;
  width: max-content;
  align-items: center;
  animation: logo-scroll 32s linear infinite;
}

.logo-carousel:hover .logo-carousel__track,
.logo-carousel:focus-within .logo-carousel__track {
  animation-play-state: paused;
}

.supporter-logo {
  display: grid;
  width: 180px;
  height: 92px;
  flex: 0 0 auto;
  place-items: center;
  margin-inline: 16px;
}

.supporter-logo img {
  width: 150px;
  max-height: 84px;
  object-fit: contain;
}

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

.join {
  position: relative;
  min-height: 520px;
  background: #f8f8f7 url("../assets/images/textura-clara.png") center / cover;
}

.join__copy {
  padding-block: 72px 42px;
}

.join__copy p:last-child {
  max-width: 520px;
  margin: 18px 0 0;
}

.join__image {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.team {
  background: var(--navy);
  color: var(--white);
  padding-block: 76px 84px;
}

.team__heading {
  margin-bottom: 42px;
  text-align: center;
}

.team-grid {
  display: grid;
  gap: 14px;
}

.person {
  position: relative;
  overflow: hidden;
  margin: 0;
  background: #d6d3cf;
}

.person img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.person figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  transform: translateY(calc(100% - 69px));
  background: linear-gradient(0deg, rgb(1 7 26 / 96%), rgb(1 7 26 / 80%) 68%, transparent);
  padding: 44px 18px 16px;
  transition: transform 260ms ease;
}

.person:hover figcaption,
.person:focus-within figcaption {
  transform: translateY(0);
}

.person h3 {
  margin: 0;
  color: var(--white);
  font-family: "Yantramanav", sans-serif;
  font-size: 1.3rem;
  font-weight: 900;
  line-height: 1.05;
}

.person__role {
  display: block;
  margin-top: 3px;
  color: #56c6f8;
  font-family: "Yantramanav", sans-serif;
  font-weight: 700;
}

.person__bio {
  margin: 10px 0 0;
  color: #d8dae1;
  font-size: 0.76rem;
  line-height: 1.45;
}

.instagram {
  background: #f5f6f8;
  padding-block: 76px 90px;
}

.instagram__heading {
  margin-bottom: 38px;
  text-align: center;
}

.instagram__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.instagram__profile {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--heading);
  font-size: 0.83rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}

.instagram__avatar {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 2px solid #d244b3;
  border-radius: 50%;
  background: var(--white);
  color: var(--heading-blue);
  font-family: "Yantramanav", sans-serif;
  font-size: 0.63rem;
  font-weight: 900;
}

.instagram__follow {
  border-radius: 6px;
  background: #0095f6;
  color: var(--white);
  padding: 8px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.instagram-grid a {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #ddd;
}

.instagram-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease, filter 300ms ease;
}

.instagram-grid a:hover img,
.instagram-grid a:focus img {
  transform: scale(1.04);
  filter: brightness(0.8);
}

.home-blog {
  background: var(--navy);
  color: var(--white);
  padding-block: 84px 38px;
}

.home-blog__heading {
  margin-bottom: 22px;
  text-align: center;
}

.featured-post {
  display: grid;
  gap: 28px;
  border-radius: 14px;
  background: var(--white);
  color: var(--text);
  padding: 18px;
  box-shadow: var(--shadow);
}

.featured-post__image-link {
  overflow: hidden;
  min-height: 340px;
  border-radius: 10px;
}

.featured-post img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 26%;
}

.featured-post__copy {
  align-self: center;
}

.featured-post h3 {
  margin: 0 0 20px;
  color: #050505;
  font-family: "Yantramanav", sans-serif;
  font-size: clamp(1.9rem, 8vw, 2.55rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.06;
}

.featured-post h3 a,
.post-card h2 a {
  text-decoration: none;
}

.featured-post h3 a:hover,
.post-card h2 a:hover {
  color: var(--blue);
}

.featured-post p {
  margin: 0;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 20px;
  color: var(--heading-blue);
  font-family: "Yantramanav", sans-serif;
  font-weight: 900;
  text-decoration: none;
}

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

.site-footer {
  background: var(--navy);
  color: #c8cbd3;
  padding-block: 36px 44px;
}

.site-footer--bordered {
  border-top: 1px solid rgb(255 255 255 / 12%);
}

.footer__inner {
  display: grid;
  gap: 26px;
  align-items: center;
  text-align: center;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: "Yantramanav", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
}

.footer__brand img {
  display: block;
  width: 180px;
  height: auto;
  filter: brightness(0) invert(1);
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  font-size: 0.85rem;
}

.footer__nav a {
  text-decoration: none;
}

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

.footer__credit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0;
  font-size: 0.75rem;
}

.footer__credit img {
  width: 88px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Blog */
.blog-hero {
  position: relative;
  display: grid;
  overflow: hidden;
  min-height: 480px;
  place-items: center;
  background: var(--navy);
  padding: 110px 16px 56px;
  text-align: center;
}

.blog-hero::before {
  position: absolute;
  inset: -18px;
  background: url("../assets/images/oficina-gr5.webp") 50% 48% / cover no-repeat;
  content: "";
  filter: blur(5px);
  transform: scale(1.035);
}

.blog-hero::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(7 17 38 / 78%), rgb(7 17 38 / 70%) 50%, rgb(7 17 38 / 82%));
  content: "";
}

.blog-hero > div {
  position: relative;
  z-index: 1;
}

.blog-hero img {
  width: min(100%, 470px);
  margin-inline: auto;
  filter: brightness(0) invert(1);
}

.blog-hero h1 {
  margin: 56px 0 0;
  color: var(--white);
  font-family: "Poppins", sans-serif;
  font-size: clamp(2.35rem, 8vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.blog-hero h1 span {
  color: #35b9f1;
  font-weight: 600;
}

.blog-listing {
  min-height: 560px;
  background: var(--navy);
  padding-block: 56px 90px;
}

.post-grid {
  display: grid;
  gap: 32px;
}

.post-card {
  max-width: 370px;
}

.post-card__image {
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  margin-bottom: 20px;
  background: #151b2c;
}

.post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 26%;
  transition: transform 300ms ease;
}

.post-card__image:hover img {
  transform: scale(1.035);
}

.post-card h2 {
  margin: 0 0 4px;
  color: var(--white);
  font-family: "Yantramanav", sans-serif;
  font-size: 1.18rem;
  font-weight: 400;
  line-height: 1.17;
}

.post-card__meta,
.article__meta {
  color: #a7abb5;
  font-size: 0.76rem;
}

.post-card__excerpt {
  margin: 16px 0 0;
  color: #989da8;
  font-size: 0.88rem;
  line-height: 1.5;
}

.post-card .text-link {
  color: var(--white);
  font-size: 0.85rem;
}

/* Artigo */
.article {
  background: var(--navy);
  color: #b8bcc6;
  padding: 128px 0 84px;
}

.article__header,
.article__body {
  width: min(100% - 32px, 700px);
  margin-inline: auto;
}

.article h1 {
  margin: 0 0 30px;
  color: #f1f2f5;
  font-family: "Open Sans", sans-serif;
  font-size: clamp(2.25rem, 10vw, 4.35rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.15;
}

.article__cover {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
  object-position: center 23%;
}

.article__meta {
  margin: 18px 0 64px;
}

.article__meta a,
.article__body a {
  color: #eef0f4;
  text-underline-offset: 3px;
}

.article__body {
  font-size: 1rem;
}

.article__lead {
  color: #eef0f4;
  font-size: clamp(1.12rem, 3vw, 1.35rem);
  line-height: 1.55;
}

.article__body h2 {
  margin: 48px 0 18px;
  color: #f1f2f5;
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.55rem, 5vw, 2.15rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.18;
}

.article__body p {
  margin: 0 0 22px;
}

.article__body em {
  color: #aeb3bd;
}

.article__body hr {
  height: 1px;
  margin: 34px 0;
  border: 0;
  background: rgb(255 255 255 / 13%);
}

.article__inline-image {
  width: min(100%, 300px);
  margin: 28px 0;
}

.article__figure {
  margin: 42px 0;
}

.article__figure img {
  width: 100%;
  max-height: 560px;
  border-radius: 12px;
  object-fit: cover;
}

.article__figure figcaption {
  margin-top: 10px;
  color: #8f96a4;
  font-size: 0.78rem;
  line-height: 1.45;
}

.article__cta {
  margin-top: 52px !important;
  border-left: 3px solid #35b9f1;
  background: rgb(255 255 255 / 5%);
  padding: 20px 22px;
  color: #d9dde6;
}

.article__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 62px 0 0;
  padding: 0;
  list-style: none;
}

.article__tags li {
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.75rem;
}

.article-back {
  margin-top: 52px;
  color: var(--white);
}

.error-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  background: var(--navy);
  color: #b8bcc6;
  padding: 110px 16px 60px;
  text-align: center;
}

.error-page__code {
  margin: 0;
  color: #35b9f1;
  font-family: "Yantramanav", sans-serif;
  font-size: clamp(5rem, 28vw, 11rem);
  font-weight: 900;
  line-height: 0.72;
}

.error-page h1 {
  margin: 34px 0 10px;
  color: var(--white);
  font-family: "Yantramanav", sans-serif;
  font-size: clamp(2rem, 7vw, 3.5rem);
  line-height: 1;
}

.error-page p {
  max-width: 560px;
  margin: 0 auto;
}

@media (min-width: 560px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .instagram-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .container {
    width: min(100% - 56px, var(--container));
  }

  .site-nav {
    width: auto;
    min-width: 0;
    padding: 6px 8px;
  }

  .nav-brand,
  .nav-toggle {
    display: none;
  }

  .nav-links {
    position: static;
    display: flex;
    border: 0;
    background: none;
    padding: 0;
    box-shadow: none;
  }

  .nav-links a {
    padding: 8px 14px;
  }

  .hero {
    min-height: 650px;
    background-position: center 42%;
  }

  .hero::after {
    background:
      linear-gradient(180deg, rgb(1 7 26 / 12%) 18%, rgb(1 7 26 / 48%) 100%),
      linear-gradient(90deg, rgb(1 7 26 / 30%) 0%, rgb(1 7 26 / 38%) 38%, rgb(1 7 26 / 78%) 68%, var(--navy) 100%);
  }

  .hero__inner {
    grid-template-columns: 1fr 1fr;
    gap: 58px;
    align-items: center;
    padding-block: 170px 120px;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 4.2vw, 3.25rem);
  }

  .mission {
    padding-block: 106px 98px;
  }

  .mission-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .about {
    padding-bottom: 60px;
  }

  .about__inner {
    grid-template-columns: 1fr 1fr;
    gap: 34px;
  }

  .about__copy {
    padding-inline: 0 34px;
  }

  .join {
    display: grid;
    min-height: calc(100vw / 3);
    grid-template-columns: 1fr 1fr;
  }

  .join__copy {
    width: min(100% - 56px, calc(var(--container) / 2));
    margin-left: max(28px, calc((100vw - var(--container)) / 2));
    padding-block: 76px;
  }

  .join__image {
    height: 100%;
    object-position: center;
  }

  .team {
    padding-block: 95px 116px;
  }

  .team-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
  }

  .person figcaption {
    transform: translateY(calc(100% - 66px));
  }

  .instagram-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .home-blog {
    padding-block: 96px 44px;
  }

  .featured-post {
    grid-template-columns: 1fr 1.08fr;
    gap: 30px;
    padding: 46px;
  }

  .featured-post__image-link {
    min-height: 560px;
  }

  .footer__inner {
    grid-template-columns: 1fr auto 1fr;
    text-align: left;
  }

  .footer__brand {
    justify-content: flex-start;
  }

  .footer__credit {
    justify-content: flex-end;
  }

  .post-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .article {
    padding-top: 170px;
  }

  .article__header,
  .article__body {
    width: min(100% - 80px, 760px);
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
