/* ==========================================================================
   Elite Sign design system
   1. Fonts   2. Tokens   3. Base   4. Layout   5. Components
   6. Header & footer   7. Content (blog)   8. WordPress core   9. Motion
   ========================================================================== */

/* 1. Fonts (self-hosted, Latin only: covers English and Bahasa Melayu) ---- */
@font-face {
	font-family: "Bricolage Grotesque";
	src: url("../fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
	font-weight: 200 800;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Instrument Sans";
	src: url("../fonts/instrument-sans-latin-wght-normal.woff2") format("woff2");
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
}

/* 2. Tokens --------------------------------------------------------------- */
:root {
	/* Colour: the logo's charcoal and amber, white pages, navy as the quiet second voice */
	--es-charcoal: #2b2e33;
	--es-charcoal-deep: #1f2125;
	--es-amber: #f7a936;
	--es-amber-tint: #fdebc9;
	--es-amber-deep: #a15f00;
	--es-navy: #16287e;
	--es-white: #fff;
	--es-surface: #f3f4f6;
	--es-line: #e2e4e8;
	--es-muted: #5a5f69;
	--es-wa: #0f7a40;

	/* Type */
	--font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
	--font-body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
	--fs-sm: 0.9375rem;
	--fs-base: 1.0625rem;
	--fs-md: 1.25rem;
	--fs-lg: clamp(1.375rem, 1.1rem + 1vw, 1.75rem);
	--fs-xl: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);
	--fs-2xl: clamp(2.125rem, 1.5rem + 2.8vw, 3.5rem);
	--fs-hero: clamp(2.6rem, 1.6rem + 4.6vw, 5.25rem);

	/* Space */
	--sp-1: 0.25rem;
	--sp-2: 0.5rem;
	--sp-3: 0.75rem;
	--sp-4: 1rem;
	--sp-5: 1.5rem;
	--sp-6: 2rem;
	--sp-7: 3rem;
	--sp-8: 4.5rem;
	--space-section: clamp(3.5rem, 2rem + 6vw, 7rem);

	/* Shape: plates get small corners, cards larger, chips fully round */
	--r-sm: 10px;
	--r-md: 16px;
	--r-lg: 22px;
	--r-pill: 999px;

	/* The one signature effect: light, like an illuminated sign */
	--glow: 0 10px 30px -8px rgba(247, 169, 54, 0.7);
	--glow-soft: 0 6px 22px -10px rgba(247, 169, 54, 0.8);

	/* Placeholder drawings (colours can be changed in the Customizer) */
	--ph-bg: #2b2e33;
	--ph-accent: #f7a936;
	--ph-surface: #3b3e44;
	--ph-line: #5c6068;
	--ph-light: #fff;

	--container: 75rem;
	--header-h: 4.5rem;
}

@supports (color: color-mix(in srgb, red, blue)) {
	:root {
		--ph-surface: color-mix(in srgb, var(--ph-bg) 82%, #fff);
		--ph-line: color-mix(in srgb, var(--ph-bg) 60%, #fff);
	}
}

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: var(--fs-base);
	line-height: 1.65;
	color: var(--es-charcoal);
	background: var(--es-white);
	-webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3,
h4 {
	margin: 0 0 var(--sp-4);
	font-family: var(--font-display);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }

p {
	margin: 0 0 var(--sp-4);
	text-wrap: pretty;
}

a {
	color: var(--es-navy);
	text-underline-offset: 0.2em;
}

a:hover {
	color: var(--es-charcoal);
}

:focus-visible {
	outline: 3px solid var(--es-navy);
	outline-offset: 3px;
}

.on-dark :focus-visible,
.section--dark :focus-visible {
	outline-color: var(--es-amber);
}

.icon {
	width: 1.25em;
	height: 1.25em;
	flex: none;
}

.display {
	font-size: var(--fs-hero);
	line-height: 1.02;
	letter-spacing: -0.03em;
}

.lead {
	font-size: var(--fs-md);
	color: var(--es-muted);
	max-width: 40rem;
}

/* 4. Layout ---------------------------------------------------------------- */
.container {
	width: min(100% - 2.5rem, var(--container));
	margin-inline: auto;
}

.section {
	padding-block: var(--space-section);
}

.section--soft {
	background: var(--es-surface);
}

.section--dark {
	background: var(--es-charcoal);
	color: var(--es-white);
}

.section--dark a:not(.btn) {
	color: var(--es-white);
}

.section--dark .lead {
	color: #d7dae0;
}

.grid {
	display: grid;
	gap: var(--sp-5);
}

.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }

.cluster {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--sp-3);
}

