/*
Theme Name: Apptology
Theme URI: https://apptology.ae
Author: Apptology FZE
Author URI: https://apptology.ae
Description: Blog theme matching the Apptology marketing site — same tokens, typography, header and footer.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.1
License: Proprietary
Text Domain: apptology
*/

/* ------------------------------------------------------------------ *
 * Tokens — copied from app/globals.css in the Next.js app. Change a
 * value there and here together.
 * ------------------------------------------------------------------ */
:root {
	--radius: 0.625rem;

	--background: #faf8f2;
	--foreground: #0e1411;
	--card: #f2efe7;
	--card-foreground: #0e1411;
	--popover: #f2efe7;
	--primary: #0a6e5f;
	--primary-foreground: #faf8f2;
	--muted: #f2efe7;
	--muted-foreground: #5e5b53;
	--accent: #ede9df;
	--destructive: oklch(0.577 0.245 27.325);
	--cta: #f26a3a;
	--cta-foreground: #0e1411;
	--lime: #9dd16a;
	--border: #e5e0d4;
	--input: #e5e0d4;
	--ring: #0a6e5f;

	--font-sans: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
	--font-display: "IBM Plex Serif", ui-serif, Georgia, serif;
	--font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

	--ease-out-brand: cubic-bezier(0.22, 1, 0.36, 1);
	--gutter: 1.5rem;
}

.dark {
	--background: #0b0d0c;
	--foreground: #e8e6de;
	--card: #141a18;
	--card-foreground: #e8e6de;
	--popover: #141a18;
	--primary: #3fd0bb;
	--primary-foreground: #0b0d0c;
	--muted: #141a18;
	--muted-foreground: #8c8b83;
	--accent: #1b2320;
	--destructive: oklch(0.704 0.191 22.216);
	--cta: #f26a3a;
	--cta-foreground: #0e1411;
	--lime: #b6f084;
	--border: oklch(1 0 0 / 10%);
	--input: oklch(1 0 0 / 14%);
	--ring: #3fd0bb;
}

@media (min-width: 768px) {
	:root {
		--gutter: 3rem;
	}
}

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

html {
	-webkit-text-size-adjust: 100%;
	color-scheme: light;
}
html.dark {
	color-scheme: dark;
}

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: var(--background);
	color: var(--foreground);
	font-family: var(--font-sans);
	font-size: 1rem;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote {
	margin: 0;
}
ul,
ol {
	padding: 0;
	list-style: none;
}
img,
svg,
video {
	display: block;
	max-width: 100%;
	height: auto;
}
a {
	color: inherit;
	text-decoration: none;
}
button {
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
}

::selection {
	background: color-mix(in oklch, var(--primary) 22%, transparent);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
	outline: 2px solid var(--ring);
	outline-offset: 2px;
	border-radius: 4px;
}

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

.skip-link {
	position: fixed;
	top: 1rem;
	left: 1rem;
	z-index: 100;
	padding: 0.5rem 1rem;
	border-radius: 0.375rem;
	background: var(--primary);
	color: var(--primary-foreground);
	transform: translateY(-200%);
}
.skip-link:focus {
	transform: none;
}

.icon {
	width: 1rem;
	height: 1rem;
	flex-shrink: 0;
}

.site-main {
	flex: 1;
}

.container {
	width: 100%;
	max-width: 80rem;
	margin-inline: auto;
}

.section {
	width: 100%;
	padding: 4rem var(--gutter);
	background: var(--background);
	color: var(--foreground);
}
.section--flush-top {
	padding-top: 0;
}
@media (min-width: 768px) {
	.section {
		padding-block: 6rem;
	}
	.section--flush-top {
		padding-top: 0;
	}
}

.eyebrow {
	font-family: var(--font-mono);
	font-size: 0.75rem;
	font-weight: 500;
	line-height: 1rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--muted-foreground);
}
.eyebrow a:hover {
	color: var(--primary);
}

