/* ==========================================================================
   MR Control, site institucional one-page
   Estrutura e ritmo inspirados em páginas de produto estilo Apple:
   tipografia grande, alto contraste, muito espaço em branco, seções
   full-bleed alternando claro/escuro, poucas cores, sem excesso de efeitos.
   ========================================================================== */

:root {
  --bg: #F7F7F7;
  --white: #FFFFFF;
  --green-dark: #034926;
  --green-dark-2: #023018;
  --green-olive: #A9BD3F;
  --green-olive-hover: #C0CF74;
  --green-light: #C0CF74;
  --text: #1C1F1B;
  --text-muted: #52604F;
  --text-light: #F2F5EC;
  --border: rgba(3, 73, 38, 0.10);

  --font-title: "Archivo", Arial, Helvetica, sans-serif;
  --font-body: "Inter", Arial, Helvetica, sans-serif;

  --container: 1180px;
  --container-narrow: 900px;
  --gap: clamp(1.5rem, 3vw, 2.75rem);
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 76px;
}

/* Reset enxuto */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--green-olive);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3 {
  font-family: var(--font-title);
  color: var(--green-dark);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  text-wrap: balance;
}

h1 { font-weight: 700; font-size: clamp(2.8rem, 7vw, 6rem); }
h2 { font-weight: 700; font-size: clamp(2.4rem, 5vw, 4.4rem); }
h3 { font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; }

p { margin: 0 0 1rem; color: var(--text-muted); text-wrap: pretty; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
}

.section-intro {
  max-width: var(--container-narrow);
}

/* Alinhamentos com recuo suave, para não colar nos extremos do container */
.align-left { text-align: left; margin-left: clamp(0.5rem, 5vw, 4.5rem); margin-right: auto; }
.align-center { text-align: center; margin-left: auto; margin-right: auto; }
.align-right { text-align: right; margin-left: auto; margin-right: clamp(0.5rem, 5vw, 4.5rem); }

@media (max-width: 760px) {
  .align-left,
  .align-right {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .align-left .eyebrow,
  .align-right .eyebrow { justify-content: center; }

  .align-right .section__lead,
  .align-left .section__lead { margin-left: auto; margin-right: auto; }
}

.align-center .eyebrow { justify-content: center; }
.align-right .eyebrow { justify-content: flex-end; }

.align-right .section__lead { margin-left: auto; margin-right: 0; }
.align-center .section__lead { margin-left: auto; margin-right: auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
}

.eyebrow--center { justify-content: center; }
.eyebrow--light { color: rgba(242, 245, 236, 0.65); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--green-dark);
  color: var(--white);
  padding: .75rem 1.25rem;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------------------------------- Header ---------------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: var(--bg);
  z-index: 500;
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background-color .3s ease, backdrop-filter .3s ease;
}

.site-header.is-scrolled {
  border-color: var(--border);
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--green-dark);
}

.logo__icon {
  height: 34px;
  width: auto;
  display: block;
}

.logo__wordmark {
  height: 21px;
  width: auto;
  display: block;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2vw, 1.9rem);
}

.nav__list a {
  position: relative;
  font-weight: 500;
  font-size: .82rem;
  color: var(--text-muted);
  padding: .3rem 0;
  transition: color .2s ease;
}

.nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--green-olive);
  transition: right .25s cubic-bezier(.2,.7,.2,1);
}

.nav__list a:hover,
.nav__list a:focus-visible,
.nav__list a.is-active {
  color: var(--green-dark);
}

.nav__list a:hover::after,
.nav__list a:focus-visible::after,
.nav__list a.is-active::after {
  right: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--green-dark);
  transition: transform .25s ease, opacity .25s ease;
}

