/* ══════════════════════════════════════════════
   Aviva Syndicates — Shared stylesheet
   Common header, footer, hero and utility styles
   included by every page.
   ══════════════════════════════════════════════ */

/* ── Skip-to-content link (visually hidden until focused) ── */
.o-masthead-main-content {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.o-masthead-main-content:focus-within,
.o-masthead-main-content a:focus {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 9999;
	width: auto;
	height: auto;
	padding: 0.5rem 1rem;
	margin: 0;
	overflow: visible;
	clip: auto;
	white-space: normal;
	background: #ffd900;
	color: #000;
	text-decoration: none;
	font-weight: 700;
}

/* ── Fixed header ── */
header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 5000;
	border: none !important;
	box-shadow: none !important;
}
header::before,
header::after,
.site-header-bar::before,
.site-header-bar::after {
	display: none !important;
	content: none !important;
}

/* Offset main content so it is not hidden behind the fixed header */
.l-page-wrapper {
	padding-top: 70px;
}

/* ── Site header bar ── */
.site-header-bar,
.site-header-bar .l-content-container,
.site-header-bar .site-header-logo,
.site-header-bar nav {
	background-color: #444 !important;
}
.site-header-bar {
	width: 100%;
	overflow: visible;
	border: none !important;
	border-bottom: none !important;
	box-shadow: none !important;
	outline: none !important;
}
.site-header-bar .l-content-container {
	position: relative;
	display: flex !important;
	align-items: center !important;
	height: 70px;
	max-height: 70px;
	overflow: visible;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	border: none !important;
	box-shadow: none !important;
}
.site-header-logo {
	flex-shrink: 0;
	margin-right: 3rem;
}
.site-header-logo a {
	display: block;
	border: none !important;
	text-decoration: none !important;
	outline: none;
}
.site-header-logo img {
	display: block;
	height: 70px;
	width: auto;
	max-width: none;
	flex-shrink: 0;
}
.site-header-nav {
	display: flex;
	align-items: stretch;
	list-style: none;
	margin: 0;
	padding: 0;
}
/* All nav items — yellow text on dark grey header */
.site-header-nav li a {
	display: flex !important;
	align-items: center;
	padding: 0 2rem;
	height: 70px;
	color: #ffd900 !important;
	font-weight: 700 !important;
	font-size: 1rem !important;
	text-decoration: none !important;
	border-bottom: 3px solid transparent;
	border-top: none !important;
	border-left: none !important;
	border-right: none !important;
	box-sizing: border-box;
	white-space: nowrap;
	background-color: transparent !important;
}
/* Active nav item — yellow underline */
.site-header-nav li a[aria-current="page"] {
	font-weight: 700 !important;
	border-bottom-color: #ffd900 !important;
}
.site-header-nav li a:hover {
	background-color: rgba(255, 255, 255, 0.08) !important;
	color: #ffd900 !important;
	border-bottom-color: #ffd900 !important;
}

/* ── Underwriting dropdown ── */
.site-nav__item--dropdown {
	position: relative;
}
/* Remove bold from the Underwriting nav trigger */
.site-nav__item--dropdown > a {
	font-weight: 400 !important;
}
.site-header-dropdown {
	display: none;
	position: absolute;
	top: 70px;
	left: 0;
	background-color: #ffffff;
	list-style: none;
	margin: 0;
	padding: 0.5rem 0;
	min-width: 220px;
	z-index: 6000;
	box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.site-nav__item--dropdown:hover .site-header-dropdown,
.site-nav__item--dropdown:focus-within .site-header-dropdown {
	display: block;
}
.site-header-dropdown li a,
#site-nav .site-header-dropdown li a {
	display: block !important;
	height: auto !important;
	padding: 0.4rem 1.2rem !important;
	color: #1a1a1a !important;
	font-size: 1rem !important;
	font-weight: 400 !important;
	border: none !important;
	border-bottom: none !important;
	white-space: nowrap;
}
.site-header-dropdown li:last-child a {
	border-bottom: none !important;
}
.site-header-dropdown li a:hover,
#site-nav .site-header-dropdown li a:hover {
	background-color: #444 !important;
	color: #ffffff !important;
}
/* Arrow indicator — rotates on hover (desktop) or when the item is open (mobile) */
.dropdown-arrow {
	font-size: 0.65em;
	margin-left: 0.35em;
	display: inline-block;
	transition: transform 0.2s;
	pointer-events: none;
}
.site-nav__item--dropdown:hover .dropdown-arrow,
.site-nav__item--dropdown.is-open .dropdown-arrow {
	transform: rotate(180deg);
}

