/* =================================================================
   YOUR LIFE YOUR HOME - DESIGN SYSTEM
   Effortless. Organic. Deeply Intentional.
   ================================================================= */

:root {
  /* ============================================
     COLOR PALETTE - Foundation of Brand Identity
     ============================================ */
  
  /* Primary Colors */
  --olive-green: #6B6A45;
  --taupe-beige: #C8B497;
  --warm-cream: #F6F2E8;
  
  /* Extended Palette */
  --olive-green-dark: #5A5938;
  --olive-green-light: #7D7C5A;
  --cream-light: #FDFBF7;
  --beige-light: #D9CDB9;
  
  /* Neutrals */
  --charcoal-brown: #3A352C;
  --warm-gray: #7B7766;
  --light-cream: #EFE9DC;
  --soft-white: #FFFFFF;
  
  /* Semantic Colors */
  --success: #4A7C59;
  --warning: #B8860B;
  --error: #A0413D;
  --info: #5B7C8D;
  
  /* ============================================
     SPACING SCALE - Calm, Intentional Rhythm
     ============================================ */
  
  --space-xs: 0.5rem;      /* 8px */
  --space-sm: 0.75rem;     /* 12px */
  --space-md: 1rem;        /* 16px */
  --space-lg: 1.5rem;      /* 24px */
  --space-xl: 2rem;        /* 32px */
  --space-2xl: 3rem;       /* 48px */
  --space-3xl: 4rem;       /* 64px */
  --space-4xl: 6rem;       /* 96px */
  
  /* ============================================
     TYPOGRAPHY - Clear Hierarchy
     ============================================ */
  
  /* Font Families */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  
  /* Font Sizes */
  --text-xs: 0.75rem;      /* 12px */
  --text-sm: 0.875rem;     /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg: 1.125rem;     /* 18px */
  --text-xl: 1.25rem;      /* 20px */
  --text-2xl: 1.5rem;      /* 24px */
  --text-3xl: 1.875rem;    /* 30px */
  --text-4xl: 2.25rem;     /* 36px */
  --text-5xl: 3rem;        /* 48px */
  
  /* Line Heights */
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;
  
  /* Font Weights */
  --weight-light: 300;
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  
  /* ============================================
     SHADOWS - Depth and Elevation
     ============================================ */
  
  --shadow-xs: 0 1px 2px rgba(58, 53, 44, 0.05);
  --shadow-sm: 0 1px 3px rgba(58, 53, 44, 0.08), 0 1px 2px rgba(58, 53, 44, 0.06);
  --shadow-md: 0 4px 6px rgba(58, 53, 44, 0.07), 0 2px 4px rgba(58, 53, 44, 0.06);
  --shadow-lg: 0 10px 15px rgba(58, 53, 44, 0.1), 0 4px 6px rgba(58, 53, 44, 0.05);
  --shadow-xl: 0 20px 25px rgba(58, 53, 44, 0.1), 0 10px 10px rgba(58, 53, 44, 0.04);
  --shadow-2xl: 0 25px 50px rgba(58, 53, 44, 0.15);
  
  /* ============================================
     BORDERS & RADIUS - Soft and Organic
     ============================================ */
  
  --border-radius-sm: 0.375rem;   /* 6px */
  --border-radius-md: 0.5rem;     /* 8px */
  --border-radius-lg: 0.75rem;    /* 12px */
  --border-radius-xl: 1rem;       /* 16px */
  --border-radius-2xl: 1.5rem;    /* 24px */
  --border-radius-full: 9999px;
  
  --border-width-thin: 1px;
  --border-width-base: 2px;
  --border-width-thick: 3px;
  
  /* ============================================
     TRANSITIONS - Smooth and Natural
     ============================================ */
  
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slower: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  
  /* ============================================
     Z-INDEX SCALE - Layering System
     ============================================ */
  
  --z-base: 1;
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
}

/* =================================================================
   GLOBAL RESETS & BASE STYLES
   ================================================================= */

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--charcoal-brown);
  background-color: var(--soft-white);
  min-height: 100vh;
}

