/* =====================================================================
   DRPA SECURE - BLENDED SITE STYLESHEET (HEADER + FOOTER ONLY)
   Every rule is scoped to #drpa_header / #drpa_footer (or a drpa_ prefixed
   class), so nothing here affects page-body content.
   Colours, fonts and sizes are taken from drpasecure.co.uk's Elementor kit:
     purple     #4B1F72  top bar, Login/Register, Operating Hours card
     teal       #165979  footer, active menu item, dropdowns
     menu text  #1E060E
     bottom bar #282828
     link pink  #CC3366  Safecall link
   Font: Montserrat, loaded in Header.txt.
   Breakpoints follow Elementor's (tablet <= 1024px, mobile <= 767px),
   except the header burger, which starts at 1200px.
   ===================================================================== */

:root {
	--drpa_purple: #4B1F72;
	--drpa_teal: #165979;
	--drpa_text: #1E060E;
	--drpa_dark: #282828;
	--drpa_pink: #CC3366;
	--drpa_white: #ffffff;
	--drpa_font: 'Montserrat', sans-serif;
	--drpa_content_width: 1140px;
	--drpa_header_width: 1500px;
	--drpa_edge: 15px;
}

/* ---------- shared ---------- */
#drpa_header,
#drpa_footer {
	font-family: var(--drpa_font);
	font-size: 16px;
	line-height: 1.5;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
}

#drpa_header *,
#drpa_header *::before,
#drpa_header *::after,
#drpa_footer *,
#drpa_footer *::before,
#drpa_footer *::after {
	box-sizing: border-box;
}

#drpa_header .drpa_container,
#drpa_footer .drpa_container {
	width: 100%;
	max-width: var(--drpa_content_width);
	margin: 0 auto;
	padding-left: var(--drpa_edge);
	padding-right: var(--drpa_edge);
}

#drpa_header ul,
#drpa_footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

#drpa_header p,
#drpa_footer p,
#drpa_footer h2 {
	margin: 0;
}

#drpa_header a,
#drpa_footer a {
	text-decoration: none;
	transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

#drpa_header img,
#drpa_footer img {
	display: block;
	max-width: 100%;
	height: auto;
	border: 0;
}

#drpa_header button {
	font-family: inherit;
	cursor: pointer;
}

.drpa_skip_link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100001;
	padding: 10px 16px;
	background: var(--drpa_white);
	color: var(--drpa_purple);
	font-family: var(--drpa_font);
	font-weight: 600;
}

.drpa_skip_link:focus {
	left: 16px;
	top: 16px;
}

/* =====================================================================
   HEADER (not sticky: scrolls with the page, as on the live site)
   ===================================================================== */
#drpa_header {
	position: relative;
	z-index: 1000;
	background: var(--drpa_white);
}

/* the live header row is wider than the 1140px body/footer content */
#drpa_header .drpa_container {
	max-width: var(--drpa_header_width);
}

/* ---------- top bar ---------- */
#drpa_header .drpa_topbar {
	background: var(--drpa_purple);
	color: var(--drpa_white);
}

#drpa_header .drpa_topbar_row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-height: 77px;
}

#drpa_header .drpa_values {
	color: var(--drpa_white);
	font-size: 16px;
	font-weight: 400;
}

#drpa_header .drpa_topbar_contact {
	display: flex;
	align-items: center;
	gap: 10px 30px;
}

#drpa_header .drpa_topbar_contact li,
#drpa_header .drpa_topbar_contact a {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--drpa_white);
	font-size: 16px;
}

#drpa_header .drpa_topbar_contact a:hover,
#drpa_header .drpa_topbar_contact a:focus-visible {
	text-decoration: underline;
}

#drpa_header .drpa_topbar_contact svg {
	flex-shrink: 0;
	width: 28px;
	height: 28px;
}

/* ---------- main bar ---------- */
#drpa_header .drpa_mainbar_row {
	display: flex;
	align-items: center;
	gap: 20px;
	min-height: 106px;
}

/* widths go on the wrappers: a max-width:100% image in a content-sized
   flex item collapses to nothing */
#drpa_header .drpa_logo {
	flex: 0 0 225px;
	width: 225px;
}

#drpa_header .drpa_logo a {
	display: block;
	line-height: 0;
}