/* ----------------------------- Buttons --------------------------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.375rem;
	min-height: 2rem;
	padding: 0.25rem 0.625rem;
	border: 1px solid transparent;
	border-radius: 0.625rem;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.25rem;
	text-align: center;
	transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
	user-select: none;
}
.btn:active {
	transform: translateY(1px);
}
.btn--xl {
	min-height: 3rem;
	gap: 0.5rem;
	padding: 0.625rem 1.5rem;
	font-size: 1rem;
	line-height: 1.5rem;
}
.btn--cta {
	background: var(--cta);
	color: var(--cta-foreground);
	border-radius: 6px 6px 16px 6px;
	box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}
.btn--cta:hover {
	background: color-mix(in oklab, var(--cta) 90%, transparent);
}
.btn--primary {
	background: var(--primary);
	color: var(--primary-foreground);
}
.btn--primary:hover {
	background: color-mix(in oklab, var(--primary) 80%, transparent);
}
.btn--outline {
	border-color: var(--border);
	background: var(--background);
	color: var(--foreground);
}
.btn--outline:hover {
	background: var(--muted);
}
.dark .btn--outline {
	border-color: var(--input);
	background: color-mix(in oklab, var(--input) 30%, transparent);
}
.dark .btn--outline:hover {
	background: color-mix(in oklab, var(--input) 50%, transparent);
}
.btn--square {
	width: 2.5rem;
	min-height: 2.5rem;
	padding: 0;
}

.icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 0.375rem;
	color: var(--foreground);
	transition: background-color 0.15s;
}
.icon-btn:hover {
	background: var(--muted);
}
.icon-btn .icon {
	width: 1.25rem;
	height: 1.25rem;
}
.icon-btn--whatsapp {
	color: #25d366;
}
.icon--sun {
	display: none;
}
.dark .icon--sun {
	display: block;
}
.dark .icon--moon {
	display: none;
}

/* ----------------------------- Logo ------------------------------ */
.logo {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	border-radius: 0.375rem;
	transition: opacity 0.15s;
}
.logo:hover {
	opacity: 0.9;
}
.logo img {
	width: auto;
	height: 48px;
	transition: height 0.3s var(--ease-out-brand);
}
.logo__dark {
	display: none;
}
.dark .logo__dark {
	display: block;
}
.dark .logo__light {
	display: none;
}
.logo--footer img {
	height: 44px;
}

/* ----------------------------- Header ---------------------------- */
.site-header {
	position: fixed;
	inset-inline: 0;
	top: 0;
	z-index: 50;
	border-bottom: 1px solid transparent;
	transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
.admin-bar .site-header {
	top: 32px;
}
@media (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}
}
.site-header.is-scrolled {
	border-color: var(--border);
	background: color-mix(in oklab, var(--background) 80%, transparent);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	max-width: 80rem;
	height: 5rem;
	margin-inline: auto;
	padding-inline: var(--gutter);
	transition: height 0.3s var(--ease-out-brand);
}
.site-header .logo img {
	height: 72px;
}
.site-header.is-scrolled .site-header__inner {
	height: 4rem;
}
.site-header.is-scrolled .logo img {
	height: 48px;
}
.site-header__actions {
	display: flex;
	align-items: center;
	gap: 0.375rem;
}
.site-header__cta,
.icon-btn--whatsapp {
	display: none;
}
@media (min-width: 640px) {
	.site-header__cta,
	.icon-btn--whatsapp {
		display: inline-flex;
	}
}

.main-nav {
	display: none;
	align-items: center;
	gap: 0.25rem;
}
@media (min-width: 1024px) {
	.main-nav {
		display: flex;
	}
	.site-header__menu {
		display: none;
	}
}

