/* ==========================================================================
   Bricks & Brews, main styles
   Brand tokens live in :root. Swap these when the final branding guide lands.
   ========================================================================== */

@font-face {
	font-family: "Bricolage Grotesque";
	src: url("../fonts/bricolage-grotesque-latin.woff2") format("woff2");
	font-weight: 400 800;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Inter";
	src: url("../fonts/inter-latin.woff2") format("woff2");
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
}

:root {
	/* Brand palette (Brand Book): #592B1B brown, #77A342 green,
	   #F6E5CB cream, #FBD55E yellow, #FFEFBA pale yellow. */
	--c-espresso: #592b1b;   /* brand brown: headings, footer, dark UI */
	--c-espresso-2: #6e3825;
	--c-crema: #f6e5cb;      /* brand cream */
	--c-crema-2: #efdab8;
	--c-latte: #e3cba5;
	--c-pale: #ffefba;       /* brand pale yellow */
	--c-green: #77a342;      /* brand green (accents, hovers on dark) */
	/* "brick" = primary action colour: brand green deepened so white text
	   passes WCAG AA (5:1). Pure #77A342 with white text is only 3:1. */
	--c-brick: #4e7a22;
	--c-brick-hover: #446b1d;
	--c-brick-dark: #36561a;
	--c-stud: #fbd55e;       /* brand yellow */
	--c-stud-dark: #d4a92c;
	--c-ink: #3a1c11;
	--c-muted: #7a5444;
	--c-line: #ead9bd;
	--c-white: #fff;
	--c-success: #2f7d4f;
	--c-error: #b3261e;

	--font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
	--font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--radius: 14px;
	--radius-sm: 8px;
	--gutter: 16px;
	--container: 1200px;
	--shadow: 0 1px 2px rgba(89, 43, 27, .06), 0 8px 24px rgba(89, 43, 27, .08);
	--brick-edge: 0 4px 0 var(--c-brick-dark);
	--header-h: 72px;
}

@media (min-width: 768px) {
	:root { --gutter: 32px; --header-h: 96px; }
}

/* Base ------------------------------------------------------------------ */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--c-white);
	color: var(--c-ink);
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

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

a { color: var(--c-brick); text-underline-offset: .2em; }
a:hover { color: var(--c-brick-dark); }

h1, h2, h3, h4 {
	font-family: var(--font-display);
	line-height: 1.1;
	letter-spacing: -.02em;
	margin: 0 0 .5em;
	color: var(--c-espresso);
	font-weight: 750;
}

h1 { font-size: clamp(2.25rem, 6vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--c-stud); outline-offset: 2px; border-radius: 4px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	clip: auto; width: auto; height: auto; margin: 0;
	top: 8px; left: 8px; z-index: 1000;
	padding: 12px 16px;
	background: var(--c-white); color: var(--c-espresso);
	border-radius: var(--radius-sm);
}

.container {
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

/* Reading-width column, left-aligned with the header logo (not centred). */
.container--content > * { max-width: 780px; }
.not-found.container--content { max-width: calc(780px + var(--gutter) * 2); }
.not-found.container--content > * { max-width: none; }

/* Buttons --------------------------------------------------------------- */

.btn,
.wpcf7-submit,
.button,
button.button,
.search-submit,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5em;
	min-height: 48px;
	padding: .75em 1.5em;
	border: 0;
	border-radius: var(--radius-sm);
	background: var(--c-brick);
	color: var(--c-white);
	font: 700 1rem/1.2 var(--font-body);
	text-decoration: none;
	cursor: pointer;
	box-shadow: var(--brick-edge);
	transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}

.btn:hover,
.wpcf7-submit:hover,
.button:hover,
.wp-block-button__link:hover { background: var(--c-brick-hover); color: var(--c-white); }

.btn:active,
.wpcf7-submit:active,
.button:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--c-brick-dark); }

.btn--ghost {
	background: transparent;
	color: var(--c-espresso);
	box-shadow: inset 0 0 0 2px var(--c-espresso);
}
.btn--ghost:hover { background: var(--c-espresso); color: var(--c-crema); }
.btn--ghost:active { transform: none; box-shadow: inset 0 0 0 2px var(--c-espresso); }

