/* ============================================================
   Brigade Motion — Main Stylesheet
   ============================================================ */

/* Fallback font metrics — matches Fraunces/Inter Tight dimensions
   so the page doesn't shift when the real fonts load. */
@font-face {
	font-family: 'Fraunces Fallback';
	src: local('Georgia'), local('Times New Roman');
	size-adjust: 105%;
	ascent-override: 90%;
	descent-override: 22%;
	line-gap-override: 0%;
}
@font-face {
	font-family: 'Inter Tight Fallback';
	src: local('Helvetica Neue'), local('Helvetica'), local('Arial');
	size-adjust: 100%;
	ascent-override: 95%;
	descent-override: 22%;
	line-gap-override: 0%;
}

:root {
	/* Brand palette */
	--bm-olive: #7a8c1e;
	--bm-olive-bright: #a3b829;
	--bm-olive-pale: #c9d96b;
	--bm-obsidian: #1a1a0e;
	--bm-obsidian-soft: #2a2a1e;
	--bm-teal: #2d4a52;
	--bm-teal-deep: #1f343a;
	--bm-cream: #f5f5ed;
	--bm-paper: #fafaf5;
	--bm-white: #ffffff;
	--bm-line: #e3e3d8;
	--bm-muted: #6b6b5c;

	/* Type */
	--bm-display: 'Fraunces', 'Fraunces Fallback', Georgia, serif;
	--bm-body: 'Inter Tight', 'Inter Tight Fallback', system-ui, sans-serif;

	/* Layout */
	--bm-container: 1200px;
	--bm-gutter: 24px;
	--bm-radius: 4px;
	--bm-radius-lg: 8px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--bm-body);
	font-size: 16px;
	line-height: 1.6;
	color: var(--bm-obsidian);
	background: var(--bm-paper);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

a { color: var(--bm-olive); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--bm-obsidian); }

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

h1, h2, h3, h4, h5, h6 {
	font-family: var(--bm-display);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.01em;
	margin: 0 0 0.5em;
	color: var(--bm-obsidian);
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2vw, 1.75rem); }

p { margin: 0 0 1em; }

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

/* ============================================================
   Buttons
   ============================================================ */
.bm-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 28px;
	font-family: var(--bm-body);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.01em;
	border-radius: var(--bm-radius);
	border: 2px solid transparent;
	cursor: pointer;
	transition: all 0.2s ease;
	text-decoration: none;
	white-space: nowrap;
}

.bm-btn-primary {
	background: var(--bm-olive);
	color: var(--bm-white);
}
.bm-btn-primary:hover {
	background: var(--bm-obsidian);
	color: var(--bm-olive-pale);
	transform: translateY(-1px);
}

.bm-btn-ghost {
	background: transparent;
	color: var(--bm-obsidian);
	border-color: var(--bm-obsidian);
}
.bm-btn-ghost:hover {
	background: var(--bm-obsidian);
	color: var(--bm-white);
}

.bm-btn-lg {
	padding: 18px 36px;
	font-size: 16px;
}

/* ============================================================
   Header
   ============================================================ */
.bm-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(250, 250, 245, 0.95);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--bm-line);
}
.bm-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 76px;
}
.bm-logo {
	font-family: var(--bm-display);
	font-size: 22px;
	font-weight: 700;
	color: var(--bm-obsidian);
	letter-spacing: -0.01em;
}
.bm-nav {
	display: flex;
	gap: 36px;
	align-items: center;
}
.bm-nav a {
	color: var(--bm-obsidian);
	font-size: 15px;
	font-weight: 500;
	position: relative;
}
.bm-nav a::after {
	content: '';
	position: absolute;
	bottom: -4px;
	left: 0;
	width: 0;
	height: 2px;
	background: var(--bm-olive);
	transition: width 0.2s ease;
}
.bm-nav a:hover::after { width: 100%; }

.bm-header-actions {
	display: flex;
	align-items: center;
	gap: 16px;
}
.bm-cart-link {
	position: relative;
	color: var(--bm-obsidian);
	display: flex;
	align-items: center;
	gap: 6px;
}
.bm-cart-count {
	background: var(--bm-olive);
	color: var(--bm-white);
	font-size: 11px;
	font-weight: 700;
	padding: 2px 7px;
	border-radius: 12px;
	min-width: 20px;
	text-align: center;
}

.bm-menu-toggle {
	display: none;
	background: none;
	border: none;
	padding: 8px;
	cursor: pointer;
}

