/* ========================================================================
   DESIGN SYSTEM - Site Graziela Simões
   MVP 1.5 - Terrosa Minimalist Palette
   ======================================================================== */

:root {
  /* ====================================================================
     COLOR PALETTE - Terrosa Minimalist
     ==================================================================== */

  /* Primary - Main Background */
  --color-bg-main: #DCD6CD;       /* Light earthy beige (body background) */

  /* Secondary - Wood Accent */
  --color-wood-medium: #B69B7B;   /* Medium wood tone (buttons, links, accents) */

  /* Tertiary - Sage Accent */
  --color-accent-sage: #888B78;   /* Sober sage green (header/footer backgrounds) */

  /* Quaternary - Text */
  --color-text-primary: #33210E;  /* Dark brown almost black (all text) */


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

  /* Font Family */
  --font-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                  "Helvetica Neue", Arial, sans-serif;

  /* Font Sizes */
  --font-size-5xl: 3rem;       /* 48px - Hero titles */
  --font-size-4xl: 2.5rem;     /* 40px - Page titles */
  --font-size-3xl: 2rem;       /* 32px - Large headings */
  --font-size-2xl: 1.75rem;    /* 28px - Medium headings */
  --font-size-xl: 2rem;        /* 32px - Changed from 2.5rem */
  --font-size-lg: 1.5rem;      /* 24px - Changed from 2rem */
  --font-size-md: 1.2rem;      /* 19.2px - Changed from 1.5rem */
  --font-size-base: 1rem;      /* 16px - Body text */
  --font-size-sm: 0.875rem;    /* 14px - Small text, captions */

  /* Font Weights */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Line Heights */
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.6;
  --line-height-loose: 1.8;


  /* ====================================================================
     SPACING SYSTEM - 8px Grid
     ==================================================================== */

  --spacing-xs: 0.25rem;   /* 4px */
  --spacing-sm: 0.5rem;    /* 8px */
  --spacing-md: 1rem;      /* 16px */
  --spacing-lg: 1.5rem;    /* 24px */
  --spacing-xl: 2rem;      /* 32px */
  --spacing-2xl: 3rem;     /* 48px */
  --spacing-3xl: 4rem;     /* 64px */


  /* ====================================================================
     ELEVATION SYSTEM - Box Shadows
     ==================================================================== */

  /* Level 0 - No shadow (default state) */
  --elevation-0: none;

  /* Level 1 - Subtle depth (cards resting state) */
  --elevation-1: 0 2px 8px rgba(51, 33, 14, 0.08);

  /* Level 2 - Medium depth (cards hover state) */
  --elevation-2: 0 4px 16px rgba(51, 33, 14, 0.12);

  /* Level 3 - High depth (modals, dropdowns) */
  --elevation-3: 0 8px 24px rgba(51, 33, 14, 0.16);


  /* ====================================================================
     GRADIENTS - For fluid visual feel
     ==================================================================== */

  /* Subtle background gradients - increased contrast */
  --gradient-bg-warm: linear-gradient(135deg, var(--color-bg-main) 0%, #B5A690 100%);
  --gradient-bg-cool: linear-gradient(135deg, var(--color-bg-main) 0%, #B8B6A5 100%);

  /* Header/Footer gradients - increased contrast */
  --gradient-sage: linear-gradient(135deg, var(--color-accent-sage) 0%, #4F5045 100%);
  --gradient-sage-light: linear-gradient(135deg, #98A080 0%, var(--color-accent-sage) 100%);
  --gradient-header: linear-gradient(135deg, #A8AB96 0%, var(--color-accent-sage) 50%, #68695C 100%);

  /* Card/Button gradients - increased contrast */
  --gradient-wood: linear-gradient(135deg, var(--color-wood-medium) 0%, #7A6040 100%);
  --gradient-wood-light: linear-gradient(135deg, #E5D0A8 0%, var(--color-wood-medium) 100%);

  /* Button gradients - original tone left, slightly darker right */
  --gradient-btn-primary: linear-gradient(135deg, var(--color-wood-medium) 0%, #A08968 100%);
  --gradient-btn-secondary: linear-gradient(135deg, var(--color-accent-sage) 0%, #75786A 100%);
  --gradient-btn-sage: linear-gradient(135deg, #888B78 0%, #75786A 100%);

  /* Overlay gradients - increased opacity */
  --gradient-overlay-dark: linear-gradient(180deg, rgba(51, 33, 14, 0) 0%, rgba(51, 33, 14, 0.85) 100%);
  --gradient-overlay-light: linear-gradient(180deg, rgba(220, 214, 205, 0) 0%, rgba(220, 214, 205, 0.95) 100%);


  /* ====================================================================
     TRANSITIONS
     ==================================================================== */

  --transition-fast: 200ms ease;
  --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms ease;


  /* ====================================================================
     BORDERS & RADIUS
     ==================================================================== */

  --border-width: 1px;
  --border-color: rgba(51, 33, 14, 0.1);
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 12px;
  --border-radius-full: 9999px;


  /* ====================================================================
     Z-INDEX LAYERS
     ==================================================================== */

  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-toast: 600;
}


/* ========================================================================
   MOBILE RESPONSIVE ADJUSTMENTS
   ======================================================================== */

@media (max-width: 768px) {
  :root {
    /* Reduce font sizes for mobile */
    --font-size-xl: 2rem;        /* 32px */
    --font-size-lg: 1.75rem;     /* 28px */
    --font-size-md: 1.25rem;     /* 20px */
    --font-size-base: 1rem;      /* 16px (unchanged) */
    --font-size-sm: 0.875rem;    /* 14px (unchanged) */

    /* Reduce spacing for mobile */
    --spacing-2xl: 2rem;         /* 32px (reduced from 48px) */
    --spacing-3xl: 2.5rem;       /* 40px (reduced from 64px) */
  }
}


/* ========================================================================
   BASE STYLES
   ======================================================================== */

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

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-primary);
  background-color: var(--color-bg-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* Sticky footer layout */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Main content should grow to push footer down */
main {
  flex: 1;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  color: var(--color-text-primary);
}

h1 { font-size: var(--font-size-xl); }
h2 { font-size: var(--font-size-lg); }
h3 { font-size: var(--font-size-md); }

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

a:hover {
  text-decoration: underline;
}

button {
  font-family: var(--font-primary);
  cursor: pointer;
  border: none;
  transition: var(--transition-fast);
}

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