/* ==========================================================================
   Amstrad brand layer for Blocksy (site-wide)
   Amstrad Blue #000A52 (CMYK 100/90/20/60) · Amstrad Red #ED1C24 (logo red)
   ========================================================================== */

:root {
	--a-blue: #000a52;
	--a-blue-950: #00052e;
	--a-blue-900: #00063a;
	--a-blue-700: #121d6b;
	--a-blue-600: #1c2a78;
	--a-blue-300: #8d95c4;
	--a-blue-100: #dde1f0;
	--a-blue-50: #f2f4fa;
	--a-red: #ed1c24;
	--a-red-ink: #c4121a;
	--a-ink: #1d1d1f;          /* headings: Apple-style near-black */
	--a-text: #424245;         /* body copy, 10:1 on white */
	--a-muted: #6e6e73;        /* secondary text, 5.1:1 on white */
	--a-line: #e3e6f0;
	--a-on-blue: #ffffff;
	--a-on-blue-muted: #c3c8e6;

	--a-radius-s: 10px;
	--a-radius-m: 16px;
	--a-radius-l: 24px;
	--a-shadow-1: 0 1px 2px rgba(0, 10, 82, .06), 0 6px 18px rgba(0, 10, 82, .07);
	--a-shadow-2: 0 2px 6px rgba(0, 10, 82, .08), 0 22px 44px rgba(0, 10, 82, .16);
	--a-ease-out: cubic-bezier(.22, 1, .36, 1);
	--a-press: 100ms;
	--a-move: 460ms;

	/* Blocksy palette (also saved in Customizer → Colors) */
	--theme-palette-color-1: #000a52;
	--theme-palette-color-2: #1c2a78;
	--theme-palette-color-3: #363b58;
	--theme-palette-color-4: #0b1033;
	--theme-palette-color-5: #e3e6f0;
	--theme-palette-color-6: #f2f4fa;
	--theme-palette-color-7: #ffffff;   /* page background: pure white, like apple.com */
	--theme-palette-color-8: #ffffff;
	--a-font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--theme-font-family: var(--a-font);
	--theme-headings-font-family: var(--a-font);

	/* Heading scale modelled on apple.com: semibold, near-black, large and tight.
	   Sizes shrink smoothly on smaller screens. */
	--a-h1: clamp(2.5rem, 1.75rem + 3vw, 4rem);         /* 40 → 64px */
	--a-h2: clamp(2rem, 1.45rem + 2.2vw, 3rem);         /* 32 → 48px */
	--a-h3: clamp(1.5rem, 1.3rem + .8vw, 1.75rem);      /* 24 → 28px */
	--a-h4: clamp(1.25rem, 1.15rem + .4vw, 1.5rem);     /* 20 → 24px */
	--a-h5: 1.3125rem;                                  /* 21px */
	--a-h6: 1.0625rem;                                  /* 17px */
}