.stack > * + * {
	margin-top: var(--sp-4);
}

.page-head {
	max-width: 48rem;
	margin-bottom: var(--sp-6);
}

/* 5. Components ------------------------------------------------------------ */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	min-height: 3rem;
	padding: 0.7rem 1.5rem;
	border: 2px solid transparent;
	border-radius: var(--r-sm);
	font: 600 var(--fs-base)/1.2 var(--font-body);
	text-decoration: none;
	cursor: pointer;
	transition: box-shadow 0.2s, background-color 0.2s, color 0.2s, border-color 0.2s;
}

.btn--lg {
	min-height: 3.5rem;
	padding: 0.9rem 1.75rem;
}

.btn--sm {
	min-height: 2.5rem;
	padding: 0.5rem 1.1rem;
	font-size: var(--fs-sm);
}

.btn--primary {
	background: var(--es-amber);
	color: var(--es-charcoal);
}

.btn--primary:hover {
	background: #ffb94d;
	color: var(--es-charcoal);
	box-shadow: var(--glow);
}

.btn--dark {
	background: var(--es-charcoal);
	color: var(--es-white);
}

.btn--dark:hover {
	background: var(--es-charcoal-deep);
	color: var(--es-white);
}

.btn--outline {
	border-color: currentcolor;
	background: transparent;
	color: inherit;
}

.btn--outline:hover {
	background: var(--es-charcoal);
	border-color: var(--es-charcoal);
	color: var(--es-white);
}

.btn--wa {
	background: var(--es-wa);
	color: var(--es-white);
}

.btn--wa:hover {
	background: #0b6234;
	color: var(--es-white);
}

.card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--es-white);
	border: 1px solid var(--es-line);
	border-radius: var(--r-md);
}

.card__media img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 11;
	object-fit: cover;
}

.card__body {
	padding: var(--sp-5);
}

.card__title {
	font-size: var(--fs-md);
	margin-bottom: var(--sp-2);
}

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

.card__meta {
	margin-bottom: var(--sp-3);
	font-size: var(--fs-sm);
	color: var(--es-muted);
}

/* Cards that are links light up: amber edge plus soft glow */
.card--link {
	transition: border-color 0.2s, box-shadow 0.2s;
}

.card--link:hover,
.card--link:focus-within {
	border-color: var(--es-amber);
	box-shadow: var(--glow-soft);
}

.chip {
	display: inline-block;
	padding: 0.2rem 0.75rem;
	border-radius: var(--r-pill);
	background: var(--es-amber-tint);
	color: var(--es-charcoal);
	font-size: var(--fs-sm);
	font-weight: 600;
}

/* Forms */
label {
	display: block;
	margin-bottom: var(--sp-2);
	font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
select,
textarea {
	width: 100%;
	min-height: 3rem;
	padding: 0.65rem 0.9rem;
	border: 1.5px solid #8b909a;
	border-radius: var(--r-sm);
	background: var(--es-white);
	color: var(--es-charcoal);
	font: inherit;
}

textarea {
	min-height: 8rem;
}

input:focus,
select:focus,
textarea:focus {
	border-color: var(--es-navy);
	outline: 3px solid rgba(22, 40, 126, 0.25);
	outline-offset: 0;
}

/* 6. Header & footer ------------------------------------------------------- */
.skip-link:focus {
	position: fixed;
	top: var(--sp-3);
	left: var(--sp-3);
	z-index: 100;
	padding: var(--sp-3) var(--sp-4);
	border-radius: var(--r-sm);
	background: var(--es-charcoal);
	color: var(--es-white);
	clip: auto;
	clip-path: none;
	width: auto;
	height: auto;
}

/* Keep the sticky header below the WordPress admin bar */
.admin-bar .site-header {
	top: 32px;
}

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

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

/* Top bar (desktop only) */
.topbar {
	display: none;
	background: var(--es-charcoal-deep);
	color: #d7dae0;
	font-size: var(--fs-sm);
}

.topbar a {
	color: var(--es-white);
	text-decoration: none;
}

.topbar a:hover {
	color: var(--es-amber);
}

.topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-4);
	min-height: 2.5rem;
}

.topbar__info {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-5);
	margin: 0;
	padding: 0;
	list-style: none;
}

