/*
Theme Name: JLM Consultancy
Theme URI: https://jlmconsultancy.local/
Author: JLM Consultancy Ltd
Author URI: https://jlmconsultancy.local/
Description: A professional WordPress theme for a UK fire safety and building safety consultancy.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
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: jlm-consultancy
Tags: custom-logo, custom-menu, featured-images, blog, one-column, accessibility-ready
*/

:root {
	--jlm-navy: #071a35;
	--jlm-ink: #10233f;
	--jlm-blue: #2d9fe3;
	--jlm-blue-dark: #126ca6;
	--jlm-sky: #e9f6ff;
	--jlm-green: #76d451;
	--jlm-gold: #f7b84d;
	--jlm-white: #ffffff;
	--jlm-soft: #f5f8fb;
	--jlm-border: #d8e3ec;
	--jlm-muted: #5f6f84;
	--jlm-shadow: 0 18px 46px rgba(7, 26, 53, 0.12);
	--jlm-radius: 8px;
	--jlm-width: 1180px;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--jlm-white);
	color: var(--jlm-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 17px;
	line-height: 1.65;
}

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

a {
	color: var(--jlm-blue-dark);
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
}

a:hover,
a:focus {
	color: var(--jlm-navy);
}

:focus-visible {
	outline: 3px solid var(--jlm-gold);
	outline-offset: 3px;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 1000;
	width: auto;
	height: auto;
	padding: 10px 14px;
	clip: auto;
	background: var(--jlm-white);
	color: var(--jlm-navy);
	box-shadow: var(--jlm-shadow);
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.96);
	border-bottom: 1px solid var(--jlm-border);
	backdrop-filter: blur(12px);
}

.site-header__inner,
.container {
	width: min(100% - 32px, var(--jlm-width));
	margin-inline: auto;
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 82px;
	gap: 24px;
}

.site-branding {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: var(--jlm-navy);
	font-weight: 800;
}

.site-branding img {
	width: 116px;
	max-height: 56px;
	object-fit: contain;
}

.site-branding__text {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
}

.site-branding__name {
	font-size: 1rem;
}

.site-branding__tagline {
	color: var(--jlm-muted);
	font-size: 0.78rem;
	font-weight: 600;
}

.menu-toggle {
	display: none;
	width: 44px;
	height: 44px;
	border: 1px solid var(--jlm-border);
	border-radius: var(--jlm-radius);
	background: var(--jlm-white);
	color: var(--jlm-navy);
	cursor: pointer;
}

.menu-toggle span {
	display: block;
	width: 20px;
	height: 2px;
	margin: 5px auto;
	background: currentColor;
}

.primary-menu {
	display: flex;
	align-items: center;
	gap: 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-menu a {
	color: var(--jlm-ink);
	font-size: 0.95rem;
	font-weight: 700;
	text-decoration: none;
}

.primary-menu a:hover,
.primary-menu a:focus {
	color: var(--jlm-blue-dark);
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.button,
.wp-block-button__link,
input[type="submit"],
button[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 11px 18px;
	border: 2px solid transparent;
	border-radius: var(--jlm-radius);
	background: var(--jlm-blue);
	color: var(--jlm-white);
	font-weight: 800;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button:hover,
.button:focus,
.wp-block-button__link:hover,
.wp-block-button__link:focus,
input[type="submit"]:hover,
button[type="submit"]:hover {
	background: var(--jlm-blue-dark);
	color: var(--jlm-white);
	transform: translateY(-1px);
}

.button--secondary {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.72);
	color: var(--jlm-white);
}

.button--secondary:hover,
.button--secondary:focus {
	background: var(--jlm-white);
	color: var(--jlm-navy);
}

.button--light {
	background: var(--jlm-white);
	color: var(--jlm-navy);
}

.button--light:hover,
.button--light:focus {
	background: var(--jlm-sky);
	color: var(--jlm-navy);
}

.hero {
	background: linear-gradient(128deg, var(--jlm-navy) 0%, #0c2f5d 56%, #134f83 100%);
	color: var(--jlm-white);
}

.hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.72fr);
	gap: 48px;
	align-items: center;
	min-height: 650px;
	padding: 82px 0 64px;
}

.eyebrow {
	margin: 0 0 14px;
	color: #bfe7ff;
	font-size: 0.82rem;
	font-weight: 900;
	letter-spacing: 0;
	text-transform: uppercase;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 16px;
	color: var(--jlm-navy);
	font-weight: 850;
	line-height: 1.12;
}

.hero h1,
.hero h2,
.cta-band h2 {
	color: var(--jlm-white);
}

h1 {
	font-size: clamp(2.35rem, 4vw, 4.9rem);
	max-width: 920px;
}

h2 {
	font-size: clamp(1.85rem, 2.8vw, 3rem);
}

h3 {
	font-size: 1.35rem;
}

.hero__lead {
	max-width: 760px;
	margin: 0 0 28px;
	color: #d9ecfb;
	font-size: 1.18rem;
}

.hero__actions,
.section-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 26px;
}