/* =================================================================
   TYPOGRAPHY SYSTEM
   ================================================================= */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--weight-normal);
  line-height: var(--leading-tight);
  color: var(--charcoal-brown);
  margin-bottom: var(--space-md);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); font-weight: var(--weight-semibold); }

p {
  margin-bottom: var(--space-md);
  line-height: var(--leading-relaxed);
}

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

a:hover {
  color: var(--olive-green-dark);
}

/* =================================================================
   CONTAINER SYSTEM - Calm, Spacious Layouts
   ================================================================= */

.container {
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-xl);
  padding-right: var(--space-xl);
}

.container-narrow {
  max-width: 1200px;
}

.container-wide {
  max-width: 1600px;
}

@media (max-width: 768px) {
  .container {
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
  }
}

/* =================================================================
   SECTION SPACING - Breathing Room
   ================================================================= */

.section {
  padding-top: var(--space-4xl);
  padding-bottom: var(--space-4xl);
}

.section-sm {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

.section-lg {
  padding-top: 8rem;
  padding-bottom: 8rem;
}

@media (max-width: 768px) {
  .section {
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-3xl);
  }
  
  .section-sm {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
  }
  
  .section-lg {
    padding-top: var(--space-4xl);
    padding-bottom: var(--space-4xl);
  }
}

/* =================================================================
   CARD COMPONENTS - Elevated and Refined
   ================================================================= */

.card {
  background: var(--soft-white);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-sm);
  padding: var(--space-xl);
  transition: all var(--transition-base);
  border: var(--border-width-thin) solid rgba(107, 106, 69, 0.08);
}

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

.card-header {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: var(--border-width-thin) solid var(--light-cream);
}

.card-title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  color: var(--charcoal-brown);
  margin: 0;
}

.card-body {
  color: var(--warm-gray);
  line-height: var(--leading-relaxed);
}

@media (max-width: 768px) {
  .card {
    padding: var(--space-lg);
    border-radius: var(--border-radius-lg);
  }
}

/* =================================================================
   BUTTON SYSTEM - Clear and Confident
   ================================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  line-height: 1;
  text-decoration: none;
  border: none;
  border-radius: var(--border-radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--olive-green) 0%, var(--olive-green-dark) 100%);
  color: var(--soft-white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  background: linear-gradient(135deg, var(--olive-green-dark) 0%, var(--olive-green) 100%);
}

.btn-secondary {
  background: var(--soft-white);
  color: var(--olive-green);
  border: var(--border-width-base) solid var(--olive-green);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background: var(--warm-cream);
  border-color: var(--olive-green-dark);
  color: var(--olive-green-dark);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: var(--text-lg);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: var(--text-sm);
}

@media (max-width: 768px) {
  .btn {
    padding: 0.875rem 1.25rem;
    font-size: var(--text-sm);
  }
}

/* =================================================================
   FORM ELEMENTS - Clear and Supportive
   ================================================================= */

.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--charcoal-brown);
  margin-bottom: var(--space-sm);
  letter-spacing: 0.02em;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--charcoal-brown);
  background-color: var(--soft-white);
  border: var(--border-width-base) solid var(--light-cream);
  border-radius: var(--border-radius-md);
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--olive-green);
  box-shadow: 0 0 0 3px rgba(107, 106, 69, 0.1);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* =================================================================
   UTILITY CLASSES
   ================================================================= */

/* Spacing */
.mt-xs { margin-top: var(--space-xs); }
.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); }
.mt-2xl { margin-top: var(--space-2xl); }
.mt-3xl { margin-top: var(--space-3xl); }

.mb-xs { margin-bottom: var(--space-xs); }
.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); }
.mb-2xl { margin-bottom: var(--space-2xl); }
.mb-3xl { margin-bottom: var(--space-3xl); }

/* Text Alignment */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Display */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }

/* Flexbox Utilities */
.flex-row { flex-direction: row; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

/* =================================================================
   RESPONSIVE UTILITIES
   ================================================================= */

@media (max-width: 768px) {
  .mobile-hidden { display: none !important; }
  .mobile-block { display: block !important; }
  .mobile-flex { display: flex !important; }
  .mobile-text-center { text-align: center !important; }
}

@media (min-width: 769px) {
  .desktop-hidden { display: none !important; }
}

