/* ==========================================================================
   Birth Nerds - Custom styles on top of Storefront
   ========================================================================== */

:root {
	--bn-olive: #6f7359;      /* mid olive/sage - bundle box, solid accents (sampled #777a62) */
	--bn-olive-dark: #4b4e3d; /* dark olive - announcement bar, hover states (sampled #484c3d) */
	--bn-cream: #f6f1ea;      /* main light background (sampled #f4f0eb) */
	--bn-cream-2: #ede4d6;
	--bn-blush: #eec5b8;      /* newsletter section pink (sampled #ecc3b7) */
	--bn-ink: #322d29;        /* warm near-black for buttons/headings, not pure black (sampled #3f3a36 / #45352e) */
	--bn-ink-soft: #5a5449;   /* warm dark gray for body copy */
	--bn-gold: #b98a3d;
}

body {
	font-family: 'Jost', sans-serif;
	color: var(--bn-ink);
}

h1, h2, h3, h4 {
	font-family: 'Playfair Display', serif;
	color: var(--bn-ink);
}

/* --------------------------------------------------------------------
   Announcement bar
   -------------------------------------------------------------------- */
.bn-announcement-bar {
	background: var(--bn-olive-dark);
	color: #fff;
	text-align: center;
	font-size: 12px;
	letter-spacing: 0.08em;
	padding: 10px 20px;
	font-weight: 600;
}

/* --------------------------------------------------------------------
   Header (bn-site-header / bn-header-flex from header.php override)

   header.php wraps Storefront's UNCHANGED do_action('storefront_header')
   output in <div class="bn-header-flex">. Its direct children are the
   same two blocks Storefront always renders:
     1) div.col-full            -> contains site-branding + site-search
     2) div.storefront-primary-navigation -> contains its own inner
        div.col-full, which contains main-navigation + site-header-cart

   We make .bn-header-flex a single flex row so those two blocks sit
   side by side, then flex their INNER contents too so it reads as:
   [ logo ]  [ centered nav ]  [ search | cart ]
   -------------------------------------------------------------------- */
.bn-site-header {
	background: var(--bn-cream);
	padding: 18px 0;
	border-bottom: 1px solid #e7ddc9;
}

.bn-header-flex {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 20px;
}

/* Block 1: logo + search (Storefront's first .col-full) */
.bn-header-flex > .col-full {
	display: flex;
	align-items: center;
	gap: 20px;
	max-width: none;
	width: auto;
	padding: 0;
	flex: 0 0 auto;
	order: 1;
}

/* Block 2: nav + cart wrapper - remove Storefront's default dark bar
   styling since it's now merged into the cream header row. */
.bn-header-flex > .storefront-primary-navigation {
	background: transparent;
	border: none;
	flex: 1 1 auto;
	order: 2;
	margin: 0;
}
.bn-header-flex > .storefront-primary-navigation .col-full {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 24px;
	max-width: none;
	padding: 0;
}

/* Logo */
.site-branding {
	margin: 0;
}
.site-branding .site-title a,
.site-branding .site-title {
	font-family: 'Playfair Display', serif;
	font-weight: 700;
	font-size: 22px;
	color: var(--bn-ink);
	letter-spacing: 0.02em;
	text-decoration: none;
}
.site-branding .site-description {
	display: none; /* mockup has no tagline under the logo */
}

/* Primary nav, now centered between logo and search/cart via flex-grow */
.storefront-primary-navigation .main-navigation {
	flex: 1 1 auto;
	text-align: center;
	background: transparent;
}
.main-navigation ul.menu,
.main-navigation ul#primary-menu {
	display: inline-flex;
	justify-content: center;
	background: transparent;
}
.main-navigation ul li a {
	color: var(--bn-ink) !important;
	background: transparent !important;
	font-size: 13px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	font-weight: 500;
	padding: 10px 16px;
}
.main-navigation ul li a:hover {
	color: var(--bn-olive) !important;
}

/* Search + cart, right-aligned */
.site-search {
	width: auto;
	margin: 0;
}
.site-header-cart {
	width: auto;
}
.site-header-cart .cart-contents {
	color: var(--bn-ink);
	display: flex;
	align-items: center;
	gap: 6px;
}
.site-header-cart .amount {
	color: var(--bn-ink);
}

/* Mobile menu toggle button - restyle to match ink/cream palette
   instead of Storefront's default dark styling. */
.storefront-primary-navigation .menu-toggle {
	background: var(--bn-ink);
	border: none;
}

@media (max-width: 768px) {
	.bn-header-flex > .col-full,
	.bn-header-flex > .storefront-primary-navigation {
		flex: 1 1 100%;
	}
	.bn-header-flex > .storefront-primary-navigation .col-full {
		justify-content: space-between;
	}
}

/* --------------------------------------------------------------------
   Shared section layout
   -------------------------------------------------------------------- */
