﻿/* Ported as-is from design/site-footer.html. Only the redundant/harmful
   `body {...}` line is dropped (it would override this theme's own body
   background set in style.css)  see the note at the top of
   assets/css/featured-collections.css for the full reasoning. */
* { box-sizing: border-box; }

/* =================================================================
   SITE FOOTER
   ================================================================= */
.site-footer {
  position: relative;
  background: linear-gradient(175deg, #100d09 0%, #0a0908 55%, #080706 100%);
  padding: 56px 72px 0;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,162,54,0.5), transparent);
}

/* trust strip, echoing the header's assurance bar */
.footer-trust {
  display: flex;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
  /* Its own full-width white block above the footer proper. */
  background: #ffffff;
  padding: 34px 24px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Jost', sans-serif;
  font-size: 12.5px;
  letter-spacing: 0.5px;
  color: #000000;
}
.trust-item svg { width: 20px; height: 20px; stroke: #C9A236; fill: none; stroke-width: 1.3; flex-shrink: 0; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 0.8fr 1.3fr;
  gap: 40px;
  max-width: 1280px;
  margin: 0 auto 56px;
}

/* brand column  two files (assets/img/logo-on-dark.png/logo-on-light.png),
   theme-swapped the same way as the header logo (see that file's own
   "logo" comment for why this needs two actual files rather than one
   recolored via CSS); the light-theme override further down this file
   swaps which one shows. */
.footer-brand-mark {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
}
/* .footer-brand-mark .footer-brand-mark-img (not just .footer-brand-mark-img)
   is deliberate  same WooCommerce core-CSS specificity fight as
   assets/css/header.css's own logo rule (see that file's comment): a
   plain class here loses to WooCommerce's `.woocommerce img,
   .woocommerce-page img { height:auto; max-width:100%; }` on every
   WooCommerce-templated page, so this needs the extra ancestor class to
   win instead. */
.footer-brand-mark .footer-brand-mark-img { display: block; height: 54px; width: auto; }
.footer-brand-mark-img-on-light { display: none; }
.footer-tagline {
  font-family: 'Jost', sans-serif;
  font-size: 13.5px;
  line-height: 1.75;
  color: #a79d90;
  max-width: 260px;
  margin-bottom: 24px;
}
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  width: 36px; height: 36px;
  border-radius: var(--fm-radius-circle);
  border: 1px solid #C9A236;
  background: #C9A236;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.footer-socials a svg { width: 14px; height: 14px; stroke: #100d09; fill: none; stroke-width: 1.4; transition: stroke 0.25s ease; }
