/*
Theme Name: MPS Electrical Kent
Theme URI: https://mps-elec.com/
Author: MPS Electrical Kent Ltd
Description: A fast, accessible WordPress theme for MPS Electrical Kent Ltd.
Version: 1.2.1
Requires at least: 6.6
Tested up to: 7.0
Requires PHP: 8.0
Text Domain: mps-electrical-kent
*/

:root {
	--orange: #ff4f12;
	--orange-cta: #c93600;
	--ink: #111312;
	--paper: #f8f7f2;
	--paper-strong: #fff;
	--text: #141615;
	--muted: #5d615e;
	--line: rgba(19, 22, 20, .14);
	--focus: #005fcc;
	--radius: 18px;
	--shadow: 0 24px 80px rgba(0, 0, 0, .24);
	--shell: min(1220px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 100px; }
body { margin: 0; background: var(--paper); color: var(--text); font-family: Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; }
body.menu-is-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; height: auto; }
.shell { width: var(--shell); margin-inline: auto; }
.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 { position: fixed; z-index: 999; top: 10px; left: 10px; transform: translateY(-160%); background: #fff; color: #000; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { transform: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.site-header :focus-visible, .hero :focus-visible, .page-hero :focus-visible, .site-footer :focus-visible, .mobile-actions :focus-visible { outline-color: #fff; }

.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--orange-cta); border-radius: 8px; background: var(--orange-cta); color: #fff; padding: 0 22px; font-weight: 800; font-size: 15px; cursor: pointer; transition: transform .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); background: #a92e00; }
.button-small { min-height: 44px; padding-inline: 18px; }
.button-ghost { border-color: rgba(255,255,255,.45); background: transparent; color: #fff; }
.button-ghost:hover { background: rgba(255,255,255,.1); }
.button-full { width: 100%; }
.button-dark { border-color: rgba(255,255,255,.35); background: transparent; }
.button-dark:hover { background: #fff; color: #111; }

.site-header { position: fixed; z-index: 100; inset: 0 0 auto; height: 92px; border-bottom: 1px solid rgba(255,255,255,.1); background: rgba(8,10,9,.97); color: #fff; backdrop-filter: blur(16px); }
.header-inner { width: var(--shell); height: 100%; margin-inline: auto; display: flex; align-items: center; gap: 36px; }
.brand { display: flex; align-items: center; min-width: 180px; }
.brand-logo, .brand img { width: 70px; height: 70px; object-fit: contain; }
.primary-nav { display: flex; align-items: center; justify-content: center; margin-left: auto; }
.primary-nav-links, .primary-nav-links ul { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.primary-nav-links a { display: block; padding: 10px 15px; border-radius: 999px; font-size: 14px; font-weight: 700; transition: color .18s ease, background .18s ease; }
.primary-nav-links a:hover, .primary-nav-links a:focus-visible, .primary-nav-links .current-menu-item > a { background: var(--orange-cta); color: #fff; }
.mobile-menu-actions { display: none; }
.button-quote-menu { border-color: #fff; background: #fff; color: #111; }
.button-quote-menu:hover { background: #efefef; color: #111; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.menu-toggle { display: none; gap: 5px; width: 38px; padding: 8px 4px; border: 0; color: #fff; background: transparent; cursor: pointer; }
.menu-toggle span:not(.screen-reader-text) { width: 22px; height: 2px; background: currentColor; display: block; transition: transform .18s ease, opacity .18s ease; }
.menu-toggle.is-open span:first-child { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero { position: relative; min-height: 760px; padding-top: 92px; display: grid; align-items: center; overflow: hidden; background: #0b0d0c; color: #fff; }
.hero-image { position: absolute; inset: 92px 0 0; width: 100%; height: calc(100% - 92px); max-width: none; object-fit: cover; object-position: center 48%; }
.hero-overlay { position: absolute; inset: 92px 0 0; background: linear-gradient(90deg, rgba(8,10,9,.97), rgba(8,10,9,.83) 43%, rgba(8,10,9,.42) 72%, rgba(8,10,9,.55)), linear-gradient(0deg, rgba(8,10,9,.99), rgba(8,10,9,.92) 25%, transparent 60%); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0,1.18fr) minmax(340px,.72fr); gap: clamp(36px,7vw,100px); align-items: center; padding-block: 76px 96px; }
.hero-copy { max-width: 720px; }
.eyebrow { margin: 0 0 18px; color: #ff9c78; font-size: 12px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.eyebrow-dark { color: #8f2d0b; }
.hero h1 { max-width: 720px; margin: 0; font-size: clamp(48px,6vw,82px); line-height: .98; letter-spacing: -.045em; font-weight: 800; }
.hero-intro { max-width: 650px; margin: 26px 0 0; font-size: clamp(17px,1.6vw,20px); line-height: 1.55; color: rgba(255,255,255,.78); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.trust-list { display: flex; flex-wrap: wrap; gap: 13px 28px; margin: 32px 0 0; padding: 0; list-style: none; color: rgba(255,255,255,.82); font-size: 13px; font-weight: 700; }
.trust-list span { color: var(--orange); margin-right: 6px; }

.quick-quote { position: relative; background: rgba(250,249,245,.98); color: #151716; padding: 0; border: 3px solid var(--orange); border-radius: var(--radius); box-shadow: var(--shadow); scroll-margin-top: 110px; }
.quick-quote::after { content: ""; pointer-events: none; position: absolute; inset: -5px; border: 3px solid transparent; border-radius: calc(var(--radius) + 4px); animation: callback-pulse 7s ease-in-out infinite; }
@keyframes callback-pulse { 0%,78%,100% { border-color: transparent; box-shadow: 0 0 0 rgba(255,79,18,0); } 84% { border-color: rgba(255,79,18,.75); box-shadow: 0 0 0 7px rgba(255,79,18,.11); } 91% { border-color: rgba(255,79,18,.2); box-shadow: 0 0 0 13px rgba(255,79,18,0); } }
.fillout-embed { width: 100%; height: 520px; }
.form-fallback { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

.service-preview, .work-section, .testimonials-section, .accreditations-section { padding: 100px 0; }
.about-section, .areas-section, .contact-section { padding: 105px 0; }
.about-section, .contact-section { background: #efede7; }
.areas-section { background: #fff; }
.section-heading-centered { max-width: 850px; margin: 0 auto 48px; text-align: center; }
.section-heading-centered h2 { margin: 0; font-size: clamp(36px,4.6vw,62px); line-height: 1.04; letter-spacing: -.04em; font-weight: 800; }
.section-intro { max-width: 680px; margin: 22px auto 0; color: var(--muted); font-size: 16px; line-height: 1.7; }
.services-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.service-card { min-height: 300px; padding: 28px; display: flex; flex-direction: column; background: #fff; border: 3px solid var(--line); border-radius: 13px; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.service-card:hover { transform: translateY(-4px); border-color: rgba(255,79,18,.5); box-shadow: 0 18px 44px rgba(20,22,21,.08); }
.service-card-top { display: flex; justify-content: space-between; color: var(--orange); font-size: 12px; font-weight: 900; }
.service-card-top span:last-child { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; }
.service-card h3 { margin: 48px 0 12px; font-size: 24px; letter-spacing: -.025em; }
.service-card p { margin: 0 0 28px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.service-card a, .text-link { margin-top: auto; color: #a53810; font-size: 13px; font-weight: 800; }

.accreditations-section { background: #fff; }
.accreditations-section .section-heading-centered { margin-bottom: 44px; }
.accreditations-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); align-items: stretch; }
.accreditation-logo { min-width: 0; min-height: 220px; padding: 18px 14px; display: grid; place-items: center; border-right: 1px solid var(--line); background: #fff; }
.accreditation-logo:last-child { border-right: 0; }
.accreditation-logo img { width: 100%; max-width: 210px; height: 190px; object-fit: contain; }

.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(50px,8vw,110px); align-items: center; }
.about-panel { padding: 38px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.audience-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.audience-grid article { padding: 29px 31px; display: grid; grid-template-columns: 40px 1fr; column-gap: 18px; background: #fff; }
.audience-grid article > span { grid-row: 1/3; color: var(--orange); font-size: 12px; font-weight: 900; padding-top: 5px; }
.audience-grid h3 { margin: 0 0 8px; font-size: 20px; }
.audience-grid p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

.work-grid { display: grid; grid-template-columns: repeat(3,1fr); grid-auto-rows: 360px; gap: 14px; }
.work-item { position: relative; margin: 0; overflow: hidden; border-radius: 12px; background: #272a28; }
.work-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.work-item:hover img { transform: scale(1.035); }
.work-item::after { content: ""; position: absolute; inset: auto 0 0; height: 45%; background: linear-gradient(transparent,rgba(0,0,0,.75)); }
.work-item figcaption { position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 17px; display: flex; justify-content: space-between; color: #fff; font-size: 12px; }
.work-placeholder-note { margin: 22px auto 0; color: var(--muted); font-size: 13px; text-align: center; }

.areas-layout { display: grid; grid-template-columns: 1.5fr .7fr; gap: 18px; }
.area-list { display: grid; grid-template-columns: repeat(3,1fr); gap: 0 22px; margin: 0; padding: 28px 34px; list-style: none; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.area-list li { position: relative; padding: 13px 0 13px 17px; border-bottom: 1px solid var(--line); color: #373b38; font-size: 14px; font-weight: 700; }
.area-list li::before { content: ""; position: absolute; left: 0; top: 19px; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.areas-cta { padding: 34px; display: flex; flex-direction: column; justify-content: center; border-radius: var(--radius); background: #171a18; color: #fff; }
.areas-cta p { margin: 0 0 13px; color: rgba(255,255,255,.67); font-size: 13px; line-height: 1.6; }
.areas-cta h3 { margin: 0 0 27px; font-size: clamp(25px,2.7vw,35px); line-height: 1.12; }

.testimonials-track { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.testimonial-card { min-height: 400px; margin: 0; padding: 28px; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 13px; }
.quote-mark { height: 62px; color: var(--orange); font: 700 72px/.8 Georgia,serif; }
.testimonial-card blockquote { margin: 20px 0 34px; color: #373b38; font-size: 15px; line-height: 1.75; }
.testimonial-card figcaption { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.testimonial-card figcaption span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }

.contact-grid { display: flex; justify-content: center; }
.contact-callback { width: min(100%,680px); }
.page-hero { position: relative; min-height: 610px; padding-top: 92px; display: grid; align-items: end; overflow: hidden; background: #0a0c0b; color: #fff; }
.page-hero-image { position: absolute; inset: 92px 0 0; width: 100%; height: calc(100% - 92px); max-width: none; object-fit: cover; }
.page-hero-overlay { position: absolute; inset: 92px 0 0; background: linear-gradient(90deg,rgba(7,9,8,.96),rgba(7,9,8,.76) 50%,rgba(7,9,8,.38)),linear-gradient(0deg,rgba(7,9,8,.92),transparent 68%); }
.page-hero-content { position: relative; z-index: 1; padding-block: 92px 78px; }
.page-hero-content h1 { max-width: 900px; margin: 0; font-size: clamp(48px,6.5vw,84px); line-height: .98; letter-spacing: -.047em; font-weight: 800; }
.content-layout { padding-block: 92px 110px; display: grid; grid-template-columns: minmax(0,1fr) minmax(300px,370px); gap: clamp(52px,8vw,105px); align-items: start; }
.wysiwyg-content { min-width: 0; }
.wysiwyg-content > :first-child { margin-top: 0; }
.wysiwyg-content p, .wysiwyg-content li { color: #373b38; font-size: 17px; line-height: 1.8; }
.wysiwyg-content .content-lead { margin-bottom: 48px; color: var(--text); font-size: clamp(21px,2.2vw,28px); line-height: 1.5; font-weight: 700; }
.wysiwyg-content h2 { margin: 56px 0 16px; font-size: clamp(30px,3.7vw,46px); line-height: 1.08; letter-spacing: -.038em; font-weight: 800; }
.wysiwyg-content h3 { margin: 36px 0 12px; font-size: 24px; }
.wysiwyg-content a:not(.button) { color: #8f2d0b; text-decoration: underline; text-underline-offset: 3px; }
.wysiwyg-content .wp-block-image img, .wysiwyg-content .wp-block-gallery img { border-radius: 12px; }
.content-sidebar { position: sticky; top: 118px; display: grid; gap: 16px; }
.sidebar-card { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.sidebar-label { display: block; margin-bottom: 15px; color: #8f2d0b; font-size: 11px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.sidebar-card h2 { margin: 0 0 14px; font-size: 26px; line-height: 1.13; }
.sidebar-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.sidebar-area-list { margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; list-style: none; }
.sidebar-area-list li { padding: 9px 0; color: #373b38; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.sidebar-contact { border: 3px solid var(--orange); background: #171a18; color: #fff; }
.sidebar-contact .sidebar-label { color: #ff9c78; }
.sidebar-contact p { color: rgba(255,255,255,.7); }
.sidebar-actions { margin-top: 24px; display: grid; gap: 10px; }
.page-callback { margin-top: 55px; box-shadow: 0 18px 50px rgba(0,0,0,.11); }

.archive-header { padding: 190px 0 75px; background: #efede7; }
.archive-header h1, .not-found h1 { margin: 0; font-size: clamp(42px,6vw,72px); line-height: 1; letter-spacing: -.04em; }
.archive-grid { padding-block: 75px 110px; display: grid; gap: 18px; }
.archive-card { padding: 30px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.archive-card h2 { margin-top: 0; }
.post-meta { color: var(--muted); font-size: 13px; }
.not-found { min-height: 70vh; padding: 200px 0 100px; }
.not-found p { color: var(--muted); font-size: 18px; }

.site-footer { padding: 68px 0 22px; background: #070908; color: #fff; border-top: 1px solid rgba(255,255,255,.1); }
.footer-main { display: grid; grid-template-columns: 1.5fr .7fr 1.1fr; gap: 44px; }
.footer-brand .brand { min-width: 0; }
.footer-brand .brand img { width: 86px; height: 86px; }
.footer-brand p { max-width: 310px; color: rgba(255,255,255,.58); font-size: 13px; line-height: 1.7; }
.footer-navigation, .footer-main address { display: flex; flex-direction: column; gap: 11px; padding-top: 11px; font-style: normal; }
.footer-main h2 { margin: 0 0 10px; color: rgba(255,255,255,.68); font-size: 11px; text-transform: uppercase; letter-spacing: .14em; }
.footer-links { margin: 0; padding: 0; display: grid; gap: 11px; list-style: none; }
.footer-main a, .footer-main span { font-size: 13px; color: rgba(255,255,255,.76); overflow-wrap: anywhere; }
.footer-main a:hover { color: #ff8a60; }
.footer-bottom { margin-top: 54px; padding-top: 20px; display: flex; justify-content: space-between; color: rgba(255,255,255,.62); border-top: 1px solid rgba(255,255,255,.1); font-size: 11px; }
.mobile-actions { display: none; }

@media (max-width: 1040px) {
	.hero-grid { grid-template-columns: 1.05fr .95fr; gap: 34px; }
	.services-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
	.testimonials-track { grid-template-columns: repeat(2,1fr); }
	.testimonial-card:last-child { grid-column: 1/-1; }
	.accreditations-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1px; background: var(--line); }
	.accreditation-logo { border: 0; }
}

@media (max-width: 820px) {
	:root { --shell: min(100% - 32px,680px); }
	.site-header { height: 76px; }
	.header-inner { gap: 10px; }
	.brand { min-width: 0; margin-right: auto; }
	.brand-logo, .brand img { width: 58px; height: 58px; }
	.primary-nav { visibility: hidden; opacity: 0; position: fixed; z-index: 110; inset: 0; min-height: 100dvh; padding: max(96px,env(safe-area-inset-top)) 24px max(30px,env(safe-area-inset-bottom)); flex-direction: column; align-items: center; justify-content: center; gap: 36px; overflow-y: auto; background: #090b0a; transform: translateY(-10px); transition: opacity .2s,transform .2s,visibility .2s; }
	.primary-nav.is-open { visibility: visible; opacity: 1; transform: none; }
	.primary-nav-links, .primary-nav-links ul { width: min(100%,520px); flex-direction: column; align-items: center; gap: 8px; }
	.primary-nav-links li { width: 100%; }
	.primary-nav-links a { width: 100%; padding: 14px 20px; color: #fff; font-size: clamp(30px,9vw,52px); line-height: 1.05; text-align: center; }
	.mobile-menu-actions { width: min(100%,520px); display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
	.header-call-button { display: inline-flex; min-height: 40px; padding-inline: 14px; font-size: 13px; }
	.menu-toggle { position: relative; z-index: 120; display: grid; }
	.hero { min-height: 0; padding-top: 76px; }
	.hero-image, .hero-overlay { top: 76px; height: calc(100% - 76px); }
	.hero-grid { grid-template-columns: 1fr; padding-block: 72px 70px; }
	.hero h1 { font-size: clamp(43px,12vw,64px); }
	.field-row { grid-template-columns: 1fr; }
	.services-grid, .about-grid, .areas-layout, .contact-grid, .content-layout { grid-template-columns: 1fr; }
	.work-grid { grid-template-columns: 1fr; grid-auto-rows: 390px; }
	.area-list { grid-template-columns: repeat(2,1fr); }
	.content-sidebar { position: static; }
	.page-hero { min-height: 540px; padding-top: 76px; }
	.page-hero-image, .page-hero-overlay { inset: 76px 0 0; height: calc(100% - 76px); }
	.page-hero-content { padding-block: 75px 60px; }
	.content-layout { padding-block: 65px 95px; gap: 50px; }
	.footer-main { grid-template-columns: 1fr 1fr; }
	.footer-brand { grid-column: 1/-1; }
	.mobile-actions { position: fixed; z-index: 90; inset: auto 0 0; height: calc(62px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); display: grid; grid-template-columns: 1fr; background: var(--orange-cta); box-shadow: 0 -8px 30px rgba(0,0,0,.24); }
	.mobile-actions a { display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; font-weight: 900; }
	.mobile-actions a { background: var(--orange-cta); }
	.site-footer { padding-bottom: 92px; }
}

@media (max-width: 540px) {
	.hero-actions, .mobile-menu-actions { grid-template-columns: 1fr; }
	.hero-actions { display: grid; }
	.hero-actions .button { width: 100%; }
	.fillout-embed { height: 560px; }
	.services-grid, .testimonials-track, .area-list { grid-template-columns: 1fr; }
	.accreditations-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
	.accreditation-logo { min-height: 190px; padding: 12px 8px; }
	.accreditation-logo img { height: 165px; }
	.accreditation-logo:last-child { grid-column: 1/-1; }
	.testimonial-card:last-child { grid-column: auto; }
	.work-grid { grid-auto-rows: 330px; }
	.footer-main { grid-template-columns: 1fr; }
	.footer-brand { grid-column: auto; }
	.footer-bottom { flex-direction: column; gap: 8px; }
}

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

@media print {
	.site-header, .site-footer, .mobile-actions, .quick-quote, .content-sidebar { display: none !important; }
	.hero, .page-hero { min-height: 0; padding: 40px 0; color: #000; background: #fff; }
	.hero-image, .hero-overlay, .page-hero-image, .page-hero-overlay { display: none; }
}
