/* =============================================================
   BERUNDA — SITE FOOTER  (styles, from the design-system handoff)
   Pair with the .bf-footer markup in sections/berunda-footer.liquid.
   Tokens (--gold-*, --ivory-*, --font-*, --dur-*, --ease-*) are
   defined globally in berunda-tokens.css, so the handoff's fallback
   :root block was removed — the footer inherits the real tokens.
   ============================================================= */

/* ---- Band ---------------------------------------------------- */
.bf-footer {
  background: #1c0408;                              /* pure solid crimson — matches the nav bar */
  border-top: 1px solid rgba(198, 135, 27, 0.14);  /* gold hairline */
  /* The layout runs viewport-fit=cover, so the band now reaches the true bottom
     of the screen — its crimson fills the home-indicator strip instead of the
     canvas showing there. This keeps the last row of links clear of the
     indicator; the inset is 0 on everything without one. */
  padding: clamp(32px, 4.5vh, 52px) 0 env(safe-area-inset-bottom, 0px);
  position: relative;
}

/* ---- Four-column row: brand · Explore · Contact Us · Policies - */
.bf-footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 80px) clamp(26px, 4vh, 40px);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1.3fr 1fr;
  gap: clamp(32px, 4.5vw, 72px);
  align-items: start;
}

/* ---- Brand block: sits left on desktop, contents centered under
   the crest (emblem → wordmark → tagline share one center axis) --- */
.bf-footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: fit-content;
}
.bf-footer-emblem {
  width: 76px;
  height: auto;
  display: block;
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.55));
}
.bf-footer-name {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.42em;
  padding-left: 0.42em;     /* optical-center the tracked caps */
  font-size: 20px;
  color: var(--gold-400);
  margin: 14px 0 0;
}
.bf-footer-tagline {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 15px;
  letter-spacing: 0.01em;
  color: var(--ivory-300);
  margin-top: 7px;
}

/* ---- Link columns -------------------------------------------- */
.bf-footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.bf-footer-col-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 10px;
  color: var(--gold-300);
  margin: 0 0 14px;
  position: relative;
  padding-bottom: 10px;
}
.bf-footer-col-title::after {     /* short gold underline distinguishes title from links */
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 22px;
  height: 1px;
  background: var(--gold-500);
}

.bf-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  letter-spacing: 0.01em;
  color: var(--ivory-300);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  padding-bottom: 2px;
  margin-bottom: 9px;
  width: fit-content;
  transition: color var(--dur-slow) var(--ease-standard);
}
.bf-footer-link:last-child { margin-bottom: 0; }
.bf-footer-link svg { width: 16px; height: 16px; flex: none; display: block; }
.bf-footer-link::after {          /* gold underline wipes in on hover */
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold-400);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-slow) var(--ease-standard);
}
.bf-footer-link:hover { color: var(--gold-300); }
.bf-footer-link:hover::after { transform: scaleX(1); }

/* long email address: slightly smaller so it sits on one line */
.bf-footer-link--email { font-size: 13px; letter-spacing: 0; }

/* ---- Base bar: centered copyright ---------------------------- */
.bf-footer-base {
  max-width: 1320px;
  margin: 0 auto;
  padding: 15px clamp(24px, 6vw, 92px) 22px;
  border-top: 1px solid rgba(198, 135, 27, 0.12);
  text-align: center;
}
.bf-footer-copy {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 9.5px;
  color: var(--ivory-400);
  opacity: 0.85;
}

/* ---- Tablet: brand centered on top, link columns beneath ------ */
@media (max-width: 1020px) {
  .bf-footer-inner {
    grid-template-columns: 1fr 1.3fr 1fr;
    gap: clamp(28px, 4vw, 48px);
  }
  .bf-footer-brand {
    grid-column: 1 / -1;
    width: auto;
    margin-bottom: 6px;
  }
}

/* ---- Mobile: single column ----------------------------------- */
@media (max-width: 760px) {
  .bf-footer-inner {
    grid-template-columns: 1fr;
    gap: clamp(36px, 6vh, 52px);
    justify-items: center;
    text-align: center;
  }
  .bf-footer-brand { margin-bottom: 0; }
  .bf-footer-col { align-items: center; }
  .bf-footer-col-title::after { left: 50%; transform: translateX(-50%); }
  .bf-footer-link--email { font-size: 12.5px; }
}
