/*
Theme Name: B&D Architectural Metals
Theme URI: https://www.b-dmetals.com/
Author: Ben Perren
Author URI: https://www.b-dmetals.com/
Description: Custom theme for B&D Architectural Metals LLC: red nav bar, Oswald headings, hero estimate form, service pages with sub-service cards, reviews, blog, native forms, LocalBusiness schema.
Version: 1.0.15
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bd-metals
Tags: custom-menu, featured-images, custom-logo, one-column, two-columns
*/

/* ------------------------------------------------------------------
   Tokens
------------------------------------------------------------------ */
:root {
	--red: #c20000;
	--red-dark: #9a0000;
	--black: #111111;
	--ink: #1d1d1d;
	--gray: #545454;
	--gray-mid: #8a8a8a;
	--gray-line: #dcdcdc;
	--light: #f3f3f3;
	--white: #ffffff;
	--gold: #f5b301;
	--font-body: Poppins, system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-head: Oswald, Impact, "Arial Narrow", sans-serif;
	--radius: 10px;
	--container: 1200px;
	--gutter: 16px;
	--section: 64px;
	--shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

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

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

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.7;
	color: var(--ink);
	background: var(--white);
}

body.nav-locked { overflow: hidden; }

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

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-head);
	line-height: 1.2;
	margin: 0 0 0.5em;
	color: var(--black);
}
h1 { font-size: 45px; font-weight: 400; }
h2 { font-size: 35px; font-weight: 400; }
h3 { font-size: 24px; font-weight: 700; }
h4 { font-size: 20px; font-weight: 600; }

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }

.container {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding-left: var(--gutter);
	padding-right: var(--gutter);
}
.narrow { max-width: 960px; }
.center { text-align: center; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	white-space: nowrap;
}
.skip-link:focus {
	position: fixed; top: 8px; left: 8px; z-index: 1000;
	width: auto; height: auto; clip: auto; clip-path: none;
	background: var(--black); color: #fff; padding: 10px 16px; border-radius: 6px;
}

.icon { width: 1em; height: 1em; fill: currentColor; vertical-align: -0.15em; }

.section-title { text-align: center; margin-bottom: 32px; }

