/*
Theme Name: Sentrya
Theme URI: https://sentryapayroll.co.uk
Author: Sentrya
Description: Custom theme for Sentrya Payroll — temporary staffing and outsourced payroll services.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: sentrya
*/

/* ==========================================================================
   Tokens
   ========================================================================== */

:root {
	--ink: #0b3130;
	--ink-2: #10403e;
	--ink-3: #16514e;
	--copper: #c47a47;
	--copper-dark: #a86234;
	--copper-soft: #f3e6db;
	--cream: #f8f5f0;
	--cream-2: #f2ede5;
	--white: #ffffff;
	--text: #46514f;
	--text-soft: #6a7573;
	--border: #e4ded4;
	--border-dark: rgba(255, 255, 255, 0.14);

	--wrap: 1180px;
	--radius: 14px;
	--radius-lg: 22px;
	--shadow: 0 2px 4px rgba(11, 49, 48, 0.04), 0 12px 28px rgba(11, 49, 48, 0.06);
	--shadow-lg: 0 4px 8px rgba(11, 49, 48, 0.05), 0 24px 50px rgba(11, 49, 48, 0.1);
}

/* ==========================================================================
   Base
   ========================================================================== */

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.7;
	color: var(--text);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: var(--copper-dark);
	text-decoration: none;
}

a:hover {
	color: var(--copper);
}

h1,
h2,
h3,
h4 {
	margin: 0 0 0.6em;
	color: var(--ink);
	font-weight: 600;
	line-height: 1.22;
	letter-spacing: -0.015em;
}

h1 {
	font-size: clamp(2.1rem, 4.6vw, 3.4rem);
	font-weight: 700;
}

h2 {
	font-size: clamp(1.7rem, 3.2vw, 2.5rem);
}

h3 {
	font-size: 1.2rem;
}

p {
	margin: 0 0 1.1em;
}

ul {
	margin: 0 0 1.1em;
	padding-left: 1.2em;
}

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 24px;
}

.wrap-narrow {
	max-width: 820px;
}

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

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--ink);
	color: #fff;
	padding: 12px 20px;
	z-index: 999;
}

.skip-link:focus {
	left: 0;
	color: #fff;
}

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

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 28px;
	border: 2px solid transparent;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.btn:hover {
	transform: translateY(-2px);
}

.btn-primary {
	background: var(--copper);
	border-color: var(--copper);
	color: #fff;
}

.btn-primary:hover {
	background: var(--copper-dark);
	border-color: var(--copper-dark);
	color: #fff;
}

.btn-outline {
	background: transparent;
	border-color: var(--ink);
	color: var(--ink);
}

.btn-outline:hover {
	background: var(--ink);
	color: #fff;
}

.btn-ghost {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.45);
	color: #fff;
}

.btn-ghost:hover {
	background: #fff;
	border-color: #fff;
	color: var(--ink);
}

.btn-white {
	background: #fff;
	border-color: #fff;
	color: var(--ink);
}

.btn-white:hover {
	background: var(--copper);
	border-color: var(--copper);
	color: #fff;
}

.link-more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--copper-dark);
}

.link-more svg {
	transition: transform 0.2s;
}

.link-more:hover svg {
	transform: translateX(4px);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: #fff;
	border-bottom: 1px solid var(--border);
}

.site-header .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	max-width: 1300px;
	padding-top: 10px;
	padding-bottom: 10px;
}

.site-brand {
	display: block;
	flex: 0 0 auto;
}

.site-brand img {
	height: 70px;
	width: auto;
	transition: height 0.25s ease;
}

/* Shrink the logo once the page scrolls so the sticky header stays compact. */
.site-header.is-scrolled .site-brand img {
	height: 52px;
}

.site-brand .brand-text {
	font-size: 1.4rem;
	font-weight: 700;
	color: var(--ink);
}

.nav-area {
	display: flex;
	align-items: center;
	gap: 22px;
}

