/* ==========================================================================
   SHILOH SOLUÇÕES E IMOBILIÁRIA — DESIGN SYSTEM & LUXURY APPLE REAL ESTATE
   Paleta: Azul Shiloh (#003059), Ouro Queimado (#C8A15A), Areia (#F4EFE3), Preto (#14212A)
   ========================================================================== */

:root {
  /* Cores Oficiais da Marca Shiloh */
  --shiloh-blue: #003059;
  --shiloh-blue-deep: #001f3b;
  --shiloh-blue-night: #061523;
  --shiloh-blue-light: #0A4373;
  --shiloh-gold: #C8A15A;
  --shiloh-gold-hover: #b38b46;
  --shiloh-gold-glow: rgba(200, 161, 90, 0.4);
  --shiloh-gold-dim: rgba(200, 161, 90, 0.15);
  --shiloh-sand: #F4EFE3;
  --shiloh-sand-light: #FBF9F5;
  --shiloh-sand-pure: #FFFFFF;
  --shiloh-dark: #14212A;
  --shiloh-dark-card: #182833;
  --shiloh-text-muted: #8E9BAE;
  --shiloh-border: rgba(200, 161, 90, 0.22);
  --shiloh-border-light: rgba(255, 255, 255, 0.12);

  /* Apple Glassmorphism */
  --apple-blur: blur(24px);
  --apple-glass-dark: rgba(0, 31, 59, 0.88);
  --apple-glass-white: rgba(255, 255, 255, 0.85);
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Sombras de Alto Padrão */
  --shadow-gold: 0 10px 30px -5px rgba(200, 161, 90, 0.35);
  --shadow-blue-subtle: 0 12px 35px -8px rgba(0, 48, 89, 0.2);
  --shadow-apple-floating: 0 30px 60px -15px rgba(0, 15, 30, 0.35);

  /* Tipografia */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Raleway', 'Plus Jakarta Sans', sans-serif;

  --ease-apple: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.22s var(--ease-apple);
  --transition-smooth: 0.4s var(--ease-apple);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--shiloh-sand-light);
  color: var(--shiloh-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--shiloh-blue-deep);
  letter-spacing: -0.02em;
}

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

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

/* ==========================================================================
   HEADER DE ALTO LUXO ESTILO APPLE
   ========================================================================== */
.header-apple {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 85px;
  background: var(--apple-glass-dark);
  backdrop-filter: var(--apple-blur);
  -webkit-backdrop-filter: var(--apple-blur);
  border-bottom: 1px solid var(--shiloh-border);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: all var(--transition-smooth);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand-logo img {
  height: 48px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a:hover {
  color: var(--shiloh-gold);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* BOTÕES DA MARCA */
.btn-gold {
  background: linear-gradient(135deg, #DFB96E, var(--shiloh-gold));
  color: #071929;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-gold);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(200, 161, 90, 0.45);
}

.btn-outline-white {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
  padding: 11px 22px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--shiloh-gold);
  color: var(--shiloh-gold);
}

/* ==========================================================================
   BANNER HERO COM VÍDEO / IMAGEM DE ALTO IMPACTO EM AZUL SHILOH
   ========================================================================== */
.hero-luxury {
  position: relative;
  min-height: 94vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 70px;
  background-color: var(--shiloh-blue-deep);
  background-image: 
    linear-gradient(135deg, rgba(0, 31, 59, 0.94) 0%, rgba(0, 48, 89, 0.85) 60%, rgba(6, 21, 35, 0.95) 100%),
    url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?auto=format&fit=crop&w=2000&q=85');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero-luxury::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 30%, rgba(200, 161, 90, 0.18) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 880px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200, 161, 90, 0.18);
  border: 1px solid rgba(200, 161, 90, 0.45);
  color: var(--shiloh-gold);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.1;
  margin-bottom: 22px;
}

.hero-title span {
  background: linear-gradient(135deg, #FBF9F5 20%, var(--shiloh-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.2rem;
  color: #CBD5E1;
  max-width: 680px;
  margin-bottom: 36px;
  font-weight: 400;
  line-height: 1.6;
}

/* BARRA DE PESQUISA FLUTUANTE APPLE GLASS */
.search-bar-glass {
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: var(--apple-blur);
  -webkit-backdrop-filter: var(--apple-blur);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-lg);
  padding: 24px 30px;
  box-shadow: var(--shadow-apple-floating);
  margin-top: 20px;
}

.search-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) 180px;
  gap: 18px;
  align-items: center;
}

.search-field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--shiloh-gold);
  margin-bottom: 8px;
}

.search-field select, .search-field input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 20, 40, 0.65);
  color: #FFFFFF;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: var(--font-main);
  outline: none;
  transition: all var(--transition-fast);
}

.search-field select:focus, .search-field input:focus {
  border-color: var(--shiloh-gold);
  background: rgba(0, 20, 40, 0.9);
}

/* NÚMEROS E AUTORIDADE */
.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-item h4 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--shiloh-gold);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-item p {
  font-size: 13.5px;
  color: #94A3B8;
  font-weight: 500;
}

/* ==========================================================================
   SEÇÃO SOBRE A SHILOH — ACOLHIMENTO E SEGURANÇA
   ========================================================================== */
.section-about {
  padding: 120px 0;
  background: #FFFFFF;
  position: relative;
}

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

.about-badge {
  color: var(--shiloh-gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 14px;
}

.about-title {
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  color: var(--shiloh-blue);
  line-height: 1.15;
  margin-bottom: 24px;
}

.about-text {
  font-size: 16px;
  color: #475569;
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-pillars-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}

.pillar-mini {
  background: var(--shiloh-sand-light);
  border-left: 3px solid var(--shiloh-gold);
  padding: 18px 20px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.pillar-mini h5 {
  font-size: 15px;
  color: var(--shiloh-blue);
  margin-bottom: 6px;
}

.pillar-mini p {
  font-size: 13px;
  color: var(--shiloh-text-muted);
  line-height: 1.5;
}

.about-image-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-apple-floating);
}

