@charset "utf-8";

/*
  Havering Shopmobility - main stylesheet (Bootstrap 5)

  The site is used mostly by older visitors, so readability comes first:
  - body text at least 18px, generous line height
  - every text/background pair below meets WCAG AA, and most meet AAA (7:1)
  - links are always underlined, with a thick visible focus outline
*/

/******************************** colour palette ********************************
  Contrast ratios (WCAG):
    white  on navy  13.0   yellow on navy  10.0   gold   on navy   8.0
    white  on blue   7.7   yellow on blue   5.9   ink    on sky   15.0
    navy   on gold   8.0   navy   on yellow 10.0  blue   on white  7.7
*********************************************************************************/
:root {
	--hsm-navy: #0b2e6b;
	--hsm-blue: #1452a0;
	--hsm-sky: #e3f0fb;
	--hsm-yellow: #ffe14d;
	--hsm-gold: #ffc20e;
	--hsm-ink: #1a1a1a;
	--hsm-white: #ffffff;

	/* Bootstrap 5 theme */
	--bs-primary: var(--hsm-blue);
	--bs-primary-rgb: 20, 82, 160;
	--bs-body-bg: var(--hsm-white);
	--bs-body-color: var(--hsm-ink);
	--bs-body-font-family: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--bs-body-font-size: 1.1rem; /* about 20px */
	--bs-body-line-height: 1.6;
	--bs-link-color: var(--hsm-blue);
	--bs-link-color-rgb: 20, 82, 160;
	--bs-link-hover-color: var(--hsm-navy);
	--bs-link-hover-color-rgb: 11, 46, 107;
	--bs-border-radius: 0.5rem;
}

/* 18px base text: every rem-based size in Bootstrap grows with it */
html {
	font-size: 112.5%;
}

/* keep lines to a comfortable reading length on wide screens */
@media (min-width: 1400px) {
	.container {
		max-width: 1140px;
	}
}

/******************************** links and focus ********************************/
a {
	text-decoration: underline;
	text-underline-offset: 0.15em;
	text-decoration-thickness: 0.08em;
}
a:hover {
	text-decoration-thickness: 0.15em;
}
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.navbar-toggler:focus-visible {
	outline: 3px solid var(--hsm-navy);
	outline-offset: 2px;
	box-shadow: 0 0 0 6px var(--hsm-yellow);
}
a img {
	border: none;
}

/* links sitting on the dark blue panels */
.bg-first-color a,
.bg-second-color a {
	color: var(--hsm-yellow);
}
.bg-first-color a:hover,
.bg-second-color a:hover {
	color: var(--hsm-white);
}

/* links sitting on the light panels */
.bg-third-color a,
.bg-fourth-color a,
.bg-fifth-color a {
	color: var(--hsm-navy);
}

/* phone numbers are often tapped, so make them easy to hit */
a[href^="tel:"] {
	display: inline-block;
	padding: 0.25rem 0;
	white-space: nowrap;
}

/* "skip to main content" link, shown when reached with the Tab key */
.skip-link {
	position: absolute;
	top: 0.5rem;
	left: 0.5rem;
	z-index: 2000;
	padding: 0.75rem 1rem;
	background: var(--hsm-yellow);
	color: var(--hsm-navy);
	font-weight: 700;
}

.page-banner-subline {
	margin: 1.25rem 0 0;
	padding-top: 1rem;
	border-top: 1px solid rgba(255, 255, 255, 0.4);
	font-size: 1.15rem;
}

/******************************** headings ********************************/
/* the [class] versions win over Bootstrap's .h1 to .h6 size classes, which reset the colour */
h1, h3, h5,
:is(h1, h3, h5)[class] {
	color: var(--hsm-navy);
}
h2, h4, h6,
:is(h2, h4, h6)[class] {
	color: var(--hsm-blue);
}
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
	font-weight: 700;
	line-height: 1.25;
}

ul li {
	margin-bottom: 0.6rem;
}

section {
	margin-bottom: 2rem;
}

/******************************** colour helpers ********************************/
.bg-first-color {
	background: var(--hsm-navy);
	color: var(--hsm-white);
}
.bg-second-color {
	background: var(--hsm-blue);
	color: var(--hsm-white);
}
.bg-third-color {
	background: var(--hsm-sky);
	color: var(--hsm-ink);
}
.bg-fourth-color {
	background: var(--hsm-yellow);
	color: var(--hsm-ink);
}
.bg-fifth-color {
	background: var(--hsm-gold);
	color: var(--hsm-ink);
}
/* headings inside the light panels stay navy */
.bg-third-color :is(h1, h2, h3, h4, h5, h6),
.bg-fourth-color :is(h1, h2, h3, h4, h5, h6),
.bg-fifth-color :is(h1, h2, h3, h4, h5, h6) {
	color: var(--hsm-navy);
}
.txt-first-color,
:is(h1, h2, h3, h4, h5, h6).txt-first-color {
	color: var(--hsm-navy);
}
.txt-second-color,
:is(h1, h2, h3, h4, h5, h6).txt-second-color {
	color: var(--hsm-blue);
}
/* the three light text colours are only for use on the blue or navy panels */
.txt-third-color,
:is(h1, h2, h3, h4, h5, h6).txt-third-color {
	color: var(--hsm-sky);
}
.txt-fourth-color,
:is(h1, h2, h3, h4, h5, h6).txt-fourth-color {
	color: var(--hsm-yellow);
}
.txt-fifth-color,
:is(h1, h2, h3, h4, h5, h6).txt-fifth-color {
	color: var(--hsm-gold);
}

