/* ==========================================================================
   Frog Glass design system
   Mobile first, one file, no framework.
   ========================================================================== */

/* Fonts (self hosted, variable) */
@font-face {
	font-family: "Montserrat";
	src: url("../fonts/montserrat-600-800.woff2") format("woff2");
	font-weight: 600 800;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Roboto";
	src: url("../fonts/roboto-400-700.woff2") format("woff2");
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
}

/* Tokens */
:root {
	--ink: #111917;
	--text: #2B3532;
	--muted: #5B6764;
	--green: #40A058;
	--green-deep: #1B6B3A;
	--red: #C21F2B;
	--red-bright: #FF1111;
	--tint: #E8F4F1;
	--mist: #F3F7F6;
	--line: #D6E2DF;
	--radius: 16px;
	--shadow: 0 10px 30px rgba(17, 25, 23, .10);
	--font-head: "Montserrat", "Helvetica Neue", Arial, sans-serif;
	--font-body: "Roboto", "Helvetica Neue", Arial, sans-serif;
}

/* Base */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.65;
	color: var(--text);
	background: #FFFFFF;
}

@media (min-width: 900px) {
	body {
		font-size: 18px;
	}
}

img {
	max-width: 100%;
	height: auto;
}

figure {
	margin: 0;
}

h1,
h2,
h3,
h4 {
	font-family: var(--font-head);
	font-weight: 800;
	line-height: 1.15;
	color: var(--ink);
	margin: 0 0 .5em;
}

h1 {
	font-size: clamp(2.2rem, 1.4rem + 3.2vw, 3.4rem);
}

h2 {
	font-size: clamp(1.65rem, 1.25rem + 1.8vw, 2.4rem);
}

h3 {
	font-size: clamp(1.2rem, 1.05rem + .7vw, 1.45rem);
	font-weight: 700;
}

p {
	margin: 0 0 1.2em;
}

a {
	color: var(--green-deep);
	text-decoration: underline;
	text-underline-offset: 2px;
}

a:hover {
	color: var(--ink);
}

/* Accessibility */
:focus-visible {
	outline: 3px solid #1B6B3A;
	outline-offset: 3px;
	border-radius: 4px;
}

.fg-hero :focus-visible,
.fg-section--dark :focus-visible,
.fg-footer :focus-visible {
	outline-color: #FFFFFF;
}

.fg-cta :focus-visible {
	outline-color: #111917;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	top: -80px;
	left: 16px;
	z-index: 100000;
	background: var(--ink);
	color: #FFFFFF;
	padding: 12px 20px;
	border-radius: 8px;
	font-weight: 700;
	text-decoration: none;
	transition: top .2s ease;
}

.skip-link:focus {
	top: 16px;
	color: #FFFFFF;
}

/* Layout */
.fg-container {
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: 20px;
}

@media (min-width: 768px) {
	.fg-container {
		padding-inline: 32px;
	}
}

.fg-section {
	padding: clamp(48px, 8vw, 96px) 0;
}

.fg-section--mist {
	background: var(--mist);
}

.fg-section--dark {
	background: var(--ink);
	color: #FFFFFF;
}

.fg-section--dark h2,
.fg-section--dark h3,
.fg-section--dark h4 {
	color: #FFFFFF;
}

.fg-section--dark a {
	color: #A9DFC0;
}

/* Prose */
.fg-prose {
	max-width: 70ch;
	overflow-wrap: anywhere;
}

.fg-prose--wide {
	max-width: 90ch;
}

.fg-prose--center {
	margin-inline: auto;
	text-align: center;
}

.fg-prose h2 {
	margin: 1.6em 0 .5em;
}

.fg-prose h3 {
	margin: 1.5em 0 .4em;
}

.fg-prose > :first-child,
.fg-prose h2:first-child,
.fg-prose h3:first-child {
	margin-top: 0;
}

.fg-prose ul li::marker,
.fg-prose ol li::marker {
	color: var(--green);
}

.fg-prose blockquote {
	margin: 1.5em 0;
	padding: 16px 20px;
	border-left: 4px solid var(--green-deep);
	background: var(--mist);
	border-radius: 0 12px 12px 0;
}

.fg-prose table {
	display: block;
	width: 100%;
	overflow-x: auto;
	border-collapse: collapse;
	margin: 1.5em 0;
}

