/* Scoped navigation styles; the existing desktop design is preserved. */
.site-header [hidden] {
  display: none !important;
}

.menu-toggle {
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--pine);
  border-radius: 5px;
  background: #fff;
  color: var(--pine);
  font: 700 14px 'DM Sans', Arial, sans-serif;
  cursor: pointer;
}

.menu-icon {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  flex-shrink: 0;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.menu-icon::before {
  top: -6px;
}

.menu-icon::after {
  top: 6px;
}

.menu-toggle[aria-expanded="true"] .menu-icon {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.menu-toggle:focus-visible,
.menu a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

@media (max-width: 1100px) {
  .site-header .header-row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
  }

  .site-header .brand {
    min-width: 0;
    gap: 10px;
  }

  .menu-toggle:not([hidden]) {
    display: flex;
    margin-left: auto;
    flex-shrink: 0;
  }

  .site-header .menu {
    flex: 0 0 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 60vh;
    max-height: 60dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-top: 1px solid #e2e8de;
  }

  .site-header .menu a {
    display: block;
    min-height: 44px;
    padding: 10px 12px;
    border-bottom: 1px solid #e2e8de;
    font-size: 15px;
    overflow-wrap: anywhere;
  }

  .site-header .menu a:hover,
  .site-header .menu a[aria-current="page"] {
    background: var(--cream);
  }
}

@media (max-width: 400px) {
  .site-header .brand img {
    width: 48px;
    height: 48px;
  }

  .site-header .brand strong {
    font-size: 17px;
  }

  .site-header .brand small {
    font-size: 10px;
    letter-spacing: 1px;
  }
}

/* Mobile: hide the desktop-only green announcement bar. */
@media (max-width: 1100px) {
  .topbar { display: none !important; }
  .site-header .menu[hidden] { display: none !important; }
}

/* Desktop navigation must stay on one row. */
@media (min-width: 1101px) {
  .site-header .header-row { gap: 12px; }
  .site-header .brand { flex: 0 0 205px; gap: 8px; }
  .site-header .brand img { width: 70px; height: 70px; }
  .site-header .brand strong { font-size: 19px; }
  .site-header .menu { flex: 1 1 auto; flex-wrap: nowrap; gap: clamp(6px, .75vw, 12px); justify-content: flex-end; }
  .site-header .menu a { white-space: nowrap; font-size: clamp(11px, .85vw, 13px); }
}
.topbar .container { align-items: center; }
.topbar-facebook { margin-left: 12px; font-size: 16px; line-height: 1; text-decoration: none; color: #fff; }
.topbar-facebook:hover { color: var(--lime); }
@media (max-width: 1100px) {
  .topbar { display: none !important; }
  .site-header .menu[hidden] { display: none !important; }
}

/* FINAL HEADER LAYOUT: phone and Facebook grouped at right; no second nav row. */
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
}
.topbar .container > span:first-child { margin-right: auto; }
.topbar .container > a { flex: 0 0 auto; }
.topbar .topbar-facebook { margin-left: 0; display: inline-flex; align-items: center; justify-content: center; width: 28px; min-height: 20px; }
.site-header .header-row { min-width: 0; }
@media (min-width: 1101px) {
  .site-header .header-row { flex-direction: row; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 16px; min-height: 98px; padding: 0; }
  .site-header .brand { flex: 0 0 190px; min-width: 0; gap: 9px; }
  .site-header .brand img { flex: 0 0 65px; width: 65px; height: 65px; }
  .site-header .brand strong { font-size: 18px; line-height: 1.12; }
  .site-header .brand small { font-size: 9px; letter-spacing: 1.2px; }
  .site-header .menu { flex: 0 1 auto; display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; justify-content: flex-end; gap: clamp(7px, .85vw, 13px); min-width: 0; }
  .site-header .menu a { flex: 0 0 auto; white-space: nowrap; font-size: clamp(10px, .93vw, 13px); line-height: 1.4; }
}
@media (max-width: 1100px) {
  .topbar { display: none !important; }
  .site-header .header-row { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .site-header .menu { flex: 0 0 100%; }
}

/* Keep the business name on exactly two lines at all screen sizes. */
.site-header .brand strong {
  white-space: nowrap;
  display: block;
}
.site-header .brand span {
  flex: 0 0 auto;
  min-width: max-content;
}
@media (max-width: 1100px) {
  .site-header .brand { flex: 0 1 auto; }
  .site-header .brand img { flex-shrink: 0; }
}
@media (max-width: 400px) {
  .site-header .brand { gap: 6px; }
  .site-header .brand img { width: 42px; height: 42px; flex-basis: 42px; }
  .site-header .brand strong { font-size: 15px; }
  .site-header .brand small { font-size: 8px; letter-spacing: .6px; }
  .site-header .header-row { gap: 6px; }
  .site-header .menu-toggle { padding: 8px; gap: 6px; }
}
