/* Variáveis do Guia de Identidade Visual */
:root {
  --color-void:        #070E1A;
  --color-navy:        #0B1728;
  --color-navy-mid:    #112240;
  --color-navy-light:  #1A3258;
  --color-gold:        #C8952A;
  --color-gold-bright: #E0AA42;
  --color-gold-muted:  #8A6420;
  --color-gold-wash:   rgba(200,149,42,0.08);
  --color-white:       #FFFFFF;
  --color-silver:      #C8D3E0;
  --color-muted:       #6B7E96;
  --color-divider:     rgba(200,211,224,0.10);
  --color-surface:     #F5F7FA;
  --color-surface-mid: #EAEEF4;
  --color-ink:         #0B1728;

  --color-success:     #27AE60;
  --color-error:       #E74C3C;
  --color-warning:     #F39C12;
  --color-info:        #2D9CDB;

  --shadow-gold: 0 0 0 1px rgba(200,149,42,0.3), 0 8px 32px rgba(200,149,42,0.15);
  --shadow-1:    0 1px 3px rgba(7,14,26,0.3), 0 1px 2px rgba(7,14,26,0.2);
  --shadow-2:    0 4px 12px rgba(7,14,26,0.4), 0 2px 4px rgba(7,14,26,0.3);
  --shadow-3:    0 8px 24px rgba(7,14,26,0.5), 0 4px 8px rgba(7,14,26,0.3);
  --shadow-4:    0 20px 60px rgba(7,14,26,0.7), 0 8px 20px rgba(7,14,26,0.4);

  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   20px;
  --radius-pill: 999px;
}

body {
  overflow-x: hidden;
}

/* Navbar blur no scroll */
.navbar-blur {
  background: transparent;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}
.navbar-blur.scrolled {
  background: rgba(7, 14, 26, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-imoveis {
  color: var(--color-gold);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}
.nav-imoveis:hover {
  color: var(--color-gold-bright);
}

.intro-ativa {
  overflow: hidden;
}
.hero-reveal {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  z-index: 100;
  overflow: hidden;
  pointer-events: none;
}
.hero-reveal-block {
  position: absolute;
  top: 0;
  bottom: 0;
  width: calc(50% + 1px);
  background: var(--color-navy-mid);
}
.hero-reveal-block-left {
  left: 0;
}
.hero-reveal-block-right {
  right: 0;
}
.hero-reveal-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: clamp(120px, 14vw, 190px);
  height: auto;
  transform: translate(-50%, -50%);
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(7,14,26,0.28);
}

.hero-media {
  background: var(--color-void) url("../img/escritorio_1.jpeg") center / cover no-repeat;
}
.hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.92) contrast(1.04);
  pointer-events: none;
}

