/*
Theme Name: Pilothouse Marine Services
Theme URI:
Author: Pilothouse Marine Services
Author URI:
Description: A standalone classic theme for Pilothouse Marine Services with native WordPress block editor support for pages and articles.
Version: 1.4.1
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pilothouse
*/

/* -------------------------------------------------------------------------
 * Shared foundation: type, layout, header, footer.
 * ------------------------------------------------------------------------- */

:root {
	--pilothouse-color-text: #161618;
	--pilothouse-color-text-muted: #5c5c60;
	--pilothouse-color-background: #f3f3f1;
	--pilothouse-color-light: #f3f3f1;
	--pilothouse-color-link: #161618;
	--pilothouse-color-link-hover: #161618;
	--pilothouse-color-muted: #5c5c60;
	--pilothouse-color-border: #d8d8d4;
	--pilothouse-color-focus: #161618;
	--pilothouse-color-surface: #ececea;
	--pilothouse-color-dark: #0c0c0e;
	--pilothouse-color-charcoal: #161618;
	--pilothouse-color-dark-border: #2a2a2e;
	--pilothouse-color-on-dark: #f2f2f0;
	--pilothouse-color-on-dark-muted: #b4b4b0;
	--pilothouse-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
	--pilothouse-page: 80rem;
	--pilothouse-gutter: clamp(1.5rem, 3.2vw, 3.25rem);
	--pilothouse-header-height: 3.75rem;
	--pilothouse-content-width: 40rem;
}

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

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

body {
	margin: 0;
	background: var(--pilothouse-color-background);
	color: var(--pilothouse-color-text);
	font-family: var(--pilothouse-font);
	font-size: 1.0625rem;
	font-weight: 400;
	line-height: 1.6;
}

a {
	color: var(--pilothouse-color-link);
}

a:hover,
a:focus {
	color: var(--pilothouse-color-link-hover);
}

a:focus-visible,
button:focus-visible {
	outline: 2px solid var(--pilothouse-color-focus);
	outline-offset: 2px;
}

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

figure {
	margin: 0 0 1.5rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--pilothouse-font);
	font-weight: 560;
	letter-spacing: -0.02em;
	line-height: 1.25;
	margin: 0 0 0.75rem;
}

p,
ul,
ol {
	margin: 0 0 1.25rem;
}

.wrap {
	width: min(var(--pilothouse-page), 100%);
	margin-inline: auto;
	padding-inline: var(--pilothouse-gutter);
}

.skip-link {
	background: var(--pilothouse-color-text);
	color: var(--pilothouse-color-background);
	font-size: 0.95rem;
	left: -9999px;
	padding: 0.75rem 1rem;
	position: absolute;
	top: 0.5rem;
	z-index: 100000;
}

.skip-link:focus {
	left: var(--pilothouse-gutter);
}

body.admin-bar .skip-link:focus {
	top: 2.85rem;
}

@media screen and (max-width: 782px) {
	body.admin-bar .skip-link:focus {
		top: 3.65rem;
	}
}

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

.screen-reader-text:focus {
	background-color: var(--pilothouse-color-background);
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.2);
	clip: auto !important;
	clip-path: none;
	color: var(--pilothouse-color-text);
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: var(--pilothouse-gutter);
	line-height: normal;
	padding: 0.75rem 1rem;
	text-decoration: none;
	top: 0.5rem;
	width: auto;
	z-index: 100000;
}

.site {
	min-height: 100vh;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	width: 100%;
	min-height: var(--pilothouse-header-height);
	border-bottom: 1px solid var(--pilothouse-color-dark-border);
	background: var(--pilothouse-color-dark);
	color: var(--pilothouse-color-on-dark);
}

body.admin-bar .site-header {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar .site-header {
		top: 46px;
	}
}

@media screen and (max-width: 600px) {
	body.admin-bar .site-header {
		top: 0;
	}
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 2rem;
	min-height: var(--pilothouse-header-height);
}

.site-header a:focus-visible,
.site-header button:focus-visible {
	outline-color: #f4f4f2;
}

.site-title {
	margin: 0;
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 1.3;
}

.site-title a {
	color: inherit;
	text-decoration: none;
}

.site-description {
	color: var(--pilothouse-color-muted);
	font-size: 0.95rem;
	margin: 0.25rem 0 0;
}

.menu-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-left: auto;
	padding: 0.4rem 0;
	border: 0;
	background: transparent;
	color: inherit;
	font-family: inherit;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	cursor: pointer;
}

.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
	display: block;
	width: 1.1rem;
	height: 1px;
	background: currentColor;
}

.menu-toggle__bars {
	position: relative;
}

.menu-toggle__bars::before,
.menu-toggle__bars::after {
	content: "";
	position: absolute;
	left: 0;
}

.menu-toggle__bars::before {
	top: -5px;
}

.menu-toggle__bars::after {
	top: 5px;
}

.site-navigation {
	display: none;
	flex-basis: 100%;
}

.site-header__inner:has(.site-navigation.is-open) {
	flex-wrap: wrap;
}

.site-navigation.is-open {
	display: block;
}

.site-navigation ul {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	list-style: none;
	margin: 0;
	padding: 0.35rem 0 1rem;
}

