/* =========================================================
   PETAL VAULT — DESIGN SYSTEM
   Brand tokens + site-wide polish + footer.
   Loaded after the Basel stylesheet and petal-vault-woo.css.
   ========================================================= */

:root {
  --pv-brand: #713a4b;        /* primary plum */
  --pv-brand-dark: #5a2e3c;   /* hover / pressed */
  --pv-brand-deep: #4e2533;   /* deep panels */
  --pv-rose: #9b5368;         /* secondary accent */
  --pv-blush: #f6e4e8;        /* soft fills */
  --pv-blush-light: #fdf4f6;  /* page tints */
  --pv-cream: #fffafa;        /* base background */
  --pv-ink: #3b242a;          /* body text on light */
  --pv-muted: #76545e;        /* secondary text */
  --pv-line: rgba(113, 58, 75, .15);
  --pv-serif: Georgia, "Times New Roman", serif;
  --pv-sans: Arial, Helvetica, sans-serif;
  --pv-ease: cubic-bezier(.16, 1, .3, 1);
}

/* ---------------------------------------------------------
   SELECTION, FOCUS & SMALL DETAILS
   --------------------------------------------------------- */

::selection {
  background: var(--pv-blush);
  color: var(--pv-brand);
}

.website-wrapper a:focus-visible,
.website-wrapper button:focus-visible,
.website-wrapper input:focus-visible,
.website-wrapper select:focus-visible,
.website-wrapper textarea:focus-visible {
  outline: 2px solid var(--pv-rose);
  outline-offset: 3px;
}

/* Form fields site-wide: brand focus ring */
.website-wrapper input[type="text"]:focus,
.website-wrapper input[type="email"]:focus,
.website-wrapper input[type="tel"]:focus,
.website-wrapper input[type="password"]:focus,
.website-wrapper input[type="search"]:focus,
.website-wrapper input[type="number"]:focus,
.website-wrapper textarea:focus,
.website-wrapper select:focus {
  border-color: var(--pv-brand);
  box-shadow: 0 0 0 3px rgba(113, 58, 75, .08);
}

/* Back-to-top button */
.scrollToTop {
  background: var(--pv-brand) !important;
  border-radius: 50%;
  color: #fff !important;
  box-shadow: 0 12px 26px -12px rgba(78, 37, 51, .6);
  transition: background .3s ease, transform .3s ease;
}

.scrollToTop:hover {
  background: var(--pv-brand-dark) !important;
  transform: translateY(-2px);
}

.scrollToTop::after,
.scrollToTop::before { color: #fff !important; }

/* Sticky header: soft brand shadow when it appears */
.act-scroll .main-header,
.sticky-header.act-scroll,
.sticky-header-clone.act-scroll {
  box-shadow: 0 10px 30px -18px rgba(78, 37, 51, .35);
}

/* Breadcrumbs everywhere */
.woocommerce-breadcrumb a,
.breadcrumbs a {
  color: var(--pv-brand);
}

.woocommerce-breadcrumb a:hover,
.breadcrumbs a:hover {
  color: var(--pv-rose);
}

/* ---------------------------------------------------------
   WOOCOMMERCE NOTICES (added to cart, errors, info)
   --------------------------------------------------------- */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border: 1px solid var(--pv-line);
  border-left: 3px solid var(--pv-brand);
  border-radius: 0;
  background: var(--pv-blush-light);
  color: var(--pv-ink);
  font-family: var(--pv-sans);
  font-size: 14px;
  line-height: 1.6;
}