.btn--light { background: var(--c-stud); color: var(--c-espresso); box-shadow: 0 4px 0 var(--c-stud-dark); }
.btn--light:hover { background: var(--c-pale); color: var(--c-espresso); }

.btn--small { min-height: 40px; padding: .5em 1.1em; font-size: .9rem; }

.btn-group { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem; }

.text-link { font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.link-button {
	background: none; border: 0; padding: 0;
	color: inherit; font: inherit; text-decoration: underline; cursor: pointer;
}

.eyebrow {
	display: inline-block;
	margin-bottom: 1rem;
	padding: .3em .8em;
	border-radius: 999px;
	background: var(--c-stud);
	color: var(--c-espresso);
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.card {
	background: var(--c-white);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	border: 1px solid var(--c-line);
	padding: clamp(20px, 4vw, 40px);
}

/* Announcement + header ------------------------------------------------- */

.announcement {
	background: var(--c-espresso);
	color: var(--c-crema);
	font-size: .85rem;
	font-weight: 600;
	text-align: center;
	padding: .5rem 0;
}
.announcement a { color: var(--c-stud); text-decoration: none; }

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, .94);
	backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--c-line);
}
.admin-bar .site-header { top: 46px; }
@media (min-width: 783px) { .admin-bar .site-header { top: 32px; } }

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: var(--header-h);
}

.site-logo { display: inline-flex; align-items: center; text-decoration: none; margin-right: auto; }
.site-logo__img { max-height: 60px; width: auto; }
@media (min-width: 768px) {
	.site-logo__img { max-height: 80px; }
}
.site-logo__text {
	font: 800 1.4rem/1 var(--font-display);
	color: var(--c-espresso);
	letter-spacing: -.03em;
}
.site-logo--light .site-logo__text { color: var(--c-crema); }

.header-actions { display: flex; align-items: center; gap: 4px; }

.header-icon {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px; height: 44px;
	border-radius: 50%;
	color: var(--c-espresso);
}
.header-icon:hover { background: var(--c-crema-2); color: var(--c-espresso); }

.header-cart__count {
	position: absolute;
	top: 4px; right: 2px;
	min-width: 20px; height: 20px;
	padding: 0 5px;
	border-radius: 10px;
	background: var(--c-brick);
	color: var(--c-white);
	font-size: .7rem;
	font-weight: 700;
	line-height: 20px;
	text-align: center;
}
.header-cart__count[hidden] { display: none; }

.nav-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px; height: 44px;
	border: 0;
	background: none;
	cursor: pointer;
	border-radius: 50%;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
	display: block;
	width: 22px; height: 2px;
	background: var(--c-espresso);
	border-radius: 2px;
	transition: transform .2s ease, opacity .2s ease;
	content: "";
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before { position: absolute; top: -7px; }
.nav-toggle__bars::after { position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

.primary-nav .menu { list-style: none; margin: 0; padding: 0; }
.primary-nav a {
	display: block;
	padding: .75rem 0;
	color: var(--c-espresso);
	font-weight: 600;
	text-decoration: none;
}
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a,
.primary-nav a:hover { color: var(--c-brick); }
.primary-nav .sub-menu { list-style: none; padding-left: 1rem; margin: 0; }

/* Brick menu item (shop link): a LEGO-style brick with studs on top. */
.primary-nav .menu-item--brick > a {
	--brick: var(--c-stud);
	position: relative;
	display: inline-block;
	margin-top: 6px; /* room for the studs */
	padding: .55em 1.15em;
	border-radius: 3px;
	background: var(--brick);
	color: var(--c-espresso);
	box-shadow: 0 4px 0 var(--c-stud-dark);
	transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.primary-nav .menu-item--brick > a::before {
	content: "";
	position: absolute;
	left: 8px; right: 8px; top: -6px;
	height: 6px;
	/* One stud per tile, spread evenly across the top of the brick. */
	background:
		radial-gradient(ellipse 6px 6px at 50% 100%, var(--brick) 96%, transparent 100%)
		0 0 / 18px 6px space no-repeat;
	pointer-events: none;
}
.primary-nav .menu-item--brick > a:hover,
.primary-nav .menu-item--brick.current-menu-item > a,
.primary-nav .menu-item--brick.current_page_item > a { --brick: #fcdc78; color: var(--c-espresso); }
.primary-nav .menu-item--brick > a:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--c-stud-dark); }
.primary-nav .menu-item--brick > a:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--c-stud-dark); }
@media (prefers-reduced-motion: reduce) {
	.primary-nav .menu-item--brick > a { transition: none; }
	.primary-nav .menu-item--brick > a:hover { transform: none; }
}