body {
	font-family: var(--a-font);
	font-size: 17px;
	line-height: 1.47;
	letter-spacing: -0.011em;
	color: var(--a-text);
	background: #fff;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
/* Pure white pages like apple.com. Blocksy prints its own page colour after this file,
   so the doubled :root / html body selectors are needed to win. */
:root:root { --theme-palette-color-7: #ffffff; }
html body { background-color: #fff; }

/* Headings (Blocksy reads these variables; the extra :root keeps ours ahead of its defaults) */
:root :is(h1, h2, h3, h4, h5, h6) {
	--theme-font-family: var(--a-font);
	--theme-font-weight: 600;
	font-family: var(--a-font);
	font-weight: 600;
	color: var(--a-ink);
	text-wrap: balance;
}
:root h1 { --theme-font-size: var(--a-h1); --theme-line-height: 1.0625; --theme-letter-spacing: -0.009em; font-size: var(--a-h1); line-height: 1.0625; letter-spacing: -0.009em; }
:root h2 { --theme-font-size: var(--a-h2); --theme-line-height: 1.083; --theme-letter-spacing: -0.003em; font-size: var(--a-h2); line-height: 1.083; letter-spacing: -0.003em; }
:root h3 { --theme-font-size: var(--a-h3); --theme-line-height: 1.143; --theme-letter-spacing: 0.007em; font-size: var(--a-h3); line-height: 1.143; letter-spacing: 0.007em; }
:root h4 { --theme-font-size: var(--a-h4); --theme-line-height: 1.167; --theme-letter-spacing: 0.009em; font-size: var(--a-h4); line-height: 1.167; letter-spacing: 0.009em; }
:root h5 { --theme-font-size: var(--a-h5); --theme-line-height: 1.19; --theme-letter-spacing: 0.011em; font-size: var(--a-h5); line-height: 1.19; letter-spacing: 0.011em; }
:root h6 { --theme-font-size: var(--a-h6); --theme-line-height: 1.235; --theme-letter-spacing: -0.022em; font-size: var(--a-h6); line-height: 1.235; letter-spacing: -0.022em; }

/* ---------- 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: Amstrad Blue ---------- */
#header .ct-header [data-row],
#header [data-row],
#header .ct-sticky-container [data-row],
#header [data-sticky] [data-row] {
	background-color: var(--a-blue) !important;
	border-color: rgba(255, 255, 255, .08) !important;
	box-shadow: none !important;
}
#header {
	--theme-link-initial-color: #ffffff;
	--theme-link-hover-color: #ffffff;
	--theme-link-active-color: #ffffff;
	--theme-text-color: #ffffff;
	--theme-icon-color: #ffffff;
	--theme-icon-hover-color: #ffffff;
	--theme-headings-color: #ffffff;
}
#header .ct-menu-link,
#header .ct-header-search,
#header .ct-header-cart,
#header .ct-header-trigger,
#header .ct-header-account { color: #fff !important; }
#header svg { fill: currentColor; }
#header .ct-menu-link {
	font-weight: 500 !important;
	letter-spacing: .02em;
	position: relative;
}
/* red underline grows from the left on hover/current */
#header [data-id*="menu"] > ul > li > .ct-menu-link::after {
	content: "";
	position: absolute;
	left: var(--menu-items-spacing, 14px);
	right: var(--menu-items-spacing, 14px);
	bottom: 18px;
	height: 2px;
	background: var(--a-red);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 320ms var(--a-ease-out);
}
#header [data-id*="menu"] > ul > li:hover > .ct-menu-link::after,
#header [data-id*="menu"] > ul > li.current-menu-item > .ct-menu-link::after,
#header [data-id*="menu"] > ul > li.current-menu-ancestor > .ct-menu-link::after { transform: scaleX(1); }

/* Dropdowns: white panels anchored to their item */
#header .sub-menu {
	--theme-link-initial-color: var(--a-ink);
	--theme-link-hover-color: var(--a-red-ink);
	background: #fff !important;
	border-radius: 0 0 var(--a-radius-m) var(--a-radius-m);
	box-shadow: var(--a-shadow-2) !important;
	border-top: 3px solid var(--a-red);
}
#header .sub-menu .ct-menu-link { color: var(--a-ink) !important; }
#header .sub-menu .ct-menu-link:hover { color: var(--a-red-ink) !important; background: var(--a-blue-50); }
#header .site-logo-container img { max-height: 30px; width: auto; }

/* Mobile off-canvas panel */
#offcanvas .ct-panel-inner { background: var(--a-blue-900) !important; }
#offcanvas { --theme-link-initial-color: #fff; --theme-link-hover-color: #fff; --theme-text-color: #fff; }

/* ---------- Buttons ---------- */
.wp-block-button__link,
.ct-button,
.button,
button[type="submit"],
input[type="submit"] {
	border-radius: 999px !important;
	font-weight: 600 !important;
	letter-spacing: .01em;
	transition: transform var(--a-press) ease-out, background-color 200ms var(--a-ease-out), color 200ms var(--a-ease-out), box-shadow 200ms var(--a-ease-out) !important;
}
.wp-block-button__link:active,
.ct-button:active,
.button:active,
button[type="submit"]:active,
input[type="submit"]:active { transform: scale(.97); }

