/* Yume Embroidery interface polish. Plain CSS layered on the existing TradLink theme. */
body.ttch-yume-polish {
  --ink: #241820;
  --muted: #70636b;
  --paper: #fbf8f4;
  --surface: #fffdfb;
  --brand: #722556;
  --accent: #d9a657;
  --line: #eadfe6;
  --radius: 24px;
  --shadow: 0 0 0 1px oklch(0 0 0 / 0.06), 0 2px 4px oklch(0 0 0 / 0.04), 0 20px 56px oklch(0 0 0 / 0.08);
  --ttch-ink: var(--ink);
  --ttch-muted: var(--muted);
  --ttch-paper: var(--paper);
  --ttch-line: var(--line);
  --ttch-accent: var(--brand);
  --ttch-accent-dark: #51183d;
  background:
    radial-gradient(circle at 92% 8%, rgb(114 37 86 / 0.08), transparent 30rem),
    var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html:has(body.ttch-yume-polish) {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.ttch-yume-polish h1,
.ttch-yume-polish h2,
.ttch-yume-polish h3 { text-wrap: balance; }

.ttch-yume-polish p,
.ttch-yume-polish li,
.ttch-yume-polish figcaption { text-wrap: pretty; }

.yume-skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-160%);
  transition-property: transform;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

.yume-skip-link:focus { transform: translateY(0); }

.ttch-yume-polish :where(a, button, input, textarea, summary):focus-visible {
  outline: 3px solid rgb(114 37 86 / 0.28);
  outline-offset: 3px;
}

.ttch-yume-polish .site-header {
  background: rgb(251 248 244 / 0.9);
  border-bottom-color: rgb(36 24 32 / 0.08);
  backdrop-filter: blur(18px) saturate(140%);
}

.ttch-yume-polish .header-row { min-height: 80px; }

.ttch-yume-polish .brand {
  letter-spacing: -0.01em;
  line-height: 1.18;
}

.ttch-yume-polish .brand small {
  margin-top: 3px;
  color: var(--muted);
  letter-spacing: 0.12em;
}

.ttch-yume-polish .nav { gap: 4px; }

.ttch-yume-polish .nav > a:not(.nav-cta) {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 13px;
  border-radius: 999px;
  transition-property: color, background-color;
  transition-duration: 120ms;
  transition-timing-function: ease-out;
}

.ttch-yume-polish .nav > a:not(.nav-cta):hover {
  background: rgb(114 37 86 / 0.07);
  color: var(--brand);
}

.ttch-yume-polish :where(.nav-cta, .button, .ttch-button) {
  min-height: 48px;
  padding-inline: 21px;
  box-shadow: 0 0 0 1px rgb(55 10 39 / 0.08), 0 10px 24px rgb(114 37 86 / 0.2);
  transition-property: scale, background-color, color, box-shadow;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

.ttch-yume-polish :where(.nav-cta, .button, .ttch-button):hover {
  background: #5d1c47;
  box-shadow: 0 0 0 1px rgb(55 10 39 / 0.12), 0 14px 30px rgb(114 37 86 / 0.24);
}

.ttch-yume-polish :where(.nav-cta, .button, .ttch-button):active { scale: 0.96; }

.ttch-yume-polish .button.secondary {
  border-color: transparent;
  background: rgb(255 255 255 / 0.56);
  box-shadow: 0 0 0 1px oklch(0 0 0 / 0.09), 0 2px 5px oklch(0 0 0 / 0.04);
}

.ttch-yume-polish .button.secondary:hover {
  background: #fff;
  color: var(--brand) !important;
  box-shadow: 0 0 0 1px rgb(114 37 86 / 0.22), 0 6px 18px rgb(36 24 32 / 0.08);
}

.ttch-yume-polish .hero { padding: clamp(68px, 8vw, 108px) 0 clamp(64px, 7vw, 92px); }

.ttch-yume-polish .hero-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
  gap: clamp(46px, 6vw, 82px);
}

.ttch-yume-polish .hero h1 {
  max-width: 11ch;
  margin-top: 12px;
  margin-bottom: 24px;
  font-size: clamp(3.2rem, 6.4vw, 6rem);
  letter-spacing: -0.055em;
}

.ttch-yume-polish .lead {
  max-width: 57ch;
  color: var(--muted);
  line-height: 1.72;
}

.ttch-yume-polish .hero-visual {
  border-radius: 38px;
  box-shadow: var(--shadow);
}

.ttch-yume-polish .hero-image {
  height: clamp(430px, 38vw, 540px);
  border-radius: 38px;
  outline: 1px solid oklch(0 0 0 / 0.1);
  outline-offset: -1px;
  box-shadow: none;
}

.ttch-yume-polish .hero-visual figcaption {
  left: 20px;
  right: 20px;
  bottom: 18px;
  padding: 11px 16px;
  border: 0;
  background: rgb(36 24 32 / 0.82);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.16), 0 8px 20px rgb(0 0 0 / 0.16);
}