/* Mobile nav: slide-down panel */
@media (max-width: 959px) {
	.primary-nav {
		position: absolute;
		top: 100%; left: 0; right: 0;
		padding: 8px var(--gutter) 24px;
		background: var(--c-white);
		border-bottom: 1px solid var(--c-line);
		box-shadow: 0 16px 24px rgba(89, 43, 27, .08);
		display: none;
	}
	.primary-nav.is-open { display: block; }
	.primary-nav .menu > li + li { border-top: 1px solid var(--c-line); }
	.primary-nav a { font-size: 1.15rem; padding: 1rem 0; }
	.primary-nav .menu-item--brick { padding: 14px 0 12px; }
	.primary-nav .menu-item--brick > a { padding: .6em 1.25em; }
}

@media (min-width: 960px) {
	.nav-toggle { display: none; }
	.site-logo { margin-right: 0; }
	.primary-nav { margin: 0 auto; }
	.primary-nav .menu { display: flex; align-items: center; gap: 32px; }
	.primary-nav .menu > li { position: relative; }
	.primary-nav .sub-menu {
		position: absolute;
		top: 100%; left: -16px;
		min-width: 220px;
		padding: 8px 16px;
		background: var(--c-white);
		border-radius: var(--radius-sm);
		box-shadow: var(--shadow);
		opacity: 0; visibility: hidden;
		transition: opacity .15s ease;
	}
	.primary-nav li:hover > .sub-menu,
	.primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; }
}

/* Breadcrumbs + page header --------------------------------------------- */

.breadcrumbs { font-size: .85rem; color: var(--c-muted); margin-bottom: 1rem; }
.breadcrumbs p { margin: 0; }
.breadcrumbs a { color: var(--c-muted); }

.page-header { padding: clamp(32px, 6vw, 72px) 0 clamp(24px, 4vw, 40px); }
.page-header__title { margin-bottom: .25em; }
.page-header__intro { font-size: 1.15rem; color: var(--c-muted); max-width: 640px; }
.page-header__meta { font-size: .9rem; color: var(--c-muted); }

.site-main { padding-bottom: clamp(48px, 8vw, 96px); }
.home.site-main { padding-bottom: 0; }

/* Prose (editor content) ------------------------------------------------ */

.prose { font-size: 1.05rem; }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 2em; font-size: 1.6rem; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: .35em; }
.prose img { border-radius: var(--radius); }
.prose blockquote {
	margin: 2em 0;
	padding: 1em 1.5em;
	border-left: 4px solid var(--c-brick);
	background: var(--c-crema);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	font-size: 1.15rem;
}
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { padding: .6em .8em; border-bottom: 1px solid var(--c-line); text-align: left; }
.is-style-note {
	padding: 1em 1.25em;
	background: var(--c-pale);
	border: 1px solid var(--c-stud);
	border-radius: var(--radius-sm);
	font-size: .95rem;
}
.legal h2 { font-size: 1.35rem; }
.entry-thumb { margin: 0 0 2em; }

/* Sections -------------------------------------------------------------- */

.section { padding: clamp(48px, 8vw, 96px) 0; }
.section--alt { background: var(--c-crema); }
.section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 24px;
	margin-bottom: 1.5rem;
}
.section__head .section__title { margin: 0; }

/* Hero ------------------------------------------------------------------ */

.hero {
	position: relative;
	padding: clamp(40px, 8vw, 104px) 0;
	overflow: hidden;
	background-color: var(--c-crema);
	background-image: radial-gradient(circle at 12px 12px, rgba(89, 43, 27, .06) 5px, transparent 6px);
	background-size: 32px 32px;
}
.hero__inner { display: grid; gap: 40px; align-items: center; }
.hero__title { max-width: 14ch; }
.hero__text { font-size: 1.2rem; color: var(--c-muted); max-width: 46ch; }
.hero__media img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--radius);
	box-shadow: 12px 12px 0 var(--c-stud);
}
.hero__media .brick-cup { max-width: 360px; margin: 0 auto; }

