/* ==========================================================================
   Apex Infinity — main stylesheet (mobile-first)
   --------------------------------------------------------------------------
   1. Design tokens  (change colours / fonts / spacing HERE, in one place)
   2. Fonts
   3. Base
   4. Layout & utilities
   5. Buttons
   6. Header & navigation
   7. Footer & mobile bar
   8. Page bands, posts, forms
   9. Products
   10. Motion (scroll reveal, reduced motion)
   11. Elementor bridge
   ========================================================================== */

/* 1. Design tokens ------------------------------------------------------- */
:root {
	/* Colours (sampled from the logo) */
	--apex-ink: #2B3326;          /* deep green: headings, footer, dark bands   */
	--apex-green: #4F5F3F;        /* leaf green: links, tags, tagline           */
	--apex-gold: #C98A1B;         /* logo gold: icons and decoration only       */
	--apex-gold-bright: #E3A93A;  /* turmeric: buttons and highlights           */
	--apex-gold-hover: #D69A25;
	--apex-bg: #F6F2EA;           /* warm beige page background                 */
	--apex-cream: #FAF5E8;        /* cards and alternate sections               */
	--apex-sand: #E6DDC8;         /* soft panels and borders                    */
	--apex-rule: #B9A57C;         /* thin rules like the logo line              */
	--apex-muted: #5E6A52;        /* secondary text (5.1:1 on beige)            */
	--apex-white: #FFFFFF;

	/* Fonts */
	--apex-font-heading: 'Cormorant Garamond', 'Cormorant Local', Georgia, 'Times New Roman', serif;
	--apex-font-body: 'Inter', 'Inter Local', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

	/* Layout */
	--apex-container: 1200px;
	--apex-narrow: 760px;
	--apex-gutter: 1rem;
	--apex-radius: 4px;
	--apex-shadow: 0 14px 34px -16px rgba(43, 51, 38, 0.35);
	--apex-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--apex-header-h: 76px;
}

/* 2. Fonts (local fallback — used when Google Fonts cannot load) --------- */
@font-face {
	font-family: 'Cormorant Local';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url('../fonts/cormorant-garamond-latin-500-normal.woff2') format('woff2');
}
@font-face {
	font-family: 'Cormorant Local';
	font-style: normal;
	font-weight: 600 700;
	font-display: swap;
	src: url('../fonts/cormorant-garamond-latin-600-normal.woff2') format('woff2');
}
@font-face {
	font-family: 'Inter Local';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('../fonts/inter-latin-wght-normal.woff2') format('woff2');
}

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

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

body {
	margin: 0;
	background: var(--apex-bg);
	color: var(--apex-ink);
	font-family: var(--apex-font-body);
	font-size: 1rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

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

h1, h2, h3, h4 {
	margin: 0 0 0.5em;
	font-family: var(--apex-font-heading);
	font-weight: 600;
	line-height: 1.12;
	color: var(--apex-ink);
	letter-spacing: 0.005em;
}
h1 { font-size: clamp(2.4rem, 1.6rem + 3.6vw, 4rem); }
h2 { font-size: clamp(2rem, 1.5rem + 2.2vw, 3rem); }
h3, .h3 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); }
h4 { font-size: 1.25rem; }

p { margin: 0 0 1.1em; }

a {
	color: var(--apex-green);
	text-underline-offset: 3px;
	transition: color 0.2s var(--apex-ease);
}
a:hover { color: var(--apex-ink); }

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

hr { border: 0; border-top: 1px solid var(--apex-sand); margin: 2rem 0; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0; border: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}
.skip-link:focus {
	position: fixed !important;
	top: 8px; left: 8px;
	width: auto; height: auto;
	margin: 0; padding: 12px 18px;
	clip: auto; clip-path: none;
	background: var(--apex-ink); color: var(--apex-cream);
	z-index: 10000;
}

/* Marked placeholders so nothing unfinished goes live unnoticed */
.is-placeholder {
	background: rgba(227, 169, 58, 0.22);
	border-bottom: 1px dashed var(--apex-gold);
	padding: 0 3px;
	font-weight: 500;
}