/* ---------------------------------- Botões e links ----------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--green-olive);
  color: var(--green-dark);
  font-weight: 600;
  font-family: var(--font-body);
  font-size: .95rem;
  padding: .55rem 1.35rem;
  border-radius: 980px;
  border: 0;
  cursor: pointer;
  transition: background-color .25s ease, transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s ease;
}

.btn:hover,
.btn:focus-visible {
  background: var(--green-olive-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(169, 189, 63, 0.35);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(169, 189, 63, 0.25);
}

.btn--lg { padding: .65rem 1.6rem; font-size: 1rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  font-weight: 600;
  font-size: .95rem;
  color: var(--green-dark);
  border-bottom: 1px solid rgba(3, 73, 38, 0.35);
  padding-bottom: .1rem;
  transition: border-color .2s ease;
}

.link-arrow span {
  transition: transform .2s ease;
}

.link-arrow:hover span,
.link-arrow:focus-visible span { transform: translateX(3px); }

.link-arrow:hover,
.link-arrow:focus-visible { border-color: var(--green-dark); }

.link-arrow--light {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

.link-arrow--light:hover,
.link-arrow--light:focus-visible { border-color: var(--white); }

.hero__actions {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.hero__actions--center { justify-content: center; }

/* ---------------------------------- Layout base ------------------------- */

.section {
  padding: clamp(4.5rem, 10vw, 8.5rem) 0;
  position: relative;
}

.section--alt,
.section--dark {
  margin: 0;
  border-radius: 0;
}

.section--alt { background: var(--white); }

.section--dark {
  background: var(--green-dark);
  color: var(--text-light);
  overflow: hidden;
}

.section--dark::before {
  content: "";
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 90%);
  height: 60%;
  background: radial-gradient(ellipse at center, rgba(192, 207, 116, 0.10) 0%, transparent 70%);
  pointer-events: none;
}

.section--dark h2 { color: var(--white); }
.section--dark p { color: rgba(242, 245, 236, 0.78); }

.section__lead {
  max-width: 60ch;
  font-size: 1.15rem;
}

.section__lead--center { margin-left: auto; margin-right: auto; }

/* Seções com imagem de fundo (placeholder em gradiente quando a foto não existe) */
.section--bg {
  position: relative;
  overflow: hidden;
  color: var(--text-light);
}

.hero.section--bg {
  border-radius: 0 0 clamp(20px, 3vw, 36px) clamp(20px, 3vw, 36px);
}

.section--bg:not(.hero):not(#onde-atuamos) {
  border-radius: clamp(20px, 3vw, 36px) clamp(20px, 3vw, 36px) 0 0;
  margin-top: clamp(-36px, -3vw, -20px);
  position: relative;
  z-index: 2;
}

/* Contato e footer: largura total, cantos arredondados só em cima, colados um no outro */
#contato,
.site-footer {
  border-radius: clamp(20px, 3vw, 36px) clamp(20px, 3vw, 36px) 0 0;
  overflow: hidden;
}

/* Contato "flutua" por cima da seção Onde Atuamos, como um cartão sobreposto */
#contato {
  margin-bottom: 0;
  margin-top: clamp(-48px, -5vw, -28px);
  position: relative;
  z-index: 2;
}

/* Footer "flutua" por cima da seção Contato, como um cartão sobreposto */
.site-footer {
  margin-top: clamp(-48px, -5vw, -28px);
  position: relative;
  z-index: 3;
}

.section-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(192, 207, 116, 0.10) 0%, transparent 55%),
    linear-gradient(135deg, var(--green-dark-2) 0%, var(--green-dark) 60%, #075A31 100%);
}

.section-bg .bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .9s ease;
}

.section-bg .bg-img.is-loaded { opacity: 1; }

.section-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 48, 24, 0.74) 0%, rgba(2, 48, 24, 0.58) 100%);
}

/* Setores, Hero e Quem Somos: degradê mais forte, escurecendo bem a base da seção */
#setores .section-bg::after,
.hero .section-bg::after,
#quem-somos .section-bg::after,
#onde-atuamos .section-bg::after {
  background: linear-gradient(180deg, rgba(2, 48, 24, 0.55) 0%, rgba(2, 48, 24, 0.75) 40%, rgba(2, 48, 24, 0.97) 100%);
}

