/* The site footer (includes/footer.php). Design B on the wireframes canvas, 2026-10-20: dark on the page's #111,
   muted text, thin dividers, no boxes. Desktop five columns, tablet four under the logo, phone two. */

.icedive-footer {
	border-top: 1px solid #262626;
	color: #b8bec6;
	font-size: 14px;
	line-height: 1.5;
}
.icedive-footer__inner {
	box-sizing: border-box;
	max-width: 1152px;
	margin: 0 auto;
	padding: 56px 16px 32px;
}
.icedive-footer p {
	margin: 0;
	font-size: inherit;   /* the global styles set every <p> to the 16.8px medium size */
	line-height: inherit;
}
.icedive-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.icedive-footer a {
	color: #b8bec6;
	text-decoration: none;
}
.icedive-footer a:hover,
.icedive-footer a:focus-visible {
	color: #ffffff;
	text-decoration: underline;
}

.icedive-footer__top {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.2fr);
	gap: 40px;
}
.icedive-footer__about {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.icedive-footer__logo {
	align-self: flex-start;
	line-height: 0;
}
.icedive-footer__logo img {
	display: block;
	width: 119px;
	height: auto;
}
.icedive-footer__social {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	font-size: 13px;
}
.icedive-footer__social a {
	color: #c8ccd1;
}

.icedive-footer__col,
.icedive-footer__col ul {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.icedive-footer .icedive-footer__heading {
	margin: 0 0 2px;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0;
	color: #ffffff;
}
.icedive-footer__col a {
	line-height: 1.4;
	overflow-wrap: anywhere;   /* long Icelandic and German compounds on narrow phones */
}
.icedive-footer__contact ul a,
.icedive-footer__address a {
	color: #a9d6f5;   /* phone and email read as links */
	text-decoration: underline;
}
.icedive-footer__contact ul a:hover,
.icedive-footer__address a:hover {
	color: #ffffff;
}
.icedive-footer .icedive-footer__book {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	margin-top: 4px;
	padding: 0 12px;
	box-sizing: border-box;
	border: 1px solid #f9f9f9;
	border-radius: 4px;
	color: #ffffff;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}
.icedive-footer .icedive-footer__book:hover,
.icedive-footer .icedive-footer__book:focus-visible {
	background: #f9f9f9;
	color: #111111;
	text-decoration: none;
}

/* Badges and brands in their own colours (owner 2026-10-20). SDI/TDI, DAN and the brand logos sit on white tiles cut
   close to the logo, so a 56px tile shows a big logo; the licence badge is its own card. */
.icedive-footer__bar {   /* badges left, brand logos right, the badges' caption on its own line under both */
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 32px;
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid #262626;
}
.icedive-footer__marks,
.icedive-footer__brand-list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}
.icedive-footer__marks a,
.icedive-footer__brand-list a {
	display: block;
	line-height: 0;
	border-radius: 6px;
}
.icedive-footer__marks a:focus-visible,
.icedive-footer__brand-list a:focus-visible {
	outline: 2px solid #a9d6f5;
	outline-offset: 3px;
}
.icedive-footer__marks img,
.icedive-footer__brand-list img {
	display: block;
	width: auto;
	height: 56px;
}
.icedive-footer__marks .icedive-footer__licence {   /* a card with small text: bigger than the tiles */
	height: 80px;
}
.icedive-footer__tile {
	border-radius: 6px;
}
.icedive-footer .icedive-footer__tile--name {   /* a brand whose logo file has not come yet */
	display: flex;
	align-items: center;
	height: 56px;
	padding: 0 18px;
	box-sizing: border-box;
	background: #ffffff;
	color: #111111;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.icedive-footer .icedive-footer__caption {
	order: 3;
	flex-basis: 100%;
	font-size: 12.8px;
	color: #9aa1a9;
}

.icedive-footer__legal {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid #262626;
	font-size: 12.8px;
	line-height: 1.6;
	color: #808080;
}
.icedive-footer__legal ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0 18px;
}
.icedive-footer__legal a {
	color: #9aa1a9;
	text-decoration: underline;
}

/* Tablet: the logo block takes the first row, the four columns sit under it. */
@media (max-width: 1023px) {
	.icedive-footer__top {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 32px 24px;
	}
	.icedive-footer__about {
		grid-column: 1 / -1;
		max-width: 560px;
	}
}

/* Phone: two columns and 44px tap targets (FooterBPhone on the canvas). */
@media (max-width: 699px) {
	.icedive-footer__inner {
		padding: 40px 16px 28px;
	}
	.icedive-footer__top {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px 16px;
	}
	.icedive-footer__col,
	.icedive-footer__col ul {
		gap: 0;
	}
	.icedive-footer .icedive-footer__heading {
		margin-bottom: 4px;
	}
	.icedive-footer__col ul a {
		display: flex;
		align-items: center;
		min-height: 44px;
		padding: 4px 0;   /* two-line labels get air too */
		box-sizing: border-box;
		font-size: 15px;
		line-height: 1.3;
	}
	.icedive-footer__social {
		gap: 0 20px;
		font-size: 14px;
	}
	.icedive-footer__social a,
	.icedive-footer__legal a {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
	}
	.icedive-footer .icedive-footer__address {
		margin: 6px 0 10px;
	}
	.icedive-footer .icedive-footer__book {
		min-height: 44px;
		padding: 0 14px;
	}
	.icedive-footer__bar {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
		margin-top: 28px;
	}
	.icedive-footer__marks {
		flex-wrap: wrap;
	}
	.icedive-footer__marks,
	.icedive-footer__brand-list {
		gap: 10px;
	}
	.icedive-footer__marks img,
	.icedive-footer__brand-list img,
	.icedive-footer .icedive-footer__tile--name {
		height: 48px;
	}
	.icedive-footer__marks .icedive-footer__licence {
		height: 64px;
	}
	.icedive-footer .icedive-footer__tile--name {
		padding: 0 14px;
	}
	.icedive-footer .icedive-footer__caption {   /* on phones right under the badges, before the brand logos */
		order: 0;
		margin-bottom: 8px;
	}
	.icedive-footer__legal {
		flex-direction: column;
		gap: 4px;
		margin-top: 28px;
	}
}
