/* ==========================================================================
   Airlife Care — Base Reset, Typography & Layout Utilities
   ========================================================================== */

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

ul, ol {
  list-style: none;
}

/* Focus Accessibility */
:focus-visible {
  outline: 2px solid var(--red-600);
  outline-offset: 2px;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 9999;
  background: var(--red-600);
  color: var(--text-on-red);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

/* Section Rhythm */
.section {
  padding-block: var(--space-16);
}

.section--white {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-default);
  border-bottom: 1px solid var(--border-default);
}

.section--red-soft {
  background-color: var(--bg-red-soft);
  border-top: 1px solid var(--border-red);
  border-bottom: 1px solid var(--border-red);
}

/* Typography Hierarchy */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-primary);
  letter-spacing: -0.025em;
  line-height: 1.18;
}

.section-header {
  max-width: 720px;
  margin-bottom: var(--space-10);
}

.section-header--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--red-700);
  background: var(--red-50);
  border: 1px solid var(--border-red);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-4);
}

.section-title {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 800;
  margin-bottom: var(--space-3);
}

.section-subtitle {
  font-size: 1.03rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

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

@media (max-width: 768px) {
  .section {
    padding-block: var(--space-12);
  }
  .container {
    padding-inline: var(--space-4);
  }
  body {
    padding-bottom: 72px; /* Space for sticky mobile call bar */
  }
}

/* Ensure anchor targets clear the sticky navigation bar */
section[id], article[id] {
  scroll-margin-top: calc(var(--header-height) + 18px);
}
