/*
Theme Name: BYE Commercial
Theme URI: https://brianyoungelectric.com/
Author: MediaBus Marketing
Description: Custom block theme for Brian Young Electric (no page builder needed). Commercial-first. Black, white, candy apple red and tan. Comes with its companion plugin, BYE Site Core (installs with one click from the dashboard). WooCommerce-ready.
Version: 2.2.0
Requires at least: 6.8
Tested up to: 7.1
Requires PHP: 8.1
License: Proprietary
Text Domain: bye
*/

/* ==========================================================================
   Brian Young Electric theme styles. This file holds the complete stylesheet:
   1. Self-hosted fonts (files in assets/fonts/)
   2. Site styles: tokens, layout, header, navigation, hero, sections, cards,
      forms, footer, responsive rules
   Colors and type sizes also live in theme.json so the block editor matches.
   ========================================================================== */

/* 1. Fonts ---------------------------------------------------------------- */
/* Barlow, Barlow Condensed and Archivo, self-hosted (SIL Open Font License, see fonts/OFL-LICENSE.txt). No third-party font requests. */
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: italic; font-weight: 700; font-display: swap; src: url("assets/fonts/barlow-condensed-latin-700-italic.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 800; font-display: swap; src: url("assets/fonts/barlow-condensed-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: italic; font-weight: 800; font-display: swap; src: url("assets/fonts/barlow-condensed-latin-800-italic.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: italic; font-weight: 400; font-display: swap; src: url("assets/fonts/barlow-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: italic; font-weight: 600; font-display: swap; src: url("assets/fonts/barlow-latin-600-italic.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: italic; font-weight: 700; font-display: swap; src: url("assets/fonts/barlow-latin-700-italic.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/barlow-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url("assets/fonts/archivo-latin-standard-normal.woff2") format("woff2-variations"), url("assets/fonts/archivo-latin-standard-normal.woff2") format("woff2"); }

/* 2. Site styles ---------------------------------------------------------- */
/* ==========================================================================
   BYE Commercial
   Palette: true black, white, candy apple red (#D10D17) with lighter and
   darker shades, tan accents. The one bold move: heavy condensed italic
   headlines with a hard offset shadow, echoing the logo lettering.
   ========================================================================== */

:root {
	--black: #000;
	--white: #fff;
	--red: #D10D17;        /* white text on it: 5.5:1 */
	--red-light: #E8333B;
	--red-dark: #A50D14;   /* white text: 7.9:1 */
	--red-deep: #7A0A0F;
	--red-tint: #FDE3E4;
	--tan: #D2B48C;
	--tan-light: #EFE3CF;
	--tan-paper: #F7F1E6;
	--tan-dark: #8A6A42;   /* on white: 5.0:1 */
	--tan-deep: #6E5536;
	--gray: #3B3B3B;
	--rule: #D9CDB8;

	--font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
	--font-body: Barlow, "Helvetica Neue", Arial, sans-serif;
	/* Subheads: a wide (expanded) sans, to sit between the condensed headlines and the body text. */
	--font-wide: Archivo, "Helvetica Neue", Arial, sans-serif;

	--wrap: 1160px;
	--measure: 68ch;
	--gutter: clamp(16px, 4vw, 32px);
	--space-1: .5rem;
	--space-2: 1rem;
	--space-3: 1.5rem;
	--space-4: 2.5rem;
	--space-5: 4rem;
	--space-6: 6rem;
}

/* ---- Base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
	margin: 0;
	background: var(--white);
	color: var(--black);
	font-family: var(--font-body);
	font-size: 1.125rem;
	line-height: 1.6;
	text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: var(--red-dark); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--red-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.bye-hero :focus-visible, .bye-footer :focus-visible, .bye-topbar :focus-visible, .bye-cta-band :focus-visible, .bye-mobilebar :focus-visible { outline-color: var(--tan); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.05; margin: 0 0 var(--space-2); letter-spacing: .005em; }
h2 { font-size: clamp(2rem, 3.4vw, 2.75rem); font-weight: 800; font-style: italic; }
h3 { font-size: 1.5rem; font-weight: 700; }
p, ul, ol, dl, blockquote { margin: 0 0 var(--space-3); }
.bye-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.bye-skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--white); color: var(--black); padding: .75rem 1rem; font-weight: 600; }
.bye-skip:focus { left: 1rem; top: 1rem; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Buttons ----------------------------------------------------------- */
.bye-btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 48px; padding: .7rem 1.4rem;
	font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: .01em;
	text-decoration: none; border: 2px solid transparent; border-radius: 3px;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.bye-btn--primary { background: var(--red); color: var(--white); border-color: var(--red); }
.bye-btn--primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--white); }
.bye-btn--ghost { background: transparent; color: var(--black); border-color: var(--black); }
.bye-btn--ghost:hover { background: var(--black); color: var(--white); }
.bye-btn--ghost-light { background: transparent; color: var(--white); border-color: var(--white); }
.bye-btn--ghost-light:hover { background: var(--white); color: var(--black); }
.bye-cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: var(--space-3); }

/* ---- Top bar + header -------------------------------------------------- */
.bye-topbar { background: var(--black); color: var(--tan-light); font-size: .9375rem; }
.bye-topbar__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1.5rem; padding-top: .45rem; padding-bottom: .45rem; }
.bye-topbar p { margin: 0; }
.bye-topbar a { color: var(--white); font-weight: 600; text-decoration: none; }
.bye-topbar a:hover { text-decoration: underline; }
.bye-dot { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; background: var(--red-light); margin-right: .5rem; vertical-align: .05em; box-shadow: 0 0 0 3px rgba(232, 51, 59, .25); }

