/*
Theme Name: Bottle Cellar
Theme URI: http://bottle-cellar.local
Author: No Creative Bone
Description: Blank classic theme for the Bottle Cellar build. Owns the site chrome (announcement bar, header, footer); page bodies are authored in Elementor.
Version: 0.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bottle-cellar
*/

/* Design tokens mirroring the Elementor kit global variables. */
:root {
	--bc-gold: #dd9f49;
	--bc-rust: #c55338;
	--bc-cream: #faf3e7;
	--bc-ink: #020810;
	--bc-slate: #969fb7;

	--bc-font-heading: "Literata", Georgia, "Times New Roman", serif;
	--bc-font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--bc-font-stat: "Instrument Sans", system-ui, -apple-system, sans-serif;

	--bc-gutter: 3.75rem;
	--bc-content: 82.5rem;
}

@media (max-width: 1024px) {
	:root {
		--bc-gutter: 2.5rem;
	}
}

@media (max-width: 767px) {
	:root {
		--bc-gutter: 1.25rem;
	}
}

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

body {
	margin: 0;
	background: #fff;
	color: var(--bc-ink);
	font-family: var(--bc-font-body);
	font-size: 1rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

a {
	color: inherit;
}

/* currentColor rather than the brand gold: gold on the cream surfaces measures
   about 1.9:1, under the 3:1 a focus indicator has to clear. */
:focus-visible {
	outline: 2px dashed currentColor;
	outline-offset: 3px;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	position: fixed;
	top: 1rem;
	left: 1rem;
	z-index: 100000;
	width: auto;
	height: auto;
	margin: 0;
	padding: 0.75rem 1.25rem;
	overflow: visible;
	clip-path: none;
	background: var(--bc-ink);
	color: #fff;
	text-decoration: none;
}

/* ---------------------------------------------------------------------------
 * Site header - from Figma node 22662:30.
 * A 40px rust announcement strip over an 88px cream bar, holding the logo
 * (left), the primary menu (centred on the bar) and the Store pill (right).
 * ------------------------------------------------------------------------- */

.announcement {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 2.5rem;
	padding: 0.5rem var(--bc-gutter);
	background: var(--bc-rust);
}

.announcement__text {
	margin: 0;
	color: #ffffff;
	font-size: 1rem;
	/* 1.3 rather than 1.2: this wraps to two lines on a phone, and the tighter
	   value leaves the lines almost touching each other. */
	line-height: 1.3;
	text-align: center;
	text-wrap: balance;
}

.site-header__bar {
	padding: 1rem var(--bc-gutter);
	background: var(--bc-cream);
}

/* 1fr / auto / 1fr centres the menu on the bar itself rather than on the space
   left between the logo and the pill. That is what the design measures.

   Columns are assigned explicitly because grid auto-placement follows DOM
   order, and the toggle sits between the brand and the menu in the markup - so
   relying on order alone drops the CTA into the middle column. */
.site-header__inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	max-width: var(--bc-content);
	margin: 0 auto;
}

.site-branding {
	grid-column: 1;
	display: flex;
	align-items: center;
	justify-self: start;
}

.custom-logo-link {
	display: block;
}

.custom-logo {
	display: block;
	width: auto;
	height: 56px;
}

.main-nav {
	grid-column: 2;
	justify-self: center;
}

.main-nav__list {
	display: flex;
	align-items: center;
	gap: 1.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.main-nav a {
	color: #545a64;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.2;
	text-decoration: none;
}

/* The design has no hover state; this darkens within the same hue family so it
   stays legible on cream (gold would drop under 2:1 here). */
.main-nav a:hover,
.main-nav a:focus-visible {
	color: var(--bc-ink);
}

/* Current page carries a shape as well as a colour. */
.main-nav__list .current-menu-item > a,
.main-nav__list .current_page_item > a {
	color: var(--bc-ink);
	text-decoration: underline;
	text-decoration-color: var(--bc-gold);
	text-decoration-thickness: 2px;
	text-underline-offset: 0.4em;
}

.site-header__cta {
	grid-column: 3;
	justify-self: end;
}

/* --- Menu toggle (small screens only) ------------------------------------- */
.nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--bc-ink);
	cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
	display: block;
	width: 22px;
	height: 2px;
	background: currentColor;
}

.nav-toggle__bars {
	position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
	content: "";
	position: absolute;
	left: 0;
}

.nav-toggle__bars::before {
	top: -7px;
}

.nav-toggle__bars::after {
	top: 7px;
}

/* --- Collapsed header ----------------------------------------------------- */
@media (max-width: 1024px) {
	.site-header__inner {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		column-gap: 1rem;
		row-gap: 0.75rem;
	}

	/* Markup order is logo, toggle, menu, CTA - the toggle has to precede the
	   menu it controls. The small-screen visual order is logo, CTA, toggle,
	   then the menu on its own line, so everything is ordered explicitly. */
	.site-branding {
		margin-inline-end: auto;
	}

	.site-header__cta {
		order: 1;
	}

	.nav-toggle {
		display: inline-flex;
		order: 2;
	}

	.main-nav {
		order: 3;
		flex-basis: 100%;
	}

	/* No JavaScript: the menu simply stays visible and wraps inside the bar.
	   With JavaScript it leaves the bar and the drawer takes over. */
	.has-js .main-nav {
		display: none;
	}

	.main-nav__list {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.75rem;
	}
}