.nav-link {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	padding: 0.5rem 0.75rem;
	border-radius: 0.375rem;
	font-size: 0.875rem;
	line-height: 1.25rem;
	color: var(--muted-foreground);
	transition: color 0.15s;
}
.nav-link:hover,
.nav-link.is-active {
	color: var(--foreground);
}
.nav-link:not(.nav-link--parent)::after {
	content: "";
	position: absolute;
	bottom: 0.25rem;
	inset-inline-start: 0.75rem;
	width: 0;
	height: 1px;
	background: var(--primary);
	transition: width 0.2s;
}
.nav-link:not(.nav-link--parent):hover::after,
.nav-link.is-active::after {
	width: calc(100% - 1.5rem);
}
.nav-link__chevron {
	width: 0.875rem;
	height: 0.875rem;
	transition: transform 0.2s;
}

.nav-dropdown {
	position: relative;
}
.nav-dropdown.is-open .nav-link__chevron {
	transform: rotate(180deg);
}
.nav-dropdown__panel {
	position: absolute;
	top: 100%;
	left: 50%;
	z-index: 50;
	padding-top: 0.75rem;
	visibility: hidden;
	opacity: 0;
	transform: translate(-50%, -0.25rem);
	transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.nav-dropdown.is-open .nav-dropdown__panel {
	visibility: visible;
	opacity: 1;
	transform: translate(-50%, 0);
}
.nav-dropdown__card {
	width: 380px;
	padding: 0.5rem;
	border: 1px solid var(--border);
	border-radius: 1rem;
	background: var(--popover);
	box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}
.nav-dropdown__item {
	display: block;
	padding: 0.625rem 0.75rem;
	border-radius: 0.75rem;
	transition: background-color 0.15s;
}
.nav-dropdown__item:hover,
.nav-dropdown__item:focus-visible {
	background: var(--accent);
	outline: none;
}
.nav-dropdown__label {
	display: block;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--foreground);
}
.nav-dropdown__desc {
	display: block;
	margin-top: 0.125rem;
	font-size: 0.75rem;
	line-height: 1.625;
	color: var(--muted-foreground);
}

/* ----------------------------- Mobile nav ------------------------ */
.mobile-nav[hidden] {
	display: none;
}
.mobile-nav {
	position: fixed;
	inset: 0;
	z-index: 60;
}
.mobile-nav__backdrop {
	position: absolute;
	inset: 0;
	background: rgb(0 0 0 / 0.4);
}
.mobile-nav__sheet {
	position: absolute;
	inset-block: 0;
	right: 0;
	display: flex;
	flex-direction: column;
	width: 88%;
	max-width: 24rem;
	background: var(--background);
	border-left: 1px solid var(--border);
	box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}
.mobile-nav__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 1.25rem;
	border-bottom: 1px solid var(--border);
}
.mobile-nav__body {
	flex: 1;
	overflow-y: auto;
	padding: 1rem 0.75rem;
}
.mobile-nav__link,
.mobile-nav__group summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.625rem 0.75rem;
	border-radius: 0.625rem;
	font-size: 1rem;
	font-weight: 500;
	cursor: pointer;
	list-style: none;
}
.mobile-nav__group summary::-webkit-details-marker {
	display: none;
}
.mobile-nav__link:hover,
.mobile-nav__group summary:hover {
	background: var(--accent);
}
.mobile-nav__group[open] summary .icon {
	transform: rotate(180deg);
}
.mobile-nav__group a {
	display: block;
	padding: 0.5rem 0.75rem 0.5rem 1.5rem;
	border-radius: 0.625rem;
	font-size: 0.875rem;
	color: var(--muted-foreground);
}
.mobile-nav__group a:hover {
	background: var(--accent);
	color: var(--foreground);
}
.mobile-nav__foot {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	padding: 1rem 1.25rem;
	border-top: 1px solid var(--border);
	font-size: 0.875rem;
	color: var(--muted-foreground);
}
.mobile-nav__foot a:not(.btn):hover {
	color: var(--foreground);
}
.mobile-nav__foot .btn {
	margin-top: 0.75rem;
}