.main-nav ul {
	display: flex;
	align-items: center;
	gap: 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.main-nav a {
	display: block;
	padding: 6px 0;
	white-space: nowrap;
	font-size: 0.74rem;
	font-weight: 600;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--ink);
	border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
	color: var(--copper-dark);
	border-bottom-color: var(--copper);
}

.nav-toggle {
	display: none;
	width: 44px;
	height: 44px;
	padding: 0;
	background: none;
	border: 1px solid var(--border);
	border-radius: 10px;
	cursor: pointer;
}

.nav-toggle span {
	display: block;
	width: 20px;
	height: 2px;
	margin: 4px auto;
	background: var(--ink);
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section {
	padding: 84px 0;
}

.section-sm {
	padding: 60px 0;
}

.section-cream {
	background: var(--cream);
}

.section-dark {
	background: var(--ink);
	color: rgba(255, 255, 255, 0.82);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
	color: #fff;
}

.section-head {
	max-width: 720px;
	margin-bottom: 48px;
}

.section-head.center {
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.eyebrow {
	display: block;
	margin-bottom: 14px;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--copper-dark);
}

.section-dark .eyebrow {
	color: var(--copper);
}

.lede {
	font-size: 1.05rem;
	color: var(--text-soft);
}

.section-dark .lede {
	color: rgba(255, 255, 255, 0.78);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
	position: relative;
	isolation: isolate;
	background: var(--white);
	overflow: hidden;
}

/* The photograph fills the band; the veil fades it out behind the copy. */
.hero-bg {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* Centred so a pre-faded banner keeps its white ramp on the left edge. */
	object-position: center;
}

.hero-veil {
	position: absolute;
	inset: 0;
	z-index: -1;
	/*
	 * Opaque until ~38% so the copy column always sits on solid white, then
	 * clear by ~74% — the point where hero subjects sit once `cover` has
	 * cropped the artwork to the band.
	 */
	background: linear-gradient(
		100deg,
		#ffffff 0%,
		#ffffff 48%,
		rgba(255, 255, 255, 0.92) 54%,
		rgba(255, 255, 255, 0.62) 60%,
		rgba(255, 255, 255, 0.25) 65%,
		rgba(255, 255, 255, 0) 70%
	);
}

.hero .wrap {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: center;
	min-height: 460px;
	padding-top: 72px;
	padding-bottom: 72px;
}

.hero-copy {
	max-width: 560px;
}

.hero h1 {
	color: var(--ink);
	margin-bottom: 20px;
}

.hero h1 .accent {
	color: var(--copper);
}

.hero .hero-sub {
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--ink);
	margin-bottom: 18px;
}

.hero p {
	color: var(--text);
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 30px;
}

/* ==========================================================================
   Cards
   ========================================================================== */

.grid {
	display: grid;
	gap: 26px;
}

.grid-2 {
	grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
	grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
	grid-template-columns: repeat(4, 1fr);
}

.card {
	padding: 34px;
	background: #fff;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.card:hover {
	transform: translateY(-4px);
	border-color: var(--copper);
	box-shadow: var(--shadow);
}

.card h3 {
	margin-bottom: 10px;
}

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

.card-tagline {
	font-weight: 600;
	color: var(--ink);
}

.card-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	margin-bottom: 20px;
	background: var(--copper-soft);
	border-radius: 50%;
	color: var(--copper-dark);
}

.section-dark .card {
	background: var(--ink-2);
	border-color: var(--border-dark);
	color: rgba(255, 255, 255, 0.78);
}

.section-dark .card:hover {
	border-color: var(--copper);
}

.section-dark .card-icon {
	background: rgba(196, 122, 71, 0.18);
	color: var(--copper);
}

.card-compact {
	padding: 26px;
}

.card-compact .card-icon {
	width: 44px;
	height: 44px;
	margin-bottom: 14px;
}

.card-compact h3 {
	font-size: 1.02rem;
}

.card-compact p {
	font-size: 0.92rem;
}

