/*
Theme Name: Innovative IT 2026
Theme URI: https://innovativeit.co.uk/
Description: Genesis child theme for Innovative IT with grouped dropdown navigation, a device chooser on the home page, breadcrumbs and a service sidebar.
Author: Innovative IT
Template: genesis
Version: 1.15.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: innovative-it-2026
*/

/* ---------------------------------------------------------------
   Tokens
------------------------------------------------------------------ */
:root {
	--ink: #13283d;
	--ink-2: #1c3a57;
	--blue: #0069d4;
	--blue-dk: #0055ad;
	--blue-tint: #e8f1fc;
	--paper: #ffffff;
	--bench: #f2f5f8;
	--line: #d8dfe7;
	--text: #1c2b3a;
	--muted: #566879;
	--font: "IBM Plex Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--wrap: 1200px;
	--gutter: clamp(16px, 4vw, 32px);
	--header-h: 76px;
}

/* ---------------------------------------------------------------
   Base
------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.nav-locked { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
	margin: 0;
	background: var(--paper);
	color: var(--text);
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--blue); text-underline-offset: 2px; }
a:hover { color: var(--blue-dk); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3, h4, h5, h6 {
	color: var(--ink);
	font-family: var(--font);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.01em;
	margin: 1.6em 0 0.5em;
}
h1 { font-size: clamp(1.75rem, 3vw, 2.3rem); }
h2 { font-size: clamp(1.35rem, 2.2vw, 1.65rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; }
p, ul, ol, blockquote, table { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: 0.35em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.icon { width: 1em; height: 1em; fill: currentColor; flex: none; }

.screen-reader-text, .screen-reader-shortcut, .genesis-skip-link a {
	position: absolute !important;
	clip: rect(0, 0, 0, 0);
	height: 1px; width: 1px;
	overflow: hidden;
	border: 0;
	word-wrap: normal !important;
}
.genesis-skip-link { margin: 0; padding: 0; list-style: none; }
.genesis-skip-link a:focus, .screen-reader-shortcut:focus {
	clip: auto; height: auto; width: auto;
	top: 8px; left: 8px; z-index: 10000;
	padding: 12px 18px;
	background: var(--paper); color: var(--ink);
	font-weight: 600; box-shadow: 0 0 0 3px var(--blue);
}

/* ---------------------------------------------------------------
   Buttons
------------------------------------------------------------------ */
.btn, .button, button.wpcf7-submit, input[type="submit"] {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
	padding: 0.7em 1.3em;
	border: 2px solid transparent; border-radius: 4px;
	font: 600 1rem/1.2 var(--font);
	text-decoration: none; cursor: pointer;
	transition: background-color .15s, color .15s, border-color .15s;
}
.btn--primary, .button, input[type="submit"], button.wpcf7-submit { background: var(--blue); color: #fff; }
.btn--primary:hover, .button:hover, input[type="submit"]:hover, button.wpcf7-submit:hover { background: var(--blue-dk); color: #fff; }
.btn--ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--lg { padding: 0.85em 1.5em; font-size: 1.05rem; }
.btn--block { display: flex; width: 100%; }

/* ---------------------------------------------------------------
   Top bar
------------------------------------------------------------------ */
.topbar { background: var(--ink); color: #c9d6e3; font-size: 0.85rem; }
.topbar__inner { display: flex; flex-wrap: wrap; gap: 6px 28px; padding-top: 7px; padding-bottom: 7px; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; color: inherit; text-decoration: none; }
a.topbar__item:hover { color: #fff; text-decoration: underline; }
.topbar__mail { margin-left: auto; }
.topbar__contact { font-weight: 600; color: #fff; }
.topbar .icon { opacity: .75; }

/* ---------------------------------------------------------------
   Header + navigation
------------------------------------------------------------------ */
.site-header {
	position: sticky; top: 0; z-index: 900;
	background: var(--paper);
	border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: block; flex: none; line-height: 0; }
.brand img { width: 190px; height: auto; }

.primary-nav { margin-left: auto; }
.nav-list { display: flex; align-items: stretch; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav-list > li { position: relative; display: flex; align-items: center; margin: 0; }
.nav-list > li > a {
	display: block;
	padding: 26px 10px;
	color: var(--ink); font-weight: 600; font-size: 0.97rem;
	text-decoration: none; white-space: nowrap;
	box-shadow: inset 0 -3px 0 transparent;
	transition: box-shadow .15s, color .15s;
}
.nav-list > li > a:hover,
.nav-list > li.is-current > a,
.nav-list > li.current-menu-item > a,
.nav-list > li.current-menu-ancestor > a { color: var(--blue); box-shadow: inset 0 -3px 0 var(--blue); }

.sub-toggle {
	display: inline-flex; align-items: center; justify-content: center;
	width: 26px; height: 26px; margin-left: -6px; padding: 0;
	border: 0; border-radius: 4px; background: none; color: var(--muted); cursor: pointer;
}
.sub-toggle svg { width: 20px; height: 20px; fill: currentColor; transition: transform .15s; }
.sub-toggle:hover { color: var(--blue); background: var(--blue-tint); }
.has-sub.is-open > .sub-toggle svg { transform: rotate(180deg); }

/* Dropdown panels (built-in menu uses .sub, WordPress menus use .sub-menu) */
.nav-list .sub, .nav-list .sub-menu {
	position: absolute; top: 100%; left: -12px; z-index: 950;
	min-width: 290px;
	padding: 8px;
	background: var(--paper);
	border: 1px solid var(--line); border-top: 3px solid var(--blue);
	border-radius: 0 0 6px 6px;
	box-shadow: 0 18px 40px -12px rgba(19, 40, 61, .28);
	visibility: hidden; opacity: 0; transform: translateY(6px);
	transition: opacity .15s, transform .15s, visibility .15s;
}
.nav-list .sub ul, .nav-list .sub-menu { list-style: none; margin: 0; }
.nav-list .sub ul { padding: 0; }
.nav-list .is-wide > .sub { min-width: 520px; }
/* Open the right-hand menus leftwards so they stay on screen */
.nav-list > li:nth-last-child(-n+3) > .sub, .nav-list > li:nth-last-child(-n+3) > .sub-menu { left: auto; right: -12px; }
.nav-list .is-wide > .sub ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 4px; }
.nav-list .sub li, .nav-list .sub-menu li { margin: 0; }
.nav-list .sub a, .nav-list .sub-menu a {
	display: block; padding: 10px 12px; border-radius: 4px;
	color: var(--ink); text-decoration: none; line-height: 1.3;
}
.nav-list .sub a strong { display: block; font-weight: 600; font-size: 0.97rem; }
.nav-list .sub a span { display: block; margin-top: 3px; color: var(--muted); font-size: 0.85rem; }
.nav-list .sub a:hover, .nav-list .sub-menu a:hover,
.nav-list .sub a[aria-current="page"], .nav-list .sub-menu .current-menu-item > a { background: var(--blue-tint); color: var(--blue-dk); }

@media (min-width: 1100px) and (hover: hover) {
	.nav-list > li.has-sub:hover > .sub, .nav-list > li.has-sub:hover > .sub-menu { visibility: visible; opacity: 1; transform: none; }
}
.nav-list > li.has-sub.is-open > .sub, .nav-list > li.has-sub.is-open > .sub-menu,
.nav-list > li.has-sub:focus-within > .sub, .nav-list > li.has-sub:focus-within > .sub-menu { visibility: visible; opacity: 1; transform: none; }

.header-call {
	display: inline-flex; align-items: center; gap: 8px; flex: none;
	padding: 10px 16px; border-radius: 4px;
	background: var(--blue); color: #fff;
	font-weight: 600; text-decoration: none; white-space: nowrap;
}
.header-call:hover { background: var(--blue-dk); color: #fff; }
.header-call__short { display: none; }

.menu-toggle {
	display: none; align-items: center; gap: 9px;
	padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px;
	background: var(--paper); color: var(--ink);
	font: 600 0.95rem var(--font); cursor: pointer;
}
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after {
	display: block; width: 18px; height: 2px; background: currentColor; border-radius: 1px;
	transition: transform .2s, background-color .2s;
}
.menu-toggle__bars { position: relative; }
.menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -6px; }
.menu-toggle__bars::after { top: 6px; }
.menu-open .menu-toggle__bars { background: transparent; }
.menu-open .menu-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Tablet and phone navigation */
@media (min-width: 1100px) and (max-width: 1319px) {
	.nav-list > li > a { padding-left: 7px; padding-right: 7px; font-size: 0.92rem; }
	.sub-toggle { width: 22px; margin-left: -5px; }
	.header-call__num { display: none; }
	.header-call__short { display: inline; }
	.brand img { width: 160px; }
	.site-header__inner { gap: 14px; }
}
@media (max-width: 1099px) {
	:root { --header-h: 64px; }
	.topbar__item:not(.topbar__mail) + .topbar__item:not(.topbar__mail) { display: none; }
	.topbar__mail { display: none; }
	.topbar__contact { margin-left: auto; }
	.site-header__inner { gap: 10px; }
	.brand img { width: 160px; }
	.header-call { margin-left: auto; padding: 10px 14px; }
	.menu-toggle { display: inline-flex; }

	.primary-nav {
		position: absolute; left: 0; right: 0; top: 100%;
		height: calc(100vh - var(--header-h));
		margin: 0; padding: 8px var(--gutter) 40px;
		background: var(--paper); border-top: 1px solid var(--line);
		overflow-y: auto; overscroll-behavior: contain;
		visibility: hidden; opacity: 0;
		transition: opacity .15s, visibility .15s;
	}
	.menu-open .primary-nav { visibility: visible; opacity: 1; }
	.nav-list { flex-direction: column; gap: 0; }
	.nav-list > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
	.nav-list > li > a { flex: 1; padding: 16px 0; font-size: 1.1rem; box-shadow: none !important; }
	.sub-toggle { width: 48px; height: 48px; margin: 0; }
	.nav-list .sub, .nav-list .sub-menu,
	.nav-list .is-wide > .sub {
		position: static; flex-basis: 100%; min-width: 0;
		display: none; visibility: visible; opacity: 1; transform: none;
		margin: 0 0 12px; padding: 4px 0;
		border: 0; border-left: 3px solid var(--blue); border-radius: 0; box-shadow: none;
	}
	.nav-list .is-wide > .sub ul { display: block; }
	.nav-list > li.has-sub.is-open > .sub, .nav-list > li.has-sub.is-open > .sub-menu { display: block; }
	.nav-list > li.has-sub:focus-within:not(.is-open) > .sub,
	.nav-list > li.has-sub:focus-within:not(.is-open) > .sub-menu { display: none; }
	.nav-list .sub a, .nav-list .sub-menu a { padding: 11px 14px; }
}
@media (max-width: 600px) {
	.topbar__item:first-child { display: none; }
}
@media (max-width: 480px) {
	.header-call__num { display: none; }
	.header-call__short { display: inline; }
	.menu-toggle__label { display: none; }
	.brand img { width: 140px; }
}

/* ---------------------------------------------------------------
   Home: hero and device chooser
------------------------------------------------------------------ */
.hero { background: var(--ink); color: #dbe5ef; }
.hero__inner {
	display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: clamp(28px, 5vw, 64px); align-items: center;
	padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(40px, 6vw, 80px);
}
.hero__title {
	margin: 0 0 0.45em;
	color: #fff;
	font-size: clamp(2.1rem, 4.4vw, 3.4rem);
	line-height: 1.06; letter-spacing: -0.025em;
	max-width: 20ch;
}
.hero__lede { max-width: 34em; margin-bottom: 1.6em; font-size: 1.12rem; color: #dbe5ef; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 1.8em; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; font-size: 0.93rem; color: #aebfd0; }
.hero__facts li { margin: 0; padding-left: 16px; position: relative; }
.hero__facts li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 7px; height: 7px; border-radius: 50%; background: #4fa3ff; }

.picker { background: var(--paper); color: var(--text); border-radius: 6px; overflow: hidden; }
.picker__title {
	margin: 0; padding: 18px 22px;
	font-size: 1.15rem; color: var(--ink);
	border-bottom: 1px solid var(--line);
}
.picker__list { display: grid; grid-template-columns: 1fr 1fr; margin: 0; padding: 0; list-style: none; }
.picker__list li { margin: 0; border-bottom: 1px solid var(--line); }
.picker__list li:nth-child(odd) { border-right: 1px solid var(--line); }
.picker__list li:nth-last-child(-n+2) { border-bottom: 0; }
.picker__list a {
	display: block; height: 100%;
	padding: 16px 22px 17px;
	color: var(--ink); text-decoration: none;
	box-shadow: inset 4px 0 0 transparent;
	transition: background-color .15s, box-shadow .15s;
}
.picker__list strong { display: block; font-size: 1.05rem; font-weight: 600; line-height: 1.25; }
.picker__list span { display: block; margin-top: 3px; font-size: 0.87rem; color: var(--muted); line-height: 1.35; }
.picker__list a:hover, .picker__list a:focus-visible { background: var(--blue-tint); box-shadow: inset 4px 0 0 var(--blue); outline: none; }
.picker__list a:hover strong { color: var(--blue-dk); }

@media (max-width: 899px) {
	.hero__inner { grid-template-columns: 1fr; }
	.hero__title { max-width: 18ch; }
}
@media (max-width: 520px) {
	.picker__list { grid-template-columns: 1fr; }
	.picker__list li:nth-child(odd) { border-right: 0; }
	.picker__list li:nth-last-child(2) { border-bottom: 1px solid var(--line); }
	.hero__actions .btn { flex: 1 1 100%; }
}

/* Home: the old page-builder banner is replaced by the hero above. */
.iit-home .entry-content > .panel-layout > .panel-grid:first-child { display: none; }
.iit-home .entry-header { display: none; }

.visit-band { background: var(--bench); border-top: 1px solid var(--line); }
.visit-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding-top: 44px; padding-bottom: 44px; }
.visit-band h2 { margin: 0 0 0.3em; }
.visit-band p { margin: 0; color: var(--muted); }
.visit-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------------------------------------------------------------
   Inner pages: layout, breadcrumbs, content
------------------------------------------------------------------ */
.site-inner { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter) 64px; }
.iit-home .site-inner { padding-top: 0; padding-bottom: 0; }

.crumbs { padding: 18px 0 0; font-size: 0.9rem; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; margin: 0 9px; color: #9aa9b8; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--blue); }

.content-sidebar-wrap { display: block; }
.content-sidebar .content-sidebar-wrap {
	display: grid; grid-template-columns: minmax(0, 1fr) 300px;
	gap: clamp(32px, 5vw, 64px); align-items: start;
}
@media (max-width: 899px) { .content-sidebar .content-sidebar-wrap { grid-template-columns: 1fr; } }

.content { min-width: 0; }
.entry { margin-bottom: 40px; }
.entry-header { margin-bottom: 8px; }
.entry-title { margin: 22px 0 12px; font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.12; letter-spacing: -0.02em; }
.entry-title a { color: inherit; text-decoration: none; }
.entry-meta { color: var(--muted); font-size: 0.9rem; }
.entry-content { max-width: 46em; }
.full-width-content .entry-content { max-width: none; }
.entry-content > :first-child { margin-top: 0; }
.entry-content h1 { font-size: clamp(1.6rem, 2.8vw, 2rem); }
.entry-content ul li::marker { color: var(--blue); }
.entry-content img { border-radius: 4px; }
.entry-content blockquote { margin-left: 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--blue); color: var(--muted); }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.entry-content th, .entry-content td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin: 0 auto 1em; }
.wp-caption-text, figcaption { font-size: 0.85rem; color: var(--muted); }

/* Page builder content keeps its own layout */
.panel-layout h1:first-child, .panel-layout h2:first-child { margin-top: 0; }
.so-panel { margin-bottom: 30px; }

/* ---------------------------------------------------------------
   Sidebar
------------------------------------------------------------------ */
.sidebar { padding-top: 28px; font-size: 0.95rem; }
@media (min-width: 900px) and (min-height: 940px) {
	.sidebar { position: sticky; top: calc(var(--header-h) + 24px); }
	.admin-bar .sidebar { top: calc(var(--header-h) + 56px); }
}
@media (max-width: 899px) { .sidebar { padding-top: 0; } }

.side-nav { margin-bottom: 20px; }
.side-nav__title { margin: 0 0 8px; font-size: 1.05rem; }
.side-nav__group { margin: 16px 0 4px; font-size: 0.85rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.side-nav ul { margin: 0; padding: 0; list-style: none; }
.side-nav li { margin: 0; }
.side-nav a {
	display: block; padding: 7px 12px; border-left: 3px solid var(--line);
	color: var(--ink); text-decoration: none;
}
.side-nav a:hover { border-left-color: var(--blue); color: var(--blue); background: var(--bench); }
.side-nav a[aria-current="page"] { border-left-color: var(--blue); background: var(--blue-tint); color: var(--blue-dk); font-weight: 600; }

.visit-card { padding: 20px; margin-bottom: 20px; background: var(--bench); border: 1px solid var(--line); border-radius: 6px; }
.visit-card h2 { margin: 0 0 8px; font-size: 1.1rem; }
.visit-card p { margin: 0 0 10px; color: var(--muted); }
.visit-card .btn { margin-top: 6px; }
.visit-card__link { display: block; margin-top: 10px; font-weight: 600; }

.side-widgets .widget { margin-bottom: 24px; }
.side-widgets .widget-title { font-size: 1.05rem; margin: 0 0 10px; }

/* ---------------------------------------------------------------
   Forms (Contact Form 7 and search)
------------------------------------------------------------------ */
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="url"], input[type="number"], select, textarea {
	width: 100%; padding: 11px 13px;
	border: 1px solid #b9c5d1; border-radius: 4px; background: #fff;
	color: var(--text); font: 1rem/1.4 var(--font);
}
input:focus, select:focus, textarea:focus { border-color: var(--blue); outline: 2px solid var(--blue-tint); outline-offset: 0; }
textarea { min-height: 140px; resize: vertical; }
.wpcf7-form p { margin-bottom: 14px; }
.wpcf7-form label { font-weight: 500; }
.wpcf7-not-valid-tip { font-size: 0.85rem; color: #b3261e; }
.wpcf7 form .wpcf7-response-output { margin: 12px 0 0; padding: 10px 14px; border-radius: 4px; }

/* ---------------------------------------------------------------
   Footer
------------------------------------------------------------------ */
.site-footer { background: var(--ink); color: #b9c8d7; font-size: 0.95rem; }
.site-footer__cols {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 32px 28px; padding-top: 52px; padding-bottom: 40px;
}
.site-footer h2 { margin: 0 0 12px; color: #fff; font-size: 1rem; }
.site-footer h2 a { color: #fff; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin: 0 0 6px; }
.site-footer p { margin: 0 0 12px; }
.site-footer a { color: #dbe5ef; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__base { padding-top: 18px; padding-bottom: 22px; border-top: 1px solid var(--ink-2); font-size: 0.85rem; color: #8ea2b6; }
.site-footer__base p { margin: 0; }
@media (max-width: 520px) { .site-footer__cols { grid-template-columns: 1fr 1fr; } }

/* ---------------------------------------------------------------
   Service pages: illustration, price table, section list, CTA
------------------------------------------------------------------ */
.page-illustration { margin: 0 0 1.6em; }
.page-illustration img { display: block; width: 100%; border-radius: 6px; }

.price-table { margin: 2em 0; padding: 20px 22px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--bench); }
.price-table h2 { margin: 0 0 12px; font-size: 1.25rem; }
.price-table__scroll { overflow-x: auto; }
.price-table table { width: 100%; margin: 0 0 12px; border-collapse: collapse; background: #fff; font-size: 0.95rem; }
.price-table th, .price-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.price-table thead th { font-size: 0.85rem; font-weight: 600; color: var(--muted); background: #fff; }
.price-table tbody th { font-weight: 500; white-space: normal; }
.price-table td { font-weight: 600; color: var(--ink); }
.price-table__note { font-size: 0.88rem; color: var(--muted); }

.section-pages { margin: 2.2em 0; }
.section-pages h2 { margin-top: 0; }
.section-pages ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.section-pages li { margin: 0; }
.section-pages a { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; color: var(--ink); text-decoration: none; background: #fff; }
.section-pages img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 0; }
.section-pages strong { display: block; padding: 12px 14px 0; font-size: 1.02rem; }
.section-pages span { display: block; padding: 3px 14px 14px; font-size: 0.88rem; color: var(--muted); }
.section-pages .no-img strong { padding-top: 16px; border-top: 4px solid var(--blue); }
.section-pages a:hover { border-color: var(--blue); }
.section-pages a:hover strong { color: var(--blue-dk); }

.cta-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; margin: 2.4em 0 0; padding: 24px; border-radius: 6px; background: var(--ink); color: #dbe5ef; }
.cta-box h2 { margin: 0 0 6px; color: #fff; font-size: 1.25rem; }
.cta-box p { margin: 0; max-width: 36em; }
.cta-box__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cta-box .btn--outline { border-color: rgba(255,255,255,.6); color: #fff; }
.cta-box .btn--outline:hover { background: #fff; color: var(--ink); }

.side-nav--others { margin-top: 8px; }

/* ---------------------------------------------------------------
   Price calculator
------------------------------------------------------------------ */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; margin: 1.5em 0 2em; }
.content-sidebar .calc { grid-template-columns: 1fr; }
@media (min-width: 1180px) { .content-sidebar .calc { grid-template-columns: minmax(0, 1fr) 280px; } }
@media (max-width: 760px) { .calc { grid-template-columns: 1fr; } }

.calc__step { margin: 0 0 26px; padding: 0; border: 0; min-width: 0; }
.calc__step[hidden] { display: none; }
.calc__step legend, .calc__legend { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 0; font-weight: 700; font-size: 1.12rem; color: var(--ink); }
.calc__num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 0.9rem; }

.calc__devices { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.calc__device { position: relative; }
.calc__device input { position: absolute; opacity: 0; inset: 0; pointer-events: none; }
.calc__device label { display: block; height: 100%; padding: 14px 14px; border: 1px solid #b9c5d1; border-radius: 6px; background: #fff; font-weight: 600; cursor: pointer; }
.calc__device label:hover { border-color: var(--blue); }
.calc__device input:checked + label { border-color: var(--blue); background: var(--blue-tint); color: var(--blue-dk); box-shadow: inset 0 0 0 1px var(--blue); }
.calc__device input:focus-visible + label { outline: 3px solid var(--blue); outline-offset: 2px; }

.calc select { max-width: 520px; }

.calc__repairs { display: grid; gap: 6px; }
.calc__repair { position: relative; }
.calc__repair input { position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; margin: -10px 0 0; accent-color: var(--blue); }
.calc__repair label { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px 12px 46px; border: 1px solid var(--line); border-radius: 6px; background: #fff; cursor: pointer; }
.calc__repair label:hover { border-color: var(--blue); }
.calc__repair input:checked + label { border-color: var(--blue); background: var(--blue-tint); }
.calc__from { flex: none; font-weight: 600; color: var(--ink); }

.calc__summary { position: sticky; top: calc(var(--header-h) + 20px); padding: 20px; border: 1px solid var(--line); border-radius: 6px; background: var(--bench); }
@media (max-width: 760px) { .calc__summary { position: static; } }
.calc__sumtitle { margin: 0 0 6px; font-size: 1.1rem; }
.calc__device-name { margin: 0 0 12px; font-weight: 600; color: var(--ink); }
.calc__empty { color: var(--muted); }
.calc__items { margin: 0 0 12px; padding: 0; list-style: none; font-size: 0.95rem; }
.calc__items li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); margin: 0; }
.calc__total { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 0 0 12px; }
.calc__total strong { font-size: 1.4rem; color: var(--ink); }
.calc__note { font-size: 0.85rem; color: var(--muted); }
.calc__summary .btn { margin-top: 8px; }

/* ---------------------------------------------------------------
   Home page sections
------------------------------------------------------------------ */
.home-block { padding: clamp(40px, 6vw, 64px) 0; border-bottom: 1px solid var(--line); }
.home-block:last-child { border-bottom: 0; }
.home-block > h2 { margin: 0 0 24px; }

.service-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
@media (max-width: 960px) { .service-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .service-cards { grid-template-columns: 1fr; } }
.service-card { display: flex; flex-direction: column; margin: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff; }
.service-card__img { display: block; line-height: 0; }
.service-card__img img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.service-card h3 { margin: 16px 18px 4px; font-size: 1.2rem; }
.service-card h3 a { color: var(--ink); text-decoration: none; }
.service-card h3 a:hover { color: var(--blue-dk); text-decoration: underline; }
.service-card p { margin: 0 18px 12px; color: var(--muted); font-size: 0.95rem; }
.service-card__links { display: flex; flex-wrap: wrap; gap: 6px; margin: auto 18px 18px; padding: 0; list-style: none; }
.service-card__links li { margin: 0; }
.service-card__links a { display: inline-block; padding: 5px 10px; border: 1px solid var(--line); border-radius: 4px; font-size: 0.86rem; color: var(--ink); text-decoration: none; background: var(--bench); }
.service-card__links a:hover { border-color: var(--blue); color: var(--blue-dk); background: var(--blue-tint); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.steps li { position: relative; margin: 0; padding: 0 0 0 56px; counter-increment: step; }
.steps li::before {
	content: counter(step);
	position: absolute; left: 0; top: -2px;
	display: grid; place-items: center; width: 40px; height: 40px;
	border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700;
}
.steps strong { display: block; margin-bottom: 4px; font-size: 1.08rem; color: var(--ink); }
.steps span { display: block; color: var(--muted); }

.home-about__text { max-width: 46em; }
.home-about__text h2 { margin-top: 0; }

.home-contact { display: block; }
.home-contact h2 { margin-top: 0; }
.home-contact__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.home-contact__form { padding: 24px; border: 1px solid var(--line); border-radius: 6px; background: var(--bench); }
.home-contact__form h3 { margin: 0 0 4px; }
.home-contact__form > p { color: var(--muted); }

/* Contact form in the home page hero */
.hero__inner { align-items: start; }
.hero__copy { padding-top: 12px; }
.hero-form { padding: 22px 24px 8px; border-radius: 6px; background: var(--paper); color: var(--text); }
.hero-form__title { margin: 0 0 2px; font-size: 1.2rem; }
.hero-form > p { margin: 0 0 14px; color: var(--muted); font-size: 0.95rem; }
.hero-form .wpcf7-form p { margin-bottom: 10px; }
.hero-form .wpcf7-form br { display: none; }
.hero-form label { display: block; font-size: 0.92rem; }
.hero-form input[type="text"], .hero-form input[type="email"], .hero-form input[type="tel"] { margin-top: 4px; padding: 9px 12px; }
.hero-form textarea { margin-top: 4px; min-height: 96px; height: 96px; }
.hero-form input[type="submit"] { width: 100%; }

/* Chooser as a strip below the hero */
.home-picker { padding-top: 32px; padding-bottom: 32px; }
.picker--strip { border: 1px solid var(--line); }
.picker--strip .picker__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.picker--strip .picker__list li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.picker--strip .picker__list li:nth-child(4n) { border-right: 0; }
.picker--strip .picker__list li:nth-last-child(-n+4) { border-bottom: 0; }
@media (max-width: 900px) {
	.picker--strip .picker__list { grid-template-columns: 1fr 1fr; }
	.picker--strip .picker__list li:nth-child(4n) { border-right: 1px solid var(--line); }
	.picker--strip .picker__list li:nth-child(2n) { border-right: 0; }
	.picker--strip .picker__list li:nth-last-child(-n+4) { border-bottom: 1px solid var(--line); }
	.picker--strip .picker__list li:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 520px) {
	.picker--strip .picker__list { grid-template-columns: 1fr; }
	.picker--strip .picker__list li { border-right: 0 !important; }
	.picker--strip .picker__list li:nth-last-child(2) { border-bottom: 1px solid var(--line); }
}

/* Brand and model-number lists */
.more-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px 28px; margin: 2em 0; }
.more-groups--single { display: block; }
.more-group h2, .more-group h3 { margin: 0 0 10px; font-size: 1.1rem; }
.more-links { margin: 0; padding: 0; list-style: none; columns: 1; }
.more-groups--single .more-links { columns: 2; column-gap: 28px; }
@media (max-width: 600px) { .more-groups--single .more-links { columns: 1; } }
.more-links li { margin: 0; break-inside: avoid; }
.more-links a { display: block; padding: 6px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 0.95rem; }
.more-links a:hover { color: var(--blue-dk); }
.side-nav > ul:not([class]) { margin: 0; padding: 0; list-style: none; }

/* Price notes */
.price-table__rownote, .calc__rnote { display: block; margin-top: 2px; font-size: 0.82rem; font-weight: 400; color: var(--muted); white-space: normal; line-height: 1.35; }
.price-table td { vertical-align: top; }
.price-list h3 { margin: 18px 0 8px; font-size: 1.05rem; }
.price-list h3:first-of-type { margin-top: 4px; }
.price-list table { margin-bottom: 4px; }
.price-list td { width: 9em; }

.price-list__cyber { margin: 14px 0 12px; padding: 12px 14px; border-left: 4px solid var(--blue); background: #fff; font-size: 0.93rem; }

/* Contact page */
.contact-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin: 1.5em 0; }
.contact-details > div { padding: 20px; border: 1px solid var(--line); border-radius: 6px; background: var(--bench); }
.contact-details h2 { margin: 0 0 8px; font-size: 1.15rem; }
.contact-details p { margin: 0 0 8px; }
.contact-details__phone { font-size: 1.35rem; font-weight: 700; text-decoration: none; }
.contact-form-box { padding: 22px 24px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--bench); max-width: 640px; }

/* Related repairs */
.related { margin: 2.2em 0 0; }
.related h2 { margin: 0 0 10px; font-size: 1.2rem; }
.related ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.related li { margin: 0; }
.related a { display: inline-block; padding: 7px 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--bench); color: var(--ink); text-decoration: none; font-size: 0.92rem; }
.related a:hover { border-color: var(--blue); color: var(--blue-dk); background: var(--blue-tint); }
/* 404 */
.not-found { max-width: var(--wrap); padding-top: 24px; }
.not-found .entry-content { max-width: none; }
.not-found .picker { margin: 1.5em 0; }
