/*
Theme Name: Polymerii
Author: Polymerii
Description: Custom theme for Polymerii, supplier of industrial polymer materials. RTL-first, fast, blue industrial design; homepage content is edited in Appearance → Customize → قالب پلیمری.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: polymerii
*/

/* ==========================================================================
   Font (Vazirmatn, SIL Open Font License — see assets/fonts/OFL.txt)
   ========================================================================== */

@font-face {
	font-family: "Vazirmatn";
	src: url("assets/fonts/Vazirmatn-Variable.woff2") format("woff2-variations"),
		url("assets/fonts/Vazirmatn-Variable.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

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

:root {
	--blue: #1e6fd9;
	--blue-600: #1559b5;
	--blue-50: #eaf2fd;
	--blue-light: #7fb3ff;
	--navy: #0b1f33;
	--navy-800: #102a43;
	--navy-700: #1b3a5c;
	--amber: #f2a100;
	--ink: #1f2933;
	--muted: #5b6b7c;
	--muted-light: #a9b8c9;
	--line: #e1e7ef;
	--surface: #f3f6fa;
	--white: #fff;

	--font: "Vazirmatn", Tahoma, system-ui, sans-serif;
	--radius: 14px;
	--radius-sm: 10px;
	--shadow: 0 1px 2px rgb(11 31 51 / 6%), 0 8px 24px rgb(11 31 51 / 7%);
	--shadow-lg: 0 2px 4px rgb(11 31 51 / 6%), 0 18px 40px rgb(11 31 51 / 12%);
	--container: 1200px;
	--gutter: 16px;
	--header-h: 76px;
}

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

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

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}

body {
	margin: 0;
	background: var(--white);
	color: var(--ink);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.9;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

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

img {
	display: block;
}

a {
	color: var(--blue);
	text-decoration: none;
	transition: color 0.15s ease;
}

a:hover {
	color: var(--blue-600);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.6em;
	color: var(--navy);
	font-weight: 700;
	line-height: 1.45;
}

p {
	margin: 0 0 1em;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

:focus-visible {
	outline: 3px solid var(--blue);
	outline-offset: 2px;
	border-radius: 4px;
}

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

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

.skip-link:focus {
	position: fixed !important;
	top: 12px;
	inset-inline-start: 12px;
	z-index: 1000;
	width: auto;
	height: auto;
	padding: 10px 18px;
	clip: auto;
	background: var(--white);
	color: var(--navy);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-lg);
}

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

.container--narrow {
	max-width: calc(860px + 2 * var(--gutter));
}

/* ==========================================================================
   Buttons and small components
   ========================================================================== */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	min-height: 46px;
	padding: 0.55em 1.35em;
	border: 2px solid transparent;
	border-radius: var(--radius-sm);
	font-weight: 700;
	font-size: 0.95rem;
	line-height: 1.4;
	text-align: center;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

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

.btn--lg {
	min-height: 54px;
	padding-inline: 1.7em;
	font-size: 1rem;
}

.btn--block {
	width: 100%;
}

.btn--primary {
	background: var(--blue);
	color: var(--white);
}

.btn--primary:hover {
	background: var(--blue-600);
	color: var(--white);
}

.btn--outline {
	border-color: var(--blue);
	color: var(--blue);
}

.btn--outline:hover {
	background: var(--blue);
	color: var(--white);
}

.btn--light {
	background: var(--white);
	color: var(--navy);
}

.btn--light:hover {
	background: var(--blue-50);
	color: var(--navy);
}

.btn--ghost-light {
	border-color: rgb(255 255 255 / 45%);
	color: var(--white);
}

.btn--ghost-light:hover {
	border-color: var(--white);
	background: rgb(255 255 255 / 10%);
	color: var(--white);
}

.icon-btn {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: var(--radius-sm);
	background: transparent;
	color: var(--navy);
	cursor: pointer;
}

.icon-btn:hover {
	background: var(--surface);
}

.icon-btn .icon {
	width: 22px;
	height: 22px;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	margin: 0 0 0.75em;
	color: var(--blue);
	font-size: 0.875rem;
	font-weight: 700;
}

.eyebrow::before {
	content: "";
	width: 22px;
	height: 3px;
	border-radius: 2px;
	background: currentColor;
}

.eyebrow--light {
	color: var(--blue-light);
}

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	font-weight: 700;
}

.link-arrow .icon {
	transition: transform 0.15s ease;
}

.link-arrow:hover .icon {
	transform: translateX(-4px);
}

.stretched-link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.social {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.social a {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	color: inherit;
}

.social .icon {
	width: 18px;
	height: 18px;
}

/* ==========================================================================
   Top bar and header
   ========================================================================== */

.topbar {
	background: var(--navy);
	color: var(--muted-light);
	font-size: 0.8125rem;
}

.topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 42px;
}

.topbar__info {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.topbar__info li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.topbar__info .icon {
	width: 15px;
	height: 15px;
	color: var(--blue-light);
}

.topbar a {
	color: var(--white);
}

.topbar a:hover {
	color: var(--blue-light);
}

.social--topbar a {
	width: 30px;
	height: 30px;
}

.social--topbar a:hover {
	background: rgb(255 255 255 / 8%);
}

@media (max-width: 899px) {
	.topbar {
		display: none;
	}
}

/* No backdrop-filter/transform here: they would trap the fixed mobile drawer inside the header. */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--white);
	border-bottom: 1px solid var(--line);
	transition: box-shadow 0.2s ease;
}

