/*
Theme Name: wahafix
Theme URI: https://wahafix.com/
Author: واحة الإعمار
Description: ثيم كلاسيك خفيف ومخصص لموقع واحة الإعمار – صيانة المباني في السعودية. RTL، بدون أي Page Builder أو jQuery.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: wahafix
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */
@font-face {
	font-family: "Readex Pro";
	font-style: normal;
	font-weight: 160 700;
	font-display: swap;
	src: url("assets/fonts/readex-arabic.woff2") format("woff2");
	unicode-range: U+0600-06FF, U+0750-077F, U+0870-089F, U+08A0-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
	font-family: "Readex Pro";
	font-style: normal;
	font-weight: 160 700;
	font-display: swap;
	src: url("assets/fonts/readex-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	/* Colors */
	--c-navy: #0a3a57;
	--c-navy-800: #082e46;
	--c-navy-900: #061f30;
	--c-ink: #0e2433;
	--c-muted: #4a5b68;
	--c-amber: #f2a31b;
	--c-amber-600: #d98b06;
	--c-amber-text: #9a5b00;
	--c-sand: #f7f2ea;
	--c-sand-200: #efe6d8;
	--c-line: #e3dacb;
	--c-white: #fff;
	--c-wa: #0b7a4b;
	--c-wa-700: #08603b;
	--c-success: #0b7a4b;
	--c-error: #b42318;
	--c-focus: #0a3a57;

	/* Type */
	--font: "Readex Pro", "Segoe UI", Tahoma, system-ui, sans-serif;
	--fs-sm: 0.9375rem;
	--fs-base: 1.0625rem;
	--fs-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.3rem);
	--fs-h3: clamp(1.2rem, 1.1rem + 0.45vw, 1.45rem);
	--fs-h2: clamp(1.55rem, 1.3rem + 1.1vw, 2.3rem);
	--fs-h1: clamp(1.85rem, 1.45rem + 1.9vw, 3.1rem);
	--lh: 1.85;
	--lh-tight: 1.35;

	/* Space */
	--s-1: 0.25rem;
	--s-2: 0.5rem;
	--s-3: 0.75rem;
	--s-4: 1rem;
	--s-5: 1.5rem;
	--s-6: 2rem;
	--s-7: 3rem;
	--s-8: clamp(3rem, 2.2rem + 3.5vw, 5.5rem);
	--gutter: 16px;
	--container: 1200px;
	--narrow: 820px;

	/* Shape */
	--radius: 14px;
	--radius-sm: 10px;
	--radius-pill: 999px;
	--shadow-sm: 0 1px 2px rgba(6, 31, 48, 0.06), 0 2px 8px rgba(6, 31, 48, 0.05);
	--shadow: 0 10px 30px -12px rgba(6, 31, 48, 0.22);
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--header-h: 68px;
}

@media (min-width: 640px) {
	:root { --gutter: 24px; }
}
@media (min-width: 1024px) {
	:root { --header-h: 80px; }
}

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
	margin: 0;
	font-family: var(--font);
	font-size: var(--fs-base);
	line-height: var(--lh);
	color: var(--c-ink);
	background: var(--c-white);
	overflow-x: hidden;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
svg.icon { flex: none; display: inline-block; vertical-align: middle; }

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 var(--s-4);
	line-height: var(--lh-tight);
	font-weight: 700;
	color: var(--c-navy-900);
	text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3, .h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-lg); }

p { margin: 0 0 var(--s-4); }
ul, ol { margin: 0 0 var(--s-4); padding-inline-start: 1.25rem; }

