/**
 * PFOS site footer (#pfos-footer.pfos-site-footer) — shared across public pages.
 * Requires pfos-reference-bridge.css (and .pfos-ref on the footer for tokens).
 */

#pfos-footer.pfos-site-footer {
  background: var(--navy-dk);
  padding: clamp(48px, 7vw, 72px) 24px 0;
  border-top: 4px solid var(--yellow);
}

#pfos-footer.pfos-site-footer .footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(0, 0.48fr) minmax(0, 1.42fr);
  gap: clamp(18px, 3vw, 40px);
  margin-bottom: 48px;
}

/* Services (middle column): narrowest track so “Visit us” keeps more width */
#pfos-footer.pfos-site-footer .footer-grid > .footer-col:not(.footer-showroom-col) {
  min-width: 0;
}

@media (max-width: 900px) {
  #pfos-footer.pfos-site-footer .footer-grid {
    grid-template-columns: minmax(0, 0.4fr) minmax(0, 0.6fr);
    gap: 28px 22px;
  }

  /* Brand full width; Services + Visit us share one row — avoids showroom wrapping alone */
  #pfos-footer.pfos-site-footer .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 540px) {
  #pfos-footer.pfos-site-footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

#pfos-footer.pfos-site-footer .footer-showroom-col {
  min-width: 0;
  text-align: left;
}

#pfos-footer.pfos-site-footer .footer-showroom-col .footer-showroom-google-row {
  justify-content: flex-start;
}

#pfos-footer.pfos-site-footer .footer-showroom-col .footer-showroom-cta {
  align-self: flex-start;
}

#pfos-footer.pfos-site-footer .footer-logo-row {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}

#pfos-footer.pfos-site-footer .footer-logo-link {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
}

#pfos-footer.pfos-site-footer .footer-brand-logo {
  height: 48px;
  width: auto;
  max-width: min(240px, 88vw);
  object-fit: contain;
  display: block;
}

#pfos-footer.pfos-site-footer .footer-brand-title {
  margin: 10px 0 6px;
  font-size: 0.95rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

#pfos-footer.pfos-site-footer .footer-brand-sub {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0;
}

#pfos-footer.pfos-site-footer .footer-brand-p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  margin: 0 0 18px;
}

#pfos-footer.pfos-site-footer .footer-socials {
  display: flex;
  gap: 10px;
}

#pfos-footer.pfos-site-footer .footer-soc {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s;
  text-decoration: none;
}

#pfos-footer.pfos-site-footer .footer-soc .fa-brands,
#pfos-footer.pfos-site-footer .footer-soc .fa-solid {
  font-size: 1.05rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.88);
}

#pfos-footer.pfos-site-footer .footer-soc:hover .fa-brands,
#pfos-footer.pfos-site-footer .footer-soc:hover .fa-solid {
  color: #002347;
}

#pfos-footer.pfos-site-footer .footer-soc:hover {
  background: var(--yellow);
  border-color: var(--yellow);
}

#pfos-footer.pfos-site-footer .footer-col h4 {
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--white);
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

#pfos-footer.pfos-site-footer .footer-showroom-col h4 {
  white-space: nowrap;
}

#pfos-footer.pfos-site-footer .footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#pfos-footer.pfos-site-footer .footer-links a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.18s;
  text-decoration: none;
}

#pfos-footer.pfos-site-footer .footer-links a:hover {
  color: var(--yellow);
}

#pfos-footer.pfos-site-footer .footer-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 22px 0 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
}

#pfos-footer.pfos-site-footer .footer-bar-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  max-width: 36rem;
}

#pfos-footer.pfos-site-footer .footer-bar-legal {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.45;
}

#pfos-footer.pfos-site-footer .footer-bar-rights {
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.45;
}

#pfos-footer.pfos-site-footer .footer-bar-rights a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: underline;
}

#pfos-footer.pfos-site-footer .footer-bar-rights a:hover {
  color: var(--yellow);
}

#pfos-footer.pfos-site-footer .footer-bar-sep {
  margin: 0 0.35em;
  opacity: 0.45;
}

#pfos-footer.pfos-site-footer .footer-bar-credit {
  margin: 6px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
}

#pfos-footer.pfos-site-footer .footer-bar-credit a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
}

#pfos-footer.pfos-site-footer .footer-bar-credit a:hover {
  color: var(--yellow);
}

#pfos-footer.pfos-site-footer .footer-bar-credit span[aria-label="love"] {
  color: var(--yellow);
}

#pfos-footer.pfos-site-footer .footer-showroom-mid {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  max-width: 100%;
}

#pfos-footer.pfos-site-footer .footer-showroom-title {
  margin: 0 0 14px;
  font-size: 1.05rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

#pfos-footer.pfos-site-footer .footer-showroom-google-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 12px;
  margin-bottom: 14px;
}

#pfos-footer.pfos-site-footer .footer-showroom-google-row img {
  display: block;
  height: 28px;
  width: auto;
}

#pfos-footer.pfos-site-footer .footer-showroom-google-row .footer-showroom-maps-txt {
  font-size: 1.15rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: -0.02em;
}

#pfos-footer.pfos-site-footer .footer-showroom-address {
  margin: 0 0 16px;
  font-size: 0.84rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.52);
}

#pfos-footer.pfos-site-footer .footer-showroom-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  background: var(--yellow);
  color: var(--navy);
  border: 1px solid var(--yellow);
  transition: transform 0.18s, box-shadow 0.18s;
}

#pfos-footer.pfos-site-footer .footer-showroom-cta:hover {
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 199, 44, 0.4);
}