.topbar__info li {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.topbar .icon {
	width: 1rem;
	height: 1rem;
	color: var(--es-amber);
}

/* Language switch */
.lang-switch {
	display: flex;
	gap: var(--sp-2);
	margin: 0;
	padding: 0;
	list-style: none;
}

.lang-switch a {
	display: inline-block;
	padding: 0.2rem 0.75rem;
	border: 1.5px solid rgba(255, 255, 255, 0.3);
	border-radius: var(--r-pill);
	color: var(--es-white);
	font-size: var(--fs-sm);
	font-weight: 600;
	text-decoration: none;
}

.lang-switch a:hover {
	border-color: var(--es-amber);
	color: var(--es-amber);
}

.lang-switch a[aria-current="true"] {
	background: var(--es-amber);
	border-color: var(--es-amber);
	color: var(--es-charcoal);
}

.lang-switch--bar a {
	padding: 0.05rem 0.65rem;
}

/* Header bar and logo */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--es-charcoal);
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	color: var(--es-white);
}

.site-header__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-4);
	min-height: var(--header-h);
	padding-block: 0.5rem;
}

.brand .custom-logo-link,
.brand__link {
	display: inline-flex;
	align-items: center;
}

.brand img {
	display: block;
	width: auto;
	height: auto;
	max-height: min(var(--logo-h, 48px), 44px);
}

.brand--footer img {
	max-height: var(--logo-h-footer, 44px);
}

.brand__text {
	font: 700 var(--fs-md)/1 var(--font-display);
	color: var(--es-white);
	text-decoration: none;
}

/* Menu button (phone and tablet) */
.nav-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	border: 1.5px solid rgba(255, 255, 255, 0.3);
	border-radius: var(--r-sm);
	background: transparent;
	color: var(--es-white);
	cursor: pointer;
}

.nav-toggle__close,
.nav-toggle[aria-expanded="true"] .nav-toggle__open {
	display: none;
}

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

/* Menu panel (phone and tablet): opens under the header and scrolls on its own */
.primary-nav {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	max-height: calc(100vh - var(--header-h));
	max-height: calc(100dvh - var(--header-h));
	overflow-y: auto;
	padding: var(--sp-4) 1.25rem var(--sp-6);
	background: var(--es-charcoal-deep);
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.6);
}

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

.primary-nav ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-nav__list > li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.primary-nav__list > li > a {
	flex: 1;
	padding: var(--sp-3) 0;
	color: var(--es-white);
	font: 700 var(--fs-lg)/1.2 var(--font-display);
	text-decoration: none;
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current-menu-ancestor > a {
	color: var(--es-amber);
}

.submenu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border: 0;
	background: transparent;
	color: var(--es-white);
	cursor: pointer;
}

.submenu-toggle .icon {
	transition: transform 0.2s;
}

.is-expanded > .submenu-toggle .icon {
	transform: rotate(180deg);
}

.primary-nav .sub-menu {
	display: none;
	flex-basis: 100%;
	padding: 0 0 var(--sp-3) var(--sp-4);
}

.primary-nav li.is-expanded > .sub-menu {
	display: block;
}

.primary-nav .sub-menu a {
	display: block;
	padding: 0.45rem 0;
	color: #d7dae0;
	font-weight: 500;
	text-decoration: none;
}

.primary-nav__extra {
	display: grid;
	gap: var(--sp-4);
	margin-top: var(--sp-5);
}

.primary-nav__extra .btn {
	width: 100%;
}

.primary-nav__call {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	font-weight: 600;
}

.primary-nav__call a {
	color: var(--es-white);
}

.btn--glow {
	box-shadow: var(--glow-soft);
}

body.nav-open {
	overflow: hidden;
}

body.nav-open .wa-float {
	display: none;
}

