/*
Theme Name: Kodenzo Hub
Theme URI: https://client.kodenzo.com
Author: KODENZO
Author URI: https://kodenzo.com
Description: Independent custom theme for the KODENZO client portal (client.kodenzo.com). Provides the site-wide header, footer and page chrome, built to match kodenzo.com's own design system (logo, nav pattern, footer, colors, type) so the portal reads as a continuation of kodenzo.com rather than a different site. Deliberately has no dependency on the License Forge plugin or any other plugin — it only expects ordinary WordPress Pages (optionally containing shortcode output) to wrap. Page content itself (Home/Products/Dashboard/Account) is supplied by whatever plugin is active; this theme does not know or care which one.
Version: 1.3.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kodenzo-hub
*/

/* ==========================================================================
   Design tokens — matched to kodenzo.com's live design system.
   ========================================================================== */

:root {
	--kz-navy: #131922;
	--kz-navy-2: #18202b;
	--kz-blue: #0b477c;
	--kz-coral: #ff6b5a;
	--kz-coral-hover: #e8543f;
	--kz-text: #18202b;
	--kz-text-muted: #5a6472;
	--kz-text-on-dark: #e5e9ef;
	--kz-text-on-dark-muted: #c2cad4;
	--kz-border: #e5e9ef;
	--kz-border-on-dark: rgba(255, 255, 255, 0.14);
	--kz-radius-btn: 8px;
	--kz-container: 1400px;
	--kz-font-head: "Alata", sans-serif;
	--kz-font-body: "Inter", sans-serif;
	--kz-bg-muted: #f5f7fa;
}

/* ==========================================================================
   Reset / base
   ========================================================================== */

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

body {
	margin: 0;
	font-family: var(--kz-font-body);
	color: var(--kz-text);
	background: #fff;
	line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--kz-font-head);
	font-weight: 400;
	margin: 0 0 16px;
	line-height: 1.2;
}

a {
	color: inherit;
}

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

.kodenzo-container {
	max-width: var(--kz-container);
	margin: 0 auto;
	padding: 0 32px;
}

@media (max-width: 782px) {
	.kodenzo-container {
		padding: 0 20px;
	}
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* ==========================================================================
   Header — matches kodenzo.com's kodenzo-header pattern
   ========================================================================== */

.kodenzo-header {
	background: var(--kz-navy);
	border-bottom: 1px solid var(--kz-border-on-dark);
}

.kodenzo-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 18px 32px;
}

@media (max-width: 782px) {
	.kodenzo-header__inner {
		padding: 16px 20px;
		flex-wrap: wrap;
	}
}

.kodenzo-header__logo {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
}

.kodenzo-header__logo-img {
	height: 28px;
	width: auto;
}

.kodenzo-header__nav {
	flex: 1;
}

.kodenzo-header__nav-list {
	list-style: none;
	display: flex;
	gap: 28px;
	margin: 0;
	padding: 0;
	justify-content: center;
}

.kodenzo-header__nav-link {
	font-family: var(--kz-font-body);
	font-style: normal;
	text-decoration: none;
	color: var(--kz-text-on-dark);
	font-size: 14px;
	font-weight: 500;
	padding-bottom: 2px;
	border-bottom: 2px solid transparent;
	transition: border-color 0.15s ease, color 0.15s ease;
}

.kodenzo-header__nav-link:hover,
.kodenzo-header__nav-link.is-current {
	color: var(--kz-coral);
	border-bottom-color: var(--kz-coral);
}

.kodenzo-header__actions {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-shrink: 0;
}

.kodenzo-header__auth-link {
	text-decoration: none;
	color: var(--kz-text-on-dark);
	font-size: 14px;
	font-weight: 500;
}

.kodenzo-header__auth-link:hover {
	color: var(--kz-coral);
}

/* Replaces the old boxed "Kodenzo.com" ghost button (2026-09-24, Lata:
 * "i didnt like the kodenzo.com button at the header, change it name
 * something else and change the design") — a plain text link with an
 * external-link glyph reads as a quieter, secondary action next to the
 * primary nav, rather than competing with it as a second bordered button. */
.kodenzo-header__site-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	text-decoration: none;
	color: var(--kz-text-on-dark-muted);
	font-size: 13px;
	font-weight: 500;
}

.kodenzo-header__site-link svg {
	flex-shrink: 0;
}

.kodenzo-header__site-link:hover {
	color: var(--kz-text-on-dark);
}

.kodenzo-header__menu-toggle {
	display: none;
	background: none;
	border: 1px solid var(--kz-border-on-dark);
	color: #fff;
	border-radius: var(--kz-radius-btn);
	padding: 8px 14px;
	font-family: var(--kz-font-body);
	font-size: 14px;
	cursor: pointer;
}

