/* ================================================================
   KLR PROJECTS – SHARED DESIGN SYSTEM v3.1
   Fonts: Playfair Display (display) + Inter (body)
   Colors: Deep Forest #1a3e2f + Warm Gold #c8a87b
   Features: Glassmorphism, responsive, accessible, performance-optimized
   ================================================================ */

/* ── CSS VARIABLES ── */
:root {
  --primary:        #1a3e2f;
  --primary-light:  #2a5e4a;
  --primary-dark:   #0d2518;
  --secondary:      #c8a87b;
  --secondary-light:#e5d5b5;
  --secondary-dark: #a8844f;
  --bg-light:       #f4f1ec;
  --bg-white:       #ffffff;
  --text-dark:      #1a2626;
  --text-muted:     #56706e;
  --text-light:     #8a9e9c;
  --border:         rgba(200,168,123,0.22);
  --border-strong:  rgba(200,168,123,0.45);
  --glass-bg:       rgba(255,255,255,0.72);
  --glass-border:   rgba(255,255,255,0.5);
  --shadow-xs:      0 2px 8px rgba(26,62,47,0.06);
  --shadow-sm:      0 8px 24px rgba(26,62,47,0.08);
  --shadow-md:      0 16px 40px rgba(26,62,47,0.12);
  --shadow-lg:      0 32px 64px rgba(26,62,47,0.16);
  --radius-sm:      10px;
  --radius-md:      18px;
  --radius-lg:      24px;
  --radius-xl:      36px;
  --transition:     transform 0.35s cubic-bezier(0.25,0.46,0.45,0.94), opacity 0.35s ease, background 0.3s ease, border-color 0.2s ease, box-shadow 0.3s ease;
  --font-display:   'Playfair Display', Georgia, serif;
  --font-body:      'Inter', system-ui, sans-serif;
  --nav-height:     70px;
}

/* ── RESET & BASE OPTIMIZATIONS ── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

html {
  scroll-behavior: smooth;
  font-size: clamp(15px, 1vw, 16px);
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

button {
  font-family: var(--font-body);
  background: none;
  border: none;
  cursor: pointer;
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

/* ── ACCESSIBILITY: FOCUS STYLES ── */
:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── CUSTOM SCROLLBAR (premium touch) ── */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-light);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-dark);
}

/* ── LAYOUT ── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
  width: 100%;
}

/* ── TYPOGRAPHY ── */
.section-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.8vw, 2.8rem);
  font-weight: 600;
  color: var(--primary);
  line-height: 1.15;
}

.gold-rule {
  display: block;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary), var(--secondary-dark));
  border-radius: 3px;
  margin-top: 14px;
}

/* ── NAVBAR – GLASS (performance optimized) ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(244,241,236,0.88);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid rgba(200,168,123,0.18);
  box-shadow: 0 1px 24px rgba(26,62,47,0.07);
  transition: var(--transition);
}

.nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: opacity 0.2s;
}
.nav-logo:hover { opacity: 0.82; }
.nav-logo img { height: 32px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-links a {
  font-size: 0.855rem;
  font-weight: 500;
  color: var(--text-dark);
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.nav-links a:hover {
  background: rgba(26,62,47,0.07);
  color: var(--primary);
}

.nav-links a.active {
  background: rgba(26,62,47,0.08);
  color: var(--primary);
  font-weight: 600;
}

.nav-cta {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  background: var(--primary) !important;
  color: white !important;
  padding: 9px 20px !important;
  border-radius: 60px !important;
  font-weight: 600 !important;
  margin-left: 8px;
  box-shadow: 0 4px 16px rgba(26,62,47,0.22);
  transition: var(--transition) !important;
}
.nav-cta:hover {
  background: var(--primary-light) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(26,62,47,0.28) !important;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 9px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}

/* Mobile Nav */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 16px 24px 28px;
  z-index: 999;
  max-height: calc(100vh - var(--nav-height));
  overflow-y: auto;
}
.nav-mobile.open { display: block; }

.nav-mobile ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-mobile ul a {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-mobile ul a:hover,
.nav-mobile ul a.active {
  background: rgba(26,62,47,0.07);
  color: var(--primary);
  font-weight: 600;
}

.nav-cta-mobile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 16px;
  background: var(--primary);
  color: white;
  padding: 14px 20px;
  border-radius: 60px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}
