/* BlueBark v9 — VISUAL HIERARCHY TWEAK on the v8 ORIGINAL-COMPOSITE foundation.
 *
 * Operator feedback on v8: "logo + background bigger; Our Mission box smaller.
 * The logo is the focus, then the eyes go down to the mission statement."
 *
 * v8 used `width: 100%; height: auto` on the hero img, so on portrait
 * phones the 1.79:1 composite scaled down to ~26% of viewport height and
 * the mission box dominated. v9 fixes it:
 *   - Hero is now `height: 65vh` with `object-fit: cover` so the composite
 *     fills the upper viewport on every device (60-70% target)
 *   - Mission box max-width 540px (was 800), padding cut roughly in half,
 *     headings + body trimmed one type step. Reads as secondary content.
 *   - Hero + mission palettes UNCHANGED from v8 (cream substrate; white
 *     mission inner card with subtle shadow). DO NOT regress on v8 wins.
 *
 * Cache-bust: styles-v8.css -> styles-v9.css. Hero asset (hero-v8.jpg)
 * unchanged — same 1920x1072 798KB JPEG. Only display sizing changes.
 *
 * Removed from v8: nothing. Pure additive tweak on layout values + an
 * extra `.hero` height/overflow rule + an `object-fit` image rule.
 */

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: #f5f4ee;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #1f2937;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  padding: 0.75rem 1rem;
  background: #167a78;
  color: #fff;
  z-index: 1000;
  border-radius: 4px;
}

/* ---- HERO (v9: dominant above-the-fold) ---- */
.hero {
  width: 100%;
  height: 65vh;
  height: 65svh;          /* iOS Safari address-bar-aware fallback */
  overflow: hidden;
  margin: 0;
  padding: 0;
  background: #f5f4ee;    /* matches asset substrate; any object-fit
                             letterbox blends invisibly */
}

.hero__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* ---- MISSION (v9: secondary, compact) ---- */
.mission {
  background: #f5f4ee;
  padding: 2.25rem 1.5rem;        /* was 4rem 1.5rem */
  display: flex;
  justify-content: center;
}

.mission__inner {
  background: #ffffff;
  max-width: 540px;               /* was 800px */
  width: 100%;
  padding: 1.5rem 1.75rem;        /* was 2.75rem 2.5rem */
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(14, 47, 44, 0.08);
}

.mission__inner h2 {
  font-size: 1.375rem;            /* was 1.625rem */
  font-weight: 700;
  color: #167a78;
  margin: 0 0 0.625rem;
  letter-spacing: -0.01em;
}

.mission__inner p {
  font-size: 1rem;                /* was 1.125rem */
  line-height: 1.6;
  margin: 0;
  color: #1f2937;
}

/* ---- FOOTER (unchanged) ---- */
footer {
  text-align: center;
  padding: 1.5rem;
  color: #6b7c78;
  background: #f5f4ee;
}

footer small {
  font-size: 0.875rem;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 480px) {
  .mission {
    padding: 1.75rem 1rem;
  }
  .mission__inner {
    padding: 1.25rem 1.25rem;
    max-width: 92vw;
  }
  .mission__inner h2 {
    font-size: 1.25rem;
  }
  .mission__inner p {
    font-size: 0.9375rem;
  }
}

@media (max-width: 480px) and (orientation: landscape) {
  /* Landscape phone: viewport is short; relax hero so mission stays visible */
  .hero {
    height: 80vh;
    height: 80svh;
  }
}

/* ---- ACCESSIBILITY MEDIA QUERIES ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-contrast: more) {
  body { background: #ffffff; }
  .hero { background: #ffffff; }
  .mission { background: #ffffff; }
  .mission__inner {
    background: #f5f4ee;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(0, 0, 0, 0.15);
  }
  footer { background: #ffffff; color: #1f2937; }
}
