﻿/*
==============================================================================
style.css

This is the common/shared global stylesheet for the DistoCore website. 
Defines colors, layout, typography, grid components, 
cards, hero sections, buttons and responsive behavior.

$Rev:: 4748                $:  Revision of last commit
$Author:: bula             $:  Author of last commit
$Date:: 2025-11-29 12:20:4#$:  Date of last commit

(c) 2013-2025 DistoCore Software Solutions
==============================================================================
*/

:root {
	--color-bg: #05060A;
	--color-surface: #0B1020;
	--color-surface-alt: #111827;
	--color-border-subtle: #1F2937;

	--color-primary: #F5D77C;
	--color-primary-dark: #CDAF4A;
	--color-accent: #22D3EE;
	--color-focus-ring: #38BDF8;

	--color-text: #F9FAFB;
	--color-text-muted: #9CA3AF;
	--color-text-soft: #6B7280;

	--color-success: #4ADE80;
	--color-warning: #FBBF24;
	--color-error: #F97373;

	--shadow-soft: 0 18px 45px rgba(0,0,0,0.6);
	--radius-lg: 1rem;
	--radius-pill: 999px;
	--transition-fast: 150ms ease-out;

	--font-heading: "Orbitron", sans-serif;
}

* {
	box-sizing: border-box;
}

html, body {
	margin: 0;
	padding: 0;
	background: radial-gradient(circle at top, #0f172a 0, var(--color-bg) 45%);
	color: var(--color-text);
	font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	scroll-behavior: smooth;
}

img {
	max-width: 100%;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
	outline: 2px solid var(--color-focus-ring);
	outline-offset: 2px;
}

.container {
	width: 100%;
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 1.25rem;
}

/* Header / Nav */
.site-header {
	position: sticky;
	top: 0;
	z-index: 40;
	backdrop-filter: blur(18px);
	background: rgba(5, 6, 10, 0.88);
	border-bottom: 1px solid rgba(15, 23, 42, 0.8);
}

.nav-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.6rem 0;
	gap: 1.5rem;
}

.nav-logo {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.nav-logo img {
	height: 32px;
	width: auto;
}

.nav-logo-text {
	font-family: var(--font-heading);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	font-size: 0.85rem;
	color: var(--color-text-muted);
}

.nav-links {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	font-size: 0.9rem;
	color: var(--color-text-muted);
}

.nav-links a {
	position: relative;
	padding: 0.2rem 0;
	transition: color var(--transition-fast);
}

.nav-links a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 0;
	height: 2px;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
	transition: width var(--transition-fast);
}

.nav-links a:hover {
	color: var(--color-text);
}

.nav-links a:hover::after {
	width: 100%;
}

.nav-cta {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--radius-pill);
	padding: 0.55rem 1.1rem;
	font-size: 0.85rem;
	font-weight: 600;
	border: 1px solid transparent;
	transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
	text-decoration: none;
	white-space: nowrap;
}

.btn-primary {
	background: var(--color-primary);
	color: #05060A;
	box-shadow: 0 12px 30px rgba(0,0,0,0.9);
}

.btn-primary:hover {
	background: var(--color-primary-dark);
	transform: translateY(-1px);
	box-shadow: 0 16px 45px rgba(0,0,0,0.95);
}

.btn-secondary {
	background: transparent;
	border-color: var(--color-border-subtle);
	color: var(--color-text-muted);
}

.btn-secondary:hover {
	border-color: var(--color-accent);
	color: var(--color-text);
	background: rgba(15,23,42,0.9);
}

/* Mobile nav toggle */
.nav-toggle {
	display: none;
}

.nav-toggle-label {
	display: none;
	width: 24px;
	height: 20px;
	position: relative;
	cursor: pointer;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	border-radius: 999px;
	background: var(--color-text);
	content: "";
	transition: transform 180ms ease-out, opacity 180ms ease-out, top 180ms ease-out, bottom 180ms ease-out;
}

.nav-toggle-label span {
	top: 50%;
	transform: translateY(-50%);
}

.nav-toggle-label span::before {
	top: -7px;
}

.nav-toggle-label span::after {
	bottom: -7px;
}

.nav-toggle:checked + .nav-toggle-label span {
	transform: rotate(45deg);
}

.nav-toggle:checked + .nav-toggle-label span::before {
	top: 0;
	transform: rotate(-90deg);
}

.nav-toggle:checked + .nav-toggle-label span::after {
	opacity: 0;
}

/* Hero */
.hero {
	padding: 2.75rem 0 2.5rem;
}

.hero-inner {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
	gap: 2.5rem;
	align-items: center;
}

.hero-eyebrow {
	font-size: 0.8rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--color-text-soft);
	margin-bottom: 0.75rem;
}

