/* =========================================================
   TVA Atelier - homepage
   ========================================================= */

.tva-home, .tva-home *, .tva-home *::before, .tva-home *::after { box-sizing: border-box; }
.tva-home { --gap: clamp(1rem, 2.2vw, 1.5rem); }
.tva-home > * { margin-block: 0; }

/* ---------- shared bits ---------- */
.tva-eyebrow {
  font-family: var(--wp--preset--font-family--body);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--wp--preset--color--gold-deep);
  margin: 0 0 .9rem;
}
.tva-h2 {
  font-family: var(--wp--preset--font-family--display);
  font-weight: 500;
  letter-spacing: -.015em;
  line-height: 1.1;
  font-size: clamp(1.75rem, 1.15rem + 2.4vw, 2.75rem);
  margin: 0;
}
.tva-section { margin-top: clamp(3rem, 6vw, 5.5rem); }
.tva-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
}
.tva-more {
  font-family: var(--wp--preset--font-family--body);
  font-size: .875rem;
  font-weight: 500;
  color: var(--wp--preset--color--gold-deep);
  text-decoration: none;
  white-space: nowrap;
}
.tva-more:hover { color: var(--wp--preset--color--ink); }

.tva-btn {
  display: inline-block;
  font-family: var(--wp--preset--font-family--body);
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1;
  padding: .95em 1.7em;
  border-radius: 9px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.tva-btn--solid { background: var(--wp--preset--color--gold); color: #fff; }
.tva-btn--solid:hover { background: var(--wp--preset--color--gold-deep); color: #fff; }
.tva-btn--ghost {
  background: transparent;
  color: var(--wp--preset--color--ink);
  border-color: #ddd2bd;
}
.tva-btn--ghost:hover { border-color: var(--wp--preset--color--gold); color: var(--wp--preset--color--gold-deep); }

/* ---------- hero ---------- */
.tva-hero {
  background: linear-gradient(160deg, #f9f2e4 0%, #f7efe0 55%, #f3e9d6 100%);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 22px;
  overflow: hidden;
  margin-top: clamp(1rem, 2.5vw, 2rem);
}
.tva-hero__inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding: clamp(2rem, 5vw, 4.25rem) clamp(1.4rem, 4vw, 3.5rem);
}
.tva-hero__title {
  font-family: var(--wp--preset--font-family--display);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.02;
  font-size: clamp(2.6rem, 1.5rem + 4.6vw, 4.6rem);
  margin: 0 0 1.1rem;
  color: var(--wp--preset--color--ink);
}
.tva-hero__title em { font-style: italic; color: var(--wp--preset--color--gold-deep); }
.tva-hero__lede {
  font-size: clamp(1rem, .95rem + .25vw, 1.1rem);
  line-height: 1.65;
  color: #6f6757;
  max-width: 46ch;
  margin: 0 0 1.75rem;
}
.tva-hero__actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.tva-hero__stats {
  display: flex;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin: 2.25rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid #e6dcc7;
}
.tva-hero__stats div { display: flex; flex-direction: column; gap: .15rem; }
.tva-hero__stats dt {
  font-family: var(--wp--preset--font-family--body);
  font-size: .7rem; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase;
  color: #8d846f;
}
.tva-hero__stats dd {
  margin: 0;
  font-family: var(--wp--preset--font-family--display);
  font-size: 1.6rem; font-weight: 500;
  color: var(--wp--preset--color--ink);
}
.tva-hero__media { position: relative; }
.tva-hero__media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: contain;
  filter: drop-shadow(0 26px 34px rgb(60 45 20 / .16));
}

/* ---------- trust strip ---------- */
.tva-trust { margin-top: clamp(1.25rem, 2.5vw, 1.75rem); }
.tva-trust ul {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
.tva-trust li {
  background: var(--wp--preset--color--white);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 12px;
  padding: 1.05rem 1.15rem;
  display: flex; flex-direction: column; gap: .3rem;
}
.tva-trust__k {
  font-family: var(--wp--preset--font-family--body);
  font-size: .82rem; font-weight: 600;
  color: var(--wp--preset--color--ink);
}
.tva-trust__v { font-size: .82rem; line-height: 1.5; color: #7c7466; }

/* ---------- category cards ---------- */
.tva-cats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
.tva-cat {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--wp--preset--color--white);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.tva-cat:hover {
  border-color: #e0d3ba;
  box-shadow: 0 1px 2px rgb(33 29 23 / .04), 0 14px 30px -18px rgb(33 29 23 / .22);
  transform: translateY(-2px);
}
/* fixed height (not aspect-ratio) so the wide card's image lines up
   with the single-width cards beside it */
.tva-cat img {
  display: block;
  width: 100%;
  height: clamp(150px, 21vw, 290px);
  object-fit: contain;
  background: var(--wp--preset--color--cream);
  padding: 1rem;
}
.tva-cat--tall { grid-column: span 2; }
.tva-cat__body {
  display: flex; flex-direction: column; gap: .18rem;
  padding: .85rem 1rem 1.05rem;
  border-top: 1px solid var(--wp--preset--color--border);
}
.tva-cat__name {
  font-family: var(--wp--preset--font-family--body);
  font-size: .92rem; font-weight: 500;
  color: var(--wp--preset--color--ink);
  line-height: 1.35;
}
.tva-cat__count { font-size: .78rem; color: #8d846f; }

/* ---------- brand band ---------- */
.tva-brands {
  margin-top: clamp(3rem, 6vw, 5.5rem);
  background: var(--wp--preset--color--sand);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 18px;
  padding: clamp(1.6rem, 3.5vw, 2.5rem);
  text-align: center;
}
.tva-brands__label { margin-bottom: 1.1rem; }
.tva-brands__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap;
  justify-content: center;
  gap: .55rem .5rem;
}
.tva-brands__list li {
  font-family: var(--wp--preset--font-family--body);
  font-size: .85rem;
  color: #6f6757;
  background: var(--wp--preset--color--white);
  border: 1px solid #ece3d2;
  border-radius: 999px;
  padding: .45em 1em;
  white-space: nowrap;
}

/* ---------- editorial ---------- */
.tva-editorial {
  margin-top: clamp(3rem, 6vw, 5.5rem);
  background: var(--wp--preset--color--ink);
  border-radius: 20px;
  padding: clamp(2.25rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3.5rem);
}
.tva-editorial__inner { max-width: 62ch; }
.tva-editorial .tva-h2 { color: #f6efe2; margin-bottom: 1.25rem; }
.tva-editorial p {
  color: #bdb3a2;
  font-size: 1rem;
  line-height: 1.75;
  margin: 0 0 1rem;
}
.tva-editorial .tva-btn--solid { margin-top: .85rem; }

/* ---------- legal ---------- */
.tva-legal {
  margin: clamp(2rem, 4vw, 3rem) auto 0;
  max-width: 78ch;
  font-size: .78rem;
  line-height: 1.65;
  color: #8d846f;
  text-align: center;
}

/* ---------- product rows from shortcodes ---------- */
.tva-home .woocommerce { margin-top: 0; }
.tva-home .woocommerce ul.products { margin-top: 0; }

/* =========================================================
   Responsive
   ========================================================= */

/* tablet */
@media (max-width: 980px) {
  .tva-hero__inner { grid-template-columns: 1fr; }
  .tva-hero__media { order: -1; max-width: 320px; margin-inline: auto; }
  .tva-hero__media img { max-height: 300px; }
  .tva-cats { grid-template-columns: repeat(2, 1fr); }
  .tva-cat--tall { grid-column: span 2; }
  .tva-trust ul { grid-template-columns: repeat(2, 1fr); }
}

/* phone */
@media (max-width: 600px) {
  .tva-hero { border-radius: 16px; }
  .tva-hero__inner { padding: 1.75rem 1.25rem 2rem; gap: 1.25rem; }
  .tva-hero__media { max-width: 210px; }
  .tva-hero__media img { max-height: 220px; }
  .tva-hero__lede { font-size: .98rem; margin-bottom: 1.4rem; }
  .tva-hero__actions { flex-direction: column; align-items: stretch; }
  .tva-hero__actions .tva-btn { text-align: center; }
  .tva-hero__stats {
    gap: 0;
    justify-content: space-between;
    margin-top: 1.75rem;
    padding-top: 1.15rem;
  }
  .tva-hero__stats dd { font-size: 1.3rem; }
  .tva-hero__stats dt { font-size: .62rem; letter-spacing: .1em; }

  .tva-trust ul { grid-template-columns: 1fr; }
  .tva-trust li { padding: .85rem 1rem; }

  .tva-cats { gap: .7rem; }
  .tva-cat img { padding: .6rem; }
  .tva-cat__body { padding: .7rem .8rem .85rem; }
  .tva-cat__name { font-size: .84rem; }
  .tva-cat__count { font-size: .72rem; }

  .tva-brands { border-radius: 14px; }
  .tva-brands__list { gap: .4rem .35rem; }
  .tva-brands__list li { font-size: .78rem; padding: .4em .8em; }

  .tva-editorial { border-radius: 16px; }
  .tva-editorial p { font-size: .95rem; }

  .tva-section__head { margin-bottom: 1rem; }
}

/* very small - only collapse to a single column on genuinely narrow phones;
   375px (iPhone SE/mini) still reads better as two */
@media (max-width: 340px) {
  .tva-cats { grid-template-columns: 1fr; }
  .tva-cat--tall { grid-column: span 1; }
}

/* ---- homepage product rows: hold a clean 4-up on desktop ---- */
.tva-home .woocommerce { max-width: 100%; }
@media (min-width: 981px) {
  .tva-home .woocommerce ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 980px) and (min-width: 601px) {
  .tva-home .woocommerce ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .tva-home .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem .7rem; }
}
