/*
Theme Name: Momentum Minerals
Theme URI: https://momentum9ja.com
Author: Momentum Limited
Description: Theme for Momentum Limited, a Nigerian supplier of solid minerals. Home page with a filterable list of minerals, WhatsApp enquiry links, a floating WhatsApp button and company details editable under Appearance > Customize > Company & contact details.
Version: 1.0.0
Requires at least: 6.0
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: momentum
*/

:root {
	--navy: #0F2A4A;
	--navy-deep: #0A1E36;
	--amber: #E8A33D;
	--laterite: #9C4A2E;
	--stone: #EEF1F3;
	--line: #CDD5DE;
	--ink: #1A2230;
	--muted: #4A5A70;
	--white: #FFFFFF;
	--wa: #0E7C3E;
	--wa-dark: #0A6331;
	--head: "Sora", "Segoe UI", Arial, sans-serif;
	--body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
	--wrap: 1180px;
	--slant: -19.6deg;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
	margin: 0;
	font-family: var(--body);
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--ink);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
}

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

a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--laterite); }

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

h1, h2, h3 {
	font-family: var(--head);
	line-height: 1.15;
	margin: 0 0 0.5em;
	color: var(--navy);
}

p { margin: 0 0 1em; }

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 24px;
}

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

.skip-link {
	position: absolute;
	left: 12px; top: -60px;
	z-index: 100;
	padding: 10px 16px;
	background: var(--amber);
	color: var(--navy);
	font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 12px 22px;
	border: 2px solid var(--navy);
	border-radius: 6px;
	background: var(--navy);
	color: var(--white);
	font-family: var(--head);
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}
.btn:hover { background: var(--navy-deep); color: var(--white); }
.btn--wa { background: var(--wa); border-color: var(--wa); }
.btn--wa:hover { background: var(--wa-dark); border-color: var(--wa-dark); color: var(--white); }
.btn--ghost { background: transparent; border-color: rgba(255, 255, 255, 0.55); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--white); }
.btn--small { min-height: 40px; padding: 8px 16px; font-size: 0.875rem; }

/* Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--white);
	border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 76px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: var(--navy);
}
.brand__img { max-height: 56px; width: auto; }
.brand__text { display: flex; flex-direction: column; gap: 3px; }
.brand__name {
	font-family: var(--head);
	font-size: 1.6rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	line-height: 0.95;
}
.brand__sub {
	font-family: var(--head);
	font-size: 0.6rem;
	font-weight: 500;
	letter-spacing: 0.62em;
	color: var(--muted);
	padding-left: 2px;
}
.brand--light { color: var(--white); }
.brand--light .brand__sub { color: #C9D3E0; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav .menu {
	display: flex;
	gap: 26px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.site-nav .menu a {
	font-family: var(--head);
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--ink);
	text-decoration: none;
}
.site-nav .menu a:hover,
.site-nav .menu .current-menu-item a { color: var(--laterite); }

.nav-toggle {
	display: none;
	width: 44px; height: 44px;
	border: 0;
	background: transparent;
	cursor: pointer;
	position: relative;
}
.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
	position: absolute;
	left: 10px;
	width: 24px; height: 2px;
	background: var(--navy);
	content: "";
}
.nav-toggle__bar { top: 21px; }
.nav-toggle__bar::before { left: 0; top: -7px; }
.nav-toggle__bar::after { left: 0; top: 7px; }

@media (max-width: 900px) {
	.nav-toggle { display: block; }
	.site-nav {
		display: none;
		position: absolute;
		left: 0; right: 0; top: 100%;
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
		padding: 20px 24px 28px;
		background: var(--white);
		border-bottom: 1px solid var(--line);
	}
	.site-nav.is-open { display: flex; }
	.site-nav .menu { flex-direction: column; gap: 4px; }
	.site-nav .menu a { display: block; padding: 10px 0; font-size: 1.05rem; }
}

/* Hero */
.hero {
	background: var(--navy);
	color: var(--white);
	overflow: hidden;
}
.hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	align-items: end;
	gap: 48px;
	padding-top: 88px;
}
.hero__copy { padding-bottom: 88px; }
.hero__title {
	color: var(--white);
	font-size: clamp(2.1rem, 4.6vw, 3.6rem);
	font-weight: 700;
	letter-spacing: -0.015em;
	max-width: 16ch;
	margin-bottom: 0.45em;
}
.hero__lead {
	max-width: 52ch;
	font-size: 1.2rem;
	color: #D6DEE8;
	margin-bottom: 32px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* The core-sample bars: the logo's three rising bars, cut through like drill cores. */
.core {
	position: relative;
	height: 440px;
	display: flex;
	align-items: flex-end;
	gap: 7%;
	padding: 0 4% 0 8%;
}
.core__bar {
	flex: 1 1 0;
	transform: skewX(var(--slant));
	transform-origin: bottom;
	animation: core-rise 900ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
	background-blend-mode: multiply;
}
.core__bar--1 {
	height: 45%;
	animation-delay: 80ms;
	background:
		repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0 9px, rgba(0,0,0,0.07) 9px 10px),
		linear-gradient(to bottom,
			#E9E6DF 0 14%, #CFA27A 14% 30%, #B0603F 30% 52%,
			#DDD3C4 52% 60%, #7A3B2A 60% 82%, #5A2D20 82% 100%);
}
.core__bar--2 {
	height: 70%;
	animation-delay: 200ms;
	background:
		repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0 9px, rgba(0,0,0,0.07) 9px 10px),
		linear-gradient(to bottom,
			#C2B38F 0 10%, #D8D4CB 10% 18%, #5E6670 18% 34%, #A9C3A3 34% 40%,
			#2F7D6B 40% 52%, #7F7A78 52% 70%, #35333A 70% 86%, #1C1C1F 86% 100%);
}
.core__bar--3 {
	height: 100%;
	animation-delay: 320ms;
	background:
		repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0 9px, rgba(0,0,0,0.06) 9px 10px),
		linear-gradient(to bottom,
			#E8A33D 0 22%, #F0CF63 22% 27%, #E8A33D 27% 48%, #C9971F 48% 53%,
			#E8A33D 53% 76%, #F0CF63 76% 80%, #D4902C 80% 100%);
}

@keyframes core-rise {
	from { transform: skewX(var(--slant)) scaleY(0); }
	to { transform: skewX(var(--slant)) scaleY(1); }
}

@media (max-width: 860px) {
	.hero__inner { grid-template-columns: 1fr; gap: 0; padding-top: 56px; }
	.hero__copy { padding-bottom: 40px; }
	.core { height: 220px; padding: 0 18% 0 22%; }
}

/* Section heads */
.section-head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: end;
	gap: 16px 48px;
	margin-bottom: 32px;
}
.section-title {
	font-size: clamp(1.7rem, 3vw, 2.4rem);
	font-weight: 700;
	letter-spacing: -0.01em;
}
.section-title--light { color: var(--white); }
.section-lead { color: var(--muted); max-width: 54ch; margin: 0; }
@media (max-width: 760px) { .section-head { grid-template-columns: 1fr; } }

/* Minerals */
.minerals { background: var(--stone); padding: 88px 0 96px; }

.filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 32px;
}
.filter {
	min-height: 40px;
	padding: 8px 16px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--white);
	color: var(--ink);
	font-family: var(--head);
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
}
.filter:hover { border-color: var(--navy); }
.filter.is-active { background: var(--navy); border-color: var(--navy); color: var(--white); }

.mineral-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
	gap: 1px;
	margin: 0;
	padding: 1px;
	list-style: none;
}
.mineral {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 22px 18px 18px;
	background: var(--white);
	outline: 1px solid var(--line);
}
.mineral[hidden] { display: none; }
.mineral__name {
	font-size: 1.05rem;
	font-weight: 700;
	margin: 16px 0 2px;
}
.mineral__family { font-size: 0.88rem; color: var(--muted); margin: 0 0 14px; }
.mineral__enquire {
	margin-top: auto;
	font-family: var(--head);
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--wa-dark);
	text-decoration: none;
	padding: 6px 0;
}
.mineral__enquire:hover { color: var(--navy); text-decoration: underline; }

/* Specimen swatches. Shape follows how the mineral is usually traded:
   ore = rough lump, gem = cut stone, grain = powder or clay heap. */