.fg-prose th,
.fg-prose td {
	border: 1px solid var(--line);
	padding: 10px 14px;
	text-align: left;
}

.fg-prose th {
	background: var(--tint);
	font-family: var(--font-head);
}

.fg-lead {
	font-size: clamp(1.15rem, 2vw, 1.35rem);
	line-height: 1.5;
	margin: 1.2em 0 .8em;
}

/* Split (text and media) */
.fg-split {
	display: grid;
	gap: 48px;
	align-items: center;
}

@media (min-width: 900px) {
	.fg-split {
		grid-template-columns: 1fr 1fr;
	}

	.fg-split--reverse .fg-split__media {
		order: -1;
	}
}

.fg-split__media {
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
}

.fg-split__media img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

/* Trust strip (overlaps the hero bottom) */
.fg-trust {
	position: relative;
	z-index: 3;
	margin-top: -40px;
}

.fg-trust__list {
	list-style: none;
	margin-block: 0;
	background: #FFFFFF;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px 24px;
	padding-block: 24px;
}

@media (min-width: 900px) {
	.fg-trust__list {
		grid-template-columns: repeat(4, 1fr);
		padding-block: 28px;
	}
}

.fg-trust__list li {
	font-size: .95rem;
	line-height: 1.4;
}

.fg-trust__list strong {
	display: block;
	font-family: var(--font-head);
	font-size: 1.05rem;
	color: var(--green-deep);
	margin-bottom: 4px;
}

/* Cards */
.fg-cards {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 24px;
	grid-template-columns: 1fr;
}

@media (min-width: 640px) {
	.fg-cards {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1000px) {
	.fg-cards {
		grid-template-columns: repeat(3, 1fr);
	}

	.fg-cards--feature > .fg-card:first-child {
		grid-column: span 2;
	}
}

.fg-card {
	background: #FFFFFF;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	transition: transform .25s ease, box-shadow .25s ease;
}

.fg-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow);
}

.fg-card:focus-within {
	outline: 3px solid var(--green-deep);
	outline-offset: 3px;
}

.fg-card__link {
	display: block;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.fg-card__link:hover {
	color: inherit;
}

.fg-card__link:focus-visible {
	outline: none;
}

.fg-card__media {
	display: block;
	aspect-ratio: 3 / 2;
	overflow: hidden;
}

.fg-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fg-card__body {
	display: block;
	padding: 20px 24px 24px;
}

.fg-card__title {
	display: block;
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 1.15rem;
	line-height: 1.25;
	color: var(--ink);
	margin-bottom: 8px;
}

.fg-card__text {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	color: var(--muted);
	overflow-wrap: anywhere;
}

.fg-card__more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 12px;
	font-weight: 700;
	color: var(--green-deep);
}

.fg-card__more::after {
	content: "";
	width: 8px;
	height: 8px;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
	transform: rotate(45deg);
}

/* Chips */
.fg-chips {
	list-style: none;
	margin: 16px 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.fg-chips li {
	background: var(--tint);
	color: var(--green-deep);
	font-weight: 600;
	padding: 8px 16px;
	border-radius: 999px;
}

/* Areas */
.fg-areas {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 24px;
}

@media (min-width: 900px) {
	.fg-areas {
		grid-template-columns: repeat(3, 1fr);
	}
}

.fg-areas__item {
	background: var(--tint);
	border-radius: var(--radius);
	padding: 28px;
	overflow-wrap: anywhere;
}

.fg-areas__item h3 {
	margin-top: 0;
}

.fg-areas__item p:last-child {
	margin-bottom: 0;
}

/* FAQ */
.fg-faq {
	border-top: 1px solid var(--line);
}

.fg-faq__item {
	border-bottom: 1px solid var(--line);
	padding: 0 16px;
}

.fg-faq__item summary {
	list-style: none;
	min-height: 56px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 0;
	font-family: var(--font-head);
	font-weight: 700;
	color: var(--ink);
	cursor: pointer;
}

.fg-faq__item summary::-webkit-details-marker {
	display: none;
}

.fg-faq__item summary::after {
	content: "";
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	background:
		linear-gradient(var(--green-deep), var(--green-deep)) center / 16px 2px no-repeat,
		linear-gradient(var(--green-deep), var(--green-deep)) center / 2px 16px no-repeat;
}

.fg-faq__item[open] {
	background: var(--tint);
	border-radius: 12px;
}

.fg-faq__item[open] summary::after {
	background: linear-gradient(var(--green-deep), var(--green-deep)) center / 16px 2px no-repeat;
}

.fg-faq__item > :not(summary) {
	margin-top: 0;
	padding-bottom: 20px;
}

/* Gallery */
.fg-gallery {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}

@media (min-width: 768px) {
	.fg-gallery {
		grid-template-columns: repeat(3, 1fr);
	}
}

.fg-gallery img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 12px;
}

