/* ==========================================================
   श्री गजानन हाऊसिंग ॲन्ड लॅन्ड डेव्हलपर्स — Stylesheet
   Brand: Red #d7261e · Blue #2b2fa8 · Saffron #ef7d0f · Yellow #ffd60a
   ========================================================== */
:root {
  --red: #d7261e;
  --red-dark: #a8170f;
  --blue: #2b2fa8;
  --blue-dark: #1b1e6e;
  --saffron: #ef7d0f;
  --yellow: #ffd60a;
  --cream: #fff8e1;
  --ink: #1f1d2b;
  --muted: #5d5a6b;
  --line: #ece6d3;
  --white: #fff;
  --green: #1faa59;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(60, 30, 0, .12);
  --font: "Mukta", "Noto Sans Devanagari", system-ui, sans-serif;
  --display: "Baloo 2", "Mukta", sans-serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { margin: 0; font-family: var(--font); color: var(--ink); background: #fff; line-height: 1.65; font-size: 17px; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.25; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }

.t-red { color: var(--red); }
.t-blue { color: var(--blue); }
.t-yellow { color: var(--yellow); }

/* ---------- Buttons & pills ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 26px; border-radius: 999px; font-weight: 700; font-size: 1rem; border: 2px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; font-family: var(--font); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.15); }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dark); }
.btn--outline { border-color: var(--blue); color: var(--blue); background: rgba(255,255,255,.7); }
.btn--outline:hover { background: var(--blue); color: #fff; }
.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--green { background: var(--green); color: #fff; }
.btn--block { width: 100%; }

.pill { display: inline-block; padding: 6px 16px; border-radius: 999px; background: var(--red); color: #fff; font-weight: 600; font-size: .9rem; }
.pill--pulse { animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(215,38,30,.5); } 50% { box-shadow: 0 0 0 10px rgba(215,38,30,0); } }

.eyebrow { display: inline-block; color: var(--saffron); font-weight: 700; letter-spacing: .5px; margin-bottom: 6px; position: relative; padding-left: 28px; }
.eyebrow::before { content: ""; position: absolute; left: 0; top: 50%; width: 20px; height: 3px; background: currentColor; border-radius: 2px; }
.eyebrow--light { color: var(--yellow); }

/* ---------- Top bar ---------- */
.topbar { background: var(--red); color: #fff; font-size: .9rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; gap: 10px; }
.topbar__blessing { font-weight: 700; color: var(--yellow); }
.topbar__phone { font-weight: 600; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); transition: box-shadow .3s; }
.header.scrolled { box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.header__inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand__icon { width: 50px; height: 50px; flex-shrink: 0; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--display); font-weight: 800; color: var(--red); font-size: 1.75rem; }
.brand__tag { font-family: var(--display); font-weight: 700; color: var(--blue); font-size: .98rem; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav__link { padding: 8px 14px; border-radius: 999px; font-weight: 600; color: var(--ink); transition: background .2s, color .2s; }
.nav__link:hover, .nav__link.active { background: var(--cream); color: var(--red); }
.nav__cta { background: var(--red); color: #fff !important; }
.nav__cta:hover, .nav__cta.active { background: var(--red-dark); }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: var(--cream); border-radius: 10px; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav-toggle span { width: 22px; height: 2.5px; background: var(--red); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(circle at 25% 55%, #fff6b0 0%, #ffe14d 35%, #ffc61a 70%, #f9a908 100%); padding: 56px 0 64px; }
.hero__rays { position: absolute; inset: -50%; background: repeating-conic-gradient(from 0deg at 25% 55%, rgba(255,255,255,.22) 0deg 6deg, transparent 6deg 18deg); animation: spin 90s linear infinite; pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero__inner { position: relative; display: grid; grid-template-columns: 0.85fr 1.15fr; align-items: center; gap: 40px; }
.hero__img img { width: 100%; max-width: 420px; margin-inline: auto; border-radius: 50% 50% 24px 24px; -webkit-mask-image: radial-gradient(ellipse at center, #000 62%, transparent 72%); mask-image: radial-gradient(ellipse at center, #000 62%, transparent 72%); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.hero__title { margin: 14px 0 12px; }
.hero__title .t-red { display: block; font-size: clamp(2.8rem, 7vw, 5rem); font-weight: 800; text-shadow: 3px 3px 0 #fff, -1px -1px 0 #fff; line-height: 1.05; }
.hero__title .t-blue { display: block; font-size: clamp(1.4rem, 3.4vw, 2.3rem); font-weight: 800; text-shadow: 2px 2px 0 #fff; }
.hero__lead { font-size: 1.2rem; max-width: 560px; }
.hero__hindi { font-weight: 700; color: var(--red-dark); font-size: 1.1rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 28px; }
.hero__stats { list-style: none; padding: 0; margin: 0; display: flex; gap: 14px; flex-wrap: wrap; }
.hero__stats li { background: rgba(255,255,255,.85); border-radius: 14px; padding: 10px 18px; display: flex; flex-direction: column; min-width: 120px; box-shadow: 0 4px 14px rgba(160,90,0,.15); }
.hero__stats b { font-family: var(--display); font-size: 1.6rem; color: var(--red); line-height: 1.1; }
.hero__stats span { font-size: .9rem; color: var(--muted); font-weight: 600; }

/* ---------- Marquee ---------- */
.marquee { background: var(--blue); color: #fff; overflow: hidden; padding: 12px 0; }
.marquee__track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.marquee__track span { font-family: var(--display); font-weight: 700; font-size: 1.15rem; padding: 0 28px; position: relative; white-space: nowrap; }
.marquee__track span::after { content: "✦"; position: absolute; right: -8px; color: var(--yellow); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section--tint { background: linear-gradient(180deg, var(--cream), #fff); }
.section--dark { background: linear-gradient(135deg, var(--blue-dark), var(--blue)); color: #fff; }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section__head .eyebrow { padding-left: 0; }
.section__head .eyebrow::before { display: none; }
.section__title { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; }
.section__sub { color: var(--muted); font-size: 1.08rem; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.about__media { position: relative; }
.about__media img { width: 100%; border-radius: 24px; box-shadow: var(--shadow); border: 6px solid #fff; }
.about__badge { position: absolute; right: -16px; bottom: -20px; background: var(--red); color: #fff; padding: 14px 22px; border-radius: 18px; box-shadow: var(--shadow); text-align: center; line-height: 1.1; }
.about__badge b { display: block; font-size: .9rem; }
.about__badge span { font-family: var(--display); font-size: 2rem; font-weight: 800; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.feature { display: flex; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: border-color .2s, transform .2s; }
.feature:hover { border-color: var(--saffron); transform: translateY(-3px); }
.feature__ico { font-size: 1.6rem; width: 46px; height: 46px; flex-shrink: 0; display: grid; place-items: center; background: var(--cream); border-radius: 12px; }
.feature h4 { margin: 0; font-size: 1.08rem; color: var(--blue); }
.feature p { margin: 0; font-size: .93rem; color: var(--muted); }

/* ---------- Layouts ---------- */
.search { margin-top: 20px; }
.search input { width: min(420px, 100%); padding: 13px 20px; border-radius: 999px; border: 2px solid var(--line); font: inherit; outline: none; transition: border-color .2s; }
.search input:focus { border-color: var(--saffron); }
.layout-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 20px; }
.layout-card { position: relative; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 18px rgba(0,0,0,.06); border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column; }
.layout-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.layout-card__top { height: 108px; display: grid; place-items: center; position: relative; color: #fff; overflow: hidden; }
.layout-card__top::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px); background-size: 22px 22px; }
.layout-card__top svg { width: 46px; height: 46px; position: relative; }
.layout-card__tag { position: absolute; top: 10px; right: 10px; background: var(--yellow); color: var(--ink); font-size: .75rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.layout-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.layout-card__body h3 { margin: 0; font-size: 1.35rem; color: var(--ink); }
.layout-card__body p { margin: 0; color: var(--muted); font-size: .92rem; }
.layout-card__btn { margin-top: auto; align-self: flex-start; font-weight: 700; color: var(--red); background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-weight: 700; }
.layout-card__btn:hover { text-decoration: underline; }
.no-result { text-align: center; color: var(--muted); margin-top: 20px; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; text-align: center; padding: 30px 20px 24px; background: #fff; border-radius: var(--radius); border: 1px dashed var(--saffron); }
.step__no { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--saffron), var(--red)); color: #fff; font-family: var(--display); font-size: 1.6rem; font-weight: 800; box-shadow: 0 6px 16px rgba(215,38,30,.3); }
.step h4 { color: var(--blue); font-size: 1.2rem; }
.step p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ---------- EMI ---------- */
.emi { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.emi__text p { color: rgba(255,255,255,.85); font-size: 1.1rem; }
.emi__note { font-size: .9rem !important; color: rgba(255,255,255,.65) !important; }
.emi__card { background: #fff; color: var(--ink); border-radius: 22px; padding: 28px; box-shadow: 0 20px 50px rgba(0,0,0,.3); display: flex; flex-direction: column; gap: 16px; }
.emi__card label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .95rem; }
.emi__card input[type=number] { padding: 11px 14px; border: 2px solid var(--line); border-radius: 12px; font: inherit; outline: none; }
.emi__card input[type=number]:focus { border-color: var(--blue); }
.emi__card input[type=range] { accent-color: var(--red); width: 100%; }
.emi__result { background: var(--cream); border-radius: 14px; padding: 16px; text-align: center; display: flex; flex-direction: column; }
.emi__result span { color: var(--muted); font-weight: 600; }
.emi__result strong { font-family: var(--display); font-size: 2.3rem; color: var(--red); line-height: 1.2; }
.emi__result small { color: var(--muted); }

/* ---------- Directors ---------- */
.directors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; max-width: 960px; margin: 0 auto; }
.director { text-align: center; background: #fff; border-radius: 22px; padding: 28px 20px; box-shadow: 0 6px 24px rgba(0,0,0,.07); border-top: 5px solid var(--red); transition: transform .25s; }
.director:hover { transform: translateY(-6px); }
.director__img { width: 150px; height: 150px; margin: 0 auto 16px; border-radius: 50%; overflow: hidden; border: 5px solid var(--yellow); background: linear-gradient(135deg, var(--yellow), var(--saffron)); }
.director__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.director__img--ico { display: grid; place-items: center; font-size: 4rem; }
.director h3 { margin: 0; color: var(--blue); font-size: 1.3rem; }
.director__role { margin: 4px 0 0; color: var(--saffron); font-weight: 700; }
.director__phone { display: inline-block; margin-top: 10px; font-weight: 700; color: var(--red); }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.gallery__item { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; box-shadow: 0 6px 24px rgba(0,0,0,.08); background: #fff; }
.gallery__item img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform .5s; }
.gallery__item--wide { grid-column: 1 / -1; }
.gallery__item--wide img { aspect-ratio: auto; }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 16px 12px; color: #fff; font-weight: 700; background: linear-gradient(transparent, rgba(0,0,0,.7)); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(10,8,20,.92); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 1100px; text-align: center; }
.lightbox img { max-height: 80vh; margin: 0 auto; border-radius: 10px; }
.lightbox figcaption { color: #fff; margin-top: 12px; font-weight: 600; }
.lightbox__close, .lightbox__nav { position: absolute; background: rgba(255,255,255,.15); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 2rem; line-height: 1; cursor: pointer; }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--red); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.enquiry { background: #fff; border-radius: 22px; padding: 32px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: .95rem; }
.field input, .field select, .field textarea { padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; font: inherit; outline: none; background: #fffdf7; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--saffron); }
.form-error { color: var(--red); font-weight: 600; }
.form-hint { font-size: .85rem; color: var(--muted); margin: 12px 0 0; text-align: center; }
.contact__list { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-direction: column; gap: 16px; }
.contact__list li { display: flex; gap: 14px; }
.contact__list li > span { width: 46px; height: 46px; flex-shrink: 0; display: grid; place-items: center; background: var(--cream); border-radius: 12px; font-size: 1.3rem; }
.contact__list b { color: var(--blue); }
.contact__list p { margin: 0; color: var(--muted); }
.contact__list a { color: var(--red); font-weight: 600; }
.map { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16/10; }
.map iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.footer { background: #17153a; color: rgba(255,255,255,.75); padding-top: 56px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 36px; padding-bottom: 36px; }
.footer__brand { font-family: var(--display); font-size: 1.4rem; font-weight: 800; color: #fff; margin-bottom: 8px; }
.footer h4 { color: #fff; font-size: 1.15rem; }
.footer a { display: block; margin-bottom: 6px; }
.footer p a { display: inline; }
.footer a:hover { color: var(--yellow); }
.footer__blessing { color: var(--yellow); font-weight: 700; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); text-align: center; padding: 18px 16px; font-size: .9rem; }

/* ---------- Floating buttons ---------- */
.fab { position: fixed; right: 18px; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; z-index: 60; box-shadow: 0 8px 20px rgba(0,0,0,.25); border: 0; cursor: pointer; font-size: 1.4rem; transition: transform .2s; }
.fab:hover { transform: scale(1.08); }
.fab--wa { bottom: 90px; background: #25d366; }
.fab--wa svg { width: 30px; height: 30px; }
.fab--call { bottom: 24px; background: var(--red); color: #fff; }
.fab--top { left: 18px; right: auto; bottom: 24px; background: var(--blue); color: #fff; opacity: 0; pointer-events: none; transition: opacity .3s; }
.fab--top.show { opacity: 1; pointer-events: auto; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1024px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .directors { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .nav-toggle { display: flex; }
  .nav { position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; background: #fff; padding: 12px 16px 20px; gap: 4px; box-shadow: 0 16px 30px rgba(0,0,0,.12); transform: translateY(-120%); transition: transform .35s ease; z-index: -1; }
  .nav.open { transform: none; }
  .nav__link { padding: 12px 16px; border-radius: 10px; }
  .nav__cta { text-align: center; margin-top: 6px; }
  .hero { padding: 36px 0 48px; }
  .hero__inner, .about, .emi, .contact { grid-template-columns: 1fr; }
  .hero__inner { text-align: center; gap: 16px; }
  .hero__img img { max-width: 260px; }
  .hero__lead { margin-inline: auto; }
  .hero__actions, .hero__stats { justify-content: center; }
  .about { gap: 40px; }
  .about__badge { right: 12px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .topbar__reg { display: none; }
  .brand__icon { width: 40px; height: 40px; }
  .brand__name { font-size: 1.4rem; }
  .brand__tag { font-size: .8rem; }
  .section { padding: 60px 0; }
  .features, .steps, .directors, .gallery, .footer__grid { grid-template-columns: 1fr; }
  .hero__stats li { min-width: 0; flex: 1; padding: 8px 10px; }
  .hero__stats b { font-size: 1.3rem; }
  .layout-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .layout-card__top { height: 84px; }
  .layout-card__body { padding: 12px; }
  .layout-card__body h3 { font-size: 1.15rem; }
  .enquiry, .emi__card { padding: 22px; }
  .fab { width: 48px; height: 48px; right: 12px; }
  .fab--wa { bottom: 80px; }
  .fab--top { left: 12px; }
}

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