#drpa_header .drpa_logo img,
#drpa_header .drpa_phone img {
	width: 100%;
}

#drpa_header .drpa_desktop_nav {
	display: flex;
	flex: 1 1 auto;
	min-width: 0;
	justify-content: flex-end;
}

#drpa_header .drpa_phone {
	display: block;
	flex: 0 0 220px;
	width: 220px;
	line-height: 0;
}

/* ---------- desktop menu ---------- */
#drpa_header .drpa_menu {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
}

#drpa_header .drpa_menu > li {
	position: relative;
}

#drpa_header .drpa_menu_link {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 13px 15px;
	color: var(--drpa_text);
	font-size: 16px;
	font-weight: 600;
	line-height: 20px;
	text-transform: uppercase;
	white-space: nowrap;
	background: transparent;
}

/* Elementor's "underline" pointer: 3px teal bar under the item */
#drpa_header .drpa_menu_link::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 3px;
	background: var(--drpa_teal);
	opacity: 0;
	transition: opacity 0.2s ease;
}

#drpa_header .drpa_menu > li:hover > .drpa_menu_link,
#drpa_header .drpa_menu > li:focus-within > .drpa_menu_link,
#drpa_header .drpa_menu > li.drpa_current > .drpa_menu_link {
	color: var(--drpa_teal);
}

#drpa_header .drpa_menu > li:hover > .drpa_menu_link::after,
#drpa_header .drpa_menu > li:focus-within > .drpa_menu_link::after,
#drpa_header .drpa_menu > li.drpa_current > .drpa_menu_link::after {
	opacity: 1;
}

#drpa_header .drpa_caret {
	width: 0.6em;
	height: 1em;
}

/* ---------- desktop dropdowns ---------- */
#drpa_header .drpa_sub_menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	background: var(--drpa_teal);
	box-shadow: 0 2px 13px 0 rgba(0, 0, 0, 0.1);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease, visibility 0s linear 0.2s;
	z-index: 1001;
}

#drpa_header .drpa_menu > li:hover > .drpa_sub_menu,
#drpa_header .drpa_menu > li:focus-within > .drpa_sub_menu,
#drpa_header .drpa_sub_item:hover > .drpa_sub_menu_nested,
#drpa_header .drpa_sub_item:focus-within > .drpa_sub_menu_nested {
	opacity: 1;
	visibility: visible;
	transition: opacity 0.2s ease, visibility 0s;
}

#drpa_header .drpa_sub_item {
	position: relative;
}

#drpa_header .drpa_sub_link {
	display: block;
	padding: 13px 20px;
	color: var(--drpa_white);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	text-transform: uppercase;
	white-space: nowrap;
	background: var(--drpa_teal);
}

#drpa_header .drpa_sub_link:hover,
#drpa_header .drpa_sub_link:focus-visible,
#drpa_header .drpa_sub_item.drpa_current > .drpa_sub_link {
	color: var(--drpa_white);
	background: var(--drpa_purple);
}

#drpa_header .drpa_sub_menu_nested {
	top: 0;
	left: 100%;
}

/* ---------- account buttons ---------- */
/* Firefish renders only Login/Register, or My Account + Logout. */
#drpa_header .drpa_account {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}

#drpa_header .drpa_account_button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 161px;
	min-height: 46px;
	padding: 10px 20px;
	color: var(--drpa_white);
	background: var(--drpa_purple);
	border-radius: 7px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
}

#drpa_header .drpa_account_button:hover,
#drpa_header .drpa_account_button:focus-visible {
	color: var(--drpa_white);
	background: var(--drpa_teal);
}

/* ---------- burger ---------- */
#drpa_header .drpa_menu_toggle {
	display: none;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: auto;
	margin: 0;
	float: none;
	padding: 8px;
	color: var(--drpa_text);
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	line-height: 1;
}

#drpa_header .drpa_menu_toggle svg {
	width: 22px;
	height: 22px;
}

#drpa_header .drpa_icon_close,
#drpa_header.drpa_nav_open .drpa_icon_open {
	display: none;
}

#drpa_header.drpa_nav_open .drpa_icon_close {
	display: block;
}

/* ---------- mobile panel (teal, under the header) ---------- */
#drpa_header .drpa_mobile_nav {
	display: none;
	background: var(--drpa_teal);
}

