/* ═══════════════════════════════════════════════════════
   BASE.CSS — Roshan Real Estates Pvt. Ltd.
   Shared across every page: design tokens, reset, buttons,
   reveal animations, and the photo-carousel utility classes.
   Loaded FIRST on every page, before the page-specific CSS.
   ═══════════════════════════════════════════════════════ */

:root {
  --paper:       #F7F3EE;
  --surface:     #EDE7DD;
  --surface-2:   #E4DBCF;
  --border:      #D2CABD;
  --border-2:    #BEB4A6;
  --ink:         #18192A;
  --ink-2:       #40455E;
  --ink-3:       #7C80A0;
  --gold:        #9E6B1E;
  --gold-dim:    #7A5018;
  --gold-bright: #C08830;
  --dk:          #101320;
  --dk-surf:     #181C2E;
  --dk-brd:      #252A40;
  --dk-t1:       #ECE8DF;
  --dk-t2:       #8890AE;
  --dk-t3:       #545878;
  --dk-gold:     #C8A46D;
  --dk-gdim:     #8B6E42;
  --dk-gbright:  #D9BA8A;
  --cinzel:      'Cinzel', 'Palatino Linotype', serif;
  --jakarta:     'Plus Jakarta Sans', system-ui, sans-serif;
  --mono:        'Space Mono', 'Courier New', monospace;
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-mid:    cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; text-size-adjust: 100%; }

::-webkit-scrollbar { width: 3px; }