/* Desktop header */
@media (min-width: 64rem) {
	.topbar {
		display: block;
	}

	.brand img {
		max-height: var(--logo-h, 48px);
	}

	.nav-toggle,
	.submenu-toggle,
	.lang-switch--nav,
	.primary-nav__call {
		display: none;
	}

	.primary-nav,
	.primary-nav.is-open {
		display: flex;
		align-items: center;
		gap: var(--sp-6);
		position: static;
		max-height: none;
		overflow: visible;
		padding: 0;
		border: 0;
		background: transparent;
		box-shadow: none;
	}

	.primary-nav__list {
		display: flex;
		gap: var(--sp-5);
	}

	.primary-nav__list > li {
		position: relative;
		min-height: var(--header-h);
		border: 0;
	}

	.primary-nav__list > li > a {
		flex: none;
		padding: 0.5rem 0;
		box-shadow: inset 0 -3px 0 transparent;
		font: 600 var(--fs-base)/1.2 var(--font-body);
		transition: box-shadow 0.2s;
	}

	.primary-nav__list > li > a:hover,
	.primary-nav__list > .current-menu-item > a,
	.primary-nav__list > .current-menu-ancestor > a {
		box-shadow: inset 0 -3px 0 var(--es-amber);
		color: var(--es-white);
	}

	.primary-nav__extra {
		display: block;
		margin: 0;
	}

	.primary-nav__extra .btn {
		width: auto;
	}

	/* Services drop-down: opens on hover or keyboard focus, no script needed */
	.primary-nav .sub-menu,
	.primary-nav li.is-expanded > .sub-menu {
		display: none;
		position: absolute;
		top: 100%;
		left: -1rem;
		width: min(36rem, 90vw);
		padding: var(--sp-4);
		background: var(--es-charcoal-deep);
		border: 1px solid rgba(255, 255, 255, 0.1);
		border-top: 3px solid var(--es-amber);
		border-radius: 0 0 var(--r-md) var(--r-md);
		box-shadow: 0 22px 44px -20px rgba(0, 0, 0, 0.6);
	}

	.primary-nav li:hover > .sub-menu,
	.primary-nav li:focus-within > .sub-menu {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: var(--sp-1) var(--sp-4);
	}

	.primary-nav .sub-menu a {
		padding: 0.5rem 0.75rem;
		border-radius: var(--r-sm);
		color: var(--es-white);
	}

	.primary-nav .sub-menu a:hover {
		background: rgba(255, 255, 255, 0.08);
		color: var(--es-amber);
	}
}

/* Quotation banner above the footer */
.cta-band {
	padding-block: var(--sp-7);
	background: var(--es-amber);
	color: var(--es-charcoal);
}

.cta-band__inner {
	display: grid;
	align-items: center;
	gap: var(--sp-5);
}

.cta-band h2 {
	margin-bottom: var(--sp-2);
	font-size: var(--fs-xl);
}

.cta-band p {
	max-width: 38rem;
	margin: 0;
}

@media (min-width: 56rem) {
	.cta-band__inner {
		grid-template-columns: 1fr auto;
	}
}

/* Footer */
.site-footer {
	padding-top: var(--sp-8);
	background: var(--es-charcoal-deep);
	color: #d7dae0;
	font-size: var(--fs-sm);
}

.site-footer a {
	color: var(--es-white);
}

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

.site-footer__grid {
	display: grid;
	gap: var(--sp-7) var(--sp-6);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}

@media (min-width: 64rem) {
	.site-footer__grid {
		grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
	}
}

.site-footer__brand p {
	max-width: 26rem;
	margin: var(--sp-4) 0;
}

.site-footer__title {
	margin-bottom: var(--sp-4);
	font-size: var(--fs-base);
	color: var(--es-white);
}

.footer-list,
.legal-list,
.social-list,
.contact-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-list a,
.legal-list a {
	text-decoration: none;
}

.footer-list a:hover,
.legal-list a:hover {
	text-decoration: underline;
}

.footer-list li + li {
	margin-top: var(--sp-3);
}

.contact-list {
	display: grid;
	gap: var(--sp-4);
}

.contact-list li {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
}

.contact-list .icon {
	margin-top: 0.15rem;
	color: var(--es-amber);
}

.contact-list address {
	font-style: normal;
}

.social-list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-3);
}

.social-list a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 50%;
}

.social-list a:hover {
	border-color: var(--es-amber);
}

.site-footer__base {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: var(--sp-3);
	margin-top: var(--sp-7);
	padding-block: var(--sp-5);
	border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.site-footer__base p {
	margin: 0;
}

.legal-list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-4);
}

/* Floating WhatsApp button */
.wa-float {
	position: fixed;
	right: max(1rem, env(safe-area-inset-right));
	bottom: max(1rem, env(safe-area-inset-bottom));
	z-index: 60;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-width: 3.5rem;
	height: 3.5rem;
	border-radius: var(--r-pill);
	background: var(--es-wa);
	color: var(--es-white);
	font-weight: 600;
	text-decoration: none;
	box-shadow: 0 8px 22px -6px rgba(0, 0, 0, 0.45);
}

