/* ==========================================================================
   The Green Guard Turf — shared base styles (foundation)
   Loaded by every page BEFORE any page CSS (/assets/css/style.css or
   /assets/css/pages/<name>.css). Header/footer/mobile-menu styles are scoped
   under .gg-* / .gt-* so they never fight page styles.
   ========================================================================== */

/* ---------- Design tokens (from the Elementor kit) ---------- */
:root {
	--gg-dark: #1B1B1B;          /* accent_6 — page background        */
	--gg-green: #10551F;         /* accent_2 — primary green          */
	--gg-lime: #84BD00;          /* accent_4 — lime accent            */
	--gg-cream: #F7F8ED;         /* accent_3 — cream                  */
	--gg-white: #ffffff;         /* accent_1 / accent_5               */
	--gg-border-soft: rgba(247, 248, 237, 0.30); /* #F7F8ED4D         */
	--gg-font: 'Montserrat', sans-serif;
	--gg-font-poppins: 'Poppins', sans-serif;
	--gg-font-inter: 'Inter', sans-serif;
	--gg-radius: 6px;
	--gg-radius-lg: 24px;
	--gg-site-max: 1280px;
	/* responsive type scale (kit vamtam_h3 / h4 / h6 / small)   */
	--gg-h3-size: 32px;
	--gg-h4-size: 24px;
	--gg-h6-size: 14px;
	--gg-small-size: 13px;
	--gg-header-h: 123px;
}
@media (max-width: 1024px) {
	:root { --gg-h3-size: 25px; --gg-h4-size: 22px; --gg-h6-size: 12px; }
}
@media (max-width: 767px) {
	:root { --gg-h3-size: 21px; --gg-h4-size: 19px; }
}

/* ---------- Minimal reset (kept tame so page CSS stays in charge) ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html, body {
	max-width: 100%;
	overflow-x: hidden;
}

body {
	margin: 0;
	background-color: var(--gg-dark);
	font-family: var(--gg-font);
	font-size: 14px;
	line-height: 1.4;
	color: var(--gg-white);
	-webkit-font-smoothing: antialiased;
}

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

/* ---------- Keyboard accessibility (invisible until focused) ---------- */

/* Skip-to-content link. Kept position:fixed and off-screen so it never takes
   part in layout — no page can shift because of it. It becomes visible only
   when a keyboard user tabs to it, which is the first stop on every page. */
.gg-skip {
	position: fixed;
	top: 0;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
	z-index: 100000;
	font-family: var(--gg-font);
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
}
.gg-skip:focus {
	left: 16px;
	top: 16px;
	width: auto;
	height: auto;
	overflow: visible;
	padding: 14px 22px;
	background-color: var(--gg-green);
	color: var(--gg-white);
	border: 2px solid var(--gg-white);
	border-radius: var(--gg-radius);
	box-shadow: 0 4px 18px rgba(0, 0, 0, .45);
}

/* The skip-link landing point must never draw a ring of its own. */
#gg-content-start:focus,
#gg-content-start:focus-visible { outline: none; }

/* Visible focus ring for keyboard users only (:focus-visible never matches a
   mouse click, so nothing changes visually for pointer users). The ring is a
   pair — light inner, dark outer — so it stays visible on this site's dark
   chrome AND on its white content sections, where a single colour would not. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
	outline: 2px solid var(--gg-white);
	outline-offset: 2px;
	box-shadow: 0 0 0 5px var(--gg-green);
	border-radius: 2px;
}

/* ---------- Shared buttons ---------- */
.gg-btn {
	display: inline-block;
	font-family: var(--gg-font);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.1;
	text-decoration: none;
	border: none;
	border-radius: var(--gg-radius);
	padding: 17px 28px;
	cursor: pointer;
	color: var(--gg-white);
	transition: background-color .3s ease, color .3s ease;
	white-space: nowrap;
}
.gg-btn--lime { background-color: var(--gg-lime); }
.gg-btn--lime:hover,
.gg-btn--lime:focus { background-color: var(--gg-green); color: var(--gg-white); }
.gg-btn--green { background-color: var(--gg-green); }
.gg-btn--green:hover,
.gg-btn--green:focus { background-color: var(--gg-lime); color: var(--gg-white); }

