/**
 * Base Fitness — base styles.
 *
 * Placeholder for now. Visual styling gets filled in page by page as each
 * template is rebuilt (see project brief: scaffold -> ACF -> pages ->
 * WooCommerce templates). Intent is to match the existing basefitness.us
 * visual identity, not redesign it.
 */

:root {
	--bf-font-heading: 'MonumentExtended', sans-serif;
	--bf-font-body: 'Matter', 'Aeonik', sans-serif;

	/* Brand palette — pulled from the live site's Elementor global Kit,
	   not guessed. Primary/Secondary/Text/Accent naming matches the Kit. */
	--bf-color-primary: #000000;
	--bf-color-secondary: #4F5B31;
	--bf-color-text: #7A7A7A;
	--bf-color-accent: #D7A048;
	--bf-color-white: #FFFFFF;

	/* Per-section colors confirmed straight from each section's own
	   background_color in the live Elementor data — NOT the same as
	   --bf-color-secondary above, which is the kit's global "Secondary"
	   swatch and isn't actually what any of these sections use. */
	--bf-color-dark-green: #173517;
	--bf-color-benefits-bg: #EDEDED;
	--bf-color-services-bg: #383C35;
}

body {
	font-family: var(--bf-font-body);
	margin: 0;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--bf-font-heading);
}

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

/* ---------- Buttons (shared across the header, footer, and Page
   Builder content — kept here since this stylesheet always loads,
   unlike page-builder.css which only loads on pages with content) ---------- */
.btn {
	display: inline-block;
	padding: 14px 32px;
	border-radius: 999px;
	font-family: var(--bf-font-body);
	font-weight: 600;
	text-decoration: none;
	text-align: center;
	border: 2px solid transparent;
	cursor: pointer;
}

.btn--outline {
	background: transparent;
	border-color: var(--bf-color-white);
	color: var(--bf-color-white);
}

.btn--outline-light {
	background: var(--bf-color-white);
	border-color: var(--bf-color-white);
	color: var(--bf-color-primary);
	border-radius: 8px;
}

.btn--accent {
	background: var(--bf-color-accent);
	border-color: var(--bf-color-accent);
	color: var(--bf-color-primary);
}

/* White pill with the kit's Secondary color as text — confirmed from
   the Services page "Schedule a Session" button's own settings
   (background_color #FFFFFF, button_text_color -> global Secondary). */
.btn--white {
	background: var(--bf-color-white);
	border-color: var(--bf-color-white);
	color: var(--bf-color-secondary);
	border-radius: 8px;
}

/* ---------- Site header ---------- */
/* Transparent, absolutely positioned overlay on the hero — not a solid
   sticky bar. Confirmed straight from the live site's own global CSS
   (the "hello-theme-child-master" custom_css post):
   header.elementor.elementor-83.elementor-location-header {
     position: absolute; top: 0; width: 100%; z-index: 999;
   } */
.site-header {
	background: transparent;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 999;
}

.site-header__inner {
	max-width: 1400px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 40px;
	padding: 20px 40px;
}

.site-header__logo {
	display: block;
	flex-shrink: 0;
}

.site-header__logo img {
	max-width: 180px;
	width: 100%;
	display: block;
}

.site-header__nav {
	flex: 1;
}

.site-header__menu {
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 28px;
	margin: 0;
	padding: 0;
}

.site-header__menu > li {
	position: relative;
}

.site-header__menu a {
	color: var(--bf-color-white);
	text-decoration: none;
	/* Live nav items: Tahoma 16px, regular weight, uppercase, no
	   letter-spacing (measured with DevTools on basefitness.us). */
	font-family: Tahoma, sans-serif;
	font-weight: 400;
	font-size: 16px;
	text-transform: uppercase;
	letter-spacing: normal;
}

.site-header__menu a:hover {
	color: var(--bf-color-accent);
}

/* "Our Team" dropdown — a plain child <ul> from wp_nav_menu, shown on
   hover/focus (no JS needed on desktop). */
