/* Chhavi Art — footer credentials, layout, connect icons, payment logos */

/* ── Shared footer shell ── */
.site-footer {
  background: #060301;
  color: rgba(245, 240, 232, 0.7);
  border-top: 1px solid rgba(196, 152, 42, 0.15);
}

.site-footer-inner {
  max-width: var(--cont, 1200px);
  margin: 0 auto;
  padding: clamp(32px, 5vw, 48px) clamp(20px, 5vw, 60px) 32px;
}

.site-footer--rich .site-footer-inner {
  padding: clamp(48px, 6vw, 80px) clamp(20px, 5vw, 60px) 40px;
}

.site-footer--compact .site-footer-inner {
  max-width: 1100px;
  padding: 28px clamp(20px, 5vw, 60px) 28px;
}

/* Override page-level `a { text-decoration: underline }` on legal pages */
.site-footer a,
.site-footer a:visited,
.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: none;
}

/* ── Rich footer column grid: 1 → 2 → 4 columns ── */
.footer-grid {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
  margin-bottom: clamp(40px, 6vw, 60px);
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .footer-grid > :first-child {
    grid-column: auto;
  }
}

/* ── CONNECT links with SVG glyphs ── */
.footer-connect-links {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-connect-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 400 14px / 1.35 'Jost', sans-serif;
  color: rgba(245, 240, 232, 0.55);
  text-decoration: none;
  transition: color 0.3s ease;
  max-width: 100%;
}

.footer-connect-link--static {
  color: rgba(245, 240, 232, 0.35);
  cursor: default;
}

.footer-connect-link:hover,
.footer-connect-link:focus-visible {
  color: var(--gold, #c4982a);
}

.footer-connect-link--wa:hover,
.footer-connect-link--wa:focus-visible {
  color: #25d366;
}

.footer-connect-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: rgba(196, 152, 42, 0.72);
  transition: color 0.3s ease;
}

.footer-connect-link:hover .footer-connect-icon,
.footer-connect-link:focus-visible .footer-connect-icon {
  color: inherit;
}

.footer-connect-link--static .footer-connect-icon {
  color: rgba(196, 152, 42, 0.55);
}

.footer-connect-icon svg {
  display: block;
  width: 16px;
  height: 16px;
}

.footer-connect-link span:last-child {
  min-width: 0;
  word-break: break-word;
}

/* ── Credentials strip ── */
.footer-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  overflow: visible;
  position: relative;
  z-index: 1;
  margin-bottom: 0;
  padding: 0 clamp(12px, 3vw, 20px) clamp(12px, 2.5vw, 14px);
  border-bottom: 1px solid rgba(245, 240, 232, 0.08);
}

.footer-creds {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
  width: 100%;
  max-width: 100%;
}

.footer-cred {
  font: 400 clamp(12px, 2.8vw, 13px) / 1.5 'Jost', sans-serif;
  letter-spacing: 0.02em;
  color: rgba(245, 240, 232, 0.74);
  white-space: normal;
}

@media (min-width: 520px) {
  .footer-creds {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0;
  }

  .footer-cred {
    white-space: nowrap;
  }

  .footer-cred + .footer-cred::before {
    content: '·';
    margin: 0 0.55em;
    color: rgba(245, 240, 232, 0.48);
    pointer-events: none;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .footer-trust {
    padding-bottom: 16px;
  }

  .footer-creds {
    gap: 4px 0;
  }
}

[data-theme=dark] .footer-cred {
  color: rgba(230, 225, 215, 0.78);
}

[data-theme=dark] .footer-cred + .footer-cred::before {
  color: rgba(230, 225, 215, 0.5);
}

/* ── Footer bottom bar (copyright · legal · payments) ── */
.footer-bottom {
  display: grid;
  gap: 14px 20px;
  align-items: center;
  padding-top: 16px;
  text-align: center;
}

.footer-bottom-copy {
  margin: 0;
  font: 400 13px / 1.4 'Jost', sans-serif;
  color: rgba(245, 240, 232, 0.3);
  order: 1;
}

.footer-bottom-legal,
.footer-bottom-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 18px;
  order: 2;
}

