/* ==========================================================================
   SecMall — Storefront footer  (modern · classic · bold)
   Universal across all themes; colours come from --f-* tokens injected by
   footer-tokens.blade.php. Layout: fixed brand rail + self-contained nav grid
   so columns always align in clean rows (no orphaned columns).
   ========================================================================== */

/* ── Container ────────────────────────────────────────────────────────────── */
.ftr-container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

/* ── Footer roots ─────────────────────────────────────────────────────────── */
.ftr {
  font-family: var(--f-font);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
/* One restrained ambient glow, anchored bottom-right */
.ftr::after {
  content: "";
  position: absolute;
  right: -10%;
  bottom: -40%;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, var(--f-primary) 0%, transparent 68%);
  opacity: .10;
  pointer-events: none;
  z-index: 0;
}
.ftr-modern { background: var(--f-surface); color: var(--f-ink) }
.ftr-classic { background: var(--f-surface); color: var(--f-ink) }
.ftr-bold   { background: var(--f-bg);      color: var(--f-ink) }

/* ── Top region: brand rail + nav grid ────────────────────────────────────── */
.ftr-top {
  display: grid;
  grid-template-columns: minmax(240px, 300px) 1fr;
  gap: 56px;
  padding: 64px 0 44px;
  position: relative;
  z-index: 1;
}
.ftr-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 36px 28px;
  align-content: start;
}

/* ── Brand block ──────────────────────────────────────────────────────────── */
.ftr-brand-block { max-width: 320px }
.ftr-brand {
  display: inline-block;
  text-decoration: none;
  color: inherit;
  margin-bottom: 16px;
}
.ftr-logo {
  display: inline-block;
  font-family: var(--f-font-display);
  font-weight: 800;
  font-size: 25px;
  line-height: 1;
  letter-spacing: -.4px;
  color: var(--f-ink);
  text-decoration: none;
}
.ftr-logo-img {
  display: block;
  max-height: 50px;
  max-width: 230px;
  width: auto;
  object-fit: contain;
}
.ftr-logo-invert { filter: brightness(0) invert(1) }
.ftr-slogan {
    color: var(--f-muted);
    font-size: 12px;
    line-height: 1.65;
    max-width: 100%;
    margin: -14px 0 22px;
}

/* ── Contacts (icon chip + text) ──────────────────────────────────────────── */
.ftr-contacts {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 22px;
}
.ftr-contact {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--f-ink);
  text-decoration: none;
  font-size: 14px;
  transition: color .18s;
}
.ftr-contact i {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 16px;
  color: var(--f-accent);
  background: var(--f-surface);
  border: 1px solid var(--f-line);
  transition: background .2s, color .2s, border-color .2s;
}
.ftr-contact:hover { color: var(--f-primary) }
.ftr-contact:hover i {
  background: var(--f-primary);
  border-color: var(--f-primary);
  color: #fff;
}

/* ── Social ───────────────────────────────────────────────────────────────── */
.ftr-social { display: flex; gap: 10px; flex-wrap: wrap }
.ftr-social-btn {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--f-surface);
  border: 1px solid var(--f-line);
  color: var(--f-ink);
  font-size: 17px;
  text-decoration: none;
  transition: transform .2s, background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.ftr-social-btn:hover {
  transform: translateY(-3px);
  background: var(--f-primary);
  border-color: var(--f-primary);
  color: #fff;
  box-shadow: 0 10px 24px -10px var(--f-primary);
}

/* ── Column headings + links ──────────────────────────────────────────────── */
.ftr-col-title {
  font-family: var(--f-font-display);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin: 0 0 18px;
  color: var(--f-ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.ftr-col-title::before {
  content: "";
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--f-accent);
  flex: none;
}
.ftr-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ftr-links a {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding-left: 16px;
  color: var(--f-muted);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.4;
  width: fit-content;
  transition: color .2s;
}
/* Chevron marker that slides on hover — designed list, no layout shift */
.ftr-links a::before {
  content: "\F285"; /* bi-chevron-right */
  font-family: "bootstrap-icons";
  position: absolute;
  left: 0;
  top: .05em;
  font-size: 11px;
  line-height: 1.4;
  color: var(--f-accent);
  opacity: .55;
  transition: transform .2s ease, opacity .2s ease;
}
.ftr-links a:hover { color: var(--f-ink) }
.ftr-links a:hover::before { transform: translateX(3px); opacity: 1 }

/* ── Compact working hours (in the brand rail, under contacts) ─────────────── */
.ftr-hours-compact {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 22px;
}
.ftr-hours-ico {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 16px;
  color: var(--f-accent);
  background: var(--f-surface);
  border: 1px solid var(--f-line);
}
.ftr-hours-compact ul {
  list-style: none;
  margin: 0;
  padding: 2px 0 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.ftr-hours-compact li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12.5px;
  line-height: 1.3;
  color: var(--f-muted);
}
.ftr-hours-compact li b { color: var(--f-ink); font-weight: 600; white-space: nowrap }

/* ── Working hours ────────────────────────────────────────────────────────── */
.ftr-hours { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px }
.ftr-hours li { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--f-muted) }
.ftr-hours li span:last-child { color: var(--f-ink); font-weight: 600 }

/* ── Map ──────────────────────────────────────────────────────────────────── */
.ftr-col-map { grid-column: span 2 }
.ftr-map { border-radius: var(--f-radius-sm); overflow: hidden; line-height: 0; border: 1px solid var(--f-line) }
.ftr-map iframe { width: 100%; height: 180px; border: 0; display: block }

