/* ==========================================================================
   VETALUX shared site footer — pairs with site-footer.js (all storefront pages).
   Prefixed vxf- classes + scoped tokens. The legacy hook classes it carries
   (.footer-col-brand, .footer-socials, .social-icon-link, .store-support-info)
   are restyled here under .vxf so old style.css rules cannot leak in.
   ========================================================================== */

.vxf {
  --vx-gold: #F0B223;
  --vx-gold-bright: #FED54D;
  --vx-amber: #D98A0C;
  --vx-coral: #EC7256;
  --vx-dark: #1e150b;
  --vx-text: rgba(248, 236, 214, 0.92);
  --vx-soft: rgba(248, 236, 214, 0.62);
  --vx-line: rgba(255, 255, 255, 0.09);
  --vx-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --vx-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin-top: clamp(40px, 6vw, 72px);
  padding-top: clamp(28px, 4vw, 44px);
  background:
    radial-gradient(700px 380px at 100% 0%, rgba(240, 178, 35, 0.14), transparent 65%),
    radial-gradient(600px 400px at 0% 100%, rgba(236, 114, 86, 0.1), transparent 65%),
    var(--vx-dark);
  color: var(--vx-text);
  font-family: var(--vx-body);
  font-size: 15px;
  line-height: 1.55;
  border-radius: 36px 36px 0 0;
}

/* faint dotted texture */
.vxf::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1.2px);
  background-size: 22px 22px;
  pointer-events: none;
}

:where(.vxf) * { box-sizing: border-box; }
:where(.vxf) a { color: inherit; text-decoration: none; }
:where(.vxf) ul { list-style: none; margin: 0; padding: 0; }
:where(.vxf) p { margin: 0; }
:where(.vxf) svg { display: block; flex-shrink: 0; }

.vxf-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.vxf-container { width: min(1240px, calc(100% - 40px)); margin: 0 auto; }

.vxf a:focus-visible, .vxf button:focus-visible, .vxf summary:focus-visible {
  outline: 2.5px solid var(--vx-gold);
  outline-offset: 3px;
  border-radius: 6px;
}

/* --------------------------------------------------------------------------
   Trust row
   -------------------------------------------------------------------------- */
.vxf-trust {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding-bottom: clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--vx-line);
}

.vxf-trust li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--vx-line);
}

.vxf-trust svg {
  width: 44px;
  height: 44px;
  padding: 11px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--vx-gold-bright), var(--vx-gold));
  color: var(--vx-dark);
}

.vxf-trust span { display: flex; flex-direction: column; min-width: 0; }
.vxf-trust strong { font-family: var(--vx-display); font-size: 0.98rem; font-weight: 800; color: #fff; }
.vxf-trust small { font-size: 0.78rem; color: var(--vx-soft); }

/* --------------------------------------------------------------------------
   Main grid
   -------------------------------------------------------------------------- */
.vxf-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1.3fr;
  gap: clamp(24px, 3.5vw, 48px);
  padding: clamp(36px, 5vw, 60px) 0 clamp(20px, 3vw, 32px);
}

/* Brand */
.vxf-logo { display: inline-flex; align-items: center; gap: 12px; }
.vxf-logo img { width: 52px; height: 52px; object-fit: contain; }
.vxf-logo > span {
  display: flex; flex-direction: column;
  font-family: var(--vx-display); font-size: 1.45rem; font-weight: 900; letter-spacing: 0.14em; line-height: 1; color: #fff;
}
.vxf-logo small { margin-top: 5px; font-size: 0.58rem; font-weight: 700; letter-spacing: 0.32em; text-transform: uppercase; color: var(--vx-gold); }

.vxf-desc { margin: 18px 0 20px; max-width: 340px; font-size: 0.9rem; line-height: 1.65; color: var(--vx-soft); }