/* ── Lloyd's badge — header right ── */
.site-header-lloyds {
	margin-left: auto;
	display: flex;
	align-items: flex-end;
	overflow: visible;
}
.site-header-lloyds img {
	display: block;
	height: 110px;
	width: auto;
}

/* ── Lloyd's badge — hero banner ── */
.lloyds-badge--hero {
	display: block;
	height: 70px;
	width: auto;
	margin: 0.5rem 0;
}

/* Contain ION decorative pseudo-elements within each section */
.l-section {
	overflow: hidden;
}

/* ── Hero heading font sizes (all pages) ── */
.m-hero .a-heading-display--xl {
	font-size: 3.5rem !important;
}
.m-hero .m-hero__sub-heading {
	font-size: 1.5rem !important;
}

/* ── Primary button hover/focus — dark grey instead of ION default blue ── */
/* a-link colour matches ION CDN standard: #1034bf */
.a-link,
.a-link:link,
.a-link:visited {
	color: #1034bf !important;
	text-decoration-color: #1034bf !important;
}
.a-link:hover,
.a-link:focus {
	text-decoration-style: solid !important;
	text-decoration-thickness: .125em !important;
}
.a-button--primary:hover,
.a-button--primary:focus {
	background-color: #444 !important;
	border-color: #444 !important;
	color: #ffffff !important;
}
.a-button--primary:hover::before,
.a-button--primary:focus::before,
.a-button--primary:hover::after,
.a-button--primary:focus::after {
	background-color: #444 !important;
	background: #444 !important;
}

/* ── Footer ── */
/* Kill any ION pseudo-element decorations on or inside the footer */
.m-footer::before,
.m-footer::after,
.m-footer *::before,
.m-footer *::after {
	display: none !important;
	content: none !important;
	background: none !important;
}

.site-footer {
	background-color: #111111;
	padding: 3rem 0 2rem;
	width: 100%;
	box-sizing: border-box;
}
.footer-social {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	margin-bottom: 2rem;
}
.footer-social__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #b0b8c8;
	background: none !important;
	border: none !important;
	padding: 0 !important;
}
.footer-social__link:hover {
	color: #ffffff;
}
.footer-social__icon {
	display: block;
}
.footer-social__copyright {
	margin: 0.75rem 0 0;
	color: #b0b8c8;
	font-size: 1rem;
	text-align: center;
}
.footer-columns {
	display: flex;
	flex-direction: row;
	gap: 2rem;
	justify-content: center;
	padding-bottom: 2rem;
}
.footer-col {
	flex: 1;
	text-align: center;
	padding: 0 1rem;
}
.footer-col__heading {
	font-size: 1.25rem;
	font-family: inherit !important;
	font-weight: 300;
	color: #ffffff !important;
	margin: 0 0 0.75rem;
	letter-spacing: 0.02em;
}
.footer-col__divider {
	border: none;
	border-top: 1px solid #555;
	margin: 0 auto 1.25rem;
	width: 80%;
}
.footer-col ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.footer-col ul li {
	margin-bottom: 0.6rem;
	color: #b0b8c8;
	font-size: 0.95rem;
	font-weight: 400;
}
.footer-col ul li a {
	color: #b0b8c8 !important;
	text-decoration: none !important;
	font-size: 0.95rem;
	font-weight: 400 !important;
	font-family: inherit !important;
	background: none !important;
	border: none !important;
	padding: 0 !important;
	display: inline !important;
}
.footer-col ul li a:hover {
	color: #ffffff !important;
	text-decoration: underline !important;
}
.footer-legal {
	border-top: 1px solid #333;
	padding-top: 1.25rem;
	text-align: center;
}
.footer-legal ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.25rem 1.5rem;
}
.footer-legal ul li a {
	color: #888 !important;
	text-decoration: none !important;
	font-size: 0.85rem;
	background: none !important;
	border: none !important;
	padding: 0 !important;
	display: inline !important;
}
.footer-legal ul li a:hover {
	color: #fff !important;
	text-decoration: underline !important;
}

