/* Amrapali Resale – custom CSS (Tailwind ke saath) */



/* Hero: image admin se (--hero-img), overlay darkness --hero-ov */
.hero {
  background:
    linear-gradient(90deg, rgb(var(--navy-900) / calc(var(--hero-ov, .6) + .3)) 0%, rgb(var(--navy-900) / var(--hero-ov, .6)) 55%, rgb(var(--navy-900) / calc(var(--hero-ov, .6) - .25)) 100%),
    var(--hero-img, linear-gradient(135deg, rgb(var(--navy-900)), rgb(var(--navy-700)))) center/cover no-repeat;
}
/* Inner page banner */
.banner {
  background:
    linear-gradient(90deg, rgb(var(--navy-900) / .95), rgb(var(--navy-900) / .75)),
    var(--banner-img, linear-gradient(135deg, rgb(var(--navy-900)), rgb(var(--navy-700)))) center/cover no-repeat;
}

/* Nav links */
.nav-link { position: relative; padding: 6px 0; color: #e2e8f0; transition: color .2s; }
.nav-link:hover, .nav-link.active { color: rgb(var(--gold-400)); }
.nav-link.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: rgb(var(--gold-400));
}

/* Cards */
.card {
  background: #fff; border: 1px solid #eef0f4; border-radius: 8px;
  box-shadow: 0 2px 10px rgba(15, 30, 60, .06); transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 25px rgba(15, 30, 60, .12); }

/* Image box with gradient fallback when image missing */
.img-box { background: linear-gradient(135deg, #1b3358, #3b5a8a 60%, rgb(var(--gold-500))); overflow: hidden; }
.img-box img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .img-box img { transform: scale(1.06); }

/* Back to top */
#toTop { transition: opacity .2s; }
#toTop.hide { opacity: 0; pointer-events: none; }

html { scroll-behavior: smooth; }

/* ---- Projects page ---- */
.skyline {
  position: absolute; right: 2rem; bottom: 0; width: 600px; height: 100px; opacity: .35;
  background:
    linear-gradient(#94a3b8,#94a3b8) 20px 100%/36px 55px no-repeat,
    linear-gradient(#94a3b8,#94a3b8) 70px 100%/30px 80px no-repeat,
    linear-gradient(#94a3b8,#94a3b8) 115px 100%/40px 65px no-repeat,
    linear-gradient(#94a3b8,#94a3b8) 170px 100%/34px 95px no-repeat,
    linear-gradient(#94a3b8,#94a3b8) 220px 100%/38px 60px no-repeat,
    linear-gradient(#94a3b8,#94a3b8) 275px 100%/32px 85px no-repeat,
    linear-gradient(#94a3b8,#94a3b8) 325px 100%/40px 70px no-repeat,
    linear-gradient(#94a3b8,#94a3b8) 380px 100%/30px 92px no-repeat,
    linear-gradient(#94a3b8,#94a3b8) 425px 100%/38px 58px no-repeat,
    linear-gradient(#94a3b8,#94a3b8) 480px 100%/34px 78px no-repeat;
}
.pg {
  min-width: 32px; height: 32px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 4px; color: #334155; transition: all .2s;
}
.pg:hover { border-color: rgb(var(--gold-500)); color: rgb(var(--gold-500)); }
.pg-active, .pg-active:hover { background: rgb(var(--navy-900)); border-color: rgb(var(--navy-900)); color: #fff; }
.fav.on i { font-weight: 900; color: #ef4444; }

/* ---- Detail pages ---- */
.gal-btn { width: 34px; height: 34px; border-radius: 9999px; background: rgba(255,255,255,.95); box-shadow: 0 2px 8px rgba(0,0,0,.2); display: flex; align-items: center; justify-content: center; color: rgb(var(--navy-900)); }
.g-thumb { cursor: pointer; border-radius: 6px; overflow: hidden; }
.g-thumb img { width: 100%; height: 100%; object-fit: cover; }
.panel { background: #fff; border-radius: 8px; box-shadow: 0 2px 10px rgba(15,30,60,.06); border: 1px solid #eef0f4; }
.chip { display: flex; align-items: center; gap: 8px; background: #f8fafc; border: 1px solid #eef0f4; border-radius: 6px; padding: 10px 12px; font-size: 11px; color: #475569; }
.chip i { color: #64748b; font-size: 16px; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { scrollbar-width: none; }


/* ---- Sticky buttons ---- */
.sticky-btn { width: 44px; height: 44px; border-radius: 9999px; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 19px;
  box-shadow: 0 4px 12px rgba(0,0,0,.25); transition: transform .2s; }
.sticky-btn:hover { transform: scale(1.12); }
@media (max-width: 640px) { .sticky-btn { width: 40px; height: 40px; font-size: 17px; } }

/* ---- Policy / CMS pages ---- */
.prose-page h2 { font-size: 1.6rem; font-weight: 600; margin: 0 0 1rem; color: rgb(var(--navy-900)); }
.prose-page h3 { font-size: 1.1rem; font-weight: 600; margin: 1.6rem 0 .5rem; color: rgb(var(--navy-900)); }
.prose-page p { margin: .6rem 0; line-height: 1.8; color: #475569; }
.prose-page ul, .prose-page ol { margin: .6rem 0 .6rem 1.3rem; color: #475569; line-height: 1.8; }
.prose-page ul { list-style: disc; } .prose-page ol { list-style: decimal; }
.prose-page a { color: rgb(var(--gold-600)); text-decoration: underline; }

/* FAQ */
details.faq summary { cursor: pointer; list-style: none; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq[open] summary i { transform: rotate(180deg); }
