/* ============================================================
   YAS ISLAND INVESTMENT LANDING PAGE - STYLES
   Dark luxury theme | Cormorant headings | Montserrat body
   ============================================================ */

/* --- CSS Variables --- */
:root {
  --gold: #d4af37;
  --gold-light: #e8c94d;
  --gold-dark: #b8962e;
  --navy: #0B1120;
  --navy-light: #151D2E;
  --navy-lighter: #1E2A3F;
  --white: #ffffff;
  --white-70: rgba(255,255,255,0.70);
  --white-50: rgba(255,255,255,0.50);
  --white-40: rgba(255,255,255,0.40);
  --white-30: rgba(255,255,255,0.30);
  --white-15: rgba(255,255,255,0.15);
  --gold-15: rgba(212,175,55,0.15);
  --gold-20: rgba(212,175,55,0.20);
  --gold-08: rgba(212,175,55,0.08);
  --border-subtle: rgba(255,255,255,0.06);
}

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; background-color: var(--navy); -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  color: var(--white);
  background: var(--navy);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-overflow-scrolling: touch;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
input, select, textarea { font-family: inherit; }

/* iOS / Facebook WebView fixes */
input, select, textarea { font-size: 16px !important; }
a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

/* --- Typography --- */
.font-heading { font-family: 'Cormorant', serif; }
.font-body { font-family: 'Montserrat', sans-serif; }

/* --- Navigation --- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: 64px; transition: all 0.3s ease;
}
.nav.scrolled {
  background: rgba(11,17,32,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
  font-family: 'Cormorant', serif; font-size: 18px; font-weight: 600;
  letter-spacing: 0.05em; color: var(--white);
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-link {
  font-family: 'Montserrat', sans-serif; font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--white-70); transition: color 0.2s;
  padding: 8px 0;
}
.nav-link:hover { color: var(--gold); }
.nav-cta {
  font-family: 'Montserrat', sans-serif; font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.15em;
  padding: 10px 20px; border-radius: 6px;
  background: var(--gold); color: var(--navy);
  transition: all 0.2s;
}
.nav-cta:hover { filter: brightness(1.1); }
.nav-toggle { display: none; padding: 8px; }
.nav-mobile {
  display: none; overflow: hidden; transition: max-height 0.3s ease;
  background: rgba(11,17,32,0.98);
}
.nav-mobile.open { display: block; }
.nav-mobile-inner { padding: 16px 24px; display: flex; flex-direction: column; gap: 4px; }
.nav-mobile-link {
  font-family: 'Montserrat', sans-serif; font-size: 14px;
  color: var(--white-70); padding: 12px 0; text-align: left;
  transition: color 0.2s;
}
.nav-mobile-link:hover { color: var(--gold); }

/* --- Hero --- */
.hero {
  position: relative; min-height: 100dvh;
  display: flex; align-items: center; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(11,17,32,0.35) 0%, rgba(11,17,32,0.88) 100%);
}
.hero-inner {
  position: relative; z-index: 10;
  max-width: 1200px; margin: 0 auto;
  padding: 100px 24px 60px;
  width: 100%;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 48px;
}
.hero-content { flex: 1; max-width: 560px; }
.hero-overline {
  font-family: 'Montserrat', sans-serif; font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--gold); margin-bottom: 16px;
}
.hero-title {
  font-family: 'Cormorant', serif; font-size: clamp(36px, 5.5vw, 68px);
  font-weight: 700; line-height: 1.05; color: var(--white);
  text-shadow: 0 2px 20px rgba(0,0,0,0.5); margin-bottom: 20px;
}
.hero-title .gold { color: var(--gold); }
.hero-subtitle {
  font-family: 'Montserrat', sans-serif; font-size: 15px; font-weight: 300;
  line-height: 1.6; color: var(--white-70); margin-bottom: 28px;
}
.hero-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.hero-badge { display: flex; align-items: center; gap: 6px; }
.hero-badge svg { color: var(--gold); width: 15px; height: 15px; }
.hero-badge span {
  font-family: 'Montserrat', sans-serif; font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--white-70);
}
.hero-badge-divider { width: 1px; height: 14px; background: var(--white-15); }

