/*
Theme Name: CarpetCleaner
Theme URI: https://protechcarpetcare.com/
Description: Custom lightweight theme for ProTech Carpet Care, built for accessibility, performance, and local search visibility.
Author: ProTech Carpet Care
Version: 3.0.7
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ptcc
*/

:root {
	--pt-navy: #102b52;
	--pt-navy-dark: #0a203e;
	--pt-blue: #2f5a9c;
	--pt-sky: #4d9de0;
	--pt-red: #e02040;
	--pt-red-dark: #b91632;
	--pt-ink: #203246;
	--pt-muted: #5d6b7c;
	--pt-soft: #f4f7fb;
	--pt-line: #dce4ed;
	--pt-white: #fff;
	--pt-shell: 1180px;
	--pt-radius: 12px;
	--pt-shadow: 0 18px 50px rgba(16, 43, 82, .12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: #fff;
	color: var(--pt-ink);
	font-family: "DM Sans", "Segoe UI", Arial, sans-serif;
	font-size: 17px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--pt-blue); text-underline-offset: .18em; }
a:hover { color: var(--pt-red); }
h1, h2, h3, h4, h5, h6 {
	margin: 0 0 .55em;
	color: var(--pt-navy);
	font-family: "Playfair Display", Georgia, serif;
	font-weight: 700;
	line-height: 1.12;
}
h1 { font-size: clamp(2.45rem, 5vw, 4.6rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3.25rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); }
p { margin: 0 0 1.1em; }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 3px solid var(--pt-sky); outline-offset: 3px; }

.skip-link {
	position: fixed;
	left: 16px;
	top: -100px;
	z-index: 10000;
	padding: 10px 16px;
	background: #fff;
	color: var(--pt-navy);
	font-weight: 800;
}
.skip-link:focus { top: 16px; }
.pt-shell { width: min(var(--pt-shell), calc(100% - 48px)); margin-inline: auto; }