@media (min-width: 960px) {
	.hero__inner { grid-template-columns: 1.1fr 1fr; gap: 64px; }
}

/* Highlights ------------------------------------------------------------ */

.highlights { background: var(--c-espresso); color: var(--c-crema); padding: 32px 0; }
.highlights__grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
.highlight { padding-left: 20px; border-left: 4px solid var(--c-stud); }
.highlight__title { color: var(--c-white); font-size: 1.1rem; margin-bottom: .25em; }
.highlight p { margin: 0; font-size: .95rem; opacity: .85; }
@media (min-width: 600px) { .highlights__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .highlights__grid { grid-template-columns: repeat(4, 1fr); } }

/* Category cards -------------------------------------------------------- */

.category-grid {
	list-style: none;
	margin: 0; padding: 0;
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 960px) { .category-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; } }

.category-card a {
	display: block;
	text-decoration: none;
	color: var(--c-espresso);
}
.category-card__media {
	display: block;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--c-crema);
	aspect-ratio: 1;
}
.category-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.category-card a:hover img { transform: scale(1.04); }
.category-card__name {
	display: block;
	margin-top: .6rem;
	font: 700 1.1rem/1.2 var(--font-display);
}

/* Story ----------------------------------------------------------------- */

.story__inner { display: grid; gap: 32px; align-items: center; }
.story__media img { border-radius: var(--radius); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.story__media .brick-cup { max-width: 300px; margin: 0 auto; }
.story__content .btn { margin-top: 1rem; }
@media (min-width: 960px) { .story__inner { grid-template-columns: 1fr 1fr; gap: 64px; } }

/* CTA band -------------------------------------------------------------- */

.cta-band { background: var(--c-brick); color: var(--c-white); padding: clamp(40px, 6vw, 64px) 0; }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band__title { color: var(--c-white); margin-bottom: .25em; }
.cta-band p { margin: 0; opacity: .9; }

/* Post cards ------------------------------------------------------------ */

.post-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card { background: var(--c-crema); border-radius: var(--radius); overflow: hidden; padding-bottom: 20px; }
.post-card__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.post-card__title, .post-card p { padding: 0 20px; }
.post-card__title { font-size: 1.25rem; margin-top: 20px; }
.post-card__title a { color: inherit; text-decoration: none; }

.nav-links { display: flex; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.nav-links .page-numbers {
	min-width: 44px; height: 44px;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: var(--radius-sm);
	background: var(--c-crema); text-decoration: none; color: var(--c-espresso);
}
.nav-links .current { background: var(--c-espresso); color: var(--c-white); }

/* FAQs ------------------------------------------------------------------ */

.faq-section + .faq-section { margin-top: 48px; }
.faq-section__title { font-size: 1.5rem; }
.faq {
	background: var(--c-crema);
	border-radius: var(--radius-sm);
	margin-bottom: 10px;
	box-shadow: 0 1px 2px rgba(89, 43, 27, .05);
}
.faq__question {
	position: relative;
	padding: 18px 56px 18px 20px;
	font-weight: 700;
	cursor: pointer;
	list-style: none;
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question::after {
	content: "";
	position: absolute;
	right: 20px; top: 50%;
	width: 22px; height: 22px;
	margin-top: -11px;
	border-radius: 50%;
	background: var(--c-stud) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 6h2v12h-2zM6 11h12v2H6z' fill='%232b1a12'/%3E%3C/svg%3E") center / 16px no-repeat;
	transition: transform .2s ease;
}
.faq[open] .faq__question::after { transform: rotate(45deg); }
.faq__answer { padding: 0 20px 20px; font-size: 1rem; }
.faq-cta {
	margin-top: 48px;
	padding: 32px;
	text-align: center;
	background: var(--c-crema-2);
	border-radius: var(--radius);
}
.faq-cta p { font: 700 1.3rem/1.2 var(--font-display); }

/* Contact --------------------------------------------------------------- */

.contact-layout { display: grid; gap: 32px; }
@media (min-width: 960px) {
	.contact-layout { grid-template-columns: 2fr 1fr; gap: 48px; }
	.contact-layout--single { grid-template-columns: minmax(0, 760px); }
}
.contact-detail { margin-bottom: 24px; }
.contact-detail h2 {
	font: 700 .8rem/1 var(--font-body);
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--c-muted);
	margin-bottom: .5em;
}
.contact-detail a, .contact-detail address { font-size: 1.15rem; font-style: normal; color: var(--c-espresso); }

/* Find us (Contact page sidebar) */
.find-us__address { margin-bottom: 16px; line-height: 1.6; }
.find-us__map {
	position: relative;
	aspect-ratio: 4 / 3;
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--c-crema-2);
	border: 1px solid var(--c-line);
}
@media (min-width: 960px) { .find-us__map { aspect-ratio: 1 / 1; } }
.find-us__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.find-us__placeholder {
	position: absolute; inset: 0;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	gap: 12px; padding: 20px; text-align: center; font-size: .95rem; color: var(--c-muted);
}
.find-us__placeholder p { max-width: 30ch; margin: 0; }
.find-us__directions { display: inline-block; margin-top: 12px; font-weight: 600; }

/* Forms (Contact Form 7) ------------------------------------------------ */

.form-grid { display: grid; gap: 16px; margin-bottom: 16px; }
@media (min-width: 600px) { .form-grid { grid-template-columns: 1fr 1fr; } }

.wpcf7 label,
.woocommerce form .form-row label {
	display: block;
	font-weight: 600;
	font-size: .9rem;
	color: var(--c-espresso);
}
.wpcf7 label + label { margin-top: 16px; }
.wpcf7-form-control-wrap { display: block; margin-top: 6px; }

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea,
.wpcf7 select,
input.input-text,
textarea.input-text,
.search-form .search-field {
	width: 100%;
	min-height: 48px;
	padding: 12px 14px;
	border: 2px solid var(--c-line);
	border-radius: var(--radius-sm);
	background: var(--c-white);
	color: var(--c-ink);
	font: 1rem/1.4 var(--font-body); /* 16px stops iOS zoom */
	transition: border-color .15s ease;
}
.wpcf7 input:focus,
.wpcf7 textarea:focus,
input.input-text:focus,
textarea.input-text:focus { border-color: var(--c-espresso); outline: none; }

.form-consent { margin: 16px 0 20px; font-size: .9rem; }
.form-consent .wpcf7-list-item { margin: 0; }
.form-consent label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.form-consent input[type="checkbox"] { width: 20px; height: 20px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--c-brick); }