.bn-section-inner {
	max-width: 1180px;
	margin: 0 auto;
	padding: 60px 24px;
}
.bn-two-col {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: center;
}
.bn-section-title {
	text-align: center;
	font-size: 26px;
	margin-bottom: 36px;
}
.bn-title-rule {
	position: relative;
}
.bn-btn {
	display: inline-block;
	padding: 14px 26px;
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	font-weight: 600;
	text-decoration: none;
	border-radius: 2px;
}
.bn-btn-solid {
	background: var(--bn-olive);
	color: #fff;
	border: 1px solid var(--bn-olive);
}
.bn-btn-solid:hover {
	background: var(--bn-olive-dark);
	color: #fff;
}
.bn-btn-outline {
	background: transparent;
	color: var(--bn-ink);
	border: 1px solid var(--bn-ink);
}
.bn-btn-light {
	background: #fff;
	color: var(--bn-olive-dark);
	border: 1px solid #fff;
}

/* --------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------- */
.bn-hero {
	background: var(--bn-cream);
}
.bn-hero-inner {
	max-width: 1280px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	align-items: center;
	gap: 40px;
	padding: 50px 24px;
}
.bn-hero-text h1 {
	font-size: 40px;
	line-height: 1.2;
	margin-bottom: 8px;
}
.bn-hero-sub {
	font-family: 'Playfair Display', serif;
	font-style: italic;
	color: var(--bn-gold);
	font-size: 20px;
	margin-bottom: 16px;
}
.bn-hero-desc {
	color: var(--bn-ink-soft);
	font-size: 15px;
	line-height: 1.7;
	max-width: 420px;
	margin-bottom: 24px;
}
.bn-hero-buttons {
	display: flex;
	gap: 12px;
	margin-bottom: 18px;
}
.bn-hero-trust {
	color: var(--bn-gold);
	font-size: 14px;
}
.bn-hero-trust span {
	color: var(--bn-ink-soft);
	margin-left: 6px;
}
.bn-hero-image img {
	width: 100%;
	height: auto;
	border-radius: 2px;
	display: block;
}

/* --------------------------------------------------------------------
   Trust bar
   -------------------------------------------------------------------- */
.bn-trust-bar {
	background: #fff;
	border-bottom: 1px solid #eee;
}
.bn-trust-inner {
	max-width: 1180px;
	margin: 0 auto;
	padding: 30px 24px;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 20px;
}
.bn-trust-item {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	color: var(--bn-ink-soft);
}
.bn-trust-icon {
	width: 26px;
	height: 26px;
	border: 1px solid var(--bn-ink-soft);
	border-radius: 50%;
	display: inline-block;
}

/* --------------------------------------------------------------------
   Category tiles
   -------------------------------------------------------------------- */
.bn-category-tiles {
	background: var(--bn-cream);
}
.bn-tile-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 18px;
}
.bn-tile {
	display: block;
	position: relative;
	text-decoration: none;
	border-radius: 2px;
	overflow: hidden;
	aspect-ratio: 3/4;
}
.bn-tile-image {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-color: #ccc;
}
.bn-tile-image::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0.05));
}
.bn-tile-label {
	position: absolute;
	bottom: 18px;
	left: 0;
	right: 0;
	text-align: center;
	color: #fff;
	z-index: 1;
}
.bn-tile-label span {
	display: block;
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	margin-bottom: 4px;
}
.bn-tile-label em {
	font-style: normal;
	font-size: 11px;
	opacity: 0.9;
}

/* --------------------------------------------------------------------
   Product grid (Best Sellers)
   -------------------------------------------------------------------- */
