/* ==========================================================================
   Base Styles, CSS Variables & Typography
   Aurelia Luxury Property Developments
   ========================================================================== */

:root {
  /* Fonts */
  --font-serif: 'Cormorant Garamond', 'Gelasio', Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', 'Arimo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Exact User-Defined Luxury Palette: #fff #000 #dda24d #d4b16b */
  --color-black: #000000;
  --color-dark: #000000;
  --color-dark-surface: #0a0a0a;
  --color-dark-card: #121212;
  --color-dark-border: rgba(221, 162, 77, 0.22);
  --color-dark-border-subtle: rgba(221, 162, 77, 0.1);

  --color-light: #ffffff;
  --color-light-surface: #f9f9f9;
  --color-light-card: #ffffff;
  --color-light-border: rgba(0, 0, 0, 0.08);
  --color-light-border-subtle: rgba(0, 0, 0, 0.04);

  --color-text-white: #ffffff;
  --color-text-light-muted: #b8b8b8;
  --color-text-light-dim: #7a7a7a;

  --color-text-dark: #000000;
  --color-text-dark-muted: #4a4a4a;
  --color-text-dark-dim: #717171;

  /* Primary Gold: #dda24d | Secondary Gold: #d4b16b */
  --color-gold: #dda24d;
  --color-gold-hover: #d4b16b;
  --color-gold-muted: #c28f3d;
  --color-gold-glow: rgba(221, 162, 77, 0.3);

  /* Functional Status Colors */
  --color-success: #3e885b;
  --color-error: #b84a4a;

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.25s var(--ease-out-expo);
  --transition-normal: 0.45s var(--ease-out-expo);
  --transition-slow: 0.8s var(--ease-out-expo);

  /* Spacing Scale */
  --space-xs: 0.5rem;    /* 8px */
  --space-sm: 1rem;      /* 16px */
  --space-md: 1.5rem;    /* 24px */
  --space-lg: 2.5rem;    /* 40px */
  --space-xl: 4rem;      /* 64px */
  --space-2xl: 6.5rem;   /* 104px */
  --space-3xl: 9rem;     /* 144px */

  /* Layout */
  --container-max: 1360px;
  --container-narrow: 920px;
  --header-height: 88px;
  --sidebar-width: 440px;
  
  /* Z-Index Hierarchy */
  --z-negative: -1;
  --z-normal: 1;
  --z-header: 1000;
  --z-backdrop: 1010;
  --z-navpanel: 1020;
  --z-whatsapp: 1030;
  --z-modal: 2000;
  --z-lightbox: 2100;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text-dark);
  background-color: var(--color-light);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* Light mode theme (default: background white #ffffff) */
body.theme-light {
  color: var(--color-text-dark);
  background-color: var(--color-light);
}

/* Dark mode theme modifier (shifted: background black #000000) */
body.theme-dark {
  color: var(--color-text-white);
  background-color: var(--color-dark);
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: transparent;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   Typography Hierarchy
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--color-text-dark);
}

body.theme-dark h1,
body.theme-dark h2,
body.theme-dark h3,
body.theme-dark h4,
body.theme-dark h5,
body.theme-dark h6 {
  color: var(--color-text-white);
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  letter-spacing: 0.04em;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  letter-spacing: 0.03em;
}

h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.85rem);
}

h4 {
  font-size: 1.25rem;
  letter-spacing: 0.04em;
}

p {
  margin-bottom: 1.5rem;
  font-weight: 300;
}

p:last-child {
  margin-bottom: 0;
}

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

.text-muted {
  color: var(--color-text-dark-muted);
}

body.theme-dark .text-muted {
  color: var(--color-text-light-muted);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--color-gold);
  margin-bottom: 1rem;
}

.serif-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
}

/* --------------------------------------------------------------------------
   Accessibility & Utilities
   -------------------------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.skip-link {
  position: absolute;
  top: -9999px;
  left: 20px;
  background: var(--color-dark);
  color: var(--color-text-white);
  padding: 12px 24px;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  z-index: 9999;
  border: 1px solid var(--color-gold);
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.section-heading-wrap {
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.section-cta-wrap {
  margin-top: clamp(3rem, 5vw, 4.5rem);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
