/* The main site's header, copied into the order app so both look the same.
   Source: site/css/styles.css (header rules, compact header on phones and computers).
   The order app's root font is 20px and the site's is 16px, so sizes here are in px
   (site rem x 16). Media queries use rem, which browsers read as 16px on both. */
.site-header.tf-site {
  position: sticky; top: 0; z-index: 40;
  background: #fff;
  border-bottom: 3px solid var(--gold);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
}
.site-header.tf-site .header-inner {
  width: min(100% - 36px, 1152px);
  margin-inline: auto;
  padding: 11.2px 0 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 9.6px 20px;
}
.site-header.tf-site .logo { display: block; line-height: 0; text-decoration: none; }
.site-header.tf-site .logo img { width: 196px; height: auto; display: block; max-width: 100%; }

.site-header.tf-site .nav-checkbox {
  position: absolute; opacity: 0; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
}
.site-header.tf-site .nav-button {
  display: inline-flex; align-items: center; gap: 7.2px;
  cursor: pointer; font-weight: 600; font-size: 14.4px;
  color: var(--green-deep); border: 2px solid var(--green-deep);
  padding: 6.4px 11.2px; background: #fff; border-radius: 2px; line-height: 1;
  margin: 0; letter-spacing: 0;
}
.site-header.tf-site .nav-checkbox:focus-visible + .nav-button { outline: 3px solid var(--gold); outline-offset: 3px; }
.site-header.tf-site .nav-button-bars {
  display: block; width: 16px; height: 2px; background: var(--green-deep);
  box-shadow: 0 -5px 0 var(--green-deep), 0 5px 0 var(--green-deep);
}
.site-header.tf-site .site-nav { display: none; flex-basis: 100%; }
.site-header.tf-site .nav-checkbox:checked ~ .site-nav { display: block; }
.site-header.tf-site .site-nav ul { list-style: none; margin: 0; padding: 6.4px 0 2.4px; }
.site-header.tf-site .site-nav a {
  display: block; padding: 12.8px 2.4px; text-decoration: none;
  color: #1a1a1a; font-weight: 600; font-size: 15.2px;
  border-bottom: 1px solid #e0d8c6;
}
.site-header.tf-site .site-nav a[aria-current="page"] {
  color: var(--green-deep);
  box-shadow: inset 3px 0 0 var(--gold);
  padding-left: 10.4px;
}
.site-header.tf-site .header-phone {
  display: inline-block;
  min-height: 0;
  padding: 0;
  font-weight: 700;
  font-size: 14.08px;
  color: var(--green-deep);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.site-header.tf-site .header-phone:hover { color: var(--gold-text); }

@media (min-width: 64rem) {
  .site-header.tf-site .nav-button { display: none; }
  .site-header.tf-site .site-nav { display: block; flex-basis: auto; }
  .site-header.tf-site .site-nav ul { display: flex; gap: 3.2px 16.8px; padding: 0; align-items: center; }
  .site-header.tf-site .site-nav a { border-bottom: 2px solid transparent; padding: 7.2px 0; font-size: 14.4px; }
  .site-header.tf-site .site-nav a[aria-current="page"] {
    box-shadow: none; padding-left: 0; border-bottom-color: var(--gold);
  }
  .site-header.tf-site .site-nav a:hover, .site-header.tf-site .site-nav a:focus-visible {
    color: var(--green-deep); border-bottom-color: var(--gold);
  }
  .site-header.tf-site .header-phone { font-size: 15.2px; }
  /* Compact header on computers (about 110px at 1280), same as the site. */
  .site-header.tf-site .header-inner { padding: 6.4px 0; }
  .site-header.tf-site .logo img { width: 140px; }
}
/* Compact header on phones and tablets: logo, phone and Menu on one row. */
@media (max-width: 63.99rem) {
  .site-header.tf-site .header-inner { padding: 7.2px 0; gap: 6.4px 12px; flex-wrap: wrap; }
  .site-header.tf-site .logo { order: 0; }
  .site-header.tf-site .logo img { width: 150px; }
  .site-header.tf-site .header-phone { order: 1; margin-left: auto; font-size: 14.4px; padding: 8.8px 1.6px; }
  .site-header.tf-site .nav-button { order: 2; padding: 8.8px 11.2px; }
  .site-header.tf-site .site-nav { order: 3; }
}
@media (max-width: 39.99rem) {
  .site-header.tf-site .logo img { width: 118px; }
  .site-header.tf-site .header-phone { font-size: 13.76px; }
  .site-header.tf-site .nav-button { font-size: 13.76px; padding: 8px 9.6px; }
}
@media (max-width: 22rem) {
  .site-header.tf-site .logo img { width: 100px; }
  .site-header.tf-site .header-phone { font-size: 12.8px; }
}
