

.ca-nav a,
.ca-nav button {
  display: inline-block;
  padding: 4px 2px;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--ca-body);
  font-size: var(--ca-text-md);
  font-weight: 600;
}
.ca-nav a:hover,
.ca-nav button:hover,
.ca-nav .current-menu-item > a { color: var(--ca-orange); }

/* --- Footer ---------------------------------------------------------- */

.ca-footer {
  background: var(--ca-teal);
  color: var(--ca-white);
}
.ca-footer a { color: var(--ca-white); font-size: 14px; }
.ca-footer a:hover { color: var(--ca-white); text-decoration: underline; }

.ca-footer__inner { padding-block: clamp(36px, 5vw, 60px) 36px; }

/*
 * Columns centre themselves whatever the count. With four assigned menus you
 * get four across; with two you get two, centred rather than hugging the left
 * with a gap where the others would have been.
 */

.ca-footer__intro p {
  color: var(--ca-on-dark);
  font-size: 14px;
  line-height: 1.6;
  margin: 14px 0 0;
}

.ca-footer__heading {
  font-family: var(--ca-font-mono);
  font-size: var(--ca-text-xs);
  letter-spacing: var(--ca-tracking-eyebrow);
  text-transform: uppercase;
  color: var(--ca-on-dark-soft);
  margin-bottom: 14px;
}

.ca-footer__cols ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 0; padding: 0;
  list-style: none;
}

.ca-footer__legal {
  border-top: 1px solid var(--ca-on-dark-line);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--ca-on-dark);
  font-size: var(--ca-text-sm);
  font-family: var(--ca-font-mono);
}

/* Location pages carry a fixed action bar; keep content clear of it. */
body.ca-has-actionbar { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
.ca-header__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-block: 14px 12px;
  flex-direction: column;
}.ca-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  justify-content: center;
}

/*
 * The logo is bounded, not sized.
 *
 * `height: Xpx` fights the global `img { max-width: 100% }`: on a narrow screen
 * the width is capped while the height is not, so the logo stretches
 * vertically. Two hard constraints against one flexible axis will always
 * distort something.
 *
 * `max-height` with both dimensions auto lets the browser scale it
 * proportionally to fit inside whichever limit it meets first — full size when
 * there is room, narrower when there is not, and never out of shape.
 */
.ca-brand img {
  height: auto;
  width: auto;
  max-height: var(--ca-logo-height, 56px);
  max-width: 100%;
  object-fit: contain;
}

.ca-brand--sm img {
  max-height: calc(var(--ca-logo-height, 56px) * 0.6);
}

.ca-nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 22px);
  justify-content: center;
  width: 100%;
}.ca-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 22px);
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
  justify-content: center;
}

@media (max-width: 820px) {
  .ca-header__inner { flex-direction: column; }
  .ca-nav ul { justify-content: stretch; }
}.ca-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ca-cream);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--ca-dur-fast) var(--ca-ease),
              border-color var(--ca-dur-fast) var(--ca-ease),
              padding var(--ca-dur-fast) var(--ca-ease);
}

/*
 * Once scrolled, the header needs an edge — over a photo or a tinted band it
 * would otherwise have nothing separating it from the content behind it.
 */
.ca-header.is-stuck {
  border-bottom-color: var(--ca-hairline);
  box-shadow: var(--ca-shadow-sm);
}

/*
 * The shrink is desktop only.
 *
 * On a phone the header must not change height when you scroll. If it does,
 * tapping Menu resizes it again, the page shifts, and the scroll handler reads
 * that as scrolling and closes the menu the instant it opened — which made the
 * button look dead once you had scrolled.
 *
 * A previous attempt kept the logo full size *while the menu was open*, which
 * was worse: it meant opening the menu grew the logo, causing exactly the
 * resize it was supposed to prevent.
 *
 * Above the breakpoint there is no toggle to break, and a two-row header is
 * genuinely a lot to carry down a long page, so the shrink stays there.
 */
