/* ════════════════════════════════════════════════════════════
   JANOSCI — PREMIUM FOOTER (jp-foot-*)
   Navy + Emerald + Amber. Mobile-first, beautiful on all devices.
   ════════════════════════════════════════════════════════════ */

/* Override any legacy footer rules */
.site-footer.jp-foot {
  position: relative;
  background: linear-gradient(180deg, #0A2540 0%, #051A30 100%) !important;
  color: rgba(255,255,255,0.78) !important;
  padding: 0 !important;
  margin: 2rem 0 0 !important;
  border: none !important;
  border-radius: 24px 24px 0 0 !important;
  overflow: hidden;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, sans-serif;
}

/* Decorative top glow */
.jp-foot-glow {
  position: absolute;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  max-width: 100%;
  height: 360px;
  background: radial-gradient(ellipse at center, rgba(16,185,129,0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.jp-foot-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 1rem;
}

/* ── TOP: brand + nav columns ── */
.jp-foot-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.jp-foot-brand .jp-foot-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  margin-bottom: 1rem;
}
.jp-foot-brand .jp-foot-logo img {
  height: 44px;
  width: auto;
  filter: brightness(1.1);
}
.jp-foot-brand .jp-foot-logo strong {
  display: block;
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
}
.jp-foot-brand .jp-foot-logo span {
  display: block;
  color: rgba(255,255,255,0.55);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

.jp-foot-about {
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
  margin: 0 0 1.25rem;
  max-width: 360px;
}

.jp-foot-social {
  display: flex;
  gap: 0.5rem;
}
.jp-foot-soc {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
}
.jp-foot-soc:hover {
  background: #10B981;
  border-color: #10B981;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(16,185,129,0.3);
}
.jp-foot-soc-wa:hover { background: #25D366; border-color: #25D366; box-shadow: 0 8px 16px rgba(37,211,102,0.35); }

/* Columns */
.jp-foot-columns {
  display: contents;
}

.jp-foot-col summary,
.jp-foot-col .jp-foot-col-title {
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 1rem;
  list-style: none;
  cursor: default;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding-bottom: 0.6rem;
}
.jp-foot-col summary::-webkit-details-marker { display: none; }

/* Accent bar under title */
.jp-foot-col summary::after,
.jp-foot-col .jp-foot-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, #10B981, #F59E0B);
  border-radius: 99px;
}

.jp-foot-col summary i { display: none; }

.jp-foot-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.jp-foot-col ul li {
  margin: 0 0 0.55rem;
}
.jp-foot-col ul li a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: rgba(255,255,255,0.65);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.15s ease, transform 0.15s ease;
  line-height: 1.4;
}
.jp-foot-col ul li a i {
  font-size: 0.7rem;
  color: rgba(16,185,129,0.7);
  width: 14px;
  text-align: center;
  flex-shrink: 0;
}
.jp-foot-col ul li a:hover {
  color: #34D399;
  transform: translateX(3px);
}
.jp-foot-col ul li a:hover i {
  color: #34D399;
}

/* Contact column rows */
.jp-foot-contact-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px dashed rgba(255,255,255,0.06);
}
.jp-foot-contact-row:last-child { border-bottom: none; }
.jp-foot-contact-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(16,185,129,0.12);
  color: #34D399;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  border: 1px solid rgba(16,185,129,0.2);
}
.jp-foot-contact-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.jp-foot-contact-text small {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.jp-foot-contact-text strong {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  margin-top: 1px;
  word-break: break-all;
}
a.jp-foot-contact-row:hover .jp-foot-contact-icon {
  background: #10B981;
  color: #fff;
  border-color: #10B981;
}

/* ── NEWSLETTER BAND ── */
.jp-foot-newsletter {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
  background: linear-gradient(135deg, rgba(16,185,129,0.08), rgba(245,158,11,0.05));
  border: 1px solid rgba(16,185,129,0.12);
  border-radius: 18px;
  padding: 1.5rem 1.75rem;
  margin: 0 0 1.5rem;
}
.jp-foot-news-text { min-width: 0; }
.jp-foot-news-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(16,185,129,0.15);
  color: #34D399;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.75rem;
  border-radius: 99px;
  margin-bottom: 0.6rem;
}
.jp-foot-news-text h3 {
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 0 0.35rem;
  letter-spacing: -0.01em;
}
.jp-foot-news-text p {
  color: rgba(255,255,255,0.65);
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0;
}

