/*
Theme Name: Blue New Alipore (Prime Residency)
Theme URI: https://primeresidency.co.in/blue/
Author: Prime Residency
Description: Luxury single-page real-estate landing theme for BLUE, New Alipore Kolkata. Includes hero, overview, amenities, gallery slider, developer, location map, enquiry form with email delivery, popup and floating call/WhatsApp CTAs.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: godrej-blue
*/

/* ---------- tokens ---------- */

:root {
  --navy: #2b3556;
  --navy-fg: #f8f5ec;
  --gold: #e6b657;
  --gold-light: #f0d17a;
  --copper: #9d6a35;
  --bg: #fbfaf6;
  --secondary: #f3f1ea;
  --card: #ffffff;
  --fg: #0a0a0a;
  --border: #e3e0d6;
  --green-call: #25b04a;
  --green-wa: #29c85a;
  --shadow-elegant: 0 18px 50px -24px rgba(43, 53, 86, 0.35);
  --shadow-card: 0 2px 14px -6px rgba(43, 53, 86, 0.22);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Jost", system-ui, -apple-system, sans-serif;
}

/* ---------- reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 118.75%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: 80rem; margin: 0 auto; padding: 0 1.25rem; }
.wrap-narrow { max-width: 56rem; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 5rem 0; }
.section-alt { background: var(--secondary); }
.eyebrow {
  font-size: 0.75rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--copper); margin: 0;
}
.rule-gold { width: 4rem; height: 1px; background: var(--gold); }
.center { text-align: center; }
.heading-block { display: flex; flex-direction: column; align-items: center; text-align: center; }
.heading-block .rule-gold { margin-top: 1rem; }
.heading-block h2 { margin-top: 1.25rem; font-size: 2.25rem; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy); color: var(--navy-fg); }
.header-bar {
  max-width: 80rem; margin: 0 auto; padding: 0.75rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand {
  font-family: var(--font-display); font-size: 1.85rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold);
}
.brand-wrap { display: flex; flex-direction: column; }
.rera-mobile {
  margin-top: 0.15rem; font-size: 0.5rem; line-height: 1.4;
  letter-spacing: 0.08em; text-transform: uppercase; color: rgba(248, 245, 236, 0.72);
}
.partner {
  text-align: right; font-size: 0.55rem; line-height: 1.7; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(248, 245, 236, 0.72);
}
.partner strong {
  display: block; font-family: var(--font-display); font-size: 0.85rem;
  letter-spacing: 0.16em; color: var(--gold); font-weight: 600;
}
.nav-toggle { display: none; background: none; border: 0; color: inherit; cursor: pointer; padding: 0.25rem; }
.main-nav { border-top: 1px solid rgba(248, 245, 236, 0.12); }
.main-nav ul {
  max-width: 80rem; margin: 0 auto; padding: 0.75rem 1.25rem;
  display: flex; justify-content: center; align-items: center; gap: 2rem;
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
}
.main-nav a:hover { color: var(--gold); }

/* ---------- hero ---------- */
.hero { position: relative; }
.hero img { height: 78vh; min-height: 520px; width: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: rgba(43, 53, 86, 0.55); }
.hero-content {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 0 1.25rem; color: var(--navy-fg);
}
.hero-content .eyebrow { color: var(--gold); }
.hero-content h1 { margin-top: 1rem; font-size: 3.5rem; font-weight: 700; line-height: 1.05; }
.hero-sub { margin-top: 1rem; max-width: 34rem; font-size: 1.05rem; font-weight: 500; }
.hero-price {
  margin-top: 1.5rem; font-family: var(--font-display); font-size: 1.9rem; font-weight: 700;
  line-height: 1.35; color: var(--gold);
}
.hero-call { margin-top: 2.5rem; }
.hero-call p { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase; color: rgba(248,245,236,0.9); margin: 0; }
.hero-call a {
  margin-top: 0.75rem; display: inline-flex; align-items: center; gap: 0.75rem;
  font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: var(--gold);
}

