/* Emaar Brand Design Tokens (Official Emaar Website Theme) */
:root {
  --font-primary: 'Lato', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Official Colors from Emaar's Web Portal */
  --emaar-blue: #071c35;       /* Primary Deep Luxury Navy */
  --emaar-gold: #cdab6e;       /* Primary Emaar Champagne Gold */
  --emaar-gold-hover: #bda060;  /* Slightly Darker Gold */
  --emaar-gray: #4f4e50;       /* Emaar Corporate Wordmark Gray */
  
  --bg-page: #fdfdfd;          /* Off-White */
  --bg-surface: #ffffff;       /* Pure White Form Card */
  --border-color: #e5e5e5;     /* Clean minimalist dividers */
  --border-focus: #cdab6e;     /* Gold Focus Highlights */
  
  --text-primary: #111111;     /* Highly readable charcoal black */
  --text-secondary: #555555;   /* Secondary gray text */
  --text-muted: #888888;       /* Subtle helper/footer gray */
  
  --shadow-sm: 0 4px 10px rgba(7, 28, 53, 0.03);
  --shadow-md: 0 10px 30px rgba(7, 28, 53, 0.08);
  --shadow-lg: 0 20px 50px rgba(7, 28, 53, 0.15);
  
  --radius-sm: 2px;            /* Modern sharp edges characteristic of Emaar */
  --radius-md: 4px;
  
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Top Exclusivity Banner */
.exclusivity-banner {
  background-color: var(--emaar-blue);
  color: var(--emaar-gold);
  border-bottom: 2px solid var(--emaar-gold);
  padding: 12px 24px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  position: relative;
  z-index: 10;
}

.banner-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.lock-icon {
  font-size: 0.85rem;
}

/* Navigation Header */
.main-header {
  background-color: var(--emaar-blue);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.nav-left {
  display: flex;
  align-items: center;
}

.emaar-logo-header {
  height: 22px;
  width: auto;
  display: block;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.broker-co-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  padding-right: 28px;
}

.broker-tagline {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
  text-align: right;
  line-height: 1.3;
}

.broker-logo-header {
  height: 34px;
  width: auto;
  display: block;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  padding-right: 28px;
}

.lang-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--font-primary);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 6px;
  transition: var(--transition-smooth);
}

.lang-btn:hover {
  color: #ffffff;
}

.lang-btn.active {
  color: var(--emaar-gold);
}

.lang-divider {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.72rem;
}

.header-cta {
  background-color: var(--emaar-gold);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.header-cta:hover {
  background-color: #ffffff;
  color: var(--emaar-blue);
}

/* Hero Section with Split Layout & Image Background */
.hero-section {
  background-image: linear-gradient(rgba(7, 28, 53, 0.82), rgba(7, 28, 53, 0.88)), url('assets/emaar-villa.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  color: #ffffff;
  padding: 80px 0;
  min-height: 640px;
  display: flex;
  align-items: center;
}

.hero-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
}

/* Hero Content Left */
.vip-badge {
  display: inline-block;
  background-color: rgba(205, 171, 110, 0.15);
  border: 1px solid var(--emaar-gold);
  color: var(--emaar-gold);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  text-transform: uppercase;
}

.hero-main-title {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.gold-text {
  color: var(--emaar-gold);
}

.hero-sub-title {
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  margin-bottom: 24px;
  color: var(--emaar-gold);
  text-transform: uppercase;
}

.hero-intro-text {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.65;
  margin-bottom: 36px;
  color: #e5e7eb;
}

.info-alert-box {
  background-color: rgba(255, 255, 255, 0.05);
  border-left: 3px solid var(--emaar-gold);
  padding: 18px 24px;
  border-radius: var(--radius-sm);
  max-width: 540px;
}

.alert-title {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--emaar-gold);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.alert-desc {
  font-size: 0.85rem;
  color: #d1d5db;
  line-height: 1.5;
}

/* Floating Form Card Right */
.hero-right {
  display: flex;
  justify-content: flex-end;
}

.form-card-wrapper {
  background-color: var(--bg-surface);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  width: 100%;
  max-width: 380px;
  color: var(--text-primary);
  position: relative;
}

.card-indicator-gold {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background-color: var(--emaar-gold);
}

.form-card-title {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--emaar-blue);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.form-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.45;
}

/* Form Groups */
.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

input[type="text"],
input[type="email"],
input[type="tel"],
select {
  width: 100%;
  padding: 12px 14px;
  background-color: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-smooth);
  -webkit-appearance: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(205, 171, 110, 0.2);
}

select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%234f4e50'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
  padding-right: 40px;
}

.phone-input-container {
  display: flex;
  gap: 8px;
  width: 100%;
}

.phone-input-container select {
  width: 115px;
  flex-shrink: 0;
  padding-right: 30px;
  background-position: right 8px center;
}

.phone-input-container input {
  flex-grow: 1;
}

input::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

/* Errors */
.error-msg {
  color: #c94b4b;
  font-size: 0.72rem;
  margin-top: 4px;
  display: none;
  animation: fadeIn 0.3s ease;
}

