/* PC Habits — main stylesheet
   Coastal palette · Asymmetric card grid layout */

:root {
	--pc-bg: #FCFEFE;
	--pc-surface: #FFFFFF;
	--pc-band: #E1F5EE;
	--pc-band-deep: #9FE1CB;
	--pc-text: #04342C;
	--pc-muted: #4A5550;
	--pc-soft: #6B7570;
	--pc-accent: #0F6E56;
	--pc-accent-deep: #085041;
	--pc-accent-hover: #0a5944;
	--pc-accent2: #EF9F27;
	--pc-accent2-deep: #BA7517;
	--pc-tag-bg: #FAEEDA;
	--pc-tag-text: #854F0B;
	--pc-border: rgba(4, 52, 44, 0.1);
	--pc-footer-bg: #04342C;
	--pc-footer-text: #9FE1CB;
	--pc-footer-fine: #5DCAA5;

	--pc-radius-sm: 6px;
	--pc-radius: 8px;
	--pc-radius-lg: 12px;
	--pc-radius-xl: 16px;

	--pc-font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
	--pc-font-serif: "Fraunces", Georgia, "Times New Roman", serif;
}

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

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--pc-bg);
	color: var(--pc-text);
	font-family: var(--pc-font-sans);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--pc-accent-deep); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--pc-accent); }

h1, h2, h3, h4, h5, h6 { font-family: var(--pc-font-serif); font-weight: 500; letter-spacing: -0.015em; line-height: 1.2; margin: 0 0 .5em; color: var(--pc-text); }

.pc-screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px; overflow: hidden;
	clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.pc-skip-link {
	position: absolute; left: -9999px; top: 8px;
	background: var(--pc-accent); color: #fff; padding: 8px 14px;
	border-radius: var(--pc-radius); text-decoration: none; z-index: 10000;
}
.pc-skip-link:focus { left: 8px; }

/* ---------- Layout shell ---------- */
.pc-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- Navigation ---------- */
.pc-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 18px 0;
	border-bottom: 0.5px solid var(--pc-border);
	gap: 24px;
}

.pc-logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--pc-text); }
.pc-logo .pc-wordmark { font-family: var(--pc-font-serif); font-size: 22px; font-weight: 500; letter-spacing: -0.01em; }
.pc-logo .pc-wordmark span { color: var(--pc-accent); }
.pc-logo img { max-height: 44px; width: auto; }

.pc-nav-menu-wrap {
	display: flex;
	align-items: center;
	gap: 24px;
}

#primary-menu, .nav-menu {
	display: flex; list-style: none; gap: 24px; margin: 0; padding: 0;
}
#primary-menu a, .nav-menu a {
	color: var(--pc-muted);
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	padding: 6px 2px;
}
#primary-menu a:hover, #primary-menu .current-menu-item > a,
.nav-menu a:hover, .nav-menu .current-menu-item > a { color: var(--pc-accent); }

/* Sub-menus */
#primary-menu .sub-menu {
	display: none; position: absolute;
	background: var(--pc-surface);
	border: 0.5px solid var(--pc-border);
	border-radius: var(--pc-radius-lg);
	padding: 8px;
	min-width: 200px;
	margin-top: 8px;
	z-index: 100;
	box-shadow: 0 8px 24px rgba(4, 52, 44, 0.08);
}
#primary-menu .menu-item-has-children { position: relative; }
#primary-menu .menu-item-has-children:hover > .sub-menu,
#primary-menu .menu-item-has-children:focus-within > .sub-menu { display: block; }
#primary-menu .sub-menu li { margin: 0; }
#primary-menu .sub-menu a { display: block; padding: 8px 12px; border-radius: var(--pc-radius); }
#primary-menu .sub-menu a:hover { background: var(--pc-band); }

/* Mobile menu toggle */
.pc-menu-toggle {
	display: none;
	background: transparent;
	border: 0.5px solid var(--pc-border);
	border-radius: var(--pc-radius);
	padding: 6px 10px;
	cursor: pointer;
	color: var(--pc-text);
}

/* ---------- Buttons ---------- */
.pc-btn, .pc-btn-amber, .pc-btn-outline, .pc-btn-dark {
	display: inline-block;
	padding: 10px 18px;
	border-radius: var(--pc-radius);
	font-size: 14px;
	font-weight: 500;
	font-family: var(--pc-font-sans);
	text-decoration: none;
	border: 1px solid transparent;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease, transform .1s ease;
	line-height: 1.3;
}
.pc-btn:active, .pc-btn-amber:active, .pc-btn-outline:active, .pc-btn-dark:active { transform: translateY(1px); }