/* Contact (details card and form card) */
.fg-contact {
	display: grid;
	gap: 24px;
}

@media (min-width: 900px) {
	.fg-contact {
		grid-template-columns: 1fr 1fr;
		gap: 32px;
		align-items: start;
	}
}

.fg-contact__details,
.fg-contact__form {
	background: #FFFFFF;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: clamp(24px, 4vw, 40px);
}

.fg-contact__details h2,
.fg-contact__form h2 {
	margin-top: 0;
}

/* Sitemap */
.fg-sitemap .fg-menu {
	columns: 2;
	column-gap: 48px;
}

@media (min-width: 700px) {
	.fg-sitemap .fg-menu {
		columns: 3;
	}
}

.fg-sitemap .fg-menu__item {
	break-inside: avoid;
	margin-bottom: 14px;
}

.fg-sitemap .fg-menu__item > a {
	font-weight: 700;
}

.fg-sitemap .fg-submenu {
	list-style: none;
	margin: 6px 0 0;
	padding-left: 16px;
}

.fg-sitemap .fg-submenu__item {
	margin-bottom: 6px;
}

.fg-sitemap .fg-submenu-toggle {
	display: none;
}

/* More (centred wrapper) */
.fg-more {
	text-align: center;
	margin-top: clamp(24px, 4vw, 40px);
}

/* Posts list and post cards */
.fg-posts {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 24px;
	grid-template-columns: 1fr;
}

@media (min-width: 640px) {
	.fg-posts {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1000px) {
	.fg-posts {
		grid-template-columns: repeat(3, 1fr);
	}
}

.fg-post-card {
	background: #FFFFFF;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	transition: transform .25s ease, box-shadow .25s ease;
}

.fg-post-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow);
}

.fg-post-card:focus-within {
	outline: 3px solid var(--green-deep);
	outline-offset: 3px;
}

.fg-post-card__link {
	display: block;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.fg-post-card__link:hover {
	color: inherit;
}

.fg-post-card__link:focus-visible {
	outline: none;
}

.fg-post-card__media {
	display: block;
	aspect-ratio: 3 / 2;
	overflow: hidden;
}

.fg-post-card__media img,
.fg-post-card__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fg-post-card__body {
	display: block;
	padding: 20px 24px 24px;
}

.fg-post-card__title {
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 1.15rem;
	line-height: 1.25;
	color: var(--ink);
	margin: 0 0 6px;
	overflow-wrap: anywhere;
}

.fg-post-card__date {
	display: block;
	color: var(--muted);
	font-size: .9rem;
	margin-bottom: 10px;
}

.fg-post-card__text {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	color: var(--muted);
	margin: 0 0 12px;
	overflow-wrap: anywhere;
}

.fg-post-card__more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	color: var(--green-deep);
}

.fg-post-card__more::after {
	content: "";
	width: 8px;
	height: 8px;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
	transform: rotate(45deg);
}

/* Article (single post) */
.fg-container.fg-article {
	max-width: 820px;
	padding-top: clamp(32px, 5vw, 64px);
	padding-bottom: clamp(32px, 5vw, 64px);
}

.fg-article__featured {
	padding-top: clamp(28px, 5vw, 56px);
}