/* ----------------------------- Page hero ------------------------- */
.page-hero {
	padding: 8rem var(--gutter) 3rem;
}
.page-hero--tall {
	padding-bottom: 6rem;
}
.page-hero__title {
	max-width: 56rem;
	margin-top: 1.25rem;
	font-family: var(--font-display);
	font-size: 2.25rem;
	font-weight: 600;
	line-height: 1.04;
	letter-spacing: -0.025em;
	text-wrap: balance;
}
.page-hero__sub {
	max-width: 42rem;
	margin-top: 1.5rem;
	font-size: 1.125rem;
	line-height: 1.625;
	color: var(--muted-foreground);
}
.page-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 2rem;
}
@media (min-width: 640px) {
	.page-hero__title {
		font-size: 3rem;
	}
}
@media (min-width: 768px) {
	.page-hero {
		padding-top: 10rem;
		padding-bottom: 4rem;
	}
	.page-hero--tall {
		padding-bottom: 8rem;
	}
	.page-hero__title {
		font-size: 3.75rem;
	}
}

/* ----------------------------- Post cards ------------------------ */
.post-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
}
@media (min-width: 640px) {
	.post-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (min-width: 1024px) {
	.post-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.surface-card {
	border: 1px solid var(--border);
	border-radius: 1rem;
	background: var(--card);
	color: var(--card-foreground);
}
.surface-card--interactive {
	transition: transform 0.3s var(--ease-out-brand), border-color 0.3s var(--ease-out-brand), box-shadow 0.3s var(--ease-out-brand);
}

.post-card {
	display: block;
	height: 100%;
	border-radius: 1rem;
}
.post-card > article {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
}
.post-card:hover .surface-card--interactive {
	transform: translateY(-2px);
	border-color: color-mix(in oklab, var(--primary) 40%, transparent);
	box-shadow: 0 12px 40px -16px color-mix(in oklab, var(--primary) 30%, transparent);
}
.post-card__media {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}
.post-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s;
}
.post-card:hover .post-card__media img {
	transform: scale(1.05);
}
.post-card__placeholder {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom right,
		color-mix(in oklab, var(--primary) 15%, transparent),
		var(--card),
		color-mix(in oklab, var(--cta) 10%, transparent)
	);
}
.post-card__tag {
	position: absolute;
	top: 1rem;
	left: 1rem;
	padding: 0.25rem 0.625rem;
	border-radius: 9999px;
	background: color-mix(in oklab, var(--background) 80%, transparent);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.025em;
	text-transform: uppercase;
	color: var(--primary);
}
.post-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 1.25rem;
}
.post-card__title {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	font-family: var(--font-display);
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.375;
	transition: color 0.15s;
}
.post-card:hover .post-card__title {
	color: var(--primary);
}
.post-card__excerpt {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	margin-top: 0.5rem;
	font-size: 0.875rem;
	line-height: 1.625;
	color: var(--muted-foreground);
}
.post-card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: auto;
	padding-top: 1rem;
	font-family: var(--font-mono);
	font-size: 0.75rem;
	color: var(--muted-foreground);
}

.empty-state {
	color: var(--muted-foreground);
}
.empty-state a {
	color: var(--primary);
	text-decoration: underline;
	text-underline-offset: 4px;
}

.pagination {
	margin-top: 3rem;
}
.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.375rem;
	font-family: var(--font-mono);
	font-size: 0.75rem;
}
.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.25rem;
	height: 2.25rem;
	padding-inline: 0.75rem;
	border: 1px solid var(--border);
	border-radius: 9999px;
	color: var(--muted-foreground);
	transition: color 0.15s, border-color 0.15s;
}
.pagination a.page-numbers:hover {
	color: var(--foreground);
	border-color: color-mix(in oklab, var(--primary) 40%, transparent);
}
.pagination .page-numbers.current {
	border-color: transparent;
	background: color-mix(in oklab, var(--primary) 15%, transparent);
	color: var(--primary);
}
.pagination .page-numbers.dots {
	border-color: transparent;
}

