/* ========================================
   MODERN PREMIUM CSS RESET & BASE STYLES
   ======================================== */

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

html {
	scroll-behavior: smooth;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body {
	padding: 0;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	line-height: 1.7;
	letter-spacing: 0.4px;
	color: #3d3d3d;
	background-color: #fafafa;
}

/* ========================================
   TYPOGRAPHY ENHANCEMENTS
   ======================================== */

h1, h2, h3, h4, h5, h6 {
	font-family: 'Playfair Display', serif;
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.8px;
	color: #1a1a1a;
	margin-bottom: 1.5rem;
}

h1 {
	font-size: clamp(2.5rem, 10vw, 4.5rem);
	margin-top: 0;
	font-weight: 700;
	letter-spacing: -1px;
	line-height: 1.1;
}

h2 {
	font-size: clamp(1.875rem, 6vw, 2.75rem);
	font-weight: 600;
	letter-spacing: -0.8px;
}

h3 {
	font-size: clamp(1.375rem, 4vw, 1.75rem);
	font-weight: 600;
	letter-spacing: -0.5px;
}

h4 {
	font-size: 1.25rem;
	font-weight: 600;
	letter-spacing: -0.3px;
}

p {
	color: #555555;
	font-size: 1rem;
	margin-bottom: 1.25rem;
	line-height: 1.85;
	font-weight: 400;
	letter-spacing: 0.3px;
}

p:last-child {
	margin-bottom: 0;
}

a {
	color: #a86a3d;
	text-decoration: none;
	transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

a:hover {
	color: #8a5230;
}

/* ========================================
   BUTTON STYLES WITH HOVER EFFECTS
   ======================================== */

button,
.btn,
a[class*="btn"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 1.1rem 2.25rem;
	font-size: 0.975rem;
	font-weight: 600;
	border: none;
	border-radius: 0.375rem;
	cursor: pointer;
	transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
	position: relative;
	overflow: hidden;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	box-shadow: 0 2px 12px rgba(168, 106, 61, 0.15);
}

button::before,
.btn::before,
a[class*="btn"]::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	transform: translate(-50%, -50%);
	transition: width 0.6s, height 0.6s;
}

button:active::before,
.btn:active::before,
a[class*="btn"]:active::before {
	width: 300px;
	height: 300px;
}

/* Primary Button */
button[type="submit"],
.btn-primary,
a.btn-primary {
	background: linear-gradient(135deg, #a86a3d 0%, #8a5230 100%);
	color: white;
	box-shadow: 0 6px 20px rgba(168, 106, 61, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.15);
	position: relative;
}

button[type="submit"]::after,
.btn-primary::after,
a.btn-primary::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0) 100%);
	border-radius: 0.375rem;
	pointer-events: none;
}

button[type="submit"]:hover,
.btn-primary:hover,
a.btn-primary:hover {
	background: linear-gradient(135deg, #8a5230 0%, #6d4028 100%);
	box-shadow: 0 12px 32px rgba(168, 106, 61, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
	transform: translateY(-3px);
}

button[type="submit"]:focus,
.btn-primary:focus,
a.btn-primary:focus {
	outline: none;
	box-shadow: 0 0 0 4px rgba(168, 106, 61, 0.2), 0 12px 32px rgba(168, 106, 61, 0.35);
}

button[type="submit"]:active,
.btn-primary:active {
	transform: translateY(-1px);
	box-shadow: 0 4px 15px rgba(168, 106, 61, 0.3);
}

/* Secondary Button */
.btn-secondary {
	background: transparent;
	color: #a86a3d;
	border: 2.5px solid #a86a3d;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	font-weight: 700;
	transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-secondary:hover {
	background: #a86a3d;
	color: white;
	border-color: #a86a3d;
	box-shadow: 0 8px 24px rgba(168, 106, 61, 0.3);
	transform: translateY(-2px);
}

.btn-secondary:focus {
	outline: none;
	box-shadow: 0 0 0 4px rgba(168, 106, 61, 0.2);
}

/* ========================================
   CARD COMPONENTS
   ======================================== */

.card {
	max-width: 620px;
	margin: 0 auto;
	padding: 2.5rem;
	background: white;
	border: 1px solid #e0e0e0;
	border-radius: 0.75rem;
	transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8);
	position: relative;
	overflow: hidden;
}

.card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(168, 106, 61, 0.2), transparent);
	pointer-events: none;
}