@media (max-width: 767px) {
	.custom-logo {
		height: 44px;
	}

	.main-nav__list {
		gap: 0.625rem;
	}

	/* Leaner than the desktop bar: 12px of block padding instead of 16px, so
	   this reads 68px tall rather than 76px. */
	.site-header__bar {
		padding-block: 0.75rem;
	}

	/* The bar is only the logo and the toggle at this width. The action moves
	   into the drawer, where it sits in the thumb zone and nothing has to wrap.
	   The drawer's own copy is hidden from 768 up, beside its other rules, so
	   the two never compete on source order. */
	.site-header__cta {
		display: none;
	}
}

/* Smallest screens in the gauntlet: trim the side padding so the wrapped
   announcement gets more measure per line. */
@media (max-width: 400px) {
	.announcement {
		padding-inline: 1rem;
	}
}

/* ---------------------------------------------------------------------------
 * Offcanvas menu.
 *
 * The bar's menu collapses below 1025px and this drawer takes over: a cream
 * panel sliding in from the right - the edge the toggle sits on - over an ink
 * scrim. Everything else on the page goes inert while it is open.
 *
 * Motion: 340ms decelerating in, 240ms accelerating out, since exits should
 * feel faster than entrances. Items stagger in behind the panel and leave
 * together, so only the entrance carries the cascade.
 * ------------------------------------------------------------------------- */

.drawer {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: flex;
	justify-content: flex-end;
	visibility: hidden;
	pointer-events: none;
	transition: visibility 0s linear 0.24s;
}

.drawer.is-open {
	visibility: visible;
	pointer-events: auto;
	transition-delay: 0s;
}

/* WordPress's admin bar is fixed over the viewport at a very high z-index, so
   a fixed drawer would slide underneath it and swallow the close control - the
   46px bar on phones lands exactly on the button. Start below it instead: 32px
   normally, 46px below WordPress's own 782px breakpoint. */
body.admin-bar .drawer {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar .drawer {
		top: 46px;
	}
}

.drawer__scrim {
	position: absolute;
	inset: 0;
	background: rgba(2, 8, 16, 0.55);
	opacity: 0;
	transition: opacity 0.14s ease-in;
}

.drawer.is-open .drawer__scrim {
	opacity: 1;
	transition: opacity 0.2s ease-out;
}

.drawer__panel {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min(22rem, 88vw);
	height: 100%;
	padding: 1rem 1.5rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
	background: var(--bc-cream);
	box-shadow: -24px 0 60px rgba(2, 8, 16, 0.28);
	transform: translateX(100%);
	transition: transform 0.24s cubic-bezier(0.4, 0, 1, 1);
}

.drawer.is-open .drawer__panel {
	transform: translateX(0);
	transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.drawer__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: flex-end;
	width: 44px;
	height: 44px;
	margin-block-end: 0.75rem;
	padding: 0;
	border: 0;
	background: none;
	color: var(--bc-ink);
	cursor: pointer;
	transition: color 0.2s ease-out;
}

.drawer__close:hover {
	color: var(--bc-rust);
}

/* The cross is two rules overlaid, so it needs no icon asset. Rotating the
   child 90deg inside the parent's 45deg gives 45 and 135. */
.drawer__close-icon {
	position: relative;
	display: block;
	width: 20px;
	height: 2px;
	background: currentColor;
	transform: rotate(45deg);
}

.drawer__close-icon::before {
	content: "";
	position: absolute;
	inset: 0;
	background: currentColor;
	transform: rotate(90deg);
}

