/* Shared palette for navigation and footer on the public grooming pages. */
:root {
  --action-orange: #ac4113;
  --action-orange-hover: #903606;
}

.nav .nav-inner > a.brand[href] {
  color: var(--action-orange);
}

.nav #primary-menu a:not(.btn),
.nav #primary-menu .sub-toggle {
  color: var(--ink);
}

.nav #primary-menu a.nav-phone {
  color: var(--action-orange);
}

.nav #primary-menu a[aria-current="page"],
.nav #primary-menu .sub-toggle[aria-current="page"] .label {
  font-weight: 800;
  /* The base nav suppresses link decorations with !important. */
  text-decoration: underline var(--brand) 3px !important;
  text-underline-offset: .3em;
}

.nav #primary-menu .chev-icon {
  color: var(--action-orange);
  background: #fff4eb;
  box-shadow: none;
}

.nav #primary-menu .has-submenu:is(:hover, :focus-within, .open) .chev-icon {
  color: var(--action-orange-hover);
  background: #ffe8d6;
}

.nav #primary-menu > .btn {
  /* The base mobile layout forces white button lettering. */
  color: var(--action-orange) !important;
  background: white;
  border-color: transparent;
  box-shadow: inset 0 0 0 1px currentColor;
  text-shadow: none;
}

.nav #primary-menu > .btn:is(:hover, :active) {
  color: var(--action-orange-hover) !important;
  background: #fff4eb;
}

.nav #primary-menu a:not(.btn):is(:hover, :focus-visible),
.nav #primary-menu .sub-toggle:is(:hover, :focus-visible, [aria-expanded="true"]),
.nav .nav-inner > a.brand[href]:hover {
  color: var(--action-orange-hover);
}

.nav :is(a, button):focus-visible {
  outline: 3px solid #47372e;
  outline-offset: 2px;
}

@media (max-width: 1279px) {
  .nav #primary-menu :is(a, button):focus-visible {
    outline-offset: -3px;
  }
}

/* Older page layouts use both footer and #my-footer. */
:is(footer, #my-footer) .footer .footer-grid :is(.brand, .tagline, .meta a) {
  color: var(--action-orange);
}

.footer .meta :is(a[href^="sms:"], a[href^="tel:"], a[href^="mailto:"]) {
  text-decoration: underline;
  text-underline-offset: .15em;
}

:is(footer, #my-footer) .footer .footer-grid .meta a:is(:hover, :focus-visible, :active) {
  color: var(--action-orange-hover);
  text-decoration: underline;
  text-underline-offset: .15em;
}

:is(footer, #my-footer) .footer .cta[href="/get-started"],
footer #fd-form-66a7d8a9a2bad32552aa57da [data-ff-el="submit"] {
  border: 1px solid var(--action-orange);
  background: white;
  color: var(--action-orange);
  box-shadow: none;
}

:is(footer, #my-footer) .footer .cta[href="/get-started"]:is(:hover, :active),
footer #fd-form-66a7d8a9a2bad32552aa57da [data-ff-el="submit"]:is(:hover, :active) {
  border-color: var(--action-orange-hover);
  background: #fff6ed;
  color: var(--action-orange-hover);
}

.footer a:focus-visible,
footer #fd-form-66a7d8a9a2bad32552aa57da [data-ff-el="submit"]:focus-visible {
  outline: 3px solid var(--action-orange-hover);
  outline-offset: 3px;
}

/* The older headers position the menu button over the right edge of the row. */
@media (max-width: 400px) {
  body:not(:is(.home-page, .get-started, .city-page, .rates-packages-page, .service-area-page)) .nav .nav-inner > .brand {
    margin-left: 0;
    gap: 8px;
    min-width: 0;
    max-width: calc(100% - 44px);
  }

  body:not(:is(.home-page, .get-started, .city-page, .rates-packages-page, .service-area-page)) .nav .brand-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
  }

  body:not(:is(.home-page, .get-started, .city-page, .rates-packages-page, .service-area-page)) .nav .brand span {
    font-size: clamp(13px, 4.2vw, 16px);
  }
}