.section--bg .container { position: relative; z-index: 1; }

.section--bg h1,
.section--bg h2 { color: var(--white); }

.section--bg p { color: rgba(242, 245, 236, 0.82); }

.section--bg .setor-btn {
  color: var(--text-light);
  border-color: rgba(242, 245, 236, 0.28);
}

.section--bg .setor-btn:hover {
  border-color: var(--green-light);
  background: rgba(242, 245, 236, 0.08);
}

.section--bg .setor-btn.is-active {
  color: var(--green-light);
  border-color: var(--green-light);
  background: rgba(192, 207, 116, 0.16);
}

/* ---------------------------------- Hero -------------------------------- */

.hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(3.5rem, 10vw, 6rem)) 0 clamp(4rem, 9vw, 6.5rem);
  background: var(--bg);
  text-align: left;
}

.hero__inner {
  max-width: 860px;
  margin-left: clamp(1rem, 7vw, 8.5rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero__text {
  font-size: 1.2rem;
  max-width: 46ch;
  margin: 0 0 2.25rem;
  text-wrap: pretty;
}

/* ---------------------------------- Faixa de números ---------------------- */

.stats-bar {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.stats-bar__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: 0 1rem;
  position: relative;
}

.stat + .stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10%;
  bottom: 10%;
  width: 1px;
  background: var(--border);
}

.stat__number {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--green-dark);
  letter-spacing: -0.03em;
}

.stat__label {
  font-size: .92rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* ---------------------------------- Quem Somos --------------------------- */

.quem-somos__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.quem-somos__grid p { font-size: 1.15rem; }

/* ---------------------------------- Cards -------------------------------- */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--gap);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.cards-grid .card { grid-column: span 2; }

/* Última linha (2 itens) centralizada em relação às 3 colunas de cima */
.cards-grid .card:nth-child(4) { grid-column: 2 / span 2; }
.cards-grid .card:nth-child(5) { grid-column: 4 / span 2; }

.card {
  padding: 0;
  transition: transform .5s cubic-bezier(.16,1,.3,1);
}

.card:hover { transform: translateY(-5px); }

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--green-dark);
  margin-bottom: 1.4rem;
  transition: background-color .3s ease, border-color .3s ease, transform .4s cubic-bezier(.16,1,.3,1), box-shadow .4s ease;
}

.card:hover .card__icon {
  background: var(--green-light);
  border-color: var(--green-olive);
  transform: scale(1.08) rotate(-4deg);
  box-shadow: 0 8px 20px rgba(3, 73, 38, 0.14);
}

.card h3 { margin-bottom: .6rem; }
.card p { margin: 0; font-size: 1rem; }

/* ---------------------------------- Destaque ------------------------------ */

.destaque__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.destaque__item {
  position: relative;
  text-align: center;
  transition: transform .5s cubic-bezier(.16,1,.3,1);
}

.destaque__item:hover { transform: translateY(-4px); }

.destaque__item:not(:first-child)::before {
  content: "";
  position: absolute;
  left: calc(var(--gap) / -2);
  top: 8%;
  bottom: 8%;
  width: 1px;
  background: rgba(242, 245, 236, 0.16);
}

.destaque__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(242, 245, 236, 0.08);
  border: 1px solid rgba(242, 245, 236, 0.16);
  color: var(--green-light);
  margin-bottom: 1.4rem;
  transition: background-color .3s ease, border-color .3s ease, box-shadow .4s ease;
}

.destaque__item:hover .destaque__icon {
  background: rgba(192, 207, 116, 0.14);
  border-color: rgba(192, 207, 116, 0.45);
  box-shadow: 0 0 32px rgba(192, 207, 116, 0.18);
}

