/* Site chrome — floating header (Rentl pattern, rounded-rectangle look) and footer. */

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--color-charcoal);
	color: #fff;
	padding: 10px 16px;
	z-index: 200;
}

.skip-link:focus {
	left: 8px;
	top: 8px;
}

/*
 * Sticky positioning shell only — deliberately transparent (a background
 * here would paint a pinned band across scrolled content; the visible
 * surface lives on .site-header__bar). Ported from Rentl's header.
 */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	padding-top: 16px;
}

/* The visible floating bar */
.site-header__bar {
	display: flex;
	align-items: center;
	gap: 16px;
	background: var(--surface-bar);
	backdrop-filter: var(--bar-blur);
	-webkit-backdrop-filter: var(--bar-blur);
	border-radius: 14px;
	box-shadow: 0 8px 24px var(--shadow-color);
	padding: 10px 20px;
	transition: background 0.2s ease;
}

.site-header__logo {
	display: flex;
	line-height: 0;
	flex-shrink: 0;
	/* The link now wraps text (the JT mark), so kill the default underline —
	   it rendered as an orange strip under the mark via main.css's link color. */
	text-decoration: none;
}

/* Text recreation of the JT icon (Averia Serif Libre 700, matched against
   the original PNG) — crisp at any size, padding tunable, token-colored. */
.site-header__logo-mark {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--logo-mark-bg);
	color: var(--color-white);
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 19px;
	letter-spacing: 0.01em;
	transition: background 0.2s ease;
}

@media (hover: hover) {
	.site-header__logo:hover .site-header__logo-mark {
		background: var(--logo-mark-bg-hover);
	}
}

/* Dark/light toggle — Rentl pattern; sun shown in dark, moon in light */
.jt-theme-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--color-border-strong);
	border-radius: 8px;
	background: transparent;
	color: var(--color-text);
	cursor: pointer;
	flex-shrink: 0;
}

@media (hover: hover) {
	.jt-theme-toggle:hover {
		color: var(--color-accent);
		border-color: var(--color-accent);
	}
}

.jt-theme-toggle .jt-icon-sun {
	display: none;
}

.jt-theme-toggle[data-current-theme="dark"] .jt-icon-moon {
	display: none;
}

.jt-theme-toggle[data-current-theme="dark"] .jt-icon-sun {
	display: block;
}

.site-nav {
	margin-left: auto;
}

.site-nav__list {
	display: flex;
	align-items: center;
	gap: 2px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-nav__list a {
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 16px;
	color: var(--color-text);
	text-decoration: none;
	padding: 10px 12px;
	white-space: nowrap;
}

.site-nav__list .current-menu-item > a,
.site-nav__list a[aria-current="page"] {
	color: var(--color-accent);
}

@media (hover: hover) {
	.site-nav__list a:hover {
		color: var(--color-accent);
	}
}

.jt-btn {
	display: inline-block;
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 18px;
	color: #fff;
	background: var(--color-accent);
	padding: 11px 20px;
	border-radius: 8px;
	text-decoration: none;
	transition: background 0.2s ease;
	white-space: nowrap;
}

@media (hover: hover) {
	.jt-btn:hover {
		background: var(--color-charcoal);
		color: #fff;
	}
}

.site-header__cta {
	flex-shrink: 0;
}

.site-header__hamburger {
	display: none;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--color-border-strong);
	border-radius: 8px;
	background: transparent;
	color: var(--color-text);
	cursor: pointer;
	flex-shrink: 0;
}

@media (hover: hover) {
	.site-header__hamburger:hover {
		color: var(--color-accent);
		border-color: var(--color-accent);
	}
}

@media (max-width: 900px) {
	.site-header__hamburger {
		display: flex;
	}

	.site-nav {
		display: none;
		position: absolute;
		top: calc(100% + 8px);
		left: var(--gap);
		right: var(--gap);
		background: var(--surface-card);
		border-radius: 14px;
		box-shadow: 0 8px 24px var(--shadow-color);
		padding: 8px 18px;
		margin-left: 0;
	}

	.site-header[data-nav-open="true"] .site-nav {
		display: block;
	}

	.site-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.site-nav__list a {
		display: block;
		font-size: 18px;
		padding: 12px 0;
		border-bottom: 1px solid var(--color-divider);
	}

	.site-nav__list li:last-child a {
		border-bottom: none;
	}

	.site-header__cta {
		margin-left: auto;
		font-size: 15px;
		padding: 9px 14px;
	}

	.site-header__logo-mark {
		width: 36px;
		height: 36px;
		font-size: 17px;
	}
}

/* --- Footer — Rentl-style columns on the site's charcoal surface --- */

.site-footer {
	background: var(--surface-footer);
	color: #fff;
	padding-block: 50px 0;
}

/* Home only: the hero's charcoal runs straight into the footer, so a
   hairline seam marks where content ends and the footer begins. */
body.home .site-footer {
	border-top: 1px solid var(--footer-seam);
}

.site-footer__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 36px;
}

@media (min-width: 768px) {
	.site-footer__grid {
		grid-template-columns: 2fr 1fr 1fr;
		align-items: start;
	}
}

.site-footer__brand {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
}

.site-footer__logo {
	line-height: 0;
	text-decoration: none;
}

/* Text recreation of the split-colors fullname lockup (Averia 700). */
.site-footer__lockup {
	display: inline-flex;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 24px;
	line-height: 1;
}

.site-footer__lockup-first {
	background: var(--color-white);
	color: var(--color-charcoal);
	padding: 8px 10px;
}

.site-footer__lockup-last {
	background: var(--color-accent);
	color: var(--color-white);
	padding: 8px 10px;
}

.site-footer__tagline {
	font-family: var(--font-secondary);
	font-weight: 400;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.65);
	max-width: 30ch;
	margin: 0;
}

.jt-social {
	display: flex;
	align-items: center;
	gap: 16px;
}

.jt-social a {
	color: #fff;
	display: flex;
	align-items: center;
}

/* The Upwork icon is an <img> (brand SVG) — pin it to the same optical
   size as the inline-SVG icons, whatever its intrinsic dimensions. */
.jt-social img {
	height: 22px;
	width: auto;
}

@media (hover: hover) {
	.jt-social a:hover {
		color: var(--color-accent);
	}
}

.site-footer__col {
	display: flex;
	flex-direction: column;
}

.site-footer__heading {
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #fff;
	margin: 0 0 12px;
}

.site-footer__col ul {
	display: flex;
	flex-direction: column;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-footer__col a {
	font-family: var(--font-secondary);
	font-weight: 400;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.65);
	text-decoration: none;
}

@media (hover: hover) {
	.site-footer__col a:hover {
		color: var(--color-accent);
	}
}

.site-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	margin-top: 36px;
	padding-block: 16px;
}

.site-footer__copyright {
	font-family: var(--font-secondary);
	font-weight: 400;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.55);
	margin: 0;
}

.site-footer__top {
	display: flex;
	align-items: center;
	gap: 6px;
	font-family: var(--font-secondary);
	font-weight: 400;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.7);
	text-decoration: none;
}

@media (hover: hover) {
	.site-footer__top:hover {
		color: var(--color-accent);
	}
}
