/* ============================================================
   GLOBAL.CSS — Jaipur Property Consultant
   CSS Variables, Reset, Typography, Utilities, Animations
   Linked on ALL 24 pages
   ============================================================ */

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  /* Brand Colors */
  --color-primary:        #1B2A4A;
  --color-primary-light:  #2D4A7A;
  --color-accent:         #C8A45D;
  --color-accent-light:   #E8D5A3;
  --color-accent-dark:    #A07D3A;

  /* Backgrounds */
  --color-bg-primary:     #FFFFFF;
  --color-bg-secondary:   #F8F6F1;
  --color-bg-dark:        #1B2A4A;

  /* Text */
  --color-text-primary:   #1A1A2E;
  --color-text-secondary: #6B7280;
  --color-text-light:     #F8F6F1;

  /* Semantic */
  --color-success:        #16A34A;
  --color-border:         #E5E1D8;

  /* Typography */
  --ff-head:   'Playfair Display', Georgia, serif;
  --ff-body:   'DM Sans', sans-serif;
  --ff-accent: 'Cormorant Garamond', Georgia, serif;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(27,42,74,0.08);
  --shadow-md: 0 4px 20px rgba(27,42,74,0.10);
  --shadow-lg: 0 12px 40px rgba(27,42,74,0.12);

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Border Radius */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-pill: 9999px;

  /* Spacing (8px grid) */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body  { font-family: var(--ff-body); color: var(--color-text-primary); background: var(--color-bg-primary); overflow-x: hidden; line-height: 1.6; }
img   { max-width: 100%; display: block; }
a     { text-decoration: none; color: inherit; }
ul    { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
button { cursor: pointer; border: none; background: none; }
select { appearance: none; -webkit-appearance: none; cursor: pointer; }

/* ===== TYPOGRAPHY ===== */
h1 {
  font-family: var(--ff-head);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.15;
}
h2 {
  font-family: var(--ff-head);
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 600;
  line-height: 1.25;
}
h3 {
  font-family: var(--ff-body);
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 600;
  line-height: 1.4;
}
p { line-height: 1.75; }

/* ===== LAYOUT UTILITIES ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== SECTION HEADER SYSTEM ===== */
.section-caption {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin-bottom: 14px;
}
.section-caption::before,
.section-caption::after {
  content: '';
  display: block;
  width: 32px;
  height: 1.5px;
  background: var(--color-accent);
  flex-shrink: 0;
}
/* Left-aligned variant — add class .section-caption--left */
.section-caption--left {
  justify-content: flex-start;
}
.section-caption--left::before { display: none; }

.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header p {
  color: var(--color-text-secondary);
  font-size: 16px;
  max-width: 640px;
  margin: 16px auto 0;
  line-height: 1.75;
}
.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  gap: 16px;
  flex-wrap: wrap;
}
.section-header-row h2 { margin: 0; }

/* ===== BUTTONS ===== */
.btn-primary {
  background: var(--color-accent);
  color: var(--color-primary);
  font-weight: 700;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--color-accent-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  border: 1.5px solid var(--color-accent);
  color: var(--color-accent);
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  background: transparent;
}
.btn-outline:hover {
  background: var(--color-accent);
  color: var(--color-primary);
}

.btn-white-outline {
  border: 1.5px solid rgba(255,255,255,0.6);
  color: #fff;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  background: transparent;
}
.btn-white-outline:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-primary);
}

/* ===== LINKS ===== */
.gold-link {
  color: var(--color-accent);
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.gold-link:hover {
  color: var(--color-accent-dark);
  gap: 8px;
}

/* ===== PILL LINKS (budget strip etc.) ===== */
.pill-link {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.28);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 11px 26px;
  border-radius: var(--radius-pill);
  transition: var(--transition);
  display: inline-block;
}
.pill-link:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-primary);
  font-weight: 700;
}