#drpa_header .drpa_mobile_link {
	display: block;
	flex: 1 1 auto;
	min-width: 0;
	padding: 14px 20px;
	color: var(--drpa_white);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	text-transform: uppercase;
}

#drpa_header .drpa_mobile_item {
	border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

#drpa_header .drpa_mobile_item:last-child {
	border-bottom: 0;
}

#drpa_header .drpa_mobile_link:hover,
#drpa_header .drpa_mobile_link:focus-visible,
#drpa_header .drpa_mobile_item.drpa_current > .drpa_mobile_link,
#drpa_header .drpa_mobile_item.drpa_current > .drpa_mobile_row {
	color: var(--drpa_white);
	background: var(--drpa_purple);
}

#drpa_header .drpa_mobile_row {
	display: flex;
	align-items: stretch;
}

#drpa_header .drpa_sub_toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 56px;
	width: 56px;
	margin: 0;
	float: none;
	padding: 0;
	color: var(--drpa_white);
	background: transparent;
	border: 0;
	border-left: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 0;
	box-shadow: none;
}

#drpa_header .drpa_sub_toggle svg {
	width: 12px;
	height: 20px;
	transition: transform 0.2s ease;
}

#drpa_header .drpa_sub_open > .drpa_mobile_row > .drpa_sub_toggle svg {
	transform: rotate(180deg);
}

#drpa_header .drpa_mobile_sub_menu {
	display: none;
	background: rgba(0, 0, 0, 0.12);
}

#drpa_header .drpa_sub_open > .drpa_mobile_sub_menu {
	display: block;
}

#drpa_header .drpa_mobile_sub_menu .drpa_mobile_link {
	padding-left: 36px;
	font-size: 13px;
}

/* ---------- narrow desktop: tighten so the row doesn't overflow ---------- */
@media (max-width: 1280px) and (min-width: 1201px) {
	#drpa_header .drpa_mainbar_row {
		gap: 12px;
	}

	#drpa_header .drpa_logo {
		flex-basis: 180px;
		width: 180px;
	}

	#drpa_header .drpa_phone {
		flex-basis: 170px;
		width: 170px;
	}

	#drpa_header .drpa_menu_link {
		padding-left: 9px;
		padding-right: 9px;
		font-size: 14px;
	}

	#drpa_header .drpa_account_button {
		min-width: 0;
		padding-left: 14px;
		padding-right: 14px;
		font-size: 14px;
	}
}

/* ---------- tablet: burger, menu moves to the teal panel ----------
   Header switches at 1200px, not Elementor's 1024px: logo, menu, phone
   and button don't fit on one row below that. */
@media (max-width: 1200px) {
	#drpa_header .drpa_desktop_nav {
		display: none;
	}

	/* email and location stack on the right, as on the live tablet view */
	#drpa_header .drpa_topbar_row {
		min-height: 0;
		padding-top: 12px;
		padding-bottom: 12px;
	}

	#drpa_header .drpa_topbar_contact {
		flex-direction: column;
		align-items: flex-start;
		flex-shrink: 0;
		gap: 6px;
	}

	#drpa_header .drpa_topbar_contact li,
	#drpa_header .drpa_topbar_contact a {
		white-space: nowrap;
	}

	#drpa_header .drpa_menu_toggle {
		display: inline-flex;
	}

	#drpa_header .drpa_mainbar_row {
		min-height: 0;
		padding-top: 10px;
		padding-bottom: 10px;
	}

	#drpa_header .drpa_logo {
		flex-basis: 180px;
		width: 180px;
	}

	/* burger sits just right of the logo; phone + account go to the right */
	#drpa_header .drpa_phone {
		flex-basis: 180px;
		width: 180px;
		margin-left: auto;
	}

	#drpa_header .drpa_account_button {
		min-width: 0;
		min-height: 40px;
		font-size: 14px;
	}

	#drpa_header.drpa_nav_open .drpa_mobile_nav {
		display: block;
	}
}

