/* ============================================
   Aurum Estates — custom theme styles
   Palette: #1D1912 ink | #F3F3E6 cream | #EECD5C gold | #D2A63C bronze
   ============================================ */

:root {
  --ink: #1d1912;
  --cream: #f3f3e6;
  --gold: #eecd5c;
  --bronze: #d2a63c;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--cream);
  color: var(--ink);
  font-family: "Jost", system-ui, sans-serif;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

h1,
h2,
h3,
h4,
.font-display {
  font-family: "Fraunces", Georgia, serif;
}

/* ---------- Preloader ---------- */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    opacity 0.6s ease,
    visibility 0.6s ease;
}
#preloader.hidden-loader {
  opacity: 0;
  visibility: hidden;
}
.loader-ring {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid rgba(243, 243, 230, 0.15);
  border-top-color: var(--gold);
  animation: spin 0.9s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Navbar ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1040;
  transition:
    background-color 0.35s ease,
    box-shadow 0.35s ease,
    padding 0.35s ease;
  background: transparent;
}
.site-header.scrolled {
  background: rgba(29, 25, 18, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.site-header.solid {
  background: var(--ink);
}

.nav-link-x {
  position: relative;
  color: var(--cream);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.35rem 0;
  text-decoration: none;
  transition: color 0.3s ease;
}
.nav-link-x::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.35s ease;
}
.nav-link-x:hover,
.nav-link-x.active {
  color: var(--gold);
}
.nav-link-x:hover::after,
.nav-link-x.active::after {
  width: 100%;
}

.burger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--cream);
  margin: 5px 0;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

/* ---------- Buttons ---------- */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gold);
  color: var(--ink);
  padding: 0.8rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
}
.btn-gold:hover {
  background: var(--bronze);
  color: var(--ink);
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(210, 166, 60, 0.35);
}
.btn-outline-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 0.8rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  background: transparent;
  transition: all 0.3s ease;
}
.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--ink);
  transform: translateY(-3px);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--ink);
  overflow: hidden;
}
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  animation: slowZoom 18s ease-in-out infinite alternate;
}
@keyframes slowZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.12);
  }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(29, 25, 18, 0.85) 0%,
    rgba(29, 25, 18, 0.55) 45%,
    rgba(29, 25, 18, 0.95) 100%
  );
}

/* ---------- Page banner ---------- */
.page-banner {
  position: relative;
  padding: 11rem 0 5rem;
  background: var(--ink);
  overflow: hidden;
}
.page-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
}
.page-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(29, 25, 18, 0.8),
    rgba(29, 25, 18, 0.95)
  );
}
.page-banner .container {
  position: relative;
  z-index: 2;
}

/* ---------- Cards ---------- */
.prop-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(29, 25, 18, 0.08);
  transition:
    transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.45s ease;
}
.prop-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 26px 50px rgba(29, 25, 18, 0.18);
}
.prop-thumb {
  position: relative;
  overflow: hidden;
  height: 240px;
  background: #ded9c8;
}
.prop-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.prop-card:hover .prop-thumb img {
  transform: scale(1.12);
}
.prop-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

/* ---------- Gallery ---------- */
.gal-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  cursor: pointer;
  height: 260px;
  background: #ded9c8;
}
.gal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.gal-item:hover img {
  transform: scale(1.15) rotate(1.5deg);
}
.gal-item .gal-cap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 1.2rem;
  color: var(--cream);
  background: linear-gradient(180deg, transparent 40%, rgba(29, 25, 18, 0.9));
  opacity: 0;
  transition: opacity 0.4s ease;
}
.gal-item:hover .gal-cap {
  opacity: 1;
}
.gal-tall {
  height: 400px;
}

/* ---------- Misc ---------- */
.section {
  padding: 6rem 0;
}
.eyebrow {
  display: inline-block;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--bronze);
}
.divider-gold {
  width: 68px;
  height: 3px;
  background: var(--gold);
  border-radius: 3px;
}

.stat-num {
  font-family: "Fraunces", serif;
  font-size: 2.75rem;
  color: var(--gold);
  line-height: 1;
}

.filter-chip {
  border: 1px solid rgba(29, 25, 18, 0.15);
  background: transparent;
  color: var(--ink);
  padding: 0.5rem 1.15rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: all 0.3s ease;
}
.filter-chip:hover {
  border-color: var(--bronze);
}
.filter-chip.active {
  background: var(--ink);
  color: var(--gold);
  border-color: var(--ink);
}

.search-shell {
  background: rgba(243, 243, 230, 0.96);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(29, 25, 18, 0.25);
  padding: 1rem;
}
.search-shell input,
.search-shell select {
  width: 100%;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 0.55rem 0.25rem;
}
.search-cell + .search-cell {
  border-left: 1px solid rgba(29, 25, 18, 0.12);
}
@media (max-width: 767.98px) {
  .search-cell + .search-cell {
    border-left: 0;
    border-top: 1px solid rgba(29, 25, 18, 0.12);
  }
}