.destaque__item p {
  font-size: 1.1rem;
  margin: 0 auto;
  max-width: 32ch;
}

/* ---------------------------------- Galeria ------------------------------- */

.gallery-carousel {
  position: relative;
  margin: 3rem 0 0;
  width: 100%;
}

.gallery-track {
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 4px 1.25rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  cursor: grab;
}

.gallery-track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
  user-select: none;
}

.gallery-track.is-dragging .gallery-media { cursor: grabbing; }

.gallery-track::-webkit-scrollbar { display: none; }

.gallery-track:focus-visible {
  outline: 2px solid var(--green-olive);
  outline-offset: 3px;
  border-radius: var(--radius);
}

.gallery-item {
  margin: 0;
  flex: 0 0 min(72%, 780px);
  scroll-snap-align: center;
}

@media (max-width: 900px) {
  .gallery-item { flex-basis: 78%; }
}

@media (max-width: 560px) {
  .gallery-item { flex-basis: 86%; }
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(3, 73, 38, 0.16);
  transition: background-color .2s ease, transform .2s ease, opacity .2s ease;
}

.carousel-arrow:hover,
.carousel-arrow:focus-visible {
  background: var(--green-light);
  transform: translateY(-50%) scale(1.08);
}

.carousel-arrow[disabled] {
  opacity: .35;
  cursor: default;
  pointer-events: none;
}

.carousel-arrow--prev { left: clamp(10px, 3vw, 40px); }
.carousel-arrow--next { right: clamp(10px, 3vw, 40px); }

@media (max-width: 640px) {
  .carousel-arrow { width: 40px; height: 40px; }
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin: .25rem 0 1rem;
}

.carousel-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(3, 73, 38, 0.18);
  cursor: pointer;
  transition: background-color .25s ease, transform .25s ease;
}

.carousel-dots button.is-active {
  background: var(--green-dark);
  transform: scale(1.25);
}

.gallery-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--green-light);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow .5s ease, transform .5s cubic-bezier(.16,1,.3,1);
}

.gallery-media:focus-visible {
  outline: 2px solid var(--green-olive);
  outline-offset: 3px;
}

.gallery-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(3, 73, 38, 0.18);
  opacity: 0;
  transition: opacity .3s ease;
}

.gallery-media:hover::after,
.gallery-media:focus-visible::after {
  opacity: 1;
}

.gallery-item:hover .gallery-media {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(3, 73, 38, 0.16);
}

.gallery-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-dark);
  transition: transform .6s ease;
}

.gallery-item:hover .gallery-placeholder { transform: scale(1.06); }

.gallery-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--white);
  opacity: 0;
  transition: opacity .4s ease, transform .6s ease;
  will-change: transform;
}

.gallery-img.is-loaded { opacity: 1; }
.gallery-item:hover .gallery-img.is-loaded { transform: scale(1.06); }

.gallery-caption {
  margin-top: .9rem;
  font-size: .95rem;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
  opacity: .45;
  transition: opacity .3s ease;
}

.gallery-item.is-current .gallery-caption { opacity: 1; }

.gallery-cta { text-align: center; margin-top: 2rem; }

/* ---------------------------------- Setores -------------------------------- */

.setores-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: .7rem;
  margin: 0 0 1.85rem;
}

.setor-btn {
  display: inline-block;
  background: transparent;
  color: var(--green-dark);
  font-family: inherit;
  font-weight: 600;
  padding: .55rem 1.15rem;
  border-radius: 999px;
  font-size: .92rem;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}

.setor-btn:hover {
  border-color: var(--green-olive);
  background: var(--bg);
}

/* ---------------------------------- Contato -------------------------------- */

/* Centralizado como bloco, mas com o texto interno mantido à esquerda */
.contato__inner { max-width: var(--container); margin-left: auto; margin-right: auto; }

.contato__grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(2rem, 5vw, 4.5rem);
  flex-wrap: wrap;
}

