/*
Theme Name: X-WY B2B
Theme URI: https://x-wy.xin/
Author: TTCH
Description: Evidence-bounded B2B womenswear theme for X-WY.
Version: 0.1.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: xwy-b2b
*/

:root {
  --xwy-ink: #1f2925;
  --xwy-muted: #65736d;
  --xwy-paper: #f4f5ef;
  --xwy-panel: #e6ebe2;
  --xwy-accent: #496b58;
  --xwy-line: #cfd8cf;
  --xwy-radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--xwy-paper); color: var(--xwy-ink); font-family: "Trebuchet MS", Arial, sans-serif; line-height: 1.6; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #b65f35; outline-offset: 3px; }
.xwy-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.xwy-header { border-bottom: 1px solid var(--xwy-line); background: rgba(244,245,239,.94); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(12px); }
.xwy-header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.xwy-brand { text-decoration: none; font-size: 1.35rem; font-weight: 800; letter-spacing: .12em; }
.xwy-nav { display: flex; align-items: center; gap: 22px; font-size: .92rem; }
.xwy-nav a { text-decoration: none; }
.xwy-nav a:hover { color: var(--xwy-accent); }
.xwy-button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border-radius: 999px; background: var(--xwy-accent); color: #fff; text-decoration: none; font-weight: 700; border: 0; cursor: pointer; }
.xwy-button:hover { filter: brightness(.92); transform: translateY(-1px); }
.xwy-button--light { background: transparent; color: var(--xwy-ink); border: 1px solid var(--xwy-ink); }
.xwy-hero { padding: 78px 0 72px; }
.xwy-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr); gap: 58px; align-items: center; }
.xwy-eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .74rem; font-weight: 800; color: var(--xwy-accent); }
.xwy-hero h1 { max-width: 700px; margin: 18px 0 22px; font-size: clamp(2.7rem, 6vw, 5.8rem); line-height: .98; letter-spacing: -.055em; }
.xwy-lead { max-width: 570px; font-size: 1.12rem; color: var(--xwy-muted); }
.xwy-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.xwy-art { min-height: 480px; border-radius: var(--xwy-radius); background: linear-gradient(145deg, #d4ded2 0%, #eef0e8 52%, #c2d0c0 100%); display: flex; align-items: flex-end; padding: 28px; position: relative; overflow: hidden; }
.xwy-art video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.xwy-art video + .xwy-art-note { z-index: 1; background: rgba(25, 45, 34, .78); color: #fff; }
.xwy-art video { z-index: 0; }
.ttch-featured-products { margin: 0; padding: 84px 0; background: #eef1e9; }
.ttch-featured-products .site-shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.ttch-featured-products .section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: end; margin-bottom: 34px; }
.ttch-featured-products .section-head h2 { margin: 10px 0 0; font-size: clamp(2rem, 4vw, 3.7rem); line-height: 1.02; letter-spacing: -.04em; }
.ttch-featured-products .section-head p { margin: 0; color: var(--xwy-muted); max-width: 500px; line-height: 1.6; }
.ttch-featured-products .eyebrow { color: var(--xwy-accent); font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.ttch-featured-products .ttch-featured-card { border-color: #d5ddd2; border-radius: var(--xwy-radius); box-shadow: none; }
.ttch-featured-products .ttch-card-body { min-height: 190px; }
.ttch-featured-products .button.secondary { display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; border-radius: 999px; background: var(--xwy-accent); color: #fff; font-weight: 700; text-decoration: none; }
.xwy-art:before, .xwy-art:after { content: ""; position: absolute; border: 1px solid rgba(73,107,88,.28); border-radius: 50%; }
.xwy-art:before { width: 360px; height: 360px; right: -120px; top: -60px; }
.xwy-art:after { width: 240px; height: 240px; left: -100px; bottom: -90px; }
.xwy-art-note { position: relative; z-index: 1; max-width: 240px; font-size: 1.4rem; font-weight: 700; line-height: 1.15; }
.xwy-section { padding: 84px 0; }
.xwy-section--panel { background: var(--xwy-panel); }
.xwy-section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: end; margin-bottom: 34px; }
.xwy-section h2 { margin: 10px 0 0; font-size: clamp(2rem, 4vw, 3.7rem); line-height: 1.02; letter-spacing: -.04em; }
.xwy-section-head p { margin: 0; color: var(--xwy-muted); max-width: 500px; }
.xwy-video-section { background: var(--xwy-ink); color: #fff; }
.xwy-video-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 52px; align-items: center; }
.xwy-video-grid p { color: rgba(255,255,255,.72); max-width: 430px; margin: 22px 0 28px; }
.xwy-video-frame { border-radius: var(--xwy-radius); overflow: hidden; background: #111; aspect-ratio: 16 / 9; }
.xwy-video-frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
.xwy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.xwy-tile { min-height: 190px; padding: 22px; border-top: 2px solid var(--xwy-ink); display: flex; flex-direction: column; justify-content: space-between; }
.xwy-tile strong { font-size: 1.1rem; }
.xwy-tile span { color: var(--xwy-muted); font-size: .92rem; }
.xwy-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.xwy-step { padding: 22px 0; border-bottom: 1px solid var(--xwy-line); }
.xwy-step-number { font-size: .76rem; color: var(--xwy-accent); font-weight: 800; }
.xwy-step h3 { margin: 10px 0 8px; }
.xwy-content { padding: 62px 0 90px; }
.xwy-content h1 { font-size: clamp(2.3rem, 5vw, 4.8rem); line-height: 1; letter-spacing: -.05em; }
.xwy-content img { max-width: 100%; height: auto; border-radius: var(--xwy-radius); }
.xwy-footer { padding: 34px 0; border-top: 1px solid var(--xwy-line); color: var(--xwy-muted); font-size: .9rem; }
.xwy-footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.xwy-empty { padding: 30px; border: 1px dashed var(--xwy-accent); border-radius: var(--xwy-radius); color: var(--xwy-muted); background: rgba(255,255,255,.34); }
.xwy-rtl { direction: rtl; }
@media (max-width: 820px) {
  .xwy-shell { width: min(100% - 28px, 620px); }
  .xwy-header-inner { min-height: 70px; }
  .xwy-nav { gap: 12px; font-size: .82rem; }
  .xwy-nav a:not(.xwy-button) { display: none; }
  .xwy-hero { padding: 48px 0; }
  .xwy-hero-grid, .xwy-section-head { grid-template-columns: 1fr; gap: 30px; }
  .xwy-video-grid { grid-template-columns: 1fr; gap: 30px; }
  .ttch-featured-products .section-head { grid-template-columns: 1fr; gap: 20px; }
  .xwy-art { min-height: 300px; }
  .xwy-grid, .xwy-steps { grid-template-columns: repeat(2, 1fr); }
  .xwy-section { padding: 58px 0; }
}
@media (max-width: 480px) {
  .xwy-grid, .xwy-steps { grid-template-columns: 1fr; }
  .ttch-featured-products { padding: 58px 0; }
  .ttch-featured-products .site-shell { width: min(100% - 22px, 1120px); }
  .xwy-hero h1 { font-size: 3.05rem; }
  .xwy-button { width: 100%; }
  .xwy-actions { display: grid; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *:before, *:after { transition: none !important; animation: none !important; } }