/* Sobre */
.about-section {
  padding-top: 76px;
  padding-bottom: 76px;
}
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(48px, 7vw, 96px);
  align-items: center;
}
.about-copy {
  max-width: 460px;
}
.about-copy h2 {
  max-width: 420px;
  line-height: 1.22;
}
.about-copy > p:not(:first-child) {
  max-width: 430px;
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 26px;
  max-width: 100%;
}
.about-stat {
  min-height: 100px;
  padding: 16px 12px !important;
  border-radius: var(--radius-md) !important;
}
.about-stat .font-display {
  font-size: clamp(16px, 1.6vw, 24px) !important;
  overflow-wrap: anywhere;
}
.about-stat p {
  font-size: 10px !important;
  line-height: 1.35;
}
.about-visual {
  min-width: 0;
}
.about-slider {
  position: relative;
  width: min(100%, 620px);
  margin-left: auto;
  aspect-ratio: 4 / 3;
  isolation: isolate;
}
.about-slider::before {
  content: "";
  position: absolute;
  inset: 8% 0 7% 24%;
  z-index: -1;
  border-radius: var(--radius-xl);
  background: linear-gradient(90deg, rgba(200,149,42,0.10), rgba(255,255,255,0.06));
  filter: blur(42px);
}
.about-slider-track {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-3);
}
.about-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 0.45s ease, transform 0.6s ease;
}
.about-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}
.about-slide img,
.about-slide video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-slide:nth-child(1) img {
  object-position: 50% 54%;
}
.about-slide:nth-child(2) img {
  object-position: 49% 60%;
}
.about-slide:nth-child(3) video {
  object-position: center;
}
.about-slider-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 50%;
  color: var(--color-white);
  background: rgba(7,14,26,0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: translateY(-50%);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.about-slider-arrow:hover {
  border-color: rgba(200,149,42,0.55);
  color: var(--color-gold);
  background: rgba(7,14,26,0.88);
}
.about-slider-prev {
  left: 16px;
}
.about-slider-next {
  right: 16px;
}
/* Card de imóvel */
.card-imovel .card-foto {
  overflow: hidden;
}
.card-imovel .card-foto img {
  transition: transform 0.4s ease;
}
.card-imovel:hover .card-foto img {
  transform: scale(1.04);
}
.card-imovel:hover {
  border-color: rgba(200, 149, 42, 0.4) !important;
  box-shadow: var(--shadow-gold);
}

/* Animação de entrada dos cards */
.card-imovel {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.card-imovel.visivel {
  opacity: 1;
  transform: translateY(0);
}

/* Focus ring dourado */
input:focus, select:focus, textarea:focus, button:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

/* Linha dourada hero */
.linha-dourada {
  height: 1px;
  background: var(--color-gold);
  width: 0;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.linha-dourada.ativa {
  width: 100%;
}

/* Headline com efeito de digitação */
.hero-headline {
  min-height: 2.5em;
}
.typewriter-text {
  white-space: pre-line;
}
.typewriter-highlight {
  color: var(--color-gold-bright);
}
.typewriter-text::after {
  content: "";
  display: inline-block;
  width: 0.08em;
  height: 0.82em;
  margin-left: 0.08em;
  vertical-align: -0.06em;
  background: var(--color-gold);
  animation: cursor-piscar 0.75s step-end infinite;
}
.typewriter-text.typing-done::after {
  animation-iteration-count: 2;
  opacity: 0;
}

/* Grid reveal — adaptado de auxiliar/grid_animation */
.property-experience {
  position: relative;
  background: var(--color-navy);
}
.property-static {
  position: relative;
  padding-top: 96px;
  padding-bottom: 96px;
  background: radial-gradient(circle at 76% 48%, rgba(200,149,42,0.08), transparent 30%);
}
.property-heading {
  margin-bottom: 44px;
}
.property-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.property-tab {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 11px 18px;
  border: 1px solid var(--color-navy-light);
  border-radius: var(--radius-pill);
  color: var(--color-silver);
  background: rgba(17,34,64,0.42);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.property-tab::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--color-gold);
  transform: scaleX(0);
  transform-origin: left center;
}
.property-tab:hover {
  color: var(--color-white);
  border-color: var(--color-gold);
  background: var(--color-gold-wash);
}
.property-tab.is-active,
.property-tab[aria-selected="true"] {
  color: var(--color-white);
  border-color: var(--color-gold);
  background: rgba(200,149,42,0.12);
}
.property-tab.is-active.is-counting::before {
  animation: preencher-etapa-imovel 4s linear forwards;
}
@keyframes preencher-etapa-imovel {
  to { transform: scaleX(1); }
}
.property-copy-stack {
  min-height: 360px;
}
.property-chapter-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
}
.property-chapter-copy.is-active {
  opacity: 1;
  pointer-events: auto;
}
.property-chapter-copy:not(.is-active),
.property-panel:not(.is-active) {
  opacity: 0 !important;
  pointer-events: none;
}
.property-kicker {
  margin-bottom: 16px;
  color: var(--color-gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.property-chapter-copy h2 {
  margin: 0 0 20px;
  color: var(--color-white);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.property-chapter-copy > p:not(.property-kicker) {
  max-width: 390px;
  margin-bottom: 30px;
  color: var(--color-silver);
  font-size: 14px;
  line-height: 1.75;
}
.property-chapter-copy .btn-secondary {
  width: fit-content;
  align-self: flex-start;
}
.property-stage {
  position: relative;
  height: min(68vh, 610px);
  min-height: 500px;
  isolation: isolate;
}
.property-panel {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr);
  gap: 14px;
  opacity: 0;
  pointer-events: none;
}
.property-panel.is-active {
  z-index: 2;
}
.property-panel[data-property-panel="vender"] {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: repeat(3, minmax(0, 1fr));
}
.property-panel h3 {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  margin: 0;
  color: var(--color-white);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(48px, 8vw, 104px);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.9;
  text-align: center;
  text-shadow: 0 8px 30px rgba(7,14,26,0.55);
}
.property-grid-img {
  position: relative;
  z-index: 2;
  overflow: hidden;
  min-width: 0;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: var(--shadow-3);
  will-change: clip-path, filter, transform;
}
.property-grid-img > div {
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
}
.property-pos-1,
.property-pos-2,
.property-pos-3,
.property-pos-4,
.property-pos-5,
.property-pos-6,
.property-pos-7,
.property-pos-8,
.property-pos-9 {
  grid-area: auto;
}

@media (max-width: 1023px) {
  .about-section {
    padding-top: 72px;
    padding-bottom: 72px;
  }
  .about-layout {
    grid-template-columns: 1fr;
    gap: 42px;
  }
  .about-copy {
    max-width: 680px;
  }
  .about-copy h2,
  .about-copy > p:not(:first-child) {
    max-width: 100%;
  }
  .about-stats {
    margin-top: 24px;
  }
  .about-slider {
    width: 100%;
    margin-left: 0;
  }

  .property-static { padding-top: 72px; padding-bottom: 72px; }
  .property-heading { margin-bottom: 32px; }
  .property-copy-stack { min-height: 245px; }
  .property-stage {
    height: min(48svh, 440px);
    min-height: 310px;
  }
}

@media (max-width: 640px) {
  .about-section {
    padding-top: 64px;
    padding-bottom: 64px;
  }
  .about-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }
  .about-stat {
    min-height: 92px;
    padding: 14px 8px !important;
  }
  .about-stat .font-display {
    font-size: clamp(19px, 7vw, 26px) !important;
  }
  .about-stat p {
    font-size: 9px !important;
  }
  .about-slider {
    aspect-ratio: 3 / 4;
  }
  .about-slider-arrow {
    width: 38px;
    height: 38px;
  }
  .about-slider-prev {
    left: 12px;
  }
  .about-slider-next {
    right: 12px;
  }

  .property-static { padding-top: 64px; padding-bottom: 64px; }
  .property-tabs { display: grid; grid-template-columns: 1fr; }
  .property-tab { width: 100%; }
  .property-stage {
    height: min(46svh, 390px);
    min-height: 290px;
  }
  .property-panel {
    top: 0;
  }
  .property-panel h3 {
    font-size: clamp(44px, 18vw, 72px);
  }
}

@keyframes cursor-piscar {
  0%, 45% { opacity: 1; }
  46%, 100% { opacity: 0; }
}

.scroll-reveal {
  opacity: 0;
  transform: translate3d(0, 30px, 0);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.scroll-reveal[data-reveal-direction="left"] {
  transform: translate3d(-34px, 0, 0);
}

.scroll-reveal[data-reveal-direction="right"] {
  transform: translate3d(34px, 0, 0);
}

.scroll-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: auto;
}

/* Hero overlay */
.hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(7,14,26,0.20) 0%,
    rgba(7,14,26,0.65) 60%,
    rgba(7,14,26,0.90) 100%
  );
}