.bye-header { background: var(--white); border-bottom: 4px solid var(--red); position: sticky; top: 0; z-index: 50; }
.bye-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 84px; }
.bye-header__logo { display: block; flex: 0 0 auto; line-height: 0; }
.bye-header__logo img { width: 168px; height: auto; }
.bye-nav { display: flex; align-items: center; gap: 1.25rem; }
.bye-nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .15rem; }
.bye-nav__list > li { position: relative; }
.bye-nav__list a { display: block; padding: .6rem .7rem; color: var(--black); text-decoration: none; font-weight: 600; font-size: 1rem; }
.bye-nav__list > li > a { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; white-space: nowrap; }
.bye-nav__list a:hover, .bye-nav__list .current-menu-item > a, .bye-nav__list .current-menu-ancestor > a { color: var(--red-dark); }
.bye-nav__list .sub-menu { list-style: none; margin: 0; padding: .5rem 0; position: absolute; left: 0; top: 100%; min-width: 290px; background: var(--white); border: 1px solid var(--rule); border-top: 3px solid var(--red); box-shadow: 0 10px 24px rgba(0, 0, 0, .12); display: none; z-index: 60; }
.bye-nav__list .sub-menu a { padding: .45rem 1rem; }
.bye-nav__list li:hover > .sub-menu, .bye-nav__list li:focus-within > .sub-menu, .bye-nav__list li.is-open > .sub-menu { display: block; }
/* After a menu link is chosen, keep its dropdown shut until the pointer leaves the menu. */
.bye-nav.is-resting .bye-nav__list li:hover > .sub-menu, .bye-nav.is-resting .bye-nav__list li:focus-within > .sub-menu { display: none; }
.bye-nav__list > li.menu-item-has-children { display: flex; align-items: center; }
.bye-nav__list > li.menu-item-has-children > a { padding-right: .1rem; }
.bye-subtoggle { display: inline-flex; align-items: center; justify-content: center; width: 26px; min-height: 40px; padding: 0; background: none; border: 0; color: var(--red); font-size: .95rem; cursor: pointer; }
.bye-subtoggle[aria-expanded="true"] { transform: rotate(180deg); }
.bye-nav__phone { display: none; }
.bye-header__actions { display: flex; align-items: center; gap: 1rem; }
.bye-header__phone { color: var(--black); font-weight: 600; text-decoration: none; white-space: nowrap; }
.bye-header__actions .bye-btn { white-space: nowrap; min-height: 44px; font-size: 1.125rem; padding: .5rem 1.1rem; }
.bye-nav-toggle { display: none; }

/* ---- Hero (above the fold) -------------------------------------------- */
.bye-hero { background: var(--black); color: var(--white); padding: var(--space-4) 0 var(--space-5); position: relative; overflow: hidden; }
.bye-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, var(--red) 0 70%, var(--tan) 70% 100%); }
.bye-hero__grid { display: grid; gap: var(--space-4); align-items: center; }
.bye-hero.has-aside .bye-hero__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.bye-hero__title {
	font-weight: 800; font-style: italic; text-transform: uppercase;
	font-size: clamp(2.4rem, 4.6vw, 3.9rem); line-height: .95; letter-spacing: .01em;
	color: var(--white); text-shadow: 3px 3px 0 var(--red-dark), 6px 6px 0 rgba(165, 13, 20, .35);
	margin: 0 0 var(--space-3); max-width: 20ch;
}
.bye-hero__sub { font-size: clamp(1.125rem, 1.6vw, 1.375rem); color: var(--tan-light); max-width: 52ch; margin: 0; }
.bye-hero__aside { display: grid; gap: 1rem; }

.bye-crumbs ol { list-style: none; margin: 0 0 var(--space-2); padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; font-size: .9375rem; color: var(--tan); }
.bye-crumbs li + li::before { content: "/"; margin: 0 .4rem 0 .15rem; color: var(--tan-dark); }
.bye-crumbs a { color: var(--tan); }
.bye-crumbs a:hover { color: var(--white); }

/* The panel schedule card: proof beside the claim. */
.bye-panel { margin: 0; background: var(--tan-paper); color: var(--black); border: 3px solid var(--white); border-radius: 4px; box-shadow: 8px 8px 0 var(--red-dark); }
.bye-panel__head { display: flex; justify-content: space-between; gap: 1rem; background: var(--red); color: var(--white); padding: .55rem 1rem; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.bye-panel__head span:last-child { font-weight: 700; opacity: .9; text-align: right; }
.bye-panel__list { list-style: none; margin: 0; padding: .4rem 0; }
.bye-panel__list li { display: grid; grid-template-columns: 2.4rem 1.6rem 1fr; align-items: center; gap: .5rem; padding: .55rem 1rem; border-bottom: 1px solid var(--rule); font-weight: 600; line-height: 1.35; }
.bye-panel__list li:last-child { border-bottom: 0; }
.bye-panel__num { font-family: var(--font-display); font-weight: 700; color: var(--tan-deep); font-variant-numeric: tabular-nums; }
.bye-panel__breaker { width: 1.6rem; height: .85rem; border: 2px solid var(--black); border-radius: 2px; position: relative; background: var(--white); }
.bye-panel__breaker::after { content: ""; position: absolute; top: 1px; bottom: 1px; left: 1px; width: 45%; background: var(--black); }
.bye-panel__label a { font-weight: 400; font-size: .9375rem; margin-left: .25rem; }
.bye-panel--empty { padding: 1rem; }

/* ---- Content ----------------------------------------------------------- */
.bye-main { padding: var(--space-5) 0 var(--space-6); }
.bye-content { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.bye-content > * { max-width: var(--measure); }
.bye-content > .alignwide, .bye-content > .wp-block-group.alignfull, .bye-content > .bye-band,
.bye-content > .bye-cta-band, .bye-content > .bye-objections, .bye-content > .bye-split, .bye-content > .bye-service-list,
.bye-content > .bye-project__photo, .bye-content > .bye-faq-groups, .bye-content > .bye-boxes, .bye-content > .bye-process, .bye-content > .bye-cols, .bye-content > .bye-photo--banner, .bye-content > .bye-photo--compare, .bye-content > .bye-ph--cards,
.bye-content > .bye-projects, .bye-content > .bye-plans, .bye-content > .wp-block-columns, .bye-content > .bye-form, .bye-content > .bye-empty, .bye-content > .bye-specs, .bye-content > .wp-block-table { max-width: none; }
.bye-content > h2 { margin-top: var(--space-5); }
.bye-content > h2:first-child { margin-top: 0; }
.bye-content > h3 { margin-top: var(--space-4); }
.bye-lede { font-size: 1.375rem; line-height: 1.5; }

/* Answer-first paragraph under each H2: slightly larger so skimmers get the point. */
.bye-content > h2 + p { font-size: 1.1875rem; }

/* Service list: two columns of linked items with rule lines (not cards). */
.bye-service-list { list-style: none; padding: 0; margin: 0 0 var(--space-4); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-4); border-top: 2px solid var(--black); }
.bye-service-list li { padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.bye-service-list li strong:first-child, .bye-service-list li > a:first-child { font-family: var(--font-display); font-size: 1.375rem; font-weight: 700; display: block; line-height: 1.1; margin-bottom: .2rem; }
.bye-service-list a { color: var(--black); text-decoration-color: var(--red); }
.bye-service-list a:hover { color: var(--red-dark); }

/* Bands */
.bye-band { background: var(--tan-paper); padding: var(--space-4) var(--space-4); margin: var(--space-5) 0; border-left: 6px solid var(--tan); }
.bye-band > * { max-width: var(--measure); }
.bye-band > :last-child { margin-bottom: 0; }
.bye-band--dark { background: var(--black); color: var(--white); border-left-color: var(--red); }
.bye-band--dark a { color: var(--tan); }

.bye-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-3) var(--space-4); margin: var(--space-3) 0 var(--space-4); }
.bye-split > * { margin: 0; }
.bye-split h3 { font-size: 1.375rem; margin-bottom: .4rem; }
.bye-split p { margin: 0; }