@media (min-width: 821px) {
  .ca-header.is-stuck .ca-header__inner { padding-block: 8px 6px; }
  /* The shrink percentage comes from Settings → Brand. */
  .ca-header.is-stuck .ca-brand img {
    max-height: calc(var(--ca-logo-height, 56px) * var(--ca-logo-shrink, 0.62));
  }
}

/* Reserve the header's height for anchor jumps. */
html { scroll-padding-top: calc(var(--ca-logo-height, 56px) + 76px); }

@media (max-width: 820px) {
  html { scroll-padding-top: calc(var(--ca-logo-height, 56px) + 56px); }
}

@media (prefers-reduced-motion: reduce) {
  .ca-header { transition: none; }
}

/* The admin bar already occupies the top of the viewport. */
.admin-bar .ca-header { top: 32px; }

@media (max-width: 782px) {
  .admin-bar .ca-header { top: 46px; }
}

/* ==========================================================================
   Footer

   The intro leads, the menus follow in one row, and that row breaks to a
   column only when it genuinely runs out of width.
   ========================================================================== */

.ca-footer__intro {
  max-width: 420px;
  margin: 0 auto 34px;
  text-align: center;
}

.ca-footer__tagline {
  margin: 12px 0 0;
  color: var(--ca-on-dark-soft);
  font-size: var(--ca-text-base);
  line-height: 1.55;
}

/*
 * The menus share a row for as long as they fit.
 *
 * `flex-basis: 0` with `flex-grow: 1` divides the row evenly no matter how
 * many menus are assigned, and `min-width` is what decides when to wrap: below
 * it a column cannot hold its longest link on one line, so the row breaks.
 * That is a real threshold rather than a guessed breakpoint, which is why it
 * behaves the same with two menus as with four.
 */
.ca-footer__cols {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(20px, 4vw, 48px);
  margin-bottom: 32px;
}

.ca-footer__col {
  flex: 1 1 0;
  min-width: 140px;
  text-align: center;
}

/* One menu left on its own row should not stretch across the whole footer. */
.ca-footer__col:only-child { flex: 0 1 240px; }

@media (max-width: 520px) {
  /* Below this a row of two is already cramped, so each takes a line. */
  .ca-footer__col { flex-basis: 100%; }
}

/* ==========================================================================
   Mobile navigation

   Deliberately last in the file.

   These rules were sitting above the desktop nav rules, so a later
   `.ca-nav { display: flex }` overrode the media query's `display: none` and
   the menu never collapsed — the toggle appeared and did nothing visible.
   Same specificity, later wins; nothing about the media query changes that.

   Anything that has to beat an unconditional rule belongs after it.
   ========================================================================== */

.ca-nav-toggle { display: none; }

@media (max-width: 820px) {

  .ca-nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 2px solid var(--ca-ink);
    border-radius: var(--ca-r-pill);
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 700;
    color: var(--ca-ink);
    cursor: pointer;
  }

  .ca-header__inner {
    flex-direction: column;
    gap: 8px;
  }

  .ca-nav {
    display: none;
    width: 100%;
    order: 3;
  }
  .ca-nav.is-open { display: block; }

  .ca-nav ul {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding-block: 8px;
  }

  .ca-nav li + li { border-top: 1px solid var(--ca-hairline); }

  .ca-nav a,
  .ca-nav button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 14px 2px;
  }
}

/*
 * State codes in the footer link to their section on the locations page.
 *
 * They have to look exactly like the copyright line beside them, which means
 * undoing `.ca-footer a` — that sets white at 14px for the menu columns, and
 * the legal row is smaller mono text in a softer colour. Inheriting every one
 * of those from the row is what keeps the two halves of the line matching.
 *
 * The doubled class beats `.ca-footer a` on specificity without !important.
 */
.ca-footer__legal .ca-footer__state.ca-footer__state {
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-decoration: none;
}

/* Underlined only on hover, so nothing moves and nothing is underlined at rest. */
.ca-footer__legal .ca-footer__state.ca-footer__state:hover,
.ca-footer__legal .ca-footer__state.ca-footer__state:focus-visible {
  color: inherit;
  text-decoration: underline;
}
