/*
Theme Name: Article 209
Theme URI: https://article209.org.pk
Author: Reporting Resistance
Description: A judicial-accountability watchdog theme for Article209.org.pk — deep navy and gold, photo hero, pill buttons, structured footer. Edit everything from Appearance > Customize.
Version: 1.3.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: article209
*/

/* =====================================================
   TOKENS — deep navy + gold, justice/authority palette
   ===================================================== */
:root{
	--navy:       #0F2440;   /* nav bar, footer, dark UI */
	--navy-2:     #0A1A30;   /* darker navy for hover/footer-bottom */
	--blue:       #B8892B;   /* gold accent — top bar, links, CTAs */
	--blue-dark:  #96701F;   /* solid pill button (dark gold, hover) */
	--blue-light: #FAF3E4;   /* very light gold/cream section tint */
	--ink:        #1F2937;   /* body copy */
	--stone:      #5B6472;   /* muted text */
	--footer-bg:  #0D1E36;   /* footer background (deep navy) */
	--white:      #FFFFFF;
	--line:       #E3E8EE;

	--font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
	--font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

	--container: 1240px;
	--radius-pill: 999px;
	--radius: 8px;
}

/* =====================================================
   RESET
   ===================================================== */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
	margin: 0;
	background: var(--white);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; display: block; }
