/*
Theme Name: Hampshire Legionella
Theme URI: https://www.hampshirelegionella.co.uk/
Author: Hampshire Legionella
Description: Lightweight, fast theme for Hampshire Legionella. Works with Yoast SEO (no duplicate SEO tags), adds local business, service and FAQ schema, and includes a built-in contact form. Business details are set in Appearance → Customize → Business details.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: hl
*/

:root {
	--hl-red: #c0392b;
	--hl-red-dark: #962d22;
	--hl-red-soft: #fbeeec;
	--hl-ink: #1c1c1c;
	--hl-text: #333;
	--hl-muted: #666;
	--hl-line: #e6e2e0;
	--hl-soft: #f7f5f4;
	--hl-white: #fff;
	--hl-radius: 10px;
	--hl-wrap: 1160px;
	--hl-read: 820px;
	--hl-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--hl-font); font-size: 17px; line-height: 1.65; color: var(--hl-text); background: var(--hl-white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--hl-red); text-underline-offset: 2px; }
a:hover { color: var(--hl-red-dark); }
:focus-visible { outline: 3px solid #f0a33a; outline-offset: 2px; }
h1, h2, h3 { color: var(--hl-ink); line-height: 1.2; margin: 0 0 .6em; }

.hl-wrap { width: 100%; max-width: var(--hl-wrap); margin: 0 auto; padding: 0 20px; }
.hl-skip { position: absolute; left: -999px; top: 0; background: var(--hl-ink); color: #fff; padding: 10px 14px; z-index: 100; }
.hl-skip:focus { left: 10px; top: 10px; }

/* Buttons */
.hl-btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; border: 2px solid transparent; line-height: 1.2; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.hl-btn--red { background: var(--hl-red); color: #fff; }
.hl-btn--red:hover { background: var(--hl-red-dark); color: #fff; }
.hl-btn--ghost { border-color: var(--hl-ink); color: var(--hl-ink); background: transparent; }
.hl-btn--ghost:hover { background: var(--hl-ink); color: #fff; }
.hl-btn--white { background: #fff; color: var(--hl-red); }
.hl-btn--white:hover { background: var(--hl-ink); color: #fff; }
.hl-btn--outline { border-color: #fff; color: #fff; }
.hl-btn--outline:hover { background: #fff; color: var(--hl-red); }

/* Top bar */
.hl-topbar { background: var(--hl-ink); color: #ddd; font-size: 14px; }
.hl-topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 7px; padding-bottom: 7px; }
.hl-topbar a { color: #fff; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }

/* Header */
.hl-header { background: #fff; border-bottom: 1px solid var(--hl-line); position: sticky; top: 0; z-index: 50; }
.admin-bar .hl-header { top: 32px; }
.hl-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.hl-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--hl-ink); }
.hl-brand__logo { max-height: 56px; width: auto; }
.hl-brand__mark { color: var(--hl-red); display: flex; }
.hl-brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.hl-brand__name { font-weight: 800; font-size: 20px; letter-spacing: -.01em; }
.hl-brand__tag { font-size: 12.5px; color: var(--hl-muted); }

.hl-nav { display: flex; align-items: center; gap: 18px; }
.hl-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.hl-menu > li { position: relative; }
.hl-menu a { display: block; white-space: nowrap; padding: 10px 9px; color: var(--hl-ink); text-decoration: none; font-weight: 600; font-size: 15.5px; border-radius: 6px; }
.hl-menu a:hover, .hl-menu .current-menu-item > a { color: var(--hl-red); }
.hl-menu .menu-item-has-children > a::after { content: ""; display: inline-block; margin-left: 6px; border: 5px solid transparent; border-top-color: currentColor; transform: translateY(3px); }
.hl-menu .sub-menu { list-style: none; margin: 0; padding: 8px; position: absolute; left: 0; top: 100%; min-width: 220px; background: #fff; border: 1px solid var(--hl-line); border-radius: var(--hl-radius); box-shadow: 0 12px 30px rgba(0,0,0,.08); display: none; }
.hl-menu li:hover > .sub-menu, .hl-menu li:focus-within > .sub-menu, .hl-menu li.is-open > .sub-menu { display: block; }
.hl-menu .sub-menu a { font-weight: 500; }
.hl-nav__call { padding: 11px 18px; font-size: 15px; white-space: nowrap; }
.hl-brand { flex-shrink: 0; }
.hl-brand__text { white-space: nowrap; }
.hl-nav-toggle { display: none; }

/* Hero */
.hl-hero { background: var(--hl-soft); border-bottom: 1px solid var(--hl-line); }
.hl-hero__inner { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; padding-top: 44px; padding-bottom: 48px; }
.hl-has-hero-image .hl-hero__inner { grid-template-columns: 1.15fr .85fr; }
.hl-hero--home .hl-hero__inner { padding-top: 64px; padding-bottom: 68px; }
.hl-hero__title { font-size: clamp(30px, 4.4vw, 48px); letter-spacing: -.02em; max-width: 20ch; }
.hl-hero--home .hl-hero__title { font-size: clamp(34px, 5.2vw, 56px); }
.hl-hero__title::after { content: ""; display: block; width: 64px; height: 5px; background: var(--hl-red); border-radius: 3px; margin-top: 18px; }
.hl-hero__intro { font-size: 19px; color: var(--hl-text); max-width: 60ch; margin: 0 0 24px; }
.hl-hero__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.hl-hero__ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 600; color: var(--hl-ink); font-size: 15.5px; }
.hl-hero__ticks li { display: inline-flex; align-items: center; gap: 6px; }
.hl-hero__ticks svg { color: var(--hl-red); }
.hl-hero__media img { border-radius: 14px; width: 100%; object-fit: cover; aspect-ratio: 9 / 7; }
.hl-crumbs { font-size: 14px; color: var(--hl-muted); margin-bottom: 14px; }
.hl-crumbs a { color: var(--hl-muted); }

/* Content */
.hl-main { padding: 48px 0 64px; }
.hl-content { max-width: calc(var(--hl-read) + 40px); }
.hl-content > * + h2 { margin-top: 2em; }
.hl-content h2 { font-size: clamp(25px, 3vw, 31px); letter-spacing: -.01em; }
.hl-content h3 { font-size: 20px; }
.hl-content p, .hl-content ul, .hl-content ol { margin: 0 0 1.1em; }
.hl-content ul, .hl-content ol { padding-left: 1.3em; }
.hl-content li { margin-bottom: .45em; }
.hl-content ul:not([class]) li::marker { color: var(--hl-red); }
.hl-content ol li::marker { color: var(--hl-red); font-weight: 700; }
.hl-lead { font-size: 20px; color: var(--hl-ink); }

.hl-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 0 0 1.4em; }
.hl-card { background: #fff; border: 1px solid var(--hl-line); border-top: 4px solid var(--hl-red); border-radius: var(--hl-radius); padding: 20px 22px; }
.hl-card h3 { font-size: 18.5px; margin-bottom: .4em; }
.hl-card h3 a { color: var(--hl-ink); text-decoration: none; }
.hl-card h3 a:hover { color: var(--hl-red); }
.hl-card h3 a::after { content: " \2192"; color: var(--hl-red); }
.hl-card p:last-child { margin-bottom: 0; }

.hl-note { background: var(--hl-red-soft); border-left: 5px solid var(--hl-red); border-radius: 0 var(--hl-radius) var(--hl-radius) 0; padding: 16px 20px; margin: 0 0 1.4em; }
.hl-note p:last-child { margin-bottom: 0; }

.hl-price { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 0 0 1.4em; }
.hl-price__item { background: var(--hl-ink); color: #ddd; border-radius: var(--hl-radius); padding: 22px; }
.hl-price__item h3 { color: #fff; font-size: 17px; }
.hl-content .hl-price__fig { font-size: 34px; font-weight: 800; color: #fff; line-height: 1.1; margin: 0 0 .4em; }
.hl-price__fig span { font-size: 16px; font-weight: 600; color: #bbb; }
.hl-price__item p:last-child { margin-bottom: 0; }

.hl-content .hl-areas { list-style: none; padding: 0; columns: 3 180px; column-gap: 24px; }
.hl-areas li { break-inside: avoid; padding-left: 20px; position: relative; }
.hl-areas li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 9px; height: 9px; border-radius: 50% 50% 50% 0; background: var(--hl-red); transform: rotate(-45deg); }

.hl-faq { border-top: 1px solid var(--hl-line); margin: 0 0 1.4em; }
.hl-faq details { border-bottom: 1px solid var(--hl-line); }
.hl-faq summary { cursor: pointer; list-style: none; padding: 16px 40px 16px 0; font-weight: 700; color: var(--hl-ink); position: relative; font-size: 17.5px; }
.hl-faq summary::-webkit-details-marker { display: none; }
.hl-faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 400; color: var(--hl-red); }
.hl-faq details[open] summary::after { content: "\2212"; }
.hl-faq details > div { padding: 0 0 8px; }

/* Contact form */
.hl-form { background: var(--hl-soft); border: 1px solid var(--hl-line); border-radius: var(--hl-radius); padding: 24px; margin: 0 0 1.6em; }
.hl-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.hl-form label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 4px; color: var(--hl-ink); }
.hl-form input, .hl-form select, .hl-form textarea { width: 100%; font: inherit; font-size: 16px; padding: 11px 12px; border: 1px solid #cfc9c6; border-radius: 8px; background: #fff; }
.hl-form p { margin: 0 0 14px; }
.hl-form__small { font-size: 14px; color: var(--hl-muted); }
.hl-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hl-form-msg { border-radius: var(--hl-radius); padding: 14px 18px; margin: 0 0 1.4em; }
.hl-form-msg p { margin: 0; }
.hl-form-msg--ok { background: #e9f6ec; border-left: 5px solid #2e7d32; }
.hl-form-msg--err { background: var(--hl-red-soft); border-left: 5px solid var(--hl-red); }

/* CTA band */
.hl-cta { background: var(--hl-red); color: #fff; }
.hl-cta__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 40px; padding-bottom: 40px; flex-wrap: wrap; }
.hl-cta__title { color: #fff; font-size: clamp(24px, 3vw, 30px); margin-bottom: .3em; }
.hl-cta p { margin: 0; opacity: .95; }
.hl-cta__btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* Footer */
.hl-footer { background: var(--hl-ink); color: #bbb; font-size: 15px; padding-top: 48px; }
.hl-footer a { color: #eee; text-decoration: none; }
.hl-footer a:hover { color: #fff; text-decoration: underline; }
.hl-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 32px; }
.hl-footer ul { list-style: none; margin: 0; padding: 0; }
.hl-footer li { margin-bottom: 8px; }
.hl-footer__name { color: #fff; font-weight: 800; font-size: 18px; margin: 0 0 8px; }
.hl-footer__head { color: #fff; font-weight: 700; margin: 0 0 12px; text-transform: uppercase; font-size: 13px; letter-spacing: .08em; }
.hl-footer__legal { border-top: 1px solid #333; padding-top: 18px; padding-bottom: 24px; font-size: 13.5px; color: #999; }
.hl-footer__legal p { margin: 0 0 6px; }
.hl-footer__menu { display: flex; gap: 16px; flex-wrap: wrap; }
.hl-mobile-call { display: none; }

/* Tablet & mobile */
@media (max-width: 1140px) {
	.hl-nav-toggle { display: inline-flex; align-items: center; gap: 8px; background: none; border: 1px solid var(--hl-line); border-radius: 8px; padding: 9px 12px; font: inherit; font-weight: 700; color: var(--hl-ink); cursor: pointer; }
	.hl-nav-toggle__bars, .hl-nav-toggle__bars::before, .hl-nav-toggle__bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; content: ""; }
	.hl-nav-toggle__bars::before { position: absolute; top: -6px; }
	.hl-nav-toggle__bars::after { position: absolute; top: 6px; }
	.hl-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--hl-line); padding: 12px 20px 20px; flex-direction: column; align-items: stretch; box-shadow: 0 16px 30px rgba(0,0,0,.08); max-height: calc(100vh - 120px); overflow-y: auto; }
	.hl-nav-open .hl-nav { display: flex; }
	.hl-header__inner { position: relative; }
	.hl-menu { flex-direction: column; }
	.hl-menu a { padding: 12px 4px; border-bottom: 1px solid var(--hl-line); border-radius: 0; }
	.hl-menu .sub-menu { position: static; box-shadow: none; border: 0; padding: 0 0 0 14px; min-width: 0; }
	.hl-menu li:hover > .sub-menu, .hl-menu li:focus-within > .sub-menu { display: none; }
	.hl-menu li.is-open > .sub-menu { display: block; }
	.hl-nav__call { justify-content: center; margin-top: 10px; }
	.hl-has-hero-image .hl-hero__inner { grid-template-columns: 1fr; }
	.hl-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
	body { font-size: 16.5px; padding-bottom: 60px; }
	.hl-topbar__inner span { display: none; }
	.hl-topbar__inner { justify-content: center; }
	.hl-brand__name { font-size: 18px; }
	.hl-brand__tag { display: none; }
	.hl-hero__inner, .hl-hero--home .hl-hero__inner { padding-top: 32px; padding-bottom: 36px; }
	.hl-hero__intro { font-size: 17.5px; }
	.hl-hero__btns .hl-btn { flex: 1 1 100%; justify-content: center; }
	.hl-main { padding: 36px 0 48px; }
	.hl-lead { font-size: 18.5px; }
	.hl-cards, .hl-form__row { grid-template-columns: 1fr; }
	.hl-footer__grid { grid-template-columns: 1fr; }
	.hl-mobile-call { display: flex; justify-content: center; align-items: center; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--hl-red); color: #fff; font-weight: 800; padding: 15px; text-decoration: none; box-shadow: 0 -4px 14px rgba(0,0,0,.15); }
	.hl-mobile-call:hover { color: #fff; }
}
@media (max-width: 782px) { .admin-bar .hl-header { top: 46px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