/* Contact rows (rendered here, rewritten by script.js on the homepage) */
.vxf .vxf-contact { display: flex; flex-direction: column; gap: 10px; margin: 0 0 22px; padding: 0; border: 0; background: none; font-size: 0.88rem; color: var(--vx-text); }
.vxf .vxf-contact:empty { display: none; }
.vxf .vxf-contact > a,
.vxf .vxf-contact > span { display: inline-flex; align-items: center; gap: 10px; color: var(--vx-text); }
.vxf .vxf-contact > a:hover { color: var(--vx-gold-bright); }

.vxf .vxf-contact > *::before {
  content: "";
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06) no-repeat center / 16px;
}

.vxf .vxf-contact > a[href^="tel:"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F0B223' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .4 1.9.7 2.8a2 2 0 0 1-.5 2.1L8 9.9a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.8.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E"); }
.vxf .vxf-contact > a[href^="mailto:"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F0B223' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='M22 7l-10 6L2 7'/%3E%3C/svg%3E"); }
.vxf .vxf-contact > span::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F0B223' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }

/* Socials — the row disappears entirely when no profile URLs are configured */
.vxf .vxf-socials { display: flex; gap: 10px; }
.vxf .vxf-socials:not(:has(.social-icon-link:not([hidden]))) { display: none; }
.vxf .social-icon-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--vx-line); color: #fff;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.vxf .social-icon-link[hidden] { display: none; }
.vxf .social-icon-link:hover { background: var(--vx-gold); color: var(--vx-dark); transform: translateY(-2px); }
.vxf .social-icon-link svg { width: 18px; height: 18px; }
.vxf .tiktok-mark { font-size: 1.15rem; font-weight: 800; line-height: 1; }

/* Link columns */
.vxf-col summary { list-style: none; }
.vxf-col summary::-webkit-details-marker { display: none; }

.vxf-col-title {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
  font-family: var(--vx-display); font-size: 1rem; font-weight: 800; letter-spacing: 0.02em; color: var(--vx-gold-bright);
  cursor: default;
}

.vxf-col-chev { display: none !important; width: 18px; height: 18px; transition: transform .25s ease; }

.vxf-links { display: flex; flex-direction: column; gap: 11px; }

.vxf-links a {
  display: inline-flex; align-items: center; gap: 0;
  font-size: 0.9rem; color: var(--vx-soft);
  transition: color .2s ease, transform .2s ease;
}

.vxf-links a::before {
  content: ""; width: 0; height: 2px; margin-right: 0; border-radius: 2px; background: var(--vx-gold);
  transition: width .2s ease, margin-right .2s ease;
}

.vxf-links a:hover { color: #fff; }
.vxf-links a:hover::before { width: 10px; margin-right: 8px; }

/* Community card */
.vxf-community {
  align-self: start;
  display: flex; flex-direction: column; gap: 8px;
  padding: 22px;
  border-radius: 24px;
  background:
    radial-gradient(160px 120px at 100% 0%, rgba(254, 213, 77, 0.35), transparent 70%),
    linear-gradient(150deg, #3a2614, #2a1b0e);
  border: 1px solid rgba(240, 178, 35, 0.22);
  transition: transform .25s ease, border-color .25s ease;
}

.vxf-community:hover { transform: translateY(-4px); border-color: rgba(240, 178, 35, 0.5); }

.vxf-community-tag {
  align-self: flex-start; padding: 3px 10px; border-radius: 999px;
  background: rgba(240, 178, 35, 0.16); color: var(--vx-gold-bright);
  font-family: var(--vx-display); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
}

.vxf-community strong { font-family: var(--vx-display); font-size: 1.35rem; font-weight: 900; color: #fff; }
.vxf-community > span:not([class]) { font-size: 0.85rem; line-height: 1.55; color: var(--vx-soft); }

.vxf-community-cta {
  margin-top: 6px; display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  padding: 9px 16px; border-radius: 999px; background: var(--vx-gold); color: var(--vx-dark);
  font-family: var(--vx-display); font-size: 0.85rem; font-weight: 800;
}

.vxf-community-cta svg { width: 16px; height: 16px; transition: transform .2s ease; }
.vxf-community:hover .vxf-community-cta svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   Giant wordmark + bottom bar
   -------------------------------------------------------------------------- */
.vxf-wordmark {
  font-family: var(--vx-display);
  font-size: clamp(4.5rem, 19vw, 17rem);
  font-weight: 900;
  line-height: 0.78;
  letter-spacing: -0.04em;
  text-align: center;
  white-space: nowrap;
  color: transparent;
  background: linear-gradient(180deg, rgba(240, 178, 35, 0.2), rgba(240, 178, 35, 0.02) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  user-select: none;
  pointer-events: none;
  margin-bottom: -0.06em;
}

.vxf-bottom { position: relative; border-top: 1px solid var(--vx-line); background: rgba(0, 0, 0, 0.18); }

.vxf-bottom-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  padding: 18px 0 calc(18px + env(safe-area-inset-bottom, 0px));
}

.vxf-copy { font-size: 0.82rem; color: var(--vx-soft); }

.vxf-pay { display: flex; flex-wrap: wrap; gap: 6px; }
.vxf-pay span {
  padding: 5px 10px; border-radius: 8px;
  background: #fff; color: #1a1209;
  font-family: var(--vx-display); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.02em;
}

.vxf-top {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border: 1px solid var(--vx-line); border-radius: 999px;
  background: rgba(255, 255, 255, 0.05); color: var(--vx-text);
  font: 700 0.82rem var(--vx-display); cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}

.vxf-top svg { width: 15px; height: 15px; transition: transform .2s ease; }
.vxf-top:hover { background: var(--vx-gold); color: var(--vx-dark); }
.vxf-top:hover svg { transform: translateY(-2px); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .vxf-main { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .vxf-community { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 18px; }
  .vxf-community strong { font-size: 1.15rem; }
  .vxf-community > span:not([class]) { flex: 1; min-width: 220px; }
  .vxf-community-cta { margin-top: 0; }
  .vxf-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .vxf-main { grid-template-columns: 1fr 1fr 1fr; }
  .vxf-brand { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; column-gap: 24px; align-items: start; }
  .vxf-brand .vxf-desc { grid-column: 1; }
  .vxf-brand .vxf-contact { grid-column: 1; }
  .vxf-brand .vxf-socials { grid-column: 2; grid-row: 1; align-self: center; }
}

@media (max-width: 720px) {
  .vxf { border-radius: 28px 28px 0 0; font-size: 14px; }
  .vxf-container { width: calc(100% - 28px); }

  .vxf-trust { gap: 8px; }
  .vxf-trust li { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; border-radius: 18px; }
  .vxf-trust svg { width: 38px; height: 38px; padding: 9px; border-radius: 12px; }
  .vxf-trust strong { font-size: 0.9rem; }
  .vxf-trust small { font-size: 0.72rem; }

  .vxf-main { grid-template-columns: 1fr; gap: 0; padding-top: 30px; }
  .vxf-brand { display: block; padding-bottom: 24px; }
  .vxf-brand .vxf-socials { margin-top: 4px; }

  /* columns become accordions */
  .vxf-col { border-top: 1px solid var(--vx-line); }
  .vxf-col:last-of-type { border-bottom: 1px solid var(--vx-line); }
  .vxf-col-title { margin: 0; padding: 16px 2px; cursor: pointer; font-size: 0.98rem; }
  .vxf-col-chev { display: block !important; color: var(--vx-soft); }
  .vxf-col[open] .vxf-col-chev { transform: rotate(180deg); }
  .vxf-links { padding: 0 2px 18px; gap: 13px; }
  .vxf-links a { font-size: 0.95rem; }

  .vxf-community { margin-top: 24px; flex-direction: column; align-items: stretch; }
  .vxf-community-cta { align-self: flex-start; }

  .vxf-wordmark { margin-top: 26px; }

  .vxf-bottom-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .vxf-top { position: absolute; right: 14px; top: 14px; padding: 8px 12px; }
  .vxf-top { font-size: 0; gap: 0; }
  .vxf-top svg { width: 16px; height: 16px; }
}

@media (max-width: 360px) {
  .vxf-trust { grid-template-columns: 1fr; }
  .vxf-trust li { flex-direction: row; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  .vxf *, .vxf *::before { transition: none !important; }
}