/* ---------- stats ---------- */
.stats { background: var(--secondary); border-bottom: 1px solid var(--border); }
.stats-grid {
  max-width: 80rem; margin: 0 auto; padding: 2.5rem 1.25rem;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; text-align: center;
}
.stats-grid .value { font-family: var(--font-display); font-size: 2.25rem; margin: 0; }
.stats-grid .label { margin: 0.25rem 0 0; font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase; }

/* ---------- overview ---------- */
.two-col { display: grid; gap: 3rem; align-items: center; }
.overview-copy p { font-size: 0.95rem; line-height: 1.75; }
.overview-copy h2 { margin-top: 1rem; font-size: 2.25rem; }
.call-box { margin-top: 2rem; border: 1px solid var(--border); background: var(--card); padding: 1.5rem; }
.call-box p { margin: 0; font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase; }
.call-box a {
  margin-top: 0.5rem; display: inline-flex; align-items: center; gap: 0.75rem;
  font-family: var(--font-display); font-size: 1.5rem; color: var(--copper);
}
.shadow-img { box-shadow: var(--shadow-elegant); width: 100%; object-fit: cover; }

/* ---------- lists / cards ---------- */
.lead-copy { max-width: 48rem; margin: 1.5rem auto 0; text-align: center; font-size: 0.95rem; line-height: 1.75; }
.tick-grid { margin-top: 2.5rem; display: grid; gap: 1.25rem; }
.tick-item {
  display: flex; gap: 0.75rem; border: 1px solid var(--border); background: var(--card);
  padding: 1.25rem; font-size: 0.95rem; box-shadow: var(--shadow-card);
}
.tick { flex: 0 0 auto; color: var(--copper); margin-top: 0.2rem; }
.amenity-grid { margin-top: 3rem; display: grid; gap: 1.5rem; }
.amenity-card { border: 1px solid var(--border); background: var(--card); padding: 1.5rem; box-shadow: var(--shadow-card); }
.amenity-card .title { font-family: var(--font-display); font-size: 1.3rem; margin: 0; }
.amenity-card ul { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.9rem; }
.amenity-card li { display: flex; gap: 0.5rem; }

/* ---------- gallery ---------- */
.gallery { position: relative; margin-top: 3rem; }
.gallery-viewport { overflow: hidden; }
.gallery-track { display: flex; align-items: center; transition: transform 0.7s ease-out; }
.gallery-slide { flex: 0 0 78%; padding: 0 0.75rem; }
.gallery-slide img {
  height: 240px; width: 100%; object-fit: cover; border-radius: 1rem;
  box-shadow: var(--shadow-elegant); transition: all 0.7s ease; transform: scale(0.95); opacity: 0.5;
}
.gallery-slide.is-active img { transform: scale(1); opacity: 1; }
.gallery-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  border: 0; cursor: pointer; background: rgba(255,255,255,0.92); color: var(--navy);
  border-radius: 999px; width: 2.75rem; height: 2.75rem;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-card);
}
.gallery-arrow.prev { left: 0.5rem; }
.gallery-arrow.next { right: 0.5rem; }
.gallery-dots { margin-top: 2rem; display: flex; justify-content: center; gap: 0.5rem; }
.gallery-dots button {
  height: 8px; width: 8px; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(43, 53, 86, 0.25); transition: all 0.3s ease;
}
.gallery-dots button.is-active { width: 2rem; background: var(--gold); }

/* ---------- developer ---------- */
.developer-mark {
  margin-top: 1.5rem; text-align: center; font-family: var(--font-display);
  font-size: 3.5rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: #ffc94d; text-shadow: 0 2px 18px rgba(230, 182, 87, 0.35);
}
.developer-copy { margin-top: 2rem; text-align: center; font-size: 0.95rem; line-height: 1.75; }

/* ---------- location ---------- */
.map-frame { margin-top: 2.5rem; border: 1px solid var(--border); box-shadow: var(--shadow-card); overflow: hidden; }
.map-frame iframe { display: block; width: 100%; height: 420px; border: 0; }
.connectivity { margin-top: 3rem; display: grid; gap: 1.5rem; }