.site-header__menu .sub-menu {
	display: none;
	list-style: none;
	position: absolute;
	top: 100%;
	left: 0;
	background: var(--bf-color-white);
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
	padding: 12px 0;
	margin: 0;
	min-width: 220px;
	max-height: 60vh;
	overflow-y: auto;
	z-index: 10;
}

.site-header__menu li:hover > .sub-menu,
.site-header__menu li:focus-within > .sub-menu {
	display: block;
}

.site-header__menu .sub-menu a {
	display: block;
	padding: 8px 20px;
	color: var(--bf-color-primary);
	text-transform: uppercase;
	font-family: var(--bf-font-body);
	font-weight: 600;
	font-size: 0.9rem;
	letter-spacing: 0.5px;
	white-space: nowrap;
}

.site-header__menu .sub-menu a:hover {
	color: var(--bf-color-accent);
}

/* Current page in the dropdown (e.g. the trainer you're viewing) —
   confirmed gold against the white box on the live site. */
.site-header__menu .sub-menu .current-menu-item > a,
.site-header__menu .sub-menu .current_page_item > a {
	color: var(--bf-color-accent);
}

.site-header__actions {
	display: flex;
	align-items: center;
	gap: 24px;
	flex-shrink: 0;
}

.site-header__cart {
	position: relative;
	color: var(--bf-color-white);
	font-size: 1.2rem;
}

.site-header__cart-count {
	position: absolute;
	top: -8px;
	right: -10px;
	background: var(--bf-color-accent);
	color: var(--bf-color-primary);
	font-size: 0.65rem;
	font-weight: 700;
	border-radius: 999px;
	min-width: 16px;
	height: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 3px;
}

.site-header__cta {
	white-space: nowrap;
	padding: 12px 24px;
}

.site-header__toggle {
	display: none;
	background: none;
	border: none;
	color: var(--bf-color-white);
	font-size: 1.4rem;
	cursor: pointer;
}

@media (max-width: 1024px) {
	.site-header__nav {
		display: none;
		flex-basis: 100%;
		order: 3;
	}

	.site-header__nav.is-open {
		display: block;
	}

	/* Solid panel behind the open menu (see site.js): the header is a
	   transparent overlay, so without this the white links blend into
	   the page behind them. Scrolls if the menu is taller than the
	   screen (Our Team lists every trainer). */
	.site-header.is-menu-open {
		background: var(--bf-color-primary);
		max-height: 100vh;
		overflow-y: auto;
		border-bottom: 1px solid rgba(255, 255, 255, 0.15);
	}

	.site-header__menu {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
		padding: 16px 0;
	}

	.site-header__menu .sub-menu {
		position: static;
		border: none;
		padding-left: 16px;
	}

	.site-header__inner {
		flex-wrap: wrap;
		padding: 16px 24px;
	}

	.site-header__toggle {
		display: block;
	}

	.site-header__cta {
		display: none;
	}
}

/* ---------- Newsletter banner ----------
   Background is the site's own SVG (bg-5-new.svg), not a CSS gradient —
   confirmed from the live design's background_image setting. */
.newsletter-banner {
	background: var(--bf-color-primary) url('../images/newsletter-bg.svg') center center / cover no-repeat;
	color: var(--bf-color-white);
	padding: 80px 60px;
}

/* Real design is a boxed 50/50 two-column row (not two auto-width
   elements floated to the far edges of the viewport) — a grid matches
   that instead of flex + space-between, which left a huge dead gap on
   wide screens. */
.newsletter-banner__inner {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 40px;
}

.newsletter-banner__heading {
	font-family: var(--bf-font-heading);
	font-size: 30px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 3.2px;
	line-height: 1.4;
	white-space: nowrap;
	margin: 0;
}

.newsletter-banner__form {
	display: flex;
	width: 100%;
	border: 6px solid #7B8464;
	border-radius: 16px;
	background: var(--bf-color-white);
	overflow: hidden;
}

