/*
Theme Name: FBM Movement
Theme Description: Lightweight, Elementor-free theme for the Free Balochistan Movement. Built on native WordPress menus, customizer and block-free templates.
Author: FBM Web
Version: 1.0.0
Text Domain: fbm
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
*/

:root {
	--ink: #0e1512;
	--ink-soft: #3b4540;
	--green: #0f4a33;
	--green-deep: #08291c;
	--red: #b42a22;
	--paper: #f6f2ea;
	--paper-2: #ece6d8;
	--white: #ffffff;
	--line: rgba(14, 21, 18, .14);
	--radius: 14px;
	--max: 1180px;
	--shadow: 0 1px 2px rgba(0,0,0,.06), 0 10px 30px -12px rgba(8,41,28,.25);
	--font-head: "Fraunces", Georgia, serif;
	--font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

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

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.65;
	color: var(--ink);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
	font-family: var(--font-head);
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: -.01em;
	margin: 0 0 .5em;
	color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.skip-link {
	position: absolute; left: -9999px; top: 0;
	background: var(--ink); color: var(--white); padding: .6rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section--dark { background: var(--green-deep); color: var(--paper); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--alt { background: var(--paper-2); }
.eyebrow {
	display: inline-flex; align-items: center; gap: .6rem;
	font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
	color: var(--red); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.section--dark .eyebrow { color: #f0b7a9; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; gap: .5rem;
	padding: .9rem 1.5rem; border-radius: 999px;
	font: 700 .95rem/1 var(--font-body); letter-spacing: .01em;
	text-decoration: none; border: 2px solid transparent; cursor: pointer;
	transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--red); color: var(--white); }
.btn--primary:hover { background: #8f1f19; color: var(--white); }
.btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn--ghost:hover { background: var(--white); color: var(--ink); }
.btn--light { background: var(--white); color: var(--green-deep); }
.btn--light:hover { background: var(--paper); color: var(--green-deep); }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(246, 242, 234, .92);
	backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--line);
}
.site-header__inner {
	display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
	min-height: 76px;
}
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); }
.brand img { max-height: 48px; width: auto; }
.brand__name { font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; line-height: 1.1; }