/* The drawer lives inside the header, so the header must sit above the page overlay. */
.nav-open .site-header {
	z-index: 95;
}

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

.site-header.is-scrolled {
	box-shadow: 0 6px 24px rgb(11 31 51 / 8%);
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: var(--header-h);
}

.brand {
	flex: none;
}

.brand__link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--navy);
}

.brand__link:hover {
	color: var(--navy);
}

.brand__mark {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: linear-gradient(135deg, var(--blue), var(--navy-700));
	color: var(--white);
}

.brand__mark .icon {
	width: 26px;
	height: 26px;
}

.brand__text {
	display: flex;
	flex-direction: column;
	line-height: 1.35;
}

.brand__name {
	font-size: 1.05rem;
	font-weight: 800;
}

.brand__tagline {
	color: var(--muted);
	font-size: 0.75rem;
	font-weight: 500;
}

.custom-logo {
	width: auto;
	max-height: 56px;
}

.site-header__actions {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-inline-start: auto;
}

.header-search {
	padding: 14px 0 18px;
	border-top: 1px solid var(--line);
	background: var(--white);
}

/* Desktop navigation */
.nav-menu {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav-menu li {
	position: relative;
}

.nav-menu a {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 10px 12px;
	border-radius: 8px;
	color: var(--ink);
	font-weight: 600;
	font-size: 0.95rem;
	line-height: 1.5;
}

.nav-menu > li > a:hover,
.nav-menu > .current-menu-item > a,
.nav-menu > .current-menu-ancestor > a,
.nav-menu > .current-page-ancestor > a {
	color: var(--blue);
	background: var(--blue-50);
}

.nav-menu .sub-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav__head,
.site-nav__extra,
.submenu-toggle,
.nav-overlay {
	display: none;
}

@media (min-width: 1080px) {
	.site-nav {
		flex: 1;
		display: flex;
		justify-content: center;
	}

	.nav-menu > .menu-item-has-children > a::after {
		content: "";
		width: 7px;
		height: 7px;
		margin-inline-start: 4px;
		border-bottom: 2px solid currentColor;
		border-left: 2px solid currentColor;
		transform: translateY(-2px) rotate(-45deg);
		opacity: 0.6;
	}

	.nav-menu .sub-menu {
		position: absolute;
		top: 100%;
		inset-inline-start: 0;
		z-index: 10;
		min-width: 250px;
		padding: 8px;
		border: 1px solid var(--line);
		border-radius: var(--radius);
		background: var(--white);
		box-shadow: var(--shadow-lg);
		opacity: 0;
		visibility: hidden;
		transform: translateY(8px);
		transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
	}

	.nav-menu li:hover > .sub-menu,
	.nav-menu li:focus-within > .sub-menu {
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.nav-menu .sub-menu a {
		font-weight: 500;
		font-size: 0.9rem;
	}

	.nav-menu .sub-menu a:hover {
		background: var(--surface);
		color: var(--blue);
	}

	/* Third level: indented inside the same dropdown. */
	.nav-menu .sub-menu .sub-menu {
		position: static;
		min-width: 0;
		padding: 0 14px 0 0;
		border: 0;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.nav-menu .sub-menu .sub-menu a {
		color: var(--muted);
		font-size: 0.85rem;
	}

	.nav-toggle {
		display: none;
	}
}

/* Mobile drawer */
@media (max-width: 1079px) {
	.site-nav {
		position: fixed;
		inset-block: 0;
		inset-inline-start: 0;
		z-index: 100;
		display: flex;
		flex-direction: column;
		width: min(86vw, 360px);
		padding: 0 0 24px;
		overflow-y: auto;
		background: var(--white);
		box-shadow: var(--shadow-lg);
		transform: translateX(100%);
		visibility: hidden;
		transition: transform 0.25s ease, visibility 0.25s;
	}

	.nav-open .site-nav {
		transform: none;
		visibility: visible;
	}

	.nav-open {
		overflow: hidden;
	}

	.nav-overlay:not([hidden]) {
		position: fixed;
		inset: 0;
		z-index: 90;
		display: block;
		background: rgb(11 31 51 / 55%);
	}

	.site-nav__head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 12px 20px;
		border-bottom: 1px solid var(--line);
	}

	.site-nav__title {
		font-weight: 800;
		color: var(--navy);
	}

	.nav-menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 8px 12px;
	}

	.nav-menu li {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
	}

	.nav-menu a {
		flex: 1;
		padding: 12px;
	}

	.submenu-toggle {
		display: grid;
		place-items: center;
		width: 44px;
		height: 44px;
		border: 0;
		border-radius: 8px;
		background: transparent;
		color: var(--muted);
		cursor: pointer;
	}

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

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

	.nav-menu .sub-menu {
		display: none;
		flex-basis: 100%;
		padding-inline-start: 14px;
		border-inline-start: 2px solid var(--line);
		margin-inline-start: 12px;
	}

	.nav-menu .is-open > .sub-menu {
		display: block;
	}

	.nav-menu .sub-menu a {
		font-weight: 500;
		font-size: 0.9rem;
	}

	.site-nav__extra {
		display: grid;
		gap: 14px;
		margin-top: auto;
		padding: 20px 20px 0;
		border-top: 1px solid var(--line);
	}

	.site-nav__contact {
		display: flex;
		align-items: center;
		gap: 8px;
		margin: 0;
		font-weight: 700;
	}

	.site-nav__extra .social a {
		background: var(--surface);
		color: var(--navy);
	}

	.header-cta {
		display: none;
	}
}

@media (max-width: 479px) {
	.brand__tagline {
		display: none;
	}
	.brand__name {
		font-size: 0.95rem;
	}
}

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

.section {
	padding-block: clamp(56px, 4vw + 32px, 96px);
}

.section--tight {
	padding-block: clamp(36px, 3vw + 20px, 64px);
}

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

.section-head {
	max-width: 640px;
	margin-bottom: clamp(28px, 3vw, 44px);
}

.section-head--split {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 32px;
	max-width: none;
}

.section-head--split > div {
	max-width: 640px;
}

.section-title {
	margin-bottom: 0.35em;
	font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem);
	font-weight: 800;
}

