/* Header chrome. Enqueued globally from inc/enqueue.php. */

.fuelsociety-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--fuelsociety-bg);
  border-bottom: 1px solid var(--fuelsociety-border);
}

.fuelsociety-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--fuelsociety-header-height);
}

.fuelsociety-header__logo { display: flex; align-items: center; text-decoration: none; font-weight: 700; }
.fuelsociety-header__logo img { max-height: 52px; width: auto; }

/* margin-left:auto on the nav pushes nav + actions to the right. */
.fuelsociety-nav { margin-left: auto; }

.fuelsociety-nav__list {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.fuelsociety-nav__list a {
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
  color: var(--fuelsociety-text);
  transition: color .2s var(--fuelsociety-ease);
}
.fuelsociety-nav__list a:hover,
.fuelsociety-nav__list .current-menu-item > a { color: var(--fuelsociety-accent); }

.fuelsociety-header__actions { display: flex; align-items: center; gap: 12px; }

/* Burger — hidden on desktop. */
.fuelsociety-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.fuelsociety-burger span {
  display: block;
  height: 2px;
  width: 24px;
  margin-inline: auto;
  background: var(--fuelsociety-text);
  transition: transform .25s var(--fuelsociety-ease), opacity .25s var(--fuelsociety-ease);
}
.fuelsociety-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.fuelsociety-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.fuelsociety-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Off-canvas drawer, slides in from the right. */
.fuelsociety-drawer {
  position: fixed;
  inset: var(--fuelsociety-header-height) 0 0 auto;
  width: min(360px, 86vw);
  z-index: 99;
  background: var(--fuelsociety-card-bg);
  border-left: 1px solid var(--fuelsociety-border);
  padding: 32px 28px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .3s var(--fuelsociety-ease);
}
.fuelsociety-drawer.is-open { transform: translateX(0); }

.fuelsociety-drawer__list { list-style: none; margin: 0; padding: 0; text-align: right; }
.fuelsociety-drawer__list li { border-bottom: 1px solid var(--fuelsociety-border); }
.fuelsociety-drawer__list a { display: block; padding: 14px 0; text-decoration: none; font-size: 1.05rem; }
.fuelsociety-drawer__list .sub-menu { list-style: none; margin: 0; padding-right: 16px; }
.fuelsociety-drawer__list .sub-menu a { font-size: .95rem; color: var(--fuelsociety-text-muted); }

@media (max-width: 992px) {
  .fuelsociety-nav,
  .fuelsociety-header__cta { display: none; }
  .fuelsociety-burger { display: flex; }

  /* The nav carried margin-left:auto; hiding it would collapse the burger back
     next to the logo. Re-assert the push on the actions container. */
  .fuelsociety-header__actions { margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .fuelsociety-drawer, .fuelsociety-burger span { transition: none; }
}

/* ==========================================================================
   Fuel Society — header treatment.
   Translucent + blurred over the page, a circular logo mark beside an Oswald
   wordmark, and the active link underlined in brand rather than recoloured.
   ========================================================================== */

.fuelsociety-header {
  position: fixed;
  inset: 0 0 auto;
  background: color-mix(in srgb, var(--fuelsociety-bg) 80%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: color-mix(in srgb, var(--fuelsociety-border) 50%, transparent);
  box-shadow: 0 1px 2px rgb(0 0 0 / .04);
}

/* The header is fixed, so the document needs the height back. */
body { padding-top: var(--fuelsociety-header-height); }

.fuelsociety-header__logo { gap: 10px; }

.fuelsociety-header__mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.fuelsociety-header__wordmark {
  font-size: 1.5rem;
  letter-spacing: -.03em;
  color: var(--fuelsociety-text);
}

.fuelsociety-nav__list a {
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fuelsociety-text-muted);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}
.fuelsociety-nav__list a:hover { color: var(--fuelsociety-brand); }
.fuelsociety-nav__list .current-menu-item > a {
  color: var(--fuelsociety-brand);
  border-bottom-color: var(--fuelsociety-brand);
}

/* Drawer — the live site's right-hand sheet, on the page background. */
.fuelsociety-drawer {
  background: var(--fuelsociety-bg);
  padding-top: 48px;
}
.fuelsociety-drawer__list { text-align: left; }
.fuelsociety-drawer__list li { border-bottom: 0; }
.fuelsociety-drawer__list a {
  font-family: var(--fuelsociety-font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 10px 0;
}
.fuelsociety-drawer__list .current-menu-item > a { color: var(--fuelsociety-brand); }

.fuelsociety-drawer__hours {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--fuelsociety-border);
}
.fuelsociety-drawer__hours-title {
  font-size: .75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fuelsociety-text-muted);
  margin-bottom: 14px;
}

/* Shared by the drawer and the Find Us card. */
.fuelsociety-hours { margin: 0; display: grid; gap: 6px; }
.fuelsociety-hours__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: .9rem;
}
.fuelsociety-hours__row dt { color: inherit; }
.fuelsociety-hours__row dd { margin: 0; }

/* The nav switches at 768px on the live site, not the starter's 992px. */
@media (min-width: 769px) and (max-width: 992px) {
  .fuelsociety-nav,
  .fuelsociety-header__cta { display: flex; }
  .fuelsociety-burger { display: none; }
}
@media (max-width: 768px) {
  .fuelsociety-nav,
  .fuelsociety-header__cta { display: none; }
  .fuelsociety-burger { display: flex; }
  .fuelsociety-header__actions { margin-left: auto; }
  .fuelsociety-header__wordmark { font-size: 1.25rem; }
}
