/* ============================================================
   Karyan Group – Main Stylesheet
   Design: Charcoal Black (#1a1a1a) × Copper (#b5651d) × Warm White
   Font: Playfair Display (display) + Inter (body)
   ============================================================ */

:root {
  --navy:        #1a1a1a;
  --navy-light:  #2a2a2a;
  --navy-dark:   #111111;
  --gold:        #b5651d;
  --gold-light:  #d4774a;
  --gold-dark:   #8b4513;
  --white:       #ffffff;
  --cream:       #f5f3f0;
  --text:        #1a1a1a;
  --text-muted:  #6b7280;
  --border:      #e5e7eb;
  --success:     #15803d;
  --error:       #dc2626;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --radius:  6px;
  --radius-lg: 12px;
  --shadow:  0 4px 24px rgba(0,0,0,.10);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.18);

  --container: 1200px;
  --nav-h: 72px;
}

/* ── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--text); background: var(--cream); line-height: 1.6; }
img  { max-width: 100%; display: block; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Utilities ─────────────────────────────────────────────────────────────── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.text-gold  { color: var(--gold); }
.text-navy  { color: var(--navy); }
.w-full     { width: 100%; }

/* ── Buttons ─────────────────────────────────────────────────────────────────  */
.btn-gold {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--gold); color: var(--navy-dark);
  font-family: var(--font-body); font-size: 15px; font-weight: 700;
  padding: 14px 28px; border-radius: var(--radius);
  border: 2px solid var(--gold);
  transition: background .2s, color .2s, transform .15s;
  line-height: 1;
}
.btn-gold:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-gold:active { transform: none; }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--gold);
  font-size: 15px; font-weight: 600;
  padding: 13px 28px; border-radius: var(--radius);
  border: 2px solid var(--gold);
  transition: background .2s, color .2s;
}
.btn-outline:hover { background: var(--gold); color: var(--navy-dark); }

.btn-outline-light {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: transparent; color: var(--white);
  font-size: 14px; font-weight: 600;
  padding: 11px 20px; border-radius: var(--radius);
  border: 2px solid rgba(255,255,255,.5);
  transition: background .2s;
}
.btn-outline-light:hover { background: rgba(255,255,255,.12); }

.btn-full { width: 100%; }

/* ── Navigation ─────────────────────────────────────────────────────────────── */
.site-nav {
  position: sticky; top: 0; z-index: 900;
  background: var(--navy-dark);
  border-bottom: 1px solid rgba(181,101,29,.25);
  height: var(--nav-h);
}
.nav-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; gap: 32px;
}
.nav-brand { flex: 1; }
.brand-name {
  font-family: var(--font-display); font-size: 20px;
  color: var(--gold); display: block; line-height: 1.2;
}
.brand-tag { font-size: 11px; color: rgba(255,255,255,.5); letter-spacing: .05em; text-transform: uppercase; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: rgba(255,255,255,.8); font-size: 14px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--gold); }
.cta-nav { padding: 10px 22px; font-size: 14px; white-space: nowrap; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: .3s; }
/* nav-mobile: hidden at all times on desktop; JS removes [hidden] on mobile */
.nav-mobile { display: none; flex-direction: column; gap: 4px; padding: 12px 24px 16px; background: var(--navy); }
.nav-mobile a { color: rgba(255,255,255,.8); padding: 10px 0; font-size: 15px; border-bottom: 1px solid rgba(255,255,255,.06); }
.nav-mobile .btn-gold { margin-top: 12px; }

