/* Base styles and variables */
@font-face {
    font-family: "Inter";
    src: url('../fonts/Inter.woff2');
    font-display: swap;
  }
:root {
  /* Color system */
  --color-primary: #34C759;
  --color-primary-dark: #2BA84A;
  --color-primary-light: #5FD67E;
  --color-gr: rgb(163, 182, 28);
  --color-bl: rgb(1, 113, 187);
  --color-or: rgb(240, 121, 1);
  
  --color-secondary: #007AFF;
  --color-secondary-dark: #0062CC;
  --color-secondary-light: #4D9FFF;
  
  --color-accent: #FF9500;
  --color-accent-dark: #CC7800;
  --color-accent-light: #FFAA33;
  
  --color-success: #34C759;
  --color-warning: #FF9F0A;
  --color-error: #FF3B30;
  
  /* Neutral tones */
  --color-white: #FFFFFF;
  --color-gray-100: #F5F5F7;
  --color-gray-200: #E5E5EA;
  --color-gray-300: #D1D1D6;
  --color-gray-400: #C7C7CC;
  --color-gray-500: #AEAEB2;
  --color-gray-600: #8E8E93;
  --color-gray-700: #636366;
  --color-gray-800: #48484A;
  --color-gray-900: #3A3A3C;
  --color-black: #1D1D1F;
  
  /* Font settings */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  --font-size-base: 16px;
  --line-height-body: 1.5;
  --line-height-heading: 1.2;
  
  /* Spacing system (8px) */
  --space-1: 0.5rem;    /* 8px */
  --space-2: 1rem;      /* 16px */
  --space-3: 1.5rem;    /* 24px */
  --space-4: 2rem;      /* 32px */
  --space-5: 2.5rem;    /* 40px */
  --space-6: 3rem;      /* 48px */
  --space-8: 4rem;      /* 64px */
  --space-10: 5rem;     /* 80px */
  
  /* Other variables */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  --header-height: 4rem;
  --container-max-width: 1200px;
  --transition-speed: 0.3s;
  
  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

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

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  line-height: var(--line-height-body);
  color: var(--color-black);
  background-color: var(--color-white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  padding-top: var(--header-height);
}

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

a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  line-height: var(--line-height-heading);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: var(--space-2);
}

/* Focus styles for accessibility */
:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

/* Lists */
ul, ol {
  padding-left: var(--space-3);
}

li {
  margin-bottom: var(--space-1);
}

/* For screen readers only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Buttons */
button {
  cursor: pointer;
  font-family: var(--font-family);
  border: none;
  background: none;
  font-size: 1rem;
  transition: all var(--transition-speed) ease;
}

/* Elevate element on hover */
.elevate-on-hover {
  transition: transform var(--transition-speed) ease;
}

.elevate-on-hover:hover {
  transform: translateY(-4px);
}

/* Color divider */
.color-divider {
  display: flex;
  height: 4px;
  width: 100%;
  margin: var(--space-6) 0 0;
}

.divider-section {
  height: 100%;
  flex: 1;
}

.divider-section.blue {
  background-color: var(--color-bl);
}

.divider-section.green {
  background-color: var(--color-gr);
}

.divider-section.orange {
  background-color: var(--color-or);
}