.section-lead {
	margin: 0;
	color: var(--muted);
	font-size: 1.05rem;
}

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

.hero {
	position: relative;
	overflow: hidden;
	padding-block: clamp(48px, 5vw + 24px, 104px) clamp(96px, 6vw + 64px, 150px);
	background:
		radial-gradient(circle at 15% 20%, rgb(30 111 217 / 35%), transparent 45%),
		radial-gradient(circle at 90% 90%, rgb(30 111 217 / 20%), transparent 40%),
		var(--navy);
	color: var(--muted-light);
}

/* Faint hexagon pattern (polymer structure motif). */
.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='98' viewBox='0 0 56 98'%3E%3Cpath d='M28 0 56 16v33L28 65 0 49V16zM28 65l28 16v33M28 65 0 81v33' fill='none' stroke='%23ffffff' stroke-opacity='.05' stroke-width='1'/%3E%3C/svg%3E");
	background-size: 56px 98px;
	mask-image: linear-gradient(to bottom, #000, transparent 85%);
	pointer-events: none;
}

.hero__inner {
	position: relative;
	display: grid;
	gap: 48px;
	align-items: center;
}

@media (min-width: 960px) {
	.hero__inner {
		grid-template-columns: 1.1fr 0.9fr;
		gap: 64px;
	}
}

.hero__title {
	margin-bottom: 0.5em;
	color: var(--white);
	font-size: clamp(1.9rem, 1.1rem + 2.8vw, 3.1rem);
	font-weight: 800;
	line-height: 1.35;
}

