/* ==========================================================================
   Amstrad redesign 2026 — brand base
   Amstrad Blue: CMYK 100/90/20/60 -> #000A52
   Amstrad Red:  logo red          -> #ED1C24
   Header + footer + browser surfaces apply site-wide (brand chrome).
   Content components only apply on redesigned pages (body.amstrad-rd).
   ========================================================================== */

:root {
	--a-blue: #000a52;
	--a-blue-900: #00063a;
	--a-blue-800: #000844;
	--a-blue-600: #1c2a78;
	--a-blue-300: #8d95c4;
	--a-blue-100: #dde1f0;
	--a-blue-50: #f2f4fa;
	--a-red: #ed1c24;
	--a-red-ink: #c4121a;      /* red for small text on white (5.9:1) */
	--a-ink: #1d1d1f;          /* headings (Apple-style near-black) */
	--a-text: #424245;         /* body, 10:1 on white */
	--a-muted: #6e6e73;        /* secondary, 5.1:1 on white */
	--a-line: #dfe2ee;
	--a-surface: #ffffff;
	--a-on-blue: #ffffff;
	--a-on-blue-muted: #c3c8e6; /* 9.9:1 on --a-blue */

	--a-radius-s: 8px;
	--a-radius-m: 14px;
	--a-radius-l: 22px;
	--a-shadow-1: 0 1px 2px rgba(0, 10, 82, .06), 0 4px 12px rgba(0, 10, 82, .06);
	--a-shadow-2: 0 2px 6px rgba(0, 10, 82, .08), 0 16px 36px rgba(0, 10, 82, .14);

	--a-space-1: 8px;
	--a-space-2: 16px;
	--a-space-3: 24px;
	--a-space-4: 40px;
	--a-space-5: 64px;
	--a-space-6: 96px;

	/* Critically damped "spring" approximation; overshoot only where momentum exists. */
	--a-ease-out: cubic-bezier(.22, 1, .36, 1);
	--a-press: 100ms;
	--a-move: 420ms;
}

/* ---------- Browser surfaces ---------- */
::selection { background: var(--a-blue); color: #fff; }
html { scrollbar-color: var(--a-blue-300) var(--a-blue-50); accent-color: var(--a-blue); }
input, textarea { caret-color: var(--a-red); }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--a-red);
	outline-offset: 3px;
	border-radius: 4px;
}

/* ---------- Header (site-wide) ---------- */
.factrie-header .navbar,
.factrie-header .sticky-head,
.factrie-header .sticky-head .navbar,
.mobile-header,
.mobile-header .mobile-header-inner,
.mobile-header .sticky-head {
	background-color: var(--a-blue) !important;
}
.factrie-header .navbar { box-shadow: 0 1px 0 rgba(255, 255, 255, .06); }
.factrie-header .main-logo img,
.factrie-header .sticky-logo img { max-height: 30px; width: auto; }