/* Botão primário */
.btn-primary {
  background: var(--color-gold);
  color: var(--color-void);
  font-weight: 700;
  border-radius: var(--radius-sm);
  padding: 14px 28px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary:hover {
  background: var(--color-gold-bright);
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold);
}

/* Botão secundário */
.btn-secondary {
  background: transparent;
  border: 1px solid var(--color-navy-light);
  color: var(--color-white);
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 14px 28px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-secondary:hover {
  background: var(--color-navy-mid);
}

/* Destaque para o site externo de imóveis */
.vitrine-destaque {
  background:
    radial-gradient(circle at 85% 20%, rgba(200,149,42,0.15), transparent 34%),
    linear-gradient(135deg, var(--color-navy-mid), #0d1c31);
  box-shadow: var(--shadow-3);
}
.vitrine-destaque::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to right, transparent, black);
  pointer-events: none;
}
.vitrine-marca {
  color: rgba(200,149,42,0.07);
  transform: rotate(-8deg);
  pointer-events: none;
}
.vitrine-cta {
  box-shadow: var(--shadow-gold);
}

/* Contato */
.contact-copy {
  background: radial-gradient(circle at 15% 15%, rgba(200,149,42,0.09), transparent 42%);
}
.contact-list {
  border: 1px solid var(--color-divider);
  background: rgba(17,34,64,0.72);
}
.contact-channel {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 15px;
  padding: 18px;
  color: var(--color-white);
  transition: background 0.2s ease;
}
.contact-channel + .contact-channel {
  border-top: 1px solid var(--color-divider);
}
.contact-channel:hover {
  background: rgba(200,149,42,0.07);
}
.contact-channel-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--color-gold);
  background: var(--color-gold-wash);
}
.contact-channel-icon.whatsapp {
  color: #25D366;
  background: rgba(37,211,102,0.09);
}
.contact-channel small,
.contact-channel strong {
  display: block;
}
.contact-channel small {
  margin-bottom: 3px;
  color: var(--color-muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.contact-channel strong {
  overflow-wrap: anywhere;
  font-size: 14px;
  font-weight: 600;
}
.contact-arrow {
  color: var(--color-muted);
  transition: color 0.2s ease, transform 0.2s ease;
}
.contact-channel:hover .contact-arrow {
  color: var(--color-gold);
  transform: translate(2px, -2px);
}
.contact-meta {
  border-top: 1px solid var(--color-divider);
  color: var(--color-muted);
  font-size: 12px;
}
.contact-meta span {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.6;
}
.contact-meta svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-gold);
}
.contact-status {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #25D366;
  box-shadow: 0 0 0 4px rgba(37,211,102,0.1);
}