.drawer__nav {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.drawer__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.drawer__list > li {
	opacity: 0;
	transform: translateX(0.75rem);
	transition: opacity 0.3s ease-out, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.drawer.is-open .drawer__list > li {
	opacity: 1;
	transform: translateX(0);
}

/* Stagger on the way in only; exits stay quick and together. */
.drawer.is-open .drawer__list > li:nth-child(1) {
	transition-delay: 0.08s;
}

.drawer.is-open .drawer__list > li:nth-child(2) {
	transition-delay: 0.11s;
}

.drawer.is-open .drawer__list > li:nth-child(3) {
	transition-delay: 0.14s;
}

.drawer.is-open .drawer__list > li:nth-child(4) {
	transition-delay: 0.17s;
}

.drawer.is-open .drawer__list > li:nth-child(5) {
	transition-delay: 0.2s;
}

.drawer.is-open .drawer__list > li:nth-child(6) {
	transition-delay: 0.23s;
}

.drawer.is-open .drawer__list > li:nth-child(7) {
	transition-delay: 0.26s;
}

.drawer.is-open .drawer__list > li:nth-child(n + 8) {
	transition-delay: 0.29s;
}

/* Brand serif and a larger size: this is the menu, not a stretched nav bar.
   0.75rem of block padding keeps every row over the 44px touch minimum. */
.drawer__list a {
	display: block;
	padding-block: 0.75rem;
	font-family: var(--bc-font-heading);
	font-size: 1.5rem;
	line-height: 1.3;
	color: var(--bc-ink);
	text-decoration: none;
}

.drawer__list a:hover,
.drawer__list a:focus-visible,
.drawer__list a:active {
	color: var(--bc-rust);
}

/* Current page carries a shape as well as a colour, as in the desktop bar. */
.drawer__list .current-menu-item > a,
.drawer__list .current_page_item > a {
	text-decoration: underline;
	text-decoration-color: var(--bc-gold);
	text-decoration-thickness: 2px;
	text-underline-offset: 0.35em;
}

.drawer__cta {
	margin-block-start: 1.25rem;
}

.drawer__cta .btn-pill {
	width: 100%;
}

/* Shown only where the bar has dropped its own copy. Written as a minimum width
   so this is the single rule for it and source order cannot flip the result. */
@media (min-width: 768px) {
	.drawer__cta {
		display: none;
	}
}

/* The drawer only exists for the collapsed header. */
@media (min-width: 1025px) {
	.drawer {
		display: none;
	}
}

@media (max-width: 1024px) {
	body.drawer-open {
		overflow: hidden;
	}
}

@media (prefers-reduced-motion: reduce) {
	.drawer,
	.drawer__scrim,
	.drawer__panel,
	.drawer__list > li,
	.drawer__close {
		transition-duration: 0s !important;
		transition-delay: 0s !important;
	}
}

/* Used by templates that are not authored in Elementor. */
.content-shell {
	width: 100%;
	max-width: var(--bc-content);
	margin: 0 auto;
	padding: 4rem var(--bc-gutter);
}

.post-list__item + .post-list__item {
	margin-top: 3rem;
}

/* ---------------------------------------------------------------------------
 * Site footer - from Figma node 22666:35.
 *
 * Two bands that share #131313 so they read as one block: the closing CTA
 * (644px tall, 714px centred column) and the footer proper (1320px container at
 * 100px, columns 40px apart). Everything state-free is here rather than in a
 * stylesheet per page, because the footer is chrome and has to render on pages
 * that carry no Elementor CSS at all.
 *
 * Three substitutions worth knowing about:
 *   - PP Neue Montreal and Inter Display are commercial faces the site does not
 *     load, so their copy uses the body stack (Inter). Metrics differ slightly,
 *     so the 714px measure is what keeps those paragraphs on two lines.
 *   - The link lists are native menus, so each item is a block with a 40px
 *     line-height rather than the design's single multi-line text node.
 * ------------------------------------------------------------------------- */

.site-footer {
	background: #131313;
	color: #ffffff;
}

/* --- Map band ------------------------------------------------------------- */

/* Figma's 1440x600 strip directly above the CTA, full-bleed, holding a live
   Google Maps embed. The dark background sits behind the iframe while it loads,
   so the band does not flash white. */
.footer-map {
	line-height: 0;
	background: #131313;
}

.footer-map__frame {
	display: block;
	width: 100%;
	height: 37.5rem; /* 600 - Figma */
	border: 0;
}

/* --- Closing CTA ---------------------------------------------------------- */

.footer-cta {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 40.25rem; /* 644 - Figma */
	padding: 4rem var(--bc-gutter);
}

/* 714px centred column. Content is 314px tall, so min-height + centring
   reproduces the design's 165px above and below without hard-coding it. */
.footer-cta__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	max-width: 44.625rem;
}

.footer-cta__title {
	margin: 0;
	font-family: var(--bc-font-heading);
	font-weight: 400;
	font-size: 3rem;
	line-height: 3.75rem;
	color: #ffffff;
	text-align: center;
}

.footer-cta__text {
	margin: 1.125rem 0 0; /* 18 - Figma */
	font-family: var(--bc-font-body);
	font-weight: 500;
	font-size: 1.25rem;
	line-height: 1.8;
	color: #8f8f8f;
	text-align: center;
}

.footer-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem; /* 20 - Figma */
	margin-block-start: 3rem; /* 48 - Figma */
}

/* --- Footer body ---------------------------------------------------------- */

.footer-main {
	padding: 6.25rem var(--bc-gutter) 2.375rem; /* 100 / 38 - Figma */
}

.footer-main__inner {
	display: flex;
	flex-direction: column;
	gap: 2.5rem; /* 40 - Figma */
	width: 100%;
	max-width: var(--bc-content);
	margin: 0 auto;
}

/* Brand + newsletter, divided from the columns by a 1px #202020 rule. */
.footer-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 2.5rem;
	padding-block-end: 2.5rem; /* 40 - Figma */
	border-block-end: 1px solid #202020;
}

.footer-brand {
	display: flex;
	flex-direction: column;
	gap: 1.875rem; /* 30 - Figma */
	width: 100%;
	max-width: 29.4375rem; /* 471 - Figma */
}

.footer-brand__logo-link {
	display: block;
	width: fit-content;
}

.footer-brand__logo {
	display: block;
	width: auto;
	height: 5rem; /* 80 - Figma */
}

.footer-brand__text {
	margin: 0;
	font-family: var(--bc-font-body);
	font-weight: 500;
	font-size: 1.25rem;
	line-height: 1.8;
	color: #8f8f8f;
}

.footer-subscribe {
	width: 100%;
	max-width: 41.25rem; /* 660 - Figma */
}

/* The newsletter is a CF7 form dressed as one rounded field: a #1c1c1c pill
   with the email input bled into it and a 104x44 gold button inset 6px. */
.footer-subscribe form {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.625rem;
	padding: 0.375rem 0.375rem 0.375rem 1.25rem; /* 6 / 20 - Figma */
	background-color: #1c1c1c;
	border-radius: 999px;
}

/* CF7 injects a spinner next to the submit on load. Its 24px box plus 24px side
   margins reserved 72px of the pill's flex row, which pushed the Subscribe
   button 88px in from the design's 6px inset while leaving a dead strip to its
   right. CF7 marks the form inert and dims it while posting, so this adds
   nothing here. */
.footer-subscribe .wpcf7-spinner {
	display: none;
}

/* Zero basis rather than auto, so the field takes the leftover space instead of
   being sized by the email input's intrinsic width (size="40"). */
.footer-subscribe .wpcf7-form-control-wrap {
	flex: 1 1 0;
	min-width: 0;
}

