/* ==========================================================================
   auo-foot — four-column editorial footer
   Ported from the component live on australianuggoutlet.com.au.
   Everything is scoped to .auo-foot / .auo-wrap; flat warm-paper retail style —
   fills are solid, edges are hairlines, the only transition sits inside the
   reduced-motion guard.
   Load from the child theme: assets/css/auo-foot.css
   ========================================================================== */

.auo-foot {
	/* Palette: dark ink on warm paper, consistent with the AUO variables. */
	--ink: #1a1a1a;      /* primary text */
	--ink-soft: #5f5850; /* secondary text, warm grey, AA on paper */
	--paper: #f7f4ef;    /* footer background */
	--rule: #e3dcd1;     /* hairline separators */

	/* Layout tokens, same names as the reference sheet. */
	--wrap: 1320px;
	--gut: clamp(1.25rem, 4vw, 2.5rem);
	--ease: cubic-bezier(0.4, 0, 0.2, 1);

	background: var(--paper);
	color: var(--ink);
	font-size: 0.9375rem;
	line-height: 1.6;
	padding-block: clamp(2.5rem, 6vw, 4.5rem) 0;
	-webkit-font-smoothing: antialiased;
}

/* Keep the parent theme's box model out of the component. */
.auo-foot,
.auo-foot *,
.auo-foot *::before,
.auo-foot *::after {
	box-sizing: border-box;
}

.auo-wrap {
	width: 100%;
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: var(--gut);
}

/* Focus. 2px ring plus a 2px offset so it clears the element on any
   background. Meets WCAG 2.2 Focus Appearance. Scoped to the footer. */
.auo-foot :focus-visible {
	outline: 2px solid var(--ink);
	outline-offset: 2px;
	border-radius: 1px;
}

.auo-foot ::selection {
	background: var(--ink);
	color: var(--paper);
}

/* ---------- Brand block ---------------------------------------------- */

.auo-foot__brand p {
	margin: 0;
}

.auo-foot__mark {
	font-size: clamp(1.625rem, 4vw, 2.125rem);
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -0.01em;
	margin-bottom: 0.625rem;
}

.auo-foot__line {
	color: var(--ink-soft);
	max-width: 38ch;
}

.auo-foot__price {
	color: var(--ink);
	margin-top: 0.5rem;
}

/* ---------- Column grid: 1 col mobile, 2 cols 600-991px, 4 cols 992px+ - */

.auo-foot__top {
	display: grid;
	gap: 2rem;
	grid-template-columns: 1fr;
}

.auo-foot__brand {
	grid-column: 1 / -1;
}

.auo-foot__col {
	overflow-wrap: break-word;
}

.auo-foot__col ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.auo-foot__col li {
	margin-bottom: 0.5rem;
}

.auo-foot__col li:last-child {
	margin-bottom: 0;
}

.auo-foot__col a {
	color: var(--ink-soft);
	text-decoration: none;
}

.auo-foot__col a:hover,
.auo-foot__col a:focus-visible {
	color: var(--ink);
	text-decoration: underline;
	text-underline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
	.auo-foot__col a {
		transition: color 0.16s var(--ease);
	}
}

@media (min-width: 600px) and (max-width: 991px) {
	.auo-foot__top {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 992px) {
	.auo-foot__top {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* ---------- Headings -------------------------------------------------- */

.auo-foot__h {
	color: var(--ink);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	line-height: 1.4;
	margin: 0 0 0.875rem;
	padding-bottom: 0.625rem;
	border-bottom: 1px solid var(--rule);
	text-transform: uppercase;
}

/* ---------- Contact column (online only — no premises, ever) ---------- */

.auo-foot__col--contact address {
	color: var(--ink);
	font-style: normal;
	margin: 0 0 0.625rem;
}

.auo-foot__col--contact p {
	color: var(--ink-soft);
	margin: 0;
}

/* ---------- Base bar --------------------------------------------------- */

.auo-foot__base {
	align-items: baseline;
	border-top: 1px solid var(--rule);
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem 1.5rem;
	justify-content: space-between;
	margin-top: clamp(2rem, 5vw, 3.5rem);
	padding-block: 1.25rem;
}

.auo-foot__base p {
	color: var(--ink-soft);
	font-size: 0.8125rem;
	margin: 0;
}

.auo-foot__pay {
	color: var(--ink);
}
