/* ---------------------------------------------------------------------------
   Ace Glove — shared design tokens

   Colour and type defer to Hub's global settings (Liquid > Theme Options).
   The hex values here are fallbacks only, so changing the theme globals
   changes every section.
   Palette: primary green, secondary dark, white, black. Nothing else.
--------------------------------------------------------------------------- */

:root {
	--ags-primary:   var(--color-primary, #007F3E);
	--ags-secondary: var(--color-secondary, #131F28);
	--ags-white:     #ffffff;
	--ags-black:     #000000;

	/*
	 * Layout — fixed for every section on the site.
	 *
	 * Sections run the full width of the window: there is no boxed measure
	 * any more. Every section's inner still reads --ags-max, so putting a
	 * length back here (it was 1340px) re-boxes the whole site in one edit.
	 * The side padding is what keeps content off the window edge.
	 */
	--ags-max:    none;
	--ags-pad-x:  40px;
	--ags-pad-y:  80px;
	--ags-radius: 5px;

	/*
	 * The soft green ground. Used behind the about counters and as the whole
	 * products section's background, so the two always match.
	 */
	--ags-wash: rgba(0, 127, 62, 0.07);

	/*
	 * A solid, opaque tint of the primary green — for a panel that needs a
	 * flat light-green fill (e.g. the Vision & Mission inner panel), where
	 * --ags-wash's translucency would let whatever sits behind it show
	 * through. Kept as its own token so it can be retuned without touching
	 * every place that reads --ags-wash for its translucent effect instead.
	 */
	--ags-primary-tint: #eaf5ef;

	/* Shared by the About photo and the Vision & Mission panel/cards, so a
	   client asking for "match the rounding" only ever means one number. */
	--ags-about-radius: 20px;

	/*
	 * One size for every section's description copy. Each section used to set
	 * its own, which drifted to six different values (16, 14, 13.5, 12.5, 12).
	 * Change it here and the whole site follows.
	 */
	--ags-text-size: 14px;

	/* Same idea for the small uppercase H2 above each section heading. */
	--ags-eyebrow-size: 14px;

	/*
	 * Navigation links — the header menu and the footer's page lists share
	 * this so the two always look like the same thing.
	 */
	--ags-nav-size: 13px;
	--ags-nav-weight: 600;
	--ags-nav-tracking: 0.04em;

	/* Motion */
	--ags-ease:  cubic-bezier(0.22, 0.61, 0.36, 1);
	--ags-speed: 0.3s;
}

@media (max-width: 1024px) {
	:root {
		--ags-pad-x: 20px;
		--ags-pad-y: 60px;
	}
}

@media (max-width: 767px) {
	:root {
		--ags-pad-x: 15px;
		--ags-pad-y: 40px;
	}
}

/* Single-path SVGs are tinted with a mask so one icon file works on any
   background. The URL arrives per element as --ags-icon. */
.ags-icon {
	display: inline-block;
	flex: none;
	background-color: currentColor;
	-webkit-mask-image: var(--ags-icon);
	mask-image: var(--ags-icon);
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
}

/* ---------------------------------------------------------------------------
   Section headings

   Every H3 on the site carries a short bold rule underneath it, and every H3
   breaks one sentence per line. The rule follows the heading's alignment.

   font-size lives HERE, not per section, so every H3 on the site — Home page
   included — sizes identically: 34px desktop, 28px <=1024px, 26px <=767px.
   Every section's own `.xxx__heading` rule must NOT set font-size any more;
   this is the single source of truth. (Colour, weight, line-height and
   letter-spacing are left to each section, since those legitimately differ —
   e.g. white on a dark band vs secondary-dark on a light one.)
--------------------------------------------------------------------------- */

.ags-title__line {
	display: block;
}

.ags-title {
	font-size: 34px;
}

.ags-title::after {
	content: "";
	display: block;
	width: 64px;
	height: 4px;
	margin-top: 22px;
	border-radius: 2px;
	background-color: var(--ags-primary);
}

.ags-title--center::after {
	margin-inline: auto;
}

.ags-title--left::after {
	margin-inline: 0 auto;
}

@media (max-width: 1024px) {
	.ags-title {
		font-size: 28px;
	}
}

@media (max-width: 767px) {
	.ags-title {
		font-size: 26px;
	}

	.ags-title::after {
		width: 52px;
		height: 3px;
		margin-top: 18px;
	}
}

/* ---------------------------------------------------------------------------
   Section row helper

   Put el_class="ags-row" on the WPBakery row that holds one of our sections.
   WPBakery's row/column gutters would otherwise leave a 15px strip down each
   side of a full-width section; our sections manage their own padding.
--------------------------------------------------------------------------- */

.vc_row.ags-row {
	margin-left: 0;
	margin-right: 0;
}

/*
 * Hub wraps every non-stretched row in Bootstrap's .container, which sets a
 * fixed WIDTH (1170px at desktop) rather than a max-width. That was quietly
 * overriding the 1340px box every section is supposed to use, so the boxed
 * sections sat narrower than the full-width ones and the two did not line up.
 * Released here only inside our own rows; the theme's own containers are
 * untouched.
 */
.ags-row .ld-container,
.ags-row .container {
	width: 100%;
	max-width: none;
	padding-left: 0;
	padding-right: 0;
}

.ags-row .ld-row,
.ags-row .row {
	margin-left: 0;
	margin-right: 0;
}

.ags-row .vc_column_container,
.ags-row .vc_column-inner {
	padding-left: 0;
	padding-right: 0;
}

.ags-row .wpb_wrapper {
	margin: 0;
}

/* ---------------------------------------------------------------------------
   Buttons — shared by every section so the site has exactly three of them:
   solid green, outlined, and (in the header) the compact solid variant.
--------------------------------------------------------------------------- */

.ags-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 15px 24px;
	border: 1px solid transparent;
	border-radius: var(--ags-radius);
	font-family: inherit;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.04em;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color var(--ags-speed) var(--ags-ease),
	            border-color var(--ags-speed) var(--ags-ease),
	            color var(--ags-speed) var(--ags-ease);
}

.ags-btn:hover,
.ags-btn:focus-visible {
	text-decoration: none;
}

.ags-btn--primary {
	background-color: var(--ags-primary);
	border-color: var(--ags-primary);
	color: var(--ags-white);
}

.ags-btn--primary:hover,
.ags-btn--primary:focus-visible {
	background-color: var(--ags-secondary);
	border-color: var(--ags-secondary);
	color: var(--ags-white);
}

/* Translucent white over the hero photograph, with a grey rule. The grey is
   the secondary dark at low alpha rather than a new palette colour, so it
   stays tied to the theme's own colours. */
.ags-btn--ghost {
	background-color: rgba(255, 255, 255, 0.45);
	border-color: rgba(19, 31, 40, 0.32);
	color: var(--ags-black);
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
}

.ags-btn--ghost:hover,
.ags-btn--ghost:focus-visible {
	background-color: var(--ags-secondary);
	border-color: var(--ags-secondary);
	color: var(--ags-white);
}

/* The arrow glyph is about 2:1, so a 15px box rendered it barely 7px tall and
   it read as a chevron rather than an arrow. */
/* Outlined for dark grounds: no fill, white rule and white label. */
.ags-btn--outline-light {
	background-color: transparent;
	border-color: rgba(255, 255, 255, 0.55);
	color: var(--ags-white);
}

.ags-btn--outline-light:hover,
.ags-btn--outline-light:focus-visible {
	background-color: var(--ags-white);
	border-color: var(--ags-white);
	color: var(--ags-secondary);
}

.ags-btn__icon {
	width: 19px;
	height: 13px;
	transition: transform var(--ags-speed) var(--ags-ease);
}

.ags-btn:hover .ags-btn__icon {
	transform: translateX(4px);
}

@media (prefers-reduced-motion: reduce) {
	:root { --ags-speed: 0.001s; }
}

/* Outlined button on a light ground (the dark-ground one is --outline-light). */
.ags-btn--outline {
	background-color: transparent;
	border-color: rgba(19, 31, 40, .32);
	color: var(--ags-secondary);
}

.ags-btn--outline:hover,
.ags-btn--outline:focus-visible {
	background-color: var(--ags-secondary);
	border-color: var(--ags-secondary);
	color: var(--ags-white);
}
