/* =========================================================
   SURGICON 2027 — base.css
   Design tokens (colours, fonts, spacing), reset, typography.
   Change a colour here and it updates across the whole site.
   ========================================================= */

:root {
  /* ---- Brand colours (from the maroon + orange poster) ---- */
  --primary-50:  #FBF0F1;   /* very light maroon tint, soft backgrounds */
  --primary-100: #F2D5D8;   /* light maroon tint, borders */
  --primary-500: #9B2A33;   /* main maroon (logo colour) */
  --primary-600: #82242C;   /* maroon for text and links */
  --primary-800: #6A1C24;   /* deep maroon: navigation bar, CTA band */
  --primary-900: #46121A;   /* darkest maroon: footer */

  --orange-100: #FDEBD3;
  --orange-500: #F39A2E;  /* accent orange */
  --orange-600: #D9661A;  /* orange hover */

  /* ---- Neutrals ---- */
  --ink:      #2B2B2B;    /* body text */
  --ink-soft: #55615D;    /* secondary text */
  --line:     #E1E8E5;    /* borders */
  --surface:  #F5F7F6;    /* alternate section background */
  --white:    #FFFFFF;

  /* ---- Typography ---- */
  --font-heading: "Montserrat", "Segoe UI", Arial, sans-serif;
  --font-body:    "Inter", "Segoe UI", Arial, sans-serif;

  --fs-xs:   0.8125rem;  /* 13px */
  --fs-sm:   0.9375rem;  /* 15px */
  --fs-base: 1rem;       /* 16px */
  --fs-lg:   1.125rem;   /* 18px */
  --fs-xl:   clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --fs-2xl:  clamp(1.6rem, 1.3rem + 1.4vw, 2.4rem);
  --fs-3xl:  clamp(2rem, 1.5rem + 2.2vw, 3.25rem);

  /* ---- Spacing scale ---- */
  --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: 4rem;
  --section-y: clamp(3.5rem, 2.5rem + 4vw, 6rem);

  /* ---- Shape & depth ---- */
  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 6px rgba(70, 18, 26, 0.06);
  --shadow:    0 10px 30px rgba(70, 18, 26, 0.09);
  --shadow-lg: 0 20px 50px rgba(70, 18, 26, 0.14);

  /* ---- Layout ---- */
  --container: 1200px;
  --header-h: 104px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 170px;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul, ol { padding: 0; list-style: none; }

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--ink);
  font-weight: 700;
}
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
p  { max-width: 68ch; }

strong { font-weight: 600; }

/* ---- Accessibility ---- */
:focus-visible {
  outline: 3px solid var(--orange-500);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -60px;
  z-index: 1000;
  padding: var(--space-2) var(--space-4);
  background: var(--primary-800);
  color: var(--white);
  border-radius: var(--radius-sm);
  transition: top 0.2s;
}
.skip-link:focus { top: var(--space-4); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

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