/* =============================================================================
   THEME FOOTER + CTA BANNER
   ============================================================================= */

/* ---------------------------------------------------------------------------
   CTA Banner
   --------------------------------------------------------------------------- */
.theme-footer-banner {
  background: var(--orange-500);
  color: var(--brand-white);
  position: relative;
  overflow: hidden;
}

.theme-footer-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(255, 255, 255, 0.18), transparent 60%),
    radial-gradient(60% 100% at 0% 100%, rgba(0, 0, 0, 0.22), transparent 60%);
  pointer-events: none;
}

.theme-footer-banner__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-lg);
  max-width: var(--container-max);
  margin-inline: auto;
  padding: var(--space-2xl) var(--section-pad-x);
}

.theme-footer-banner__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  max-width: 38rem;
}

.theme-footer-banner .theme-eyebrow {
  color: rgba(255, 255, 255, 0.85);
}

.theme-footer-banner .theme-eyebrow::before {
  background: rgba(255, 255, 255, 0.5);
}

.theme-footer-banner__headline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: var(--step-3);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--brand-white);
  font-variation-settings:
    "wdth" 90,
    "wght" 800,
    "slnt" -10;
}

.theme-footer-banner__headline em {
  font-style: italic;
  text-decoration: underline;
  text-decoration-thickness: 0.16em;
  text-underline-offset: 0.12em;
  text-decoration-color: rgba(255, 255, 255, 0.6);
}

/* Phone pill override on orange background */
.theme-footer-banner .theme-phone {
  background: var(--brand-dark);
  box-shadow:
    0 22px 60px -22px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.theme-footer-banner .theme-phone:hover {
  box-shadow:
    0 28px 70px -22px rgba(0, 0, 0, 0.7),
    inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

/* XL phone variant */
.theme-phone--xl {
  padding: 1.2rem 1.75rem 1.2rem 1.35rem;
}

.theme-phone--xl .theme-phone__icon {
  width: 2.6rem;
  height: 2.6rem;
}

.theme-phone--xl .theme-phone__label strong {
  font-size: 1.35rem;
}

@media (max-width: 424px) {
  .theme-phone--xl .theme-phone__label strong {
    font-size: 1rem;
  }
}

/* ---------------------------------------------------------------------------
   Footer proper
   --------------------------------------------------------------------------- */
.theme-footer {
  background: var(--surface-deep);
  color: var(--text-on-dark);
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-lg);
}

.theme-footer__columns {
  display: grid;
  gap: var(--space-2xl);
  grid-template-columns: 2fr 1fr 1fr 1fr;
  padding-inline: var(--section-pad-x);
  max-width: var(--container-max);
  margin-inline: auto;
}

@media (max-width: 960px) {
  .theme-footer__columns {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .theme-footer__columns {
    grid-template-columns: 1fr;
  }
}

.theme-footer__col {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.theme-footer__brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.theme-footer__logo {
  height: 2rem;
  width: auto;
}

.theme-footer__tagline {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-on-dark-mut);
  max-width: 32ch;
}

.theme-footer__locations {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-on-dark-mut);
}

.theme-footer__location {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-style: normal;
}

.theme-footer__location .theme-footer__label {
  line-height: 1.4;
  margin-bottom: 0.2rem;
}

.theme-footer__company {
  color: var(--brand-white);
  font-weight: 600;
}

.theme-footer__locations a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition:
    color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out);
}

.theme-footer__locations a:hover {
  color: var(--orange-500);
}

.theme-footer__heading {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-white);
  margin: 0 0 var(--space-xs);
  position: relative;
  padding-bottom: 0.85rem;
}

.theme-footer__heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 1.5rem;
  height: 2px;
  background: var(--orange-500);
}

.theme-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.theme-footer__list a {
  color: var(--text-on-dark-mut);
  text-decoration: none;
  font-size: 0.92rem;
  transition:
    color var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
  display: inline-block;
}

.theme-footer__list a:hover {
  color: var(--orange-500);
  transform: translateX(3px);
}

.theme-footer__list--plain li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.92rem;
  color: var(--text-on-dark);
}

.theme-footer__label {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-on-dark);
}

.theme-footer__value {
  color: var(--text-on-dark-mut);
}

.theme-footer__icon {
  width: 0.85rem;
  height: 0.85rem;
  flex-shrink: 0;
  /* Sit on the first line, not between the lines: on a narrow phone the
     Saturday hours wrap to two lines and a centred clock ends up floating in
     the middle of the entry. */
  align-self: flex-start;
  margin-top: calc((1lh - 0.85rem) / 2);
  color: var(--text-on-dark-mut);
}

.theme-footer__inline {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.45rem;
}

.theme-footer__hours {
  display: flex;
  flex-wrap: wrap;
  column-gap: var(--space-2xl);
  row-gap: var(--space-md);
  padding: var(--space-lg) var(--section-pad-x) 0;
  margin-top: var(--space-lg);
  border-top: 1px solid var(--line-on-dark);
  max-width: var(--container-max);
  margin-inline: auto;
  font-size: 0.92rem;
  color: var(--text-on-dark);
}

.theme-footer__hours > .theme-footer__heading {
  width: 100%;
}

.theme-footer__hours-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.theme-footer__hours-item .theme-footer__label {
  color: var(--text-on-dark);
}

.theme-footer__hours-item {
  color: var(--text-on-dark-mut);
}

@media (max-width: 600px) {
  .theme-footer__hours {
    flex-direction: column;
    gap: var(--space-md);
  }
}

.theme-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  padding: var(--space-lg) var(--section-pad-x) 0;
  margin-top: var(--space-2xl);
  border-top: 1px solid var(--line-on-dark);
  max-width: var(--container-max);
  margin-inline: auto;
  font-size: var(--step--1);
  color: var(--text-on-dark-mut);
}

.theme-footer__copyright {
  margin: 0;
}

.theme-footer__legal-menu {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  list-style: none;
  margin: 0;
  padding: 0;
}

.theme-footer__legal-menu a {
  color: var(--text-on-dark-mut);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  transition: color var(--dur-fast) var(--ease-out);
}

.theme-footer__legal-menu a:hover {
  color: var(--orange-500);
}