/* ── Hero ───────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, #2d2d2d 100%);
  display: flex; align-items: center;
  overflow: hidden;
  padding: 80px 0;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 70% 50%, rgba(181,101,29,.07) 0%, transparent 70%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23b5651d' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 48px;
}
.hero-content { flex: 1; min-width: 0; }
.hero-eyebrow {
  display: inline-block;
  background: rgba(181,101,29,.15); color: var(--gold);
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 20px;
  border: 1px solid rgba(181,101,29,.3);
  margin-bottom: 24px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 68px);
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero h1 .accent { color: var(--gold); }
.hero-sub {
  font-size: 18px; color: rgba(255,255,255,.75);
  max-width: 560px; margin-bottom: 32px; line-height: 1.7;
}
.hero-pills {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-bottom: 40px;
}
.hero-pill {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: var(--white); font-size: 13px; font-weight: 500;
  padding: 8px 16px; border-radius: 20px;
}
.hero-pill strong { color: var(--gold); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-price-badge {
  flex-shrink: 0; width: 275px;
  background: rgba(181,101,29,.12);
  border: 1px solid rgba(181,101,29,.3);
  border-radius: var(--radius-lg); padding: 28px 24px;
  text-align: center;
}
.price-label { font-size: 12px; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .08em; }
.price-value { font-family: var(--font-display); font-size: 34px; color: var(--gold); line-height: 1.1; margin: 8px 0 4px; }
.price-note  { font-size: 12px; color: rgba(255,255,255,.4); }
.price-divider { border: none; border-top: 1px solid rgba(255,255,255,.1); margin: 16px 0; }
.price-strike { font-size: 13px; color: rgba(255,255,255,.35); text-decoration: line-through; }

/* ── Section shared ──────────────────────────────────────────────────────────── */
.section { padding: 96px 0; }
.section-alt { background: var(--white); }
.section-dark { background: var(--navy); }

.section-label {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15; margin-bottom: 16px;
}
.section-title.light { color: var(--white); }
.section-body { font-size: 16px; color: var(--text-muted); max-width: 600px; line-height: 1.8; }
.section-body.light { color: rgba(255,255,255,.65); }
.section-header { margin-bottom: 56px; }
.section-header.centered { text-align: center; }
.section-header.centered .section-body { margin: 0 auto; }

/* ── Stats bar ──────────────────────────────────────────────────────────────── */
.stats-bar {
  background: var(--navy-dark); padding: 32px 0;
  border-top: 1px solid rgba(181,101,29,.15);
  border-bottom: 1px solid rgba(181,101,29,.15);
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: rgba(255,255,255,.08);
}
.stat-item {
  background: var(--navy-dark); padding: 28px 24px; text-align: center;
}
.stat-value {
  font-family: var(--font-display); font-size: 36px; color: var(--gold);
  line-height: 1; margin-bottom: 6px;
}
.stat-label { font-size: 13px; color: rgba(255,255,255,.55); font-weight: 500; }

/* ── Unit cards ──────────────────────────────────────────────────────────────── */
.units-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.unit-card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--border); overflow: hidden;
  transition: box-shadow .25s, transform .25s;
}
.unit-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.unit-card-img {
  height: 200px; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 18px; color: var(--gold);
  position: relative;
}
.unit-tag {
  position: absolute; top: 16px; right: 16px;
  background: var(--gold); color: var(--navy-dark);
  font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: .06em;
}
.unit-card-body { padding: 24px; }
.unit-type { font-family: var(--font-display); font-size: 22px; color: var(--navy); margin-bottom: 4px; }
.unit-size { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; }
.unit-price { font-size: 18px; font-weight: 700; color: var(--gold); margin-bottom: 20px; }
.unit-price span { font-size: 13px; font-weight: 400; color: var(--text-muted); }
.unit-card .btn-outline { width: 100%; font-size: 14px; padding: 11px; }