#mega-menu-wrap-primary-menu #mega-menu-primary-menu > li.mega-menu-item > a.mega-menu-link {
	color: var(--a-on-blue) !important;
	font-weight: 500 !important;
	letter-spacing: .04em !important;
	position: relative;
	background: transparent !important;
}
#mega-menu-wrap-primary-menu #mega-menu-primary-menu > li.mega-menu-item > a.mega-menu-link::after {
	content: "";
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: 6px;
	height: 2px;
	background: var(--a-red);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 320ms var(--a-ease-out);
}
#mega-menu-wrap-primary-menu #mega-menu-primary-menu > li.mega-menu-item > a.mega-menu-link:hover::after,
#mega-menu-wrap-primary-menu #mega-menu-primary-menu > li.mega-menu-item.mega-toggle-on > a.mega-menu-link::after,
#mega-menu-wrap-primary-menu #mega-menu-primary-menu > li.mega-current-menu-item > a.mega-menu-link::after,
#mega-menu-wrap-primary-menu #mega-menu-primary-menu > li.mega-current-menu-ancestor > a.mega-menu-link::after {
	transform: scaleX(1);
}
/* Dropdown panels open from the menu item (anchored origin) */
#mega-menu-wrap-primary-menu #mega-menu-primary-menu > li.mega-menu-item > ul.mega-sub-menu {
	background: #fff !important;
	border-radius: 0 !important;
	box-shadow: var(--a-shadow-2) !important;
	border-top: 3px solid var(--a-red) !important;
	transform-origin: top center;
}
#mega-menu-wrap-primary-menu #mega-menu-primary-menu > li.mega-menu-item ul.mega-sub-menu a.mega-menu-link {
	color: var(--a-ink) !important;
	background: transparent !important;
}
#mega-menu-wrap-primary-menu #mega-menu-primary-menu > li.mega-menu-item ul.mega-sub-menu a.mega-menu-link:hover {
	color: var(--a-red-ink) !important;
	background: var(--a-blue-50) !important;
}

