/* BlueBark v0 homepage — palette matched to admin.bluebark.net (CR-2026-0221 branding):
 *   primary teal     #167a78
 *   teal hover dark  #0f5957
 *   cream background #f5f4ee
 *   dark text        #1f2937
 *   accent red       #cd3d56
 */

:root {
  --bb-teal: #167a78;
  --bb-teal-dark: #0f5957;
  --bb-cream: #f5f4ee;
  --bb-text: #1f2937;
  --bb-accent: #cd3d56;
  --bb-overlay: rgba(31, 41, 55, 0.42);
  --bb-radius: 4px;
  --bb-max-content: 720px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--bb-text);
  background: var(--bb-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  background: var(--bb-teal);
  color: #fff;
  z-index: 1000;
  border-radius: var(--bb-radius);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("/assets/lockup.png");
  background-size: cover;
  background-position: center center;
  /* iOS Safari background-attachment: fixed has rendering bugs (CR-2026-0221 lesson);
     scroll is the safer default. */
  background-attachment: scroll;
  background-color: var(--bb-cream);
  text-align: center;
  padding: 2rem 1rem;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--bb-overlay);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--bb-max-content);
  color: #fff;
  padding: 2rem 1.25rem;
}

.hero__title {
  font-size: clamp(3rem, 9vw, 6rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0 0 1rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.hero__subhead {
  font-size: clamp(1.05rem, 2.5vw, 1.5rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin: 0 0 2rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.hero__cta {
  display: inline-block;
  padding: 0.9rem 2rem;
  background: var(--bb-teal);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05rem;
  border-radius: var(--bb-radius);
  transition: background-color 0.18s ease, transform 0.18s ease;
}
.hero__cta:hover,
.hero__cta:focus-visible {
  background: var(--bb-teal-dark);
  transform: translateY(-1px);
}
.hero__cta:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

/* ---------- MISSION ---------- */
.mission {
  background: var(--bb-cream);
  padding: clamp(3rem, 8vw, 6rem) 1rem;
}

.mission__inner {
  max-width: var(--bb-max-content);
  margin: 0 auto;
  padding: 0 0.5rem;
}

.mission__heading {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  color: var(--bb-teal);
  margin: 0 0 1.5rem;
}

.mission__lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  margin: 0 0 1.25rem;
}

.mission p {
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
}

.mission strong {
  color: var(--bb-teal-dark);
  font-weight: 600;
}

.mission__contact {
  margin-top: 2.5rem;
}

.mission__cta {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: transparent;
  color: var(--bb-teal);
  text-decoration: none;
  font-weight: 500;
  border: 2px solid var(--bb-teal);
  border-radius: var(--bb-radius);
  transition: background-color 0.18s ease, color 0.18s ease;
}
.mission__cta:hover,
.mission__cta:focus-visible {
  background: var(--bb-teal);
  color: #fff;
}
.mission__cta:focus-visible {
  outline: 3px solid var(--bb-accent);
  outline-offset: 3px;
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--bb-text);
  color: #f1f1eb;
  padding: 2rem 1rem;
  text-align: center;
}

.site-footer__inner {
  max-width: var(--bb-max-content);
  margin: 0 auto;
}

.site-footer__copy {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.site-footer__tagline {
  margin: 0;
  font-size: 0.875rem;
  color: #d6d6cf;
  letter-spacing: 0.02em;
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- HIGH CONTRAST OS ---------- */
@media (prefers-contrast: more) {
  .hero__overlay {
    background: rgba(0, 0, 0, 0.6);
  }
  .hero__cta:focus-visible {
    outline-width: 4px;
  }
}
