/* ===================================
   GLOBAL STYLES
   Shared variables, resets, and base styles
   =================================== */

/* CSS Variables */
:root {
  --ink: #2C2C2C;
  --muted: #545454;
  --paper: #F0E5D1;
  --gold: #B8860B;
  --nav-bg: #EBD9B8;
  --nav-border: rgba(44, 44, 44, 0.12);
  --card-bg: #FAF6EC;
  --card-border: rgba(44, 44, 44, 0.08);
  --footer-bg: #E8D5B7;
  --link-color: rgba(26, 26, 26, 0.75);
  --link-hover: #000000;
  --text-primary: #1A1A1A;
  --text-secondary: #2C2C2C;
  --service-bg: #FAF6EC;
  --approach-bg: #F0E5D1;
}

[data-theme="dark"] {
  --ink: #e9e9e9;
  --muted: #b3b3b3;
  --paper: #1A1A1A;
  --gold: #C8A64A;
  --nav-bg: #1a1a1aef;
  --nav-border: rgba(35, 33, 33, 0.707);
  --card-bg: transparent;
  --card-border: transparent;
  --footer-bg: #1A1A1A;
  --link-color: rgba(255, 255, 255, 0.7);
  --link-hover: #FFFFFF;
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.95);
  --service-bg: #1A1A1A;
  --approach-bg: #1A1A1A;
}

/* Base Styles */
html, body {
  overflow-x: clip;
  height: 100%;
}

html {
  background: var(--paper);
  color: var(--ink);
  transition: background-color 0.3s ease;
}

body {
  font-family: 'Outfit', ui-sans-serif, system-ui, -apple-system, sans-serif;
  margin: 0;
  background: var(--paper);
  transition: background-color 0.3s ease;
  position: relative;
  min-height: 100%;
}

/* Subtle paper texture */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.03;
  pointer-events: none;
  z-index: 0;
  background-image: 
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(44, 44, 44, 0.03) 2px, rgba(44, 44, 44, 0.03) 4px),
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(44, 44, 44, 0.03) 2px, rgba(44, 44, 44, 0.03) 4px);
}

[data-theme="dark"] body::before {
  display: none;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .branch {
    transition: none !important;
    stroke-dashoffset: 0 !important;
  }
  
  .hero-art {
    transform: translate(-50%, -50%) !important;
  }
}