.woocommerce-error { border-left-color: #b4495f; }

.woocommerce-message a,
.woocommerce-info a,
.woocommerce-error a { color: var(--pv-brand); font-weight: 700; }

.woocommerce-message .button,
.woocommerce-info .button {
  background: var(--pv-brand) !important;
  border-color: var(--pv-brand) !important;
  color: #fff !important;
}

.woocommerce-message .button:hover,
.woocommerce-info .button:hover {
  background: var(--pv-brand-dark) !important;
  border-color: var(--pv-brand-dark) !important;
}

/* Sale badge */
.onsale,
.product-label.onsale {
  background: var(--pv-brand);
  color: #fff;
}

/* ---------------------------------------------------------
   CONTACT FORM STATUS (homepage concierge + Contact Us page)
   --------------------------------------------------------- */

.pvc .flower-form-success.is-error,
.pv-form-status.is-error {
  border-color: rgba(180, 73, 95, .35);
  border-left-color: #b4495f;
  background-color: #fdf0f2;
  background-image: none;
  padding-left: 18px;
  color: #8f2f45;
}

.pv-form-status {
  grid-column: 1 / -1;
  margin: 0;
  padding: 16px 18px;
  border: 1px solid rgba(113, 58, 75, .2);
  border-left: 3px solid var(--pv-brand);
  background: var(--pv-blush-light);
  font-family: var(--pv-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--pv-brand);
}

/* =========================================================
   FOOTER
   ========================================================= */

.footer-container.pv-footer.pv-footer {
  position: relative;
  background:
    radial-gradient(90% 60% at 100% 0%, rgba(155, 83, 104, .22) 0%, rgba(155, 83, 104, 0) 60%),
    linear-gradient(180deg, #3d2930 0%, #2a1a20 100%) !important;
  color: rgba(255, 255, 255, .72);
  font-family: var(--pv-sans);
}

.footer-container.pv-footer.pv-footer *,
.footer-container.pv-footer.pv-footer *::before,
.footer-container.pv-footer.pv-footer *::after { box-sizing: border-box; }

.footer-container.pv-footer.pv-footer .pv-footer-wrap {
  width: 100%;
  max-width: calc(1240px + clamp(20px, 5vw, 64px) * 2);
  margin: 0 auto;
  padding-left: clamp(20px, 5vw, 64px);
  padding-right: clamp(20px, 5vw, 64px);
}

.footer-container.pv-footer.pv-footer a { text-decoration: none; }

.footer-container.pv-footer.pv-footer svg {
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Sign-off band ---------- */

.footer-container.pv-footer.pv-footer .pv-footer-band {
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.footer-container.pv-footer.pv-footer .pv-footer-band-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px 60px;
  flex-wrap: wrap;
  padding-top: clamp(56px, 7vw, 90px);
  padding-bottom: clamp(44px, 5vw, 64px);
}

.footer-container.pv-footer.pv-footer .pv-footer-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 16px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: #e9b9c6;
}

.footer-container.pv-footer.pv-footer .pv-footer-eyebrow span {
  width: 30px;
  height: 1px;
  background: currentColor;
  opacity: .6;
}

.footer-container.pv-footer.pv-footer .pv-footer-tagline {
  margin: 0;
  font-family: var(--pv-serif);
  font-size: clamp(40px, 5.4vw, 76px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.035em;
  color: #fff;
}

.footer-container.pv-footer.pv-footer .pv-footer-tagline em { font-style: italic; color: #f2cfd8; }

.footer-container.pv-footer.pv-footer .pv-footer-band-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 28px;
}

.footer-container.pv-footer.pv-footer .pv-footer-btn {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  min-height: 54px;
  padding: 0 24px;
  background: #fff;
  border: 1px solid #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--pv-brand);
  transition: background .3s ease, border-color .3s ease, color .3s ease, gap .3s ease;
}

.footer-container.pv-footer.pv-footer .pv-footer-btn svg { width: 15px; height: 15px; }

.footer-container.pv-footer.pv-footer .pv-footer-btn:hover {
  background: var(--pv-rose);
  border-color: var(--pv-rose);
  color: #fff;
  gap: 32px;
}

.footer-container.pv-footer.pv-footer .pv-footer-textlink {
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, .4);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #fff;
  transition: border-color .3s ease;
}

.footer-container.pv-footer.pv-footer .pv-footer-textlink:hover { border-color: #fff; color: #fff; }

/* ---------- Main columns ---------- */

.footer-container.pv-footer.pv-footer .pv-footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr) minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 48px clamp(28px, 4vw, 64px);
  padding-top: clamp(48px, 6vw, 72px);
  padding-bottom: clamp(48px, 6vw, 72px);
}

.footer-container.pv-footer.pv-footer .pv-footer-logo img {
  display: block;
  width: 100%;
  max-width: 190px;
  height: auto;
  margin-bottom: 22px;
}

.footer-container.pv-footer.pv-footer .pv-footer-about {
  max-width: 330px;
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255, 255, 255, .66);
}

.footer-container.pv-footer.pv-footer .pv-footer-social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 12px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 40px;
  font-size: 13px;
  color: #fff;
  transition: background .3s ease, border-color .3s ease, color .3s ease;
}