.hero__text {
	max-width: 560px;
	margin-bottom: 2em;
	font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.hero__phone {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 24px 0 0;
	font-size: 0.95rem;
}

.hero__phone .icon {
	color: var(--blue-light);
}

.hero__phone a {
	color: var(--white);
	font-weight: 700;
}

.hero__media {
	position: relative;
	max-width: 520px;
	justify-self: center;
	width: 100%;
}

.hero__image {
	overflow: hidden;
	aspect-ratio: 4 / 3.4;
	border: 6px solid rgb(255 255 255 / 8%);
	border-radius: 24px;
	box-shadow: 0 30px 60px rgb(0 0 0 / 35%);
}

.hero__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero__badge {
	position: absolute;
	inset-inline-end: -12px;
	bottom: -20px;
	display: flex;
	flex-direction: column;
	padding: 14px 22px;
	border-radius: var(--radius);
	background: var(--amber);
	color: var(--navy);
	line-height: 1.4;
	box-shadow: var(--shadow-lg);
}

.hero__badge strong {
	font-size: 1.6rem;
	font-weight: 900;
}

.hero__badge span {
	font-size: 0.85rem;
	font-weight: 700;
}

@media (max-width: 559px) {
	.hero__badge {
		inset-inline-end: 12px;
	}
}

/* Feature cards overlapping the bottom of the hero */
.features {
	position: relative;
	z-index: 2;
	margin-top: calc(-1 * clamp(56px, 3vw + 40px, 88px));
	padding-bottom: clamp(48px, 4vw + 24px, 80px);
}

.features__grid {
	display: grid;
	gap: 16px;
}

@media (min-width: 560px) {
	.features__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.features__grid {
		grid-template-columns: repeat(4, 1fr);
		gap: 20px;
	}
}

.feature {
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--white);
	box-shadow: var(--shadow);
}

.feature__icon {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	margin-bottom: 16px;
	border-radius: 14px;
	background: var(--blue-50);
	color: var(--blue);
}

.feature__icon .icon {
	width: 26px;
	height: 26px;
}

.feature__title {
	margin-bottom: 0.3em;
	font-size: 1.1rem;
}

.feature__text {
	margin: 0;
	color: var(--muted);
	font-size: 0.925rem;
	line-height: 1.8;
}

/* ==========================================================================
   Cards: products and posts
   ========================================================================== */

.product-grid,
.post-grid {
	display: grid;
	gap: 20px;
}

@media (min-width: 560px) {
	.product-grid,
	.post-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 960px) {
	.product-grid,
	.post-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 24px;
	}
}

.product-card,
.post-card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--white);
	transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.product-card:hover,
.post-card:hover {
	border-color: transparent;
	box-shadow: var(--shadow-lg);
	transform: translateY(-3px);
}

.product-card__media,
.post-card__media {
	position: relative;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: var(--surface);
}

.product-card__media img,
.post-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.product-card:hover .product-card__media img,
.post-card:hover .post-card__media img {
	transform: scale(1.04);
}

.product-card__placeholder,
.post-card__placeholder {
	display: grid;
	place-items: center;
	height: 100%;
	color: var(--muted-light);
}

.product-card__placeholder .icon,
.post-card__placeholder .icon {
	width: 56px;
	height: 56px;
}

.product-card__body,
.post-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 20px 22px 22px;
}

.product-card__title,
.post-card__title {
	margin-bottom: 0.4em;
	font-size: 1.1rem;
}

.product-card__title a,
.post-card__title a {
	color: var(--navy);
}

.product-card__title a:hover,
.post-card__title a:hover {
	color: var(--blue);
}

.product-card__text,
.post-card__text {
	margin-bottom: 1em;
	color: var(--muted);
	font-size: 0.925rem;
	line-height: 1.8;
}

.product-card__more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: auto;
	color: var(--blue);
	font-weight: 700;
	font-size: 0.925rem;
}

.product-card__more .icon {
	width: 18px;
	height: 18px;
	transition: transform 0.15s ease;
}

.product-card:hover .product-card__more .icon {
	transform: translateX(-4px);
}

/* Phones: compact horizontal cards so the homepage isn't one long column of photos. */
@media (max-width: 559px) {
	.hero__image,
	.about__media img {
		aspect-ratio: 16 / 10;
	}

	.feature {
		display: grid;
		grid-template-columns: 48px 1fr;
		gap: 2px 14px;
		padding: 18px;
	}

	.feature__icon {
		grid-row: span 2;
		width: 48px;
		height: 48px;
		margin: 0;
	}

	.feature__title {
		margin: 0;
	}

	.product-card {
		flex-direction: row;
	}

	.product-card__media {
		flex: 0 0 116px;
		min-height: 116px;
		aspect-ratio: auto;
	}

	.product-card__body {
		padding: 14px 16px;
	}

	.product-card__title {
		font-size: 1rem;
	}

	.product-card__text {
		display: -webkit-box;
		margin-bottom: 6px;
		overflow: hidden;
		font-size: 0.875rem;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
	}
}

.meta-date {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 8px;
	color: var(--muted);
	font-size: 0.85rem;
}

.meta-date .icon {
	width: 16px;
	height: 16px;
}

/* ==========================================================================
   About, stats, testimonials
   ========================================================================== */

.about__grid {
	display: grid;
	gap: 40px;
	align-items: center;
}

