/* =========================================================
   Footer chung các trang Flower (partials/site-footer.blade.php). Prefix .wf-foot-*.
   Tự khai báo token vì footer nằm ngoài .wf-home/.wf-page.
   ========================================================= */
.wf-foot {
  --f-ink: #241f1c;
  --f-soft: #6b625c;
  --f-line: rgba(36, 31, 28, .1);
  --f-rose: #b4596c;
  --f-rose-deep: #93405a;
  --f-paper: #fbf7f1;
  --f-ease: cubic-bezier(.22, .61, .36, 1);
  --f-serif: var(--wj-font-serif, "Cormorant Garamond", Georgia, serif);
  --f-sans: var(--wj-font-sans, "Manrope", system-ui, sans-serif);
  position: relative;
  margin-top: clamp(3.5rem, 8vw, 7rem);
  padding: 0 0 calc(1.2rem + env(safe-area-inset-bottom, 0px));
  color: var(--f-ink);
  font-family: var(--f-sans);
}
.wf-foot a { color: inherit; text-decoration: none; }
.wf-foot .icon, .wf-foot svg { flex: 0 0 auto; }

/* ---------- Lời mời đặt hoa ---------- */
.wf-foot-cta {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; flex-wrap: wrap;
  padding: clamp(1.8rem, 4vw, 3.2rem) clamp(1.4rem, 4vw, 3.6rem);
  border-radius: 32px;
  background: radial-gradient(80% 140% at 0% 0%, #5c2438, #2a1b20 70%);
  color: #fffaf3;
}
.wf-foot-cta-glow {
  position: absolute; z-index: -1; right: -10%; top: -60%; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 128, 150, .45), transparent 65%);
  animation: wfFootGlow 9s ease-in-out infinite alternate;
}
@keyframes wfFootGlow { to { transform: translate(-60px, 40px) scale(1.15); } }
.wf-foot-eyebrow { margin: 0 0 .6rem; font: 600 .7rem var(--f-sans); letter-spacing: .22em; text-transform: uppercase; color: #f0bfc8; }
.wf-foot-cta-title { margin: 0; font: 500 clamp(1.9rem, 1.2rem + 2.4vw, 3.4rem)/1.05 var(--f-serif); text-wrap: balance; }
.wf-foot-cta-title em { color: #f0bfc8; }
.wf-foot-cta-sub { margin: .8rem 0 0; color: rgba(255, 250, 243, .72); font-size: .95rem; line-height: 1.6; }
.wf-foot-cta-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.wf-foot-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 52px; padding: 0 1.4rem; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255, 250, 243, .4); background: transparent; color: #fffaf3;
  font: 600 .95rem var(--f-sans);
  transition: background .3s, color .3s, border-color .3s, transform .4s var(--f-ease);
}
.wf-foot-btn:hover { transform: translateY(-2px); border-color: #fffaf3; background: rgba(255, 250, 243, .08); }
.wf-foot-btn.is-solid { border-color: #fffaf3; background: #fffaf3; color: var(--f-ink); }
.wf-foot-btn.is-solid:hover { background: #f0bfc8; border-color: #f0bfc8; }
.wf-foot-btn.is-solid svg { transition: transform .3s var(--f-ease); }
.wf-foot-btn.is-solid:hover svg { transform: translateX(3px); }

/* ---------- Thân footer ---------- */
.wf-foot-main {
  display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 2rem clamp(1.5rem, 3vw, 3rem);
  padding: clamp(2.2rem, 4vw, 3.4rem) 0 clamp(1.6rem, 3vw, 2.4rem);
}
.wf-foot-brand { display: grid; align-content: start; gap: 1rem; max-width: 380px; }
.wf-foot-logo { display: inline-grid; justify-self: start; line-height: 1; }
.wf-foot-logo span { font: 600 1.9rem var(--f-serif); letter-spacing: .28em; }
.wf-foot-logo small { margin-top: .35rem; font: 600 .66rem var(--f-sans); letter-spacing: .5em; color: var(--f-soft); }
.wf-foot-brand > p { margin: 0; color: var(--f-soft); font-size: .92rem; line-height: 1.7; }
.wf-foot-phone {
  display: inline-flex; align-items: center; gap: .8rem; justify-self: start;
  padding: .55rem 1.1rem .55rem .55rem; border-radius: 999px;
  background: #fffdf9; border: 1px solid var(--f-line);
  transition: border-color .3s, transform .4s var(--f-ease), box-shadow .4s;
}
.wf-foot-phone:hover { transform: translateY(-2px); border-color: rgba(147, 64, 90, .35); box-shadow: 0 14px 28px -20px rgba(147, 64, 90, .6); }
.wf-foot-phone-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--f-rose-deep); color: #fffaf3; }
.wf-foot-phone small { display: block; color: var(--f-soft); font-size: .72rem; }
.wf-foot-phone strong { font: 600 1.05rem var(--f-sans); letter-spacing: .02em; }
.wf-foot-social { display: flex; gap: .5rem; }
.wf-foot-social a {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--f-line); background: #fffdf9; color: var(--f-ink);
  transition: background .3s, color .3s, transform .4s var(--f-ease);
}
.wf-foot-social a:hover { background: var(--f-ink); color: #fffaf3; transform: translateY(-3px); }
.wf-foot-social a.is-zalo { width: auto; padding: 0 .9rem; border-radius: 999px; font: 700 .78rem var(--f-sans); }

.wf-foot-label { margin: .3rem 0 1rem; font: 600 .7rem var(--f-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--f-rose-deep); }
.wf-foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.wf-foot-col a { position: relative; color: var(--f-soft); font-size: .93rem; transition: color .25s; }
.wf-foot-col a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--f-ease);
}
.wf-foot-col a:hover { color: var(--f-ink); }
.wf-foot-col a:hover::after { transform: scaleX(1); }

