/* Sprint 06: one homepage composition, isolated from PDP and checkout styles. */
.a1-home, .bh-directory-page { --bh-wine: var(--wp--preset--color--blushe-burgundy); --bh-wine-rgb: 131 8 41; --bh-pink: var(--wp--preset--color--blushe-pink); --bh-pink-rgb: 255 225 234; --bh-ivory: var(--wp--preset--color--blushe-soft); --bh-ink: var(--wp--preset--color--ink); --bh-ink-rgb: 23 19 21; --bh-white: var(--wp--preset--color--white); --bh-white-rgb: 255 255 255; --bh-line: var(--wp--preset--color--line); --bh-muted: var(--wp--preset--color--muted); }
.a1-home { margin-block-start: 0; }
.a1-home > * { margin-block: 0; }
.bh-wrap { width: min(1440px, calc(100% - 80px)); margin-inline: auto; }
.bh-section { padding-block: clamp(40px, 4.2vw, 72px); }
.a1-home section { scroll-margin-top: 145px; }
.a1-home h2, .a1-home h3, .a1-home p { margin-top: 0; }
.bh-kicker { color: var(--bh-wine); font-size: 11px; font-weight: 650; letter-spacing: .14em; line-height: 1.5; text-transform: uppercase; margin-bottom: 12px; }
.bh-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 26px; }
.bh-heading h2 { font-size: clamp(32px, 3.2vw, 50px); letter-spacing: -.035em; margin-bottom: 0; }
.bh-link { display: inline-flex; align-items: center; gap: 18px; font-size: 12px; font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 6px; min-height: 44px; }
.bh-button { display: inline-flex; align-items: center; justify-content: center; gap: 24px; min-height: 48px; padding: 14px 24px; background: var(--bh-wine); color: var(--bh-white); font-size: 12px; font-weight: 600; text-decoration: none; }
.bh-button:hover { background: var(--bh-ink); color: var(--bh-white); }
.a1-home a:focus-visible, .a1-home button:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

/* Closed Woo drawer must not create an off-screen page canvas on the homepage. */
body.home .wc-block-mini-cart__drawer[aria-hidden="true"] { display: none; }

/* Manual campaign carousel; no mirrored product labels, autoplay or layout shifts. */
.bh-hero { position: relative; background: var(--bh-pink); color: var(--bh-ink); overflow: hidden; }
.a1-hero-slider__viewport { display: grid; }
.a1-hero-slide { display: grid; grid-area: 1 / 1; position: relative; align-items: center; min-height: clamp(530px, 43vw, 710px); }
.a1-hero-slide:not(:first-child) { display: none; }
.is-enhanced .a1-hero-slide { display: grid; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .35s ease, visibility .35s; }
.is-enhanced .a1-hero-slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; z-index: 1; }
.bh-hero__image { position: absolute; inset: 0; }
.bh-hero__image img { display: block; height: 100%; width: 100%; object-fit: cover; object-position: 50% 45%; }
.bh-hero__image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(var(--bh-pink-rgb) / .96), rgb(var(--bh-pink-rgb) / .72) 42%, rgb(var(--bh-white-rgb) / .08) 68%), linear-gradient(0deg, rgb(var(--bh-white-rgb) / .28), transparent 35%); }
.bh-hero--fenty-beauty .bh-hero__image img { object-position: 50% 55%; }
.bh-hero--milk-makeup .bh-hero__image img { object-position: 50% 45%; }
.bh-hero__copy { position: relative; z-index: 1; padding-block: 65px 110px; }
.bh-hero .bh-kicker { color: var(--bh-wine); }
.bh-hero h1, .bh-hero h2 { color: var(--bh-wine); font-size: clamp(52px, 5.3vw, 86px); line-height: .98; letter-spacing: -.045em; margin: 22px 0; max-width: 12ch; }
.bh-hero__copy > p:not(.bh-kicker) { max-width: 385px; font-size: 15px; line-height: 1.65; margin-bottom: 26px; }
.bh-hero__actions { display: flex; align-items: center; gap: 28px; }
.bh-hero__actions .bh-button { background: var(--bh-wine); color: var(--bh-white); }
.bh-hero .bh-link { color: var(--bh-wine); }
.a1-hero-slider__controls { position: absolute; z-index: 3; bottom: 20px; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; }
.bh-hero__caption { color: var(--bh-wine); font-size: 10px; text-transform: uppercase; letter-spacing: .18em; }
.bh-hero__navigation, .a1-hero-slider__dots { display: flex; gap: 4px; }
.bh-hero__navigation button { width: 44px; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--bh-wine); font-size: 12px; }
.a1-hero-slider__dots button { border-bottom: 1px solid rgb(var(--bh-wine-rgb) / .3); }
.a1-hero-slider__dots button.is-active { border-bottom: 2px solid var(--bh-wine); }
.bh-services { border-bottom: 1px solid var(--bh-line); background: var(--bh-ivory); }
.bh-services .bh-wrap { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); }
.bh-services span { padding: 17px 10px; text-align: center; font-size: 12px; }
.bh-services b { font-weight: 400; color: var(--bh-wine); font-size: 19px; margin-right: 10px; vertical-align: middle; }