.footer-bottom-legal a,
.footer-bottom-nav a {
  font: 400 12px / 1 'Jost', sans-serif;
  color: rgba(245, 240, 232, 0.35);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-bottom-legal a:hover,
.footer-bottom-legal a:focus-visible,
.footer-bottom-nav a:hover,
.footer-bottom-nav a:focus-visible {
  color: var(--gold, #c4982a);
}

.footer-bottom .footer-payments {
  order: 3;
  justify-content: center;
}

.footer-bottom-brand {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-decoration: none;
  order: 0;
  justify-self: center;
}

.footer-bottom-brand span:first-child {
  font: 700 26px / 1 'Dancing Script', cursive;
  color: var(--gold, #c4982a);
}

.footer-bottom-brand span:last-child {
  font: 600 9px / 1 'Jost', sans-serif;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.4);
}

.footer-bottom-nav a {
  font: 400 13px / 1 'Jost', sans-serif;
  color: rgba(245, 240, 232, 0.4);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-bottom-nav a[href='/privacy'],
.footer-bottom-nav a[href='/terms'],
.footer-bottom-nav a[href='/cookies'] {
  color: rgba(245, 240, 232, 0.3);
}

/* Mobile stack: copyright → legal/nav → payments */
@media (max-width: 767px) {
  .footer-bottom--extended .footer-bottom-brand {
    order: 0;
  }

  .footer-bottom--extended .footer-bottom-copy {
    order: 1;
  }

  .footer-bottom--extended .footer-bottom-nav {
    order: 2;
  }

  .footer-bottom--extended .footer-payments {
    order: 3;
  }
}

/* Tablet: 2-row wrap without orphaned payment logos */
@media (min-width: 768px) and (max-width: 1023px) {
  .footer-bottom {
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }

  .footer-bottom-copy {
    justify-self: start;
    grid-column: 1;
    order: 1;
  }

  .footer-bottom-legal,
  .footer-bottom-nav {
    justify-self: end;
    grid-column: 2;
    order: 2;
    justify-content: flex-end;
  }

  .footer-bottom .footer-payments {
    grid-column: 1 / -1;
    order: 3;
    justify-content: center;
    padding-top: 4px;
  }

  .footer-bottom--extended {
    grid-template-columns: auto 1fr;
  }

  .footer-bottom--extended .footer-bottom-brand {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    order: 0;
  }

  .footer-bottom--extended .footer-bottom-nav {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    order: 1;
  }

  .footer-bottom--extended .footer-bottom-copy {
    grid-column: 1;
    grid-row: 2;
    order: 2;
  }

  .footer-bottom--extended .footer-payments {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    order: 3;
    padding-top: 0;
  }
}

/* Desktop: copyright left · legal center · payments right */
@media (min-width: 1024px) {
  .footer-bottom {
    grid-template-columns: 1fr auto 1fr;
    text-align: left;
  }

  .footer-bottom-copy {
    justify-self: start;
    grid-column: 1;
    order: 1;
  }

  .footer-bottom-legal,
  .footer-bottom-nav {
    justify-self: center;
    grid-column: 2;
    order: 2;
    justify-content: center;
  }

  .footer-bottom .footer-payments {
    justify-self: end;
    grid-column: 3;
    order: 3;
    justify-content: flex-end;
  }

  .footer-bottom--extended {
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
  }

  .footer-bottom--extended .footer-bottom-brand {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    order: 0;
  }

  .footer-bottom--extended .footer-bottom-nav {
    grid-column: 2;
    grid-row: 1;
    order: 1;
  }

  .footer-bottom--extended .footer-payments {
    grid-column: 3;
    grid-row: 1;
    order: 2;
    padding-top: 0;
  }

  .footer-bottom--extended .footer-bottom-copy {
    grid-column: 1;
    grid-row: 2;
    order: 3;
    margin-top: 6px;
  }
}

/* ── Payment logos: grey gradient at rest → full brand colour on hover ── */
.footer-payments {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2.5vw, 16px);
}

.footer-pay-logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 8px;
  border-radius: 5px;
  cursor: default;
}

.footer-pay-logo img {
  display: block;
  width: auto;
  height: clamp(20px, 5vw, 28px);
  transition: filter 0.4s ease, opacity 0.4s ease, transform 0.25s ease;
  filter: grayscale(100%) brightness(2.35) contrast(0.72);
  opacity: 0.94;
}

.footer-pay-logo::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.42) 0%,
    rgba(210, 210, 210, 0.12) 45%,
    rgba(255, 255, 255, 0.32) 100%
  );
  mix-blend-mode: overlay;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.35s ease;
}

.footer-pay-logo:hover img,
.footer-pay-logo:focus-visible img {
  filter: none;
  opacity: 1;
  transform: translateY(-1px);
}

.footer-pay-logo:hover::after,
.footer-pay-logo:focus-visible::after {
  opacity: 0;
}

.footer-pay-logo--visa img {
  height: clamp(16px, 4vw, 22px);
}

.footer-pay-logo--mc img {
  height: clamp(22px, 5.5vw, 30px);
}

.footer-pay-logo--stripe img {
  height: clamp(18px, 4.5vw, 24px);
}

/* 404 / light footer context */
.footer .footer-trust {
  border-bottom-color: var(--border);
  margin-bottom: 0;
  padding-bottom: 12px;
}

.footer .footer-bottom {
  gap: 14px;
  padding-top: 14px;
}

.footer .footer-cred {
  color: rgba(70, 65, 58, 0.78);
}

.footer .footer-cred + .footer-cred::before {
  color: rgba(70, 65, 58, 0.45);
}

[data-theme=dark] .footer .footer-cred {
  color: rgba(230, 225, 215, 0.78);
}

[data-theme=dark] .footer .footer-cred + .footer-cred::before {
  color: rgba(230, 225, 215, 0.5);
}

.footer .footer-pay-logo img {
  filter: grayscale(100%) brightness(0.52) contrast(1.15);
  opacity: 0.82;
}

.footer .footer-pay-logo::after {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(180, 180, 180, 0.2) 50%,
    rgba(255, 255, 255, 0.4) 100%
  );
}

.footer .footer-pay-logo:hover img,
.footer .footer-pay-logo:focus-visible img {
  filter: none;
  opacity: 1;
}

.footer .footer-bottom-copy {
  color: rgba(70, 65, 58, 0.55);
}

[data-theme=dark] .footer .footer-bottom-copy {
  color: rgba(230, 225, 215, 0.55);
}

@media (max-width: 519px) {
  .footer-trust {
    padding-left: 16px;
    padding-right: 16px;
  }

  .footer-cred {
    max-width: 100%;
    line-height: 1.55;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-pay-logo img,
  .footer-pay-logo::after,
  .footer-connect-link,
  .footer-connect-icon {
    transition: none;
  }
}