.jp-foot-news-form {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}
.jp-foot-news-field {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}
.jp-foot-news-field i {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.45);
  font-size: 0.85rem;
  pointer-events: none;
}
.jp-foot-news-field input {
  width: 100%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  font-size: 0.9rem;
  padding: 0.85rem 1rem 0.85rem 2.5rem;
  border-radius: 12px;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}
.jp-foot-news-field input::placeholder { color: rgba(255,255,255,0.4); }
.jp-foot-news-field input:focus {
  background: rgba(255,255,255,0.12);
  border-color: #10B981;
  box-shadow: 0 0 0 3px rgba(16,185,129,0.18);
}
.jp-foot-news-form button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #10B981, #059669);
  color: #fff;
  font-weight: 800;
  font-size: 0.88rem;
  border: none;
  padding: 0.85rem 1.5rem;
  border-radius: 12px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(16,185,129,0.3);
  transition: all 0.2s ease;
}
.jp-foot-news-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(16,185,129,0.4);
}
.jp-foot-news-form button i { font-size: 0.85rem; }

/* ── TRUST STRIP ── */
.jp-foot-trust {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.jp-foot-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
}
.jp-foot-trust-item i {
  color: #34D399;
  font-size: 0.95rem;
}

/* ── PAYMENT METHODS ── */
.jp-foot-pay {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.jp-foot-pay-label {
  font-size: 0.7rem;
  font-weight: 800;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.jp-foot-pay-icons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}
.jp-foot-pay-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  height: 36px;
  min-width: 50px;
  padding: 0 0.65rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  color: rgba(255,255,255,0.85);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.jp-foot-pay-chip i { font-size: 1.4rem; }
.jp-foot-pay-upi {
  background: rgba(16,185,129,0.12);
  color: #34D399;
  border-color: rgba(16,185,129,0.25);
  letter-spacing: 0.08em;
}
.jp-foot-pay-cod {
  background: rgba(245,158,11,0.12);
  color: #FBBF24;
  border-color: rgba(245,158,11,0.25);
}
.jp-foot-pay-cod i { color: #FBBF24; }

/* ── BOTTOM ── */
.jp-foot-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0 0.5rem;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
}
.jp-foot-copy strong { color: #fff; font-weight: 700; }
.jp-foot-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.jp-foot-meta a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-weight: 600;
}
.jp-foot-meta a:hover { color: #34D399; }
.jp-foot-meta i { color: rgba(245,158,11,0.85); margin-right: 0.25rem; }
.jp-foot-dot { color: rgba(255,255,255,0.25); }

/* ════════════════════════════════════════════════════════════
   TABLET (≤991px) — 2 columns
   ════════════════════════════════════════════════════════════ */
@media (max-width: 991px) {
  .site-footer.jp-foot { margin-top: 1.5rem !important; border-radius: 22px 22px 0 0 !important; }
  .jp-foot-inner { padding: 2rem 1rem 1rem; }

  .jp-foot-top {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
  }
  .jp-foot-brand { grid-column: 1 / -1; }
  .jp-foot-about { max-width: 100%; }
}

/* ════════════════════════════════════════════════════════════
   MOBILE (≤640px) — single column with collapsible nav
   ════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .site-footer.jp-foot {
    margin-top: 1rem !important;
    border-radius: 20px 20px 0 0 !important;
  }
  .jp-foot-glow { width: 380px; height: 240px; top: -120px; }
  .jp-foot-inner { padding: 1.5rem 14px 1rem; }

  /* Stack everything */
  .jp-foot-top {
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
  }

  /* Brand block centered */
  .jp-foot-brand {
    text-align: left;
    padding-bottom: 1rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .jp-foot-brand .jp-foot-logo img { height: 38px; }
  .jp-foot-brand .jp-foot-logo strong { font-size: 1.05rem; }
  .jp-foot-brand .jp-foot-logo span { font-size: 0.6rem; }
  .jp-foot-about { font-size: 0.82rem; line-height: 1.65; margin-bottom: 1rem; }

  .jp-foot-social { gap: 0.45rem; }
  .jp-foot-soc { width: 36px; height: 36px; font-size: 0.85rem; border-radius: 10px; }

  /* Collapsible Shop / Support sections */
  .jp-foot-col {
    border-bottom: 1px solid rgba(255,255,255,0.07);
    padding: 0.25rem 0;
    margin: 0;
  }
  .jp-foot-col[open] { padding-bottom: 0.85rem; }
  .jp-foot-col summary {
    cursor: pointer;
    padding: 0.85rem 0;
    margin: 0;
    font-size: 0.75rem;
    list-style: none;
    user-select: none;
  }
  .jp-foot-col summary::after { display: none; }
  .jp-foot-col summary i {
    display: inline-block;
    color: rgba(255,255,255,0.5);
    font-size: 0.72rem;
    transition: transform 0.2s ease;
  }
  .jp-foot-col[open] summary i { transform: rotate(180deg); }

  .jp-foot-col ul { padding-top: 0.25rem; }
  .jp-foot-col ul li { margin-bottom: 0.45rem; }
  .jp-foot-col ul li a {
    font-size: 0.85rem;
    padding: 0.35rem 0;
    color: rgba(255,255,255,0.7);
  }

  /* Contact column = always-open card */
  .jp-foot-contact {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 0.85rem 1rem;
    margin-top: 0.85rem;
  }
  .jp-foot-contact .jp-foot-col-title {
    margin-bottom: 0.65rem;
    padding-bottom: 0.5rem;
    font-size: 0.7rem;
  }
  .jp-foot-contact .jp-foot-col-title::after { width: 24px; }
  .jp-foot-contact-row { padding: 0.55rem 0; gap: 0.65rem; }
  .jp-foot-contact-icon { width: 34px; height: 34px; font-size: 0.75rem; }
  .jp-foot-contact-text small { font-size: 0.6rem; }
  .jp-foot-contact-text strong { font-size: 0.8rem; }

  /* Newsletter — stacked */
  .jp-foot-newsletter {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.25rem 1.1rem;
    border-radius: 16px;
  }
  .jp-foot-news-text h3 { font-size: 1.05rem; }
  .jp-foot-news-text p { font-size: 0.82rem; }
  .jp-foot-news-form {
    flex-direction: column;
    gap: 0.6rem;
  }
  .jp-foot-news-field input { font-size: 0.88rem; padding: 0.8rem 1rem 0.8rem 2.4rem; }
  .jp-foot-news-form button { width: 100%; justify-content: center; padding: 0.8rem; font-size: 0.85rem; }

  /* Trust strip — 2x2 grid */
  .jp-foot-trust {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: 12px;
  }
  .jp-foot-trust-item {
    font-size: 0.72rem;
    background: rgba(255,255,255,0.04);
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    justify-content: flex-start;
  }
  .jp-foot-trust-item i { font-size: 0.85rem; }

  /* Payments — stacked label, centered chips */
  .jp-foot-pay {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
    padding: 0.85rem 0;
  }
  .jp-foot-pay-label { text-align: center; font-size: 0.65rem; }
  .jp-foot-pay-icons { justify-content: center; gap: 0.4rem; }
  .jp-foot-pay-chip { height: 32px; min-width: 44px; padding: 0 0.5rem; font-size: 0.65rem; }
  .jp-foot-pay-chip i { font-size: 1.2rem; }

  /* Bottom — stacked & centered */
  .jp-foot-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.6rem;
    font-size: 0.7rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.06);
  }
  .jp-foot-copy { line-height: 1.5; }
  .jp-foot-meta { justify-content: center; font-size: 0.7rem; }
}

/* Extra small phones */
@media (max-width: 360px) {
  .jp-foot-inner { padding: 1.25rem 12px 0.85rem; }
  .jp-foot-news-text h3 { font-size: 0.95rem; }
  .jp-foot-trust { grid-template-columns: 1fr; }
  .jp-foot-pay-chip { min-width: 40px; height: 30px; }
}

/* When jp-foot is present, neutralize legacy footer rules */
.site-footer.jp-foot,
.site-footer.jp-foot * {
  box-sizing: border-box;
}
.site-footer.jp-foot .footer-grid,
.site-footer.jp-foot .footer-section,
.site-footer.jp-foot .footer-top:not(.jp-foot-top) { display: block; }
