/* Design tokens.
   Brand blues measured from dentegris.com.tr on 2026-11-01 (header/footer gradient, footer bottom band).
   Accents and text/background colours from the design spec §6. */
:root {
  /* Brand */
  --color-primary: #0077af;
  --color-primary-light: #01b2d3;
  --color-primary-dark: #006c9f;
  --color-footer-bottom: #006797;
  --gradient-brand: linear-gradient(#01b2d3, #0077af); /* as measured on the live header */
  /* Header bar: same two stops, but the light stop fades out early so white nav text
     (vertically centred) sits on >= #0077af and keeps WCAG AA contrast. */
  --gradient-header: linear-gradient(180deg, var(--color-primary-light) 0%, var(--color-primary) 40%, var(--color-primary-dark) 100%);
  --gradient-footer: linear-gradient(180deg, var(--color-primary-light) 0%, var(--color-primary) 64%);
  --gradient-header-original: linear-gradient(180deg, var(--color-primary-light), var(--color-primary));

  /* Accents (category colour coding) */
  --color-accent-bio: #e08121;     /* biyomateryal (orange) */
  --color-accent-implant: #86b946; /* implant (green) */
  --color-accent-blue: #2f77b5;    /* protetik (blue) */
  --color-accent-teal: #1d9a9a;    /* cerrahi ve enstrümanlar (teal) */
  /* Light tints for placeholders and soft surfaces */
  --color-accent-implant-tint: #eef5e2;
  --color-accent-bio-tint: #fcefdf;
  --color-accent-blue-tint: #e3edf7;
  --color-accent-teal-tint: #dcf0f0;

  /* Text & surfaces */
  --color-text: #363636;
  --color-text-muted: #5e5e5e;     /* 6.4:1 on white */
  --color-heading: #1f2d3a;
  --color-bg: #ffffff;
  --color-bg-soft: #f4f4f2;
  --color-border: #e2e4e6;
  --color-on-brand: #ffffff;
  --color-link: var(--color-primary);         /* 4.9:1 on white */
  --color-link-hover: var(--color-primary-dark);
  --color-focus: #12263a;          /* focus ring on light surfaces */
  --color-focus-on-brand: #ffffff; /* focus ring on blue surfaces */

  /* Typography */
  --font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: clamp(1.625rem, 1.2rem + 1.6vw, 2.25rem);
  --text-3xl: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  --leading: 1.65;
  --leading-tight: 1.2;

  /* Spacing (4px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;

  /* Shape & depth */
  --radius: 6px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgb(16 42 67 / 0.08);
  --shadow-md: 0 10px 30px rgb(16 42 67 / 0.14);

  /* Layout */
  --container: 980px; /* the original theme content width */
  --gutter: 1.25rem;
  --topbar-h: 2.25rem;
  --mainbar-h: 7.75rem; /* 124px, as the original */
  --mainbar-h-compact: 4rem;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --duration: 200ms;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --duration: 0ms;
  }
}
