/* ============================================
   MIRAMAR VILLA 499 — DESIGN SYSTEM
   Theme: "Caribbean Dusk"
   ============================================ */

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

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

body {
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* ---------- Custom Properties ---------- */
:root {
  /* Primary Palette */
  --deep-ocean: #0F2027;
  --midnight-teal: #1A3A40;
  --caribbean-teal: #2C7873;
  --warm-sand: #F5EFE0;
  --bleached-linen: #FAF7F2;
  --white: #FFFFFF;

  /* Accent Palette */
  --golden-hour: #D4A853;
  --golden-hour-dark: #C49643;
  --sunset-coral: #E07A5F;
  --seafoam: #A8D5BA;
  --dusk-rose: #C9ADA7;

  /* Text Colors */
  --text-heading: #1A1A1A;
  --text-body: #3D3D3D;
  --text-muted: #6B7280;
  --text-light: #F5EFE0;
  --text-white: #FFFFFF;

  /* Spacing Scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15, 32, 39, 0.05);
  --shadow-md: 0 4px 12px rgba(15, 32, 39, 0.08);
  --shadow-lg: 0 8px 24px rgba(15, 32, 39, 0.12);
  --shadow-xl: 0 16px 48px rgba(15, 32, 39, 0.16);
  --shadow-glow: 0 0 40px rgba(44, 120, 115, 0.15);
  --shadow-card: 0 2px 16px rgba(15, 32, 39, 0.06);

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-natural: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --duration-fast: 200ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;
  --duration-reveal: 700ms;

  /* Container */
  --container-max: 1280px;
  --container-narrow: 960px;
  --container-padding: var(--space-xl);

  /* Header */
  --header-height: 80px;
}

/* ---------- Typography ---------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600;700&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&display=swap');

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-body);
  background-color: var(--warm-sand);
}

.font-display {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

.font-accent {
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--text-heading);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 600;
}

h4 {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 500;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.6;
}

.text-xs {
  font-size: 0.75rem;
  line-height: 1.5;
}

.caption {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--caribbean-teal);
}

.tagline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.125rem, 1.75vw, 1.5rem);
  line-height: 1.6;
  color: var(--text-muted);
}

.pull-quote {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.4;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.container-narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--space-5xl) 0;
}

.section-dark {
  background-color: var(--deep-ocean);
  color: var(--text-light);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--text-white);
}

.section-dark .caption {
  color: var(--golden-hour);
}

.section-alt {
  background-color: var(--bleached-linen);
}

/* ---------- Utility Classes ---------- */
.text-center { text-align: center; }
.text-light { color: var(--text-light); }
.text-muted { color: var(--text-muted); }
.text-gold { color: var(--golden-hour); }
.text-teal { color: var(--caribbean-teal); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }
.gap-2xl { gap: var(--space-2xl); }

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--duration-reveal) var(--ease-natural),
              transform var(--duration-reveal) var(--ease-natural);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }
.reveal-delay-5 { transition-delay: 500ms; }

/* ---------- Reduced Motion ---------- */
@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;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