/* 4. Layout & utilities -------------------------------------------------- */
.container {
	width: min(100% - (var(--apex-gutter) * 2), var(--apex-container));
	margin-inline: auto;
}
.container--narrow { width: min(100% - (var(--apex-gutter) * 2), var(--apex-narrow)); }

.section { padding-block: clamp(3.5rem, 2.5rem + 5vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.section--sand { background: var(--apex-cream); border-block: 1px solid var(--apex-sand); }
.section--dark { background: var(--apex-ink); color: var(--apex-cream); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--apex-cream); }
.section--center { min-height: 60vh; display: grid; align-items: center; }
.text-center { text-align: center; }

.eyebrow {
	margin: 0 0 1rem;
	font-family: var(--apex-font-body);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--apex-green);
}
.section--dark .eyebrow { color: var(--apex-gold-bright); }

.divider-infinity {
	display: block;
	position: relative;
	width: min(100%, 280px);
	height: 18px;
	margin: 1.75rem auto 0;
	background: url('../images/mark-infinity.png') center / 34px auto no-repeat;
}
.divider-infinity::before,
.divider-infinity::after {
	content: '';
	position: absolute;
	top: 50%;
	height: 1px;
	background: var(--apex-rule);
}
.divider-infinity::before { left: 0; right: calc(50% + 28px); }
.divider-infinity::after { left: calc(50% + 28px); right: 0; }

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 500;
	text-decoration: none;
	min-height: 44px;
}
.link-arrow .icon { transition: transform 0.25s var(--apex-ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

/* WordPress core alignment helpers */
.alignleft { float: left; margin: 0.25em 1.5em 1em 0; }
.alignright { float: right; margin: 0.25em 0 1em 1.5em; }
.aligncenter { margin-inline: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text, figcaption { font-size: 0.875rem; color: var(--apex-muted); margin-top: 0.5rem; }

/* 5. Buttons ------------------------------------------------------------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	min-height: 48px;
	padding: 0.75rem 1.6rem;
	border: 1px solid transparent;
	border-radius: var(--apex-radius);
	font-family: var(--apex-font-body);
	font-size: 0.9375rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.25s var(--apex-ease), box-shadow 0.25s var(--apex-ease), background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--apex-shadow); }
.btn:active { transform: translateY(0); }

.btn--gold { background: var(--apex-gold-bright); color: var(--apex-ink); }
.btn--gold:hover { background: var(--apex-gold-hover); color: var(--apex-ink); }
.btn--dark { background: var(--apex-ink); color: var(--apex-cream); }
.btn--dark:hover { background: var(--apex-green); color: var(--apex-white); }
.btn--outline { background: transparent; color: var(--apex-ink); border-color: var(--apex-ink); }
.btn--outline:hover { background: var(--apex-ink); color: var(--apex-cream); }
.section--dark .btn--outline { color: var(--apex-cream); border-color: var(--apex-cream); }
.section--dark .btn--outline:hover { background: var(--apex-cream); color: var(--apex-ink); }

.icon { flex: none; }

/* 6. Header & navigation ------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 900;
	background: rgba(246, 242, 234, 0.96);
	border-bottom: 1px solid transparent;
	transition: box-shadow 0.3s var(--apex-ease), border-color 0.3s var(--apex-ease), background-color 0.3s;
}
@supports (backdrop-filter: blur(8px)) {
	.site-header { background: rgba(246, 242, 234, 0.88); backdrop-filter: saturate(1.2) blur(10px); }
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.site-header.is-scrolled {
	border-color: var(--apex-sand);
	box-shadow: 0 8px 24px -18px rgba(43, 51, 38, 0.6);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: var(--apex-header-h);
	padding-block: 0.5rem;
	transition: min-height 0.3s var(--apex-ease);
}
.site-header.is-scrolled .header-inner { min-height: 60px; }

.brand { display: inline-flex; align-items: center; line-height: 0; }
.site-logo--header,
.custom-logo { height: 46px; width: auto; transition: height 0.3s var(--apex-ease); }
.site-header.is-scrolled .site-logo--header,
.site-header.is-scrolled .custom-logo { height: 38px; }

/* Hamburger */
.nav-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	margin-right: -8px;
	background: transparent;
	border: 0;
	border-radius: var(--apex-radius);
	color: var(--apex-ink);
	cursor: pointer;
}
.nav-toggle__bars { position: relative; width: 24px; height: 16px; }
.nav-toggle__bars span {
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
	transition: transform 0.3s var(--apex-ease), opacity 0.2s, top 0.3s var(--apex-ease);
}
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 7px; }
.nav-toggle__bars span:nth-child(3) { top: 14px; }
.nav-toggle[aria-expanded='true'] .nav-toggle__bars span:nth-child(1) { top: 7px; transform: rotate(45deg); }
.nav-toggle[aria-expanded='true'] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded='true'] .nav-toggle__bars span:nth-child(3) { top: 7px; transform: rotate(-45deg); }

