/* ==========================================================================
   AI CHIEF - WHITE & PURPLE ENTERPRISE THEME (GLOBAL EDITION)
   Engineered for American, European & Middle East Real Estate Enterprises
   ========================================================================== */

:root {
  /* White & Purple Palette from aichief.in */
  --apple-bg: #EEF2FF;                /* Crisp lavender-tinted background */
  --apple-bg-alt: #ffffff;            /* Pure clean white */
  --apple-bg-card: #ffffff;
  --apple-bg-card-subtle: #F8F9FE;
  --apple-bg-dark: #0F172A;           /* Deep midnight for dark contrast sections */
  --apple-bg-card-dark: #1E293B;

  /* Typography Colors */
  --apple-text-primary: #111827;      /* High-contrast deep slate */
  --apple-text-secondary: #4B5563;    /* Refined muted body slate */
  --apple-text-tertiary: #6B7280;
  --apple-text-light: #F9FAFB;
  --apple-text-subtle: #9CA3AF;

  /* Primary Brand Purples (Exact aichief.in shades) */
  --brand-purple: #4F46E5;            /* Core Indigo / Purple */
  --brand-purple-hover: #4338CA;      /* Deep rich purple on hover */
  --brand-purple-electric: #6366F1;   /* Electric vivid violet */
  --brand-purple-light: #818CF8;      /* Soft lavender purple */
  --brand-purple-tint: #EEF2FF;       /* Soft purple background badge */
  --brand-purple-glow: rgba(79, 70, 229, 0.28);
  --brand-violet-gradient: linear-gradient(135deg, #4F46E5 0%, #7C3AED 50%, #2563EB 100%);
  
  /* Accents */
  --brand-green: #10B981;             /* Active status emerald green */
  --brand-cyan: #06B6D4;
  --brand-amber: #F59E0B;

  /* Typography Scales */
  --font-apple: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", sans-serif;
  --font-mono: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;

  /* Spacing */
  --nav-height: 48px;
  --localnav-height: 52px;
  --section-padding: 100px 24px;
  --container-max: 1200px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --radius-pill: 980px;

  /* Elevations & Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.88);
  --glass-border: rgba(79, 70, 229, 0.12);
  --glass-dark-bg: rgba(15, 23, 42, 0.90);
  --glass-dark-border: rgba(255, 255, 255, 0.12);
  --shadow-subtle: 0 4px 20px rgba(31, 41, 55, 0.05);
  --shadow-card: 0 12px 36px rgba(31, 41, 55, 0.08);
  --shadow-elevated: 0 24px 64px rgba(79, 70, 229, 0.14);
  --shadow-purple: 0 8px 28px rgba(79, 70, 229, 0.32);

  /* Transitions */
  --ease-apple: cubic-bezier(0.28, 0.11, 0.32, 1);
  --transition-fast: 0.2s var(--ease-apple);
  --transition-smooth: 0.4s var(--ease-apple);
  --transition-long: 0.7s var(--ease-apple);
}

/* CSS Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  font-family: var(--font-apple);
  font-size: 16px;
  line-height: 1.47059;
  font-weight: 400;
  letter-spacing: -0.022em;
  background-color: var(--apple-bg);
  color: var(--apple-text-primary);
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
  background-color: var(--apple-bg);
  min-height: 100vh;
}

img, svg, video {
  display: block;
  max-width: 100%;
}

a {
  color: var(--brand-purple);
  text-decoration: none;
  transition: all var(--transition-fast);
}

a:hover {
  color: var(--brand-purple-hover);
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* Global Nav (Apple Iconic Ribbon with Purple Tones) */
.global-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  z-index: 9999;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.global-header-inner {
  max-width: 1040px;
  height: 100%;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.global-nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.global-nav-logo img {
  height: 24px;
  width: auto;
  filter: brightness(1.2);
}

.global-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.global-nav-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: -0.01em;
  transition: color var(--transition-fast);
}

.global-nav-links a:hover {
  color: #ffffff;
}

.global-nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.global-search-btn {
  color: rgba(255, 255, 255, 0.8);
  padding: 4px;
  transition: opacity var(--transition-fast);
}
.global-search-btn:hover {
  opacity: 1;
  color: #fff;
}

/* Local Navigation (Apple Product-Specific Sticky Bar in White & Purple) */
.local-nav {
  position: sticky;
  top: var(--nav-height);
  left: 0;
  right: 0;
  height: var(--localnav-height);
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  z-index: 999;
  border-bottom: 1px solid var(--glass-border);
  transition: background var(--transition-smooth), border var(--transition-smooth);
}

.local-nav.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.06);
}

.local-nav-inner {
  max-width: var(--container-max);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.local-nav-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.local-nav-title a {
  font-size: 18px;
  font-weight: 700;
  color: var(--apple-text-primary);
  letter-spacing: -0.01em;
}

.local-nav-badge {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: rgba(79, 70, 229, 0.1);
  color: var(--brand-purple);
  border: 1px solid rgba(79, 70, 229, 0.2);
}

.local-nav-menu {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
}

.local-nav-menu a {
  font-size: 13px;
  color: var(--apple-text-secondary);
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}

.local-nav-menu a:hover,
.local-nav-menu a.active {
  color: var(--brand-purple);
}

.local-nav-menu a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brand-purple);
  border-radius: 2px;
}

.local-nav-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Apple Buttons in Purple */
.apple-btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  background: var(--brand-purple);
  color: #ffffff !important;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.apple-btn-pill:hover {
  background: var(--brand-purple-hover);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
  transform: translateY(-1px);
}

.apple-btn-pill:active {
  transform: scale(0.98);
}

.apple-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  background: var(--brand-purple);
  color: #ffffff !important;
  box-shadow: var(--shadow-purple);
  transition: all var(--transition-fast);
}

.apple-btn-primary:hover {
  background: var(--brand-purple-hover);
  box-shadow: 0 10px 32px rgba(79, 70, 229, 0.42);
  transform: translateY(-2px);
}

.apple-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  background: #ffffff;
  color: var(--apple-text-primary) !important;
  border: 1.5px solid rgba(79, 70, 229, 0.2);
  transition: all var(--transition-fast);
}

.apple-btn-secondary:hover {
  background: #ffffff;
  border-color: var(--brand-purple);
  color: var(--brand-purple) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.12);
}

/* Sections */
.apple-section {
  padding: var(--section-padding);
  position: relative;
}

.apple-section.dark {
  background: var(--apple-bg-dark);
  color: var(--apple-text-light);
}

.apple-section.white {
  background: var(--apple-bg-alt);
}

.section-container {
  max-width: var(--container-max);
  margin: 0 auto;
  position: relative;
}

/* Section Header Typography */
.section-header {
  margin-bottom: 50px;
}

.section-eyebrow {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-purple);
  margin-bottom: 12px;
  display: block;
}

.section-eyebrow.dark {
  color: var(--brand-purple-light);
}

.section-headline {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.028em;
  color: var(--apple-text-primary);
  margin-bottom: 16px;
}

.apple-section.dark .section-headline {
  color: #ffffff;
}

.section-subhead {
  font-size: clamp(18px, 2.4vw, 23px);
  font-weight: 400;
  line-height: 1.4;
  color: var(--apple-text-secondary);
  max-width: 800px;
}

.apple-section.dark .section-subhead {
  color: var(--apple-text-subtle);
}

/* Utilities */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Responsive adjustments */
@media (max-width: 900px) {
  .global-nav-links { display: none; }
  .local-nav-menu { display: none; }
  .section-headline { font-size: 34px; }
  :root { --section-padding: 70px 18px; }
}
