/*
Theme Name: Consulting One Page
Description: A small, dependency-free one-page consulting theme: responsive hero, three service cards, about, call to action and contact sections, plus minimal fallback templates for posts, pages, archives, search results and 404s.
Version: 1.0.0
Requires at least: 5.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: consulting-one-page
Tags: one-column, translation-ready, blog
*/

/* Tokens
   ----------------------------------------------------------------- */
:root {
	--c-bg: #ffffff;
	--c-surface: #f5f7f8;
	--c-ink: #16202a;
	--c-muted: #55626e;
	--c-line: #dde3e8;
	--c-accent: #1c6b58;
	--c-accent-strong: #14503f;
	--c-focus: #b4531a;
	--wrap: 68rem;
	--radius: 6px;
}

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 5.5rem;
}

body {
	margin: 0;
	background: var(--c-bg);
	color: var(--c-ink);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 1rem;
	line-height: 1.65;
	overflow-wrap: break-word;
}

h1,
h2,
h3 {
	margin: 0 0 0.6em;
	line-height: 1.2;
}

h1 {
	font-size: 2rem;
}

h2 {
	font-size: 1.5rem;
}

h3 {
	font-size: 1.125rem;
}

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

a {
	color: var(--c-accent);
}

a:hover,
a:focus {
	color: var(--c-accent-strong);
}

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

blockquote {
	margin: 1.5rem 0;
	padding-left: 1rem;
	border-left: 3px solid var(--c-line);
	color: var(--c-muted);
}

code,
pre {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.9375rem;
}

pre {
	overflow-x: auto;
	padding: 1rem;
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
}

table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 1.5rem;
}

th,
td {
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--c-line);
	text-align: left;
}

:focus-visible {
	outline: 3px solid var(--c-focus);
	outline-offset: 2px;
}

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 clamp(1.25rem, 5vw, 2.5rem);
}

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

.screen-reader-text:focus {
	display: block;
	width: auto;
	height: auto;
	left: 1rem;
	top: 1rem;
	margin: 0;
	padding: 0.75rem 1rem;
	background: #ffffff;
	color: var(--c-ink);
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
	clip-path: none;
	z-index: 100000;
}

/* Buttons
   ----------------------------------------------------------------- */
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 1.35rem;
	border: 1px solid var(--c-accent);
	border-radius: var(--radius);
	background: var(--c-accent);
	color: #ffffff;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.button:hover,
.button:focus {
	background: var(--c-accent-strong);
	border-color: var(--c-accent-strong);
	color: #ffffff;
}

.button--ghost {
	background: transparent;
	color: var(--c-accent-strong);
}

.button--ghost:hover,
.button--ghost:focus {
	background: rgba(28, 107, 88, 0.09);
	border-color: var(--c-accent-strong);
	color: var(--c-accent-strong);
}

.button--light {
	background: #ffffff;
	border-color: #ffffff;
	color: var(--c-accent-strong);
}

.button--light:hover,
.button--light:focus {
	background: #eef2f1;
	border-color: #eef2f1;
	color: var(--c-accent-strong);
}

/* Header and navigation
   ----------------------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	background: #ffffff;
	border-bottom: 1px solid var(--c-line);
}

.site-header__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem 1.5rem;
	min-height: 4.5rem;
	padding-top: 0.6rem;
	padding-bottom: 0.6rem;
}

.site-title {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.3;
}

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

.site-tagline {
	margin: 0.15rem 0 0;
	color: var(--c-muted);
	font-size: 0.8125rem;
	line-height: 1.4;
}

.site-nav__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav a {
	color: var(--c-ink);
	font-weight: 500;
	text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus {
	color: var(--c-accent-strong);
	text-decoration: underline;
}

.nav-toggle {
	display: none;
	align-items: center;
	gap: 0.4rem;
	padding: 0.5rem 0.85rem;
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
	background: #ffffff;
	color: var(--c-ink);
	font: inherit;
	font-size: 0.9375rem;
	cursor: pointer;
}

.nav-toggle:hover,
.nav-toggle:focus {
	border-color: var(--c-accent);
	color: var(--c-accent-strong);
}

/* Hero
   ----------------------------------------------------------------- */
.hero {
	padding: clamp(2.75rem, 8vw, 5.5rem) 0;
	background: var(--c-surface);
	border-bottom: 1px solid var(--c-line);
}

.hero__inner {
	max-width: 46rem;
}