a {
	color: var(--c-navy);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
a:hover { color: var(--c-amber-text); }

:focus-visible {
	outline: 3px solid var(--c-focus);
	outline-offset: 3px;
	border-radius: 4px;
}
.section--navy :focus-visible,
.site-footer :focus-visible,
.cta-band :focus-visible,
.mobile-bar :focus-visible { outline-color: var(--c-white); }

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

.skip-link {
	position: absolute;
	inset-inline-start: var(--s-4);
	top: -100px;
	z-index: 1000;
	padding: var(--s-3) var(--s-5);
	background: var(--c-navy);
	color: var(--c-white);
	border-radius: var(--radius-sm);
	font-weight: 600;
	text-decoration: none;
}
.skip-link:focus { top: var(--s-3); color: var(--c-white); }

.container {
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(var(--narrow) + var(--gutter) * 2); }

/* ==========================================================================
   3. Buttons
   ========================================================================== */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--s-2);
	min-height: 48px;
	padding: 0.7rem 1.35rem;
	border: 2px solid transparent;
	border-radius: var(--radius-pill);
	font: inherit;
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--c-amber); color: var(--c-ink); }
.btn--primary:hover { background: var(--c-amber-600); color: var(--c-ink); box-shadow: 0 8px 18px -8px rgba(217, 139, 6, 0.7); }
.btn--wa { background: var(--c-wa); color: var(--c-white); }
.btn--wa:hover { background: var(--c-wa-700); color: var(--c-white); box-shadow: 0 8px 18px -8px rgba(11, 122, 75, 0.7); }
.btn--ghost { border-color: var(--c-navy); color: var(--c-navy); background: transparent; }
.btn--ghost:hover { background: var(--c-navy); color: var(--c-white); }
.btn--sm { min-height: 44px; padding: 0.5rem 1rem; font-size: var(--fs-sm); }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-block: var(--s-5); }
.btn-row .btn { flex: 1 1 180px; }
@media (min-width: 640px) {
	.btn-row .btn { flex: 0 0 auto; }
}
.btn-row--stack { flex-direction: column; margin-block: var(--s-4); }
.btn-row--stack .btn { width: 100%; flex: none; }

/* ==========================================================================
   4. Header & navigation
   ========================================================================== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.97);
	border-bottom: 1px solid var(--c-line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
	.admin-bar .site-header { top: 0; }
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--s-4);
	min-height: var(--header-h);
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: var(--s-3);
	min-height: 44px;
	color: var(--c-navy-900);
	text-decoration: none;
}
.brand-logo { width: 48px; height: 48px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-weight: 700; font-size: 1.15rem; }
.brand-field { font-size: 0.8rem; color: var(--c-muted); }
@media (min-width: 1024px) {
	.brand-logo { width: 56px; height: 56px; }
}

.nav-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid var(--c-line);
	border-radius: var(--radius-sm);
	background: var(--c-white);
	color: var(--c-navy);
	cursor: pointer;
}
.nav-toggle-open { display: inline-flex; }
.nav-toggle-close { display: none; }
.is-open .nav-toggle-open { display: none; }
.is-open .nav-toggle-close { display: inline-flex; }

.site-nav {
	display: none;
	position: absolute;
	inset-inline: 0;
	top: 100%;
	max-height: calc(100dvh - var(--header-h));
	overflow-y: auto;
	padding: var(--s-4) var(--gutter) var(--s-6);
	background: var(--c-white);
	border-bottom: 1px solid var(--c-line);
	box-shadow: var(--shadow);
}
.is-open .site-nav { display: block; }
.menu-open { overflow: hidden; }

.site-nav .menu { list-style: none; margin: 0; padding: 0; }
.site-nav .menu-item { position: relative; display: flex; flex-wrap: wrap; align-items: center; }
.site-nav .menu > .menu-item { border-bottom: 1px solid var(--c-line); }
.site-nav .menu a {
	flex: 1;
	display: flex;
	align-items: center;
	min-height: 48px;
	padding: var(--s-2) 0;
	color: var(--c-ink);
	font-weight: 600;
	text-decoration: none;
}
.site-nav .menu a:hover,
.site-nav .current-menu-item > a,
.site-nav .current-menu-ancestor > a,
.site-nav .current-page-ancestor > a { color: var(--c-amber-text); }

.submenu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: var(--radius-sm);
	background: transparent;
	color: inherit;
	cursor: pointer;
}
.submenu-toggle .icon { width: 20px; height: 20px; stroke-width: 2.4; transition: transform 0.2s var(--ease); }
.submenu-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }

.site-nav .sub-menu {
	display: none;
	flex-basis: 100%;
	list-style: none;
	margin: 0 0 var(--s-3);
	padding: 0;
	padding-inline-start: var(--s-4);
	border-inline-start: 2px solid var(--c-amber);
}
.site-nav .sub-menu a { font-weight: 400; min-height: 44px; }
.submenu-toggle[aria-expanded="true"] + .sub-menu { display: block; }

.header-call { margin-top: var(--s-5); width: 100%; }

@media (min-width: 1024px) {
	.nav-toggle { display: none; }
	.site-nav {
		position: static;
		display: flex;
		align-items: center;
		gap: var(--s-5);
		max-height: none;
		overflow: visible;
		padding: 0;
		border: 0;
		box-shadow: none;
		background: transparent;
	}
	.site-nav .menu { display: flex; align-items: center; gap: var(--s-1); }
	.site-nav .menu > .menu-item { border: 0; flex-wrap: nowrap; }
	.site-nav .menu > .menu-item > a { padding-inline: var(--s-3); }
	.site-nav .menu-item-has-children > a { padding-inline-end: 0; }
	.submenu-toggle { width: 32px; }
	.site-nav .sub-menu {
		position: absolute;
		top: 100%;
		inset-inline-start: 0;
		z-index: 10;
		min-width: 270px;
		margin: 0;
		padding: var(--s-2);
		background: var(--c-white);
		border: 1px solid var(--c-line);
		border-radius: var(--radius);
		box-shadow: var(--shadow);
	}
	.site-nav .sub-menu a { padding: var(--s-2) var(--s-3); border-radius: var(--radius-sm); }
	.site-nav .sub-menu a:hover { background: var(--c-sand); }
	.menu-item-has-children:hover > .sub-menu,
	.menu-item-has-children:focus-within > .sub-menu { display: block; }
	.header-call { margin: 0; width: auto; }
}

/* ==========================================================================
   5. Sections & headings
   ========================================================================== */
