/*
 * Valentte Homepage — assets/css/home.css
 * Styles for front-page.php sections. Loaded only on the homepage.
 * All classes prefixed vth- (Valentte Theme Home) to avoid collisions.
 * Tokens reference critical.css custom properties.
 */

/* ── Layout ───────────────────────────────────────────────────────────────── */

/*
 * Remove .page-content padding on homepage so full-bleed sections sit flush.
 * The hero is the first child — no top padding needed.
 * has-home-blocks (inc/blocks.php) covers a page built from Valentte Home
 * blocks before it is set as the front page, without targeting a page ID.
 */
body.home .page-content,
body.page-template-default.home .page-content,
body.has-home-blocks .page-content {
  padding: 0;
  max-width: none;
}

/* The last home section (newsletter) is full-bleed — sit the footer flush against it. */
body.home .site-footer,
body.has-home-blocks .site-footer {
  margin-top: 0;
}

/*
 * Full-bleed: sections that need edge-to-edge rendering.
 * With padding removed from .page-content, these just need full width.
 */
.vth-full-bleed {
  width: 100%;
}

.vth-wrap { max-width: var(--max-w); margin: 0 auto; padding-left: var(--side-pad); padding-right: var(--side-pad); }

/*
 * The [valentte_deals_of_the_day]-style promo shortcodes render .vtpg-section with
 * margin: 0 -24px — a full-bleed trick that needs 24px of parent padding to
 * cancel out against. Home's content area has zero padding, so this wrapper
 * restores that 24px so the shortcode bleeds to the real edge instead of
 * overflowing past it.
 */
.vth-top-offers-wrap { padding: 0 24px; }

/* Cards should run edge-to-edge on mobile — remove the shortcode's own
   internal side padding there (the wrapper above still prevents overflow;
   this only removes the visible inset around the card grid/carousel).
   .products-grid is shared with shop/category archive pages, so this
   override is scoped to the Home top-offers wrapper only. 900px matches
   .products-grid's own widest "compact" breakpoint in shop.css/critical.css. */
@media (max-width: 900px) {
  .vth-top-offers-wrap .vtpg-section { padding-left: 0; padding-right: 0; }
  .vth-top-offers-wrap .products-grid { padding: 0; }
}
.vth-section { padding-top: 36px; padding-bottom: 36px; position: relative; }
.vth-tight { padding-top: 10px; }

/* Warm feature band with paper grain */
.vth-paper { background: var(--cream); }
.vth-paper::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
  background-size: 160px; opacity: .5; mix-blend-mode: multiply; pointer-events: none;
}
.vth-paper > .vth-wrap { position: relative; z-index: 1; }

@media (max-width: 600px) {
  .vth-wrap { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 900px) {
  .vth-section { padding-top: 24px; padding-bottom: 24px; }
}

/* ── Section heading ──────────────────────────────────────────────────────── */
.vth-section-head { text-align: center; margin: 0 auto 22px; max-width: 760px; }
.vth-tick { width: 1px; height: 26px; background: var(--grey3); margin: 0 auto 14px; }
.vth-eyebrow {
  display: inline-block; font-family: var(--font-body); font-weight: 500;
  text-transform: uppercase; letter-spacing: .24em; font-size: 11px;
  color: var(--text); margin-bottom: 10px;
}
.vth-section-head h2 {
  font-family: var(--font-head); font-weight: 400; line-height: 1.06; margin: 0;
  font-size: clamp(30px, 4.4vw, 48px); letter-spacing: .2px; color: var(--text);
}
/*
 * TEMPORARY — legacy [deals_of_the_day] title (temp-legacy/deals-of-the-day)
 * styled like a home section heading. temp-legacy/home-page/home-page.css
 * hides .recommends_title on the front page, so this also re-shows it.
 * Remove once the home page uses [valentte_deals_of_the_day] only.
 */
body.home .recommends_title,
body.has-home-blocks .recommends_title {
  display: block; text-align: center; max-width: 760px; margin: 0 auto 22px;
  font-family: var(--font-head); font-weight: 400; line-height: 1.06;
  font-size: clamp(30px, 4.4vw, 48px); letter-spacing: .2px; color: var(--text);
  text-transform: none;
}
body.home .recommends_title::before,
body.has-home-blocks .recommends_title::before {
  content: ""; display: block; width: 1px; height: 26px; background: var(--grey3); margin: 0 auto 14px;
}

.vth-section-head .vth-mood {
  font-family: var(--font-head); font-weight: 300; font-style: italic;
  font-size: clamp(19px, 2.5vw, 26px); color: var(--text); margin-top: 8px;
}

/* ── Homepage buttons ─────────────────────────────────────────────────────── */
.vth-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body); font-weight: 500; font-size: var(--btn-font-size); line-height: 1.1;
  min-height: var(--btn-h); padding: 0 var(--btn-pad-x); border-radius: var(--radius-btn);
  border: 1px solid transparent; letter-spacing: 0; text-transform: capitalize; box-shadow: none;
  text-decoration: none; cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
