/* ==========================================================================
   OstuGrupp — premium footer (loaded by inc/footer-extras.php)
   Layers on top of the base .site-footer rules in main.css. Slate background,
   green accents, Space Grotesk display. Responsive: 4 → 2 → 1 columns.
   ========================================================================== */

/* ---- Top region: brand block + link columns ---- */
.site-footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

/* Brand block */
.site-footer__brand {
  max-width: 420px;
}
.site-footer__wordmark {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: -.01em;
  color: #fff;
  margin-bottom: 14px;
}
.site-footer__wordmark:hover { color: #fff; }
.site-footer__wordmark-accent { color: var(--green-bright); }
.site-footer__tagline {
  color: #94a3b8;
  font-size: 14.5px;
  line-height: 1.65;
  margin-bottom: 18px;
}

/* Contact (phone + hours) */
.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}
.site-footer__phone,
.site-footer__hours {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14.5px;
  color: #cbd5e1;
  font-weight: 600;
}
.site-footer__phone:hover { color: var(--green-bright); }
.site-footer__ic { color: var(--green-bright); flex: none; }

/* Social row */
.site-footer__social {
  display: flex;
  gap: 10px;
  margin: 0;
}
.site-footer__social-link {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  color: #cbd5e1;
  transition: background .2s ease, color .2s ease, transform .2s ease, border-color .2s ease;
}
.site-footer__social-link:hover {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  transform: translateY(-2px);
}

/* Link columns */
.site-footer__cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  /* Override the main.css padding/border so the brand block owns the divider. */
  padding-bottom: 0;
  border-bottom: 0;
}
.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.site-footer__links a,
.site-footer__col .footer-widget a {
  display: inline-block;
  color: #94a3b8;
  font-size: 14.5px;
  transition: color .2s ease, transform .2s ease;
}
.site-footer__links a:hover,
.site-footer__col .footer-widget a:hover {
  color: #fff;
  transform: translateX(4px);
}

/* ---- Newsletter ---- */
.site-footer__newsletter {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.site-footer__newsletter-title {
  color: #fff;
  font-size: 19px;
  margin-bottom: 4px;
}
.site-footer__newsletter-sub {
  color: #94a3b8;
  font-size: 14px;
}
.site-footer__newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  position: relative;
}
.site-footer__newsletter-input {
  flex: 1 1 220px;
  min-width: 0;
  min-height: 48px;
  padding: 0 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  outline: none;
  transition: border-color .2s ease, background .2s ease;
}
.site-footer__newsletter-input::placeholder { color: #94a3b8; }
.site-footer__newsletter-input:focus {
  border-color: var(--green);
  background: rgba(255, 255, 255, .1);
}
/* Mobile: the form wraps, so a content-width button would land narrow and
   left-aligned on its own row. Make it full-width for a tidy stacked field +
   button. At >=480px it reverts to its natural width sitting beside the input. */
.site-footer__newsletter-btn { flex: 1 1 100%; min-height: 48px; }
@media (min-width: 480px) {
  .site-footer__newsletter-btn { flex: none; }
}
.site-footer__newsletter-done {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green-bright);
  font-weight: 600;
  font-size: 15px;
  min-height: 48px;
}
.site-footer__newsletter-done::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(52, 211, 153, .15);
  color: var(--green-bright);
  font-weight: 700;
}

/* ---- Payment + carrier badges ---- */
.site-footer__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  padding: 26px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.site-footer__badge-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.site-footer__badge-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #94a3b8;
}
.site-footer__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}
.site-footer__chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  min-width: 52px;
  padding: 0 12px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}
.site-footer__chip-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .02em;
  line-height: 1;
  color: var(--slate-dark);
}
.site-footer__chip--pay .site-footer__chip-mark { color: #1a1f71; }      /* card-blue */
.site-footer__chip--ship { background: var(--slate); border-color: rgba(255, 255, 255, .12); }
.site-footer__chip--ship .site-footer__chip-mark { color: #fff; }

/* ---- Trust line ---- */
.site-footer__trust {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 0;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 600;
}
.site-footer__trust-ic { color: var(--green-bright); flex: none; }

/* ---- Bottom bar ---- */
.site-footer__bottom {
  /* base layout comes from main.css; refine spacing here */
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.site-footer__copy { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.site-footer__sep { color: #475569; }
.site-footer__menu a:hover { color: #fff; }

/* ==========================================================================
   Responsive: 1 col (mobile) → 2 cols (≥640) → brand + 4 cols (≥1024)
   ========================================================================== */
@media (min-width: 640px) {
  .site-footer__cols { grid-template-columns: repeat(2, 1fr); }
  .site-footer__newsletter { grid-template-columns: 1.1fr 1.4fr; }
  .site-footer__newsletter-form { justify-content: flex-end; }
}

@media (min-width: 1024px) {
  .site-footer__top { grid-template-columns: 1.2fr 2.4fr; gap: 64px; }
  .site-footer__cols { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
}