.section { padding-block: var(--s-8); }
.section--tight { padding-block: var(--s-6) var(--s-8); }
.section--sand { background: var(--c-sand); }
.section--navy { background: var(--c-navy); color: var(--c-white); }
.section--navy .section-title { color: var(--c-white); }

.section-head { max-width: 760px; margin-bottom: var(--s-6); }
.section-head--row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--s-4);
	max-width: none;
}
.section-title { font-size: var(--fs-h2); margin-bottom: var(--s-3); }
.section-lead { color: var(--c-muted); font-size: var(--fs-lg); margin: 0; }

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: var(--s-2);
	margin-bottom: var(--s-4);
	padding: 0.3rem 0.85rem;
	border-radius: var(--radius-pill);
	background: var(--c-white);
	color: var(--c-amber-text);
	font-size: var(--fs-sm);
	font-weight: 600;
	box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   6. Hero (front page)
   ========================================================================== */
.hero {
	position: relative;
	padding-block: var(--s-6) var(--s-8);
	background: linear-gradient(180deg, var(--c-sand) 0%, var(--c-white) 100%);
	overflow: hidden;
}
.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: repeating-linear-gradient(135deg, rgba(10, 58, 87, 0.035) 0 2px, transparent 2px 22px);
	pointer-events: none;
}
.hero__inner {
	position: relative;
	display: grid;
	gap: var(--s-6);
	align-items: center;
}
.hero__title { font-size: var(--fs-h1); margin-bottom: var(--s-4); }
.hero__lead { font-size: var(--fs-lg); color: var(--c-muted); max-width: 62ch; }
.hero__points {
	display: grid;
	gap: var(--s-2);
	margin: 0;
	padding: 0;
	list-style: none;
	font-weight: 500;
}
.hero__points li { display: flex; align-items: center; gap: var(--s-2); }
.hero__points .icon {
	padding: 3px;
	width: 24px; height: 24px;
	border-radius: 50%;
	background: var(--c-amber);
	color: var(--c-ink);
}
.hero__media { position: relative; }
.hero__media img {
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-radius: calc(var(--radius) * 1.5);
	box-shadow: var(--shadow);
}
.hero__media::before {
	content: "";
	position: absolute;
	inset: 18px -12px -14px 18px;
	z-index: -1;
	border-radius: calc(var(--radius) * 1.5);
	background: var(--c-amber);
}
.hero__badge {
	position: absolute;
	inset-inline-end: var(--s-4);
	bottom: calc(var(--s-4) * -1);
	display: flex;
	align-items: center;
	gap: var(--s-3);
	padding: var(--s-3) var(--s-4);
	border-radius: var(--radius);
	background: var(--c-navy);
	color: var(--c-white);
	box-shadow: var(--shadow);
	font-size: var(--fs-sm);
	line-height: 1.4;
	max-width: 240px;
}
.hero__badge strong { font-size: 2rem; color: var(--c-amber); line-height: 1; }

@media (min-width: 960px) {
	.hero { padding-block: var(--s-7) var(--s-8); }
	.hero__inner { grid-template-columns: 1.1fr 0.9fr; gap: var(--s-7); }
}

/* ==========================================================================
   7. Cards & grids
   ========================================================================== */