/* ---------- mobile: everything stacked and centred ---------- */
@media (max-width: 767px) {
	#drpa_header .drpa_topbar_row {
		flex-direction: column;
		align-items: center;
		gap: 12px;
		min-height: 0;
		padding-top: 15px;
		padding-bottom: 15px;
	}

	#drpa_header .drpa_values {
		text-align: center;
	}

	#drpa_header .drpa_topbar_contact {
		flex-direction: column;
		align-items: flex-start;
	}

	#drpa_header .drpa_mainbar_row {
		flex-direction: column;
		gap: 12px;
		padding-top: 15px;
		padding-bottom: 15px;
	}

	/* column direction: flex-basis would set height, so reset it */
	#drpa_header .drpa_logo {
		flex: 0 0 auto;
		width: 250px;
		max-width: 100%;
	}

	#drpa_header .drpa_phone {
		flex: 0 0 auto;
		width: 160px;
		margin-left: 0;
	}

	#drpa_header .drpa_account {
		align-self: stretch;
		flex-direction: column;
		gap: 8px;
	}

	#drpa_header .drpa_account_button {
		width: 100%;
	}
}

@media (min-width: 1201px) {
	#drpa_header .drpa_mobile_nav {
		display: none;
	}
}

/* =====================================================================
   FOOTER
   ===================================================================== */
#drpa_footer {
	color: var(--drpa_white);
}

#drpa_footer .drpa_footer_main {
	background: var(--drpa_teal);
	padding: 50px 0;
}

#drpa_footer .drpa_footer_stack {
	display: flex;
	flex-direction: column;
	gap: 40px;
}

#drpa_footer .drpa_footer_brand img {
	width: 186px;
	margin: 0 auto;
}

#drpa_footer .drpa_footer_heading {
	color: var(--drpa_white);
	font-family: var(--drpa_font);
	font-size: 25px;
	font-weight: 600;
	line-height: 1.3;
	margin: 0 0 15px;
	text-transform: none;
}

/* ---------- columns ---------- */
#drpa_footer .drpa_footer_cols {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	align-items: start;
}

/* tick lists: 13px items with a 20px check-circle (Font Awesome
   far-check-circle, as on the live site) drawn in the text colour */
#drpa_footer .drpa_tick_list li,
#drpa_footer .drpa_tick_list a {
	display: flex;
	align-items: center;
	gap: 8px;
	color: inherit;
	font-size: 13px;
	line-height: 19.5px;
}

#drpa_footer .drpa_tick_list li {
	padding: 4px 0;
}

#drpa_footer .drpa_tick_list a:hover,
#drpa_footer .drpa_tick_list a:focus-visible {
	text-decoration: underline;
}

#drpa_footer .drpa_tick {
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm0 48c110.532 0 200 89.451 200 200 0 110.532-89.451 200-200 200-110.532 0-200-89.451-200-200 0-110.532 89.451-200 200-200m140.204 130.267l-22.536-22.718c-4.667-4.705-12.265-4.736-16.97-.068L215.346 303.697l-59.792-60.277c-4.667-4.705-12.265-4.736-16.97-.069l-22.719 22.536c-4.705 4.667-4.736 12.265-.068 16.971l90.781 91.516c4.667 4.705 12.265 4.736 16.97.068l172.589-171.204c4.704-4.668 4.734-12.266.067-16.971z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm0 48c110.532 0 200 89.451 200 200 0 110.532-89.451 200-200 200-110.532 0-200-89.451-200-200 0-110.532 89.451-200 200-200m140.204 130.267l-22.536-22.718c-4.667-4.705-12.265-4.736-16.97-.068L215.346 303.697l-59.792-60.277c-4.667-4.705-12.265-4.736-16.97-.069l-22.719 22.536c-4.705 4.667-4.736 12.265-.068 16.971l90.781 91.516c4.667 4.705 12.265 4.736 16.97.068l172.589-171.204c4.704-4.668 4.734-12.266.067-16.971z'/%3E%3C/svg%3E") center / contain no-repeat;
}

#drpa_footer .drpa_footer_badges {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 15px;
	margin-top: 20px;
}

#drpa_footer .drpa_footer_badges img {
	width: 110px;
}

/* white Help Support card: teal heading, purple items */
#drpa_footer .drpa_footer_card {
	padding: 10px;
	background: var(--drpa_white);
	border-radius: 10px;
	color: var(--drpa_purple);
}

#drpa_footer .drpa_footer_card .drpa_footer_heading {
	color: var(--drpa_teal);
}

#drpa_footer .drpa_care_logo {
	width: 165px;
	margin-top: 10px;
}

