/* ==========================================================================
   Headway Child – theme styles
   Brand: Solent Navy #0F2A3D · Sea Glass #3E8E87 / #2E716B / #8FD0C8
          Signal Orange #F08A4B (hover #F3A06C) · Sailcloth #F6F2EA · Deep Slate #2B3640
   ========================================================================== */

:root {
	--hw-navy: #0F2A3D;
	--hw-sea: #3E8E87;
	--hw-sea-text: #2E716B;
	--hw-sea-light: #8FD0C8;
	--hw-orange: #F08A4B;       /* 5.95:1 with navy text */
	--hw-orange-hover: #F3A06C; /* 7.09:1 with navy text */
	--hw-sail: #F6F2EA;
	--hw-slate: #2B3640;
	--hw-grey: #5B6670;
	--hw-line: #E6E0D4;
	--hw-serif: "Fraunces", Georgia, "Times New Roman", serif;
	--hw-sans: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	--hw-max: 1200px;
}

body {
	margin: 0;
	font-family: var(--hw-sans);
	font-size: 17px;
	line-height: 1.6;
	color: var(--hw-slate);
	background: #FFFFFF;
	-webkit-font-smoothing: antialiased;
}

/* Full width for Elementor-built pages, even if a page is left on the "Default" layout.
   Hello Elementor otherwise wraps page content in a narrower box. */
body.elementor-page .site-main,
body.elementor-page .page-content,
body.page-template-default.elementor-page main#content {
	max-width: none;
	width: 100%;
	margin-left: 0;
	margin-right: 0;
	padding-left: 0;
	padding-right: 0;
}
body.elementor-page .page-header { display: none; }

/* Full-width page wrapper used for every page (layouts/page.php). */
.hw-page { display: block; width: 100%; max-width: none; margin: 0; padding: 0; }
.hw-page--elementor > .elementor { width: 100%; max-width: none; }
.hw-page--text .hw-article__content { padding-bottom: 72px; }

/* Tidy spacing inside Elementor text widgets so container gaps do the spacing. */
.elementor-widget-text-editor p:last-child,
.elementor-widget-text-editor p:only-child { margin-bottom: 0; }
.elementor-widget-text-editor p { margin-top: 0; }
.elementor-heading-title a { color: inherit; }
.elementor-widget-image img { width: 100%; }

/* Skip link */
.hw-skip-link {
	position: absolute; left: -9999px; top: 8px; z-index: 1000;
	background: var(--hw-navy); color: #FFFFFF; padding: 10px 16px; border-radius: 6px;
}
.hw-skip-link:focus { left: 8px; }

/* Buttons */
.hw-btn {
	display: inline-block;
	background: var(--hw-orange);
	color: var(--hw-navy);
	font: 600 15px/1 var(--hw-sans);
	padding: 14px 22px;
	border-radius: 6px;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .15s ease;
}
.hw-btn:hover, .hw-btn:focus { background: var(--hw-orange-hover); color: var(--hw-navy); }
.hw-btn--large { font-size: 17px; padding: 17px 30px; }

/* Layout helpers */
.hw-wrap { max-width: var(--hw-max); margin: 0 auto; padding: 0 32px; box-sizing: border-box; }
.hw-wrap--narrow { max-width: 824px; }
.hw-eyebrow {
	margin: 0 0 8px;
	font: 600 13px/1.4 var(--hw-sans);
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--hw-sea-text);
}
.hw-section-title { font: 600 32px/1.2 var(--hw-serif); color: var(--hw-navy); margin: 0 0 28px; }

