/*
Theme Name: Home Handbook
Theme URI: https://homehandbooks.co.uk
Author: W Web Design
Author URI: https://wwebdesign.co.uk
Description: Lean custom theme for Home Handbook — code-registered ACF blocks, no page builder, no build step.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: homehandbooks
*/

/* ---------------------------------------------------------------------------
   Design tokens — lifted from the Elementor kit (post 8) so the rebuild keeps
   the exact brand palette. Do not "tidy" these values.
   --------------------------------------------------------------------------- */
:root {
	--hh-navy: #263778;
	--hh-navy-90: rgba(38, 55, 120, 0.9);
	--hh-navy-24: rgba(38, 55, 120, 0.24); /* #2637783D — single-company sidebar */
	--hh-yellow: #f8cc44;
	--hh-yellow-dark: #e5b72c;
	--hh-blue-link: #1863dc;

	--hh-ink: #1a202c;
	--hh-ink-strong: #2d3748;
	--hh-ink-medium: #4a5568;
	--hh-text: #7a7a7a;
	--hh-subtle: #718096;

	--hh-bg: #ffffff;
	--hh-bg-subtle: #edf2f7;
	--hh-bg-lighter: #f7fafc;
	--hh-border: #e2e8f0;

	--hh-font: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	--hh-font-heading: "Raleway", var(--hh-font);

	--hh-wrap: 1140px;
	--hh-gap: 24px;
	--hh-radius: 6px;
	--hh-header-h: 112px;
}

/* --- Reset-ish base ------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
	margin: 0;
	font-family: var(--hh-font);
	font-size: 16px;
	line-height: 1.7;
	color: var(--hh-text);
	background: var(--hh-bg);
	overflow-x: hidden;
}

img,
svg,
video { max-width: 100%; height: auto; display: block; }

a { color: var(--hh-blue-link); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--hh-font-heading);
	color: var(--hh-navy);
	line-height: 1.25;
	margin: 0 0 0.6em;
	font-weight: 700;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.0625rem; }

p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1.2em; padding-left: 1.25em; }
li { margin-bottom: 0.4em; }

/* --- Layout --------------------------------------------------------------- */
.hh-wrap {
	width: 100%;
	max-width: var(--hh-wrap);
	margin-inline: auto;
	padding-inline: 20px;
}

.hh-section { padding-block: 56px; }
.hh-section--tight { padding-block: 36px; }

.hh-section--navy {
	background: var(--hh-navy);
	color: #fff;
}
.hh-section--navy h1,
.hh-section--navy h2,
.hh-section--navy h3,
.hh-section--navy h4 { color: #fff; }
.hh-section--navy a { color: var(--hh-yellow); }

.hh-section--subtle { background: var(--hh-bg-subtle); }

.hh-heading--yellow { color: var(--hh-yellow) !important; }

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

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--hh-yellow);
	color: var(--hh-navy);
	padding: 10px 16px;
	z-index: 999;
}
.skip-link:focus { left: 0; }

/* --- Buttons -------------------------------------------------------------- */
.hh-btn {
	display: inline-block;
	font-family: var(--hh-font);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.3;
	padding: 12px 22px;
	border: 0;
	border-radius: 3px;
	cursor: pointer;
	text-align: center;
	transition: background-color 0.15s ease, color 0.15s ease;
}
.hh-btn:hover { text-decoration: none; }

.hh-btn--navy { background: var(--hh-navy); color: #fff; }
.hh-btn--navy:hover { background: #1d2b60; color: #fff; }

.hh-btn--yellow { background: var(--hh-yellow); color: var(--hh-navy); }
.hh-btn--yellow:hover { background: var(--hh-yellow-dark); color: var(--hh-navy); }

/* --- Page banner (replaces the Elementor "Banner Section" template) -------- */
.hh-banner {
	background: var(--hh-navy);
	background-size: cover;
	background-position: center;
	color: #fff;
	padding-block: 54px 34px;
}
.hh-banner__title {
	color: #fff;
	font-size: 2.25rem;
	margin: 0 0 6px;
}
.hh-breadcrumbs {
	font-size: 0.8125rem;
	color: rgba(255, 255, 255, 0.85);
}
.hh-breadcrumbs a { color: var(--hh-yellow); }
.hh-breadcrumbs .sep { padding: 0 4px; }

/* --- Rich text (block content, single-company body) ----------------------- */
.hh-rich > *:last-child { margin-bottom: 0; }
.hh-rich img { border-radius: var(--hh-radius); margin-block: 1em; }
.hh-rich strong { color: var(--hh-ink-strong); }
.hh-rich h2 { font-size: 1.5rem; }
.hh-rich h3 { font-size: 1.1875rem; }
.hh-rich ul { padding-left: 1.1em; }

/* --- Stars ---------------------------------------------------------------- */
.hh-stars { display: flex; gap: 3px; margin: 4px 0 10px; }
.hh-stars svg { width: 16px; height: 16px; color: var(--hh-blue-link); }
.hh-stars--yellow svg { color: var(--hh-yellow); }

/* --- Utility -------------------------------------------------------------- */
.hh-grid { display: grid; gap: var(--hh-gap); }
.hh-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hh-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 860px) {
	.hh-cols-2,
	.hh-cols-3 { grid-template-columns: 1fr; }
	h1, .hh-banner__title { font-size: 1.75rem; }
	h2 { font-size: 1.5rem; }
	.hh-section { padding-block: 40px; }
}