/* Feature card with a link footer */
.card-service {
	display: flex;
	flex-direction: column;
}

.card-service .link-more {
	margin-top: auto;
	padding-top: 18px;
}

/* ==========================================================================
   Steps
   ========================================================================== */

.steps {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 26px;
	counter-reset: step;
}

.step {
	position: relative;
	padding-top: 8px;
}

.step-num {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin-bottom: 20px;
	border-radius: 50%;
	background: var(--copper);
	color: #fff;
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.section-dark .step-num {
	background: var(--copper);
	color: #fff;
}

.step h3 {
	font-size: 1.05rem;
}

.step p {
	font-size: 0.93rem;
	margin-bottom: 0;
}

/* ==========================================================================
   Split content
   ========================================================================== */

.split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 56px;
	align-items: center;
}

.split-media img {
	width: 100%;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

/* ==========================================================================
   Check lists
   ========================================================================== */

.checklist {
	margin: 0 0 1.4em;
	padding: 0;
	list-style: none;
}

.checklist li {
	position: relative;
	padding: 7px 0 7px 32px;
}

.checklist li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 15px;
	width: 8px;
	height: 14px;
	border: solid var(--copper);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.section-dark .checklist li::before {
	border-color: var(--copper);
}

.checklist-2 {
	columns: 2;
	column-gap: 40px;
}

.checklist-2 li {
	break-inside: avoid;
}

/* ==========================================================================
   CTA band
   ========================================================================== */

.cta-band {
	padding: 72px 0;
	background: var(--ink);
	color: rgba(255, 255, 255, 0.82);
	text-align: center;
}

.cta-band h2 {
	color: #fff;
}

.cta-band p {
	max-width: 620px;
	margin: 0 auto 28px;
	color: rgba(255, 255, 255, 0.78);
}

.cta-band-copper {
	background: var(--copper);
}

.cta-band-copper p {
	color: rgba(255, 255, 255, 0.92);
}

/* Inline callout panel */
.panel {
	padding: 40px;
	background: var(--cream);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	text-align: center;
}

.panel h3 {
	font-size: 1.4rem;
}

.panel p {
	max-width: 560px;
	margin: 0 auto 22px;
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-layout {
	display: grid;
	grid-template-columns: 0.85fr 1.15fr;
	gap: 48px;
	align-items: start;
}

.contact-aside .card + .card {
	margin-top: 20px;
}

.contact-details {
	margin-top: 20px;
	padding: 28px;
	background: var(--ink);
	border-radius: var(--radius);
	color: rgba(255, 255, 255, 0.82);
}

.contact-details h3 {
	color: #fff;
	font-size: 1.05rem;
}

.contact-details a {
	color: #fff;
	font-weight: 500;
}

.contact-details a:hover {
	color: var(--copper);
}

.contact-details p {
	margin-bottom: 8px;
}

/* Form */
.enquiry-form {
	padding: 40px;
	background: #fff;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
}

.form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.field {
	display: flex;
	flex-direction: column;
	gap: 7px;
}

.field-full {
	grid-column: 1 / -1;
}

.field label {
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--ink);
}

.field .req {
	color: var(--copper-dark);
}

.field input,
.field select,
.field textarea {
	width: 100%;
	padding: 12px 14px;
	font-family: inherit;
	font-size: 0.94rem;
	color: var(--ink);
	background: var(--cream);
	border: 1px solid var(--border);
	border-radius: 10px;
	transition: border-color 0.2s, background-color 0.2s;
}

.field textarea {
	min-height: 130px;
	resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
	background: #fff;
	border-color: var(--copper);
	outline: none;
}

.field-consent {
	grid-column: 1 / -1;
	flex-direction: row;
	align-items: flex-start;
	gap: 12px;
}

.field-consent input {
	width: 18px;
	height: 18px;
	margin-top: 4px;
	flex: 0 0 auto;
	accent-color: var(--copper);
}

.field-consent label {
	font-size: 0.86rem;
	font-weight: 400;
	color: var(--text);
	line-height: 1.55;
}

.form-notice {
	grid-column: 1 / -1;
	padding: 16px 20px;
	border-radius: 10px;
	font-size: 0.93rem;
}

.form-notice-error {
	background: #fdf1ec;
	border: 1px solid #e8c4b1;
	color: #8a3d18;
}

.form-notice-success {
	background: #eef5f0;
	border: 1px solid #b9d4c3;
	color: #1c5738;
}

.form-notice ul {
	margin: 8px 0 0;
	padding-left: 20px;
}

.hp-field {
	position: absolute;
	left: -9999px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
	padding: 68px 0 0;
	background: var(--ink);
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.93rem;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1fr;
	gap: 40px;
	padding-bottom: 48px;
}

.site-footer h4 {
	margin-bottom: 18px;
	font-size: 0.76rem;
	font-weight: 600;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: #fff;
}

.site-footer ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer li {
	margin-bottom: 10px;
}

.site-footer a {
	color: rgba(255, 255, 255, 0.7);
}

.site-footer a:hover {
	color: var(--copper);
}

.footer-brand img {
	height: 40px;
	width: auto;
	margin-bottom: 20px;
	filter: brightness(0) invert(1);
}

.footer-brand p {
	max-width: 300px;
}

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	padding: 22px 0;
	border-top: 1px solid var(--border-dark);
	font-size: 0.86rem;
}

