/* ==========================================================================
   Olton Golf Club - site footer
   Everything here is prefixed ogc-ftr-. Fonts and brand tokens come from
   ogc-header.css (loaded first, on every page).

   Contrast on navy #1a1d54:
     white                       14.9:1   wordmark, links on hover
     78% white                    9.9:1   links, body
     62% white                    6.8:1   column headings, small print
     gold hairline (non-text)     6.1:1   dividers only - never small text
   ========================================================================== */

:root {
	--ogc-ftr-max: 1700px;
	--ogc-ftr-pad: 56px;
}

/* Let the Avada layout section hand the full width to the footer. */
.fusion-tb-footer .ogc-ftr-section,
.fusion-tb-footer .ogc-ftr-section .fusion-row {
	max-width: none;
}

.ogc-ftr {
	position: relative;
	background: var(--ogc-hdr-navy);
	color: rgba(255, 255, 255, 0.78);
	font-family: var(--ogc-hdr-sans);
	font-size: 15px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

/* Every block shares the same centred measure. */
.ogc-ftr__top,
.ogc-ftr__grid,
.ogc-ftr__bottom {
	max-width: var(--ogc-ftr-max);
	margin: 0 auto;
	padding-left: var(--ogc-ftr-pad);
	padding-right: var(--ogc-ftr-pad);
	box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Pin colours and decoration against Avada's global link and heading rules.
   -------------------------------------------------------------------------- */

.ogc-ftr a,
.ogc-ftr a:link,
.ogc-ftr a:visited,
.ogc-ftr a:hover,
.ogc-ftr a:focus,
.ogc-ftr a:active {
	text-decoration: none;
	box-shadow: none;
}

.ogc-ftr .ogc-ftr__link,
.ogc-ftr .ogc-ftr__link:link,
.ogc-ftr .ogc-ftr__link:visited,
.ogc-ftr .ogc-ftr__social-link,
.ogc-ftr .ogc-ftr__social-link:link,
.ogc-ftr .ogc-ftr__social-link:visited {
	color: rgba(255, 255, 255, 0.78);
}

.ogc-ftr .ogc-ftr__link:hover,
.ogc-ftr .ogc-ftr__link:focus,
.ogc-ftr .ogc-ftr__link:active,
.ogc-ftr .ogc-ftr__link[aria-current="page"],
.ogc-ftr .ogc-ftr__social-link:hover,
.ogc-ftr .ogc-ftr__social-link:focus,
.ogc-ftr .ogc-ftr__brand,
.ogc-ftr .ogc-ftr__brand:hover,
.ogc-ftr .ogc-ftr__brand:focus {
	color: #fff;
}

.ogc-ftr a:focus-visible {
	outline: 1px solid #fff;
	outline-offset: 4px;
}

.ogc-ftr p,
.ogc-ftr address,
.ogc-ftr ul,
.ogc-ftr h3 {
	margin: 0;
	padding: 0;
}

.ogc-ftr ul {
	list-style: none;
}

.ogc-ftr li {
	margin: 0;
}

/* --------------------------------------------------------------------------
   Top band: brand and booking button
   -------------------------------------------------------------------------- */

.ogc-ftr__top {
	display: flex;
	align-items: center;
	gap: 28px;
	padding-top: 72px;
	padding-bottom: 56px;
}

.ogc-ftr__brand {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	border: 0;
}

.ogc-ftr__crest {
	display: block;
	height: 56px;
	width: auto;
}

.ogc-ftr__wordmark {
	display: flex;
	flex-direction: column;
	line-height: 1.3;
	color: #fff;
}

.ogc-ftr__wordmark-top {
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.34em;
	text-transform: uppercase;
}

.ogc-ftr__wordmark-bottom {
	font-size: 10px;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.62);
}

.ogc-ftr .ogc-ftr__book,
.ogc-ftr .ogc-ftr__book:link,
.ogc-ftr .ogc-ftr__book:visited {
	display: inline-flex;
	align-items: center;
	height: 46px;
	margin-left: auto;
	padding: 0 26px;
	font-size: 11.5px;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	white-space: nowrap;
	color: #fff;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.55);
	transition:
		background-color 0.3s ease,
		color 0.3s ease,
		border-color 0.3s ease;
}

.ogc-ftr .ogc-ftr__book:hover,
.ogc-ftr .ogc-ftr__book:focus,
.ogc-ftr .ogc-ftr__book:active {
	color: var(--ogc-hdr-navy);
	background: #fff;
	border: 1px solid #fff;
}

/* --------------------------------------------------------------------------
   Columns
   -------------------------------------------------------------------------- */

.ogc-ftr__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1.5fr) minmax(0, 1fr);
	gap: 48px;
	position: relative;
	padding-top: 56px;
	padding-bottom: 72px;
}