/* ----------------------------- Article --------------------------- */
.article-hero {
	padding: 8rem var(--gutter) 2.5rem;
}
.article-hero__inner,
.article {
	max-width: 48rem;
	margin-inline: auto;
}
.article-hero__title {
	margin-top: 1.25rem;
	font-family: var(--font-display);
	font-size: 2.25rem;
	font-weight: 600;
	line-height: 1.06;
	letter-spacing: -0.025em;
	text-wrap: balance;
}
.article-hero__excerpt {
	margin-top: 1.25rem;
	font-size: 1.125rem;
	line-height: 1.625;
	color: var(--muted-foreground);
}
.article-hero__meta {
	margin-top: 1.5rem;
	font-family: var(--font-mono);
	font-size: 0.75rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted-foreground);
}
@media (min-width: 768px) {
	.article-hero {
		padding-top: 10rem;
	}
	.article-hero__title {
		font-size: 3rem;
	}
}

.article-cover {
	padding-inline: var(--gutter);
}
.article-cover__frame {
	position: relative;
	max-width: 64rem;
	margin-inline: auto;
	aspect-ratio: 21 / 9;
	overflow: hidden;
	border: 1px solid var(--border);
	border-radius: 1.5rem;
}
.article-cover__frame img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Post body — everything the block editor can produce. */
.entry-content > * + * {
	margin-top: 1rem;
}
.entry-content p,
.entry-content li {
	font-size: 1rem;
	line-height: 1.625;
	color: var(--muted-foreground);
}
.entry-content strong {
	font-weight: 600;
	color: var(--foreground);
}
.entry-content a {
	color: var(--primary);
	text-decoration: underline;
	text-underline-offset: 4px;
}
.entry-content a:hover {
	text-decoration-thickness: 2px;
}
.entry-content h2,
.entry-content h3,
.entry-content h4 {
	font-family: var(--font-display);
	font-weight: 600;
	letter-spacing: -0.025em;
	color: var(--foreground);
}
.entry-content h2 {
	margin-top: 2.5rem;
	font-size: 1.5rem;
	line-height: 2rem;
}
.entry-content h3 {
	margin-top: 2rem;
	font-size: 1.25rem;
	line-height: 1.75rem;
}
.entry-content h4 {
	margin-top: 1.5rem;
	font-size: 1.125rem;
}
@media (min-width: 768px) {
	.entry-content h2 {
		font-size: 1.875rem;
		line-height: 2.25rem;
	}
}
.entry-content > :first-child {
	margin-top: 0;
}
.entry-content ul,
.entry-content ol {
	padding-inline-start: 1.25rem;
}
.entry-content ul {
	list-style: disc;
}
.entry-content ol {
	list-style: decimal;
}
.entry-content li + li {
	margin-top: 0.5rem;
}
.entry-content li::marker {
	color: var(--primary);
}
.entry-content blockquote {
	margin-block: 2.5rem;
	padding-inline-start: 1.25rem;
	border-inline-start: 2px solid var(--primary);
}
.entry-content blockquote p {
	font-family: var(--font-display);
	font-size: 1.25rem;
	font-style: italic;
	line-height: 1.375;
	color: var(--foreground);
}
.entry-content blockquote cite {
	display: block;
	margin-top: 0.75rem;
	font-family: var(--font-mono);
	font-size: 0.75rem;
	font-style: normal;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted-foreground);
}
@media (min-width: 768px) {
	.entry-content blockquote p {
		font-size: 1.5rem;
	}
}
.entry-content figure {
	margin-block: 2rem;
}
.entry-content img {
	border: 1px solid var(--border);
	border-radius: 1rem;
}
.entry-content figcaption {
	margin-top: 0.75rem;
	font-size: 0.875rem;
	text-align: center;
	color: var(--muted-foreground);
}
.entry-content code {
	padding: 0.125rem 0.375rem;
	border-radius: 0.375rem;
	background: var(--card);
	font-family: var(--font-mono);
	font-size: 0.875em;
	color: var(--foreground);
}
.entry-content pre {
	overflow-x: auto;
	padding: 1.25rem;
	border: 1px solid var(--border);
	border-radius: 1rem;
	background: var(--card);
	font-family: var(--font-mono);
	font-size: 0.875rem;
	line-height: 1.625;
}
.entry-content pre code {
	padding: 0;
	background: none;
}
.entry-content hr {
	margin-block: 2.5rem;
	border: 0;
	border-top: 1px solid var(--border);
}
.entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.875rem;
}
.entry-content th,
.entry-content td {
	padding: 0.625rem 0.75rem;
	border-bottom: 1px solid var(--border);
	text-align: start;
	color: var(--muted-foreground);
}
.entry-content th {
	font-family: var(--font-mono);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}
