/* ==========================================================================
   footer.css — site footer
   Chopsticks Studio theme partial.
   :root tokens consolidated into style.css (single source of truth).
   ========================================================================== */

  /* ═══════════════════════════════════════════════════════════
     SITE FOOTER — fixed strip, slides up on scroll
  ══════════════════════════════════════════════════════════ */
  /* ── FOOTER — matches index.html design; animation preserved from cc file ── */

  /* barTop.svg — sits flush above the fixed footer, scales to full screen width */
  .footer-bar-top {
    position: absolute;
    bottom: 100%;   /* bottom edge of barTop = top edge of the footer           */
    left: -10px;     /* 1 px bleed on each side closes the mobile side gap       */
    right: -10px;    /* without overflow:hidden (which hides SVGs in Safari)     */
    width: auto;
    line-height: 0;
    font-size: 0;
    pointer-events: none;
    z-index: 0;
  }
  .footer-bar-top img {
    display: block;
    width: 100%;
    height: auto;
  }

  .site-footer {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 90;
    height: 150px;
    background: #675b91;              /* purple — matches index */
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 clamp(1.2rem, 3vw, 2.5rem);
    overflow: visible;
    /* slide-in animation kept from crossedcultures_v07 */
    transform: translateY(140%);
    transition: transform 0.9s cubic-bezier(.16,1,.3,1);
  }
  .site-footer.sf-visible { transform: translateY(0); }

  /* columns — z-index:1 so content sits above any background decorations */
  .sf-left  { display: flex; align-items: center; position: relative; z-index: 1; }
  .sf-right { display: flex; justify-content: flex-end; align-items: center; position: relative; z-index: 1; }
  .sf-center {
    display: flex; flex-direction: column;
    align-items: center; gap: 3px;
    align-self: flex-start;
    transform: translateY(-28px);     /* bowl pops above footer strip */
    position: relative; z-index: 1;
  }
  .sf-center-link {
    display: flex; flex-direction: column;
    align-items: center; gap: 3px;
    text-decoration: none; color: inherit;
  }
  .sf-center-link:hover { opacity: 0.85; transition: opacity 0.2s; }
  .sf-bowl {
    width: clamp(36px, 4.5vw, 62px);  /* larger — matches index */
    height: auto; display: block;
    filter: drop-shadow(0px 3px 9px rgba(103,91,145,0.4))
            drop-shadow(0px 1px 3px rgba(0,0,0,0.12));
  }
  .sf-brand {
    display: flex; align-items: center;
    gap: clamp(0.4rem, 1.2vw, 0.75rem);
  }
  .sf-brand-title {
    font-family: 'Mr Dafoe', cursive;
    font-size: clamp(1.1rem, 2.6vw, 1.65rem);
    line-height: 0.9;
    color: var(--white);
    text-align: center;
    filter: drop-shadow(0px 2px 6px rgba(103,91,145,0.35));
  }
  .sf-dash {
    height: clamp(0.25rem, 0.75vw, 0.42rem);
    width: auto; flex-shrink: 0;
    filter: var(--hero-shadow);
  }
  .footer-insta { display: block; flex-shrink: 0; }
  .footer-insta img {
    height: 3rem;                      /* larger — matches index */
    width: auto; display: block;
    filter: drop-shadow(0px 2px 6px rgba(103,91,145,0.4));
    transition: opacity 0.2s;
  }
  .footer-insta:hover img { opacity: 0.75; }
  .footer-contact { display: flex; flex-direction: column; align-items: flex-end; gap: 0.25rem; }
  .footer-contact a {
    font-size: clamp(1.25rem, 2.5vw, 1.63rem);  /* +25%, matches index */
    font-weight: 300; letter-spacing: 0.08em;
    font-style: italic;
    color: var(--white); text-decoration: none;
    transition: opacity 0.2s;                    /* opacity removed — fully opaque */
    text-shadow: 0px 2px 8px rgba(103,91,145,0.3);
  }
  .footer-contact a:hover { opacity: 0.75; }

  /* 100px purple strip extending below the footer to the viewport bottom */
  .site-footer::after {
    content: '';
    position: absolute;
    bottom: -100px; left: 0; right: 0;
    height: 100px;
    background: #675b91;
  }
  .privacyPolicy {
    margin-top: 40px;
    font-size: 0.58rem;
    letter-spacing: 0.38em;
    text-transform: uppercase;
    color: #FFFFFF;
    white-space: nowrap;
    text-decoration: none;
}

  /* push body so content never hides under footer (88px) + extension (100px) + buffer */
  body.footer-active { padding-bottom: 210px; }
@media (max-width: 767px) {

    /* ── Footer contact text: fit inside 1/3 of screen ───── */
    .sf-right { min-width: 0; }
    .footer-contact a {
      font-size: clamp(0.6rem, 3.2vw, 0.85rem);
      letter-spacing: 0.02em;
      word-break: break-all;
    }
}