/* Gonzaga & Associados — melhorias visuais profissionais */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --ga-primary: #134580;
  --ga-accent: #f15823;
  --ga-primary-dark: #0d3258;
  --ga-shadow: 0 12px 40px rgba(19, 69, 128, 0.15);
  --ga-radius: 16px;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
  scroll-behavior: smooth;
}

/* ─── Scroll Reveal ─── */
[data-scroll-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

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

[data-scroll-reveal="left"] {
  transform: translateX(-40px);
}
[data-scroll-reveal="left"].is-visible {
  transform: translateX(0);
}

[data-scroll-reveal="right"] {
  transform: translateX(40px);
}
[data-scroll-reveal="right"].is-visible {
  transform: translateX(0);
}

[data-scroll-reveal="scale"] {
  transform: scale(0.92);
}
[data-scroll-reveal="scale"].is-visible {
  transform: scale(1);
}

[data-scroll-delay="1"] { transition-delay: 0.1s; }
[data-scroll-delay="2"] { transition-delay: 0.2s; }
[data-scroll-delay="3"] { transition-delay: 0.3s; }
[data-scroll-delay="4"] { transition-delay: 0.4s; }
[data-scroll-delay="5"] { transition-delay: 0.5s; }

/* ─── Header fixo ao rolar ─── */
header.ga-header-scrolled {
  position: fixed !important;
  top: 0 !important;
  left: 0;
  right: 0;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  animation: gaHeaderSlide 0.4s ease;
}

header.ga-header-scrolled .container > div {
  background: rgba(19, 69, 128, 0.92) !important;
  backdrop-filter: blur(24px) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
}

@keyframes gaHeaderSlide {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ─── Hero ─── */
section.relative.h-\[750px\] > div:first-child {
  background-size: cover !important;
  background-position: center !important;
}

section.relative.h-\[750px\] > div:first-child::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(19, 69, 128, 0.75) 0%,
    rgba(19, 69, 128, 0.45) 40%,
    rgba(241, 88, 35, 0.25) 100%
  );
  pointer-events: none;
}

section.relative.h-\[750px\] h1 {
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.3);
}

section.relative.h-\[750px\] .max-w-4xl {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--ga-radius);
  padding: 1.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

/* ─── Cards de imóveis ─── */
a[href*="imovel/"] {
  transition: transform 0.35s ease, box-shadow 0.35s ease !important;
}

a[href*="imovel/"]:hover {
  transform: translateY(-6px);
}

/* ─── Seções ─── */
section h2 {
  letter-spacing: -0.02em;
}

section.py-16,
section.py-20,
section.py-8 {
  position: relative;
}

/* ─── Footer — legibilidade ─── */
footer[style*="background:#134580"],
footer[style*="background: #134580"] {
  color: #ffffff !important;
}

footer[style*="background:#134580"] p,
footer[style*="background:#134580"] span,
footer[style*="background:#134580"] li,
footer[style*="background:#134580"] h3,
footer[style*="background:#134580"] a:not([style*="color:#f15823"]) {
  color: rgba(255, 255, 255, 0.9) !important;
}

footer[style*="background:#134580"] h3[style*="color:#f15823"] {
  color: var(--ga-accent) !important;
}

footer[style*="background:#134580"] [style*="color:#000000"] {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* ─── Botão WhatsApp flutuante ─── */
.ga-whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  border-radius: 50px;
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.45);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: gaWaPulse 2.5s ease-in-out infinite;
}

.ga-whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 40px rgba(37, 211, 102, 0.55);
}

.ga-whatsapp-float__btn {
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.ga-whatsapp-float__btn svg {
  width: 32px;
  height: 32px;
}

.ga-whatsapp-float__label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  background: #25d366;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0;
  border-radius: 50px 0 0 50px;
  transition: max-width 0.35s ease, padding 0.35s ease;
}

.ga-whatsapp-float:hover .ga-whatsapp-float__label {
  max-width: 200px;
  padding: 0 20px 0 8px;
}

@keyframes gaWaPulse {
  0%, 100% { box-shadow: 0 8px 32px rgba(37, 211, 102, 0.45); }
  50% { box-shadow: 0 8px 32px rgba(37, 211, 102, 0.45), 0 0 0 12px rgba(37, 211, 102, 0.15); }
}

/* ─── Logo aprimorada ─── */
img[alt*="GONZAGA"] {
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
  transition: transform 0.3s ease;
}

a:hover img[alt*="GONZAGA"] {
  transform: scale(1.03);
}

/* ─── Botões primários ─── */
button[style*="background-color:#134580"],
a[style*="background-color:#134580"],
button[style*="background:#134580"] {
  border-radius: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em;
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

button[style*="background-color:#134580"]:hover,
a[style*="background-color:#134580"]:hover {
  transform: translateY(-2px);
  box-shadow: var(--ga-shadow) !important;
}

/* ─── Espaçamento do body quando header fixo ─── */
body.ga-has-fixed-header {
  padding-top: 0;
}

/* ─── Barra de progresso de scroll ─── */
.ga-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ga-primary), var(--ga-accent));
  z-index: 10000;
  width: 0%;
  transition: width 0.1s linear;
}

/* ─── Responsivo ─── */
@media (max-width: 768px) {
  .ga-whatsapp-float {
    bottom: 20px;
    right: 20px;
  }

  .ga-whatsapp-float__btn {
    width: 54px;
    height: 54px;
  }

  .ga-whatsapp-float__label {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-scroll-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .ga-whatsapp-float {
    animation: none;
  }
}
