/* =====================================================================
 * WorkSmarter — Base
 * Design tokens, reset, typography, layout, buttons, header, footer.
 * ===================================================================== */

:root {
	/* Palette */
	--ws-ink: #0b1b33;
	--ws-ink-2: #122544;
	--ws-body: #40506e;
	--ws-muted: #6b7a99;
	--ws-line: #e7ecf5;
	--ws-line-2: #d8e0ef;
	--ws-bg: #ffffff;
	--ws-bg-alt: #f5f8fd;
	--ws-bg-dark: #0b1b33;

	/* Brand + zone accents (--accent is overridden per zone) */
	--accent: #2563eb;
	--accent-strong: #1d4ed8;
	--accent-ink: #ffffff;
	--accent-soft: #eaf1fe;
	--accent-ring: rgba(37, 99, 235, 0.35);
	--accent-grad: linear-gradient(135deg, #3b82f6, #1d4ed8);

	/* Type */
	--ws-font-head: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--ws-font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

	/* Radius + elevation */
	--ws-radius: 16px;
	--ws-radius-sm: 10px;
	--ws-radius-lg: 28px;
	--ws-radius-pill: 999px;
	--ws-shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.1);
	--ws-shadow: 0 12px 32px -14px rgba(16, 24, 40, 0.22);
	--ws-shadow-lg: 0 34px 70px -24px rgba(16, 24, 40, 0.3);
	--ws-ring: 0 0 0 4px var(--accent-ring);

	/* Layout */
	--ws-maxw: 1200px;
	--ws-gutter: clamp(18px, 4vw, 40px);
	--ws-section-y: clamp(56px, 7vw, 104px);
}

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 90px;
}

body,
h1, h2, h3, h4, h5, h6, p, figure, ul, ol {
	margin: 0;
}

ul, ol {
	padding: 0;
	list-style: none;
}

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

a {
	color: var(--accent);
	text-decoration: none;
	transition: color 0.15s ease;
}

a:hover {
	color: var(--accent-strong);
}

button {
	font: inherit;
}

/* ---------------- Base elements ---------------- */
body {
	font-family: var(--ws-font-body);
	color: var(--ws-body);
	background: var(--ws-bg);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--ws-font-head);
	color: var(--ws-ink);
	line-height: 1.12;
	letter-spacing: -0.02em;
	font-weight: 800;
}

h1 { font-size: clamp(2.15rem, 1.4rem + 3.4vw, 3.7rem); }
h2 { font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 1.05rem + 1vw, 1.5rem); letter-spacing: -0.01em; }
h4 { font-size: 1.12rem; font-weight: 700; }

p { margin-bottom: 1.1em; }
strong, b { color: var(--ws-ink); font-weight: 700; }

::selection {
	background: var(--accent);
	color: #fff;
}

/* ---------------- Layout ---------------- */
.ws-container {
	width: 100%;
	max-width: var(--ws-maxw);
	margin-inline: auto;
	padding-inline: var(--ws-gutter);
}

.ws-container--narrow {
	max-width: 820px;
}

.ws-section {
	padding-block: var(--ws-section-y);
}

.ws-section--tight {
	padding-block: clamp(40px, 5vw, 72px);
}

.ws-section--alt {
	background: var(--ws-bg-alt);
}

.ws-section--dark {
	background: var(--ws-bg-dark);
	color: rgba(255, 255, 255, 0.86);
}

.ws-section--dark h1,
.ws-section--dark h2,
.ws-section--dark h3,
.ws-section--dark h4 {
	color: #fff;
}

.ws-grid {
	display: grid;
	gap: clamp(20px, 2.4vw, 32px);
}

.ws-grid--2 { grid-template-columns: repeat(2, 1fr); }
.ws-grid--3 { grid-template-columns: repeat(3, 1fr); }
.ws-grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 960px) {
	.ws-grid--3, .ws-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
	.ws-grid--2, .ws-grid--3, .ws-grid--4 { grid-template-columns: 1fr; }
}