.hero__eyebrow {
	margin-bottom: 0.75rem;
	color: var(--c-accent-strong);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.hero__title {
	margin-bottom: 1rem;
	font-size: clamp(2rem, 4.5vw, 3rem);
}

.hero__lead {
	max-width: 38rem;
	margin-bottom: 0;
	color: var(--c-muted);
	font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 1.75rem 0 0;
}

/* Sections
   ----------------------------------------------------------------- */
.section {
	padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.section--alt {
	background: var(--c-surface);
	border-top: 1px solid var(--c-line);
	border-bottom: 1px solid var(--c-line);
}

.section__lead {
	max-width: 40rem;
	color: var(--c-muted);
}

.cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
	gap: 1.25rem;
	margin-top: 2rem;
}

.card {
	padding: 1.5rem;
	background: #ffffff;
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
}

.card h3 {
	margin-bottom: 0.5rem;
}

.card p:last-child {
	margin-bottom: 0;
}

.cta {
	background: var(--c-ink);
	color: #ffffff;
}

.cta h2 {
	color: #ffffff;
}

.cta p {
	max-width: 42rem;
	color: rgba(255, 255, 255, 0.82);
}

.cta .button {
	margin-top: 0.5rem;
}

.contact__email {
	margin-top: 1.5rem;
}

.contact__email a {
	overflow-wrap: anywhere;
}

.contact__notice {
	max-width: 40rem;
	margin-top: 1.5rem;
	padding: 0.75rem 1rem;
	background: #ffffff;
	border: 1px dashed var(--c-line);
	border-radius: var(--radius);
	color: var(--c-muted);
	font-size: 0.9375rem;
}

/* Footer
   ----------------------------------------------------------------- */
.site-footer {
	padding: 1.75rem 0;
	background: var(--c-surface);
	border-top: 1px solid var(--c-line);
	color: var(--c-muted);
	font-size: 0.9375rem;
}

.site-footer__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem 1.5rem;
}

.site-footer p {
	margin: 0;
}

/* Fallback templates: posts, pages, archives, search, 404
   ----------------------------------------------------------------- */
.site-main {
	padding: clamp(2rem, 5vw, 3.5rem) 0;
}

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

.page-header__description {
	color: var(--c-muted);
}

.entry {
	margin-bottom: 2.5rem;
}

.entry-title {
	font-size: 1.5rem;
}

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

.entry-title a:hover,
.entry-title a:focus {
	color: var(--c-accent-strong);
	text-decoration: underline;
}

.entry-meta {
	margin-bottom: 0.75rem;
	color: var(--c-muted);
	font-size: 0.875rem;
}

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

.post-navigation {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--c-line);
}

.pagination,
.page-links {
	margin-top: 2rem;
}

.pagination .page-numbers {
	display: inline-block;
	margin-right: 0.35rem;
	padding: 0.35rem 0.7rem;
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
	text-decoration: none;
}

.pagination .page-numbers.current {
	background: var(--c-ink);
	border-color: var(--c-ink);
	color: #ffffff;
}

.search-form {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	max-width: 28rem;
	margin-bottom: 1.5rem;
}

.search-form label {
	width: 100%;
}

.search-form input[type="search"] {
	flex: 1 1 12rem;
	min-width: 0;
	padding: 0.65rem 0.75rem;
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
	font: inherit;
}

.search-form input[type="submit"] {
	padding: 0.65rem 1.1rem;
	border: 1px solid var(--c-accent);
	border-radius: var(--radius);
	background: var(--c-accent);
	color: #ffffff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.search-form input[type="submit"]:hover,
.search-form input[type="submit"]:focus {
	background: var(--c-accent-strong);
}

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

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

.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption-text {
	color: var(--c-muted);
	font-size: 0.875rem;
}

/* Mobile navigation
   ----------------------------------------------------------------- */
@media (max-width: 799px) {
	.js .site-header__inner {
		flex-wrap: nowrap;
	}

	.js .nav-toggle {
		display: inline-flex;
		flex: 0 0 auto;
	}

	.js .site-nav {
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		display: none;
		padding: 0.5rem clamp(1.25rem, 5vw, 2.5rem) 1rem;
		background: #ffffff;
		border-bottom: 1px solid var(--c-line);
		box-shadow: 0 12px 20px rgba(22, 32, 42, 0.08);
	}

	.js .nav-toggle[aria-expanded="true"] ~ .site-nav {
		display: block;
	}

	.js .site-nav__list {
		flex-direction: column;
		gap: 0;
	}

	.js .site-nav a {
		display: block;
		padding: 0.75rem 0;
		border-bottom: 1px solid var(--c-line);
	}

	.site-title {
		font-size: 1.0625rem;
	}
}

@media (min-width: 800px) {
	.site-nav__list {
		gap: 1.75rem;
	}
}

/* Motion
   ----------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}
}