/* ══════════════════════════════════════════════
   Responsive — ION standard breakpoints
   Tablet: max-width 900px · Mobile: max-width 600px
   ══════════════════════════════════════════════ */

/* ── Mobile nav toggle button (hidden on desktop) ── */
.site-header-toggle {
	display: none;
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	background: none;
	border: none;
	width: 44px;
	height: 44px;
	padding: 0;
	cursor: pointer;
	flex-shrink: 0;
}
.site-header-toggle span {
	display: block;
	width: 26px;
	height: 3px;
	margin: 5px auto;
	background: #ffd900;
	border-radius: 2px;
	transition: transform 0.2s, opacity 0.2s;
}
.site-header-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.site-header-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.site-header-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 900px) {
	.site-header-toggle {
		display: block;
	}
	.site-header-bar .l-content-container {
		height: 64px;
		max-height: 64px;
	}
	.site-header-logo img {
		height: 44px;
		max-width: none;
		flex-shrink: 0;
	}
	.site-header-lloyds {
		align-items: center;
	}
	.site-header-lloyds img {
		height: 69px;
		max-width: none;
		flex-shrink: 0;
	}
	.l-page-wrapper {
		padding-top: 64px;
	}

	/* Collapse nav into a full-width dropdown panel under the header */
	#site-nav {
		position: fixed;
		top: 64px;
		left: 0;
		width: 100%;
		max-height: calc(100vh - 64px);
		overflow-y: auto;
		background: #444;
		display: none;
	}
	#site-nav.is-open {
		display: block;
	}
	.site-header-nav {
		flex-direction: column;
		align-items: stretch;
	}
	.site-header-nav li a {
		height: auto;
		padding: 0.9rem 1.5rem;
		border-bottom: 1px solid rgba(255,255,255,0.1) !important;
	}
	/* Dropdown becomes an inline accordion, not a floating panel */
	.site-header-dropdown {
		display: none;
		position: static;
		box-shadow: none;
		min-width: 0;
		padding: 0;
		background: #333;
	}
	.site-nav__item--dropdown.is-open .site-header-dropdown {
		display: block;
	}
	.site-header-dropdown li a,
	#site-nav .site-header-dropdown li a {
		padding: 0.75rem 2.5rem !important;
		color: #ffffff !important;
	}
	.site-header-dropdown li a:hover,
	#site-nav .site-header-dropdown li a:hover {
		background-color: #222 !important;
	}
}

/* ── Hero: reduce heading size and padding on smaller screens ── */
@media (max-width: 900px) {
	.m-hero .a-heading-display--xl {
		font-size: 2.5rem !important;
	}
	.m-hero .m-hero__sub-heading {
		font-size: 1.2rem !important;
	}
}
@media (max-width: 600px) {
	.m-hero .a-heading-display--xl {
		font-size: 1.9rem !important;
	}
}

/* ── Generic column stacking: any 2/3/4-column custom layout collapses to
   a single column on tablet/mobile, regardless of inline flex-basis.
   Selectors are scoped through .l-content-container to out-specificity
   the equal-specificity per-page <style> rules that load after this file. ── */
@media (max-width: 900px) {
	.l-columns {
		flex-wrap: wrap !important;
	}
	.l-content-container .l-columns--2-large,
	.l-content-container .l-columns--2-medium,
	.l-content-container .l-columns--3-products,
	.l-content-container .l-columns--4-medium {
		flex-direction: column !important;
	}
	.l-columns__column,
	.l-content-container .l-columns--2-large .l-columns__column,
	.l-content-container .l-columns--2-medium .l-columns__column,
	.l-content-container .l-columns--3-products .l-columns__column,
	.l-content-container .l-columns--4-medium .l-columns__column {
		flex: 1 1 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
	}
}

/* ── Custom sub-nav bars (Pacific / Canada) — allow horizontal scroll
   instead of overflowing or squashing on narrow screens ── */
@media (max-width: 900px) {
	.pacific-subnav,
	.canada-subnav {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
}

/* ── Footer: stack columns on tablet/mobile ── */
@media (max-width: 900px) {
	.footer-columns {
		flex-direction: column;
		gap: 1.5rem;
	}
	.footer-col {
		padding: 0 1rem;
	}
}