/* ---------- enquiry ---------- */
.enquiry { display: grid; gap: 3rem; align-items: center; }
.enquiry h2 { margin-top: 1rem; font-size: 2.4rem; line-height: 1.15; }
.btn-gold {
  margin-top: 2rem; display: inline-flex; align-items: center; gap: 0.75rem;
  border-radius: 999px; background: linear-gradient(90deg, var(--gold), var(--copper));
  padding: 1rem 2rem; font-family: var(--font-display); font-size: 1.25rem;
  color: var(--navy); box-shadow: var(--shadow-elegant); transition: transform 0.2s ease;
}
.btn-gold:hover { transform: scale(1.03); }
.form-card { border-radius: 1rem; background: var(--navy); color: var(--navy-fg); padding: 2rem; box-shadow: var(--shadow-elegant); }
.form-card label {
  display: block; font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(248,245,236,0.85); margin-bottom: 0.5rem;
}
.form-card .req { color: #ff8a7a; }
.form-card input, .form-card textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(248,245,236,0.3);
  color: var(--navy-fg); font-family: inherit; font-size: 1rem; padding: 0.5rem 0; outline: none;
}
.form-card input:focus, .form-card textarea:focus { border-bottom-color: var(--gold); }
.form-card .field { margin-bottom: 1.5rem; }
.form-card button[type="submit"] {
  width: 100%; border: 0; cursor: pointer; border-radius: 999px; background: var(--gold);
  color: var(--navy); font-family: var(--font-sans); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; padding: 1rem 1.5rem; transition: transform 0.2s ease;
}
.form-card button[type="submit"]:hover { transform: scale(1.02); }
.form-note { margin-top: 1rem; font-size: 0.7rem; color: rgba(248,245,236,0.6); text-align: center; }
.form-success { text-align: center; padding: 2.5rem 0; }
.form-success h3 { font-family: var(--font-display); font-size: 1.6rem; color: var(--gold); margin-top: 1rem; }
.form-success p { font-size: 0.9rem; color: rgba(248,245,236,0.75); }
.form-error { background: rgba(255, 120, 100, 0.15); border: 1px solid rgba(255,120,100,0.5); padding: 0.75rem 1rem; border-radius: 0.5rem; font-size: 0.8rem; margin-bottom: 1.25rem; }
.hp { position: absolute; left: -9999px; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: var(--navy-fg); }
.footer-top { display: flex; flex-direction: column; gap: 2.5rem; padding: 3.5rem 0 0; }
.footer-brand { font-family: var(--font-display); font-size: 1.85rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.footer-muted { color: rgba(248,245,236,0.7); font-size: 0.9rem; margin-top: 0.5rem; }
.footer-partner { font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(248,245,236,0.7); line-height: 1.8; }
.footer-partner strong { display: block; font-family: var(--font-display); font-size: 1rem; letter-spacing: 0.16em; color: var(--gold); }
.footer-call p { margin: 0; font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(248,245,236,0.7); }
.footer-call a { margin-top: 0.75rem; display: inline-flex; align-items: center; gap: 0.75rem; font-family: var(--font-display); font-size: 1.8rem; color: var(--gold); }
.disclaimer { margin-top: 2.5rem; border-top: 1px solid rgba(248,245,236,0.15); padding: 2rem 0 3rem; font-size: 0.75rem; line-height: 1.7; color: rgba(248,245,236,0.62); }
.disclaimer .label { font-family: var(--font-display); font-size: 1rem; color: var(--gold); margin-bottom: 0.5rem; }
.disclaimer a { text-decoration: underline; }

/* ---------- floating cta ---------- */
.floating-cta { position: fixed; right: 1rem; bottom: 1rem; z-index: 60; display: flex; flex-direction: column; gap: 0.75rem; }
.floating-cta a {
  height: 3.25rem; width: 3.25rem; border-radius: 999px; display: flex; align-items: center;
  justify-content: center; color: #fff; box-shadow: var(--shadow-elegant); transition: transform 0.2s ease;
}
.floating-cta a:hover { transform: scale(1.1); }
.cta-call { background: var(--green-call); }
.cta-wa { background: var(--green-wa); }

/* ---------- popup ---------- */
.gb-popup { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 1.5rem 1rem; }
.gb-popup.is-open { display: flex; }
.gb-popup-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.75); backdrop-filter: blur(4px); }
.gb-popup-card { position: relative; z-index: 2; width: 100%; max-width: 460px; }
.gb-popup-close {
  position: absolute; top: -0.75rem; right: -0.75rem; z-index: 3; height: 2.5rem; width: 2.5rem;
  border: 0; cursor: pointer; border-radius: 999px; background: var(--gold); color: var(--navy);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}