/* Mobile menu panel */
.primary-nav {
	position: fixed;
	left: 0;
	right: 0;
	top: var(--apex-header-h);
	max-height: calc(100vh - var(--apex-header-h));
	max-height: calc(100dvh - var(--apex-header-h));
	overflow-y: auto;
	padding: 0.5rem var(--apex-gutter) 1.5rem;
	background: var(--apex-bg);
	border-top: 1px solid var(--apex-sand);
	box-shadow: 0 24px 40px -24px rgba(43, 51, 38, 0.5);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: opacity 0.3s var(--apex-ease), transform 0.3s var(--apex-ease), visibility 0s linear 0.3s;
}
.admin-bar .primary-nav { top: calc(var(--apex-header-h) + 32px); }
@media (max-width: 782px) { .admin-bar .primary-nav { top: calc(var(--apex-header-h) + 46px); } }

.primary-nav.is-open {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition-delay: 0s;
}

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

.primary-nav .menu a {
	display: flex;
	align-items: center;
	min-height: 52px;
	padding-inline: 0.25rem;
	border-bottom: 1px solid var(--apex-sand);
	font-size: 1.0625rem;
	font-weight: 500;
	color: var(--apex-ink);
	text-decoration: none;
}
.primary-nav .menu a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a { color: var(--apex-green); }
.primary-nav .sub-menu { list-style: none; margin: 0; padding: 0 0 0 1rem; }
.primary-nav .sub-menu a { font-size: 0.9375rem; font-weight: 400; }
.nav-cta { width: 100%; margin-top: 1.25rem; }

body.nav-open { overflow: hidden; }

@media (min-width: 1024px) {
	.nav-toggle { display: none; }

	.primary-nav {
		position: static;
		display: flex;
		align-items: center;
		gap: 2rem;
		max-height: none;
		overflow: visible;
		padding: 0;
		background: transparent;
		border: 0;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}
	.primary-nav .menu { display: flex; align-items: center; gap: 0.25rem; }
	.primary-nav .menu > li { position: relative; }
	.primary-nav .menu a {
		min-height: 44px;
		padding: 0 0.85rem;
		border: 0;
		font-size: 0.9375rem;
		position: relative;
	}
	.primary-nav .menu > li > a::after {
		content: '';
		position: absolute;
		left: 0.85rem;
		right: 0.85rem;
		bottom: 6px;
		height: 1px;
		background: var(--apex-gold);
		transform: scaleX(0);
		transform-origin: left;
		transition: transform 0.3s var(--apex-ease);
	}
	.primary-nav .menu > li > a:hover::after,
	.primary-nav .menu > .current-menu-item > a::after,
	.primary-nav .menu > .current_page_item > a::after { transform: scaleX(1); }

	.primary-nav .sub-menu {
		position: absolute;
		top: 100%;
		left: 0;
		min-width: 220px;
		padding: 0.5rem 0;
		background: var(--apex-cream);
		border: 1px solid var(--apex-sand);
		box-shadow: var(--apex-shadow);
		opacity: 0;
		visibility: hidden;
		transform: translateY(6px);
		transition: opacity 0.25s var(--apex-ease), transform 0.25s var(--apex-ease), visibility 0s linear 0.25s;
	}
	.primary-nav .menu li:hover > .sub-menu,
	.primary-nav .menu li:focus-within > .sub-menu {
		opacity: 1;
		visibility: visible;
		transform: none;
		transition-delay: 0s;
	}
	.primary-nav .sub-menu a { padding: 0.5rem 1.1rem; font-size: 0.9375rem; }
	.nav-cta { width: auto; margin-top: 0; min-height: 44px; padding-inline: 1.25rem; }
	body.nav-open { overflow: auto; }
}

