/* ==========================================================================
   Realty Utsav 2026 — custom styles (used alongside Tailwind CSS)
   Brand: red #C8202F · blue #0B4EA2 · navy #0A2C5E · sky #EAF3FD
   Fonts: Poppins for headings and body
   ========================================================================== */

:root {
  --red: #C8202F;
  --red-dark: #A3141F;
  --blue: #0B4EA2;
  --navy: #0A2C5E;
  --sky: #EAF3FD;
  --ink: #1B2330;
  --muted: #5B6472;
}

html { scroll-padding-top: 5.5rem; }
html, body { overflow-x: clip; }

/* ---------- Layout ---------- */
.container-x {
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 768px) { .container-x { padding-inline: 2rem; } }

.section { padding-block: 4rem; }
@media (min-width: 768px) { .section { padding-block: 5rem; } }

.section-head { text-align: center; max-width: 42rem; margin-inline: auto; }
.section-title {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.05;
  font-size: 2rem;
}
@media (min-width: 640px) { .section-title { font-size: 2.5rem; } }
@media (min-width: 1024px) { .section-title { font-size: 2.85rem; } }
.section-sub { margin-top: 0.75rem; color: var(--muted); font-size: 0.95rem; }

/* ---------- Header ---------- */
#site-header.is-scrolled { box-shadow: 0 6px 20px rgba(16, 24, 40, 0.08); }

.nav-link { position: relative; color: var(--ink); transition: color .2s; }
.nav-link:hover, .nav-link.active { color: var(--red); }
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--red); transition: width .25s;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.mobile-link {
  display: block; padding: .75rem .5rem; border-radius: .5rem; color: var(--ink);
}
.mobile-link:hover { background: var(--sky); color: var(--red); }