/* Email button template: primary = orange, dark = black, outline = outlined.
   --accent is the old "Accent (orange)" hero option, kept so saved blocks
   stay orange; --secondary is the old name for the outlined style. */
.vth-btn--primary,
.vth-btn--accent { background: var(--cta-orange); border-color: var(--cta-orange); color: var(--white); }
.vth-btn--primary:hover,
.vth-btn--accent:hover { background: var(--cta-orange-hover); border-color: var(--cta-orange-hover); }
.vth-btn--dark { background: var(--black); border-color: var(--black); color: var(--white); }
.vth-btn--dark:hover { background: #3a3a3a; border-color: #3a3a3a; }
.vth-btn--outline,
.vth-btn--secondary { background: transparent; border-color: var(--black); color: var(--text); }
.vth-btn--outline:hover,
.vth-btn--secondary:hover { background: var(--black); color: var(--white); }
.vth-btn--ondark { background: var(--white); border-color: var(--white); color: var(--text); }
.vth-btn--ondark:hover { background: transparent; color: var(--white); }

/* Text link with arrow */
.vth-tlink {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 14.5px;
  border-bottom: 1px solid var(--grey3); padding-bottom: 3px;
  transition: border-color .25s ease, gap .25s ease; text-decoration: none;
}
.vth-tlink:hover { border-color: var(--black); gap: 12px; }

/* ── Image frames ─────────────────────────────────────────────────────────── */
.vth-ph { position: relative; overflow: hidden; background: var(--cream); }
.vth-ph--warm    { background: linear-gradient(135deg, #F6F0E7 0%, #E7DBC9 60%, #DECBB2 100%); }
.vth-ph--stone   { background: linear-gradient(135deg, #F0EBE4 0%, #D9D2C7 100%); }
.vth-ph--citrus  { background: linear-gradient(135deg, #F8F2DC 0%, #E9DCB6 100%); }
.vth-ph--lavender{ background: linear-gradient(135deg, #EEEBF1 0%, #D6D1DE 100%); }
.vth-ph--sand    { background: linear-gradient(135deg, #F3E9D9 0%, #DEC9A8 100%); }
.vth-ph--clean   { background: linear-gradient(135deg, #F0F3F2 0%, #DBE0DD 100%); }
.vth-ph--mist    { background: linear-gradient(135deg, #EFEEEC 0%, #D6D4CF 100%); }
.vth-ph--mono    { background: linear-gradient(160deg, #D7D5D2 0%, #9d9b98 55%, #5f5d5b 100%); }

.vth-ph::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  box-shadow: inset 0 0 60px rgba(0,0,0,.06);
}
.vth-frame-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
  transition: transform .7s cubic-bezier(.2,.6,.2,1);
}
.vth-frame-img.is-missing { display: none; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.vth-hero {
  position: relative; display: flex; align-items: center; overflow: hidden;
  /* min-height set via inline style from block attributes (heroHeight) */
  background: linear-gradient(112deg, #F6F0E7 0%, #EEE2D1 52%, #E5D7C1 100%);
}
.vth-hero__bg { position: absolute; inset: 0; }
.vth-hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  /* background set via inline style from block attributes (overlayColor + overlayOpacity) */
}
.vth-hero__inner { position: relative; z-index: 2; width: 100%; padding-top: 48px; padding-bottom: 48px; }
.vth-hero__copy { max-width: 34rem; }

/* Narrower copy column at tablet/desktop widths — moved here from the
   block's per-block "Additional CSS" field, which wasn't reliably
   outputting a stylesheet for rules containing a nested @media block. */
@media screen and (min-width: 761px)  and (max-width: 974px) {
  .vth-hero .vth-hero__copy { max-width: 300px; }
}
@media screen and (min-width: 975px) and (max-width: 1072px){
  .vth-hero .vth-hero__copy { max-width: 330px; }
}

/* Content position variants — horizontal (places the content BOX within the hero) */
.vth-hero--right .vth-hero__inner { display: flex; justify-content: flex-end; }
.vth-hero--center .vth-hero__inner { display: flex; justify-content: center; }
/* Content position variants — vertical */
.vth-hero--v-top    { align-items: flex-start; }
.vth-hero--v-bottom { align-items: flex-end; }

/* Elements position — aligns text/button/trust row WITHIN the box placed
   above. Independent of the box-placement rules above; defaults to
   matching Horizontal position when not explicitly set (see
   template-parts/home/hero.php). Mirrors the .vth-mob-align-* rules below,
   which override these on mobile via !important when Mobile text
   alignment is explicitly set. */
.vth-hero--elements-center .vth-hero__copy { text-align: center; }
.vth-hero--elements-center .vth-hero__actions { justify-content: center; }
.vth-hero--elements-center .vth-hero__trust { justify-content: center; }
.vth-hero--elements-center .vth-hero__lede { margin-left: auto; margin-right: auto; }
.vth-hero--elements-right .vth-hero__copy { text-align: right; }
.vth-hero--elements-right .vth-hero__actions { justify-content: flex-end; }
.vth-hero--elements-right .vth-hero__trust { justify-content: flex-end; }
.vth-hero--elements-right .vth-hero__lede { margin-left: auto; margin-right: 0; }
.vth-hero__copy .vth-eyebrow { color: var(--text); }
.vth-hero__copy h1 {
  font-family: var(--font-head); font-weight: 400;
  font-size: clamp(40px, 5.4vw, 64px); line-height: 1.0;
  margin: 0 0 16px; letter-spacing: .2px;
}
.vth-hero__lede {
  font-family: var(--font-head); font-weight: 300; font-style: italic;
  font-size: clamp(18px, 2.4vw, 24px); color: var(--text); margin: 0 0 28px; max-width: 30ch;
}
/* Ysabeau Office has no italic face loaded — forcing italic on it makes the
   browser silently fall back to Cormorant (the next font in the stack that
   does have one), which looks like the font never changed. */
.vth-hero__lede.vt-font-body { font-style: normal; font-weight: 400; }
.vth-hero__actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.vth-hero__trust { display: flex; align-items: center; gap: 10px; margin-top: 40px; color: var(--text); font-size: 13.5px; }
.vth-stars { color: var(--star-gold); font-size: 14px; letter-spacing: 1.5px; }

@media (max-width: 760px) {
  /* Mobile-only height/vertical-position overrides (opt-in per block).
     Placed before the stacked-layout rules below so stacked mode's own
     min-height:auto still wins if a mobile height is also set. */
  .vth-hero--mob-h-xsmall     { min-height: 240px !important; }
  .vth-hero--mob-h-small      { min-height: 320px !important; }
  .vth-hero--mob-h-medium     { min-height: clamp(380px, 50vh, 460px) !important; }
  .vth-hero--mob-h-large      { min-height: clamp(480px, 72vh, 640px) !important; }
  .vth-hero--mob-h-xlarge     { min-height: clamp(600px, 84vh, 800px) !important; }
  .vth-hero--mob-h-fullscreen { min-height: 100vh !important; }
  .vth-hero--mob-v-top    { align-items: flex-start !important; }
  .vth-hero--mob-v-center { align-items: center !important; }
  .vth-hero--mob-v-bottom { align-items: flex-end !important; }

  /* Heading and subtitle pulled close together on mobile. */
  .vth-hero__copy h1 { margin-bottom: 8px; }
  /* max-width:30ch (desktop readable-line-length constraint) made the
     subtitle a narrow centered column with visible side gaps vs. the
     full-width heading above it -- span full width on mobile instead. */
  .vth-hero__lede { margin-bottom: 18px; max-width: none; }

  /* .vth-hero centers .vth-hero__inner as a whole (align-items: center),
     so padding-bottom here counts toward that centered box's total height
     — trimming it (rather than adding margin-top on .vth-hero__trust)
     tightens the empty gap below the trust row on mobile without also
     nudging the heading upward the way growing the box from below would. */
  .vth-hero__inner { padding-bottom: 24px; }

  /*
   * Mobile-only colour overrides (opt-in per block). The attribute
   * selectors only match when the corresponding --vth-hero-mob-* custom
   * property is actually present in the inline style, so these rules are
   * inert (and desktop is untouched) unless a mobile colour is set.
   * Eyebrow/subtitle/trust line get their own colour targeting since they
   * have hardcoded colours that don't otherwise inherit from the section.
   */
  .vth-hero[style*="--vth-hero-mob-bg"] { background-color: var(--vth-hero-mob-bg) !important; }
  .vth-hero[style*="--vth-hero-mob-text"] { color: var(--vth-hero-mob-text) !important; }
  .vth-hero[style*="--vth-hero-mob-text"] .vth-eyebrow,
  .vth-hero[style*="--vth-hero-mob-text"] .vth-hero__lede,
  .vth-hero[style*="--vth-hero-mob-text"] .vth-hero__trust { color: var(--vth-hero-mob-text) !important; }
  .vth-hero__copy h1[style*="--vth-hero-mob-heading"] { color: var(--vth-hero-mob-heading) !important; }

  /* Mobile scrim handled by inline style from block attributes */

  /* Shared stacked rules */
  .vth-hero--mob-stacked-above,
  .vth-hero--mob-stacked-below {
    display: flex; flex-direction: column; min-height: auto !important;
  }
  .vth-hero--mob-stacked-above .vth-hero__scrim,
  .vth-hero--mob-stacked-below .vth-hero__scrim { display: none; }
  .vth-hero--mob-stacked-above .vth-hero__copy,
  .vth-hero--mob-stacked-below .vth-hero__copy { max-width: none; }
  /* Image fills full width in stacked mode */
  .vth-hero--mob-stacked-above .vth-hero__bg,
  .vth-hero--mob-stacked-below .vth-hero__bg {
    position: relative; width: 100%; overflow: hidden;
  }
  .vth-hero--mob-stacked-above .vth-hero__bg .vth-frame-img,
  .vth-hero--mob-stacked-below .vth-hero__bg .vth-frame-img {
    position: relative; width: 100%; height: auto; object-fit: cover;
  }
  /* Remove vignette pseudo-element in stacked mode */
  .vth-hero--mob-stacked-above .vth-hero__bg::after,
  .vth-hero--mob-stacked-below .vth-hero__bg::after { display: none; }

  /* Text above image */
  .vth-hero--mob-stacked-above .vth-hero__inner {
    position: relative; z-index: 2; order: 1;
    padding: 36px 16px 28px; background: var(--page-bg);
  }
  .vth-hero--mob-stacked-above .vth-hero__bg { order: 2; }

  /* Image above text */
  .vth-hero--mob-stacked-below .vth-hero__bg { order: 1; }
  .vth-hero--mob-stacked-below .vth-hero__inner {
    position: relative; z-index: 2; order: 2;
    padding: 28px 16px 36px; background: var(--page-bg);
  }
}

/* ── Stats bar ────────────────────────────────────────────────────────────── */
.vth-stats {
  background: var(--cream); color: var(--black); position: relative;
  border-top: 1px solid var(--grey3); border-bottom: 1px solid var(--grey3);
}
.vth-stats::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
  background-size: 160px; opacity: .5; mix-blend-mode: multiply; pointer-events: none;
}
.vth-stats__row {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(3, 1fr); padding: 40px 0; text-align: center;
}
/* Infinite mode wraps stats in .vth-stats__track for the mobile marquee.
   On desktop that wrapper must stay transparent to layout (display:contents)
   so its .vth-stat children remain direct grid items of the 3-column row
   above -- otherwise the track (an unstyled block box outside the mobile
   media query) stacks them vertically in the grid's first column. */
.vth-stats__track { display: contents; }
.vth-stat { padding: 0 14px; }
.vth-stat + .vth-stat { border-left: 1px solid var(--grey3); }
.vth-stats__row [aria-hidden="true"] { display: none; }
.vth-stat__num { font-family: var(--font-head); font-weight: 400; font-size: clamp(28px, 3.6vw, 42px); line-height: 1; }
.vth-stat__label {
  font-family: var(--font-body); font-weight: 400; font-size: 12px;
  text-transform: uppercase; letter-spacing: .18em; color: var(--text); margin-top: 10px;
}
@media (max-width: 600px) {
  .vth-stats__row {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%;
    gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    padding-top: 22px; padding-bottom: 22px;
  }
  .vth-stats__row::-webkit-scrollbar { display: none; }
  .vth-stat { scroll-snap-align: center; }
  .vth-stat + .vth-stat { border-left: 1px solid var(--grey3); border-top: 0; padding-top: 0; }

  /*
   * Infinite auto-loop variant (opt-in per block). The row itself is just the
   * clipping viewport (fixed to the visible width) — the animated element is
   * the inner track, sized to its own content (width: max-content). That way
   * translateX(-50%) resolves against the track's real content width, landing
   * exactly on the duplicated set. (Animating the row directly is wrong: its
   * width is the viewport width, not its overflowing content's width, so -50%
   * would move it by half the viewport instead of half the content.)
   */
  .vth-stats__row--infinite { display: block; overflow: hidden; scroll-snap-type: none; }
  .vth-stats__row--infinite .vth-stats__track {
    display: flex; width: max-content;
    animation: vth-stats-marquee 14s linear infinite;
  }
  /* Half viewport width per slide: two stats always visible side by side,
     evenly split by the divider line -- matches the desktop 3-up layout
     instead of one stat alone with empty space either side. Each stat's
     text still centers within its own half. */
  .vth-stats__row--infinite .vth-stat { flex: 0 0 50vw; margin-right: 0; scroll-snap-align: none; }
  .vth-stats__row--infinite [aria-hidden="true"] { display: block; }
}

@keyframes vth-stats-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Grid ─────────────────────────────────────────────────────────────────── */
.vth-grid { display: grid; grid-template-columns: repeat(4, 1fr); column-gap: 20px; row-gap: 28px; }
@media (max-width: 900px) { .vth-grid { grid-template-columns: repeat(3, 1fr); column-gap: 12px; row-gap: 14px; } }
@media (max-width: 600px) { .vth-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 315px) { .vth-grid { grid-template-columns: 1fr; } }

/* ── Loved by you — UGC video tiles ───────────────────────────────────────── */
.vth-video-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr);
  gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px;
  scrollbar-width: none;
}
.vth-video-row::-webkit-scrollbar { display: none; }
@media (max-width: 600px) { .vth-video-row { grid-auto-columns: 64%; gap: 12px; } }

.vth-vtile {
  position: relative; aspect-ratio: 3/4; border-radius: var(--radius); overflow: hidden;
  scroll-snap-align: start; box-shadow: 0 2px 8px rgba(0,0,0,.07), 0 0 1px rgba(0,0,0,.04);
}
.vth-vtile:hover .vth-frame-img { transform: scale(1.05); }
.vth-vtile__scrim {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 42%, rgba(0,0,0,.62) 100%);
}
.vth-vtile__play {
  position: absolute; inset: 0; margin: auto; width: 50px; height: 50px; border-radius: 50%;
  background: rgba(255,255,255,.9); display: flex; align-items: center; justify-content: center;
  z-index: 3; transition: transform .25s ease; border: none; cursor: pointer;
}
.vth-vtile:hover .vth-vtile__play { transform: scale(1.08); }
.vth-vtile__cart {
  position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.92); display: flex; align-items: center; justify-content: center;
  color: var(--black); z-index: 3; border: none; cursor: pointer;
}
.vth-vtile__label {
  position: absolute; left: 16px; right: 16px; bottom: 15px;
  color: var(--white); font-weight: 500; font-size: 14px; line-height: 1.3; z-index: 3;
}

/* ── Portrait tile cards (categories + fragrances) ────────────────────────── */
.vth-tilecard {
  position: relative; display: block; aspect-ratio: 3/4; border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.07), 0 0 1px rgba(0,0,0,.04);
  transition: box-shadow .3s ease, transform .3s ease; text-decoration: none;
}
.vth-tilecard:hover { box-shadow: 0 6px 20px rgba(0,0,0,.1); transform: translateY(-3px); }
.vth-tilecard:hover .vth-frame-img { transform: scale(1.05); }
.vth-tilecard__overlay {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 40px 18px 18px;
  color: var(--white);
  background: linear-gradient(to top, rgba(34,31,32,.84) 0%, rgba(34,31,32,.3) 52%, rgba(34,31,32,0) 100%);
}
.vth-tilecard__name {
  font-family: var(--font-head); font-weight: 500; font-size: 21px; line-height: 1.12;
  color: var(--white); display: inline-flex; align-items: center; gap: 8px;
}
.vth-tilecard__arr {
  font-family: var(--font-body); font-size: 14px; opacity: 0; transform: translateX(-5px);
  transition: opacity .25s ease, transform .25s ease;
}
.vth-tilecard:hover .vth-tilecard__arr { opacity: .9; transform: none; }
.vth-tilecard__stars { display: block; color: var(--star-gold); font-size: 12px; letter-spacing: 1.5px; margin-top: 7px; }
.vth-tilecard__review-count { color: var(--white); font-size: 12.5px; letter-spacing: normal; margin-left: 4px; }
/* Best-selling fragrances + category tiles: on phones the half-width tile is
   too narrow for stars + "(N reviews)" on one line — drop the count onto its
   own line. */
@media (max-width: 600px) {
  .vth-tilecard__review-count { display: block; margin-left: 0; margin-top: 3px; }
}
.vth-tilecard__meta { display: flex; align-items: baseline; gap: 8px; margin-top: 5px; }
.vth-tilecard__price { font-family: var(--font-body); font-weight: 500; font-size: 16px; color: var(--white); }

/* ── Cards (valentte/vth-cards) — editor-managed image + overlay + link ──── */
/* Flex (not .vth-grid) so a short last row — 3, 5, 6 cards — sits centred.
   Column counts and gaps follow the brand grid: 4 / 3 / 2 / 1. */
.vth-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px 20px; }
.vth-cards > .vth-tilecard { flex: 0 0 calc((100% - 3 * 20px) / 4); }
.vth-tilecard--square { aspect-ratio: 1/1; }
@media (max-width: 900px) {
  .vth-cards { gap: 14px 12px; }
  .vth-cards > .vth-tilecard { flex-basis: calc((100% - 2 * 12px) / 3); }
}
@media (max-width: 600px) {
  .vth-cards > .vth-tilecard { flex-basis: calc((100% - 12px) / 2); }
  .vth-cards .vth-tilecard__overlay { padding: 32px 12px 12px; }
  .vth-cards .vth-tilecard__name { font-size: 18px; }
}
@media (max-width: 315px) {
  .vth-cards > .vth-tilecard { flex-basis: 100%; }
}

/* ── New season — circular scent-note tiles ───────────────────────────────── */
.vth-notes-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 42px 50px; }
.vth-note { width: clamp(140px, 42vw, 200px); text-align: center; display: flex; flex-direction: column; align-items: center; text-decoration: none; color: inherit; }
.vth-note__img {
  width: clamp(124px, 40vw, 176px); aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.07), 0 0 1px rgba(0,0,0,.04); margin-bottom: 18px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.vth-note:hover .vth-note__img { transform: translateY(-4px); box-shadow: 0 6px 20px rgba(0,0,0,.1); }
.vth-note:hover .vth-frame-img { transform: scale(1.05); }
.vth-note__kind {
  font-family: var(--font-body); font-weight: 500; text-transform: uppercase;
  letter-spacing: .18em; font-size: 11px; color: var(--text); margin-bottom: 8px;
}
.vth-note__name { font-family: var(--font-head); font-weight: 400; font-size: 22px; color: var(--black); line-height: 1.12; }
.vth-note__cta {
  font-family: var(--font-body); font-weight: 500; font-size: 13px; color: var(--text);
  margin-top: 10px; display: inline-flex; align-items: center; gap: 4px;
  border-bottom: 1px solid var(--grey3); padding-bottom: 2px;
  transition: color .25s ease, border-color .25s ease, gap .25s ease;
}
.vth-note:hover .vth-note__cta { color: var(--black); border-color: var(--black); gap: 8px; }
.vth-notes-cta { text-align: center; margin-top: 46px; }

/* ── Trust divider ────────────────────────────────────────────────────────── */
.vth-divider { background: var(--grey1); color: var(--white); }
.vth-divider__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding-top: 26px; padding-bottom: 26px; }
.vth-trust { display: flex; align-items: center; justify-content: center; gap: 12px; text-align: left; }
.vth-trust span { font-size: 12.5px; text-transform: uppercase; letter-spacing: .1em; line-height: 1.3; }
@media (max-width: 600px) { .vth-divider__row { grid-template-columns: 1fr 1fr; gap: 20px 12px; } }

/* ── We believe ───────────────────────────────────────────────────────────── */
.vth-believe { position: relative; min-height: 600px; display: flex; align-items: center; overflow: hidden; }
.vth-believe__bg { position: absolute; inset: 0; }
.vth-believe__bg .vth-frame-img { filter: grayscale(1); }
.vth-believe__scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(247,245,242,.95) 0%, rgba(247,245,242,.74) 44%, rgba(247,245,242,0) 72%);
}
.vth-believe__inner { position: relative; z-index: 2; max-width: 540px; padding: 64px var(--side-pad); }
.vth-believe__inner .vth-eyebrow { color: var(--text); }
.vth-believe__inner h2 { font-family: var(--font-head); font-weight: 400; font-size: clamp(32px, 4.2vw, 48px); margin: 0 0 24px; }
.vth-believe__inner p { color: var(--text); margin: 0 0 16px; font-size: 15.5px; }
.vth-believe__sign { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--grey3); }
.vth-believe__sign-name { font-family: var(--font-head); font-weight: 500; font-style: italic; font-size: 20px; color: var(--black); }
.vth-believe__sign-role { font-size: 12px; text-transform: uppercase; letter-spacing: .16em; color: var(--text); margin-top: 3px; }
@media (max-width: 760px) {
  .vth-believe__scrim { background: rgba(247,245,242,.92); }
  .vth-believe__inner { margin: 0 auto; text-align: center; }
  .vth-believe__sign { display: inline-block; }
}

/* ── Social grid ──────────────────────────────────────────────────────────── */
/* .vth-grid's inherited fixed repeat(4,1fr)/repeat(3,1fr) assumes exactly 4
   (or 3, on tablet) tiles. Tile count is now editable (any number), so
   auto-fit lets 3, 5, 6+ tiles wrap cleanly instead of leaving empty
   trailing columns or an orphaned last row. */
.vth-social-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
@media (max-width: 900px) {
  .vth-social-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
}
.vth-social-grid .vth-pic {
  aspect-ratio: 1/1; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.07), 0 0 1px rgba(0,0,0,.04);
}
.vth-social-grid .vth-pic:hover { box-shadow: 0 6px 20px rgba(0,0,0,.1); }
.vth-social-grid .vth-pic:hover .vth-frame-img { transform: scale(1.05); }
.vth-social-grid .vth-handle { font-size: 15.5px; color: var(--text); margin-top: 11px; letter-spacing: .02em; }
.vth-center-cta { text-align: center; margin-top: 40px; }

/* Mobile: swipeable carousel instead of a static 2-col grid. Scroll is
   contained to this element (overflow-x: auto here only) so it can never
   drag the page itself sideways — html/body already block that globally. */
@media (max-width: 600px) {
  .vth-social-grid {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 45%;
    gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    padding-bottom: 4px;
  }
  .vth-social-grid::-webkit-scrollbar { display: none; }
  .vth-social-grid .vth-stile { scroll-snap-align: start; }
}

/* ── Our story ────────────────────────────────────────────────────────────── */
.vth-story { position: relative; min-height: 800px; color: var(--white); overflow: hidden; }
.vth-story__bg { position: absolute; inset: 0; background: linear-gradient(160deg, #3a3735 0%, #26211d 60%, #15110e 100%); }
.vth-story__bg .vth-frame-img { object-position: 65% center; }
.vth-story__scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(20,16,12,.88) 0%, rgba(20,16,12,.52) 46%, rgba(20,16,12,.12) 78%);
}
.vth-story__inner { position: relative; z-index: 2; padding-top: 68px; padding-bottom: 68px; max-width: 560px; }
.vth-story__inner .vth-eyebrow { color: var(--white); }
.vth-story__inner h2 { font-family: var(--font-head); font-weight: 400; font-size: clamp(42px, 6vw, 72px); margin: 0 0 32px; color: var(--white); }

.vth-timeline { position: relative; padding-left: 36px; }
.vth-timeline::before { content: ""; position: absolute; left: 6px; top: 10px; bottom: 48px; width: 1px; background: rgba(255,255,255,.4); }
.vth-tl { position: relative; margin-bottom: 32px; }
.vth-tl::before { content: ""; position: absolute; left: -36px; top: 14px; width: 13px; height: 13px; border-radius: 50%; background: var(--white); }
.vth-tl__yr { font-family: var(--font-head); font-weight: 400; font-size: 36px; line-height: 1; margin-bottom: 8px; }
.vth-tl p { font-size: 14px; color: var(--white); max-width: 34ch; }
.vth-story .vth-center-cta { text-align: left; margin-top: 10px; }
.vth-story a:focus-visible { outline-color: var(--white); }

@media (max-width: 900px) { .vth-story { min-height: 640px; } }
@media (max-width: 760px) {
  .vth-story { min-height: 0; }
  .vth-story__scrim { background: linear-gradient(180deg, rgba(20,16,12,.72) 0%, rgba(20,16,12,.86) 100%); }
  .vth-story__inner { max-width: 100%; padding-top: 48px; padding-bottom: 52px; }
  .vth-story__inner h2 { margin-bottom: 22px; }
  .vth-tl__yr { font-size: 30px; }
  .vth-tl p { max-width: none; }
}

/* ── Discover samples ─────────────────────────────────────────────────────── */
.vth-samples { text-align: center; }
.vth-samples__icon { display: flex; justify-content: center; margin-bottom: 24px; color: var(--black); }
.vth-samples h2 { font-family: var(--font-head); font-weight: 400; font-size: clamp(28px, 3.6vw, 42px); margin: 0 0 12px; }
.vth-samples p { color: var(--text); max-width: 48ch; margin: 0 auto 28px; }

/* ── Reviews ──────────────────────────────────────────────────────────────── */
.vth-reviews .vth-agg { text-align: center; margin-bottom: 30px; }
.vth-reviews .vth-agg .vth-count { color: var(--text); margin-top: 8px; }
.vth-stars-empty { color: var(--grey3); font-size: 18px; letter-spacing: 3px; }
.vth-reviews .vth-sortbar { margin-bottom: 30px; }
.vth-select {
  display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--grey3);
  border-radius: var(--radius-btn); padding: 11px 16px; font-size: 13px; letter-spacing: .04em;
  background: var(--white); color: var(--black); cursor: pointer;
}
.vth-rev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 44px; }
@media (max-width: 900px) { .vth-rev-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .vth-rev-grid { grid-template-columns: 1fr; } }
.vth-rev { padding-top: 22px; border-top: 1px solid var(--grey3); }
.vth-rev__top { display: flex; align-items: center; justify-content: space-between; }
.vth-rev__date { color: var(--text); font-size: 12.5px; }
.vth-rev__who { color: var(--text); font-size: 13.5px; margin: 9px 0 4px; }
.vth-rev__prod { font-weight: 500; font-size: 14.5px; margin: 0 0 6px; }
.vth-rev__text { color: var(--text); font-size: 14px; }
.vth-rev__more { display: inline-block; margin-top: 6px; font-style: italic; font-family: var(--font-head); font-size: 15px; text-decoration: none; color: inherit; }
.vth-rev__helpful { display: flex; align-items: center; gap: 6px; color: var(--text); font-size: 13px; margin-top: 14px; }

/* ── Newsletter ───────────────────────────────────────────────────────────── */
.vth-news {
  background: #F0F0F0; color: var(--black); position: relative; overflow: hidden;
  border-top: 1px solid var(--grey3); border-bottom: 1px solid var(--grey3);
}
.vth-news::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
  background-size: 170px; opacity: .4; mix-blend-mode: multiply; pointer-events: none;
}
.vth-news__inner { position: relative; z-index: 1; max-width: 600px; margin: 0 auto; text-align: center; }
.vth-news__inner .vth-eyebrow { color: var(--text); }
.vth-news__inner h2 { font-family: var(--font-head); font-weight: 400; font-size: clamp(28px, 3.4vw, 40px); margin: 0 0 12px; }
.vth-news__inner p { color: var(--text); margin: 0 0 26px; }
.vth-news__label { display: block; text-align: left; font-weight: 500; font-size: 13px; margin-bottom: 8px; color: var(--black); }
.vth-news__row { display: flex; gap: 10px; }
.vth-news__input {
  flex: 1 1 auto; height: 50px; border: 1px solid var(--grey2); border-radius: var(--radius-btn);
  padding: 0 16px; font-family: var(--font-body); font-size: 14px; background: var(--white); color: var(--black);
}
.vth-news__input::placeholder { color: var(--text); }
.vth-news__consent {
  display: flex; align-items: flex-start; gap: 9px; justify-content: center;
  margin: 16px 0 0; font-size: 12px; color: var(--text);
}
.vth-news__consent input { margin-top: 2px; }
@media (max-width: 520px) { .vth-news__row { flex-direction: column; } }