.hero-title {
	font-family: var(--font-heading);
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	font-size: 2.0rem;
	margin: 0 0 0.8rem;
}

.hero-gradient {
	background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
	-webkit-background-clip: text;
	color: transparent;
}

.hero-subtitle {
	margin: 0 0 1.5rem;
	color: var(--color-text-muted);
	max-width: 32rem;
	font-size: 0.98rem;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
	align-items: center;
	margin-bottom: 1.8rem;
}

.hero-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 1.2rem;
	font-size: 0.8rem;
	color: var(--color-text-soft);
}

.hero-meta span {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.hero-art {
	background: radial-gradient(circle at top, rgba(34,211,238,0.08), transparent 55%);
	border-radius: 1.6rem;
	border: 1px solid rgba(148,163,184,0.25);
	padding: 1.1rem;
	box-shadow: var(--shadow-soft);
	position: relative;
	overflow: hidden;
}

.hero-art-inner {
	background: linear-gradient(135deg, #020617, #020617 35%, #111827 100%);
	border-radius: 1.1rem;
	padding: 1.1rem;
	border: 1px solid rgba(15,23,42,0.85);
	min-height: 220px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.hero-art-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 0.75rem;
}

.hero-art-label {
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	color: var(--color-text-soft);
}

.hero-art-chip {
	font-size: 0.7rem;
	padding: 0.18rem 0.55rem;
	border-radius: 999px;
	border: 1px solid rgba(148,163,184,0.4);
	color: var(--color-text-muted);
}

.hero-art-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.6rem;
	margin-bottom: 0.9rem;
}

.hero-art-card {
	background: radial-gradient(circle at top, rgba(245,215,124,0.16), rgba(15,23,42,1));
	border-radius: 0.75rem;
	padding: 0.6rem;
	border: 1px solid rgba(15,23,42,0.8);
	font-size: 0.72rem;
	color: var(--color-text-muted);
}

.hero-art-card span {
	display: block;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 0.75rem;
	margin-bottom: 0.25rem;
	color: var(--color-text);
}

.hero-art-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 0.75rem;
	color: var(--color-text-soft);
}

.hero-art-meter {
	width: 100px;
	height: 5px;
	border-radius: 999px;
	background: rgba(15,23,42,1);
	overflow: hidden;
}

.hero-art-meter-fill {
	width: 72%;
	height: 100%;
	background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}

/* Sections */
.section {
	padding: 2rem 0;
}

.section-header {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.section-title {
	font-family: var(--font-heading);
	text-transform: uppercase;
	font-size: 1.4rem;
	letter-spacing: 0.12em;
}

.section-kicker {
	font-size: 0.85rem;
	color: var(--color-text-soft);
}

/* Product cards */
.product-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.3rem;
}

.product-card {
	background: linear-gradient(145deg, rgba(15,23,42,0.98), rgba(15,23,42,0.9));
	border-radius: var(--radius-lg);
	border: 1px solid rgba(30,64,175,0.55);
	padding: 1rem;
	position: relative;
	overflow: hidden;
	box-shadow: 0 14px 38px rgba(0,0,0,0.85);
	transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
	text-align: center;
}

.product-card::before {
	content: "";
	position: absolute;
	inset: -60%;
	background: radial-gradient(circle at top, rgba(245,215,124,0.08), transparent 60%);
	opacity: 0;
	transition: opacity var(--transition-fast), transform var(--transition-fast);
	/* Make sure the decorative overlay never blocks clicks */
	pointer-events: none;
}

.product-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 18px 50px rgba(0,0,0,0.95);
	border-color: rgba(250,204,21,0.8);
}

.product-card:hover::before {
	opacity: 1;
	transform: translateY(-8px);
}

.product-card-link {
	display: block;
	color: inherit;
	text-decoration: none;
}

/* Optional: improve hover effect for whole card */
.product-card-link:hover {
	transform: translateY(-3px);
}

.product-tag {
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	color: var(--color-text-soft);
	margin-bottom: 0.4rem;
}

.product-name {
	font-family: var(--font-heading);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 1.1rem;
	margin-bottom: 0.35rem;
}

.product-meta {
	font-size: 0.78rem;
	color: var(--color-text-soft);
	margin-bottom: 0.6rem;
}

.product-description {
	font-size: 0.86rem;
	color: var(--color-text-muted);
	margin-bottom: 0.9rem;
}

.product-footer {
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 0.78rem;
	color: var(--color-text-soft);
}

.product-footer a {
	font-weight: 500;
	color: var(--color-accent);
	/* Ensure the "Learn more" link is above everything inside the card */
	position: relative;
	z-index: 1;
}

.product-footer a:hover {
	text-decoration: underline;
}