/* Gold hairline between the top band and the columns. */
.ogc-ftr__grid::before {
	content: "";
	position: absolute;
	top: 0;
	left: var(--ogc-ftr-pad);
	right: var(--ogc-ftr-pad);
	height: 1px;
	background: var(--ogc-hdr-gold);
	opacity: 0.55;
}

.ogc-ftr .ogc-ftr__heading {
	margin-bottom: 18px;
	font-family: var(--ogc-hdr-sans);
	font-size: 11.5px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.62);
}

.ogc-ftr__address {
	font-style: normal;
	color: rgba(255, 255, 255, 0.78);
}

.ogc-ftr__note {
	margin-top: 12px;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.62);
}

.ogc-ftr__list li + li {
	margin-top: 6px;
}

.ogc-ftr__list--split {
	columns: 2;
	column-gap: 32px;
}

.ogc-ftr__list--split li {
	break-inside: avoid;
}

.ogc-ftr__link {
	display: inline-block;
	padding: 2px 0;
	border-bottom: 1px solid transparent;
	transition:
		color 0.25s ease,
		border-color 0.25s ease;
	overflow-wrap: anywhere;
}

.ogc-ftr .ogc-ftr__link:hover,
.ogc-ftr .ogc-ftr__link:focus-visible {
	border-bottom-color: rgba(255, 255, 255, 0.6);
}

.ogc-ftr__link--arrow {
	margin-top: 14px;
}

.ogc-ftr__link--arrow::after {
	content: "\2192";
	display: inline-block;
	margin-left: 8px;
	transition: transform 0.25s var(--ogc-hdr-ease);
}

.ogc-ftr__link--arrow:hover::after,
.ogc-ftr__link--arrow:focus-visible::after {
	transform: translateX(4px);
}

/* Social */

.ogc-ftr__social {
	display: flex;
	gap: 10px;
	margin-top: 26px !important;
}

.ogc-ftr .ogc-ftr__social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 50%;
	transition:
		color 0.25s ease,
		border-color 0.25s ease,
		background-color 0.25s ease;
}

.ogc-ftr .ogc-ftr__social-link:hover,
.ogc-ftr .ogc-ftr__social-link:focus-visible {
	border-color: #fff;
	background: rgba(255, 255, 255, 0.08);
}

.ogc-ftr__icon {
	display: block;
	width: 18px;
	height: 18px;
}

/* --------------------------------------------------------------------------
   Bottom bar
   -------------------------------------------------------------------------- */

.ogc-ftr__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
	padding-top: 22px;
	padding-bottom: 22px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 12.5px;
	letter-spacing: 0.04em;
	color: rgba(255, 255, 255, 0.62);
}

/* The border sits on the full-width bar, not the inset content. */
.ogc-ftr__bottom {
	max-width: none;
	padding-left: max(var(--ogc-ftr-pad), calc((100% - var(--ogc-ftr-max)) / 2 + var(--ogc-ftr-pad)));
	padding-right: max(var(--ogc-ftr-pad), calc((100% - var(--ogc-ftr-max)) / 2 + var(--ogc-ftr-pad)));
}

/* --------------------------------------------------------------------------
   Breakpoints
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
	:root {
		--ogc-ftr-pad: 32px;
	}

	.ogc-ftr__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 44px 40px;
	}
}

@media (max-width: 767px) {
	:root {
		--ogc-ftr-pad: 24px;
	}

	.ogc-ftr__top {
		flex-wrap: wrap;
		gap: 20px 24px;
		padding-top: 56px;
		padding-bottom: 40px;
	}

	.ogc-ftr .ogc-ftr__book,
	.ogc-ftr .ogc-ftr__book:link,
	.ogc-ftr .ogc-ftr__book:visited {
		width: 100%;
		height: 50px;
		justify-content: center;
		margin-left: 0;
	}

	.ogc-ftr__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 36px;
		padding-top: 40px;
		padding-bottom: 48px;
	}

	.ogc-ftr__bottom {
		flex-direction: column;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ogc-ftr__book,
	.ogc-ftr__link,
	.ogc-ftr__link--arrow::after,
	.ogc-ftr__social-link {
		transition: none !important;
	}
}