/******************************** navigation ********************************/
nav.navbar {
	border-bottom: 4px solid var(--hsm-yellow);
}
.navbar[data-bs-theme="dark"] {
	--bs-navbar-color: var(--hsm-white);
	--bs-navbar-hover-color: var(--hsm-yellow);
	--bs-navbar-active-color: var(--hsm-yellow);
	--bs-navbar-brand-color: var(--hsm-white);
	--bs-navbar-brand-hover-color: var(--hsm-white);
	--bs-navbar-nav-link-padding-x: 0.75rem;
}
.navbar .nav-link {
	font-size: 1.05rem;
	font-weight: 700;
	text-decoration: none;
	/* at least 44px high for easy tapping */
	min-height: 48px;
	display: flex;
	align-items: center;
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
	text-decoration: underline;
	text-decoration-thickness: 3px;
	text-underline-offset: 0.35em;
}
.navbar-toggler {
	min-width: 48px;
	min-height: 48px;
	border: 2px solid var(--hsm-white);
}
.navbar-toggler-text {
	color: var(--hsm-white);
	font-weight: 700;
	margin-left: 0.4rem;
}
#nav-spacer {
	height: 1rem;
}

/******************************** page banner ********************************/
/* replaces the Bootstrap 4 jumbotron, which Bootstrap 5 removed */
.page-banner {
	padding: 1.5rem 1.25rem;
	margin-bottom: 2rem;
	border-radius: var(--bs-border-radius-lg);
}
.page-banner h1 {
	margin-bottom: 0.5rem;
}
.page-banner .lead {
	font-size: 1.3rem;
	margin-bottom: 0;
}
.page-banner-top {
	display: flex;
	flex-direction: column-reverse;
	gap: 1rem;
}
.page-banner-logo {
	align-self: flex-start;
	max-width: 140px;
	height: auto;
}
@media (min-width: 576px) {
	.page-banner {
		padding: 2.5rem 2rem;
	}
}
@media (min-width: 768px) {
	.page-banner-top {
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
	}
	.page-banner-logo {
		max-width: 174px;
	}
}

/******************************** content boxes ********************************/
.divTxtBox {
	margin-bottom: 1rem;
	padding: 1.25rem;
}
.divTxtBox > :last-child {
	margin-bottom: 0;
}
.list-label {
	padding: 0.1em 0.4em;
	border-radius: 0.3em;
	color: var(--hsm-navy);
}
.list-label.list-a {
	background: var(--hsm-gold);
}
.list-label.list-b {
	background: var(--hsm-sky);
	border: 1px solid var(--hsm-blue);
}

.skills-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem 1rem;
	list-style: none;
	padding: 0;
	font-size: 1.2rem;
	font-weight: 700;
}
.skills-list li {
	margin: 0;
	padding: 0.4rem 0.9rem;
	border-radius: 2rem;
	background: var(--hsm-white);
	color: var(--hsm-navy);
}

.call-us {
	font-size: 1.5rem;
}
/* the whole recruiting box is one big link */
.recruit-box {
	padding: 1.5rem 1.25rem;
}
.recruit-box:hover {
	outline: 3px solid var(--hsm-navy);
}

/* responsive map */
.map-frame {
	border: 2px solid var(--hsm-navy);
	border-radius: var(--bs-border-radius);
	overflow: hidden;
}

/******************************** footer ********************************/
footer {
	margin-top: 3rem;
	padding-top: 3rem;
	padding-bottom: 1rem;
}
footer h2 {
	color: var(--hsm-white);
	font-size: 1.4rem;
}
footer a {
	color: var(--hsm-yellow);
	/* long email addresses wrap instead of overflowing on phones */
	overflow-wrap: anywhere;
}
.footer-logo {
	border: solid var(--hsm-sky) 2px;
	padding: 5px;
	background: var(--hsm-white);
	margin-bottom: 1rem;
}
#openingTimes ul {
	list-style: none;
	padding-left: 0;
}
#copyright {
	color: var(--hsm-white);
	text-align: center;
	font-size: 0.9rem;
	margin: 3rem 0 0;
	padding: 1rem 0 0;
	border-top: 1px solid rgba(255, 255, 255, 0.4);
}

/******************************** miscellaneous ********************************/
img.imgflip {
	transform: scaleX(-1);
}

@media (prefers-reduced-motion: reduce) {
	* {
		scroll-behavior: auto !important;
		transition: none !important;
	}
}