.nav-cta-mobile:hover { background: var(--primary-light); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 60px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary   { background:var(--primary); color:white; border-color:var(--primary); }
.btn-primary:hover { background:var(--primary-dark); border-color:var(--primary-dark); transform:translateY(-3px); box-shadow:0 12px 28px rgba(26,62,47,0.25); }

.btn-secondary { background:var(--secondary); color:var(--primary); border-color:var(--secondary); }
.btn-secondary:hover { background:var(--secondary-dark); color:white; transform:translateY(-3px); box-shadow:0 12px 28px rgba(200,168,123,0.3); }

.btn-outline   { background:transparent; color:var(--primary); border-color:var(--primary); }
.btn-outline:hover { background:var(--primary); color:white; transform:translateY(-3px); }

.btn-white     { background:white; color:var(--primary); border-color:white; }
.btn-white:hover { background:var(--secondary-light); transform:translateY(-3px); box-shadow:0 12px 28px rgba(0,0,0,0.15); }

.btn-lg { padding:15px 36px; font-size:0.95rem; }
.btn-sm { padding:9px 20px; font-size:0.8rem; }

/* ── BADGES ── */
.badge {
  display:inline-flex; align-items:center; gap:5px;
  padding:4px 13px; border-radius:40px;
  font-size:0.7rem; font-weight:700; letter-spacing:0.06em; text-transform:uppercase;
}
.badge-gold      { background:rgba(200,168,123,0.15); color:var(--secondary-dark); border:1px solid var(--secondary); }
.badge-forest    { background:var(--primary); color:white; }
.badge-completed { background:#e8f3ef; color:#1a5a4a; border:1px solid rgba(26,90,74,0.2); }
.badge-ongoing   { background:#fff4e3; color:#8a6e4b; border:1px solid rgba(200,168,123,0.3); }
.badge-coming    { background:#edf2f7; color:#4a6080; border:1px solid rgba(74,96,128,0.2); }

/* ── GLASS CARDS ── */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.6);
  transition: var(--transition);
}
.glass-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.6);
  border-color: rgba(200,168,123,0.35);
}

/* ── PAGE HERO ── */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}
.page-hero::before {
  content:'';
  position:absolute; inset:0;
  background: radial-gradient(ellipse at 80% 50%, rgba(200,168,123,0.18) 0%, transparent 60%);
}
.page-hero::after {
  content:'';
  position:absolute;
  bottom:0; left:0; right:0; height:1px;
  background: linear-gradient(90deg, transparent, var(--secondary), transparent);
  opacity:0.4;
}
.page-hero .container { position:relative; z-index:1; }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 600;
  color: white;
  line-height: 1.1;
  margin-bottom: 14px;
}
.page-hero p {
  color: rgba(255,255,255,0.78);
  font-size: clamp(0.95rem, 2.2vw, 1.1rem);
  max-width: 560px;
}
.page-hero .badge { margin-bottom: 18px; }

/* ── SEO SECTION ── */
.seo-section {
  padding: 48px 0;
  background: var(--bg-white);
  border-top: 1px solid var(--border);
}
.seo-section h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
}
.seo-section p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.85;
  max-width: 1200px;
}
.seo-section a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: var(--secondary);
}

