/*
Theme Name: BarbaChart
Theme URI: https://www.barbachart.com/
Author: Claudio Barba
Author URI: https://www.barbachart.com/
Description: Black-and-white editorial theme for BarbaChart: animated data stories, custom data videos and tools.
Version: 1.0.4
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: barbachart
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */
:root {
	--ink: #0e0e0e;
	--ink-2: #2a2927;
	--paper: #f4f2ed;
	--white: #ffffff;
	--line: #d9d6ce;
	--line-dark: #2f2e2b;
	--muted: #6b6862;
	--signal: #ff4d1f;          /* the one colour: data highlights only */

	--font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
	--font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
	--font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

	--wrap: 1200px;
	--wrap-text: 720px;
	--gutter: clamp(20px, 4vw, 48px);
	--space: clamp(64px, 9vw, 128px);
	--radius: 2px;
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

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

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 18px;
	line-height: 1.6;
	font-variation-settings: "wdth" 100;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--signal); }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.02em;
	margin: 1.6em 0 0.5em;
	font-variation-settings: "wdth" 90;
}
h1 { font-size: clamp(40px, 6.4vw, 88px); font-variation-settings: "wdth" 75; letter-spacing: -0.03em; }
h2 { font-size: clamp(30px, 4vw, 52px); font-variation-settings: "wdth" 80; }
h3 { font-size: clamp(21px, 2vw, 26px); letter-spacing: -0.01em; }
h4 { font-size: 19px; }

p { margin: 0 0 1.1em; }

hr, .wp-block-separator {
	border: 0;
	border-top: 1px solid var(--line);
	margin: var(--space) 0;
}

code, pre, kbd { font-family: var(--font-mono); font-size: 0.86em; }
pre { background: var(--white); border: 1px solid var(--line); padding: 16px 18px; overflow-x: auto; }

blockquote {
	margin: 2em 0;
	padding: 0 0 0 24px;
	border-left: 3px solid var(--ink);
	font-size: 1.15em;
}

table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { font-family: var(--font-mono); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }

::selection { background: var(--ink); color: var(--paper); }

:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; z-index: 1000;
	top: 8px; left: 8px; padding: 10px 14px; background: var(--ink); color: var(--paper);
}

/* Small mono label used across the site */
.bc-kicker, .bc-meta {
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--muted);
}
.bc-kicker { display: block; margin: 0 0 18px; }
p.bc-kicker { font-size: 12px !important; color: var(--muted) !important; max-width: none !important; }
.bc-kicker::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--signal); margin-right: 10px; vertical-align: 1px; }

/* ==========================================================================
   3. Layout
   ========================================================================== */
.bc-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.site-main { min-height: 60vh; }

/* ==========================================================================
   4. Header
   ========================================================================== */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(244, 242, 237, 0.92);
	backdrop-filter: saturate(140%) blur(8px);
	-webkit-backdrop-filter: saturate(140%) blur(8px);
	border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.site-header__inner {
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
	min-height: 72px;
}

.site-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.site-brand:hover { color: var(--ink); }
.site-brand .custom-logo,
.site-brand img {
	max-height: 40px; width: auto;
	filter: grayscale(1) contrast(1.15);       /* logo always black and white */
	mix-blend-mode: multiply;                    /* white logo backgrounds vanish on paper */
}
.site-brand__name {
	font-family: var(--font-display);
	font-weight: 900; font-size: 22px; letter-spacing: -0.02em;
	font-variation-settings: "wdth" 85;
}

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.site-nav li { position: relative; }
.site-nav a {
	display: block; padding: 10px 14px;
	font-size: 15px; font-weight: 600; text-decoration: none;
}
.site-nav .current-menu-item > a,
.site-nav .current-menu-parent > a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* dropdowns */
.site-nav .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 260px;
	display: block; padding: 8px 0;
	background: var(--white); border: 1px solid var(--ink);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .15s, transform .15s, visibility .15s;
}
.site-nav li:hover > .sub-menu,
.site-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.site-nav .sub-menu a { padding: 9px 16px; font-weight: 500; font-size: 14px; }
.site-nav .sub-menu a:hover { background: var(--paper); color: var(--ink); }
.site-nav .menu-item-has-children > a::after {
	content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px;
	border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg) translateY(-3px);
}

