/* Sutton Valley CCTV Site
   Palette comes from the jobs themselves: anthracite steel cladding, CCTV-sign yellow, clear-day sky.
   Type: Archivo (one variable file), condensed for headings, normal width for reading. */

@font-face {
	font-family: "Archivo";
	src: url("../fonts/archivo-var.woff2") format("woff2");
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-style: normal;
	font-display: swap;
}

:root {
	--anthracite: #262c30;
	--anthracite-deep: #1b2023;
	--steel: #3a4349;
	--paper: #ffffff;
	--mist: #f1f3f2;
	--line: #d5dbd8;
	--yellow: #ffc61a;
	--yellow-deep: #e9ae00;
	--sky: #1560bd;
	--text: #20262a;
	--muted: #57626a;
	--wrap: 1160px;
	--gap: clamp(1.25rem, 3vw, 2.5rem);
	--osd: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
}

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

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

body.svc-page {
	margin: 0;
	background: var(--paper);
	color: var(--text);
	font-family: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 1.0625rem;
	line-height: 1.6;
	font-stretch: 100%;
}

.svc-page img { max-width: 100%; height: auto; display: block; }
.svc-page a { color: var(--sky); text-underline-offset: 0.18em; }
.svc-page a:hover { text-decoration-thickness: 2px; }
.svc-page :focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 2px; }
.svc-section--dark :focus-visible, .svc-hero :focus-visible, .svc-footer :focus-visible, .svc-header :focus-visible { outline-color: var(--yellow); }

.svc-page h1, .svc-page h2, .svc-page h3 {
	font-family: "Archivo", system-ui, sans-serif;
	font-stretch: 75%;
	font-weight: 800;
	line-height: 1.04;
	letter-spacing: -0.005em;
	margin: 0 0 0.6em;
	color: inherit;
	text-wrap: balance;
}
.svc-page h1 { font-size: clamp(2.2rem, 5.2vw, 3.9rem); }
.svc-page h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
.svc-page p { margin: 0 0 1em; }
.svc-page ul, .svc-page ol { margin: 0 0 1em; padding-left: 1.2em; }

.svc-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.svc-narrow { max-width: 62ch; }
.svc-narrow-wrap { max-width: 860px; }

.svc-skip { position: absolute; left: -999px; top: 0; background: var(--yellow); color: var(--anthracite-deep) !important; padding: 10px 16px; z-index: 100; font-weight: 700; }
.svc-skip:focus { left: 8px; top: 8px; }

.svc-preview-note { margin: 0 !important; padding: 8px 20px; background: var(--yellow); color: var(--anthracite-deep); font-size: 0.9rem; font-weight: 600; text-align: center; }