/* Objections: answered right before the call to action. */
.bye-objections { margin: var(--space-5) 0 0; padding: var(--space-4); background: var(--tan-light); border-top: 6px solid var(--black); }
.bye-objections > h2 { margin-top: 0; }
.bye-objections dl { margin: 0; display: grid; gap: var(--space-3); }
.bye-objections dt { font-family: var(--font-display); font-weight: 700; font-size: 1.375rem; line-height: 1.15; }
.bye-objections dd { margin: .25rem 0 0; max-width: var(--measure); }

/* Red call-to-action band */
.bye-cta-band { background: var(--red); color: var(--white); padding: var(--space-4); margin: 0 0 var(--space-4); }
.bye-cta-band h2 { color: var(--white); margin-top: 0; text-shadow: 2px 2px 0 var(--red-deep); }
.bye-cta-band p { max-width: 60ch; font-size: 1.1875rem; }
.bye-cta-band a:not(.bye-btn) { color: var(--white); }
.bye-cta-band .bye-btn--primary { background: var(--black); border-color: var(--black); }
.bye-cta-band .bye-btn--primary:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.bye-objections + .bye-cta-band { margin-top: 0; }

/* Steps */
.bye-steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 1rem; }
.bye-steps li { counter-increment: step; display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; align-items: start; padding-bottom: 1rem; border-bottom: 1px solid var(--rule); }
.bye-steps li::before { content: counter(step); font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 2.25rem; line-height: 1; color: var(--red); }

/* Sources line under a sourced claim */
.bye-sources { font-size: .9375rem; color: var(--gray); border-left: 3px solid var(--tan); padding-left: .75rem; }

/* FAQ (Details blocks) */
.wp-block-details.bye-faq { border-bottom: 1px solid var(--rule); padding: 1rem 0; margin: 0; }
.wp-block-details.bye-faq:first-of-type { border-top: 2px solid var(--black); }
.wp-block-details.bye-faq summary { font-family: var(--font-display); font-weight: 700; font-size: 1.375rem; line-height: 1.2; cursor: pointer; list-style: none; position: relative; padding-right: 2rem; }
.wp-block-details.bye-faq summary::-webkit-details-marker { display: none; }
.wp-block-details.bye-faq summary::after { content: "+"; position: absolute; right: 0; top: -.1rem; font-size: 1.75rem; color: var(--red); }
.wp-block-details.bye-faq[open] summary::after { content: "\2212"; }
.wp-block-details.bye-faq > :not(summary) { margin-top: .75rem; max-width: var(--measure); }

/* Tables */
.wp-block-table table { border-collapse: collapse; width: 100%; font-size: 1rem; }
.wp-block-table th, .wp-block-table td { border: 1px solid var(--rule); padding: .65rem .8rem; text-align: left; vertical-align: top; }
.wp-block-table thead th { background: var(--black); color: var(--white); font-family: var(--font-display); font-size: 1.125rem; }

/* Projects */
.bye-projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--space-4); margin: var(--space-3) 0 var(--space-4); }
.bye-project h3 { margin: .75rem 0 .25rem; }
.bye-project h3 a { color: var(--black); text-decoration: none; }
.bye-project h3 a:hover { color: var(--red-dark); text-decoration: underline; }
.bye-project__facts { color: var(--tan-deep); font-weight: 600; font-size: 1rem; margin-bottom: .25rem; }
.bye-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0; border-top: 2px solid var(--black); margin-bottom: var(--space-4); }
.bye-specs div { padding: .75rem 0; border-bottom: 1px solid var(--rule); }
.bye-specs dt { font-size: .9375rem; color: var(--tan-deep); }
.bye-specs dd { margin: 0; font-weight: 600; }
.bye-quote { border-left: 6px solid var(--red); padding: .5rem 0 .5rem 1.25rem; font-size: 1.25rem; }
.bye-quote cite { display: block; font-style: normal; font-size: 1rem; color: var(--gray); margin-top: .5rem; }
.bye-filters a { margin-right: .75rem; }
.bye-empty { background: var(--tan-paper); padding: var(--space-4); }

/* Service agreement plans */
.bye-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; border: 2px solid var(--black); margin: var(--space-3) 0 var(--space-4); }
.bye-plan { padding: var(--space-3); border-right: 1px solid var(--rule); }
.bye-plan:last-child { border-right: 0; }
.bye-plan:nth-child(2) { background: var(--tan-paper); }
.bye-plan h3 { font-size: 1.75rem; font-style: italic; font-weight: 800; }
.bye-plan__price { font-weight: 600; color: var(--red-dark); }
.bye-plan ul { padding-left: 1.1rem; margin: 0; }

/* Contact */
.bye-contact__list { list-style: none; padding: 0; }
.bye-contact__list li { padding: .3rem 0; }
.bye-map iframe { width: 100%; height: 360px; border: 2px solid var(--black); }
.bye-columns { columns: 3 12rem; padding-left: 1.1rem; }
.bye-reviews { font-size: 1.1875rem; }

/* Admin-only "missing fact" notes */
.bye-missing { display: inline-block; border: 2px dashed var(--red); background: var(--red-tint); color: var(--red-deep); font-size: .875rem; font-family: var(--font-body); font-style: normal; font-weight: 600; text-transform: none; text-shadow: none; letter-spacing: 0; line-height: 1.4; padding: .2rem .5rem; margin: .1rem 0; }
.bye-missing a { color: var(--red-deep); }

/* Buttons and fields use the site fonts instead of the browser's default (Arial).
   :where() keeps this at zero specificity, so a form plugin's own fonts still win. */
