/* ===========================================================================
   Tandem Landscaping — site chrome (topbar / header / drawer / footer / reveal)
   Ported from the mockup (designs/tandem-landscaping/index.html). Element
   IDs/classes match header.php / footer.php / assets/js/theme.js.
   Breakpoints: sm 640 · md 768 · lg 1024 · xl 1280 (matching the mockup).
   =========================================================================== */

/* --- Topbar (dark utility bar, hidden on mobile) --------------------------- */
.tl-topbar {
	display: none;
	background: var(--tl-slate);
	color: var(--tl-light-text);
	font-size: 0.875rem;
}

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

.tl-topbar__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-block: 0.625rem;
}

.tl-topbar__area,
.tl-topbar__phone {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	flex-shrink: 0;
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.tl-topbar__area:hover {
	color: #fff;
}

.tl-topbar__area .material-symbols-outlined,
.tl-topbar__phone .material-symbols-outlined {
	color: var(--tl-olive);
	font-size: 1rem;
}

.tl-topbar__pill {
	display: none;
	align-items: center;
	gap: 0.75rem;
	background: var(--tl-olive);
	color: #fff;
	border-radius: 999px;
	padding: 0.25rem 0.375rem 0.25rem 1rem;
	text-decoration: none;
}

@media (min-width: 1024px) {
	.tl-topbar__pill {
		display: inline-flex;
	}
}

.tl-topbar__pill-text {
	font-family: var(--tl-font-display);
	font-weight: 500;
	font-size: 0.875rem;
}

.tl-topbar__pill-chip {
	background: var(--tl-slate);
	color: #fff;
	border-radius: 999px;
	padding: 0.25rem 0.75rem;
	font-family: var(--tl-font-display);
	font-weight: 600;
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	white-space: nowrap;
}

/* --- Header ---------------------------------------------------------------- */
.tl-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--tl-white);
	border-bottom: 1px solid var(--tl-line);
	transition: box-shadow 0.2s ease;
}

.tl-header.is-stuck {
	box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
}

.tl-header__row {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	min-height: 76px;
	padding-block: 0.75rem;
}

.tl-logo {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	/* Let the logo shrink rather than shove the burger off-screen on narrow
	   viewports (body has overflow-x: clip, so overflow = clipped). */
	flex-shrink: 1;
	min-width: 0;
	text-decoration: none;
}

/* The full logo (wordmark + mark), 631x160 source. */
.tl-logo__mark {
	height: 44px;
	width: auto;
	max-width: 100%;
	object-fit: contain;
}

.tl-nav {
	display: none;
	align-items: center;
	/* Seven items since "Home" was added: tighter at 1024px, full at ~1700px. */
	gap: clamp(1rem, 1.6vw, 1.75rem);
}

@media (min-width: 1024px) {
	.tl-nav {
		display: flex;
		flex: 1;
		justify-content: center;
	}
}

.tl-nav__link {
	color: var(--tl-slate-2);
	text-decoration: none;
	font-family: var(--tl-font-display);
	font-weight: 500;
	font-size: 0.93rem;
	white-space: nowrap;
	transition: color 0.2s ease;
}

.tl-nav__link:hover,
.tl-nav__link.is-current {
	color: var(--tl-olive);
}

.tl-header__actions {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-left: auto;
	flex-shrink: 0;
}

.tl-header__hours {
	display: none;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.875rem;
	color: var(--tl-body-text);
}

@media (min-width: 1280px) {
	.tl-header__hours {
		display: flex;
	}
}

.tl-header__hours .material-symbols-outlined {
	color: var(--tl-olive);
}

.tl-header__hours strong {
	font-family: var(--tl-font-display);
	font-weight: 600;
	color: var(--tl-slate-2);
}

.tl-header__cta {
	display: none;
}

@media (min-width: 640px) {
	.tl-header__cta {
		display: inline-flex;
	}
}

/* --- Burger ---------------------------------------------------------------- */
.tl-burger {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 0;
	background: transparent;
	border: 0;
	cursor: pointer;
}

@media (min-width: 1024px) {
	.tl-burger {
		display: none;
	}
}