@media (max-width: 900px) {
	.kodenzo-header__nav {
		flex-basis: 100%;
		order: 3;
		display: none;
	}

	.kodenzo-header__nav.is-open {
		display: block;
	}

	.kodenzo-header__nav-list {
		flex-direction: column;
		gap: 4px;
		padding: 16px 0 4px;
	}

	.kodenzo-header__menu-toggle {
		display: inline-block;
	}
}

/* ==========================================================================
   Buttons — shared, matches kodenzo.com's rectangle/8px CTA pattern
   ========================================================================== */

.kodenzo-btn {
	display: inline-block;
	padding: 10px 22px;
	border-radius: var(--kz-radius-btn);
	text-decoration: none;
	font-family: var(--kz-font-body);
	font-weight: 600;
	font-size: 14px;
	border: 1.25px solid transparent;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
	cursor: pointer;
}

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

.kodenzo-btn--primary:hover {
	background: var(--kz-coral-hover);
	color: #fff;
}

.kodenzo-btn--ghost-light {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.85);
	color: #fff;
	padding: 8px 18px;
	font-size: 14px;
}

.kodenzo-btn--ghost-light:hover {
	background: #fff;
	color: var(--kz-navy);
}

/* Full-size ghost variant — same padding/font-size as .kodenzo-btn--primary,
   for pairing with a primary button outside the header (hero, closing CTA
   band). .kodenzo-btn--ghost-light is deliberately smaller/compact and
   stays reserved for the header's own small CTA; reusing it next to a
   primary button elsewhere made the two buttons visibly mismatched in
   height (reported 2026-09-07). */
.kodenzo-btn--ghost {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.85);
	color: #fff;
}

.kodenzo-btn--ghost:hover {
	background: #fff;
	color: var(--kz-navy);
}

/* ==========================================================================
   Main content wrapper
   ========================================================================== */

.kodenzo-main {
	min-height: 50vh;
}

/* ==========================================================================
   Footer — matches kodenzo.com's kodenzo-footer pattern
   ========================================================================== */

.kodenzo-footer {
	background: var(--kz-navy);
	color: var(--kz-text-on-dark-muted);
	margin-top: 0;
	font-size: 14px;
}

/* Breathing room below ordinary page content (Products/Dashboard/Account/
   fallback), before the footer. front-page.php's own sections already
   have generous padding and end on a dark band, so this class is
   deliberately NOT used there — adding it globally via .kodenzo-footer's
   margin instead created a visible white seam between two dark sections
   on the Home page (reported 2026-09-07). */
.kodenzo-page-content {
	padding: 48px 0 64px;
}

.kodenzo-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 40px;
	padding: 56px 32px 32px;
}

@media (max-width: 900px) {
	.kodenzo-footer__grid {
		grid-template-columns: 1fr 1fr;
		padding: 40px 20px 24px;
	}
}

@media (max-width: 560px) {
	.kodenzo-footer__grid {
		grid-template-columns: 1fr;
	}
}

.kodenzo-footer__brand-logo {
	height: 24px;
	width: auto;
	margin-bottom: 16px;
}

.kodenzo-footer__brand-desc {
	color: var(--kz-text-on-dark-muted);
	max-width: 320px;
	margin-bottom: 20px;
	font-size: 14px;
}

.kodenzo-footer__social {
	display: flex;
	gap: 14px;
}