.services-grid,
.projects-grid,
.posts-grid,
.why-grid {
	display: grid;
	gap: var(--s-4);
	grid-template-columns: 1fr;
}
@media (min-width: 640px) {
	.services-grid, .projects-grid, .posts-grid, .why-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-5); }
}
@media (min-width: 1024px) {
	.services-grid, .projects-grid, .posts-grid, .why-grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: var(--s-5);
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
	background: var(--c-white);
	transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.service-card:hover,
.service-card:focus-within {
	transform: translateY(-4px);
	border-color: var(--c-amber);
	box-shadow: var(--shadow);
}
.service-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin-bottom: var(--s-4);
	border-radius: var(--radius);
	background: var(--c-sand);
	color: var(--c-navy);
	transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.service-card:hover .service-card__icon { background: var(--c-navy); color: var(--c-amber); }
.service-card__title { font-size: var(--fs-h3); margin-bottom: var(--s-2); }
.service-card__title a { color: inherit; text-decoration: none; }
.service-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.service-card__text { color: var(--c-muted); margin-bottom: var(--s-4); }
.service-card__more {
	display: inline-flex;
	align-items: center;
	gap: var(--s-2);
	margin-top: auto;
	color: var(--c-amber-text);
	font-weight: 600;
	font-size: var(--fs-sm);
}
.service-card__more .icon { transition: transform 0.25s var(--ease); }
.service-card:hover .service-card__more .icon { transform: translateX(-4px); }

.why-item {
	padding: var(--s-5);
	border-radius: var(--radius);
	background: var(--c-white);
	box-shadow: var(--shadow-sm);
}
.why-item__num {
	display: block;
	margin-bottom: var(--s-2);
	color: var(--c-amber-text);
	font-weight: 700;
	font-size: 1.4rem;
	font-variant-numeric: tabular-nums;
}
.why-item__title { font-size: var(--fs-lg); margin-bottom: var(--s-2); }
.why-item p { color: var(--c-muted); margin: 0; }

.project-card,
.post-card {
	position: relative;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--c-white);
	border: 1px solid var(--c-line);
	transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.project-card:hover, .project-card:focus-within,
.post-card:hover, .post-card:focus-within { transform: translateY(-4px); box-shadow: var(--shadow); }
.project-card__media, .post-card__media { overflow: hidden; aspect-ratio: 4 / 3; background: var(--c-sand-200); }
.project-card__media img, .post-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s var(--ease);
}
.project-card:hover img, .post-card:hover img { transform: scale(1.04); }
.project-card__body, .post-card__body { padding: var(--s-4) var(--s-5) var(--s-5); }
.project-card__city {
	display: inline-flex;
	align-items: center;
	gap: var(--s-1);
	margin-bottom: var(--s-1);
	color: var(--c-amber-text);
	font-size: var(--fs-sm);
	font-weight: 600;
}
.project-card__title, .post-card__title { font-size: var(--fs-lg); margin: 0; }
.post-card__title { margin-bottom: var(--s-2); }
.project-card__title a, .post-card__title a { color: inherit; text-decoration: none; }
.project-card__title a::after, .post-card__title a::after { content: ""; position: absolute; inset: 0; }
.post-card__body p { color: var(--c-muted); margin: 0; }

/* Stats */
.stats .section-title { text-align: center; margin-bottom: var(--s-6); }
.stats-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--s-4);
	margin: 0;
	padding: 0;
	list-style: none;
}
@media (min-width: 768px) {
	.stats-grid { grid-template-columns: repeat(4, 1fr); }
}
.stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: var(--s-5) var(--s-3);
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: var(--radius);
	text-align: center;
}
.stat__value {
	display: inline-block;
	min-width: 3ch;
	color: var(--c-amber);
	font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.4rem);
	font-weight: 700;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
}
.stat__label { margin-top: var(--s-2); color: #dbe6ee; font-size: var(--fs-sm); }

/* Steps */
.steps-grid {
	display: grid;
	gap: var(--s-4);
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: step;
}
@media (min-width: 768px) {
	.steps-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-5); }
}
@media (min-width: 1024px) {
	.steps-grid { grid-template-columns: repeat(4, 1fr); }
}
.step {
	position: relative;
	padding: var(--s-5);
	padding-top: calc(var(--s-5) + 8px);
	border-top: 4px solid var(--c-amber);
	border-radius: var(--radius-sm);
	background: var(--c-sand);
	counter-increment: step;
}
.step::before {
	content: counter(step);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin-bottom: var(--s-3);
	border-radius: 50%;
	background: var(--c-navy);
	color: var(--c-white);
	font-weight: 700;
}
.step__title { font-size: var(--fs-lg); margin-bottom: var(--s-2); }
.step p { margin: 0; color: var(--c-muted); }