/* 7. Footer & mobile bar ------------------------------------------------- */
.site-footer {
	background: var(--apex-ink);
	color: #C9CFC0; /* 8.2:1 on deep green */
	padding-top: clamp(3rem, 2rem + 4vw, 5rem);
	font-size: 0.9375rem;
}
.site-footer a { color: var(--apex-cream); text-decoration: none; }
.site-footer a:hover { color: var(--apex-gold-bright); }
.site-footer .site-logo--reversed { height: 56px; width: auto; }

.footer-grid { display: grid; gap: 2.5rem; padding-bottom: 3rem; }
.footer-tagline { margin: 1.25rem 0 1.25rem; max-width: 34ch; }
.footer-title {
	margin: 0 0 1.1rem;
	font-family: var(--apex-font-body);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--apex-gold-bright);
}
.footer-menu li { margin-bottom: 0.15rem; }
.footer-menu a { display: inline-block; padding-block: 0.4rem; }

.contact-list li { display: flex; gap: 0.75rem; align-items: flex-start; margin-bottom: 0.9rem; }
.contact-list .icon { margin-top: 0.2rem; color: var(--apex-gold-bright); }
.site-footer .is-placeholder { color: var(--apex-cream); background: rgba(227, 169, 58, 0.18); }

.social-list { display: flex; gap: 0.5rem; }
.social-list a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid rgba(250, 245, 232, 0.28);
	border-radius: 50%;
	transition: background-color 0.25s, border-color 0.25s, transform 0.25s var(--apex-ease);
}
.social-list a:hover { background: var(--apex-gold-bright); border-color: var(--apex-gold-bright); color: var(--apex-ink); transform: translateY(-2px); }

.footer-bottom {
	padding-block: 1.25rem calc(1.25rem + 0px);
	border-top: 1px solid rgba(250, 245, 232, 0.14);
	font-size: 0.8125rem;
}
.footer-bottom p { margin: 0; }

@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 3rem; } }

/* Sticky call / WhatsApp bar (mobile only) */
.mobile-bar { display: none; }
@media (max-width: 767px) {
	.has-mobile-bar { padding-bottom: 68px; }
	.mobile-bar {
		position: fixed;
		left: 0; right: 0; bottom: 0;
		z-index: 950;
		display: flex;
		gap: 0.5rem;
		padding: 0.5rem var(--apex-gutter) calc(0.5rem + env(safe-area-inset-bottom, 0px));
		background: rgba(250, 245, 232, 0.97);
		border-top: 1px solid var(--apex-sand);
		box-shadow: 0 -10px 26px -18px rgba(43, 51, 38, 0.6);
	}
	.mobile-bar__btn {
		flex: 1;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 0.5rem;
		min-height: 48px;
		border-radius: var(--apex-radius);
		background: var(--apex-gold-bright);
		color: var(--apex-ink);
		font-size: 0.9375rem;
		font-weight: 600;
		text-decoration: none;
	}
	.mobile-bar__btn:hover { background: var(--apex-gold-hover); color: var(--apex-ink); }
}

/* 8. Page bands, posts, forms ------------------------------------------- */
.page-hero {
	padding-block: clamp(3rem, 2rem + 5vw, 6rem) clamp(2rem, 1.5rem + 3vw, 4rem);
	text-align: center;
	background:
		radial-gradient(60% 120% at 50% 0%, var(--apex-cream) 0%, transparent 70%),
		var(--apex-bg);
}
.page-hero__title { margin-bottom: 0.25em; }
.page-hero__intro { max-width: 60ch; margin: 1rem auto 0; color: var(--apex-muted); font-size: 1.0625rem; }
.page-hero__intro p:last-child { margin-bottom: 0; }