.contato__content { flex: 1 1 480px; min-width: 0; }

.contato__qr { flex: 0 0 auto; }

.qr-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(1rem, 2.5vw, 1.4rem) clamp(1rem, 2.5vw, 1.4rem) clamp(.9rem, 2vw, 1.2rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .85rem;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
  transition: transform .5s cubic-bezier(.16,1,.3,1), box-shadow .5s ease;
}

.qr-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 56px rgba(0, 0, 0, 0.34);
}

.qr-img {
  width: clamp(124px, 14vw, 180px);
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  display: block;
}

.qr-card__label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted);
  max-width: clamp(124px, 14vw, 180px);
  text-align: center;
  line-height: 1.4;
}

@media (max-width: 760px) {
  .contato__qr { margin: 0 auto; }

  /* No celular o QR perde função (ninguém escaneia a própria tela): compacto e discreto */
  .qr-img { width: 124px; }
  .qr-card__label { max-width: 124px; font-size: .75rem; }
}

/* ---------------------------------- Rodapé --------------------------------- */

.site-footer {
  position: relative;
  background: var(--green-dark-2);
  color: var(--text-light);
  padding: clamp(3rem, 6vw, 4.5rem) 0 1.75rem;
  font-size: .85rem;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--green-olive) 35%, var(--green-light) 50%, var(--green-olive) 65%, transparent 100%);
}

.site-footer::after {
  content: "";
  position: absolute;
  bottom: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: min(800px, 90%);
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(192, 207, 116, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.site-footer__inner { position: relative; z-index: 1; }

.footer-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1rem;
}

.footer-logo .logo__icon { height: 44px; }
.footer-logo .logo__wordmark--footer { height: 28px; }

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  padding-bottom: clamp(2.25rem, 5vw, 3.25rem);
  border-bottom: 1px solid rgba(242, 245, 236, 0.1);
}

.footer-col__title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-light);
  margin: 0 0 1.1rem;
}

.footer-tagline {
  color: rgba(242, 245, 236, 0.65);
  font-size: .85rem;
  max-width: 30ch;
  margin: 0 0 1.35rem;
}

.footer-col__list {
  display: flex;
  flex-direction: column;
  gap: .65rem;
}

.footer-col__list li {
  color: rgba(242, 245, 236, 0.65);
  font-size: .85rem;
}

.footer-col__list a {
  color: inherit;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}

.footer-col__list a:hover,
.footer-col__list a:focus-visible {
  color: var(--green-light);
  border-color: rgba(192, 207, 116, 0.4);
}

.footer-address {
  font-style: normal;
  color: rgba(242, 245, 236, 0.65);
  font-size: .85rem;
  line-height: 1.5;
  margin: 0 0 1rem;
}

.footer-address a {
  color: inherit;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}

.footer-address a:hover,
.footer-address a:focus-visible {
  color: var(--green-light);
  border-color: rgba(192, 207, 116, 0.4);
}

.footer-contact-icons {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: .7rem;
}

.footer-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  border: 1px solid rgba(242, 245, 236, 0.12);
  background: rgba(242, 245, 236, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(242, 245, 236, 0.75);
  transition: color .2s ease, border-color .2s ease, background-color .2s ease, transform .2s ease;
}