/* Buttons */
.btn {
	display: inline-block;
	background: var(--red);
	color: #fff;
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 15px;
	line-height: 1.2;
	padding: 13px 28px;
	border: 2px solid var(--red);
	border-radius: var(--radius);
	text-align: center;
	cursor: pointer;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover,
.btn:focus-visible { background: var(--red-dark); border-color: var(--red-dark); color: #fff; text-decoration: none; }
.btn-lg { font-size: 17px; padding: 15px 34px; }
.btn-light { background: #fff; color: var(--black); border-color: #fff; }
.btn-light:hover,
.btn-light:focus-visible { background: var(--light); border-color: var(--light); color: var(--black); }
.btn-dark { background: var(--black); border-color: var(--black); }
.btn-dark:hover,
.btn-dark:focus-visible { background: #333; border-color: #333; }
button.btn { font: inherit; font-weight: 600; }

/* Stars */
.stars { display: inline-flex; gap: 1px; color: var(--gold); }
.stars .icon { width: 1.05em; height: 1.05em; }
.stars .icon.off { color: #c9c9c9; }

/* ------------------------------------------------------------------
   Header
------------------------------------------------------------------ */
.site-header { position: relative; z-index: 50; }

.topbar {
	background: linear-gradient(#ffffff, #e6e6e6);
	border-top: 4px solid var(--red);
}
.topbar-inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 16px;
	padding-top: 10px;
	padding-bottom: 10px;
}
.topbar-left { display: flex; flex-direction: column; gap: 12px; }
.topbar-left .label { display: block; font-size: 13px; color: var(--gray); line-height: 1.2; }
.topbar-left strong,
.topbar-left .phone { display: block; font-size: 20px; font-weight: 700; line-height: 1.25; color: var(--black); }
.topbar-left .phone:hover { color: var(--red); text-decoration: none; }
.brand img.custom-logo { width: 230px; max-height: 160px; object-fit: contain; }
.custom-logo-link { display: block; }
.topbar-right { display: flex; justify-content: flex-end; align-items: center; }
.topbar-mobile-ctas { display: none; }

.nav-toggle {
	display: none;
	background: transparent; border: 0; padding: 8px; cursor: pointer; color: var(--black);
}
.nav-toggle .icon { width: 34px; height: 34px; }
.nav-toggle .icon.shut { display: none; }
.nav-open .nav-toggle .icon.open { display: none; }
.nav-open .nav-toggle .icon.shut { display: block; }

/* Red nav bar */
.main-nav { background: var(--red); }
.main-nav .menu {
	list-style: none; margin: 0; padding: 0;
	display: flex; flex-wrap: wrap; justify-content: center;
}
.main-nav .menu > li { position: relative; display: flex; align-items: center; }
.main-nav .menu a {
	display: block;
	color: #fff;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 18px;
	padding: 11px 14px;
	border-bottom: 2px solid transparent;
}
.main-nav .menu a:hover,
.main-nav .menu > .current-menu-item > a,
.main-nav .menu > .current-menu-ancestor > a,
.main-nav .menu > .current_page_parent > a { text-decoration: none; border-bottom-color: #fff; }
.main-nav .menu > .menu-item-has-children > a { padding-right: 4px; }
.submenu-toggle {
	background: transparent; border: 0; color: #fff; cursor: pointer;
	padding: 6px 10px 6px 2px; display: inline-flex;
}
.submenu-toggle svg { width: 18px; height: 18px; fill: currentColor; transition: transform 0.2s; }
.menu-item-has-children.is-open > .submenu-toggle svg { transform: rotate(180deg); }

.main-nav .sub-menu {
	list-style: none; margin: 0; padding: 8px 0;
	position: absolute; top: 100%; left: 0;
	min-width: 270px;
	background: #fff;
	box-shadow: var(--shadow);
	border-radius: 0 0 8px 8px;
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
	z-index: 60;
}
.main-nav .menu > li:hover > .sub-menu,
.main-nav .menu > li.is-open > .sub-menu,
.main-nav .menu > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub-menu a {
	color: var(--black);
	font-family: var(--font-body);
	font-weight: 500;
	font-size: 15px;
	padding: 9px 18px;
	border: 0;
}
.main-nav .sub-menu a:hover,
.main-nav .sub-menu .current-menu-item > a { background: var(--red); color: #fff; }

/* ------------------------------------------------------------------
   Hero
------------------------------------------------------------------ */
.hero {
	position: relative;
	color: #fff;
	background: var(--black) var(--hero-bg) center / cover no-repeat;
	padding: 72px 0;
}
.hero::before {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.35));
}
.hero-grid {
	position: relative;
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: 40px;
	align-items: center;
}
.hero:not(.has-form) .hero-grid { grid-template-columns: 1fr; }
.hero-title { color: #fff; font-size: 52px; margin-bottom: 4px; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); }
.hero-subtitle { font-family: var(--font-head); font-size: 30px; margin-bottom: 20px; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); }
.hero-bullets { list-style: none; padding: 0; margin: 0 0 24px; }
.hero-bullets li { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 500; margin-bottom: 8px; }
.hero-bullets .icon { width: 26px; height: 26px; padding: 4px; background: var(--red); border-radius: 50%; flex: none; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }

.hero-form {
	background: #fff; color: var(--ink);
	border-radius: 14px; padding: 26px 26px 18px;
	box-shadow: var(--shadow);
}
.hero-form-title { text-align: center; margin-bottom: 14px; }

/* ------------------------------------------------------------------
   Forms
------------------------------------------------------------------ */
.bdm-form .field { margin-bottom: 14px; }
.bdm-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.bdm-form input[type="text"],
.bdm-form input[type="tel"],
.bdm-form input[type="email"],
.bdm-form select,
.bdm-form textarea,
.search-field {
	width: 100%;
	font: inherit;
	font-size: 15px;
	padding: 11px 12px;
	border: 1px solid #c6c6c6;
	border-radius: 6px;
	background: #fff;
	color: var(--ink);
}
.bdm-form input:focus,
.bdm-form select:focus,
.bdm-form textarea:focus { outline: 2px solid var(--red); outline-offset: 1px; border-color: var(--red); }
.bdm-form textarea { resize: vertical; min-height: 120px; }
.bdm-form .field-submit { margin: 18px 0 0; }
.bdm-form .field-submit .btn { width: 100%; }
.bdm-form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; }
.bdm-form .check input { margin-top: 5px; }
.bdm-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-card { background: var(--light); padding: 28px; border-radius: 14px; }
.form-card .field-submit .btn { width: auto; min-width: 240px; }
.form-notice { padding: 14px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 15px; }
.form-notice.is-success { background: #e8f6ea; border: 1px solid #9bd3a4; color: #1d5e28; }
.form-notice.is-error { background: #fdeaea; border: 1px solid #f0a3a3; color: #8a1010; }
.bdm-form .field:has(input:user-invalid) input,
.bdm-form .field:has(select:user-invalid) select { border-color: var(--red); }

/* ------------------------------------------------------------------
   Form plugins: Contact Form 7 and Gravity Forms, anywhere on the site
------------------------------------------------------------------ */
.wpcf7 label,
.gform_wrapper .gfield_label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; color: var(--ink); }
.wpcf7 p { margin: 0 0 14px; }
.wpcf7 input[type="text"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="email"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 input[type="date"],
.wpcf7 select,
.wpcf7 textarea,
.gform_wrapper.gform_wrapper input[type="text"],
.gform_wrapper.gform_wrapper input[type="tel"],
.gform_wrapper.gform_wrapper input[type="email"],
.gform_wrapper.gform_wrapper input[type="url"],
.gform_wrapper.gform_wrapper input[type="number"],
.gform_wrapper.gform_wrapper select,
.gform_wrapper.gform_wrapper textarea {
	width: 100%;
	max-width: 100%;
	font: inherit;
	font-size: 15px;
	padding: 11px 12px;
	border: 1px solid #c6c6c6;
	border-radius: 6px;
	background: #fff;
	color: var(--ink);
	box-sizing: border-box;
}
.wpcf7 textarea,
.gform_wrapper.gform_wrapper textarea { min-height: 120px; resize: vertical; }
.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus,
.gform_wrapper.gform_wrapper input:focus,
.gform_wrapper.gform_wrapper select:focus,
.gform_wrapper.gform_wrapper textarea:focus { outline: 2px solid var(--red); outline-offset: 1px; border-color: var(--red); }
.wpcf7 input[type="submit"],
.wpcf7 .wpcf7-submit,
.gform_wrapper.gform_wrapper .gform_button,
.gform_wrapper.gform_wrapper input[type="submit"],
.gform_wrapper.gform_wrapper button[type="submit"] {
	display: inline-block;
	background: var(--red);
	color: #fff;
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 15px;
	line-height: 1.2;
	padding: 13px 28px;
	border: 2px solid var(--red);
	border-radius: var(--radius);
	cursor: pointer;
	width: auto;
	transition: background 0.2s, border-color 0.2s;
}
.wpcf7 .wpcf7-submit:hover,
.wpcf7 .wpcf7-submit:focus-visible,
.gform_wrapper.gform_wrapper .gform_button:hover,
.gform_wrapper.gform_wrapper .gform_button:focus-visible { background: var(--red-dark); border-color: var(--red-dark); }
.wpcf7 .wpcf7-list-item { margin: 0 16px 6px 0; }
.wpcf7 .wpcf7-not-valid-tip,
.gform_wrapper .validation_message,
.gform_wrapper .gfield_validation_message { color: #b00000; font-size: 13px; margin-top: 4px; }
.wpcf7 form .wpcf7-response-output {
	margin: 0 0 16px; padding: 12px 14px; border-radius: 8px; font-size: 15px;
	border: 1px solid #f0a3a3; background: #fdeaea; color: #8a1010;
}
.wpcf7 form.sent .wpcf7-response-output { border-color: #9bd3a4; background: #e8f6ea; color: #1d5e28; }
.wpcf7 .wpcf7-spinner { vertical-align: middle; margin: 0 0 0 10px; }
.gform_wrapper .gform_confirmation_message,
.gform_confirmation_message {
	padding: 14px 16px; border-radius: 8px; border: 1px solid #9bd3a4; background: #e8f6ea; color: #1d5e28;
}
.gform_wrapper .gform_validation_errors { border-radius: 8px; }
/* Gravity Forms Orbital theme uses CSS variables; point them at the brand. */
.gform_wrapper.gform-theme {
	--gf-color-primary: #c20000;
	--gf-color-primary-rgb: 194, 0, 0;
	--gf-color-primary-contrast: #ffffff;
	--gf-color-primary-darker: #9a0000;
	--gf-radius: 6px;
}

/* Plugin forms inside the theme's form positions */
.bdm-plugin-form { width: 100%; }
.hero-form .bdm-plugin-form label,
.hero-form .bdm-plugin-form .gfield_label { font-size: 13px; }
.hero-form .wpcf7-submit,
.hero-form .gform_button,
.hero-form .bdm-plugin-form input[type="submit"] { width: 100%; }
.hero-form .gform_wrapper .gform_title,
.hero-form .gform_wrapper .gform_description { display: none; }

/* ------------------------------------------------------------------
   Sections
------------------------------------------------------------------ */
.intro,
.service-lines,
.projects,
.recent-posts,
.sub-services,
.related-services,
.blog-index,
.contact-page,
.estimate-page,
.careers-form,
.reviews-page,
.error-404 { padding: var(--section) 0; }

.intro-content { columns: 2; column-gap: 48px; }
.intro-content h2 { column-span: all; text-align: center; margin-bottom: 24px; }
.intro-content p { break-inside: avoid; }

/* Why choose us */
.why-choose {
	position: relative; color: #fff;
	background: var(--black) url("assets/img/why-choose-bg.jpg") center / cover no-repeat;
	padding: var(--section) 0;
}
.why-choose::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.62); }
.why-choose .container { position: relative; }
.why-choose .section-title { color: #fff; }
.why-grid {
	list-style: none; padding: 0; margin: 0 0 36px;
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 24px;
}
.why-grid li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.why-icon {
	width: 74px; height: 74px; border-radius: 50%;
	background: #fff; color: var(--red);
	display: inline-flex; align-items: center; justify-content: center;
}
.why-icon .icon { width: 38px; height: 38px; }
.why-label { font-weight: 600; font-size: 17px; }

/* Service rows (home) */
.service-row {
	display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
	padding: 28px 0;
}
.service-row:nth-child(even) .service-media { order: 2; }
.service-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; box-shadow: var(--shadow); }
.service-text h3 { font-size: 28px; }

/* Cards */
.cards { display: grid; gap: 28px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: #fff; border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.card-service { background: var(--light); }
.card-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-title { font-size: 22px; margin-bottom: 8px; }
.card-title a { color: var(--black); }
.card-text { font-size: 15px; color: var(--gray); flex: 1; }
.card-post .card-title { min-height: 2.4em; }
.card .btn { align-self: flex-start; }
.btn-sm { font-size: 14px; padding: 9px 20px; }
.card-compact .card-body { padding: 14px 16px 16px; gap: 10px; }
.card-compact .card-title { font-size: 18px; margin-bottom: 0; }
.card-compact .card-media img { aspect-ratio: 3 / 2; }

/* Services grid shortcode: a banner per service line, then its sub-service cards in centered rows */
.services-grid { margin-bottom: 40px; }
.services-group + .services-group { margin-top: 44px; }
.card-kicker {
	display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
	text-transform: uppercase; color: var(--red); margin-bottom: 4px;
}
.line-banner {
	display: flex; align-items: center; gap: 24px;
	background: var(--light); border-left: 5px solid var(--red); border-radius: 14px;
	overflow: hidden; margin-bottom: 20px;
}
.line-media { flex: 0 0 240px; }
.line-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.line-body { padding: 18px 24px 18px 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.line-title { font-size: 24px; margin: 0; }
.line-title a { color: var(--black); }
.line-title a:hover { color: var(--red); text-decoration: none; }
.line-text { font-size: 15px; color: var(--gray); margin: 0; }
.services-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.services-cards .card { flex: 1 1 260px; max-width: calc((100% - 40px) / 3); }
.services-cards-2 .card { max-width: calc((100% - 20px) / 2); }
.services-cards-4 .card { max-width: calc((100% - 60px) / 4); }
.services-cards-2x2 { max-width: calc(((100% - 40px) / 3) * 2 + 20px); margin: 0 auto; } /* two standard cards + one gap */
.services-cards-2x2 .card { max-width: calc((100% - 20px) / 2); }
.entry-content .services-grid h2, .entry-content .services-grid h3 { margin-top: 0; }
.entry-content .services-grid .card-title a, .entry-content .services-grid .line-title a { text-decoration: none; }
.read-more { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.read-more .icon { transition: transform 0.2s; }
.read-more:hover .icon { transform: translateX(3px); }

/* Projects */
.projects-grid {
	list-style: none; padding: 0; margin: 0 0 32px;
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.projects-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; transition: transform 0.25s; }
.projects-grid a:hover img { transform: scale(1.03); }

/* Reviews band */
.reviews-band { background: var(--black); color: #fff; padding: var(--section) 0; }
.reviews-band h2, .reviews-band h3 { color: #fff; }
.reviews-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: start; }
.reviews-icon { width: 54px; height: 54px; margin-bottom: 10px; }
.reviews-title { font-size: 26px; }
.reviews-list { display: grid; gap: 22px; }
.review { border-left: 3px solid var(--red); padding-left: 18px; }
.review-author { font-family: var(--font-body); font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.review-text { margin: 6px 0 4px; }
.review-date { font-size: 13px; color: #bbb; margin: 0; }
.reviews-band .review-date { color: #c9c9c9; }
.review-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }

/* Light band (home, straight after the white intro): no second dark block before Why Choose Us. */
.reviews-band-light { background: #fff; color: var(--ink); padding-top: 0; }
.reviews-band-light h2, .reviews-band-light h3 { color: var(--black); }
.reviews-band-light .reviews-icon { color: var(--red); }
.reviews-band-light .review-date { color: var(--gray); }
.reviews-band-light .reviews-grid { border-top: 1px solid var(--gray-line); padding-top: var(--section); }

/* Live Google reviews (Trustindex widget). min-width lets the slider shrink inside the grid. */
.reviews-list, .reviews-widget { min-width: 0; }
.reviews-widget-page { margin: 8px 0 28px; }
/* Trustindex insets the multi-column slider 16px (8px wrapper margin + 8px card padding);
   pull it back so card edges line up with the column text and buttons. */
.reviews-widget .ti-widget-container:not(.ti-col-1) .ti-reviews-container-wrapper {
	margin-left: -8px !important;
	margin-right: -8px !important;
}
/* Arrows straddle the card edges instead of covering review text (fits the 16px gutter). */
.reviews-widget .ti-widget-container:not(.ti-col-1) .ti-prev { left: -14px !important; }
.reviews-widget .ti-widget-container:not(.ti-col-1) .ti-next { right: -14px !important; }

/* Reviews page */
.rating-summary { text-align: center; font-size: 18px; margin-bottom: 24px; }
.rating-summary strong { font-size: 32px; margin-right: 8px; }
.reviews-full { display: grid; gap: 24px; margin-top: 32px; }
.reviews-full .review { background: var(--light); padding: 20px 24px; border-radius: 10px; border-left-width: 5px; }

/* Warranty call-out */
.warranty-cta { background: var(--red); color: #fff; text-align: center; padding: 56px 0; }
.warranty-cta h2 { color: #fff; }
.warranty-cta p { max-width: 720px; margin-left: auto; margin-right: auto; font-size: 17px; }
.warranty-lead { font-family: var(--font-head); font-size: 24px; margin-bottom: 8px; }

/* Page title band + breadcrumbs */
.page-title-band { background: var(--black); color: #fff; padding: 44px 0 36px; text-align: center; }
.page-title-band .page-title { color: #fff; font-size: 40px; margin-bottom: 4px; }
.page-subtitle { margin: 0; font-size: 16px; color: #ddd; }
.breadcrumbs { font-size: 13px; color: var(--gray); padding: 12px 0; }
.breadcrumbs a { color: var(--gray); }
.breadcrumbs .sep { margin: 0 8px; }
.post-header .breadcrumbs { padding-left: 0; padding-right: 0; }
.post-header .breadcrumbs .container { padding: 0; }

/* Content */
.entry-content { padding-top: 24px; padding-bottom: 24px; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { margin-top: 1.2em; }
.entry-content h3 { margin-top: 1.4em; }
.entry-content img { border-radius: 10px; }
.entry-content ul li, .entry-content ol li { margin-bottom: 0.3em; }
.entry-content .wp-block-image, .entry-content figure { margin: 1.5em 0; }
.entry-content .wp-block-gallery { gap: 12px; }
.entry-content .wp-block-gallery img { border-radius: 8px; }
.page .entry-content, .service-content .entry-content { padding-bottom: 48px; }

/* FAQ accordion */
.faq-item { border: 1px solid var(--gray-line); border-radius: 10px; margin-bottom: 12px; background: #fff; }
.faq-item summary {
	cursor: pointer; list-style: none;
	font-family: var(--font-head); font-size: 20px; font-weight: 600;
	padding: 16px 48px 16px 20px; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
	content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
	width: 28px; height: 28px; border-radius: 50%; background: var(--red); color: #fff;
	font-family: var(--font-body); font-weight: 600; display: flex; align-items: center; justify-content: center;
}
.faq-item[open] summary::after { content: "\2013"; }
.faq-answer { padding: 0 20px 16px; }

/* Blog single */
.post-header { padding: 28px 0 8px; }
.post-title { font-size: 44px; }
.post-meta { color: var(--gray); font-size: 14px; }
.post-grid { display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: start; padding-bottom: 32px; }
.post-aside { position: sticky; top: 24px; }
.post-image { border-radius: 14px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 20px; }
.post-cta { background: var(--light); border-radius: 14px; padding: 22px; }
.post-cta h2 { font-size: 24px; }
.post-cta .btn { display: block; margin-top: 10px; }
.post-nav { display: flex; justify-content: space-between; gap: 16px; padding: 16px var(--gutter) 40px; font-weight: 600; }
.pagination { margin-top: 36px; text-align: center; }
.pagination .page-numbers { display: inline-block; padding: 8px 14px; margin: 2px; border-radius: 6px; background: var(--light); color: var(--black); }
.pagination .page-numbers.current { background: var(--red); color: #fff; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; }
.contact-info { background: var(--light); border-radius: 14px; padding: 28px; }
.contact-info h3 { font-size: 20px; margin-top: 1.4em; }
.serving-list { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.serving-list.cols { columns: 2; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 0; }
.hours dd { margin: 0; }

/* Search form */
.search-form { display: flex; gap: 8px; max-width: 420px; margin: 20px auto 0; }
.search-form label { flex: 1; }

/* ------------------------------------------------------------------
   Footer
------------------------------------------------------------------ */
.about-band { background: var(--black); color: #fff; padding: var(--section) 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-title { color: #fff; font-size: 28px; }
.video-frame { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 10; background: #000; }
.video-frame img, .about-photo { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.video-frame video, .video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-frame .play {
	position: absolute; inset: 0; margin: auto;
	width: 86px; height: 86px; border-radius: 50%;
	background: rgba(255, 255, 255, 0.92); color: var(--red);
	border: 0; cursor: pointer; display: flex; align-items: center; justify-content: center;
	transition: transform 0.2s;
}
.video-frame .play:hover { transform: scale(1.06); }
.video-frame .play .icon { width: 44px; height: 44px; }

.footer-main { background: var(--red); color: #fff; padding: 48px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.footer-title { color: #fff; font-size: 20px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 14px; }
.footer-serving .serving-list { columns: 2; column-gap: 24px; }
.footer-main a { color: #fff; }
.footer-main .btn-light { color: var(--black); }
.footer-phone { font-weight: 700; font-size: 20px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 6px; }
.footer-main .hours { font-size: 15px; }

.footer-legal { background: #fff; padding: 18px 0; font-size: 13px; color: var(--gray); text-align: center; }
.footer-legal p { margin: 0 0 6px; }
.footer-legal a { color: var(--gray); }

/* ------------------------------------------------------------------
   Responsive
------------------------------------------------------------------ */
@media (max-width: 1024px) {
	.hero-title { font-size: 42px; }
	.cards-3 { grid-template-columns: repeat(2, 1fr); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.reviews-grid, .about-grid, .post-grid, .contact-grid { grid-template-columns: 1fr; }
	.post-aside { position: static; }
	.main-nav .menu a { font-size: 16px; padding: 10px 10px; }
	.services-cards .card, .services-cards-4 .card { max-width: calc((100% - 20px) / 2); }
}

@media (max-width: 860px) {
	:root { --section: 48px; }
	.topbar { border-top-width: 3px; }
	.topbar-inner { grid-template-columns: 1fr auto 1fr; gap: 8px; }
	.topbar-left, .topbar-right { display: none; }
	.brand { grid-column: 2; }
	.brand img.custom-logo { width: 190px; }
	.nav-toggle { display: block; grid-column: 3; justify-self: end; }
	.topbar-mobile-ctas {
		display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
		grid-column: 1 / -1; padding-bottom: 4px;
	}
	.topbar-mobile-ctas .btn { padding-left: 10px; padding-right: 10px; }

	/* Services grid on phones: compact tappable tiles instead of a tall stack of image cards. */
	.services-group + .services-group { margin-top: 28px; }
	.line-banner { position: relative; flex-direction: row; align-items: stretch; gap: 14px; border-left-width: 4px; border-radius: 10px; margin-bottom: 10px; }
	.line-media { flex: 0 0 104px; }
	.line-media img { aspect-ratio: 1; height: 100%; }
	.line-body { padding: 10px 14px 10px 0; gap: 2px; }
	.line-title { font-size: 18px; line-height: 1.25; }
	.line-text, .line-body .btn { display: none; }
	.line-title a::after { content: ""; position: absolute; inset: 0; }
	.card-kicker { font-size: 11px; margin-bottom: 0; }
	.services-cards { gap: 10px; }
	.services-cards-2x2 { max-width: none; }
	.services-cards .card, .services-cards-2 .card, .services-cards-4 .card, .services-cards-2x2 .card {
		max-width: 100%; flex-basis: 100%; flex-direction: row; align-items: stretch;
		position: relative; border-radius: 10px;
	}
	.services-cards .card-media { flex: 0 0 88px; }
	.services-cards .card-media img { aspect-ratio: 1; height: 100%; }
	.services-cards .card-body { padding: 12px 44px 12px 14px; justify-content: center; }
	.services-cards .card-title { font-size: 16px; line-height: 1.3; }
	.services-cards .card .btn { display: none; }
	.services-cards .card-title a::after { content: ""; position: absolute; inset: 0; }
	.services-cards .card::after {
		content: ""; position: absolute; right: 20px; top: 50%;
		width: 10px; height: 10px; border-right: 2px solid var(--red); border-bottom: 2px solid var(--red);
		transform: translateY(-50%) rotate(-45deg);
	}

	.main-nav {
		display: none;
		position: absolute; left: 0; right: 0; top: 100%;
		max-height: calc(100vh - 100px); overflow-y: auto;
		box-shadow: var(--shadow);
	}
	.nav-open .main-nav { display: block; }
	.main-nav .container { padding: 0; }
	.main-nav .menu { flex-direction: column; }
	.main-nav .menu > li { flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, 0.15); }
	.main-nav .menu a { flex: 1; padding: 13px 18px; border-bottom: 0; }
	/* Drawer submenus open only by toggle; display decides, so a sticky touch hover cannot hide them. */
	.main-nav .sub-menu,
	.main-nav .menu > li:hover > .sub-menu,
	.main-nav .menu > li:focus-within > .sub-menu {
		position: static; width: 100%; display: none;
		opacity: 1; visibility: visible; transform: none;
		border-radius: 0; box-shadow: none; padding: 0;
		background: #fff;
	}
	.main-nav .menu > li.is-open > .sub-menu { display: block; }
	.main-nav .sub-menu a { padding: 11px 28px; }
	.submenu-toggle { padding: 10px 18px; }

	.hero { padding: 48px 0; }
	.hero-grid { grid-template-columns: 1fr; gap: 28px; }
	.hero-title { font-size: 36px; }
	.hero-subtitle { font-size: 24px; }
	.intro-content { columns: 1; }
	.why-grid { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; }
	.service-row { grid-template-columns: 1fr; gap: 20px; }
	.service-row:nth-child(even) .service-media { order: 0; }
	.projects-grid { grid-template-columns: repeat(2, 1fr); }
	h1, .post-title { font-size: 34px; }
	h2 { font-size: 29px; }
	.page-title-band .page-title { font-size: 32px; }
}

@media (max-width: 560px) {
	.cards-3 { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; }
	.why-label { font-size: 15px; }
	.btn-lg { font-size: 15px; padding: 13px 24px; }
	.hero-cta .btn { width: 100%; }
	.hero-form { padding: 20px 18px 12px; }
}

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