/**
 * WActivity CMS Shell - Footer Styles
 * Shared footer component with multiple layouts and CSS custom properties for theming.
 */

/* ===== Base Footer ===== */
.wac-footer {
  background: var(--footer-bg, #f9fafb);
  color: var(--footer-text, #1f2937);
  width: 100%;
  box-sizing: border-box;
}

.wac-footer--border-top {
  border-top: 1px solid rgba(128, 128, 128, 0.2);
}

/* Padding variants */
.wac-footer[data-padding="compact"] .wac-footer__inner {
  padding: 1.5rem 1rem;
}
.wac-footer[data-padding="normal"] .wac-footer__inner {
  padding: 2.5rem 1.5rem;
}
.wac-footer[data-padding="spacious"] .wac-footer__inner {
  padding: 4rem 2rem;
}

.wac-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== Links ===== */
.wac-footer a {
  color: var(--footer-text, #1f2937);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.wac-footer a:hover {
  opacity: 0.7;
}

.wac-footer a:focus-visible {
  outline: 2px solid var(--footer-accent, #d32f2f);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ===== Section headings ===== */
.wac-footer h4 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.75rem 0;
  opacity: 0.7;
}

/* ===== Brand ===== */
.wac-footer__logo {
  display: block;
  margin-bottom: 0.75rem;
  max-width: 100%;
  object-fit: contain;
}

.wac-footer__name {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.25rem 0;
}

.wac-footer__desc {
  font-size: 0.85rem;
  opacity: 0.8;
  margin: 0;
  line-height: 1.5;
}

/* ===== Contact ===== */
.wac-footer__contact address {
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.8;
}

.wac-footer__contact address p {
  margin: 0;
}

/* ===== Hours ===== */
.wac-footer__hours-list {
  margin: 0;
  font-size: 0.85rem;
}

.wac-footer__hours-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.15rem 0;
}

.wac-footer__hours-row dt {
  font-weight: 500;
}

.wac-footer__hours-row dd {
  margin: 0;
  opacity: 0.8;
}

/* ===== Links list ===== */
.wac-footer__links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wac-footer__links li {
  padding: 0.2rem 0;
}

.wac-footer__links a {
  font-size: 0.9rem;
}

/* ===== Social Icons ===== */
.wac-footer__social-icons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.wac-footer__social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(128, 128, 128, 0.1);
  transition: background 0.2s ease, opacity 0.2s ease;
}

.wac-footer__social-icons a:hover {
  background: rgba(128, 128, 128, 0.2);
  opacity: 1;
}

.wac-footer__social-icons svg {
  width: 18px;
  height: 18px;
}

/* ===== Bottom bar ===== */
.wac-footer__bottom {
  margin-top: 2rem;
  margin-bottom: 6rem; /* Space for floating CTAs and cookie banner */
  padding-top: 1.25rem;
  padding-bottom: 2rem; /* Additional bottom padding */
  border-top: 1px solid rgba(128, 128, 128, 0.15);
  font-size: 0.8rem;
  opacity: 0.7;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.5rem;
}

.wac-footer__copyright,
.wac-footer__powered {
  margin: 0;
}

.wac-footer__legal {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.wac-footer__legal a {
  font-size: 0.8rem;
}

/* Action links group (vCard download + cookie settings + language
   switcher). Inline cluster so mobile doesn't stack each one on its
   own row. */
.wac-footer__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.25rem;
}

/* Copyright + Powered-by group. Two-line block at the end of the
   legal bar, centered. */
.wac-footer__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem 1rem;
  width: 100%;
}

/* ==============================
   LAYOUT: Simple (centered, single column)
   ============================== */
.wac-footer--simple .wac-footer__main {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

.wac-footer--simple .wac-footer__social-icons {
  justify-content: center;
}

/* ==============================
   LAYOUT: Columns (responsive grid)
   ============================== */
.wac-footer--columns .wac-footer__main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

/* ==============================
   LAYOUT: Minimal (single line)
   ============================== */
.wac-footer--minimal .wac-footer__main {
  display: none;
}

.wac-footer--minimal .wac-footer__bottom {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

/* ==============================
   LAYOUT: Centered (logo top, centered content)
   ============================== */
.wac-footer--centered .wac-footer__main {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

.wac-footer--centered .wac-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wac-footer--centered .wac-footer__social-icons {
  justify-content: center;
}

.wac-footer--centered .wac-footer__contact address {
  text-align: center;
}

.wac-footer--centered .wac-footer__hours-list {
  max-width: 300px;
  margin: 0 auto;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .wac-footer--columns .wac-footer__main {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .wac-footer--columns .wac-footer__social-icons {
    justify-content: center;
  }

  .wac-footer--columns .wac-footer__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .wac-footer__bottom {
    /* Keep row+wrap (not column) on mobile — the bottom bar has 3
       logical groups (.wac-footer__legal, .wac-footer__actions,
       .wac-footer__meta). Each is its own flex child and wraps on
       its own gracefully; forcing column made each single anchor
       end up on its own row, which read as fragmented. */
    text-align: center;
    margin-bottom: 8rem; /* More space on mobile for taller CTAs */
    gap: 0.75rem 1rem;
  }
}

/* ===== Fixed CTA Buttons ===== */
.fixed-cta-container {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 999;
  display: flex;
  gap: 0.75rem;
}

.fixed-cta-container.hidden {
  display: none;
}

.fixed-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, transform 0.1s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.fixed-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.fixed-cta-btn:active {
  transform: translateY(0);
}

.fixed-cta-btn svg {
  flex-shrink: 0;
}

/* Desktop: show full text, hide mobile text */
.fixed-cta-btn .btn-text-mobile {
  display: none;
}

@media (max-width: 768px) {
  .fixed-cta-container {
    right: 0;
    left: 0;
    bottom: 0;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
  }

  .fixed-cta-btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }

  /* Mobile: hide full text, show short text */
  .fixed-cta-btn .btn-text {
    display: none;
  }

  .fixed-cta-btn .btn-text-mobile {
    display: inline;
  }
}

/* ==============================
   Phase 1 (2026-05-19) — sibling domains, image card, contact buttons,
   language switcher, cookie settings, vCard download.
   ============================== */

/* Sibling-domain link list (Inhala-style multi-marca) */
.wac-footer__siblings-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.wac-footer__siblings-list li {
  margin: 0;
}

.wac-footer__siblings-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0;
}

.wac-footer__siblings-icon {
  flex-shrink: 0;
  opacity: 0.8;
}

/* Image-card band — own row between the text columns and the legal
   bar (Phase 1.5 reflow 2026-05-19). Visually a strip of badges /
   posters / certifications, centered, not squished into the column
   grid. */
.wac-footer__image-band {
  margin: 2rem 0 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(128, 128, 128, 0.12);
  display: flex;
  justify-content: center;
}

/* Featured image cards — single or multi (Phase 1.5 2026-05-19).
   The gallery wrapper uses flex-wrap so 1-N cards lay out naturally;
   each card sizes itself by its inline max-width style (admin-set). */
.wac-footer__image-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
}
.wac-footer__image-card {
  display: inline-block;
  /* Empty-link/img cards inherit; PhotoSwipe-anchored ones get the
     standard pb-gallery-tile pointer affordance. */
}
.wac-footer__image-card.pb-gallery-tile {
  cursor: zoom-in;
  transition: transform 0.2s ease;
}
.wac-footer__image-card.pb-gallery-tile:hover {
  transform: scale(1.03);
}

/* Contact section — buttons variant (Inhala right column) */
.wac-footer__contact--buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: stretch;
  max-width: 280px;
}

.wac-footer__contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1rem;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  transition: filter 0.2s ease, transform 0.1s ease;
  text-decoration: none;
}