@media (min-width: 960px) {
	.about__grid {
		grid-template-columns: 1fr 1fr;
		gap: 72px;
	}
}

.about__media {
	position: relative;
}

.about__media img {
	width: 100%;
	aspect-ratio: 5 / 4;
	object-fit: cover;
	border-radius: 24px;
}

.about__media::after {
	content: "";
	position: absolute;
	inset: 24px -16px -16px 24px;
	z-index: -1;
	border: 2px solid var(--blue-50);
	border-radius: 24px;
	background: var(--blue-50);
}

.about__text {
	color: var(--muted);
	font-size: 1.05rem;
}

.checklist {
	display: grid;
	gap: 10px;
	margin: 0 0 28px;
	padding: 0;
	list-style: none;
}

.checklist li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-weight: 600;
}

.checklist .icon {
	width: 22px;
	height: 22px;
	margin-top: 4px;
	padding: 3px;
	border-radius: 50%;
	background: var(--blue);
	color: var(--white);
	stroke-width: 3;
}

.stats {
	padding-block: 48px;
	background: linear-gradient(120deg, var(--navy), var(--navy-700));
	color: var(--muted-light);
}

.stats__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 28px 16px;
	margin: 0;
}

@media (min-width: 768px) {
	.stats__grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

.stat {
	display: flex;
	flex-direction: column-reverse;
	align-items: center;
	text-align: center;
}

.stat__number {
	margin: 0;
	color: var(--white);
	font-size: clamp(1.9rem, 1.3rem + 2vw, 2.6rem);
	font-weight: 900;
	line-height: 1.3;
}

.stat__label {
	font-weight: 600;
}

.testimonial-grid {
	display: grid;
	gap: 20px;
}

@media (min-width: 768px) {
	.testimonial-grid {
		grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
		gap: 24px;
	}
}

.testimonial {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 28px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--white);
}

.testimonial__icon {
	color: var(--blue);
	opacity: 0.25;
}

.testimonial__icon .icon {
	width: 40px;
	height: 40px;
}

.testimonial__quote {
	flex: 1;
	margin: 12px 0 20px;
	font-size: 1rem;
	line-height: 2;
}

.testimonial__quote p {
	margin: 0;
}

.testimonial__author {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-top: 18px;
	border-top: 1px solid var(--line);
}

.testimonial__logo {
	width: 52px;
	height: 52px;
	padding: 4px;
	border: 1px solid var(--line);
	border-radius: 50%;
	object-fit: contain;
	background: var(--white);
}

.testimonial__author strong {
	display: block;
	color: var(--navy);
}

.testimonial__author small {
	color: var(--muted);
	font-size: 0.85rem;
}

/* ==========================================================================
   Call to action band and footer
   ========================================================================== */

.cta-band {
	padding-block: clamp(40px, 3vw + 24px, 64px);
	background:
		radial-gradient(circle at 0% 100%, rgb(255 255 255 / 12%), transparent 40%),
		linear-gradient(120deg, var(--blue), var(--blue-600));
	color: rgb(255 255 255 / 85%);
}

.cta-band__inner {
	display: grid;
	gap: 24px;
	align-items: center;
}

@media (min-width: 900px) {
	.cta-band__inner {
		grid-template-columns: 1fr auto;
		gap: 48px;
	}
}

.cta-band__title {
	margin-bottom: 0.3em;
	color: var(--white);
	font-size: clamp(1.35rem, 1rem + 1.2vw, 1.9rem);
	font-weight: 800;
}

.cta-band__text p {
	margin: 0;
}

.cta-band__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.site-footer {
	padding-top: clamp(48px, 4vw + 24px, 80px);
	background: var(--navy);
	color: var(--muted-light);
	font-size: 0.925rem;
}

.site-footer a {
	color: var(--muted-light);
}

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

.footer-grid {
	display: grid;
	gap: 36px;
}

@media (min-width: 640px) {
	.footer-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.footer-grid {
		grid-template-columns: 1.4fr 1fr 0.8fr 1.3fr;
		gap: 48px;
	}
}

.brand__link--light,
.brand__link--light:hover {
	margin-bottom: 16px;
	color: var(--white);
}

.footer-col__title,
.footer-widget__title {
	margin-bottom: 18px;
	color: var(--white);
	font-size: 1rem;
}

