/*
Theme Name:   HAGUE FASTENERS
Theme URI:    https://www.haguefasteners.co.uk/
Description:  Child theme of Kadence for HAGUE FASTENERS LIMITED. Holds the 2026 brand look: navy, cream and gold, Oswald and DM Sans, dark photo heroes, ruled lists and cards. Keep all custom styling here, never in Kadence itself, so theme updates are safe.
Author:       HAGUE FASTENERS LIMITED
Template:     kadence
Version:      1.3.0
Text Domain:  hague-fasteners
*/

/* ---------------------------------------------------------------
   1. Brand tokens
   --------------------------------------------------------------- */
:root,
body {
	--hf-navy: #11161F;
	--hf-navy-2: #1B2433;
	--hf-navy-3: #0B0F16;
	--hf-cream: #F3F0E9;
	--hf-cream-2: #EAE5D9;
	--hf-card: #FBF9F4;
	--hf-rule: #CFC8B8;
	--hf-border: #DDD6C6;
	--hf-gold: #D6A84A;
	--hf-gold-dark: #8A6A1F;
	--hf-text: #1A2130;
	--hf-muted: #4A5260;
	--hf-on-dark: #F3F0E9;
	--hf-on-dark-muted: #C9CED8;
	--hf-font-head: 'Oswald', 'Oswald Fallback', 'Arial Narrow', sans-serif;
	--hf-font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

	/* Point Kadence's own font variables at the brand fonts. */
	--global-body-font-family: var(--hf-font-body);
	--global-heading-font-family: var(--hf-font-head);
	--global-primary-nav-font-family: var(--hf-font-head);
}

/* ---------------------------------------------------------------
   2. Base typography
   --------------------------------------------------------------- */
