/* ============================================================
   BlueGem — Artisanal Simplex Living
   Main Stylesheet
   ============================================================ */

/* ── Reset & Variables ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:       #0A0F1E;
  --ink-mid:   #111827;
  --blue:      #1340C4;
  --blue-b:    #2B54F0;
  --gold:      #C9A96E;
  --gold-dim:  rgba(201,169,110,0.15);
  --gold-line: rgba(201,169,110,0.30);
  --cream:     #F2EDE6;
  --cream-d:   rgba(242,237,230,0.68);
  --cream-m:   rgba(242,237,230,0.36);
  --serif:     'Cormorant Garamond', serif;
  --sans:      'Jost', sans-serif;
}

html  { scroll-behavior: smooth; font-size: 16px; }
body  { background: var(--ink); color: var(--cream); font-family: var(--sans);
        font-weight: 300; overflow-x: hidden; -webkit-font-smoothing: antialiased; }

/* ── Nav ── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px 56px;
  transition: padding .4s, background .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
#nav.stuck {
  padding: 16px 56px;
  background: rgba(10,15,30,0.96);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--gold-line);
}
.nav-logo img   { height: 38px; display: block; }
.nav-links      { display: flex; align-items: center; gap: 34px; list-style: none; }
.nav-links a    {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--cream-d); text-decoration: none; transition: color .2s;
  position: relative; padding-bottom: 3px;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1px; background: var(--gold); transition: width .3s;
}
.nav-links a:hover              { color: var(--cream); }
.nav-links a:hover::after       { width: 100%; }
.nav-cta {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink); background: var(--gold); padding: 11px 26px;
  text-decoration: none; transition: background .2s, color .2s; white-space: nowrap;
}
.nav-cta:hover { background: var(--cream); }
.burger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.burger span { display: block; width: 22px; height: 1px; background: var(--cream); transition: all .3s; }

/* ── Mobile Menu ── */
#mmenu {
  display: none; position: fixed; inset: 0; z-index: 190;
  background: rgba(10,15,30,0.97); backdrop-filter: blur(20px);
  flex-direction: column; align-items: center; justify-content: center; gap: 34px;
}
#mmenu.open { display: flex; }
#mmenu a {
  font-family: var(--serif); font-size: 30px; font-weight: 300;
  color: var(--cream); text-decoration: none; transition: color .2s; letter-spacing: .04em;
}
#mmenu a:hover         { color: var(--gold); }
#mmenu a.mmenu-enquire { color: var(--gold); }

