/**
 * Dripex Premium Footer Stylesheet (Phase 5).
 * Beautiful Layout | Aesthetic Design | Modern UI/UX | High Contrast | Fully Responsive.
 *
 * @package storefront-child
 */

/* ==========================================================================
   1. FOOTER WRAPPER RESET
   ========================================================================== */
#colophon.site-footer {
  /* Fixed dark brand block: --color-navy flips to near-white in dark mode, which left white text on a white footer. */
  background: #0D1B3E !important;
  color: #CBD5E1 !important;
  padding: 0 !important;
  margin: 0 !important;
  border-top: none !important;
  width: 100% !important;
}

#colophon.site-footer > .col-full {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* ==========================================================================
   2. PRE-FOOTER TRUST STATS BAR
   ========================================================================== */
.dxs-footer-trust-bar {
  background: #09132B;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: clamp(24px, 3vw, 36px) 0;
}

.dxs-footer-trust-inner {
  max-width: var(--container-max, 1280px);
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 32px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 2.5vw, 32px);
}

.dxs-trust-stat {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dxs-trust-stat__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.dxs-trust-stat__icon svg {
  width: 22px;
  height: 22px;
}

.dxs-trust-stat__icon--amber { background: rgba(245, 158, 11, 0.15); color: #F59E0B; border: 1px solid rgba(245, 158, 11, 0.3); }
.dxs-trust-stat__icon--green { background: rgba(34, 197, 94, 0.15); color: #22C55E; border: 1px solid rgba(34, 197, 94, 0.3); }
.dxs-trust-stat__icon--blue { background: rgba(47, 111, 237, 0.15); color: #3B82F6; border: 1px solid rgba(47, 111, 237, 0.3); }
.dxs-trust-stat__icon--red { background: rgba(230, 57, 70, 0.15); color: #E63946; border: 1px solid rgba(230, 57, 70, 0.3); }

.dxs-trust-stat__text strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.dxs-trust-stat__text span {
  display: block;
  font-size: 13px;
  color: #94A3B8;
  margin-top: 2px;
}

/* ==========================================================================
   3. MAIN 4-COLUMN FOOTER
   ========================================================================== */
.dxs-footer-main {
  background: #0D1B3E;
  padding: clamp(48px, 6vw, 76px) 0 clamp(40px, 5vw, 60px);
}

.dxs-footer-grid {
  max-width: var(--container-max, 1280px);
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 32px);
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(28px, 4vw, 56px);
}

/* Brand Column */
.dxs-footer-col--brand .dxs-footer-logo {
  display: inline-block;
  text-decoration: none;
  margin-bottom: 18px;
  line-height: 1;
}

.dxs-footer-logo__img {
  max-height: 68px;
  width: auto;
  display: block;
  transition: transform var(--transition-base, 0.2s ease), opacity var(--transition-base, 0.2s ease);
}

.dxs-footer-logo:hover .dxs-footer-logo__img {
  transform: translateY(-1px);
  opacity: 0.92;
}

.dxs-footer-logo__icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--color-red, #E63946) 0%, #D62828 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(230, 57, 70, 0.4);
}

.dxs-footer-brand-desc {
  font-size: 14px;
  line-height: 1.65;
  color: #94A3B8;
  margin-bottom: 24px;
  max-width: 340px;
}

/* Social Buttons */
.dxs-footer-social-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dxs-footer-social-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #CBD5E1 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all var(--transition-fast, 150ms ease);
}

.dxs-footer-social-btn svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast, 150ms ease);
}

.dxs-footer-social-btn:hover {
  transform: translateY(-3px);
  color: #FFFFFF !important;
}

.dxs-footer-social-btn:hover svg {
  transform: scale(1.1);
}

.dxs-footer-social-btn--youtube:hover {
  background: #FF0000;
  border-color: #FF0000;
  box-shadow: 0 6px 18px rgba(255, 0, 0, 0.45);
}

.dxs-footer-social-btn--facebook:hover {
  background: #1877F2;
  border-color: #1877F2;
  box-shadow: 0 6px 18px rgba(24, 119, 242, 0.45);
}