/* the last menu item with class "bc-cta" becomes a button */
.site-nav .bc-cta > a,
.site-header__cta {
	background: var(--ink); color: var(--paper); margin-left: 8px; padding: 10px 18px;
}
.site-nav .bc-cta > a:hover,
.site-header__cta:hover { background: var(--signal); color: var(--ink); }

.nav-toggle {
	display: none; background: none; border: 1px solid var(--ink); border-radius: var(--radius);
	padding: 9px 12px; font: 600 14px var(--font-body); color: var(--ink); cursor: pointer;
}

@media (max-width: 960px) {
	.nav-toggle { display: inline-block; }
	.site-nav {
		position: absolute; left: 0; right: 0; top: 100%;
		background: var(--paper); border-bottom: 1px solid var(--ink);
		display: none; padding: 8px var(--gutter) 20px;
	}
	.site-nav.is-open { display: block; }
	.site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
	.site-nav a { padding: 12px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
	.site-nav .sub-menu {
		position: static; opacity: 1; visibility: visible; transform: none;
		border: 0; background: transparent; padding: 0 0 0 16px; min-width: 0;
	}
	.site-nav .menu-item-has-children > a::after { display: none; }
	.site-nav .bc-cta > a { margin: 14px 0 0; text-align: center; border: 0; }
}

/* ==========================================================================
   5. Buttons
   ========================================================================== */
.bc-btn,
.wp-block-button__link,
.wp-element-button,
button[type="submit"], input[type="submit"] {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 15px 26px;
	background: var(--ink); color: var(--paper);
	border: 1.5px solid var(--ink); border-radius: var(--radius);
	font: 700 16px/1.2 var(--font-body);
	text-decoration: none; cursor: pointer;
	transition: background .15s, color .15s, transform .15s;
}
.bc-btn:hover,
.wp-block-button__link:hover,
button[type="submit"]:hover, input[type="submit"]:hover {
	background: var(--signal); border-color: var(--signal); color: var(--ink);
}
.wp-block-button.is-style-outline > .wp-block-button__link,
.bc-btn--ghost {
	background: transparent; color: var(--ink); border: 1.5px solid var(--ink);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover,
.bc-btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }

/* ==========================================================================
   6. Page content (block editor output)
   ========================================================================== */
.entry { padding: clamp(48px, 7vw, 96px) 0 var(--space); }
.entry-header { margin-bottom: 40px; }
.entry-header h1 { margin: 0 0 16px; }
.entry-header .bc-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; }

.entry-content > * { max-width: var(--wrap-text); margin-left: auto; margin-right: auto; }
.entry-content > .alignwide,
.entry-content > .wp-block-columns,
.entry-content > .wp-block-embed.is-type-video,
.entry-content > .wp-block-gallery { max-width: 960px; }
.entry-content > .alignfull { max-width: none; }
.entry-content h2 { margin-top: 1.8em; }
.entry-content a { text-decoration: underline; }
.entry-content ul, .entry-content ol { padding-left: 1.2em; }
.entry-content li { margin: 0.35em 0; }
.entry-content figure { margin: 2em auto; }
.entry-content figcaption,
.wp-element-caption { font-family: var(--font-mono); font-size: 13px; color: var(--muted); margin-top: 10px; }

/* Landing pages (Home, Services, Portfolio) are laid out by the blocks themselves */
.is-landing .entry { padding: 0; }
.is-landing .entry-content > * { max-width: none; }
.is-landing .entry-content > :not(.bc-section):not(.bc-hero):not(.bc-band) {
	max-width: var(--wrap); padding-left: var(--gutter); padding-right: var(--gutter);
}

/* ==========================================================================
   7. Embeds (responsive, incl. 9:16 Shorts)
   ========================================================================== */