.form-group.has-error input {
  border-color: rgba(201, 75, 75, 0.5);
  box-shadow: 0 0 0 3px rgba(201, 75, 75, 0.08);
}

.form-group.has-error .error-msg {
  display: block;
}

/* CTA Submit Button */
.submit-btn {
  width: 100%;
  padding: 15px;
  background-color: var(--emaar-gold);
  border: 1px solid var(--emaar-gold);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  margin-top: 12px;
}

.submit-btn:hover {
  background-color: var(--emaar-blue);
  border-color: var(--emaar-blue);
  box-shadow: 0 4px 15px rgba(7, 28, 53, 0.25);
}

/* Loader */
.btn-loader {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 0.8s linear infinite;
}

.submit-btn.loading .btn-text {
  visibility: hidden;
  opacity: 0;
}

.submit-btn.loading .btn-loader {
  display: block;
  position: absolute;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Success Card */
.success-card-wrapper {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: scaleUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.success-icon-box {
  width: 56px;
  height: 56px;
  border: 1px solid var(--emaar-gold);
  background-color: rgba(205, 171, 110, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emaar-gold);
  margin-bottom: 20px;
}
.luxury-seal {
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
  width: 100%;
  margin: 16px 0 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.seal-logo {
  font-size: 1.1rem;
  color: var(--emaar-gold);
  animation: pulse-dot 2s infinite;
}

.seal-text {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--emaar-blue);
  text-transform: uppercase;
}

.name-input-row {
  display: flex;
  gap: 16px;
  width: 100%;
}

.name-input-row .form-group {
  flex: 1;
}

.reset-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-family: var(--font-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.reset-btn:hover {
  background-color: var(--bg-page);
  border-color: var(--emaar-gray);
  color: var(--text-primary);
}

/* Secondary Sections styling */
.highlights-section {
  background-color: #ffffff;
  padding: 80px 0;
  border-bottom: 1px solid var(--border-color);
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.section-title {
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--emaar-blue);
  text-align: center;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 48px;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.highlight-item {
  text-align: center;
  border-right: 1px solid var(--border-color);
  padding: 0 16px;
}

.highlight-item:last-child {
  border-right: none;
}

.highlight-stat {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--emaar-gold);
  margin-bottom: 8px;
}

.highlight-name {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--emaar-blue);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.highlight-description {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Mansion Grid Section */
.collection-section {
  background-color: #f8f9fa;
  padding: 80px 0;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.collection-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  padding: 40px;
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
}

.collection-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-tag {
  display: inline-block;
  background-color: rgba(205, 171, 110, 0.08);
  border: 1px solid rgba(205, 171, 110, 0.3);
  color: var(--emaar-gold-hover);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.card-heading {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--emaar-blue);
  margin-bottom: 12px;
}

.card-body-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Footer Section */
.main-footer {
  background-color: var(--emaar-blue);
  color: #ffffff;
  padding: 40px 0;
  border-top: 2px solid var(--emaar-gold);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  text-align: center;
}

.footer-disclaimer {
  font-size: 0.72rem;
  color: #9ca3af;
  line-height: 1.6;
  margin-bottom: 16px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.footer-copyright {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--emaar-gold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Helpers */
.hidden {
  display: none !important;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* Responsive Rules */
@media (max-width: 1024px) {
  .highlights-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
  
  .highlight-item {
    border-right: none;
  }
  
  .highlight-item:nth-child(odd) {
    border-right: 1px solid var(--border-color);
  }
}

@media (max-width: 968px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .hero-left {
    text-align: center;
  }
  
  .info-alert-box {
    margin-left: auto;
    margin-right: auto;
    text-align: left;
  }
  
  .hero-right {
    justify-content: center;
  }
  
  .collection-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .highlights-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  
  .highlight-item {
    border-right: none !important;
    padding: 0;
  }
  
  .nav-container {
    flex-direction: column;
    gap: 16px;
    padding: 12px 20px;
    text-align: center;
  }

  .nav-right {
    flex-direction: column;
    gap: 16px;
    width: 100%;
  }

  .broker-co-brand {
    border-right: none;
    padding-right: 0;
    justify-content: center;
  }

  .lang-switcher {
    border-right: none;
    padding-right: 0;
    justify-content: center;
  }
  
  .hero-grid {
    padding: 0 20px;
  }
  
  .section-container {
    padding: 0 20px;
  }
}

@media (max-width: 480px) {
  .exclusivity-banner {
    font-size: 0.65rem;
    padding: 10px 16px;
    line-height: 1.4;
  }

  .emaar-logo-header {
    height: 18px;
  }

  .broker-tagline {
    display: none;
  }

  .broker-logo-header {
    height: 30px;
  }

  .form-card-wrapper {
    padding: 32px 20px;
  }
  
  .form-card-title {
    font-size: 1.4rem;
  }
  
  .hero-main-title {
    font-size: 2.2rem;
  }
}