/* Category photographs form a compact, commercially clear first discovery band. */
.bh-category-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.bh-category { position: relative; overflow: hidden; color: var(--bh-white); min-width: 0; background: var(--bh-pink); }
.bh-category img { display: block; width: 100%; height: clamp(180px,19vw,270px); object-fit: cover; transition: transform .3s; }
.bh-category--eyes img { object-position: 50% 42%; }
.bh-category > span { position: absolute; inset: auto 0 0; padding: 30px 20px 16px; background: linear-gradient(transparent,rgb(var(--bh-ink-rgb) / .78)); display: flex; justify-content: space-between; align-items: center; font-family: var(--wp--preset--font-family--display); font-size: 30px; }
.bh-category b { font-family: var(--wp--preset--font-family--sans); font-size: 21px; font-weight: 400; }
.bh-category:hover { color: var(--bh-white); }
.bh-new { padding-top: 10px; }

/* Commerce: unscaled packshots, full-frame editorial media, native Woo actions. */
.bh-products { list-style: none; display: grid; gap: 22px; padding: 0; margin: 0; }
.bh-products--new { grid-template-columns: repeat(5,minmax(0,1fr)); }
.bh-card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.bh-card__media { display: block; aspect-ratio: 4 / 5; background: var(--bh-ivory); overflow: hidden; }
.bh-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: filter .25s; }
.bh-card--packshot .bh-card__media img { object-fit: contain; padding: 9px; background: var(--bh-white); }
.bh-card--packshot .bh-card__media { border: 1px solid var(--bh-line); }
.bh-card__body { display: flex; flex-direction: column; flex: 1; padding-top: 16px; }
.bh-card__brand { color: var(--bh-wine); font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 7px; }
.bh-card h3 { font-family: var(--wp--preset--font-family--sans); font-size: 14px; font-weight: 500; line-height: 1.45; margin-bottom: 14px; }
.bh-card h3 a { text-decoration: none; }
.bh-card__purchase { display: flex; flex-wrap: wrap; gap: 5px 12px; align-items: center; justify-content: space-between; margin-top: auto; }
.bh-card .price { font-size: 14px; font-weight: 600; }
.bh-card .button { background: transparent; border: 0; border-bottom: 1px solid var(--bh-wine); color: var(--bh-wine); font-size: 11px; font-weight: 600; min-height: 44px; padding: 12px 2px; text-decoration: none; }
.bh-card .added_to_cart { font-size: 12px; padding-block: 10px; }
.bh-card__note { color: var(--bh-wine); font-size: 11px; padding-bottom: 10px; border-bottom: 1px solid var(--bh-line); margin-bottom: 14px; }

/* Brand directory: real taxonomy terms only, without fabricated logos. */
.bh-brand-section { background: var(--bh-ivory); }
.bh-brand-directory { border-top: 1px solid var(--bh-line); display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); }
.bh-brand-directory a { align-items: flex-start; border-bottom: 1px solid var(--bh-line); border-right: 1px solid var(--bh-line); display: grid; gap: 12px; min-height: 190px; padding: 24px 20px; position: relative; text-decoration: none; }
.bh-brand-directory a:first-child { border-left: 1px solid var(--bh-line); }
.bh-brand-directory span { font-family: var(--wp--preset--font-family--display); font-size: clamp(25px,2.2vw,36px); line-height: 1.05; }
.bh-brand-directory small { color: var(--bh-muted); font-size: 11px; margin-top: auto; }
.bh-brand-directory b { color: var(--bh-wine); font-size: 18px; font-weight: 400; position: absolute; right: 18px; top: 18px; }
.bh-brand-directory a:hover { background: var(--bh-pink); color: var(--bh-wine); }
.bh-brand-directory .bh-brand-link--visual { grid-template-rows: auto auto 1fr; min-height: 310px; }
.bh-brand-link--visual img { aspect-ratio: 4 / 3; background: var(--bh-ivory); height: auto; object-fit: contain; width: 100%; }
.bh-directory-page { width: 100%; }
.bh-directory-page .bh-products--picks-page { grid-template-columns: repeat(4,minmax(0,1fr)); }
.bh-directory-page .a1-page-intro { margin-bottom: 34px; }