.entry-content .wp-block-table {
	overflow-x: auto;
}
.entry-content .wp-block-button__link {
	display: inline-flex;
	min-height: 3rem;
	align-items: center;
	padding: 0.625rem 1.5rem;
	border-radius: 6px 6px 16px 6px;
	background: var(--cta);
	color: var(--cta-foreground);
	font-size: 1rem;
	font-weight: 500;
	text-decoration: none;
}
.entry-content .wp-block-group.is-style-takeaway,
.entry-content .takeaway {
	margin-top: 3rem;
	padding: 1.5rem;
	border: 1px solid var(--border);
	border-radius: 1rem;
	background: var(--card);
}
.entry-content .alignwide {
	width: min(64rem, calc(100vw - 2 * var(--gutter)));
	max-width: none;
	margin-inline: 50%;
	transform: translateX(-50%);
}
.entry-content .aligncenter {
	margin-inline: auto;
}

.page-links {
	margin-top: 2rem;
	font-family: var(--font-mono);
	font-size: 0.75rem;
	color: var(--muted-foreground);
}

.keep-reading {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid var(--border);
}
.keep-reading__list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-top: 1rem;
}
.keep-reading__list a {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 500;
	transition: color 0.15s;
}
.keep-reading__list a:hover {
	color: var(--primary);
}
.keep-reading__list .icon {
	transition: transform 0.2s;
}
.keep-reading__list a:hover .icon {
	transform: translateX(0.25rem);
}

/* ----------------------------- CTA band -------------------------- */
.cta-band__inner {
	max-width: 48rem;
	margin-inline: auto;
	text-align: center;
}
.cta-band__heading {
	font-family: var(--font-display);
	font-size: 1.875rem;
	font-weight: 600;
	line-height: 1.08;
	letter-spacing: -0.025em;
	text-wrap: balance;
}
.cta-band__sub {
	max-width: 36rem;
	margin: 1.25rem auto 0;
	line-height: 1.625;
	color: var(--muted-foreground);
}
.cta-band__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
	margin-top: 2rem;
}
@media (min-width: 768px) {
	.cta-band__heading {
		font-size: 3rem;
	}
}