/* ============================================================
   Hero
   ============================================================ */
.bm-hero {
	padding: 100px 0 80px;
	background: linear-gradient(180deg, var(--bm-paper) 0%, var(--bm-cream) 100%);
	position: relative;
	overflow: hidden;
}
.bm-hero::before {
	content: '';
	position: absolute;
	top: -200px;
	right: -200px;
	width: 600px;
	height: 600px;
	background: radial-gradient(circle, rgba(122, 140, 30, 0.12) 0%, transparent 60%);
	pointer-events: none;
}
.bm-hero-inner {
	position: relative;
	z-index: 1;
	max-width: 880px;
}
.bm-hero-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	background: var(--bm-white);
	border: 1px solid var(--bm-line);
	border-radius: 99px;
	font-size: 13px;
	font-weight: 500;
	color: var(--bm-muted);
	margin-bottom: 24px;
}
.bm-hero-eyebrow .bm-dot {
	width: 8px;
	height: 8px;
	background: var(--bm-olive);
	border-radius: 50%;
	animation: pulse 2s infinite;
}
@keyframes pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.5; }
}
.bm-hero h1 {
	margin-bottom: 24px;
}
.bm-hero h1 em {
	font-style: italic;
	color: var(--bm-olive);
	font-weight: 500;
}
.bm-hero-sub {
	font-size: 19px;
	color: var(--bm-muted);
	max-width: 620px;
	margin-bottom: 36px;
	line-height: 1.55;
}
.bm-hero-ctas {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 48px;
}
.bm-trust-strip {
	display: flex;
	align-items: center;
	gap: 24px;
	flex-wrap: wrap;
	font-size: 13px;
	color: var(--bm-muted);
}
.bm-trust-strip strong { color: var(--bm-obsidian); }

/* ============================================================
   Section base
   ============================================================ */
.bm-section { padding: 96px 0; }
.bm-section-dark {
	background: var(--bm-obsidian);
	color: var(--bm-cream);
}
.bm-section-dark h1, .bm-section-dark h2, .bm-section-dark h3 { color: var(--bm-cream); }
.bm-section-dark .bm-eyebrow { color: var(--bm-olive-pale); }

.bm-eyebrow {
	text-transform: uppercase;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.15em;
	color: var(--bm-olive);
	margin-bottom: 16px;
	display: block;
}
.bm-section-title {
	max-width: 640px;
	margin-bottom: 56px;
}
.bm-section-title h2 { margin-bottom: 16px; }
.bm-section-title p { color: var(--bm-muted); font-size: 18px; margin: 0; }

/* ============================================================
   Service cards (refined editorial style)
   ============================================================ */
.bm-services-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 32px;
}

.bm-service-card {
	background: var(--bm-white);
	border: 1px solid var(--bm-line);
	border-radius: var(--bm-radius-lg);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 0.4s ease, border-color 0.3s ease;
	position: relative;
	min-height: 480px;
}

.bm-service-card:hover {
	transform: translateY(-6px);
	border-color: var(--bm-olive);
	box-shadow: 0 24px 56px -28px rgba(26, 26, 14, 0.25);
}

/* Decorative illustration band at the top of each card */
.bm-service-visual {
	position: relative;
	height: 180px;
	overflow: hidden;
	background: linear-gradient(135deg, var(--bm-teal-deep) 0%, var(--bm-teal) 60%, var(--bm-olive) 130%);
}

.bm-service-visual svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	color: var(--bm-olive-pale);
	opacity: 0.95;
}

/* Grain/texture overlay for depth */
.bm-service-visual::after {
	content: '';
	position: absolute;
	inset: 0;
	background-image:
		radial-gradient(circle at 20% 30%, rgba(255,255,255,0.06) 0%, transparent 40%),
		radial-gradient(circle at 80% 70%, rgba(0,0,0,0.15) 0%, transparent 50%);
	pointer-events: none;
}

/* Small category eyebrow inside the visual */
.bm-service-eyebrow {
	position: absolute;
	top: 20px;
	left: 24px;
	z-index: 2;
	font-family: var(--bm-body);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--bm-olive-pale);
	opacity: 0.9;
}