/* Legacy Sprint 06 brand-card styling retained for archive compatibility. */
.bh-brands { display: grid; grid-template-columns: 1.05fr 1fr; grid-template-rows: repeat(2, minmax(0,1fr)); gap: 20px; height: clamp(500px,45vw,650px); }
.bh-brand { position: relative; overflow: hidden; color: var(--bh-white); min-height: 0; }
.bh-brand:first-child { grid-row: span 2; }
.bh-brand > img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.bh-brand::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg,rgb(var(--bh-ink-rgb) / .83),transparent 70%); }
.bh-brand__copy { position: absolute; z-index: 1; bottom: 0; left: 0; padding: 28px; }
.bh-brand .bh-kicker { color: var(--bh-white); font-size: 10px; }
.bh-brand h3 { font-size: clamp(30px,3vw,45px); margin-bottom: 14px; color: var(--bh-white); }
.bh-brand__copy > span { font-size: 12px; }
.bh-brand--milk-makeup > img { object-position: 50% 58%; }
.bh-brand--milk-makeup::after { background: linear-gradient(90deg,rgb(var(--bh-ink-rgb) / .7),transparent 80%); }
.bh-brand:hover { color: var(--bh-white); }

/* A split campaign is a visual reset, with texture taking half the canvas. */
.bh-campaign { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 440px; background: var(--bh-wine); color: var(--bh-white); }
.bh-campaign__photo { min-height: 0; overflow: hidden; }
.bh-campaign__photo img { display: block; height: 100%; width: 100%; max-height: 560px; object-fit: cover; object-position: 50% 48%; }
.bh-campaign__copy { align-self: center; padding: clamp(35px,5vw,80px); }
.bh-campaign .bh-kicker { color: var(--bh-pink); }
.bh-campaign h2 { color: var(--bh-white); font-size: clamp(45px,5vw,76px); letter-spacing: -.04em; margin-bottom: 20px; }
.bh-campaign__copy > p:not(.bh-kicker) { font-size: 14px; margin-bottom: 26px; }
.bh-campaign .bh-button { color: var(--bh-wine); background: var(--bh-white); }
.bh-picks__intro { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--bh-line); padding: 20px 0 26px; gap: 20px; }
.bh-picks__intro > span { font-family: var(--wp--preset--font-family--display); font-style: italic; color: var(--bh-wine); font-size: 30px; }
.bh-picks__intro p { font-size: 12px; margin-bottom: 0; }
.bh-products--picks { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 26px; }
.bh-products--picks .bh-card:nth-child(even) { padding-top: 38px; }
.bh-products--picks .bh-card__media { aspect-ratio: 4 / 5.2; }
.bh-moods { padding-top: 12px; }
.bh-mood-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.bh-mood { color: var(--bh-ink); text-decoration: none; background: var(--bh-ivory); overflow: hidden; }
.bh-mood > img { display: block; width: 100%; height: clamp(210px,22vw,320px); object-fit: cover; }
.bh-mood > div { padding: 18px 22px; }
.bh-mood h3 { font-size: 34px; display: flex; justify-content: space-between; margin-bottom: 6px; }
.bh-mood h3 span { font-size: 23px; }
.bh-mood p { font-size: 12px; margin-bottom: 0; }