.map-frame {
  border: 0;
  width: 100%;
  border-radius: 16px;
  filter: grayscale(0.35) contrast(1.05);
}

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1030;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: var(--gold);
  color: var(--ink);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: all 0.35s ease;
  box-shadow: 0 10px 22px rgba(29, 25, 18, 0.25);
}
.to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.float-slow {
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

.marquee {
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  gap: 3.5rem;
  animation: marquee 26s linear infinite;
}
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  box-shadow: none;
}
.form-field {
  width: 100%;
  background: #fff;
  border: 1px solid rgba(29, 25, 18, 0.12);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  color: var(--ink);
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}
.form-field:focus {
  border-color: var(--bronze);
  box-shadow: 0 0 0 3px rgba(238, 205, 92, 0.28);
}

.offcanvas {
  background: var(--ink) !important;
  color: var(--cream);
}

/* =========================================================
   PREMIUM WHATSAPP WIDGET
========================================================= */

.wa-widget {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 99999;
  font-family: "Plus Jakarta Sans", sans-serif;
}

/* ---------- Floating Button ---------- */

.wa-float {
  position: relative;
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow:
    0 12px 35px rgba(37, 211, 102, 0.35),
    0 4px 12px rgba(0, 0, 0, 0.15);
  transition:
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s ease;
}

.wa-float:hover {
  transform: translateY(-6px) scale(1.06);
  box-shadow:
    0 20px 45px rgba(37, 211, 102, 0.45),
    0 8px 20px rgba(0, 0, 0, 0.18);
}

.wa-icon {
  position: relative;
  z-index: 3;
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Pulse Ring ---------- */

.wa-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.65);
  animation: waPulse 2.2s infinite;
}

@keyframes waPulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  70% {
    transform: scale(1.55);
    opacity: 0;
  }

  100% {
    transform: scale(1.55);
    opacity: 0;
  }
}

/* ---------- Notification ---------- */

.wa-notification {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  z-index: 5;
}

/* ---------- Popup ---------- */

.wa-popup {
  position: absolute;
  right: 0;
  bottom: 82px;
  width: 350px;
  max-width: calc(100vw - 30px);

  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  overflow: hidden;

  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.18),
    0 8px 25px rgba(0, 0, 0, 0.08);

  opacity: 0;
  visibility: hidden;
  transform: translateY(18px) scale(0.94);
  transform-origin: bottom right;

  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.wa-popup.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* ---------- Popup Header ---------- */

.wa-popup-header {
  background: #111;
  color: #fff;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wa-agent {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wa-agent-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
}

.wa-agent strong {
  display: block;
  font-size: 13px;
  margin-bottom: 3px;
}

.wa-agent span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #aaa;
  font-size: 10px;
}

.wa-online-dot {
  width: 7px !important;
  height: 7px;
  border-radius: 50%;
  background: #25d366;
  display: inline-block !important;
}

/* Close button */

#wa-close {
  width: 34px;
  height: 34px;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.25s ease;
}

#wa-close:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: rotate(90deg);
}

/* ---------- Message ---------- */

.wa-popup-body {
  padding: 18px;
  background: #f5f5f5;
}

.wa-message {
  max-width: 88%;
  background: #fff;
  padding: 14px 15px;
  border-radius: 4px 16px 16px 16px;
  color: #333;
  font-size: 12px;
  line-height: 1.7;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* ---------- Footer ---------- */

.wa-popup-footer {
  padding: 14px;
  background: #fff;
  border-top: 1px solid #eee;
}

.wa-start-chat {
  width: 100%;
  min-height: 46px;
  padding: 12px 15px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  border-radius: 12px;
  background: #25d366;
  color: #fff;

  font-size: 12px;
  font-weight: 800;
  text-decoration: none;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
}

.wa-start-chat:hover {
  background: #1ebe5d;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.25);
}

.wa-start-chat i:first-child {
  font-size: 19px;
}

.wa-start-chat i:last-child {
  font-size: 11px;
  margin-left: auto;
  transition: transform 0.3s ease;
}

.wa-start-chat:hover i:last-child {
  transform: translateX(4px);
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 575px) {
  .wa-widget {
    right: 16px;
    bottom: 16px;
  }

  .wa-float {
    width: 58px;
    height: 58px;
  }

  .wa-icon {
    font-size: 27px;
  }

  .wa-popup {
    right: 0;
    bottom: 72px;
    width: min(350px, calc(100vw - 24px));
  }
}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
  .wa-ring {
    animation: none;
  }

  .wa-float,
  .wa-popup,
  .wa-start-chat {
    transition: none;
  }
}