/* ===== ANIMATIONS ===== */
@media (prefers-reduced-motion: no-preference) {
  /* Scroll reveal */
  .fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .fade-up.visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* Stagger delays */
  .stagger-1 { transition-delay: 0.1s; }
  .stagger-2 { transition-delay: 0.2s; }
  .stagger-3 { transition-delay: 0.3s; }
  .stagger-4 { transition-delay: 0.4s; }
  .stagger-5 { transition-delay: 0.5s; }
  .stagger-6 { transition-delay: 0.6s; }

  /* Keyframes */
  @keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-6px); }
  }
  @keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(10px); }
  }
  @keyframes pulse-ring {
    0%   { transform: scale(1); opacity: 1; }
    70%  { transform: scale(1.6); opacity: 0; }
    100% { transform: scale(1.6); opacity: 0; }
  }
  @keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* Hero entrance animations */
  .hero-animate-1 { animation: fadeInUp 0.7s ease 0.2s both; }
  .hero-animate-2 { animation: fadeInUp 0.7s ease 0.4s both; }
  .hero-animate-3 { animation: fadeInUp 0.7s ease 0.6s both; }
  .hero-animate-4 { animation: fadeInUp 0.7s ease 0.8s both; }
  .hero-animate-5 { animation: fadeInUp 0.7s ease 1.0s both; }

  /* Floating icon */
  .float-icon { animation: float 3s ease-in-out infinite; }
}

/* ===== JALI / LATTICE PATTERN ===== */
.jali-bg { position: relative; }
.jali-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M30 0L60 30L30 60L0 30Z' fill='none' stroke='%23C8A45D' stroke-width='0.6' opacity='0.18'/%3E%3Ccircle cx='30' cy='30' r='6' fill='none' stroke='%23C8A45D' stroke-width='0.5' opacity='0.14'/%3E%3Ccircle cx='0' cy='0' r='4' fill='none' stroke='%23C8A45D' stroke-width='0.5' opacity='0.1'/%3E%3Ccircle cx='60' cy='0' r='4' fill='none' stroke='%23C8A45D' stroke-width='0.5' opacity='0.1'/%3E%3Ccircle cx='0' cy='60' r='4' fill='none' stroke='%23C8A45D' stroke-width='0.5' opacity='0.1'/%3E%3Ccircle cx='60' cy='60' r='4' fill='none' stroke='%23C8A45D' stroke-width='0.5' opacity='0.1'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}
.jali-bg > * { position: relative; z-index: 1; }

/* ===== FLOATING ELEMENTS (shared across all pages) ===== */

/* WhatsApp floating button */
.whatsapp-float {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  cursor: pointer;
  transition: var(--transition);
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg  { width: 28px; height: 28px; color: #fff; }
.whatsapp-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  animation: pulse-ring 2s ease-out 3;
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  cursor: pointer;
  transition: var(--transition);
  opacity: 0;
  pointer-events: none;
  box-shadow: var(--shadow-md);
  border: none;
}
.back-to-top.visible   { opacity: 1; pointer-events: auto; }
.back-to-top:hover     { background: var(--color-primary-light); transform: translateY(-2px); }

/* Mobile sticky CTA bar */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: var(--color-primary);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}
.mobile-cta-bar.visible { opacity: 1; pointer-events: auto; }
.mobile-cta-inner       { display: flex; height: 100%; }
.mobile-cta-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}
.mobile-cta-btn:first-child { border-right: 1px solid rgba(255,255,255,0.15); }
.mobile-cta-btn.green       { background: #25D366; }

@media (max-width: 767px) {
  .mobile-cta-bar    { display: flex; }
  .back-to-top       { bottom: 72px; }
  .whatsapp-float    { display: none; }
}

/* ===== RESPONSIVE BREAKPOINTS (mobile-first) =====
   Base styles = mobile
   min-width: 640px  = sm  (large phones)
   min-width: 768px  = md  (tablets)
   min-width: 1024px = lg  (desktop)
   min-width: 1280px = xl  (large desktop)
   ================================================= */
