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

:root {
  --azul: #0047BA;
  --azul-escuro: #003399;
  --amarelo: #FFD600;
  --verde: #2E7D32;
  --branco: #FFFFFF;
  --texto: #333333;
  --texto-light: #555555;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--texto);
  overflow-x: hidden;
  background: var(--branco);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== FOLHAS DECORATIVAS ===== */
.folha {
  position: absolute;
  pointer-events: none;
  z-index: 2;
  will-change: transform;
  transition: transform 0.1s linear;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  width: 100%;
  height: clamp(680px, 100vh, 840px);
  background: url('../assets/bg-hero.jpg') center center / cover no-repeat;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
}

.hero-content {
  position: relative;
  width: 100%;
  display: contents;
  padding-top: 30px;
  z-index: 3;
}

.hero-logo {
  width: auto;
  margin-right: 300px;
  margin-top: 100px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.hero-tag {
  position: absolute;
  top: 23%;
  right: 15%;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.folha-hero {
  right: 0;
  bottom: 0;
  width: 200px;
  opacity: 1.0;
}

/* ===== CTA ===== */
.cta {
  position: relative;
  background: url('../assets/bg-sessao-02.png') center center / cover no-repeat;
  padding: 0;
  text-align: center;
  height: 100vh;
  align-items: center;
  display: grid;
  margin-top: -240px;
}

.cta-content {
  position: relative;
  z-index: 2;
  padding-top: 210px;
}

.cta-titulo {
  font-size: 60px;
  font-weight: 800;
  color: var(--amarelo);
  line-height: 1.25;
  margin-bottom: 10px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.cta-subtitulo {
  font-size: 60px;
  font-weight: 800;
  color: var(--branco);
  line-height: 1.25;
  margin-bottom: 20px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.cta p {
  font-size: 32px;
  color: var(--branco);
  font-weight: 400;
  line-height: 1.6;
  max-width: 840px;
  margin: 0 auto;
}

.cta p strong {
  font-weight: 700;
}

/* ===== SECTION TITLE ===== */
.section-title {
  text-align: center;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 700;
  color: var(--azul);
  position: relative;
  display: block;
  padding-bottom: 12px;
  margin-bottom: 30px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--amarelo);
  border-radius: 2px;
}

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

.section-title--light::after {
  background: var(--amarelo);
}

/* ===== SOBRE O FEIRÃO ===== */
.sobre {
  position: relative;
  padding: 70px 20px;
  background: var(--branco);
  overflow: hidden;
  height: 80vh;
  align-content: center;
}

.sobre .container {
  position: relative;
  z-index: 3;
  max-width: 1100px;
}

.sobre .section-title {
  text-align: center;
}

.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.sobre-texto {
  font-size: 20px;
  color: var(--texto-light);
  line-height: 1.8;
  text-align: left;
}

.sobre-foto {
  width: 100%;
  border-radius: 32px;
  object-fit: cover;
  max-height: 400px;
}

.folha-sobre-left {
  left: -20px;
  top: 20px;
  width: 100px;
  opacity: 0.7;
}

.folha-sobre-right {
  right: -20px;
  bottom: 20px;
  width: 100px;
  opacity: 0.7;
}

/* ===== IMOBILIÁRIAS ===== */
.imobiliarias {
  position: relative;
  overflow: hidden;
}

.imobiliarias-bg {
  position: relative;
  background: var(--azul);
  padding: 170px 20px 120px;
  text-align: center;
}

.imobiliarias-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: -5%;
  width: 110%;
  height: 70px;
  background: var(--branco);
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
}

.imobiliarias-card {
  background: var(--branco);
  border-radius: 16px;
  padding: 30px;
  max-width: 100%;
  margin: 0 auto;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.imobiliarias-card-texto {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 600;
  color: var(--texto);
  margin-bottom: 25px;
  line-height: 1.5;
}

.imobiliarias-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.imobiliaria-slot {
  background: transparent;
  border: none;
  border-radius: 10px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.imobiliaria-slot span {
  font-size: 0.85rem;
  color: #aaa;
  font-weight: 600;
}

.imobiliaria-slot img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

.imobiliaria-slot:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Quando tiver logo real, usar assim:
.imobiliaria-slot img {
  max-width: 100%;
  max-height: 60px;
  object-fit: contain;
}
*/

.imobiliarias-foto {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  max-height: 300px;
}

.folha-imobiliarias {
  right: -30px;
  bottom: -20px;
  width: 120px;
  opacity: 0.7;
  transform: rotate(25deg);
}

/* ===== BENEFÍCIOS ===== */
.beneficios {
  position: relative;
  padding: 70px 20px;
  background: var(--branco);
  text-align: center;
}

.beneficios-texto {
  font-size: 20px;
  color: var(--texto-light);
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto;
}

/* ===== FOOTER ===== */
.footer {
  overflow: hidden;
}

.footer-local {
  background: var(--amarelo);
  padding: 18px 20px;
  text-align: center;
}

.footer-local p {
  color: var(--azul);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.footer-organizacao {
  background: var(--branco);
  padding: 30px 20px;
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.footer-grupo {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--texto-light);
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-logos img {
  width: auto;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

.footer-logos--org img {
  height: 70px;
}

.footer-logos--apoio img:nth-child(1) {
  height: 45px;
}

.footer-logos--apoio img:nth-child(2) {
  height: 100px;
}

.footer-logos img:hover {
  opacity: 0.7;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVIDADE ===== */

/* Large Desktop */
@media (min-width: 1580px) {
  .hero-tag {
    right: 23%;
  }
}

/* Tablet */
@media (max-width: 1024px) {
  .hero {
    min-height: 45vh;
  }

  .hero-logo {
    width: 180px;
  }

  .hero-tag {
    width: 130px;
    right: 20px;
  }

  .folha-hero {
    width: 150px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .hero {
    min-height: 40vh;
    align-items: normal;
  }

  .hero-content {
    position: relative;
    width: 100%;
    display: flex;
    padding-top: 30px;
    z-index: 3;
    flex-direction: column;
    align-items: center;
    gap: 64px;
    flex-wrap: nowrap;
    justify-content: flex-end;
  }

  .hero-logo {
    width: 80%;
    margin-right: 0;
    margin-top: 0;
  }

  .hero-tag {
    position: relative;
    top: auto;
    right: auto;
    width: 230px;
    margin-top: 0;
  }

  .section-title {
    font-size: 32px;
  }

  .cta {
    padding: 60px 20px 45px;
  }

  .cta-titulo {
    font-size: 42px;
  }

  .cta-subtitulo {
    font-size: 42px;
  }

  .cta p {
    font-size: 26px;
  }

  .cta h1 br {
    display: none;
  }

  .cta p br {
    display: none;
  }

  .folha-sobre-left,
  .folha-sobre-right {
    width: 70px;
    opacity: 0.4;
  }

  .sobre {
    height: 100vh;
    padding: 64px 24px;
  }

  .sobre-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .sobre-texto {
    text-align: center;
  }

  .imobiliarias-bg {
    padding: 140px 15px 92px;
  }

  .imobiliarias-card {
    padding: 20px;
  }

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

  .imobiliarias-foto {
    max-height: 200px;
  }

  .folha-imobiliarias {
    width: 80px;
    opacity: 0.5;
  }

  .beneficios {
    padding: 96px 15px;
  }

  .footer-logos {
    gap: 20px;
  }

  .footer-logos img {
    height: 35px;
  }
}

/* Mobile Small */
@media (max-width: 480px) {
  .hero {
    min-height: 35vh;
  }

  .hero-logo {
    width: 80%;
  }

  .hero-tag {
    width: 50%;
  }

  .folha-hero {
    width: 50px;
    opacity: 1.0;
  }

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

  .footer-logos img {
    height: 80px;
  }

  .footer-logos {
    display: contents;
  }

  .footer-logos--apoio img:nth-child(2) {
    height: 130px;
  }
}