/* --- Lead Form --- */
.lead-form {
  width: 100%; max-width: 420px;
  padding: 28px;
  background: rgba(21,29,46,0.96);
  backdrop-filter: blur(10px);
  border: 1px solid var(--gold-15);
  border-radius: 12px;
}
.lead-form-title {
  font-family: 'Cormorant', serif; font-size: 24px; font-weight: 600;
  color: var(--white); margin-bottom: 6px;
}
.lead-form-subtitle {
  font-family: 'Montserrat', sans-serif; font-size: 12px; font-weight: 300;
  color: var(--white-50); line-height: 1.5; margin-bottom: 20px;
}
.form-group { margin-bottom: 12px; }
.form-input {
  width: 100%; padding: 12px 16px;
  background: var(--navy-lighter);
  border: 1px solid #2a3650; border-radius: 8px;
  font-family: 'Montserrat', sans-serif; font-size: 16px !important;
  color: var(--white); outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input::placeholder { color: var(--white-30); }
.form-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.15);
}
select.form-input { appearance: none; cursor: pointer; }
.form-btn {
  width: 100%; padding: 14px;
  background: var(--gold); color: var(--navy);
  font-family: 'Montserrat', sans-serif; font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  border-radius: 8px; transition: all 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.form-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.form-btn:active { transform: translateY(0) scale(0.98); }
.form-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.form-footer {
  font-family: 'Montserrat', sans-serif; font-size: 10px;
  color: var(--white-30); text-align: center; margin-top: 10px;
}
.form-error { font-size: 12px; color: #ff6b6b; margin-top: 4px; }

/* --- Section Overline & Headings --- */
.section-overline {
  font-family: 'Montserrat', sans-serif; font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--gold); margin-bottom: 12px;
}
.section-title {
  font-family: 'Cormorant', serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 600; line-height: 1.1; color: var(--white);
}
.section-subtitle {
  font-family: 'Montserrat', sans-serif; font-size: 14px; font-weight: 300;
  color: var(--white-50); line-height: 1.6; margin-top: 14px;
}

/* --- Highlight Cards --- */
.highlights { background: var(--navy); padding: 80px 0; }
.highlight-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.highlight-card {
  padding: 36px 28px; border-radius: 12px;
  background: var(--navy-light);
  border: 1px solid var(--gold-08);
  transition: transform 0.3s, box-shadow 0.3s;
}
.highlight-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.2); }
.highlight-card svg { color: var(--gold); width: 28px; height: 28px; margin-bottom: 16px; }
.highlight-card h3 {
  font-family: 'Cormorant', serif; font-size: 20px; font-weight: 600;
  color: var(--white); margin-bottom: 8px;
}
.highlight-card p {
  font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 300;
  color: var(--white-50); line-height: 1.6;
}

