/*
Theme Name: Bubba's Secret Stills
Theme URI: https://www.bubbaswhiskey.com/
Author: Sego Solutions
Author URI: https://segosolutions.com/
Description: Bubba's Secret Stills Whiskey — WordPress/WooCommerce rebuild of the Wix site.
Version: 1.0.0
Requires PHP: 8.1
Text Domain: bubbas
WC requires at least: 9.0
*/

/* Brand faces, carried over from the Wix site (licensed by Chatham). */
@font-face { font-family: "Barley Aged"; src: url("assets/fonts/barley-aged.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "1785 GLC Baskerville"; src: url("assets/fonts/1785-glc-baskerville.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "League Gothic"; src: url("assets/fonts/league-gothic.woff2") format("woff2"); font-display: swap; }
/* Old Press is only used for the ampersand in display type. */
@font-face { font-family: "Old Press"; src: url("assets/fonts/old-press.woff2") format("woff2"); font-display: swap; unicode-range: U+0026; }

:root {
	--b-black: #0d0e0c;
	--b-ink: #141512;
	--b-tan: #e4cfb2;
	--b-tan-dark: #d6bc97;
	--b-white: #ffffff;
	--b-grey: #8f8f8f;
	--b-text-dark: #1b1b18;
	--b-display: "Old Press", "Barley Aged", "Arial Narrow", sans-serif;
	--b-body: "1785 GLC Baskerville", "Baskerville", Georgia, serif;
	--b-condensed: "League Gothic", "Arial Narrow", sans-serif;
	--b-gutter: clamp(16px, 4vw, 48px);
	--b-max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--b-black);
	color: var(--b-white);
	font-family: var(--b-body);
	font-size: 17px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

h1, h2, h3, h4, .b-display {
	font-family: var(--b-display);
	text-transform: uppercase;
	letter-spacing: .04em;
	line-height: 1.1;
	font-weight: 400;
	margin: 0 0 .5em;
}

.screen-reader-text {
	border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0;
	z-index: 100000; left: 8px; top: 8px; padding: 12px 16px;
	background: var(--b-white); color: var(--b-black);
}

:focus-visible { outline: 2px solid var(--b-tan); outline-offset: 3px; }

.b-wrap { max-width: var(--b-max); margin: 0 auto; padding: 0 var(--b-gutter); }

/* ---------- Buttons ---------- */
.b-btn,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
	display: inline-block;
	font-family: var(--b-display);
	text-transform: uppercase;
	letter-spacing: .12em;
	font-size: 15px;
	padding: 12px 28px;
	border: 2px solid currentColor;
	background: transparent;
	color: var(--b-white);
	text-decoration: none;
	cursor: pointer;
	transition: background .2s, color .2s;
	border-radius: 0;
}
.b-btn:hover, .b-btn:focus-visible { background: var(--b-white); color: var(--b-black); }
.b-btn--solid { background: var(--b-tan); color: var(--b-black); border-color: var(--b-tan); }
.b-btn--solid:hover { background: var(--b-white); border-color: var(--b-white); }
.b-section--tan .b-btn { color: var(--b-text-dark); }
.b-section--tan .b-btn:hover { background: var(--b-text-dark); color: var(--b-tan); }

