/*
Theme Name: K&S Building Innovations
Theme URI: https://ksbuild.co.uk
Author: K&S Building Innovations Ltd
Description: Navy and gold photo-led one-page theme for K&S Building Innovations Ltd: shop fitting, refurbishment, electrical, plumbing and CCTV. Edit text, pictures, colours and contact details in Appearance > Customize > K&S Building Innovations, and add jobs under Projects.
Version: 2.4.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ksbuild
*/

/* Layout: colourful local builder — each section its own bright band, big pictures, sunny yellow buttons, rounded cards */
:root {
	/* K&S colours: navy and gold on a soft warm white. --navy and --sun can be changed in Customize > Colours. */
	--navy: #1c2b4a;
	--sun: #e3ad2f;
	--ink: #18223a;
	--muted: #545e70;
	--paper: #ffffff;
	--bg: #fcfbf8;
	--sky: #e9e6de;
	--sky-2: #f4f2ec;
	--sun-2: color-mix(in srgb, var(--sun) 38%, #fff);
	--sun-d: color-mix(in srgb, var(--sun) 58%, #000);
	--deep: color-mix(in srgb, var(--navy) 78%, #000);
	--coral: var(--navy);
	--blue: color-mix(in srgb, var(--navy) 90%, #fff);
	--blue-d: var(--navy);
	--purple: var(--navy);
	--pink: #eeebe3;
	--peach: #eeebe3;
	--lemon: #f7f6f2;
	--mint: #f1efe9;
	--green: var(--sun-d);
	--orange: var(--sun);
	--line: #e4e0d6;
	--on-dark: #e8ecf4;
	--on-dark-2: #b6c0d2;
	--wa: #138a48;
	--ok: #138a48;
	--bad: #c2321f;
	--radius: 16px;
	--f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
	--f-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 18px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 800; line-height: 1.08; text-wrap: balance; margin: 0; letter-spacing: -0.025em; }
h3 { font-weight: 700; }
h2 { font-size: clamp(30px, 4.2vw, 46px); }
h3 { font-size: 22px; letter-spacing: -0.005em; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 6px; }
.icon { flex: none; }
.amp { font-family: var(--f-body); font-weight: 700; }
.center { text-align: center; }

.wrap { max-width: 1140px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.wrap.narrow { max-width: 760px; }
.screen-reader-text, .skip-link:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: var(--paper); padding: 10px 14px; }
.lede { font-size: 19px; color: var(--muted); max-width: 52ch; }
.label { font-size: 14px; font-weight: 600; color: var(--muted); }
.label a { text-decoration: none; }

/* Buttons */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 10px; padding: 12px 22px; font: 700 16px/1.2 var(--f-display); letter-spacing: .005em; text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(20, 30, 52, .14); }
.btn-big { padding: 16px 28px; font-size: 18px; }
.btn-sun { background: var(--sun); color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; }
.btn.full { width: 100%; }
@media (prefers-reduced-motion: reduce) { .btn, .btn:hover { transition: none; transform: none; } html { scroll-behavior: auto; } }

/* Announcement bar */
.announce { background: var(--navy); color: #fff; font-size: 14px; font-weight: 600; text-align: center; }
.announce .wrap { display: flex; align-items: center; justify-content: center; gap: 8px; padding-block: 8px; }
.announce .icon { color: var(--sun); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(252, 251, 248, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 12px; }
.site-header .wrap.nav { max-width: 1280px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; flex: none; }
.brand-logo { max-height: 72px; width: auto; }
.brand b { display: block; font-family: var(--f-display); font-size: 29px; font-weight: 800; line-height: 1.05; white-space: nowrap; }
.wordmark .wm-short { color: var(--sun-d); }
.wordmark .wm-suffix { font-size: .62em; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.brand-mark { flex: none; width: 68px; height: 68px; }
.brand small { display: block; font-size: 15px; color: var(--muted); margin-top: 2px; }
.primary-nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; font-weight: 600; font-size: 16px; }
.primary-nav a { text-decoration: none; white-space: nowrap; }
.primary-nav a:hover { color: var(--sun-d); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-phone { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.menu-toggle { display: none; background: var(--sky-2); border: 0; border-radius: 12px; padding: 10px; color: var(--navy); cursor: pointer; }

@media (max-width: 9999px) { .nav-phone span { display: none; } .nav-phone { background: var(--sky-2); border-radius: 12px; padding: 10px; } }
@media (max-width: 1339px) {
	.menu-toggle { display: inline-flex; }
	.primary-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(20, 30, 52, .08); }
	.primary-nav.is-open { display: block; }
	.primary-nav ul { flex-direction: column; gap: 0; padding: 6px 20px 14px; }
	.primary-nav li a { display: block; padding: 14px 0; border-top: 1px solid var(--line); font-size: 18px; }
}
@media (max-width: 1339px) { .brand small { display: none; } }
@media (max-width: 900px) { .brand b { font-size: 23px; } .brand-mark { width: 56px; height: 56px; } .brand-logo { max-height: 56px; } }
@media (max-width: 700px) { .nav-actions .btn, .nav-phone { display: none; } }
@media (max-width: 520px) {
	.brand { gap: 10px; flex: 0 1 auto; min-width: 0; }
	.brand b { font-size: 20px; white-space: normal; }
	.brand-mark { width: 50px; height: 50px; }
	.brand-logo { max-height: 50px; }
}

/* Hero */
.hero { position: relative; background: var(--blue); color: #fff; padding-top: 56px; overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -200px; border-radius: 50%; background: var(--purple); opacity: .55; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70px; background: #fff; }
.hero > .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 44px; align-items: center; }
.hero-text { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.area-pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .18); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 600; }
.hero h1 { font-size: clamp(38px, 5.4vw, 62px); }
.hero .lede { color: var(--on-dark); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-weight: 600; font-size: 16px; }
.ticks li { display: inline-flex; align-items: center; gap: 6px; }
.ticks .icon { color: var(--sun); }
.hero-art { min-width: 0; position: relative; padding: 0 14px 14px 0; }
.hero-art::before { content: ""; position: absolute; inset: 14px 0 0 14px; background: var(--sun); border-radius: 24px; }
.hero-art img { position: relative; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; border: 4px solid var(--navy); }
@media (max-width: 880px) {
	.hero { padding-top: 36px; }
	.hero-grid { grid-template-columns: 1fr; gap: 28px; }
}

.choose { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 36px; }
.choose-card { display: flex; align-items: center; gap: 16px; border: 0; border-radius: var(--radius); padding: 20px 22px; text-decoration: none; color: var(--navy); box-shadow: 0 14px 34px rgba(10, 18, 36, .22); transition: transform .15s ease, box-shadow .15s ease; }
.choose-card:first-child { background: var(--sun); }
.choose-card:last-child { background: #eeebe3; }
.choose-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(10, 18, 36, .28); }
.choose-card > span:nth-child(2) { flex: 1; min-width: 0; }
.choose-card b { display: block; font-family: var(--f-display); font-size: 24px; font-weight: 800; }
.choose-card small { display: block; font-size: 15px; font-weight: 500; }
.choose-icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 14px; background: #fff; color: var(--navy); flex: none; }
@media (max-width: 640px) { .choose { grid-template-columns: 1fr; } }

/* Company name highlight at the top of the homepage */
.hero-brand { align-self: flex-start; display: inline-flex; align-items: stretch; flex-wrap: wrap; font-family: var(--f-display); font-weight: 800; font-size: clamp(18px, 2.2vw, 24px); line-height: 1.15; letter-spacing: -0.01em; border-radius: 10px; overflow: hidden; box-shadow: 0 8px 24px rgba(10, 18, 36, .25); }
.hero-brand .hb-short { background: var(--navy); color: var(--sun); padding: 8px 14px; }
.hero-brand .hb-rest { background: var(--sun); color: var(--navy); padding: 8px 16px; }
.hero-text .area-pill { margin-top: -4px; }

/* Full-width photo version of the top section */
.hero-photo { padding-top: 0; min-height: 640px; display: flex; flex-direction: column; justify-content: flex-end; background: var(--navy); }
.hero-photo::before { inset: 0; width: auto; height: auto; border-radius: 0; background: linear-gradient(90deg, rgba(14, 22, 42, .85) 0%, rgba(14, 22, 42, .6) 55%, rgba(14, 22, 42, .2) 100%); opacity: 1; z-index: 1; right: 0; top: 0; }
.hero-photo::after { z-index: 1; }
.hero-photo > .wrap { z-index: 2; width: 100%; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-photo .hero-grid { grid-template-columns: 1fr; padding-top: 120px; }
.hero-photo .hero-text { max-width: 720px; }
.hero-photo h1 { font-size: clamp(40px, 6vw, 72px); text-shadow: 0 2px 18px rgba(0, 0, 0, .3); }
@media (max-width: 880px) { .hero-photo { min-height: 0; } .hero-photo .hero-grid { padding-top: 80px; } }

/* Shops / Homes */
section { padding-block: 76px; }
.service-shop { background: var(--lemon); }
.service-home { background: var(--peach); }
.service-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 52px; align-items: center; }
.service-home .service-pics { order: 2; }
.service-text { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; min-width: 0; }
.service-pics { position: relative; min-width: 0; }
.service-pics img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; background: #fff; box-shadow: 0 18px 44px rgba(20, 30, 52, .18); }
.service-home .service-pics { padding-bottom: 60px; }
.pic-inset { position: absolute; width: 46% !important; right: -14px; bottom: 0; border: 6px solid #fff; box-shadow: 0 14px 30px rgba(20, 30, 52, .25) !important; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; padding: 6px 14px; border-radius: 999px; background: var(--navy); color: #fff; letter-spacing: .02em; text-transform: uppercase; font-size: 13px; }
.service-shop .kicker .icon { color: var(--sun); }
.service-home .kicker .icon { color: var(--sun); }
.chips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.chips li { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 12px; padding: 12px 14px; font-weight: 600; border-left: 6px solid var(--sun); }
.chips li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.chips .icon { color: var(--green); }
@media (max-width: 880px) {
	.service-grid { grid-template-columns: 1fr; gap: 30px; }
	.service-home .service-pics { order: 0; }
	section { padding-block: 56px; }
}
@media (max-width: 420px) { .chips { grid-template-columns: 1fr; } .pic-inset { right: 0; } }

/* How it works */
.how { background: var(--sky); color: var(--ink); }
.sub { margin-top: 10px; font-size: 18px; color: var(--muted); }
.how .sub { color: var(--muted); }
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { background: #fff; color: var(--navy); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 10px; border-top: 8px solid var(--sun); }
.steps .num { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--sun); color: var(--navy); font-family: var(--f-display); font-weight: 800; font-size: 22px; }
.steps p { color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Our work */
.features { display: flex; flex-direction: column; gap: 28px; margin-top: 36px; }
.feature { display: grid; grid-template-columns: 1.3fr 1fr; border-radius: 20px; overflow: hidden; box-shadow: 0 18px 44px rgba(20, 30, 52, .14); }
.feature.is-shop { background: var(--sun); }
.feature.is-home { background: #eeebe3; }
.feature:nth-child(2) { grid-template-columns: 1fr 1.3fr; background: var(--navy); }
.feature:nth-child(2) .feature-img { order: 2; }
.feature:nth-child(2) .feature-body { color: #fff; }
.feature:nth-child(2) .feature-body p { color: var(--on-dark-2); }
.feature:nth-child(2) .btn-navy { background: var(--sun); color: var(--ink); }
.feature-img { position: relative; min-width: 0; }
.feature-img img { width: 100%; height: 100%; min-height: 340px; object-fit: cover; display: block; }
.feature-body { padding: 36px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px; }
.feature-body h3 { font-size: clamp(26px, 3vw, 36px); }
.feature-body h3 a { text-decoration: none; }
@media (max-width: 760px) {
	.feature, .feature:nth-child(2) { grid-template-columns: 1fr; }
	.feature:nth-child(2) .feature-img { order: 0; }
	.feature-body { padding: 24px; }
}
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 28px; }
.features + .projects { grid-template-columns: repeat(2, 1fr); }
.proj { background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 28px rgba(20, 30, 52, .08); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.proj-img { position: relative; aspect-ratio: 4 / 3; max-width: 100%; background: var(--sky-2); }
.proj-img img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 14px; left: 14px; font-size: 13px; font-weight: 700; padding: 5px 14px; border-radius: 999px; box-shadow: 0 4px 12px rgba(0, 0, 0, .18); }
.badge-shop { background: var(--sun); color: var(--navy); }
.badge-home { background: var(--navy); color: #fff; }
.proj-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.proj h3 a { text-decoration: none; }
.proj h3 a:hover, .feature-body h3 a:hover { text-decoration: underline; }
.proj p { color: var(--muted); font-size: 16px; }
.more-link { margin-top: 30px; }
@media (max-width: 900px) { .projects { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .projects, .features + .projects { grid-template-columns: 1fr; } }

/* Trusted by */
.trusted { padding-block: 56px; background: #fff; }
.trusted-title { font-size: clamp(26px, 3vw, 34px); }
.logo-list { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px 44px; }
.logo-list img { max-height: 64px; max-width: 160px; width: auto; object-fit: contain; }
.trusted-list { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.trusted-list li { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: var(--lemon); font-weight: 700; }
.trusted-list li:nth-child(3n+2) { background: var(--peach); }
.trusted-list li:nth-child(3n+3) { background: var(--mint); }
.trusted-list .icon { color: var(--green); }

/* Why us */
.why { background: var(--mint); }
.why-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 36px; align-items: stretch; margin-top: 36px; }
.why-photo { margin: 0; min-width: 0; border-radius: 18px; overflow: hidden; box-shadow: 0 18px 44px rgba(20, 30, 52, .16); }
.why-photo img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 860px) { .why-layout { grid-template-columns: 1fr; } .why-photo img { aspect-ratio: 16 / 10; min-height: 0; } }
.why-item { background: #fff; border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.why-tick { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: var(--sun); }
.why-item p { color: var(--muted); font-size: 16px; }
@media (max-width: 520px) { .why-grid { grid-template-columns: 1fr; } }

/* Contact */
.contact { background: var(--blue); color: #fff; }
.contact .lede { color: var(--on-dark); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 14px; }
.contact-info h2 { margin-bottom: 4px; }
.contact-info .lede { margin-bottom: 10px; }
.contact-line { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .14); color: #fff; text-decoration: none; font-weight: 700; font-size: 19px; }
.contact-line .icon { color: var(--sun); }
.contact-line span { min-width: 0; overflow-wrap: anywhere; }
.contact-line small { display: block; font-size: 13px; font-weight: 600; color: var(--on-dark-2); }
a.contact-line:hover { background: rgba(255, 255, 255, .24); }
.contact-line.plain { background: transparent; padding-inline: 16px 0; }
.enquiry { background: #fff; color: var(--ink); border: 0; border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 24px 50px rgba(10, 18, 36, .3); }
.field { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-weight: 700; font-size: 15px; padding: 0; }
.field legend { margin-bottom: 8px; }
.opt { font-weight: 500; color: var(--muted); }
.enquiry input, .enquiry textarea { font: inherit; font-size: 17px; color: var(--ink); background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%; }
.enquiry input:focus, .enquiry textarea:focus { border-color: var(--navy); outline: none; }
.enquiry textarea { min-height: 110px; resize: vertical; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg label { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 700; }
.seg input:checked + label { border-color: var(--navy); background: var(--sun-2); }
.seg input:focus-visible + label { outline: 3px solid var(--navy); outline-offset: 2px; }
.form-note { text-align: center; color: var(--muted); font-size: 14px; }
.notice { padding: 14px 16px; border-radius: 12px; font-weight: 600; }
.notice.ok { background: #dff3e7; color: #0d5a2f; }
.notice.bad { background: #fde3df; color: #8a2214; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } .contact-line { overflow-wrap: anywhere; } }
@media (max-width: 480px) { .enquiry { padding: 20px; } }

/* Inner pages */
.page-main { padding-block: 48px 80px; }
.page-head { margin-bottom: 28px; display: flex; flex-direction: column; gap: 10px; }
.page-head h1 { font-size: clamp(36px, 5vw, 56px); }
.page-image { margin: 0 0 28px; border-radius: var(--radius); overflow: hidden; }
.entry { font-size: 18px; max-width: 68ch; }
.entry > * + * { margin-top: 1em; }
.entry h2 { font-size: 32px; margin-top: 1.4em; }
.entry h3 { margin-top: 1.2em; }
.entry a { color: var(--sun-d); }
.entry img { border-radius: 12px; }
.entry ul, .entry ol { padding-left: 1.2em; }
.post-list { display: grid; border-top: 1px solid var(--line); }
.post-row { padding-block: 22px; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.post-row h2 { font-size: 28px; }
.post-row h2 a { text-decoration: none; }
.post-row p:not(.label) { color: var(--muted); }
.project-layout { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; }
.project-main { min-width: 0; }
.project-aside { position: sticky; top: 100px; background: var(--sky-2); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.spec { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 15px; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; font-weight: 600; }
@media (max-width: 860px) { .project-layout { grid-template-columns: 1fr; } .project-aside { position: static; } }
.nav-links { display: flex; gap: 8px; margin-top: 32px; flex-wrap: wrap; }
.nav-links .page-numbers { padding: 8px 14px; border: 2px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 600; }
.nav-links .current { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Footer */
.site-footer { background: var(--deep); color: var(--on-dark-2); padding-block: 32px; font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 28px; }
.foot-brand b { display: block; color: #fff; font-family: var(--f-display); font-size: clamp(26px, 3.4vw, 36px); line-height: 1.1; }
.foot-brand .wm-short { color: var(--sun); }
.foot-brand .wm-suffix { color: var(--on-dark-2); }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; margin: 0; padding: 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }

/* Call / WhatsApp / Quote bar on phones */
.mobile-bar { display: none; }
@media (max-width: 700px) {
	body { padding-bottom: 76px; }
	.mobile-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(20, 30, 52, .08); }
	.mobile-bar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 12px; background: var(--sky-2); font-weight: 700; font-size: 14px; text-decoration: none; }
	.mobile-bar a.sun { background: var(--sun); }
}

/* WordPress core classes */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-inline: auto; }
.wp-caption-text, .wp-element-caption { font-size: 14px; color: var(--muted); margin-top: 6px; }

/* Logo badge in the header */
/* Big at the top of the page, smaller once the visitor scrolls */
.brand-badge { height: 112px; max-height: none; width: auto; transition: height .25s ease; }
.site-header .nav { transition: padding .25s ease; }
.is-scrolled .brand-badge { height: 62px; }
.is-scrolled .site-header .nav { padding-block: 6px; }
@media (max-width: 900px) { .brand-badge { height: 84px; } .is-scrolled .brand-badge { height: 54px; } }
@media (max-width: 520px) { .brand-badge { height: 72px; } .is-scrolled .brand-badge { height: 50px; } }
@media (prefers-reduced-motion: reduce) { .brand-badge, .site-header .nav { transition: none; } }

/* Big logo beside the headline */
.hero-photo .hero-grid { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.hero-logo { width: clamp(240px, 27vw, 360px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #fcfbf8 62%, #ece8de 100%); display: grid; place-items: center; padding: 6%; box-shadow: 0 0 0 6px color-mix(in srgb, var(--sun) 70%, transparent), 0 24px 60px rgba(0, 0, 0, .45); margin-bottom: 8px; }
.hero-logo img { width: 100%; height: 100%; object-fit: contain; }
.hero-logo.is-round { padding: 3%; }
/* Navy house badge: already a full circle with its own gold ring */
.hero-logo.is-badge { padding: 0; background: none; box-shadow: 0 0 0 5px rgba(255, 255, 255, .9), 0 24px 60px rgba(0, 0, 0, .45); }
.hero-logo.is-badge img { border-radius: 50%; }
.brand-badge { border-radius: 50%; }
.hero-logo.is-uploaded { padding: 0; overflow: hidden; background: #fdfcf0; }
/* Logo in the 'picture beside the headline' layout */
.hero-logo.hero-logo-inline { width: clamp(150px, 15vw, 200px); margin: 0 0 4px; align-self: flex-start; }
.hero-logo.is-uploaded img { object-fit: cover; border-radius: 50%; }
@media (max-width: 880px) {
	.hero-photo .hero-grid { grid-template-columns: 1fr; }
	.hero-logo { order: -1; width: 190px; margin: 0 0 4px; }
}

/* Slogan */
.slogan { font-family: var(--f-display); font-weight: 700; font-style: italic; color: var(--sun); font-size: clamp(17px, 1.8vw, 21px); letter-spacing: .01em; margin-bottom: -6px; }
.foot-brand .foot-slogan { display: block; color: var(--sun); font-style: italic; font-weight: 600; margin: 2px 0 4px; }

/* A to Z band */
.az { background: var(--navy); color: #fff; }
.az-grid { display: grid; grid-template-columns: auto 1fr; gap: 56px; align-items: center; }
.az-letters { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 800; font-size: clamp(90px, 12vw, 160px); line-height: .9; color: var(--sun); letter-spacing: -0.04em; }
.az-arrow { color: var(--sun-2); display: grid; place-items: center; }
.az-text { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.az-text h2 { color: #fff; }
.az .lede { color: var(--on-dark); max-width: 60ch; }
.az-steps { list-style: none; counter-reset: az; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.az-steps li { counter-increment: az; display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; padding: 10px 12px; font-weight: 600; font-size: 16px; line-height: 1.25; }
.az-steps li::before { content: counter(az); flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--sun); color: var(--navy); font-family: var(--f-display); font-weight: 800; font-size: 14px; }
@media (max-width: 960px) { .az-grid { grid-template-columns: 1fr; gap: 20px; } .az-letters { font-size: 84px; } .az-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .az-steps { grid-template-columns: 1fr; } }

/* Electrical, plumbing & CCTV */
.trades { background: var(--bg); }
.trade-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; }
.trade { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 10px 28px rgba(20, 30, 52, .08); min-width: 0; }
.trade-img { position: relative; aspect-ratio: 4 / 3; max-width: 100%; background: var(--sky-2); }
.trade-img img { width: 100%; height: 100%; object-fit: cover; }
.trade-icon { position: absolute; left: 18px; bottom: -22px; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--sun); color: var(--navy); box-shadow: 0 6px 16px rgba(20, 30, 52, .25); }
.trade-body { padding: 34px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.trade-body p { color: var(--muted); font-size: 16px; }
.trade-link { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--navy); text-decoration: none; }
.trade-link:hover { color: var(--sun-d); }
@media (max-width: 900px) { .trade-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }

/* Photo gallery */
.gallery { background: var(--sky-2); }
.gallery-grid { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery-grid li { min-width: 0; }
.gallery-grid a { display: block; aspect-ratio: 1; max-width: 100%; border-radius: 12px; overflow: hidden; background: var(--sky); box-shadow: 0 6px 18px rgba(20, 30, 52, .1); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery-grid a:hover img, .gallery-grid a:focus-visible img { transform: scale(1.05); }
.gallery-cta { margin-top: 32px; }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } }
@media (prefers-reduced-motion: reduce) { .gallery-grid img { transition: none; } }

/* Full-size photo viewer */
.ks-lightbox { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; background: rgba(8, 20, 16, .92); padding: 56px 64px; }
.ks-lightbox.is-open { display: flex; }
.ks-lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ks-lightbox img { max-width: 100%; max-height: calc(100vh - 150px); width: auto; height: auto; border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.ks-lightbox figcaption { color: #e9efe9; font-size: 15px; text-align: center; }
.ks-lightbox button { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.ks-lightbox button:hover { background: var(--sun); color: var(--navy); }
.ks-lb-close { top: 14px; right: 14px; }
.ks-lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.ks-lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.ks-lb-count { position: absolute; top: 24px; left: 20px; color: #b9c9bf; font-size: 14px; font-weight: 600; }
@media (max-width: 600px) { .ks-lightbox { padding: 60px 8px; } .ks-lb-prev, .ks-lb-next { top: auto; bottom: 12px; transform: none; } .ks-lb-prev { left: calc(50% - 60px); } .ks-lb-next { right: calc(50% - 60px); } }

/* Gallery tabs and service gallery buttons */
.gallery-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 26px; }
.gallery-tabs button { display: inline-flex; align-items: center; gap: 8px; font: 700 16px/1.2 var(--f-display); padding: 12px 20px; border-radius: 999px; border: 2px solid var(--navy); background: transparent; color: var(--navy); cursor: pointer; }
.gallery-tabs button[aria-selected="true"] { background: var(--navy); color: #fff; }
.gallery-tabs .count { display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--sun); color: var(--navy); font-size: 13px; }
.gallery-panel + .gallery-panel { margin-top: 44px; }
.gallery-panel-title { margin-top: 28px; text-align: center; }
.has-gallery-tabs .gallery-panel + .gallery-panel { margin-top: 0; }
.has-gallery-tabs .gallery-panel-title { display: none; }
.service-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-ghost-dark { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.btn-ghost-dark:hover { background: var(--navy); color: #fff; }
