/* =====================================================================
   Royal Enclave Properties — custom layer on top of Tailwind
   ===================================================================== */

:root {
  --night: #0a0a08;   /* section panels */
  --coal:  #121211;   /* cards          */
  --line:  #302a1c;   /* hairlines      */
  --gold:  #c9a227;
  --cream: #f5efe1;
}

/* the page itself is pure black; everything above it is a warm near-black */
html, body { background: #000; }

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }

/* ---------- selection + scrollbar ---------- */
::selection { background: #c9a227; color: #000; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0a0a08; }
::-webkit-scrollbar-thumb { background: #302a1c; border-radius: 99px; border: 2px solid #0a0a08; }
::-webkit-scrollbar-thumb:hover { background: #c9a227; }

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .40s; }

/* ---------- hero ---------- */
.hero-zoom { animation: heroZoom 22s ease-out forwards; }
@keyframes heroZoom {
  from { transform: scale(1.14); }
  to   { transform: scale(1); }
}

/* thin gold rule used under section eyebrows */
.rule::after {
  content: '';
  display: block;
  width: 46px;
  height: 2px;
  margin-top: .65rem;
  background: linear-gradient(90deg, #c9a227, rgba(201,162,39,0));
}
.rule-center::after { margin-left: auto; margin-right: auto;
  background: linear-gradient(90deg, rgba(201,162,39,0), #c9a227, rgba(201,162,39,0)); width: 90px; }

/* ---------- nav underline ---------- */
.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  height: 1.5px; width: 0;
  background: #c9a227;
  transition: width .35s cubic-bezier(.16,1,.3,1);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* ---------- property card ---------- */
.card-img { transition: transform 1s cubic-bezier(.16,1,.3,1); }
.group:hover .card-img { transform: scale(1.07); }

/* ---------- decorative arch (Awadhi motif) ---------- */
.arch-top {
  border-top-left-radius: 999px 260px;
  border-top-right-radius: 999px 260px;
}

/* ---------- marquee ---------- */
.marquee { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- testimonial slider ---------- */
.slides { display: flex; transition: transform .7s cubic-bezier(.16,1,.3,1); }
.slide { flex: 0 0 100%; }

/* ---------- accordion ---------- */
.acc-body { max-height: 0; overflow: hidden; transition: max-height .45s cubic-bezier(.16,1,.3,1); }

/* ---------- range slider ---------- */
input[type="range"] { -webkit-appearance: none; appearance: none; background: transparent; }
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px; border-radius: 99px; background: #302a1c;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  height: 18px; width: 18px; margin-top: -7px;
  border-radius: 99px; background: #c9a227;
  border: 3px solid #000; cursor: pointer;
  transition: transform .2s;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 99px; background: #302a1c; }
input[type="range"]::-moz-range-thumb {
  height: 18px; width: 18px; border-radius: 99px;
  background: #c9a227; border: 3px solid #000; cursor: pointer;
}

/* ---------- toast ---------- */
.toast { transform: translateY(140%); transition: transform .5s cubic-bezier(.16,1,.3,1); }
.toast.show { transform: none; }

/* ---------- image placeholder shimmer ---------- */
.img-wrap { background: linear-gradient(110deg, #121211 8%, #1c1a15 18%, #121211 33%); background-size: 200% 100%; animation: shimmer 1.6s linear infinite; }
@keyframes shimmer { to { background-position-x: -200%; } }
.img-wrap.loaded { animation: none; background: #121211; }

/* ---------- print ---------- */
@media print {
  header, footer, .no-print { display: none !important; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- header ---------- */
#site-header { transition: background-color .45s ease, box-shadow .45s ease; }
#site-header.is-stuck { background: rgba(0,0,0,.82); backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(201,162,39,.22); }
#site-header .topbar { transition: max-height .45s ease, opacity .35s ease; max-height: 44px; overflow: hidden; }
#site-header.is-stuck .topbar { max-height: 0; opacity: 0; }

/* default (inner pages): solid cream bar */
#site-header:not(.header-overlay) { background: rgba(0,0,0,.82); backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(201,162,39,.22); }

/* home page: transparent over the hero until scrolled */
.header-overlay:not(.is-stuck) { background: transparent; }
.header-overlay:not(.is-stuck) .topbar { border-color: rgba(245,239,225,.14); }
.header-overlay:not(.is-stuck) .nav-link,
.header-overlay:not(.is-stuck) .topbar,
.header-overlay:not(.is-stuck) .nav-icon { color: #f5efe1; }
.header-overlay:not(.is-stuck) .brand-sub { color: rgba(245,239,225,.6); }

/* ---------- dark-theme extras ---------- */

/* map embeds ship as white sheets; knock them back so they sit on black */
iframe[src*="maps"] {
  filter: invert(0.92) hue-rotate(180deg) saturate(0.7) contrast(0.9);
}

/* form controls: native chrome is light by default */
input, select, textarea { color-scheme: dark; }
select option { background: #121211; color: #f5efe1; }

/* focus ring that reads on black */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid #c9a227;
  outline-offset: 2px;
}

/* gold hairline above the footer */
footer { border-top: 1px solid rgba(201,162,39,.18); }