/* PRIMARY: teal button — WHITE TEXT, always */
.pc-btn { background: var(--pc-accent); color: #FFFFFF !important; }
.pc-btn:hover { background: var(--pc-accent-hover); color: #FFFFFF !important; }

/* AMBER: warm button on dark backgrounds — DARK TEXT */
.pc-btn-amber { background: var(--pc-accent2); color: #2C2C2A !important; }
.pc-btn-amber:hover { background: var(--pc-accent2-deep); color: #FFFFFF !important; }

/* OUTLINE: variant for secondary actions */
.pc-btn-outline { background: transparent; color: var(--pc-text); border-color: var(--pc-border); }
.pc-btn-outline:hover { background: var(--pc-band); color: var(--pc-text); }

/* DARK: small button on amber card */
.pc-btn-dark { background: #2C2C2A; color: var(--pc-accent2) !important; }
.pc-btn-dark:hover { background: var(--pc-text); color: #FFFFFF !important; }

/* OUTLINE on dark backgrounds (e.g., the hero) */
.pc-btn-outline-light {
	display: inline-block;
	padding: 10px 18px;
	border-radius: var(--pc-radius);
	font-size: 14px;
	font-weight: 500;
	border: 1px solid rgba(255, 255, 255, 0.5);
	color: #FFFFFF !important;
	background: transparent;
	text-decoration: none;
}
.pc-btn-outline-light:hover { background: rgba(255, 255, 255, 0.1); color: #FFFFFF !important; }

/* ---------- Eyebrow ---------- */
.pc-eyebrow {
	font-size: 11px;
	color: var(--pc-accent2-deep);
	letter-spacing: 0.1em;
	margin: 0 0 10px;
	font-weight: 500;
	text-transform: uppercase;
}
.pc-section-title { font-family: var(--pc-font-serif); font-size: 28px; margin: 0 0 24px; letter-spacing: -0.015em; }

/* ---------- Front page wrap ---------- */
.pc-front { padding: 24px 0 0; }

/* ---------- Hero + work cards row ---------- */
.pc-hero-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 16px;
	margin-bottom: 28px;
}

.pc-hero {
	background: var(--pc-accent);
	color: #FFFFFF;
	padding: 40px 36px;
	border-radius: var(--pc-radius-lg);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 360px;
}
.pc-hero-tag {
	display: inline-block;
	font-size: 12px;
	color: var(--pc-accent);
	background: var(--pc-accent2);
	padding: 4px 12px;
	border-radius: 999px;
	margin-bottom: 18px;
	font-weight: 500;
	align-self: flex-start;
}
.pc-hero h1 {
	font-family: var(--pc-font-serif);
	font-size: 40px;
	font-weight: 500;
	line-height: 1.1;
	margin: 0 0 14px;
	letter-spacing: -0.022em;
	color: #FFFFFF;
}
.pc-hero h1 .pc-accent-text { color: var(--pc-accent2); }
.pc-hero p {
	font-size: 16px;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.9);
	margin: 0 0 24px;
	max-width: 480px;
}
.pc-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.pc-aside { display: flex; flex-direction: column; gap: 16px; }

.pc-work-card {
	background: var(--pc-surface);
	border: 0.5px solid var(--pc-border);
	border-radius: var(--pc-radius-lg);
	padding: 22px;
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	text-decoration: none;
	color: var(--pc-text);
	transition: transform .15s ease, box-shadow .15s ease;
}
.pc-work-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(4, 52, 44, 0.08); }
.pc-work-card--amber { background: var(--pc-accent2); color: #2C2C2A; border: none; }
.pc-work-card--teal { background: var(--pc-accent-deep); color: #FFFFFF; border: none; }
.pc-work-card--teal a { color: #FFFFFF; }
.pc-work-card .pc-lbl {
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	font-weight: 500;
	margin-bottom: 8px;
	opacity: 0.7;
}
.pc-work-card h3 {
	font-family: var(--pc-font-serif);
	font-size: 22px;
	margin: 0 0 6px;
	font-weight: 500;
	letter-spacing: -0.015em;
	color: inherit;
}
.pc-work-card p { font-size: 14px; margin: 0 0 12px; line-height: 1.5; opacity: 0.85; color: inherit; }
.pc-work-card .pc-link { font-size: 12px; font-weight: 500; opacity: 0.8; }

/* ---------- Story band ---------- */
.pc-story {
	background: var(--pc-band);
	padding: 32px 36px;
	border-radius: var(--pc-radius-lg);
	margin-bottom: 28px;
}
.pc-story p {
	font-family: var(--pc-font-serif);
	font-size: 22px;
	line-height: 1.45;
	color: var(--pc-text);
	margin: 0;
	max-width: 720px;
	font-style: italic;
	letter-spacing: -0.005em;
}
.pc-story .pc-accent-text {
	font-style: normal;
	font-weight: 500;
	color: var(--pc-accent2-deep);
}

/* ---------- Services row ---------- */
.pc-services-section { margin-bottom: 28px; }
.pc-services-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pc-svc {
	background: var(--pc-band);
	border-radius: var(--pc-radius-lg);
	padding: 24px;
	position: relative;
}
.pc-svc-icon {
	width: 32px; height: 32px; border-radius: var(--pc-radius);
	background: var(--pc-accent); color: #FFFFFF;
	display: flex; align-items: center; justify-content: center;
	margin-bottom: 14px;
}
.pc-svc h3 { font-size: 17px; margin: 0 0 6px; font-family: var(--pc-font-sans); font-weight: 600; }
.pc-svc p { font-size: 14px; color: var(--pc-muted); margin: 0 0 12px; line-height: 1.55; }

.pc-more {
	font-size: 13px;
	color: var(--pc-accent-deep);
	font-weight: 500;
	text-decoration: none;
	background: transparent;
	border: 0;
	padding: 0;
	cursor: pointer;
	font-family: inherit;
}
.pc-more:hover { color: var(--pc-accent2-deep); }

.pc-popover {
	margin-top: 12px;
	background: var(--pc-surface);
	border: 0.5px solid var(--pc-border);
	border-radius: var(--pc-radius);
	padding: 14px 16px 14px 16px;
	font-size: 13px;
	color: var(--pc-muted);
	line-height: 1.55;
	position: relative;
}
.pc-popover p:last-child { margin-bottom: 0; }
.pc-popover-close {
	position: absolute; top: 8px; right: 10px;
	background: transparent; border: 0; cursor: pointer;
	font-size: 18px; line-height: 1;
	color: var(--pc-muted);
}
.pc-popover-close:hover { color: var(--pc-text); }

/* ---------- Process ---------- */
.pc-process-section { margin-bottom: 28px; }
.pc-process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pc-step {
	background: var(--pc-surface);
	border: 0.5px solid var(--pc-border);
	border-radius: var(--pc-radius-lg);
	padding: 24px;
}
.pc-step-num {
	font-family: var(--pc-font-serif);
	font-size: 28px;
	color: var(--pc-accent2-deep);
	line-height: 1;
	margin-bottom: 12px;
	font-weight: 500;
}
.pc-step h4 { font-size: 16px; margin: 0 0 6px; font-family: var(--pc-font-sans); font-weight: 600; }
.pc-step p { font-size: 14px; line-height: 1.55; color: var(--pc-muted); margin: 0; }

/* ---------- Testimonial + small CTA row ---------- */
.pc-dual-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; margin-bottom: 28px; }
.pc-quote-card {
	background: var(--pc-accent-deep);
	color: #FFFFFF;
	border-radius: var(--pc-radius-lg);
	padding: 28px 32px;
}
.pc-quote-card .pc-eyebrow { color: var(--pc-accent2); }
.pc-quote-card blockquote {
	font-family: var(--pc-font-serif);
	font-size: 19px;
	line-height: 1.45;
	margin: 0 0 14px;
	color: #FFFFFF;
	letter-spacing: -0.005em;
}
.pc-quote-card cite { font-size: 13px; color: rgba(255, 255, 255, 0.75); font-style: normal; }

.pc-cta-card {
	background: var(--pc-accent2);
	color: #2C2C2A;
	border-radius: var(--pc-radius-lg);
	padding: 28px 32px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.pc-cta-card h3 { font-family: var(--pc-font-serif); font-size: 22px; margin: 0 0 8px; font-weight: 500; letter-spacing: -0.015em; color: #2C2C2A; }
.pc-cta-card p { font-size: 14px; margin: 0 0 16px; line-height: 1.5; }

/* ---------- Start a project section ---------- */
.pc-start-section {
	background: var(--pc-surface);
	border: 0.5px solid var(--pc-border);
	border-radius: var(--pc-radius-lg);
	padding: 40px;
	margin-bottom: 28px;
	scroll-margin-top: 80px;
}
.pc-start-section h2 { font-size: 28px; margin: 0 0 8px; }
.pc-start-section .pc-start-intro { font-size: 16px; color: var(--pc-muted); margin: 0 0 20px; max-width: 560px; }
.pc-start-form { margin-top: 16px; }

/* ---------- Footer ---------- */
.pc-footer {
	background: var(--pc-footer-bg);
	color: var(--pc-footer-text);
	padding: 40px 0 24px;
	margin-top: 24px;
}
.pc-footer .pc-container > .pc-footer-top {
	display: grid;
	grid-template-columns: 1.2fr 2.5fr;
	gap: 32px;
	padding-bottom: 24px;
	border-bottom: 0.5px solid rgba(159, 225, 203, 0.15);
}
.pc-footer-brand .pc-logo { color: #FFFFFF; }
.pc-footer-brand .pc-logo .pc-wordmark { color: #FFFFFF; }
.pc-footer-brand p {
	font-size: 13px;
	color: var(--pc-footer-text);
	margin: 12px 0 0;
	max-width: 320px;
	line-height: 1.55;
}

.pc-footer-cols {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 32px;
}
.footer-widget { font-size: 13px; }
.footer-widget-title, .footer-widget h2, .footer-widget h3, .footer-widget h4, .footer-widget h5 {
	font-size: 12px;
	font-family: var(--pc-font-sans);
	color: #FFFFFF;
	margin: 0 0 12px;
	font-weight: 500;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}
.footer-widget ul { list-style: none; margin: 0; padding: 0; }
.footer-widget li { margin: 0 0 6px; }
.footer-widget a {
	color: var(--pc-footer-text);
	text-decoration: none;
	font-size: 13px;
}
.footer-widget a:hover { color: #FFFFFF; }

.pc-footer-bottom {
	padding-top: 18px;
	display: flex;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	font-size: 11px;
	color: var(--pc-footer-fine);
}
.pc-footer-bottom a { color: var(--pc-footer-fine); }
.pc-footer-disclaimer { max-width: 540px; line-height: 1.6; }

/* ---------- Generic page (page.php / single.php) ---------- */
.pc-page {
	max-width: 760px;
	margin: 0 auto;
	padding: 48px 24px 64px;
}
.pc-page h1 { font-size: 38px; margin: 0 0 24px; }
.pc-page p, .pc-page li { font-size: 17px; color: var(--pc-text); }
.pc-page a { color: var(--pc-accent-deep); }
.pc-page img { border-radius: var(--pc-radius); margin: 24px 0; }

/* ---------- Comments ---------- */
.pc-comments { max-width: 760px; margin: 0 auto; padding: 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.pc-hero-grid { grid-template-columns: 1fr; }
	.pc-services-row, .pc-process-grid { grid-template-columns: 1fr 1fr; }
	.pc-dual-row { grid-template-columns: 1fr; }
	.pc-footer .pc-container > .pc-footer-top { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
	.pc-hero { padding: 28px 22px; min-height: 0; }
	.pc-hero h1 { font-size: 30px; }
	.pc-hero p { font-size: 14px; }
	.pc-story { padding: 24px; }
	.pc-story p { font-size: 17px; }
	.pc-section-title { font-size: 22px; }
	.pc-services-row, .pc-process-grid { grid-template-columns: 1fr; }
	.pc-start-section { padding: 28px 22px; }
	.pc-start-section h2 { font-size: 22px; }

	.pc-menu-toggle { display: inline-flex; }
	.pc-nav-menu-wrap {
		display: none;
		position: absolute;
		top: 64px; left: 0; right: 0;
		background: var(--pc-surface);
		border-bottom: 0.5px solid var(--pc-border);
		flex-direction: column;
		padding: 16px 24px;
		gap: 12px;
		z-index: 99;
	}
	.pc-nav { position: relative; }
	.pc-nav.is-open .pc-nav-menu-wrap { display: flex; align-items: stretch; }
	#primary-menu, .nav-menu { flex-direction: column; gap: 8px; }
	#primary-menu a, .nav-menu a { display: block; padding: 8px 0; }
	.pc-nav-cta { width: 100%; text-align: center; }
}

/* ---------- Dark mode (system preference) ---------- */
@media (prefers-color-scheme: dark) {
	:root {
		--pc-bg: #0A1F1A;
		--pc-surface: #122B25;
		--pc-band: #04342C;
		--pc-band-deep: #085041;
		--pc-text: #E1F5EE;
		--pc-muted: #9FE1CB;
		--pc-soft: #7A9990;
		--pc-accent: #5DCAA5;
		--pc-accent-deep: #1D9E75;
		--pc-accent-hover: #6FD4B0;
		--pc-accent2: #FAC775;
		--pc-accent2-deep: #EF9F27;
		--pc-tag-bg: #633806;
		--pc-tag-text: #FAC775;
		--pc-border: rgba(225, 245, 238, 0.12);
		--pc-footer-bg: #051A15;
		--pc-footer-text: #5DCAA5;
		--pc-footer-fine: #1D9E75;
	}
	.pc-btn { color: #04342C !important; }
	.pc-btn:hover { color: #04342C !important; }
	.pc-hero-tag { color: #04342C; }
}
