/* VELORIS Theme Main Stylesheet */

:root {
	--color-bg: #0B0B0C;
	--color-bg-secondary: #121214;
	--color-text: #F5F5F5;
	--color-accent: #C9A96E;
	--color-gray-400: #9CA3AF;
	--color-gray-500: #6B7280;
	--color-gray-600: #4B5563;
	--veloris-header-height: 96px;
	--veloris-topbar-height: 36px;
	--veloris-adminbar-height: 0px;
	--veloris-total-header-height: calc(var(--veloris-adminbar-height) + var(--veloris-topbar-height) + var(--veloris-header-height));
}

@media (max-width: 767px) {
	:root {
		--veloris-header-height: 80px;
		/* topbar content is 32px high + 1px border */
		--veloris-topbar-height: 33px;
	}
}

body.admin-bar {
	--veloris-adminbar-height: 32px;
}

@media (max-width: 782px) {
	body.admin-bar {
		--veloris-adminbar-height: 46px;
	}
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: 'Inter', sans-serif;
	background-color: var(--color-bg);
	color: var(--color-text);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	padding-top: var(--veloris-total-header-height);
	overflow-x: clip;
	overscroll-behavior-x: none;
}

html {
	overflow-x: clip;
}

/* Selection */
::selection {
	background-color: rgba(201, 169, 110, 0.2);
	color: var(--color-accent);
}

/* Link Styles */
a {
	color: inherit;
	text-decoration: none;
	transition: color 0.3s ease;
}

