/* A Good Sign: base, header and footer. Measurements follow the approved mockups. */

@font-face {
	font-family: Inter;
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("../fonts/inter-latin-variable.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--ags-paper: #f7f8f8;
	--ags-ink: #252525;
	--ags-orange: #ef7a08;
	--ags-orange-dark: #d96c00;
	--ags-line: #c8c8bc;
	--ags-focus: #176f8c;
	--ags-font: Inter, Arial, sans-serif;
}

/* Base type and colour, overriding Astra's defaults. */
body,
button,
input,
select,
textarea,
.ast-button,
.ast-custom-button {
	font-family: var(--ags-font);
}
body,
body.ast-plain-container,
body.ast-separate-container,
body.ast-page-builder-template {
	background: var(--ags-paper);
	color: var(--ags-ink);
}
h1, h2, h3, h4, h5, h6,
.entry-content :where(h1, h2, h3, h4, h5, h6) {
	font-family: var(--ags-font);
	color: var(--ags-ink);
}
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
	outline: 3px solid var(--ags-focus);
	outline-offset: 4px;
}

.ags-wrap {
	width: 90%;
	max-width: 1440px;
	margin-inline: auto;
}

/* Buttons */
.ags-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 57px;
	padding: 16px 36px;
	border: 1px solid var(--ags-orange);
	border-radius: 0;
	background: var(--ags-orange);
	color: #fff;
	font: 700 18px/23px var(--ags-font);
	letter-spacing: 1px;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
}
.ags-button:hover,
.ags-button:focus-visible {
	background: var(--ags-orange-dark);
	color: #fff;
}
.ags-button--outline-light {
	padding-inline: 28px;
	background: transparent;
	border-color: rgba(255, 255, 255, 0.7);
}
.ags-button--outline {
	background: transparent;
	color: var(--ags-orange);
}
.ags-button--outline:hover,
.ags-button--outline:focus-visible {
	background: rgba(239, 122, 8, 0.08);
	color: var(--ags-orange-dark);
}
.ags-stars {
	color: var(--ags-orange);
	letter-spacing: -1px;
}
.screen-reader-text:not(:focus) {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}
.ags-button--outline-light:hover,
.ags-button--outline-light:focus-visible {
	background: rgba(255, 255, 255, 0.1);
}

/* Shared link lists */
.ags-nav-list {
	display: flex;
	align-items: center;
	gap: 37px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.ags-nav-list li {
	margin: 0;
}

/* Header */
.ags-header {
	background: var(--ags-orange);
	color: #fff;
}
.ags-header__inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 24px;
	min-height: 101px;
}
.ags-logo {
	display: block;
	width: 194px;
}
.ags-logo img {
	display: block;
	width: 100%;
	height: auto;
}
.ags-header a,
.ags-footer a {
	color: #fff;
	text-decoration: none;
}
.ags-header__nav .ags-nav-list,
.ags-footer__nav .ags-nav-list {
	font-size: 18px;
	font-weight: 700;
	line-height: 22px;
	letter-spacing: 1px;
	text-transform: uppercase;
}
.ags-header__nav a,
.ags-footer__nav a {
	display: inline-block;
	padding-block: 10px;
}
.ags-header__nav a:hover,
.ags-footer__nav a:hover,
.ags-header__nav .current-menu-item > a {
	text-decoration: underline;
	text-underline-offset: 5px;
}
.ags-header__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 22px;
}
.ags-icon-link {
	display: grid;
	place-items: center;
	min-width: 44px;
	min-height: 44px;
}
.ags-icon {
	display: block;
	width: 30px;
	height: 30px;
}
.ags-icon--stroke {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
}
.ags-icon--fill {
	fill: currentColor;
}
/* Menu button (small screens): an icon like the cart and account links. */
.ags-menu-toggle {
	display: none;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #fff;
	cursor: pointer;
}
.ags-menu-toggle:hover,
.ags-menu-toggle:focus {
	background: transparent;
	color: #fff;
}
.ags-menu-toggle .ags-icon {
	width: 28px;
	height: 28px;
}
.ags-menu-toggle:focus:not(:focus-visible) {
	outline: none;
}
.ags-menu-toggle .ags-icon--close,
.ags-menu-toggle[aria-expanded="true"] .ags-icon--menu {
	display: none;
}
.ags-menu-toggle[aria-expanded="true"] .ags-icon--close {
	display: block;
}
.ags-mobile-nav {
	display: none;
}