:where(button, input, select, textarea) { font-family: inherit; }

/* ---- Forms ------------------------------------------------------------- */
/* Every rule below is scoped to the built-in form (.bye-form), so a form
   plugin placed in a form slot keeps its own field styling. */
.bye-form { max-width: 760px; }
.bye-form .bye-step { border: 0; border-top: 2px solid var(--black); padding: var(--space-3) 0 var(--space-2); margin: 0 0 var(--space-2); }
.bye-form .bye-step legend { font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 1.75rem; padding: 0 .5rem 0 0; }
.bye-form .bye-field { margin-bottom: 1.1rem; }
.bye-form .bye-field label { display: block; font-weight: 600; margin-bottom: .3rem; }
.bye-form .bye-opt { font-weight: 400; color: var(--gray); }
.bye-form .bye-req { color: var(--red-dark); }
.bye-form .bye-field input[type="text"], .bye-form .bye-field input[type="email"], .bye-form .bye-field input[type="tel"], .bye-form .bye-field input[type="number"], .bye-form .bye-field input[type="date"], .bye-form .bye-field input[type="url"], .bye-form .bye-field select, .bye-form .bye-field textarea {
	width: 100%; min-height: 48px; padding: .6rem .75rem; font: inherit; font-size: 1.0625rem;
	border: 2px solid var(--black); border-radius: 3px; background: var(--white); color: var(--black);
}
.bye-form .bye-field textarea { min-height: 140px; }
.bye-form .bye-field input:focus, .bye-form .bye-field select:focus, .bye-form .bye-field textarea:focus { outline: 3px solid var(--red); outline-offset: 1px; }
.bye-form .bye-field input[type="file"] { font: inherit; padding: .5rem 0; }
.bye-form .bye-field__help { font-size: .9375rem; color: var(--gray); margin: .35rem 0 0; }
.bye-form .bye-field__err { color: var(--red-dark); font-weight: 600; margin: .35rem 0 0; }
.bye-form .has-error input, .bye-form .has-error select, .bye-form .has-error textarea { border-color: var(--red); background: var(--red-tint); }
.bye-form .bye-check { display: flex !important; gap: .6rem; align-items: flex-start; font-weight: 400 !important; }
.bye-form .bye-check input { width: 1.2rem; height: 1.2rem; margin-top: .25rem; flex: 0 0 auto; }
.bye-form__errors { border: 2px solid var(--red); background: var(--red-tint); padding: 1rem 1.25rem; margin-bottom: var(--space-3); }
.bye-form__errors ul { margin: 0; }
.bye-form__privacy { font-size: .9375rem; color: var(--gray); }
.bye-form__urgent { background: var(--black); color: var(--white); padding: .75rem 1rem; }
.bye-form__urgent a { color: var(--tan); }
.bye-form .bye-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.bye-form .bye-stepnav { display: flex; gap: .75rem; margin-top: var(--space-2); }
.bye-form.is-stepped .bye-step[hidden] { display: none; }
.bye-form .bye-progress { font-weight: 600; color: var(--tan-deep); margin-bottom: var(--space-2); }

/* ---- Footer ------------------------------------------------------------ */
.bye-footer { background: var(--black); color: var(--tan-light); padding: var(--space-5) 0 0; border-top: 6px solid var(--red); font-size: 1rem; }
.bye-footer a { color: var(--white); text-decoration-color: var(--tan-dark); }
.bye-footer a:hover { color: var(--tan); }
.bye-footer__grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: var(--space-4); }
.bye-footer__logo img { width: 200px; height: auto; margin-bottom: var(--space-2); }
.bye-footer address { font-style: normal; margin-bottom: var(--space-2); }
.bye-footer__licenses { list-style: none; margin: 0 0 var(--space-2); padding: 0 0 0 .75rem; border-left: 3px solid var(--red); color: var(--white); font-weight: 600; line-height: 1.6; }
.bye-footer__license { font-size: .9375rem; }
.bye-footer__licenses { font-size: .9375rem; }
.bye-nowrap { white-space: nowrap; }
.bye-footer__title { font-size: 1.375rem; font-style: italic; font-weight: 800; color: var(--white); margin-bottom: .75rem; }
.bye-footer__col ul { list-style: none; padding: 0; margin: 0; }
.bye-footer__col li { padding: .2rem 0; }
.bye-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: var(--space-4); padding-top: var(--space-2); padding-bottom: var(--space-3); border-top: 1px solid var(--gray); font-size: .9375rem; }
.bye-footer__base p { margin: 0; }
.bye-footer__base ul { list-style: none; display: flex; flex-wrap: wrap; gap: 1rem; margin: 0; padding: 0; }

.bye-mobilebar { display: none; }

/* ---- WordPress core bits ---------------------------------------------- */
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-block-image figcaption { font-size: .9375rem; color: var(--gray); }
.bye-meta { color: var(--tan-deep); font-size: .9375rem; }

/* ---- Responsive -------------------------------------------------------- */
/* The full menu stays visible down to 626px. Below 1200px it moves to its own
   row under the logo and bid button; below 626px it becomes the Menu button. */
@media (max-width: 1440px) {
	.bye-header__phone { display: none; }
	.bye-nav__list > li > a { padding: .6rem .45rem; font-size: 1.125rem; }
}

/* 626 to 1200px: everything stays on one row. Type and spacing shrink with the
   window, and two-word items may wrap inside their own slot. */
@media (max-width: 1200px) and (min-width: 626px) {
	html { scroll-padding-top: 100px; }
	.bye-header__inner { flex-wrap: nowrap; gap: .6rem; }
	.bye-header__logo img { width: clamp(76px, 11vw, 140px); }
	.bye-nav { flex: 1 1 auto; min-width: 0; justify-content: center; }
	.bye-nav__list { flex-wrap: nowrap; justify-content: space-between; width: 100%; gap: 0; }
	.bye-nav__list > li > a { font-size: clamp(.8125rem, 1.45vw, 1.0625rem); padding: .5rem clamp(.15rem, .5vw, .4rem); white-space: normal; text-align: center; line-height: 1.1; }
	.bye-nav__list > li.menu-item-has-children > a { padding-right: .05rem; }
	.bye-subtoggle { width: clamp(14px, 2vw, 24px); font-size: .8rem; }
	.bye-header__actions .bye-btn { font-size: 1rem; padding: .4rem .8rem; min-height: 40px; }
	.bye-nav__list > li:nth-last-child(-n+2) > .sub-menu { left: auto; right: 0; }
}