.gb-popup-inner { overflow: hidden; border-radius: 0.75rem; border: 1px solid rgba(230,182,87,0.4); background: var(--navy); box-shadow: 0 30px 70px rgba(0,0,0,0.5); }
.gb-popup-inner .media { position: relative; }
.gb-popup-inner .media img { height: 11rem; width: 100%; object-fit: cover; }
.gb-popup-inner .media span { position: absolute; inset: 0; background: linear-gradient(to top, var(--navy), rgba(43,53,86,0.35), transparent); }
.gb-popup-body { padding: 0.5rem 1.75rem 1.75rem; text-align: center; color: var(--navy-fg); }
.gb-popup-body .mark { font-family: var(--font-display); font-size: 2.25rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.gb-popup-body .divider { margin: 1rem auto 0; height: 1px; width: 3.5rem; background: rgba(230,182,87,0.7); }
.gb-popup-body .lead { margin-top: 1rem; font-size: 0.8rem; color: rgba(248,245,236,0.85); }
.gb-popup-body .call {
  margin-top: 1.5rem; display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: 999px; background: var(--gold); color: var(--navy); padding: 0.85rem 1.5rem;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
}

/* ---------- responsive ---------- */
@media (max-width: 767px) {
  html { font-size: 106%; }
  .partner { display: none; }
  .brand { color: var(--gold-light); }
  .nav-toggle { display: block; }
  .main-nav { display: none; }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav ul li { border-bottom: 1px solid rgba(248,245,236,0.1); }
  .main-nav ul li:last-child { border-bottom: 0; }
  .main-nav ul a { display: block; padding: 0.75rem 0; }
  .gallery-slide { flex: 0 0 86%; }
}

@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .two-col, .enquiry { grid-template-columns: 1fr 1fr; }
  .tick-grid, .connectivity { grid-template-columns: repeat(2, 1fr); }
  .amenity-grid { grid-template-columns: repeat(2, 1fr); }
  .heading-block h2 { font-size: 2.6rem; }
  .hero-content h1 { font-size: 4.5rem; }
  .hero-sub { font-size: 1rem; }
  .hero-price { font-size: 2rem; }
  .hero-call a { font-size: 3rem; }
  .developer-mark { font-size: 5.5rem; }
  .footer-top { flex-direction: row; align-items: flex-start; justify-content: space-between; }
  .footer-call { text-align: right; }
  .footer-call a { justify-content: flex-end; }
  .gallery-slide img { height: 520px; }
  .gallery-arrow.prev { left: 1.5rem; }
  .gallery-arrow.next { right: 1.5rem; }
  .gb-popup-inner .media img { height: 13rem; }
}

@media (min-width: 1024px) {
  .amenity-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- gallery lightbox ---------- */
.gb-lightbox { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center; background: rgba(9,20,38,0.95); padding: 0.75rem; }
.gb-lightbox.is-open { display: flex; }
.gb-lightbox img { max-height: 88vh; max-width: 100%; object-fit: contain; border-radius: 12px; }
.gb-lightbox button { position: absolute; border: 0; cursor: pointer; background: rgba(248,245,236,0.92); color: #0b1a30; border-radius: 999px; width: 44px; height: 44px; font-size: 1.25rem; line-height: 1; display: grid; place-items: center; }
.gb-lb-close { top: 1rem; right: 1rem; }
.gb-lb-prev { top: 50%; left: 0.75rem; transform: translateY(-50%); }
.gb-lb-next { top: 50%; right: 0.75rem; transform: translateY(-50%); }
@media (min-width: 768px) { .gb-lb-prev { left: 1.5rem; } .gb-lb-next { right: 1.5rem; } }