.wpcf7-submit { width: 100%; }
@media (min-width: 600px) { .wpcf7-submit { width: auto; } }
.wpcf7-spinner { vertical-align: middle; }

.wpcf7-not-valid-tip { color: var(--c-error); font-size: .85rem; margin-top: 4px; }
.wpcf7 form .wpcf7-response-output {
	margin: 16px 0 0;
	padding: 12px 16px;
	border-radius: var(--radius-sm);
	border-width: 2px;
	font-size: .95rem;
}
.wpcf7 form.sent .wpcf7-response-output { border-color: var(--c-success); background: #eaf6ee; color: #1d5235; }
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output { border-color: var(--c-error); background: #fdeeea; }

.notice-inline { padding: 12px; background: var(--c-pale); border-radius: var(--radius-sm); font-size: .9rem; }

.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; }

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

.site-footer { background: var(--c-espresso); color: var(--c-latte); font-size: .95rem; }
.site-footer a { color: var(--c-crema); text-decoration: none; }
.site-footer a:hover { color: var(--c-stud); }

.site-footer__grid { display: grid; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: 2fr 1fr 1fr; } }

.site-footer__brand p { max-width: 38ch; margin-top: 16px; }
.site-footer__heading {
	font: 700 .8rem/1 var(--font-body);
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--c-stud);
	margin-bottom: 1rem;
}
.site-footer .menu { list-style: none; margin: 0; padding: 0; }
.site-footer__nav li + li { margin-top: .5rem; }
.site-footer address { font-style: normal; line-height: 1.9; }

