/*
 * BricksFly site shell (sale banner, header, menus, footer) – matches bricksfly.com.
 * Everything is prefixed "bf-" so it never collides with the blog's utility CSS.
 */
@font-face { font-family: "Cabinet Grotesk"; src: url("https://bricksfly.com/wp-content/themes/bricksfly/assets/fonts/cabinet-grotesk-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Cabinet Grotesk"; src: url("https://bricksfly.com/wp-content/themes/bricksfly/assets/fonts/cabinet-grotesk-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Cabinet Grotesk"; src: url("https://bricksfly.com/wp-content/themes/bricksfly/assets/fonts/cabinet-grotesk-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cabinet Grotesk"; src: url("https://bricksfly.com/wp-content/themes/bricksfly/assets/fonts/cabinet-grotesk-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("https://bricksfly.com/wp-content/themes/bricksfly/assets/fonts/figtree-var.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }

:root {
	--bf-bg: #fbf9f4;
	--bf-surface: #ffffff;
	--bf-surface-2: #f7f5ef;
	--bf-line: rgba(24, 24, 26, .09);
	--bf-line-2: rgba(24, 24, 26, .16);
	--bf-text: #18181a;
	--bf-muted: rgba(24, 24, 26, .7);
	--bf-dim: rgba(24, 24, 26, .62);
	--bf-brand: #ffd53e;
	--bf-brand-ink: #18181a;
	--bf-brand-a: rgba(255, 213, 62, .22);
	--bf-head: "Cabinet Grotesk", "Figtree", ui-sans-serif, system-ui, sans-serif;
	--bf-body: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--bf-ease: cubic-bezier(.2, .7, .2, 1);
	--bf-shadow: 0 1px 2px rgba(24, 24, 26, .04), 0 12px 32px -16px rgba(24, 24, 26, .12);
	--bf-wrap: 1320px;
	--bf-pad: clamp(20px, 4vw, 40px);
	--bf-header-h: 72px;
}

.bf-wrap { width: 100%; max-width: calc(var(--bf-wrap) + var(--bf-pad) * 2); margin: 0 auto; padding: 0 var(--bf-pad); }
.bf-ico { flex: 0 0 auto; }
.bf-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.bf-promo, .bf-header, .bf-footer { font-family: var(--bf-body); -webkit-font-smoothing: antialiased; }
:where(.bf-promo, .bf-header, .bf-footer) a { text-decoration: none; color: inherit; }
:where(.bf-header, .bf-footer) ul { list-style: none; margin: 0; padding: 0; }
:where(.bf-header, .bf-promo) button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; padding: 0; }

/* Buttons */
.bf-btn { --h: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--h); padding: 0 22px; border: 1px solid transparent; border-radius: 999px; font-family: var(--bf-body); font-size: 16px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--bf-ease); }
.bf-btn--sm { --h: 40px; padding: 0 16px; font-size: 15px; }
.bf-btn--primary { background: var(--bf-brand); color: var(--bf-brand-ink); }
.bf-btn--primary:hover { background: #f5c91f; }
.bf-btn--ghost { background: transparent; border-color: var(--bf-line-2); color: var(--bf-text); }
.bf-btn--ghost:hover { background: var(--bf-surface); border-color: var(--bf-text); }
.bf-btn__ico { display: inline-flex; transition: transform .2s var(--bf-ease); }
.bf-btn:hover .bf-btn__ico { transform: translateX(2px); }

/* Sale banner */
.bf-promo { position: relative; z-index: 60; background: #18181a; color: #e4e4e7; font-size: 14px; }
.bf-promo-off .bf-promo { display: none; }
.bf-promo__in { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 40px; padding-right: 56px; }
.bf-promo__txt { display: flex; align-items: center; gap: 10px; min-width: 0; margin: 0; }
.bf-promo__tag { padding: 2px 9px; border-radius: 999px; background: var(--bf-brand); color: var(--bf-brand-ink); font-weight: 600; font-size: 12.5px; white-space: nowrap; }
.bf-promo__msg { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bf-promo__btn { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; color: var(--bf-brand); font-weight: 600; white-space: nowrap; }
.bf-promo__btn:hover { text-decoration: underline; text-underline-offset: 3px; }
.bf-promo__close { position: absolute; right: 12px; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #a1a1aa; }
.bf-promo__close:hover { background: rgba(255, 255, 255, .1); color: #fff; }
@media (max-width: 680px) {
	.bf-promo__msg { display: none; }
	.bf-promo__in { justify-content: flex-start; gap: 10px; }
	.bf-promo__txt { flex: 1 1 auto; min-width: 0; }
	.bf-promo__tag { overflow: hidden; text-overflow: ellipsis; }
}

/* Header */
.bf-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 249, 244, .85); -webkit-backdrop-filter: saturate(150%) blur(12px); backdrop-filter: saturate(150%) blur(12px); border-bottom: 1px solid transparent; color: var(--bf-text); transition: border-color .3s; }
.admin-bar .bf-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .bf-header { top: 0; } }
.bf-header.is-scrolled { border-bottom-color: var(--bf-line); }
.bf-nav { display: flex; align-items: center; gap: 20px; height: var(--bf-header-h); }
.bf-brand { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; color: var(--bf-text); }
.bf-brand__mark { display: block; width: 33px; height: 34px; overflow: hidden; }
.bf-brand__mark img { height: 34px; width: auto; max-width: none; }
.bf-brand__img { height: 34px; width: auto; }
.bf-brand__word { font-family: var(--bf-head); font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.65; }
.bf-menu { flex: 1 1 0%; display: flex; justify-content: center; }
.bf-menu__list { display: flex; align-items: center; gap: 2px; padding: 4px; border: 1px solid var(--bf-line); border-radius: 999px; background: var(--bf-surface); }
.bf-menu__item { position: relative; }
.bf-menu__link { display: inline-flex; align-items: center; gap: 4px; height: 38px; padding: 0 14px; border-radius: 999px; color: var(--bf-muted); font-size: 15px; font-weight: 500; transition: background-color .2s, color .2s; }
.bf-menu__link:hover, .bf-has-drop.is-open > .bf-menu__link { color: var(--bf-text); background: var(--bf-surface-2); }
.bf-menu__link .bf-ico { opacity: .6; transition: transform .2s var(--bf-ease); }
.bf-has-drop.is-open .bf-menu__link .bf-ico { transform: rotate(180deg); }
.bf-drop { position: absolute; top: calc(100% + 12px); left: 50%; translate: -50% 6px; opacity: 0; visibility: hidden; transition: opacity .2s, translate .25s var(--bf-ease), visibility .2s; }
.bf-drop::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.bf-drop__in { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 8px; width: 720px; padding: 8px; border: 1px solid var(--bf-line); border-radius: 18px; background: var(--bf-surface); box-shadow: 0 24px 60px -20px rgba(24, 24, 26, .25); }
.bf-drop--sm .bf-drop__in { width: 640px; }
.bf-drop__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; align-content: start; }
.bf-drop__link { display: flex; gap: 12px; padding: 10px; border-radius: 12px; color: var(--bf-text); transition: background-color .2s; }
.bf-drop__link:hover { background: var(--bf-surface-2); }
.bf-drop__ico { display: grid; place-items: center; flex: 0 0 auto; width: 36px; height: 36px; border-radius: 10px; background: var(--bf-brand-a); color: var(--bf-text); }
.bf-drop__t { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; }
.bf-drop__d { display: block; margin-top: 2px; color: var(--bf-dim); font-size: 13px; line-height: 1.4; }
.bf-drop__aside { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 14px; background: #18181a; color: #fafafa; }
.bf-drop__aside .bf-drop__d { color: rgba(250, 250, 250, .65); }
.bf-drop__more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 12px; color: var(--bf-brand); font-size: 14px; font-weight: 600; }
.bf-drop__aside--list { gap: 2px; background: var(--bf-surface-2); color: var(--bf-text); }
.bf-drop__label { margin-bottom: 6px; color: var(--bf-dim); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.bf-drop__aside--list a { display: flex; align-items: center; gap: 10px; padding: 8px; margin: 0 -8px; border-radius: 10px; color: var(--bf-muted); font-size: 14.5px; font-weight: 500; }
.bf-drop__aside--list a:hover { background: var(--bf-surface); color: var(--bf-text); }
@media (min-width: 1081px) {
	.bf-has-drop:hover .bf-drop, .bf-has-drop.is-open .bf-drop, .bf-has-drop:focus-within .bf-drop { opacity: 1; visibility: visible; translate: -50% 0; }
}
.bf-nav__actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.bf-nav__account { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--bf-line-2); border-radius: 50%; color: var(--bf-muted); transition: .2s; }
.bf-nav__account:hover { color: var(--bf-text); border-color: var(--bf-text); }
.bf-burger { display: none; position: relative; width: 42px; height: 42px; border: 1px solid var(--bf-line-2) !important; border-radius: 50%; }
.bf-burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; border-radius: 2px; background: var(--bf-text); transition: transform .3s var(--bf-ease), top .3s var(--bf-ease); }
.bf-burger span:first-child { top: 16px; }
.bf-burger span:last-child { top: 24px; }
.bf-menu-open .bf-burger span:first-child { top: 20px; transform: rotate(45deg); }
.bf-menu-open .bf-burger span:last-child { top: 20px; transform: rotate(-45deg); }
.bf-menu__mobile-cta { display: none; }
@media (max-width: 1080px) {
	.bf-burger { display: block; }
	.bf-nav { justify-content: space-between; }
	.bf-menu { position: fixed; inset: 0; z-index: -1; display: block; padding: calc(var(--bf-menu-top, var(--bf-header-h)) + 12px) var(--bf-pad) 40px; background: var(--bf-bg); overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
	.bf-menu-open .bf-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bf-bg); }
	.bf-menu-open .bf-menu { opacity: 1; visibility: visible; }
	.bf-menu-open body, body.bf-menu-open { overflow: hidden; }
	.bf-menu__list { flex-direction: column; align-items: stretch; gap: 0; padding: 0; border: 0; border-radius: 0; background: none; }
	.bf-menu__item { border-bottom: 1px solid var(--bf-line); }
	.bf-menu__link { width: 100%; height: 58px; padding: 0; border-radius: 0; justify-content: space-between; font-size: 19px; color: var(--bf-text); }
	.bf-menu__link:hover, .bf-has-drop.is-open > .bf-menu__link { background: none; }
	.bf-drop { position: static; translate: none; opacity: 1; visibility: visible; display: none; }
	.bf-has-drop.is-open .bf-drop { display: block; }
	.bf-drop::before { display: none; }
	.bf-drop__in, .bf-drop--sm .bf-drop__in { width: auto; grid-template-columns: 1fr; padding: 0 0 14px; border: 0; background: none; box-shadow: none; }
	.bf-drop__grid { grid-template-columns: 1fr; }
	.bf-drop__link { padding: 9px 0; }
	.bf-menu__mobile-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
	.bf-nav__try { display: none; }
}
@media (max-width: 480px) { .bf-nav__actions .bf-btn--primary { display: none; } }

/* Footer */
.bf-dark { --bf-bg: #18181a; --bf-surface: #212124; --bf-surface-2: #26262a; --bf-line: rgba(255, 255, 255, .08); --bf-line-2: rgba(255, 255, 255, .14); --bf-text: #fafafa; --bf-muted: rgba(250, 250, 250, .68); --bf-dim: rgba(250, 250, 250, .54); --bf-brand-a: rgba(255, 213, 62, .12); background-color: var(--bf-bg); color: var(--bf-text); }
.bf-footer { padding-top: 8px; margin-top: 64px; font-size: 16px; line-height: 1.55; }
.bf-footer p { margin: 0; }
.bf-foot-news { display: grid; grid-template-columns: 1fr minmax(0, 480px); align-items: center; gap: 28px; margin: 56px 0; padding: clamp(24px, 3vw, 36px); border: 1px solid var(--bf-line); border-radius: 24px; background: var(--bf-surface); }
.bf-foot-news__title { margin: 0; font-family: var(--bf-head); font-size: clamp(24px, 2.4vw, 30px); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; color: var(--bf-text); }
.bf-foot-news p { margin-top: 6px; color: var(--bf-muted); }
.bf-news { display: flex; gap: 8px; min-width: 0; }
.bf-news input { width: 100%; height: 50px; padding: 0 16px; border: 1px solid var(--bf-line-2); border-radius: 999px; background: var(--bf-surface); color: var(--bf-text); font: inherit; font-size: 15px; transition: border-color .2s, box-shadow .2s; }
.bf-news input::placeholder { color: var(--bf-dim); }
.bf-news input:focus { outline: 0; border-color: var(--bf-text); box-shadow: 0 0 0 3px var(--bf-brand-a); }
.bf-news .bf-btn { height: 50px; }
.bf-news__notice { grid-column: 1 / -1; margin-top: -12px !important; color: var(--bf-brand); font-weight: 600; }
@media (max-width: 860px) { .bf-foot-news { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .bf-news { flex-direction: column; } }
.bf-foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); gap: 36px; }
.bf-foot-brand p { max-width: 340px; margin-top: 16px; color: var(--bf-muted); font-size: 15px; }
.bf-social { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px !important; }
.bf-social a { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--bf-line-2); border-radius: 50%; color: var(--bf-muted); transition: .2s; }
.bf-social a:hover { background: var(--bf-brand); border-color: var(--bf-brand); color: var(--bf-brand-ink); }
.bf-foot-col__title { margin: 0 0 14px; color: var(--bf-dim); font-family: var(--bf-body); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.bf-foot-col li + li { margin-top: 4px; }
.bf-foot-col a, .bf-foot-bottom a { display: inline-block; padding: 5px 0; color: var(--bf-text); font-size: 15px; opacity: .85; }
.bf-foot-col a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.bf-foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding: 24px 0 32px; border-top: 1px solid var(--bf-line); color: var(--bf-dim); font-size: 14px; }
@media (max-width: 1000px) {
	.bf-foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bf-foot-brand { grid-column: 1 / -1; }
}