/* Links do rodapé */
.footer-link {
  transition: color 0.2s ease, transform 0.2s ease;
}
.footer-link:hover {
  color: var(--color-gold);
  transform: translateX(2px);
}
.footer-icon {
  color: var(--color-gold);
  flex-shrink: 0;
}

/* Scrollbar customizada */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-navy); }
::-webkit-scrollbar-thumb { background: var(--color-navy-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-gold-muted); }

/* Mobile menu drawer */
#mobile-menu {
  transition: transform 0.3s ease;
}
#mobile-menu.open {
  transform: translateX(0) !important;
}

/* Admin — light theme overrides */
.admin-body {
  background: var(--color-surface);
  color: var(--color-ink);
}

/* Galeria de imóvel */
#galeria-principal img {
  transition: opacity 0.3s ease;
}

/* Miniaturas */
.miniatura {
  cursor: pointer;
  opacity: 0.6;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.miniatura:hover,
.miniatura.ativa {
  opacity: 1;
  border-color: var(--color-gold);
}

@media (max-width: 768px) {
  .scroll-reveal {
    opacity: 0;
    transform: none;
  }

  .scroll-reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .scroll-reveal {
    opacity: 1;
    transform: none;
  }

  .typewriter-text::after {
    display: none;
  }

  .hero-reveal {
    display: none;
  }
}
