/*
Theme Name: BrookLex
Theme URI: https://staging.brooklex.com
Author: BrookLex
Author URI: https://brooklex.com
Description: Custom block theme for BrookLex Property Tax Specialists, an Ontario property tax consultancy.
Requires at least: 6.0
Tested up to: 6.0
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: brooklex
*/

/* ---------------------------------------------------------------
   Font-face fallback. theme.json fontFace support is unreliable
   on WordPress 6.0, so the same faces are declared here directly.
   --------------------------------------------------------------- */
@font-face {
	font-family: "PP Editorial New";
	src: url("assets/fonts/EditorialNew-Light.woff") format("woff");
	font-weight: 300;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "PP Editorial New";
	src: url("assets/fonts/PPEditorialNew-Regular.woff") format("woff");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "PP Editorial New";
	src: url("assets/fonts/PPEditorialNew-Italic.woff") format("woff");
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: "PP Editorial New";
	src: url("assets/fonts/EditorialNew-Medium.woff") format("woff");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "PP Pangram";
	src: url("assets/fonts/PPPangramSans-NarrowLight.woff") format("woff");
	font-weight: 300;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "PP Pangram";
	src: url("assets/fonts/PPPangramSans-CompactRegular.woff") format("woff");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "PP Pangram";
	src: url("assets/fonts/PPPangramSans-NarrowSemibold.woff") format("woff");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

/* ---------------------------------------------------------------
   Base
   --------------------------------------------------------------- */
html {
	-webkit-text-size-adjust: 100%;
}
body {
	background: #ffffff;
	color: #0a0a0a;
}
* {
	border-radius: 0 !important;
}
img, video {
	max-width: 100%;
	height: auto;
}
h1, h2, h3, h4 {
	text-wrap: balance;
}
a {
	text-decoration: none;
}
a:not(.wp-block-button__link):not(.bl-disc-btn) {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Focus rings */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.wp-block-button__link:focus-visible {
	outline: 2px solid #0a0a0a;
	outline-offset: 2px;
}
.bl-header a:focus-visible,
.bl-footer a:focus-visible,
.bl-cta a:focus-visible,
.bl-hero a:focus-visible {
	outline-color: #ffffff;
}

/* ---------------------------------------------------------------
   Header
   --------------------------------------------------------------- */
.bl-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: #ffffff;
	border-bottom: 1px solid #e8e8e8;
}
.bl-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 14px 20px;
	max-width: 1140px;
	margin: 0 auto;
}
.bl-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #0a0a0a;
	text-decoration: none;
}
.bl-logo:hover {
	text-decoration: none;
}
.bl-logo img {
	height: 30px;
	width: auto;
}
.bl-logo-word {
	font-family: "PP Editorial New", "Times New Roman", Times, serif;
	font-weight: 400;
	font-size: 21px;
	letter-spacing: 1px;
	line-height: 1;
	position: relative;
}
.bl-logo-word sup {
	font-size: 9px;
	position: relative;
	top: -8px;
	left: 1px;
}
.bl-header nav.wp-block-navigation {
	font-family: "PP Pangram", "Helvetica Neue", Arial, sans-serif;
}
.bl-header .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
	font-size: 14px;
	font-weight: 600;
	color: #0a0a0a;
	padding: 8px 14px;
}
.bl-header .wp-block-navigation-item__content:hover {
	color: #ec5138;
}
.bl-header .bl-nav-contact a {
	background: #000000;
	color: #ffffff !important;
	padding: 10px 22px !important;
	font-weight: 600;
}
.bl-header .bl-nav-contact a:hover {
	background: #ec5138;
}
.bl-header .wp-block-navigation__responsive-container-open,
.bl-header .wp-block-navigation__responsive-container-close {
	color: #0a0a0a;
}

/* ---------------------------------------------------------------
   Hero (front page)
   --------------------------------------------------------------- */
