/* ============================================================
   KARYAN Real Estate — Main Stylesheet
   Design: Navy + Gold luxury pre-launch aesthetic
   ============================================================ */

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

:root {
  --navy:      #0d1b2e;
  --navy-mid:  #162540;
  --navy-lite: #1f3558;
  --gold:      #C9A84C;
  --gold-lite: #e0c270;
  --gold-dim:  #a07e35;
  --white:     #ffffff;
  --off-white: #f5f3ee;
  --text:      #e8e0d0;
  --muted:     #9aabb8;
  --danger:    #e53e3e;
  --success:   #38a169;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --radius: 8px;
  --shadow: 0 8px 32px rgba(0,0,0,0.35);
  --transition: .25s ease;
  --container: 1140px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-lite); }

/* ── Skip Link ────────────────────────────────────────────── */
.skip-link {
  position: absolute; top: -100px; left: 12px; z-index: 9999;
  background: var(--gold); color: var(--navy); padding: 8px 16px;
  border-radius: var(--radius); font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ── Container ────────────────────────────────────────────── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-body); font-size: 15px; font-weight: 600;
  border: 2px solid transparent; border-radius: var(--radius);
  cursor: pointer; text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-gold {
  background: var(--gold); color: var(--navy);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-lite); border-color: var(--gold-lite); color: var(--navy);
  transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,168,76,0.35);
}
.btn-outline {
  background: transparent; color: var(--gold); border-color: var(--gold);
}
.btn-outline:hover {
  background: var(--gold); color: var(--navy);
  transform: translateY(-2px);
}
.btn-sm { padding: 9px 20px; font-size: 13px; }
.btn-block { width: 100%; }

/* ── Section Shared ───────────────────────────────────────── */
.section { padding: 80px 0; }
.section-alt { background: var(--navy-mid); }
.section-eyebrow {
  display: block; font-size: 12px; font-weight: 600; letter-spacing: .15em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display); font-size: clamp(32px, 5vw, 56px);
  font-weight: 700; line-height: 1.1; color: var(--white); margin-bottom: 16px;
}
.section-sub {
  font-size: 17px; color: var(--muted); max-width: 600px; line-height: 1.7;
}
.text-center { text-align: center; }
.text-center .section-sub { margin: 0 auto; }

/* Divider */
.gold-divider {
  width: 60px; height: 3px; background: var(--gold);
  margin: 20px 0; border-radius: 2px;
}
.text-center .gold-divider { margin: 20px auto; }

/* ── Navigation ───────────────────────────────────────────── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  background: rgba(13,27,46,0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,168,76,0.15);
  transition: all .3s;
}
.site-nav.scrolled { background: rgba(13,27,46,0.98); }
.nav-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav-logo { display: flex; flex-direction: column; line-height: 1; }
.logo-text { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--gold); letter-spacing: .05em; }
.logo-sub  { font-size: 9px; font-weight: 500; letter-spacing: .25em; color: var(--muted); text-transform: uppercase; }
.nav-cta-group { display: flex; align-items: center; gap: 16px; }
.nav-phone { font-size: 14px; color: var(--text); font-weight: 500; }
.nav-phone:hover { color: var(--gold); }

/* ── Hero Section ─────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, rgba(13,27,46,0.9) 40%, rgba(13,27,46,0.6) 100%),
              url('../images/hero-bg.jpeg') center center / cover no-repeat;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 100px 24px 60px;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--navy));
}
.hero-content { position: relative; z-index: 1; max-width: 800px; }
.hero-badge {
  display: inline-block; background: rgba(201,168,76,.15);
  border: 1px solid var(--gold); color: var(--gold);
  font-size: 12px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase;
  padding: 7px 18px; border-radius: 40px; margin-bottom: 28px;
}
.hero-title {
  font-family: var(--font-display); font-size: clamp(42px, 9vw, 88px);
  font-weight: 700; color: var(--white); line-height: 1.0; margin-bottom: 8px;
}
.hero-title span { color: var(--gold); }
.hero-headline {
  font-family: var(--font-display); font-size: clamp(20px, 3.5vw, 32px);
  color: var(--gold-lite); font-weight: 600; margin-bottom: 20px;
}
.hero-sub {
  font-size: 17px; color: var(--muted); max-width: 580px; margin: 0 auto 36px; line-height: 1.7;
}
.hero-price-tag {
  display: inline-flex; align-items: baseline; gap: 8px; margin-bottom: 40px;
}
.hero-price-tag .currency { font-size: 28px; color: var(--gold); font-weight: 700; }
.hero-price-tag .amount  { font-family: var(--font-display); font-size: clamp(56px, 10vw, 96px); color: var(--white); font-weight: 700; line-height: 1; }
.hero-price-tag .unit    { font-size: 14px; color: var(--muted); align-self: flex-end; padding-bottom: 12px; }
.hero-cta-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px; }
.hero-stats {
  display: flex; gap: 32px; justify-content: center; flex-wrap: wrap;
  padding-top: 32px; border-top: 1px solid rgba(201,168,76,0.2);
}
.stat-item { text-align: center; }
.stat-value { font-family: var(--font-display); font-size: 32px; font-weight: 700; color: var(--gold); }
.stat-label { font-size: 12px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }

/* ── Urgency Bar ──────────────────────────────────────────── */
.urgency-bar {
  background: linear-gradient(90deg, var(--gold-dim), var(--gold), var(--gold-dim));
  color: var(--navy); text-align: center; padding: 12px 24px;
  font-weight: 700; font-size: 14px; letter-spacing: .04em;
}