/* Header panels (Shop categories on large screens, the menu on small ones) open over the
   page below the header instead of pushing it down. */
.ags-header {
	position: relative;
	z-index: 100;
}
/* The Shop item spans the full header height, so moving down to the panel never leaves it. */
.ags-header__nav,
.ags-header__nav .ags-nav-list {
	align-self: stretch;
	height: 100%;
}
.ags-header__nav .ags-nav-list {
	align-items: stretch;
}
.ags-header__nav .ags-nav-list > li {
	display: flex;
	align-items: center;
}
.ags-header__nav .ags-has-panel {
	gap: 2px;
}
.ags-panel-toggle,
.ags-menu-toggle {
	box-shadow: none !important;
}
.ags-panel-toggle {
	display: grid;
	place-items: center;
	width: 26px;
	height: 40px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
	cursor: pointer;
}
.ags-panel-toggle:hover,
.ags-panel-toggle:focus {
	background: transparent;
	color: #fff;
}
.ags-chevron {
	width: 12px;
	height: 8px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform 0.2s;
}
.ags-shop-panel {
	position: absolute;
	top: 100%;
	right: 0;
	left: 0;
	visibility: hidden;
	border-top: 1px solid rgba(255, 255, 255, 0.35);
	background: var(--ags-paper);
	box-shadow: 0 18px 36px -18px rgba(37, 37, 37, 0.35);
	max-height: calc(100vh - var(--ags-panel-top, 101px));
	max-height: calc(100dvh - var(--ags-panel-top, 101px));
	overflow-y: auto;
	overscroll-behavior: contain;
	color: var(--ags-ink);
	font-size: 16px;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
	opacity: 0;
	transform: translateY(-6px);
	/* A short delay before closing, so moving the pointer down to the panel doesn't drop it. */
	transition: opacity 0.18s, transform 0.18s, visibility 0s linear 0.18s;
	transition-delay: 0.3s;
}
.ags-has-panel:hover .ags-shop-panel,
.ags-has-panel:focus-within .ags-shop-panel,
.ags-has-panel.is-open .ags-shop-panel {
	visibility: visible;
	opacity: 1;
	transform: none;
	transition-delay: 0.08s, 0.08s, 0s;
}
.ags-has-panel:hover .ags-chevron,
.ags-has-panel.is-open .ags-chevron {
	transform: rotate(180deg);
}
.ags-has-panel.is-closed .ags-shop-panel {
	visibility: hidden;
	opacity: 0;
}
.ags-shop-panel__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 310px;
	gap: 64px;
	padding-block: 36px 40px;
}
.ags-header .ags-shop-panel a:not(.ags-button),
.ags-mobile-nav a:not(.ags-button) {
	color: var(--ags-ink);
}
.ags-shop-panel__eyebrow {
	margin: 0 0 14px;
	color: var(--ags-orange-dark);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1.2px;
	text-transform: uppercase;
}
.ags-shop-panel__list {
	display: grid;
	grid-auto-flow: column;
	grid-template-rows: repeat(var(--ags-rows, 4), auto);
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0 32px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.ags-shop-panel__list a {
	display: block;
	padding: 9px 0;
	border-bottom: 1px solid rgba(37, 37, 37, 0.1);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.3;
}
.ags-header .ags-shop-panel__list a:hover,
.ags-header .ags-shop-panel__list a:focus-visible,
.ags-mobile-nav .ags-shop-panel__list a:hover {
	color: var(--ags-orange-dark);
	text-decoration: none;
}
/* Grouped Shop panel: each category heading with its products listed under it. */
.ags-shop-panel__list--groups {
	display: block;
	columns: 4 180px;
	column-gap: 32px;
}
.ags-shop-panel__group {
	break-inside: avoid;
	padding-bottom: 14px;
}
.ags-shop-panel__stack {
	break-inside: avoid;
}
.ags-shop-panel__stack > ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
.ags-shop-panel__heading {
	margin: 0 0 4px;
	padding: 9px 0;
	border-bottom: 1px solid rgba(37, 37, 37, 0.1);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
}
.ags-shop-panel__list .ags-shop-panel__heading a {
	padding: 0;
	border: 0;
	font-weight: 700;
}
.ags-shop-panel__sublist {
	margin: 0;
	padding: 0;
	list-style: none;
}
.ags-shop-panel__list .ags-shop-panel__sublist a {
	padding: 5px 0;
	border: 0;
	font-size: 15px;
	font-weight: 400;
}
.ags-shop-panel__all {
	display: inline-block;
	margin-top: 18px;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.6px;
	text-decoration: underline !important;
	text-decoration-color: var(--ags-orange) !important;
	text-decoration-thickness: 2px !important;
	text-underline-offset: 5px;
	text-transform: uppercase;
}
.ags-shop-panel__custom {
	align-self: start;
	padding: 26px;
	border-top: 4px solid var(--ags-orange);
	background: #fff;
}
.ags-shop-panel__custom p {
	margin: 0 0 18px;
	font-size: 15px;
	line-height: 1.5;
}
.ags-shop-panel__custom .ags-shop-panel__custom-title {
	margin-bottom: 8px;
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -0.3px;
}
.ags-shop-panel__custom .ags-button {
	width: 100%;
	padding-inline: 14px;
	color: #fff;
	font-size: 15px;
	letter-spacing: 0.6px;
	white-space: normal;
}

/* Footer */
.ags-footer {
	border-top: 1px solid rgba(255, 255, 255, 0.4);
	background: var(--ags-orange);
	color: #fff;
}
.ags-footer__top {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 24px;
	min-height: 121px;
}
.ags-footer__nav {
	display: flex;
	flex-direction: column;
	align-items: center;
}
.ags-footer__nav .ags-nav-list {
	justify-content: center;
}
.ags-footer__nav a {
	padding-block: 5px;
}
.ags-social {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.ags-social li {
	margin: 0;
}
.ags-social__link {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 1px solid #fff;
	border-radius: 50%;
}
.ags-social__link:hover {
	background: rgba(255, 255, 255, 0.12);
}
.ags-social .ags-icon {
	width: 21px;
	height: 21px;
}
.ags-footer__legal {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 93px;
	border-top: 1px solid rgba(255, 255, 255, 0.44);
	font-size: 16px;
	line-height: 19px;
}
.ags-footer__legal .ags-nav-list {
	gap: 22px;
}
.ags-footer__legal a {
	text-decoration: underline;
}
.ags-footer__legal p {
	margin: 0;
	font-weight: 600;
}

@media (max-width: 1200px) {
	.ags-shop-panel__inner {
		grid-template-columns: minmax(0, 1fr) 270px;
		gap: 40px;
	}
	.ags-shop-panel__list {
		grid-template-rows: repeat(var(--ags-rows-2, 6), auto);
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.ags-header__inner {
		gap: 20px;
	}
	.ags-header__nav .ags-nav-list {
		gap: 24px;
		font-size: 15px;
	}
	.ags-header__actions {
		gap: 12px;
	}
	.ags-header__upload {
		padding-inline: 18px;
		font-size: 14px;
	}
	.ags-logo {
		width: 170px;
	}
	.ags-footer__nav .ags-nav-list {
		gap: 24px;
		font-size: 15px;
	}
}

@media (max-width: 900px) {
	.ags-header__inner {
		display: flex;
		flex-wrap: wrap;
		justify-content: space-between;
		gap: 12px;
		min-height: 82px;
		padding-block: 16px;
	}
	.ags-header__nav,
	.ags-header__upload {
		display: none;
	}
	.ags-header__actions {
		margin-left: auto;
		gap: 4px;
	}
	.ags-menu-toggle {
		display: grid;
		margin-right: -7px;
	}
	.ags-mobile-nav:not([hidden]) {
		display: block;
		position: absolute;
		top: 100%;
		right: 0;
		left: 0;
		max-height: calc(100vh - 82px);
		max-height: calc(100dvh - 82px);
		overflow-y: auto;
		border-top: 1px solid rgba(255, 255, 255, 0.35);
		background: var(--ags-paper);
		box-shadow: 0 18px 36px -18px rgba(37, 37, 37, 0.35);
		color: var(--ags-ink);
		overscroll-behavior: contain;
	}
	.ags-mobile-nav__inner {
		padding-block: 26px 30px;
	}
	.ags-mobile-nav .ags-shop-panel__list {
		grid-auto-flow: row;
		grid-template-rows: none;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0 20px;
	}
	.ags-mobile-nav .ags-shop-panel__list a {
		display: flex;
		align-items: center;
		min-height: 48px;
		padding: 6px 0;
		font-size: 15px;
	}
	.ags-mobile-nav__pages {
		margin: 0 0 26px;
		padding: 0;
		list-style: none;
	}
	.ags-mobile-nav__pages a {
		display: flex;
		align-items: center;
		justify-content: space-between;
		min-height: 58px;
		border-bottom: 1px solid rgba(37, 37, 37, 0.15);
		font-size: 20px;
		font-weight: 700;
		letter-spacing: 1px;
		text-transform: uppercase;
	}
	.ags-mobile-nav__pages a::after {
		content: "";
		width: 9px;
		height: 9px;
		border-top: 2px solid currentColor;
		border-right: 2px solid currentColor;
		transform: rotate(45deg);
	}
	.ags-mobile-nav__pages li:first-child a {
		border-top: 1px solid rgba(37, 37, 37, 0.15);
	}
	.ags-mobile-nav__utility {
		display: flex;
		align-items: center;
		gap: 16px;
		margin-top: 26px;
		padding-top: 22px;
		border-top: 1px solid rgba(37, 37, 37, 0.15);
	}
	.ags-mobile-nav__account {
		display: inline-flex;
		align-items: center;
		gap: 10px;
		min-height: 48px;
		font-size: 15px;
		font-weight: 700;
		letter-spacing: 1px;
		text-transform: uppercase;
		white-space: nowrap;
	}
	.ags-mobile-nav__account .ags-icon {
		width: 26px;
		height: 26px;
	}
	.ags-mobile-nav__upload {
		flex: 1 1 auto;
		min-height: 50px;
		margin: 0;
		color: #fff;
		font-size: 15px;
	}
	.ags-footer__top {
		grid-template-columns: 1fr auto;
		padding-block: 30px;
	}
	.ags-footer__nav {
		grid-row: 2;
		grid-column: 1 / -1;
	}
	.ags-social {
		grid-row: 1;
		grid-column: 2;
	}
}

@media (max-width: 600px) {
	.ags-wrap {
		width: calc(100% - 40px);
	}
	.ags-header__inner {
		gap: 8px;
	}
	.ags-header .ags-logo {
		width: 145px;
	}
	.ags-header__actions {
		gap: 0;
	}
	.ags-account-link {
		display: none;
	}
	.ags-footer .ags-logo {
		width: 156px;
	}
	.ags-mobile-nav .ags-shop-panel__list {
		grid-template-columns: minmax(0, 1fr);
	}
	.ags-social {
		gap: 6px;
	}
	.ags-footer__nav .ags-nav-list {
		flex-wrap: wrap;
		justify-content: center;
		gap: 0 22px;
		font-size: 13px;
	}
	/* Same spacing as large screens: the two menus and the legal lines sit close together.
	   Links keep a comfortable tap height through their line box, not extra gaps. */
	.ags-footer__nav a {
		padding-block: 5px;
	}
	.ags-footer__legal {
		gap: 6px;
		padding-block: 20px;
		font-size: 13px;
	}
	.ags-footer__legal a {
		display: inline-block;
		padding-block: 2px;
	}
}

@media (max-width: 359px) {
	.ags-header .ags-logo {
		width: 125px;
	}
	.ags-footer__top {
		grid-template-columns: 1fr;
		justify-items: center;
	}
	.ags-social {
		grid-row: 3;
		grid-column: 1;
	}
}

/* Mobile menu: the chosen link stays highlighted with a spinner while the page loads. */
@keyframes ags-spin {
	to { transform: rotate(360deg); }
}
.ags-mobile-nav a.is-loading {
	color: var(--ags-orange-dark) !important;
}
.ags-mobile-nav a.is-loading::after,
.ags-mobile-nav .ags-shop-panel__list a.is-loading::after,
.ags-mobile-nav .ags-mobile-nav__upload.is-loading::after {
	content: "";
	width: 16px;
	height: 16px;
	margin-left: 10px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-top-color: currentColor;
	border-radius: 50%;
	transform: none;
	animation: ags-spin 0.7s linear infinite;
}
.ags-mobile-nav .ags-shop-panel__list a.is-loading {
	justify-content: space-between;
}
.ags-mobile-nav .ags-mobile-nav__upload.is-loading {
	color: #fff !important;
}
.ags-mobile-nav.is-navigating a:not(.is-loading) {
	opacity: 0.55;
}
@media (prefers-reduced-motion: reduce) {
	.ags-mobile-nav a.is-loading::after {
		animation: none;
		border-right-color: currentColor;
	}
}
/* The spinner is a real circle on inline links too (e.g. "See all products"). */
.ags-mobile-nav a.is-loading::after {
	display: inline-block;
	flex-shrink: 0;
	box-sizing: border-box;
	vertical-align: -2px;
}
.ags-mobile-nav .ags-shop-panel__all.is-loading {
	text-decoration-color: var(--ags-orange) !important;
}
/* Custom-quote button in the Shop panel: text centred (header link rules made it a block). */
.ags-header .ags-shop-panel__custom .ags-button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	padding-block: 14px !important;
	line-height: 1.25;
}

/* Mobile menu: groups open on tap. */
@media (max-width: 900px) {
	.ags-mobile-nav .ags-shop-panel__list--groups {
		display: grid;
		columns: auto;
		grid-template-columns: minmax(0, 1fr);
	}
	.ags-mobile-nav .ags-shop-panel__group {
		padding: 0;
		border-bottom: 1px solid rgba(37, 37, 37, 0.1);
	}
	.ags-mobile-nav .ags-shop-panel__group summary {
		display: flex;
		align-items: center;
		justify-content: space-between;
		min-height: 48px;
		padding: 6px 0;
		font-size: 15px;
		font-weight: 600;
		cursor: pointer;
		list-style: none;
	}
	.ags-mobile-nav .ags-shop-panel__group summary::-webkit-details-marker {
		display: none;
	}
	.ags-mobile-nav .ags-shop-panel__group summary .ags-chevron {
		width: 16px;
		height: 16px;
		fill: none;
		stroke: currentColor;
		stroke-width: 2;
		transition: transform 0.2s;
	}
	.ags-mobile-nav .ags-shop-panel__group details[open] summary .ags-chevron {
		transform: rotate(180deg);
	}
	.ags-mobile-nav .ags-shop-panel__sublist {
		padding: 0 0 8px 16px;
	}
	.ags-mobile-nav .ags-shop-panel__list .ags-shop-panel__sublist a {
		min-height: 44px;
		font-weight: 400;
	}
}

/* reCAPTCHA: no floating badge; the form carries Google's notice instead. */
.grecaptcha-badge {
	visibility: hidden;
}
.ags-recaptcha-note {
	margin-top: 16px;
	color: rgba(37, 37, 37, 0.7);
	font-size: 13px;
	text-align: center;
}
.ags-recaptcha-note a {
	color: inherit;
	text-decoration: underline;
}