.footer-links,
.contact-list {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.contact-list li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.contact-list .icon {
	width: 18px;
	height: 18px;
	margin-top: 5px;
	color: var(--blue-light);
}

.social--footer {
	margin-top: 18px;
}

.social--footer a {
	background: rgb(255 255 255 / 7%);
	color: var(--white);
}

.social--footer a:hover {
	background: var(--blue);
}

.footer-widgets {
	display: grid;
	gap: 32px;
	margin-top: 40px;
	padding-top: 32px;
	border-top: 1px solid rgb(255 255 255 / 8%);
}

@media (min-width: 768px) {
	.footer-widgets {
		grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
		gap: 48px;
	}
}

.footer-widget p {
	margin-bottom: 0.6em;
}

.footer-widget hr {
	height: 1px;
	margin: 14px 0;
	border: 0;
	background: rgb(255 255 255 / 10%);
}

/* Mailchimp form: email field and button on one line (the form's own inline styles float the button away). */
.footer-widgets .mc4wp-form-fields p {
	display: flex;
	gap: 8px;
	max-width: 480px;
	margin: 0;
}

.footer-widgets .mc4wp-form-fields label {
	flex: 1;
}

.footer-widgets .mc4wp-form-fields input[type="submit"] {
	display: inline-block !important;
	float: none !important;
	margin: 6px 0 0 !important;
	padding: 0 1.5em !important;
}

.footer-widgets input[type="email"],
.footer-widgets input[type="text"] {
	min-width: 0;
	max-width: 360px;
	background: rgb(255 255 255 / 6%);
	border-color: rgb(255 255 255 / 15%);
	color: var(--white);
}

.footer-bottom {
	margin-top: 48px;
	padding-block: 20px;
	border-top: 1px solid rgb(255 255 255 / 8%);
	font-size: 0.85rem;
}

.footer-bottom p {
	margin: 0;
}

/* Mobile call / inquiry bar */
.mobile-bar {
	display: none;
}

@media (max-width: 767px) {
	body {
		padding-bottom: 64px;
	}

	.mobile-bar {
		position: fixed;
		inset-inline: 0;
		bottom: 0;
		z-index: 40;
		display: grid;
		grid-template-columns: 1fr 2fr;
		gap: 8px;
		padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
		border-top: 1px solid var(--line);
		background: var(--white);
		box-shadow: 0 -6px 20px rgb(11 31 51 / 8%);
	}

	.mobile-bar__item {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 6px;
		min-height: 46px;
		border-radius: var(--radius-sm);
		background: var(--surface);
		color: var(--navy);
		font-weight: 700;
	}

	.mobile-bar__item--primary {
		background: var(--blue);
		color: var(--white);
	}

	.mobile-bar__item--primary:hover {
		color: var(--white);
	}
}

/* ==========================================================================
   Inner pages
   ========================================================================== */

.page-hero {
	position: relative;
	padding-block: clamp(32px, 3vw + 16px, 56px);
	background:
		radial-gradient(circle at 10% 0%, rgb(30 111 217 / 30%), transparent 50%),
		var(--navy);
	color: var(--muted-light);
}

.page-hero__title {
	margin: 0;
	color: var(--white);
	font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.4rem);
	font-weight: 800;
}

.page-hero__meta {
	margin-top: 10px;
}

.page-hero .meta-date {
	color: var(--muted-light);
}

.breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0 0 12px;
	padding: 0;
	list-style: none;
	font-size: 0.85rem;
}

.breadcrumbs li:not(:last-child)::after {
	content: "/";
	margin-inline-start: 6px;
	opacity: 0.5;
}

.breadcrumbs a {
	color: var(--muted-light);
}

.breadcrumbs a:hover {
	color: var(--white);
}

.breadcrumbs [aria-current] {
	color: var(--white);
}

/* Product page: content + sidebar */
.product-layout {
	display: grid;
	gap: 32px;
	align-items: start;
}

@media (min-width: 1024px) {
	.product-layout {
		grid-template-columns: minmax(0, 1fr) 320px;
		gap: 48px;
	}

	.product-layout__aside {
		position: sticky;
		top: calc(var(--header-h) + 24px);
	}
}

.product-layout__aside {
	display: grid;
	gap: 20px;
}

.aside-card {
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--white);
}

.aside-card--cta {
	border: 0;
	background: linear-gradient(150deg, var(--navy), var(--navy-700));
	color: var(--muted-light);
}

.aside-card--cta .aside-card__title {
	color: var(--white);
}

.aside-card__title {
	margin-bottom: 0.6em;
	font-size: 1.1rem;
}

.aside-card__phone {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 14px 0 0;
}

.aside-card__phone a {
	color: var(--white);
	font-weight: 700;
	font-size: 1.1rem;
}

.aside-links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.aside-links a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 10px 0;
	border-bottom: 1px solid var(--line);
	color: var(--ink);
	font-weight: 600;
	font-size: 0.925rem;
}

.aside-links li:last-child a {
	border-bottom: 0;
}

