/* M3yar — Shop footer
   Idea: cream brand signature → espresso utility close
*/

.m3-footer {
  --f-espresso: #1a0f0c;
  --f-brown: #2c1810;
  --f-red: #7a3333;
  --f-red-dark: #5c2222;
  --f-gold: #c4a574;
  --f-gold-bright: #d4b483;
  --f-peach: #e8944a;
  --f-cream: #fffcf8;
  --f-peach-bg: #fdf3ea;
  --f-ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* margin-top: 48px; */
  color: var(--f-espresso);
  isolation: isolate;
}

/* ── Signature band (cream) ── */
.m3-footer__signature {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 5vw, 56px) 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(196, 165, 116, 0.22), transparent 55%),
    linear-gradient(180deg, var(--f-cream) 0%, #fff 45%, var(--f-peach-bg) 100%);
  border-top: 1px solid rgba(122, 51, 51, 0.08);
}

.m3-footer__signature-mesh,
.m3-footer__signature-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.m3-footer__signature-mesh {
  background:
    radial-gradient(circle at 12% 80%, rgba(122, 51, 51, 0.07) 0%, transparent 42%),
    radial-gradient(circle at 92% 20%, rgba(232, 148, 74, 0.16) 0%, transparent 48%);
}

.m3-footer__signature-grain {
  opacity: 0.3;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

.m3-footer__signature .container {
  position: relative;
  z-index: 1;
}

.m3-footer__signature-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.85fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: stretch;
}

.m3-footer__logo img {
  height: 46px;
  width: auto;
  display: block;
  margin-bottom: 14px;
}

.m3-footer__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  margin-bottom: 14px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(122, 51, 51, 0.08);
  color: var(--f-red);
  font-family: "Cairo", sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.m3-footer__title {
  margin: 0 0 12px;
  max-width: 18ch;
  font-family: "Cairo", sans-serif;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 900;
  line-height: 1.35;
  color: var(--f-espresso);
}

.m3-footer__title em {
  font-style: normal;
  color: var(--f-red);
}

.m3-footer__lead {
  margin: 0;
  max-width: 34rem;
  font-family: "Cairo", sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.85;
  color: #6b4c3b;
}

.m3-footer__signature-action {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  min-height: 100%;
  padding: 28px 26px 24px;
  border-radius: 24px;
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(196, 165, 116, 0.2), transparent 50%),
    linear-gradient(165deg, #3a2218 0%, var(--f-espresso) 100%);
  color: #fff;
  border: 1px solid rgba(196, 165, 116, 0.22);
  box-shadow: 0 22px 44px rgba(26, 15, 12, 0.18);
  overflow: hidden;
}

.m3-footer__gift-notch {
  position: absolute;
  top: 50%;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--f-cream);
  box-shadow: inset 0 0 0 1px rgba(26, 15, 12, 0.06);
  transform: translateY(-50%);
  z-index: 2;
  pointer-events: none;
}

.m3-footer__gift-notch--start {
  inset-inline-start: -11px;
}

.m3-footer__gift-notch--end {
  inset-inline-end: -11px;
}

.m3-footer__gift::before {
  content: "";
  position: absolute;
  inset-block: 18px;
  inset-inline-end: 18px;
  width: 0;
  border-inline-start: 1px dashed rgba(196, 165, 116, 0.35);
  pointer-events: none;
}

.m3-footer__action-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: start;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(196, 165, 116, 0.16);
  color: var(--f-gold);
  font-family: "Cairo", sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.m3-footer__signature-action h3 {
  margin: 2px 0 0;
  font-family: "Cairo", sans-serif;
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 900;
  line-height: 1.35;
  color: #fff;
}

.m3-footer__signature-action h3 em {
  font-style: normal;
  color: var(--f-gold-bright);
}

.m3-footer__signature-action p {
  margin: 0;
  max-width: 34ch;
  font-family: "Cairo", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.8;
  color: rgba(255, 252, 248, 0.74);
}

.m3-footer__code {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  width: 100%;
  margin-top: 4px;
  padding: 10px 12px 10px 16px;
  border: 1px dashed rgba(196, 165, 116, 0.45);
  border-radius: 16px;
  background: rgba(255, 252, 248, 0.06);
  color: #fff;
  text-align: start;
  cursor: pointer;
  transition: background 0.2s var(--f-ease), border-color 0.2s var(--f-ease);
}

.m3-footer__code:hover,
.m3-footer__code.is-copied {
  background: rgba(255, 252, 248, 0.1);
  border-color: var(--f-gold);
}

.m3-footer__code-label {
  grid-column: 1;
  font-family: "Cairo", sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 252, 248, 0.62);
}

.m3-footer__code strong {
  grid-column: 1;
  font-family: "Cairo", sans-serif;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--f-gold-bright);
  margin-top: -26px;
}

.m3-footer__code-action {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(196, 165, 116, 0.18);
  color: var(--f-gold);
  font-size: 16px;
}

.m3-footer__code.is-copied .m3-footer__code-action {
  background: rgba(47, 107, 79, 0.35);
  color: #b8e0c8;
}

.m3-footer__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  margin-top: 4px;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--f-red), var(--f-red-dark));
  color: #fff;
  text-decoration: none;
  font-family: "Cairo", sans-serif;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(122, 51, 51, 0.36);
  transition: transform 0.25s var(--f-ease), box-shadow 0.25s var(--f-ease);
}

.m3-footer__cta:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(122, 51, 51, 0.44);
}

/* ── Espresso body ── */
.m3-footer__body {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 40px) 0 0;
  background:
    radial-gradient(ellipse 60% 70% at 100% 0%, rgba(196, 165, 116, 0.16), transparent 50%),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(122, 51, 51, 0.2), transparent 55%),
    linear-gradient(180deg, #2c1810 0%, #1a0f0c 100%);
  color: rgba(255, 252, 248, 0.86);
}

