/* ============================================================
   Footer: the navy dome - the top of one large circle (as wide as the
   screen, never narrower than 980px), clipped by the footer.
   (prototype: .site-footer, .dome)
   ============================================================ */

.site-footer {
	position: relative;
	overflow: hidden;
	background: var(--color-bg);
	container-type: inline-size;
}

.site-footer__dome {
	position: relative;
	isolation: isolate;
	display: grid;
	justify-items: center;
	gap: 18px;
	padding: clamp(56px, 6vw, 80px) var(--gutter-r) calc(34px + env(safe-area-inset-bottom, 0px)) var(--gutter-l);
	color: var(--color-on-dark);
	text-align: center;
}

.site-footer__dome::before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	z-index: -1;
	width: max(100cqw, 980px);
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--color-surface-dark);
	transform: translateX(-50%);
}

.site-footer__logo {
	display: block;
	transition: transform 0.6s var(--ease);
}

.site-footer__logo img {
	width: clamp(130px, 11vw, 160px);
	height: auto;
}

.site-footer__tagline {
	color: var(--color-accent);
	font-family: var(--font-display);
	font-size: clamp(26px, 2.6vw, 34px);
	font-variant-ligatures: common-ligatures;
	line-height: 1.15;
}

.site-footer__menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 30px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* The footer's links turn gold on hover and keyboard focus (Miles
   2026-11-24: "our hover color"), like the social icons. */
.site-footer__menu a {
	font-size: var(--size-label);
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	text-decoration: none;
	opacity: 0.85;
	transition: color 0.3s var(--ease), opacity 0.3s var(--ease);
}

.site-footer__menu a:focus-visible {
	color: var(--color-hover);
	opacity: 1;
}

.site-footer__address {
	color: var(--color-on-dark-muted);
	font-size: 13px;
}

/* Instagram and Airbnb (social.css), as soft as the menu at rest. The
   negative margin keeps the row's spacing to the icons themselves. */
.site-footer .site-footer__social {
	margin: -10px 0;
}

.site-footer__social .social__link:not(:hover, :focus-visible) {
	opacity: 0.85;
}

.site-footer__legal {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px 18px;
	margin: 14px 0 0;
	padding: 0;
	color: var(--color-on-dark-faint);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	list-style: none;
}

/* A tap area at least 24px tall (WCAG 2.5.8) without moving the row: the
   padding is taken back by a negative margin, and on phones (one link a
   line) the gap leaves room so neighbouring tap areas never overlap. */
.site-footer__legal a {
	display: inline-block;
	margin-block: -6px;
	padding-block: 6px;
	text-decoration: none;
	transition: color 0.3s;
}

@media (max-width: 480px) {
	.site-footer__legal {
		gap: 12px;
	}
}

.site-footer__legal a:focus-visible {
	color: var(--color-hover);
}

@media (hover: hover) {
	.site-footer__logo:hover {
		transform: scale(1.03);
	}

	.site-footer__menu a:hover {
		color: var(--color-hover);
		opacity: 1;
	}

	.site-footer__legal a:hover {
		color: var(--color-hover);
	}
}

@media (min-width: 481px) {
	.site-footer__legal {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: center;
	}
}