/* Below 1024px the bid button moves to a bar fixed at the bottom of the screen. */
@media (max-width: 1023px) and (min-width: 626px) {
	.bye-header__actions { display: none; }
	body { padding-bottom: 72px; }
	.bye-mobilebar { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: var(--black); padding: .5rem; border-top: 3px solid var(--red); }
	.bye-mobilebar .bye-btn { font-size: 1.0625rem; padding: .5rem .5rem; min-height: 48px; text-align: center; }
	.bye-mobilebar .bye-missing { display: none; }
	.bye-mobilebar > .bye-btn:only-of-type { grid-column: 1 / -1; }
}

@media (max-width: 625px) {
	html { scroll-padding-top: 80px; }
	.bye-header__inner { min-height: 72px; gap: .75rem; }
	.bye-header__logo img { width: 140px; }
	.bye-header__actions { display: none; }
	.bye-nav-toggle { display: inline-flex; align-items: center; gap: .5rem; min-height: 48px; padding: .5rem .9rem; background: var(--black); color: var(--white); border: 0; border-radius: 3px; font: 700 1.125rem var(--font-display); cursor: pointer; }
	.bye-nav-toggle__bars, .bye-nav-toggle__bars::before, .bye-nav-toggle__bars::after { display: block; width: 20px; height: 2px; background: currentColor; position: relative; content: ""; }
	.bye-nav-toggle__bars::before { position: absolute; top: -6px; }
	.bye-nav-toggle__bars::after { position: absolute; top: 6px; }
	.bye-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 4px solid var(--red); flex-direction: column; align-items: stretch; padding: .5rem var(--gutter) 1.25rem; max-height: calc(100vh - 110px); overflow-y: auto; box-shadow: 0 12px 24px rgba(0, 0, 0, .15); }
	.bye-nav.is-open { display: flex; }
	.bye-nav__list { flex-direction: column; }
	.bye-nav__list > li, .bye-nav__list > li.menu-item-has-children { border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 1fr auto; }
	.bye-nav__list .sub-menu { position: static; display: none; box-shadow: none; border: 0; border-left: 3px solid var(--red); grid-column: 1 / -1; min-width: 0; padding: 0 0 .5rem; }
	.bye-nav__list li:hover > .sub-menu, .bye-nav__list li:focus-within > .sub-menu { display: none; }
	.bye-nav__list li.is-open > .sub-menu { display: block; }
	.bye-subtoggle { width: 48px; min-height: 48px; font-size: 1.25rem; }
	.bye-nav__list > li.menu-item-has-children > a { padding-right: .7rem; }
	.bye-nav__phone { display: block; padding: .75rem 0 0; font-weight: 700; color: var(--red-dark); }
}

@media (max-width: 960px) {
	.bye-hero.has-aside .bye-hero__grid { grid-template-columns: 1fr; }
	.bye-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
	body { font-size: 1.0625rem; }
	.bye-topbar__creds { display: none; }
	.bye-hero { padding: var(--space-3) 0 var(--space-4); }
	.bye-hero__title { text-shadow: 2px 2px 0 var(--red-dark), 4px 4px 0 rgba(165, 13, 20, .35); }
	.bye-service-list { grid-template-columns: 1fr; }
	.bye-band, .bye-objections, .bye-cta-band { padding: var(--space-3) var(--gutter); margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); }
	.bye-plan { border-right: 0; border-bottom: 1px solid var(--rule); }
	.bye-footer__grid { grid-template-columns: 1fr; }
}
@media (max-width: 625px) {
	body { padding-bottom: 72px; }
	.bye-mobilebar { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: var(--black); padding: .5rem; border-top: 3px solid var(--red); }
	.bye-mobilebar .bye-btn { font-size: 1.0625rem; padding: .5rem .5rem; min-height: 48px; text-align: center; }
	.bye-mobilebar .bye-missing { display: none; }
	.bye-mobilebar > .bye-btn:only-of-type { grid-column: 1 / -1; }
}

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