.fg-article__image,
.fg-article__featured img {
	display: block;
	width: 100%;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.fg-article__meta {
	margin: 12px 0 0;
	color: rgba(255, 255, 255, .9);
}

/* Details list */
.fg-details {
	margin: 0;
	display: grid;
	gap: 18px;
}

.fg-details__row {
	display: grid;
	gap: 4px;
}

.fg-details dt {
	color: var(--muted);
	font-size: .85rem;
	font-weight: 700;
}

.fg-details dd {
	margin: 0;
}

.fg-details dd a {
	overflow-wrap: anywhere;
}

/* Buttons */
.fg-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 24px;
	border: 2px solid transparent;
	border-radius: 999px;
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 1rem;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.fg-btn[disabled] {
	opacity: .7;
	cursor: default;
}

.fg-btn--primary {
	background: var(--red);
	color: #FFFFFF;
}

.fg-btn--primary:hover {
	background: #9E1A24;
	color: #FFFFFF;
}

.fg-btn--green {
	background: var(--green-deep);
	color: #FFFFFF;
}

.fg-btn--green:hover {
	background: #155830;
	color: #FFFFFF;
}

.fg-btn--ghost {
	background: transparent;
	border-color: var(--green-deep);
	color: var(--green-deep);
}

.fg-btn--ghost:hover {
	background: var(--green-deep);
	color: #FFFFFF;
}

.fg-btn--ghost-light {
	background: transparent;
	border-color: #FFFFFF;
	color: #FFFFFF;
}

.fg-btn--ghost-light:hover {
	background: #FFFFFF;
	color: var(--ink);
}

.fg-btn--dark {
	background: var(--ink);
	color: #FFFFFF;
}

.fg-btn--dark:hover {
	background: #233029;
	color: #FFFFFF;
}

.fg-btn--dark-outline {
	background: transparent;
	border-color: var(--ink);
	color: var(--ink);
}

.fg-btn--dark-outline:hover {
	background: var(--ink);
	color: #FFFFFF;
}

/* Forms */
.fg-form {
	display: grid;
	gap: 20px;
}

.fg-form__field {
	display: grid;
	gap: 8px;
}

.fg-form label {
	font-weight: 700;
	color: var(--ink);
}

.fg-form__req {
	color: var(--red);
}

.fg-form input[type="text"],
.fg-form input[type="email"],
.fg-form input[type="tel"],
.fg-form select,
.fg-form textarea {
	width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	border: 2px solid var(--line);
	border-radius: 12px;
	background: #FFFFFF;
	color: var(--text);
	font: inherit;
}

.fg-form textarea {
	min-height: 150px;
	resize: vertical;
}

.fg-form input:focus,
.fg-form select:focus,
.fg-form textarea:focus {
	border-color: var(--green-deep);
}

.fg-form__error {
	color: #A3121B;
	font-size: .9rem;
	font-weight: 700;
}

.fg-form__status {
	margin: 0 0 20px;
	padding: 14px 18px;
	border-radius: 12px;
	font-weight: 700;
}

.fg-form__status--success {
	background: #E4F3E9;
	color: #134E2C;
	border: 1px solid #1B6B3A;
}

.fg-form__status--error {
	background: #FBE7E9;
	color: #8F1D26;
	border: 1px solid #C21F2B;
}

.fg-form__submit {
	justify-self: start;
}

.fg-hp {
	position: absolute;
	left: -9999px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Top bar */
.fg-topbar {
	display: none;
	background: var(--ink);
	color: #FFFFFF;
	font-size: .9rem;
}

@media (min-width: 900px) {
	.fg-topbar {
		display: block;
	}
}

.fg-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 40px;
}

.fg-topbar__inner p {
	margin: 0;
}

.fg-topbar__phone {
	color: #FFFFFF;
	font-weight: 700;
	text-decoration: none;
}

.fg-topbar__phone:hover {
	color: #FFFFFF;
	text-decoration: underline;
}

/* Header */
.fg-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: #FFFFFF;
	border-top: 6px solid var(--red-bright);
	transition: box-shadow .2s ease;
}

.fg-header.is-scrolled {
	box-shadow: 0 6px 20px rgba(17, 25, 23, .12);
}

.fg-header__inner {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: 84px;
}

@media (min-width: 900px) {
	.fg-header__inner {
		min-height: 96px;
		gap: 24px;
	}
}

.fg-logo {
	flex: 0 0 auto;
}

.fg-logo img {
	display: block;
	height: 64px;
	width: auto;
}

@media (min-width: 900px) {
	.fg-logo img {
		height: 72px;
	}
}