/* ----------------------------- Footer ---------------------------- */
.site-footer {
	background: var(--background);
	color: var(--foreground);
}
.cta-band + .site-footer,
.site-main:has(> .cta-band:last-child) + .site-footer {
	border-top: 1px solid var(--border);
}
.site-footer__inner {
	max-width: 80rem;
	margin-inline: auto;
	padding: 4rem var(--gutter);
}
.site-footer__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 2.5rem;
}
.site-footer__brand {
	grid-column: span 2;
}
@media (min-width: 768px) {
	.site-footer__inner {
		padding-block: 5rem;
	}
	.site-footer__grid {
		grid-template-columns: repeat(4, 1fr);
	}
}
@media (min-width: 1024px) {
	.site-footer__grid {
		grid-template-columns: repeat(12, 1fr);
	}
	.site-footer__brand {
		grid-column: span 4;
	}
	.site-footer__col {
		grid-column: span 2;
	}
}
.site-footer__blurb {
	max-width: 20rem;
	margin-top: 1.25rem;
	font-size: 0.875rem;
	line-height: 1.625;
	color: var(--muted-foreground);
}
.site-footer__offices {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.75rem 1.5rem;
	margin-top: 1.5rem;
	font-size: 0.875rem;
}
.site-footer__city {
	display: block;
}
.site-footer__detail {
	font-size: 0.75rem;
	color: var(--muted-foreground);
}
.site-footer__contact {
	margin-top: 2rem;
}
.site-footer__contact ul {
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
	margin-top: 0.75rem;
	font-size: 0.875rem;
}
.site-footer__contact a:hover {
	color: var(--primary);
}
.site-footer__whatsapp {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
}
.site-footer__whatsapp .icon {
	color: #25d366;
}
.eyebrow--footer {
	letter-spacing: 0.14em;
	font-weight: 500;
}
.eyebrow--footer-col {
	letter-spacing: 0.16em;
}
.site-footer__col ul {
	display: flex;
	flex-direction: column;
	gap: 0.625rem;
	margin-top: 1rem;
}
.site-footer__col a {
	font-size: 0.875rem;
	color: var(--muted-foreground);
	transition: color 0.15s;
}
.site-footer__col a:hover {
	color: var(--foreground);
}
.site-footer__newsletter {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	margin-top: 3.5rem;
	padding-top: 2.5rem;
	border-top: 1px solid var(--border);
}
.site-footer__newsletter-title {
	font-family: var(--font-display);
	font-size: 1.125rem;
	font-weight: 600;
}
.site-footer__newsletter-sub {
	font-size: 0.875rem;
	color: var(--muted-foreground);
}
.site-footer__bottom {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--border);
	font-size: 0.875rem;
	color: var(--muted-foreground);
}
@media (min-width: 768px) {
	.site-footer__newsletter {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
}

.newsletter {
	width: 100%;
}
.newsletter__form {
	display: flex;
	gap: 0.5rem;
}
.newsletter input {
	width: 100%;
	height: 2.5rem;
	padding-inline: 0.75rem;
	border: 1px solid var(--input);
	border-radius: 0.625rem;
	background: var(--card);
	color: var(--foreground);
	font: inherit;
	font-size: 0.875rem;
	outline: none;
}
.newsletter input::placeholder {
	color: color-mix(in oklab, var(--muted-foreground) 60%, transparent);
}
.newsletter input:focus-visible {
	border-color: var(--ring);
	box-shadow: 0 0 0 2px color-mix(in oklab, var(--ring) 40%, transparent);
}
.newsletter__message {
	margin-top: 0.375rem;
	font-size: 0.75rem;
	color: var(--destructive);
}
.newsletter.is-done .newsletter__form {
	display: none;
}
.newsletter.is-done .newsletter__message {
	margin: 0;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--primary);
}
@media (min-width: 768px) {
	.newsletter {
		width: auto;
	}
	.newsletter input {
		width: 16rem;
	}
}

/* ----------------------------- WhatsApp FAB ---------------------- */
.whatsapp-fab {
	position: fixed;
	inset-inline-end: 1.5rem;
	bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
	z-index: 40;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 9999px;
	background: #25d366;
	color: #fff;
	box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.2), 0 0 0 1px rgb(0 0 0 / 0.1);
	transition: transform 0.2s var(--ease-out-brand);
}
.whatsapp-fab:hover {
	transform: scale(1.05);
}
.whatsapp-fab:active {
	transform: scale(0.95);
}
.whatsapp-fab .icon {
	width: 1.75rem;
	height: 1.75rem;
}

@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;
	}
}
