/* ══════════════════════════════════════════════════════════════════════════
   SIGN — premium streetwear footer
   Full-bleed dark navy/black footer with electric-blue edge artwork, four
   compact columns (brand, shop, support, company) and a slim bottom utility
   bar. The newsletter form lives in its own homepage band, not here.
   Loaded on every storefront page (see Views/Shared/_Layout.cshtml).

   Sharp, compact variant: square corners and tight vertical rhythm.
   ══════════════════════════════════════════════════════════════════════════ */

.sgn-foot {
  /* Palette (mirrors the reference spec) */
  --f-bg: #030609;
  --f-bg2: #050b12;
  --f-navy: #071625;
  --f-blue: #087bff;
  --f-blue-deep: #0758c9;
  --f-white: #ffffff;
  --f-text: #f5f7fa;
  --f-text2: #b7c0ce;
  --f-muted: #8d98a8;
  --f-border: #25303d;
  --f-divider: #35404d;
  --f-radius: 0px; /* razor sharp */

  position: relative;
  isolation: isolate;
  background: var(--f-bg);
  color: var(--f-text2);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Edge artwork (decorative, behind everything) ───────────────────────── */
.sgn-art { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

.sgn-art::before,
.sgn-art::after { content: ""; position: absolute; top: 0; bottom: 0; width: min(46vw, 720px); }

.sgn-art::before {
  left: 0;
  background:
    radial-gradient(120% 85% at -12% 22%, rgba(7, 88, 201, .5), transparent 58%),
    radial-gradient(90% 70% at 0% 92%, rgba(8, 123, 255, .26), transparent 62%),
    linear-gradient(90deg, rgba(7, 22, 37, .9), rgba(3, 6, 9, 0) 72%);
}

.sgn-art::after {
  right: 0;
  background:
    radial-gradient(120% 95% at 112% 26%, rgba(7, 22, 37, .95), transparent 58%),
    radial-gradient(80% 65% at 100% 84%, rgba(8, 123, 255, .2), transparent 60%),
    linear-gradient(270deg, rgba(5, 11, 18, .95), rgba(3, 6, 9, 0) 70%);
}

/* faint distressed-print texture */
.sgn-art-tex {
  position: absolute; inset: 0;
  opacity: .5; mix-blend-mode: screen;
  background-image:
    repeating-linear-gradient(112deg, rgba(255, 255, 255, .022) 0 2px, transparent 2px 7px),
    repeating-linear-gradient(-62deg, rgba(255, 255, 255, .016) 0 3px, transparent 3px 11px);
}

/* angular blue brush strokes */
.sgn-art-bar { position: absolute; display: block; background: linear-gradient(90deg, rgba(8, 123, 255, .85), rgba(7, 88, 201, 0)); opacity: .5; }
.sgn-art-bar--a { left: -60px; bottom: 26%; width: 340px; height: 6px; transform: rotate(-32deg); }
.sgn-art-bar--b { left: -80px; bottom: 18%; width: 260px; height: 3px; transform: rotate(-32deg); opacity: .35; }
.sgn-art-bar--c { right: -60px; top: 30%; width: 300px; height: 5px; transform: rotate(18deg); opacity: .4; }
.sgn-art-bar--d { right: -70px; bottom: 20%; width: 240px; height: 3px; transform: rotate(-14deg); opacity: .3; }

/* compass / star illustration, cropped by the lower-left corner */
.sgn-art-star { position: absolute; left: -90px; bottom: -100px; width: 340px; height: 340px; opacity: .5; }
.sgn-art-star--r { left: auto; right: -110px; bottom: auto; top: -120px; width: 280px; height: 280px; opacity: .2; }

/* ── Inner container ────────────────────────────────────────────────────── */
.sgn-inner { position: relative; z-index: 2; }

/* ── Main grid ──────────────────────────────────────────────────────────── */
.sgn-main {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 2.65fr);
  column-gap: 1.6rem;
  align-items: start;
  padding: 1.15rem 0 .8rem;
}

.sgn-col { min-width: 0; }

/* The three navigation columns live in their own horizontal row, so they can
   stay side-by-side (3-up) even on small screens instead of stacking. */
.sgn-navs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 1.6rem;
}