/* Cities */
.city-list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s-3);
	margin: 0;
	padding: 0;
	list-style: none;
}
.city-list li {
	display: inline-flex;
	align-items: center;
	gap: var(--s-2);
	min-height: 44px;
	padding: var(--s-2) var(--s-4);
	border: 1px solid var(--c-line);
	border-radius: var(--radius-pill);
	background: var(--c-white);
	font-weight: 600;
}
.city-list .icon { color: var(--c-amber-text); }

/* FAQ */
.faq { background: var(--c-sand); }
.faq .section-title { text-align: center; margin-bottom: var(--s-6); }
.faq-list { display: grid; gap: var(--s-3); }
.faq-item,
.prose .wp-block-details {
	border: 1px solid var(--c-line);
	border-radius: var(--radius-sm);
	background: var(--c-white);
}
.faq-item summary,
.prose .wp-block-details summary {
	position: relative;
	display: block;
	min-height: 44px;
	padding: var(--s-4) var(--s-5);
	padding-inline-end: 3.25rem;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}
.faq-item summary::-webkit-details-marker,
.prose .wp-block-details summary::-webkit-details-marker { display: none; }
.faq-item summary::after,
.prose .wp-block-details summary::after {
	content: "+";
	position: absolute;
	inset-inline-end: var(--s-5);
	top: 50%;
	transform: translateY(-50%);
	color: var(--c-amber-text);
	font-size: 1.5rem;
	font-weight: 400;
	line-height: 1;
	transition: transform 0.2s var(--ease);
}
.faq-item[open] summary::after,
.prose .wp-block-details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-answer,
.prose .wp-block-details > :not(summary) { padding: 0 var(--s-5) var(--s-4); color: var(--c-muted); }
.faq-answer p:last-child { margin: 0; }

/* CTA band */
.cta-band {
	padding-block: var(--s-7);
	background: linear-gradient(120deg, var(--c-navy) 0%, var(--c-navy-900) 100%);
	color: var(--c-white);
}
.cta-inner {
	display: flex;
	flex-direction: column;
	gap: var(--s-4);
}
.cta-title { color: var(--c-white); font-size: var(--fs-h2); margin-bottom: var(--s-2); }
.cta-text { color: #dbe6ee; margin: 0; font-size: var(--fs-lg); }
.btn-row--cta { margin: 0; }
@media (min-width: 960px) {
	.cta-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ==========================================================================
   8. Inner pages
   ========================================================================== */
.page-hero {
	padding-block: var(--s-5) var(--s-7);
	background: var(--c-sand);
	border-bottom: 1px solid var(--c-line);
}
.page-hero__inner { display: grid; gap: var(--s-6); align-items: center; }
.page-title { font-size: var(--fs-h1); margin-bottom: var(--s-3); }
.page-lead { color: var(--c-muted); font-size: var(--fs-lg); max-width: 70ch; margin: 0; }
.page-hero .btn-row { margin-bottom: 0; }
.page-hero__media img {
	width: 100%;
	height: auto;
	max-height: 440px;
	object-fit: cover;
	border-radius: calc(var(--radius) * 1.5);
	box-shadow: var(--shadow);
}
@media (min-width: 960px) {
	.page-hero--media .page-hero__inner { grid-template-columns: 1.15fr 0.85fr; gap: var(--s-7); }
}
.page-hero--post { padding-bottom: var(--s-6); }
.post-meta { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); color: var(--c-muted); font-size: var(--fs-sm); margin: 0; }
.post-cover { margin: var(--s-6) 0 0; }
.post-cover img { width: 100%; border-radius: var(--radius); }

.breadcrumbs { margin-bottom: var(--s-2); font-size: var(--fs-sm); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s-1); margin: 0; padding: 0; list-style: none; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: var(--s-1); color: var(--c-muted); }
.breadcrumbs li + li::before { content: "‹"; color: var(--c-muted); padding-inline: var(--s-1); }
.breadcrumbs a { color: var(--c-navy); display: inline-flex; min-height: 44px; align-items: center; }