/* ── Highlights Grid ──────────────────────────────────────── */
.highlights-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px;
  margin-top: 52px;
}
.highlight-card {
  background: var(--navy-lite); border: 1px solid rgba(201,168,76,0.15);
  border-radius: var(--radius); padding: 28px 24px;
  transition: transform var(--transition), border-color var(--transition);
}
.highlight-card:hover {
  transform: translateY(-4px); border-color: var(--gold);
}
.highlight-icon { font-size: 32px; margin-bottom: 14px; }
.highlight-value {
  font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--gold); margin-bottom: 6px;
}
.highlight-label { font-size: 14px; color: var(--muted); }

/* ── Units Section ────────────────────────────────────────── */
.units-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px;
  margin-top: 52px;
}
.unit-card {
  background: var(--navy-lite); border: 1px solid rgba(201,168,76,0.15);
  border-radius: var(--radius); padding: 36px 28px; text-align: center;
  position: relative; overflow: hidden;
  transition: all var(--transition);
}
.unit-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gold); transform: scaleX(0); transition: transform var(--transition);
}
.unit-card:hover::before { transform: scaleX(1); }
.unit-card:hover { transform: translateY(-6px); border-color: var(--gold); }
.unit-card.featured { border-color: var(--gold); }
.unit-card.featured::before { transform: scaleX(1); }
.unit-badge {
  position: absolute; top: 16px; right: 16px;
  background: var(--gold); color: var(--navy);
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 20px;
}
.unit-type { font-family: var(--font-display); font-size: 42px; font-weight: 700; color: var(--gold); line-height: 1; }
.unit-name { font-size: 15px; color: var(--muted); margin: 6px 0 16px; }
.unit-size { font-size: 22px; font-weight: 600; color: var(--white); margin-bottom: 8px; }
.unit-price { font-size: 13px; color: var(--gold); margin-bottom: 28px; }
.unit-price strong { font-size: 20px; }

/* ── Pricing Section ──────────────────────────────────────── */
.pricing-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px;
  margin-top: 52px;
}
.pricing-card {
  background: var(--navy-lite); border-radius: var(--radius);
  border: 1px solid rgba(201,168,76,0.15); overflow: hidden;
  transition: transform var(--transition);
}
.pricing-card:hover { transform: translateY(-4px); }
.pricing-card.active { border-color: var(--gold); }
.pricing-header { padding: 28px; background: var(--navy); text-align: center; }
.pricing-label { font-size: 12px; letter-spacing: .15em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.pricing-amount { font-family: var(--font-display); font-size: 48px; font-weight: 700; color: var(--white); }
.pricing-amount span { font-size: 20px; }
.pricing-per { font-size: 13px; color: var(--muted); }
.pricing-body { padding: 28px; }
.pricing-features { list-style: none; }
.pricing-features li { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.07); font-size: 14px; }
.pricing-features li::before { content: '✔'; color: var(--gold); margin-right: 10px; }

/* ── Why Section ──────────────────────────────────────────── */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-top: 52px; }
.why-list { list-style: none; }
.why-list li {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.why-list li:last-child { border-bottom: none; }
.why-icon { font-size: 24px; flex-shrink: 0; margin-top: 2px; }
.why-title { font-weight: 600; color: var(--white); margin-bottom: 4px; }
.why-desc  { font-size: 14px; color: var(--muted); line-height: 1.6; }
.why-cta-box {
  background: var(--navy-lite); border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius); padding: 48px 36px; text-align: center;
}
.why-cta-box .price-big {
  font-family: var(--font-display); font-size: 72px; font-weight: 700; color: var(--gold); line-height: 1;
}
.why-cta-box p { font-size: 14px; color: var(--muted); margin: 12px 0 28px; }