/* ── Amenities ────────────────────────────────────────────────────────────────── */
.amenities-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.amenity-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg); padding: 28px 20px;
  text-align: center; transition: background .2s, border-color .2s;
}
.amenity-card:hover {
  background: rgba(181,101,29,.08);
  border-color: rgba(181,101,29,.3);
}
.amenity-icon {
  width: 52px; height: 52px; margin: 0 auto 16px;
  background: rgba(181,101,29,.1); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.amenity-icon svg { color: var(--gold); }
.amenity-name { font-size: 14px; color: rgba(255,255,255,.85); font-weight: 500; }

/* ── Highlights / Features ────────────────────────────────────────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.feature-item { display: flex; gap: 20px; align-items: flex-start; }
.feature-num {
  flex-shrink: 0; width: 48px; height: 48px;
  background: var(--gold); color: var(--navy-dark);
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 18px; font-weight: 900;
}
.feature-content h4 { font-size: 17px; margin-bottom: 6px; }
.feature-content p  { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ── Payment plan ──────────────────────────────────────────────────────────────── */
.payment-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.payment-table { width: 100%; border-collapse: collapse; }
.payment-table th,
.payment-table td { padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,.08); text-align: left; }
.payment-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.4); }
.payment-table td { color: rgba(255,255,255,.85); font-size: 15px; }
.payment-table td:last-child { color: var(--gold); font-weight: 600; }
.eoi-box {
  background: rgba(181,101,29,.1); border: 1px solid rgba(181,101,29,.25);
  border-radius: var(--radius-lg); padding: 36px 32px; text-align: center;
}
.eoi-box h3 { font-family: var(--font-display); font-size: 26px; color: var(--white); margin-bottom: 12px; }
.eoi-amount { font-family: var(--font-display); font-size: 48px; color: var(--gold); line-height: 1; margin: 16px 0 8px; }
.eoi-note { font-size: 13px; color: rgba(255,255,255,.5); margin-bottom: 28px; }
.eoi-steps { text-align: left; margin-bottom: 28px; }
.eoi-steps li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 14px; color: rgba(255,255,255,.7); }
.eoi-steps li::before { content: '✓'; color: var(--gold); font-weight: 700; flex-shrink: 0; }

/* ── Location ──────────────────────────────────────────────────────────────────── */
.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.location-points { margin-top: 32px; }
.location-point { display: flex; gap: 16px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--border); }
.loc-icon { flex-shrink: 0; color: var(--gold); margin-top: 2px; }
.loc-text h5 { font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.loc-text p  { font-size: 13px; color: var(--text-muted); }
.map-placeholder {
  height: 380px; background: var(--navy);
  border-radius: var(--radius-lg); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
  color: rgba(255,255,255,.4); font-size: 14px;
  border: 1px solid rgba(255,255,255,.08);
}
.map-placeholder svg { color: var(--gold); opacity: .5; }

/* ── CTA banner ────────────────────────────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  padding: 80px 0; text-align: center;
  border-top: 1px solid rgba(181,101,29,.15);
}
.cta-banner h2 {
  font-family: var(--font-display); font-size: clamp(28px, 4vw, 44px);
  color: var(--white); margin-bottom: 16px;
}
.cta-banner p { font-size: 17px; color: rgba(255,255,255,.65); margin-bottom: 36px; }
.cta-banner-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Footer ────────────────────────────────────────────────────────────────────── */
.site-footer { background: var(--navy-dark); padding: 64px 0 0; border-top: 1px solid rgba(181,101,29,.15); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; padding-bottom: 48px; }
.footer-brand { font-family: var(--font-display); font-size: 22px; color: var(--gold); margin-bottom: 16px; }
.footer-col p { font-size: 14px; color: rgba(255,255,255,.5); line-height: 1.8; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.35); margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { font-size: 14px; color: rgba(255,255,255,.6); transition: color .2s; }
.footer-col ul a:hover { color: var(--gold); }
.footer-col a { color: rgba(255,255,255,.6); transition: color .2s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 24px 0; text-align: center;
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,.3); margin-bottom: 6px; }
.footer-bottom a { color: rgba(255,255,255,.4); }
.footer-disclaimer { font-size: 11px !important; max-width: 700px; margin: 8px auto 0 !important; line-height: 1.6; }

