/*
Theme Name: DataRecoverHub
Theme URI: https://example.com/
Author: Custom Build
Description: Custom WordPress theme replicating the DataRecoverHub homepage layout — a data recovery guides and software review site.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: datarecoverhub
*/

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
body {
	margin: 0;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	color: #1a2233;
	background: #ffffff;
	line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; }
button, input { font-family: inherit; }
.container {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 24px;
}

:root {
	--navy: #0d2247;
	--navy-dark: #0a1c3d;
	--blue: #2f6fed;
	--blue-dark: #1d4fc4;
	--ink: #16233f;
	--muted: #5b6a86;
	--border: #e6e9f0;
	--bg-soft: #f5f7fb;
	--green: #1fa855;
	--red: #e3403a;
}

/* ---------- Header ---------- */
.site-header {
	border-bottom: 1px solid var(--border);
	padding: 14px 0;
}
.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}
.site-branding {
	display: flex;
	align-items: center;
	gap: 10px;
}
.site-branding .logo-mark {
	width: 38px;
	height: 38px;
	flex-shrink: 0;
}
.site-branding .logo-text {
	font-size: 20px;
	font-weight: 800;
	color: var(--navy);
	line-height: 1.1;
}
.site-branding .logo-text span { color: var(--blue); }
.site-branding .tagline {
	font-size: 11px;
	color: var(--muted);
	margin-top: 2px;
}
.main-navigation ul {
	display: flex;
	gap: 28px;
}
.main-navigation a {
	font-size: 14.5px;
	font-weight: 600;
	color: var(--ink);
}
.main-navigation li.current-menu-item a,
.main-navigation a:hover { color: var(--blue); }
.header-search-btn {
	width: 40px;
	height: 40px;
	border-radius: 8px;
	background: var(--blue);
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	flex-shrink: 0;
}
.header-search-btn svg { width: 18px; height: 18px; stroke: #fff; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
	background: var(--navy);
	color: #fff;
	padding: 56px 0 64px;
}
.hero .container {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 40px;
	align-items: center;
}
.hero-eyebrow {
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: #8fb2ff;
	margin-bottom: 14px;
}
.hero h1 {
	font-size: 44px;
	font-weight: 800;
	line-height: 1.15;
	margin-bottom: 18px;
}
.hero h1 .accent { color: #5b9bff; }
.hero p {
	font-size: 16px;
	color: #c3cee5;
	max-width: 480px;
	margin-bottom: 26px;
}
.hero-search {
	display: flex;
	gap: 10px;
	background: #fff;
	padding: 6px;
	border-radius: 8px;
	max-width: 560px;
	margin-bottom: 20px;
}
.hero-search input {
	flex: 1;
	border: none;
	outline: none;
	padding: 10px 12px;
	font-size: 14px;
	color: var(--ink);
	background: transparent;
}
.hero-search button {
	background: var(--blue);
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 0 24px;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
}
.popular-searches {
	font-size: 13px;
	color: #b7c3dd;
}
.popular-searches strong { font-weight: 700; color: #dbe4f7; margin-right: 4px; }
.popular-searches .tags {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}
.popular-searches .tags a {
	background: rgba(255,255,255,0.08);
	border: 1px solid rgba(255,255,255,0.15);
	padding: 6px 14px;
	border-radius: 999px;
	font-size: 12.5px;
	color: #dbe4f7;
}
.hero-illustration { position: relative; }
.hero-illustration svg { width: 100%; height: auto; }
.hero-caption {
	position: absolute;
	top: 8%;
	right: 2%;
	font-size: 13px;
	font-weight: 600;
	color: #dbe4f7;
	text-align: right;
	line-height: 1.4;
}

/* ---------- Section headings ---------- */
.section { padding: 56px 0; }
.section-heading { text-align: center; margin-bottom: 34px; }
.section-heading h2 {
	font-size: 28px;
	font-weight: 800;
	color: var(--navy);
	margin-bottom: 8px;
}
.section-heading p { color: var(--muted); font-size: 14.5px; }
.section-heading p strong { color: var(--ink); }

/* ---------- Guide categories grid ---------- */
.guide-grid {
	display: grid;
	grid-template-columns: repeat(8, 1fr);
	gap: 16px;
}
.guide-card {
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 20px 16px;
	text-align: left;
}
.guide-card .icon-box {
	width: 46px;
	height: 46px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 14px;
}
.guide-card .icon-box svg { width: 24px; height: 24px; }
.guide-card h3 {
	font-size: 15px;
	font-weight: 700;
	color: var(--ink);
	margin-bottom: 6px;
}
.guide-card p {
	font-size: 12.5px;
	color: var(--muted);
	margin: 0 0 14px;
	min-height: 32px;
}
.guide-card .go-link {
	width: 28px;
	height: 28px;
	border: 1px solid var(--blue);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}
.guide-card .go-link svg { width: 13px; height: 13px; stroke: var(--blue); }

/* ---------- Problems + Help split section ---------- */
.split-section {
	background: var(--bg-soft);
}
.split-grid {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: 24px;
}
.problems-panel, .help-panel {
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 28px;
}
.problems-panel h3 {
	font-size: 20px;
	font-weight: 800;
	color: var(--navy);
	margin-bottom: 6px;
}
.problems-panel > p { color: var(--muted); font-size: 14px; margin: 0 0 20px; }
.problems-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
}
.problem-card {
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 20px 12px;
	text-align: center;
}
.problem-card .icon-box {
	width: 44px;
	height: 44px;
	margin: 0 auto 12px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--bg-soft);
}
.problem-card .icon-box svg { width: 20px; height: 20px; }
.problem-card span { font-size: 13px; font-weight: 700; color: var(--ink); }

