/* Cure Me BD — base/reset styles */

*, *::before, *::after { box-sizing: border-box; }

/* overflow-x:hidden lives on html, NOT body — body clipping breaks position:sticky
   on the header. This still contains the 1px-ish overflow from the .hero-slider's
   100vw breakout (see components.css) without affecting sticky positioning. */
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 var(--space-3);
  color: var(--color-primary);
}

/* Page titles stay restrained (var(--text-4xl) is reserved for the hero
   slide's own heading, set explicitly in components.css). */
h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-xl); }
h3 { font-size: var(--text-lg); }
h4 { font-size: var(--text-base); }

p { margin: 0 0 var(--space-3); color: var(--color-text); }

ul { margin: 0; padding: 0; list-style: none; }

button, input, select, textarea { font-family: inherit; font-size: inherit; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

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

::selection { background: var(--color-secondary); color: var(--color-primary-dark); }