.kodenzo-footer__social a {
	color: var(--kz-text-on-dark-muted);
	text-decoration: none;
	line-height: 0;
	border: 1px solid var(--kz-border-on-dark);
	border-radius: 999px;
	width: 32px;
	height: 32px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.kodenzo-footer__social a svg {
	display: block;
}

.kodenzo-footer__social a:hover {
	color: #fff;
	border-color: var(--kz-coral);
}

.kodenzo-footer__col-heading {
	color: #fff;
	font-family: var(--kz-font-head);
	font-weight: 400;
	font-size: 15px;
	margin-bottom: 16px;
}

.kodenzo-footer__col ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.kodenzo-footer__col li {
	margin-bottom: 10px;
}

.kodenzo-footer__col a {
	color: var(--kz-text-on-dark-muted);
	text-decoration: none;
	font-size: 14px;
}

.kodenzo-footer__col a:hover {
	color: var(--kz-coral);
}

.kodenzo-footer__legal {
	border-top: 1px solid var(--kz-border-on-dark);
	padding: 20px 32px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	font-size: 13px;
	color: var(--kz-text-on-dark-muted);
}

@media (max-width: 782px) {
	.kodenzo-footer__legal {
		padding: 20px 20px;
	}
}

.kodenzo-footer__legal-address {
	color: var(--kz-text-on-dark-muted);
	margin-top: 2px;
}

.kodenzo-footer__legal-address a {
	color: var(--kz-text-on-dark-muted);
}

.kodenzo-footer__legal-address a:hover {
	color: var(--kz-coral);
}

.kodenzo-footer__legal-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.kodenzo-footer__legal-links a {
	color: var(--kz-text-on-dark-muted);
	text-decoration: none;
}

.kodenzo-footer__legal-links a:hover {
	color: var(--kz-coral);
}

/* ==========================================================================
   Home page (front-page.php) — added 2026-09-07. Mirrors kodenzo.com's own
   section rhythm (dark hero -> light feature band -> white steps band ->
   product spotlight -> dark closing CTA) using the same tokens as the rest
   of the theme. The "Featured Product" section's actual card markup comes
   from the License Forge plugin's [license_forge_latest_product] shortcode
   (its own .lf-product-card styling, already token-matched) — .kz-spotlight-slot
   here only centers/constrains that output, it doesn't style its contents.
   ========================================================================== */

.kz-eyebrow {
	display: block;
	color: var(--kz-coral);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: 14px;
}

.kz-section {
	padding: 88px 0;
}

.kz-section--muted {
	background: var(--kz-bg-muted, #f5f7fa);
}

.kz-section-head {
	max-width: 640px;
	margin: 0 auto 56px;
	text-align: center;
}

.kz-section-head h2 {
	font-size: 2rem;
}

.kz-section-head p {
	color: var(--kz-text-muted);
	font-size: 1.05rem;
	margin: 0;
}

/* Hero */
.kz-hero {
	background: var(--kz-navy);
	padding: 96px 0 64px;
	text-align: center;
}

.kz-hero__inner {
	max-width: 780px;
	margin: 0 auto;
}

.kz-hero h1 {
	color: #fff;
	font-size: 2.75rem;
	margin-bottom: 20px;
}

.kz-hero p {
	color: var(--kz-text-on-dark-muted);
	font-size: 1.1rem;
	max-width: 620px;
	margin: 0 auto 36px;
}

.kz-hero__actions {
	display: flex;
	gap: 16px;
	justify-content: center;
	flex-wrap: wrap;
	margin-bottom: 28px;
}

.kz-hero__trust {
	color: var(--kz-text-on-dark-muted);
	font-size: 0.85rem;
	opacity: 0.85;
}

@media (max-width: 600px) {
	.kz-hero h1 {
		font-size: 2rem;
	}
}

/* Feature grid (icon + title + text, no card box) */
.kz-features {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 40px;
}

@media (max-width: 900px) {
	.kz-features {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 560px) {
	.kz-features {
		grid-template-columns: 1fr;
	}
}

.kz-feature__icon {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--kz-blue);
	margin-bottom: 16px;
}

.kz-feature__icon svg {
	width: 28px;
	height: 28px;
}

.kz-feature h3 {
	font-size: 1.05rem;
	margin-bottom: 8px;
}

.kz-feature p {
	color: var(--kz-text-muted);
	font-size: 0.92rem;
	margin: 0;
}

/* Numbered steps */
.kz-steps {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 40px;
}

@media (max-width: 900px) {
	.kz-steps {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 560px) {
	.kz-steps {
		grid-template-columns: 1fr;
	}
}

.kz-step__number {
	font-family: var(--kz-font-head, "Alata", sans-serif);
	font-size: 1.6rem;
	color: var(--kz-coral);
	margin-bottom: 10px;
}

.kz-step h3 {
	font-size: 1.05rem;
	margin-bottom: 8px;
}

.kz-step p {
	color: var(--kz-text-muted);
	font-size: 0.92rem;
	margin: 0;
}

/* Featured Product slot — centers/constrains whatever the
   [license_forge_latest_product] shortcode renders. */
.kz-spotlight-slot {
	max-width: 760px;
	margin: 0 auto;
}

/* Closing CTA band */
/* Gradient background + soft decorative circles, matched exactly from
   kodenzo.com's own closing CTA section (.kodenzo-final-cta on
   kodenzo.com/products/) so the two properties' closing sections read as
   the same design system. Requested by Lata 2026-09-07 in place of the
   flat navy band originally here. */
.kz-cta-band {
	background: linear-gradient(100deg, #0b477c 0%, #1565c0 55%, #ff6b5a 100%);
	text-align: center;
	padding: 120px 0;
	position: relative;
	overflow: hidden;
}

.kz-cta-band__decor {
	position: static;
}

.kz-cta-band__decor::before,
.kz-cta-band__decor::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.06);
}

.kz-cta-band__decor::before {
	width: 340px;
	height: 340px;
	top: -100px;
	right: -100px;
}

.kz-cta-band__decor::after {
	width: 280px;
	height: 280px;
	bottom: -120px;
	left: -80px;
	background: rgba(255, 255, 255, 0.05);
}

.kz-cta-band h2 {
	color: #fff;
	font-size: 2rem;
	margin-bottom: 16px;
}

.kz-cta-band p {
	color: var(--kz-text-on-dark-muted);
	max-width: 520px;
	margin: 0 auto 32px;
}

.kz-cta-band__actions {
	display: flex;
	gap: 16px;
	justify-content: center;
	flex-wrap: wrap;
}