.bl-hero {
	position: relative;
	min-height: 80vh;
}
.bl-hero.wp-block-cover {
	justify-content: flex-start;
}
.bl-hero .wp-block-cover__inner-container {
	width: 100%;
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 20px;
}
.bl-hero-title {
	margin: 0 0 24px;
	line-height: 1;
}
.bl-hero-title .bl-line-serif {
	display: block;
	font-family: "PP Editorial New", "Times New Roman", Times, serif;
	font-weight: 300;
	font-size: 80px;
	letter-spacing: -1px;
	color: #ffffff;
}
.bl-hero-title .bl-line-sans {
	display: block;
	font-family: "PP Pangram", "Helvetica Neue", Arial, sans-serif;
	font-weight: 400;
	font-size: 45px;
	letter-spacing: -0.5px;
	color: #ffffff;
	margin-top: 4px;
}
.bl-hero-sub {
	color: #bfc0c0;
	font-size: 19px;
	max-width: 46em;
	margin: 0 0 48px;
}
.bl-disc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 150px;
	height: 150px;
	border-radius: 50% !important;
	background: #000000;
	color: #ffffff !important;
	font-family: "PP Pangram", "Helvetica Neue", Arial, sans-serif;
	font-weight: 600;
	font-size: 16px;
	text-align: center;
	text-decoration: none !important;
	border: none;
	transition: background 0.2s ease;
}
.bl-disc-btn:hover {
	background: #ec5138;
	color: #ffffff !important;
}

@media (max-width: 782px) {
	.bl-hero-title .bl-line-serif {
		font-size: 45px;
	}
	.bl-hero-title .bl-line-sans {
		font-size: 28px;
	}
	.bl-disc-btn {
		width: 120px;
		height: 120px;
		font-size: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bl-hero video {
		display: none;
	}
}

/* ---------------------------------------------------------------
   Page title band
   --------------------------------------------------------------- */
.bl-title-band {
	background: #000000;
	color: #ffffff;
	padding: 60px 20px 60px;
}
.bl-title-band-inner {
	max-width: 1140px;
	margin: 0 auto;
}
.bl-parent-link {
	display: inline-block;
	margin-bottom: 14px;
	font-family: "PP Pangram", "Helvetica Neue", Arial, sans-serif;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #bfc0c0 !important;
}
.bl-parent-link:hover {
	color: #ec5138 !important;
}
.bl-title-band h1 {
	margin: 0;
	font-family: "PP Editorial New", "Times New Roman", Times, serif;
	font-weight: 300;
	font-size: 56px;
	letter-spacing: -1px;
	color: #ffffff;
	line-height: 1.15;
}
@media (max-width: 782px) {
	.bl-title-band h1 {
		font-size: 34px;
	}
}

/* ---------------------------------------------------------------
   Content classes
   --------------------------------------------------------------- */
.bl-content {
	padding: 60px 20px 20px;
}
.bl-lede {
	font-family: "PP Pangram", "Helvetica Neue", Arial, sans-serif;
	font-weight: 300;
	font-size: 22px;
	line-height: 1.6;
	color: #0a0a0a;
}
.bl-eyebrow {
	font-family: "PP Pangram", "Helvetica Neue", Arial, sans-serif;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #ec5138;
	margin-bottom: 6px;
}

/* bl-cards: columns become bordered link cards */
.bl-cards {
	gap: 0 !important;
}
.bl-cards > .wp-block-column {
	border: 1px solid #e8e8e8;
	padding: 30px !important;
	margin-right: -1px;
	margin-bottom: -1px;
	transition: background 0.15s ease;
}
.bl-cards > .wp-block-column:hover {
	background: #f8f8f8;
}
.bl-cards h3 {
	margin-top: 0;
	font-size: 20px;
}
.bl-cards h3 a {
	color: #0a0a0a;
	text-decoration: none;
}
.bl-cards a {
	text-decoration: none;
}
.bl-cards > .wp-block-column:hover h3 a,
.bl-cards > .wp-block-column:hover a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* bl-note: callout with red left rule */
.bl-note {
	border-left: 3px solid #ec5138;
	padding: 16px 24px;
	background: #f8f8f8;
}

/* bl-steps: ordered list, big red serif numbers */
ol.bl-steps {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: bl-step;
}
ol.bl-steps > li {
	counter-increment: bl-step;
	position: relative;
	padding: 10px 0 10px 70px;
	border-top: 1px solid #e8e8e8;
	min-height: 50px;
}
ol.bl-steps > li:last-child {
	border-bottom: 1px solid #e8e8e8;
}
ol.bl-steps > li::before {
	content: counter(bl-step);
	position: absolute;
	left: 0;
	top: 4px;
	font-family: "PP Editorial New", "Times New Roman", Times, serif;
	font-weight: 300;
	font-size: 40px;
	color: #ec5138;
	line-height: 1;
}

/* bl-facts: data tables */
.wp-block-table.bl-facts,
figure.wp-block-table:has(table.bl-facts) {
	overflow-x: auto;
}
table.bl-facts {
	width: 100%;
	border-collapse: collapse;
	font-variant-numeric: tabular-nums;
}
table.bl-facts th,
table.bl-facts td {
	border-bottom: 1px solid #e8e8e8;
	padding: 12px 16px;
	text-align: left;
}
table.bl-facts thead th {
	text-transform: uppercase;
	font-size: 12px;
	letter-spacing: 1px;
	font-weight: 600;
	color: #555555;
}

/* bl-faq */
.bl-faq h3 {
	font-size: 18px;
	margin-bottom: 4px;
	margin-top: 32px;
}
.bl-faq h3:first-child {
	margin-top: 0;
}
.bl-faq p {
	color: #555555;
}

/* ---------------------------------------------------------------
   CTA band
   --------------------------------------------------------------- */
.bl-cta {
	background: #000000;
	color: #ffffff;
	padding: 100px 20px;
}
.bl-cta-inner {
	max-width: 1140px;
	margin: 0 auto;
}
.bl-cta .bl-eyebrow {
	color: #ec5138;
}
.bl-cta h2 {
	color: #ffffff;
	margin: 0 0 20px;
	font-size: 45px;
}
.bl-cta p {
	color: #bfc0c0;
}
.bl-cta-columns {
	display: flex;
	flex-wrap: wrap;
	gap: 60px;
	margin-top: 40px;
}
.bl-cta-columns > div {
	flex: 1 1 320px;
}
.bl-cta a.bl-cta-link {
	display: block;
	color: #ffffff;
	font-size: 20px;
	margin-bottom: 10px;
	text-decoration: none;
}
.bl-cta a.bl-cta-link:hover {
	color: #ec5138;
}
@media (max-width: 782px) {
	.bl-cta h2 {
		font-size: 30px;
	}
}

/* ---------------------------------------------------------------
   Footer
   --------------------------------------------------------------- */
.bl-footer {
	background: #0a0a0a;
	color: #bfc0c0;
	padding: 80px 20px 30px;
	font-family: "PP Pangram", "Helvetica Neue", Arial, sans-serif;
}
.bl-footer-inner {
	max-width: 1140px;
	margin: 0 auto;
}
.bl-footer-columns {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
	padding-bottom: 40px;
	border-bottom: 1px solid #2a2a2a;
}
.bl-footer-columns > div {
	flex: 1 1 220px;
}
.bl-footer-brand {
	color: #ec5138;
	font-weight: 600;
	margin-bottom: 8px;
	display: block;
}
.bl-footer a {
	color: #bfc0c0;
}
.bl-footer a:hover {
	color: #ffffff;
}
.bl-footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 24px;
	padding: 30px 0;
	font-size: 13px;
}
.bl-footer-bottom {
	font-size: 13px;
	color: #888888;
	padding-top: 10px;
}
.bl-footer p {
	margin: 0 0 6px;
	font-size: 14px;
}