.footer-subscribe input[type="email"] {
	width: 100%;
	/* Matching the button's 44px makes the flex line's height deterministic, so
	   the button is centred by construction rather than by how tall the browser
	   happens to draw a text input. */
	height: 2.75rem;
	padding: 0;
	border: 0;
	background: transparent;
	color: #ffffff;
	font-family: var(--bc-font-body);
	font-weight: 500;
	font-size: 1rem;
	line-height: 1.22;
}

.footer-subscribe ::placeholder {
	color: #ffffff;
	opacity: 0.4;
}

.footer-subscribe .ws-subscribe-button {
	flex: none;
	width: 6.5rem; /* 104 - Figma */
	height: 2.75rem; /* 44 - Figma */
	padding: 0;
	border: 0;
	border-radius: 999px;
	background-color: #dd9f49;
	color: #ffffff;
	font-family: var(--bc-font-body);
	font-weight: 500;
	font-size: 1rem;
	line-height: 1.22;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.footer-subscribe .ws-subscribe-button:hover {
	background-color: #d29340;
}

.footer-subscribe .wpcf7-response-output {
	flex-basis: 100%;
	margin: 0.5rem 0 0;
	font-family: var(--bc-font-body);
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.7);
}

.footer-subscribe .wpcf7-not-valid-tip {
	flex-basis: 100%;
	margin-block-start: 0.5rem;
	font-family: var(--bc-font-body);
	font-size: 0.8125rem;
	color: #f0a9a1;
}

/* --- Columns -------------------------------------------------------------- */

.footer-cols {
	display: flex;
	/* The aside is a fixed 223px and the link block a fixed 847px, so when the
	   viewport is too narrow for both the link block drops to its own line
	   instead of squeezing the aside - a squeezed aside wrapped the
	   "CONTACT US TODAY" label onto two lines. */
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 2.5rem;
}

.footer-aside {
	display: flex;
	flex: none;
	flex-direction: column;
	align-items: flex-start;
	width: 13.9375rem; /* 223 - Figma */
}

.footer-aside__title {
	margin: 0;
	font-family: var(--bc-font-body);
	font-weight: 500;
	font-size: 1rem;
	line-height: 1.22;
	color: #ffffff;
}

/* 12px of block padding centres the 24px icons in the design's 48px row. */
.footer-social {
	display: flex;
	gap: 1.125rem; /* 18 - Figma */
	margin: 1rem 0 0; /* 16 - Figma */
	padding: 0.75rem 0;
	list-style: none;
}

.footer-social__link {
	display: block;
	border-radius: 50%;
	transition: opacity 0.2s ease-out;
}

/* Shown instead of the link while a network has no URL configured, so the row
   keeps the design's five icons without linking anywhere. */
.footer-social__icon {
	display: block;
}

.footer-social__link:hover,
.footer-social__link:focus-visible {
	opacity: 0.8;
}

.footer-social .icon {
	display: block;
	width: 1.5rem; /* 24 - Figma */
	height: 1.5rem;
}

.footer-aside__cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.25rem;
	height: 3rem; /* 48 - Figma */
	margin-block-start: 2.375rem; /* 38 - Figma */
	padding: 0 1rem;
	border-radius: 0.5rem; /* 8 - Figma */
	background-color: #a97e74;
	color: #ffffff;
	font-family: var(--bc-font-body);
	font-weight: 500;
	font-size: 1rem;
	line-height: 1.6;
	text-decoration: none;
	/* The label is 163px at the design's size and the button is 223px wide, so
	   it has no room to wrap. Inter is a touch wider than the design's face, and
	   a wrap turned this into "CONTACT US / TODAY". */
	white-space: nowrap;
}

.footer-aside__cta:hover,
.footer-aside__cta:focus-visible {
	background-color: #96706a;
}

.footer-aside__cta .icon {
	display: block;
	flex: none;
	width: 1.5rem;
	height: 1.5rem;
}

.footer-links {
	display: flex;
	flex: none;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 2rem;
	width: 52.9375rem; /* 847 - Figma */
	max-width: 100%;
}

.footer-links__col {
	display: flex;
	flex-direction: column;
	gap: 1rem; /* 16 - Figma */
}

.footer-links__title {
	margin: 0;
	font-family: var(--bc-font-body);
	font-weight: 500;
	font-size: 1rem;
	line-height: 1.6;
	color: #ffffff;
}

.footer-links__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* 40px line-height on 16px text is the design's rhythm, not a typo: it is what
   spaces the eight Company links over 320px. */
.footer-links__list a {
	display: block;
	font-family: var(--bc-font-body);
	font-weight: 400;
	font-size: 1rem;
	line-height: 2.5rem;
	color: rgba(255, 255, 255, 0.5);
	text-decoration: none;
	transition: color 0.2s ease-out;
}

.footer-links__list a:hover,
.footer-links__list a:focus-visible {
	color: #ffffff;
}

.footer-contact {
	width: 100%;
	max-width: 21.6875rem; /* 347 - Figma */
}

.footer-contact__list {
	display: flex;
	flex-direction: column;
	gap: 1.5rem; /* 24 - Figma */
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-contact__item {
	display: flex;
	align-items: center;
	gap: 0.875rem; /* 14 - Figma */
}

.footer-contact__item .icon {
	display: block;
	flex: none;
	width: 3.125rem; /* 50 - Figma */
	height: 3.125rem;
}

.footer-contact__text {
	display: flex;
	flex-direction: column;
	font-family: var(--bc-font-body);
	font-weight: 400;
	font-size: 1rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.7);
}