/* ---------------- Eyebrow + section headers ---------------- */
.ws-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--ws-font-head);
	font-weight: 700;
	font-size: 0.8rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--accent);
	background: var(--accent-soft);
	padding: 6px 14px;
	border-radius: var(--ws-radius-pill);
	margin-bottom: 18px;
}

.ws-section-head {
	max-width: 720px;
	margin-bottom: clamp(28px, 3.4vw, 52px);
}

.ws-section-head--center {
	margin-inline: auto;
	text-align: center;
}

.ws-section-head p {
	font-size: 1.08rem;
	color: var(--ws-body);
	margin-top: 12px;
}

.ws-section--dark .ws-section-head p {
	color: rgba(255, 255, 255, 0.78);
}

.ws-gradient-text {
	background: var(--accent-grad);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

/* ---------------- Buttons ---------------- */
.ws-btn {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-family: var(--ws-font-head);
	font-weight: 700;
	font-size: 1rem;
	line-height: 1;
	padding: 15px 24px;
	border-radius: var(--ws-radius-pill);
	border: 1.5px solid transparent;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
	will-change: transform;
}

.ws-btn .ws-icon {
	flex: none;
	transition: transform 0.18s ease;
}

.ws-btn:hover .ws-icon {
	transform: translateX(3px);
}

.ws-btn--primary {
	background: var(--accent);
	color: var(--accent-ink);
	box-shadow: var(--ws-shadow);
}

.ws-btn--primary:hover {
	background: var(--accent-strong);
	color: #fff;
	transform: translateY(-2px);
	box-shadow: var(--ws-shadow-lg);
}

.ws-btn--ghost {
	background: #fff;
	color: var(--ws-ink);
	border-color: var(--ws-line-2);
	box-shadow: var(--ws-shadow-sm);
}

.ws-btn--ghost:hover {
	border-color: var(--accent);
	color: var(--accent);
	transform: translateY(-2px);
}

.ws-btn--light {
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	border-color: rgba(255, 255, 255, 0.4);
	backdrop-filter: blur(6px);
}

.ws-btn--light:hover {
	background: #fff;
	color: var(--ws-ink);
}

.ws-btn--dark {
	background: var(--ws-ink);
	color: #fff;
}

.ws-btn--dark:hover {
	background: var(--ws-ink-2);
	transform: translateY(-2px);
}

.ws-btn--white {
	background: #fff;
	color: var(--accent);
}

.ws-btn--white:hover {
	transform: translateY(-2px);
	box-shadow: var(--ws-shadow-lg);
	background: #fff;
	color: var(--accent-strong);
}

.ws-btn--lg {
	padding: 18px 30px;
	font-size: 1.06rem;
}

.ws-cta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	align-items: center;
}

/* ---------------- Header ---------------- */
.ws-site-header {
	position: sticky;
	top: 0;
	z-index: 60;
	background: rgba(255, 255, 255, 0.86);
	backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid var(--ws-line);
}

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

.ws-brand {
	display: inline-flex;
	align-items: center;
	gap: 11px;
	font-family: var(--ws-font-head);
	font-weight: 800;
	font-size: 1.28rem;
	color: var(--ws-ink);
	letter-spacing: -0.03em;
}

.ws-brand:hover {
	color: var(--ws-ink);
}