.wp-block-embed { margin: 0 0 16px; }
.wp-block-embed__wrapper { position: relative; }
.wp-has-aspect-ratio .wp-block-embed__wrapper::before { content: ""; display: block; padding-top: 56.25%; }
.wp-embed-aspect-16-9 .wp-block-embed__wrapper::before { padding-top: 56.25%; }
.wp-embed-aspect-4-3 .wp-block-embed__wrapper::before { padding-top: 75%; }
.wp-embed-aspect-1-1 .wp-block-embed__wrapper::before { padding-top: 100%; }
.wp-embed-aspect-9-16 .wp-block-embed__wrapper::before { padding-top: 177.78%; }
.wp-has-aspect-ratio iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.wp-block-embed iframe { background: var(--ink); }
.wp-block-video video { width: 100%; background: var(--ink); }

/* ==========================================================================
   8. Landing sections (apply these classes to Group blocks)
   ========================================================================== */
/* full-bleed sections with a centred content column */
.bc-section, .bc-band, .bc-hero {
	display: grid;
	grid-template-columns: minmax(var(--gutter), 1fr) minmax(0, calc(var(--wrap) - 2 * var(--gutter))) minmax(var(--gutter), 1fr);
}
.bc-section > *, .bc-band > *, .bc-hero > * { grid-column: 2; margin-left: 0; margin-right: 0; min-width: 0; }
.bc-section { padding: var(--space) 0; }
.bc-section h2, .bc-band h2 { text-wrap: balance; }
.bc-section + .bc-section { border-top: 1px solid var(--line); }
.bc-section h2 { margin-top: 0; max-width: 18ch; }
.bc-section h2 + p, .bc-lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 60ch; }

.bc-section--white { background: var(--white); }