/* small uppercase lime label (footer "CALL US" / "ADDRESS" / hours) */
.gg-label {
	font-family: var(--gg-font);
	font-size: var(--gg-h6-size);
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0;
	text-transform: uppercase;
	color: var(--gg-lime);
}

/* ==========================================================================
   HEADER — desktop (floating over the dark page, transparent until stuck)
   ========================================================================== */
.gg-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 990;
	background-color: transparent;
	transition: background-color .3s ease;
}
.gg-header.is-stuck { background-color: var(--gg-dark); }

.gg-header__inner {
	display: flex;
	align-items: center;
	min-height: var(--gg-header-h);
	padding: 0 30px;
}

.gg-header__logo {
	flex: 0 0 330px;
	display: flex;
	justify-content: center;
}
.gg-header__logo a { display: block; line-height: 0; }
.gg-header__logo img {
	width: 100px;
	height: auto;
	display: block;
	margin: 10px 0;
}

.gg-header__nav {
	flex: 1 1 auto;
	display: flex;
	justify-content: center;
	margin-right: 46px;
}
.gg-nav {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	max-width: 640px;
}
.gg-nav li { margin: 0; }
.gg-nav a {
	display: block;
	font-family: var(--gg-font);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.1;
	color: var(--gg-white);
	text-decoration: none;
	padding: 10px 15px;
	margin: 1px 2.5px;
	border-radius: var(--gg-radius);
	transition: background-color .3s ease, color .3s ease;
	white-space: nowrap;
}
.gg-nav a:hover,
.gg-nav a:focus { background-color: var(--gg-cream); color: #000; }
.gg-nav a.active { background-color: var(--gg-lime); color: #000; }

/* --- Services dropdown (desktop) ---------------------------------------
   Closed, the panel is display:none: it costs nothing in layout, so the
   header renders byte-identically to a nav without it, and it cannot be
   tabbed into. It opens on :hover for pointers and on :focus-within for the
   keyboard — focusing the "Services" link itself puts :focus-within on the
   <li>, which reveals the panel and folds its two links into the tab order;
   tabbing past the last one drops :focus-within and closes it again. The
   panel is absolutely positioned against its own <li>, so it stays anchored
   to "Services" even on the second row of the wrapped 1440px nav.
   Colours/metrics mirror the owner's live submenu styling. */
.gg-nav .gg-has-sub { position: relative; }

.gg-nav .gg-subnav {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 1000;
	margin: 0;
	padding: 8px 0;
	min-width: 190px;
	list-style: none;
	background-color: #121212;
	border: 1px solid #262626;
	border-radius: 8px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
}
.gg-nav .gg-has-sub:hover > .gg-subnav,
.gg-nav .gg-has-sub:focus-within > .gg-subnav { display: block; }

.gg-nav .gg-subnav li { margin: 0; }
.gg-nav .gg-subnav a {
	display: block;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--gg-white);
	background-color: transparent;
	padding: 9px 18px;
	margin: 0;
	border-radius: 0;
	white-space: nowrap;
	transition: color .2s ease;
}
.gg-nav .gg-subnav a:hover,
.gg-nav .gg-subnav a:focus,
.gg-nav .gg-subnav a.active { background-color: transparent; color: #8ee000; }
/* keyboard focus ring is the site-wide one from the :focus-visible block above */

.gg-header__cta {
	flex: 0 0 330px;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 21px;
}

/* spacer keeps page flow below the fixed header (hidden on the home page) */
.gg-header-spacer { height: var(--gg-header-h); }

/* ==========================================================================
   HEADER — mobile / tablet bar (<=1024px)
   ========================================================================== */
.gg-mobilebar { display: none; }

@media (max-width: 1024px) {
	.gg-header,
	.gg-header-spacer { display: none; }

	.gg-mobilebar {
		display: block;
		position: sticky;
		top: 0;
		z-index: 900;
		background-color: var(--gg-dark);
	}
	.gg-mobilebar__inner {
		min-height: 70px;
		display: flex;
		align-items: center;
		padding: 0 20px;
	}
	.gg-mobilebar__inner a { display: block; line-height: 0; }
	.gg-mobilebar__inner img {
		width: 100px;
		height: auto;
		display: block;
		margin: 10px 0;
	}
}
@media (max-width: 767px) {
	.gg-mobilebar__inner { min-height: 60px; }
}

/* ==========================================================================
   Mobile/iPad full-screen nav — identical gtBtn/gtMenu pattern & styles as
   the original site (duplicated from /assets/css/style.css so pages that do
   not load style.css still get them; rules are identical, so double-loading
   is harmless).
   ========================================================================== */
.gt-toggle,
.gt-overlay {
	display: none !important;
}

@media (max-width: 1024px) {
	.gt-toggle {
		position: fixed;
		top: 50px;
		right: 25px;
		width: 60px;
		height: 60px;
		background: #84bd00;
		border-radius: 50%;
		display: flex !important;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		cursor: pointer;
		z-index: 10000;
		box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
		transition: transform 0.3s cubic-bezier(0.77, 0, 0.175, 1);
	}

	.gt-bar {
		width: 26px;
		height: 2px;
		background: #ffffff;
		margin: 3px 0;
		transition: 0.5s cubic-bezier(0.77, 0, 0.175, 1);
	}

	.gt-toggle.active .gt-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
	.gt-toggle.active .gt-bar:nth-child(2) { opacity: 0; }
	.gt-toggle.active .gt-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

	.gt-overlay {
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100dvh;
		display: flex !important;
		justify-content: center;
		align-items: center;
		z-index: 9999;
		pointer-events: none;
		transition: visibility 0.8s;
	}

	.gt-overlay.open {
		visibility: visible;
		pointer-events: auto;
		transition: visibility 0s;
	}

	.gt-bg {
		position: absolute;
		top: 55px;
		right: 55px;
		width: 10px;
		height: 10px;
		background: #10551f;
		border-radius: 50%;
		transform: translate(50%, -50%) scale(0);
		transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
		z-index: -1;
	}

	.gt-overlay.open .gt-bg { transform: translate(50%, -50%) scale(500); }

	.gt-content { position: relative; z-index: 2; }

	.gt-menu-list {
		list-style: none;
		text-align: center;
		padding: 0;
		margin: 0;
	}

	.gt-item { margin: 15px 0; overflow: hidden; }

	.gt-link {
		display: inline-block;
		color: #ffffff;
		text-decoration: none;
		font-size: clamp(1.4rem, 6vw, 2.2rem);
		font-weight: 800;
		text-transform: uppercase;
		opacity: 0;
		transform: translateY(110%);
		transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.5s;
	}

	.gt-overlay.open .gt-link {
		opacity: 1;
		transform: translateY(0);
		transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.8s;
	}

	.gt-overlay.open .gt-item:nth-child(1) .gt-link { transition-delay: 0.3s; }
	.gt-overlay.open .gt-item:nth-child(2) .gt-link { transition-delay: 0.4s; }
	.gt-overlay.open .gt-item:nth-child(3) .gt-link { transition-delay: 0.5s; }
	.gt-overlay.open .gt-item:nth-child(4) .gt-link { transition-delay: 0.6s; }
	.gt-overlay.open .gt-item:nth-child(5) .gt-link { transition-delay: 0.7s; }
	.gt-overlay.open .gt-item:nth-child(6) .gt-link { transition-delay: 0.8s; }
	.gt-overlay.open .gt-item:nth-child(7) .gt-link { transition-delay: 0.9s; }

	.gt-item:nth-child(1) .gt-link { transition-delay: 0.3s; }
	.gt-item:nth-child(2) .gt-link { transition-delay: 0.2s; }
	.gt-item:nth-child(3) .gt-link { transition-delay: 0.1s; }

	.gt-link:hover {
		color: #84cc16;
		letter-spacing: 3px;
		transition: 0.3s ease;
	}

	/* Services sub-items. They carry .gt-link, so they inherit the reveal
	   animation, the tap-to-close handler and main.js's tabindex handling
	   for free; .gt-link--sub only steps the type down a level. Their own
	   overflow:hidden gives each one the same slide-up mask as .gt-item.
	   NOTE: 10 of the 12 pages load /assets/css/style.css AFTER this file,
	   and it re-declares `.gt-link` (font-size with !important in the two
	   narrow/short media queries below). `.gt-sublist .gt-link--sub` is one
	   class more specific than that plain `.gt-link`, so these win in both
	   load orders — do not flatten these selectors to `.gt-link--sub`. */
	.gt-sublist {
		list-style: none;
		margin: 12px 0 0;
		padding: 0;
	}
	.gt-subitem { margin: 10px 0; overflow: hidden; }
	.gt-sublist .gt-link--sub {
		font-size: clamp(0.95rem, 3.6vw, 1.25rem);
		font-weight: 700;
		letter-spacing: 1px;
		color: rgba(255, 255, 255, 0.72);
	}
	.gt-sublist .gt-link--sub:hover { color: #84cc16; }

	.gt-footer {
		position: absolute;
		bottom: 40px;
		left: 50%;
		transform: translateX(-50%);
		color: rgba(255, 255, 255, 0.3);
		font-size: 10px;
		letter-spacing: 2px;
		opacity: 0;
		transition: opacity 0.4s;
	}

	.gt-overlay.open .gt-footer { opacity: 1; transition-delay: 1s; }

	/* iPad portrait + large mobile offsets (matches original style.css) */
	.gt-toggle {
		top: calc(env(safe-area-inset-top, 0px) + 14px);
		right: clamp(14px, 3vw, 25px);
		width: 80px;
		height: 80px;
	}
	.gt-bg {
		top: calc(env(safe-area-inset-top, 0px) + 22px);
		right: clamp(34px, 5vw, 55px);
	}
}

@media (max-width: 430px) {
	.gt-toggle { width: 50px; height: 50px; }
	.gt-bar { width: 22px; }
	.gt-link { font-size: clamp(1.15rem, 7vw, 1.5rem) !important; }
	.gt-sublist .gt-link--sub { font-size: clamp(0.85rem, 4.4vw, 1.05rem) !important; }
	.gt-sublist { margin-top: 8px; }
	.gt-subitem { margin: 7px 0; }
}

@media (max-height: 500px) and (orientation: landscape) {
	.gt-link { font-size: clamp(0.95rem, 3.2vw, 1.2rem) !important; }
	.gt-sublist .gt-link--sub { font-size: clamp(0.8rem, 2.6vw, 0.95rem) !important; }
	.gt-item { margin: 8px 0; }
	.gt-sublist { margin-top: 6px; }
	.gt-subitem { margin: 5px 0; }
	.gt-toggle { top: calc(env(safe-area-inset-top, 0px) + 10px); }
}

/* ==========================================================================
   FOOTER — pre-footer CTA + footer inside one rounded green panel
   ========================================================================== */
.gg-footer {
	padding: 0 50px;
	margin-bottom: 40px;
}

.gg-footer__panel {
	background-color: var(--gg-green);
	border-radius: var(--gg-radius-lg);
	padding: 40px 30px 35px;
}

.gg-footer__in {
	max-width: var(--gg-site-max);
	margin: 0 auto;
}

/* --- row 1: CTA / logo / info --- */
.gg-footer__top {
	display: flex;
	justify-content: space-between;
	align-items: stretch;
	margin-bottom: 47px;
	gap: 40px;
}

.gg-footer__cta { flex: 0 0 440px; max-width: 440px; }

.gg-footer__heading {
	font-family: var(--gg-font);
	font-size: var(--gg-h3-size);
	font-weight: 600;
	line-height: 1.2;
	color: var(--gg-white);
	margin: 0 0 45px;
}

.gg-footer__actions {
	display: flex;
	align-items: flex-start;
	gap: 40px;
}
.gg-footer__actions .gg-btn { padding: 16px 28px; }

.gg-callus {
	display: flex;
	flex-direction: column;
	gap: 5px;
}
.gg-callus__phone {
	font-family: var(--gg-font);
	font-size: var(--gg-h4-size);
	font-weight: 600;
	line-height: 1.2;
	color: var(--gg-white);
	text-decoration: none;
	padding-left: 10px;
	transition: color .3s ease;
}
.gg-callus__phone:hover { color: var(--gg-white); }

.gg-footer__logo { flex: 0 1 auto; }
.gg-footer__logo a { display: block; line-height: 0; }
.gg-footer__logo img {
	width: 100%;
	max-width: 145px;
	height: auto;
	display: block;
}

.gg-footer__info {
	flex: 0 0 320px;
	max-width: 320px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 20px;
}
.gg-info .gg-label { margin-bottom: 5px; }
.gg-info p {
	font-family: var(--gg-font);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	color: var(--gg-white);
	margin: 0;
}
.gg-info a {
	color: var(--gg-white);
	text-decoration: none;
	transition: color .3s ease;
}
.gg-info a:hover { color: var(--gg-lime); }

/* --- row 2: nav links + social icons --- */
.gg-footer__mid {
	display: flex;
	justify-content: space-between;
	border-top: 1px solid var(--gg-border-soft);
	border-bottom: 1px solid var(--gg-border-soft);
	padding: 30px 0;
	margin-bottom: 42px;
	gap: 0;
}

.gg-footer__nav { flex: 0 0 70%; max-width: 70%; }
.gg-footer__nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	row-gap: 10px;
}
.gg-footer__nav a {
	display: inline-block;
	font-family: var(--gg-font);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.1;
	color: var(--gg-white);
	text-decoration: none;
	padding: 10px 0;
	margin: 0 40px;
	transition: color .3s ease;
	white-space: nowrap;
}
.gg-footer__nav li:first-child a { margin-left: 0; }
.gg-footer__nav li:last-child a { margin-right: 0; }
.gg-footer__nav a:hover,
.gg-footer__nav a:focus,
.gg-footer__nav a.active { color: var(--gg-lime); }

.gg-footer__social {
	flex: 0 0 25%;
	max-width: 25%;
	display: flex;
	justify-content: flex-start;
	align-items: flex-start;
	gap: 20px;
	padding-top: 0;
	margin-left: -30px;
}
.gg-footer__social a {
	display: block;
	padding: 10px;
	line-height: 0;
}
.gg-footer__social svg {
	width: 16px;
	height: 16px;
	fill: var(--gg-lime);
	transition: fill .3s ease, transform .3s ease;
}
.gg-footer__social a:hover svg {
	fill: var(--gg-cream);
	transform: scale(1.15);
}

/* --- row 3: copyright --- */
.gg-footer__bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.gg-footer__bottom p {
	font-family: var(--gg-font);
	font-size: var(--gg-small-size);
	font-weight: 400;
	line-height: 1.4;
	color: var(--gg-white);
	margin: 0;
}
.gg-footer__bottom a {
	color: var(--gg-white);
	text-decoration: none;
	transition: color .3s ease;
}
.gg-footer__bottom a:hover { color: var(--gg-lime); }

/* --- scroll-to-top ("top" text, bottom-left, like the original theme) --- */
.gg-scrolltop {
	/* sits in flow at the very end of the page, like the original theme */
	width: max-content;
	padding: 5px 10px 21px 20px;
	cursor: pointer;
}
#scroll-to-top-text {
	font-family: var(--gg-font);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.1;
	color: var(--gg-white);
}

/* --- footer responsive --- */
@media (max-width: 1024px) {
	.gg-footer { padding: 0 30px; }
	.gg-footer__panel { padding: 60px 20px 25px; }
	.gg-footer__top { flex-wrap: wrap; gap: 20px; margin-bottom: 20px; }
	.gg-footer__cta { flex: 1 1 60%; max-width: none; }
	.gg-footer__info { flex: 1 1 30%; max-width: none; justify-content: flex-start; }
	.gg-footer__heading { margin-bottom: 30px; }
	.gg-footer__mid { padding: 10px 0; margin-bottom: 10px; flex-wrap: wrap; gap: 20px; }
	.gg-footer__nav { flex: 1 1 100%; max-width: none; }
	.gg-footer__nav a { margin: 0 15px; }
	.gg-footer__nav li:first-child a { margin-left: 0; }
	.gg-footer__social { flex: 1 1 100%; max-width: none; margin-left: -10px; padding-top: 0; }
}

@media (max-width: 767px) {
	.gg-footer { padding: 0 20px; }
	.gg-footer__panel { padding: 40px 20px 25px; }
	.gg-footer__top { flex-direction: column; gap: 20px; margin-bottom: 10px; }
	.gg-footer__cta { flex: 1 1 auto; }
	.gg-footer__heading { max-width: 80%; margin-bottom: 20px; }
	.gg-footer__actions { flex-wrap: wrap; gap: 20px; }
	.gg-footer__info { flex: 1 1 auto; gap: 20px; }
	.gg-footer__logo img { max-width: 130px; }
	.gg-footer__mid { padding: 20px 0; gap: 10px; }
	.gg-footer__nav a { margin: 0 10px; }
	.gg-footer__nav li:first-child a { margin-left: 0; }
	.gg-footer__social { padding-top: 0; }
	.gg-footer__social a { padding: 10px 10px 10px 0; }
	.gg-footer__bottom { flex-wrap: wrap; gap: 10px; }
}