/* ── Brand column ───────────────────────────────────────────────────────── */
.sgn-logo { display: block; max-width: 150px; width: 100%; height: auto; filter: brightness(0) invert(1); }
.sgn-logo-word {
  font-family: var(--sg-display, "Anton", "Arial Narrow", system-ui, sans-serif);
  font-size: 1.8rem; letter-spacing: .05em; color: var(--f-white); text-transform: uppercase;
}
.sgn-tagline {
  display: block; margin: .4rem 0 0;
  font-size: .72rem; font-weight: 500; letter-spacing: .28em;
  text-transform: uppercase; color: var(--f-text);
}
.sgn-about { margin: .55rem 0 0; max-width: 280px; font-size: .85rem; line-height: 1.5; color: var(--f-text2); }

.sgn-socials { display: flex; flex-wrap: wrap; gap: 6px; margin-top: .7rem; }
.sgn-social {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: var(--f-radius);
  border: 1px solid var(--f-border); background: rgba(255, 255, 255, .02);
  color: var(--f-white); font-size: .92rem; text-decoration: none;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.sgn-social:hover { background: var(--f-blue); border-color: var(--f-blue); color: #fff; }
.sgn-social:focus-visible { outline: 2px solid var(--f-blue); outline-offset: 2px; }
.sgn-social[aria-disabled="true"] { opacity: .45; cursor: default; }
.sgn-social[aria-disabled="true"]:hover { background: rgba(255, 255, 255, .02); border-color: var(--f-border); color: var(--f-white); }

/* ── Navigation columns ─────────────────────────────────────────────────── */
.sgn-col-title { margin: 0; color: var(--f-white); font-size: .86rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.sgn-rule { display: block; width: 22px; height: 3px; margin: 5px 0 .5rem; border-radius: var(--f-radius); background: var(--f-blue); }
.sgn-links { display: flex; flex-direction: column; }
.sgn-links a {
  display: block; padding: .08rem 0;
  color: var(--f-text2); font-size: .84rem; line-height: 1.3; text-decoration: none;
  transition: color .14s ease, padding-left .14s ease;
}
.sgn-links a:hover,
.sgn-links a:focus-visible { color: var(--f-white); padding-left: 3px; }
.sgn-links a:focus-visible { outline: 2px solid var(--f-blue); outline-offset: 2px; }

/* ── Collapsible "Categories" (Shop column) ─────────────────────────────── */
.sgn-cats-toggle {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .08rem 0; background: none; border: 0;
  color: var(--f-white); font-size: .84rem; line-height: 1.3;
  font-family: inherit; font-weight: 700; text-align: left; cursor: pointer;
  transition: color .14s ease;
}
.sgn-cats-toggle i { font-size: .66rem; color: var(--f-blue); transition: transform .16s ease; }
.sgn-cats-toggle:hover { color: var(--f-white); }
.sgn-cats-toggle:focus-visible { outline: 2px solid var(--f-blue); outline-offset: 2px; }
.sgn-cats-toggle.is-open i { transform: rotate(180deg); }
.sgn-cats-panel[hidden] { display: none; }
.sgn-cats-panel { margin-top: .4rem; padding-top: .4rem; border-top: 1px solid var(--f-border); }
.sgn-cats-list {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .08rem .5rem; max-height: 230px; overflow-y: auto; padding-right: .2rem;
}
.sgn-cats-list a {
  display: block; padding: .08rem 0;
  color: var(--f-text2); font-size: .78rem; line-height: 1.3; text-decoration: none;
  transition: color .14s ease, padding-left .14s ease;
}
.sgn-cats-list a:hover,
.sgn-cats-list a:focus-visible { color: var(--f-white); padding-left: 3px; }
.sgn-cats-list a:focus-visible { outline: 2px solid var(--f-blue); outline-offset: 2px; }

/* ── Bottom utility bar ─────────────────────────────────────────────────── */
.sgn-bottom { border-top: 1px solid var(--f-border); }
.sgn-bottom-inner {
  display: flex; align-items: center; flex-wrap: wrap; gap: .6rem 1.1rem;
  padding: .65rem 0;
}
.sgn-copy { font-size: .84rem; color: var(--f-muted); }
.sgn-pays { display: flex; flex-wrap: wrap; gap: 6px; }
.sgn-pay {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 34px; padding: 0 6px;
  border: 1px solid var(--f-border); border-radius: var(--f-radius);
  background: rgba(255, 255, 255, .015);
}
.sgn-pay svg { width: 100%; height: auto; max-height: 18px; }

.sgn-utils { display: flex; align-items: center; gap: .85rem; margin-left: auto; }
.sgn-dd { position: relative; }
.sgn-dd-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .3rem .1rem; border: 0; background: transparent;
  color: var(--f-text2); font-size: .9rem; cursor: pointer; white-space: nowrap;
}
.sgn-dd-btn:hover { color: var(--f-white); }
.sgn-dd-btn:focus-visible { outline: 2px solid var(--f-blue); outline-offset: 2px; border-radius: var(--f-radius); }
.sgn-dd-btn i { font-size: .72rem; transition: transform .16s ease; }
.sgn-dd.is-open .sgn-dd-btn i { transform: rotate(180deg); }
.sgn-dd-menu {
  position: absolute; bottom: calc(100% + 6px); left: 0; z-index: 5;
  min-width: 140px; padding: .25rem;
  border: 1px solid var(--f-border); border-radius: var(--f-radius);
  background: #060d16; box-shadow: 0 16px 34px rgba(0, 0, 0, .5);
}
.sgn-dd-menu button {
  display: block; width: 100%; padding: .42rem .55rem; border: 0; border-radius: var(--f-radius);
  background: transparent; color: var(--f-text2); font-size: .9rem; text-align: left; cursor: pointer;
}
.sgn-dd-menu button:hover,
.sgn-dd-menu button[aria-selected="true"] { background: rgba(8, 123, 255, .16); color: #fff; }
.sgn-util-sep { width: 1px; height: 16px; background: var(--f-divider); opacity: .7; }

.sgn-top-btn {
  display: inline-flex; align-items: center; gap: .45rem;
  border: 0; background: transparent; color: var(--f-text2);
  font-size: .9rem; cursor: pointer;
}
.sgn-top-btn:hover { color: var(--f-white); }
.sgn-top-btn:focus-visible { outline: 2px solid var(--f-blue); outline-offset: 3px; border-radius: var(--f-radius); }
.sgn-top-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: var(--f-radius);
  border: 1px solid #6b7686; color: #fff; font-size: .72rem;
  transition: background .16s ease, border-color .16s ease;
}
.sgn-top-btn:hover .sgn-top-ic { background: var(--f-blue); border-color: var(--f-blue); }

/* ── Responsive ───────────────────────────────────────────────────────────
   Desktop: four columns in a single row. Below 768px the grid steps down to
   a clean 2×2 (brand top-left), and below 576px the type and gaps tighten
   further. minmax(0, …fr) keeps the grid inside its container, so there is
   never any horizontal scrolling.                                            */
@media (max-width: 1199.98px) {
  .sgn-main { column-gap: 1.25rem; }
  .sgn-navs { column-gap: 1.25rem; }
  .sgn-about { max-width: 250px; }
}

@media (max-width: 991.98px) {
  .sgn-foot .sg-wrap { padding: 0 16px; }
  .sgn-main { column-gap: .95rem; padding: 1rem 0 .75rem; }
  .sgn-navs { column-gap: .95rem; }
  .sgn-logo { max-width: 128px; }
  .sgn-tagline { font-size: .68rem; letter-spacing: .2em; }
  .sgn-about { max-width: none; font-size: .76rem; line-height: 1.4; }
  .sgn-col-title { font-size: .82rem; }
  .sgn-rule { width: 20px; height: 2px; margin: 5px 0 .45rem; }
  .sgn-links a { font-size: .79rem; padding: .06rem 0; }
  .sgn-cats-toggle { font-size: .79rem; }
  .sgn-cats-list a { font-size: .72rem; }
  .sgn-copy { font-size: .74rem; }
  .sgn-pay { width: 46px; height: 28px; }
  .sgn-pay svg { max-height: 13px; }
}

@media (max-width: 767.98px) {
  .sgn-foot .sg-wrap { padding: 0 12px; }
  /* Small screens stay HORIZONTAL: brand in a top row, then the three nav
     columns side-by-side (3-up). The expanded categories list becomes a
     horizontally scrollable chip strip. */
  .sgn-main { display: block; padding: .95rem 0 .7rem; }
  .sgn-brand {
    display: flex; align-items: center; gap: .55rem;
    margin-bottom: .75rem; padding-bottom: .7rem;
    border-bottom: 1px solid var(--f-border);
  }
  .sgn-logo { max-width: 88px; }
  .sgn-tagline { flex: 1 1 auto; min-width: 0; margin: 0; font-size: .56rem; letter-spacing: .16em; }
  .sgn-about { display: none; } /* free width for the columns */
  .sgn-socials { gap: 4px; margin: 0 0 0 auto; }
  .sgn-social { width: 24px; height: 24px; font-size: .68rem; }
  .sgn-navs { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: .6rem; }
  .sgn-col-title { font-size: .72rem; }
  .sgn-rule { width: 14px; height: 2px; margin: 4px 0 .3rem; }
  .sgn-links a,
  .sgn-cats-toggle { font-size: .68rem; padding: 0; line-height: 1.5; }
  .sgn-cats-panel { margin-top: .3rem; padding-top: .3rem; }
  .sgn-cats-list {
    display: flex; flex-wrap: nowrap; gap: .3rem;
    overflow-x: auto; max-height: none; padding-right: 0;
    overscroll-behavior-x: contain; scrollbar-width: none;
  }
  .sgn-cats-list::-webkit-scrollbar { display: none; }
  .sgn-cats-list a {
    flex: 0 0 auto; display: inline-block; white-space: nowrap;
    padding: .15rem .45rem; font-size: .6rem; line-height: 1.3;
    border: 1px solid var(--f-border);
  }
  .sgn-cats-list a:hover,
  .sgn-cats-list a:focus-visible {
    padding-left: .45rem; background: rgba(8, 123, 255, .12); border-color: var(--f-blue);
  }
  .sgn-bottom-inner { padding: .55rem 0; gap: .45rem .8rem; }
  .sgn-dd-btn, .sgn-top-btn { font-size: .74rem; }
}

@media (max-width: 575.98px) {
  .sgn-navs { column-gap: .5rem; }
  .sgn-logo { max-width: 66px; }
  .sgn-social { width: 20px; height: 20px; font-size: .56rem; }
  .sgn-socials { gap: 3px; }
  .sgn-col-title { font-size: .64rem; letter-spacing: 0; }
  .sgn-links a,
  .sgn-cats-toggle { font-size: .62rem; }
  .sgn-cats-toggle { gap: .15rem; }
  .sgn-cats-list a { font-size: .56rem; padding: .12rem .35rem; }
  .sgn-pay { width: 36px; height: 23px; padding: 0 4px; }
  .sgn-pay svg { max-height: 12px; }
  .sgn-copy { font-size: .66rem; }
  .sgn-utils { flex-wrap: wrap; }
}

@media (max-width: 430.98px) {
  .sgn-navs { column-gap: .35rem; }
  .sgn-tagline { display: none; }
  .sgn-links a,
  .sgn-cats-toggle { font-size: .58rem; }
  .sgn-cats-list a { font-size: .52rem; }
  .sgn-rule { width: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .sgn-social, .sgn-send, .sgn-top-ic, .sgn-links a, .sgn-dd-btn i, .sgn-cats-toggle i { transition: none; }
}