/* --- Demand Drivers --- */
.demand { background: linear-gradient(180deg, var(--navy) 0%, #0f1830 100%); padding: 80px 0; }
.demand-inner { display: flex; gap: 48px; }
.demand-left { flex: 0 0 38%; }
.demand-right { flex: 1; }
.demand-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.demand-item:last-child { border-bottom: none; }
.demand-item svg { color: var(--gold); width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; }
.demand-item h4 {
  font-family: 'Cormorant', serif; font-size: 16px; font-weight: 600; color: var(--white); margin-bottom: 2px;
}
.demand-item p {
  font-family: 'Montserrat', sans-serif; font-size: 12px; font-weight: 300;
  color: var(--white-40); line-height: 1.5;
}

/* --- Attractions Gallery --- */
.attractions { background: var(--navy); padding: 80px 0; }
.attractions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 48px; }
.attraction-card {
  position: relative; aspect-ratio: 4/3; border-radius: 8px;
  overflow: hidden; cursor: pointer;
}
.attraction-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.attraction-card:hover img { transform: scale(1.05); }
.attraction-card .gradient {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  pointer-events: none;
}
.attraction-card .label {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 16px;
  font-family: 'Cormorant', serif; font-size: 16px; font-weight: 600; color: var(--white);
}

/* --- Properties --- */
.properties { background: linear-gradient(180deg, #0f1830 0%, var(--navy) 100%); padding: 80px 0; }
.property-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.property-card {
  border-radius: 12px; overflow: hidden;
  background: var(--navy-light);
  border: 1px solid var(--gold-08);
  transition: transform 0.3s, box-shadow 0.3s;
}
.property-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.25); }
.property-card .img-wrap { aspect-ratio: 16/9; overflow: hidden; }
.property-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.property-card:hover .img-wrap img { transform: scale(1.05); }
.property-card .content { padding: 24px; }
.property-type {
  font-family: 'Montserrat', sans-serif; font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.2em; color: var(--gold); margin-bottom: 6px;
}
.property-title {
  font-family: 'Cormorant', serif; font-size: 20px; font-weight: 600; color: var(--white); margin-bottom: 4px;
}
.property-price {
  font-family: 'Cormorant', serif; font-size: 28px; font-weight: 700; color: var(--gold); margin-bottom: 6px;
}
.property-features {
  font-family: 'Montserrat', sans-serif; font-size: 12px; font-weight: 300;
  color: var(--white-40); margin-bottom: 16px;
}
.property-meta { padding-top: 14px; border-top: 1px solid var(--border-subtle); }
.property-meta-item { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px; }
.property-meta-item svg { color: var(--gold); width: 13px; height: 13px; margin-top: 2px; flex-shrink: 0; }
.property-meta-item span {
  font-family: 'Montserrat', sans-serif; font-size: 11px; font-weight: 300; color: var(--white-50);
}
.property-btn {
  display: inline-flex; margin-top: 16px; padding: 10px 18px;
  border: 1px solid var(--gold); border-radius: 6px;
  font-family: 'Montserrat', sans-serif; font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold);
  transition: all 0.2s;
}
.property-btn:hover { background: var(--gold); color: var(--navy); }