/* ── Homepage sections — white background by default ──────────────────── */
#home-reviews,
.vth-section { background: var(--white); }

/* ── Mobile utilities ──────────────────────────────────────────────────── */
@media (max-width: 760px) {
  .vth-mob-hide { display: none !important; }
  .vth-mob-align-left   { text-align: left !important; }
  .vth-mob-align-center { text-align: center !important; }
  .vth-mob-align-center .vth-hero__actions,
  .vth-mob-align-center .vth-hero__trust,
  .vth-mob-align-center .vth-notes-cta,
  .vth-mob-align-center .vth-center-cta { justify-content: center; }
  /* .vth-hero__lede has a max-width (30ch) for readable line length on
     desktop -- text-align:center only centers the text INSIDE that box,
     not the box itself, so without auto margins it stays pinned to the
     left edge, visually misaligned under the full-width centered heading. */
  .vth-mob-align-center .vth-hero__lede { margin-left: auto; margin-right: auto; }
  .vth-mob-align-right  { text-align: right !important; }
  .vth-mob-align-right .vth-hero__actions,
  .vth-mob-align-right .vth-hero__trust { justify-content: flex-end; }
  .vth-mob-align-right .vth-hero__lede { margin-left: auto; margin-right: 0; }
}

/* ── Reveal animation ─────────────────────────────────────────────────────── */
.vth-reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.vth-reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .vth-reveal { opacity: 1; transform: none; transition: none; }
  .vth-btn, .vth-frame-img, .vth-tilecard, .vth-note__img, .vth-vtile__play { transition: none; }
}
@media (max-width: 600px) and (prefers-reduced-motion: reduce) {
  .vth-stats__row--infinite {
    display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 16px;
    overflow-x: auto; scroll-snap-type: x mandatory;
  }
  /* Unwrap the track so its children become direct grid items of the row
     (same layout as the default swipeable carousel), and drop the animation. */
  .vth-stats__row--infinite .vth-stats__track { display: contents; animation: none; }
  .vth-stats__row--infinite .vth-stat { scroll-snap-align: center; }
  .vth-stats__row--infinite [aria-hidden="true"] { display: none; }
}

/* ── Focus ────────────────────────────────────────────────────────────────── */
.vth-hero a:focus-visible,
.vth-hero button:focus-visible,
.vth-btn:focus-visible,
.vth-tilecard:focus-visible,
.vth-note:focus-visible { outline: 2px solid var(--black); outline-offset: 2px; }