/* ---------------------------------------------------------------
   404
   --------------------------------------------------------------- */
.bl-404 {
	padding: 120px 20px;
	text-align: center;
}
.bl-404 h1 {
	font-size: 80px;
	margin-bottom: 10px;
}

/* ---------------------------------------------------------------
   Contact Form 7
   --------------------------------------------------------------- */
.wpcf7-form {
	max-width: 100%;
}
.wpcf7-form label.input-float,
.wpcf7-form p label,
.wpcf7-form label {
	display: block;
	font-family: "PP Pangram", "Helvetica Neue", Arial, sans-serif;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: #555555;
	margin-bottom: 6px;
	margin-top: 20px;
}
.wpcf7-form label.input-float span.input-float__label {
	display: block;
	margin-bottom: 6px;
}
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form textarea,
.wpcf7-form select {
	width: 100%;
	box-sizing: border-box;
	border: none;
	border-bottom: 1px solid #e8e8e8;
	background: transparent;
	padding: 10px 0;
	font-family: "PP Pangram", "Helvetica Neue", Arial, sans-serif;
	font-size: 16px;
	color: #0a0a0a;
	border-radius: 0;
}
.wpcf7-form textarea {
	min-height: 120px;
}
.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
	outline: none;
	border-bottom-color: #0a0a0a;
}
.wpcf7-form button.button,
.wpcf7-form input[type="submit"] {
	margin-top: 30px;
	background: #000000;
	color: #ffffff;
	border: none;
	padding: 14px 32px;
	font-family: "PP Pangram", "Helvetica Neue", Arial, sans-serif;
	font-weight: 600;
	font-size: 15px;
	cursor: pointer;
	border-radius: 0;
}
.wpcf7-form button.button:hover,
.wpcf7-form input[type="submit"]:hover {
	background: #ec5138;
}
.wpcf7-not-valid-tip {
	color: #ec5138;
	font-size: 13px;
	margin-top: 4px;
}
.wpcf7-response-output {
	border: 1px solid #e8e8e8;
	padding: 12px 16px;
	margin-top: 20px;
	font-size: 14px;
}
/* CTA band sits on black: CF7 needs light labels there */
.bl-cta .wpcf7-form label {
	color: #bfc0c0;
}
.bl-cta .wpcf7-form input,
.bl-cta .wpcf7-form textarea,
.bl-cta .wpcf7-form select {
	color: #ffffff;
	border-bottom-color: #2a2a2a;
}
.bl-cta .wpcf7-form input:focus,
.bl-cta .wpcf7-form textarea:focus {
	border-bottom-color: #ffffff;
}