/* ── Trust: payment / delivery logos (second line of the bottom bar) ─────── */
.ftr-trust {
  position: relative;
  z-index: 1;
  width: 100%;
}
.ftr-icons-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
}
.ftr-icons-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.ftr-icons-group + .ftr-icons-group { margin-left: 24px }
.ftr-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 12px;
  border-radius: 9px;
  background: var(--f-surface);
  border: 1px solid var(--f-line);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.ftr-icon-badge:hover {
  transform: translateY(-2px);
  border-color: var(--f-accent);
  box-shadow: 0 8px 18px -10px rgba(0,0,0,.45);
}
.ftr-icon-badge img { max-height: 22px; max-width: 58px; object-fit: contain }

/* ── Bottom bar (legal text row + logos row underneath) ──────────────────── */
.ftr-bottom {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 0;
  font-size: 13px;
  color: var(--f-muted);
  position: relative;
  z-index: 1;
}
.ftr-bottom-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  width: 100%;
}
.ftr-bottom-pay { display: inline-flex; align-items: center; gap: 8px }
.ftr-bottom-pay i { font-size: 16px; color: var(--f-accent) }

/* Configurable copyright / legal credits — smaller so long legal text fits */
.ftr-credits {
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--f-muted);
  max-width: 780px;
}
.ftr-credits span { font-size: inherit }

/* ── Scroll-reveal (JS adds .ftr-reveal; no JS → stays visible) ───────────── */
.ftr-col.ftr-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s ease, transform .55s ease;
  transition-delay: var(--ftr-reveal-delay, 0ms);
}
.ftr-col.ftr-reveal.in { opacity: 1; transform: none }
@media (prefers-reduced-motion: reduce) {
  .ftr-col.ftr-reveal { opacity: 1; transform: none; transition: none }
}


/* ══════════════════════════════════════════════════════════════════════════
   CLASSIC — gradient contact strip on top + legal bar
   ══════════════════════════════════════════════════════════════════════════ */
.ftr-strip {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--f-primary) 0%, var(--f-primary-dark) 100%);
  color: var(--f-on-primary);
  z-index: 2;
}
.ftr-strip::after {
  content: "";
  position: absolute;
  top: -60%;
  right: 6%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255,255,255,.16) 0%, transparent 64%);
  pointer-events: none;
}
.ftr-strip-row { display: flex; flex-wrap: wrap; gap: 14px 40px; padding: 22px 28px }
.ftr-strip-item { display: inline-flex; align-items: center; gap: 13px; color: inherit; text-decoration: none; transition: transform .18s }
.ftr-strip-item:hover { transform: translateY(-1px) }
.ftr-strip-ico {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.16);
  font-size: 18px; flex: none;
}
.ftr-strip-label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; opacity: .78 }
.ftr-strip-value { display: block; font-size: 14px; font-weight: 700 }

.ftr-legal { position: relative; background: var(--f-bg); z-index: 2 }
.ftr-legal-row {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: 16px; padding: 18px 0;
  font-size: 13px; color: var(--f-muted);
}
.ftr-legal-pay { display: inline-flex; align-items: center; gap: 8px }
.ftr-legal-pay i { font-size: 16px; color: var(--f-primary) }


/* ══════════════════════════════════════════════════════════════════════════
   BOLD — gradient newsletter band
   ══════════════════════════════════════════════════════════════════════════ */
.ftr-cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--f-primary) 0%, var(--f-primary-dark) 100%);
  color: var(--f-on-primary);
  z-index: 2;
}
.ftr-cta::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 -60%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.14), transparent);
  transform: skewX(-18deg);
  animation: ftrSheen 8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes ftrSheen { 0%, 62% { left: -60% } 100% { left: 130% } }
@media (prefers-reduced-motion: reduce) { .ftr-cta::before { animation: none; display: none } }
.ftr-cta-row {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 24px; padding: 38px 28px;
  position: relative; z-index: 1;
}
.ftr-cta-title { font-family: var(--f-font-display); font-weight: 800; font-size: 24px; margin: 0 0 5px }
.ftr-cta-sub { margin: 0; font-size: 14px; opacity: .88 }
.ftr-cta-form { display: flex; gap: 10px; flex-wrap: wrap }
.ftr-cta-input {
  min-width: 260px; padding: 13px 16px;
  border-radius: 11px;
  border: 1px solid rgba(255,255,255,.32);
  background: rgba(255,255,255,.12);
  color: var(--f-on-primary); font-size: 14px;
}
.ftr-cta-input::placeholder { color: rgba(255,255,255,.7) }
.ftr-cta-input:focus { outline: none; border-color: #fff; background: rgba(255,255,255,.2) }
.ftr-cta-btn {
  padding: 13px 30px; border-radius: 11px; border: none;
  background: var(--f-accent); color: var(--f-accent-ink);
  font-weight: 700; font-size: 14px; cursor: pointer;
  transition: filter .18s, transform .18s, box-shadow .18s;
}
.ftr-cta-btn:hover { filter: brightness(1.07); transform: translateY(-2px); box-shadow: 0 12px 26px -10px var(--f-accent) }


/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .ftr-top { grid-template-columns: 1fr; gap: 40px; padding: 48px 0 36px }
  .ftr-brand-block { max-width: none }
}
@media (max-width: 560px) {
  .ftr-nav { grid-template-columns: 1fr 1fr; gap: 30px 20px }
  .ftr-col-map { grid-column: 1 / -1 }
  .ftr-strip-row, .ftr-cta-row { padding: 22px 20px }
  .ftr-bottom-row, .ftr-legal-row { grid-template-columns: 1fr; justify-items: start; gap: 14px }
  .ftr-cta-input { min-width: 0; flex: 1 }
}
@media (max-width: 380px) {
  .ftr-nav { grid-template-columns: 1fr }
}