.page-content--builder { padding: 0; }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content img { border-radius: var(--apex-radius); }
.entry-content ul, .entry-content ol { padding-left: 1.25rem; }
.post-featured { margin: 0 0 2rem; }

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

.post-card {
	display: flex;
	flex-direction: column;
	background: var(--apex-cream);
	border: 1px solid var(--apex-sand);
	border-radius: var(--apex-radius);
	overflow: hidden;
	transition: transform 0.3s var(--apex-ease), box-shadow 0.3s var(--apex-ease);
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--apex-shadow); }
.post-card__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--apex-sand); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.post-card__meta { margin: 0 0 0.5rem; font-size: 0.8125rem; color: var(--apex-muted); }
.post-card__title { font-size: 1.5rem; margin-bottom: 0.5rem; }
.post-card__title a { color: var(--apex-ink); text-decoration: none; }
.post-card__excerpt { color: var(--apex-muted); flex: 1; }
.post-card__excerpt p { margin-bottom: 0.75rem; }

.navigation.pagination { margin-top: 3rem; }
.nav-links { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 44px; min-height: 44px; padding: 0 0.75rem;
	border: 1px solid var(--apex-sand); border-radius: var(--apex-radius);
	color: var(--apex-ink); text-decoration: none; background: var(--apex-cream);
}
.page-numbers.current, .page-numbers:hover { background: var(--apex-ink); border-color: var(--apex-ink); color: var(--apex-cream); }
.post-navigation { margin-top: 3rem; }

/* Forms (theme form, Contact Form 7, WP search) */
label { display: block; margin-bottom: 0.35rem; font-size: 0.875rem; font-weight: 600; }
input[type='text'], input[type='email'], input[type='tel'], input[type='url'],
input[type='search'], input[type='number'], select, textarea,
.wpcf7 input:not([type='submit']):not([type='checkbox']):not([type='radio']), .wpcf7 select, .wpcf7 textarea {
	display: block;
	width: 100%;
	min-height: 48px;
	padding: 0.7rem 0.9rem;
	background: var(--apex-white);
	color: var(--apex-ink);
	border: 1px solid var(--apex-rule);
	border-radius: var(--apex-radius);
	font: inherit;
	font-size: 1rem; /* 16px stops iOS zoom on focus */
	transition: border-color 0.2s, box-shadow 0.2s;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus {
	outline: none;
	border-color: var(--apex-ink);
	box-shadow: 0 0 0 3px rgba(227, 169, 58, 0.45);
}
.wpcf7 input[type='submit'] {
	min-height: 48px; padding: 0.75rem 1.6rem; border: 0; border-radius: var(--apex-radius);
	background: var(--apex-gold-bright); color: var(--apex-ink); font: inherit; font-weight: 600; cursor: pointer;
}
.wpcf7 input[type='submit']:hover { background: var(--apex-gold-hover); }

.enquiry-form p { margin-bottom: 1.1rem; }
.form-grid { display: grid; gap: 0 1.25rem; }
@media (min-width: 640px) { .form-grid { grid-template-columns: repeat(2, 1fr); } }
.req { color: #8A5A00; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-notice { padding: 1rem 1.25rem; border-radius: var(--apex-radius); border: 1px solid; margin-bottom: 1.5rem; }
.form-notice--ok { background: #EDF3E6; border-color: var(--apex-green); color: var(--apex-ink); }
.form-notice--error { background: #FBEEDD; border-color: #8A5A00; color: var(--apex-ink); }

.search-form { display: flex; gap: 0.5rem; margin-top: 2rem; }
.search-form label { flex: 1; margin: 0; }
.search-form .search-submit { min-height: 48px; padding: 0 1.25rem; border: 0; border-radius: var(--apex-radius); background: var(--apex-ink); color: var(--apex-cream); font: inherit; font-weight: 600; cursor: pointer; }

/* 9. Products ------------------------------------------------------------ */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-bottom: 2.5rem; }
.chip {
	display: inline-flex; align-items: center;
	min-height: 44px; padding: 0 1.25rem;
	border: 1px solid var(--apex-rule); border-radius: 999px;
	background: transparent; color: var(--apex-ink);
	font-size: 0.875rem; font-weight: 500; text-decoration: none;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.25s var(--apex-ease);
}
.chip:hover { transform: translateY(-2px); border-color: var(--apex-ink); color: var(--apex-ink); }
.chip[aria-current='page'] { background: var(--apex-ink); border-color: var(--apex-ink); color: var(--apex-cream); }

.product-grid { display: grid; gap: 1.75rem; }
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }

.product-card {
	display: flex;
	flex-direction: column;
	background: var(--apex-cream);
	border: 1px solid var(--apex-sand);
	border-radius: var(--apex-radius);
	overflow: hidden;
	transition: transform 0.3s var(--apex-ease), box-shadow 0.3s var(--apex-ease);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--apex-shadow); }
.product-card__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--apex-sand); }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--apex-ease); }
.product-card:hover .product-card__media img { transform: scale(1.04); }
.product-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.4rem 1.4rem 1.5rem; }
.product-card__title { font-size: 1.6rem; margin-bottom: 0.4rem; }
.product-card__title a { color: var(--apex-ink); text-decoration: none; }
.product-card__hsn { margin: 0 0 1.25rem; padding-top: 0.75rem; border-top: 1px solid var(--apex-sand); font-size: 0.875rem; color: var(--apex-muted); flex: 1; }
.product-card__hsn strong { margin-left: 0.4rem; color: var(--apex-ink); font-weight: 600; }
.product-card__more { margin-top: 0.75rem; justify-content: center; font-size: 0.875rem; }