.hero-panel {
	padding: 28px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: var(--jlm-radius);
	background: rgba(255, 255, 255, 0.09);
	box-shadow: 0 26px 62px rgba(0, 0, 0, 0.18);
}

.hero-panel__logo {
	display: block;
	width: 190px;
	margin: 0 0 24px;
	padding: 18px;
	border-radius: var(--jlm-radius);
	background: var(--jlm-white);
}

.hero-panel ul,
.check-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.hero-panel li,
.check-list li {
	position: relative;
	padding-left: 28px;
	margin: 0 0 14px;
}

.hero-panel li::before,
.check-list li::before {
	position: absolute;
	left: 0;
	top: 0.15em;
	content: "";
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--jlm-green);
	box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.56);
}

.hero-panel li {
	color: #ecf7ff;
}

.section {
	padding: 78px 0;
}

.section--soft {
	background: var(--jlm-soft);
}

.section--navy {
	background: var(--jlm-navy);
	color: var(--jlm-white);
}

.section--navy h2,
.section--navy h3 {
	color: var(--jlm-white);
}

.section-intro {
	max-width: 760px;
	margin-bottom: 34px;
}

.section-intro p {
	margin: 0;
	color: var(--jlm-muted);
}

.section--navy .section-intro p {
	color: #d8e9f8;
}

.grid {
	display: grid;
	gap: 22px;
}

.grid--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-card,
.post-card,
.contact-panel,
.info-card {
	padding: 26px;
	border: 1px solid var(--jlm-border);
	border-radius: var(--jlm-radius);
	background: var(--jlm-white);
	box-shadow: 0 8px 24px rgba(7, 26, 53, 0.05);
}

.service-card {
	display: flex;
	flex-direction: column;
	min-height: 100%;
}

.service-card__number {
	color: var(--jlm-blue-dark);
	font-size: 0.78rem;
	font-weight: 900;
	letter-spacing: 0;
	text-transform: uppercase;
}

.service-card p,
.post-card p,
.info-card p {
	color: var(--jlm-muted);
}

.service-card a {
	margin-top: auto;
	font-weight: 800;
	text-decoration: none;
}

.split {
	display: grid;
	grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.65fr);
	gap: 44px;
	align-items: start;
}

.stat-strip {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1px;
	overflow: hidden;
	border-radius: var(--jlm-radius);
	background: rgba(255, 255, 255, 0.18);
}

.stat {
	padding: 24px;
	background: rgba(255, 255, 255, 0.08);
}

.stat strong {
	display: block;
	color: var(--jlm-white);
	font-size: 2rem;
	line-height: 1;
}

.stat span {
	color: #d7e9f7;
	font-size: 0.92rem;
}

.cta-band {
	padding: 48px 0;
	background: linear-gradient(100deg, var(--jlm-navy), var(--jlm-blue-dark));
	color: var(--jlm-white);
}

.cta-band__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 26px;
}