a:hover {
	color: var(--color-accent);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

/* Images */
img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* Buttons */
button, .button {
	cursor: pointer;
	border: none;
	font-family: 'Inter', sans-serif;
	transition: all 0.3s ease;
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
textarea,
select {
	width: 100%;
	padding: 0.75rem 1rem;
	background-color: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 0.25rem;
	color: var(--color-text);
	font-family: 'Inter', sans-serif;
	font-size: 0.875rem;
	transition: border-color 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
	outline: none;
	border-color: var(--color-accent);
	background-color: rgba(255, 255, 255, 0.08);
}

/* Utility Classes */
.container {
	max-width: 80rem;
	margin: 0 auto;
	padding: 0 1.5rem;
}

.text-center {
	text-align: center;
}

.text-left {
	text-align: left;
}

.text-right {
	text-align: right;
}

/* WordPress Specific Styles */
.wp-caption {
	max-width: 100%;
}

.wp-caption img {
	margin: 0;
}

.wp-caption-text {
	margin: 0.5rem 0 0;
	font-size: 0.875rem;
	color: var(--color-gray-400);
}

/* Gallery */
.gallery {
	margin: 2rem 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1rem;
}

.gallery-item {
	position: relative;
	overflow: hidden;
	border-radius: 0.5rem;
}

.gallery-item img {
	transition: transform 0.3s ease;
}

.gallery-item:hover img {
	transform: scale(1.05);
}

/* Navigation */
.navbar {
	position: fixed;
	top: calc(var(--veloris-adminbar-height) + var(--veloris-topbar-height));
	left: 0;
	right: 0;
	z-index: 70;
	transition: all 0.3s ease;
	background: rgba(8, 8, 10, 0.82);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#navbar {
	position: fixed !important;
	top: calc(var(--veloris-adminbar-height) + var(--veloris-topbar-height)) !important;
	left: 0;
	right: 0;
	z-index: 70 !important;
	background: rgba(8, 8, 10, 0.82);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar.scrolled {
	background-color: rgba(11, 11, 12, 0.9);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Menu */
nav ul {
	list-style: none;
}

nav li {
	margin: 0;
}

nav a {
	display: block;
	padding: 0.5rem 0;
	font-size: 0.875rem;
	font-weight: 300;
	transition: color 0.3s ease;
}

nav a:hover,
nav li.current-menu-item > a {
	color: var(--color-accent);
}

#velorisSearchPanel,
#velorisCartPanel {
	top: calc(var(--veloris-adminbar-height) + var(--veloris-topbar-height) + var(--veloris-header-height) + 12px) !important;
	z-index: 80 !important;
}

#velorisCartPanel {
	right: 1.5rem;
}

@media (max-width: 767px) {
	section.py-32 {
		padding-top: 4.25rem !important;
		padding-bottom: 4.25rem !important;
	}

	section.py-24 {
		padding-top: 3.25rem !important;
		padding-bottom: 3.25rem !important;
	}

	.mb-20 {
		margin-bottom: 3rem !important;
	}

	.mb-16 {
		margin-bottom: 2.5rem !important;
	}

	#velorisSearchPanel,
	#velorisCartPanel {
		left: 0.75rem;
		right: 0.75rem;
	}

	#velorisCartPanel {
		width: auto;
		max-width: none;
	}

	/* Tighter homepage spacing on small screens */
	body.home > section.relative.pt-20.pb-12 {
		padding-top: 1.5rem !important;
		padding-bottom: 2.25rem !important;
	}

	body.home > section.py-32 {
		padding-top: 3rem !important;
		padding-bottom: 3rem !important;
	}

	body.home > section.py-24 {
		padding-top: 2.5rem !important;
		padding-bottom: 2.5rem !important;
	}

	body.home .veloris-brand-hero-content {
		min-height: 0;
	}

	body.home .veloris-urgency-text,
	body.home .text-gray-300,
	body.home .text-gray-400 {
		font-size: 0.98rem;
		line-height: 1.7;
	}

	body.home .reveal-up h1,
	body.home .reveal-up h2,
	body.home .reveal-up h3 {
		letter-spacing: -0.02em;
	}

	/* Remove tiny slit between topbar and nav while scrolling on mobile. */
	#navbar {
		top: calc(var(--veloris-adminbar-height) + var(--veloris-topbar-height) - 1px) !important;
	}

	/* Prevent horizontal drag/bounce from visual overflow. */
	.site-main,
	#main-content,
	main,
	section {
		overflow-x: clip;
		max-width: 100vw;
	}

	/* Hero visual should not overflow sideways on touch devices. */
	.overflow-visible {
		overflow: hidden !important;
	}
	
	.sekcija-banner {
	    padding-top: 4rem!important;
	}
	
	.menu-burger {
	    font-size: 2rem!important;
	}
	
	.top-meni-css {
	    font-size: 14px!important;
	    line-height: 1!important;
	}
	
	/* Shrink nav logo and icons on mobile */
	#navbar .flex.items-center.gap-2.text-2xl {
		gap: 0.5rem !important;
		font-size: 1.125rem !important;
	}

	/* Shrink icon spacing on mobile */
	#navbar .flex.items-center.space-x-6 {
		gap: 1rem !important;
	}

	/* Shrink search and cart icons on mobile */
	#velorisSearchToggle,
	#velorisCartToggle {
		font-size: 0.95rem !important;
	}

	#velorisSearchToggle iconify-icon,
	#velorisCartToggle iconify-icon {
		font-size: 1rem !important;
	}
}

/* Hero Animations */
.animate-float {
	animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
	animation: float-delayed 5s ease-in-out infinite 2s;
}

@keyframes float {
	0%, 100% {
		transform: translateY(0px);
	}
	50% {
		transform: translateY(-10px);
	}
}

@keyframes float-delayed {
	0%, 100% {
		transform: translateY(0px);
	}
	50% {
		transform: translateY(-8px);
	}
}