/* black band */
.bc-band { background: var(--ink); color: var(--paper); padding: var(--space) 0; }
.bc-band a { color: var(--paper); }
.bc-band h2 { color: var(--paper); margin-top: 0; max-width: 16ch; }
.bc-band p { color: #c9c6be; }
.bc-band .wp-block-button__link { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.bc-band .wp-block-button__link:hover { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.bc-band .is-style-outline > .wp-block-button__link { background: transparent; color: var(--paper); border-color: var(--paper); }
.bc-band .bc-kicker { color: #a7a39a; }

/* ---------- hero ---------- */
.bc-hero { padding: clamp(56px, 8vw, 112px) 0 clamp(56px, 7vw, 96px); border-bottom: 1px solid var(--ink); }
.bc-hero .wp-block-columns { gap: clamp(32px, 5vw, 72px); align-items: center; }
.bc-hero h1 { margin: 0 0 24px; max-width: 11ch; }
.bc-hero h1 em, .bc-section h2 em { font-style: normal; color: var(--signal); }
.bc-hero p { font-size: clamp(19px, 1.7vw, 22px); max-width: 34ch; color: var(--ink-2); }

/* ---------- facts strip ---------- */
.bc-facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.bc-facts > * { padding: 22px 20px; border-left: 1px solid var(--line); margin: 0; }
.bc-facts > *:first-child { border-left: 0; padding-left: 0; }
.bc-facts strong { color: var(--ink); display: block; font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 34px); font-weight: 800; letter-spacing: -0.02em; font-variation-settings: "wdth" 80; line-height: 1.1; }
.bc-facts span, .bc-facts p { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
@media (max-width: 760px) {
	.bc-facts { grid-template-columns: 1fr 1fr; }
	.bc-facts > *:nth-child(3) { border-left: 0; padding-left: 0; }
	.bc-facts > *:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- numbered steps ---------- */
.bc-steps { counter-reset: bcstep; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 48px !important; }
.bc-steps > * { counter-increment: bcstep; padding: 28px 28px 8px 0; margin: 0; border-top: 2px solid var(--ink); }
.bc-steps > * + * { padding-left: 28px; border-left: 1px solid var(--line); }
.bc-steps > *::before {
	content: counter(bcstep, decimal-leading-zero);
	display: block; margin-bottom: 18px;
	font-family: var(--font-mono); font-size: 13px; color: var(--signal); font-weight: 500;
}
.bc-steps h3 { margin: 0 0 10px; }
.bc-steps p { color: var(--ink-2); font-size: 17px; }
@media (max-width: 860px) {
	.bc-steps { grid-template-columns: 1fr; }
	.bc-steps > * + * { padding-left: 0; border-left: 0; }
}

/* ---------- cards (audiences, tools) ---------- */
.bc-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--ink); border: 1px solid var(--ink); margin-top: 48px !important; }
.bc-cards > * { background: var(--paper); padding: 32px 28px; margin: 0 !important; }
.bc-section--white .bc-cards > * { background: var(--white); }
.bc-cards h3 { margin: 0 0 12px; }
.bc-cards p { font-size: 16px; color: var(--ink-2); margin-bottom: 0.8em; }
.bc-cards a { font-weight: 700; text-decoration: none; }
.bc-cards a::after { content: " →"; }
@media (max-width: 860px) { .bc-cards { grid-template-columns: 1fr; } }

/* ---------- work grid ---------- */
.bc-work { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 28px; margin-top: 48px !important; }
.bc-work > * { margin: 0 !important; }
.bc-work h3 { font-size: 20px; margin: 14px 0 6px; }
.bc-work p { font-size: 15px; color: var(--muted); margin: 0; }
.bc-work .bc-meta { display: block; margin-top: 4px; }
@media (max-width: 960px) { .bc-work { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .bc-work { grid-template-columns: 1fr; } }

/* vertical videos: a row of portrait cards */
.bc-shorts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px !important; }
.bc-shorts > * { margin: 0 !important; }
.bc-shorts h3 { font-size: 17px; margin: 12px 0 4px; }
.bc-shorts p { font-size: 14px; color: var(--muted); margin: 0; }
.bc-shorts .wp-block-video video { aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 960px) { .bc-shorts { grid-template-columns: 1fr 1fr; } }

/* columns from the block editor */
.wp-block-columns { display: flex; flex-wrap: wrap; gap: 32px; }
.wp-block-column { flex: 1 1 0; min-width: 0; }
.wp-block-column[style*="flex-basis"] { flex-grow: 0; }
@media (min-width: 782px) { .wp-block-columns { flex-wrap: nowrap; } }
@media (max-width: 781px) { .wp-block-column { flex-basis: 100% !important; } }

/* price / FAQ */
.bc-price { font-family: var(--font-display); font-weight: 800; font-size: clamp(44px, 6vw, 80px); letter-spacing: -0.03em; font-variation-settings: "wdth" 75; line-height: 1; margin: 0 0 8px; }
.bc-faq h3 { font-size: 20px; margin: 32px 0 8px; }
.bc-faq p { color: var(--ink-2); }

/* ==========================================================================
   9. Animated bar race (hero visual) — built by assets/js/barbachart.js
   ========================================================================== */
.bc-race {
	position: relative; background: var(--white); border: 1px solid var(--ink);
	padding: 24px 24px 18px; min-height: 340px;
}
.bc-race__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 18px; }
.bc-race__title { font-weight: 700; font-size: 15px; line-height: 1.3; }
.bc-race__year { font-family: var(--font-display); font-weight: 900; font-size: 56px; line-height: 0.9; letter-spacing: -0.03em; font-variation-settings: "wdth" 70; }
.bc-race__rows { position: relative; }
.bc-race__row {
	position: absolute; left: 0; right: 0; height: 44px;
	display: grid; grid-template-columns: 112px 1fr; align-items: center; gap: 12px;
	transition: transform .9s cubic-bezier(.65,0,.35,1);
}
.bc-race__label { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bc-race__track { position: relative; height: 32px; }
.bc-race__bar { height: 100%; background: var(--ink); width: 0; transition: width .9s cubic-bezier(.65,0,.35,1); }
.bc-race__row.is-hot .bc-race__bar { background: var(--signal); }
.bc-race__val { position: absolute; top: 50%; transform: translateY(-50%); margin-left: 8px; font-family: var(--font-mono); font-size: 13px; font-weight: 500; transition: left .9s cubic-bezier(.65,0,.35,1); }
.bc-race__src { margin-top: 14px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) {
	.bc-race__row, .bc-race__bar, .bc-race__val { transition: none; }
}

/* ==========================================================================
   10. Blog index / archive
   ========================================================================== */
.bc-archive-head { padding: clamp(48px, 7vw, 96px) 0 32px; border-bottom: 1px solid var(--ink); }
.bc-archive-head h1 { margin: 0; }
.bc-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 32px; padding: 56px 0 var(--space); }
.bc-post-card a { text-decoration: none; }
.bc-post-card__img { aspect-ratio: 16 / 10; background: var(--ink); overflow: hidden; margin-bottom: 16px; }
.bc-post-card__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.15); transition: transform .4s; }
.bc-post-card:hover .bc-post-card__img img { transform: scale(1.03); }
.bc-post-card__img--empty { display: flex; align-items: flex-end; padding: 16px; color: var(--paper); font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; background:
	linear-gradient(to top, var(--ink) 0 100%); }