.site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	border-bottom: 1px solid rgba(16, 43, 82, .1);
	background: rgba(255, 255, 255, .97);
	box-shadow: 0 4px 22px rgba(16, 43, 82, .06);
	backdrop-filter: blur(14px);
}
.admin-bar .site-header { top: 32px; }
.site-header__inner {
	display: grid;
	grid-template-columns: 200px minmax(0, 1fr) auto;
	align-items: center;
	gap: 24px;
	width: min(1340px, calc(100% - 40px));
	min-height: 82px;
	margin-inline: auto;
}
.site-brand { display: inline-flex; align-items: center; }
.site-brand img { display: block; width: 190px; max-height: 66px; object-fit: contain; }
.desktop-nav { min-width: 0; }
.pt-menu, .pt-menu ul { margin: 0; padding: 0; list-style: none; }
.pt-menu { display: flex; align-items: center; justify-content: center; gap: 2px; }
.pt-menu > li { position: relative; }
.pt-menu > li > a {
	display: block;
	padding: 27px 12px;
	color: var(--pt-navy);
	font-size: 14px;
	font-weight: 800;
	line-height: 1.1;
	text-decoration: none;
}
.pt-menu > li:hover > a, .pt-menu > li:focus-within > a, .pt-menu .current-menu-item > a { color: var(--pt-red); }
.pt-menu .sub-menu {
	position: absolute;
	top: calc(100% - 8px);
	left: 0;
	display: grid;
	min-width: 260px;
	max-height: min(68vh, 620px);
	padding: 10px;
	border: 1px solid var(--pt-line);
	border-radius: 10px;
	background: #fff;
	box-shadow: var(--pt-shadow);
	opacity: 0;
	overflow-y: auto;
	pointer-events: none;
	transform: translateY(8px);
	transition: opacity .18s ease, transform .18s ease;
}
.pt-menu li:hover > .sub-menu, .pt-menu li:focus-within > .sub-menu { opacity: 1; pointer-events: auto; transform: translateY(0); }
.pt-menu .sub-menu a { display: block; padding: 9px 12px; border-radius: 7px; color: var(--pt-ink); font-size: 14px; font-weight: 700; line-height: 1.3; text-decoration: none; }
.pt-menu .sub-menu a:hover, .pt-menu .sub-menu a:focus { background: var(--pt-soft); color: var(--pt-red); }
.pt-menu .sub-menu .sub-menu { top: -10px; left: calc(100% - 4px); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-phone { color: var(--pt-navy); font-size: 14px; font-weight: 900; text-decoration: none; white-space: nowrap; }
.header-cta, .pt-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 22px;
	border: 0;
	border-radius: 7px;
	background: var(--pt-red);
	box-shadow: 0 10px 24px rgba(224, 32, 64, .22);
	color: #fff !important;
	font-weight: 900;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.header-cta:hover, .pt-button:hover { background: var(--pt-red-dark); box-shadow: 0 13px 28px rgba(185, 22, 50, .28); transform: translateY(-2px); }
.mobile-nav { display: none; }

.site-main { min-height: 55vh; overflow: hidden; }
.pt-title-hero {
	padding: clamp(72px, 9vw, 130px) 0;
	background: linear-gradient(135deg, var(--pt-navy-dark), var(--pt-blue));
	color: #fff;
}
.pt-title-hero h1 { max-width: 980px; color: #fff; }
.pt-title-hero p { max-width: 760px; color: rgba(255, 255, 255, .84); font-size: 1.1rem; }
.pt-eyebrow { margin-bottom: 12px !important; color: #b9dcff !important; font-size: .82rem !important; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }

.entry-content > p, .entry-content > h2, .entry-content > h3, .entry-content > h4, .entry-content > ul, .entry-content > ol, .entry-content > blockquote, .entry-content > table, .entry-content > form, .entry-content > .wp-block-group {
	width: min(920px, calc(100% - 48px));
	margin-right: auto;
	margin-left: auto;
}
.entry-content > p:first-child { margin-top: 48px; }
.entry-content > p:last-child { margin-bottom: 64px; }
.entry-content ul, .entry-content ol { padding-left: 1.25em; }
.entry-content li { margin-bottom: .45em; }
.entry-content iframe { display: block; width: 100%; max-width: 100%; border: 0; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 12px; border: 1px solid var(--pt-line); text-align: left; }
.entry-content blockquote { padding: 24px 28px; border-left: 4px solid var(--pt-red); background: var(--pt-soft); }

.pt-section { padding: clamp(56px, 7vw, 92px) 0; background: #fff; }
.pt-section + .pt-section { border-top: 1px solid rgba(16, 43, 82, .04); }
.pt-section--dark, .pt-section--dark h1, .pt-section--dark h2, .pt-section--dark h3, .pt-section--dark h4 { color: #fff; }
.pt-section--dark p, .pt-section--dark li { color: rgba(255, 255, 255, .86); }
.pt-row {
	display: grid;
	grid-template-columns: repeat(var(--pt-cols, 1), minmax(0, 1fr));
	gap: clamp(24px, 4vw, 44px);
	align-items: stretch;
	width: min(var(--pt-shell), calc(100% - 48px));
	margin-inline: auto;
}
.pt-row + .pt-row { margin-top: 30px; }
.pt-cols-1 { --pt-cols: 1; }
.pt-cols-2 { --pt-cols: 2; }
.pt-cols-3 { --pt-cols: 3; }
.pt-cols-4 { --pt-cols: 4; }
.pt-col { min-width: 0; }
.pt-text { max-width: 860px; }
.pt-cols-1 > .pt-col > .pt-text { margin-inline: auto; }
.pt-text--center { margin-inline: auto; text-align: center; }
.pt-text p:last-child { margin-bottom: 0; }
.pt-button-wrap { margin-top: 24px; }
.pt-button-wrap--center { text-align: center; }
.pt-card {
	height: 100%;
	padding: clamp(25px, 3vw, 38px);
	border: 1px solid var(--pt-line);
	border-radius: var(--pt-radius);
	background: #fff;
	box-shadow: 0 12px 36px rgba(16, 43, 82, .08);
}
.pt-card h3 { color: var(--pt-navy); }
.pt-card__body { color: var(--pt-muted); }
.pt-card__body > :last-child { margin-bottom: 0; }
.pt-card__link { display: block; height: 100%; color: inherit; text-decoration: none; }
.pt-card__link:hover h3 { color: var(--pt-red); }
.pt-image { margin: 0; overflow: hidden; border-radius: var(--pt-radius); box-shadow: var(--pt-shadow); }
.pt-image img { display: block; width: 100%; }

.localtry-service-gallery { width: min(var(--pt-shell), calc(100% - 48px)) !important; margin-inline: auto !important; }
.localtry-service-gallery img { border-radius: var(--pt-radius); box-shadow: 0 12px 30px rgba(16, 43, 82, .12); }
.localtry-service-gallery figcaption { color: var(--pt-muted); line-height: 1.5; }
.ti-widget, .ti-widget-container { max-width: 100%; }

.pt-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.pt-post-grid { padding-block: 72px; }
.pt-post-card { padding: 28px; border: 1px solid var(--pt-line); border-radius: var(--pt-radius); background: #fff; box-shadow: 0 12px 34px rgba(16, 43, 82, .08); }
.pt-post-card h2 { font-size: 1.6rem; }
.pt-post-card h2 a { color: var(--pt-navy); text-decoration: none; }
.pt-post-card__image { display: block; margin: -28px -28px 24px; overflow: hidden; border-radius: var(--pt-radius) var(--pt-radius) 0 0; }
.pt-post-card__image img { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.pt-post-card__meta { color: var(--pt-muted); font-size: .85rem; font-weight: 800; text-transform: uppercase; }
.navigation.pagination { grid-column: 1/-1; }

.site-footer { background: var(--pt-navy-dark); color: rgba(255, 255, 255, .78); }
.site-footer__grid { display: grid; grid-template-columns: 1.25fr .8fr 1fr 1fr; gap: 44px; padding-block: 68px; }
.site-footer h2 { color: #fff; font-family: inherit; font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; }
.site-footer p, .site-footer li, .site-footer address { font-size: .94rem; }
.site-footer a { color: #fff; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.footer-logo { display: block; width: 210px; margin-bottom: 20px; filter: brightness(0) invert(1); }
.footer-call { display: inline-block; margin-top: 8px; font-size: 1.25rem; font-weight: 900; text-decoration: none; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); }
.site-footer__bottom .pt-shell { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.site-footer__bottom p { margin: 0; }
.footer-menu { display: flex; gap: 18px; margin: 0; padding: 0; list-style: none; }
.footer-menu a { font-size: .85rem; }

@media (max-width: 1160px) {
	.site-header__inner { grid-template-columns: 180px 1fr auto; }
	.desktop-nav, .header-phone { display: none; }
	.mobile-nav { display: block; justify-self: end; position: relative; }
	.mobile-nav > summary { display: inline-flex; align-items: center; min-height: 46px; padding: 10px 16px; border: 1px solid var(--pt-line); border-radius: 7px; color: var(--pt-navy); font-weight: 900; cursor: pointer; list-style: none; }
	.mobile-nav > summary::-webkit-details-marker { display: none; }
	.mobile-nav > nav { position: absolute; top: calc(100% + 12px); right: 0; width: min(380px, calc(100vw - 32px)); max-height: calc(100vh - 120px); padding: 16px; border: 1px solid var(--pt-line); border-radius: var(--pt-radius); background: #fff; box-shadow: var(--pt-shadow); overflow-y: auto; }
	.pt-menu--mobile { display: block; }
	.pt-menu--mobile > li > a, .pt-menu--mobile .sub-menu a { padding: 10px 8px; font-size: 15px; }
	.pt-menu--mobile .sub-menu { position: static; display: block; min-width: 0; max-height: none; margin: 0 0 4px 12px; padding: 0 0 0 10px; border: 0; border-left: 2px solid var(--pt-line); border-radius: 0; box-shadow: none; opacity: 1; overflow: visible; pointer-events: auto; transform: none; }
	.mobile-nav__phone { display: block; margin: 16px 0 12px; padding-top: 14px; border-top: 1px solid var(--pt-line); color: var(--pt-navy); font-weight: 900; text-decoration: none; }
	.site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
	.site-header__inner { grid-template-columns: 1fr auto; gap: 12px; width: min(100% - 28px, 100%); min-height: 72px; }
	.site-brand img { width: 160px; max-height: 56px; }
	.header-actions { display: none; }
	.pt-shell, .pt-row { width: min(100% - 32px, var(--pt-shell)); }
	.pt-row, .pt-card-grid { grid-template-columns: 1fr; }
	.pt-section { padding-block: 54px; }
	.pt-card { padding: 24px; }
	.site-footer__grid { grid-template-columns: 1fr; gap: 28px; padding-block: 52px; }
	.site-footer__bottom .pt-shell { align-items: flex-start; flex-direction: column; justify-content: center; padding-block: 18px; }
	.footer-menu { flex-wrap: wrap; }
	.entry-content > p, .entry-content > h2, .entry-content > h3, .entry-content > h4, .entry-content > ul, .entry-content > ol, .entry-content > blockquote, .entry-content > table, .entry-content > form, .entry-content > .wp-block-group { width: min(100% - 32px, 920px); }
}

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

/* The homepage's preserved custom sections sit inside one legacy builder row. */
.home .entry-content .pt-section:first-of-type { padding: 0; }
.home .entry-content .pt-section:first-of-type > .pt-row { display: block; width: 100%; max-width: none; }
.home .entry-content .pt-section:first-of-type .pt-text { width: 100%; max-width: none; }
.home .hero h1 { color: #fff; }

/* Normalize preserved builder wrappers on modern service landing pages. */
.page .entry-content .pt-section:has(.service-hero) {
	padding-block: 0;
}
.page .entry-content .pt-section:has(.service-hero) > br,
.page .entry-content .pt-section:has(.service-hero) > .pt-row > br,
.page .entry-content .pt-section:has(.service-hero) > .pt-row > .pt-col > br,
.page .entry-content .pt-section:has(.service-hero) > .pt-row > .pt-col > p:has(+ .pt-text) {
	display: none;
}
.page .entry-content .pt-section:has(.service-hero) > .pt-row {
	row-gap: 0;
}

.page .entry-content .pt-section:has(.service-hero) > .pt-row > .pt-col > pee > br {
	display: none;
}

/* Recovered homepage presentation, scoped to the front page. */
body.home{
--navy: #2B4D6F;
--deep-blue: #3A6490;
--steel: #4A7FAA;
--steel-light: #5B93BF;
--accent: #4A8EC2;
--accent-light: #6BAAD6;
--dark-blue: #1E3A56;
--white: #FFFFFF;
--off-white: #F5F8FB;
--light-gray: #E2EAF2;
--text: #2B3E50;
--text-light: #5A7186;
--success: #3DAA6D;
--radius: 12px;
--radius-lg: 20px;
--shadow: 0 4px 24px rgba(43, 77, 111, 0.08);
--shadow-lg: 0 12px 48px rgba(43, 77, 111, 0.12);
--transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.home, body.home *{ margin: 0; padding: 0; box-sizing: border-box; }

body.home{
font-family: 'DM Sans', sans-serif;
color: var(--text);
line-height: 1.7;
overflow-x: hidden;
-webkit-font-smoothing: antialiased;
}

body.home img{ max-width: 100%; height: auto; display: block; }
body.home a{ text-decoration: none; color: inherit; }

body.home .container{
max-width: 1200px !important;
margin: 0 auto !important;
padding: 0 24px !important;
width: 100% !important;
}

/* ========== HERO ========== */
body.home .hero{
position: relative;
background: linear-gradient(135deg, var(--deep-blue) 0%, var(--steel) 50%, var(--steel-light) 100%), url('https://protechcarpetcare.com/wp-content/uploads/2026/03/Untitled-design-34-scaled.png');
background-size: cover;
background-position: center;
background-blend-mode: multiply;
color: var(--white);
padding: 100px 0 80px;
text-align: center;
overflow: hidden;
}

body.home .hero::before{
content: '';
position: absolute;
inset: 0;
background:
radial-gradient(ellipse at 20% 50%, rgba(75, 147, 191, 0.2) 0%, transparent 60%),
radial-gradient(ellipse at 80% 20%, rgba(255, 255, 255, 0.06) 0%, transparent 50%);
pointer-events: none;
}

body.home .hero::after{
content: '';
position: absolute;
bottom: -2px;
left: 0;
right: 0;
height: 80px;
background: var(--off-white);
clip-path: ellipse(55% 100% at 50% 100%);
}

body.home .hero-content{ position: relative; z-index: 2; }

body.home .hero h1{
font-family: 'Playfair Display', serif;
font-size: clamp(2.2rem, 5vw, 3.6rem);
font-weight: 800;
line-height: 1.15;
margin-bottom: 16px;
letter-spacing: -0.02em;
}

body.home .hero h1 .highlight{
color: var(--white);
text-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

body.home .hero-subtitle{
font-size: 1.1rem;
opacity: 0.85;
max-width: 600px;
margin: 0 auto 32px;
font-style: italic;
}

body.home .btn-primary{
display: inline-flex;
align-items: center;
gap: 10px;
background: var(--white);
color: var(--navy);
font-weight: 700;
font-size: 1.1rem;
padding: 16px 36px;
border-radius: 50px;
border: none;
cursor: pointer;
transition: var(--transition);
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
letter-spacing: 0.02em;
}

body.home .btn-primary:hover{
transform: translateY(-2px);
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

body.home .btn-secondary{
display: inline-flex;
align-items: center;
gap: 8px;
background: transparent;
color: var(--white);
font-weight: 600;
font-size: 1rem;
padding: 14px 28px;
border-radius: 50px;
border: 2px solid rgba(255,255,255,0.3);
cursor: pointer;
transition: var(--transition);
margin-left: 12px;
}

body.home .btn-secondary:hover{
border-color: var(--white);
color: var(--white);
background: rgba(255,255,255,0.1);
}

body.home .hero-buttons{ display: flex !important; justify-content: center !important; flex-wrap: wrap; gap: 12px !important; }

/* ========== INTRO ========== */
body.home .intro{
background: var(--off-white);
padding: 80px 0 60px;
}

body.home .intro-inner{
max-width: 800px;
margin: 0 auto;
text-align: center;
}

body.home .section-label{
display: inline-block;
font-size: 0.75rem;
font-weight: 700;
letter-spacing: 0.15em;
text-transform: uppercase;
color: var(--steel);
background: rgba(74, 127, 170, 0.1);
padding: 6px 16px;
border-radius: 50px;
margin-bottom: 16px;
}

body.home .section-title{
font-family: 'Playfair Display', serif;
font-size: clamp(1.8rem, 3.5vw, 2.6rem);
font-weight: 700;
color: var(--navy);
margin-bottom: 20px;
line-height: 1.2;
}

body.home .intro p{
font-size: 1.05rem;
color: var(--text-light);
max-width: 680px;
margin: 0 auto;
}

body.home .intro p a{
color: var(--accent);
font-weight: 600;
border-bottom: 2px solid rgba(74, 142, 194, 0.2);
transition: var(--transition);
}

body.home .intro p a:hover{ border-bottom-color: var(--accent); }

/* ========== STATS ========== */
body.home .stats{
background: var(--off-white);
padding: 0 0 80px;
}

body.home .stats-grid{
display: flex !important;
flex-wrap: wrap !important;
gap: 20px !important;
}

body.home .stat-card{
background: var(--white);
border-radius: var(--radius-lg);
padding: 32px 20px;
text-align: center;
box-shadow: var(--shadow);
transition: var(--transition);
border: 1px solid var(--light-gray);
width: calc(25% - 15px) !important;
max-width: calc(25% - 15px) !important;
flex-shrink: 0 !important;
box-sizing: border-box !important;
}

body.home .stat-card:hover{
transform: translateY(-4px);
box-shadow: var(--shadow-lg);
}

body.home .stat-number{
font-family: 'Playfair Display', serif;
font-size: 2.8rem;
font-weight: 800;
color: var(--navy);
line-height: 1;
}

body.home .stat-label{
font-size: 0.85rem;
font-weight: 600;
color: var(--text-light);
text-transform: uppercase;
letter-spacing: 0.08em;
margin-top: 8px;
}

/* ========== CERTIFICATIONS ========== */
body.home .certifications{
background: var(--white);
padding: 60px 0;
border-top: 1px solid var(--light-gray);
border-bottom: 1px solid var(--light-gray);
}

body.home .cert-grid{
display: flex !important;
justify-content: center !important;
align-items: center !important;
gap: 48px !important;
flex-wrap: wrap;
}

body.home .cert-grid img{
height: 90px;
width: auto;
object-fit: contain;
filter: grayscale(20%);
transition: var(--transition);
}

body.home .cert-grid img:hover{ filter: grayscale(0%); transform: scale(1.05); }

/* ========== ABOUT ========== */
body.home .about{
padding: 100px 0;
background: var(--off-white);
}

body.home .about-grid{
display: flex !important;
flex-wrap: wrap !important;
gap: 60px !important;
align-items: flex-start;
}

body.home .about-grid > *{
width: calc(50% - 30px) !important;
max-width: calc(50% - 30px) !important;
flex-shrink: 0 !important;
box-sizing: border-box !important;
}

body.home .about-text h2{
font-family: 'Playfair Display', serif;
font-size: clamp(1.6rem, 3vw, 2.2rem);
color: var(--navy);
margin-bottom: 16px;
line-height: 1.25;
}

body.home .about-text h3{
font-family: 'Playfair Display', serif;
font-size: 1.3rem;
color: var(--navy);
margin: 24px 0 10px;
}

body.home .about-text p{
color: var(--text-light);
font-size: 1.02rem;
margin-bottom: 12px;
}

/* ========== CONTACT FORM ========== */
body.home .booking-form{
background: var(--white);
border-radius: var(--radius-lg);
padding: 40px;
box-shadow: var(--shadow-lg);
border: 1px solid var(--light-gray);
}

body.home .booking-form h3{
font-family: 'Playfair Display', serif;
font-size: 1.6rem;
color: var(--navy);
margin-bottom: 24px;
text-align: center;
}

body.home .form-row{ display: flex !important; gap: 16px !important; margin-bottom: 16px; }
body.home .form-row > *{ width: calc(50% - 8px) !important; flex-shrink: 0 !important; box-sizing: border-box !important; }

body.home .booking-form label{
display: block;
font-weight: 600;
font-size: 0.85rem;
color: var(--navy);
margin-bottom: 6px;
letter-spacing: 0.02em;
}

body.home .booking-form input, body.home .booking-form textarea{
width: 100%;
padding: 14px 16px;
border: 2px solid var(--light-gray);
border-radius: var(--radius);
font-family: 'DM Sans', sans-serif;
font-size: 0.95rem;
color: var(--text);
transition: var(--transition);
background: var(--off-white);
}

body.home .booking-form input:focus, body.home .booking-form textarea:focus{
outline: none;
border-color: var(--accent);
background: var(--white);
box-shadow: 0 0 0 4px rgba(74, 142, 194, 0.12);
}

body.home .booking-form textarea{ min-height: 120px; resize: vertical; }

body.home .booking-form .btn-submit{
width: 100%;
background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
color: var(--white);
font-weight: 700;
font-size: 1rem;
padding: 16px;
border: none;
border-radius: var(--radius);
cursor: pointer;
transition: var(--transition);
margin-top: 8px;
letter-spacing: 0.02em;
}

body.home .booking-form .btn-submit:hover{
transform: translateY(-2px);
box-shadow: 0 8px 24px rgba(74, 142, 194, 0.3);
}

/* ========== SERVICES ========== */
body.home .services{
padding: 100px 0;
background: var(--white);
}

body.home .services-header{
text-align: center;
margin-bottom: 60px;
}

body.home .services-header p{
max-width: 700px;
margin: 0 auto;
color: var(--text-light);
font-size: 1.05rem;
}

body.home .services-header p a{
color: var(--accent);
font-weight: 600;
}

body.home .services-grid{
display: flex !important;
flex-wrap: wrap !important;
gap: 20px !important;
width: 100% !important;
}

body.home .service-card{
background: var(--off-white);
border-radius: var(--radius-lg);
padding: 24px 24px;
border: 1px solid var(--light-gray);
transition: var(--transition);
position: relative;
overflow: hidden;
width: calc(50% - 10px) !important;
max-width: calc(50% - 10px) !important;
min-width: 0 !important;
float: none !important;
flex-shrink: 0 !important;
box-sizing: border-box !important;
}

body.home .service-card::before{
content: '';
position: absolute;
top: 0; left: 0; right: 0;
height: 4px;
background: linear-gradient(90deg, var(--steel), var(--accent-light));
opacity: 0;
transition: var(--transition);
}

body.home .service-card:hover{
transform: translateY(-4px);
box-shadow: var(--shadow-lg);
border-color: transparent;
}

body.home .service-card:hover::before{ opacity: 1; }

body.home .service-icon{
width: 40px;
height: 40px;
background: linear-gradient(135deg, var(--steel), var(--accent-light));
border-radius: 10px;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 14px;
font-size: 1.2rem;
}

body.home .service-card h3{
font-family: 'Playfair Display', serif;
font-size: 1.1rem;
color: var(--navy);
margin-bottom: 8px;
}

body.home .service-card p{
color: var(--text-light);
font-size: 0.88rem;
margin-bottom: 12px;
line-height: 1.55;
}

body.home .service-link{
display: inline-flex;
align-items: center;
gap: 6px;
font-weight: 700;
font-size: 0.9rem;
color: var(--accent);
transition: var(--transition);
}

body.home .service-link:hover{ gap: 10px; }
body.home .service-link svg{ width: 16px; height: 16px; transition: var(--transition); }

/* ========== VIDEO ========== */
body.home .video-section{
padding: 80px 0;
background: linear-gradient(135deg, var(--navy) 0%, var(--deep-blue) 100%);
text-align: center;
color: var(--white);
position: relative;
overflow: hidden;
}

body.home .video-section::before{
content: '';
position: absolute;
inset: 0;
background: radial-gradient(ellipse at center, rgba(74,142,194,0.12) 0%, transparent 70%);
}

body.home .video-section .section-title{ color: var(--white); position: relative; z-index: 1; }
body.home .video-section .section-label{ position: relative; z-index: 1; }

body.home .video-wrapper{
position: relative;
z-index: 1;
max-width: 800px;
margin: 32px auto 0;
border-radius: var(--radius-lg);
overflow: hidden;
box-shadow: 0 20px 60px rgba(0,0,0,0.4);
aspect-ratio: 16/9;
}

body.home .video-wrapper iframe{
width: 100%;
height: 100%;
border: none;
}

/* ========== KNOW US ========== */
body.home .know-us{
padding: 100px 0;
background: var(--off-white);
}

body.home .know-grid{
display: flex !important;
flex-wrap: wrap !important;
gap: 60px !important;
align-items: center;
}

body.home .know-grid > *{
width: calc(50% - 30px) !important;
max-width: calc(50% - 30px) !important;
flex-shrink: 0 !important;
box-sizing: border-box !important;
}

body.home .know-video-thumb{
border-radius: var(--radius-lg);
overflow: hidden;
box-shadow: var(--shadow-lg);
}

body.home .know-video-thumb img{ width: 100%; }

body.home .know-text p{
color: var(--text-light);
font-size: 1.02rem;
margin-bottom: 16px;
}

body.home .know-text a{
color: var(--accent);
font-weight: 600;
}

/* ========== FEATURES LIST ========== */
body.home .features{
padding: 100px 0;
background: var(--white);
}

body.home .features-flex{
display: flex !important;
flex-wrap: wrap !important;
gap: 60px !important;
align-items: center;
}

body.home .features-flex > *{
width: calc(50% - 30px) !important;
max-width: calc(50% - 30px) !important;
flex-shrink: 0 !important;
box-sizing: border-box !important;
}

body.home .feature-list{ list-style: none; }

body.home .feature-item{
display: flex;
align-items: flex-start;
gap: 14px;
padding: 14px 0;
border-bottom: 1px solid var(--light-gray);
}

body.home .feature-item:last-child{ border-bottom: none; }

body.home .feature-check{
flex-shrink: 0;
width: 28px;
height: 28px;
background: linear-gradient(135deg, var(--steel), var(--accent-light));
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin-top: 2px;
}

body.home .feature-check svg{ width: 14px; height: 14px; color: white; }

body.home .feature-item h3{
font-size: 1rem;
font-weight: 600;
color: var(--navy);
}

body.home .features-image{
border-radius: var(--radius-lg);
overflow: hidden;
box-shadow: var(--shadow-lg);
}

body.home .features-image img{ width: 100%; }

/* ========== REVIEWS ========== */
body.home .reviews{
padding: 80px 0;
background: var(--off-white);
text-align: center;
}

body.home .reviews .section-title .red{ color: #E74C3C; }

body.home .shortcode-placeholder{
margin-top: 32px;
padding: 20px;
font-size: 1rem;
color: var(--text-light);
}

/* ========== TESTIMONIALS ========== */
body.home .testimonials{
padding: 100px 0;
background: linear-gradient(135deg, var(--navy) 0%, var(--deep-blue) 100%);
color: var(--white);
position: relative;
overflow: hidden;
}

body.home .testimonials::before{
content: '';
position: absolute;
inset: 0;
background:
radial-gradient(ellipse at 10% 90%, rgba(74,127,170,0.12) 0%, transparent 50%),
radial-gradient(ellipse at 90% 10%, rgba(91,147,191,0.1) 0%, transparent 50%);
}

body.home .testimonials .section-title{ color: var(--white); position: relative; }
body.home .testimonials .section-label{ position: relative; }

body.home .testimonial-grid{
display: flex !important;
flex-wrap: wrap !important;
gap: 24px !important;
margin-top: 48px;
position: relative;
}

body.home .testimonial-card{
background: rgba(255,255,255,0.06);
border: 1px solid rgba(255,255,255,0.1);
border-radius: var(--radius-lg);
padding: 32px;
backdrop-filter: blur(10px);
text-align: left;
transition: var(--transition);
width: calc(50% - 12px) !important;
max-width: calc(50% - 12px) !important;
flex-shrink: 0 !important;
box-sizing: border-box !important;
}

body.home .testimonial-card:hover{
background: rgba(255,255,255,0.1);
border-color: rgba(255,255,255,0.2);
}

body.home .testimonial-stars{ margin-bottom: 16px; color: #F4D03F; font-size: 1.1rem; letter-spacing: 2px; }

body.home .testimonial-card p{
font-size: 0.98rem;
line-height: 1.7;
opacity: 0.9;
margin-bottom: 16px;
}

body.home .testimonial-author{
font-weight: 700;
font-size: 0.9rem;
color: var(--accent-light);
}

body.home .testimonial-date{
font-size: 0.8rem;
opacity: 0.5;
margin-top: 2px;
}

/* ========== EXTRA SERVICES BANNER ========== */
body.home .services-banner{
padding: 60px 0;
background: var(--white);
text-align: center;
}

body.home .services-tags{
display: flex !important;
justify-content: center !important;
gap: 16px !important;
flex-wrap: wrap;
margin-top: 24px;
}

body.home .service-tag{
background: var(--off-white);
border: 1px solid var(--light-gray);
border-radius: 50px;
padding: 12px 24px;
font-weight: 600;
color: var(--navy);
font-size: 0.95rem;
transition: var(--transition);
}

body.home .service-tag:hover{
background: var(--accent);
color: var(--white);
border-color: var(--accent);
}

body.home .cta-phone{
margin-top: 28px;
font-family: 'Playfair Display', serif;
font-size: 1.3rem;
color: var(--navy);
}

body.home .cta-phone a{
color: var(--accent);
font-weight: 700;
border-bottom: 2px solid var(--accent);
}

/* ========== FAQ ========== */
body.home .faq{
padding: 100px 0;
background: var(--off-white);
}

body.home .faq-grid{
max-width: 820px;
margin: 48px auto 0;
}

body.home .faq-item{
background: var(--white);
border-radius: var(--radius);
margin-bottom: 12px;
border: 1px solid var(--light-gray);
overflow: hidden;
transition: var(--transition);
}

body.home .faq-item:hover{ box-shadow: var(--shadow); }

body.home .faq-question{
width: 100%;
background: none;
border: none;
padding: 20px 24px;
text-align: left;
font-family: 'DM Sans', sans-serif;
font-size: 1rem;
font-weight: 700;
color: var(--navy);
cursor: pointer;
display: flex;
justify-content: space-between;
align-items: center;
transition: var(--transition);
}

body.home .faq-question:hover{ color: var(--accent); }

body.home .faq-chevron{
width: 20px;
height: 20px;
transition: transform 0.3s ease;
flex-shrink: 0;
margin-left: 12px;
}

body.home .faq-item.open .faq-chevron{ transform: rotate(180deg); }

body.home .faq-answer{
max-height: 0;
overflow: hidden;
transition: max-height 0.4s ease, padding 0.3s ease;
}

body.home .faq-item.open .faq-answer{ max-height: 500px; }

body.home .faq-answer-inner{
padding: 0 24px 20px;
color: var(--text-light);
font-size: 0.95rem;
line-height: 1.7;
}

/* ========== BLOG ========== */
body.home .blog{
padding: 80px 0;
background: var(--white);
}

body.home .blog-grid{
display: flex !important;
flex-wrap: wrap !important;
gap: 24px !important;
margin-top: 48px;
}

body.home .blog-card{
background: var(--off-white);
border-radius: var(--radius-lg);
overflow: hidden;
border: 1px solid var(--light-gray);
transition: var(--transition);
width: calc(33.333% - 16px) !important;
max-width: calc(33.333% - 16px) !important;
flex-shrink: 0 !important;
box-sizing: border-box !important;
}

body.home .blog-card:hover{
transform: translateY(-4px);
box-shadow: var(--shadow-lg);
}

body.home .blog-card-img{
height: 200px;
background: var(--light-gray);
overflow: hidden;
}

body.home .blog-card-img img{ width: 100%; height: 100%; object-fit: cover; }

body.home .blog-card-body{ padding: 24px; }

body.home .blog-card h3{
font-family: 'Playfair Display', serif;
font-size: 1.15rem;
color: var(--navy);
margin-bottom: 8px;
line-height: 1.35;
}

body.home .blog-card h3 a{ transition: var(--transition); }
body.home .blog-card h3 a:hover{ color: var(--accent); }

body.home .blog-meta{
font-size: 0.8rem;
color: var(--text-light);
margin-bottom: 12px;
}

body.home .blog-excerpt{
font-size: 0.9rem;
color: var(--text-light);
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
}

body.home .blog-card-noimg{
display: flex;
align-items: center;
min-height: 200px;
background: linear-gradient(135deg, var(--navy), var(--steel));
color: var(--white);
padding: 24px;
font-family: 'Playfair Display', serif;
font-size: 1.1rem;
text-align: center;
justify-content: center;
}

/* ========== MAP ========== */
body.home .map-section{
width: 100%;
height: 450px;
position: relative;
}

body.home .map-section iframe{ width: 100%; height: 100%; border: none; }

/* ========== SERVICE ITEM (replaces inline widths for responsive control) ========== */
body.home .service-item{
width: calc(50% - 10px) !important;
max-width: calc(50% - 10px) !important;
background: #F5F8FB;
border-radius: 16px;
padding: 24px;
border: 1px solid #E2EAF2;
box-sizing: border-box !important;
float: none !important;
display: block !important;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 960px){
body.home .hero h1{ font-size: 2.2rem !important; }
body.home .stat-card{ width: calc(50% - 10px) !important; max-width: calc(50% - 10px) !important; }
body.home .service-item{ width: calc(50% - 10px) !important; max-width: calc(50% - 10px) !important; }
body.home .about-grid > *, body.home .know-grid > *, body.home .features-flex > *{ width: 100% !important; max-width: 100% !important; }
body.home .testimonial-card{ width: 100% !important; max-width: 100% !important; }
body.home .blog-card{ width: 100% !important; max-width: 100% !important; }
body.home .form-row{ flex-direction: column !important; }
body.home .form-row > *{ width: 100% !important; }
}

@media (max-width: 600px){
/* Hero: push buttons above the arch */
body.home .hero{ padding: 60px 0 90px !important; }
body.home .hero::after{ height: 50px !important; }
body.home .hero h1{ font-size: 1.6rem !important; line-height: 1.25 !important; }
body.home .hero p{ font-size: 0.92rem !important; }

/* Stats: 2 columns */
body.home .stat-card{ width: calc(50% - 6px) !important; max-width: calc(50% - 6px) !important; padding: 24px 16px; }
body.home .stat-number{ font-size: 2rem; }

/* Service cards: 1 column */
body.home .service-item{ width: 100% !important; max-width: 100% !important; min-width: 0 !important; }

/* Blog cards: 1 column */
body.home .blog-card{ width: 100% !important; max-width: 100% !important; }

/* Testimonials: 1 column */
body.home .testimonial-card{ width: 100% !important; max-width: 100% !important; }

/* Certs */
body.home .cert-grid{ gap: 24px; }
body.home .cert-grid img{ height: 60px; }

/* Booking form padding */
body.home .booking-form{ padding: 24px 16px; }

/* Section padding reduction */
body.home .about, body.home .services, body.home .know-us, body.home .features, body.home .testimonials, body.home .faq{ padding: 60px 0 !important; }

/* Reduce gap in stacked grids */
body.home .about-grid, body.home .know-grid, body.home .features-flex{ gap: 32px !important; }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeUp{
from { opacity: 0; transform: translateY(24px); }
to { opacity: 1; transform: translateY(0); }
}

body.home .animate-on-scroll{
opacity: 1;
transform: translateY(0);
}

/* Keep long service titles inside narrow mobile screens. */
@media (max-width: 782px) {
  body.page .entry-content .service-hero h1 {
    font-size: clamp(2rem, 10vw, 2.4rem) !important;
    line-height: 1.08 !important;
    overflow-wrap: anywhere;
  }
}


/* PTCC visual alignment repair 3.0.6 */
body.home .service-card {
  display: flex !important;
  flex-direction: column;
}
body.home .service-card .service-link {
  margin-top: auto;
}
body.home .btn-primary,
body.home .btn-secondary,
body.page .entry-content .btn-estimate,
body.page .entry-content .btn-cta-secondary {
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
}
@media (max-width: 600px) {
  body.home .services-grid {
    align-items: stretch !important;
  }
  body.home .service-card,
  body.home .service-item {
    flex: 1 1 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  body.home .hero-buttons {
    flex-direction: column !important;
    align-items: center !important;
    width: 100%;
  }
  body.home .hero-buttons .btn-primary,
  body.home .hero-buttons .btn-secondary {
    width: min(100%, 360px);
  }
  body.page .entry-content .btn-estimate,
  body.page .entry-content .btn-cta-secondary {
    display: inline-flex;
    width: min(100%, 380px);
    white-space: normal;
  }
}


/* PTCC mobile CTA final centering 3.0.7 */
@media (max-width: 600px) {
  body.home .hero-buttons .btn-primary,
  body.home .hero-buttons .btn-secondary {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}