.ttch-yume-polish .section { padding-block: clamp(64px, 7vw, 94px); }

.ttch-yume-polish .section-head {
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 1.12fr);
  gap: clamp(28px, 5vw, 70px);
  margin-bottom: 40px;
}

.ttch-yume-polish .section-head h2 { max-width: 13ch; }

.ttch-yume-polish .ttch-featured-products {
  background: linear-gradient(180deg, rgb(255 255 255 / 0.52), rgb(255 255 255 / 0.18));
  border-block: 1px solid rgb(36 24 32 / 0.06);
}

.ttch-yume-polish :where(.ttch-featured-card, .ttch-product-card, .card) {
  border: 0;
  background: var(--surface);
  box-shadow: 0 0 0 1px oklch(0 0 0 / 0.06), 0 2px 4px oklch(0 0 0 / 0.04), 0 14px 36px oklch(0 0 0 / 0.055);
  transition-property: box-shadow, transform;
  transition-duration: 160ms;
  transition-timing-function: ease-out;
}

.ttch-yume-polish :where(.ttch-featured-card, .ttch-product-card, .card):hover {
  box-shadow: 0 0 0 1px rgb(114 37 86 / 0.13), 0 4px 8px rgb(36 24 32 / 0.05), 0 18px 44px rgb(36 24 32 / 0.085);
  transform: translateY(-2px);
}

.ttch-yume-polish :where(.ttch-featured-card, .ttch-product-card):active { transform: translateY(0) scale(0.99); }

.ttch-yume-polish .ttch-product-visual img,
.ttch-yume-polish .ttch-product-card img,
.ttch-yume-polish .wp-post-image {
  outline: 1px solid oklch(0 0 0 / 0.1);
  outline-offset: -1px;
}

.ttch-yume-polish .visual-badge {
  padding: 8px 11px;
  background: rgb(36 24 32 / 0.84);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.14);
  letter-spacing: 0.07em;
}

.ttch-yume-polish .ttch-card-body { min-height: 220px; padding: 22px; }

.ttch-yume-polish .ttch-card-body h3 { letter-spacing: -0.025em; }

.ttch-yume-polish .ttch-card-link {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-color: rgb(114 37 86 / 0.28);
  text-underline-offset: 4px;
}

.ttch-yume-polish .grid-4 .card { border-radius: 26px; }

.ttch-yume-polish .band {
  background:
    radial-gradient(circle at 86% 10%, rgb(217 166 87 / 0.16), transparent 28rem),
    #25141f;
}