.cta-band p {
	max-width: 690px;
	margin: 0;
	color: #dcecf8;
}

.page-hero {
	padding: 72px 0 54px;
	background: var(--jlm-navy);
	color: var(--jlm-white);
}

.page-hero h1 {
	color: var(--jlm-white);
}

.page-hero p {
	max-width: 780px;
	color: #d8e9f8;
	font-size: 1.12rem;
}

.content-area {
	padding: 64px 0;
}

.entry-content > * {
	max-width: 790px;
}

.entry-content > .alignwide,
.entry-content > .wp-block-columns {
	max-width: var(--jlm-width);
}

.entry-content p,
.entry-content li {
	color: #314158;
}

.service-detail {
	display: grid;
	grid-template-columns: minmax(0, 0.72fr) minmax(300px, 0.28fr);
	gap: 42px;
}

.service-sidebar {
	position: sticky;
	top: 110px;
}

.service-sidebar .contact-panel + .contact-panel {
	margin-top: 18px;
}

.contact-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.7fr) minmax(300px, 0.3fr);
	gap: 34px;
	align-items: start;
}

label {
	display: block;
	margin-bottom: 8px;
	color: var(--jlm-navy);
	font-weight: 800;
}

input,
textarea,
select {
	width: 100%;
	min-height: 46px;
	padding: 10px 12px;
	border: 1px solid #bdccd9;
	border-radius: var(--jlm-radius);
	background: var(--jlm-white);
	color: var(--jlm-ink);
	font: inherit;
}

textarea {
	min-height: 150px;
	resize: vertical;
}

.form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.form-grid .full {
	grid-column: 1 / -1;
}

.post-card__meta,
.entry-meta {
	color: var(--jlm-muted);
	font-size: 0.92rem;
}

.post-card h2,
.post-card h3 {
	font-size: 1.3rem;
}

.post-navigation,
.pagination {
	margin-top: 36px;
}

.site-footer {
	background: #051226;
	color: #d7e5f2;
}

.site-footer a {
	color: #d8f0ff;
}

.site-footer__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(180px, 0.4fr));
	gap: 34px;
	padding: 48px 0;
}

.site-footer h2,
.site-footer h3 {
	color: var(--jlm-white);
}

.footer-bottom {
	padding: 18px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	color: #afc2d3;
	font-size: 0.92rem;
}

@media (max-width: 980px) {
	.menu-toggle {
		display: block;
	}

	.primary-navigation {
		position: absolute;
		top: 82px;
		left: 0;
		right: 0;
		display: none;
		padding: 18px 16px;
		border-bottom: 1px solid var(--jlm-border);
		background: var(--jlm-white);
	}

	.primary-navigation.is-open {
		display: block;
	}

	.primary-menu {
		align-items: flex-start;
		flex-direction: column;
		gap: 14px;
		width: min(100%, var(--jlm-width));
		margin-inline: auto;
	}

	.header-actions {
		display: none;
	}

	.hero__inner,
	.split,
	.service-detail,
	.contact-grid {
		grid-template-columns: 1fr;
	}

	.hero__inner {
		min-height: auto;
	}

	.grid--3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.service-sidebar {
		position: static;
	}
}

@media (max-width: 680px) {
	body {
		font-size: 16px;
	}

	.site-header__inner {
		min-height: 72px;
	}

	.site-branding img {
		width: 92px;
	}

	.site-branding__tagline {
		display: none;
	}

	.primary-navigation {
		top: 72px;
	}

	.hero__inner,
	.section,
	.content-area {
		padding: 48px 0;
	}

	.hero-panel {
		padding: 22px;
	}

	.grid--3,
	.grid--2,
	.stat-strip,
	.form-grid,
	.site-footer__inner {
		grid-template-columns: 1fr;
	}

	.cta-band__inner {
		align-items: flex-start;
		flex-direction: column;
	}

	.button,
	.wp-block-button__link,
	input[type="submit"],
	button[type="submit"] {
		width: 100%;
	}
}
