/* ============================================
   BASE RESET & GLOBAL ELEMENTS
   ============================================ */

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

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

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  color: var(--ink);
  background: var(--off-white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul, ol { list-style: none; }

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--fw-heading);
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

p { color: var(--ink-soft); }

/* Visible keyboard focus everywhere */
:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--lavender); color: var(--navy); }

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 12px 20px;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---- Layout helpers ---- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-lg);
}

@media (min-width: 768px) {
  .container { padding: 0 var(--sp-2xl); }
}

.section {
  padding: var(--sp-3xl) 0;
  position: relative;
}

@media (max-width: 767px) {
  .section { padding: var(--sp-2xl) 0; }
}

.section--tight { padding: var(--sp-2xl) 0; }

.section--navy { background: var(--navy); color: var(--white); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy p { color: rgba(255,255,255,0.78); }

.section--tint-lavender { background: var(--lavender-tint); }
.section--tint-teal { background: var(--teal-tint); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-small);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--coral-deep);
  background: var(--coral-tint);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--sp-md);
}

.eyebrow--teal { color: var(--teal-deep); background: var(--teal-tint); }
.eyebrow--lavender { color: var(--navy); background: var(--lavender-tint); }
.eyebrow--yellow { color: #8A6A14; background: #FCF3DC; }

.section-head {
  max-width: 680px;
  margin-bottom: var(--sp-2xl);
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-head p { font-size: var(--fs-body-lg); margin-top: var(--sp-sm); }

.text-center { text-align: center; }

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