/* =========================================
   GAMD - Global Association of Master and Doctor
   base.css — Reset, design tokens, typography
   ========================================= */

:root {
  /* Brand */
  --color-navy-900: #061327;
  --color-navy-800: #0a2540;
  --color-navy-700: #0f3358;
  --color-navy-600: #184576;
  --color-brand-500: #0066ff;
  --color-brand-400: #3b8aff;
  --color-brand-300: #6ea8ff;
  --color-accent-500: #ffb800;
  --color-accent-400: #ffc940;

  /* Neutrals */
  --color-white: #ffffff;
  --color-gray-50: #f7f9fc;
  --color-gray-100: #eef2f7;
  --color-gray-200: #dde3ec;
  --color-gray-300: #c2cad6;
  --color-gray-400: #94a0b3;
  --color-gray-500: #6b7689;
  --color-gray-600: #4a5568;
  --color-gray-700: #2d3748;
  --color-gray-800: #1a202c;
  --color-black: #000000;

  /* Status */
  --color-success: #10b981;
  --color-warn: #f59e0b;
  --color-danger: #ef4444;

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #061327 0%, #0a2540 40%, #0066ff 100%);
  --gradient-card: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  --gradient-accent: linear-gradient(90deg, #0066ff 0%, #3b8aff 100%);
  --gradient-gold: linear-gradient(90deg, #ffb800 0%, #ffc940 100%);

  /* Typography */
  --font-sans: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --font-display: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(10, 37, 64, 0.06);
  --shadow-md: 0 6px 16px rgba(10, 37, 64, 0.08);
  --shadow-lg: 0 16px 40px rgba(10, 37, 64, 0.12);
  --shadow-glow: 0 0 40px rgba(0, 102, 255, 0.35);

  /* Layout */
  --container-max: 1280px;
  --container-pad: clamp(1rem, 4vw, 2.5rem);
  --header-h: 72px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 200ms;
  --dur-base: 400ms;
  --dur-slow: 800ms;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--font-sans);
  color: var(--color-gray-800);
  background: var(--color-white);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}
img, svg, video, canvas { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; }
ul, ol { list-style: none; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-navy-900);
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.25rem, 5vw, 4rem); }
h2 { font-size: clamp(1.875rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }
p { color: var(--color-gray-700); }

.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-brand-500);
  margin-bottom: var(--space-3);
}
.eyebrow-gold { color: var(--color-accent-500); }
.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--color-gray-600);
  max-width: 65ch;
}

/* Layout helpers */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; position: relative; }
.section-tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section-dark {
  background: var(--gradient-hero);
  color: var(--color-white);
}
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--color-white); }
.section-dark p { color: rgba(255,255,255,0.78); }
.section-gray { background: var(--color-gray-50); }
.grid { display: grid; gap: var(--space-6); }
.text-center { text-align: center; }
.muted { color: var(--color-gray-500); }

/* Focus */
:focus-visible {
  outline: 3px solid var(--color-brand-400);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

::selection { background: var(--color-brand-500); color: var(--color-white); }

@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;
  }
}