.wa-float:hover {
	background: #0b6234;
	color: var(--es-white);
}

.wa-float .icon {
	width: 1.75rem;
	height: 1.75rem;
}

.wa-float__label {
	display: none;
}

@media (min-width: 48rem) {
	.wa-float {
		padding-inline: 1.25rem;
	}

	.wa-float__label {
		display: inline;
	}
}

/* 7. Content (blog and plain pages) --------------------------------------- */
.prose {
	max-width: 44rem;
}

.prose > * + * {
	margin-top: var(--sp-4);
}

.prose h2 {
	margin-top: var(--sp-7);
}

.prose h3 {
	margin-top: var(--sp-6);
}

.prose ul,
.prose ol {
	padding-left: 1.4em;
}

.prose li + li {
	margin-top: var(--sp-2);
}

.prose blockquote {
	margin-inline: 0;
	padding: var(--sp-2) 0 var(--sp-2) var(--sp-5);
	border-left: 4px solid var(--es-amber);
	font-size: var(--fs-md);
}

.prose figure {
	margin-inline: 0;
}

.prose figcaption {
	margin-top: var(--sp-2);
	font-size: var(--fs-sm);
	color: var(--es-muted);
}

.prose table {
	display: block;
	max-width: 100%;
	overflow-x: auto;
	border-collapse: collapse;
}

.prose th,
.prose td {
	padding: var(--sp-2) var(--sp-4);
	border: 1px solid var(--es-line);
	text-align: left;
}

.prose th {
	background: var(--es-surface);
}

.post-hero {
	margin: 0 0 var(--sp-6);
}

.post-hero img {
	display: block;
	width: 100%;
	border-radius: var(--r-md);
}

.pagination {
	margin-top: var(--sp-7);
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-2);
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	min-height: 2.75rem;
	padding: 0 var(--sp-3);
	border: 1.5px solid var(--es-line);
	border-radius: var(--r-sm);
	color: var(--es-charcoal);
	text-decoration: none;
}

.pagination .page-numbers.current {
	background: var(--es-charcoal);
	border-color: var(--es-charcoal);
	color: var(--es-white);
}

/* 8. WordPress core classes ------------------------------------------------ */
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	border: 0;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.alignleft {
	float: left;
	margin: 0 var(--sp-5) var(--sp-4) 0;
}

.alignright {
	float: right;
	margin: 0 0 var(--sp-4) var(--sp-5);
}

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

.wp-caption {
	max-width: 100%;
}

.wp-caption-text,
.gallery-caption {
	font-size: var(--fs-sm);
	color: var(--es-muted);
}

/* Placeholder drawings: each class takes one colour from the tokens above */
.ph-bg { fill: var(--ph-bg); }
.ph-surface { fill: var(--ph-surface); }
.ph-line { fill: var(--ph-line); }
.ph-accent { fill: var(--ph-accent); }
.ph-light { fill: var(--ph-light); }
.ph-s-line { stroke: var(--ph-line); }
.ph-s-accent { stroke: var(--ph-accent); }
.ph-s-light { stroke: var(--ph-light); }

.ph {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
}

svg.ph {
	background: var(--ph-bg);
}

.hero__frame .ph {
	border-radius: 10px;
}

.post-hero .ph {
	border-radius: var(--r-md);
}

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

	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}
}

@media print {
	.site-header,
	.site-footer,
	.wa-float {
		display: none;
	}
}

/* ==========================================================================
   Grid lines on every dark background (drawing-board look)
   ========================================================================== */
:root {
	--grid-line: rgba(255, 255, 255, 0.045);
	--grid-size: 56px;
	--grid-lines: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
}

.site-footer,
.section--dark,
.page-hero,
.quote-card,
.visit__card,
.lightbox__text {
	background-image: var(--grid-lines);
	background-size: var(--grid-size) var(--grid-size);
	background-position: center top;
}

/* Dark sections get a soft amber glow in one corner */
.section--dark,
.site-footer {
	position: relative;
	isolation: isolate;
}

.section--dark::before,
.site-footer::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background:
		radial-gradient(50% 45% at 90% 0%, rgba(247, 169, 54, 0.12), transparent 70%),
		radial-gradient(40% 40% at 0% 100%, rgba(247, 169, 54, 0.06), transparent 70%);
}

/* ==========================================================================
   Premium effects
   ========================================================================== */

/* Frosted header once the page scrolls */
.site-header {
	transition: background-color 0.3s, box-shadow 0.3s;
}