.footer-icon:hover,
.footer-icon:focus-visible {
  color: var(--green-light);
  border-color: rgba(192, 207, 116, 0.35);
  background: rgba(192, 207, 116, 0.08);
  transform: translateY(-2px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: clamp(1.5rem, 3vw, 2rem);
}

.footer-links,
.footer-legal {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  flex-wrap: wrap;
}

.link-button {
  background: none;
  border: 0;
  padding: 0;
  color: rgba(242, 245, 236, 0.75);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, color .2s ease;
}

.link-button:hover,
.link-button:focus-visible { border-color: var(--green-olive); color: var(--green-light); }

.footer-credit { margin: 0; color: rgba(242, 245, 236, 0.55); font-size: .75rem; }
.footer-credit a { font-weight: 600; color: inherit; border-bottom: 1px solid transparent; transition: border-color .2s ease, color .2s ease; }
.footer-credit a:hover,
.footer-credit a:focus-visible { border-color: var(--green-olive); color: var(--green-light); }

@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    row-gap: 2.5rem;
  }

  .footer-col--brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .footer-top {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-col--brand { grid-column: auto; }

  .footer-logo { justify-content: center; }
  .footer-tagline { max-width: none; margin-left: auto; margin-right: auto; }
  .footer-contact-icons { justify-content: center; }
  .footer-col__list { align-items: center; }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-links,
  .footer-legal { justify-content: center; }
}

/* ---------------------------------- Lightbox da galeria --------------------- */

.lightbox {
  border: 0;
  padding: 0;
  width: min(1100px, 92vw);
  max-height: 88vh;
  background: transparent;
  overflow: visible;
}

.lightbox::backdrop {
  background: rgba(3, 48, 24, 0.82);
  backdrop-filter: blur(6px);
}

.lightbox__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--green-dark-2);
}

.lightbox__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--green-dark-2);
  opacity: 1;
  transition: opacity .22s ease;
  touch-action: pan-y;
}

.lightbox__img.is-switching { opacity: 0; }

.lightbox__counter {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 3;
  padding: .25rem .65rem;
  border-radius: 999px;
  background: rgba(3, 48, 24, 0.65);
  color: var(--text-light);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .02em;
}

.lightbox__info {
  margin-top: 1rem;
  text-align: center;
}

.lightbox__caption {
  margin: 0;
  color: var(--text-light);
  font-size: .95rem;
  font-weight: 700;
}

.lightbox__slide-title {
  margin: .3rem 0 0;
  color: rgba(242, 245, 236, 0.78);
  font-size: .85rem;
  font-weight: 500;
}

.lightbox__slide-title:empty { display: none; }

.lightbox__close {
  position: absolute;
  top: -18px;
  right: -18px;
  z-index: 4;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: var(--white);
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform .2s ease, background-color .2s ease;
}

.lightbox__close:hover,
.lightbox__close:focus-visible { background: var(--green-light); transform: scale(1.08); }

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: rgba(242, 245, 236, 0.15);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: background-color .2s ease, transform .2s ease;
}

.lightbox__nav:hover,
.lightbox__nav:focus-visible {
  background: rgba(242, 245, 236, 0.3);
  transform: translateY(-50%) scale(1.08);
}

.lightbox__nav--prev { left: 14px; }
.lightbox__nav--next { right: 14px; }

.lightbox__nav[hidden] { display: none; }

