/* ==========================================================================
   Site chrome — header (overlay/solid), nav, mobile dropdown, footer, reveal.
   Ported from designs/graedyn-landscaping/index.html. Behaviour in theme.js.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.gl-header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 50;
	background: var(--gl-stone-100);
	box-shadow: 0 6px 24px -18px rgba(31, 44, 34, .5);
	transition: background .3s ease, box-shadow .3s ease;
}
.gl-header__row {
	max-width: var(--gl-container);
	margin-inline: auto;
	padding: 18px var(--gl-pad);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

/* Logo */
.gl-logo {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	color: var(--gl-coal);
}
.gl-logo__img { height: 52px; width: auto; display: block; }

/* Tighten the bar on small screens so the fixed header eats less of the
   viewport (and stays under the --gl-header-h interior-page offset). */
@media (max-width: 600px) {
	.gl-header__row { padding-block: 13px; }
	.gl-logo__img { height: 44px; }
	/* Keep the token honest: 13px padding-block + 44px logo. */
	:root { --gl-header-h: 70px; }
}

/* Nav */
.gl-nav { display: flex; align-items: center; gap: 32px; }
.gl-nav__link {
	text-decoration: none;
	color: var(--gl-coal);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: .06em;
	text-transform: uppercase;
	transition: color .2s ease, opacity .2s ease;
}
.gl-nav__link:hover { color: var(--gl-forest); }

/* Contact */
.gl-header__contact { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.gl-header__contact-label { font-size: 12px; color: rgba(56, 61, 51, .6); }
.gl-header__phone {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	color: var(--gl-coal);
	font-weight: 500;
	letter-spacing: .03em;
}
.gl-header__phone svg { width: 14px; height: 14px; color: var(--gl-clay); }
.gl-header__phone:hover { opacity: .8; }

/* Burger */
.gl-burger { display: none; background: none; border: 0; cursor: pointer; color: var(--gl-coal); padding: 4px; }
.gl-burger svg { width: 26px; height: 26px; }

/* The header is kept solid on every page: the front-page hero sits behind a
   light cream panel, so a transparent header with white text was unreadable
   over it until scrolled. A deeper shadow once stuck reinforces the lift. */
.gl-header.is-stuck { box-shadow: 0 10px 30px -20px rgba(31, 44, 34, .55); }

/* --------------------------------------------------------------------------
   Mobile dropdown
   -------------------------------------------------------------------------- */
.gl-mobile {
	display: none;
	flex-direction: column;
	gap: 2px;
	background: var(--gl-stone-50);
	border-top: 1px solid var(--gl-stone-200);
	box-shadow: 0 18px 30px -20px rgba(31, 44, 34, .5);
	padding: 12px var(--gl-pad) 20px;
}
.gl-mobile.is-open { display: flex; }
.gl-mobile__link {
	text-decoration: none;
	color: var(--gl-coal);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: .05em;
	text-transform: uppercase;
	padding: 14px 0;
	border-bottom: 1px solid var(--gl-stone-200);
}
.gl-mobile__phone {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	color: var(--gl-forest);
	font-weight: 600;
	padding: 14px 0 4px;
}
.gl-mobile__phone svg { width: 15px; height: 15px; color: var(--gl-clay); }

@media (max-width: 1024px) {
	.gl-nav,
	.gl-header__contact { display: none; }
	.gl-burger { display: inline-flex; }
}

/* Above the burger breakpoint the dropdown must never show — guards the case
   where the menu was left open and the viewport is widened. */
@media (min-width: 1025px) {
	.gl-mobile,
	.gl-mobile.is-open { display: none; }
}

/* Push interior-page content below the fixed header (front page hero self-spaces). */
.graedyn-site-main--offset { padding-top: var(--gl-header-h); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.gl-footer {
	background: var(--gl-stone-100);
	border-top: 1px solid var(--gl-stone-200);
	padding-block: 36px 28px;
	font-size: 14px;
	color: rgba(56, 61, 51, .7);
}
.gl-footer__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px 32px;
}
.gl-footer__brand { display: flex; align-items: center; gap: 14px; flex: 0 1 auto; }
.gl-footer__logo { height: 56px; width: auto; flex: none; }
.gl-footer__brand-text { display: flex; flex-direction: column; gap: 10px; }
.gl-footer__tagline { display: block; font-size: 12px; max-width: 14rem; }
.gl-footer__social { display: flex; gap: 12px; }
.gl-footer__social-link { display: inline-flex; color: rgba(56, 61, 51, .6); transition: color .2s ease; }
.gl-footer__social-link:hover { color: var(--gl-forest); }
.gl-footer__social-link svg { display: block; }
/* The nav takes the slack between brand and contact and centres itself, so the
   row scales smoothly instead of wrapping into an awkward gap on mid widths. */
.gl-footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 26px; flex: 1 1 auto; }
.gl-footer__nav a {
	text-decoration: none;
	color: rgba(56, 61, 51, .7);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .05em;
	text-transform: uppercase;
	transition: color .2s ease;
}
.gl-footer__nav a:hover { color: var(--gl-forest); }
.gl-footer__contact { display: flex; flex-direction: column; align-items: flex-end; }
.gl-footer__phone { text-decoration: none; color: var(--gl-coal); font-family: var(--gl-font-serif); font-size: 18px; }
.gl-footer__phone:hover { color: var(--gl-forest); }
.gl-footer__email { text-decoration: none; color: rgba(56, 61, 51, .7); font-size: 12px; }
.gl-footer__email:hover { color: var(--gl-forest); }
.gl-footer__hours { display: flex; flex-direction: column; align-items: flex-end; text-align: right; margin-top: 10px; font-size: 12px; line-height: 1.5; color: rgba(56, 61, 51, .7); }
.gl-footer__hours-title {
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--gl-coal);
	margin-bottom: 2px;
}
.gl-footer__bar {
	margin-top: 24px;
	padding-top: 22px;
	border-top: 1px solid var(--gl-stone-200);
	text-align: center;
	font-size: 12px;
	color: rgba(56, 61, 51, .5);
}