.footer-socials a:hover { background: #000000; border-color: #000000; }
.footer-socials a:hover svg { stroke: #C9A236; }

/* link columns */
.footer-col-title {
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #C9A236;
  margin-bottom: 22px;
}
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 13px; }
.footer-links a {
  font-family: 'Jost', sans-serif;
  font-size: 13.5px;
  color: #b7ada0;
  text-decoration: none;
  transition: color 0.25s ease, padding-left 0.25s ease;
}
.footer-links a:hover { color: #f3efe7; padding-left: 4px; }

/* newsletter column */
.footer-newsletter-desc {
  font-family: 'Jost', sans-serif;
  font-size: 13.5px;
  line-height: 1.75;
  color: #a79d90;
  margin-bottom: 20px;
}
.newsletter-form {
  display: flex;
  border: 1px solid rgba(232,220,192,0.3);
  margin-bottom: 16px;
}
.newsletter-form input {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  padding: 14px 16px;
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  color: #f3efe7;
}
.newsletter-form input::placeholder { color: #6f665a; }
.newsletter-form input:focus { outline: none; }
.newsletter-form button {
  position: relative;
  flex-shrink: 0;
  padding: 0 22px;
  border: none;
  border-left: 1px solid rgba(232,220,192,0.3);
  background: none;
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #f3efe7;
  cursor: pointer;
  overflow: hidden;
  z-index: 0;
  transition: color 0.35s ease;
}
.newsletter-form button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #000000;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
  z-index: -1;
}
.newsletter-form button:hover { color: #ffffff; }
.newsletter-form button:hover::before { transform: scaleX(1); }
.newsletter-note {
  font-family: 'Jost', sans-serif;
  font-size: 11.5px;
  color: #6f665a;
  line-height: 1.6;
}

/* bottom bar */
.footer-bottom {
  border-top: 1px solid rgba(201,162,54,0.16);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 1280px;
  margin: 0 auto;
}
.footer-copyright {
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  color: #6f665a;
}
.footer-legal { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-legal a {
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  color: #8a8074;
  text-decoration: none;
  transition: color 0.25s ease;
}
.footer-legal a:hover { color: #C9A236; }
.footer-secure {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  color: #6f665a;
}
.footer-secure svg { width: 15px; height: 15px; stroke: #8a8074; fill: none; stroke-width: 1.3; }

/* floating cart button (opens the header's cart drawer) */
.cart-fab {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 46px; height: 46px;
  border-radius: var(--fm-radius-circle);
  border: 1px solid rgba(201,162,54,0.5);
  background: rgba(10,9,8,0.85);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease;
  z-index: 40;
}
.cart-fab svg { width: 20px; height: 20px; stroke: #C9A236; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.cart-fab:hover { background: #000000; border-color: #000000; }
.cart-fab:hover svg { stroke: #ffffff; }
.cart-fab-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  border-radius: var(--fm-radius-md);
  background: #C9A236;
  color: #0a0908;
  font: 500 11px/18px 'Jost', sans-serif;
  text-align: center;
}
.cart-fab-badge[hidden] { display: none; }

/* fly-to-cart: the shrinking product copy, and the cart button's bump on arrival */
.cart-fly {
  position: fixed;
  z-index: 100000;
  pointer-events: none;
  background: #C9A236 center / cover no-repeat;
  border-radius: var(--fm-radius-md);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
  will-change: transform, opacity;
}
.cart-fab.is-bump { animation: cart-fab-bump 0.45s ease; }
@keyframes cart-fab-bump {
  0% { transform: scale(1); }
  35% { transform: scale(1.22); }
  65% { transform: scale(0.94); }
  100% { transform: scale(1); }
}

@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .site-footer { padding: 60px 26px 0; }
  .footer-trust { gap: 22px 32px; justify-content: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form button { border-left: none; border-top: 1px solid rgba(232,220,192,0.3); padding: 14px; }
}

/* =========================================================
   LIGHT THEME
   This file predates base/tokens.css (see the file-header comment) and
   is written in literal hex throughout, so unlike header.css there's no
   shared token to redefine  every dark background/light-text pair below
   is restated directly for [data-theme="light"]. Gold accents (#C9A236
   and friends) are left as they are everywhere they're already gold on
   gold-ish fills (borders, hover fills, the dark-on-gold hover text),
   since those already read fine on a light page; only the ones being used
   as light TEXT (soft golds like #C9A236/#e8dcc0) get remapped to a
   deeper gold for contrast against the now-light background.
   ========================================================= */
html[data-theme="light"] .site-footer { background: #F5EDE6; }
html[data-theme="light"] .trust-item { color: #000000; }
/* Logo swap: background just went from dark to a light cream above, so
   the cream knockout mark shown by default would nearly disappear into
   it  the real full-color file reads correctly there instead. */
html[data-theme="light"] .footer-brand-mark-img-on-dark { display: none; }
html[data-theme="light"] .footer-brand-mark-img-on-light { display: block; }
html[data-theme="light"] .footer-tagline { color: #000000; }
html[data-theme="light"] .footer-col-title { color: #C9A236; }
html[data-theme="light"] .footer-links a { color: #000000; }
html[data-theme="light"] .footer-links a:hover { color: #C9A236; }
html[data-theme="light"] .footer-newsletter-desc { color: #000000; }
html[data-theme="light"] .newsletter-form { border-color: rgba(0,0,0,0.15); }
html[data-theme="light"] .newsletter-form input { color: #000000; }
html[data-theme="light"] .newsletter-form input::placeholder { color: #6b6b6b; }
html[data-theme="light"] .newsletter-form button { color: #000000; border-left-color: rgba(0,0,0,0.15); }
html[data-theme="light"] .newsletter-form button:hover { color: #ffffff; }
html[data-theme="light"] .newsletter-note { color: #000000; }
html[data-theme="light"] .footer-bottom { border-top-color: rgba(201,162,54,0.3); }
html[data-theme="light"] .footer-copyright { color: #000000; }
html[data-theme="light"] .footer-legal a { color: #000000; }
html[data-theme="light"] .footer-legal a:hover { color: #C9A236; }
html[data-theme="light"] .footer-secure { color: #000000; }
html[data-theme="light"] .footer-secure svg { stroke: #000000; }
html[data-theme="light"] .cart-fab { background: rgba(255,255,255,0.92); border-color: rgba(201,162,54,0.6); box-shadow: 0 8px 20px rgba(0,0,0,0.12); }
html[data-theme="light"] .cart-fab svg { stroke: #000000; }
html[data-theme="light"] .cart-fab:hover { background: #000000; border-color: #000000; }
html[data-theme="light"] .cart-fab:hover svg { stroke: #ffffff; }
@media (max-width: 620px) {
  html[data-theme="light"] .newsletter-form button { border-top-color: rgba(0,0,0,0.15); }
}
