/* ============================================================
   Pure Massage — Footer
   Same 3-column frame as the header's sibling patterns: menus
   (left), logo + copyright (center), contact stack (right) —
   phone, address, and a CTA button, stacked one over the other,
   with social icons below.
   ============================================================ */

.site-footer {
  background-color: var(--color-footer-bg);
  color: var(--color-gray-700);
  /* Fluid, no breakpoints — 30px on mobile up to 40px on desktop, same
     top and bottom. */
  padding-block: clamp(1.875rem, 5vw, 2.5rem);
}

/* Mobile-first: single column, stacked menus → booking → logo.
   Desktop (min-width below) switches to the 3-column side-by-side
   frame: menus | logo | booking. */
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "menus"
    "booking"
    "logo";
  justify-items: center;
  text-align: center;
  gap: 30px;
}

/* ============================================================
   MENUS
   ============================================================ */
.footer-menus {
  grid-area: menus;
  display: flex;
  justify-content: center;
  gap: 24px;
  text-align: center;
}

.footer-menu-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-menu a {
  color: var(--color-gray-600);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-menu a:hover,
.footer-menu a:focus-visible {
  color: var(--color-teal-900);
}

/* ============================================================
   LOGO + COPYRIGHT + COPYRIGHT MENU
   ============================================================ */
.footer-logo-col {
  grid-area: logo;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  display: block;
  width: fit-content;
  margin-inline: auto;
}

.footer-logo-img {
  width: clamp(125px, 18vw, 175px);
}

.footer-logo-text {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  color: var(--color-gray-700);
}

.footer-copyright-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.footer-copyright {
  font-size: 13px;
  color: var(--color-gray-700);
}

.footer-copyright-divider {
  display: none;
  opacity: 0.5;
}

.copyright-menu {
  display: flex;
  gap: 8px;
}

.copyright-menu li:not(:last-child)::after {
  content: "|";
  margin-left: 8px;
  opacity: 0.5;
}

.copyright-menu a {
  font-size: 13px;
  color: var(--color-gray-700);
  text-decoration: none;
  transition: color 0.2s ease;
}

.copyright-menu a:hover,
.copyright-menu a:focus-visible {
  color: var(--color-teal-900);
}

/* ============================================================
   BOOKING — phone, address, CTA, then social icons
   ============================================================ */
.footer-contact {
  grid-area: booking;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-contact-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* Phone + address grouped tight — little space needed between them,
   the bigger .footer-contact-group gap above still separates this
   pair from the CTA and social links below it. */
.footer-contact-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

/* Plain text, same treatment as .header-phone (header.css) — no box. */
.footer-phone {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-phone-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  text-transform: capitalize;
  letter-spacing: 0.05em;
  color: var(--color-gray-700);
}

.footer-phone-number {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  line-height: 24px;
  letter-spacing: 0.6px;
  color: var(--color-gray-700);
  text-transform: uppercase;
  text-decoration: none;
}

.footer-address {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.9;
}

.footer-address-title {
  display: block;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 12px;
  margin-block-end: 4px;
  opacity: 0.75;
}

.footer-cta {
  align-self: center;
}

.footer-contact .social-links {
  margin-top: 4px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.35);
  color: var(--color-primary);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  background-color: var(--color-cta);
  color: var(--color-white);
}

/* ============================================================
   RESPONSIVE — desktop upgrade (mobile-first base above).
   1071px, matching the header/mobile-menu breakpoint this time —
   not a fixed sitewide rule, other sections can use a different
   breakpoint where it fits their own content better.
   ============================================================ */
@media (min-width: 1071px) {
  .footer-inner {
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas: "menus logo booking";
    align-items: center;
    justify-items: initial;
    text-align: initial;
    gap: 40px;
  }

  .footer-menus {
    justify-content: flex-start;
    gap: 48px;
    text-align: initial;
  }

  .footer-contact,
  .footer-contact-group,
  .footer-contact-info,
  .footer-phone {
    align-items: flex-end;
    text-align: right;
  }

  .footer-cta {
    align-self: flex-end;
  }

  .footer-copyright-row {
    flex-direction: row;
    gap: 8px;
  }

  .footer-copyright-divider {
    display: inline;
  }
}