/* Lead fix 2026-09-29: page content gets the same side gutters as the title band and footer,
   body text at the 720px reading width, cards/tables/wide blocks up to 1140px. */
.wp-block-post-content.bl-content{padding-inline:clamp(20px,6vw,80px);padding-block:clamp(40px,6vw,80px)}
.wp-block-post-content.bl-content > *{max-width:720px;margin-left:auto;margin-right:auto}
.wp-block-post-content.bl-content > .wp-block-columns,
.wp-block-post-content.bl-content > .wp-block-table,
.wp-block-post-content.bl-content > .alignwide,
.wp-block-post-content.bl-content > .bl-cards{max-width:1140px}

/* Lead fix 2026-09-29: Contact Form 7 button carries the old theme's two-label markup; show one label,
   and make the button readable on the black CTA band. Tighten the field spacing. */
.wpcf7 .button__label-hover{display:none!important}
.wpcf7 .button__icon{display:none}
.wpcf7 button[type=submit]{background:#ffffff;color:#0a0a0a;border:0;padding:14px 28px;font-family:"PP Pangram","Helvetica Neue",Arial,sans-serif;font-weight:600;font-size:16px;cursor:pointer}
.wp-block-post-content .wpcf7 button[type=submit]{background:#0a0a0a;color:#ffffff}
.wpcf7 button[type=submit]:focus-visible{outline:2px solid #ec5138;outline-offset:3px}
.wpcf7 .form__row{margin:0}
.wpcf7 .form__col{margin-bottom:18px}
.wpcf7 textarea{min-height:110px;max-height:220px}
.wpcf7 .form__col_submit{text-align:left!important;margin-top:8px}

/* Lead fix 2026-09-29 (phone check): CF7 markup puts the input before its label text; show the label
   above the input, compact field heights, normal-size button. Tables scroll sideways inside their figure. */
.wpcf7 label.input-float{display:flex!important;flex-direction:column-reverse;gap:6px;position:static!important;margin:0}
.wpcf7 .input-float__label{position:static!important;transform:none!important;font-size:12px;letter-spacing:1.5px;text-transform:uppercase;opacity:.85}
.wpcf7 .wpcf7-form-control-wrap{display:block}
.wpcf7 input[type=text],.wpcf7 input[type=email],.wpcf7 input[type=tel]{height:44px!important;min-height:0!important;padding:8px 0!important;line-height:1.4!important;background:transparent;color:inherit;border:0;border-bottom:1px solid currentColor;width:100%;font:inherit}
.wpcf7 textarea{height:110px!important;min-height:0!important;padding:8px 0!important;background:transparent;color:inherit;border:0;border-bottom:1px solid currentColor;width:100%;font:inherit}
.wpcf7 button[type=submit]{height:auto!important;min-height:0!important;width:auto!important;display:inline-block!important;line-height:1.2!important}
.wpcf7 .form__col{padding:0!important}
figure.wp-block-table{overflow-x:auto;-webkit-overflow-scrolling:touch;max-width:100%}
figure.wp-block-table table{min-width:520px}
@media (min-width:782px){figure.wp-block-table table{min-width:0}}
