/**
 * The GreaterHub Custom Theme - Base Styles & Design Tokens
 * 
 * @package TheGreaterHub
 */

:root {
  /* Colors */
  --color-primary: #0d7899;
  --color-primary-hover: #0a5f79;
  --color-primary-dark: #073c58;
  --color-primary-light: #e8f6fa;
  --color-primary-tint: #f0f9fc;

  --color-accent: #11a4bd;
  --color-accent-hover: #0e8ca2;

  --color-text: #10223d;
  --color-text-muted: #627084;
  --color-heading: #0b2342;

  --color-bg: #ffffff;
  --color-bg-soft: #f5f9fc;
  --color-bg-alt: #eef5f8;

  --color-border: #dfe8ef;
  --color-border-light: #edf3f7;

  --color-success: #1b8f68;
  --color-error: #d93838;

  /* Shadows */
  --shadow-card: 0 12px 35px rgba(13, 50, 75, 0.08);
  --shadow-card-hover: 0 20px 45px rgba(13, 50, 75, 0.12);
  --shadow-soft: 0 6px 20px rgba(13, 50, 75, 0.06);
  --shadow-nav: 0 4px 25px rgba(11, 35, 66, 0.08);

  /* Border Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  /* Layout */
  --container: 1240px;
  --header-height: 84px;

  /* Transitions */
  --transition-fast: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 280ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Typography Stack */
  --font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family-base);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-heading);
  font-family: var(--font-family-base);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.25rem, 4vw + 1rem, 3.5rem); }
h2 { font-size: clamp(1.85rem, 3vw + 0.5rem, 2.75rem); }
h3 { font-size: clamp(1.35rem, 2vw + 0.25rem, 1.75rem); }
h4 { font-size: 1.25rem; font-weight: 600; }
h5 { font-size: 1.1rem; font-weight: 600; }
h6 { font-size: 1rem; font-weight: 600; }

p {
  margin-bottom: 1.25rem;
}
p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover, a:focus {
  color: var(--color-primary-hover);
}

img, svg, picture, video {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font: inherit;
}

/* Accessibility & Screen Readers */
.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-link:focus {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.5rem;
  background-color: var(--color-primary);
  color: #ffffff;
  border-radius: var(--radius-sm);
  outline: 3px solid var(--color-accent);
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

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

/* Utility Backgrounds & Text */
.bg-soft {
  background-color: var(--color-bg-soft);
}
.bg-alt {
  background-color: var(--color-bg-alt);
}
.text-center {
  text-align: center;
}
.text-muted {
  color: var(--color-text-muted);
}