.about-image-card img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
}

.about-floating-card {
  position: absolute;
  bottom: 30px;
  left: 30px;
  background: var(--apple-glass-dark);
  backdrop-filter: var(--apple-blur);
  border: 1px solid var(--shiloh-border);
  padding: 24px;
  border-radius: var(--radius-lg);
  color: #FFFFFF;
  max-width: 320px;
}

/* ==========================================================================
   VITRINE DE IMÓVEIS (CARDS ESTILO APPLE)
   ========================================================================== */
.section-properties {
  padding: 120px 0;
  background: var(--shiloh-sand);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 50px;
}

.section-head h2 {
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  color: var(--shiloh-blue);
}

.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 32px;
}

.property-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 48, 89, 0.08);
  overflow: hidden;
  box-shadow: 0 10px 30px -5px rgba(0, 31, 59, 0.06);
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.property-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-apple-floating);
  border-color: var(--shiloh-gold);
}

.card-img-wrap {
  position: relative;
  width: 100%;
  height: 270px;
  overflow: hidden;
  cursor: pointer;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-apple);
}

.property-card:hover .card-img-wrap img {
  transform: scale(1.06);
}

.badge-tag {
  position: absolute;
  top: 18px;
  left: 18px;
  background: var(--shiloh-blue-deep);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  backdrop-filter: blur(10px);
}

.badge-gold {
  background: linear-gradient(135deg, #E5C378, var(--shiloh-gold));
  color: #051424;
}

.card-content {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-price {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--shiloh-blue);
  margin-bottom: 6px;
}

.card-title {
  font-size: 1.3rem;
  color: var(--shiloh-dark);
  margin-bottom: 8px;
  line-height: 1.3;
}

.card-location {
  color: var(--shiloh-text-muted);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
}

.card-specs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-top: 1px solid #EEF2F6;
  border-bottom: 1px solid #EEF2F6;
  margin-bottom: 22px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--shiloh-dark);
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  gap: 12px;
}

.btn-card-detail {
  background: var(--shiloh-sand-light);
  border: 1px solid rgba(0, 48, 89, 0.12);
  color: var(--shiloh-blue);
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-card-detail:hover {
  background: var(--shiloh-blue);
  color: #FFFFFF;
}

.btn-card-whatsapp {
  background: #25D366;
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  transition: all var(--transition-fast);
}

.btn-card-whatsapp:hover {
  background: #20bd5a;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(37, 211, 102, 0.4);
}

/* ==========================================================================
   MODAL DE DETALHES COMPLETOS DO IMÓVEL (PÁGINA DO IMÓVEL DINÂMICA)
   ========================================================================== */
.property-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 20, 40, 0.85);
  backdrop-filter: var(--apple-blur);
  z-index: 3000;
  display: none;
  overflow-y: auto;
  padding: 40px 20px;
}

.property-modal-overlay.active {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.property-modal-content {
  background: #FFFFFF;
  width: 100%;
  max-width: 1100px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-apple-floating);
  position: relative;
  animation: modalScale 0.35s var(--ease-apple);
  margin-bottom: 50px;
}

@keyframes modalScale {
  from { opacity: 0; transform: scale(0.96) translateY(30px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close-round {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-fast);
}

.modal-close-round:hover {
  background: #000;
  transform: scale(1.1);
}

.prop-gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
  height: 440px;
}

.gallery-main img, .gallery-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
}

.prop-body-wrap {
  padding: 40px 48px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
}

.prop-features-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 28px 0;
}

.feature-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--shiloh-sand-light);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--shiloh-dark);
}

.consultant-sidebar-card {
  background: var(--shiloh-blue-deep);
  border-radius: var(--radius-lg);
  padding: 32px;
  color: #FFFFFF;
  position: sticky;
  top: 30px;
  border: 1px solid var(--shiloh-border);
}

/* ==========================================================================
   SIMULADOR DE WHATSAPP INTERATIVO NO NAVEGADOR
   ========================================================================== */
.section-simulator {
  padding: 120px 0;
  background: var(--shiloh-blue-deep);
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.sim-container-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.phone-device {
  width: 380px;
  margin: 0 auto;
  background: #000;
  border-radius: 46px;
  padding: 12px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
  border: 4px solid #2d3748;
}

.phone-screen {
  background: #0B141A;
  border-radius: 36px;
  height: 580px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.wa-header {
  background: #202C33;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.wa-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--shiloh-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #000;
}

.wa-chat-body {
  flex-grow: 1;
  padding: 20px 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 16px 16px;
}

.chat-bubble {
  max-width: 82%;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.45;
  position: relative;
}

.bubble-received {
  background: #202C33;
  color: #E9EDEF;
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.bubble-sent {
  background: #005C4B;
  color: #E9EDEF;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.bubble-time {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
  text-align: right;
  margin-top: 4px;
}

.wa-input-bar {
  background: #202C33;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.wa-input-fake {
  background: #2A3942;
  border-radius: 20px;
  padding: 8px 14px;
  color: #8696A0;
  font-size: 13px;
  flex-grow: 1;
}

/* FOOTER */
.footer-shiloh {
  background: var(--shiloh-dark);
  color: #FFFFFF;
  padding: 80px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 900px) {
  .about-grid, .sim-container-grid, .prop-gallery-grid, .prop-body-wrap {
    grid-template-columns: 1fr;
  }
  .phone-device {
    width: 100%;
    max-width: 360px;
  }
}