/* Buttons */
.svc-btn {
	display: inline-block;
	padding: 0.8em 1.25em;
	border-radius: 4px;
	border: 2px solid transparent;
	font-weight: 700;
	font-size: 1.02rem;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	font-family: inherit;
	transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.svc-page a.svc-btn--primary, .svc-btn--primary { background: var(--yellow); color: var(--anthracite-deep); }
.svc-page a.svc-btn--primary:hover, .svc-btn--primary:hover { background: var(--yellow-deep); }
.svc-page a.svc-btn--ghost { border-color: rgba(255, 255, 255, 0.65); color: #fff; }
.svc-page a.svc-btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.svc-page a.svc-btn--dark { background: var(--anthracite-deep); color: #fff; }
.svc-page a.svc-btn--dark:hover { background: #000; }
.svc-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6em 0 1.4em !important; }

.svc-page a.svc-link { font-weight: 700; }
.svc-page a.svc-link--light { color: var(--yellow); }

/* Header */
.svc-header { background: var(--paper); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.svc-header__in { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.svc-page a.svc-logo { display: flex; align-items: center; gap: 10px; color: var(--anthracite-deep); text-decoration: none; margin-right: auto; }
.svc-logo__mark { flex: none; }
.svc-logo__name { font-stretch: 75%; font-weight: 800; font-size: 1.28rem; line-height: 1.05; letter-spacing: 0.005em; white-space: nowrap; }
.svc-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.svc-page .svc-nav a { display: block; white-space: nowrap; padding: 8px 10px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.97rem; border-radius: 4px; }
.svc-page .svc-nav a:hover { background: var(--mist); }
.svc-page .svc-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--yellow); border-radius: 0; }
.svc-nav-toggle { display: none; background: none; border: 2px solid var(--anthracite); color: var(--anthracite-deep); border-radius: 4px; padding: 8px 12px; font: inherit; font-weight: 700; cursor: pointer; }
.svc-header__call { white-space: nowrap; padding: 0.6em 1em; }

@media (max-width: 1080px) {
	.svc-nav-toggle { display: block; order: 3; }
	.svc-header__call { order: 2; }
	.svc-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(27, 32, 35, 0.16); }
	.svc-nav.is-open { display: block; }
	.svc-nav ul { flex-direction: column; padding: 8px 20px 16px; gap: 0; }
	.svc-page .svc-nav a { padding: 13px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
}
@media (max-width: 560px) {
	.svc-header__call-word { display: none; }
	.svc-logo__name { font-size: 1.02rem; max-width: 9.5em; white-space: normal; }
	.svc-header__in { gap: 10px; }
	.svc-header__call { padding: 0.55em 0.7em; font-size: 0.95rem; }
}

/* Breadcrumbs */
.svc-crumbs { background: var(--anthracite-deep); color: #c6cdd1; font-size: 0.88rem; }
.svc-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0 8px; margin: 0; padding: 10px 0; }
.svc-crumbs li + li::before { content: "/"; margin-right: 8px; color: #7d8990; }
.svc-page .svc-crumbs a { color: #e6eaec; }

/* Hero */
.svc-hero { background: var(--anthracite); color: #fff; }
.svc-hero__in { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: var(--gap); align-items: center; padding-top: clamp(2rem, 5vw, 4rem); padding-bottom: clamp(2rem, 5vw, 4rem); }
.svc-hero__in--solo { grid-template-columns: minmax(0, 1fr); }
.svc-hero__in--solo .svc-hero__text { max-width: 46rem; }
.svc-hero--inner .svc-hero__in { padding-top: clamp(1.75rem, 4vw, 3rem); padding-bottom: clamp(1.75rem, 4vw, 3rem); }
.svc-hero--inner h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.svc-lead { font-size: clamp(1.1rem, 1.6vw, 1.28rem); line-height: 1.5; max-width: 38em; color: #e9edef; }
.svc-hero .svc-ticks { color: #dfe4e7; }

@media (max-width: 899px) {
	.svc-hero__in { grid-template-columns: minmax(0, 1fr); }
}

/* Camera feed picture and on-screen-display labels */
.svc-feed, .svc-photo { position: relative; margin: 0; overflow: hidden; background: #0f1214; }
.svc-feed img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.svc-hero--inner .svc-feed img { aspect-ratio: 4 / 3; object-position: 50% 30%; }
.svc-photo img { width: 100%; }
.svc-osd {
	position: absolute;
	font-family: var(--osd);
	font-size: 0.8rem;
	line-height: 1;
	letter-spacing: 0.06em;
	color: #fff;
	text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000;
	white-space: pre;
	pointer-events: none;
}
.svc-osd--rec { top: 14px; left: 14px; display: flex; align-items: center; gap: 7px; }
.svc-osd--rec i { width: 10px; height: 10px; border-radius: 50%; background: #e5231b; box-shadow: 0 0 0 1px #000; animation: svc-blink 1.6s steps(1) infinite; }
.svc-osd--clock { top: 14px; right: 14px; }
.svc-osd--label { bottom: 12px; left: 14px; right: 14px; overflow: hidden; text-overflow: ellipsis; }
@keyframes svc-blink { 50% { opacity: 0.15; } }
@media (prefers-reduced-motion: reduce) {
	.svc-osd--rec i { animation: none; }
	html { scroll-behavior: auto; }
}
@media (max-width: 560px) {
	.svc-osd { font-size: 0.68rem; }
	.svc-feed img { aspect-ratio: 4 / 3; }
}

/* Sections */
.svc-section { padding: clamp(2.75rem, 6vw, 5rem) 0; }
.svc-section--tint { background: var(--mist); }
.svc-section--dark { background: var(--anthracite); color: #fff; }
.svc-section--dark p { color: #e6eaec; }
.svc-section--band { background: var(--yellow); color: var(--anthracite-deep); padding: clamp(2rem, 4vw, 3rem) 0; }
.svc-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.svc-band h2 { margin-bottom: 0.3em; }
.svc-band p { margin: 0; max-width: 40em; }
.svc-band__links { display: flex; flex-wrap: wrap; gap: 12px; }

.svc-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); align-items: start; }
.svc-split--about { align-items: center; }
@media (max-width: 899px) { .svc-split { grid-template-columns: minmax(0, 1fr); } }

/* Tick lists */
.svc-page ul.svc-ticks { list-style: none; padding: 0; margin: 0 0 1.2em; }
.svc-ticks li { position: relative; padding-left: 1.7em; margin-bottom: 0.45em; }
.svc-ticks li::before { content: ""; position: absolute; left: 0.1em; top: 0.42em; width: 0.95em; height: 0.5em; border-left: 3px solid var(--yellow-deep); border-bottom: 3px solid var(--yellow-deep); transform: rotate(-45deg); }
.svc-hero .svc-ticks li::before, .svc-ticks--light li::before { border-color: var(--yellow); }

/* Service tiles */
.svc-page ul.svc-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.svc-page .svc-tile a { display: flex; flex-direction: column; height: 100%; color: var(--text); text-decoration: none; background: var(--mist); border-bottom: 4px solid var(--line); transition: border-color 0.15s; }
.svc-page .svc-tile a:hover { border-bottom-color: var(--yellow); }
.svc-tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.svc-tile__body { display: block; padding: 16px 18px 20px; }
.svc-tile__body strong { display: block; font-stretch: 75%; font-weight: 800; font-size: 1.4rem; line-height: 1.1; margin-bottom: 0.35em; }
.svc-tile__body span { display: block; color: var(--muted); font-size: 0.98rem; line-height: 1.45; }
@media (max-width: 899px) { .svc-page ul.svc-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .svc-page ul.svc-tiles { grid-template-columns: minmax(0, 1fr); } }

/* Screens */
.svc-screens { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.svc-screens .svc-photo:first-child { grid-column: 1 / -1; }
.svc-screens .svc-photo img { aspect-ratio: 16 / 10; object-fit: cover; }
.svc-screens .svc-photo:first-child img { aspect-ratio: 16 / 9; }

/* Steps */
.svc-page ol.svc-steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.svc-steps li { counter-increment: step; border-top: 4px solid var(--anthracite); padding-top: 14px; }
.svc-steps li::before { content: counter(step); display: block; font-stretch: 75%; font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--anthracite); margin-bottom: 8px; }
.svc-steps strong { display: block; font-size: 1.12rem; margin-bottom: 4px; }
.svc-steps span { color: var(--muted); font-size: 0.99rem; line-height: 1.5; display: block; }
@media (max-width: 899px) { .svc-page ol.svc-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .svc-page ol.svc-steps { grid-template-columns: minmax(0, 1fr); } }

/* About */
.svc-photo--van { margin-top: 1.4em; max-width: 460px; }
.svc-caption { font-size: 0.9rem; color: var(--muted); margin-top: 0.5em !important; }

/* Reviews */
.svc-rating { font-weight: 700; font-size: 1.08rem; }
.svc-stars { color: var(--yellow-deep); letter-spacing: 0.08em; }
.svc-quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 1.5em 0; }
.svc-quote { margin: 0; background: var(--paper); padding: 22px 24px; border-left: 5px solid var(--yellow); display: flex; flex-direction: column; justify-content: space-between; }
.svc-quote blockquote { margin: 0; }
.svc-quote blockquote p { font-size: 1.12rem; line-height: 1.45; margin-bottom: 0.9em; }
.svc-quote figcaption { color: var(--muted); font-size: 0.93rem; font-weight: 600; }
.svc-review-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0 !important; font-weight: 600; }
@media (max-width: 899px) { .svc-quotes { grid-template-columns: minmax(0, 1fr); } }

/* Areas */
.svc-page ul.svc-arealist { list-style: none; padding: 0; margin: 1.4em 0; columns: 3; column-gap: 32px; }
.svc-arealist li { break-inside: avoid; padding: 7px 0; border-bottom: 1px solid var(--line); }
.svc-page .svc-arealist a { font-weight: 600; color: var(--text); text-decoration: none; display: block; }
.svc-page .svc-arealist a:hover { color: var(--sky); text-decoration: underline; }
@media (max-width: 899px) { .svc-page ul.svc-arealist { columns: 2; } }
@media (max-width: 480px) { .svc-page ul.svc-arealist { columns: 1; } }

.svc-page ul.svc-towncards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.svc-towncards li { background: var(--mist); padding: 18px 20px; border-left: 5px solid var(--anthracite); }
.svc-towncards strong { font-stretch: 75%; font-weight: 800; font-size: 1.35rem; line-height: 1.1; }
.svc-towncards span { display: block; color: var(--muted); font-size: 0.96rem; margin-top: 6px; line-height: 1.45; }
@media (max-width: 899px) { .svc-page ul.svc-towncards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .svc-page ul.svc-towncards { grid-template-columns: minmax(0, 1fr); } }

/* Article layout (service, location and guide pages) */
.svc-article__in { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--gap); align-items: start; }
.svc-article__in > .svc-prose:only-child { grid-column: 1 / -1; max-width: 46rem; }
.svc-prose h2 { margin-top: 1.5em; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.svc-prose h2:first-child { margin-top: 0; }
.svc-prose p, .svc-prose li { max-width: 68ch; }
.svc-page ol.svc-numbered { padding-left: 1.4em; }
.svc-numbered li { margin-bottom: 0.7em; padding-left: 0.3em; }
.svc-sidepics { display: grid; gap: 16px; position: sticky; top: 20px; }
@media (max-width: 899px) {
	.svc-article__in { grid-template-columns: minmax(0, 1fr); }
	.svc-sidepics { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.svc-sidepics .svc-photo img { aspect-ratio: 1 / 1; object-fit: cover; }
}
@media (max-width: 480px) { .svc-sidepics { grid-template-columns: minmax(0, 1fr); } }

/* FAQs */
.svc-faqs details { border-bottom: 1px solid var(--line); }
.svc-faqs details:first-child { border-top: 1px solid var(--line); }
.svc-faqs summary { cursor: pointer; list-style: none; padding: 18px 44px 18px 0; position: relative; font-weight: 700; font-size: 1.1rem; line-height: 1.35; }
.svc-faqs summary::-webkit-details-marker { display: none; }
.svc-faqs summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.7rem; font-weight: 400; line-height: 1; color: var(--muted); }
.svc-faqs details[open] summary::after { content: "\2212"; }
.svc-faqs details p { margin: 0 0 18px; max-width: 68ch; }

/* Quote section and forms */
.svc-page ul.svc-contact { list-style: none; padding: 0; margin: 1.4em 0 0; }
.svc-contact li { padding: 9px 0; border-top: 1px solid rgba(255, 255, 255, 0.16); display: grid; grid-template-columns: 5.4em minmax(0, 1fr); gap: 12px; align-items: baseline; overflow-wrap: anywhere; }
.svc-contact span { color: #aeb8be; font-size: 0.95rem; }
.svc-page .svc-contact a { color: #fff; font-weight: 700; }
.svc-formwrap { background: var(--paper); color: var(--text); padding: clamp(18px, 3vw, 30px); border-top: 6px solid var(--yellow); }
.svc-section--dark .svc-formwrap p { color: var(--text); }
.svc-form label { display: block; font-weight: 600; margin-bottom: 5px; font-size: 0.98rem; }
.svc-form input[type="text"], .svc-form input[type="tel"], .svc-form input[type="email"], .svc-form select, .svc-form textarea {
	width: 100%; max-width: 100% !important; padding: 12px 12px; border: 1.5px solid #8a959c; border-radius: 4px; font: inherit; color: var(--text); background: #fff; min-height: 48px;
}
.svc-form textarea { min-height: 120px; resize: vertical; }
.svc-form input:focus, .svc-form select:focus, .svc-form textarea:focus { outline: 3px solid var(--sky); outline-offset: 1px; border-color: var(--sky); }
.svc-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
@media (max-width: 520px) { .svc-form__row { grid-template-columns: minmax(0, 1fr); } }
.svc-form__hp { position: absolute !important; left: -9999px !important; height: 0; overflow: hidden; }
.svc-form__small { font-size: 0.88rem; color: var(--muted) !important; }
.svc-form__notice { padding: 12px 14px; border-left: 5px solid; font-weight: 600; }
.svc-form__notice--ok { background: #e7f4ea; border-color: #1f7a3a; }
.svc-form__notice--error { background: #fdecea; border-color: #b3261e; }

/* Existing WPForms form, restyled to match */
.svc-form--embedded .wpforms-container { margin: 0 !important; }
.svc-form--embedded .wpforms-field { padding: 0 0 14px !important; }
.svc-form--embedded .wpforms-field-label { font-weight: 600 !important; font-size: 0.98rem !important; color: var(--text) !important; }
.svc-form--embedded .wpforms-field-sublabel { color: var(--muted) !important; }
.svc-form--embedded button[type="submit"], .svc-form--embedded .wpforms-submit {
	background: var(--yellow) !important; color: var(--anthracite-deep) !important; border: 0 !important; border-radius: 4px !important; padding: 0.8em 1.4em !important; font: inherit !important; font-weight: 700 !important; height: auto !important; cursor: pointer;
}
.svc-form--embedded button[type="submit"]:hover { background: var(--yellow-deep) !important; }

/* Footer */
.svc-footer { background: var(--anthracite-deep); color: #c9d0d4; padding: clamp(2.5rem, 5vw, 4rem) 0 0; font-size: 0.97rem; }
.svc-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: var(--gap); }
.svc-footer__name { font-stretch: 75%; font-weight: 800; font-size: 1.5rem; color: #fff; margin-bottom: 0.4em !important; line-height: 1.1; }
.svc-footer__h { font-weight: 700; color: #fff; margin: 0 0 0.5em !important; }
.svc-footer ul { list-style: none; padding: 0; margin: 0 0 1.5em; }
.svc-footer nav li { padding: 4px 0; }
.svc-page .svc-footer a { color: #e6eaec; text-decoration: none; }
.svc-page .svc-footer a:hover { color: var(--yellow); text-decoration: underline; }
.svc-footer__areas ul { columns: 2; column-gap: 20px; }
.svc-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; border-top: 1px solid rgba(255, 255, 255, 0.14); margin-top: 1.5rem; padding-top: 18px; padding-bottom: 22px; font-size: 0.9rem; }
.svc-footer__base p { margin: 0; }
.svc-footer__base a { margin-left: 14px; }
.svc-footer__base p:last-child a { margin-left: 0; }
@media (max-width: 899px) { .svc-footer__grid { grid-template-columns: minmax(0, 1fr); } }

/* Sticky call bar on phones */
.svc-sticky { display: none; }
@media (max-width: 760px) {
	.svc-sticky { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.25); }
	.svc-page .svc-sticky a { padding: 15px 10px; text-align: center; font-weight: 800; text-decoration: none; font-size: 1.05rem; }
	.svc-page a.svc-sticky__call { background: var(--yellow); color: var(--anthracite-deep); }
	.svc-page a.svc-sticky__quote { background: var(--anthracite-deep); color: #fff; }
	body.svc-page { padding-bottom: 56px; }
}

@media print {
	.svc-header__call, .svc-nav, .svc-nav-toggle, .svc-sticky, .svc-formwrap, .svc-preview-note { display: none !important; }
	.svc-hero, .svc-section--dark, .svc-footer { background: #fff !important; color: #000 !important; }
}