/* ---------- Footer ---------- */
.amstrad-footer {
	background: var(--a-blue);
	color: var(--a-on-blue-muted);
	border-top: 4px solid var(--a-red);
	padding: 64px 0 40px;
}
.amstrad-footer__inner {
	display: grid;
	grid-template-columns: 1.3fr repeat(4, 1fr);
	gap: 40px 32px;
}
.amstrad-footer h2 {
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: .04em;
	margin: 0 0 14px;
}
.amstrad-footer ul { list-style: none; margin: 0; padding: 0; }
.amstrad-footer li a {
	display: inline-block;
	padding-block: 5px;
	color: var(--a-on-blue-muted);
	font-size: 14.5px;
	text-decoration: none;
	transition: color 160ms var(--a-ease-out);
}
.amstrad-footer a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--a-red); text-underline-offset: 4px; }
.amstrad-footer__logo img { height: 30px; width: auto; }
.amstrad-footer__tagline { color: #fff; font-weight: 500; margin: 14px 0 22px; }
.amstrad-footer__help span { display: block; font-size: 13px; color: var(--a-on-blue-muted); margin-bottom: 2px; }
.amstrad-footer__help a { color: #fff; font-size: 20px; font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; }
/* Model number on its own line under the product name (inc/shop.php): same size or smaller
   than the name, lighter grey like Apple's secondary text. "(2026 Star Rating)" is shown as a
   small "2026 BEE Rating" tag. Loaded on every page (homepage New arrivals, shop, categories, product). */
.am-model-line, h3.am-model-line, h2.am-model-line {
	display: flex !important; flex-wrap: wrap; align-items: center; gap: 4px 8px;
	margin: 4px 0 8px !important; padding: 0 !important;
	color: var(--a-muted) !important; font-family: inherit !important;
	font-size: 14px !important; font-weight: 400 !important; line-height: 1.4 !important;
	letter-spacing: 0 !important; text-transform: none !important;
}
.single-product .summary h2.am-model-line { margin: 6px 0 14px !important; font-size: 17px !important; }
li.product .am-model-line, .products .am-model-line { font-size: 13px !important; }   /* never bigger than the card's product name */
.am-model-no { color: var(--a-muted); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.am-bee {
	display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px;
	background: #e9f6ee; color: #0b6b37; font-size: 12px; font-weight: 600; line-height: 1.5; white-space: nowrap;
}
.single-product .summary .am-bee { font-size: 13px; padding: 3px 10px; }
.am-bee svg { display: none; }

/* "It's a SIX" logo (assets/img/six-ways-logo.svg) wherever the six ways to raise a service request are listed */
.am-six-logo { display: block; height: auto; }
/* Raise a service request: beside the heading on wide screens, above it on phones */
.am-six-logo--hero { width: 150px; margin: 0 0 14px; }
@media (min-width: 900px) {
	.am-pg-hero__inner:has(.am-six-logo--hero) { position: relative; padding-right: 340px; }
	.am-six-logo--hero { position: absolute; right: 24px; top: 50%; width: 280px; margin: 0; transform: translateY(-50%); }
}
/* Homepage "Help whenever you need it" (navy band): on a white tile so the navy shirt stays visible */
.am-six-logo--band { width: 168px; margin: 0 0 22px; padding: 10px 12px 6px; border-radius: 22px; background: #fff; box-shadow: 0 12px 30px -16px rgba(0, 0, 0, .55); }
@media (max-width: 767px) { .am-six-logo--band { width: 140px; } }

/* Customer care hours under 1860 266 77777 (footer, service pages, cards) */
.amstrad-footer__hours { display: block; max-width: 30ch; margin-top: 6px; color: var(--a-on-blue-muted); font-size: 13px; line-height: 1.45; }
.am-cc-hours { display: inline-block; margin-top: 2px; color: var(--a-muted); font-size: 13px; line-height: 1.45; }
.am-cc-hours--hero { display: block; margin: 14px 0 0; font-size: 14px; }
.am-esc__hours { margin: 4px 0 0; color: var(--a-muted); font-size: 13.5px; line-height: 1.45; }
/* Social media links */
.amstrad-footer__social { margin-top: 20px; }
.amstrad-footer__social > span { display: block; margin-bottom: 10px; font-size: 13px; color: var(--a-on-blue-muted); }
.amstrad-footer__social ul { display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; }
.amstrad-footer__social li { margin: 0; }
.amstrad-footer .amstrad-footer__social a {
	display: flex !important; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0 !important; border-radius: 50%; line-height: 0;
	background: rgba(255, 255, 255, .1); color: #fff;
	transition: background-color 200ms var(--a-ease-out), transform 200ms var(--a-ease-out);
}
.amstrad-footer__social a:hover { background: var(--a-red); color: #fff; transform: translateY(-2px); }
.amstrad-footer__social a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.amstrad-footer__social svg { display: block; flex: none; margin: 0 !important; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) { .amstrad-footer__social a:hover { transform: none; } }
#footer [data-row] { background-color: var(--a-blue-950) !important; }
#footer { --theme-text-color: var(--a-on-blue-muted); --theme-link-initial-color: #fff; color: var(--a-on-blue-muted); }

@media (max-width: 999px) {
	.amstrad-footer__inner { grid-template-columns: repeat(2, 1fr); }
	.amstrad-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
	.amstrad-footer { padding: 48px 0 32px; }
	.amstrad-footer__inner { gap: 32px 20px; }
}

/* WhatsApp chat button: darker WhatsApp green so its white label is readable */
.wws-popup-container .wws-popup__open-btn,
.wws-popup-container .wws--bg-color { background-color: #0b7a3e !important; color: #fff !important; }
/* Small pill: icon + "WhatsApp Service Support" on one line */
.wws-popup-container .wws-popup__open-btn {
	display: inline-flex !important; align-items: center; gap: 6px;
	width: auto !important; max-width: calc(100vw - 32px) !important;
	padding: 7px 14px !important; border-radius: 999px !important;
	font-size: 13px !important; font-weight: 600; line-height: 1.2 !important; white-space: nowrap;
}
.wws-popup-container .wws-popup__open-btn > i { font-size: 16px; line-height: 1; }
.wws-popup-container .wws-popup__footer { margin: 0 !important; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

/* Header: site title text (when shown) and comfortable icon hit areas */
#header .site-title a,
#header .site-title,
#header .site-description { color: #fff !important; }
#header .ct-header-search,
#header .ct-header-cart > a,
#header .ct-header-trigger { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }

/* The logo already says Amstrad; don't repeat the site name beside it */
#header .site-logo-container ~ .site-title-container,
#header [data-id="logo"] .site-title-container { display: none !important; }

/* Header height: compact bar (was Blocksy's default 120px) */
#header [data-device="desktop"] [data-row*="middle"] { --height: 72px; }
#header [data-device="mobile"] [data-row*="middle"] { --height: 60px; }
#header [data-id*="menu"] > ul > li > .ct-menu-link::after { bottom: 14px; transition: transform 240ms var(--a-ease-out), bottom 320ms var(--a-ease-out); }

/* ---------- Header shrinks by 20% once the page scrolls ----------
   72 → 58px on computers, 60 → 48px on phones; the logo shrinks with it.
   The space it gives up is added below it, so the page under it never jumps. */
#header [data-row*="middle"] > .ct-container {
	transition: min-height 320ms var(--a-ease-out), height 320ms var(--a-ease-out);
}
#header .site-logo-container img { transition: max-height 320ms var(--a-ease-out); }
#header { transition: box-shadow 240ms var(--a-ease-out), margin-bottom 320ms var(--a-ease-out); }
#header.is-scrolled [data-device="desktop"] [data-row*="middle"] { --height: 58px; }
#header.is-scrolled [data-device="mobile"] [data-row*="middle"] { --height: 48px; }
#header.is-scrolled .site-logo-container { --logo-max-height: 24px; }
#header.is-scrolled .site-logo-container img { max-height: 24px; }
#header.is-scrolled [data-id*="menu"] > ul > li > .ct-menu-link::after { bottom: 9px; }
@media (min-width: 1000px) { #header.is-scrolled { margin-bottom: 14px; } }
@media (max-width: 999.98px) { #header.is-scrolled { margin-bottom: 12px; } }
@media (prefers-reduced-motion: reduce) {
	#header, #header [data-row*="middle"] > .ct-container, #header .site-logo-container img { transition: none; }
}

/* ---------- Readable hover colours ----------
   Blocksy turns links blue on hover. On blue or dark surfaces that made text
   disappear, so every dark surface keeps white (or light) text on hover. */
#header,
#offcanvas,
.amstrad-footer,
#footer,
.am-feature,
.am-service {
	--theme-link-hover-color: #ffffff;
	--theme-link-active-color: #ffffff;
}
.am-service a:hover,
.am-service a:focus-visible,
.am-feature a:hover,
.am-feature a:focus-visible,
#footer a:hover,
.amstrad-footer a:hover { color: #fff !important; }
/* On light surfaces, hovered links go to a darker blue or red ink, never pale */
.am-cat:hover,
.am-promo:hover { color: var(--a-ink); }

/* ---------- Logo alignment ----------
   Blocksy reserves a 50px-tall logo box but our logo is 30px, which left it
   sitting 10px above the centre of the bar. Centre it, and line its left edge
   up with the page content and the footer. */
#header .site-logo-container {
	display: flex;
	align-items: center;
	height: auto;
	--logo-max-height: 30px;
}
#header .site-logo-container img { display: block; }
#header .site-branding { align-items: center; }
#header [data-row*="middle"] > .ct-container { padding-inline: 24px; box-sizing: border-box; }
@media (max-width: 689px) {
	#header [data-row*="middle"] > .ct-container { padding-inline: 16px; }
	#header .site-logo-container img { max-height: 24px; width: auto; }
}
.amstrad-footer__inner.ct-container { padding-inline: 24px; box-sizing: border-box; }   /* same width as the header and page content */
@media (max-width: 689px) { .amstrad-footer__inner.ct-container { padding-inline: 16px; } }

/* ---------- Header stays at the top while scrolling ---------- */
#header {
	position: sticky;
	top: var(--admin-bar, 0px);
	z-index: 100;
	transition: box-shadow 240ms var(--a-ease-out);
}
html { scroll-padding-top: 88px; }   /* in-page links land below the bar, not under it */
#header.is-scrolled { box-shadow: 0 6px 24px rgba(0, 6, 58, .28); }

/* Stand-in for the old theme's blog grid ([factrie_vc_blog]) */
.amstrad-blog-standin { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.amstrad-blog-standin__item { display: flex; flex-direction: column; gap: 8px; color: var(--a-ink); text-decoration: none; }
.amstrad-blog-standin__item img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--a-radius-m); }
.amstrad-blog-standin__title { font-weight: 600; line-height: 1.4; }
.amstrad-blog-standin__date { color: var(--a-muted); font-size: 13.5px; }
@media (max-width: 767px) { .amstrad-blog-standin { grid-template-columns: 1fr; } }

/* Questions and buying guide under category grids and on product pages (inc/seo.php) */
.am-faq { clear: both; width: 100%; padding: 48px 20px 56px; background: var(--a-blue-50); }
.am-faq__inner { max-width: 880px; margin: 0 auto; }
.am-faq h2 { margin: 0 0 10px; color: var(--a-blue, #0b1b4d); font-size: clamp(1.4rem, 2.4vw, 1.8rem); line-height: 1.25; }
.am-faq__intro { margin: 0 0 22px; color: var(--a-text, #2a3145); font-size: 16px; line-height: 1.65; }
.am-faq__item { margin: 0 0 10px; border: 1px solid var(--a-line, #dfe4ee); border-radius: 12px; background: #fff; overflow: hidden; }
.am-faq__item > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 14px 18px; cursor: pointer; list-style: none; }
.am-faq__item > summary::-webkit-details-marker { display: none; }
.am-faq__item > summary:hover { background: #f8faff; }
.am-faq__item > summary:focus-visible { outline: 3px solid var(--a-blue-300, #8fb0ff); outline-offset: -3px; }
.am-faq__item h3 { margin: 0; color: var(--a-blue, #0b1b4d); font-size: 16.5px; font-weight: 600; line-height: 1.4; }
.am-faq__icon { position: relative; flex: 0 0 22px; width: 22px; height: 22px; }
.am-faq__icon::before, .am-faq__icon::after { content: ""; position: absolute; left: 4px; right: 4px; top: 10px; height: 2px; border-radius: 2px; background: var(--a-blue, #0b1b4d); transition: transform .2s ease; }
.am-faq__icon::after { transform: rotate(90deg); }
.am-faq__item[open] .am-faq__icon::after { transform: rotate(0deg); }
.am-faq__body { padding: 0 18px 16px; }
.am-faq__body p { margin: 0; color: var(--a-text, #2a3145); font-size: 15.5px; line-height: 1.7; }
.am-faq__more { margin: 20px 0 0; font-weight: 600; }
.am-faq__more a { color: var(--a-blue, #0b1b4d); text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .am-faq__icon::before, .am-faq__icon::after { transition: none; } }

/* Buying guides: header image (inc/seo.php) */
.am-guide-hero { margin: 0 0 32px; }
.am-guide-hero img { display: block; width: 100%; height: auto; border-radius: var(--a-radius-l); box-shadow: var(--a-shadow-1); }

/* Blog list / archive cards: whole wide image, card-sized titles (the site-wide h2 size is for page sections) */
.entries .entry-card .ct-media-container img { aspect-ratio: 40 / 21 !important; object-fit: cover; }
.entries .entry-card .entry-title { font-size: clamp(1.1rem, 1rem + .35vw, 1.3rem) !important; line-height: 1.3 !important; letter-spacing: -.01em; font-weight: 600; }