/* --- CTA Section --- */
.cta-section {
  background: var(--navy); padding: 80px 0; position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(212,175,55,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.cta-section .inner { position: relative; z-index: 1; text-align: center; }
.cta-section h2 { font-family: 'Cormorant', serif; font-size: clamp(28px, 4vw, 44px); font-weight: 600; color: var(--white); margin-bottom: 12px; }
.cta-section p { font-family: 'Montserrat', sans-serif; font-size: 14px; font-weight: 300; color: var(--white-50); max-width: 480px; margin: 0 auto 32px; }
.cta-btn {
  display: inline-flex; padding: 14px 32px;
  background: var(--gold); color: var(--navy);
  font-family: 'Montserrat', sans-serif; font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  border-radius: 8px; transition: all 0.2s;
}
.cta-btn:hover { filter: brightness(1.1); transform: translateY(-2px); }

/* --- Footer --- */
.footer {
  background: var(--navy); padding: 32px 0;
  border-top: 1px solid var(--gold-08);
}
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-brand {
  font-family: 'Cormorant', serif; font-size: 14px; font-weight: 600;
  letter-spacing: 0.08em; color: var(--white-40);
}
.footer-links { display: flex; gap: 24px; }
.footer-link {
  font-family: 'Montserrat', sans-serif; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--white-40);
  transition: color 0.2s;
}
.footer-link:hover { color: var(--gold); }
.footer-copy {
  font-family: 'Montserrat', sans-serif; font-size: 11px; color: var(--white-20);
}

/* --- Popup --- */
.popup-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center;
  padding: 16px;
  opacity: 0; transition: opacity 0.3s ease;
}
.popup-overlay.active { display: flex; }
.popup-overlay.visible { opacity: 1; }
.popup-box {
  width: 100%; max-width: 400px;
  background: var(--navy-light);
  border: 1px solid var(--gold-20);
  border-radius: 12px; overflow: hidden;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.popup-overlay.visible .popup-box {
  transform: scale(1) translateY(0);
}
.popup-close {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.05);
  display: flex; align-items: center; justify-content: center;
  color: var(--white-60); transition: all 0.2s; z-index: 2;
}
.popup-close:hover { background: rgba(255,255,255,0.1); color: var(--white); }
.popup-header {
  padding: 32px 24px 20px; text-align: center;
  background: linear-gradient(135deg, rgba(212,175,55,0.1) 0%, transparent 60%);
}
.popup-icon-wrap {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(212,175,55,0.15);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}
.popup-icon-wrap svg { color: var(--gold); width: 22px; height: 22px; }
.popup-title { font-family: 'Cormorant', serif; font-size: 24px; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.popup-subtitle { font-family: 'Montserrat', sans-serif; font-size: 12px; font-weight: 300; color: var(--white-50); max-width: 280px; margin: 0 auto; }
.popup-badges { display: flex; justify-content: center; gap: 16px; padding: 0 24px 16px; }
.popup-badge { display: flex; align-items: center; gap: 4px; }
.popup-badge svg { color: var(--gold); width: 12px; height: 12px; }
.popup-badge span { font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; color: var(--white-50); }
.popup-form { padding: 0 24px 24px; }
.popup-form .form-group { margin-bottom: 10px; }
.popup-form .form-input { padding: 11px 14px; font-size: 14px !important; }
.popup-form .form-btn { padding: 12px; font-size: 11px; }
.popup-wrap { position: relative; }

/* --- Thank You Page --- */
.ty-page {
  min-height: 100dvh; display: flex; align-items: center; justify-content: center;
  background: var(--navy); padding: 24px;
}
.ty-box { max-width: 460px; width: 100%; text-align: center; }
.ty-icon-wrap {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(212,175,55,0.15);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.ty-icon-wrap svg { color: var(--gold); width: 28px; height: 28px; }
.ty-box h1 { font-family: 'Cormorant', serif; font-size: 36px; font-weight: 700; color: var(--white); margin-bottom: 12px; }
.ty-box p { font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 300; color: var(--white-50); line-height: 1.7; margin-bottom: 10px; }
.ty-box .ty-note { font-size: 12px; color: var(--white-35); margin-bottom: 28px; }
.ty-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; background: var(--gold); color: var(--navy);
  font-family: 'Montserrat', sans-serif; font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  border-radius: 8px; transition: all 0.2s;
}
.ty-btn:hover { filter: brightness(1.1); }
.whatsapp-btn {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 16px;
  padding: 14px 28px; background: #25D366; color: #fff;
  font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 600;
  border-radius: 8px; transition: all 0.2s;
}
.whatsapp-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.whatsapp-btn svg { width: 20px; height: 20px; }
.ty-contact { margin-top: 24px; font-size: 12px; color: var(--white-30); }
.ty-contact a { color: var(--gold); text-decoration: underline; }
.ty-legal { margin-top: 16px; font-size: 10px; color: var(--white-20); }

/* --- Container --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* --- Spinner --- */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner { animation: spin 0.8s linear infinite; }

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-mobile.open { display: block; }

  .hero-inner { flex-direction: column; padding: 90px 20px 48px; gap: 32px; }
  .hero-content { max-width: 100%; }
  .lead-form { max-width: 100%; }

  .highlight-cards { grid-template-columns: 1fr; margin-top: 36px; }
  .demand-inner { flex-direction: column; gap: 32px; }
  .demand-left { flex: 1; }
  .attractions-grid { grid-template-columns: repeat(2, 1fr); margin-top: 36px; }
  .property-cards { grid-template-columns: 1fr; margin-top: 36px; }

  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }

  .hero-title { font-size: 36px; }
  .section-title { font-size: 32px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 30px; }
  .hero-subtitle { font-size: 13px; }
  .attractions-grid { grid-template-columns: 1fr; }
  .container { padding: 0 20px; }
  .hero-inner { padding: 86px 20px 40px; }
  .lead-form { padding: 20px; }
}