/* Real markup splits the wrapper 60% input / 40% button (elementor-col-60
   / elementor-col-40) — the button isn't just auto-sized to its label,
   it's a wide block that eats well into the white area. */
.newsletter-banner__form input {
	flex: 0 0 60%;
	min-width: 0;
	border: none;
	background: var(--bf-color-white);
	color: var(--bf-color-primary) !important;
	padding: 20px;
	font-size: 16px !important;
	font-family: 'Matter', sans-serif !important;
	letter-spacing: 1px;
}

.newsletter-banner__form button {
	flex: 0 0 40%;
	border: none;
	background: var(--bf-color-accent);
	color: var(--bf-color-white);
	font-family: var(--bf-font-body);
	font-size: 24px;
	padding: 20px 10px;
	cursor: pointer;
}

.newsletter-banner__form button:hover {
	background: #173517;
}

@media (max-width: 767px) {
	.newsletter-banner {
		flex-direction: column;
		text-align: center;
		padding: 32px 24px;
	}

	.newsletter-banner__form {
		width: 100%;
	}

	.newsletter-banner__form input {
		flex: 1;
		min-width: 0;
	}
}

/* ---------- Site footer ---------- */
.site-footer {
	background: var(--bf-color-primary);
	color: var(--bf-color-white);
	padding: 60px 60px 30px;
}

.site-footer__grid {
	display: grid;
	grid-template-columns: 1.2fr 1fr 1fr 1fr;
	gap: 32px;
	max-width: 1400px;
	margin: 0 auto;
}

.site-footer__logo {
	max-width: 180px;
}

.site-footer__heading {
	font-family: var(--bf-font-body);
	font-weight: 600;
	text-transform: uppercase;
	font-size: 0.85rem;
	letter-spacing: 1px;
	margin: 0 0 16px;
	color: var(--bf-color-text);
}

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

.site-footer__menu li {
	margin-bottom: 10px;
}

.site-footer__menu a,
.site-footer__address,
.site-footer__phone {
	color: var(--bf-color-white);
	text-decoration: none;
}

.site-footer__address {
	display: block;
	margin-bottom: 20px;
	line-height: 1.6;
}

.site-footer__phone {
	text-decoration: underline;
	letter-spacing: 1px;
}

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

.site-footer__social li {
	margin-bottom: 10px;
}

.site-footer__social a {
	color: var(--bf-color-white);
	text-decoration: none;
}

.site-footer__bottom {
	max-width: 1400px;
	margin: 40px auto 0;
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	font-size: 0.8rem;
	color: var(--bf-color-text);
}

.site-footer__bottom a {
	color: var(--bf-color-text);
}

@media (max-width: 900px) {
	.site-footer__grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 600px) {
	.site-footer {
		padding: 40px 24px 24px;
	}

	.site-footer__grid {
		grid-template-columns: 1fr;
		text-align: center;
	}
}

/* The old Elementor "Week Guest Pass" popup (post 2373) still fires on
   its own, independent JS trigger — we've replaced it with #promo-bar
   below, but never told Elementor to stop showing the original. Hiding
   it by its own element ID, purely presentational, nothing in
   Elementor's own data touched. */
[data-elementor-id="2373"] {
	display: none !important;
}

/* ---------- Promo bar ----------
   Our own replacement for the site's old Elementor popup ("Week Guest
   Pass") — same real content/destination/delay, rebuilt as sitewide
   theme chrome instead of Elementor content that's slated for removal. */
/* Two columns reaching the bar's own edges (section padding in the
   source is 10px top/bottom, 0 left/right) — not centered content
   with big side gutters like I had. */
.promo-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 998;
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	background: linear-gradient(90deg, #E8B860, var(--bf-color-accent));
	color: var(--bf-color-primary);
	padding: 10px 0;
	transform: translateY(100%);
	transition: transform 0.4s ease;
}

.promo-bar.is-visible {
	transform: translateY(0);
}

