/* ============================================================
   HEALTH PLUS — BASE STYLES
   Light clinical-luxury aesthetic
   ============================================================ */

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

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

/* ── Selection ───────────────────────────────────────────── */
::selection {
  background: var(--teal-light);
  color: var(--navy);
}

::-moz-selection {
  background: var(--teal-light);
  color: var(--navy);
}

/* ── Links & Media ───────────────────────────────────────── */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-smooth);
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input,
select,
textarea {
  font-family: var(--font-body);
  font-size: 16px;
}

ul,
ol {
  list-style: none;
}

/* ── Focus Visible ───────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Page Wrapper ────────────────────────────────────────── */
#page-wrapper {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.35s var(--ease-smooth), transform 0.35s var(--ease-smooth);
}

body.page-loaded #page-wrapper {
  opacity: 1;
  transform: translateY(0);
}

/* ── Typography Scale ────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text-primary);
}

h1 { font-size: clamp(40px, 6vw, 88px); }
h2 { font-size: clamp(32px, 4vw, 56px); }
h3 { font-size: clamp(20px, 2.5vw, 28px); font-weight: 700; }

em {
  font-style: italic;
  color: var(--navy);
}

p {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.75;
}

strong {
  font-weight: 600;
  color: var(--text-primary);
}

/* ── Utility: Visually hidden ────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Utility: Hide text on mobile ────────────────────────── */
@media (max-width: 767px) {
  .hide-mobile-text {
    display: none;
  }
}