.footer-contact__value {
	color: inherit;
	text-decoration: none;
}

.footer-contact__value:hover,
.footer-contact__value:focus-visible {
	color: #ffffff;
	text-decoration: underline;
}

/* --- Bottom bar ----------------------------------------------------------- */

.footer-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2.5rem;
}

.footer-bottom__copy {
	display: flex;
	align-items: center;
	gap: 0.375rem; /* 6 - Figma */
	margin: 0;
	font-family: var(--bc-font-body);
	font-weight: 500;
	font-size: 1rem;
	line-height: 1.42;
	color: rgba(255, 255, 255, 0.5);
}

.footer-bottom__copy .icon {
	display: block;
	flex: none;
	width: 0.875rem; /* 14 - Figma */
	height: 0.875rem;
}

.footer-bottom__list {
	display: flex;
	gap: 2rem; /* 32 - Figma */
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-bottom__list a {
	font-family: var(--bc-font-body);
	font-weight: 500;
	font-size: 1rem;
	line-height: 1.42;
	color: rgba(255, 255, 255, 0.5);
	text-decoration: none;
	transition: color 0.2s ease-out;
}

.footer-bottom__list a:hover,
.footer-bottom__list a:focus-visible {
	color: #ffffff;
}

/* --- Small screens -------------------------------------------------------- */

@media (max-width: 1024px) {
	.footer-cta {
		min-height: 0;
		padding-block: 5rem;
	}

	.footer-main {
		padding-block: 5rem 2.5rem;
	}

	.footer-top,
	.footer-cols {
		flex-direction: column;
	}

	.footer-brand,
	.footer-aside,
	.footer-contact {
		max-width: 100%;
	}

	.footer-links {
		flex-wrap: wrap;
		justify-content: flex-start;
		gap: 2rem 3rem;
		max-width: 100%;
	}
}

@media (max-width: 767px) {
	.footer-map__frame {
		height: 18.75rem; /* 600 is a desktop measure; half it on a phone */
	}

	.footer-cta {
		padding-block: 3.5rem;
	}

	.footer-main {
		padding-block: 3.5rem 2rem;
	}

	.footer-cta__title {
		font-size: 2rem;
		line-height: 1.3;
	}

	.footer-bottom {
		flex-direction: column;
		align-items: flex-start;
		gap: 1rem;
	}
}

/* ---------------------------------------------------------------------------
 * Buttons.
 *
 * One definition of the pill, shared by the theme chrome (the header CTA) and
 * the Elementor hero. It lives here because Elementor's copy sits in a per-post
 * stylesheet that only loads on documents that use it, so a button in the site
 * chrome would render unstyled on every other page.
 *
 * On an Elementor page its own `.elementor .btn-pill` copy wins for the hero
 * widget, with identical values. It never matches the header, which sits
 * outside `.elementor`. Restyle both if you change the button.
 * ------------------------------------------------------------------------- */

.btn-pill {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	padding: 0.75rem 1.5rem;
	border-radius: 100px;
	border: 1px solid transparent;
	font-family: var(--bc-font-body);
	font-size: 1.125rem;
	font-weight: 500;
	line-height: 2rem;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.2s ease-out, background-color 0.2s ease-out;
}

.btn-pill:hover {
	transform: translateY(-2px);
}

.btn-pill:focus {
	outline: 2px dashed currentColor;
	outline-offset: 3px;
}

/* These follow .btn-pill on purpose: same specificity, so order decides the
   border colour. */
.btn-gold {
	background-color: var(--bc-gold);
	border-color: var(--bc-gold);
	color: var(--bc-ink);
}

.btn-gold:hover {
	background-color: #d29340;
	border-color: #d29340;
}

.btn-gold:active {
	transform: translateY(0);
}

.btn-ghost {
	background-color: transparent;
	border-color: rgba(255, 255, 255, 0.9);
	color: #ffffff;
}

.btn-ghost:hover {
	background-color: rgba(255, 255, 255, 0.12);
}

.btn-ghost:active {
	transform: translateY(0);
}

/* Figma: arrow-right, 24x24 box, 1.5px stroke, 4px after the label. Elementor's
   converter drops url() values and ::after rules, so it can only live here. The
   mask makes the arrow inherit the text colour, so gold and ghost both match
   without a second asset. Shared with the category cards' text links. */
.btn-pill::after,
.link-arrow::after {
	content: "";
	flex: none;
	width: 1.5rem;
	height: 1.5rem;
	margin-inline-start: 0.25rem;
	background-color: currentColor;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5'%3E%3Cpath d='M5 12h13.5'/%3E%3Cpath d='M13 6l6 6-6 6'/%3E%3C/svg%3E");
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-position: center;
	-webkit-mask-size: contain;
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5'%3E%3Cpath d='M5 12h13.5'/%3E%3Cpath d='M13 6l6 6-6 6'/%3E%3C/svg%3E");
	mask-repeat: no-repeat;
	mask-position: center;
	mask-size: contain;
}

/* ---------------------------------------------------------------------------
 * Hero values the Elementor style engine cannot express.
 *
 * The atomic style converter only accepts flat declarations keyed by
 * breakpoint and pseudo-state. It silently drops descendant selectors,
 * ::after rules, url() values and repeating gradients - confirmed against the
 * stored document data rather than assumed. Nothing else styles the properties
 * these rules set, so they win on specificity without a fight.
 * ------------------------------------------------------------------------- */

/* Figma: the heading's second half is #DD9F49, the first half #FFFFFF. */
.hero-title span {
	color: var(--bc-gold);
}

/* Figma: 1px divider, 30% white, 3px dash / 3px gap. Elementor rejects both
   per-side dashed borders and repeating gradients, so the fill lives here and
   Elementor supplies only width, height and a transparent background. */
.stat-divider {
	background-image: repeating-linear-gradient(
		to bottom,
		rgba(255, 255, 255, 0.3) 0 3px,
		transparent 3px 6px
	);
}

/* ---------------------------------------------------------------------------
 * Logo marquee.
 *
 * The logo row scrolls continuously once marquee.js adds `.is-marquee`, which
 * is also when it clones the set for a seamless loop. Elementor cannot express
 * @keyframes, and the repeated logos should not be announced twice, so both the
 * behaviour and the clone live here rather than in the composition.
 *
 * With no JavaScript, or with reduced motion requested, none of this applies
 * and the row simply wraps exactly as designed.
 * ------------------------------------------------------------------------- */

.logo-marquee.is-marquee {
	overflow: hidden;
	/* Soft edges: logos slide out of view instead of being sliced off. */
	-webkit-mask-image: linear-gradient(
		to right,
		transparent,
		#000 3rem,
		#000 calc(100% - 3rem),
		transparent
	);
	mask-image: linear-gradient(
		to right,
		transparent,
		#000 3rem,
		#000 calc(100% - 3rem),
		transparent
	);
}

/* The gap moves onto each card so the track is an exact multiple of one copy.
   With gap: 0 and a margin per card, 12 x (card + gap) means -50% lands
   precisely one copy over - with no half-gap seam at the loop point. */
.logo-marquee.is-marquee .logo-row {
	flex-wrap: nowrap;
	width: max-content;
	gap: 0;
	animation: logo-marquee 48s linear infinite;
}

.logo-marquee.is-marquee .logo-card {
	flex: none;
	width: 12.1875rem;
	margin-inline-end: 1.875rem;
}

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

@media (max-width: 767px) {
	.logo-marquee.is-marquee .logo-card {
		margin-inline-end: 1rem;
	}
}

/* ---------------------------------------------------------------------------
 * Category card grid.
 *
 * Figma specifies a 30px column gap and a 25px row gap. Elementor keeps the
 * column gap but drops row-gap outright (the converter has no property for it),
 * so the row gap is supplied here. Nothing else styles row-gap, so there is no
 * specificity fight - same pattern as the dashed divider.
 * ------------------------------------------------------------------------- */

.cat-grid {
	row-gap: 1.5625rem;
}

/* Elementor renders the linked paragraph as <p class="link-arrow"><a>..</a></p>
   and the arrow is this paragraph's ::after, the same shape as .btn-pill. That
   keeps it outside the anchor, so the anchor only needs its own colour and
   underline reset. */
.link-arrow a {
	color: inherit;
	text-decoration: none;
}

/* ---------------------------------------------------------------------------
 * Category card legibility.
 *
 * Each tile is a full-bleed photo with the copy bottom-aligned and, as Figma
 * ships it, no scrim at all. That left the white heading, the gold "Explore
 * More" link and the card's descriptive line sitting straight on the artwork:
 * over the lighter photos the description, which inherits the shared
 * .body-copy grey (#545a64) built for the light sections, all but vanished.
 *
 * The atomic converter drops ::after rules and descendant selectors, so the
 * scrim and the recolour live here - the same pattern as the dashed divider and
 * the marquee. The ::after shares the image's z-index but follows it in paint
 * order, and the content already sits at z-index 1, so the gradient lands over
 * the photo and under the text without moving a single element.
 * ------------------------------------------------------------------------- */

.cat-card {
	background-color: var(--bc-ink);
}

.cat-card::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background-image: linear-gradient(
		to top,
		rgba(2, 8, 16, 0.92) 0%,
		rgba(2, 8, 16, 0.68) 30%,
		rgba(2, 8, 16, 0) 66%
	);
}

