/* ===================================
   GAFFARO - BASE STYLES
   CSS Reset, Variables, Typography
   =================================== */

/* CSS Variables */
:root {
  /* Colors */
  --color-cream: #FAF7F2;
  --color-hazelnut-beige: #E8DCCF;
  --color-sage-green: #BFD8C5;
  --color-chocolate-brown: #6A4B3C;
  --color-caramel: #D9A273;
  --color-dark-text: #2B2B2B;
  --color-light-text: #666666;
  --color-white: #FFFFFF;
  --color-border: #E8DCCF;
  
  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 12px;
  --spacing-lg: 16px;
  --spacing-xl: 24px;
  --spacing-xxl: 32px;
  --spacing-xxxl: 48px;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  
  /* Shadows */
  --shadow-light: 0 2px 8px rgba(107, 75, 60, 0.08);
  --shadow-medium: 0 4px 16px rgba(107, 75, 60, 0.12);
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  
  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  
  /* Line Heights */
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.6;
}

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

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-dark-text);
  background-color: var(--color-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: var(--line-height-tight);
  color: var(--color-dark-text);
  margin-bottom: var(--spacing-lg);
}

h1 {
  font-size: var(--font-size-4xl);
}

h2 {
  font-size: var(--font-size-3xl);
}

h3 {
  font-size: var(--font-size-2xl);
}

h4 {
  font-size: var(--font-size-xl);
}

h5 {
  font-size: var(--font-size-lg);
}

h6 {
  font-size: var(--font-size-base);
}

p {
  margin-bottom: var(--spacing-lg);
  color: var(--color-light-text);
  line-height: var(--line-height-relaxed);
}

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

a:hover {
  color: var(--color-caramel);
}

a:focus {
  outline: 2px solid var(--color-caramel);
  outline-offset: 2px;
}

/* Lists */
ul, ol {
  margin-bottom: var(--spacing-lg);
  padding-left: var(--spacing-xl);
}

li {
  margin-bottom: var(--spacing-sm);
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Forms */
input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--spacing-md);
  background-color: var(--color-white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--color-caramel);
  box-shadow: 0 0 0 3px rgba(217, 162, 115, 0.1);
}

/* Utilities */
.u-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

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

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

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

.u-mb-0 { margin-bottom: 0; }
.u-mb-1 { margin-bottom: var(--spacing-xs); }
.u-mb-2 { margin-bottom: var(--spacing-sm); }
.u-mb-3 { margin-bottom: var(--spacing-md); }
.u-mb-4 { margin-bottom: var(--spacing-lg); }
.u-mb-5 { margin-bottom: var(--spacing-xl); }
.u-mb-6 { margin-bottom: var(--spacing-xxl); }

.u-mt-0 { margin-top: 0; }
.u-mt-1 { margin-top: var(--spacing-xs); }
.u-mt-2 { margin-top: var(--spacing-sm); }
.u-mt-3 { margin-top: var(--spacing-md); }
.u-mt-4 { margin-top: var(--spacing-lg); }
.u-mt-5 { margin-top: var(--spacing-xl); }
.u-mt-6 { margin-top: var(--spacing-xxl); }