.tag {
	display: inline-block;
	margin: 0 0 0.75rem;
	padding: 0.25rem 0.7rem;
	background: var(--apex-green);
	color: var(--apex-white);
	border-radius: 2px;
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.media-placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	min-height: 100%;
	padding: 1rem;
	text-align: center;
	font-size: 0.8125rem;
	background:
		url('../images/mark-infinity.png') center 36% / 56px auto no-repeat,
		repeating-linear-gradient(135deg, var(--apex-sand) 0 14px, #EBE3D0 14px 28px);
}
.media-placeholder__text { margin-top: 5rem; }

/* Product CTA (WhatsApp + Email side by side) */
.product-cta__buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.product-cta__buttons .btn { padding-inline: 0.75rem; }
.product-cta__grade { margin-bottom: 1rem; }

/* Single product */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 0.5rem; padding-block: 1.5rem 1rem; font-size: 0.875rem; color: var(--apex-muted); }
.breadcrumb a { color: var(--apex-muted); }
.breadcrumb a:hover { color: var(--apex-ink); }

.product-single__top { display: grid; gap: 2rem; padding-bottom: clamp(2rem, 1rem + 4vw, 4rem); }
.product-single__media { aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--apex-radius); background: var(--apex-sand); }
.product-single__media img { width: 100%; height: 100%; object-fit: cover; }
.product-single__title { margin-bottom: 0.35em; }
.product-single__story { font-size: 1.125rem; color: var(--apex-muted); }

.spec-list { margin: 1.5rem 0 1.75rem; border-top: 1px solid var(--apex-sand); }
.spec-list__row { display: grid; grid-template-columns: 120px 1fr; gap: 1rem; padding-block: 0.8rem; border-bottom: 1px solid var(--apex-sand); }
.spec-list dt { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--apex-green); padding-top: 0.2rem; }
.spec-list dd { margin: 0; }

.table-wrap { overflow-x: auto; margin-top: 1rem; border: 1px solid var(--apex-sand); border-radius: var(--apex-radius); background: var(--apex-cream); }
.grade-table { width: 100%; border-collapse: collapse; min-width: 420px; }
.grade-table th, .grade-table td { padding: 0.9rem 1.1rem; text-align: left; border-bottom: 1px solid var(--apex-sand); }
.grade-table thead th { font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--apex-green); background: var(--apex-sand); }
.grade-table tbody tr:last-child th, .grade-table tbody tr:last-child td { border-bottom: 0; }
.product-single__content { margin-top: 2.5rem; max-width: var(--apex-narrow); }