/* ==========================================================================
   Editor / fallback content
   ========================================================================== */

.entry-content {
	padding: 70px 0;
}

.entry-content img {
	border-radius: var(--radius);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* The inline nav needs ~1050px to sit on one line — collapse it before that. */
@media (max-width: 1080px) {
	.nav-toggle {
		display: block;
	}

	.main-nav {
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		display: none;
		padding: 12px 24px 20px;
		background: #fff;
		border-bottom: 1px solid var(--border);
		box-shadow: var(--shadow);
	}

	.main-nav.is-open {
		display: block;
	}

	.main-nav ul {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.main-nav li {
		border-bottom: 1px solid var(--border);
	}

	.main-nav a {
		padding: 13px 0;
		border-bottom: none;
	}
}

@media (max-width: 1000px) {
	.grid-4 {
		grid-template-columns: repeat(2, 1fr);
	}

	.steps {
		grid-template-columns: repeat(2, 1fr);
	}

	.contact-layout {
		grid-template-columns: 1fr;
	}

	/* Narrower viewports: fade the photo out downwards instead of sideways. */
	.hero .wrap {
		grid-template-columns: 1fr;
		gap: 0;
		min-height: 400px;
	}

	.hero-copy {
		max-width: none;
	}

	.hero-bg {
		object-position: center 30%;
	}

	.hero-veil {
		background: linear-gradient(
			180deg,
			rgba(255, 255, 255, 0.9) 0%,
			rgba(255, 255, 255, 0.96) 30%,
			#ffffff 60%
		);
	}
}

@media (max-width: 860px) {
	.section {
		padding: 60px 0;
	}

	.grid-3,
	.grid-2 {
		grid-template-columns: 1fr;
	}

	.split {
		grid-template-columns: 1fr;
		gap: 34px;
	}

	.footer-grid {
		grid-template-columns: 1fr 1fr;
	}

	.checklist-2 {
		columns: 1;
	}

	.site-brand img {
		height: 56px;
	}

	.site-header.is-scrolled .site-brand img {
		height: 46px;
	}

	.form-grid {
		grid-template-columns: 1fr;
	}

	.enquiry-form {
		padding: 26px;
	}
}

/* Below this the logo, burger and CTA stop fitting side by side. */
@media (max-width: 700px) {
	.nav-area .btn {
		display: none;
	}
}

@media (max-width: 560px) {
	.grid-4,
	.steps,
	.footer-grid {
		grid-template-columns: 1fr;
	}

	.card {
		padding: 26px;
	}

	.hero-actions .btn {
		width: 100%;
		justify-content: center;
	}
}