.bn-product-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 18px;
}
.bn-product-card {
	position: relative;
	text-align: left;
}
.bn-product-badge {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 2;
}
.bn-badge {
	display: inline-block;
	padding: 4px 10px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	border-radius: 2px;
	color: #fff;
}
.bn-badge-red { background: #b23b3b; }
.bn-badge-gold { background: var(--bn-gold); }
.bn-product-image img {
	width: 100%;
	aspect-ratio: 1/1;
	object-fit: cover;
	border-radius: 2px;
	margin-bottom: 10px;
}
.bn-product-title {
	font-family: 'Jost', sans-serif;
	font-size: 14px;
	font-weight: 500;
	margin: 0 0 6px;
}
.bn-product-title a {
	color: var(--bn-ink);
	text-decoration: none;
}
.bn-product-price {
	font-weight: 600;
	margin-bottom: 10px;
}
.bn-product-add a {
	display: block;
	text-align: center;
	padding: 10px;
	background: var(--bn-ink);
	color: #fff;
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
}

/* --------------------------------------------------------------------
   More Than Merch
   -------------------------------------------------------------------- */
.bn-more-than-merch {
	background: #fff;
}
.bn-mtm-image img {
	width: 100%;
	border-radius: 2px;
	display: block;
}
.bn-mtm-text p {
	color: var(--bn-ink-soft);
	line-height: 1.7;
	margin-bottom: 24px;
}
.bn-mtm-values {
	display: flex;
	gap: 30px;
}
.bn-mtm-values div {
	display: flex;
	flex-direction: column;
}
.bn-mtm-values strong {
	font-family: 'Playfair Display', serif;
	margin-bottom: 4px;
}
.bn-mtm-values span {
	font-size: 13px;
	color: var(--bn-ink-soft);
}

/* --------------------------------------------------------------------
   Shop by profession
   -------------------------------------------------------------------- */
.bn-shop-by-profession {
	background: var(--bn-cream);
}
.bn-profession-grid {
	display: flex;
	justify-content: center;
	gap: 40px;
	flex-wrap: wrap;
}
.bn-profession-item {
	text-decoration: none;
	text-align: center;
	color: var(--bn-ink);
	width: 90px;
}
.bn-profession-circle {
	display: block;
	width: 70px;
	height: 70px;
	border-radius: 50%;
	background: var(--bn-cream-2);
	margin: 0 auto 10px;
}
.bn-profession-label {
	font-size: 11px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	font-weight: 600;
}

/* --------------------------------------------------------------------
   Bundle + gallery
   -------------------------------------------------------------------- */
.bn-bundle-gallery {
	background: #fff;
}
.bn-bundle-box {
	background: var(--bn-olive);
	color: #fff;
	padding: 40px;
	border-radius: 2px;
}
.bn-bundle-box h3 {
	color: #fff;
	font-size: 22px;
	margin-bottom: 10px;
}
.bn-bundle-items {
	font-size: 13px;
	opacity: 0.9;
	margin-bottom: 6px;
}
.bn-bundle-save {
	font-family: 'Playfair Display', serif;
	font-size: 22px;
	margin-bottom: 20px;
}
.bn-gallery-title {
	text-align: center;
	font-size: 18px;
	margin-bottom: 20px;
}
.bn-gallery-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 10px;
}
.bn-gallery-item {
	aspect-ratio: 1/1;
	background-size: cover;
	background-position: center;
	background-color: #ddd;
	border-radius: 2px;
}
.bn-gallery-tag {
	text-align: center;
	font-size: 12px;
	color: var(--bn-ink-soft);
	margin-top: 14px;
}

/* --------------------------------------------------------------------
   Education & resources
   -------------------------------------------------------------------- */
.bn-education {
	background: var(--bn-cream);
}
.bn-education-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.bn-education-item {
	text-decoration: none;
	color: var(--bn-ink);
	display: block;
}
.bn-education-image {
	aspect-ratio: 4/3;
	background-size: cover;
	background-position: center;
	background-color: #ddd;
	border-radius: 2px;
	margin-bottom: 14px;
}
.bn-education-item h4 {
	font-size: 16px;
	margin-bottom: 8px;
}
.bn-education-item p {
	font-size: 13px;
	color: var(--bn-ink-soft);
	line-height: 1.6;
	margin-bottom: 10px;
}
.bn-read-more {
	font-size: 12px;
	font-weight: 600;
	color: var(--bn-gold);
}

/* --------------------------------------------------------------------
   Newsletter
   -------------------------------------------------------------------- */
.bn-newsletter {
	background: var(--bn-blush);
}
.bn-newsletter-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 24px;
	padding: 40px 24px;
}
.bn-newsletter-text h3 {
	font-size: 24px;
	margin-bottom: 6px;
}
.bn-newsletter-text p {
	font-size: 13px;
	color: var(--bn-ink-soft);
	max-width: 320px;
}
.bn-newsletter-checks {
	list-style: none;
	padding: 0;
	margin: 0;
	font-size: 12px;
	color: var(--bn-ink-soft);
}
.bn-newsletter-checks li {
	margin-bottom: 4px;
}
.bn-newsletter-checks li::before {
	content: '✓ ';
	color: var(--bn-olive);
}
.bn-newsletter-form {
	display: flex;
	gap: 10px;
}
.bn-newsletter-form input {
	padding: 12px 16px;
	border: none;
	border-radius: 2px;
	min-width: 220px;
}
.bn-newsletter-form button {
	padding: 12px 20px;
	background: var(--bn-ink);
	color: #fff;
	border: none;
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	border-radius: 2px;
	cursor: pointer;
}

/* --------------------------------------------------------------------
   Bottom banner
   -------------------------------------------------------------------- */
.bn-bottom-banner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	min-height: 420px;
}
.bn-bottom-image {
	background-size: cover;
	background-position: center;
	background-color: #ccc;
}
.bn-bottom-text {
	background: var(--bn-cream);
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 60px;
}
.bn-bottom-text h2 {
	font-size: 32px;
	margin-bottom: 6px;
}
.bn-bottom-sub {
	font-family: 'Playfair Display', serif;
	font-style: italic;
	font-size: 18px;
	color: var(--bn-gold);
	margin-bottom: 16px;
}
.bn-bottom-text p {
	color: var(--bn-ink-soft);
	line-height: 1.7;
	margin-bottom: 24px;
}
.bn-bottom-text .bn-btn {
	align-self: flex-start;
}

/* --------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------- */
@media (max-width: 900px) {
	.bn-hero-inner,
	.bn-two-col,
	.bn-bottom-banner {
		grid-template-columns: 1fr;
	}
	.bn-tile-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.bn-product-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.bn-education-grid {
		grid-template-columns: 1fr;
	}
	.bn-gallery-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}