/* ---------- Header ---------- */
.b-header {
	position: sticky; top: 0; z-index: 50;
	background: var(--b-black);
	border-bottom: 1px solid rgba(255,255,255,.06);
}
.b-header__inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	min-height: 84px;
}
.b-header__logo img { width: 190px; }
.b-header__actions { justify-self: end; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.b-header__actions a {
	font-family: var(--b-display); text-transform: uppercase; letter-spacing: .1em;
	font-size: 13px; text-decoration: underline; text-underline-offset: 4px;
}
.b-burger {
	justify-self: start;
	background: none; border: 0; padding: 10px; cursor: pointer; color: var(--b-white);
}
.b-burger span { display: block; width: 30px; height: 2px; background: currentColor; margin: 6px 0; transition: transform .2s, opacity .2s; }
.b-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.b-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.b-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.b-nav {
	position: fixed; inset: 84px 0 0 0;
	background: rgba(13,14,12,.97);
	display: flex; align-items: center; justify-content: center;
}
.b-nav { flex-direction: column; }
.b-nav[hidden] { display: none; }
.b-nav ul { list-style: none; margin: 0; padding: 0; text-align: center; }
.b-nav .b-nav__social { display: flex; gap: 12px; margin-top: 40px; }
.b-nav .b-nav__social li { margin: 0; }
.b-nav__social img { width: 28px; height: 28px; }
.b-nav li { margin: 18px 0; }
.b-nav a { font-family: var(--b-display); font-size: clamp(28px, 5vw, 44px); text-transform: uppercase; text-decoration: none; letter-spacing: .06em; }
.b-nav a:hover, .b-nav .current-menu-item > a { color: var(--b-tan); }

/* ---------- Hero / intro ---------- */
.b-hero img { width: 100%; max-height: 82vh; object-fit: cover; }

.b-intro { text-align: center; padding: 64px 0 72px; }
.b-intro__poster { width: min(320px, 70%); margin: 0 auto 32px; }
.b-intro p { max-width: 640px; margin: 0 auto 32px; }

/* ---------- Product split sections ---------- */
.b-section--tan { background: var(--b-tan); color: var(--b-text-dark); }
.b-section--dark { background: var(--b-black); color: var(--b-white); }

.b-split { display: grid; grid-template-columns: 3fr 2fr; min-height: 640px; } /* media is 40%, as live */
.b-split--reverse { grid-template-columns: 2fr 3fr; }
.b-split__text {
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	text-align: center; padding: 64px var(--b-gutter);
}
.b-split__media { position: relative; overflow: hidden; }
.b-split__media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
/* Near the 950x1384 bottle shots' own shape, so cover trims a sliver instead of the cap and base. */
@media (min-width: 861px) { .b-split__media { aspect-ratio: 950 / 1300; } }
.b-split--reverse .b-split__text { order: 2; }
.b-split--reverse .b-split__media { order: 1; }

.b-split__logo { width: 220px; margin-bottom: 20px; }
.b-split__title { font-size: clamp(30px, 3.6vw, 46px); }
.b-split__tagline { font-weight: 700; margin: 0 0 14px; }
.b-split__desc { max-width: 460px; margin: 0 0 24px; }
.b-split__award { width: 110px; margin-top: 24px; }

/* ---------- Mixed drinks CTA ---------- */
.b-cta { text-align: center; padding: 80px 0; }
.b-cta h2 { font-size: clamp(32px, 4vw, 48px); }
.b-cta p { max-width: 560px; margin: 0 auto 28px; }

/* ---------- Page headers / generic pages ---------- */
.b-page { padding: 64px 0 96px; }
.b-page__title { font-size: clamp(32px, 5vw, 56px); text-align: center; margin-bottom: 32px; }
.b-prose { max-width: 820px; margin: 0 auto; }
.b-prose h2 { font-size: 22px; margin-top: 2em; }
.b-prose a { color: var(--b-tan); }

/* ---------- Mixed drinks ---------- */
.b-recipe { display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; }
.b-recipe:nth-child(even) .b-recipe__text { order: 2; }
.b-recipe__text { padding: 64px var(--b-gutter); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.b-recipe__logo { width: 200px; margin-bottom: 16px; }
.b-recipe__text h3 { font-size: 15px; letter-spacing: .14em; margin: 20px 0 6px; }
.b-recipe__text h2 { font-size: clamp(28px, 3.4vw, 42px); }
.b-recipe__text p { margin: 0; max-width: 420px; white-space: pre-line; }
.b-recipe__media img { width: 100%; height: 100%; object-fit: cover; }

.b-more { padding: 80px 0; text-align: center; }
.b-more__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 32px; margin-top: 48px; text-align: left; }
.b-card img { height: 260px; width: auto; margin: 0 auto 18px; object-fit: contain; }
.b-card h3 { font-size: 20px; text-align: center; }
.b-card p { white-space: pre-line; margin: 0 0 10px; font-size: 15px; }

.b-tagline { text-align: center; padding: 64px 0; }
.b-tagline h2 { font-size: clamp(26px, 3.4vw, 40px); }

/* ---------- Buy page ---------- */
.b-locator { text-align: center; padding: 64px 0; }
.b-locator p { max-width: 720px; margin: 0 auto 32px; }
.b-locator__embed { min-height: 520px; }
.b-locator__embed:empty::before {
	content: "Store locator embed goes here (Theme settings → Store locator embed code).";
	display: flex; align-items: center; justify-content: center; min-height: 520px;
	border: 1px dashed rgba(255,255,255,.25); color: var(--b-grey); font-size: 14px;
}
.b-retailers { padding: 64px 0 80px; text-align: center; }
.b-retailers ul { list-style: none; margin: 40px auto 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; max-width: 900px; align-items: center; }
.b-retailers a { display: flex; align-items: center; justify-content: center; height: 110px; }
.b-retailers img { max-height: 100px; width: auto; }

/* ---------- Footer ---------- */
.b-footer { background: #000; padding: 36px 0; }
.b-footer__inner { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; }
.b-footer__logo img { width: 200px; }
.b-footer__center { text-align: center; font-family: var(--b-condensed); font-size: 16px; letter-spacing: .02em; }
.b-social { list-style: none; display: flex; gap: 10px; justify-content: center; padding: 0; margin: 0 0 8px; }
.b-social img { width: 22px; height: 22px; }
.b-footer__links { justify-self: end; list-style: none; margin: 0; padding: 0; }
.b-footer__links a { font-family: var(--b-display); text-transform: uppercase; font-size: 13px; letter-spacing: .08em; text-decoration: underline; text-underline-offset: 4px; line-height: 2; }

/* ---------- Age gate ---------- */
.b-agegate {
	position: fixed; inset: 0; z-index: 1000;
	background: rgba(11,13,10,.9);
	display: flex; align-items: center; justify-content: center; padding: var(--b-gutter);
}
.b-agegate[hidden] { display: none; }
.b-agegate__box { background: var(--b-tan); color: var(--b-black); padding: 20px 32px 40px; max-width: 862px; width: 100%; text-align: center; }
.b-agegate__box img { width: 200px; margin: 0 auto 18px; }
.b-agegate__box p { font-size: clamp(17px, 2.2vw, 23px); line-height: 1.4; letter-spacing: .01em; margin: 0; }
.b-agegate__actions { display: flex; gap: clamp(24px, 9vw, 120px); justify-content: center; margin-top: 32px; }
.b-agegate__btn {
	display: inline-block; width: 169px; max-width: 40vw; padding: 8px 0;
	background: var(--b-black); color: var(--b-white); border: 0; cursor: pointer;
	font-family: var(--b-display); font-size: 23px; line-height: 1.1; text-transform: uppercase; letter-spacing: .06em; text-decoration: none;
}
.b-agegate__btn:hover { background: var(--b-ink); color: var(--b-tan); }
.b-agegate__box:focus { outline: none; }
.b-agegate__btn:focus-visible { outline: 2px solid var(--b-black); outline-offset: 3px; }
body.b-agegate-open { overflow: hidden; }

/* ---------- WooCommerce ---------- */
.woocommerce .b-page { color: var(--b-white); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: var(--b-display); text-transform: uppercase; }
.woocommerce div.product .product_title { font-family: var(--b-display); }
.woocommerce .price { color: var(--b-tan) !important; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
	.b-split, .b-recipe { grid-template-columns: 1fr; }
	.b-split__media { aspect-ratio: 4 / 5; } /* a fixed 420px cut the bottle base off; a height cap does too */
	.b-split--reverse .b-split__text, .b-recipe:nth-child(even) .b-recipe__text { order: 0; }
	.b-more__grid { grid-template-columns: 1fr 1fr; }
	.b-retailers ul { grid-template-columns: repeat(2, 1fr); }
	.b-footer__inner { grid-template-columns: 1fr; text-align: center; }
	.b-footer__logo img { margin: 0 auto; }
	.b-footer__links { justify-self: center; }
	.b-header__logo img { width: 140px; }
}
@media (max-width: 540px) {
	.b-more__grid { grid-template-columns: 1fr; }
}