.promo-bar__text {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
	padding-left: 245px;
}

.promo-bar__line {
	font-family: var(--bf-font-heading);
	text-transform: uppercase;
}

/* Three different colors, confirmed from each heading's own
   title_color — not one uniform color. Line 1's solid black shadow +
   thin stroke are also from its own settings (text_shadow + a
   -webkit-text-stroke in its custom_css) — needed since it's white
   text sitting on a light gold background and would otherwise vanish. */
.promo-bar__line--1 {
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--bf-color-white);
	text-shadow: 2px 2px 0 #000000;
	-webkit-text-stroke: 0.5px #000000;
}

.promo-bar__line--2 {
	font-size: 2rem;
	font-weight: 800;
	color: var(--bf-color-primary);
}

.promo-bar__line--3 {
	font-size: 0.85rem;
	font-weight: 500;
	color: rgba(0, 0, 0, 0.5);
}

.promo-bar__actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding-left: 60px;
	padding-right: 60px;
	box-sizing: border-box;
	width: 100%;
}

.promo-bar__button {
	box-sizing: border-box;
	width: auto;
	min-width: 56%;
	font-size: 20px;
	font-weight: 600;
	padding: 21px 50px;
}

/* Matches the original popup's own hover behavior (white → black bg,
   black → white text). */
.promo-bar__button:hover {
	background: var(--bf-color-primary);
	border-color: var(--bf-color-primary);
	color: var(--bf-color-white);
}

.promo-bar__dismiss {
	background: none;
	border: none;
	padding: 0;
	font-family: var(--bf-font-body);
	font-size: 0.85rem;
	font-weight: 600;
	text-decoration: underline;
	color: var(--bf-color-primary);
	cursor: pointer;
}

@media (max-width: 767px) {
	.promo-bar {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.promo-bar__text,
	.promo-bar__actions {
		padding-left: 20px;
		padding-right: 20px;
	}
}

/* ---------- Generic page fallback (page.php) — Cart, Checkout, My
   Account, and any other plain page without its own page-{slug}.php ---------- */
.page-title-banner {
	background: var(--bf-color-primary);
	padding: 160px 24px 60px;
	text-align: center;
	box-sizing: border-box;
}

.page-title-banner__heading {
	font-family: Tahoma, sans-serif;
	color: var(--bf-color-white);
	font-size: 40px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 2px;
	margin: 0;
}

@media (max-width: 767px) {
	.page-title-banner {
		padding: 120px 24px 40px;
	}

	.page-title-banner__heading {
		font-size: 28px;
	}
}

.page-content-wrap {
	background: var(--bf-color-primary);
	color: var(--bf-color-white);
	box-sizing: border-box;
}

.page-content-wrap__inner {
	max-width: 1270px;
	margin: 0 auto;
	padding: 0 24px 80px;
	box-sizing: border-box;
}

/* Pages whose content carries its own big title heading (Terms and
   Conditions, Accessibility Compliance Statement): no theme banner, and
   — when the content is plain HTML rather than Elementor's own markup —
   the title styled like the live site's (Tahoma 80px/72px, 600,
   uppercase, centered, 140px down to clear the transparent header,
   64px above the text; all measured on the live Terms page). */
.page-content-wrap--own-title-plain {
	padding-top: 140px;
}

.page-content-wrap--own-title-plain .page-content-wrap__inner > h2:first-of-type {
	margin: 0 0 64px;
	font-family: Tahoma, sans-serif;
	font-size: 80px;
	font-weight: 600;
	line-height: 72px;
	text-transform: uppercase;
	text-align: center;
	color: var(--bf-color-white);
}

@media (max-width: 767px) {
	.page-content-wrap--own-title-plain {
		padding-top: 120px;
	}

	.page-content-wrap--own-title-plain .page-content-wrap__inner > h2:first-of-type {
		font-size: 40px;
		line-height: 1.1;
		margin-bottom: 40px;
	}
}