@media (min-width: 900px) {
	.product-single__top { grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
	.product-single__summary { position: sticky; top: calc(var(--apex-header-h) + 24px); }
}

/* Product page: jump menu, info cards, quote band */
.jump-nav {
	position: sticky;
	top: var(--apex-header-h);
	z-index: 800;
	background: var(--apex-bg);
	border-block: 1px solid var(--apex-sand);
}
.admin-bar .jump-nav { top: calc(var(--apex-header-h) + 32px); }
.jump-nav ul { list-style: none; display: flex; gap: 0.25rem; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.jump-nav ul::-webkit-scrollbar { display: none; }
.jump-nav a {
	display: inline-flex; align-items: center;
	min-height: 48px; padding: 0 1rem; white-space: nowrap;
	font-size: 0.875rem; font-weight: 500; color: var(--apex-ink); text-decoration: none;
	border-bottom: 2px solid transparent;
}
.jump-nav a:hover { border-bottom-color: var(--apex-gold); }
.product-single section[id] { scroll-margin-top: calc(var(--apex-header-h) + 56px); }

.info-cards { display: grid; gap: 1rem; margin-top: 1.25rem; }
@media (min-width: 768px) { .info-cards { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.info-card { padding: 1.5rem; background: var(--apex-cream); border: 1px solid var(--apex-sand); border-radius: var(--apex-radius); }
.info-card__title { font-size: 1.35rem; margin-bottom: 0.5rem; }
.info-card p { margin: 0; color: var(--apex-muted); }

.quote-band__grid { display: grid; gap: 2rem; align-items: start; }
.quote-band__intro p { color: #C9CFC0; }
.quote-card { padding: clamp(1.25rem, 1rem + 2vw, 2.25rem); background: var(--apex-cream); color: var(--apex-ink); border-radius: var(--apex-radius); }
.quote-card label { color: var(--apex-ink); }
.quote-card .form-grid { grid-template-columns: 1fr; }
@media (min-width: 900px) {
	.quote-band__grid { grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 4vw, 4rem); }
	.quote-card .form-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 10. Motion ------------------------------------------------------------- */
/* Scroll reveal: content is visible without JavaScript. */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--apex-ease), transform 0.7s var(--apex-ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal[data-delay='1'] { transition-delay: 0.1s; }
.js .reveal[data-delay='2'] { transition-delay: 0.2s; }
.js .reveal[data-delay='3'] { transition-delay: 0.3s; }
/* Never hide content inside the Elementor editor / preview. */
.elementor-editor-active .reveal,
.elementor-editor-preview .reveal { opacity: 1 !important; transform: none !important; }
/* Cards animate in, then hover lift must still work */
.js .product-card.reveal.is-visible, .js .post-card.reveal.is-visible { transition: transform 0.3s var(--apex-ease), box-shadow 0.3s var(--apex-ease), opacity 0.7s var(--apex-ease); }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		transition-delay: 0s !important;
	}
	.js .reveal { opacity: 1; transform: none; }
	.btn:hover, .chip:hover, .product-card:hover, .post-card:hover { transform: none; }
}

/* 11. Elementor bridge --------------------------------------------------- */
/* Point Elementor's global colours / fonts at the brand tokens above so new
   widgets start on-brand. (Edit in Elementor > Site Settings if you prefer.) */
body[class*='elementor-kit-'] {
	--e-global-color-primary: var(--apex-ink);
	--e-global-color-secondary: var(--apex-green);
	--e-global-color-text: var(--apex-ink);
	--e-global-color-accent: var(--apex-gold-bright);
	--e-global-typography-primary-font-family: 'Cormorant Garamond', 'Cormorant Local', Georgia, serif;
	--e-global-typography-secondary-font-family: 'Cormorant Garamond', 'Cormorant Local', Georgia, serif;
	--e-global-typography-text-font-family: 'Inter', 'Inter Local', system-ui, sans-serif;
	--e-global-typography-accent-font-family: 'Inter', 'Inter Local', system-ui, sans-serif;
}
.elementor-widget-heading .elementor-heading-title { font-family: var(--apex-font-heading); }
.elementor-section.elementor-section-boxed > .elementor-container { max-width: var(--apex-container); }
.elementor-button { min-height: 48px; }