/* The description is copy this build added to the card, not something Figma
   provided, so it takes a light colour here. Three classes deep to outrank the
   Elementor .body-copy default, which loads after this file. */
.cat-card .cat-content .body-copy {
	color: #ece7dd;
}

.cat-card .cat-title,
.cat-card .body-copy,
.cat-card .link-arrow {
	text-shadow: 0 1px 2px rgba(2, 8, 16, 0.55);
}

/* ---------------------------------------------------------------------------
 * Wholesale review badge - caption colour run.
 *
 * Figma (node 20725:6781) mixes three fills inside one string: "From" #636871,
 * "1050+" #F68E11 bold, "Customer Reviews" #4273F1 underlined. Elementor's style
 * map is flat - one colour per element - so the two coloured runs have to be
 * marked up and coloured from here.
 *
 * The runs are <b> and <u>, not classed spans. Elementor keeps a span and its
 * class in the editor but strips the attribute on save, so a classed span is
 * written out bare: the first build of this badge did exactly that and the
 * caption rendered in one flat grey. <b> and <u> survive the save and already
 * carry the weight and the underline the design asks for.
 *
 * Scoping the colour then needs a hook the theme can select, because the atomic
 * converter drops descendant selectors. The paragraph carries a global class,
 * ws-caption, which is emitted as a literal class in the DOM; the atomic class
 * next to it is a hash that changes whenever the styles are regenerated, so it
 * cannot be used. The class also carries the base grey so all three caption
 * colours are declared in one place - the paragraph sets the same value
 * locally, so the two can never disagree.
 *
 * The underline is not decorative: Figma reports textDecoration as mixed.
 * ------------------------------------------------------------------------- */

.ws-caption {
	color: #636871;
}