.lightbox__thumbs {
  display: flex;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: .6rem;
  margin-top: 1rem;
  overflow-x: auto;
  padding: 2px 2px 6px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.lightbox__thumbs::-webkit-scrollbar { display: none; }

.lightbox__thumbs button {
  flex: 0 0 auto;
  width: 64px;
  height: 48px;
  padding: 0;
  border-radius: 8px;
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
  opacity: .55;
  background: var(--green-dark-2);
  transition: opacity .2s ease, border-color .2s ease, transform .2s ease;
}

.lightbox__thumbs button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lightbox__thumbs button:hover { opacity: .85; transform: translateY(-2px); }

.lightbox__thumbs button.is-active {
  opacity: 1;
  border-color: var(--green-light);
}

@media (max-width: 640px) {
  .lightbox__close { top: -14px; right: 0; }
  .lightbox__nav { width: 40px; height: 40px; }
  .lightbox__nav--prev { left: 6px; }
  .lightbox__nav--next { right: 6px; }
  .lightbox__thumbs button { width: 52px; height: 40px; }
}

/* ---------------------------------- Modais (Privacidade / Termos) ---------- */

.modal {
  border: 0;
  border-radius: 22px;
  padding: 0;
  width: min(680px, 90vw);
  max-height: 82vh;
  box-shadow: 0 24px 60px rgba(3, 73, 38, 0.2);
  background: var(--white);
}

.modal::backdrop {
  background: rgba(3, 48, 24, 0.55);
  backdrop-filter: blur(4px);
}

.modal__content {
  position: relative;
  padding: 2.75rem 2.25rem 2.25rem;
  overflow-y: auto;
  max-height: 82vh;
}

.modal__content h2 {
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.modal__content h3 {
  font-size: 1rem;
  margin: 1.5rem 0 .4rem;
}

.modal__content p { font-size: .95rem; }

.modal__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color .2s ease;
}

.modal__close:hover { background: var(--green-light); }

/* ---------------------------------- Animações de entrada -------------------- */

.reveal {
  opacity: 0;
  transform: translateY(26px) scale(.99);
  filter: blur(5px);
  transition:
    opacity .9s cubic-bezier(.16,1,.3,1),
    transform .9s cubic-bezier(.16,1,.3,1),
    filter .9s cubic-bezier(.16,1,.3,1);
  will-change: opacity, transform, filter;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

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

@media (min-width: 901px) {
  .cards-grid > .reveal:nth-child(1) { transition-delay: 0s; }
  .cards-grid > .reveal:nth-child(2) { transition-delay: .08s; }
  .cards-grid > .reveal:nth-child(3) { transition-delay: .16s; }
  .cards-grid > .reveal:nth-child(4) { transition-delay: .24s; }
  .cards-grid > .reveal:nth-child(5) { transition-delay: .32s; }

  .destaque__grid > .reveal:nth-child(1) { transition-delay: 0s; }
  .destaque__grid > .reveal:nth-child(2) { transition-delay: .1s; }
  .destaque__grid > .reveal:nth-child(3) { transition-delay: .2s; }

  .stats-bar__inner > .stat:nth-child(1) { transition-delay: 0s; }
  .stats-bar__inner > .stat:nth-child(2) { transition-delay: .1s; }
  .stats-bar__inner > .stat:nth-child(3) { transition-delay: .2s; }
}

/* ---------------------------------- Responsivo ------------------------------ */

@media (max-width: 900px) {
  .cards-grid,
  .destaque__grid { grid-template-columns: 1fr; gap: 0; }

  .cards-grid .card,
  .cards-grid .card:nth-child(4),
  .cards-grid .card:nth-child(5) { grid-column: auto; }

  .cards-grid .card,
  .destaque__grid .destaque__item {
    padding: 1.75rem 0;
    border-bottom: 1px solid var(--border);
  }

  .destaque__grid .destaque__item { border-color: rgba(242, 245, 236, 0.14); }

  .destaque__item:not(:first-child)::before { display: none; }

  .cards-grid .card:first-child,
  .destaque__grid .destaque__item:first-child { padding-top: 0; }

  .cards-grid .card:last-child,
  .destaque__grid .destaque__item:last-child { border-bottom: 0; padding-bottom: 0; }

}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(247, 247, 247, 0.98);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .25rem 1.5rem 1.25rem;
  }

  .nav__list a {
    display: block;
    padding: 1rem 0;
    font-size: .95rem;
    border-bottom: 1px solid var(--border);
  }

  .stats-bar__inner { grid-template-columns: 1fr; gap: 1.75rem; }
  .stat + .stat::before { display: none; }

  .hero__inner {
    align-items: center;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .hero__text { margin-left: auto; margin-right: auto; }

  .hero__actions,
  .hero__actions.reveal { justify-content: center; width: 100%; }

  .contato__grid {
    flex-direction: column;
    text-align: center;
  }

  .contato__content { text-align: center; }

  .footer-legal { justify-content: center; }

  .cards-grid .card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .gallery-item,
  .gallery-caption { text-align: center; }
}