/* ── Modal ─────────────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(10,10,10,.85); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.modal-overlay[hidden] { display: none; }
.modal-box {
  background: var(--white); border-radius: var(--radius-lg);
  width: 100%; max-width: 460px; position: relative;
  box-shadow: var(--shadow-lg); max-height: 90vh; overflow-y: auto;
}
.modal-close {
  position: absolute; top: 0; right: 0;
  background: var(--navy-dark); color: var(--white);
  width: 36px; height: 36px; border-radius: 0 var(--radius-lg) 0 var(--radius);
  font-size: 22px; display: flex; align-items: center; justify-content: center;
  transition: background .2s; z-index: 2;
}
.modal-close:hover { background: var(--navy); }
.modal-header {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  padding: 32px 32px 24px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.modal-badge {
  display: inline-block; background: var(--gold); color: var(--navy-dark);
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px;
}
.modal-header h2 { font-family: var(--font-display); font-size: 26px; color: var(--white); margin-bottom: 6px; }
.modal-header p  { font-size: 14px; color: rgba(255,255,255,.65); }
.modal-header strong { color: var(--gold); }
form { padding: 28px 32px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-group label span { color: var(--text-muted); font-weight: 400; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 12px 14px; font-size: 15px; font-family: var(--font-body);
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--cream); color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus,
.form-group select:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(181,101,29,.15);
}
.field-error { display: block; font-size: 12px; color: var(--error); margin-top: 4px; min-height: 16px; }
.form-note { font-size: 12px; color: var(--text-muted); text-align: center; margin-top: 12px; }
.form-message {
  padding: 14px 16px; border-radius: var(--radius);
  font-size: 14px; text-align: center; margin-top: 16px;
}
.form-message.success { background: #f0fdf4; color: var(--success); border: 1px solid #bbf7d0; }
.form-message.error   { background: #fef2f2; color: var(--error);   border: 1px solid #fecaca; }

/* ── WhatsApp float ─────────────────────────────────────────────────────────── */
.whatsapp-float {
  position: fixed; bottom: 96px; right: 24px; z-index: 800;
  background: #25D366; color: var(--white);
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,.4);
  transition: transform .2s, box-shadow .2s;
}
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 6px 24px rgba(37,211,102,.5); }

/* ── Sticky bottom CTA ──────────────────────────────────────────────────────── */
.sticky-bottom-cta {
  display: none; /* shown on mobile only */
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 800;
  background: var(--navy-dark); padding: 12px 16px;
  gap: 12px; border-top: 1px solid rgba(181,101,29,.2);
  box-shadow: 0 -4px 20px rgba(0,0,0,.2);
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .amenities-grid { grid-template-columns: repeat(3, 1fr); }
  .features-grid  { grid-template-columns: 1fr; }
  .hero-price-badge { display: none; }
  .hero-inner { gap: 0; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .nav-links, .cta-nav { display: none; }
  .nav-toggle { display: flex; }
  /* Show mobile menu only on mobile AND only when JS removes [hidden] */
  .nav-mobile:not([hidden]) { display: flex; }
  .stats-grid  { grid-template-columns: repeat(2, 1fr); }
  .units-grid  { grid-template-columns: 1fr; }
  .amenities-grid { grid-template-columns: repeat(2, 1fr); }
  .payment-grid  { grid-template-columns: 1fr; }
  .location-grid { grid-template-columns: 1fr; }
  .footer-grid   { grid-template-columns: 1fr; gap: 32px; }
  .hero-ctas     { flex-direction: column; }
  .hero-ctas .btn-gold, .hero-ctas .btn-outline { width: 100%; justify-content: center; }
  .sticky-bottom-cta { display: flex; }
  .whatsapp-float { bottom: 88px; }
  .section { padding: 64px 0; }
}

@media (max-width: 480px) {
  .amenities-grid { grid-template-columns: 1fr 1fr; }
  .cta-banner-btns { flex-direction: column; align-items: center; }
}

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