.ws-caption b {
	color: #f68e11;
	font-weight: 700;
}

.ws-caption u {
	color: #4273f1;
	text-decoration: underline;
}

/* ---------------------------------------------------------------------------
 * FAQ accordion - from Figma node 20725:6809.
 *
 * Elementor's e-accordion renders native <details>/<summary>, so the toggle and
 * the single-open behaviour come for free and need no JavaScript. What it cannot
 * express is the design's *state*: the open row is dark (#181818 header, white
 * question) while the four collapsed rows are white with a slate question. Its
 * style map is flat and keyed by breakpoint and pseudo-state only, so there is
 * no way to hang a rule off details[open], and no descendant selector to reach
 * the summary from the item. Those rules live here, scoped to the ws-faq global
 * class sitting on the accordion.
 *
 * The indicator is drawn here too. Figma draws a 19.2px '+' (2.5px stroke,
 * #3B4E74) on collapsed rows and a 19.2px '-' (2px, #FFFFFF) on the open row,
 * each inside a 24x24 box. Elementor's icon slot is a single rotatable SVG and
 * the Media Library holds no SVG to reference (SVG uploads are blocked on this
 * site), so both glyphs are masked from an inline data URI - the same technique
 * as .btn-pill::after.
 *
 * Everything that does not change with the state - the 26/30 padding, the 10px
 * radii, the white answer panel, the typography - stays in Elementor. Nothing
 * here sets a property Elementor also sets, except the two the state changes,
 * so nothing needs !important.
 * ------------------------------------------------------------------------- */

.ws-faq summary {
	list-style: none;
}

.ws-faq summary::-webkit-details-marker {
	display: none;
}

/* Figma: a 1px #C9D6F3 stroke. The collapsed rows carry it inside the box, the
   open row outside it and over a 60px 3% black shadow. Drawn as a ring rather
   than a border so the open row can hold both without doubling the edge. */
.ws-faq details {
	box-shadow: inset 0 0 0 1px #c9d6f3;
}

.ws-faq details > summary {
	color: #2b3244;
}

.ws-faq details[open] {
	box-shadow: 0 0 0 1px #c9d6f3, 10px 20px 60px rgba(0, 0, 0, 0.03);
}

.ws-faq details[open] > summary {
	background-color: #181818;
	color: #ffffff;
	/* Only the top corners round: the header sits on the open item's white
	   panel, which rounds its own bottom corners. */
	border-radius: 0.625rem 0.625rem 0 0;
}

.ws-faq summary::after {
	content: "";
	flex: none;
	width: 1.5rem;
	height: 1.5rem;
	background-color: #3b4e74;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5'%3E%3Cpath d='M2.4 12h19.2'/%3E%3Cpath d='M12 2.4v19.2'/%3E%3C/svg%3E");
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-position: center;
	-webkit-mask-size: contain;
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5'%3E%3Cpath d='M2.4 12h19.2'/%3E%3Cpath d='M12 2.4v19.2'/%3E%3C/svg%3E");
	mask-repeat: no-repeat;
	mask-position: center;
	mask-size: contain;
}

.ws-faq details[open] > summary::after {
	background-color: #ffffff;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M2.4 12h19.2'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M2.4 12h19.2'/%3E%3C/svg%3E");
}

/* ---------------------------------------------------------------------------
 * Contact form (Contact Form 7) - from Figma node 20725:6843.
 *
 * CF7 writes its own markup, so none of this can live in Elementor's style map:
 * that map is flat and keyed by breakpoint/pseudo-state, which means it cannot
 * reach an input that sits inside a field wrapper. Elementor owns the grey card
 * and hands it a bare <form>; the field grid, the 60px inputs and the gold
 * submit are styled here. The .ws-* class names come from the form template
 * itself (Appearance > Contact Forms > Contact Us), so the styles travel with
 * the form rather than with the page.
 *
 * wpautop is switched off for CF7 in functions.php - without that every field
 * arrives wrapped in a <p> and the label renders inline beside the input.
 *
 * Figma values: row gap 16, column gap 24, label 16/1.6 #575A61 with a 14/1.6
 * #E42F23 asterisk 2px after it, input 60px tall on 1px #ECECEC with radius 8
 * and 19/16 padding, placeholder 14/1.6 #90A1B9, textarea 110px tall with 14/16
 * padding, submit 181x56 gold pill with the label 24px in and the 24px arrow
 * 24px from the right edge.
 *
 * The design only shows the empty state, so the typed-text colour (#181818) and
 * the invalid colour (#E42F23, borrowed from the design's own asterisk) are the
 * two values not read from the node.
 * ------------------------------------------------------------------------- */