.content-layout {
	display: grid;
	gap: var(--s-6);
	padding-block: var(--s-7);
}
@media (min-width: 1024px) {
	.content-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s-7); align-items: start; }
	.side-box { position: sticky; top: calc(var(--header-h) + var(--s-5)); }
}
.side-box { display: grid; gap: var(--s-4); }
.side-card {
	margin: 0;
	padding: var(--s-5);
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
	background: var(--c-white);
	box-shadow: var(--shadow-sm);
}
.side-card__title { font-weight: 700; font-size: var(--fs-lg); color: var(--c-navy-900); margin-bottom: var(--s-2); }
.side-card__text { color: var(--c-muted); margin: 0; }
.side-card__meta { display: flex; align-items: center; gap: var(--s-2); margin: 0; color: var(--c-muted); font-size: var(--fs-sm); }
.side-links ul { list-style: none; margin: 0; padding: 0; }
.side-links a {
	display: flex;
	align-items: center;
	min-height: 44px;
	border-bottom: 1px solid var(--c-line);
	color: var(--c-ink);
	text-decoration: none;
}
.side-links li:last-child a { border-bottom: 0; }
.side-links a:hover { color: var(--c-amber-text); }
.project-facts div { display: flex; justify-content: space-between; gap: var(--s-3); padding-block: var(--s-2); border-bottom: 1px solid var(--c-line); }
.project-facts div:last-child { border-bottom: 0; }
.project-facts dt { color: var(--c-muted); }
.project-facts dd { margin: 0; font-weight: 600; }

.related-links { margin-block: var(--s-6); padding: var(--s-5); border-radius: var(--radius); background: var(--c-sand); }
.related-links ul { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; margin: 0; padding: 0; }
.related-links a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: var(--s-1) var(--s-4);
	border-radius: var(--radius-pill);
	background: var(--c-white);
	text-decoration: none;
	font-weight: 600;
}

/* ==========================================================================
   9. Prose (editor content + core blocks used on the site)
   ========================================================================== */
.prose { min-width: 0; padding-block: var(--s-6); }
.content-layout .prose { padding-block: 0; }
.prose > * { margin-top: 0; margin-bottom: var(--s-4); }
.prose h2 { font-size: var(--fs-h2); margin-top: var(--s-7); }
.prose h3 { margin-top: var(--s-6); }
.prose > :first-child { margin-top: 0; }
.prose p, .prose li { max-width: 75ch; }
.prose a { color: var(--c-navy); text-decoration: underline; }
.prose a:hover { color: var(--c-amber-text); }
.prose strong { color: var(--c-navy-900); }
.prose ul li, .prose ol li { margin-bottom: var(--s-2); }
.prose img { border-radius: var(--radius-sm); height: auto; }
.prose figure { margin: var(--s-6) 0; }
.prose figcaption, .prose .wp-element-caption { margin-top: var(--s-2); color: var(--c-muted); font-size: var(--fs-sm); text-align: center; }
.prose blockquote {
	margin: var(--s-6) 0;
	padding: var(--s-4) var(--s-5);
	border-inline-start: 4px solid var(--c-amber);
	background: var(--c-sand);
	border-radius: var(--radius-sm);
}
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.prose th, .prose td { padding: var(--s-3); border: 1px solid var(--c-line); text-align: start; }
.prose th { background: var(--c-sand); }
.prose .wp-block-table { overflow-x: auto; }
.prose hr, .prose .wp-block-separator { border: 0; border-top: 1px solid var(--c-line); margin: var(--s-6) 0; }
.prose .wp-block-details { margin-bottom: var(--s-3); }

.prose .is-style-checks { list-style: none; padding: 0; display: grid; gap: var(--s-2); }
.prose .is-style-checks li {
	position: relative;
	margin: 0;
	padding-inline-start: 2rem;
}
.prose .is-style-checks li::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: 0.35em;
	width: 1.3rem;
	height: 1.3rem;
	border-radius: 50%;
	background: var(--c-amber) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e2433' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center / 70% no-repeat;
}

.prose .is-style-steps { list-style: none; padding: 0; counter-reset: pstep; display: grid; gap: var(--s-3); }
.prose .is-style-steps li {
	position: relative;
	margin: 0;
	padding: var(--s-4) var(--s-5);
	padding-inline-start: 4rem;
	border-radius: var(--radius-sm);
	background: var(--c-sand);
	counter-increment: pstep;
	max-width: none;
}
.prose .is-style-steps li::before {
	content: counter(pstep);
	position: absolute;
	inset-inline-start: var(--s-4);
	top: var(--s-4);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.1rem;
	height: 2.1rem;
	border-radius: 50%;
	background: var(--c-navy);
	color: var(--c-white);
	font-weight: 700;
	font-size: 0.95rem;
}