.dxs-footer-social-btn--instagram:hover {
  background: linear-gradient(45deg, #F09433, #E6683C, #DC2743, #CC2366, #BC1888);
  border-color: #DC2743;
  box-shadow: 0 6px 18px rgba(220, 39, 67, 0.45);
}

.dxs-footer-social-btn--tiktok:hover {
  background: #010101;
  border-color: #00F2FE;
  box-shadow: 0 6px 18px rgba(0, 242, 254, 0.4);
}

.dxs-footer-social-btn--linkedin:hover {
  background: #0A66C2;
  border-color: #0A66C2;
  box-shadow: 0 6px 18px rgba(10, 102, 194, 0.45);
}

/* Nav Columns */
.dxs-footer-col__title {
  font-size: 15px;
  font-weight: 800;
  color: #FFFFFF !important;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
  position: relative;
  padding-bottom: 12px;
}

.dxs-footer-col__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--color-blue, #2F6FED);
  border-radius: 2px;
}

.dxs-footer-nav {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dxs-footer-nav li {
  margin: 0 !important;
  padding: 0 !important;
}

.dxs-footer-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #CBD5E1 !important;
  text-decoration: none !important;
  transition: all var(--transition-fast, 150ms ease);
}

.dxs-footer-nav a:hover {
  color: #FFFFFF !important;
  transform: translateX(4px);
}

.dxs-footer-nav a::before {
  content: '›';
  font-size: 16px;
  line-height: 1;
  color: var(--color-blue, #2F6FED);
  opacity: 0.6;
  transition: all var(--transition-fast, 150ms ease);
}

.dxs-footer-nav a:hover::before {
  opacity: 1;
  color: #60A5FA;
}

/* Support button — links to the Contact page's "Submit a ticket" form */
.dxs-footer-support-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-blue, #2F6FED);
  color: #FFFFFF !important;
  font-size: 13px;
  font-weight: 800;
  padding: 12px 18px;
  border-radius: 12px;
  text-decoration: none !important;
  margin-top: 18px;
  box-shadow: 0 4px 16px rgba(47, 111, 237, 0.35);
  transition: all var(--transition-fast, 150ms ease);
  cursor: pointer;
}

.dxs-footer-support-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.dxs-footer-support-btn:hover {
  background: #2660d1;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(47, 111, 237, 0.5);
}

/* ==========================================================================
   4. BOTTOM COPYRIGHT & PAYMENT BAR
   ========================================================================== */
.dxs-footer-bottom {
  background: #081024;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 0;
}

.dxs-footer-bottom-inner {
  max-width: var(--container-max, 1280px);
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 32px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.dxs-footer-copyright {
  font-size: 13px;
  color: #94A3B8;
  margin: 0;
}

.dxs-footer-copyright a {
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition-fast, 150ms ease);
}

.dxs-footer-copyright a:hover {
  color: #60A5FA;
}

/* Payment Icons Row */
.dxs-footer-payments {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dxs-payment-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: #E2E8F0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.dxs-payment-badge svg {
  height: 18px;
  width: auto;
}

.dxs-footer-tagline {
  font-size: 12px;
  color: #64748B;
  margin: 0;
}

/* ==========================================================================
   5. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1023px) {
  .dxs-footer-trust-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .dxs-footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px 32px;
  }

  .dxs-footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }
}

@media (max-width: 639px) {
  .dxs-footer-trust-inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .dxs-footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .dxs-footer-brand-desc {
    max-width: 100%;
  }

  .dxs-footer-payments {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ==========================================================================
   6. TEXT COLORS ON WOOCOMMERCE PAGES
   dripex-woocommerce.css colours every `p` / `li` / `label` inside `.dripex-wc-page` and
   `.woocommerce` dark grey — including the footer — which left dark text on the navy footer
   on shop, cart, checkout and account pages. Restate the footer colors with an id.
   ========================================================================== */
#colophon .dxs-footer-brand-desc { color: #B4C0D3; }
#colophon .dxs-footer-copyright { color: #A3B1C6; }
#colophon .dxs-footer-copyright a { color: #FFFFFF; }
#colophon .dxs-footer-copyright a:hover { color: #60A5FA; }
#colophon .dxs-footer-tagline { color: #A3B1C6; }