.aside-links a:hover,
.aside-links a[aria-current] {
	color: var(--blue);
}

.aside-links .icon {
	width: 16px;
	height: 16px;
	opacity: 0.5;
}

/* Post navigation and pagination */
.post-navigation {
	margin-top: 48px;
}

.post-navigation .nav-links {
	display: grid;
	gap: 16px;
}

@media (min-width: 640px) {
	.post-navigation .nav-links {
		grid-template-columns: 1fr 1fr;
	}
	.post-navigation .nav-next {
		text-align: end;
	}
}

.post-navigation a {
	display: block;
	height: 100%;
	padding: 18px 20px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--navy);
}

.post-navigation a:hover {
	border-color: var(--blue);
}

.post-nav__label {
	display: block;
	color: var(--muted);
	font-size: 0.8rem;
}

.post-nav__title {
	font-weight: 700;
}

.pagination {
	margin-top: 40px;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding-inline: 12px;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	color: var(--ink);
	font-weight: 600;
}

.pagination .page-numbers.current,
.pagination a.page-numbers:hover {
	border-color: var(--blue);
	background: var(--blue);
	color: var(--white);
}

.empty-state {
	text-align: center;
}

.empty-state .search-form {
	max-width: 520px;
	margin: 24px auto;
}

.empty-state__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}

/* Search form */
.search-form {
	position: relative;
	display: flex;
}

.search-form__input {
	width: 100%;
	min-height: 50px;
	padding: 10px 18px;
	padding-inline-end: 56px;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--surface);
}

.search-form__input:focus {
	outline: none;
	border-color: var(--blue);
	background: var(--white);
	box-shadow: 0 0 0 4px var(--blue-50);
}

.search-form__button {
	position: absolute;
	inset-block: 4px;
	inset-inline-end: 4px;
	display: grid;
	place-items: center;
	width: 44px;
	border: 0;
	border-radius: 8px;
	background: var(--blue);
	color: var(--white);
	cursor: pointer;
}

/* ==========================================================================
   Content typography (pages, posts, product text)
   ========================================================================== */

.entry-content {
	font-size: 1.0625rem;
	line-height: 2;
}

.entry-content--intro {
	max-width: 860px;
	margin-bottom: 40px;
}

.entry-content > *:first-child {
	margin-top: 0;
}

.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5 {
	margin: 1.8em 0 0.6em;
	line-height: 1.6;
}

.entry-content h2 {
	font-size: 1.5rem;
}

.entry-content h3 {
	font-size: 1.25rem;
}

.entry-content h4,
.entry-content h5 {
	font-size: 1.1rem;
}

.entry-content ul,
.entry-content ol {
	margin: 0 0 1.2em;
	padding-inline-start: 1.4em;
}

.entry-content li {
	margin-bottom: 0.35em;
}

.entry-content li::marker {
	color: var(--blue);
}

.entry-content a {
	text-decoration: underline;
	text-decoration-color: rgb(30 111 217 / 35%);
	text-underline-offset: 4px;
}

.entry-content a:hover {
	text-decoration-color: currentColor;
}

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

.entry-content figure {
	margin: 1.5em 0;
}

.entry-content figcaption,
.wp-caption-text {
	margin-top: 8px;
	color: var(--muted);
	font-size: 0.875rem;
	text-align: center;
}

.entry-content blockquote,
.entry-content .wp-block-quote {
	margin: 1.5em 0;
	padding: 18px 24px;
	border-inline-start: 4px solid var(--blue);
	border-radius: var(--radius-sm);
	background: var(--surface);
}

.entry-content blockquote p:last-child {
	margin: 0;
}

.entry-content hr,
.entry-content .wp-block-separator {
	height: 1px;
	margin: 2em 0;
	border: 0;
	background: var(--line);
}

/* Old content uses <pre>/<code>/verse for ordinary sentences: keep them in the text font. */
.entry-content pre,
.entry-content code,
.entry-content .wp-block-verse {
	font-family: inherit;
	font-size: inherit;
	white-space: pre-wrap;
}

.entry-content pre,
.entry-content .wp-block-verse {
	padding: 16px 20px;
	border-radius: var(--radius-sm);
	background: var(--surface);
}

.entry-content code {
	padding: 0;
	background: none;
}

/* Text pasted from Word carries inline fonts; use the theme font instead. */
.entry-content [style*="font-family"] {
	font-family: inherit !important;
}

.entry-content table {
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 1.5em 0;
	overflow-x: auto;
	border-collapse: collapse;
	font-size: 0.925rem;
	line-height: 1.7;
}

.entry-content th,
.entry-content td {
	padding: 10px 14px;
	border: 1px solid var(--line);
	text-align: start;
	vertical-align: top;
}