.nav-toggle {
	display: none; background: none; border: 0; padding: .5rem; cursor: pointer; color: var(--ink);
}
.nav-toggle span {
	display: block; width: 24px; height: 2px; background: currentColor; margin: 5px 0;
	transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.primary-nav { display: flex; align-items: center; gap: 1.5rem; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.6rem; align-items: center; }
.primary-nav a {
	color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem;
	position: relative; padding: .4rem 0;
}
.primary-nav a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
	background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.primary-nav a:hover::after,
.primary-nav .current-menu-item > a::after { transform: scaleX(1); }
.primary-nav .sub-menu {
	display: none; position: absolute; background: var(--white); border-radius: var(--radius);
	box-shadow: var(--shadow); padding: .75rem; min-width: 220px; flex-direction: column; gap: .25rem;
}
.primary-nav li { position: relative; }
.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu { display: flex; }
.primary-nav .sub-menu li { width: 100%; }
.primary-nav .sub-menu a { display: block; padding: .5rem .75rem; border-radius: 8px; }
.primary-nav .sub-menu a::after { display: none; }
.primary-nav .sub-menu a:hover { background: var(--paper); }
.primary-nav .sub-menu { top: 100%; left: -.75rem; }

/* ---------- Hero ---------- */
.hero {
	position: relative; overflow: hidden; color: var(--paper);
	background:
		radial-gradient(1200px 500px at 85% -10%, rgba(180,42,34,.35), transparent 60%),
		linear-gradient(160deg, var(--green-deep) 0%, var(--green) 60%, #0b3324 100%);
	padding: clamp(5rem, 12vw, 9rem) 0 clamp(4.5rem, 10vw, 7rem);
}
.hero::after {
	content: ""; position: absolute; inset: auto -10% -40% auto; width: 60vw; height: 60vw;
	border-radius: 50%; border: 1px solid rgba(246,242,234,.12); pointer-events: none;
}
.hero h1 { color: var(--white); max-width: 16ch; }
.hero h1 em { font-style: italic; color: #f4b9ad; }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 56ch; color: rgba(246,242,234,.85); margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; }
.hero .eyebrow { color: #f4b9ad; }

/* ---------- Stripe (flag-inspired accent) ---------- */
.stripe { display: flex; height: 6px; }
.stripe span { flex: 1; }
.stripe span:nth-child(1) { background: var(--green); }
.stripe span:nth-child(2) { background: var(--red); }
.stripe span:nth-child(3) { background: var(--white); }
.stripe span:nth-child(4) { background: var(--ink); }

/* ---------- Campaign banner ---------- */
.campaign {
	background: var(--red); color: var(--white); padding: 1.25rem 0;
}
.campaign .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.campaign p { margin: 0; font-weight: 700; }
.campaign a { color: var(--white); }

/* ---------- Mission ---------- */
.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); grid-template-columns: 1fr; align-items: start; }
.lede { font-size: clamp(1.15rem, 2vw, 1.4rem); color: var(--ink-soft); line-height: 1.55; }

/* ---------- Pillars / cards ---------- */
.grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.card {
	background: var(--white); border-radius: var(--radius); padding: 2rem;
	box-shadow: var(--shadow); border: 1px solid var(--line); position: relative;
	transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); }
.card__num {
	font-family: var(--font-head); font-size: 2.6rem; font-weight: 600;
	color: var(--red); line-height: 1; margin-bottom: 1rem; display: block;
}
.card p { color: var(--ink-soft); margin: 0; }
.card a.stretched::after { content: ""; position: absolute; inset: 0; }

/* ---------- News ---------- */
.news-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.news-card__media { aspect-ratio: 16/9; background: var(--paper-2); overflow: hidden; }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.news-card:hover .news-card__media img { transform: scale(1.04); }
.news-card__body { padding: 1.5rem 1.75rem 1.75rem; display: flex; flex-direction: column; flex: 1; }
.news-card__meta { font-size: .8rem; font-weight: 700; color: var(--red); letter-spacing: .08em; text-transform: uppercase; margin-bottom: .5rem; }
.news-card h3 { font-size: 1.2rem; }
.news-card h3 a { color: inherit; text-decoration: none; }
.news-card h3 a:hover { color: var(--green); }
.news-card p { color: var(--ink-soft); font-size: .95rem; }
.news-card .more { margin-top: auto; font-weight: 700; text-decoration: none; color: var(--green); }

/* ---------- Branches ---------- */
.branches { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 0; }
.branches a {
	display: inline-block; padding: .65rem 1.1rem; border-radius: 999px;
	border: 1px solid rgba(246,242,234,.3); color: var(--paper); text-decoration: none; font-weight: 600;
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.branches a:hover { background: var(--paper); color: var(--green-deep); border-color: var(--paper); }

/* ---------- Join CTA ---------- */
.join {
	background: var(--ink); color: var(--paper); border-radius: 24px; padding: clamp(2.5rem, 6vw, 4.5rem);
	display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: center; position: relative; overflow: hidden;
}
.join h2 { color: var(--white); }
.join::before {
	content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px;
	border-radius: 50%; background: var(--red); opacity: .35;
}

/* ---------- Article / page ---------- */
.entry { max-width: 740px; margin-inline: auto; }
.entry-header { padding: clamp(3rem, 7vw, 5rem) 0 2rem; text-align: left; }
.entry-meta { color: var(--ink-soft); font-size: .9rem; margin-bottom: 1rem; }
.entry-thumb { border-radius: var(--radius); margin: 0 0 2.5rem; overflow: hidden; }
.entry-content > * + * { margin-top: 1.25em; }
.entry-content h2, .entry-content h3 { margin-top: 1.6em; }
.entry-content blockquote {
	border-left: 4px solid var(--red); margin: 2rem 0; padding: .25rem 0 .25rem 1.5rem;
	font-family: var(--font-head); font-size: 1.3rem; font-style: italic; color: var(--ink-soft);
}
.entry-content img { border-radius: 10px; }
.entry-content ul, .entry-content ol { padding-left: 1.4rem; }
.entry-content li + li { margin-top: .4rem; }
.wp-caption, .wp-block-image { margin: 0; }

.archive-list { display: grid; gap: 1.5rem; }
.pagination { margin-top: 3rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.pagination .page-numbers {
	padding: .55rem .95rem; border: 1px solid var(--line); border-radius: 999px;
	text-decoration: none; color: var(--ink); font-weight: 600; background: var(--white);
}
.pagination .current, .pagination .page-numbers:hover { background: var(--ink); color: var(--paper); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(246,242,234,.78); padding: 4rem 0 2rem; font-size: .95rem; }
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { color: #f4b9ad; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
.site-footer h3 { color: var(--white); font-size: 1rem; font-family: var(--font-body); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.socials { display: flex; gap: .6rem; margin-top: 1rem; flex-wrap: wrap; }
.socials a {
	width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
	border: 1px solid rgba(246,242,234,.25); transition: background .2s ease;
}
.socials a:hover { background: var(--paper); color: var(--ink); }
.socials svg { width: 18px; height: 18px; fill: currentColor; }
.site-footer__bottom {
	margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(246,242,234,.12);
	font-size: .85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (min-width: 700px) {
	.grid--3 { grid-template-columns: repeat(3, 1fr); }
	.grid--2 { grid-template-columns: repeat(2, 1fr); }
	.footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
@media (min-width: 960px) {
	.split { grid-template-columns: 1fr 1fr; }
	.join { grid-template-columns: 1.4fr 1fr; }
}
@media (max-width: 960px) {
	.nav-toggle { display: block; }
	.primary-nav {
		position: absolute; top: 100%; left: 0; right: 0; background: var(--paper);
		border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch;
		padding: 1rem 1.25rem 1.5rem; gap: 0; display: none; max-height: calc(100vh - 76px); overflow-y: auto;
	}
	.primary-nav.is-open { display: flex; }
	.primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
	.primary-nav li a { display: block; padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
	.primary-nav a::after { display: none; }
	.primary-nav .sub-menu { display: flex; position: static; box-shadow: none; padding: 0 0 0 1rem; min-width: 0; background: none; }
	.primary-nav .sub-menu a { border: 0; font-size: .98rem; color: var(--ink-soft); }
	.primary-nav .btn { margin-top: 1rem; justify-content: center; }
	.site-header { position: sticky; }
}
@media (max-width: 480px) {
	body { font-size: 16px; }
	.btn { width: 100%; justify-content: center; }
	.hero__actions .btn { width: 100%; }
}
@media (min-width: 961px) {
	.primary-nav .btn { padding: .65rem 1.1rem; font-size: .88rem; }
}
