/* ==========================================================================
   Prime Communication Media — FOOTER (shared by every page)
   --------------------------------------------------------------------------
   Covers: <footer> (brand column, link columns, contact column, bottom bar,
           legal links) and the floating "back to top" button.
   Needs  : js/footer.js   (shows / hides and wires the back-to-top button)
   Master : index.html (all other pages now follow it).

   Variables used (every page already defines them in its own :root / theme):
     --footer-bg  --border-color  --text-muted  --gold  --gold-light
     --transition-speed
   ========================================================================== */

/* ---------- 1. Footer shell ---------- */
footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--border-color);
  padding: 60px;
  transition: background var(--transition-speed);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.4fr;
  gap: 48px;
  margin-bottom: 48px;
}

/* ---------- 2. Brand column ---------- */
.footer-logo-wrap {
  margin-bottom: 20px;
}

.footer-logo-wrap img {
  height: 100px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 0 rgba(200, 190, 100, 1));
}

.footer-brand-desc {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-muted);
  font-weight: 300;
}

/* ---------- 3. Link columns ---------- */
.footer-col h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: .62rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul a {
  font-family: 'Montserrat', sans-serif;
  font-size: .65rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color .3s;
}

.footer-col ul a:hover {
  color: var(--gold);
}

/* ---------- 4. Contact column ---------- */
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-contact-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  transition: border-color .3s;
}

.footer-contact-item:hover .footer-contact-icon {
  border-color: var(--gold);
}

.footer-contact-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-contact-label {
  font-family: 'Montserrat', sans-serif;
  font-size: .55rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-contact-value {
  font-size: .88rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.5;
  text-decoration: none;
  transition: color .3s;
}

.footer-contact-value:hover {
  color: var(--gold);
}

/* ---------- 5. Bottom bar ---------- */
.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy,
.footer-tagline {
  font-family: 'Montserrat', sans-serif;
  font-size: .6rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Legal links (Copyright · Privacy · Terms) */
.footer-list {
  font-family: 'Montserrat', sans-serif;
  font-size: .6rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-list a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-list a:hover {
  color: var(--gold);
}

/* ---------- 6. Back-to-top button ---------- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--gold);
  border: none;
  cursor: pointer;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: #0a0a0f;
  opacity: 0;
  pointer-events: none;            /* hidden button must not catch clicks */
  transform: translateY(20px);
  transition: opacity .4s, transform .4s, background .3s;
  box-shadow: 0 4px 24px rgba(201, 168, 76, .3);
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--gold-light);
}

/* ---------- 7. Responsive ---------- */
@media (max-width: 1200px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1024px) {
  footer {
    padding: 48px 24px;
  }
}

@media (max-width: 768px) {
  footer {
    padding: 48px 20px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
  }
}
