/* ============================================
   Nudgio - Main Stylesheet
   ============================================ */

/* CSS Variables - Brand Colors */
:root {
  --primary: #1A73E8;
  --primary-dark: #1558B0;
  --primary-light: #E3F0FF;
  --text-primary: #1A1A1A;
  --text-secondary: #4F4F4F;
  --background: #F7F9FC;
  --surface: #FFFFFF;
  --border: #D6D6D6;
  --success: #27AE60;
  --success-light: #DFFBEA;
  --warning: #FFB400;
  --warning-light: #FFF4D6;
  --error: #E53935;
  --error-light: #FFE1E1;
}

/* Typography - Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=Source+Serif+Pro:wght@400;600&display=swap');

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-primary);
  background-color: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

h1 {
  font-size: 28px;
  line-height: 34px;
  font-weight: 700;
}

h2 {
  font-size: 24px;
  line-height: 30px;
}

h3 {
  font-size: 20px;
  line-height: 26px;
}

h4 {
  font-size: 18px;
  line-height: 24px;
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

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

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-wide {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Sections */
section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 32px;
  line-height: 40px;
  margin-bottom: 0.5rem;
}

.section-title p {
  font-size: 16px;
  line-height: 22px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Grid System */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Utility Classes */
.text-center {
  text-align: center;
}

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

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

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* Responsive Breakpoints */
@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
  
  body {
    font-size: 16px;
    line-height: 22px;
  }
  
  h1 {
    font-size: 48px;
    line-height: 56px;
  }
  
  h2 {
    font-size: 36px;
    line-height: 44px;
  }
  
  section {
    padding: 6rem 0;
  }
  
  .section-title h2 {
    font-size: 40px;
    line-height: 48px;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
  
  section {
    padding: 8rem 0;
  }
}

/* Accessibility */
.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;
}

/* Skip to main content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary);
  color: var(--surface);
  padding: 8px 16px;
  text-decoration: none;
  z-index: 1000;
}

.skip-link:focus {
  top: 0;
}