.ws-brand__mark {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 11px;
	background: var(--ws-grad-brand, linear-gradient(135deg, #2563eb, #1e40af));
	color: #fff;
	font-weight: 800;
	font-size: 1.05rem;
	box-shadow: var(--ws-shadow-sm);
}

.ws-brand__dot {
	color: var(--accent);
}

.ws-brand img {
	max-height: 40px;
	width: auto;
}

.ws-brand__text small {
	display: block;
	font-size: 0.66rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ws-muted);
	font-weight: 600;
	margin-top: -2px;
}

/* Primary nav */
.ws-nav__list {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0;
}

.ws-nav__list > li {
	position: relative;
}

.ws-menu__link {
	display: inline-flex;
	align-items: center;
	padding: 10px 14px;
	border-radius: var(--ws-radius-pill);
	font-family: var(--ws-font-head);
	font-weight: 600;
	font-size: 0.97rem;
	color: var(--ws-ink);
	transition: background 0.15s ease, color 0.15s ease;
}

.ws-menu__link:hover {
	background: var(--ws-bg-alt);
	color: var(--accent);
}

.ws-nav__list .current-menu-item > .ws-menu__link,
.ws-nav__list .current_page_item > .ws-menu__link {
	color: var(--accent);
	background: var(--accent-soft);
}

.ws-menu__link--button {
	background: var(--accent);
	color: #fff;
	box-shadow: var(--ws-shadow-sm);
}

.ws-menu__link--button:hover {
	background: var(--accent-strong);
	color: #fff;
}

.ws-header__actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ws-header-cart {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 12px;
	border-radius: var(--ws-radius-pill);
	color: var(--ws-ink);
	font-weight: 600;
}

.ws-header-cart:hover {
	background: var(--ws-bg-alt);
}

.ws-header-cart__count {
	display: grid;
	place-items: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: var(--ws-radius-pill);
	background: var(--accent);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
}

/* Mobile toggle */
.ws-nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--ws-line-2);
	border-radius: 12px;
	background: #fff;
	color: var(--ws-ink);
	cursor: pointer;
}

@media (max-width: 900px) {
	.ws-nav-toggle { display: inline-flex; }
	.ws-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: #fff;
		border-bottom: 1px solid var(--ws-line);
		box-shadow: var(--ws-shadow);
		padding: 14px var(--ws-gutter) 22px;
		display: none;
	}
	.ws-nav.is-open { display: block; }
	.ws-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 4px;
	}
	.ws-menu__link {
		justify-content: flex-start;
		padding: 13px 16px;
		font-size: 1.05rem;
	}
	.ws-menu__link--button {
		margin-top: 6px;
		justify-content: center;
	}
	.ws-header__actions .ws-btn { display: none; }
}

/* ---------------- Footer ---------------- */
.ws-site-footer {
	background: var(--ws-bg-dark);
	color: rgba(255, 255, 255, 0.72);
	padding-top: clamp(48px, 6vw, 80px);
}

.ws-footer__grid {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
	gap: clamp(24px, 4vw, 56px);
}

.ws-site-footer .ws-brand {
	color: #fff;
}
.ws-site-footer .ws-brand__text small { color: rgba(255,255,255,0.55); }

.ws-footer__about p {
	margin-top: 16px;
	max-width: 340px;
	color: rgba(255, 255, 255, 0.66);
}

.ws-footer__col h4 {
	color: #fff;
	font-size: 0.82rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	margin-bottom: 16px;
}

.ws-footer__col ul {
	display: grid;
	gap: 10px;
}

.ws-footer__col a {
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.96rem;
}

.ws-footer__col a:hover {
	color: #fff;
}

.ws-footer__bottom {
	margin-top: clamp(36px, 5vw, 60px);
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	padding-block: 26px;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: space-between;
	align-items: center;
	font-size: 0.88rem;
	color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 860px) {
	.ws-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
	.ws-footer__grid { grid-template-columns: 1fr; }
}

/* ---------------- Skip link + a11y ---------------- */
.ws-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100;
	background: var(--accent);
	color: #fff;
	padding: 12px 20px;
	border-radius: 0 0 12px 0;
}

.ws-skip-link:focus {
	left: 0;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
	outline: none;
	box-shadow: var(--ws-ring);
	border-radius: var(--ws-radius-sm);
}

/* ---------------- Utility ---------------- */
.ws-icon { display: inline-block; vertical-align: middle; }
.ws-text-center { text-align: center; }
.ws-mt-0 { margin-top: 0; }
.ws-mb-0 { margin-bottom: 0; }