.tl-burger span {
	display: block;
	height: 2px;
	width: 24px;
	margin-inline: auto;
	background: var(--tl-slate-2);
	border-radius: 2px;
}

/* --- Mobile drawer + scrim ------------------------------------------------- */
.tl-scrim {
	position: fixed;
	inset: 0;
	z-index: 110;
	background: rgba(0, 0, 0, 0.4);
	opacity: 0;
	transition: opacity 0.25s ease;
}

.tl-scrim:not([hidden]) {
	opacity: 1;
}

.tl-mobile {
	position: fixed;
	top: 0;
	right: 0;
	z-index: 120;
	width: min(320px, 82vw);
	height: 100%;
	padding: 5rem 1.75rem 2rem;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	background: var(--tl-white);
	box-shadow: -12px 0 30px rgba(0, 0, 0, 0.12);
	transform: translateX(100%);
	transition: transform 0.28s ease;
}

.tl-mobile.is-open {
	transform: translateX(0);
}

.tl-mobile__close {
	position: absolute;
	top: 1rem;
	right: 1.25rem;
	width: 40px;
	height: 40px;
	font-size: 1.75rem;
	line-height: 1;
	background: transparent;
	border: 0;
	color: var(--tl-slate-2);
	cursor: pointer;
}

.tl-mobile__link {
	color: var(--tl-slate-2);
	text-decoration: none;
	font-family: var(--tl-font-display);
	font-size: 1.1rem;
	font-weight: 600;
}

.tl-mobile__link:hover,
.tl-mobile__link.is-current {
	color: var(--tl-olive);
}

.tl-mobile__phone {
	margin-top: auto;
	color: var(--tl-olive);
	font-weight: 700;
	text-decoration: none;
}

/* --- Footer (dark slate, 3 columns) ---------------------------------------- */
.tl-footer {
	background: var(--tl-slate);
	color: var(--tl-light-text);
}

.tl-footer__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
	padding-block: 4rem;
}

@media (min-width: 768px) {
	.tl-footer__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.tl-footer__grid {
		grid-template-columns: 1.4fr 1fr 1fr;
	}
}

.tl-footer__logo {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	text-decoration: none;
}

.tl-footer__logo img {
	height: 48px;
	width: auto;
}

.tl-footer__text {
	font-size: 0.875rem;
	line-height: 1.7;
	margin: 1rem 0 0;
}

.tl-footer__social {
	display: flex;
	gap: 0.75rem;
	margin-top: 1.5rem;
}

.tl-footer__social-link {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	transition: background-color 0.2s ease;
}

.tl-footer__social-link:hover {
	background: var(--tl-olive);
}

.tl-footer__heading {
	font-family: var(--tl-font-display);
	font-weight: 600;
	font-size: 1rem;
	color: #fff;
	margin: 0 0 1.25rem;
}

.tl-footer__links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	font-size: 0.875rem;
}

.tl-footer__links a {
	color: var(--tl-light-text);
	text-decoration: none;
	transition: color 0.2s ease;
}

.tl-footer__links a:hover {
	color: var(--tl-olive);
}

.tl-footer__contact {
	margin-top: 1.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	font-size: 0.875rem;
	line-height: 1.6;
}

.tl-footer__contact p {
	margin: 0.25rem 0 0;
}

.tl-footer__contact-title {
	font-family: var(--tl-font-display);
	font-weight: 600;
	color: #fff;
}

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

.tl-footer__bottom-row {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding-block: 1.5rem;
	font-size: 0.875rem;
}

@media (min-width: 640px) {
	.tl-footer__bottom-row {
		flex-direction: row;
	}
}

.tl-footer__bottom-row p {
	margin: 0;
}

/* --- Scroll-reveal --------------------------------------------------------- */
.tl-reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.7s ease, transform 0.7s ease;
}

.tl-reveal.is-in {
	opacity: 1;
	transform: none;
}

.tl-reveal--d1 {
	transition-delay: 0.1s;
}

.tl-reveal--d2 {
	transition-delay: 0.2s;
}

.tl-reveal--d3 {
	transition-delay: 0.3s;
}

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