/* Westline: global base styles, loaded on every page. Header and footer live in layout/; per-page and per-block CSS lives in pages/ and blocks/. */

/* Self-hosted Noto Sans (latin subset, variable weight, SIL OFL). No Google Fonts request. */

@font-face {
	font-family: "Noto Sans";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/noto-sans-latin-wght-normal.woff2") format("woff2-variations"), url("../fonts/noto-sans-latin-wght-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Self-hosted Paytone One (latin subset, SIL OFL) for display headings. Use font-family: var(--wl-font-heading) or the .font-paytone class. */

@font-face {
	font-family: "Paytone One";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/paytone-one-latin-400-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--wl-brand: #133963;
	--wl-accent: #FFCB05;
	--wl-text: #0f2c5d;
	--wl-muted: #4f5d75;
	--wl-bg: #f9f9f9;
	--wl-alt: #e9eef5;
	--wl-line: #d8d8d8;
	--wl-radius: 10px;
	--wl-font: "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--wl-font-heading: "Paytone One", var(--wl-font);

	/* Every button on the site: one height, and a small grow on hover (no colour change, no movement). */
	--wl-btn-height: 52px;
	--wl-btn-grow: 1.05;
}

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

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

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

body {
	margin: 0;
	font-family: var(--wl-font);
	font-size: 1rem;
	line-height: 1.65;
	color: var(--wl-text);
	background: var(--wl-bg);
}

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

a { color: var(--wl-brand); text-underline-offset: 2px; }

/* a:hover { text-decoration-thickness: 2px; } */

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; color: var(--wl-brand); }

h1 { font-size: clamp(1.9rem, 4vw + 1rem, 3.1rem); }

h2 { font-size: clamp(1.5rem, 2vw + 1rem, 2.1rem); }

h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

ul, ol { padding-left: 1.2em; }

:focus-visible { outline: 3px solid var(--wl-brand); outline-offset: 2px; }