.site-footer__bottom { border-top: 1px solid rgba(217, 196, 166, .2); padding: 20px 0; font-size: .85rem; }
.site-footer__bottom p { margin: 0; }
.site-footer__bottom-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.legal-menu { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 0; padding: 0; }
.site-footer__bottom .site-credit { margin-left: auto; opacity: .8; }
.site-credit a { color: inherit; }
@media (max-width: 599px) { .site-footer__bottom .site-credit { margin-left: 0; width: 100%; } }
.site-footer .disclaimer { margin-top: 12px; font-size: .75rem; opacity: .7; }

.social-links { display: flex; gap: 8px; list-style: none; margin: 16px 0 0; padding: 0; }
.social-links a {
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px;
	border-radius: 50%;
	background: rgba(246, 239, 228, .1);
}
.social-links a:hover { background: var(--c-stud); color: var(--c-espresso); }

/* Cookie banner --------------------------------------------------------- */

.cookie-banner {
	position: fixed;
	left: 16px; right: 16px; bottom: 16px;
	z-index: 100;
	max-width: 520px;
	padding: 20px;
	background: var(--c-white);
	color: var(--c-ink);
	border-radius: var(--radius);
	box-shadow: 0 12px 40px rgba(89, 43, 27, .25);
	font-size: .9rem;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__actions { display: flex; gap: 8px; justify-content: flex-end; }

/* Brick cup illustration ------------------------------------------------ */

.brick-cup { width: 100%; height: auto; color: var(--c-latte); }
.brick-cup__studs rect, .brick-cup__b1 { fill: var(--c-brick); }
.brick-cup__b2 { fill: var(--c-stud); }
.brick-cup__b3 { fill: var(--c-espresso-2); }
.brick-cup__handle { fill: var(--c-brick); }
.brick-cup__saucer { fill: var(--c-latte); }
.brick-cup__steam path { animation: steam 3s ease-in-out infinite; opacity: .7; }
.brick-cup__steam path:nth-child(2) { animation-delay: .5s; }
.brick-cup__steam path:nth-child(3) { animation-delay: 1s; }
@keyframes steam {
	0%, 100% { transform: translateY(0); opacity: .2; }
	50% { transform: translateY(-6px); opacity: .8; }
}

/* 404: brick-built digits ---------------------------------------------- */

.not-found {
	--b: clamp(20px, 6vw, 44px); /* one brick */
	--gap: 3px;
	text-align: center;
	padding-top: clamp(40px, 8vw, 88px);
	overflow: hidden;
}
.not-found .btn-group { justify-content: center; }
.not-found__title { margin-top: 32px; }
.not-found__text { max-width: 52ch; margin: 0 auto; color: var(--c-muted); font-size: 1.1rem; }

.brick404 {
	display: flex;
	justify-content: center;
	gap: calc(var(--b) * .6);
	padding-top: calc(var(--b) * .3);
}
.brick404__digit {
	display: grid;
	grid-template-columns: repeat(3, var(--b));
	grid-template-rows: repeat(5, var(--b));
	gap: var(--gap);
}

.brick {
	--brick-c: var(--c-brick);
	position: relative;
	display: block;
	width: var(--b);
	height: var(--b);
	padding: 0;
	border: 0;
	border-radius: 3px;
	background: var(--brick-c);
	box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .2), inset 0 2px 0 rgba(255, 255, 255, .25);
}
/* The stud on top */
.brick::before {
	content: "";
	position: absolute;
	left: 24%; right: 24%;
	top: -20%;
	height: 22%;
	border-radius: 3px 3px 0 0;
	background: var(--brick-c);
	box-shadow: inset 0 2px 0 rgba(255, 255, 255, .3), inset 0 -2px 0 rgba(0, 0, 0, .15);
}
.brick--red { --brick-c: var(--c-brick); }
.brick--yellow { --brick-c: var(--c-stud); }
.brick--dark { --brick-c: var(--c-espresso-2); }
.brick--latte { --brick-c: #c9ab82; }

.brick404 .brick:not(.brick--slot) {
	animation: brick-drop .75s cubic-bezier(.3, 1.35, .55, 1) var(--d) both;
}

@keyframes brick-drop {
	0% { transform: translateY(-70vh) rotate(var(--rot)); opacity: 0; }
	40% { opacity: 1; }
	100% { transform: none; opacity: 1; }
}

/* The empty spot */
.brick--slot {
	background: transparent;
	box-shadow: none;
	outline: 2px dashed var(--c-brick);
	outline-offset: -2px;
	opacity: 0;
	animation: slot-appear .3s ease 1.3s forwards, slot-pulse 1.6s ease-in-out 1.6s infinite;
}
.brick--slot::before { display: none; }
@keyframes slot-appear { to { opacity: 1; } }
@keyframes slot-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: .35; }
}
.brick--slot.is-filled {
	opacity: 1;
	outline: 0;
	background: var(--brick-c);
	box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .2), inset 0 2px 0 rgba(255, 255, 255, .25);
	animation: brick-snap .3s ease-out;
}
.brick--slot.is-filled::before { display: block; }
@keyframes brick-snap {
	0% { transform: scale(1.25); }
	60% { transform: scale(.92); }
	100% { transform: none; }
}