/* Stack the footer into a centred column well before the header's burger
   breakpoint, so the 3-across row never wraps into the broken mid-width state. */
@media (max-width: 860px) {
	.gl-footer__row {
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: 28px;
	}
	.gl-footer__brand { flex-direction: column; text-align: center; gap: 12px; }
	.gl-footer__brand-text { align-items: center; }
	.gl-footer__tagline { max-width: 22rem; }
	.gl-footer__social { justify-content: center; }
	/* Span the full row so the links wrap within the viewport instead of sizing
	   to content and overflowing (the body clips overflow-x). */
	.gl-footer__nav { width: 100%; gap: 4px 22px; }
	/* Roomier tap targets for the nav links once they're the primary footer nav. */
	.gl-footer__nav a { padding: 8px 4px; }
	.gl-footer__contact { align-items: center; }
	.gl-footer__hours { align-items: center; text-align: center; }
}

/* --------------------------------------------------------------------------
   Scroll-reveal (opt-in: add .gl-reveal to any element)
   -------------------------------------------------------------------------- */
.gl-reveal {
	opacity: 0;
	transform: translateY(40px);
	transition: opacity .8s cubic-bezier(.16, 1, .3, 1), transform .8s cubic-bezier(.16, 1, .3, 1);
}
.gl-reveal.is-in { opacity: 1; transform: none; }
.gl-reveal--d1 { transition-delay: 100ms; }
.gl-reveal--d2 { transition-delay: 200ms; }
.gl-reveal--d3 { transition-delay: 300ms; }

@media (prefers-reduced-motion: reduce) {
	.gl-reveal { opacity: 1 !important; transform: none !important; }
}