.fg-header__actions {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 10px;
}

.fg-header__call,
.fg-header__quote {
	display: none;
}

@media (min-width: 900px) {
	.fg-header__quote {
		display: inline-flex;
		min-height: 44px;
		padding: 0 20px;
	}
}

@media (min-width: 1380px) {
	.fg-header__call {
		display: inline-flex;
		min-height: 44px;
		padding: 0 20px;
	}
}

/* Menu toggle (mobile) */
.fg-menu-toggle {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 48px;
	padding: 0 18px;
	background: transparent;
	border: 2px solid var(--line);
	border-radius: 999px;
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 1rem;
	color: var(--ink);
	cursor: pointer;
}

@media (min-width: 900px) {
	.fg-menu-toggle {
		display: none;
	}
}

.fg-menu-toggle__icon {
	width: 18px;
	height: 12px;
	background:
		linear-gradient(var(--ink), var(--ink)) top / 18px 2px no-repeat,
		linear-gradient(var(--ink), var(--ink)) center / 18px 2px no-repeat,
		linear-gradient(var(--ink), var(--ink)) bottom / 18px 2px no-repeat;
}

.fg-menu-toggle[aria-expanded="true"] .fg-menu-toggle__icon {
	background:
		linear-gradient(var(--ink), var(--ink)) center / 18px 2px no-repeat;
}

/* Nav */
.fg-nav {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 40;
	background: #FFFFFF;
	border-top: 1px solid var(--line);
	box-shadow: var(--shadow);
	padding: 12px 20px 20px;
	max-height: calc(100vh - 120px);
	overflow-y: auto;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px);
	transition: opacity .2s ease, transform .2s ease, visibility .2s;
}

.fg-nav.is-open {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.fg-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.fg-nav .fg-menu {
	display: grid;
	gap: 2px;
}

.fg-nav .fg-menu__item {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	border-bottom: 1px solid var(--mist);
}

.fg-nav .fg-menu__item:last-child {
	border-bottom: 0;
}

.fg-nav .fg-menu__item > a {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	min-height: 48px;
	padding: 8px 4px;
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 1.05rem;
	color: var(--ink);
	text-decoration: none;
}

.fg-nav .fg-menu__item > a[aria-current="page"] {
	color: var(--green-deep);
}

.fg-submenu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.fg-nav .fg-submenu {
	flex: 1 1 100%;
	max-height: 0;
	overflow: hidden;
	visibility: hidden;
	padding-left: 12px;
	transition: max-height .25s ease, visibility 0s linear .25s;
}

.fg-nav .has-sub.is-open > .fg-submenu {
	max-height: 600px;
	visibility: visible;
	transition: max-height .25s ease, visibility 0s;
}

.fg-nav .fg-submenu__item > a {
	display: flex;
	align-items: center;
	min-height: 48px;
	padding: 8px 4px;
	font-weight: 500;
	color: var(--text);
	text-decoration: none;
}

.fg-submenu-toggle {
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	border: 0;
	background: transparent;
	cursor: pointer;
	position: relative;
}

.fg-submenu-toggle::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 10px;
	height: 10px;
	border-right: 2px solid var(--green-deep);
	border-bottom: 2px solid var(--green-deep);
	transform: translate(-50%, -65%) rotate(45deg);
	transition: transform .2s ease;
}

.has-sub.is-open > .fg-submenu-toggle::before {
	transform: translate(-50%, -35%) rotate(225deg);
}