.card:hover {
	border-color: #d4b08a;
	box-shadow: 0 20px 48px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.8);
	transform: translateY(-8px);
}

.card p:last-child {
	margin-bottom: 0;
}

/* ========================================
   SECTION SPACING & RESPONSIVE LAYOUT
   ======================================== */

section {
	transition: background-color 0.3s ease;
	padding: 4rem 0;
}

/* Premium spacing scale */
.space-xs { margin-bottom: 0.75rem; }
.space-sm { margin-bottom: 1.25rem; }
.space-md { margin-bottom: 2rem; }
.space-lg { margin-bottom: 3rem; }
.space-xl { margin-bottom: 4.5rem; }

/* Padding utilities */
.p-xs { padding: 0.75rem; }
.p-sm { padding: 1.25rem; }
.p-md { padding: 2rem; }
.p-lg { padding: 3rem; }
.p-xl { padding: 4.5rem; }

@media (max-width: 768px) {
	body {
		font-size: 16px;
	}

	section {
		padding: 2.5rem 0;
	}

	h1 {
		font-size: clamp(1.75rem, 7vw, 2.25rem);
		margin-bottom: 1.25rem;
	}

	h2 {
		font-size: clamp(1.375rem, 5vw, 1.875rem);
	}

	h3 {
		font-size: 1.25rem;
	}

	p {
		font-size: 0.975rem;
		line-height: 1.7;
	}

	.card {
		padding: 1.875rem;
	}
}