/* ---------- Cam kết ---------- */
.wf-foot-promises {
  list-style: none; margin: 0; padding: 1.1rem 0;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem 1.5rem;
  border-top: 1px solid var(--f-line); border-bottom: 1px solid var(--f-line);
}
.wf-foot-promises li { display: inline-flex; align-items: center; gap: .55rem; color: var(--f-ink); font-size: .88rem; }
.wf-foot-promises svg { color: var(--f-rose-deep); }

/* Chữ lớn trang trí */
.wf-foot-word {
  margin: clamp(1rem, 2vw, 1.6rem) 0 0; overflow: hidden;
  font: italic 500 clamp(3.6rem, 1rem + 11vw, 11rem)/.9 var(--f-serif); letter-spacing: -.02em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(147, 64, 90, .28);
  background: linear-gradient(90deg, rgba(147, 64, 90, .16), rgba(180, 89, 108, .05)); -webkit-background-clip: text; background-clip: text;
  user-select: none;
}

.wf-foot-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; padding-top: 1rem; }
/* Chừa chỗ cho nút Wici Chat nổi ở góc phải dưới (desktop là nút dài ~220px) */
@media (min-width: 1025px) { .wf-foot-bottom { padding-right: 240px; } }
@media (min-width: 641px) and (max-width: 1024px) { .wf-foot-bottom { padding-right: 80px; } }
.wf-foot-bottom p { margin: 0; color: var(--f-soft); font-size: .8rem; }
.wf-foot-top {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; padding: 0 1rem; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--f-line); background: #fffdf9; color: var(--f-ink); font: 600 .8rem var(--f-sans);
  transition: background .3s, color .3s;
}
.wf-foot-top:hover { background: var(--f-ink); color: #fffaf3; }

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .wf-foot-main { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wf-foot-brand { grid-column: 1 / -1; max-width: none; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .wf-foot-brand > p { grid-column: 1; }
  .wf-foot-logo, .wf-foot-brand > p { grid-column: 1; }
  .wf-foot-phone { grid-column: 2; grid-row: 1 / span 2; }
  .wf-foot-social { grid-column: 2; justify-self: end; }
  .wf-foot-phone { justify-self: end; }
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .wf-foot { margin-top: 3rem; }
  .wf-foot-cta { border-radius: 26px; padding: 1.6rem 1.2rem; }
  .wf-foot-cta-sub { font-size: .88rem; }
  .wf-foot-cta-actions { width: 100%; display: grid; }
  .wf-foot-btn { width: 100%; min-height: 50px; }
  .wf-foot-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.8rem 1rem; padding-top: 2rem; }
  .wf-foot-brand { display: grid; grid-template-columns: 1fr; }
  .wf-foot-logo, .wf-foot-brand > p, .wf-foot-phone, .wf-foot-social { grid-column: 1; grid-row: auto; justify-self: start; }
  .wf-foot-col:last-child { grid-column: 1 / -1; }
  .wf-foot-col:last-child ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wf-foot-col a { font-size: .9rem; }
  .wf-foot-promises { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem .8rem; }
  .wf-foot-promises li { font-size: .8rem; align-items: flex-start; }
  .wf-foot-bottom { flex-direction: column-reverse; align-items: stretch; text-align: center; padding-bottom: 64px; }
  .wf-foot-top { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .wf-foot *, .wf-foot *::after { animation: none !important; transition: none !important; }
}