@media (min-width: 900px) {
	.fg-nav {
		position: static;
		margin-left: auto;
		padding: 0;
		border-top: 0;
		box-shadow: none;
		max-height: none;
		overflow: visible;
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.fg-header__actions {
		margin-left: 20px;
	}

	.fg-nav .fg-menu {
		display: flex;
		align-items: center;
		gap: 2px;
	}

	.fg-nav .fg-menu__item {
		position: relative;
		display: block;
		border-bottom: 0;
	}

	.fg-nav .fg-menu__item > a {
		display: inline-flex;
		min-height: 48px;
		padding: 6px 12px;
		border-radius: 8px;
		font-size: .98rem;
		font-weight: 600;
	}

	.fg-nav .fg-menu__item > a:hover {
		color: var(--green-deep);
	}

	.fg-nav .fg-menu__item.has-sub > a {
		padding-right: 26px;
		position: relative;
	}

	.fg-nav .fg-menu__item.has-sub > a::after {
		content: "";
		position: absolute;
		top: 50%;
		right: 10px;
		width: 7px;
		height: 7px;
		border-right: 2px solid currentColor;
		border-bottom: 2px solid currentColor;
		transform: translateY(-65%) rotate(45deg);
	}

	.fg-submenu-toggle {
		display: none;
	}

	.fg-nav .fg-submenu {
		position: absolute;
		top: 100%;
		left: 0;
		z-index: 30;
		min-width: 240px;
		padding: 8px;
		background: #FFFFFF;
		border-radius: 12px;
		box-shadow: var(--shadow);
		max-height: none;
		overflow: visible;
		opacity: 0;
		visibility: hidden;
		transform: translateY(8px);
		transition: opacity .2s ease, transform .2s ease, visibility .2s;
	}

	.fg-nav .fg-menu__item:hover > .fg-submenu,
	.fg-nav .fg-menu__item:focus-within > .fg-submenu {
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.fg-nav .fg-submenu__item > a {
		display: flex;
		align-items: center;
		min-height: 44px;
		padding: 8px 14px;
		border-radius: 8px;
		font-weight: 600;
		color: var(--ink);
	}

	.fg-nav .fg-submenu__item > a:hover {
		background: var(--mist);
		color: var(--green-deep);
	}
}

/* Hero */
.fg-hero {
	position: relative;
	display: flex;
	align-items: center;
	overflow: hidden;
	background: var(--ink);
	color: #FFFFFF;
	padding: clamp(72px, 10vw, 128px) 0;
}

.fg-hero--plain {
	min-height: 0;
	padding: clamp(56px, 8vw, 96px) 0;
	background:
		linear-gradient(115deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 120px),
		linear-gradient(65deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 160px),
		linear-gradient(135deg, #16503A 0%, #0E2A1B 55%, #111917 100%);
}

.fg-hero--home {
	min-height: 70vh;
	padding-bottom: clamp(112px, 14vw, 168px);
}

@media (min-width: 900px) {
	.fg-hero--home {
		min-height: 78vh;
	}
}

.fg-hero__media {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.fg-hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(120deg, rgba(17, 25, 23, .78), rgba(20, 54, 36, .72));
}

.fg-hero__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fg-hero__inner {
	position: relative;
	z-index: 1;
	width: 100%;
}

.fg-hero h1 {
	color: #FFFFFF;
	margin: 0 0 16px;
	max-width: 20ch;
}

.fg-hero .fg-lead {
	color: rgba(255, 255, 255, .94);
	max-width: 60ch;
	margin: 0;
}

.fg-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 28px;
}

.fg-badge {
	display: inline-block;
	margin: 0 0 16px;
	padding: 8px 16px;
	border-radius: 999px;
	background: var(--red-bright);
	color: #000000;
	font-family: var(--font-head);
	font-weight: 700;
	font-size: .85rem;
	letter-spacing: .02em;
}

.fg-breadcrumbs {
	margin-bottom: 16px;
	font-size: .9rem;
}

.fg-breadcrumbs ol {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.fg-breadcrumbs li + li::before {
	content: "/";
	margin-right: 8px;
	color: rgba(255, 255, 255, .6);
}

.fg-breadcrumbs a {
	color: #DCEFE4;
}

.fg-breadcrumbs a:hover {
	color: #FFFFFF;
}

.fg-breadcrumbs span[aria-current="page"] {
	color: rgba(255, 255, 255, .85);
}

/* CTA band */
.fg-cta {
	background: var(--red-bright);
	color: #000000;
	padding: clamp(40px, 6vw, 72px) 0;
}

.fg-cta__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px 32px;
}

.fg-cta__text {
	max-width: 60ch;
}

.fg-cta h2 {
	color: #000000;
	margin: 0 0 8px;
}

.fg-cta p {
	margin: 0;
	font-size: 1.1rem;
}

.fg-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* Footer */
.fg-footer {
	background: var(--ink);
	color: #C7D6D0;
}

.fg-footer__grid {
	display: grid;
	gap: 40px;
	padding: clamp(48px, 7vw, 80px) 0;
}

@media (min-width: 700px) {
	.fg-footer__grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (min-width: 1000px) {
	.fg-footer__grid {
		grid-template-columns: 1.2fr 1fr 1fr 1fr;
	}
}

.fg-footer__logo-tile {
	display: inline-block;
	background: #FFFFFF;
	border-radius: 12px;
	padding: 10px 14px;
}

.fg-footer__logo-tile img {
	display: block;
	height: 52px;
	width: auto;
}

.fg-footer__tagline {
	margin: 14px 0 0;
	font-family: var(--font-head);
	font-weight: 700;
	color: #FFFFFF;
}

.fg-footer__heading {
	color: #FFFFFF;
	font-size: 1.05rem;
	margin: 0 0 16px;
}

.fg-footer p {
	margin: 0 0 12px;
}

.fg-footer a {
	color: #C7D6D0;
	text-decoration: none;
}

.fg-footer a:hover {
	color: #FFFFFF;
	text-decoration: underline;
}

.fg-footer .fg-details dt {
	color: #8FA89E;
}

.fg-footer .fg-details dd a {
	color: #FFFFFF;
	text-decoration: underline;
}

.fg-footer__links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
}

.fg-footer__social {
	margin-top: 16px;
}

.fg-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, .14);
}