/* ── Hero ── */
#hero {
  position: relative; height: 100svh; min-height: 680px;
  display: flex; align-items: flex-end; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('../assets/images/hero.jpg') center 20% / cover no-repeat;
  transform: scale(1.04);
  animation: hzoom 14s ease-out forwards;
}
@keyframes hzoom { to { transform: scale(1); } }
.hero-veil {
  position: absolute; inset: 0;
  background: linear-gradient(175deg, rgba(10,15,30,.18) 0%, rgba(10,15,30,.52) 55%, rgba(10,15,30,.94) 100%);
}
.hero-body {
  position: relative; z-index: 2; width: 100%;
  padding: 0 56px 70px;
  display: grid; grid-template-columns: 1fr auto; align-items: flex-end; gap: 40px;
}
.hero-pre {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 10px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 20px;
}
.hero-pre::before { content: ''; display: block; width: 36px; height: 1px; background: var(--gold); }
.hero-h1 {
  font-family: var(--serif);
  font-size: clamp(56px, 8.2vw, 110px);
  font-weight: 300; line-height: .96; letter-spacing: -.01em;
  color: #fff; margin-bottom: 26px;
}
.hero-h1 i  { font-style: italic; color: var(--gold); }
.hero-sub   {
  font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--cream-m); margin-bottom: 38px;
}
.hero-ctas  { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.btn-primary {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  background: var(--blue-b); color: #fff; padding: 15px 34px;
  text-decoration: none; transition: background .2s; font-weight: 400; cursor: pointer;
  border: none; font-family: var(--sans); display: inline-block;
}
.btn-primary:hover { background: #1e44d6; }
.btn-ghost {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  border: 1px solid var(--gold-line); color: var(--gold); padding: 14px 34px;
  text-decoration: none; transition: all .2s;
  display: inline-flex; align-items: center; gap: 10px; background: none; font-family: var(--sans); cursor: pointer;
}
.btn-ghost:hover { background: var(--gold-dim); border-color: var(--gold); }
.hero-stats { border: 1px solid var(--gold-line); display: flex; flex-direction: column; }
.hs  { padding: 18px 28px; border-bottom: 1px solid var(--gold-line); text-align: right; }
.hs:last-child  { border-bottom: none; }
.hs-n { font-family: var(--serif); font-size: 38px; font-weight: 300; color: #fff; line-height: 1; }
.hs-l { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--cream-m); margin-top: 3px; }
.hero-scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 9px; letter-spacing: .3em; text-transform: uppercase; color: var(--cream-m);
}
.hs-bar { width: 1px; height: 52px; background: linear-gradient(to bottom, var(--gold), transparent); animation: sf 2.2s ease-in-out infinite; }
@keyframes sf { 0%,100% { opacity: .2; } 60% { opacity: .85; } }

/* ── Section Framework ── */
.s     { padding: 120px 56px; }
.s-lt  { background: var(--cream); color: var(--ink); }
.s-md  { background: var(--ink-mid); }
.wrap  { max-width: 1360px; margin: 0 auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 10px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
}
.eyebrow::before { content: ''; display: block; width: 26px; height: 1px; background: var(--gold); }
.s-lt .eyebrow           { color: var(--blue); }
.s-lt .eyebrow::before   { background: var(--blue); }

.display {
  font-family: var(--serif);
  font-size: clamp(36px, 4.6vw, 66px);
  font-weight: 300; line-height: 1.07; color: #fff;
}
.s-lt .display { color: var(--ink); }
.display i     { font-style: italic; color: var(--gold); }
.s-lt .display i { color: var(--blue); }
.rule          { width: 52px; height: 1px; background: var(--gold); margin: 24px 0; opacity: .5; }
.s-lt .rule    { background: var(--blue); opacity: .35; }

/* ── About ── */
.about-g   { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; align-items: center; }
.about-p p { font-size: 15px; line-height: 1.9; color: var(--cream-d); margin-bottom: 18px; }
.about-pillars {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--gold-line); border: 1px solid var(--gold-line); margin-top: 44px;
}
.ap           { background: var(--ink); padding: 22px 20px; transition: background .25s; }
.ap:hover     { background: rgba(19,64,196,.1); }
.ap-t         { font-family: var(--serif); font-size: 18px; font-weight: 400; color: #fff; line-height: 1.2; }
.ap-s         { font-size: 11px; letter-spacing: .06em; color: var(--cream-m); margin-top: 5px; }
.about-imgs   { position: relative; padding: 0 28px 28px 0; }
.ai-main      { width: 100%; aspect-ratio: 2/3; object-fit: cover; display: block; }
.ai-sub       { position: absolute; bottom: 0; right: 0; width: 50%; aspect-ratio: 1; object-fit: cover; border: 5px solid var(--ink); }
.ai-tag       { position: absolute; top: 32px; left: -14px; background: var(--blue-b); padding: 10px 14px; writing-mode: vertical-lr; font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase; color: #fff; }

/* ── Gallery ── */
#gallery       { padding: 0; }
.gal-hd        { padding: 100px 56px 56px; }
.gal-grid      { display: grid; grid-template-columns: repeat(12,1fr); grid-template-rows: 310px 310px; gap: 3px; }
.gi            { overflow: hidden; cursor: pointer; }
.gi img        { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .65s cubic-bezier(.25,0,0,1); }
.gi:hover img  { transform: scale(1.06); }
.g1 { grid-column: 1/5;  grid-row: 1/3; }
.g2 { grid-column: 5/8;  grid-row: 1/2; }
.g3 { grid-column: 8/13; grid-row: 1/2; }
.g4 { grid-column: 5/7;  grid-row: 2/3; }
.g5 { grid-column: 7/10; grid-row: 2/3; }
.g6 { grid-column: 10/13;grid-row: 2/3; }

/* ── Floor Plans ── */
.fp-tabs  { display: flex; border-bottom: 1px solid rgba(10,15,30,.14); margin: 44px 0 50px; flex-wrap: wrap; }
.fp-tab   {
  font-size: 11px; letter-spacing: .15em; text-transform: uppercase;
  padding: 14px 28px; cursor: pointer; border: none; border-bottom: 2px solid transparent;
  background: none; color: rgba(10,15,30,.4); margin-bottom: -1px;
  transition: all .2s; font-family: var(--sans);
}
.fp-tab.on           { color: var(--blue); border-bottom-color: var(--blue); }
.fp-tab:hover:not(.on) { color: var(--ink); }
.fp-panel  { display: none; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.fp-panel.on { display: grid; }
.fp-img    { width: 100%; border: 1px solid rgba(10,15,30,.1); display: block; }
.fp-unit   { font-family: var(--serif); font-size: 56px; font-weight: 300; color: var(--ink); line-height: 1; }
.fp-sub    { font-size: 10.5px; letter-spacing: .15em; text-transform: uppercase; color: var(--blue); margin: 6px 0 26px; font-weight: 400; }
.fp-grid   { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(10,15,30,.12); margin-bottom: 28px; }
.fp-c      { padding: 16px 0; border-bottom: 1px solid rgba(10,15,30,.08); }
.fp-cl     { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: rgba(10,15,30,.42); }
.fp-cv     { font-family: var(--serif); font-size: 22px; color: var(--ink); margin-top: 3px; }
.fp-feats  { list-style: none; }
.fp-feats li { font-size: 13.5px; color: rgba(10,15,30,.65); padding: 10px 0; border-bottom: 1px solid rgba(10,15,30,.07); display: flex; align-items: center; gap: 12px; }
.fp-feats li::before { content: ''; width: 5px; height: 5px; background: var(--blue); flex-shrink: 0; transform: rotate(45deg); }

/* ── Amenities ── */
.am-intro   { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: end; margin-bottom: 64px; }
.am-intro-r { font-size: 15px; line-height: 1.85; color: var(--cream-d); }
.am-cats    { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--gold-line); }
.am-cat     { background: var(--ink-mid); padding: 48px 40px; transition: background .3s; }
.am-cat:hover { background: rgba(19,64,196,.06); }
.am-cat-icon { margin-bottom: 20px; }
.am-cat-icon svg { display: block; }
.am-cat-t   { font-family: var(--serif); font-size: 28px; font-weight: 400; color: #fff; margin-bottom: 4px; }
.am-cat-s   { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 28px; }
.am-list    { list-style: none; }
.am-list li { font-size: 14px; color: var(--cream-d); padding: 9px 0; border-bottom: 1px solid rgba(201,169,110,.1); display: flex; align-items: center; gap: 12px; }
.am-list li:last-child { border-bottom: none; }
.am-list li::before { content: ''; width: 4px; height: 4px; background: var(--gold); flex-shrink: 0; clip-path: polygon(50% 0%,100% 50%,50% 100%,0% 50%); }

/* ── Embed Sections ── */
.embed-hd     { text-align: center; margin-bottom: 48px; }
.embed-frame  { max-width: 1160px; margin: 0 auto; border: 1px solid var(--gold-line); overflow: hidden; }
.embed-frame iframe { display: block; width: 100%; }
.walk-frame   { max-width: 1000px; margin: 0 auto; aspect-ratio: 16/9; border: 1px solid var(--gold-line); overflow: hidden; }
.walk-frame iframe { width: 100%; height: 100%; display: block; }

/* ── Location ── */
.loc-g        { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; margin-top: 52px; }
.loc-map      { width: 100%; height: 480px; border: 0; display: block; }
.loc-advs     { list-style: none; margin-bottom: 36px; }
.loc-adv      { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px solid rgba(10,15,30,.09); }
.loc-adv:first-child { padding-top: 0; }
.la-icon      { width: 38px; height: 38px; background: var(--blue-b); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.la-t         { font-family: var(--serif); font-size: 19px; color: var(--ink); }
.la-s         { font-size: 12.5px; color: rgba(10,15,30,.48); margin-top: 3px; }
.loc-near     { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.ln-h         { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; font-weight: 500; }
.ln-i         { font-size: 13px; color: rgba(10,15,30,.58); padding: 3px 0; }

/* ── Enquiry ── */
.enq-g        { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; align-items: start; }
.enq-body     { font-size: 15px; line-height: 1.85; color: var(--cream-d); margin: 16px 0 34px; }
.wa           { display: inline-flex; align-items: center; gap: 12px; background: #25D366; color: #fff; padding: 14px 28px; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; transition: background .2s; font-weight: 400; }
.wa:hover     { background: #1db954; }
.enq-contacts { margin-top: 34px; display: flex; flex-direction: column; gap: 14px; }
.ec           { display: flex; align-items: flex-start; gap: 13px; font-size: 13.5px; color: var(--cream-d); }
.ec-i         { color: var(--gold); width: 18px; flex-shrink: 0; margin-top: 1px; }
.fg           { margin-bottom: 18px; }
.fg label     { display: block; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--cream-m); margin-bottom: 9px; }
.fg input, .fg select, .fg textarea {
  width: 100%; background: rgba(255,255,255,.04); border: 1px solid rgba(201,169,110,.2);
  color: var(--cream); padding: 13px 16px; font-family: var(--sans); font-size: 14px;
  font-weight: 300; outline: none; transition: border-color .2s; appearance: none;
}
.fg input::placeholder, .fg textarea::placeholder { color: rgba(242,237,230,.22); }
.fg input:focus, .fg select:focus, .fg textarea:focus { border-color: var(--blue-b); }
.fg select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23C9A96E' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
.fg select option { background: var(--ink-mid); }
.fg-row       { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fg-submit    {
  width: 100%; background: var(--blue-b); color: #fff; padding: 16px;
  font-family: var(--sans); font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  font-weight: 400; border: none; cursor: pointer; transition: background .2s; margin-top: 6px;
}
.fg-submit:hover { background: #1e44d6; }

/* ── Developer ── */
.dev-logos-row {
  display: flex; align-items: center; justify-content: center;
  gap: 80px; flex-wrap: wrap; padding-top: 60px;
  border-top: 1px solid var(--gold-line);
}
.dev-logos-row img { height: 64px; display: block; }
.dev-divider { width: 1px; height: 56px; background: var(--gold-line); }

/* ── Footer ── */
footer        { background: #060C19; padding: 40px 56px; border-top: 1px solid var(--gold-line); }
.ft           { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; padding-bottom: 28px; border-bottom: 1px solid rgba(201,169,110,.1); margin-bottom: 20px; }
.ft-logo img  { height: 32px; }
.ft-rera      { text-align: right; }
.ft-rera-l    { font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.ft-rera-n    { font-family: var(--serif); font-size: 16px; color: var(--cream); margin-top: 2px; }
.ft-rera-v    { font-size: 10px; color: var(--cream-m); margin-top: 2px; }
.ft-disc      { font-size: 10px; color: rgba(155,160,175,.42); line-height: 1.7; }

/* ── Lightbox ── */
#lb           { display: none; position: fixed; inset: 0; z-index: 999; background: rgba(6,10,20,.97); align-items: center; justify-content: center; }
#lb.open      { display: flex; }
#lb img       { max-width: 92vw; max-height: 90vh; object-fit: contain; }
#lb-x         { position: absolute; top: 24px; right: 28px; font-size: 26px; color: var(--cream-m); cursor: pointer; background: none; border: none; font-family: var(--sans); transition: color .2s; }
#lb-x:hover   { color: #fff; }

/* ── Brochure Gate Modal ── */
#brochure-modal {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(6,10,20,0.92); backdrop-filter: blur(12px);
  align-items: center; justify-content: center; padding: 24px;
}
#brochure-modal.open { display: flex; }
.bm-box {
  background: var(--ink-mid); border: 1px solid var(--gold-line);
  max-width: 480px; width: 100%; padding: 48px 40px; position: relative;
}
.bm-close {
  position: absolute; top: 18px; right: 22px; background: none; border: none;
  color: var(--cream-m); font-size: 22px; cursor: pointer; font-family: var(--sans);
  transition: color .2s;
}
.bm-close:hover { color: var(--cream); }
.bm-title       { font-family: var(--serif); font-size: 28px; font-weight: 300; color: #fff; margin-bottom: 6px; line-height: 1.1; }
.bm-title i     { font-style: italic; color: var(--gold); }
.bm-desc        { font-size: 13px; color: var(--cream-m); margin: 14px 0 28px; line-height: 1.7; }
.bm-error       { color: #ff6b6b; font-size: 12px; margin-bottom: 12px; display: none; }
.bm-note        { font-size: 11px; color: var(--cream-m); text-align: center; margin-top: 14px; line-height: 1.6; }

/* ── Scroll Reveal ── */
.rv  { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.rv.in { opacity: 1; transform: none; }
.rv1 { transition-delay: .1s; }
.rv2 { transition-delay: .2s; }
.rv3 { transition-delay: .3s; }

/* ── Responsive ── */
@media (max-width: 1060px) {
  .about-g, .fp-panel.on, .loc-g, .enq-g { grid-template-columns: 1fr; gap: 48px; }
  .ai-sub { display: none; }
  .am-cats { grid-template-columns: 1fr 1fr; }
  .am-intro { grid-template-columns: 1fr; gap: 20px; }
  .gal-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .g1,.g2,.g3,.g4,.g5,.g6 { grid-column: auto; grid-row: auto; height: 260px; }
}
@media (max-width: 720px) {
  #nav, #nav.stuck     { padding: 18px 24px; }
  .nav-links, .nav-cta { display: none; }
  .burger              { display: flex; }
  .s, .s-lt, .s-md     { padding: 80px 24px; }
  .hero-body           { padding: 0 24px 56px; grid-template-columns: 1fr; }
  .hero-stats          { display: none; }
  .gal-hd              { padding: 80px 24px 44px; }
  .am-cats             { grid-template-columns: 1fr; }
  footer               { padding: 30px 24px; }
  .ft                  { flex-direction: column; align-items: flex-start; }
  .ft-rera             { text-align: left; }
  .fp-tabs             { overflow-x: auto; }
  .fg-row              { grid-template-columns: 1fr; }
  .loc-near            { grid-template-columns: 1fr 1fr; }
  .dev-logos-row       { gap: 40px; }
  .bm-box              { padding: 36px 24px; }
}
