/* Shared header, mobile menu and footer, loaded on every page.
   Every selector is scoped to a site-* class so this file cannot change
   page content (the article and thank-you page keep their inline styles
   and responsive.css). Class names avoid those used in responsive.css. */

.site-header,
.site-footer {
  font-family: 'Calibri', 'Segoe UI', sans-serif;
  box-sizing: border-box;
}
.site-header *,
.site-footer * {
  box-sizing: border-box;
}

/* --- Header --- */
.site-header {
  position: relative;
  z-index: 30;
  background: #FFFFFF;
  border-bottom: 1px solid #EDEDED;
}
.site-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: #1A3A2E;
  text-decoration: none;
}
.site-brand:hover {
  color: #1A3A2E;
}
.site-brand img {
  display: block;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
/* WINNOCKS wordmark as an SVG file (outlined from Gill Sans MT, cropped to the
   cap height). Its height is the cap height of the earlier 19px live text:
   19px x 1397/2048 (Gill Sans MT cap height / units per em) = 12.96px. */
.site-brand .site-brand__word {
  width: auto;
  height: calc(19px * 1397 / 2048);
}

/* Menu button: shown below the desktop breakpoint */
.site-menu__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1A3A2E;
  cursor: pointer;
}
.site-menu__bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 24px;
}
.site-menu__bars span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

.site-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-menu__list a {
  color: #3A3A3A;
  font-size: 16px;
  text-decoration: none;
}
.site-menu__list a:hover {
  color: #1A3A2E;
}
/* Current page: text gold #746838 on the white header; brand gold stays for the underline */
.site-menu__list a[aria-current] {
  color: #746838;
  font-weight: 700;
}

/* Phones and tablets: the menu opens as a full-width list under the header */
@media (max-width: 1039px) {
  .site-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-bottom: 1px solid #EDEDED;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  }
  .site-header.is-open .site-menu {
    display: block;
  }
  .site-menu__list a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 12px 20px;
    border-top: 1px solid #F2F2F2;
  }
}

/* Desktop: menu inline on the right, no button */
@media (min-width: 1040px) {
  .site-header__inner {
    padding: 20px 64px;
  }
  .site-menu__toggle {
    display: none;
  }
  .site-menu__list {
    display: flex;
    align-items: center;
    gap: 28px;
  }
  .site-menu__list a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    border-bottom: 2px solid transparent;
  }
  .site-menu__list a[aria-current] {
    border-bottom-color: #A49659;
  }
}
@media (min-width: 1200px) {
  .site-menu__list {
    gap: 36px;
  }
}

/* --- Footer --- */
.site-footer {
  background: #142E24;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.site-footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}
/* Footer wordmark (SVG file): the cap height of the earlier 14px live text,
   14px x 1397/2048 = 9.55px, at the same 80% white as before. */
.site-footer__word {
  display: block;
  width: auto;
  height: calc(14px * 1397 / 2048);
  opacity: 0.8;
}
.site-footer__meta {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
}
@media (min-width: 1040px) {
  .site-footer__inner {
    padding: 28px 64px;
  }
}

/* --- Focus and screen-reader helpers --- */
.site-header a:focus-visible,
.site-header button:focus-visible {
  outline: 3px solid #1A3A2E;
  outline-offset: 2px;
}
.site-footer a:focus-visible {
  outline: 3px solid #FFFFFF;
  outline-offset: 2px;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