/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--red); color: #fff; font-weight: 600;
  text-transform: uppercase; letter-spacing: .02em;
  border-radius: .5rem;
  box-shadow: 0 8px 20px -8px rgba(200, 32, 47, .6);
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); }
.btn-primary svg { transition: transform .2s; }
.btn-primary:hover svg { transform: translateX(3px); }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border: 2px solid var(--blue); color: var(--blue); font-weight: 600;
  border-radius: .5rem; background: #fff; transition: all .2s;
}
.btn-outline:hover { background: var(--blue); color: #fff; }

/* ---------- Hero ---------- */
.hero-bg {
  background:
    radial-gradient(1200px 500px at 85% 10%, rgba(11, 78, 162, .10), transparent 60%),
    radial-gradient(800px 400px at 0% 100%, rgba(200, 32, 47, .07), transparent 60%),
    linear-gradient(180deg, #F3F8FE 0%, #ffffff 100%);
}

/* ---------- Image placeholders ---------- */
.img-placeholder {
  background:
    repeating-linear-gradient(45deg, #eef3f9 0 12px, #e6edf6 12px 24px);
}

/* ---------- Stats ---------- */
.stat {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  padding: 1.25rem 1rem;
}
@media (min-width: 768px) { .stat { padding: 1.75rem 1rem; gap: 1.25rem; } }
.stat-icon { width: 2.5rem; height: 2.5rem; color: var(--blue); flex-shrink: 0; }
@media (min-width: 768px) { .stat-icon { width: 3rem; height: 3rem; } }
.stat-num {
  font-family: "Poppins", sans-serif; font-weight: 800;
  color: var(--red); font-size: 2.25rem; line-height: 1;
}
@media (min-width: 1024px) { .stat-num { font-size: 2.75rem; } }
.stat-label { font-weight: 700; font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; color: var(--navy); margin-top: .25rem; }
@media (min-width: 768px) { .stat-label { font-size: .8rem; } }

/* ---------- Property cards ---------- */
.property-card {
  background: #fff; border-radius: 1rem; overflow: hidden;
  border: 1px solid #edf1f6; box-shadow: 0 4px 18px rgba(16, 24, 40, .06);
  transition: transform .3s, box-shadow .3s;
}
.property-card:hover { transform: translateY(-6px); box-shadow: 0 18px 36px -14px rgba(11, 78, 162, .3); }
.card-arrow {
  flex-shrink: 0; display: grid; place-items: center;
  width: 2.25rem; height: 2.25rem; border-radius: 9999px;
  border: 1.5px solid var(--red); color: var(--red); transition: all .2s;
}
.card-arrow:hover, .property-card:hover .card-arrow { background: var(--red); color: #fff; }

/* ---------- Why visit ---------- */
.feature { text-align: center; padding-inline: 1rem; }
.feature-icon {
  display: inline-grid; place-items: center;
  width: 4.5rem; height: 4.5rem; border-radius: 9999px;
  background: #fff; color: var(--red);
  box-shadow: 0 0 0 8px rgba(200, 32, 47, .08), 0 8px 20px -10px rgba(200, 32, 47, .5);
  transition: transform .3s;
}
.feature:hover .feature-icon { transform: translateY(-4px) scale(1.05); }
.feature-title { margin-top: 1.25rem; font-weight: 600; color: var(--ink); }
.feature-text { margin-top: .35rem; font-size: .85rem; color: var(--muted); max-width: 15rem; margin-inline: auto; }
/* ---------- Builders: auto-scrolling logo strip ---------- */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee-scroll 55s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; flex-shrink: 0; gap: 1rem; padding-right: 1rem; }
@keyframes marquee-scroll { to { transform: translateX(-50%); } }

.builder-logo {
  flex: 0 0 auto; width: 9.5rem; height: 6rem; padding: .85rem 1rem;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid #e8ecf2; border-radius: .85rem;
  box-shadow: 0 2px 10px rgba(16, 24, 40, .04);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.builder-logo:hover { transform: translateY(-3px); border-color: rgba(11, 78, 162, .3); box-shadow: 0 12px 24px -14px rgba(11, 78, 162, .4); }
.builder-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
@media (min-width: 768px) { .builder-logo { width: 11rem; height: 6.75rem; } }

@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none; }
  .marquee-group[aria-hidden="true"] { display: none; }
}
/* ---------- Home loan list ---------- */
.check-item { position: relative; padding-left: 2rem; font-size: .95rem; color: var(--ink); }
.check-item::before {
  content: ""; position: absolute; left: 0; top: .1rem;
  width: 1.3rem; height: 1.3rem; border-radius: 9999px; background: var(--red);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E");
  background-size: 70%; background-position: center; background-repeat: no-repeat;
}

/* ---------- Form ---------- */
.form-label { display: block; font-size: .8rem; font-weight: 600; color: var(--ink); margin-bottom: .4rem; }
.form-input {
  width: 100%; padding: .75rem 1rem; font-size: .9rem;
  border: 1px solid #d9e0ea; border-radius: .5rem; background: #fff; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.form-input::placeholder { color: #a3acb9; }
.form-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(11, 78, 162, .15); }
.form-select {
  appearance: none; -webkit-appearance: none; padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B6472' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center; background-size: 1rem;
}
.form-select:invalid { color: #a3acb9; }
.form-select option { color: var(--ink); }
.form-error { display: none; margin-top: .35rem; font-size: .75rem; color: var(--red); }
.is-invalid .form-input { border-color: var(--red); }
.is-invalid .form-error { display: block; }

/* ---------- Event details ---------- */
.event-icon {
  flex-shrink: 0; display: grid; place-items: center;
  width: 2.5rem; height: 2.5rem; border-radius: .5rem;
  background: #fff; color: var(--red);
}

/* ---------- FAQ ---------- */
.faq {
  background: #fff; border: 1px solid #e3e9f1; border-radius: .75rem;
  box-shadow: 0 2px 10px rgba(16, 24, 40, .04); transition: border-color .2s, box-shadow .2s;
}
.faq[open] { border-color: rgba(11, 78, 162, .35); box-shadow: 0 8px 24px -14px rgba(11, 78, 162, .35); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 1rem 3rem 1rem 1.25rem; font-weight: 600; font-size: .9rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; font-weight: 500; line-height: 1; color: var(--navy); transition: transform .2s;
}
.faq[open] summary::after { content: "–"; color: var(--red); }
.faq p { padding: 0 1.25rem 1.1rem; font-size: .85rem; color: var(--muted); line-height: 1.6; }

/* ---------- Footer ---------- */
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 9999px;
  background: var(--navy); color: #fff; transition: background .2s;
}

/* ---------- Mobile CTA ---------- */
#mobile-cta.is-visible { transform: translateY(0); }

/* ---------- Scroll reveal (fade in / fade out) ----------
   Uses the `translate` property so hover `transform` effects keep working. */
.reveal {
  opacity: 0;
  transition-property: opacity, translate, transform, box-shadow, filter, background-color, color;
  transition-duration: .8s, .8s, .3s, .3s, .25s, .25s, .25s;
  transition-timing-function: cubic-bezier(.22, .61, .36, 1);
  transition-delay: var(--reveal-delay, 0ms), var(--reveal-delay, 0ms), 0ms, 0ms, 0ms, 0ms, 0ms;
}
.reveal-up    { translate: 0 40px; }
.reveal-left  { translate: -48px 0; }
.reveal-right { translate: 48px 0; }
.reveal.in-view { opacity: 1; translate: 0 0; }

/* ---------- Floating buttons (WhatsApp + back to top) ---------- */
.float-stack {
  position: fixed; right: 1rem; bottom: 5.75rem; z-index: 45;
  display: flex; flex-direction: column; align-items: flex-end; gap: .75rem;
}
@media (min-width: 640px) { .float-stack { right: 1.5rem; bottom: 1.5rem; } }

.whatsapp-btn {
  display: inline-flex; align-items: center; gap: .6rem;
  height: 3.5rem; padding: 0 .9rem; border-radius: 9999px;
  background: #25D366; color: #fff; font-weight: 600; font-size: .9rem;
  box-shadow: 0 10px 24px -8px rgba(37, 211, 102, .65);
  transition: transform .2s, box-shadow .2s, background .2s;
}
.whatsapp-btn:hover { background: #1EBE5A; transform: translateY(-2px); }
.whatsapp-btn svg { width: 1.75rem; height: 1.75rem; flex-shrink: 0; }
.whatsapp-btn .wa-label { display: none; padding-right: .3rem; white-space: nowrap; }
@media (min-width: 640px) { .whatsapp-btn { padding: 0 1.1rem 0 .9rem; } .whatsapp-btn .wa-label { display: inline; } }
.whatsapp-btn::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); animation: wa-pulse 2.4s infinite;
  pointer-events: none;
}
.whatsapp-btn { position: relative; }
@keyframes wa-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); }
  70%  { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.to-top {
  display: grid; place-items: center;
  width: 3rem; height: 3rem; border-radius: 9999px;
  background: var(--navy); color: #fff;
  box-shadow: 0 8px 20px -8px rgba(10, 44, 94, .6);
  opacity: 0; translate: 0 12px; pointer-events: none;
  transition: opacity .3s, translate .3s, background .2s;
}
.to-top.is-visible { opacity: 1; translate: 0 0; pointer-events: auto; }
.to-top:hover { background: var(--red); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; translate: none; }
}

/* ---------- Register popup ---------- */
.modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-start; justify-content: center; padding: 1rem; overflow-y: auto; }
.modal[hidden] { display: none; }
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(10, 44, 94, .6); backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .25s ease;
}
.modal-panel {
  position: relative; width: 100%; max-width: 32rem; margin: auto;
  background: #fff; border-radius: 1.5rem; padding: 2rem 1.25rem 1.5rem;
  box-shadow: 0 30px 70px -20px rgba(10, 44, 94, .55);
  opacity: 0; transform: translateY(24px) scale(.97);
  transition: opacity .25s ease, transform .25s ease;
}
@media (min-width: 640px) { .modal-panel { padding: 2.25rem 2.25rem 2rem; } }
.modal.is-open .modal-backdrop { opacity: 1; }
.modal.is-open .modal-panel { opacity: 1; transform: none; }
.modal-close {
  position: absolute; top: .9rem; right: .9rem; display: grid; place-items: center;
  width: 2.25rem; height: 2.25rem; border-radius: 9999px;
  background: #f1f4f9; color: var(--navy); transition: background .2s, color .2s;
}
.modal-close:hover { background: var(--red); color: #fff; }
html.modal-open { overflow: hidden; }