.bm-service-body {
	padding: 32px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.bm-service-card h3 {
	font-size: clamp(1.5rem, 2vw, 1.85rem);
	margin: 0 0 10px;
	letter-spacing: -0.015em;
}

.bm-service-card .bm-tagline {
	color: var(--bm-muted);
	font-size: 15px;
	line-height: 1.55;
	margin: 0 0 24px;
	flex-grow: 1;
}

.bm-service-meta {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	padding-top: 20px;
	border-top: 1px solid var(--bm-line);
}

.bm-price-start {
	font-family: var(--bm-display);
	font-size: 24px;
	font-weight: 600;
	line-height: 1;
	color: var(--bm-obsidian);
}

.bm-price-start small {
	display: block;
	font-family: var(--bm-body);
	font-size: 11px;
	font-weight: 500;
	color: var(--bm-muted);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: 6px;
}

.bm-service-link {
	font-weight: 600;
	font-size: 14px;
	color: var(--bm-obsidian);
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	background: var(--bm-cream);
	border-radius: var(--bm-radius);
	transition: background 0.2s ease, color 0.2s ease;
}

.bm-service-link:hover {
	background: var(--bm-obsidian);
	color: var(--bm-olive-pale);
}

.bm-service-link::after {
	content: '→';
	transition: transform 0.2s ease;
}

.bm-service-link:hover::after { transform: translateX(3px); }

/* ============================================================
   How it works
   ============================================================ */
.bm-steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 48px;
}
.bm-step {
	position: relative;
	padding-top: 24px;
}
.bm-step-num {
	font-family: var(--bm-display);
	font-size: 64px;
	font-weight: 700;
	color: var(--bm-olive);
	line-height: 1;
	margin-bottom: 16px;
}
.bm-step h3 { margin-bottom: 12px; }
.bm-step p { color: rgba(245, 245, 237, 0.7); }

/* ============================================================
   Pricing tiers (service detail page)
   ============================================================ */
.bm-tiers {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-top: 48px;
}
/* When there are only 2 tiers, center them and constrain width
   so the pair doesn't feel spread too thin at desktop widths */
.bm-tiers:has(.bm-tier:nth-child(2):last-child) {
	grid-template-columns: repeat(2, minmax(0, 380px));
	justify-content: center;
}
.bm-tier {
	background: var(--bm-white);
	border: 1px solid var(--bm-line);
	border-radius: var(--bm-radius-lg);
	padding: 40px 32px;
	position: relative;
	display: flex;
	flex-direction: column;
}
.bm-tier-popular {
	border-color: var(--bm-olive);
	border-width: 2px;
	transform: scale(1.02);
}
.bm-tier-popular-badge {
	position: absolute;
	top: -12px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--bm-olive);
	color: var(--bm-white);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 6px 14px;
	border-radius: 99px;
}
.bm-tier-name {
	font-family: var(--bm-display);
	font-size: 24px;
	font-weight: 600;
	margin-bottom: 8px;
}
.bm-tier-turnaround {
	font-size: 13px;
	color: var(--bm-muted);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 20px;
}
.bm-tier-price {
	font-family: var(--bm-display);
	font-size: 44px;
	font-weight: 700;
	color: var(--bm-obsidian);
	line-height: 1;
	margin-bottom: 32px;
}
.bm-tier-price small {
	font-size: 14px;
	font-weight: 400;
	color: var(--bm-muted);
}
.bm-tier-features {
	list-style: none;
	padding: 0;
	margin: 0 0 32px;
	flex-grow: 1;
}
.bm-tier-features li {
	padding: 10px 0 10px 28px;
	border-bottom: 1px solid var(--bm-line);
	position: relative;
	font-size: 14px;
}
.bm-tier-features li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 14px;
	width: 16px;
	height: 16px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a8c1e' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
}
.bm-tier .bm-btn { width: 100%; justify-content: center; }

/* ============================================================
   FAQ
   ============================================================ */