/* ── Buttons ── */
.btn-gold {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--jakarta); font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: #F7F3EE; background: #9E6B1E;
  padding: 16px 36px; text-decoration: none; border: none; cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-gold:hover {
  background: #C08830; transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(158,107,30,0.30);
}
.btn-ghost {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--jakarta); font-size: 0.74rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: #40455E; text-decoration: none; transition: color 0.3s ease;
}
.btn-ghost:hover { color: #9E6B1E; }
.al { display: inline-block; width: 36px; height: 1px; background: currentColor; transition: width 0.35s ease; }
.btn-ghost:hover .al { width: 54px; }

.btn-ghost-ink {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--jakarta); font-size: 0.70rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: #9E6B1E; text-decoration: none;
  border-bottom: 1px solid rgba(158,107,30,0.35);
  padding-bottom: 3px; transition: all 0.28s ease;
}
.btn-ghost-ink:hover { color: #7A5018; border-color: #7A5018; }
.btn-ghost-ink .al { background: currentColor; width: 28px; }
.btn-ghost-ink:hover .al { width: 44px; }

.btn-ghost-dk {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--jakarta); font-size: 0.66rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #C8A46D; text-decoration: none;
  border-bottom: 1px solid rgba(200,164,109,0.3);
  padding-bottom: 2px; transition: all 0.25s ease;
}
.btn-ghost-dk:hover { color: #D9BA8A; border-color: #D9BA8A; }

/* ── CTA structural (colors set per-page) ── */
.cta-content { position: relative; z-index: 1; }
.cta-glow { position: absolute; inset: 0; background: radial-gradient(ellipse 55% 60% at 50% 50%, rgba(158,107,30,0.06) 0%, transparent 70%); }
.cta-grid-bg { position: absolute; inset: 0; background-image: linear-gradient(rgba(24,25,42,0.024) 1px, transparent 1px), linear-gradient(90deg, rgba(24,25,42,0.024) 1px, transparent 1px); background-size: 60px 60px; }
.cta-h2 em { font-style: italic; color: #9E6B1E !important; }

/* ── Nav (identical on every page — grid layout centers nav-links precisely) ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 22px 64px;
  transition: padding 0.45s var(--ease-mid), background 0.45s ease, border-color 0.45s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding: 14px 64px;
  background: rgba(247,243,238,0.96);
  backdrop-filter: blur(20px);
  border-color: rgba(158,107,30,0.16);
}
.nav-logo { grid-column: 1; justify-self: start; display: flex; align-items: center; gap: 12px; text-decoration: none; z-index: 1; }
.nav-logo-text { line-height: 1.15; }
.nav-logo-mark { width: 3px; height: 30px; background: #9E6B1E; flex-shrink: 0; }
.nav-logo-main { display: block; font-family: var(--cinzel); font-size: 1.28rem; font-weight: 700; letter-spacing: 0.03em; color: #18192A; white-space: nowrap; }
.nav-logo-main .dot { color: #9E6B1E; }
.nav-logo-suffix { font-family: var(--jakarta); font-size: 0.60rem; font-weight: 600; letter-spacing: 0.05em; color: #9E6B1E; margin-left: 3px; }
.nav-logo-tagline { display: block; font-family: var(--mono); font-size: 0.58rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: #9E6B1E; margin-top: 5px; }
.nav-links { grid-column: 2; justify-self: center; display: flex; gap: 30px; list-style: none; }
.nav-links > li { position: relative; }
.nav-links a { font-family: var(--jakarta); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: #40455E; text-decoration: none; transition: color 0.25s ease; }
.nav-links a:hover, .nav-links a.active { color: #9E6B1E; }
.nav-cta { grid-column: 3; justify-self: end; font-family: var(--jakarta); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: #9E6B1E; border: 1px solid rgba(158,107,30,0.45); padding: 10px 24px; text-decoration: none; transition: all 0.3s ease; }
.nav-cta:hover { background: rgba(158,107,30,0.07); border-color: #9E6B1E; }
.hamburger { grid-column: 3; justify-self: end; display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; background: none; border: none; -webkit-appearance: none; appearance: none; }
.hamburger span { width: 22px; height: 1px; background: #18192A; display: block; transition: all 0.3s ease; }

/* ── Mobile menu — light theme matching the rest of the site, own header bar
     so the logo and close button are always visible regardless of nav state.
     z-index is higher than .nav so it fully covers the header while open. ── */
.mob-menu {
  display: none; position: fixed; inset: 0; z-index: 250;
  background: #F7F3EE;
  flex-direction: column;
}
.mob-menu.open { display: flex; }
.mob-menu-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px; border-bottom: 1px solid #D2CABD; flex-shrink: 0;
}
.mob-menu-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.mob-menu-logo-mark { width: 3px; height: 26px; background: #9E6B1E; flex-shrink: 0; }
.mob-menu-logo-main { display: block; font-family: var(--cinzel); font-size: 1.05rem; font-weight: 700; letter-spacing: 0.03em; color: #18192A; white-space: nowrap; }
.mob-menu-logo-main .dot { color: #9E6B1E; }
.mob-menu-logo-suffix { font-family: var(--jakarta); font-size: 0.52rem; font-weight: 600; letter-spacing: 0.05em; color: #9E6B1E; margin-left: 2px; }
.mob-menu-logo-tagline { display: block; font-family: var(--mono); font-size: 0.50rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: #9E6B1E; margin-top: 4px; }
.mob-close {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; flex-shrink: 0;
  background: none; border: 1px solid #D2CABD; border-radius: 50%; cursor: pointer;
  color: #18192A; transition: all 0.25s ease;
}
.mob-close:hover { border-color: #9E6B1E; color: #9E6B1E; background: rgba(158,107,30,0.06); }
.mob-menu-links { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 30px; padding: 24px; }
.mob-menu-links a { font-family: var(--cinzel); font-size: 1.7rem; font-weight: 500; letter-spacing: 0.04em; color: #18192A; text-decoration: none; transition: color 0.25s ease; }
.mob-menu-links a:hover { color: #9E6B1E; }
.mob-menu-cta { padding: 24px; border-top: 1px solid #D2CABD; flex-shrink: 0; }
.mob-menu-cta .btn-gold { display: flex; justify-content: center; width: 100%; }

/* ── Footer structural (colors set per-page) ── */
.footer-top { display: grid; grid-template-columns: 2.2fr 1fr 1fr; gap: 56px; margin-bottom: 56px; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.footer-logo-mark { width: 3px; height: 26px; background: #C8A46D; flex-shrink: 0; }
.footer-logo-main { font-family: var(--cinzel); font-size: 1.12rem; font-weight: 700; letter-spacing: 0.03em; color: #ECE8DF; }
.footer-logo-main .dot { color: #C8A46D; }
.footer-logo-sub { display: block; font-size: 0.40rem; font-weight: 500; letter-spacing: 0.28em; font-family: var(--mono); color: #C8A46D; margin-top: 3px; }
.footer-tagline { font-family: var(--jakarta); font-size: 0.84rem; font-weight: 300; font-style: italic; color: #545878; line-height: 1.7; margin-top: 18px; max-width: 280px; }
.footer-tagline strong { color: #C8A46D; font-weight: 400; font-style: normal; }
.footer-contact { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.footer-contact a { font-family: var(--jakarta); font-size: 0.82rem; font-weight: 300; color: #8890AE; text-decoration: none; transition: color 0.25s ease; display: flex; align-items: center; gap: 8px; }
.footer-contact a:hover { color: #C8A46D; }
.fc-dot { width: 3px; height: 3px; background: #8B6E42; border-radius: 50%; flex-shrink: 0; }
.foot-col-ttl { font-family: var(--mono); font-size: 0.52rem; letter-spacing: 0.3em; text-transform: uppercase; color: #C8A46D; margin-bottom: 22px; }
.foot-links { display: flex; flex-direction: column; gap: 12px; }
.foot-links a { font-family: var(--jakarta); font-size: 0.82rem; font-weight: 300; color: #8890AE; text-decoration: none; transition: color 0.25s ease; }
.foot-links a:hover { color: #ECE8DF; }
.footer-bot { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; }
.footer-copy { font-family: var(--mono); font-size: 0.54rem; letter-spacing: 0.14em; color: #545878; }
.footer-reg { font-family: var(--mono); font-size: 0.54rem; letter-spacing: 0.12em; color: #545878; }

/* ── Scroll reveal (used by every page) ── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.18s; }
.reveal-d3 { transition-delay: 0.28s; }
.reveal-d4 { transition-delay: 0.38s; }

/* ── Real-photo carousel utility classes (index.html + projects.html) ── */
.media-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.pos-a { object-position: 50% 35%; }
.pos-b { object-position: 30% 55%; transform: scale(1.07); }
.pos-c { object-position: 70% 45%; transform: scale(1.03); }

/* ── Enquiry modal (identical everywhere — light card, works on any page) ── */
.enq-overlay { position: fixed; inset: 0; z-index: 500; backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 24px; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.enq-overlay.open { opacity: 1; pointer-events: all; }
.enq-card { background: #F7F3EE; width: 100%; max-width: 460px; border-top: 3px solid #9E6B1E; padding: 40px 36px 32px; position: relative; transform: translateY(20px); transition: transform 0.35s var(--ease-out); max-height: 90vh; overflow-y: auto; }
.enq-overlay.open .enq-card { transform: translateY(0); }
.enq-close { position: absolute; top: 16px; right: 16px; background: none; border: none; cursor: pointer; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; color: #7C80A0; transition: color 0.25s ease; }
.enq-close:hover { color: #9E6B1E; }
.enq-title { font-family: var(--cinzel); font-size: 1.4rem; font-weight: 600; color: #18192A !important; margin-bottom: 8px; }
.enq-sub { font-family: var(--jakarta); font-size: 0.82rem; font-weight: 300; color: #40455E; margin-bottom: 26px; line-height: 1.6; }
.enq-field { margin-bottom: 18px; }
.enq-label { display: block; font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.16em; text-transform: uppercase; color: #7A5018; margin-bottom: 8px; }
.enq-input, .enq-textarea { width: 100%; padding: 12px 14px; border: 1px solid #D2CABD; background: #FFFFFF; font-family: var(--jakarta); font-size: 0.88rem; color: #18192A; transition: border-color 0.25s ease; }
.enq-input:focus, .enq-textarea:focus { outline: none; border-color: #9E6B1E; }
.enq-textarea { resize: vertical; min-height: 90px; }
.enq-submit { width: 100%; margin-top: 4px; justify-content: center; border: none; cursor: pointer; font-family: var(--jakarta); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: #F7F3EE; background: #9E6B1E; padding: 15px 36px; display: flex; align-items: center; transition: background 0.3s ease; }
.enq-submit:hover { background: #C08830; }
.enq-note { font-family: var(--jakarta); font-size: 0.70rem; color: #7C80A0; margin-top: 14px; text-align: center; line-height: 1.5; }

/* ── Shared mobile nav breakpoint (identical on every page) ── */
@media (max-width: 900px) {
  .nav { padding: 18px 24px; grid-template-columns: 1fr auto; }
  .nav.scrolled { padding: 13px 24px; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; grid-column: 2; }
  .nav-logo-main { font-size: 1.1rem; white-space: normal; }
  .nav-logo-suffix { font-size: 0.54rem; }
}
@media (max-width: 380px) {
  .nav-logo-tagline { font-size: 0.48rem; letter-spacing: 0.10em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