.wac-footer__contact-btn:hover {
  filter: brightness(0.92);
  opacity: 1;
}

.wac-footer__contact-btn:active {
  transform: translateY(1px);
}

/* Bottom-bar add-ons: vCard download + cookie settings + language switcher */
.wac-footer__vcard-download,
.wac-footer__cookie-settings {
  font-size: 0.8rem;
  text-decoration: none;
  padding: 0;
}

.wac-footer__vcard-download:hover,
.wac-footer__cookie-settings:hover {
  text-decoration: underline;
  opacity: 1;
}

.wac-footer__language-switcher {
  display: inline-flex;
  align-items: center;
}

/* Footer reuses the SAME selector emitted in the header. shell.css
   already styles `.language-selector / .language-toggle / .language-
   dropdown / .language-option` globally (not scoped to .wactivity-header)
   — those rules give the footer copy the round-chip toggle + clean
   popup that the header has. Only override what HAS to differ in the
   footer: the dropdown must open UPWARD (we're at the bottom of the
   page, can't open below). Right-align so it doesn't overflow the
   legal-bar right edge. */
.wac-footer__language-switcher .language-dropdown {
  top: auto;
  bottom: 100%;
  margin-top: 0;
  margin-bottom: 0.5rem;
  left: auto;
  right: 0;
}

/* ===== Print ===== */
@media print {
  .wac-footer__social-icons,
  .wac-footer__powered {
    display: none;
  }

  .wac-footer {
    background: none !important;
    color: #000 !important;
    border-top: 1px solid #ccc;
  }

  .wac-footer a::after {
    content: " (" attr(href) ")";
    font-size: 0.75rem;
  }
}
