/*
Theme Name: WPSzerviz Dashboard
Theme URI: https://wpszerviz.com
Author: WPSzerviz
Author URI: https://wpszerviz.com
Description: Minimál statikus téma a dashboard.wpszerviz.com kiszolgálására, a wpszerviz.com arculatában.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wpszerviz-dashboard
*/

:root {
	--primary: #ef4444;
	--primary-hover: #dc2626;
	--secondary: #1e3a8a;
	--bg: #f9fafb;
	--surface: #ffffff;
	--text: #374151;
	--heading: #111827;
	--muted: #6b7280;
	--border: rgba(17, 24, 39, 0.08);
	--shell: #1f2937;
	--radius: 0.5rem;
	--radius-lg: 1rem;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #111827;
		--surface: #1f2937;
		--text: #d1d5db;
		--heading: #f9fafb;
		--muted: #9ca3af;
		--border: rgba(255, 255, 255, 0.1);
		--shell: #111827;
	}
}

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

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: "Open Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 1rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
	font-family: Montserrat, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	color: var(--heading);
	line-height: 1.2;
	letter-spacing: -0.02em;
	margin: 0;
}

p {
	margin: 0;
}

a {
	color: inherit;
}

.wrap {
	width: 100%;
	max-width: 68rem;
	margin: 0 auto;
	padding: 0 1.25rem;
}

/* ---------- fejléc ---------- */

.site-header {
	background: var(--shell);
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-header .wrap {
	height: 4rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: Montserrat, ui-sans-serif, system-ui, sans-serif;
	font-weight: 700;
	font-size: 1.25rem;
	letter-spacing: -0.02em;
	color: #fff;
	text-decoration: none;
}

.brand:hover {
	color: #e5e7eb;
}

.brand .accent {
	color: var(--primary);
}

.brand svg {
	width: 1.5rem;
	height: 1.5rem;
	color: var(--primary);
	flex: none;
}

.header-link {
	font-size: 0.875rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
	padding: 0.5rem 0.75rem;
	border-radius: var(--radius);
	transition: background-color 0.15s ease, color 0.15s ease;
}

.header-link:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.1);
}

/* ---------- hero ---------- */

.hero {
	background: var(--shell);
	color: #fff;
	padding: 4rem 0 6rem;
	clip-path: polygon(0 0, 100% 0, 100% 85%, 50% 100%, 0 85%);
	text-align: center;
}

.eyebrow {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--primary);
	background: rgba(239, 68, 68, 0.12);
	border: 1px solid rgba(239, 68, 68, 0.3);
	border-radius: 9999px;
	padding: 0.3rem 0.85rem;
	margin-bottom: 1.25rem;
}

.hero h1 {
	color: #fff;
	font-size: clamp(1.85rem, 5vw, 3rem);
	font-weight: 700;
	max-width: 34ch;
	margin: 0 auto;
}

.hero h1 .accent {
	color: var(--primary);
}

.hero p {
	margin: 1.25rem auto 0;
	max-width: 52ch;
	color: rgba(255, 255, 255, 0.75);
	font-size: 1.0625rem;
}

/* ---------- gombok ---------- */

.actions {
	margin-top: 2rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: center;
}

.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: Montserrat, ui-sans-serif, system-ui, sans-serif;
	font-weight: 600;
	font-size: 0.9375rem;
	padding: 0.8rem 1.5rem;
	border-radius: var(--radius);
	text-decoration: none;
	transition: background-color 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
	transform: translateY(-1px);
}

.btn-primary {
	background: var(--primary);
	color: #fff;
}

.btn-primary:hover {
	background: var(--primary-hover);
}

.btn-ghost {
	border: 1px solid rgba(255, 255, 255, 0.25);
	color: #fff;
}

.btn-ghost:hover {
	border-color: rgba(255, 255, 255, 0.5);
	background: rgba(255, 255, 255, 0.08);
}

.btn svg {
	width: 1.1em;
	height: 1.1em;
	flex: none;
}

/* ---------- kártyák ---------- */

.section {
	padding: 3.5rem 0;
}

.section-head {
	text-align: center;
	max-width: 44rem;
	margin: 0 auto 2.5rem;
}

.section-head h2 {
	font-size: clamp(1.5rem, 3.5vw, 2rem);
	font-weight: 700;
}

.section-head p {
	margin-top: 0.75rem;
	color: var(--muted);
}

.cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
	gap: 1.25rem;
}

.card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 1.5rem;
}

.card .icon {
	width: 2.5rem;
	height: 2.5rem;
	display: grid;
	place-items: center;
	border-radius: var(--radius);
	background: rgba(239, 68, 68, 0.1);
	color: var(--primary);
	margin-bottom: 1rem;
}

.card .icon svg {
	width: 1.35rem;
	height: 1.35rem;
}

.card h3 {
	font-size: 1.0625rem;
	font-weight: 600;
	margin-bottom: 0.4rem;
}

.card p {
	font-size: 0.9375rem;
	color: var(--muted);
}

/* ---------- záró CTA ---------- */

.cta {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 2.5rem 1.75rem;
	text-align: center;
}

.cta h2 {
	font-size: clamp(1.35rem, 3vw, 1.75rem);
	font-weight: 700;
}

.cta p {
	margin: 0.75rem auto 0;
	max-width: 46ch;
	color: var(--muted);
}

.cta .actions {
	margin-top: 1.75rem;
}

.cta .btn-ghost {
	border-color: var(--border);
	color: var(--heading);
}

.cta .btn-ghost:hover {
	border-color: var(--muted);
	background: rgba(127, 127, 127, 0.08);
}

/* ---------- lábléc ---------- */

.site-footer {
	margin-top: 1rem;
	padding: 2rem 0 2.5rem;
	border-top: 1px solid var(--border);
	font-size: 0.875rem;
	color: var(--muted);
}

.site-footer .wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.5rem;
	align-items: center;
	justify-content: space-between;
}

.site-footer a {
	color: var(--muted);
	text-decoration: none;
	border-bottom: 1px solid transparent;
}

.site-footer a:hover {
	color: var(--primary);
	border-bottom-color: currentColor;
}

@media (max-width: 40rem) {
	.hero {
		padding: 3rem 0 4.5rem;
		clip-path: polygon(0 0, 100% 0, 100% 92%, 50% 100%, 0 92%);
	}

	.header-link {
		display: none;
	}
}