.section--brand :focus-visible, .hero :focus-visible { outline-color: #fff; }

.container { width: 100%; max-width: 1140px; margin-inline: auto; padding-inline: 16px; }

.container--wide { max-width: var(--container-step, 1740px); padding-inline: 1.5rem; }

/* Boxed container (used by the homepage sections): its maximum width steps down as the screen narrows, and
   it keeps 24px of space inside each side. Add .container--inset to leave a further 24px outside each side. */

:root { --container-step: 1740px; }

.container.container--boxed { max-width: var(--container-step); padding-inline: 24px; }

.container.container--inset { width: 100%; }

@media (max-width: 1739px) { :root { --container-step: 1536px; } }

@media (max-width: 1535px) { :root { --container-step: 1280px; } }

@media (max-width: 1279px) { :root { --container-step: 1024px; } }

@media (max-width: 1023px) { :root { --container-step: 768px; } }

@media (max-width: 767px) { :root { --container-step: 640px; } }

@media (max-width: 639px) { :root { --container-step: none; } }

/* Phones: every section sits 16px from the screen edge. */

@media (max-width: 767px) { .container.container--boxed, .container--wide { padding-inline: 16px; } }

/* Page background for the homepage sections. */

.section--light { background: #f9f9f9; }

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

.screen-reader-text:focus,
.skip-link:focus {
	position: fixed !important;
	top: 8px; left: 8px;
	width: auto; height: auto; margin: 0;
	padding: 12px 18px;
	clip: auto; clip-path: none;
	background: #fff; color: var(--wl-brand);
	z-index: 1000;
	border-radius: 6px;
	box-shadow: 0 2px 10px rgba(0,0,0,.3);
}

.icon { width: 1.1em; height: 1.1em; vertical-align: -.15em; flex: none; }

/* Buttons */

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .4em;
	box-sizing: border-box; height: var(--wl-btn-height);
	padding: 0 1.4em;
	border: 2px solid transparent;
	border-radius: 999px;
	font: inherit; font-weight: 700; line-height: 1; text-decoration: none;
	cursor: pointer;
	transition: scale .25s ease;
}

.btn:hover { scale: var(--wl-btn-grow); }

/* Smooth grow: every button sits on its own compositor layer, so the text is not re-drawn (and does not
   "jump") when the hover animation starts or ends. */
.btn,
.header-btn,
.mobile-cta__btn,
.emergency__call-btn,
.emergency__submit,
.solutions-card__btn {
	transform: translateZ(0);
	backface-visibility: hidden;
	will-change: scale;
}

.btn--accent { background: var(--wl-accent); color: var(--wl-brand); }

.btn--outline { border-color: #fff; color: #fff; background: transparent; }

/* Sections */

.section { padding: 56px 0; }

.section--alt { background: var(--wl-alt); }

.section--brand { background: var(--wl-brand); color: #e3eaf5; }

.section--brand h2 { color: #fff; }

.section__head { max-width: 640px; margin-bottom: 28px; }

.section__head p { color: var(--wl-muted); }

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

/* Cards */

.card { background: #fff; border: 1px solid var(--wl-line); border-radius: var(--wl-radius); overflow: hidden; display: flex; flex-direction: column; }

.card--service { padding: 0; }

.card__thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--wl-alt); }

.card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.card__icon { margin: 22px 22px 0; width: 48px; height: 48px; display: grid; place-items: center; background: var(--wl-brand); color: var(--wl-accent); border-radius: 12px; }

.card__icon .icon { width: 26px; height: 26px; }

.card--service > h3, .card--service > p { padding-inline: 22px; }

.card--service > h3 { margin-top: 14px; }

.card--service > p:last-child { padding-bottom: 22px; }

.card__body { padding: 18px 22px 22px; }

.card__title { font-size: 1.15rem; margin-bottom: .4em; }

.card__title a { text-decoration: none; }

/* .card__title a:hover { text-decoration: underline; } */

.more { font-weight: 700; }

/* Pages and entries */

/* .page { padding-block: 40px 56px; } */

.page--narrow { max-width: 820px; }

.page-header { margin-bottom: 28px; }

.text-center { text-align: center; }

.entry-meta { color: var(--wl-muted); font-size: .875rem; margin-bottom: .6em; }

.entry-thumb { margin: 0 0 24px; }

.entry-thumb img { border-radius: var(--wl-radius); width: 100%; }

.entry-content > * + * { margin-top: 1.1em; }

.entry-content img { border-radius: 6px; }

.entry-content table { width: 100%; border-collapse: collapse; }

.entry-content th, .entry-content td { border: 1px solid var(--wl-line); padding: 8px 10px; text-align: left; }

.alignwide { max-width: 1100px; }

.alignleft { float: left; margin: 0 1em 1em 0; }

.alignright { float: right; margin: 0 0 1em 1em; }

.aligncenter { display: block; margin-inline: auto; }

.wp-caption-text, figcaption { font-size: .85rem; color: var(--wl-muted); }

.cta-box { margin-top: 36px; padding: 22px; background: var(--wl-alt); border-radius: var(--wl-radius); text-align: center; }

.page-links, .pagination { margin-top: 28px; }

.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }

.page-numbers { padding: 8px 14px; border: 1px solid var(--wl-line); border-radius: 6px; text-decoration: none; }

.page-numbers.current { background: var(--wl-brand); color: #fff; border-color: var(--wl-brand); }

.search-form { display: flex; gap: 8px; margin: 16px 0; }

.search-field {
	width: 100%; padding: 12px; font: inherit; color: var(--wl-text);
	border: 1px solid #9aa6b8; border-radius: 8px; background: #fff;
}

/* Tablet and up */

@media (min-width: 700px) {
	.grid--3 { grid-template-columns: repeat(2, 1fr); }
	.grid--4 { grid-template-columns: repeat(2, 1fr); }
}

/* Desktop */

@media (min-width: 960px) {
	.container { padding-inline: 24px; }
	.grid--3 { grid-template-columns: repeat(3, 1fr); }
	.grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.font-paytone { font-family: var(--wl-font-heading); font-weight: 400; }