/* The professional edit is one bounded editorial-commerce composition. */
.bh-pro { background: var(--bh-ink); color: var(--bh-white); padding-block: 55px; }
.bh-pro__layout { display: grid; grid-template-columns: .8fr 1.5fr; align-items: center; gap: 65px; }
.bh-pro .bh-kicker { color: var(--bh-pink); }
.bh-pro h2 { color: var(--bh-white); font-size: clamp(42px,4.4vw,66px); letter-spacing: -.03em; margin-bottom: 24px; }
.bh-pro__copy > p { font-size: 14px; }
.bh-pro__links { display: flex; flex-direction: column; align-items: start; }
.bh-pro__links a { color: var(--bh-white); }
.bh-products--pro { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.bh-products--pro .bh-card { background: var(--bh-white); color: var(--bh-ink); }
.bh-products--pro .bh-card__media { aspect-ratio: 1 / 1; }
.bh-products--pro .bh-card__body { padding: 20px; }

/* Six-image mosaic on desktop; deliberate swipe strip on phones. */
.bh-story-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.2fr; grid-template-rows: repeat(2,210px); gap: 16px; }
.bh-story { display: block; position: relative; min-height: 0; overflow: hidden; color: var(--bh-white); }
.bh-story:first-child, .bh-story:last-child { grid-row: span 2; }
.bh-story:nth-child(4) { grid-column: 2; grid-row: 2; }
.bh-story:nth-child(5) { grid-column: 3; grid-row: 2; }
.bh-story:last-child { grid-column: 4; grid-row: 1 / 3; }
.bh-story img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.bh-story span { position: absolute; inset: auto 0 0; background: linear-gradient(transparent,rgb(var(--bh-ink-rgb) / .78)); padding: 40px 16px 14px; font-size: 12px; }
.bh-story:hover { color: var(--bh-white); }
.bh-close { background: var(--bh-pink); color: var(--bh-ink); position: relative; overflow: hidden; }
.bh-close > .bh-wrap { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 45px; padding-block: 55px; }
.bh-close .bh-kicker { color: var(--bh-wine); }
.bh-close h2 { color: var(--bh-wine); font-size: clamp(46px,4.5vw,70px); letter-spacing: -.03em; margin-bottom: 0; }
.bh-close p { font-size: 14px; margin-bottom: 24px; }
.bh-close .bh-button { background: var(--bh-wine); color: var(--bh-white); }
.bh-close > .bh-wrap > div { position: relative; z-index: 1; }
.bh-close__mark { color: var(--bh-wine); position: absolute; font-family: var(--wp--preset--font-family--display); right: -45px; bottom: -120px; font-size: 390px; opacity: .06; line-height: 1; pointer-events: none; }
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  .bh-category:hover img, .bh-brand:hover > img, .bh-story:hover img { transform: scale(1.025); }
}
@media (min-width: 701px) {
  body.home .a1-primary-nav { order: 0; }
}
@media (min-width: 701px) and (max-width: 1100px) {
  .bh-products--new { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .bh-products--new .bh-card:last-child { display: none; }
}
@media (max-width: 1000px) {
  .bh-wrap { width: calc(100% - 48px); }
  .bh-products { gap: 16px; }
  .bh-card__purchase { align-items: start; flex-direction: column; }
  .bh-brands { height: 530px; }
  .bh-brand__copy { padding: 22px; }
  .bh-brand .bh-kicker { max-width: 18ch; }
  .bh-pro__layout { grid-template-columns: .75fr 1.4fr; gap: 25px; }
  .bh-pro .bh-card__body { padding: 14px; }
  .bh-story-grid { grid-template-rows: repeat(2,165px); gap: 12px; }
  .bh-brand-directory { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .bh-brand-directory a:nth-child(4) { border-left: 1px solid var(--bh-line); }
  .bh-directory-page .bh-products--picks-page { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 700px) {
  body.home .a1-header__inner { position: relative; }
  body.home .a1-header .a1-logo { top: 50%; transform: translate(-50%, -50%); }
  body.home .a1-header .a1-primary-nav { flex: 0 0 auto; margin-right: auto; }
  .bh-wrap { width: calc(100% - 32px); }
  .bh-section { padding-block: 36px; }
  .bh-heading { gap: 16px; margin-bottom: 20px; }
  .bh-heading h2 { font-size: 31px; }
  .bh-heading > .bh-link { max-width: 100px; font-size: 11px; line-height: 1.5; gap: 6px; flex-shrink: 0; }
  .bh-kicker { font-size: 9px; letter-spacing: .11em; margin-bottom: 9px; }
  .a1-hero-slide { min-height: 550px; align-items: end; }
  .bh-hero__copy { padding-block: 180px 98px; }
  .bh-hero h1, .bh-hero h2 { font-size: clamp(43px,12vw,65px); margin-block: 14px 18px; }
  .bh-hero__image::after { background: linear-gradient(0deg, rgb(var(--bh-pink-rgb) / .98), rgb(var(--bh-pink-rgb) / .78) 58%, rgb(var(--bh-white-rgb) / .08)); }
  .bh-hero__image img { object-position: 57% center; }
  .bh-hero__copy > p:not(.bh-kicker) { font-size: 13px; max-width: 310px; margin-bottom: 20px; }
  .bh-hero__actions { gap: 22px; }
  .bh-hero .bh-button { padding-inline: 18px; font-size: 11px; }
  .bh-hero__caption { display: none; }
  .a1-hero-slider__controls { justify-content: end; bottom: 14px; }
  .bh-services .bh-wrap { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .bh-services span { padding: 9px 2px; text-align: left; font-size: 10px; }
  .bh-services b { font-size: 17px; margin-right: 7px; }
  .bh-category-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
  .bh-category img { height: 158px; }
  .bh-category > span { font-size: 21px; padding: 28px 10px 10px; }
  .bh-category b { font-size: 16px; }
  .bh-new { padding-top: 0; }
  .bh-products--new { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
  .bh-products--new::-webkit-scrollbar { display: none; }
  .bh-products--new .bh-card { flex: 0 0 67%; scroll-snap-align: start; }
  .bh-card h3 { font-size: 13px; }
  .bh-card__brand { font-size: 9px; }
  .bh-card__purchase { flex-direction: row; align-items: center; }
  .bh-brands { height: auto; grid-template-columns: 1fr; grid-template-rows: auto; gap: 14px; }
  .bh-brand:first-child { grid-row: auto; height: 390px; }
  .bh-brand { height: 250px; }
  .bh-brand h3 { font-size: 34px; }
  .bh-brand__copy { padding: 24px; }
  .bh-brand-directory { grid-template-columns: 1fr; }
  .bh-brand-directory a, .bh-brand-directory a:nth-child(4) { border-left: 1px solid var(--bh-line); min-height: 108px; padding: 18px; }
  .bh-brand-directory span { font-size: 29px; }
  .bh-directory-page .bh-products--picks-page { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 14px; }
  .bh-campaign { grid-template-columns: 1fr; }
  .bh-campaign__photo { height: 300px; }
  .bh-campaign__copy { padding: 32px 24px 38px; }
  .bh-campaign h2 { font-size: 51px; }
  .bh-picks__intro { gap: 16px; padding-block: 16px 22px; }
  .bh-picks__intro > span { font-size: 26px; white-space: nowrap; }
  .bh-picks__intro p { font-size: 10px; }
  .bh-products--picks { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 14px; }
  .bh-products--picks .bh-card:nth-child(even) { padding-top: 22px; }
  .bh-products--picks .bh-card__purchase { flex-direction: column; align-items: start; gap: 0; }
  .bh-card__note { font-size: 10px; }
  .bh-moods { padding-top: 0; }
  .bh-mood-grid { grid-template-columns: 1fr; gap: 14px; }
  .bh-mood { display: grid; grid-template-columns: 45% 55%; align-items: center; }
  .bh-mood > img { height: 175px; }
  .bh-mood > div { padding: 16px; }
  .bh-mood h3 { font-size: 30px; }
  .bh-mood p { font-size: 11px; }
  .bh-pro { padding-block: 36px; }
  .bh-pro__layout { grid-template-columns: 1fr; gap: 26px; }
  .bh-pro h2 { font-size: 50px; }
  .bh-pro__links { gap: 2px; }
  .bh-products--pro { gap: 12px; }
  .bh-products--pro .bh-card__purchase { flex-direction: column; align-items: start; }
  .bh-story-grid { display: flex; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; gap: 12px; }
  .bh-story-grid::-webkit-scrollbar { display: none; }
  .bh-story { flex: 0 0 66%; height: 310px; scroll-snap-align: start; }
  .bh-close > .bh-wrap { grid-template-columns: 1fr; gap: 28px; padding-block: 38px; }
  .bh-close h2 { font-size: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .a1-home *, .a1-home *::before, .a1-home *::after { transition: none; scroll-behavior: auto; }
}