/* ---------- Footer (site-wide) ---------- */
.site-footer,
.site-footer .footer-top-wrap,
.site-footer .footer-middle-wrap,
.site-footer .footer-widgets-wrap {
	background-color: var(--a-blue) !important;
	color: var(--a-on-blue-muted) !important;
}
.site-footer { border-top: 4px solid var(--a-red); }
.site-footer h1, .site-footer h2, .site-footer h3, .site-footer h4, .site-footer h5, .site-footer h6,
.site-footer .widget-title {
	color: #fff !important;
	font-weight: 600 !important;
	letter-spacing: .01em;
}
.site-footer a,
.site-footer p,
.site-footer li { color: var(--a-on-blue-muted) !important; }
.site-footer a {
	text-decoration: none;
	transition: color 160ms var(--a-ease-out);
}
.site-footer a:hover,
.site-footer a:focus-visible { color: #fff !important; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--a-red); }
.site-footer .footer-bottom,
.footer-bottom {
	background-color: var(--a-blue-900) !important;
	color: var(--a-on-blue-muted) !important;
}
.footer-bottom a { color: #fff !important; }

/* ==========================================================================
   Content components — redesigned pages only
   ========================================================================== */
body.amstrad-rd {
	color: var(--a-text);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	font-variant-numeric: tabular-nums;
}

body.amstrad-rd :where(h1, h2, h3, h4, h5, h6),
body.amstrad-rd .vc_custom_heading {
	color: var(--a-ink) !important;
	font-family: var(--a-font, Inter, system-ui, sans-serif) !important;
	text-wrap: balance;
}
body.amstrad-rd h1 { font-weight: 600; letter-spacing: -0.009em; line-height: 1.0625; }
body.amstrad-rd h2,
body.amstrad-rd h2.vc_custom_heading { font-weight: 600 !important; letter-spacing: -0.003em !important; line-height: 1.083 !important; }
body.amstrad-rd h3, body.amstrad-rd h4 { font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
body.amstrad-rd p, body.amstrad-rd li { line-height: 1.65; }

body.amstrad-rd .entry-content a:not([class*="btn"]):not(.button):not(.vc_single_image-wrapper) {
	color: var(--a-blue-600);
	text-decoration-color: rgba(28, 42, 120, .35);
	text-underline-offset: 3px;
	transition: color 160ms var(--a-ease-out), text-decoration-color 160ms var(--a-ease-out);
}
body.amstrad-rd .entry-content a:not([class*="btn"]):not(.button):not(.vc_single_image-wrapper):hover {
	color: var(--a-red-ink);
	text-decoration-color: currentColor;
}

/* Buttons — blue primary, instant press feedback */
body.amstrad-rd .vc_btn3,
body.amstrad-rd .btn,
body.amstrad-rd a.button,
body.amstrad-rd button.button,
body.amstrad-rd input[type="submit"],
body.amstrad-rd .wpcf7-submit {
	background: var(--a-blue) !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 999px !important;
	padding: 13px 26px !important;
	font-weight: 600 !important;
	letter-spacing: .01em !important;
	line-height: 1.2 !important;
	box-shadow: 0 1px 2px rgba(0, 10, 82, .2), 0 6px 16px rgba(0, 10, 82, .18);
	transition: transform var(--a-press) ease-out, background-color 200ms var(--a-ease-out), box-shadow 200ms var(--a-ease-out) !important;
	cursor: pointer;
}
body.amstrad-rd .vc_btn3:hover,
body.amstrad-rd .btn:hover,
body.amstrad-rd a.button:hover,
body.amstrad-rd button.button:hover,
body.amstrad-rd input[type="submit"]:hover,
body.amstrad-rd .wpcf7-submit:hover {
	background: var(--a-blue-600) !important;
	box-shadow: 0 2px 4px rgba(0, 10, 82, .2), 0 10px 24px rgba(0, 10, 82, .22);
}
body.amstrad-rd .vc_btn3:active,
body.amstrad-rd .btn:active,
body.amstrad-rd a.button:active,
body.amstrad-rd button.button:active,
body.amstrad-rd input[type="submit"]:active,
body.amstrad-rd .wpcf7-submit:active { transform: scale(.97); }

/* Form fields */
body.amstrad-rd .entry-content :where(input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], input[type="search"], select, textarea) {
	border: 1px solid #b9bfd8 !important;
	border-radius: var(--a-radius-s) !important;
	background: #fff !important;
	color: var(--a-ink) !important;
	min-height: 48px;
	padding: 10px 14px !important;
	font-size: 16px !important; /* no iOS zoom */
	transition: border-color 160ms var(--a-ease-out), box-shadow 160ms var(--a-ease-out);
}
body.amstrad-rd .entry-content textarea { min-height: 120px; }
body.amstrad-rd .entry-content :where(input, select, textarea):hover { border-color: var(--a-blue-300) !important; }
body.amstrad-rd .entry-content :where(input, select, textarea):focus {
	border-color: var(--a-blue) !important;
	box-shadow: 0 0 0 4px rgba(0, 10, 82, .12) !important;
	outline: none;
}
body.amstrad-rd .entry-content ::placeholder { color: #6a7090; opacity: 1; }
body.amstrad-rd .entry-content label { color: var(--a-ink); font-weight: 500; }
body.amstrad-rd .wpcf7-not-valid-tip { color: var(--a-red-ink); font-size: 14px; }
body.amstrad-rd .wpcf7-not-valid { border-color: var(--a-red-ink) !important; }
body.amstrad-rd .wpcf7-response-output { border-radius: var(--a-radius-s); }

/* Tables (policies, charges, escalation) */
body.amstrad-rd .entry-content table {
	border-collapse: separate !important;
	border-spacing: 0;
	width: 100%;
	border: 1px solid var(--a-line) !important;
	border-radius: var(--a-radius-m);
	overflow: hidden;
	font-variant-numeric: tabular-nums;
}
body.amstrad-rd .entry-content th,
body.amstrad-rd .entry-content thead td {
	background: var(--a-blue) !important;
	color: #fff !important;
	font-weight: 600;
	text-align: left;
	border: 0 !important;
}
body.amstrad-rd .entry-content td { border: 0 !important; border-top: 1px solid var(--a-line) !important; color: var(--a-text); }
body.amstrad-rd .entry-content th,
body.amstrad-rd .entry-content td { padding: 12px 16px !important; }
body.amstrad-rd .entry-content tbody tr:nth-child(even) td { background: var(--a-blue-50); }

/* Image tiles that link somewhere: lift on hover, settle without bounce */
body.amstrad-rd .entry-content a.vc_single_image-wrapper {
	display: inline-block;
	border-radius: var(--a-radius-l);
	overflow: hidden;
	transition: transform var(--a-move) var(--a-ease-out), box-shadow var(--a-move) var(--a-ease-out);
}
body.amstrad-rd .entry-content a.vc_single_image-wrapper:hover { transform: translateY(-4px); box-shadow: var(--a-shadow-2); }
body.amstrad-rd .entry-content a.vc_single_image-wrapper:active { transform: translateY(-1px) scale(.99); transition-duration: var(--a-press); }

/* WhatsApp support bar: brand-consistent, not shouting */
.wws-popup-container .wws-popup__open-btn { border-radius: 999px !important; box-shadow: var(--a-shadow-2) !important; }

/* ---------- Accessibility preferences ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		transition-duration: 1ms !important;
		animation-duration: 1ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
	}
	body.amstrad-rd .entry-content a.vc_single_image-wrapper:hover { transform: none; }
}
@media (prefers-contrast: more) {
	:root { --a-muted: var(--a-text); --a-line: #8d95c4; }
}

/* WhatsApp bar on phones: one compact line instead of a block covering a third of the screen */
@media (max-width: 767px) {
	.wws-popup-container .wws-popup__open-btn {
		font-size: 13px !important;
		line-height: 1.3 !important;
		padding: 10px 14px !important;
		max-width: calc(100vw - 88px) !important;
	}
}

/* WhatsApp button: darker WhatsApp green so the white label is readable (5.4:1) */
.wws-popup-container .wws-popup__open-btn,
.wws-popup-container .wws--bg-color { background-color: #0b7a3e !important; color: #fff !important; }

/* Header icons and footer links: comfortable touch targets */
.factrie-header a.cart-contents { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
.site-footer li a { display: inline-block; padding-block: 4px; }

/* Hero slider arrows */
body.amstrad-rd a.rslides_nav {
	width: 44px !important;
	height: 44px !important;
	border-radius: 50%;
	background: rgba(255, 255, 255, .92) !important;
	color: var(--a-blue) !important;
	opacity: 1 !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	text-decoration: none !important;
	font-size: 20px !important;
	line-height: 1 !important;
	text-indent: 0 !important;
	box-shadow: var(--a-shadow-1);
	transition: transform var(--a-press) ease-out, background-color 200ms var(--a-ease-out);
}
body.amstrad-rd a.rslides_nav:hover { background: #fff !important; color: var(--a-red-ink) !important; }
body.amstrad-rd a.rslides_nav:active { transform: scale(.94); }

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

/* Shared band used on several pages */
/* ---------- Ways to raise a service request ---------- */
body.amstrad-rd .ftr-5 {
	background-color: var(--a-blue) !important;
	padding-block: var(--a-space-5) !important;
}
body.amstrad-rd .ftr-5,
body.amstrad-rd .ftr-5 :where(p, li, span, strong, h1, h2, h3, h4, h5, h6) {
	color: #fff !important;
}
body.amstrad-rd .ftr-5 :where(h2, h3) { font-weight: 600 !important; letter-spacing: -0.01em !important; }
body.amstrad-rd .ftr-5 a {
	color: var(--a-on-blue-muted) !important;
	text-decoration: underline !important;
	text-decoration-color: rgba(237, 28, 36, .7) !important;
	text-underline-offset: 4px;
}
body.amstrad-rd .ftr-5 a:hover { color: #fff !important; text-decoration-color: var(--a-red) !important; }
body.amstrad-rd .ftr-5 :where(strong, b) { color: #fff !important; font-weight: 600; }

@media (max-width: 767px) { body.amstrad-rd .ftr-5 { padding-block: var(--a-space-4) !important; } }

/* Menu bar wrapper colours from the menu plugin */
#mega-menu-wrap-primary-menu,
#mega-menu-wrap-primary-menu #mega-menu-primary-menu { background: transparent !important; }

/* Theme page-title band (used by policy, warranty and other plain pages) */
body.amstrad-rd .page-title-wrap,
body.amstrad-rd .page-title-wrap .page-title-wrap-inner { background: var(--a-blue) !important; }
body.amstrad-rd .page-title-wrap .page-title-overlay { display: none !important; }
body.amstrad-rd .page-title-wrap .page-title-wrap-inner { padding-block: var(--a-space-4) !important; }
body.amstrad-rd .page-title-wrap h1.page-title {
	color: #fff !important;
	font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.6rem) !important;
	font-weight: 600 !important;
	letter-spacing: -0.02em !important;
	margin-bottom: 8px !important;
}
body.amstrad-rd .page-title-wrap .breadcrumb,
body.amstrad-rd .page-title-wrap .breadcrumb * { background: transparent !important; color: var(--a-on-blue-muted) !important; font-size: 14px; }
body.amstrad-rd .page-title-wrap .breadcrumb a { text-decoration: underline; text-decoration-color: var(--a-red); text-underline-offset: 4px; }

/* Builder title band (Contact, Raise a service request, Register, Status, Escalation matrix).
   Restyled to match the page-kit title band (pagekit.css .am-pg-hero): white, no stock photo,
   breadcrumb above a dark heading, same edges as the header logo. */
body.amstrad-rd .custom-bg-img {
	background: #fff !important;
	box-shadow: none !important;
	border-bottom: 1px solid var(--a-line);
	min-height: 0 !important;
	padding: 0 !important;
	margin-bottom: 0 !important;
}
body.amstrad-rd .custom-bg-img > .wpb_column,
body.amstrad-rd .custom-bg-img .vc_column-inner,
body.amstrad-rd .custom-bg-img .wpb_wrapper,
body.amstrad-rd .custom-bg-img .wpb_raw_code,
body.amstrad-rd .custom-bg-img .row,
body.amstrad-rd .custom-bg-img .col-md-12 { padding: 0 !important; margin: 0 !important; width: 100%; max-width: none; float: none; }
body.amstrad-rd .custom-bg-img .container {
	max-width: 1290px !important; width: 100%; margin-inline: auto !important; padding: 48px 24px 44px !important; box-sizing: border-box;
}
body.amstrad-rd .custom-bg-img .page-title-inner,
body.amstrad-rd .custom-bg-img .pull-center { display: flex; flex-direction: column-reverse; align-items: flex-start; text-align: left !important; padding: 0 !important; }
body.amstrad-rd .custom-bg-img .page-title {
	margin: 0 !important;
	max-width: 22ch;
	color: var(--a-ink) !important;
	font-size: var(--a-h1) !important;
	font-weight: 600 !important;
	letter-spacing: -0.009em !important;
	line-height: 1.0625 !important;
	text-transform: none !important;
	text-align: left !important;
	text-wrap: balance;
}
body.amstrad-rd .custom-bg-img .breadcrumb {
	display: flex; gap: 8px; margin: 0 0 18px !important; padding: 0 !important;
	background: transparent !important; color: var(--a-muted) !important; font-size: 14px !important;
}
body.amstrad-rd .custom-bg-img .breadcrumb * { background: transparent !important; color: var(--a-muted) !important; font-size: 14px !important; }
body.amstrad-rd .custom-bg-img .breadcrumb a { color: var(--a-blue) !important; text-decoration: none; }
body.amstrad-rd .custom-bg-img .breadcrumb a:hover { color: var(--a-red-ink) !important; text-decoration: underline; }
@media (max-width: 767px) {
	body.amstrad-rd .custom-bg-img .container { padding: 32px 16px 32px !important; }
}


/* Blocksy: pages that bring their own blue title band don't need Blocksy's title too */
article:has(.entry-content .custom-bg-img) > .hero-section { display: none !important; }
body.amstrad-rd .ct-container[data-vertical-spacing]:has(.custom-bg-img) { padding-top: 0 !important; }
