:root {
  --green-primary: #004b2f;
  --green-secondary: #0b5d3f;
  --green-premium: #032d1f;
  --white: #ffffff;
  --off-white: #f7f8f6;
  --gold-soft: #c8a96b;
  --text-gray: #4b4b4b;
  --text-light: #eaf3ef;
  --border-soft: rgba(255, 255, 255, 0.18);
  --shadow-soft: 0 14px 32px rgba(3, 45, 31, 0.16);
  --shadow-premium: 0 24px 50px rgba(3, 45, 31, 0.28);
  /* Imagem principal do hero */
  --hero-image: url("img/fundo1.jpg");
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--text-gray);
  background-color: var(--white);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Playfair Display", serif;
  color: var(--green-premium);
  line-height: 1.2;
}

p {
  margin-bottom: 1rem;
}

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

.skip-link {
  position: absolute;
  top: -40px;
  left: 12px;
  z-index: 9999;
  padding: 0.55rem 0.8rem;
  background: var(--green-primary);
  color: var(--white);
  border-radius: 8px;
}

.skip-link:focus {
  top: 12px;
}

.section-padding {
  padding: 6rem 0;
}

.section-padding-sm {
  padding: 3rem 0;
}

.section-light {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbf9 100%);
}

.section-offwhite {
  background-color: var(--off-white);
}

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

.section-dark-green {
  background: radial-gradient(circle at top right, #0f6a48 0%, #063726 35%, #042f20 100%);
}

.section-dark-green h2,
.section-dark-green p {
  color: var(--text-light);
}

.section-heading {
  max-width: 860px;
  margin: 0 auto 3rem auto;
}

.section-heading h2 {
  font-size: clamp(1.85rem, 2.3vw, 2.75rem);
  margin-bottom: 1rem;
}

.section-heading p {
  font-size: 1.06rem;
}

.header-premium {
  transition: all 0.35s ease;
  border-bottom: 1px solid transparent;
}

.header-premium.scrolled {
  background: rgba(3, 45, 31, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.navbar {
  padding: 1rem 0;
}

.navbar-brand img {
  width: 170px;
  max-width: 100%;
  height: auto;
}

.nav-link {
  color: #f1f8f4;
  font-weight: 600;
  font-size: 0.96rem;
  margin: 0 0.25rem;
  position: relative;
  transition: color 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold-soft);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--gold-soft);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.navbar-toggler-icon {
  filter: invert(1);
}

.btn-cta-nav,
.btn-cta-primary,
.btn-cta-outline {
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0.75rem 1.45rem;
  transition: all 0.25s ease;
}

.btn-cta-nav,
.btn-cta-primary {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: linear-gradient(120deg, #0b5d3f 0%, #064930 42%, #032d1f 100%);
  color: var(--white);
}

.btn-cta-nav:hover,
.btn-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(4, 77, 50, 0.45);
  background: linear-gradient(120deg, #0e6a48 0%, #085239 42%, #043223 100%);
  color: var(--white);
}

.btn-cta-outline {
  border: 1px solid rgba(255, 255, 255, 0.72);
  color: var(--white);
  background: rgba(11, 93, 63, 0.34);
}

.btn-cta-outline:hover {
  border-color: rgba(255, 255, 255, 0.85);
  color: var(--white);
  background: rgba(11, 93, 63, 0.58);
}

.hero-section {
  min-height: 100vh;
  position: relative;
  isolation: isolate;
  padding-top: 110px;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(95deg, rgba(3, 45, 31, 0.86) 0%, rgba(3, 45, 31, 0.66) 40%, rgba(3, 45, 31, 0.5) 100%),
    radial-gradient(circle at 80% 20%, rgba(200, 169, 107, 0.2), transparent 40%);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #d9e9e1;
  font-size: 0.8rem;
}

.hero-title {
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  max-width: 860px;
}

.hero-subtitle {
  color: #e8f4ee;
  font-size: clamp(1rem, 1.8vw, 1.24rem);
  max-width: 740px;
}

.hero-highlight {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1.1rem;
  background: linear-gradient(135deg, rgba(11, 93, 63, 0.78) 0%, rgba(4, 59, 39, 0.74) 52%, rgba(3, 45, 31, 0.78) 100%);
  backdrop-filter: blur(8px);
  padding: 1.3rem;
  box-shadow: var(--shadow-soft);
  color: #f2fbf7;
}

.hero-highlight h2 {
  color: var(--white);
  font-family: "Manrope", sans-serif;
  font-weight: 800;
}

.hero-highlight ul {
  display: grid;
  gap: 0.65rem;
}

.hero-highlight li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.hero-highlight i {
  color: #d5efe2;
}

.feature-card {
  background: var(--white);
  border: 1px solid rgba(4, 62, 41, 0.08);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-premium);
}

.feature-card i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  margin-bottom: 1rem;
  font-size: 1.35rem;
  color: var(--green-primary);
  background: linear-gradient(135deg, rgba(11, 93, 63, 0.12), rgba(200, 169, 107, 0.26));
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.7rem;
}

.image-panel {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-premium);
}

.image-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 380px;
}

.photo-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.square-photo {
  margin: 0;
  border-radius: 0.9rem;
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #ffffff;
  aspect-ratio: 1 / 1;
}

.square-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}