.fg-footer__bottom-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 24px;
	padding: 20px 0;
	font-size: .92rem;
}

.fg-footer__copy {
	margin: 0;
}

.fg-footer__menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
}

/* Mobile sticky call bar */
.fg-callbar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 60;
	display: flex;
	gap: 12px;
	padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
	background: rgba(255, 255, 255, .97);
	box-shadow: 0 -6px 20px rgba(17, 25, 23, .15);
}

.fg-callbar .fg-btn {
	flex: 1;
}

@media (min-width: 900px) {
	.fg-callbar {
		display: none;
	}
}

@media (max-width: 899.98px) {
	body.fg-has-callbar {
		padding-bottom: 76px;
	}

	body.fg-nav-open {
		overflow: hidden;
	}
}

/* Pagination */
.pagination {
	margin-top: 48px;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 48px;
	min-height: 48px;
	padding: 0 16px;
	border: 1px solid var(--line);
	border-radius: 999px;
	font-family: var(--font-head);
	font-weight: 700;
	color: var(--ink);
	text-decoration: none;
}

.page-numbers:hover:not(.current):not(.dots) {
	border-color: var(--green-deep);
	color: var(--green-deep);
}

.page-numbers.current {
	background: var(--green-deep);
	border-color: var(--green-deep);
	color: #FFFFFF;
}

.page-numbers.dots {
	border-color: transparent;
}

/* Generic theme image class */
.fg-img {
	border-radius: var(--radius);
}

.fg-card__media .fg-img,
.fg-post-card__media .fg-img {
	border-radius: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
	}

	.fg-card:hover,
	.fg-post-card:hover {
		transform: none;
	}
}

/* Print */
@media print {
	.fg-topbar,
	.fg-header,
	.fg-callbar,
	.fg-cta,
	.fg-footer,
	.fg-hero__media,
	.fg-menu-toggle {
		display: none !important;
	}

	body {
		color: #000000;
		background: #FFFFFF;
		padding-bottom: 0;
	}

	.fg-hero {
		padding: 24px 0;
		color: #000000;
		background: none;
	}

	.fg-hero h1,
	.fg-hero .fg-lead {
		color: #000000;
	}

	a {
		color: #000000;
		text-decoration: underline;
	}
}

/* Review fixes */
@media (min-width: 900px) {
	.fg-nav .fg-menu__item > a {
		white-space: nowrap;
		padding-left: 10px;
		padding-right: 10px;
		font-size: .95rem;
	}

	.fg-nav .fg-menu__item.has-sub > a {
		padding-right: 24px;
	}
}

.fg-card__link {
	display: flex;
	flex-direction: column;
}

@media (min-width: 1000px) {
	.fg-cards--feature > .fg-card:first-child .fg-card__media {
		aspect-ratio: 16 / 9;
	}

	.fg-cards--feature > .fg-card:nth-child(2) .fg-card__media {
		flex: 1 1 auto;
		aspect-ratio: auto;
		min-height: 200px;
	}
}