.product-price-tag {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.25rem 0.65rem;
	border-radius: 999px;
	background: radial-gradient(circle at top, rgba(245,215,124,0.22), rgba(15,23,42,1));
	border: 1px solid rgba(245,215,124,0.88);
	color: var(--color-primary);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	box-shadow: 0 10px 25px rgba(0,0,0,0.9);
}

.product-price-tag small {
	font-size: 0.7rem;
	text-transform: none;
	color: var(--color-text-soft);
}

/* Product thumbnails inside cards */
.product-thumb {
	border: 0;
	background: none;
	padding: 0;
	margin: 0 0 0.9rem;
	margin-left: auto;
	margin-right: auto;
	display: block;
	border-radius: 0.75rem;
	overflow: hidden;
	cursor: zoom-in;
	outline: none;
}

.product-thumb img {
	display: block;
	width: 100%;
	max-height: 100px;
	object-fit: cover;
	transition: transform 0.25s ease, opacity 0.25s ease;
	opacity: 0.9;
}

.product-card:hover .product-thumb img {
	transform: scale(1.03);
	opacity: 1;
}

/* Lightbox overlay */
.lightbox {
	position: fixed;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 9999;
}

.lightbox.is-visible {
	display: flex;
}

.lightbox-backdrop {
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at top, rgba(15,23,42,0.7), rgba(0,0,0,0.98));
	backdrop-filter: blur(4px);
}

.lightbox-content {
	position: relative;
	max-width: 95vw;
	max-height: 90vh;
	padding: 0.75rem;
	border-radius: 1rem;
	background: radial-gradient(circle at top, rgba(148,163,184,0.12), rgba(15,23,42,0.98));
	box-shadow: 0 25px 60px rgba(0,0,0,0.95);
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.5rem;
}

.lightbox-content img {
	max-width: 100%;
	max-height: 80vh;
	display: block;
	border-radius: 0.5rem;
}

/* Close button */
.lightbox-close {
	border: 0;
	border-radius: 999px;
	width: 32px;
	height: 32px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1.2rem;
	background: rgba(15,23,42,0.9);
	color: #e5e7eb;
	cursor: pointer;
}

.lightbox-close:hover {
	background: rgba(30,64,175,0.9);
}

/* Optional: prevent scroll when lightbox open */
body.lightbox-open {
	overflow: hidden;
}

/* Resources & Testimonials */
.resources-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	gap: 1.5rem;
}

.card-surface {
	background: var(--color-surface);
	border-radius: var(--radius-lg);
	border: 1px solid rgba(30,64,175,0.4);
	padding: 1rem 1.15rem;
	box-shadow: 0 14px 36px rgba(0,0,0,0.8);
}

.card-title {
	font-size: 0.9rem;
	font-weight: 600;
	margin-bottom: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--color-text-muted);
}

.resource-list,
.testimonial-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.75rem;
	font-size: 0.86rem;
}

.resource-list a {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 0.75rem;
	padding: 0.5rem 0.3rem;
	border-radius: 0.5rem;
	color: var(--color-text-muted);
	transition: background-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.resource-list a span:first-child {
	font-weight: 500;
	color: var(--color-text);
}

.resource-list a span:last-child {
	font-size: 0.78rem;
	color: var(--color-text-soft);
}

.resource-list a:hover {
	background: rgba(15,23,42,0.95);
	transform: translateY(-1px);
	color: var(--color-accent);
}

/* Inline download icon for FREE download links */
.resource-list a {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
}

.resource-list a .icon-download {
	width: 1rem;
	height: 1rem;
	display: inline-block;
	stroke: var(--color-primary);
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	fill: none;
	flex-shrink: 0;
	opacity: 0.85;
	transition: opacity 0.15s ease;
}

.resource-list a:hover .icon-download {
	opacity: 1;
}

.testimonial {
	padding: 0.6rem 0.3rem;
	border-left: 2px solid rgba(148,163,184,0.5);
}

.testimonial-text {
	font-style: italic;
	margin-bottom: 0.3rem;
	color: var(--color-text-muted);
}

.testimonial-meta {
	font-size: 0.78rem;
	color: var(--color-text-soft);
}

/* For the embedded SVG pipeline diagram */
.pipeline-diagram {
	margin: 0.5rem 0 0.8rem;
}

.pipeline-diagram svg {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 0 auto;
}

/* Grid layout for Bazz::Murda sample list */
.sample-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 0.8rem;
}

/* Sample links */
.sample-link {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	padding: 0.6rem 0.75rem;
	border-radius: 0.6rem;
	background: radial-gradient(circle at top, rgba(148,163,184,0.08), rgba(15,23,42,0.85));
	text-decoration: none;
	color: var(--color-text-muted);
	font-size: 0.9rem;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
	border: 1px solid rgba(148,163,184,0.2);
}