.swatch {
	display: block;
	width: 76px;
	height: 64px;
	position: relative;
}
.swatch--light { filter: drop-shadow(0 0 1px #8A96A6) drop-shadow(0 0 0.5px #8A96A6); }
.swatch::before {
	content: "";
	position: absolute;
	inset: 0;
}
.swatch--ore::before {
	clip-path: polygon(10% 24%, 40% 4%, 74% 10%, 96% 38%, 90% 78%, 60% 98%, 22% 92%, 2% 60%);
	background:
		radial-gradient(circle at 30% 30%, var(--c2) 0 14%, transparent 15%),
		radial-gradient(circle at 70% 64%, var(--c2) 0 9%, transparent 10%),
		radial-gradient(circle at 58% 26%, rgba(255,255,255,0.18) 0 6%, transparent 7%),
		linear-gradient(145deg, var(--c2) -30%, var(--c1) 55%);
}
.swatch--gem::before {
	clip-path: polygon(24% 4%, 76% 4%, 98% 36%, 50% 98%, 2% 36%);
	background:
		linear-gradient(115deg, transparent 0 46%, rgba(255,255,255,0.28) 46% 54%, transparent 54%),
		linear-gradient(to bottom, var(--c2) 0 34%, transparent 34%),
		linear-gradient(60deg, var(--c1) 0 50%, color-mix(in srgb, var(--c1) 80%, #000) 50%);
}
.swatch--grain::before {
	top: 18%;
	border-radius: 50% 50% 6px 6px / 90% 90% 6px 6px;
	background:
		radial-gradient(circle, rgba(0,0,0,0.14) 0 1px, transparent 1.5px) 0 0 / 7px 7px,
		radial-gradient(circle, rgba(255,255,255,0.25) 0 1px, transparent 1.5px) 3px 4px / 9px 9px,
		linear-gradient(to bottom, var(--c2), var(--c1));
}

/* How to buy */
.how { padding: 88px 0; }
.steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px;
	margin: 32px 0 0;
	padding: 0;
	list-style: none;
	counter-reset: step;
}
.step {
	counter-increment: step;
	position: relative;
	padding-top: 56px;
	border-top: 3px solid var(--navy);
}
.step::before {
	content: counter(step);
	position: absolute;
	top: 14px; left: 0;
	font-family: var(--head);
	font-size: 1.5rem;
	font-weight: 800;
	color: var(--laterite);
}
.step__title { font-size: 1.15rem; }
.step p { color: var(--muted); max-width: 40ch; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* About */
.about { padding: 88px 0; background: var(--stone); }
.about__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
	gap: 16px 48px;
}
.about__body { font-size: 1.15rem; max-width: 62ch; }
@media (max-width: 760px) { .about__inner { grid-template-columns: 1fr; } }

/* Contact */
.contact { background: var(--navy); color: var(--white); padding: 88px 0; }
.contact__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 32px 48px;
	align-items: start;
}
.contact__lead { color: #D6DEE8; max-width: 44ch; font-size: 1.15rem; }
.contact__list { margin: 0; display: grid; gap: 22px; }
.contact__list dt {
	font-family: var(--head);
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--amber);
	margin-bottom: 2px;
}
.contact__list dd { margin: 0; font-size: 1.2rem; }
.contact__list a { color: var(--white); }
.contact__list a:hover { color: var(--amber); }
@media (max-width: 760px) { .contact__inner { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--navy-deep); color: #C9D3E0; padding: 56px 0 24px; font-size: 0.95rem; }
.site-footer__inner {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
	gap: 32px;
}
.site-footer__legal { margin-top: 18px; max-width: 56ch; }
.site-footer__heading { font-size: 0.95rem; color: var(--white); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #E3E9F0; }
.site-footer a:hover { color: var(--amber); }
.site-footer__base {
	margin-top: 40px;
	padding-top: 18px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 0.85rem;
}
.site-footer__base p { margin: 0; }
@media (max-width: 760px) { .site-footer__inner { grid-template-columns: 1fr; } }

/* Floating WhatsApp button */
.wa-float {
	position: fixed;
	right: 20px;
	bottom: calc(20px + env(safe-area-inset-bottom, 0px));
	z-index: 60;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 58px;
	padding: 0 20px 0 14px;
	border-radius: 999px;
	background: var(--wa);
	color: var(--white);
	font-family: var(--head);
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none;
	box-shadow: 0 6px 18px rgba(10, 30, 54, 0.28);
}
.wa-float:hover { background: var(--wa-dark); color: var(--white); }
@media (max-width: 560px) {
	.wa-float { width: 58px; padding: 0; justify-content: center; }
	.wa-float__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
}

/* Inner pages and posts */
.content { padding: 64px 24px 96px; max-width: 820px; }
.page-title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.entry { margin-bottom: 48px; }
.entry__title { font-size: 1.4rem; }
.entry__title a { text-decoration: none; }
.entry__meta { color: var(--muted); font-size: 0.92rem; }
.entry__content > * { max-width: 70ch; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.core__bar { animation: none; }
}