.prose .is-style-summary {
	padding: var(--s-5);
	border: 1px solid var(--c-amber);
	border-inline-start-width: 5px;
	border-radius: var(--radius-sm);
	background: #fffaf0;
}
.prose .is-style-summary > :last-child { margin-bottom: 0; }

.prose .is-style-cards,
.prose .wp-block-columns { display: grid; gap: var(--s-4); }
@media (min-width: 640px) {
	.prose .is-style-cards { grid-template-columns: repeat(2, 1fr); }
	.prose .wp-block-columns { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
}
.prose .is-style-cards > * {
	margin: 0;
	padding: var(--s-4) var(--s-5);
	border: 1px solid var(--c-line);
	border-radius: var(--radius-sm);
	background: var(--c-white);
}

.prose .wp-block-buttons { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.prose .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	padding: 0.7rem 1.35rem;
	border-radius: var(--radius-pill);
	background: var(--c-amber);
	color: var(--c-ink);
	font-weight: 600;
	text-decoration: none;
}
.prose .wp-block-button__link:hover { background: var(--c-amber-600); color: var(--c-ink); }

.has-text-align-center { text-align: center; }
.has-text-align-left { text-align: left; }
.has-navy-color { color: var(--c-navy); }
.has-amber-background-color { background-color: var(--c-amber); }
.has-sand-background-color { background-color: var(--c-sand); }
.has-navy-background-color { background-color: var(--c-navy); color: var(--c-white); }

/* ==========================================================================
   10. Contact page & form
   ========================================================================== */
.contact-layout { display: grid; gap: var(--s-6); padding-block: var(--s-7); }
@media (min-width: 1024px) {
	.contact-layout { grid-template-columns: 0.9fr 1.1fr; gap: var(--s-7); align-items: start; }
}
.contact-cards { display: grid; gap: var(--s-3); list-style: none; margin: 0 0 var(--s-5); padding: 0; }
.contact-card {
	display: flex;
	align-items: center;
	gap: var(--s-4);
	min-height: 72px;
	padding: var(--s-4);
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
	background: var(--c-white);
	color: var(--c-ink);
	text-decoration: none;
	transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
a.contact-card:hover { border-color: var(--c-amber); box-shadow: var(--shadow-sm); color: var(--c-ink); }
.contact-card .icon { color: var(--c-navy); }
.contact-card > span { display: flex; flex-direction: column; line-height: 1.5; }
.contact-card > span > span { color: var(--c-muted); }

.contact-form-wrap {
	padding: var(--s-5);
	border-radius: var(--radius);
	background: var(--c-sand);
}
@media (min-width: 640px) {
	.contact-form-wrap { padding: var(--s-6); }
}
.form-grid { display: grid; gap: var(--s-4); margin-bottom: var(--s-5); }
@media (min-width: 640px) {
	.form-grid { grid-template-columns: repeat(2, 1fr); }
	.field--full { grid-column: 1 / -1; }
}
.field { display: flex; flex-direction: column; gap: var(--s-1); }
.field label { font-weight: 600; }
.req { color: var(--c-error); }
.field input,
.field select,
.field textarea,
.search-form input {
	width: 100%;
	min-height: 48px;
	padding: 0.65rem 0.9rem;
	border: 1px solid #8a7f6d;
	border-radius: var(--radius-sm);
	background: var(--c-white);
	color: var(--c-ink);
	font: inherit;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input[dir="ltr"] { text-align: right; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible,
.search-form input:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 0; border-color: var(--c-focus); }
.field-hint { color: var(--c-muted); font-size: 0.85rem; }
.form-privacy { margin: var(--s-3) 0 0; color: var(--c-muted); font-size: var(--fs-sm); }
.form-notice { margin-bottom: var(--s-4); padding: var(--s-4); border-radius: var(--radius-sm); font-weight: 600; }
.form-notice--success { background: #e7f5ee; color: var(--c-success); border: 1px solid #9fd4bb; }
.form-notice--error { background: #fdecea; color: var(--c-error); border: 1px solid #f4b7b0; }
.hp-field { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.search-form { display: flex; gap: var(--s-2); margin-block: var(--s-5); }
.search-form .btn { flex: none; }

/* ==========================================================================
   11. 404, pagination
   ========================================================================== */
.error-404 { text-align: center; }
.error-404__code { margin: 0; font-size: clamp(4rem, 3rem + 6vw, 8rem); font-weight: 700; line-height: 1; color: var(--c-amber-text); }
.error-404 .page-lead { margin-inline: auto; margin-bottom: var(--s-5); }
.error-404__links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2); list-style: none; padding: 0; margin: var(--s-5) 0; }
.error-404__links a { display: inline-flex; align-items: center; min-height: 44px; padding: var(--s-1) var(--s-4); border: 1px solid var(--c-line); border-radius: var(--radius-pill); text-decoration: none; }
.error-404 .btn-row { justify-content: center; }

.pagination { margin-top: var(--s-6); }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: var(--s-2); justify-content: center; }
.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 var(--s-3);
	border: 1px solid var(--c-line);
	border-radius: var(--radius-sm);
	text-decoration: none;
}
.pagination .current { background: var(--c-navy); color: var(--c-white); border-color: var(--c-navy); }

/* ==========================================================================
   12. Footer, floating WhatsApp, mobile bar
   ========================================================================== */
.site-footer { background: var(--c-navy-900); color: #c9d6df; font-size: var(--fs-sm); }
.footer-grid { display: grid; gap: var(--s-6); padding-block: var(--s-8) var(--s-6); }
@media (min-width: 768px) {
	.footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
	.footer-grid { grid-template-columns: 1.3fr 1fr 0.8fr 1.2fr; }
}
.footer-brand { color: var(--c-white); font-weight: 700; font-size: 1.35rem; margin-bottom: var(--s-3); }
.footer-title { color: var(--c-white); font-size: 1.05rem; margin-bottom: var(--s-3); }
.footer-links, .footer-contact { list-style: none; margin: 0; padding: 0; }
.footer-links a, .footer-contact a { color: #e9f0f5; text-decoration: none; }
.footer-links a:hover, .footer-contact a:hover { color: var(--c-amber); text-decoration: underline; }
.footer-links li a, .footer-contact a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-contact li { display: flex; align-items: center; gap: var(--s-3); padding-block: var(--s-1); }
.footer-contact .icon { color: var(--c-amber); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-block: var(--s-4); }
.footer-bottom p { margin: 0; }

.wa-float {
	position: fixed;
	inset-inline-end: 20px;
	bottom: 20px;
	z-index: 90;
	display: none;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: var(--c-wa);
	color: var(--c-white);
	box-shadow: 0 10px 24px -8px rgba(11, 122, 75, 0.8);
	transition: transform 0.2s var(--ease), background-color 0.2s var(--ease);
}
.wa-float:hover { transform: scale(1.06); background: var(--c-wa-700); color: var(--c-white); }

.mobile-bar {
	position: fixed;
	inset-inline: 0;
	bottom: 0;
	z-index: 95;
	display: grid;
	grid-template-columns: 1fr 1fr;
	padding-bottom: env(safe-area-inset-bottom);
	background: var(--c-white);
	box-shadow: 0 -6px 18px -8px rgba(6, 31, 48, 0.3);
}
.mobile-bar a {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--s-2);
	min-height: 56px;
	font-weight: 700;
	text-decoration: none;
}
.mobile-bar__call { background: var(--c-amber); color: var(--c-ink); }
.mobile-bar__wa { background: var(--c-wa); color: var(--c-white); }
.mobile-bar__call:hover { color: var(--c-ink); }
.mobile-bar__wa:hover { color: var(--c-white); }
body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }

@media (min-width: 768px) {
	.mobile-bar { display: none; }
	.wa-float { display: inline-flex; }
	body { padding-bottom: 0; }
}

/* ==========================================================================
   13. Motion: reveal on scroll (applied only by JS to below-the-fold items)
   ========================================================================== */
.reveal.is-pending { opacity: 0; transform: translateY(18px); }
.reveal.is-pending.is-visible {
	opacity: 1;
	transform: none;
	transition: opacity 0.6s var(--ease) var(--reveal-delay, 0ms), transform 0.6s var(--ease) var(--reveal-delay, 0ms), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

@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;
	}
	.reveal.is-pending { opacity: 1; transform: none; }
	.btn:hover, .service-card:hover, .project-card:hover, .post-card:hover { transform: none; }
}

/* ==========================================================================
   14. Print
   ========================================================================== */
@media print {
	.site-header, .mobile-bar, .wa-float, .cta-band, .side-box, .site-footer { display: none !important; }
	body { padding: 0; }
}