a{ color: var(--blue); text-decoration: none; }
a:hover{ text-decoration: underline; }
ul{ margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4{ font-family: var(--font-display); color: var(--navy); margin: 0 0 .5em; line-height: 1.2; font-weight: 800; }
p{ margin: 0 0 1em; }
button, input, textarea{ font-family: inherit; font-size: inherit; }
:focus-visible{ outline: 3px solid var(--blue); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce){
	*{ animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

.container{ max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.eyebrow{
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--blue);
}

/* Pill buttons — icj.org's signature UI element */
.btn{
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 13px 26px;
	border-radius: var(--radius-pill);
	font-weight: 700;
	font-size: 15px;
	border: 2px solid transparent;
	cursor: pointer;
	transition: background .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
}
.btn:hover{ text-decoration: none; transform: translateY(-1px); }
.btn-primary{ background: var(--blue); color: #fff; }
.btn-primary:hover{ background: var(--blue-dark); }
.btn-dark{ background: var(--navy); color: #fff; }
.btn-dark:hover{ background: var(--navy-2); }
.btn-outline{ background: transparent; color: #fff; border-color: rgba(255,255,255,.8); }
.btn-outline:hover{ background: rgba(255,255,255,.15); border-color: #fff; }
.btn-outline-navy{ background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline-navy:hover{ background: var(--navy); color: #fff; }

/* =====================================================
   TOP SUPPORT BAR (icj.org "Donate to the ICJ" bar)
   ===================================================== */
.top-bar-row{
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}
.top-bar-brand{
	flex: 1 1 320px;
	padding: 18px 24px;
	display: flex;
	align-items: center;
	gap: 14px;
}
.top-bar-promo{
	flex: 1 1 480px;
	background: var(--blue);
	color: #fff;
	padding: 20px 32px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}
.top-bar-promo h2{ color:#fff; font-size: 20px; margin:0 0 4px; }
.top-bar-promo p{ color: rgba(255,255,255,.9); margin:0; font-size: 14px; max-width: 46ch; }
.top-bar-promo .btn{ white-space: nowrap; flex-shrink:0; }

/* =====================================================
   BRANDING
   ===================================================== */
.site-branding{ display:flex; align-items:center; gap:12px; }
.site-title{ font-size: 22px; font-weight: 800; color: var(--navy); margin:0; letter-spacing:-.01em; }
.site-title a{ color: var(--navy); }
.site-title a:hover{ text-decoration:none; }
.site-tagline{ font-size: 12.5px; color: var(--stone); margin: 2px 0 0; max-width: 26ch; line-height:1.3; }

/* =====================================================
   MAIN NAV — solid navy bar
   ===================================================== */
.site-header{ background:#fff; border-bottom: 1px solid var(--line); position: sticky; top:0; z-index:50; }
.main-nav{ background: var(--navy); }
.main-nav-inner{ display:flex; align-items:center; justify-content:space-between; gap: 24px; padding: 0 24px; }
.primary-nav ul{ display:flex; align-items:center; }
.primary-nav a{
	color:#fff;
	font-weight: 600;
	font-size: 14.5px;
	padding: 18px 16px;
	display:block;
}
.primary-nav a:hover{ background: rgba(255,255,255,.08); text-decoration:none; }
.nav-actions{ display:flex; align-items:center; gap: 14px; padding: 10px 0; }
.nav-actions .btn{ padding: 9px 20px; font-size: 13.5px; }
.search-toggle{
	background:none; border:none; color:#fff; width: 34px; height:34px;
	display:flex; align-items:center; justify-content:center; cursor:pointer;
}
.search-toggle svg{ width:18px; height:18px; fill:#fff; }
.nav-toggle{ display:none; background:none; border:1px solid rgba(255,255,255,.5); padding:8px 10px; border-radius:4px; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
	content:""; display:block; width:20px; height:2px; background:#fff; position:relative;
}
.nav-toggle span::before{ position:absolute; top:-6px; }
.nav-toggle span::after{ position:absolute; top:6px; }

/* =====================================================
   HERO — full-bleed photo with overlay text box
   ===================================================== */
.hero{
	position: relative;
	min-height: 560px;
	display: flex;
	align-items: flex-end;
	background: linear-gradient(135deg, var(--navy) 0%, #1B3A63 100%);
	background-size: cover;
	background-position: center;
	overflow: hidden;
}
.hero.has-image{ background-blend-mode: normal; }
.hero::after{
	content:"";
	position:absolute; inset:0;
	background: linear-gradient(0deg, rgba(10,22,41,.35) 0%, rgba(10,22,41,.05) 45%);
	pointer-events:none;
}
.hero-inner{ position:relative; z-index:1; width:100%; padding: 64px 24px 72px; }
.hero-box{
	background: rgba(15,42,74,.88);
	color:#fff;
	max-width: 780px;
	padding: 36px 40px;
}
.hero-box .eyebrow{ color: #E8C77A; }
.hero-box h1{ color:#fff; font-size: clamp(30px, 4.2vw, 48px); margin: 12px 0 18px; max-width: 20ch; }
.hero-box p{ color: rgba(255,255,255,.92); font-size: 17px; max-width: 60ch; margin-bottom: 26px; }
.hero-actions{ display:flex; gap: 12px; flex-wrap:wrap; }

/* =====================================================
   PILLARS — clean white cards, icon circle
   ===================================================== */
.pillars{ padding: 72px 0; background: var(--white); }
.pillars-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap: 32px; }
.pillar{ text-align:left; }
.pillar-icon{
	width: 56px; height:56px; border-radius:50%;
	background: var(--blue-light);
	display:flex; align-items:center; justify-content:center;
	margin-bottom: 18px;
}
.pillar-icon svg{ width:26px; height:26px; fill: var(--blue); }
.pillar h3{ font-size: 20px; margin-bottom: 8px; }
.pillar p{ color: var(--stone); margin:0; font-size:15px; }

/* =====================================================
   SECTIONS / REPORTS GRID
   ===================================================== */
.section{ padding: 76px 0; }
.section-alt{ background: var(--blue-light); }
.section-head{
	display:flex; justify-content:space-between; align-items:flex-end; gap:24px;
	margin-bottom: 36px; flex-wrap: wrap;
}
.section-head h2{ font-size: clamp(24px,3vw,32px); margin:6px 0 0; }
.section-head .view-all{ font-weight:700; font-size:14px; white-space:nowrap; }

.reports-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.report-card{
	background:#fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	display:flex; flex-direction:column;
	transition: box-shadow .15s ease, transform .15s ease;
}
.report-card:hover{ box-shadow: 0 12px 28px rgba(20,53,94,.12); transform: translateY(-3px); }
.report-card .thumb{
	aspect-ratio: 16/10;
	background: var(--navy);
	background-size: cover; background-position:center;
	position:relative;
}
.report-card .docket{
	position:absolute; top:12px; left:12px;
	background: rgba(255,255,255,.95); color: var(--navy);
	font-size: 11px; font-weight:700; letter-spacing:.03em;
	padding: 4px 9px; border-radius: var(--radius-pill);
}
.report-card .body{ padding: 22px; display:flex; flex-direction:column; flex:1; }
.report-card .cat{ font-size: 12px; font-weight:700; color: var(--blue); text-transform:uppercase; letter-spacing:.03em; margin-bottom:8px; }
.report-card h3{ font-size: 18px; margin-bottom: 8px; }
.report-card h3 a{ color: var(--navy); }
.report-card h3 a:hover{ text-decoration:none; color: var(--blue); }
.report-card p{ color: var(--stone); font-size:14.5px; flex:1; }
.report-card .meta{ font-size:12.5px; color: var(--stone); border-top:1px solid var(--line); padding-top:12px; margin-top:8px; }

/* =====================================================
   CALLOUT BAR (icj.org "Reporting unethical conduct" bar)
   ===================================================== */
.callout-bar{ background: var(--blue); color:#fff; }
.callout-inner{
	display:flex; align-items:center; gap:32px; flex-wrap:wrap; justify-content:space-between;
	padding: 34px 0;
}
.callout-inner h3{ color:#fff; font-size:22px; margin:0 0 6px; max-width: 26ch; }
.callout-inner p{ color: rgba(255,255,255,.9); margin:0; max-width: 52ch; font-size:14.5px; }
.callout-text{ display:flex; align-items:center; gap:24px; flex-wrap:wrap; border-right: 1px solid rgba(255,255,255,.3); padding-right:32px; flex:1 1 420px; }
.callout-text > div:first-child{ border-right:1px solid rgba(255,255,255,.35); padding-right:24px; }

/* =====================================================
   FOOTER — matches icj.org structure
   ===================================================== */
.site-footer{ background: var(--footer-bg); color: rgba(255,255,255,.8); }
.footer-top{ padding: 56px 0 40px; }
.footer-grid{ display:grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 48px; }
.footer-col h4{ color: var(--blue); font-size:17px; margin-bottom:18px; font-weight:800; }
.footer-col p{ font-size: 14.5px; color: rgba(255,255,255,.75); }
.footer-col a{ color: rgba(255,255,255,.85); }
.footer-col a:hover{ color:#fff; }

.newsletter-form .field{ margin-bottom: 14px; }
.newsletter-form input{
	width:100%;
	background: transparent;
	border: none;
	border-bottom: 1px solid rgba(255,255,255,.4);
	color:#fff;
	padding: 8px 2px;
}
.newsletter-form input::placeholder{ color: rgba(255,255,255,.55); }
.newsletter-form .btn{ margin-top: 6px; }

.social-row{ display:flex; gap:12px; margin-top:16px; }
.social-row a{
	width:32px; height:32px; border-radius:50%; border:1px solid rgba(255,255,255,.35);
	display:flex; align-items:center; justify-content:center;
}
.social-row a:hover{ background: rgba(255,255,255,.1); border-color:#fff; }
.social-row svg{ width:15px; height:15px; fill:#fff; }

.footer-bottom{
	background: var(--navy-2);
	padding: 16px 0;
	font-size: 13px;
	color: rgba(255,255,255,.6);
}
.footer-bottom .container{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px; }
.footer-bottom a{ color: rgba(255,255,255,.75); }
.footer-bottom-menu{ display:flex; gap:18px; }

/* =====================================================
   GENERIC PAGE / SINGLE POST
   ===================================================== */
.page-header-band{ background: var(--blue-light); border-bottom: 1px solid var(--line); padding: 48px 0 36px; }
.page-header-band h1{ font-size: clamp(26px,4vw,38px); margin: 8px 0 0; }
.entry-content{ max-width: 760px; margin:0 auto; padding: 52px 24px; font-size:17px; }
.entry-content h2{ font-size: 25px; margin-top:1.6em; }
.entry-content h3{ font-size: 20px; margin-top:1.4em; }
.entry-content img{ margin: 24px 0; border-radius: var(--radius); }
.entry-content blockquote{ border-left: 3px solid var(--blue); margin: 24px 0; padding: 4px 0 4px 20px; color: var(--stone); font-style: italic; }
.entry-meta{ font-size:13px; color: var(--stone); text-transform:uppercase; letter-spacing:.03em; font-weight:600; }
.single-narrow{ max-width: 760px; margin:0 auto; padding: 0 24px; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 960px){
	.pillars-grid, .reports-grid{ grid-template-columns: 1fr 1fr; }
	.footer-grid{ grid-template-columns: 1fr 1fr; }
	.hero-box{ max-width: 100%; }
}
@media (max-width: 680px){
	.primary-nav{ display:none; position:absolute; top:100%; left:0; right:0; background:var(--navy); }
	.primary-nav.is-open{ display:block; }
	.primary-nav ul{ flex-direction:column; }
	.nav-toggle{ display:block; }
	.top-bar-promo{ justify-content:flex-start; }
	.pillars-grid, .reports-grid, .footer-grid{ grid-template-columns: 1fr; }
	.callout-text{ border-right:none; padding-right:0; }
	.callout-text > div:first-child{ border-right:none; padding-right:0; }
	.hero{ min-height: 460px; }
	.hero-box{ padding: 26px 24px; }
}