/* ========================================
   ANIMATIONS & TRANSITIONS
   ======================================== */

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(40px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes fadeInDown {
	from {
		opacity: 0;
		transform: translateY(-40px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes slideInLeft {
	from {
		opacity: 0;
		transform: translateX(-60px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes slideInRight {
	from {
		opacity: 0;
		transform: translateX(60px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes scaleIn {
	from {
		opacity: 0;
		transform: scale(0.92);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

@keyframes shimmer {
	0% {
		background-position: -1000px 0;
	}
	100% {
		background-position: 1000px 0;
	}
}

@keyframes floatIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.animate-fade-in-up {
	animation: fadeInUp 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.animate-fade-in-down {
	animation: fadeInDown 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.animate-slide-in-left {
	animation: slideInLeft 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.animate-slide-in-right {
	animation: slideInRight 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.animate-scale-in {
	animation: scaleIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.animate-float-in {
	animation: floatIn 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
	body {
		background: white;
		padding: 0;
	}

	a {
		text-decoration: underline;
	}

	button,
	.btn {
		display: none;
	}
}

/* ========================================
   STICKY HEADER ENHANCEMENTS
   ======================================== */

custom-navbar {
	position: sticky;
	top: 0;
	z-index: 10000;

	animation: fadeInDown 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
	box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

/* Smooth transitions when scrolling */
::-webkit-scrollbar {
	width: 12px;
	height: 12px;
}

::-webkit-scrollbar-track {
	background: #f0f0f0;
}

::-webkit-scrollbar-thumb {
	background: linear-gradient(180deg, #a86a3d, #8a5230);
	border-radius: 6px;
	transition: background 0.3s ease;
	box-shadow: inset 0 0 2px rgba(255, 255, 255, 0.2);
}

::-webkit-scrollbar-thumb:hover {
	background: linear-gradient(180deg, #8a5230, #6d4028);
}

.gallery-grid,
.portfolio-grid,
.service-grid {
	display: grid;
	gap: 2rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Responsive grids */
@media (min-width: 640px) {
	.gallery-grid {
		grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	}

	.portfolio-grid {
		grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	}

	.service-grid {
		grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	}
}

@media (min-width: 1024px) {
	.gallery-grid {
		grid-template-columns: repeat(4, 1fr);
		gap: 2.5rem;
	}

	.portfolio-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 2.5rem;
	}

	.service-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 2.5rem;
	}
}

/* Gallery Item */
.gallery-item,
.portfolio-item {
	position: relative;
	overflow: hidden;
	border-radius: 0.75rem;
	aspect-ratio: 4/3;
	cursor: pointer;
	transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
}

.gallery-item:hover,
.portfolio-item:hover {
	box-shadow: 0 24px 56px rgba(0, 0, 0, 0.2), 0 4px 12px rgba(0, 0, 0, 0.1);
	transform: translateY(-8px);
}

.gallery-item img,
.portfolio-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gallery-item:hover img,
.portfolio-item:hover img {
	transform: scale(1.12);
}

/* ========================================
   FORM STYLES
   ======================================== */

input,
textarea,
select {
	width: 100%;
	padding: 1.125rem 1.25rem;
	font-family: inherit;
	font-size: 1rem;
	border: 1.5px solid #d8d8d8;
	border-radius: 0.5rem;
	transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
	background-color: #fafafa;
	letter-spacing: 0.2px;
}

input:focus,
textarea:focus,
select:focus {
	outline: none;
	border-color: #a86a3d;
	box-shadow: 0 0 0 4px rgba(168, 106, 61, 0.12), inset 0 1px 2px rgba(0, 0, 0, 0.05);
	background-color: #fff9f5;
}

input::placeholder,
textarea::placeholder {
	color: #b8b8b8;
	font-weight: 400;
	letter-spacing: 0.2px;
}

label {
	display: block;
	margin-bottom: 0.75rem;
	font-weight: 600;
	color: #3d3d3d;
	font-size: 0.975rem;
	letter-spacing: 0.3px;
}

textarea {
	resize: vertical;
	min-height: 120px;
}

/* ========================================
   LINK & TEXT UTILITIES
   ======================================== */

.text-link {
	color: #a86a3d;
	font-weight: 700;
	position: relative;
	display: inline-block;
	transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
	letter-spacing: 0.4px;
}

.text-link::after {
	content: '';
	position: absolute;
	bottom: -3px;
	left: 0;
	width: 0;
	height: 2.5px;
	background: linear-gradient(90deg, #a86a3d, #8a5230);
	transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.text-link:hover::after {
	width: 100%;
}

.text-link:hover {
	color: #8a5230;
}

.text-muted {
	color: #888888;
	font-weight: 500;
	letter-spacing: 0.3px;
}

.text-light {
	color: #a8a8a8;
	font-weight: 400;
	letter-spacing: 0.2px;
}

.text-center {
	text-align: center;
}

/* ========================================
   SHADOW & DEPTH UTILITIES
   ======================================== */

.shadow-sm {
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.shadow-md {
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.06);
}

.shadow-lg {
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.08);
}

.shadow-xl {
	box-shadow: 0 20px 52px rgba(0, 0, 0, 0.2), 0 6px 16px rgba(0, 0, 0, 0.1);
}

.shadow-2xl {
	box-shadow: 0 28px 64px rgba(0, 0, 0, 0.25), 0 8px 20px rgba(0, 0, 0, 0.12);
}

.shadow-none {
	box-shadow: none;
}

/* ========================================
   BORDER & RADIUS UTILITIES
   ======================================== */

.rounded-none {
	border-radius: 0;
}

.rounded-sm {
	border-radius: 0.375rem;
}

.rounded-md {
	border-radius: 0.625rem;
}

.rounded-lg {
	border-radius: 1.25rem;
}

.rounded-full {
	border-radius: 9999px;
}

/* ========================================
   DISPLAY & VISIBILITY
   ======================================== */

.hidden {
	display: none !important;
}

.invisible {
	visibility: hidden;
}

.block {
	display: block;
}

.inline {
	display: inline;
}

.inline-block {
	display: inline-block;
}

.flex {
	display: flex;
}

.grid {
	display: grid;
}

/* Mobile-first responsive classes */
@media (max-width: 640px) {
	.hidden\:mobile {
		display: none;
	}
}

@media (min-width: 641px) {
	.hidden\:tablet {
		display: none;
	}
}

@media (min-width: 1024px) {
	.hidden\:desktop {
		display: none;
	}
}

/* ========================================
   PREMIUM DIVIDERS & SEPARATORS
   ======================================== */

.divider {
	height: 1.5px;
	background: linear-gradient(90deg, transparent, #d1d1d1 20%, #d1d1d1 80%, transparent);
	margin: 2.5rem 0;
	animation: fadeInUp 1s ease-out;
}

.divider-sm {
	margin: 1.5rem 0;
}

.divider-lg {
	margin: 4rem 0;
	height: 1.5px;
}

/* ========================================
   OVERLAY & GRADIENT UTILITIES
   ======================================== */

.overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.25);
	transition: background 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.overlay:hover {
	background: rgba(0, 0, 0, 0.35);
}

.gradient-primary {
	background: linear-gradient(135deg, #a86a3d 0%, #8a5230 100%);
	color: white;
}

.gradient-secondary {
	background: linear-gradient(135deg, #f5ede0 0%, #e8d4b8 100%);
}

/* ========================================
   TRANSITIONS & TRANSFORMS
   ======================================== */

.transition-all {
	transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.transition-colors {
	transition: background-color, border-color, color 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.transition-transform {
	transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.transform-gpu {
	transform: translateZ(0);
	backface-visibility: hidden;
	-webkit-font-smoothing: antialiased;
}

.hover\:scale-105:hover {
	transform: scale(1.05);
}

.hover\:scale-110:hover {
	transform: scale(1.1);
}

.hover\:translate-y-neg-2:hover {
	transform: translateY(-2px);
}

.hover\:translate-y-neg-4:hover {
	transform: translateY(-4px);
}

.hover\:translate-y-neg-8:hover {
	transform: translateY(-8px);
}

/* ========================================
   FOCUS & ACCESSIBILITY
   ======================================== */

*:focus-visible {
	outline: 2.5px solid #a86a3d;
	outline-offset: 3px;
}

button:disabled,
button[disabled] {
	opacity: 0.55;
	cursor: not-allowed;
}

/* Enhance text selection */
::selection {
	background: #a86a3d;
	color: white;
	text-shadow: none;
}

/* ========================================
   RESPONSIVE MEDIA QUERIES
   ======================================== */

@media (max-width: 480px) {
	html {
		font-size: 14px;
	}

	body {
		padding: 0;
		line-height: 1.65;
	}

	h1 {
		font-size: clamp(1.625rem, 6vw, 1.875rem);
		letter-spacing: -0.8px;
	}

	h2 {
		font-size: clamp(1.25rem, 4vw, 1.375rem);
	}

	button,
	.btn {
		padding: 0.95rem 1.75rem;
		font-size: 0.925rem;
		letter-spacing: 0.6px;
	}

	.gallery-grid,
	.portfolio-grid,
	.service-grid {
		gap: 1.25rem;
	}

	section {
		padding: 2rem 0;
	}
}

@media (min-width: 481px) and (max-width: 768px) {
	.gallery-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 1.5rem;
	}

	.portfolio-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 1.5rem;
	}

	.service-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 1.5rem;
	}
}

@media (min-width: 769px) {
	body {
		padding: 0;
	}
}

/* Add these to style.css for advanced effects */

/* Gallery Card Advanced Hover */
.project-card {
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, #262626 0%, #3d3d3d 100%);
}

/* Masonry-like grid variation (optional) */
@supports (grid-template-rows: masonry) {
    .projects-masonry {
        grid-template-rows: masonry;
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .projects-masonry .project-card:nth-child(3n+2) {
        transform: translateY(2rem);
    }
    
    .projects-masonry .project-card:nth-child(3n) {
        transform: translateY(4rem);
    }
}

/* Alternative: CSS Grid with auto placement */
.projects-grid-advanced {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    auto-rows: 400px;
    grid-auto-flow: dense;
    gap: 2rem;
}

.projects-grid-advanced .project-card:nth-child(6n+1) {
    grid-column: span 2;
    grid-row: span 2;
}

/* Smooth Image Transitions */
.project-card img {
    transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform;
}

/* Premium Focus State */
.project-card:focus-within {
    outline: 3px solid var(--wood-500);
    outline-offset: -3px;
}

/* Loading States (if adding dynamic content) */
.project-card.loading {
    background: linear-gradient(90deg, #262626, #3d3d3d, #262626);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* ========================================
   STOLARSTWO PREMIUM THEME (NON-FESTYN)
   ======================================== */

:root {
	--wood-premium-50: #f6f2eb;
	--wood-premium-100: #ebdfcf;
	--wood-premium-500: #9a623a;
	--wood-premium-700: #6b4329;
	--ink-premium: #2f2c29;
}

body.stolarstwo-premium {
	background: var(--wood-premium-50);
	color: var(--ink-premium);
}

body.stolarstwo-premium p {
	color: #5c5650;
}

body.stolarstwo-premium section[class*="py-16"],
body.stolarstwo-premium section[class*="py-20"],
body.stolarstwo-premium section[class*="py-24"] {
	padding-top: clamp(4.5rem, 7vw, 6.75rem) !important;
	padding-bottom: clamp(4.5rem, 7vw, 6.75rem) !important;
}

body.stolarstwo-premium .font-display {
	letter-spacing: -0.03em;
	text-wrap: balance;
}

body.stolarstwo-premium section.relative.min-h-screen .absolute.inset-0.bg-gradient-to-r {
	background: linear-gradient(96deg, rgba(18, 16, 15, 0.93) 0%, rgba(33, 30, 27, 0.72) 46%, rgba(33, 30, 27, 0.22) 100%) !important;
}

body.stolarstwo-premium a[class*="bg-wood-"],
body.stolarstwo-premium button[class*="bg-wood-"] {
	border-radius: 0.45rem;
	box-shadow: 0 12px 28px rgba(107, 67, 41, 0.22);
	transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

body.stolarstwo-premium a[class*="bg-wood-"]:hover,
body.stolarstwo-premium button[class*="bg-wood-"]:hover {
	transform: translateY(-2px);
	box-shadow: 0 16px 34px rgba(107, 67, 41, 0.28);
	filter: saturate(1.05);
}

body.stolarstwo-premium .group.bg-wood-50,
body.stolarstwo-premium article[class*="from-wood-50"] {
	border: 1px solid rgba(154, 98, 58, 0.14);
	box-shadow: 0 8px 24px rgba(22, 18, 13, 0.08);
}

body.stolarstwo-premium .group.bg-wood-50:hover,
body.stolarstwo-premium article[class*="from-wood-50"]:hover {
	box-shadow: 0 18px 40px rgba(22, 18, 13, 0.14);
}

body.stolarstwo-premium .bg-wood-50 {
	background-color: var(--wood-premium-50);
}

body.stolarstwo-premium .text-wood-600,
body.stolarstwo-premium .text-wood-500 {
	color: var(--wood-premium-700) !important;
}

body.stolarstwo-premium .border-wood-200,
body.stolarstwo-premium .border-wood-300 {
	border-color: rgba(154, 98, 58, 0.24) !important;
}

body.stolarstwo-premium custom-navbar {
	box-shadow: 0 3px 18px rgba(17, 15, 13, 0.24);
}

/* ========================================
   THEME & ACCESSIBILITY LAYER
   ======================================== */

section {
	scroll-margin-top: 88px;
}

.stolarz-theme h1,
.stolarz-theme h2,
.stolarz-theme h3,
.stolarz-theme .font-display {
	letter-spacing: -0.03em;
	text-wrap: balance;
}

.stolarz-theme p {
	max-width: 72ch;
}

.festyn-theme .font-festive,
.festyn-theme h1,
.festyn-theme h2,
.festyn-theme h3 {
	letter-spacing: -0.015em;
}

/* CTA shimmer effect on hover */
a[class*="bg-wood-"],
a[class*="bg-festyn-"],
button[class*="bg-wood-"],
button[class*="bg-festyn-"],
button[type="submit"] {
	position: relative;
	overflow: hidden;
}

a[class*="bg-wood-"]::before,
a[class*="bg-festyn-"]::before,
button[class*="bg-wood-"]::before,
button[class*="bg-festyn-"]::before,
button[type="submit"]::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(120deg, rgba(255, 255, 255, 0) 25%, rgba(255, 255, 255, 0.18) 50%, rgba(255, 255, 255, 0) 75%);
	transform: translateX(-130%);
	transition: transform 0.7s ease;
	pointer-events: none;
}

a[class*="bg-wood-"]:hover::before,
a[class*="bg-festyn-"]:hover::before,
button[class*="bg-wood-"]:hover::before,
button[class*="bg-festyn-"]:hover::before,
button[type="submit"]:hover::before {
	transform: translateX(130%);
}

/* Form background for themed sections */
.bg-wood-50 form,
[class*="bg-festyn-cream"] form {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.38));
	border-radius: 12px;
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ========================================
   PREMIUM UI AUDIT UPGRADE (GLOBAL OVERRIDES)
   No class names or layout structure changed.
   ======================================== */

/* 1) Design tokens: shadow system, spacing scale, transition presets */
:root {
	--shadow-xs: 0 2px 8px rgba(17, 15, 13, 0.06);
	--shadow-sm: 0 6px 16px rgba(17, 15, 13, 0.08);
	--shadow-md: 0 12px 28px rgba(17, 15, 13, 0.12);
	--shadow-lg: 0 20px 44px rgba(17, 15, 13, 0.16);
	--shadow-xl: 0 28px 60px rgba(17, 15, 13, 0.2);
	--shadow-inset-soft: inset 0 1px 0 rgba(255, 255, 255, 0.6);

	--space-2xs: 0.5rem;
	--space-xs: 0.75rem;
	--space-sm: 1rem;
	--space-md: 1.5rem;
	--space-lg: 2rem;
	--space-xl: 3rem;
	--space-2xl: 4.5rem;
	--space-3xl: 6rem;

	--t-fast: 0.2s cubic-bezier(0.22, 1, 0.36, 1);
	--t-base: 0.28s cubic-bezier(0.22, 1, 0.36, 1);
	--t-slow: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 2) Typography hierarchy and readability */
body {
	line-height: 1.78;
	letter-spacing: 0.015em;
	text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
	line-height: 1.14;
	margin-bottom: var(--space-md);
	text-wrap: balance;
}

h1 {
	margin-bottom: var(--space-lg);
}

h2 {
	margin-bottom: calc(var(--space-md) + 0.125rem);
}

h3 {
	margin-bottom: var(--space-sm);
}

p {
	line-height: 1.86;
	margin-bottom: var(--space-md);
	max-width: 72ch;
}

/* 3) Buttons: premium weight, active states, micro transitions */
button,
.btn,
a[class*="btn"] {
	transition: transform var(--t-base), box-shadow var(--t-base), filter var(--t-fast), background-color var(--t-base), color var(--t-base);
	box-shadow: var(--shadow-sm), var(--shadow-inset-soft);
}

button:hover,
.btn:hover,
a[class*="btn"]:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-md), var(--shadow-inset-soft);
}

button:active,
.btn:active,
a[class*="btn"]:active {
	transform: translateY(0);
	filter: brightness(0.98);
}

button:focus-visible,
.btn:focus-visible,
a[class*="btn"]:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(168, 106, 61, 0.2), var(--shadow-md);
}

/* 4) Images: cinematic presentation, gradient overlays, subtle zoom */
.gallery-item,
.portfolio-item,
section article {
	position: relative;
	isolation: isolate;
}

.gallery-item::after,
.portfolio-item::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(11, 11, 11, 0) 46%, rgba(11, 11, 11, 0.36) 100%);
	opacity: 0;
	transition: opacity var(--t-base);
	pointer-events: none;
}

.gallery-item:hover::after,
.portfolio-item:hover::after {
	opacity: 1;
}

.gallery-item img,
.portfolio-item img,
section article img {
	transition: transform var(--t-slow), filter var(--t-base);
	transform-origin: center center;
}

.gallery-item:hover img,
.portfolio-item:hover img,
section article:hover img {
	transform: scale(1.045);
	filter: saturate(1.04) contrast(1.02);
}

/* 5) Sections: rhythm and visual separation */
section {
	padding-top: clamp(var(--space-xl), 6vw, var(--space-3xl));
	padding-bottom: clamp(var(--space-xl), 6vw, var(--space-3xl));
	transition: background-color var(--t-base);
	position: relative;
}

section + section::before {
	content: '';
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: min(1200px, 92vw);
	height: 1px;
	background: linear-gradient(90deg, rgba(0, 0, 0, 0), rgba(61, 61, 61, 0.12) 25%, rgba(61, 61, 61, 0.12) 75%, rgba(0, 0, 0, 0));
	pointer-events: none;
}

/* 1) + 5) Elevated cards and layered depth */
.card,
article[class*="from-wood-"],
article[class*="from-festyn-"],
article.group {
	box-shadow: var(--shadow-sm);
	border-color: rgba(61, 61, 61, 0.08);
	transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}

.card:hover,
article[class*="from-wood-"]:hover,
article[class*="from-festyn-"]:hover,
article.group:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-lg);
	border-color: rgba(168, 106, 61, 0.24);
}

/* 6) Premium motion system */
a,
.text-link,
input,
textarea,
select,
.shadow-sm,
.shadow-md,
.shadow-lg,
.shadow-xl,
.shadow-2xl {
	transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

.animate-fade-in-up,
.animate-fade-in-down,
.animate-slide-in-left,
.animate-slide-in-right,
.animate-scale-in,
.animate-float-in {
	animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

/* 7) Sticky navigation polish */
custom-navbar {
	backdrop-filter: blur(10px) saturate(1.08);
	-webkit-backdrop-filter: blur(10px) saturate(1.08);
	box-shadow: 0 8px 24px rgba(17, 15, 13, 0.14);
	border-bottom: 1px solid rgba(212, 176, 138, 0.16);
}

/* 8) Form UI polish */
input,
textarea,
select {
	border-width: 1.5px;
	border-color: rgba(61, 61, 61, 0.16);
	background-color: #fcfcfc;
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65) inset;
	transition: border-color var(--t-fast), box-shadow var(--t-fast), background-color var(--t-fast), transform var(--t-fast);
}

input:hover,
textarea:hover,
select:hover {
	border-color: rgba(168, 106, 61, 0.34);
}

input:focus,
textarea:focus,
select:focus {
	transform: translateY(-1px);
	background-color: #fff;
	box-shadow: 0 0 0 4px rgba(168, 106, 61, 0.13), 0 8px 22px rgba(17, 15, 13, 0.08);
}

label {
	letter-spacing: 0.02em;
	margin-bottom: 0.6rem;
}

/* 9) Mobile refinement */
@media (max-width: 768px) {
	body {
		line-height: 1.7;
		letter-spacing: 0.012em;
	}

	section {
		padding-top: clamp(2.8rem, 8vw, 4rem) !important;
		padding-bottom: clamp(2.8rem, 8vw, 4rem) !important;
	}

	h1 {
		line-height: 1.1;
	}

	p {
		max-width: 100%;
	}

	.card,
	article[class*="from-wood-"],
	article[class*="from-festyn-"],
	article.group {
		box-shadow: var(--shadow-sm);
	}

	.gallery-item:hover img,
	.portfolio-item:hover img,
	section article:hover img {
		transform: scale(1.025);
	}

	button,
	.btn,
	a[class*="btn"] {
		min-height: 44px;
	}

	custom-navbar {
		box-shadow: 0 6px 18px rgba(17, 15, 13, 0.16);
	}
}

@media (max-width: 480px) {
	:root {
		--space-xl: 2.4rem;
		--space-2xl: 3.2rem;
	}

	button,
	.btn {
		padding: 0.92rem 1.3rem;
	}
}

/* 10) Project-wide responsive hardening (phones, tablets, laptops) */
html,
body {
	max-width: 100%;
	overflow-x: clip;
}

img,
picture,
video,
canvas,
svg {
	max-width: 100%;
	height: auto;
}

iframe {
	max-width: 100%;
}

table {
	display: block;
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

button,
.btn,
a[class*="btn"] {
	white-space: normal;
	text-wrap: balance;
}

@media (max-width: 1200px) {
	section {
		padding-top: clamp(3.2rem, 5vw, 4.4rem) !important;
		padding-bottom: clamp(3.2rem, 5vw, 4.4rem) !important;
	}

	.card {
		padding: 2rem;
	}
}

@media (max-width: 1024px) {
	section + section::before {
		width: min(980px, 88vw);
	}

	h1 {
		font-size: clamp(2rem, 7vw, 3.2rem);
	}

	h2 {
		font-size: clamp(1.6rem, 5vw, 2.3rem);
	}

	p {
		font-size: 0.98rem;
		line-height: 1.75;
	}

	/* Keep dense desktop grids readable on tablets */
	.grid.grid-cols-4,
	.grid.grid-cols-5,
	.grid.grid-cols-6 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 768px) {
	/* Prevent iOS zoom on focus */
	input,
	textarea,
	select {
		font-size: 16px !important;
	}

	.card {
		padding: 1.4rem;
		border-radius: 0.65rem;
	}

	/* Collapse utility heavy desktop grids to 1-2 cols on phones */
	.grid.grid-cols-3,
	.grid.grid-cols-4,
	.grid.grid-cols-5,
	.grid.grid-cols-6,
	.grid[class*="lg:grid-cols-3"],
	.grid[class*="lg:grid-cols-4"],
	.grid[class*="md:grid-cols-4"] {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.grid.grid-cols-2,
	.grid.grid-cols-3,
	.grid.grid-cols-4,
	.grid.grid-cols-5,
	.grid.grid-cols-6,
	.grid[class*="sm:grid-cols-2"],
	.grid[class*="md:grid-cols-2"],
	.grid[class*="md:grid-cols-3"],
	.grid[class*="lg:grid-cols-3"] {
		grid-template-columns: minmax(0, 1fr);
	}

	button[type="submit"],
	.btn,
	a[class*="btn"] {
		width: 100%;
	}

	/* Pill filter buttons must stay auto-width — never stretch full-width */
	.filter-btn,
	button[data-filter] {
		width: auto !important;
		flex-shrink: 0;
	}
}