body {
	font-family: var(--hf-font-body);
	color: var(--hf-text);
	background: var(--hf-cream);
	font-size: 17px;
	line-height: 1.65;
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.wp-block-heading {
	font-family: var(--hf-font-head);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .005em;
	line-height: 1.08;
	color: var(--hf-navy);
}

h1, .entry-hero h1 { font-size: clamp(2.6rem, 5.2vw, 4.6rem); }
h2 { font-size: clamp(2rem, 3.4vw, 3rem); }
h3 { font-size: 1.3rem; letter-spacing: .02em; }
h4 { font-size: 1.1rem; letter-spacing: .03em; }

a { color: var(--hf-gold-dark); }
a:hover, a:focus { color: var(--hf-navy); }

/* Gold letter-spaced label above headings */
.hf-label,
p.hf-label {
	font-family: var(--hf-font-head);
	font-weight: 500;
	font-size: 13px !important;
	letter-spacing: .24em;
	text-transform: uppercase;
	color: var(--hf-gold-dark);
	margin: 0 0 14px !important;
	line-height: 1.4;
}
.hf-dark .hf-label,
.wp-block-cover .hf-label { color: var(--hf-gold); }

.hf-lead { font-size: 1.2rem; line-height: 1.55; }

/* ---------------------------------------------------------------
   3. Sections
   --------------------------------------------------------------- */
.hf-section { padding-top: clamp(64px, 8vw, 112px) !important; padding-bottom: clamp(64px, 8vw, 112px) !important; }
.hf-section-sm { padding-top: clamp(44px, 5vw, 64px) !important; padding-bottom: clamp(44px, 5vw, 64px) !important; }

.hf-cream { background-color: var(--hf-cream) !important; }
.hf-cream-2 { background-color: var(--hf-cream-2) !important; }
.hf-dark { background-color: var(--hf-navy) !important; color: var(--hf-on-dark); }
.hf-dark-2 { background-color: var(--hf-navy-2) !important; color: var(--hf-on-dark); }

.hf-dark h1, .hf-dark h2, .hf-dark h3, .hf-dark h4,
.hf-dark-2 h1, .hf-dark-2 h2, .hf-dark-2 h3, .hf-dark-2 h4,
.wp-block-cover h1, .wp-block-cover h2, .wp-block-cover h3 { color: var(--hf-on-dark); }
.hf-dark p, .hf-dark li, .hf-dark-2 p, .hf-dark-2 li { color: var(--hf-on-dark-muted); }
.hf-dark strong, .hf-dark-2 strong { color: var(--hf-on-dark); }
.hf-dark a:not(.wp-block-button__link), .hf-dark-2 a:not(.wp-block-button__link) { color: var(--hf-gold); }

.hf-muted, .hf-muted p { color: var(--hf-muted); }

/* Dark photo hero (core Cover block) */
.hf-hero.wp-block-cover { min-height: 620px; align-items: center; }
.hf-hero.wp-block-cover p { color: #D9DDE4; }
.hf-hero .wp-block-cover__inner-container { width: 100%; }
.hf-hero-sm.wp-block-cover { min-height: 420px; }
.hf-hero video, .hf-hero img.wp-block-cover__image-background { filter: brightness(.9); }

/* Photos darkened to suit */
.hf-photo img { filter: brightness(.85); width: 100%; object-fit: cover; }

/* ---------------------------------------------------------------
   4. Ruled lists, stats, steps, cards, tiles
   --------------------------------------------------------------- */
ul.hf-ruled, .hf-ruled ul {
	list-style: none;
	padding-left: 0;
	margin-left: 0;
	border-bottom: 1px solid var(--hf-rule);
}
ul.hf-ruled li, .hf-ruled ul li {
	border-top: 1px solid var(--hf-rule);
	padding: 14px 0;
	margin: 0;
}
.hf-dark ul.hf-ruled, .hf-dark ul.hf-ruled li,
.hf-dark-2 ul.hf-ruled, .hf-dark-2 ul.hf-ruled li { border-color: #2E3A4F; }
ul.hf-ruled li a { color: var(--hf-text); text-decoration: none; font-weight: 500; }
ul.hf-ruled li a:hover { color: var(--hf-gold-dark); }
ul.hf-ruled.hf-two-col { columns: 2; column-gap: 32px; border-bottom: 0; }
ul.hf-ruled.hf-two-col li { break-inside: avoid; }
@media (max-width: 600px) { ul.hf-ruled.hf-two-col { columns: 1; } }

.hf-stat { border-top: 1px solid var(--hf-gold); padding-top: 20px; }
.hf-stat .hf-stat-num { font-family: var(--hf-font-head); font-weight: 600; font-size: clamp(2.4rem, 4vw, 3.4rem); line-height: 1; color: var(--hf-on-dark); margin: 0 0 10px; text-transform: uppercase; }
.hf-stat p:not(.hf-stat-num) { font-size: 15px; margin: 0; }

.hf-step { border-top: 2px solid var(--hf-navy); padding-top: 18px; }
.hf-step .hf-step-num { font-family: var(--hf-font-head); font-weight: 600; font-size: 34px; line-height: 1; color: var(--hf-gold-dark); margin: 0 0 10px; }
.hf-step h3 { margin: 0 0 8px; font-size: 1.2rem; }
.hf-step p { font-size: 15px; color: var(--hf-muted); margin: 0; }

.hf-card {
	background: var(--hf-card);
	border: 1px solid var(--hf-border);
	padding: 26px !important;
	height: 100%;
	box-sizing: border-box;
}
.hf-card h3 { margin: 0 0 8px; font-size: 1.2rem; }
.hf-card p { margin: 0; font-size: 15px; color: var(--hf-muted); }

.hf-tiles { gap: 12px !important; }
.hf-tile {
	background: var(--hf-navy);
	padding: 22px !important;
	min-height: 118px;
	box-sizing: border-box;
	transition: background-color .15s ease;
}
.hf-tile:hover { background: var(--hf-navy-2); }
.hf-tile h3 { color: var(--hf-gold) !important; font-weight: 500; font-size: 1.25rem; margin: 0 0 6px; letter-spacing: .03em; }
.hf-tile h3 a { color: inherit !important; text-decoration: none; }
.hf-tile h3 a::after { content: ""; position: absolute; inset: 0; }
.hf-tile { position: relative; }
.hf-tile p { color: var(--hf-on-dark-muted); font-size: 14px; margin: 0; line-height: 1.45; }

.hf-quote { border-top: 2px solid var(--hf-gold); padding-top: 24px; }
.hf-quote p:first-child { font-family: var(--hf-font-head); font-weight: 500; font-size: 1.5rem; line-height: 1.3; color: var(--hf-navy); text-transform: none; }
.hf-quote p:last-child { font-size: 14px; color: var(--hf-muted); }

.hf-rule-top { border-top: 1px solid var(--hf-gold); padding-top: 28px; }

/* Contact details list */
.hf-details { border-bottom: 1px solid var(--hf-rule); }
.hf-details .hf-detail { border-top: 1px solid var(--hf-rule); padding: 16px 0 !important; gap: 16px !important; }
.hf-details .hf-detail > .wp-block-column:first-child p { font-family: var(--hf-font-head); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--hf-gold-dark); margin: 0; padding-top: 3px; }
.hf-details .hf-detail p { margin: 0; }
.hf-details .hf-detail a { color: var(--hf-navy); font-weight: 700; text-decoration: none; }

/* ---------------------------------------------------------------
   5. Buttons
   --------------------------------------------------------------- */
.wp-block-button__link,
.button,
button.button,
input[type="submit"],
.wpcf7-submit {
	font-family: var(--hf-font-head) !important;
	font-weight: 500 !important;
	text-transform: uppercase;
	letter-spacing: .12em;
	border-radius: 0 !important;
	padding: 15px 26px !important;
	min-height: 48px;
	background: var(--hf-gold) !important;
	color: var(--hf-navy) !important;
	border: 1px solid var(--hf-gold) !important;
	box-shadow: none !important;
	line-height: 1.2;
}
.wp-block-button__link:hover,
.button:hover,
input[type="submit"]:hover,
.wpcf7-submit:hover { background: #E4BC66 !important; border-color: #E4BC66 !important; color: var(--hf-navy) !important; }

.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent !important;
	color: var(--hf-on-dark) !important;
	border: 1px solid rgba(243,240,233,.55) !important;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover { border-color: var(--hf-gold) !important; color: var(--hf-gold) !important; }
.hf-cream .wp-block-button.is-style-outline .wp-block-button__link,
.hf-cream-2 .wp-block-button.is-style-outline .wp-block-button__link { color: var(--hf-navy) !important; border-color: var(--hf-navy) !important; }

/* ---------------------------------------------------------------
   6. Header (Kadence header builder)
   --------------------------------------------------------------- */
#masthead, .site-header { background: var(--hf-navy); }
.site-top-header-wrap .site-header-row-container-inner { background: var(--hf-navy-3) !important; }
.site-top-header-wrap, .site-top-header-wrap a { color: #C9CED8; font-size: 14px; }
.site-top-header-wrap a:hover { color: var(--hf-gold); }
.site-main-header-wrap .site-header-row-container-inner { background: var(--hf-navy) !important; border-bottom: 1px solid #252F40; }
.site-mobile-header-wrap .site-header-row-container-inner { background: var(--hf-navy) !important; }

.main-navigation .primary-menu-container > ul > li.menu-item > a,
.header-navigation .header-menu-container > ul > li.menu-item > a {
	font-family: var(--hf-font-head);
	font-weight: 500;
	font-size: 15px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--hf-on-dark);
}
.main-navigation .primary-menu-container > ul > li.menu-item > a:hover,
.main-navigation .primary-menu-container > ul > li.current-menu-item > a,
.main-navigation .primary-menu-container > ul > li.current-menu-ancestor > a,
.header-navigation .header-menu-container > ul > li.menu-item > a:hover { color: var(--hf-gold); }

.header-navigation .header-menu-container ul ul.sub-menu,
.header-navigation .header-menu-container ul ul.submenu {
	background: var(--hf-navy-2);
	box-shadow: 0 12px 28px rgba(0,0,0,.35);
	border-top: 2px solid var(--hf-gold);
}
.header-navigation .header-menu-container ul ul li.menu-item > a {
	color: var(--hf-on-dark);
	font-size: 14px;
	border-bottom: 1px solid #2E3A4F;
	font-family: var(--hf-font-body);
	text-transform: none;
	letter-spacing: 0;
}
.header-navigation .header-menu-container ul ul li.menu-item > a:hover { color: var(--hf-gold); background: var(--hf-navy); }

.header-button-wrap .header-button,
.mobile-header-button-wrap .mobile-header-button {
	font-family: var(--hf-font-head);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: .12em;
	background: var(--hf-gold) !important;
	color: var(--hf-navy) !important;
	border-radius: 0 !important;
	border: 0 !important;
}
.header-button-wrap .header-button:hover { background: #E4BC66 !important; }

.site-branding .custom-logo { max-height: 64px; width: auto; }

/* Top bar links (secondary menu): plain case, small */
.site-top-header-wrap .header-navigation .header-menu-container > ul > li.menu-item > a {
	font-family: var(--hf-font-body);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
	color: var(--hf-on-dark);
	padding-top: 6px;
	padding-bottom: 6px;
}
.site-top-header-wrap .header-navigation .header-menu-container > ul > li.menu-item > a:hover { color: var(--hf-gold); }
.site-top-header-wrap .header-html, .site-top-header-wrap .header-html p { color: #C9CED8; font-size: 14px; margin: 0; }

/* Mobile drawer */
#mobile-drawer .drawer-inner { background: var(--hf-navy); }
#mobile-drawer .mobile-navigation ul li a { color: var(--hf-on-dark); font-family: var(--hf-font-head); text-transform: uppercase; letter-spacing: .06em; }
#mobile-drawer .mobile-navigation ul li.menu-item-has-children .drawer-nav-drop-wrap,
#mobile-drawer .mobile-navigation ul li:not(.menu-item-has-children) a { border-bottom: 1px solid #2E3A4F; }
.menu-toggle-open, .menu-toggle-open .menu-toggle-icon { color: var(--hf-on-dark) !important; }

/* ---------------------------------------------------------------
   7. Footer
   --------------------------------------------------------------- */
#colophon, .site-footer { background: var(--hf-navy-3); color: #C9CED8; }
.site-footer .site-footer-row-container-inner { background: var(--hf-navy-3) !important; }
.site-footer a { color: #C9CED8; text-decoration: none; }
.site-footer a:hover { color: var(--hf-gold); }
.site-footer .widget-title, .site-footer h2, .site-footer h3, .site-footer .wp-block-heading {
	font-family: var(--hf-font-head);
	font-weight: 500;
	font-size: 13px !important;
	letter-spacing: .24em;
	text-transform: uppercase;
	color: var(--hf-gold) !important;
	margin-bottom: 14px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul li { margin: 0 0 10px; }
.site-footer .site-bottom-footer-wrap .site-footer-row-container-inner { border-top: 1px solid #252F40; font-size: 13px; color: #9AA3B2; }
.site-footer p { color: #C9CED8; }

/* ---------------------------------------------------------------
   8. Content defaults for existing pages
   --------------------------------------------------------------- */
.content-bg, .entry.single-entry, body.content-style-unboxed .site { background: transparent; }
.entry-content table { border-collapse: collapse; width: 100%; background: #fff; }
.entry-content table th, .entry-content table td { border: 1px solid var(--hf-border); padding: 10px 12px; }
.entry-content table th { background: var(--hf-navy); color: var(--hf-on-dark); font-family: var(--hf-font-head); font-weight: 500; letter-spacing: .04em; }
.entry-content .wp-block-table { overflow-x: auto; }

/* Old theme colour classes used in content: map to brand */
.has-green-color { color: var(--hf-gold-dark) !important; }

/* Old-page title area */
.entry-hero.page-hero-section .entry-header { min-height: 220px; }
.page-hero-section .hero-section-overlay { background: var(--hf-navy) !important; opacity: 1; }
.page-hero-section .entry-title { color: var(--hf-on-dark) !important; }
.page-hero-section .kadence-breadcrumbs, .page-hero-section .kadence-breadcrumbs a { color: #C9CED8; }

/* Forms */
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"],
.wpcf7 select, .wpcf7 textarea, .wpcf7 input[type="file"] {
	width: 100%;
	font-family: var(--hf-font-body);
	font-size: 16px;
	color: var(--hf-text);
	background: #fff;
	border: 1px solid #BDB5A3;
	border-radius: 0;
	padding: 13px 14px;
	min-height: 48px;
	box-sizing: border-box;
}
.wpcf7 textarea { min-height: 140px; }
.wpcf7 input:focus, .wpcf7 select:focus, .wpcf7 textarea:focus { outline: 2px solid var(--hf-gold); outline-offset: 1px; border-color: var(--hf-gold-dark); }
.wpcf7 label { font-size: 14px; font-weight: 700; color: var(--hf-text); display: block; }
.hf-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.hf-form-grid .hf-full { grid-column: 1 / -1; }
.hf-form-grid p { margin: 0; }
@media (max-width: 640px) { .hf-form-grid { grid-template-columns: 1fr; } }
.hf-form-box { background: var(--hf-card); border: 1px solid var(--hf-border); border-top: 3px solid var(--hf-gold); padding: clamp(24px, 4vw, 40px) !important; }

/* Accessibility: visible focus */
a:focus-visible, button:focus-visible, .wp-block-button__link:focus-visible { outline: 2px solid var(--hf-gold); outline-offset: 2px; }

/* ---------------------------------------------------------------
   9. Designed page building blocks (Home, Nuclear, Contact)
   --------------------------------------------------------------- */
.hf-wrap { padding-left: 32px !important; padding-right: 32px !important; box-sizing: border-box; }
@media (max-width: 600px) { .hf-wrap { padding-left: 18px !important; padding-right: 18px !important; } }
.entry-content > .alignfull { margin-top: 0; margin-bottom: 0; }
.entry-content > .wp-block-group.alignfull + .wp-block-group.alignfull,
.entry-content > .wp-block-cover + .wp-block-group,
.entry-content > .wp-block-group + .wp-block-cover { margin-top: 0 !important; }
.hf-hero .wp-block-cover__inner-container { max-width: none !important; padding: 0 !important; }
.hf-hero-text h1 { margin: 0 0 22px; }
.hf-hero-text .hf-lead { max-width: 640px; margin-bottom: 34px; }
.hf-hero .wp-block-buttons { gap: 14px; }
.hf-split { gap: clamp(32px, 5vw, 72px) !important; }
.hf-stats { gap: 32px !important; }
.hf-tiles, .hf-cards, .hf-steps, .hf-prods, .hf-badges { margin-top: 40px !important; }
.hf-cards { gap: 16px !important; }
.hf-steps { gap: 28px !important; }
.hf-quotes { gap: 40px !important; margin-top: 18px !important; }
.hf-photo img { height: 100%; max-height: 640px; }
.hf-photo-wide img { aspect-ratio: 16 / 10; height: auto; margin-top: 18px; }
.wp-block-cover.hf-cta h2 { font-size: clamp(2.4rem, 5vw, 4.4rem); }
.hf-big-link { font-size: 1.25rem; margin: 0; }
.hf-big-link a { color: var(--hf-on-dark) !important; text-decoration: none; }
.hf-big-link a:hover { color: var(--hf-gold) !important; }
.hf-cta .hf-label { margin-bottom: 6px !important; }

.hf-steps-list { border-bottom: 1px solid var(--hf-rule); }
.hf-step-row { border-top: 1px solid var(--hf-rule); padding: 22px 0; }
.hf-step-row > .wp-block-group__inner-container, .hf-step-row.is-layout-flow:not(:has(> .wp-block-group__inner-container)) { display: grid; grid-template-columns: 64px 1fr; column-gap: 20px; }
.hf-step-row h3, .hf-step-row p { grid-column: 2; }
.hf-step-row .hf-step-num { grid-column: 1; grid-row: 1 / span 2; }
.hf-step-row .hf-step-num { grid-row: 1 / span 2; font-family: var(--hf-font-head); font-weight: 600; font-size: 30px; line-height: 1; color: var(--hf-gold-dark); margin: 0; }
.hf-step-row h3 { margin: 0 0 6px; font-size: 1.2rem; }
.hf-step-row p:not(.hf-step-num) { margin: 0; color: var(--hf-muted); font-size: 16px; grid-column: 2; }

.hf-prods { column-gap: 40px !important; row-gap: 0 !important; }
.hf-prod { border-top: 1px solid var(--hf-rule); padding: 16px 0; }
.hf-prod h3 { font-family: var(--hf-font-body); text-transform: none; font-weight: 700; font-size: 1.05rem; letter-spacing: 0; margin: 0 0 4px; }
.hf-prod h3 a { color: var(--hf-navy); text-decoration: none; }
.hf-prod h3 a:hover { color: var(--hf-gold-dark); }
.hf-prod p { margin: 0; font-size: 15px; color: var(--hf-muted); }

.hf-badges { gap: 12px !important; margin-top: 8px !important; }
.hf-badge { border: 1px solid var(--hf-border); background: var(--hf-card); padding: 18px 20px; margin: 0 !important; font-family: var(--hf-font-head); font-weight: 500; font-size: 16px; letter-spacing: .04em; text-transform: uppercase; color: var(--hf-navy); text-align: center; }
.hf-social { margin-top: 28px !important; display: flex; flex-wrap: wrap; gap: 10px; }
.hf-social a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--hf-rule); color: var(--hf-navy); text-decoration: none; font-size: 14px; font-weight: 700; }
.hf-social a:hover { border-color: var(--hf-gold-dark); color: var(--hf-gold-dark); }
.hf-small { font-size: 14px; margin-top: 18px !important; }
.hf-form-title { font-size: 2rem !important; margin: 0 0 10px !important; }
.hf-form-box .wpcf7 { margin-top: 22px; }
.hf-form-box .wpcf7-acceptance label { font-weight: 400; display: flex; gap: 10px; align-items: flex-start; }
.hf-form-box .wpcf7-list-item { margin: 0; }
.hf-form-box .wpcf7-submit { width: 100%; }
.wpcf7-not-valid-tip { color: #b82105; font-size: 14px; }
.wpcf7 form .wpcf7-response-output { margin: 18px 0 0; border-radius: 0; }

/* Designed pages: no gap under the header */
.content-area { margin-top: 0; }
body.hf-designed .content-area, .hf-designed .site-main { margin-top: 0 !important; margin-bottom: 0 !important; }

/* ---------------------------------------------------------------
   10. Content width and grids (classic theme: set explicitly)
   --------------------------------------------------------------- */
.entry-content > .alignfull { width: auto !important; max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }
.hf-wrap > *:not(.alignfull) { max-width: 1240px; margin-left: auto !important; margin-right: auto !important; }
.hf-hero .hf-wrap > .hf-hero-text { max-width: 1240px; }
.hf-hero-text > * { max-width: 760px; margin-left: 0 !important; margin-right: 0 !important; }
.hf-hero-text > .hf-lead { max-width: 640px; }

.hf-hero .wp-block-cover__inner-container { width: 100% !important; margin: 0 !important; }
.entry-content .hf-grid-4, .entry-content .hf-tiles { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
.entry-content .hf-cards { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.entry-content .hf-steps { display: grid !important; grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
.entry-content .hf-prods { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.entry-content .hf-badges { display: grid !important; grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
.hf-tiles > *, .hf-cards > *, .hf-steps > *, .hf-prods > *, .hf-badges > * { margin: 0 !important; max-width: none; }
@media (max-width: 1100px) {
	.entry-content .hf-steps { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
	.entry-content .hf-badges { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 900px) {
	.entry-content .hf-grid-4, .entry-content .hf-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
	.entry-content .hf-cards, .entry-content .hf-prods { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 560px) {
	.entry-content .hf-cards, .entry-content .hf-prods { grid-template-columns: 1fr !important; }
	.entry-content .hf-grid-4, .entry-content .hf-tiles, .entry-content .hf-steps { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
	.hf-tile { padding: 16px !important; min-height: 0; }
	.hf-tile h3 { font-size: 1.05rem; }
	.entry-content .hf-badges { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
	.hf-hero.wp-block-cover { min-height: 520px !important; }
}

/* ---------------------------------------------------------------
   11. Fine tuning after first review
   --------------------------------------------------------------- */
.wp-block-cover p.hf-label, .hf-dark p.hf-label, .hf-dark-2 p.hf-label { color: var(--hf-gold) !important; }
.hf-label + h1, .hf-label + h2, .hf-label + .wp-block-heading { margin-top: 0 !important; }
.entry-content h2.wp-block-heading { margin-bottom: 22px; }
.site-footer .footer-navigation a, .site-footer .footer-navigation .menu > li > a { color: #C9CED8 !important; font-size: 13px; }
.site-footer .footer-navigation a:hover { color: var(--hf-gold) !important; }
.site-footer .footer-widget-area { align-self: flex-start; }
.site-footer .wp-block-image { margin-bottom: 18px; }
.main-navigation .primary-menu-container > ul > li.menu-item > a { color: var(--hf-on-dark) !important; }
.main-navigation .primary-menu-container > ul > li.menu-item > a:hover,
.main-navigation .primary-menu-container > ul > li.current-menu-item > a,
.main-navigation .primary-menu-container > ul > li.current-menu-ancestor > a,
.main-navigation .primary-menu-container > ul > li.current_page_parent > a { color: var(--hf-gold) !important; }
.hf-steps-list .hf-step-row, .hf-steps-list .wp-block-group { margin-top: 0 !important; margin-bottom: 0 !important; }
.hf-step-row .wp-block-group__inner-container > * { margin-top: 0; margin-bottom: 0; }
.hf-step-row h3 { margin-bottom: 6px !important; }
.hf-details .wp-block-columns { margin-bottom: 0 !important; }
.hf-details .wp-block-column > p { margin: 0 !important; }
.wpcf7 textarea { height: 160px; }
.entry-content .hf-cards:has(> .hf-card:nth-child(5):last-child) { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
@media (max-width: 1100px) { .entry-content .hf-cards:has(> .hf-card:nth-child(5):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
@media (max-width: 560px) { .entry-content .hf-cards:has(> .hf-card:nth-child(5):last-child) { grid-template-columns: 1fr !important; } }
@media (max-width: 781px) {
	.hf-stats { flex-wrap: wrap !important; gap: 28px 24px !important; }
	.hf-stats > .wp-block-column { flex-basis: calc(50% - 12px) !important; flex-grow: 0 !important; }
	.hf-stat .hf-stat-num { font-size: 2.2rem; }
}
@media (max-width: 781px) {
	.entry-content .wp-block-columns.hf-stats { flex-wrap: wrap !important; }
	.entry-content .wp-block-columns.hf-stats > .wp-block-column { flex-basis: calc(50% - 12px) !important; flex-grow: 0 !important; }
	.entry-content .wp-block-buttons.is-content-justification-right { justify-content: flex-start !important; }
}
/* Existing (not yet redesigned) pages: breathing room under the title band */
body:not(.hf-designed) .content-area { margin-top: 56px; margin-bottom: 72px; }
body:not(.hf-designed) .entry-content > *:first-child { margin-top: 0; }

/* ---------------------------------------------------------------
   12. Site-wide template for existing pages and posts
   --------------------------------------------------------------- */
.hf-page-hero {
	background-color: var(--hf-navy);
	background-size: cover;
	background-position: center;
	color: var(--hf-on-dark);
}
.hf-page-hero__inner { max-width: 1240px; margin: 0 auto; padding: 44px 32px 84px; box-sizing: border-box; }
.hf-page-hero .hf-label { color: var(--hf-gold) !important; margin-top: 52px !important; }
.hf-page-hero__title { color: var(--hf-on-dark) !important; font-size: clamp(2.4rem, 4.6vw, 4rem); margin: 0; max-width: 900px; }
.hf-page-hero__meta { color: #C9CED8; margin: 18px 0 0; font-size: 15px; }
.hf-crumbs { font-size: 14px; color: #9AA3B2; }
.hf-crumbs a { color: #C9CED8; text-decoration: none; }
.hf-crumbs a:hover { color: var(--hf-gold); }
.hf-crumbs span[aria-current] { color: var(--hf-on-dark); }
.hf-crumb-sep { margin: 0 6px; color: #6B7487; }
@media (max-width: 600px) { .hf-page-hero__inner { padding: 28px 18px 56px; } .hf-page-hero .hf-label { margin-top: 32px !important; } }

/* Existing page content: readable width, brand styling */
body.hf-templated .content-container { max-width: 1240px; }
body.hf-templated .entry-content-wrap { padding: 0; }
body.hf-templated .entry.single-entry { box-shadow: none; background: transparent; }
body.hf-templated .entry-content { max-width: 940px; margin-left: auto; margin-right: auto; }
body.hf-templated .entry-content h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-top: 1.6em; }
body.hf-templated .entry-content h3 { font-size: 1.3rem; margin-top: 1.4em; }
body.hf-templated .entry-content h2:first-child, body.hf-templated .entry-content h3:first-child { margin-top: 0; }
body.hf-templated .entry-content ul:not(.wp-block-gallery):not(.blocks-gallery-grid) { padding-left: 1.2em; }
body.hf-templated .entry-content li::marker { color: var(--hf-gold-dark); }
body.hf-templated .entry-content img { max-width: 100%; height: auto; }
body.hf-templated .entry-content .wp-block-image figcaption { color: var(--hf-muted); font-size: 14px; }
body.hf-templated .entry-content blockquote { border-left: 3px solid var(--hf-gold); padding-left: 20px; color: var(--hf-text); }
body.hf-templated .content-area { margin-top: 64px; margin-bottom: 80px; }
body.hf-templated .post-navigation, body.hf-templated .entry-related { display: none; }
body.hf-templated .wp-block-group.has-background, body.hf-templated .entry-content .has-background { border-radius: 0; }

/* Related links */
.hf-related { padding: clamp(56px, 7vw, 96px) 0; }
.hf-related__inner { max-width: 1240px; margin: 0 auto; padding: 0 32px; box-sizing: border-box; }
.hf-related h2 { margin: 0 0 32px; }
.hf-tiles--links { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.hf-tiles--links .hf-tile { min-height: 0; padding: 20px 22px !important; display: flex; align-items: center; }
.hf-tiles--links .hf-tile h3 { margin: 0; font-size: 1.1rem; line-height: 1.25; }
@media (max-width: 1000px) { .hf-tiles--links { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .hf-tiles--links { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hf-related__inner { padding: 0 18px; } }

/* Closing enquiry band */
.hf-cta-band { background-color: var(--hf-navy); background-size: cover; background-position: center; color: var(--hf-on-dark); }
.hf-cta-band__inner { max-width: 1240px; margin: 0 auto; padding: clamp(72px, 9vw, 120px) 32px clamp(56px, 7vw, 88px); box-sizing: border-box; }
.hf-cta-band .hf-label { color: var(--hf-gold) !important; margin-bottom: 8px !important; }
.hf-cta-band h2 { color: var(--hf-on-dark); font-size: clamp(2.2rem, 4.6vw, 4rem); margin: 0 0 36px; }
.hf-cta-band__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; align-items: end; border-top: 1px solid var(--hf-gold); padding-top: 28px; }
.hf-cta-band .hf-big-link { margin: 0; }
.hf-btn { display: inline-flex; align-items: center; min-height: 48px; padding: 15px 26px; box-sizing: border-box; background: var(--hf-gold); color: var(--hf-navy) !important; font-family: var(--hf-font-head); font-weight: 500; text-transform: uppercase; letter-spacing: .12em; text-decoration: none; }
.hf-btn:hover { background: #E4BC66; }
@media (max-width: 760px) { .hf-cta-band__row { grid-template-columns: 1fr; } .hf-cta-band__inner { padding-left: 18px; padding-right: 18px; } }

/* News and archive listings */
.archive-hero-section .hero-section-overlay, .post-archive-hero-section .hero-section-overlay { background: var(--hf-navy) !important; opacity: 1 !important; }
.archive-hero-section .entry-header, .post-archive-hero-section .entry-header { min-height: 280px; }
.archive-hero-section .archive-title, .post-archive-hero-section .archive-title, .archive-hero-section h1 { color: var(--hf-on-dark) !important; }
body.hf-templated-archive .content-area { margin-top: 64px; margin-bottom: 80px; }
.loop-entry.entry { box-shadow: none; border: 1px solid var(--hf-border); border-radius: 0; background: var(--hf-card); }
.loop-entry .entry-title a { color: var(--hf-navy); text-decoration: none; }
.loop-entry .entry-title a:hover { color: var(--hf-gold-dark); }
.loop-entry .more-link-wrap a, .loop-entry .post-more-link { color: var(--hf-gold-dark); font-family: var(--hf-font-head); text-transform: uppercase; letter-spacing: .1em; }
html, body { overflow-x: clip; }

/* Old content: headings that only hold a linked picture (for example the Products index) sit side by side */
body.hf-templated .entry-content :is(h2,h3,h4,p):has(> a > img):not(:has(> :not(a))) { display: inline-block; vertical-align: top; margin: 0 14px 14px 0; font-size: 0; line-height: 0; }
body.hf-templated .entry-content :is(h2,h3,h4) > a > img { width: auto; max-width: 160px; height: auto; border: 1px solid var(--hf-border); background: #fff; transition: border-color .2s; }
body.hf-templated .entry-content :is(h2,h3,h4) > a:hover > img { border-color: var(--hf-gold); }
body.hf-templated .entry-content img.alignnone, body.hf-templated .entry-content img.size-medium, body.hf-templated .entry-content img.size-thumbnail { height: auto; }

/* FAQ rows (details blocks) on standard pages */
body.hf-templated .entry-content details.wp-block-details { border-top: 1px solid var(--hf-border); padding: 0; margin: 0; }
body.hf-templated .entry-content details.wp-block-details:last-of-type { border-bottom: 1px solid var(--hf-border); margin-bottom: 28px; }
body.hf-templated .entry-content details.wp-block-details summary { padding: 16px 32px 16px 0; cursor: pointer; font-weight: 600; color: var(--hf-navy); list-style: none; position: relative; }
body.hf-templated .entry-content details.wp-block-details summary::-webkit-details-marker { display: none; }
body.hf-templated .entry-content details.wp-block-details summary::after { content: '+'; position: absolute; right: 4px; top: 12px; font-family: var(--hf-font-head); font-size: 1.4rem; color: var(--hf-gold-dark); }
body.hf-templated .entry-content details.wp-block-details[open] summary::after { content: '\2212'; }
body.hf-templated .entry-content details.wp-block-details > p { margin: 0 0 18px; color: var(--hf-muted); }

/* ===== 13. Designed inner pages: photo cards, prose, logos, FAQ ===== */
.hf-prose { max-width: 860px; }
.hf-narrow { max-width: 760px; }
.entry-content .hf-pcards { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 20px !important; margin-top: 40px !important; }
.entry-content .hf-pcards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
.entry-content .hf-pcards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.hf-pcards > * { margin: 0 !important; max-width: none; }
.hf-pcard { position: relative; background: var(--hf-navy); display: flex; flex-direction: column; overflow: hidden; }
.hf-pcard .hf-pcard-img { margin: 0 !important; aspect-ratio: 4 / 3; overflow: hidden; }
.hf-pcard .hf-pcard-img img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.82) contrast(1.05); transition: transform .5s ease, filter .3s; display: block; }
.hf-pcard:hover .hf-pcard-img img { transform: scale(1.04); filter: brightness(.95) contrast(1.05); }
.hf-pcard-body { padding: 20px 22px 24px !important; border-top: 2px solid var(--hf-gold); flex: 1; }
.hf-pcard-body h3 { margin: 0 0 6px !important; font-size: 1.25rem; color: var(--hf-gold) !important; letter-spacing: .03em; font-weight: 500; }
.hf-pcard-body h3 a { color: inherit !important; text-decoration: none; }
.hf-pcard-body h3 a::after { content: ""; position: absolute; inset: 0; }
.hf-pcard-body p { margin: 0; color: var(--hf-on-dark-muted); font-size: 14.5px; line-height: 1.5; }
.hf-dark .hf-pcard, .hf-dark-2 .hf-pcard { background: var(--hf-navy-2); }
@media (max-width: 1000px) { .entry-content .hf-pcards, .entry-content .hf-pcards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 560px) { .entry-content .hf-pcards, .entry-content .hf-pcards-4, .entry-content .hf-pcards-2 { grid-template-columns: 1fr !important; } }

.entry-content .hf-logo-badges { display: grid !important; grid-template-columns: repeat(5, minmax(0, 1fr)) !important; gap: 14px !important; margin-top: 36px !important; }
.hf-logo-badges > * { margin: 0 !important; max-width: none; }
.hf-logo-badge { background: #fff; border: 1px solid var(--hf-border); padding: 22px 18px 16px !important; text-align: center; display: flex; flex-direction: column; justify-content: space-between; }
.hf-logo-badge .hf-logo-img { margin: 0 auto 12px !important; height: 84px; display: flex; align-items: center; justify-content: center; }
.hf-logo-badge .hf-logo-img img { max-height: 84px; width: auto; max-width: 100%; object-fit: contain; filter: none !important; }
.hf-logo-badge p { margin: 0; font-size: 13.5px; line-height: 1.4; color: var(--hf-muted); }
@media (max-width: 1000px) { .entry-content .hf-logo-badges { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
@media (max-width: 560px) { .entry-content .hf-logo-badges { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }

.hf-table { margin-top: 28px !important; }
.hf-table table { font-size: 15px; }
.hf-table td:first-child { font-weight: 600; color: var(--hf-navy); }
.hf-dark .hf-table table, .hf-dark-2 .hf-table table { background: var(--hf-navy-2); }
.hf-dark .hf-table td, .hf-dark-2 .hf-table td { border-color: rgba(255,255,255,.12); color: var(--hf-on-dark); }
.hf-dark .hf-table td:first-child, .hf-dark-2 .hf-table td:first-child { color: var(--hf-gold); }
.hf-dark .hf-table th, .hf-dark-2 .hf-table th { background: var(--hf-gold); color: var(--hf-navy); }
.hf-two-lists h3 { margin-bottom: 12px; }

/* FAQ rows on designed pages too */
.entry-content details.wp-block-details { border-top: 1px solid var(--hf-border); padding: 0; margin: 0; }
.entry-content .hf-faq { margin-top: 28px; border-bottom: 1px solid var(--hf-border); }
.entry-content details.wp-block-details summary { padding: 16px 32px 16px 0; cursor: pointer; font-weight: 600; color: var(--hf-navy); list-style: none; position: relative; }
.entry-content details.wp-block-details summary::-webkit-details-marker { display: none; }
.entry-content details.wp-block-details summary::after { content: '+'; position: absolute; right: 4px; top: 12px; font-family: var(--hf-font-head); font-size: 1.4rem; color: var(--hf-gold-dark); }
.entry-content details.wp-block-details[open] summary::after { content: '\2212'; }
.entry-content details.wp-block-details > p { margin: 0 0 18px; color: var(--hf-muted); }
.hf-four-lists { gap: 28px !important; }
.hf-four-lists h3 { font-size: 1.1rem; margin-bottom: 10px; }
.hf-four-lists ul.hf-ruled li { font-size: 14.5px; padding: 7px 0; }
@media (max-width: 1000px) { .entry-content .hf-four-lists { flex-wrap: wrap !important; } .entry-content .hf-four-lists > .wp-block-column { flex-basis: calc(50% - 14px) !important; } }
@media (max-width: 600px) { .entry-content .hf-four-lists > .wp-block-column { flex-basis: 100% !important; } }

/* Designed pages built on a post (e.g. Coatings): hide blog furniture */
body.single-post.hf-designed .entry-related,
body.single-post.hf-designed .post-navigation,
body.single-post.hf-designed .comments-area,
body.single-post.hf-designed #comments,
body.single-post.hf-designed .entry-footer,
body.single-post.hf-designed .entry-tags,
body.single-post.hf-designed .entry-author { display: none !important; }

/* Banner focal points for photos with people: keep faces in view at every screen width */
.hf-hero img.wp-block-cover__image-background[src*="hf-team-50-years"] { object-position: 50% 12% !important; }
.hf-hero img.wp-block-cover__image-background[src*="hf-nuclear-engineer"] { object-position: 50% 8% !important; }
.hf-hero img.wp-block-cover__image-background[src*="hf-machinist"] { object-position: 50% 28% !important; }
.hf-hero img.wp-block-cover__image-background[src*="hf-building"] { object-position: 50% 40% !important; }

/* Cyber Essentials page: the scheme badge only exists at low resolution, so show it small. */
.hf-split .hf-photo img[src*="badges/cyber-essentials"] { width: 180px !important; max-width: 60%; height: auto !important; max-height: none; object-fit: contain; filter: none; margin: 0 auto; display: block; }
.hf-split .hf-photo:has(img[src*="badges/cyber-essentials"]) { text-align: center; }

/* Product-led banners (parts on the navy backdrop, and the waisted studs): lighter shading on the right so the part itself is clear. */
.hf-hero:has(img.wp-block-cover__image-background[src*="waistedstuds"]) .wp-block-cover__background,
.hf-hero:has(img.wp-block-cover__image-background[src*="machine-screw"]) .wp-block-cover__background,
.hf-hero:has(img.wp-block-cover__image-background[src*="allmetal-locknut"]) .wp-block-cover__background,
.hf-hero:has(img.wp-block-cover__image-background[src*="socket-shoulder-screw"]) .wp-block-cover__background,
.hf-hero:has(img.wp-block-cover__image-background[src*="dowel-pin"]) .wp-block-cover__background,
.hf-hero:has(img.wp-block-cover__image-background[src*="defence-nab-bolt"]) .wp-block-cover__background,
.hf-hero:has(img.wp-block-cover__image-background[src*="heavy-hex-nuts"]) .wp-block-cover__background,
.hf-hero:has(img.wp-block-cover__image-background[src*="tested-csk-screws"]) .wp-block-cover__background { background: linear-gradient(90deg, rgba(17,22,31,.97) 0%, rgba(17,22,31,.88) 38%, rgba(17,22,31,.25) 70%, rgba(17,22,31,.05) 100%) !important; }
.hf-hero img.wp-block-cover__image-background[src*="waistedstuds"] { object-position: 80% 50% !important; filter: brightness(1.05) contrast(1.05); }
.hf-hero img.wp-block-cover__image-background[src*="machine-screw"],
.hf-hero img.wp-block-cover__image-background[src*="allmetal-locknut"],
.hf-hero img.wp-block-cover__image-background[src*="socket-shoulder-screw"],
.hf-hero img.wp-block-cover__image-background[src*="dowel-pin"],
.hf-hero img.wp-block-cover__image-background[src*="defence-nab-bolt"],
.hf-hero img.wp-block-cover__image-background[src*="heavy-hex-nuts"],
.hf-hero img.wp-block-cover__image-background[src*="tested-csk-screws"] { object-position: 70% 50% !important; filter: none; }
@media (max-width: 781px) {
.hf-hero:has(img.wp-block-cover__image-background[src*="waistedstuds"]) .wp-block-cover__background,
.hf-hero:has(img.wp-block-cover__image-background[src*="machine-screw"]) .wp-block-cover__background,
.hf-hero:has(img.wp-block-cover__image-background[src*="allmetal-locknut"]) .wp-block-cover__background,
.hf-hero:has(img.wp-block-cover__image-background[src*="socket-shoulder-screw"]) .wp-block-cover__background,
.hf-hero:has(img.wp-block-cover__image-background[src*="dowel-pin"]) .wp-block-cover__background,
.hf-hero:has(img.wp-block-cover__image-background[src*="defence-nab-bolt"]) .wp-block-cover__background,
.hf-hero:has(img.wp-block-cover__image-background[src*="heavy-hex-nuts"]) .wp-block-cover__background,
.hf-hero:has(img.wp-block-cover__image-background[src*="tested-csk-screws"]) .wp-block-cover__background { background: rgba(17,22,31,.78) !important; }
}

/* Bolting guide downloads with first-page thumbnails. */
.hf-guides { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; margin-top: 8px; }
.hf-guide { display: flex; flex-direction: column; background: #fff; border: 1px solid #DDD7CA; text-decoration: none !important; color: #1A2130; transition: border-color .2s, box-shadow .2s, transform .2s; }
.hf-guide:hover, .hf-guide:focus-visible { border-color: #D6A84A; box-shadow: 0 8px 22px rgba(17,22,31,.12); transform: translateY(-2px); }
.hf-guide img { width: 100%; height: 220px; object-fit: cover; object-position: top center; border-bottom: 1px solid #DDD7CA; background: #F3F0E9; }
.hf-guide-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.hf-guide-body strong { font-family: Oswald, sans-serif; font-weight: 500; text-transform: uppercase; letter-spacing: .03em; font-size: 17px; line-height: 1.2; }
.hf-guide-body span { font-size: 14px; color: #4A5260; line-height: 1.45; }
.hf-guide-body em { margin-top: auto; padding-top: 6px; font-style: normal; font-family: Oswald, sans-serif; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #8A6A1F; }
@media (prefers-reduced-motion: reduce) { .hf-guide { transition: none; } }

/* History page: brochure covers through the years, small and tidy. */
.hf-brochures { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 16px; }
.hf-brochures .hf-guide img { height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center; border-bottom: 2px solid #D6A84A; }
.hf-brochures .hf-guide-body { padding: 10px 12px 14px; gap: 3px; }
.hf-brochures .hf-guide-body strong { font-size: 15px; }
.hf-brochures .hf-guide-body span { font-size: 13px; line-height: 1.4; }
.hf-brochures .hf-year { order: -1; margin: 0; padding: 0; font-family: Oswald, sans-serif; font-style: normal; font-size: 13px; letter-spacing: .16em; color: #8A6A1F; }
@media (max-width: 520px) { .hf-brochures { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