/* Celebration hop once fixed */
.brick404.is-fixed .brick:not(.brick--slot) {
	animation: brick-hop .5s ease calc(var(--d) * .35) both;
}
@keyframes brick-hop {
	0%, 100% { transform: none; }
	40% { transform: translateY(-30%) rotate(calc(var(--rot) * .3)); }
}

/* Baseplate with the coffee cup and the loose brick */
.baseplate { max-width: calc(var(--b) * 12); margin: 28px auto 0; }
.baseplate__items {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	padding: 0 8%;
}
.baseplate__cup { width: calc(var(--b) * 2.2); }
.baseplate__cup .brick-cup { margin-bottom: -4px; }
.baseplate__loose { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.baseplate__hint {
	font: 700 .8rem/1 var(--font-body);
	color: var(--c-brick);
	opacity: 0;
	animation: slot-appear .4s ease 2.2s forwards;
}
.brick--loose {
	z-index: 2;
	cursor: pointer;
	transform: rotate(-18deg);
	animation: brick-wobble 2.4s ease-in-out 2.4s infinite;
}
.brick--loose:hover { animation-play-state: paused; transform: rotate(-6deg) translateY(-4px); }
.brick--loose:focus-visible { outline: 3px solid var(--c-stud); outline-offset: 4px; }
@keyframes brick-wobble {
	0%, 100% { transform: rotate(-18deg); }
	50% { transform: rotate(-6deg) translateY(-6px); }
}
.baseplate__plate {
	height: 16px;
	border-radius: 4px;
	background-color: var(--c-espresso-2);
	background-image: radial-gradient(circle at 10px 5px, rgba(255, 255, 255, .18) 4px, transparent 5px);
	background-size: 20px 16px;
	box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .25);
}

/* ==========================================================================
   Splash page
   ========================================================================== */

.is-splash { background: var(--c-espresso); }

.splash {
	position: relative;
	min-height: 100vh;
	min-height: 100svh;
	display: flex;
	flex-direction: column;
	color: var(--c-crema);
	background-color: var(--c-espresso);
	background-image: radial-gradient(circle at 14px 14px, rgba(246, 239, 228, .05) 6px, transparent 7px);
	background-size: 36px 36px;
	isolation: isolate;
}

.splash__bg { position: absolute; inset: 0; z-index: -1; }
.splash__bg img { width: 100%; height: 100%; object-fit: cover; }
.splash__bg::after {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(110deg, rgba(31, 20, 14, .92) 0%, rgba(31, 20, 14, .75) 55%, rgba(31, 20, 14, .55) 100%);
}

.splash__header,
.splash__main,
.splash__footer {
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin: 0 auto;
	padding-left: var(--gutter);
	padding-right: var(--gutter);
}

.splash__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-top: 24px;
	padding-bottom: 24px;
}
.splash__header .site-logo__img {
	width: auto;
	height: clamp(88px, 10vw, 140px);
	max-height: none;
}

.splash__main {
	flex: 1;
	display: grid;
	gap: 40px;
	align-items: center;
	padding-top: 16px;
	padding-bottom: 48px;
}
@media (min-width: 960px) {
	.splash__main { grid-template-columns: 1.15fr 1fr; gap: 72px; padding-right: calc(var(--gutter) / 2); }
}