/* ── Contact Section ──────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 52px; }
.contact-info-item { display: flex; gap: 16px; margin-bottom: 24px; }
.contact-info-item .ci-icon { font-size: 28px; }
.contact-info-item .ci-label { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact-info-item .ci-val { font-size: 18px; font-weight: 600; color: var(--white); }
.contact-form-box {
  background: var(--navy-lite); border: 1px solid rgba(201,168,76,0.15);
  border-radius: var(--radius); padding: 40px;
}

/* ── Inline Form Styles (also used in modal) ─────────────── */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 13px; font-weight: 500; color: var(--muted);
  margin-bottom: 7px; letter-spacing: .03em;
}
.form-group label span { font-size: 11px; color: var(--muted); margin-left: 4px; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201,168,76,0.2); border-radius: 6px;
  color: var(--white); font-family: var(--font-body); font-size: 15px;
  padding: 12px 16px; transition: border-color var(--transition);
  outline: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.25); }
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  background: rgba(201,168,76,0.05);
}
.form-group textarea { resize: vertical; min-height: 90px; }

.form-alert {
  padding: 12px 16px; border-radius: 6px; font-size: 14px; margin-bottom: 16px;
}
.form-alert.error   { background: rgba(229,62,62,.15); border: 1px solid var(--danger); color: #fc8181; }
.form-alert.success { background: rgba(56,161,105,.15); border: 1px solid var(--success); color: #68d391; }
.form-disclaimer { font-size: 12px; color: var(--muted); text-align: center; margin-top: 14px; }

/* ── Modal ────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: none; align-items: center; justify-content: center;
  padding: 16px;
}

/* Active state: Visible */
.modal-overlay.active {
    display: flex; /* Only show when 'active' class is added */
    animation: fadeIn 0.3s ease; /* Optional: smooth fade in */
}

/* Optional: Animation for smoother open */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-backdrop {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
}
.modal-card {
  position: relative; z-index: 1001;
  background: var(--navy-mid); border: 1px solid rgba(201,168,76,0.25);
  border-radius: 12px; width: 100%; max-width: 480px;
  max-height: 90vh; overflow-y: auto;
  padding: 36px 36px 28px;
  box-shadow: var(--shadow);
  animation: modalIn .25s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
.modal-close {
  position: absolute; top: 16px; right: 18px;
  background: none; border: none; color: var(--muted);
  font-size: 26px; cursor: pointer; line-height: 1;
  transition: color var(--transition);
}
.modal-close:hover { color: var(--white); }
.modal-badge {
  display: inline-block; background: rgba(201,168,76,.12); border: 1px solid var(--gold);
  color: var(--gold); font-size: 11px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; padding: 5px 14px; border-radius: 30px; margin-bottom: 12px;
}
.modal-title { font-family: var(--font-display); font-size: 28px; color: var(--white); margin-bottom: 6px; }
.modal-sub   { font-size: 13px; color: var(--muted); margin-bottom: 24px; }

.form-success { text-align: center; padding: 20px 0; }
.success-icon { font-size: 52px; margin-bottom: 16px; }
.form-success h3 { font-family: var(--font-display); font-size: 28px; color: var(--white); margin-bottom: 12px; }
.form-success p  { color: var(--muted); font-size: 15px; line-height: 1.7; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer { background: var(--navy-mid); border-top: 1px solid rgba(201,168,76,0.15); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; }
.footer-logo { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--gold); margin-bottom: 8px; }
.footer-brand p { color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.footer-disclaimer { font-size: 11px; color: rgba(154,171,184,0.7); margin-top: 16px; line-height: 1.6; }
.footer-links h4,
.footer-contact h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); margin-bottom: 16px; }
.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: 10px; }
.footer-links a { color: var(--muted); font-size: 14px; }
.footer-links a:hover { color: var(--gold); }
.footer-contact p { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.footer-cta { margin-top: 20px; }
.footer-bottom {
  margin-top: 48px; padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.footer-bottom p { font-size: 12px; color: var(--muted); text-align: center; }

/* ── Scroll Reveal ────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .why-grid      { grid-template-columns: 1fr; }
  .contact-grid  { grid-template-columns: 1fr; }
  .footer-grid   { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .nav-phone { display: none; }
  .hero-cta-row { flex-direction: column; align-items: center; }
  .hero-stats { gap: 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .modal-card  { padding: 28px 20px; }
}

/* ── Utility ──────────────────────────────────────────────── */
.mt-8  { margin-top:  8px; }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
.mb-8  { margin-bottom:  8px; }
.mb-16 { margin-bottom: 16px; }
.mb-32 { margin-bottom: 32px; }