.footer-container.pv-footer.pv-footer .pv-footer-social svg { width: 20px; height: 20px; }

.footer-container.pv-footer.pv-footer .pv-footer-social:hover {
  background: #fff;
  border-color: #fff;
  color: var(--pv-brand);
}

.footer-container.pv-footer.pv-footer .pv-footer-heading {
  position: relative;
  margin: 0 0 22px;
  padding-bottom: 14px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: #e9b9c6;
}

.footer-container.pv-footer.pv-footer .pv-footer-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 26px;
  height: 1px;
  background: rgba(233, 185, 198, .5);
}

.footer-container.pv-footer.pv-footer .pv-footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-container.pv-footer.pv-footer .pv-footer-col li {
  margin: 0 0 12px;
  padding: 0;
}

.footer-container.pv-footer.pv-footer .pv-footer-col li:last-child { margin-bottom: 0; }

.footer-container.pv-footer.pv-footer .pv-footer-col li a {
  position: relative;
  display: inline-block;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .7);
  transition: color .25s ease, padding-left .3s var(--pv-ease);
}

.footer-container.pv-footer.pv-footer .pv-footer-col li a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 1px;
  background: #f2cfd8;
  transition: width .3s var(--pv-ease);
}

.footer-container.pv-footer.pv-footer .pv-footer-col li a:hover {
  padding-left: 16px;
  color: #fff;
}

.footer-container.pv-footer.pv-footer .pv-footer-col li a:hover::before { width: 10px; }

.footer-container.pv-footer.pv-footer .pv-footer-concierge p:not(.pv-footer-heading) {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .66);
}

.footer-container.pv-footer.pv-footer .pv-footer-arrowlink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #fff;
  transition: color .25s ease;
}

.footer-container.pv-footer.pv-footer .pv-footer-arrowlink:last-child { border-bottom: 1px solid rgba(255, 255, 255, .12); }

.footer-container.pv-footer.pv-footer .pv-footer-arrowlink svg {
  width: 15px;
  height: 15px;
  transition: transform .3s var(--pv-ease);
}

.footer-container.pv-footer.pv-footer .pv-footer-arrowlink:hover { color: #f2cfd8; }
.footer-container.pv-footer.pv-footer .pv-footer-arrowlink:hover svg { transform: translateX(4px); }

/* ---------- Bottom bar ---------- */

.footer-container.pv-footer.pv-footer .pv-footer-bottom {
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
  background: rgba(0, 0, 0, .12);
}

.footer-container.pv-footer.pv-footer .pv-footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 30px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.footer-container.pv-footer.pv-footer .pv-footer-copy,
.footer-container.pv-footer.pv-footer .pv-footer-copy p,
.footer-container.pv-footer.pv-footer .pv-footer-copy-right {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .5);
}

.footer-container.pv-footer.pv-footer .pv-footer-copy a,
.footer-container.pv-footer.pv-footer .pv-footer-copy-right a {
  color: #e9b9c6;
  transition: color .25s ease;
}

.footer-container.pv-footer.pv-footer .pv-footer-copy a:hover,
.footer-container.pv-footer.pv-footer .pv-footer-copy-right a:hover { color: #fff; }

.footer-container.pv-footer.pv-footer a:focus-visible {
  outline: 2px solid #f2cfd8;
  outline-offset: 4px;
}

/* ---------- Footer responsive ---------- */

@media (max-width: 1024px) {
  .footer-container.pv-footer.pv-footer .pv-footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .footer-container.pv-footer.pv-footer .pv-footer-band-inner { flex-direction: column; align-items: flex-start; }
  .footer-container.pv-footer.pv-footer .pv-footer-band-actions { width: 100%; }
  .footer-container.pv-footer.pv-footer .pv-footer-btn { width: 100%; justify-content: space-between; }

  .footer-container.pv-footer.pv-footer .pv-footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; }
  .footer-container.pv-footer.pv-footer .pv-footer-brand,
  .footer-container.pv-footer.pv-footer .pv-footer-concierge { grid-column: 1 / -1; }

  .footer-container.pv-footer.pv-footer .pv-footer-col li a { font-size: 14px; }

  .footer-container.pv-footer.pv-footer .pv-footer-bottom-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .footer-container.pv-footer.pv-footer *,
  .scrollToTop { transition: none !important; }
}