/* ---------- Header ---------- */
.hw-header {
	position: sticky; top: 0; z-index: 100;
	background: #FFFFFF;
	border-bottom: 1px solid var(--hw-line);
}
.admin-bar .hw-header { top: 32px; }
.hw-header__inner {
	position: relative;
	max-width: var(--hw-max); margin: 0 auto;
	padding: 16px 32px; box-sizing: border-box;
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.hw-logo { display: inline-flex; line-height: 0; }
.hw-logo svg { height: 34px; width: auto; display: block; }
.hw-nav { display: flex; align-items: center; gap: 28px; }
.hw-nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.hw-nav__list a {
	color: var(--hw-navy); text-decoration: none;
	font: 500 15px/1.4 var(--hw-sans);
	padding: 6px 0; border-bottom: 2px solid transparent;
}
.hw-nav__list a:hover,
.hw-nav__list .current-menu-item > a { border-bottom-color: var(--hw-sea); }
.hw-menu-toggle {
	display: none;
	width: 44px; height: 44px; align-items: center; justify-content: center;
	background: transparent; border: 1px solid var(--hw-line); border-radius: 6px;
	color: var(--hw-navy); cursor: pointer; padding: 0;
}

@media (max-width: 900px) {
	.hw-header__inner { padding: 12px 20px; }
	.hw-logo svg { height: 26px; }
	.hw-menu-toggle { display: inline-flex; }
	.hw-nav {
		display: none;
		position: absolute; top: 100%; left: 0; right: 0;
		flex-direction: column; align-items: flex-start; gap: 20px;
		background: #FFFFFF; border-bottom: 1px solid var(--hw-line);
		padding: 16px 20px 24px;
		box-shadow: 0 12px 24px rgba(15, 42, 61, .08);
	}
	.hw-nav.is-open { display: flex; }
	.hw-nav__list { flex-direction: column; gap: 14px; }
	.hw-nav__list a { font-size: 17px; }
}
@media (max-width: 782px) { .admin-bar .hw-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .hw-header { top: 0; } }

/* ---------- Footer ---------- */
.hw-footer { background: #0A1E2C; color: #A9BCC9; font-size: 14px; line-height: 1.6; }
.hw-footer p { margin: 0 0 8px; }
.hw-footer__inner {
	max-width: var(--hw-max); margin: 0 auto; padding: 48px 32px 32px; box-sizing: border-box;
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px;
}
.hw-footer__brand { flex: 1 1 320px; }
.hw-footer__areas { flex: 1 1 280px; }
.hw-footer__contact { flex: 1 1 220px; }
.hw-footer__logo { display: inline-flex; line-height: 0; margin-bottom: 14px; }
.hw-footer__logo svg { height: 28px; width: auto; }
.hw-footer__heading { color: #FFFFFF; font-weight: 600; }
.hw-footer__legal { max-width: var(--hw-max); margin: 0 auto; padding: 0 32px 32px; box-sizing: border-box; }
.hw-footer__legal p { border-top: 1px solid #1F3A4E; padding-top: 20px; font-size: 13px; }

/* ---------- Articles ---------- */
.hw-article__hero { background: var(--hw-sail); padding: 56px 0 48px; }
.hw-crumbs { margin: 0 0 24px; font-size: 14px; color: var(--hw-grey); }
.hw-crumbs a { color: var(--hw-grey); }
.hw-article__title {
	margin: 0; font: 600 48px/1.1 var(--hw-serif); letter-spacing: -.5px; color: var(--hw-navy);
}
.hw-archive__intro { margin-top: 16px; font-size: 19px; max-width: 720px; }
.hw-article__image { margin-top: 40px; }
.hw-article__image img { width: 100%; height: auto; border-radius: 10px; display: block; }
.hw-article__content { padding-top: 40px; padding-bottom: 24px; font-size: 18px; line-height: 1.7; }
.hw-article__content h2 { font: 600 30px/1.25 var(--hw-serif); color: var(--hw-navy); margin: 40px 0 14px; }
.hw-article__content h3 { font: 600 23px/1.3 var(--hw-serif); color: var(--hw-navy); margin: 32px 0 12px; }
.hw-article__content img { max-width: 100%; height: auto; border-radius: 8px; }
.hw-article__content a { color: var(--hw-sea-text); }
.hw-article__content blockquote {
	margin: 32px 0; padding: 24px 28px; background: var(--hw-sail); border-radius: 10px;
	font: 500 22px/1.45 var(--hw-serif); color: var(--hw-navy);
}
.hw-author {
	display: flex; gap: 20px; align-items: flex-start;
	margin: 24px 0 72px; padding: 28px; border-radius: 10px; background: var(--hw-sail);
}
.hw-author__mark { flex: 0 0 auto; line-height: 0; }
.hw-author__mark svg { width: 56px; height: auto; }
.hw-author p { margin: 0 0 8px; font-size: 16px; }
.hw-author__name { font-weight: 600; color: var(--hw-navy); }

/* CTA band */
.hw-band--navy { background: var(--hw-navy); color: #FFFFFF; padding: 72px 0; }
.hw-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.hw-band h2 { margin: 0 0 8px; font: 600 38px/1.15 var(--hw-serif); color: #FFFFFF; }
.hw-band p { margin: 0; color: #D6E2EA; font-size: 18px; }

.hw-related { padding: 72px 0 88px; background: #FFFFFF; }

/* ---------- Insights listing ---------- */
.hw-pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 40px; }
.hw-pill {
	display: inline-block; padding: 10px 18px; border-radius: 999px;
	border: 1px solid #A8A091; color: var(--hw-navy); background: transparent;
	font: 500 15px/1.2 var(--hw-sans); text-decoration: none;
}
.hw-pill:hover { border-color: var(--hw-navy); color: var(--hw-navy); }
.hw-pill.is-active { background: var(--hw-navy); border-color: var(--hw-navy); color: #FFFFFF; font-weight: 600; }

.hw-featured {
	display: flex; flex-wrap: wrap; margin: 0 0 64px;
	background: #FFFFFF; border-radius: 12px; overflow: hidden;
	text-decoration: none; color: var(--hw-slate);
}
.hw-featured__media { flex: 1 1 460px; min-height: 320px; background: var(--hw-navy); display: flex; }
.hw-featured__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hw-featured__media .hw-thumb-placeholder { background: var(--hw-navy); }
.hw-featured__body { flex: 1 1 420px; padding: 44px; display: flex; flex-direction: column; justify-content: center; gap: 12px; box-sizing: border-box; }
.hw-featured__body p { margin: 0; }
.hw-featured__title { margin: 0; font: 600 36px/1.15 var(--hw-serif); color: var(--hw-navy); }
.hw-more { font-weight: 600; color: var(--hw-sea-text); }
.hw-featured:hover .hw-featured__title { text-decoration: underline; text-underline-offset: 4px; }

.hw-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 40px 28px;
}
.hw-card__link { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--hw-slate); }
.hw-card__thumb { height: 200px; border-radius: 10px; overflow: hidden; background: #E3EFED; display: flex; }
.hw-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hw-card__title { margin: 0; font: 600 23px/1.25 var(--hw-serif); color: var(--hw-navy); }
.hw-card__excerpt { margin: 0; font-size: 16px; }
.hw-card__link:hover .hw-card__title { text-decoration: underline; text-underline-offset: 4px; }
.hw-card .hw-eyebrow { margin: 4px 0 0; }

.hw-thumb-placeholder { flex: 1; display: flex; align-items: center; justify-content: center; background: #E3EFED; }
.hw-thumb-placeholder svg { width: 72px; height: auto; }
.hw-featured__media .hw-thumb-placeholder svg { width: 160px; }
.hw-featured__media .hw-thumb-placeholder polyline:last-child { stroke: #FFFFFF; }

.hw-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 56px; }
.hw-pagination a, .hw-pagination span.page-numbers {
	min-width: 44px; height: 44px; padding: 0 14px; box-sizing: border-box;
	display: inline-flex; align-items: center; justify-content: center;
	border: 1px solid #C9C1B1; border-radius: 6px;
	color: var(--hw-navy); text-decoration: none; font-weight: 600;
}
.hw-pagination .is-active, .hw-pagination .current { background: var(--hw-navy); border-color: var(--hw-navy); color: #FFFFFF; }
.hw-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
	.hw-wrap { padding: 0 20px; }
	.hw-article__hero { padding: 40px 0 32px; }
	.hw-article__title { font-size: 34px; }
	.hw-section-title { font-size: 26px; }
	.hw-featured__body { padding: 28px; }
	.hw-featured__title { font-size: 28px; }
	.hw-featured__media { min-height: 220px; }
	.hw-grid { grid-template-columns: 1fr; }
	.hw-band h2 { font-size: 30px; }
	.hw-footer__inner { padding: 40px 20px 24px; }
	.hw-footer__legal { padding: 0 20px 24px; }
}

/* ==========================================================================
   Accessibility (version 1.1) – previously in Customize › Additional CSS
   Every text/background pair below passes WCAG AA (4.5:1) in normal and hover states.
   ========================================================================== */

/* Links inside Elementor text: same colour as the surrounding text in both states, marked by an underline */
.elementor-widget-text-editor a:not(.elementor-button),
.elementor-widget-text-editor a:not(.elementor-button):visited,
.elementor-widget-icon-list a,
.elementor-widget-heading a {
	color: inherit;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
.elementor-widget-text-editor a:not(.elementor-button):hover,
.elementor-widget-text-editor a:not(.elementor-button):focus,
.elementor-widget-icon-list a:hover,
.elementor-widget-icon-list a:focus,
.elementor-widget-heading a:hover,
.elementor-widget-heading a:focus {
	color: inherit;
	text-decoration: underline !important;
	text-decoration-thickness: 2px !important;
}

/* Selected Insights filter and current page number: stay white on navy */
body .hw-pill.is-active,
body .hw-pill.is-active:hover,
body .hw-pill.is-active:focus,
body .hw-pagination .is-active,
body .hw-pagination .is-active:hover,
body .hw-pagination .current {
	color: #FFFFFF;
}

/* Footer links: plain white; underlined with a soft highlight on hover or keyboard focus */
body .hw-footer a,
body .hw-footer a:visited {
	color: #FFFFFF;
	text-decoration: none;
	border-radius: 3px;
	transition: background-color .15s ease, box-shadow .15s ease;
}
body .hw-footer a:hover,
body .hw-footer a:focus-visible {
	color: #FFFFFF;
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
	background-color: rgba(143, 208, 200, 0.18);
	box-shadow: 0 0 0 4px rgba(143, 208, 200, 0.18);
}
body .hw-footer a.hw-footer__logo,
body .hw-footer a.hw-footer__logo:hover {
	text-decoration: none;
	background: none;
	box-shadow: none;
}

/* "Schedule time with me" (Calendly) styled as the orange call-to-action button.
   Any other link can use it too: add the CSS class hw-schedule to its widget (Advanced › CSS Classes). */
body a[onclick*="Calendly"],
body a[href*="calendly.com"],
body .hw-schedule a {
	display: inline-block;
	background-color: var(--hw-orange);
	color: #0F2A3D !important;
	font: 600 17px/1 var(--hw-sans);
	padding: 17px 30px;
	border-radius: 6px;
	text-decoration: none !important;
	transition: background-color .15s ease;
}
body a[onclick*="Calendly"]:hover,
body a[onclick*="Calendly"]:focus-visible,
body a[href*="calendly.com"]:hover,
body a[href*="calendly.com"]:focus-visible,
body .hw-schedule a:hover,
body .hw-schedule a:focus-visible {
	background-color: var(--hw-orange-hover);
	color: #0F2A3D !important;
	text-decoration: none !important;
}

/* Header button hover: keep navy text */
body .hw-btn:hover,
body .hw-btn:focus-visible { color: var(--hw-navy); background: var(--hw-orange-hover); }

/* Keyboard focus: a clear outline in the link's own colour, which already contrasts with its background */
a:focus-visible,
summary:focus-visible,
.elementor-tab-title:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: 3px solid currentColor;
	outline-offset: 3px;
}
/* Buttons: white and navy double ring, visible on white, sand and navy backgrounds */
.elementor-button:focus-visible,
.hw-btn:focus-visible,
.hw-menu-toggle:focus-visible,
body a[onclick*="Calendly"]:focus-visible,
body a[href*="calendly.com"]:focus-visible,
body .hw-schedule a:focus-visible {
	outline: 3px solid #FFFFFF;
	outline-offset: 0;
	box-shadow: 0 0 0 6px var(--hw-navy);
}

/* Respect visitors who ask for less motion */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