.site-header.is-scrolled {
	background-color: rgba(43, 46, 51, 0.86);
	box-shadow: 0 12px 30px -18px rgba(0, 0, 0, 0.7);
	-webkit-backdrop-filter: saturate(1.4) blur(12px);
	backdrop-filter: saturate(1.4) blur(12px);
}

/* A sweep of light across the amber buttons */
.btn--primary {
	position: relative;
	isolation: isolate;
	overflow: hidden;
}

.btn--primary::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
	transform: translateX(-130%);
	transition: transform 0.75s ease;
}

.btn--primary:hover::after {
	transform: translateX(130%);
}

.btn .icon {
	transition: transform 0.25s;
}

.btn:hover .icon {
	transform: scale(1.12) rotate(-6deg);
}

/* Content rising into view (added by script, so nothing hides without it) */
.has-reveal .reveal {
	opacity: 0;
	translate: 0 22px;
	transition: opacity 0.7s ease var(--reveal-delay, 0ms), translate 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) var(--reveal-delay, 0ms), transform 0.3s, box-shadow 0.3s, border-color 0.3s, background 0.3s;
}

.has-reveal .reveal.is-in {
	opacity: 1;
	translate: 0 0;
}

/* Pointer light on dark grid sections */
.has-spotlight::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background: radial-gradient(420px circle at var(--mx, -999px) var(--my, -999px), rgba(247, 169, 54, 0.1), transparent 60%);
}

.page-hero,
.hero {
	position: relative;
	isolation: isolate;
}

/* WordPress classes for posts and comments */
.sticky .card__title::before {
	content: "";
	display: inline-block;
	width: 0.55rem;
	height: 0.55rem;
	margin-right: 0.5rem;
	border-radius: 50%;
	background: var(--es-amber);
	vertical-align: middle;
}

.bypostauthor > .comment-body {
	border-left: 3px solid var(--es-amber);
}

.post-tags a {
	display: inline-block;
	margin: 0 0.4rem 0.4rem 0;
	padding: 0.25rem 0.8rem;
	border: 1px solid var(--es-line);
	border-radius: var(--r-pill);
	font-size: var(--fs-sm);
	text-decoration: none;
}

.page-links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-2);
	margin-top: var(--sp-5);
}

.page-links a,
.page-links > span:not(:first-child) {
	padding: 0.2rem 0.75rem;
	border: 1px solid var(--es-line);
	border-radius: var(--r-sm);
}

.comments,
.widget-area {
	max-width: 44rem;
	margin-top: var(--sp-7);
}

.comment-list {
	margin: 0 0 var(--sp-6);
	padding: 0;
	list-style: none;
}

.comment-list .children {
	list-style: none;
	padding-left: var(--sp-5);
}

.comment-body {
	margin-bottom: var(--sp-4);
	padding: var(--sp-4) var(--sp-5);
	border: 1px solid var(--es-line);
	border-radius: var(--r-md);
}

.comment-author .avatar {
	float: left;
	margin-right: var(--sp-3);
	border-radius: 50%;
}

.comment-meta {
	font-size: var(--fs-sm);
	color: var(--es-muted);
}

.widget {
	margin-bottom: var(--sp-5);
}

.widget__title {
	font-size: var(--fs-md);
}

/* Block style and patterns on the front end */
.is-style-es-glow .wp-block-button__link {
	background: var(--es-amber);
	color: var(--es-charcoal);
	font-weight: 600;
	box-shadow: var(--glow);
}

.es-cta-box {
	padding: var(--sp-6);
	border-radius: var(--r-lg);
	background-color: var(--es-charcoal);
	background-image: var(--grid-lines);
	background-size: var(--grid-size) var(--grid-size);
	color: #d7dae0;
}

.es-cta-box h2 {
	margin-top: 0;
	color: var(--es-white);
}

.es-tip-box {
	padding: var(--sp-4) var(--sp-5);
	border-left: 4px solid var(--es-amber);
	border-radius: var(--r-sm);
	background: var(--es-amber-tint);
}

.es-tip-box p {
	margin: 0;
}

/* Header: logo, then the menu on the left, WhatsApp button on the right */
@media (min-width: 64rem) {
	.site-header__bar {
		justify-content: flex-start;
		gap: var(--sp-7);
	}

	.primary-nav,
	.primary-nav.is-open {
		flex: 1;
	}

	.primary-nav__extra {
		margin-left: auto;
	}
}