.bc-post-card h2 { font-size: 22px; margin: 8px 0 8px; font-variation-settings: "wdth" 90; letter-spacing: -0.01em; }
.bc-post-card p { font-size: 16px; color: var(--muted); }
@media (max-width: 960px) { .bc-posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .bc-posts { grid-template-columns: 1fr; } }

.pagination, .nav-links { display: flex; gap: 8px; justify-content: center; padding-bottom: var(--space); font-family: var(--font-mono); }
.nav-links a, .nav-links span { padding: 8px 14px; border: 1px solid var(--ink); text-decoration: none; }
.nav-links .current { background: var(--ink); color: var(--paper); }

/* post footer CTA */
.bc-post-cta { max-width: var(--wrap-text); margin: 56px auto 0; padding: 32px; background: var(--ink); color: var(--paper); }
.bc-post-cta h2 { color: var(--paper); font-size: 28px; margin: 0 0 10px; }
.bc-post-cta p { color: #c9c6be; }
.bc-post-cta .bc-btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.bc-post-cta .bc-btn:hover { background: var(--signal); border-color: var(--signal); }

/* ==========================================================================
   11. Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: #c9c6be; padding: 72px 0 32px; font-size: 15px; }
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { color: var(--signal); }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h2 { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: #8d897f; margin: 0 0 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 8px; }
.site-footer__brand .site-brand img { filter: grayscale(1) invert(1) contrast(1.1); mix-blend-mode: screen; }
.site-footer__brand p { max-width: 34ch; margin-top: 18px; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-dark); font-family: var(--font-mono); font-size: 12px; color: #8d897f; }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }

/* ==========================================================================
   12. Forms (Contact Form 7 and default)
   ========================================================================== */
input[type="text"], input[type="email"], input[type="url"], input[type="tel"], input[type="search"], select, textarea {
	width: 100%; padding: 14px 16px;
	background: var(--white); color: var(--ink);
	border: 1.5px solid var(--ink); border-radius: var(--radius);
	font: 400 17px/1.4 var(--font-body);
}
textarea { min-height: 160px; }
label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.wpcf7-form p { margin-bottom: 20px; }
.wpcf7-not-valid-tip { color: var(--signal); font-size: 14px; }
.wpcf7-response-output { border: 1.5px solid var(--ink) !important; margin: 16px 0 0 !important; padding: 12px 16px !important; }

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

/* ==========================================================================
   13. WordPress core classes
   ========================================================================== */
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { margin-left: auto; margin-right: auto; }
.has-text-align-center { text-align: center; }
.sticky, .bypostauthor, .gallery-caption { }
.wp-block-image img { height: auto; }
.wp-block-table { overflow-x: auto; }
.wp-block-quote { border-left: 3px solid var(--ink); padding-left: 24px; }
.has-medium-font-size { font-size: clamp(19px, 1.7vw, 22px) !important; line-height: 1.5; }

/* facts strip sits directly under the hero */
.bc-section--facts { padding: 0; }
.bc-section--facts + .bc-section { border-top: 0; }
.bc-pricing { border-top: 1px solid var(--line); padding-top: 40px; }
.bc-pricing .wp-block-buttons { justify-content: flex-end; }
@media (max-width: 781px) { .bc-pricing .wp-block-buttons { justify-content: flex-start; } }

/* polish */
.entry-content .wp-block-button__link, .bc-btn, .site-nav a { text-decoration: none !important; }
.bc-work figure, .bc-shorts figure { margin: 0; }
.are-vertically-aligned-center { align-items: center; }
.are-vertically-aligned-bottom { align-items: flex-end; }
.are-vertically-aligned-top { align-items: flex-start; }
.bc-band + .site-footer, .bc-band:last-child { border-bottom: 1px solid var(--line-dark); }

/* contact page */
.bc-steps--list { grid-template-columns: 1fr; margin-top: 16px !important; }
.bc-steps--list > *, .bc-steps--list > * + * { position: relative; border-top: 1px solid var(--line); border-left: 0; padding: 16px 0 16px 48px; }
.bc-steps--list > *::before { position: absolute; left: 0; top: 19px; margin: 0; }
.bc-contact-card { background: var(--white); border: 1px solid var(--ink); padding: 28px; }
.bc-contact-card p { font-size: 16px; }
.bc-price a { text-decoration: none !important; font-size: clamp(26px, 3.2vw, 42px); letter-spacing: -0.02em; word-break: break-word; }
.bc-price a:hover { color: var(--signal); }

/* portfolio: shorts row adapts to the number of videos */
.bc-shorts { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

/* logo: badge wordmark, black on paper; inverted (white badge) on the black footer */
.site-brand img { height: 34px; max-height: none; width: auto; }
.site-footer__brand .site-brand img { height: 40px; filter: invert(1); mix-blend-mode: normal; }


/* ==========================================================================
   14. Quote form (Contact Form 7)
   ========================================================================== */
.bc-form .wpcf7-form > p { margin: 0 0 22px; }
.bc-form label, .bc-form legend { display: block; font-weight: 700; font-size: 15px; margin-bottom: 0; }
.bc-form label .wpcf7-form-control-wrap, .bc-form legend + .wpcf7-form-control-wrap { display: block; margin-top: 8px; }
.bc-form input[type="date"] {
	width: 100%; padding: 14px 16px; background: var(--white); color: var(--ink);
	border: 1.5px solid var(--ink); border-radius: var(--radius); font: 400 17px/1.4 var(--font-body);
}
.bc-form select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.bc-form input:focus, .bc-form select:focus, .bc-form textarea:focus { outline: 2px solid var(--signal); outline-offset: 1px; }
.bc-form fieldset { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.bc-form legend { padding: 0; margin-bottom: 10px; }
.bc-form .wpcf7-checkbox { display: flex; flex-wrap: wrap; gap: 8px; }
.bc-form .wpcf7-list-item { margin: 0; }
.bc-form .wpcf7-checkbox label {
	display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
	font-weight: 500; font-size: 15px; padding: 9px 14px;
	background: var(--white); border: 1.5px solid var(--ink); border-radius: var(--radius);
}
.bc-form .wpcf7-checkbox label:has(input:checked) { background: var(--ink); color: var(--paper); }
.bc-form input[type="checkbox"] { accent-color: var(--signal); width: 16px; height: 16px; margin: 0; }
.bc-form .wpcf7-acceptance label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 15px; color: var(--ink-2); }
.bc-form .wpcf7-acceptance input { margin-top: 4px; }
.bc-form .wpcf7-submit { margin-top: 4px; padding: 16px 32px; font-size: 17px; }
.bc-form .wpcf7-spinner { margin: 0 0 0 12px; vertical-align: middle; }
.bc-form .wpcf7-not-valid { border-color: var(--signal) !important; }
.bc-form .wpcf7 form.sent .wpcf7-response-output { background: var(--ink); color: var(--paper); border-color: var(--ink) !important; }
.bc-contact-card a strong { font-size: 19px; }