.video-panel {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  border: 1px solid rgba(3, 45, 31, 0.12);
  background: #ffffff;
  padding: 0.45rem;
}

.video-panel iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0.7rem;
}

.authority-strip {
  background: linear-gradient(115deg, #033424 0%, #094631 100%);
}

.authority-card {
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 0.95rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.05);
}

.authority-card h3 {
  color: var(--gold-soft);
  font-family: "Manrope", sans-serif;
  font-size: 1.07rem;
  font-weight: 800;
}

.authority-card p {
  color: #dceee5;
  margin-bottom: 0;
}

.form-card {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: var(--shadow-premium);
  border: 1px solid rgba(3, 45, 31, 0.08);
}

.pdf-wrapper {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1rem;
  border: 1px solid rgba(3, 45, 31, 0.1);
  box-shadow: var(--shadow-soft);
}

.pdf-wrapper iframe {
  width: 100%;
  min-height: 72vh;
  max-height: 760px;
  border: 1px solid #d8ddd9;
  border-radius: 0.75rem;
}

.edital-actions {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.3rem;
}

.btn-edital-close {
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0.75rem 1.45rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: linear-gradient(120deg, #0b5d3f 0%, #064930 42%, #032d1f 100%);
  color: var(--white);
  transition: all 0.25s ease;
}

.btn-edital-close:hover {
  background: linear-gradient(120deg, #0e6a48 0%, #085239 42%, #043223 100%);
  color: var(--white);
}

.contact-card,
.map-card {
  background: #ffffff;
  border-radius: 1rem;
  border: 1px solid rgba(3, 45, 31, 0.1);
  box-shadow: var(--shadow-soft);
  padding: 1.4rem;
}

.contact-list {
  display: grid;
  gap: 1rem;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.contact-list i {
  margin-top: 2px;
  font-size: 1.15rem;
  color: var(--green-primary);
}

.contact-list a {
  color: var(--green-primary);
  font-weight: 700;
}

.map-card {
  padding: 0.7rem;
}

.map-card iframe {
  width: 100%;
  border-radius: 0.8rem;
  min-height: 450px;
}

.footer-premium {
  background: #02281b;
  color: #d5e6dd;
  padding: 4rem 0 2.4rem 0;
}

.footer-premium h3 {
  color: #f6fffa;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  margin-bottom: 0.95rem;
}

.footer-logo {
  max-width: 165px;
  width: 100%;
  height: auto;
}

.footer-links {
  display: grid;
  gap: 0.5rem;
}

.footer-links a:hover {
  color: var(--gold-soft);
}

.footer-premium hr {
  border-color: rgba(255, 255, 255, 0.14);
  margin: 2rem 0 1rem 0;
}

.floating-cta {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1030;
  padding: 0.78rem 1.2rem;
  border-radius: 999px;
  font-weight: 800;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(120deg, #0b5d3f 0%, #064930 42%, #032d1f 100%);
  box-shadow: 0 12px 25px rgba(3, 45, 31, 0.3);
  transition: transform 0.2s ease;
}

.floating-cta:hover {
  transform: translateY(-2px);
  color: var(--white);
}

.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 78px;
  z-index: 1030;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.66rem 1rem;
  border-radius: 999px;
  background: #25d366;
  color: var(--white);
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.floating-whatsapp i {
  font-size: 1.1rem;
}

.floating-whatsapp:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.image-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 20, 14, 0.9);
  backdrop-filter: blur(3px);
}

.image-lightbox__content {
  position: relative;
  width: min(1120px, 96vw);
  max-height: 92vh;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-end;
}

.image-lightbox__close {
  min-width: 120px;
}

.image-lightbox__content img {
  width: 100%;
  max-height: 84vh;
  object-fit: contain;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: var(--shadow-premium);
  background: #021a12;
}

body.lightbox-open {
  overflow: hidden;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@media (max-width: 991.98px) {
  .header-premium {
    background: rgba(3, 45, 31, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .navbar-collapse {
    background: rgba(3, 45, 31, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    margin-top: 1rem;
    padding: 1rem;
  }

  .hero-section {
    min-height: 92vh;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .image-panel img {
    min-height: 310px;
  }

  .photo-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .section-padding {
    padding: 4.3rem 0;
  }

  .navbar-brand img {
    width: 145px;
  }

  .btn-cta-nav,
  .btn-cta-primary,
  .btn-cta-outline {
    width: 100%;
    text-align: center;
  }

  .floating-cta {
    left: 12px;
    right: 12px;
    bottom: 12px;
    text-align: center;
  }

  .floating-whatsapp {
    right: 12px;
    bottom: 72px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    padding: 0;
    justify-content: center;
  }

  .floating-whatsapp span {
    display: none;
  }

  .image-lightbox__content {
    width: 96vw;
  }

  .image-lightbox__close {
    width: 100%;
  }

  .hero-highlight {
    margin-top: 0.6rem;
  }

  .map-card iframe {
    min-height: 330px;
  }

  .pdf-wrapper iframe {
    min-height: 62vh;
  }

  .photo-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .edital-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

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

  .reveal-on-scroll,
  .feature-card,
  .floating-cta,
  .floating-whatsapp,
  .btn-cta-primary,
  .btn-cta-outline,
  .btn-cta-nav,
  .image-lightbox__content img {
    transition: none !important;
    transform: none !important;
  }
}