.help-panel {
	background: #eaf1ff;
	display: flex;
	flex-direction: column;
}
.help-eyebrow { color: var(--blue); font-weight: 700; font-size: 12px; letter-spacing: 0.04em; margin-bottom: 6px; }
.help-panel h3 { font-size: 20px; font-weight: 800; color: var(--navy); margin-bottom: 16px; }
.help-list { margin-bottom: 20px; }
.help-list li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14px;
	color: var(--ink);
	margin-bottom: 10px;
}
.help-list li svg { width: 16px; height: 16px; stroke: var(--green); flex-shrink: 0; margin-top: 3px; }
.help-illustration { margin: 4px 0 20px; text-align: center; }
.help-illustration svg { width: 140px; height: auto; margin: 0 auto; }
.help-caption { text-align: center; font-size: 13px; font-weight: 700; color: var(--navy); line-height: 1.5; margin-bottom: 18px; }
.btn-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: var(--blue);
	color: #fff;
	font-weight: 700;
	font-size: 14px;
	padding: 13px 20px;
	border-radius: 8px;
	border: none;
	cursor: pointer;
	width: 100%;
}
.btn-primary svg { width: 14px; height: 14px; stroke: #fff; }

/* ---------- Featured Articles ---------- */
.section-header-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 24px;
}
.section-header-row h2 { font-size: 24px; font-weight: 800; color: var(--navy); }
.view-all { font-size: 13.5px; font-weight: 700; color: var(--blue); white-space: nowrap; }
.articles-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 18px;
}
.article-card {
	border: 1px solid var(--border);
	border-radius: 10px;
	overflow: hidden;
}
.article-thumb {
	position: relative;
	height: 110px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.article-thumb .badge {
	position: absolute;
	top: 10px;
	left: 10px;
	background: rgba(13,34,71,0.85);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.03em;
	padding: 4px 9px;
	border-radius: 4px;
	text-transform: uppercase;
}
.article-body { padding: 14px 14px 16px; }
.article-body h3 {
	font-size: 14.5px;
	font-weight: 700;
	color: var(--ink);
	margin-bottom: 8px;
	line-height: 1.35;
}
.article-body p {
	font-size: 12.5px;
	color: var(--muted);
	margin: 0 0 12px;
	line-height: 1.5;
}
.article-date { font-size: 11.5px; color: #93a0b8; }

/* ---------- Software section ---------- */
.software-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
}
.software-card {
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 20px;
	display: flex;
	gap: 14px;
	align-items: flex-start;
}
.software-card .icon-box {
	width: 46px;
	height: 46px;
	border-radius: 8px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.software-card .icon-box svg { width: 26px; height: 26px; }
.software-card h3 { font-size: 14.5px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.software-card p { font-size: 12px; color: var(--muted); margin: 0 0 12px; line-height: 1.45; }
.btn-secondary {
	display: inline-block;
	background: var(--blue);
	color: #fff;
	font-size: 12.5px;
	font-weight: 700;
	padding: 8px 16px;
	border-radius: 6px;
}

/* ---------- Footer ---------- */
.site-footer {
	background: var(--navy-dark);
	color: #b7c3dd;
	padding: 52px 0 0;
}
.footer-top {
	display: grid;
	grid-template-columns: 1.3fr 1fr 1fr 1fr 1.2fr;
	gap: 24px;
	padding-bottom: 40px;
	border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .site-branding .logo-text { color: #fff; }
.footer-brand .tagline { color: #8593b0; margin-top: 6px; margin-bottom: 0; }
.footer-col h4 {
	font-size: 14px;
	font-weight: 700;
	color: #fff;
	margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 11px; font-size: 13.5px; }
.footer-col ul li a:hover { color: #fff; }
.footer-newsletter p { font-size: 13.5px; margin: 0 0 14px; color: #b7c3dd; }
.newsletter-form { display: flex; gap: 8px; margin-bottom: 18px; }
.newsletter-form input {
	flex: 1;
	border: 1px solid rgba(255,255,255,0.15);
	background: rgba(255,255,255,0.06);
	border-radius: 6px;
	padding: 10px 12px;
	font-size: 13px;
	color: #fff;
	outline: none;
}
.newsletter-form input::placeholder { color: #8593b0; }
.newsletter-form button {
	background: var(--blue);
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 0 16px;
	font-weight: 700;
	font-size: 13px;
	cursor: pointer;
	white-space: nowrap;
}
.social-icons { display: flex; gap: 10px; }
.social-icons a {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: rgba(255,255,255,0.08);
	display: flex;
	align-items: center;
	justify-content: center;
}
.social-icons svg { width: 15px; height: 15px; fill: #fff; }
.footer-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 0;
	font-size: 12.5px;
	color: #8593b0;
}
.footer-bottom .legal-links { display: flex; gap: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
	.guide-grid { grid-template-columns: repeat(4, 1fr); }
	.articles-grid { grid-template-columns: repeat(3, 1fr); }
	.software-grid { grid-template-columns: repeat(2, 1fr); }
	.footer-top { grid-template-columns: 1fr 1fr; row-gap: 32px; }
}
@media (max-width: 860px) {
	.hero .container { grid-template-columns: 1fr; }
	.hero-illustration { order: -1; max-width: 360px; margin: 0 auto; }
	.split-grid { grid-template-columns: 1fr; }
	.main-navigation { display: none; }
	.nav-toggle {
		display: flex;
		width: 40px; height: 40px;
		border: 1px solid var(--border);
		border-radius: 8px;
		align-items: center;
		justify-content: center;
		background: none;
		cursor: pointer;
	}
}
@media (max-width: 600px) {
	.guide-grid { grid-template-columns: repeat(2, 1fr); }
	.problems-grid { grid-template-columns: repeat(2, 1fr); }
	.articles-grid { grid-template-columns: 1fr 1fr; }
	.software-grid { grid-template-columns: 1fr; }
	.footer-top { grid-template-columns: 1fr; }
	.hero h1 { font-size: 32px; }
}