/* purple Operating Hours card */
#drpa_footer .drpa_hours_card {
	padding: 30px 20px 50px;
	background: var(--drpa_purple);
	border-radius: 7px;
}

#drpa_footer .drpa_hours_card p,
#drpa_footer .drpa_hours_card a {
	color: var(--drpa_white);
	font-size: 13px;
	line-height: 19.5px;
}

#drpa_footer .drpa_hours_card p {
	padding: 8px 0;
}

#drpa_footer .drpa_hours_card p + p {
	border-top: 1px solid rgba(255, 255, 255, 0.3);
}

#drpa_footer .drpa_hours_card a:hover,
#drpa_footer .drpa_hours_card a:focus-visible {
	text-decoration: underline;
}

#drpa_footer .drpa_treeapp {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	margin-top: 20px;
	padding-left: 5px;
}

#drpa_footer .drpa_treeapp_logo {
	width: 110px;
}

/* ---------- Safecall row ---------- */
#drpa_footer .drpa_safecall {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
}

#drpa_footer .drpa_safecall_text p {
	color: var(--drpa_white);
	font-size: 16px;
	font-weight: 600;
	line-height: 32.5px;
}

#drpa_footer .drpa_safecall_text p + p {
	margin-top: 16px;
}

#drpa_footer .drpa_safecall_text span {
	font-weight: 400;
}

#drpa_footer .drpa_safecall_text a {
	color: var(--drpa_pink);
	font-weight: 400;
}

#drpa_footer .drpa_safecall_text a:hover,
#drpa_footer .drpa_safecall_text a:focus-visible {
	text-decoration: underline;
}

#drpa_footer .drpa_safecall_images {
	display: flex;
	align-items: center;
	gap: 15px;
	flex-shrink: 0;
}

#drpa_footer .drpa_qr {
	width: 143px;
}

#drpa_footer .drpa_cyber {
	width: 82px;
}

/* ---------- bottom bar ---------- */
#drpa_footer .drpa_footer_bar {
	background: var(--drpa_dark);
}

#drpa_footer .drpa_footer_bar_row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px 30px;
	min-height: 50px;
	padding-top: 10px;
	padding-bottom: 10px;
}

#drpa_footer .drpa_copyright {
	color: var(--drpa_white);
	font-size: 12px;
	line-height: 1.5;
}

#drpa_footer .drpa_legal_links {
	display: flex;
	flex-wrap: wrap;
	gap: 5px 20px;
}

/* @ffLegalLink renders nothing when the privacy page is off */
#drpa_footer .drpa_legal_links li:empty {
	display: none;
}

#drpa_footer .drpa_legal_links a {
	color: var(--drpa_white);
	font-size: 13px;
}

#drpa_footer .drpa_legal_links a:hover,
#drpa_footer .drpa_legal_links a:focus-visible {
	text-decoration: underline;
}

#drpa_footer .drpa_powered_by a {
	display: block;
	line-height: 0;
}

/* ---------- footer: tablet ---------- */
@media (max-width: 1024px) {
	/* Safecall moves above the columns, as on the live site */
	#drpa_footer .drpa_safecall {
		order: 1;
		flex-direction: column;
		align-items: flex-start;
	}

	#drpa_footer .drpa_footer_cols {
		order: 2;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	#drpa_footer .drpa_footer_card {
		max-width: 260px;
	}
}

/* ---------- footer: mobile ---------- */
@media (max-width: 767px) {
	#drpa_footer .drpa_footer_main {
		padding: 40px 0;
	}

	#drpa_footer .drpa_footer_cols {
		grid-template-columns: 1fr;
	}

	#drpa_footer .drpa_footer_card {
		max-width: none;
	}

	#drpa_footer .drpa_safecall_images {
		flex-direction: column;
		align-items: flex-start;
	}

	#drpa_footer .drpa_qr {
		width: 100%;
		max-width: 285px;
	}

	#drpa_footer .drpa_cyber {
		width: 165px;
	}

	#drpa_footer .drpa_footer_bar_row {
		flex-direction: column;
		justify-content: center;
		text-align: center;
		padding-top: 15px;
		padding-bottom: 15px;
	}

	#drpa_footer .drpa_legal_links {
		justify-content: center;
	}
}