.ttch-yume-polish .band .eyebrow { color: #e8c47f; }

.ttch-yume-polish .band .card {
  color: #fff;
  background: rgb(255 255 255 / 0.075);
  box-shadow: 0 0 0 1px oklch(1 0 0 / 0.11);
}

.ttch-yume-polish .band .card:hover {
  background: rgb(255 255 255 / 0.1);
  box-shadow: 0 0 0 1px oklch(1 0 0 / 0.16), 0 18px 36px rgb(0 0 0 / 0.16);
}

.ttch-yume-polish .card-number {
  width: 42px;
  height: 42px;
  margin-bottom: 34px;
  background: rgb(232 196 127 / 0.14);
  color: #f0d49c;
  font-variant-numeric: tabular-nums;
}

.ttch-yume-polish .contact-list a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--brand);
  text-decoration: underline;
  text-decoration-color: rgb(114 37 86 / 0.24);
  text-underline-offset: 4px;
}

.ttch-yume-polish .ttch-rfq {
  max-width: 940px;
  padding: clamp(28px, 5vw, 58px);
  border: 0;
  border-radius: 32px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.ttch-yume-polish .ttch-field input,
.ttch-yume-polish .ttch-field textarea {
  min-height: 48px;
  border-color: #cdbfc8;
  border-radius: 12px;
  transition-property: border-color, box-shadow;
  transition-duration: 120ms;
  transition-timing-function: ease-out;
}

.ttch-yume-polish .ttch-field textarea { min-height: 132px; }

.ttch-yume-polish .ttch-field input:focus,
.ttch-yume-polish .ttch-field textarea:focus {
  border-color: var(--brand);
  outline: 0;
  box-shadow: 0 0 0 3px rgb(114 37 86 / 0.16);
}

.ttch-yume-polish .site-footer { background: rgb(255 255 255 / 0.32); }

.yume-mobile-actions { display: none; }

@media (max-width: 980px) {
  .ttch-yume-polish .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.84fr);
    gap: 38px;
  }

  .ttch-yume-polish .hero h1 { font-size: clamp(3rem, 7vw, 4.7rem); }
}

@media (max-width: 800px) {
  .ttch-yume-polish { padding-bottom: 78px; }

  .ttch-yume-polish .site-shell { width: min(100% - 32px, 1180px); }

  .ttch-yume-polish .header-row { min-height: 72px; }

  .ttch-yume-polish .hero { padding: 48px 0 64px; }

  .ttch-yume-polish .hero-grid,
  .ttch-yume-polish .section-head { grid-template-columns: 1fr; }

  .ttch-yume-polish .hero h1 {
    max-width: 12ch;
    margin-bottom: 20px;
    font-size: clamp(2.75rem, 13vw, 4.25rem);
  }

  .ttch-yume-polish .hero-image {
    min-height: 0;
    height: min(86vw, 410px);
    border-radius: 26px;
  }

  .ttch-yume-polish .hero-visual { border-radius: 26px; }

  .ttch-yume-polish .section-head { gap: 18px; }

  .ttch-yume-polish :where(.ttch-featured-card, .ttch-product-card, .card):hover { transform: none; }

  .ttch-yume-polish .ttch-rfq {
    width: calc(100% - 32px);
    margin-inline: auto;
    padding: 24px 20px;
    border-radius: 24px;
  }

  .yume-mobile-actions {
    position: fixed;
    right: 10px;
    bottom: 10px;
    left: 10px;
    z-index: 60;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 6px;
    padding: 6px;
    border-radius: 22px;
    background: rgb(255 253 251 / 0.92);
    box-shadow: 0 0 0 1px oklch(0 0 0 / 0.08), 0 16px 40px rgb(36 24 32 / 0.2);
    backdrop-filter: blur(18px) saturate(140%);
  }

  .yume-mobile-actions a {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 16px;
    color: var(--ink);
    font-size: 0.86rem;
    font-weight: 700;
    transition-property: scale, background-color, color;
    transition-duration: 150ms;
    transition-timing-function: ease-out;
  }

  .yume-mobile-actions a:active { scale: 0.96; }

  .yume-mobile-actions .is-primary { background: var(--brand); color: #fff; }

  .yume-mobile-actions svg { width: 20px; height: 20px; flex: 0 0 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .ttch-yume-polish *,
  .ttch-yume-polish *::before,
  .ttch-yume-polish *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
