/* =========================================================
   PharmaCommerce — Footer Styles
   Three tiers: Blue (brand + nav) / White (payments) / Blue (copyright)

   Design tokens from base.css:
   --pc-color-primary   #234188
   --pc-color-surface   #F4F6F8
   --pc-color-border    #E5E7EB
   --pc-color-text      #111827
   --pc-color-text-muted #6B7280
   --pc-radius-md       12px
   --pc-font-sans       Inter
   ========================================================= */


/* =========================================================
   Tier 1 — Top: Brand + Navigation (Blue)
   ========================================================= */

.pc-footer__top {
  background: var(--pc-color-primary);
  padding: 52px 0 48px;
}

.pc-footer__top-inner {
  display: flex;
  align-items: flex-start;
  gap: 56px;
}


/* ----- Brand column ----- */

.pc-footer__brand {
  flex: 0 0 240px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Logo image — hidden (replaced by text logo) */
.pc-footer__brand .custom-logo-link,
.pc-footer__brand .custom-logo {
  display: none;
}

/* Footer logo link */
.pc-footer__logo-link {
  text-decoration: none;
}

/* Footer logo block — white name on blue background */
.pc-logo__name--footer {
  color: #ffffff;
  font-size: 1.5rem;
}

/* Tagline bar: orange background */
.pc-logo__tagline--footer {
  background-color: #f28020;
  color: #ffffff;
}

/* Contact list with icon + text layout */
.pc-footer__nav-list--contact li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.pc-footer__contact-icon {
  flex-shrink: 0;
  margin-top: 3px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  width: 14px;
  text-align: center;
}

/* Social icon row */
.pc-footer__social {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.pc-footer__social-link {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.pc-footer__social-link:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}


/* ----- Navigation columns ----- */

.pc-footer__nav-columns {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-top: 4px;
}

.pc-footer__nav-heading {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.pc-footer__nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pc-footer__nav-list a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.68);
  text-decoration: none;
  transition: color 0.2s ease;
}

.pc-footer__nav-list a:hover {
  color: #fff;
}


/* =========================================================
   Tier 2 — Payments (White)
   ========================================================= */

.pc-footer__payments {
  background: #fff;
  border-top: 1px solid var(--pc-color-border);
  border-bottom: 1px solid var(--pc-color-border);
  padding: 18px 0;
}

.pc-footer__payments-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.pc-footer__payments-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--pc-color-text-muted);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pc-footer__payments-grid {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Each payment badge */
.pc-footer__payment-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  min-width: 64px;
  padding: 4px 10px;
  background: #ffffff;
  border: 1px solid var(--pc-color-border);
  border-radius: 8px;
  transition: border-color 0.2s ease;
}

.pc-footer__payment-item:hover {
  border-color: #c0c8d4;
}

/* Payment logo images */
.pc-footer__payment-item img {
  max-height: 26px;
  width: auto;
  display: block;
  object-fit: contain;
}


/* =========================================================
   Tier 3 — Bottom: Copyright + Credit (Blue)
   ========================================================= */

.pc-footer__bottom {
  background: var(--pc-color-primary);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px 0;
}

.pc-footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.pc-footer__copyright {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
}

.pc-footer__credit {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  flex-shrink: 0;
}

.pc-footer__fundecopi-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.pc-footer__fundecopi-logo {
  max-height: 28px;
  width: auto;
  display: block;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.pc-footer__fundecopi-link:hover .pc-footer__fundecopi-logo {
  opacity: 1;
}


/* =========================================================
   Responsive — Tablet (≤ 1024px)
   ========================================================= */

@media (max-width: 1024px) {

  .pc-footer__top {
    padding: 40px 0 36px;
  }

  .pc-footer__top-inner {
    gap: 36px;
  }

  .pc-footer__brand {
    flex: 0 0 200px;
  }

  .pc-footer__nav-columns {
    gap: 20px;
  }

  .pc-footer__nav-list a {
    font-size: 13px;
  }
}


/* =========================================================
   Responsive — Mobile (≤ 768px)
   ========================================================= */

@media (max-width: 768px) {

  /* Tier 1: stack brand above columns */
  .pc-footer__top {
    padding: 36px 0 32px;
  }

  .pc-footer__top-inner {
    flex-direction: column;
    gap: 32px;
  }

  .pc-footer__brand {
    flex: none;
    width: 100%;
    gap: 12px;
  }

  .pc-footer__nav-columns {
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 16px;
  }

  /* Tier 2: label above, items in 2-column grid */
  .pc-footer__payments-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .pc-footer__payments-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
  }

  .pc-footer__payment-item {
    width: 100%;
    justify-content: center;
    min-width: 0;
  }

  /* Tier 3: stack and center */
  .pc-footer__bottom-inner {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
  }
}
