/* Site header with the "Climb to the Top!" logo (November 2026).
   Loaded after styles.css by head.php; markup in header.php. The old .header-container
   rules in styles.css are no longer used.

   Phones and tablets (up to 991px): "Clear Morning", a drawn pale sky with snowy peaks, everything stacked.
   Desktop (992px and up): "Event Day", the event photo with the logo centred over a white card
   that holds the title, quote button and phone numbers.

   Root font size is Bootstrap 3's 10px, so 2.6rem = 26px.
   Colours from the logo: navy #0a1c4a, red #c8001a (text) / #d4001a (button). */

.site-header {
  --navy: #0a1c4a;
  --red: #c8001a;
  --btn: #d4001a;
  --btn-hover: #b50016;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  position: relative;
  overflow: hidden;
  padding: 24px 0 96px;
  background: #bfe2ff url(../img/header/summit-day.svg) center bottom / auto 300px no-repeat;
  color: var(--navy);
  font-family: "Baloo 2", sans-serif;
  text-align: center;
}

/* ---------- Logo ---------- */

.site-header__logo a { display: inline-block; vertical-align: top; }
.site-header__logo picture { display: block; }
.site-header__logo img {
  display: block;
  width: 100%;
  max-width: 400px;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 12px 18px rgba(10, 28, 74, .22));
  transition: transform 300ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .site-header__logo a:hover img { transform: scale(.97); }
}

/* ---------- Text ---------- */

.site-header__title {
  margin: 18px 0 0;
  font-family: inherit;
  font-weight: 800;
  font-size: 2.7rem;
  line-height: 1.04;
  color: var(--navy);
}
.site-header__title span { display: block; }

.site-header__phones { margin-top: 4px; }
.site-header__phone {
  margin: 18px 0 0;
  font-weight: 700;
  font-size: 2.7rem;
  line-height: 1.22;
  color: var(--red);
}
.site-header__phone a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: .16em;
  transition: text-decoration-color 160ms ease;
}
/* styles.css removes underlines on hover/focus with !important, so this needs it too. */
.site-header__phone a:hover,
.site-header__phone a:focus-visible {
  color: var(--navy);
  text-decoration: underline !important;
  text-decoration-color: currentColor;
}

/* styles.css sets a:focus { outline: none }; keyboard users get a visible ring here. */
.site-header a:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 4px;
  border-radius: 6px;
}

/* ---------- Quote button (steady colour; the old one flashed nonstop) ---------- */

.site-header__quote {
  position: relative;
  display: inline-block;
  margin-top: 20px;
  padding: 12px 26px 9px 28px;
  border-radius: 10px;
  background: var(--btn);
  color: #fff;
  font-weight: 800;
  font-size: 2.1rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 10px 22px -10px rgba(1, 19, 58, .5);
  transition: transform 160ms var(--ease-out), background-color 160ms ease;
}
.site-header__quote,
.site-header__quote:hover,
.site-header__quote:focus,
.site-header__quote:visited { color: #fff; }
.site-header__quote i { position: relative; top: -1px; margin-left: 6px; }
@media (hover: hover) and (pointer: fine) {
  .site-header__quote:hover { background: var(--btn-hover); transform: translateY(-1px); }
}
.site-header__quote:active { transform: scale(.97); transition-duration: 100ms; }
.site-header__quote:focus-visible { outline-offset: 5px; }

@media (prefers-reduced-motion: reduce) {
  .site-header__logo img,
  .site-header__quote { transition: none; }
  .site-header__logo a:hover img,
  .site-header__quote:hover,
  .site-header__quote:active { transform: none; }
}

/* ---------- Phones ---------- */

@media (max-width: 767px) {
  .site-header__logo img { max-width: 300px; }
  .site-header__title { font-size: min(2.9rem, 8.4vw); }
  .site-header__phone { font-size: 2.6rem; }
}

/* ---------- Desktop: Event Day ---------- */

@media (min-width: 992px) {
  .site-header {
    padding: 20px 0 14px;
    background-color: #5d9d43;
    background-image: url(../img/header/event-1440.jpg);
    background-image: image-set(url(../img/header/event-1440.webp) 1x, url(../img/header/event-2172.webp) 2x);
    background-position: center 35%;
    background-size: cover;
    background-repeat: no-repeat;
    font-family: "Titan One", sans-serif;
  }
  .site-header__logo img { filter: drop-shadow(0 12px 18px rgba(10, 28, 74, .35)); }

  /* White card with a navy edge and a white rim, cut like the border around the logo. */
  .site-header__card {
    display: inline-flex;
    align-items: stretch;
    margin-top: 8px;
    padding: 19px 31px;
    border: 3px solid var(--navy);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 0 0 6px #fff, 0 22px 40px -16px rgba(10, 28, 74, .6);
    text-align: left;
  }
  .site-header__intro {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }
  .site-header__title {
    margin: 0;
    font-weight: 400;
    font-size: 2.3rem;
    line-height: 1.15;
  }
  .site-header__title span {
    margin-top: 2px;
    font-family: "Oleo Script", cursive;
    font-weight: 700;
    font-size: 3.1rem;
    line-height: 1.05;
    color: var(--red);
  }
  .site-header__quote {
    margin-top: 14px;
    padding: 13px 24px 12px 26px;
    font-weight: 400;
    font-size: 1.7rem;
    letter-spacing: .04em;
  }
  .site-header__phones {
    display: flex;
    align-items: center;
    margin: 0 0 0 34px;
    padding-left: 32px;
    border-left: 3px solid #e3e9f4;
  }
  .site-header__phone {
    margin: 0;
    font-weight: 400;
    font-size: 2.3rem;
    line-height: 1.45;
  }
}

@media (min-width: 1441px) {
  /* Wide screens: use the larger photo even at standard pixel density. */
  /* image-set, so browsers without WebP keep the JPG from the rule above. */
  .site-header { background-image: image-set(url(../img/header/event-2172.webp) 1x); }
}