/* Scroll Reveal Animations */
.reveal-up,
.reveal-left,
.reveal-right,
.reveal-scale {
	opacity: 0;
	transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left {
	transform: translateX(-40px);
}

.reveal-right {
	transform: translateX(40px);
}

.reveal-up {
	transform: translateY(40px);
}

.reveal-scale {
	transform: scale(0.95);
}

.is-visible {
	opacity: 1;
	transform: translate(0) scale(1);
}

/* Glass Panel */
.glass-panel {
	background: rgba(255, 255, 255, 0.02);
	backdrop-filter: blur(16px);
	border: 1px solid rgba(255, 255, 255, 0.05);
	transition: all 0.3s ease;
}

.glass-panel:hover {
	border-color: rgba(201, 169, 110, 0.1);
}

/* Premium Glow */
.premium-glow {
	box-shadow: 0 0 40px rgba(201, 169, 110, 0.15);
}

.premium-glow-hover:hover {
	box-shadow: 0 0 50px rgba(201, 169, 110, 0.2) !important;
}

/* ============================================
   TAILWIND CUSTOM COLOR OVERRIDES
   ============================================ */

/* Background Colors */
.bg-\[\#0B0B0C\],
.bg-\[#0B0B0C\] { background-color: #0B0B0C !important; }

.bg-\[\#121214\],
.bg-\[#121214\] { background-color: #121214 !important; }

.bg-\[\#C9A96E\],
.bg-\[#C9A96E\] { background-color: #C9A96E !important; }

.bg-\[\#F5F5F5\],
.bg-\[#F5F5F5\] { background-color: #F5F5F5 !important; }

/* Text Colors */
.text-\[\#0B0B0C\],
.text-\[#0B0B0C\] { color: #0B0B0C !important; }

.text-\[\#121214\],
.text-\[#121214\] { color: #121214 !important; }

.text-\[\#C9A96E\],
.text-\[#C9A96E\] { color: #C9A96E !important; }

.text-\[\#F5F5F5\],
.text-\[#F5F5F5\] { color: #F5F5F5 !important; }

/* Border Colors */
.border-\[\#C9A96E\],
.border-\[#C9A96E\] { border-color: #C9A96E !important; }

.border-\[\#F5F5F5\],
.border-\[#F5F5F5\] { border-color: #F5F5F5 !important; }

/* Divide Colors */
.divide-\[\#C9A96E\],
.divide-\[#C9A96E\] > :not([hidden]) ~ :not([hidden]) { border-color: #C9A96E !important; }

/* Ring Colors */
.ring-\[\#C9A96E\],
.ring-\[#C9A96E\] { --tw-ring-color: #C9A96E !important; }

/* Opacity Utilities */
.opacity-\[0\.07\] { opacity: 0.07 !important; }
.opacity-\[0\.05\] { opacity: 0.05 !important; }
.opacity-\[0\.15\] { opacity: 0.15 !important; }
.opacity-\[0\.2\] { opacity: 0.2 !important; }

/* Z-Index Utilities */
.-z-10 { z-index: -10 !important; }
-z-20 { z-index: -20 !important; }
.z-10 { z-index: 10 !important; }
.z-20 { z-index: 20 !important; }
.z-40 { z-index: 40 !important; }
.z-50 { z-index: 50 !important; }

/* Scroll Behavior */
.scroll-smooth { scroll-behavior: smooth !important; }

/* Translate Utilities */
.-translate-y-0\.5 { transform: translateY(-0.125rem) !important; }

/* Scale Utilities */
.group:hover .group-hover\:scale-105 { --tw-scale-x: 1.05; --tw-scale-y: 1.05; transform: var(--tw-transform) !important; }

/* Grayscale Utilities */
.grayscale { filter: grayscale(100%) !important; }
.grayscale-0 { filter: grayscale(0) !important; }
.group:hover .group-hover\:grayscale-0 { filter: grayscale(0) !important; }

/* Transition & Duration */
.transition-all { transition-property: all !important; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important; transition-duration: 150ms !important; }
.transition-colors { transition-property: color, background-color, border-color !important; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important; transition-duration: 150ms !important; }
.transition-transform { transition-property: transform !important; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important; transition-duration: 150ms !important; }
.duration-300 { transition-duration: 300ms !important; }
.duration-500 { transition-duration: 500ms !important; }
.duration-700 { transition-duration: 700ms !important; }

/* Blur Effects */
.blur-\[120px\] { filter: blur(120px) !important; }
.blur-\[150px\] { filter: blur(150px) !important; }

/* Rounded Corners */
.rounded-full { border-radius: 9999px !important; }
.rounded-sm { border-radius: 0.125rem !important; }

/* Line Clamp */
.line-clamp-2 { display: -webkit-box !important; -webkit-line-clamp: 2 !important; -webkit-box-orient: vertical !important; overflow: hidden !important; }
.line-clamp-3 { display: -webkit-box !important; -webkit-line-clamp: 3 !important; -webkit-box-orient: vertical !important; overflow: hidden !important; }

/* Prose Typography */
.prose { all: revert !important; }
.prose-invert { color-scheme: dark !important; }

/* Global content typography for pages and posts */
.entry-content,
.page-content,
.single-post .prose,
.page .prose,
.template-product-showcase .prose,
.template-minimal .prose,
.template-about-us .prose,
.woocommerce .term-description {
	font-size: 1.06rem !important;
	line-height: 1.85 !important;
	color: #D1D5DB !important;
}

.entry-content p,
.page-content p,
.single-post .prose p,
.page .prose p,
.template-product-showcase .prose p,
.template-minimal .prose p,
.template-about-us .prose p,
.woocommerce .term-description p {
	font-size: 1.06rem !important;
	line-height: 1.85 !important;
	margin-bottom: 1rem !important;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4,
.single-post .prose h1,
.single-post .prose h2,
.single-post .prose h3,
.single-post .prose h4,
.page .prose h1,
.page .prose h2,
.page .prose h3,
.page .prose h4,
.template-product-showcase .prose h1,
.template-product-showcase .prose h2,
.template-product-showcase .prose h3,
.template-product-showcase .prose h4,
.template-minimal .prose h1,
.template-minimal .prose h2,
.template-minimal .prose h3,
.template-minimal .prose h4,
.template-about-us .prose h1,
.template-about-us .prose h2,
.template-about-us .prose h3,
.template-about-us .prose h4,
.woocommerce .term-description h1,
.woocommerce .term-description h2,
.woocommerce .term-description h3,
.woocommerce .term-description h4 {
	color: #F5F5F5 !important;
	font-weight: 500 !important;
	line-height: 1.25 !important;
	letter-spacing: -0.02em !important;
	margin: 1.5rem 0 0.85rem !important;
}

.entry-content h1,
.single-post .prose h1,
.page .prose h1,
.template-product-showcase .prose h1,
.template-minimal .prose h1,
.template-about-us .prose h1,
.woocommerce .term-description h1 {
	font-size: clamp(2rem, 5vw, 3rem) !important;
}

.entry-content h2,
.single-post .prose h2,
.page .prose h2,
.template-product-showcase .prose h2,
.template-minimal .prose h2,
.template-about-us .prose h2,
.woocommerce .term-description h2 {
	font-size: clamp(1.5rem, 4vw, 2.1rem) !important;
}

.entry-content h3,
.single-post .prose h3,
.page .prose h3,
.template-product-showcase .prose h3,
.template-minimal .prose h3,
.template-about-us .prose h3,
.woocommerce .term-description h3 {
	font-size: clamp(1.2rem, 3vw, 1.5rem) !important;
}

.entry-content ul,
.entry-content ol,
.page-content ul,
.page-content ol,
.single-post .prose ul,
.single-post .prose ol,
.page .prose ul,
.page .prose ol,
.template-product-showcase .prose ul,
.template-product-showcase .prose ol,
.template-minimal .prose ul,
.template-minimal .prose ol,
.template-about-us .prose ul,
.template-about-us .prose ol,
.woocommerce .term-description ul,
.woocommerce .term-description ol {
	margin: 1rem 0 1.25rem 1.25rem !important;
	padding: 0 !important;
}

.entry-content li,
.page-content li,
.single-post .prose li,
.page .prose li,
.template-product-showcase .prose li,
.template-minimal .prose li,
.template-about-us .prose li,
.woocommerce .term-description li {
	margin-bottom: 0.55rem !important;
	font-size: 1.03rem !important;
	line-height: 1.75 !important;
}

.entry-content blockquote,
.page-content blockquote,
.single-post .prose blockquote,
.page .prose blockquote,
.template-product-showcase .prose blockquote,
.template-minimal .prose blockquote,
.template-about-us .prose blockquote,
.woocommerce .term-description blockquote {
	margin: 1.5rem 0 !important;
	padding: 1rem 1.2rem !important;
	border-left: 2px solid rgba(201, 169, 110, 0.55) !important;
	background: rgba(255, 255, 255, 0.02) !important;
	border-radius: 0.75rem !important;
}

.entry-content a,
.page-content a,
.single-post .prose a,
.page .prose a,
.template-product-showcase .prose a,
.template-minimal .prose a,
.template-about-us .prose a,
.woocommerce .term-description a {
	text-decoration: underline;
	text-decoration-color: rgba(201, 169, 110, 0.45);
	text-underline-offset: 0.15em;
}

/* Blog post FAQ section */
.veloris-post-faq .veloris-faq-item {
	border: 1px solid rgba(255, 255, 255, 0.08);
	transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.veloris-post-faq .veloris-faq-item[open] {
	border-color: rgba(201, 169, 110, 0.4);
	box-shadow: 0 0 0 1px rgba(201, 169, 110, 0.12) inset;
}

.veloris-post-faq .veloris-faq-item summary {
	list-style: none;
	position: relative;
	padding-right: 1.8rem;
}

.veloris-post-faq .veloris-faq-item summary::-webkit-details-marker {
	display: none;
}

.veloris-post-faq .veloris-faq-item summary::after {
	content: '+';
	position: absolute;
	right: 0;
	top: 0;
	color: #C9A96E;
	font-size: 1.25rem;
	line-height: 1;
}

.veloris-post-faq .veloris-faq-item[open] summary::after {
	content: '−';
}

/* Responsive */
@media (max-width: 768px) {
	html {
		font-size: 15px;
	}

	.container {
		padding: 0 1rem;
	}

	h1 {
		font-size: 2.25rem;
	}


/* Front page layout corrections */
.veloris-brand-hero-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 420px;
	text-align: center;
}

.veloris-social-proof-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: center;
	justify-items: center;
	gap: 2.25rem;
}

.veloris-social-proof-item {
	width: 100%;
	max-width: 340px;
}

.veloris-urgency-text {
	font-size: 1rem;
	line-height: 1.55;
	font-weight: 400;
}

@media (max-width: 900px) {
	.veloris-social-proof-grid {
		grid-template-columns: 1fr;
		gap: 1.4rem;
	}

	.veloris-social-proof-divider {
		display: none !important;
	}

	.veloris-brand-hero-content {
		min-height: 320px;
	}

	.veloris-urgency-text {
		font-size: 0.95rem;
	}
}
	h2 {
		font-size: 1.7rem;
	}

	h3 {
		font-size: 1.35rem;
	}

	p,
	li {
		font-size: 1.02rem;
		line-height: 1.8;
	}
	
	/* Mobile Grid */
	.lg\:grid-cols-2 {
		grid-template-columns: 1fr !important;
	}
	
	.md\:flex {
		display: none !important;
	}
	
	.md\:hidden {
		display: block !important;
	}
}

@media (max-width: 640px) {
	.hidden-mobile {
		display: none !important;
	}

	.grid {
		grid-template-columns: 1fr !important;
	}
	
	.sm\:flex-row {
		flex-direction: column !important;
	}
	
	.sm\:text-6xl {
		font-size: 2rem !important;
	}
}

/* Print Styles */
@media print {
	body {
		background-color: white;
		color: black;
	}

	.navbar,
	.footer,
	.no-print {
		display: none !important;
	}
}

/* Scrollbar Styles */
::-webkit-scrollbar {
	width: 6px;
}

::-webkit-scrollbar-track {
	background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
	background: #333;
	border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
	background: var(--color-accent);
}

/* Checkbox Custom Style */
.custom-checkbox input {
	display: none;
}

.custom-checkbox input + div {
	width: 1rem;
	height: 1rem;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 0.25rem;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.custom-checkbox input:checked + div {
	background-color: var(--color-accent);
	border-color: var(--color-accent);
}

.custom-checkbox input:checked + div iconify-icon {
	display: block;
	color: var(--color-bg);
}

/* Accessibility */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border-width: 0;
}

/* Focus Styles for Keyboard Navigation */
button:focus-visible,
a:focus-visible,
input:focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: 2px;
}

/* Loading State */
.loading {
	opacity: 0.6;
	pointer-events: none;
}

.loading::after {
	content: '';
	display: inline-block;
	width: 1rem;
	height: 1rem;
	border: 2px solid var(--color-accent);
	border-top-color: transparent;
	border-radius: 50%;
	animation: spin 0.6s linear infinite;
	margin-left: 0.5rem;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}