.m3-footer__body-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 80% 20%, rgba(232, 148, 74, 0.1), transparent 40%),
    radial-gradient(circle at 15% 85%, rgba(122, 51, 51, 0.16), transparent 42%);
}

.m3-footer__mark {
  position: absolute;
  inset-inline-end: -0.04em;
  bottom: -0.02em;
  z-index: 0;
  pointer-events: none;
  font-family: "Cairo", sans-serif;
  font-size: clamp(5rem, 14vw, 11rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(196, 165, 116, 0.055);
  user-select: none;
}

.m3-footer__body .container {
  position: relative;
  z-index: 1;
}

.m3-footer__reach {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.m3-footer__reach-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 84px;
  padding: 14px 18px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 252, 248, 0.1), rgba(196, 165, 116, 0.07));
  border: 1px solid rgba(196, 165, 116, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 28px rgba(0, 0, 0, 0.18);
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.25s var(--f-ease),
    border-color 0.25s var(--f-ease),
    background 0.25s var(--f-ease);
}

.m3-footer__reach-card:hover {
  transform: translateY(-2px);
  background: linear-gradient(145deg, rgba(255, 252, 248, 0.14), rgba(196, 165, 116, 0.12));
  border-color: rgba(196, 165, 116, 0.5);
}

.m3-footer__reach-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--f-red), var(--f-red-dark));
  color: #fff;
  font-size: 16px;
  box-shadow: 0 10px 20px rgba(122, 51, 51, 0.32);
}

.m3-footer__reach-card--whatsapp {
  border-color: rgba(37, 211, 102, 0.42);
  background: linear-gradient(145deg, rgba(37, 211, 102, 0.14), rgba(196, 165, 116, 0.07));
}

.m3-footer__reach-card--whatsapp:hover {
  border-color: rgba(37, 211, 102, 0.7);
  background: linear-gradient(145deg, rgba(37, 211, 102, 0.2), rgba(196, 165, 116, 0.1));
}

.m3-footer__reach-card--whatsapp .m3-footer__reach-icon {
  background: linear-gradient(145deg, #25d366, #128c7e);
  box-shadow: 0 10px 20px rgba(18, 140, 126, 0.36);
  font-size: 20px;
}

.m3-footer__reach-copy {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 3px;
}

.m3-footer__reach-copy small {
  font-family: "Cairo", sans-serif;
  font-size: 11px;
  font-weight: 800;
  color: var(--f-gold-bright);
}

.m3-footer__reach-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "Cairo", sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: var(--f-cream);
}

.m3-footer__reach-go {
  flex-shrink: 0;
  color: var(--f-gold);
  font-size: 14px;
  opacity: 0.75;
}

.m3-footer__nav {
  display: grid;
  grid-template-columns: minmax(140px, 0.55fr) minmax(0, 1.45fr);
  gap: clamp(20px, 3vw, 40px);
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(196, 165, 116, 0.18);
}

.m3-footer__col h4 {
  margin: 0 0 14px;
  font-family: "Cairo", sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--f-gold-bright);
}

.m3-footer__col ul:not(.m3-footer__chips) {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.m3-footer__col ul:not(.m3-footer__chips) a {
  font-family: "Cairo", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 252, 248, 0.72);
  text-decoration: none;
  transition: color 0.2s var(--f-ease);
}

.m3-footer__col ul:not(.m3-footer__chips) a:hover {
  color: #fff;
}

.m3-footer__chips {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.m3-footer__chips a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 252, 248, 0.06);
  border: 1px solid rgba(196, 165, 116, 0.22);
  color: rgba(255, 252, 248, 0.82);
  text-decoration: none;
  font-family: "Cairo", sans-serif;
  font-size: 13px;
  font-weight: 700;
  transition:
    background 0.2s var(--f-ease),
    border-color 0.2s var(--f-ease),
    color 0.2s var(--f-ease);
}

.m3-footer__chips a:hover {
  background: rgba(196, 165, 116, 0.16);
  border-color: rgba(196, 165, 116, 0.45);
  color: var(--f-cream);
}

.m3-footer__trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 22px 0;
  border-bottom: 1px solid rgba(196, 165, 116, 0.18);
}

.m3-footer__trust li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 252, 248, 0.04);
  border: 1px solid rgba(196, 165, 116, 0.14);
  font-family: "Cairo", sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 252, 248, 0.8);
}

.m3-footer__trust-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: rgba(196, 165, 116, 0.14);
  color: var(--f-gold-bright);
  font-size: 14px;
}

.m3-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 0 22px;
  font-family: "Cairo", sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 252, 248, 0.45);
}

.m3-footer__seal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--f-gold-bright);
}

.m3-footer__seal::before,
.m3-footer__seal::after {
  content: "";
  width: 16px;
  height: 1px;
  background: rgba(196, 165, 116, 0.45);
}

@media (max-width: 991px) {
  .m3-footer__reach {
    grid-template-columns: 1fr 1fr;
  }

  .m3-footer__reach-card--whatsapp {
    grid-column: 1 / -1;
  }

  .m3-footer__signature-inner {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .m3-footer__signature-action {
    max-width: none;
    width: 100%;
  }

  .m3-footer__cta {
    width: 100%;
  }

  .m3-footer__trust {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .m3-footer {
    margin-top: 28px;
  }

  .m3-footer__reach {
    grid-template-columns: 1fr;
  }

  .m3-footer__nav {
    grid-template-columns: 1fr;
  }

  .m3-footer__title {
    max-width: none;
  }

  .m3-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .m3-footer__cta,
  .m3-footer__reach-card,
  .m3-footer__chips a {
    transition: none;
  }
}