/* Splash labels as stacked bricks: yellow "We're in" sits on red "Soft launch" */
.splash .brick-stack {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	flex-shrink: 0;
	margin: 14px 0 0;
}
.splash .eyebrow {
	--face: var(--c-stud);
	--light: #fde08a;
	--dark: var(--c-stud-dark);
	position: relative;
	margin: 0;
	padding: .7em 1.4em .8em;
	border-radius: 4px;
	background: var(--face);
	font-size: .9rem;
	font-weight: 800;
	letter-spacing: .1em;
	box-shadow:
		inset 0 2px 0 rgba(255, 255, 255, .35),
		inset 0 -5px 0 rgba(0, 0, 0, .18),
		0 6px 14px rgba(0, 0, 0, .3);
	animation: eyebrow-drop .7s cubic-bezier(.3, 1.4, .55, 1) .2s both;
}
.splash .eyebrow--red {
	--face: var(--c-brick);
	--light: var(--c-green);
	--dark: var(--c-brick-dark);
	color: var(--c-white);
}
/* Top brick overlaps the red brick's studs and lands second */
.splash .eyebrow--yellow {
	z-index: 1;
	margin: 0 0 -1px 34px;
	animation-delay: .65s;
}
.splash .eyebrow::before {
	content: "";
	position: absolute;
	left: 6px; right: 6px;
	top: -10px;
	height: 11px;
	/* One stud per 34px tile; "round" stretches tiles so studs always fit evenly */
	background:
		linear-gradient(90deg, transparent 6px, rgba(255, 255, 255, .5) 6px 28px, transparent 28px) 0 0 / 34px 2px round no-repeat,
		linear-gradient(90deg, transparent 6px, var(--light) 6px 12px, var(--face) 12px 24px, var(--dark) 24px 28px, transparent 28px) 0 0 / 34px 100% round no-repeat;
}
@media (max-width: 479px) {
	.splash .eyebrow { font-size: .72rem; }
}
@keyframes eyebrow-drop {
	0% { transform: translateY(-40px) rotate(-6deg); opacity: 0; }
	60% { opacity: 1; }
	100% { transform: none; opacity: 1; }
}

.splash__title { color: var(--c-white); font-size: clamp(2.5rem, 7vw, 4.75rem); }
.splash__text { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--c-latte); max-width: 46ch; }
.splash__text > * + * { margin-top: 1em; }
.splash__text a { color: inherit; text-decoration: underline; }

.countdown { display: flex; gap: 10px; margin-top: 32px; flex-wrap: wrap; }
.countdown__unit {
	min-width: 72px;
	padding: 12px 10px 10px;
	text-align: center;
	background: rgba(246, 239, 228, .08);
	border: 1px solid rgba(246, 239, 228, .15);
	border-radius: var(--radius-sm);
}
.countdown__num {
	display: block;
	font: 800 1.9rem/1 var(--font-display);
	color: var(--c-stud);
	font-variant-numeric: tabular-nums;
}
.countdown__label { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; opacity: .8; }

.splash__card {
	position: relative;
	padding: clamp(24px, 5vw, 40px);
	padding-top: clamp(56px, 8vw, 72px);
	margin-top: 48px;
	background: var(--c-crema);
	color: var(--c-ink);
	border-radius: var(--radius);
	box-shadow: 14px 14px 0 var(--c-brick);
}
@media (min-width: 960px) { .splash__card { margin-top: 0; } }

.splash__art {
	position: absolute;
	top: -64px; right: 24px;
	width: 120px;
}
.splash__form-title { font-size: 1.6rem; }
.splash__card .form-grid { grid-template-columns: 1fr; }
.splash__card .wpcf7-submit { width: 100%; }
.splash__small { margin: 16px 0 0; font-size: .8rem; color: var(--c-muted); }

.splash__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 24px;
	padding-top: 20px;
	padding-bottom: 24px;
	border-top: 1px solid rgba(246, 239, 228, .12);
	font-size: .85rem;
	color: var(--c-latte);
}
.splash__footer p { margin: 0 0 0 auto; }
.splash__footer a { color: var(--c-crema); text-decoration: none; }
.splash__footer a:hover { color: var(--c-stud); }
.splash__footer .social-links { margin: 0; }
@media (max-width: 599px) { .splash__footer p { margin-left: 0; width: 100%; } }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
