/* ================================================
   Waikato Website - Base Styles
   CSS Variables, Reset, Typography
   ================================================ */

/* Import Rubik font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;700&display=swap');

/* ================================================
   CSS Custom Properties (Design Tokens)
   ================================================ */
:root {
  /* Colors */
  --color-primary: #2c262d;
  --color-primary-dark: #201c21;
  --color-primary-darker: #161316;
  --color-accent: #fa8700;
  --color-accent-dark: #d3770d;
  --color-white: #fff;
  --color-gray-50: #f8f8f8;
  --color-gray-100: #f5f5f5;
  --color-gray-200: #ebebeb;
  --color-gray-300: #c4c4c4;
  --color-gray-400: #595959;
  --color-gray-500: #2c262d;
  --color-link: #2266e3;
  --color-error: #9a212a;
  --color-success: #28a745;
  
  /* Typography */
  --font-family: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size-base: 16px;
  --font-size-lg: 20px;
  --font-size-xl: 24px;
  --font-size-2xl: 32px;
  --font-size-3xl: 36px;
  --font-size-4xl: 48px;
  
  --line-height-xs: 16px;
  --line-height-sm: 20px;
  --line-height-base: 24px;
  --line-height-lg: 28px;
  --line-height-xl: 32px;
  
  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  --spacing-3xl: 60px;
  
  /* Borders */
  --border-radius-sm: 3px;
  --border-radius-md: 5px;
  --border-radius-lg: 10px;
  --border-radius-full: 100px;
  
  /* Shadows */
  --shadow-sm: 0 0.3px 0.9px rgba(0,0,0,0.1), 0 1.6px 3.6px rgba(0,0,0,0.13);
  --shadow-md: 0 0.6px 1.8px rgba(0,0,0,0.1), 0 3.2px 7.2px rgba(0,0,0,0.13);
  --shadow-lg: 0 4.8px 14.4px rgba(0,0,0,0.18), 0 25.6px 57.6px rgba(0,0,0,0.22);
  
  /* Layout */
  --container-max-width: 1440px;
  --header-height: 80px;
  --sidebar-width: 280px;
}

/* ================================================
   CSS Reset
   ================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-primary);
  background-color: var(--color-white);
  min-height: 100vh;
}

/* ================================================
   Typography
   ================================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

h1 {
  font-size: var(--font-size-4xl);
  line-height: 56px;
}

h2 {
  font-size: var(--font-size-3xl);
  line-height: 44px;
}

h3 {
  font-size: var(--font-size-xl);
  line-height: var(--line-height-lg);
}

h4 {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-base);
}

h5 {
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
}

h6 {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-sm);
}

p {
  margin-bottom: var(--spacing-md);
}

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

a:hover {
  text-decoration: underline;
}

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

ul, ol {
  list-style: none;
}

/* ================================================
   Utility Classes
   ================================================ */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

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

.text-primary { color: var(--color-primary); }
.text-accent { color: var(--color-accent); }
.text-muted { color: var(--color-gray-400); }
.text-error { color: var(--color-error); }

.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.font-normal { font-weight: 400; }

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

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