/* ── CTA SECTION ── */
.cta-section {
  background: linear-gradient(130deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 80px 0;
  text-align: center;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  margin-top: 0;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content:''; position:absolute; inset:0;
  background: radial-gradient(ellipse at 70% 50%, rgba(200,168,123,0.14) 0%, transparent 60%);
}
.cta-section .container { position:relative; z-index:1; }
.cta-section .section-title { color:white; }
.cta-section .section-eyebrow { color:rgba(200,168,123,0.85); }
.cta-section p { color:rgba(255,255,255,0.8); font-size:clamp(1rem,2.4vw,1.12rem); max-width:540px; margin:16px auto 36px; }
.cta-buttons { display:flex; justify-content:center; gap:16px; flex-wrap:wrap; }

/* ── FOOTER (improved contrast) ── */
.footer {
  background: #111c19;
  color: #c0d4d1;
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.1fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-logo { height: 34px; width: auto; margin-bottom: 16px; }
.footer-brand-desc { color: #8fb3af; font-size: 0.855rem; line-height: 1.75; }
.footer-tagline { margin-top: 14px; font-size: 0.75rem; color: var(--secondary); font-weight: 500; line-height: 1.6; }
.footer-col h4 {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--secondary); margin-bottom: 18px;
}
.footer-col ul { display:flex; flex-direction:column; gap:10px; }
.footer-col ul a { font-size:0.855rem; color:#8fb3af; transition:color 0.2s; }
.footer-col ul a:hover { color:var(--secondary); }
.footer-contact-item {
  display:flex; align-items:flex-start; gap:10px;
  margin-bottom:12px; font-size:0.855rem; color:#8fb3af;
}
.footer-contact-item i { color:var(--secondary); margin-top:3px; width:16px; flex-shrink:0; }
.footer-contact-item a { color:#8fb3af; transition:color 0.2s; }
.footer-contact-item a:hover { color:var(--secondary); }
.footer-legal {
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.78rem;
  color: #5a7070;
  line-height: 1.75;
  text-align: center;
}
.footer-legal p { margin: 4px 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 20px 0;
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px;
}
.footer-bottom p { font-size: 0.78rem; color: #4a6468; }
.footer-bottom a { color:#4a6468; transition:color 0.2s; }
.footer-bottom a:hover { color:var(--secondary); }

/* ── RERA STRIP ── */
.rera-strip {
  background: rgba(200,168,123,0.09);
  border-left: 4px solid var(--secondary);
  padding: 13px 22px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  display: inline-flex; align-items:center; gap:10px;
  font-size: 0.875rem; font-weight:600; color: var(--primary);
}
.rera-strip i { color: var(--secondary); }

/* ── WHATSAPP FAB ── */
.wa-fab {
  position: fixed;
  bottom: 76px; right: 24px;
  width: 52px; height: 52px;
  background: #25D366; color: white;
  border-radius: 50%;
  display: flex; align-items:center; justify-content:center;
  font-size: 1.5rem; z-index: 500;
  box-shadow: 0 6px 20px rgba(37,211,102,0.38);
  transition: var(--transition);
}
.wa-fab:hover { background:#128C7E; transform:translateY(-3px) scale(1.05); }

/* ── SCROLL TOP ── */
.scroll-top {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 44px; height: 44px;
  background: var(--primary); color: white;
  border: none; border-radius: 50%;
  display: none; align-items:center; justify-content:center;
  cursor: pointer; font-size: 0.9rem;
  z-index: 500; transition: var(--transition);
  box-shadow: var(--shadow-md);
}
.scroll-top.visible { display:flex; }
.scroll-top:hover { background:var(--secondary); transform:translateY(-3px); }

/* ── ANIMATIONS (performance optimized) ── */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(26px); }
  to   { opacity:1; transform:translateY(0); }
}
.anim-fade-up {
  opacity:0;
  transform: translateY(22px);
  will-change: transform, opacity;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.anim-fade-up.visible {
  opacity:1;
  transform: translateY(0);
}
.anim-delay-1.visible { transition-delay:0.1s; }
.anim-delay-2.visible { transition-delay:0.2s; }
.anim-delay-3.visible { transition-delay:0.3s; }
.anim-delay-4.visible { transition-delay:0.4s; }
.anim-delay-5.visible { transition-delay:0.5s; }

/* ── PREFERS REDUCED MOTION (accessibility) ── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .anim-fade-up {
    opacity: 1;
    transform: translateY(0);
    transition: none;
  }
}

/* ── UTILITIES ── */
.text-center { text-align:center; }
.visually-hidden { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }

/* ── RESPONSIVE ── */
@media (max-width:1100px) {
  .footer-grid { grid-template-columns:1fr 1fr; gap:32px; }
}

@media (max-width:768px) {
  :root {
    --nav-height: 60px;
  }
  .container { padding:0 18px; }
  .nav-links { display:none; }
  .nav-toggle { display:flex; }
  .navbar {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  .footer-grid { grid-template-columns:1fr 1fr; gap:26px; }
  .cta-section { padding:60px 0; border-radius:var(--radius-lg) var(--radius-lg) 0 0; }
  .page-hero { padding:48px 0 40px; border-radius:0 0 var(--radius-lg) var(--radius-lg); }
  .btn { font-size: 0.85rem; }
}

@media (max-width:480px) {
  .container { padding:0 14px; }
  .footer-grid { grid-template-columns:1fr; gap:22px; }
  .cta-buttons { flex-direction:column; align-items:stretch; }
  .cta-buttons .btn { width:100%; justify-content:center; }
  .footer-bottom { flex-direction:column; text-align:center; }
  .btn-lg { padding:14px 28px; font-size:0.9rem; }
  .btn { font-size: 0.9rem; }
  .nav-cta-mobile { font-size: 0.9rem; }
}