.bm-faq-list { max-width: 760px; margin: 0 auto; }
.bm-faq-item {
	border-bottom: 1px solid var(--bm-line);
	padding: 24px 0;
}
.bm-faq-item summary {
	font-family: var(--bm-display);
	font-size: 19px;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.bm-faq-item summary::-webkit-details-marker { display: none; }
.bm-faq-item summary::after {
	content: '+';
	font-size: 28px;
	font-weight: 300;
	transition: transform 0.2s ease;
}
.bm-faq-item[open] summary::after { transform: rotate(45deg); }
.bm-faq-item p { margin-top: 16px; color: var(--bm-muted); }

/* ============================================================
   Final CTA band
   ============================================================ */
.bm-cta-band {
	background: var(--bm-olive);
	color: var(--bm-white);
	padding: 80px 0;
	text-align: center;
}
.bm-cta-band h2 { color: var(--bm-white); margin-bottom: 24px; }
.bm-cta-band p { font-size: 18px; max-width: 520px; margin: 0 auto 32px; opacity: 0.9; }
.bm-cta-band .bm-btn-primary {
	background: var(--bm-obsidian);
	color: var(--bm-olive-pale);
}

/* ============================================================
   Footer
   ============================================================ */
.bm-footer {
	background: var(--bm-obsidian);
	color: rgba(245, 245, 237, 0.7);
	padding: 80px 0 40px;
}
.bm-footer-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: 48px;
	margin-bottom: 64px;
}
.bm-footer h4 {
	color: var(--bm-cream);
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin-bottom: 20px;
}
.bm-footer ul { list-style: none; padding: 0; margin: 0; }
.bm-footer li { margin-bottom: 10px; }
.bm-footer a { color: rgba(245, 245, 237, 0.7); }
.bm-footer a:hover { color: var(--bm-olive-pale); }
.bm-footer-brand p { color: rgba(245, 245, 237, 0.7); margin-bottom: 16px; }
.bm-footer-brand-logo {
	color: var(--bm-olive-pale);
	font-family: var(--bm-display);
	font-size: 22px;
	font-weight: 700;
	display: inline-block;
	margin-bottom: 16px;
}
.bm-footer-legal {
	border-top: 1px solid rgba(245, 245, 237, 0.1);
	padding: 24px 0 20px;
	margin-top: 24px;
	font-size: 12px;
	color: rgba(245, 245, 237, 0.55);
	letter-spacing: 0.02em;
	line-height: 1.7;
}
.bm-footer-legal p {
	margin: 0 0 6px;
}
.bm-footer-legal p:last-child {
	margin: 0;
}
.bm-footer-bottom {
	border-top: 1px solid rgba(245, 245, 237, 0.1);
	padding-top: 32px;
	display: flex;
	justify-content: space-between;
	font-size: 13px;
}

/* ============================================================
   WooCommerce overrides
   ============================================================ */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce-page form .form-row input.input-text,
.woocommerce-page form .form-row textarea {
	padding: 14px 16px;
	border: 1px solid var(--bm-line);
	border-radius: var(--bm-radius);
	font-family: var(--bm-body);
	font-size: 15px;
	transition: border-color 0.2s ease;
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
	border-color: var(--bm-olive);
	outline: none;
}

.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #payment #place_order {
	background: var(--bm-olive);
	color: var(--bm-white);
	font-family: var(--bm-body);
	font-weight: 600;
	padding: 14px 28px;
	border-radius: var(--bm-radius);
	border: none;
	transition: background 0.2s ease;
}
.woocommerce #payment #place_order {
	width: 100%;
	font-size: 16px;
	padding: 18px;
}
.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce #payment #place_order:hover {
	background: var(--bm-obsidian);
}

.bm-trust-block {
	background: var(--bm-cream);
	padding: 24px;
	border-radius: var(--bm-radius);
	margin: 24px 0;
}
.bm-trust-row {
	display: flex;
	gap: 12px;
	margin-bottom: 12px;
	font-size: 14px;
	align-items: flex-start;
}
.bm-trust-row:last-child { margin-bottom: 0; }
.bm-trust-row svg { color: var(--bm-olive); flex-shrink: 0; margin-top: 2px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
	.bm-nav { display: none; }
	.bm-menu-toggle { display: block; }
	.bm-nav.is-open {
		display: flex;
		position: absolute;
		top: 76px;
		left: 0;
		right: 0;
		background: var(--bm-white);
		flex-direction: column;
		padding: 24px var(--bm-gutter);
		border-bottom: 1px solid var(--bm-line);
	}
	.bm-services-grid { grid-template-columns: 1fr; }
	.bm-steps { grid-template-columns: 1fr; gap: 32px; }
	.bm-tiers { grid-template-columns: 1fr; }
	.bm-tier-popular { transform: none; }
	.bm-footer-grid { grid-template-columns: 1fr 1fr; }
	.bm-section { padding: 64px 0; }
	.bm-hero { padding: 60px 0; }
}

@media (max-width: 540px) {
	.bm-footer-grid { grid-template-columns: 1fr; }
	.bm-hero-ctas { flex-direction: column; align-items: stretch; }
	.bm-hero-ctas .bm-btn { justify-content: center; }
}