@media print {
	.bye-topbar, .bye-header, .bye-mobilebar, .bye-footer, .bye-cta-row { display: none !important; }
	.bye-hero { background: none; color: #000; }
	.bye-hero__title { color: #000; text-shadow: none; }
}

/* ---- Site photos, placeholders and before/after slider ----------------- */
.bye-photo { margin: var(--space-3) 0; }
.bye-photo img { display: block; width: 100%; height: auto; border-radius: 3px; }
.bye-photo figcaption { font-size: .9375rem; color: var(--tan-deep); margin-top: .5rem; }

/* Placeholder: a marked-out spot with a shot brief. Only editors (or staging previews) see it. */
.bye-ph__frame { position: relative; display: grid; place-items: center; overflow: hidden; border: 2px dashed var(--tan-dark); border-radius: 4px; color: var(--tan-deep);
	background: repeating-linear-gradient(135deg, var(--tan-paper) 0 14px, var(--tan-light) 14px 15px); }
.bye-ph__body { position: relative; z-index: 2; display: grid; justify-items: center; gap: .15rem; padding: 1rem 1.25rem; text-align: center; background: var(--tan-paper); border-radius: 4px; max-width: 85%; }
.bye-ph__icon { color: var(--red-dark); margin-bottom: .25rem; }
.bye-ph__kind { margin: 0; font-size: .875rem; font-weight: 600; color: var(--tan-deep); }
.bye-ph__label { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 1.375rem; line-height: 1.1; color: var(--black); }
.bye-ph__size { margin: .2rem 0 0; font-size: .875rem; color: var(--tan-deep); font-variant-numeric: tabular-nums; }
.bye-ph__brief { margin-top: .5rem; font-size: .9375rem; }
.bye-ph__brief summary { display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; font-weight: 600; color: var(--red-dark); min-height: 32px; }
.bye-ph__brief dl { margin: .5rem 0 0; padding: .75rem 1rem; background: var(--tan-paper); border-left: 3px solid var(--red); display: grid; gap: .15rem; }
.bye-ph__brief dt { font-weight: 700; color: var(--black); margin-top: .35rem; }
.bye-ph__brief dt:first-child { margin-top: 0; }
.bye-ph__brief dd { margin: 0; color: var(--black); }
.bye-ph__brief p { margin: .5rem 0 0; }


/* Before/after slider (real photos and placeholders). */
.bye-compare { --pos: 50%; position: relative; overflow: hidden; border-radius: 4px; background: var(--black); }
.bye-ph .bye-compare { position: absolute; inset: 0; border-radius: 0; background: none; }
.bye-compare__layer { position: absolute; inset: 0; }
.bye-compare__layer img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.bye-compare__after { clip-path: inset(0 0 0 var(--pos)); }
.bye-compare--ph .bye-compare__layer { background: repeating-linear-gradient(135deg, #3a3a3a 0 14px, #2c2c2c 14px 15px); }
.bye-compare--ph .bye-compare__after { background: repeating-linear-gradient(135deg, var(--tan-paper) 0 14px, var(--tan-light) 14px 15px); }
.bye-compare__tag { position: absolute; top: .75rem; left: .75rem; z-index: 2; padding: .2rem .6rem; background: var(--black); color: var(--white); font: 700 .9375rem var(--font-display); border-radius: 3px; }
.bye-compare__tag--after { left: auto; right: .75rem; background: var(--red); }
.bye-compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 3; width: 4px; margin-left: -2px; background: var(--white); box-shadow: 0 0 0 1px rgba(0, 0, 0, .4); pointer-events: none; }
.bye-compare__handle::after { content: "\2194"; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; display: grid; place-items: center; background: var(--red); color: var(--white); border: 3px solid var(--white); border-radius: 50%; font-size: 1.25rem; line-height: 1; }
.bye-compare__range { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.bye-compare:focus-within .bye-compare__handle::after { outline: 3px solid var(--tan); outline-offset: 2px; }
.bye-ph--compare .bye-ph__body { pointer-events: none; opacity: .94; }

/* Project cards placeholder. */
.bye-ph--cards .bye-ph__frame { aspect-ratio: auto !important; padding: 1.5rem; display: grid; gap: 1rem; }
.bye-ph__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; width: 100%; }
.bye-ph__cards span { aspect-ratio: 4 / 3; background: var(--white); border: 1px solid var(--tan); border-radius: 4px; box-shadow: inset 0 -38% 0 var(--tan-light); }

@media (max-width: 700px) {
	.bye-ph__label { font-size: 1.125rem; }
	.bye-ph__body { max-width: 92%; padding: .75rem; }
	.bye-ph__cards { grid-template-columns: 1fr; }
	}

/* ---- Hero background: photo or silent video behind the headline -------- */
.bye-hero.has-media { isolation: isolate; }
.bye-hero__media { position: absolute; inset: 0; z-index: -2; }
.bye-hero__media img, .bye-hero__video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
/* Darken the text side so white type stays readable on any photo. */
.bye-hero.has-media::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: linear-gradient(90deg, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .78) 40%, rgba(0, 0, 0, .45) 75%, rgba(0, 0, 0, .3) 100%); }
.bye-hero__pause { position: absolute; right: max(1rem, var(--gutter)); bottom: 1.25rem; z-index: 2; min-height: 36px; padding: .3rem .8rem; background: rgba(0, 0, 0, .7); color: var(--white); border: 1px solid var(--tan); border-radius: 3px; font: 700 .9375rem var(--font-display); cursor: pointer; }
.bye-hero__pause:hover { background: var(--black); }

/* Placeholder: striped field plus a label strip with the shot brief. */
.bye-hero.has-media-ph { padding-top: calc(var(--space-4) + 3.25rem); }
.bye-hero__phtag { position: absolute; top: .9rem; left: 0; right: 0; z-index: 3; width: min(100% - 2 * var(--gutter), var(--wrap) - 2 * var(--gutter)); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .5rem 1rem; padding: .5rem .75rem; border: 2px dashed var(--tan); border-radius: 4px; background: rgba(0, 0, 0, .72); color: var(--tan-light); }
.bye-hero__phlabel { display: flex; align-items: center; gap: .5rem; margin: 0; font-size: .9375rem; min-width: 0; }
.bye-hero__phlabel .bye-ph__icon { flex: 0 0 auto; margin: 0; color: var(--red-light); }
.bye-hero__phlabel strong { color: var(--white); font-family: var(--font-display); font-size: 1.0625rem; }
.bye-hero__phtag .bye-ph__brief { margin: 0; flex: 0 1 auto; }
.bye-hero__phtag .bye-ph__brief summary { color: var(--tan-light); padding: .1rem .6rem; border: 1px solid var(--tan-dark); border-radius: 3px; min-height: 30px; }
.bye-hero__phtag .bye-ph__brief[open] { flex-basis: 100%; }
.bye-hero__phtag .bye-ph__brief[open] summary { margin-left: auto; width: max-content; }
.bye-hero__phtag .bye-ph__brief dl { max-width: 70ch; }

/* Moving charcoal background used until a photo or video is uploaded.
   Three soft shapes drift slowly; a faint light follows the pointer. */
.bye-hero__motion { background: radial-gradient(120% 90% at 85% 10%, #2b2b2b 0%, #141414 55%, #050505 100%); overflow: hidden; --mx: 70%; --my: 40%; }
.bye-hero__orb { position: absolute; border-radius: 50%; filter: blur(40px); opacity: .8; will-change: transform; }
.bye-hero__orb--1 { width: 46vmax; height: 46vmax; left: 45%; top: -20%; background: radial-gradient(circle, #555 0%, rgba(85, 85, 85, 0) 70%); animation: bye-drift-1 26s ease-in-out infinite alternate; }
.bye-hero__orb--2 { width: 38vmax; height: 38vmax; left: 65%; top: 35%; background: radial-gradient(circle, #424242 0%, rgba(66, 66, 66, 0) 70%); animation: bye-drift-2 32s ease-in-out infinite alternate; }
.bye-hero__orb--3 { width: 30vmax; height: 30vmax; left: 10%; top: 50%; background: radial-gradient(circle, #2a2a2a 0%, rgba(42, 42, 42, 0) 70%); animation: bye-drift-3 22s ease-in-out infinite alternate; }
.bye-hero__sweep { position: absolute; inset: -50%; background: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0) 0 46px, rgba(255, 255, 255, .035) 46px 47px); animation: bye-sweep 40s linear infinite; }
.bye-hero__spot { position: absolute; inset: 0; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(160, 160, 160, .16), rgba(160, 160, 160, 0) 70%); transition: background-position .2s; }
@keyframes bye-drift-1 { to { transform: translate(-18vw, 14vh) scale(1.15); } }
@keyframes bye-drift-2 { to { transform: translate(-22vw, -18vh) scale(.9); } }
@keyframes bye-drift-3 { to { transform: translate(24vw, -10vh) scale(1.2); } }
@keyframes bye-sweep { to { transform: translateX(94px); } }
@media (prefers-reduced-motion: reduce) {
	.bye-hero__orb, .bye-hero__sweep { animation: none; }
}

/* Home: "Who we work for" content boxes. */
.bye-boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1.25rem; margin: var(--space-2) 0 var(--space-4); }
.bye-box { display: flex; flex-direction: column; padding: 1.5rem 1.4rem 1.4rem; background: var(--white); border: 1px solid var(--tan); border-top: 5px solid var(--red); border-radius: 4px; box-shadow: 6px 6px 0 var(--tan-light); }
.bye-boxes > .bye-box { margin: 0; }
.bye-box > * { margin-block: 0; }
.bye-box h3 { margin: 0 0 .6rem; font-size: 1.5rem; }
.bye-box p { margin: 0; }
.bye-box p:last-child:not(:nth-child(2)) { margin-top: auto; padding-top: .9rem; font-weight: 600; }
.bye-box p + p { margin-top: .75rem; }

/* Full-width banner photo spots (375px tall). */
.bye-content > .bye-photo--banner { width: 100vw; max-width: none; margin: var(--space-4) calc(50% - 50vw); }
.bye-photo--banner img { width: 100%; height: 375px; object-fit: cover; border-radius: 0; }
.bye-photo--banner .bye-ph__frame { height: 375px; border-radius: 0; border-left: 0; border-right: 0; }
.bye-photo--banner .bye-ph__brief, .bye-photo--banner .pv-try { width: min(100% - 2 * var(--gutter), var(--wrap) - 2 * var(--gutter)); margin-left: auto; margin-right: auto; }
html, body { overflow-x: clip; }

/* Home: "How a project runs" as five columns that light up in order. */
.bye-process .bye-steps { list-style: none; counter-reset: step; margin: var(--space-3) 0 var(--space-4); padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 1rem; position: relative; }
.bye-process .bye-steps { --col: calc((100% - (var(--n, 5) - 1) * 1rem) / var(--n, 5)); }
.bye-process .bye-steps::before { content: ""; position: absolute; left: 1.75rem; right: calc(var(--col) - 1.75rem); top: 1.75rem; height: 4px; background: var(--tan-light); }
.bye-process .bye-steps::after { content: ""; position: absolute; left: 1.75rem; top: 1.75rem; height: 4px; width: calc((100% - var(--col)) * var(--fill, 1)); background: var(--red); transition: width 2.4s ease-out; }
.bye-process .bye-steps > li { display: block; position: relative; z-index: 1; margin: 0; padding: 0; border: 0; transition: opacity .6s ease, transform .6s ease; }
.bye-process .bye-steps > li::before { content: counter(step); display: grid; place-items: center; width: 3.5rem; line-height: 1; height: 3.5rem; margin-bottom: 1rem; background: var(--black); color: var(--white); border: 4px solid var(--white); outline: 3px solid var(--red); border-radius: 50%; font: 800 italic 1.6rem var(--font-display); transition: background .3s, transform .3s; }
.bye-process .bye-steps > li strong { display: block; font-family: var(--font-display); font-size: 1.25rem; line-height: 1.15; margin-bottom: .35rem; }
.bye-process .bye-steps > li:hover::before, .bye-process .bye-steps > li:focus-within::before, .bye-process .bye-steps > li.is-active::before { background: var(--red); transform: scale(1.08); }
.bye-process.is-waiting .bye-steps > li { opacity: 0; transform: translateY(14px); }
.bye-process.is-waiting .bye-steps { --fill: 0; }
@media (max-width: 900px) {
	.bye-process .bye-steps { grid-auto-flow: row; grid-template-columns: 1fr; gap: 1.25rem; }
	.bye-process .bye-steps::before, .bye-process .bye-steps::after { left: 1.75rem; right: auto; top: 1.75rem; bottom: 1.75rem; width: 4px; height: auto; }
	.bye-process .bye-steps::after { height: calc((100% - 3.5rem) * var(--fill, 1)); bottom: auto; transition: height 2.4s ease-out; }
	.bye-process .bye-steps > li { display: grid; grid-template-columns: 3.5rem 1fr; gap: 0 1rem; }
	.bye-process .bye-steps > li::before { grid-row: span 2; margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.bye-process.is-waiting .bye-steps > li { opacity: 1; transform: none; }
}

/* Banner above the footer on every page: no gap between it and the footer. */
.bye-footer-banner { width: 100%; margin: 0; }
.bye-footer-banner + .bye-footer { margin-top: 0; }
.bye-photo--banner.bye-ph { position: relative; }
/* Keep the banner's shot brief inside the banner so nothing sits between it and the footer. */
.bye-photo--banner .bye-ph__brief { position: absolute; left: 0; right: 0; bottom: .75rem; z-index: 3; margin: 0 auto; }
.bye-photo--banner .bye-ph__brief summary { padding: .2rem .7rem; background: var(--white); border: 1px solid var(--tan-dark); border-radius: 3px; }
.bye-photo--banner .bye-ph__brief[open] { bottom: auto; top: .75rem; }

/* ---- Articles ---------------------------------------------------------- */
.bye-articles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1.5rem; }
.bye-article-card { display: flex; flex-direction: column; gap: .4rem; padding: 1.25rem 1.25rem 1.4rem; border: 1px solid var(--tan); border-top: 5px solid var(--red); border-radius: 4px; background: var(--white); }
.bye-article-card > * { margin: 0; }
.bye-article-card__img img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 3px; margin-bottom: .4rem; }
.bye-article-card h2 { font-size: 1.5rem; line-height: 1.1; }
.bye-article-card h2 a { color: var(--black); text-decoration: none; }
.bye-article-card h2 a:hover { color: var(--red-dark); text-decoration: underline; }
.bye-article-card__more { margin-top: auto; padding-top: .5rem; font-weight: 600; }

/* Single article: at least 25px clear of the header above and the footer below. */
.bye-main.bye-article { padding: max(25px, var(--space-4)) 0 max(25px, var(--space-5)); }
.bye-article__inner { max-width: calc(var(--measure) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.bye-article__head { margin-bottom: var(--space-3); }
.bye-article .bye-crumbs ol { color: var(--tan-deep); }
.bye-article .bye-crumbs a { color: var(--tan-deep); }
.bye-article .bye-crumbs a:hover { color: var(--red-dark); }
.bye-article .bye-crumbs li + li::before { color: var(--tan-dark); }
.bye-article__title { font-style: italic; font-weight: 800; font-size: clamp(2.1rem, 4.2vw, 3.25rem); line-height: 1; margin: 0 0 .75rem; text-wrap: balance; }
.bye-article__img { margin: var(--space-3) 0 0; }
.bye-article__img img { display: block; width: 100%; height: auto; border-radius: 4px; }
.bye-article__content > * + * { margin-top: var(--space-3); }
.bye-article__content h2 { margin-top: var(--space-4); }
.bye-article__content h3 { margin-top: var(--space-3); }

/* 1. Quick answer */
.bye-quick-answer { padding: 1.4rem 1.5rem; background: var(--tan-paper); border-left: 6px solid var(--red); border-radius: 0 4px 4px 0; }
.bye-quick-answer > * { margin-block: 0; }
.bye-quick-answer > * + * { margin-top: .75rem; }
.bye-quick-answer h2 { margin: 0 0 .5rem; font-size: 1.375rem; color: var(--red-dark); }
.bye-quick-answer p { font-size: 1.1875rem; }
.bye-quick-answer ul { padding-left: 1.25rem; }
.bye-quick-answer li + li { margin-top: .3rem; }

/* 2. Article body uses the normal text styles. */
.bye-article-body > :first-child { margin-top: 0; }

/* 3. Article FAQs */
.bye-article-faq { padding-top: var(--space-3); border-top: 3px solid var(--black); }
.bye-article-faq > h2 { margin-top: 0; }

.bye-article__cta { margin-top: var(--space-5); padding: 1.5rem; background: var(--black); color: var(--white); border-radius: 4px; border-bottom: 6px solid var(--red); }
.bye-article__cta h2 { color: var(--white); margin: 0 0 .5rem; }
.bye-article__cta p { margin: 0 0 1rem; color: var(--tan-light); }

/* Two-thirds / one-third section: text on the left, a graphic on the right. */
.bye-cols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--space-4); align-items: start; }
.bye-cols__main > * { margin-block: 0; }
.bye-cols__main > * + * { margin-top: var(--space-2); }
.bye-cols__main > h2 + * { margin-top: .75rem; }
.bye-cols__main > * + h2 { margin-top: var(--space-5); }
.bye-cols__main > h2 + p { font-size: 1.1875rem; }
.bye-cols__aside { position: sticky; top: 110px; }
.bye-cols__aside > .bye-photo { margin: 0; }
@media (max-width: 900px) {
	.bye-cols { grid-template-columns: 1fr; }
	.bye-cols__aside { position: static; }
}

/* Project page: the project photo and its categories. */
.bye-project__photo { margin: 0 0 var(--space-3); }
.bye-project__photo img { display: block; width: 100%; height: auto; max-height: 640px; object-fit: cover; border-radius: 4px; }
.bye-project__cats { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 var(--space-3); }
.bye-project__cats a { padding: .25rem .7rem; border: 1px solid var(--tan-dark); border-radius: 999px; color: var(--black); text-decoration: none; font-weight: 600; font-size: .9375rem; }
.bye-project__cats a:hover { border-color: var(--red); color: var(--red-dark); }

/* FAQ page groups (from Dashboard > FAQs). */
.bye-faq-groups { max-width: var(--measure); }
.bye-faq-group + .bye-faq-group { margin-top: var(--space-5); }
.bye-faq-group > h2 { margin-bottom: var(--space-2); }

/* Box groups that come in threes (3, 6, 9 ...) line up as three columns, so no box sits alone. */
.bye-boxes:has(> .bye-box:nth-child(3n):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) {
	.bye-boxes:has(> .bye-box:nth-child(3n):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.bye-boxes, .bye-boxes:has(> .bye-box:nth-child(3n):last-child) { grid-template-columns: 1fr; }
}

/* ---- Block theme wiring --------------------------------------------- */
/* Header and footer template parts act as if they were not wrapped, so the
   sticky header sticks to the page and parts sit flush with each other. */
.wp-site-blocks > .bye-part { display: contents; }
.wp-site-blocks > * { margin-block-start: 0; margin-block-end: 0; }

/* ---- Brand type: three roles ----------------------------------------------
   Headlines (h1, h2): Barlow Condensed 800 italic, heavy and condensed like the logo.
   Subheads (h3, h4, item titles, hero subheadline): Archivo, expanded and spaced.
   Body: Barlow, a clean sans. */
h3, h4,
.bye-box h3, .bye-split h3,
.bye-service-list li strong:first-child, .bye-service-list li > a:first-child,
.bye-objections dt,
.bye-process .bye-steps > li strong,
.bye-faq-group > h2 + details summary { font-family: var(--font-wide); font-stretch: 125%; font-style: normal; font-weight: 650; letter-spacing: .015em; line-height: 1.2; }
h3, .bye-box h3 { font-size: 1.1875rem; }
h4 { font-size: 1.0625rem; }
.bye-split h3 { font-size: 1.125rem; }
.bye-service-list li strong:first-child, .bye-service-list li > a:first-child { font-size: 1.0625rem; }
.bye-objections dt { font-size: 1.0625rem; }
.bye-process .bye-steps > li strong { font-size: 1rem; }
.bye-plan h3 { font-family: var(--font-display); font-stretch: 100%; font-size: 1.75rem; font-style: italic; font-weight: 800; letter-spacing: .005em; }
.bye-hero__sub { font-family: var(--font-wide); font-stretch: 112%; font-weight: 450; letter-spacing: .01em; line-height: 1.45; }
@media (max-width: 625px) {
	h3, .bye-box h3 { font-size: 1.0625rem; }
	.bye-hero__sub { font-stretch: 105%; }
}

/* Phones: the editor-only "Background photo or video" strip sits in the flow
   above the headline instead of floating over it. */
@media (max-width: 700px) {
	.bye-hero.has-media-ph { padding-top: var(--space-3); }
	.bye-hero__phtag { position: relative; top: auto; margin: 0 auto var(--space-3); }
}

/* Form slots: a plugin's form gets layout room only; its own CSS styles the fields. */
.bye-form-slot--plugin { max-width: 760px; }
.bye-form-slot--plugin form { margin: 0; }