.site-navigation a {
	color: inherit;
	font-size: 0.95rem;
	font-weight: 500;
	text-decoration: none;
}

.site-navigation a:hover,
.site-navigation a:focus,
.site-navigation .current-menu-item > a {
	text-decoration: underline;
	text-underline-offset: 0.28em;
}

.site-main {
	padding-block: 2.5rem 3.5rem;
}

.page-header {
	margin-bottom: 1.5rem;
}

.page-title,
.entry-title {
	font-size: clamp(1.65rem, 1.4rem + 1.2vw, 2.15rem);
	font-weight: 550;
}

.entry-title a {
	color: inherit;
	text-decoration: none;
}

.entry-title a:hover,
.entry-title a:focus {
	text-decoration: underline;
}

.entry-meta,
.site-footer {
	color: var(--pilothouse-color-muted);
	font-size: 0.9rem;
}

.entry-meta {
	margin-bottom: 1.25rem;
}

.post-thumbnail {
	display: block;
	margin-bottom: 1.5rem;
}

.post-thumbnail img {
	display: block;
	width: 100%;
}

.hentry + .hentry {
	border-top: 1px solid var(--pilothouse-color-border);
	margin-top: 2.5rem;
	padding-top: 2.5rem;
}

.entry-content,
.entry-summary,
.page-content {
	max-width: var(--pilothouse-content-width);
}

.entry-content > *:last-child,
.entry-summary > *:last-child,
.page-content > *:last-child {
	margin-bottom: 0;
}

.alignleft {
	float: left;
	margin: 0 1.25rem 1rem 0;
}

.alignright {
	float: right;
	margin: 0 0 1rem 1.25rem;
}

.aligncenter {
	display: block;
	margin-inline: auto;
}

.alignwide {
	max-width: 72rem;
}

.alignfull {
	margin-inline: calc(50% - 50vw);
	max-width: 100vw;
	width: 100vw;
}

.post-navigation,
.pagination,
.comments-area {
	margin-top: 2.5rem;
}

.site-footer {
	width: 100%;
	border-top: 1px solid var(--pilothouse-color-dark-border);
	background: var(--pilothouse-color-dark);
	color: var(--pilothouse-color-on-dark-muted);
	padding-block: 2rem;
}

.site-footer__inner {
	display: grid;
	gap: 0.85rem;
}

.site-footer__area,
.site-footer__credit {
	margin: 0;
	max-width: 42rem;
}

.site-footer__credit a {
	color: inherit;
}

@media (min-width: 48rem) {
	.menu-toggle {
		display: none;
	}

	.site-header__inner {
		flex-wrap: nowrap;
	}

	.site-navigation,
	.site-navigation.is-open {
		display: block;
		flex-basis: auto;
	}

	.site-navigation ul {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 0.2rem 1.75rem;
		padding: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* Shared navigation refinement for the local design candidate. */
:root{--pilothouse-header-height:82px}
.site-header{background:#11171b;border-bottom-color:#344047}
.site-header__inner{max-width:1360px;padding-inline:clamp(24px,5vw,80px)}
.ph-wordmark{display:block;font-size:23px;letter-spacing:.16em;font-weight:550;line-height:1.1}
.ph-wordmark-sub{display:block;font-size:9px;letter-spacing:.31em;margin-top:7px;font-weight:400}
.site-navigation a{font-size:13px;display:inline-flex;min-height:44px;align-items:center}
.site-navigation ul{gap:0 26px}.site-navigation .ph-nav-contact{border:1px solid #788891;padding:0 16px;gap:25px}
.menu-toggle{min-height:44px;padding:10px 0;font-size:12px;gap:12px}
.site-footer__inner{max-width:1360px;padding-inline:clamp(24px,5vw,80px);grid-template-columns:1.2fr 1fr;gap:60px}
.site-footer{font-size:12px;padding-block:35px;background:#11171b}
.site-footer__credit{text-align:right}.site-footer a:focus-visible{outline-color:#dce7ec}
[id]{scroll-margin-top:110px}
@media(max-width:1023px){.site-header__inner{flex-wrap:wrap}.menu-toggle{display:inline-flex}.site-navigation,.site-navigation.is-open{flex-basis:100%}.site-navigation{display:none}.site-navigation.is-open{display:block}.site-navigation ul{flex-direction:column;gap:0;padding-bottom:20px}.site-navigation a{padding-block:7px}.site-navigation .ph-nav-contact{margin-block:10px}.ph-wordmark{font-size:21px}}
@media(min-width:1024px){.menu-toggle{display:none}.site-navigation{display:block}.site-header__inner{flex-wrap:nowrap}}
/* Keep navigation usable if JavaScript is unavailable. */
@media(max-width:1023px){html:not(.ph-nav-ready) .site-navigation{display:block}html:not(.ph-nav-ready) .menu-toggle{display:none}}
@media(max-width:650px){:root{--pilothouse-header-height:76px}.site-footer__inner{grid-template-columns:1fr;gap:18px}.site-footer__credit{text-align:left}.ph-wordmark{font-size:19px}.ph-wordmark-sub{font-size:8px}}

/* Keep the complete business name together in the navigation. */
.site-title .ph-wordmark-full{font-size:clamp(12px,1.45vw,20px);letter-spacing:.06em;white-space:normal;max-width:330px;line-height:1.3}