.entry-content th,
.entry-content thead td {
	background: var(--navy);
	color: var(--white);
	font-weight: 700;
}

.entry-content tbody tr:nth-child(even) {
	background: var(--surface);
}

/* Layout tables (the contact page puts the form and the address side by side). */
.entry-content table:has(.wpcf7) {
	display: table;
	font-size: inherit;
	line-height: inherit;
}

.entry-content table:has(.wpcf7) td {
	padding: 0 16px;
	border: 0;
	background: none;
}

.entry-content table:has(.wpcf7) tr {
	background: none;
}

@media (max-width: 767px) {
	.entry-content table:has(.wpcf7),
	.entry-content table:has(.wpcf7) tbody,
	.entry-content table:has(.wpcf7) tr,
	.entry-content table:has(.wpcf7) td {
		display: block;
		width: 100% !important;
		padding: 0;
	}
}

.entry-thumbnail img {
	width: 100%;
	border-radius: var(--radius);
}

.alignleft {
	float: left;
	margin: 0.4em 0 1em 1.5em;
}

.alignright {
	float: right;
	margin: 0.4em 1.5em 1em 0;
}

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

.page-links {
	margin-top: 2em;
	font-weight: 700;
}

/* ==========================================================================
   Plugins
   ========================================================================== */

/* Responsive Lightbox galleries: product text first, then even square tiles. */
.rl-gallery-container {
	display: flex;
	flex-direction: column;
	margin-bottom: 2em;
}

.rl-gallery-description {
	order: -1;
	margin-bottom: 1.5em;
}

.rl-gallery-container .rl-basicgrid-gallery {
	gap: 8px;
}

.rl-gallery-container .rl-basicgrid-gallery .rl-gallery-item {
	width: calc(33.333% - 6px) !important;
	margin: 0 !important;
	overflow: hidden;
	border-radius: var(--radius-sm);
}

.rl-gallery-container .rl-basicgrid-gallery:after {
	display: none;
}

.rl-basicgrid-gallery .rl-gallery-item img {
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 0;
	transition: transform 0.3s ease;
}

.rl-basicgrid-gallery .rl-gallery-item:hover img {
	transform: scale(1.05);
}

@media (max-width: 359px) {
	.rl-gallery-container .rl-basicgrid-gallery .rl-gallery-item {
		width: calc(50% - 4px) !important;
	}
}

/* Contact Form 7 */
.wpcf7 form {
	display: grid;
	gap: 4px;
}

.wpcf7 label {
	display: block;
	font-weight: 600;
	font-size: 0.95rem;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="number"],
.wpcf7 input[type="url"],
.wpcf7 input[type="date"],
.wpcf7 select,
.wpcf7 textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.footer-widgets input[type="email"],
.footer-widgets input[type="text"] {
	width: 100%;
	margin-top: 6px;
	padding: 12px 16px;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--white);
	font-weight: 400;
	line-height: 1.6;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wpcf7 textarea {
	min-height: 150px;
	resize: vertical;
}

.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus,
.comment-form input:focus,
.comment-form textarea:focus {
	outline: none;
	border-color: var(--blue);
	box-shadow: 0 0 0 4px var(--blue-50);
}

.wpcf7 input[type="submit"],
.comment-form input[type="submit"],
.footer-widgets input[type="submit"],
.footer-widgets button[type="submit"] {
	min-height: 50px;
	padding: 0.6em 2em;
	border: 0;
	border-radius: var(--radius-sm);
	background: var(--blue);
	color: var(--white);
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.wpcf7 input[type="submit"]:hover,
.comment-form input[type="submit"]:hover,
.footer-widgets input[type="submit"]:hover {
	background: var(--blue-600);
}

.wpcf7-not-valid-tip {
	margin-top: 4px;
	color: #c62828;
	font-size: 0.85rem;
}

.wpcf7 form .wpcf7-response-output {
	margin: 16px 0 0;
	padding: 12px 16px;
	border-radius: var(--radius-sm);
}

/* Ultimate FAQs */
.ewd-ufaq-faq-div {
	margin-bottom: 12px;
	border: 1px solid var(--line) !important;
	border-radius: var(--radius-sm);
	background: var(--white);
	overflow: hidden;
}

.ewd-ufaq-faq-title {
	padding: 14px 18px;
	cursor: pointer;
}

.ewd-ufaq-faq-title h4,
.ewd-ufaq-faq-title-text h4 {
	margin: 0;
	font-size: 1rem;
	color: var(--navy);
}

.ewd-ufaq-faq-body {
	padding: 0 18px 14px;
	color: var(--muted);
}