.ws-fields {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.ws-row {
	display: flex;
	gap: 1.5rem;
}

.ws-field {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.625rem;
}

.ws-field label {
	display: flex;
	align-items: flex-start;
	gap: 0.125rem;
	font-family: var(--bc-font-body);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.6;
	color: #575a61;
}

/* The red asterisk is decorative: the control itself carries `required`, which
   is what a screen reader announces, so the span is aria-hidden in the form
   template and only needs to look right. */
.ws-req {
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.6;
	color: #e42f23;
}

/* CF7 wraps every control in an inline span; it has to be a block for the
   input to take the full width of the field. */
.ws-field .wpcf7-form-control-wrap {
	display: block;
}

.ws-field input,
.ws-field textarea {
	width: 100%;
	height: 3.75rem;
	padding: 0 1rem;
	border: 1px solid #ececec;
	border-radius: 0.5rem;
	background-color: #ffffff;
	color: #181818;
	font-family: var(--bc-font-body);
	font-size: 0.875rem;
	line-height: 1.6;
}

.ws-field textarea {
	height: 6.875rem;
	padding: 0.875rem 1rem;
	resize: vertical;
}

.ws-field ::placeholder {
	color: #90a1b9;
	opacity: 1;
}

.ws-field .wpcf7-not-valid {
	border-color: #e42f23;
}

.wpcf7-not-valid-tip {
	margin-block-start: 0.25rem;
	font-family: var(--bc-font-body);
	font-size: 0.8125rem;
	color: #e42f23;
}

.ws-actions {
	margin-block-start: 2rem;
}

/* The submit is an <input>, which cannot carry a generated arrow, so the
   .btn-pill::after arrow used everywhere else is replaced by the same glyph as
   a background image. The right padding reserves the arrow's slot - 24px of
   padding, the 24px arrow, then the design's 4px gap - so the label can never
   reach it however the font measures. Height is the Figma button's 56, and
   width:auto with a 181px floor lets it grow rather than clip if the label ever
   changes.
 *
 * The selector carries element selectors on purpose. This form sits inside
 * .elementor, where the kit's own copy of the shared button class is
 * `.elementor .btn-pill` (0,2,0) and sets text-align:center. A single-class
 * .ws-submit ties it and loses on source order, which centred the label and
 * pushed "Now" underneath the arrow. At (0,2,1) the design's left-aligned label
 * wins, and the padding shorthand beats the kit's padding longhands too.
 */
.ws-actions input.ws-submit {
	width: auto;
	min-width: 11.3125rem;
	height: 3.5rem;
	padding: 0 3.25rem 0 1.5rem;
	text-align: left;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23020810' stroke-width='1.5'%3E%3Cpath d='M5 12h13.5'/%3E%3Cpath d='M13 6l6 6-6 6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1.5rem center;
	background-size: 1.5rem 1.5rem;
}

.wpcf7-response-output {
	margin-block-start: 1rem;
	font-family: var(--bc-font-body);
	font-size: 0.875rem;
	color: #575a61;
}

/* CF7 leaves the response element in place and empties it between submissions;
   an empty one would add 16px to the card, so hide it until there is a message. */
.wpcf7-response-output:empty {
	display: none;
}

/* ---------------------------------------------------------------------------
 * Products page — category filter (Figma 20725:9561, "Our Products").
 *
 * The pills are an Elementor tabs widget (e-tabs), so the switching, keyboard
 * handling and ARIA come from the engine. Three things it does not give us:
 *
 * 1. The active pill. The design is #DD9F49 with #020810 text. The atomic style
 *    converter silently drops compound-class nesting, so `&.e--selected` in the
 *    element's own style produced no CSS at all and no warning, and the engine's
 *    own `.e-tab-base.e--selected` only sets a border colour.
 *
 *    The selectors must use the classes the engine actually renders -
 *    `e-tabs-menu-base` and `e-tab-base`, never the short `e-tabs-menu` /
 *    `e-tab`. An earlier pass used the short names, matched nothing, and left
 *    the active pill with no fill at all. The menu ancestor takes this to
 *    (0,3,0), which beats the element's own (0,2,0) copy without !important.
 *    `e--selected` is also added to the visible panel, hence the qualifier.
 *
 * 2. Focus. The engine zeroes the outline on :focus and paints a grey
 *    :focus-visible fill instead, which leaves no visible keyboard focus. This
 *    restores the kit's own focus convention - 2px dashed currentColor, 3px
 *    offset - as used by .btn-pill.
 *
 * 3. Hover. The engine's default is a #E0E0E0 fill, which is not in the palette.
 *    The design specifies no hover, so this is an inferred state that keeps the
 *    affordance in the brand's ink colour.
 * ------------------------------------------------------------------------- */

.e-tabs-menu-base .e-tab-base.e--selected {
	border-color: #dd9f49;
	background-color: #dd9f49;
	color: #020810;
}

.e-tabs-menu-base .e-tab-base:focus-visible {
	outline: 2px dashed currentColor;
	outline-offset: 3px;
	background-color: transparent;
}

.e-tabs-menu-base .e-tab-base:not(.e--selected):hover {
	border-color: #020810;
	color: #020810;
}

/* ---------------------------------------------------------------------------
 * Small-screen behaviour for the contact form and the closing CTA.
 *
 * Both are desktop-designed shapes that only collapse correctly once told to.
 * The form's rows are a flex pair with `flex: 1 1 0`, so on a phone the two
 * fields share the row and land at ~155px each with a truncated-looking label;
 * stacking them also gives each control the full card width to type into.
 *
 * The input font-size is the important one: iOS Safari zooms the whole viewport
 * whenever a focused control is under 16px, and these were 14px. 1rem keeps the
 * body size on the same scale as the label.
 *
 * The CTA pills already wrap, but as intrinsic-width buttons of different
 * lengths, which reads as two stray objects under centred copy. Stacking them
 * full-width gives one obvious action and matches how the hero's CTAs behave
 * at this width.
 * ------------------------------------------------------------------------- */

@media (max-width: 767px) {
	.ws-row {
		flex-direction: column;
		gap: 1rem;
	}

	.ws-field input,
	.ws-field textarea {
		font-size: 1rem;
	}

	.ws-actions input.ws-submit {
		width: 100%;
	}

	.footer-cta__actions {
		flex-direction: column;
		align-items: stretch;
		width: 100%;
		max-width: 22rem;
		gap: 0.75rem;
	}
}