.sample-link span:first-child {
	font-weight: 600;
	color: var(--color-text);
}

.sample-link span:last-child {
	font-size: 0.8rem;
	color: var(--color-text-soft);
}

.sample-link:hover {
	background: radial-gradient(circle at top, rgba(59,130,246,0.2), rgba(15,23,42,0.95));
	transform: translateY(-1px);
	border-color: rgba(59,130,246,0.7);
}

/* Active/playing state */
.sample-link.is-playing {
	border-color: var(--color-accent);
	box-shadow: 0 0 0 1px rgba(59,130,246,0.5);
}

/* Shared sample player bar */
.sample-player {
	margin-top: 1rem;
	padding: 0.6rem 0.8rem;
	border-radius: 0.7rem;
	background: radial-gradient(circle at top, rgba(15,23,42,0.95), rgba(15,23,42,0.98));
	border: 1px solid rgba(148,163,184,0.3);
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.sample-player.hidden {
	display: none;
}

.sample-player-meta {
	flex: 0 0 auto;
	font-size: 0.8rem;
	color: var(--color-text-soft);
	min-width: 140px;
}

#sample-player-title {
	font-weight: 600;
	color: var(--color-text);
	display: block;
	margin-bottom: 0.1rem;
}

.sample-player audio {
	flex: 1 1 auto;
	max-width: 100%;
}

/* Close button for player */
.sample-player-close {
	flex: 0 0 auto;
	border: 0;
	border-radius: 999px;
	width: 28px;
	height: 28px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(15,23,42,0.9);
	color: #e5e7eb;
	font-size: 1rem;
	cursor: pointer;
}

.sample-player-close:hover {
	background: rgba(220,38,38,0.9);
}


/* Footer */
.site-footer {
	margin-top: 2.25rem;
	padding: 1.8rem 0 1.6rem;
	border-top: 1px solid rgba(15,23,42,0.9);
	background: radial-gradient(circle at top, #020617 0, #020617 40%, #05060A 100%);
}

.footer-top {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.5rem;
	padding-bottom: 1.4rem;
	border-bottom: 1px solid rgba(15,23,42,0.9);
	font-size: 0.85rem;
}

.footer-title {
	text-transform: uppercase;
	letter-spacing: 0.16em;
	font-size: 0.75rem;
	color: var(--color-text-soft);
	margin-bottom: 0.5rem;
}

.footer-links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.3rem;
}

.footer-links a {
	color: var(--color-text-muted);
	transition: color var(--transition-fast), transform var(--transition-fast);
}

.footer-links a:hover {
	color: var(--color-accent);
	transform: translateX(1px);
}

.footer-social {
	display: flex;
	gap: 0.6rem;
	margin-top: 0.4rem;
}

.footer-social a {
	width: 28px;
	height: 28px;
	border-radius: 999px;
	border: 1px solid rgba(148,163,184,0.5);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.75rem;
	color: var(--color-text-soft);
	transition: border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

.footer-social a:hover {
	border-color: var(--color-accent);
	color: var(--color-accent);
	background: rgba(15,23,42,0.9);
	transform: translateY(-1px);
}

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding-top: 1rem;
	font-size: 0.78rem;
	color: var(--color-text-soft);
}

.footer-bottom-links {
	display: flex;
	gap: 0.9rem;
	flex-wrap: wrap;
}

.footer-bottom-links a {
	color: var(--color-text-soft);
}

.footer-bottom-links a:hover {
	color: var(--color-accent);
}

/* Responsive */
@media (max-width: 1023px) {
	.hero-inner {
		grid-template-columns: minmax(0, 1fr);
	}
	.hero-art {
		max-width: 420px;
		margin: 0 auto;
	}
	.product-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.resources-grid {
		grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	}
}

@media (max-width: 767px) {
	.nav-links,
	.nav-cta {
		display: none;
	}

	.nav-toggle-label {
		display: block;
	}

	.nav-toggle:checked ~ .nav-links,
	.nav-toggle:checked ~ .nav-cta {
		display: flex;
	}

	.nav-inner {
		flex-wrap: wrap;
		align-items: center;
	}

	.nav-links {
		flex-direction: column;
		align-items: flex-start;
		width: 100%;
		padding-bottom: 0.75rem;
		border-top: 1px solid rgba(15,23,42,0.85);
		margin-top: 0.5rem;
	}

	.nav-cta {
		width: 100%;
		justify-content: flex-start;
		padding-bottom: 0.9rem;
		gap: 0.6rem;
	}

	.hero {
		padding-top: 2.2rem;
	}

	.hero-title {
		font-size: 2.1rem;
	}

	.hero-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.product-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.resources-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.site-footer .footer-top {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 520px) {
	.site-footer .footer-top {
		grid-template-columns: minmax(0, 1fr);
	}
}
