/*
 * Black Friday "Midnight Gold" offer pages (templates/page-bf-gold.html), the design Hayley picked on
 * 25 Nov 2026. For Black Friday only: nothing after Sunday 29 November uses it (Hayley, 25 Nov; the
 * 12 Days and everyday pages stay cream). Loaded only on that template (functions.php).
 *
 * The page markup keeps the design's own inline styles, phone first (390 px design). This file adds
 * what inline styles can't: the page around it, one centred column on wide screens, the wide-screen
 * first screen (from the Bright Eyes desktop design), the sticky bar and the video.
 */
body.page-template-page-bf-gold { margin: 0; background: #041E20; }
.bfg-main, .bfg-main > .entry-content { margin: 0; padding: 0; max-width: none; }
/* The site's style.css pulls every page's main up under its fixed header (.wp-site-blocks > main, with
   !important), and the post content keeps a top padding: these pages have no site header, so both go
   (found live by Cowork, 25 Nov 09:20; until 1.2.14 a style line in each page does the same). */
body.page-template-page-bf-gold .wp-site-blocks > main.bfg-main { margin-top: 0 !important; }
body.page-template-page-bf-gold .bfg-main > .entry-content { padding-top: 0 !important; margin-top: 0 !important; }
body.page-template-page-bf-gold .bfg-main > .entry-content > * { margin-block-start: 0 !important; }
.bfg {
	background: #041E20;
	color: #F7F3EC;
	font-family: 'DM Sans', system-ui, sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
.bfg *, .bfg *::before, .bfg *::after { box-sizing: border-box; }
.bfg a, .bfg a:hover, .bfg a:focus { color: inherit; text-decoration: none; }
.bfg footer a, .bfg footer a:hover { text-decoration: underline; }
.bfg a:focus-visible { outline: 2px solid #DEC89A; outline-offset: 3px; }
.bfg h1, .bfg h2 { color: inherit; }
.bfg img { max-width: 100%; }
.bfg [hidden] { display: none !important; }
/* Shown only when bf-gold.js turns them on (bfg-on), even if the editor drops the hidden attribute:
   the countdown while there is time left, the play button and time once the video is found, and the
   before and after strips once their pictures have loaded. */
.bfg [data-bfg-countdown]:not(.bfg-on), .bfg [data-bfg-play]:not(.bfg-on), .bfg [data-bfg-time]:not(.bfg-on), .bfg [data-bfg-ba]:not(.bfg-on) { display: none !important; }

/* Phones and tablets: the phone page, in one centred column. */
.bfg-phone, .bfg-col { max-width: 600px; margin: 0 auto; }
.bfg-col > footer { padding-bottom: 32px; }
.bfg-desk { display: none !important; }

/* The sticky bar: always at the bottom of a phone's screen. Above the page, under the cookie bar (60). */
.bfg-sticky { position: sticky; bottom: 0; z-index: 40; max-width: 600px; margin: 0 auto; padding-bottom: calc(16px + env(safe-area-inset-bottom)) !important; }
@media (min-width: 700px) { .bfg-sticky { display: none !important; } }
/* While the cookie bar is showing, the sticky bar sits just above it instead of underneath (Cowork's phone
   walk-through for Dan, #151, 26 Nov 2026: the cookie bar covered the bottom 87 px, the price and Book now
   were hidden for the 90% who never answer it; 3 taps from 328 views). bf-gold.js measures the cookie bar
   (--abh-consent-h); 88 px if it can't. Once a choice is made the bar goes back to the bottom. The cookie
   bar itself, its words and its two choices are unchanged. */
html:not(.abh-consent-set):has(.abh-consent:not([hidden])) .bfg-sticky { bottom: var(--abh-consent-h, 88px); padding-bottom: 12px !important; }

/* Phones: a shorter first picture, so the title, the price and what's included start on the first screen
   (Cowork, same walk-through: 63% of Bright Eyes and 51% of microneedling views never scrolled a quarter of
   the page; the offer's own Book button sat at about 1,085 px). The picture keeps Hayley's face in view
   (the page's own object-position) and the Save badge moves up beside it, clear of the title. */
@media (max-width: 699px) {
	/* Shorter on small phones so the offer name clears the raised Book bar while the cookie bar shows (tested 375/390/430, 26 Nov). 375px is the fallback where svh is not supported. */
	.bfg-phone > section:first-of-type { height: 375px !important; height: min(430px, calc(100svh - 292px)) !important; }
	.bfg-phone > section:first-of-type > div[style*="rotate(-9deg)"] { top: 20px !important; }
}

/* Wide screens: the desktop first screen, then the rest in the centred column. */
@media (min-width: 1200px) {
	.bfg-desk { display: flex !important; }
	.bfg-phone { display: none !important; }
	.bfg-desk-head, .bfg-desk-main { width: 100%; max-width: 1280px; margin-left: auto; margin-right: auto; }
	.bfg-desk-main { padding-bottom: 56px !important; }
	.bfg-col { padding-top: 24px; }
}

/* The video card: the poster, then Hayley's video in its place once tapped. */
.bfg-video-on { background: #000; }
.bfg-video-on > :not(video) { display: none !important; }
.bfg-video-on video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }

@media (prefers-reduced-motion: reduce) {
	.bfg * { scroll-behavior: auto !important; }
}
