/* =========================================================
   ITMP — Design tokens & color themes
   Switch: html[data-theme="default|light|night|retro"]
   ========================================================= */

/* Shared layout / typography (all themes) */
:root {
	--font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--font-size-base: 16px;
	--line-height-base: 1.6;
	--container-width: 1200px;
	--spacing-sm: 8px;
	--spacing-md: 16px;
	--spacing-lg: 32px;
	--spacing-xl: 64px;
	/* Breakpoints (użycie w media queries komponentów) */
	--bp-sm: 480px;
	--bp-md: 768px;
	--bp-lg: 1024px;
	--bp-xl: 1280px;
}

/* Token map per theme */
:root,
[data-theme="default"] {
	color-scheme: light;
	--color-bg: #ffffff;
	--color-text: #1a1a1a;
	--color-text-muted: #666666;
	--color-primary: #0ea5e9;
	--color-primary-hover: #0284c7;
	--color-secondary: #f59e0b;
	--color-on-primary: #ffffff;
	--color-surface: #f8f9fa;
	--color-surface-alt: #f0f4ff;
	--color-border: #e0e4e8;
	--color-input-bg: #f8f8f8;
	--color-input-border: #e0e0e0;
	--color-focus-ring: color-mix(in srgb, var(--color-primary) 25%, transparent);
	--color-success-bg: #e8f5e9;
	--color-success-text: #2e7d32;
	--color-success-border: #a5d6a7;
	--color-error-bg: #ffebee;
	--color-error-text: #c62828;
	--color-error-border: #ef9a9a;
	--color-nav-bg: #111111;
	--color-nav-text: #ffffff;
	--color-nav-text-muted: rgba(255, 255, 255, 0.65);
	--color-nav-border: rgba(255, 255, 255, 0.08);
	--color-backdrop: rgba(0, 0, 0, 0.55);
	--color-header-border: color-mix(in srgb, var(--color-text) 8%, transparent);
	--color-shadow: color-mix(in srgb, var(--color-text) 12%, transparent);
	--color-placeholder: #aaaaaa;
	--color-gallery-placeholder: #f0f0f0;
}

[data-theme="light"] {
	color-scheme: light;
	--color-bg: #fafbfc;
	--color-text: #2d3748;
	--color-text-muted: #718096;
	--color-primary: #2563eb;
	--color-primary-hover: #1d4ed8;
	--color-secondary: #0d9488;
	--color-on-primary: #ffffff;
	--color-surface: #f1f5f9;
	--color-surface-alt: #e0f2fe;
	--color-border: #cbd5e1;
	--color-input-bg: #ffffff;
	--color-input-border: #cbd5e1;
	--color-focus-ring: color-mix(in srgb, var(--color-primary) 22%, transparent);
	--color-success-bg: #ecfdf5;
	--color-success-text: #047857;
	--color-success-border: #6ee7b7;
	--color-error-bg: #fef2f2;
	--color-error-text: #b91c1c;
	--color-error-border: #fca5a5;
	--color-nav-bg: #1e293b;
	--color-nav-text: #f8fafc;
	--color-nav-text-muted: rgba(248, 250, 252, 0.7);
	--color-nav-border: rgba(248, 250, 252, 0.12);
	--color-backdrop: rgba(15, 23, 42, 0.5);
	--color-header-border: color-mix(in srgb, var(--color-text) 10%, transparent);
	--color-shadow: color-mix(in srgb, var(--color-text) 10%, transparent);
	--color-placeholder: #94a3b8;
	--color-gallery-placeholder: #e2e8f0;
}

[data-theme="night"] {
	color-scheme: dark;
	--color-bg: #0f1419;
	--color-text: #e8eaed;
	--color-text-muted: #b8c0c8;
	--color-primary: #6eb3ff;
	--color-primary-hover: #4d9fff;
	--color-secondary: #ffb07a;
	--color-on-primary: #0a0e12;
	--color-surface: #1a2129;
	--color-surface-alt: #232d3a;
	--color-border: #3c4450;
	--color-input-bg: #1a2129;
	--color-input-border: #3c4450;
	--color-focus-ring: color-mix(in srgb, var(--color-primary) 35%, transparent);
	--color-success-bg: #1b3d2f;
	--color-success-text: #81c995;
	--color-success-border: #2e6b4a;
	--color-error-bg: #3d1f1f;
	--color-error-text: #f28b82;
	--color-error-border: #8b4545;
	--color-nav-bg: #0a0e12;
	--color-nav-text: #e8eaed;
	--color-nav-text-muted: rgba(232, 234, 237, 0.65);
	--color-nav-border: rgba(232, 234, 237, 0.1);
	--color-backdrop: rgba(0, 0, 0, 0.72);
	--color-header-border: color-mix(in srgb, var(--color-text) 12%, transparent);
	--color-shadow: rgba(0, 0, 0, 0.45);
	--color-placeholder: #6b7280;
	--color-gallery-placeholder: #2a323c;
}

[data-theme="retro"] {
	color-scheme: light;
	--color-bg: #f4ecd8;
	--color-text: #3d2914;
	--color-text-muted: #5a4536;
	--color-primary: #6d3810;
	--color-primary-hover: #552c0c;
	--color-secondary: #c45c26;
	--color-on-primary: #fff8f0;
	--color-surface: #ebe3cf;
	--color-surface-alt: #e8d4b8;
	--color-border: #c4a882;
	--color-input-bg: #faf6ee;
	--color-input-border: #c4a882;
	--color-focus-ring: color-mix(in srgb, var(--color-primary) 28%, transparent);
	--color-success-bg: #e6f0e0;
	--color-success-text: #3d5c2e;
	--color-success-border: #9cb88a;
	--color-error-bg: #f5e0d8;
	--color-error-text: #8b3a2a;
	--color-error-border: #d4a090;
	--color-nav-bg: #3d2914;
	--color-nav-text: #f4ecd8;
	--color-nav-text-muted: rgba(244, 236, 216, 0.72);
	--color-nav-border: rgba(244, 236, 216, 0.15);
	--color-backdrop: rgba(61, 41, 20, 0.55);
	--color-header-border: color-mix(in srgb, var(--color-text) 15%, transparent);
	--color-shadow: color-mix(in srgb, var(--color-text) 18%, transparent);
	--color-placeholder: #9a7b5c;
	--color-gallery-placeholder: #ddd0b8;
}

/* Reset / base */
*, *::before, *::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	padding: 0;
	font-family: var(--font-primary);
	font-size: var(--font-size-base);
	line-height: var(--line-height-base);
	color: var(--color-text);
	background-color: var(--color-bg);
}

@media (prefers-reduced-motion: no-preference) {
	body {
		transition: background-color 0.25s ease, color 0.25s ease;
	}
}

/* Focus — dostępność klawiatury */
:focus {
	outline: none;
}

:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
	outline-color: var(--color-primary);
}

@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;
	}
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--color-primary);
	text-decoration: none;
	transition: color 0.2s ease;
}

a:hover {
	color: var(--color-secondary);
}

.container {
	width: 100%;
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 var(--spacing-md);
}


/* Site footer */
.site-footer {
	margin-top: var(--spacing-xl);
	background: color-mix(in srgb, var(--color-text) 6%, var(--color-bg));
	border-top: 1px solid color-mix(in srgb, var(--color-text) 10%, transparent);
}

.site-footer__inner {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: var(--spacing-lg);
	padding-top: var(--spacing-xl);
	padding-bottom: var(--spacing-lg);
}

.site-footer__org {
	margin: 0 0 var(--spacing-sm);
	font-size: 1.125rem;
	font-weight: 700;
}

.site-footer__address {
	margin: 0;
	font-style: normal;
	font-size: 0.9375rem;
	line-height: 1.5;
	color: var(--color-text-muted);
}

.site-footer__heading {
	margin: 0 0 var(--spacing-sm);
	font-size: 0.875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.site-footer__list,
.site-footer__social-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__list li,
.site-footer__social-list li {
	margin-bottom: var(--spacing-sm);
}

.site-footer__social-list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--spacing-sm) var(--spacing-md);
}

@media (min-width: 768px) {
	.site-footer__social-list {
		flex-direction: column;
	}
}

.site-footer__bottom {
	padding: var(--spacing-md) 0;
	border-top: 1px solid color-mix(in srgb, var(--color-text) 10%, transparent);
}

/* Screen reader text (accessibility) */
.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 !important;
	width: 1px;
	word-wrap: normal !important;
}
.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 14px;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

.site-footer__copyright {
	margin: 0;
	font-size: 0.875rem;
	color: var(--color-text-muted);
	text-align: center;
}

/* =========================================================
   ITMP - Premium Aesthetics & MagosClean Custom Styles
   ========================================================= */

/* Fix Logo Size */
.custom-logo {
	max-height: 80px;
	width: auto;
	max-width: 250px;
	object-fit: contain;
}

.site-header {
	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
	position: sticky;
	top: 0;
	z-index: 1000;
}
[data-theme="night"] .site-header {
	background: rgba(15, 20, 25, 0.9);
}

/* 
 * Custom Button 
 * From Uiverse.io by adamgiebl - FIXED SIZING
 */
.button-pro {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8em 1.5em;
  gap: 0.6rem;
  border: none;
  font-weight: bold;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.4);
  background: linear-gradient(
      15deg,
      #0f172a,
      #0369a1,
      #0284c7,
      #0ea5e9,
      #38bdf8,
      #7dd3fc,
      #38bdf8,
      #0ea5e9,
      #0284c7,
      #0369a1,
      #0f172a
    )
    no-repeat;
  background-size: 300% 100%;
  background-position: left center;
  transition: background 0.5s ease;
  color: #fff !important;
  margin-top: auto;
}

.button-pro:hover {
  background-position: right center;
  color: #fff !important;
}

.button-pro:hover svg {
  fill: #fff;
}

.button-pro svg {
  width: 23px;
  fill: #bae6fd;
  transition: 0.3s ease;
}

/* =========================================================
   ITMP - Desktop Menu & Header Fixes
   ========================================================= */

body {
	padding-top: 100px !important;
}

.site-header__inner {
	height: auto !important;
	min-height: 100px !important;
	padding: 15px 0;
	display: flex;
	align-items: center;
	justify-content: space-between !important;
}

.custom-logo-link {
	display: flex;
	align-items: center;
	height: 100%;
}

.custom-logo {
	max-height: 80px !important;
	width: auto !important;
	height: auto !important;
	object-fit: contain;
	display: block;
}

@media (min-width: 1024px) {
	/* Hide hamburger on desktop */
	.nav-toggle {
		display: none !important;
	}
	
	/* Force overlay menu to behave like a normal inline menu */
	.c-nav-overlay {
		position: static !important;
		width: auto !important;
		height: auto !important;
		background: transparent !important;
		transform: none !important;
		display: flex !important;
		flex-direction: row !important;
		overflow: visible !important;
		order: 2 !important;
		margin-left: auto !important;
	}
	
	.header-actions {
		margin-left: 20px !important;
	}

	.c-nav-overlay__inner {
		padding: 0 !important;
		flex-direction: row !important;
		align-items: center !important;
		height: auto !important;
	}
	
	.c-nav-overlay__backdrop {
		display: none !important;
	}
	
	/* Hide close button on desktop */
	.c-nav-overlay__close {
		display: none !important;
	}
	
	/* Style the menu items horizontally */
	.c-nav-overlay__menu {
		display: flex !important;
		flex-direction: row !important;
		gap: 30px !important;
		margin: 0 !important;
		padding: 0 !important;
		list-style: none;
	}
	
	.c-nav-overlay__menu li {
		margin: 0 !important;
	}
	
	.c-nav-overlay__menu a {
		font-size: 16px !important;
		font-weight: 500 !important;
		color: var(--color-text) !important;
		padding: 10px 0 !important;
		text-decoration: none;
	}
	
	.c-nav-overlay__menu a:hover {
		color: var(--color-primary) !important;
	}
	
	/* Dropdown styles for sub-menus */
	.c-nav-overlay__menu li {
		position: relative !important;
	}
	
	.c-nav-overlay__menu .sub-menu {
		display: none !important;
		position: absolute;
		top: 100%;
		left: 0;
		background: #fff;
		box-shadow: 0 10px 30px rgba(0,0,0,0.1);
		border-radius: 8px;
		padding: 10px 0 !important;
		min-width: 280px;
		flex-direction: column !important;
		z-index: 999;
		opacity: 0;
		transform: translateY(10px);
		transition: opacity 0.2s ease, transform 0.2s ease;
	}
	
	[data-theme="night"] .c-nav-overlay__menu .sub-menu {
		background: #1a2129;
	}
	
	.c-nav-overlay__menu li:hover > .sub-menu {
		display: flex !important;
		opacity: 1;
		transform: translateY(0);
	}
	
	.c-nav-overlay__menu .sub-menu li {
		width: 100%;
	}
	
	.c-nav-overlay__menu .sub-menu a {
		padding: 10px 20px !important;
		display: block;
		font-size: 15px !important;
		font-weight: 400 !important;
	}
	
	.c-nav-overlay__menu .sub-menu a:hover {
		background: rgba(0,0,0,0.03);
	}
	
	[data-theme="night"] .c-nav-overlay__menu .sub-menu a:hover {
		background: rgba(255,255,255,0.05);
	}
	
	/* Hide mobile footer inside nav */
	.c-nav-overlay__footer {
		display: none !important;
	}
}

/* 
 * Custom Service Card 
 * Adapted from Uiverse.io by KSAplay 
 */

.card {
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
  max-width: 350px;
  height: 450px;
  border-radius: 0;
  border: 4px solid transparent;
  border-image: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%) 1;
  overflow: hidden;
  box-shadow: 12px 12px 0px rgba(0, 0, 0, 0.05);
  background-color: var(--color-surface);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin: 0 auto;
}
.card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 16px 16px 0px rgba(0, 0, 0, 0.08);
}


.card:hover {
	transform: translateY(-8px);
	box-shadow: 16px 16px 0px rgba(0, 0, 0, 0.08);
}

.landscape-section {
  position: relative;
  width: 100%;
  height: 60%;
  overflow: hidden;
}

.landscape-section img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.card:hover .landscape-section img {
	transform: scale(1.05);
}

.content-section {
  width: 100%;
  height: 40%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
}

.content-section h3 {
	margin: 0 0 10px 0;
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--color-text);
}

.content-section p {
	margin: 0 0 15px 0;
	font-size: 0.9rem;
	color: var(--color-text-muted);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Timeline / Stepper Styles */
.stepper-box {
  background-color: white;
  border-radius: 12px;
  padding: 32px;
  width: 100%;
  max-width: 800px;
  margin: 40px auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.stepper-step {
  display: flex;
  margin-bottom: 32px;
  position: relative;
}

.stepper-step:last-child {
  margin-bottom: 0;
}

.stepper-line {
  position: absolute;
  left: 19px;
  top: 40px;
  bottom: -32px;
  width: 2px;
  background-color: var(--color-border);
  z-index: 1;
}

.stepper-step:last-child .stepper-line {
  display: none;
}

.stepper-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  z-index: 2;
  background-color: var(--color-primary);
  color: white;
  font-weight: bold;
}

.stepper-content {
  flex: 1;
}

.stepper-title {
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--color-text);
  font-size: 1.1rem;
}

.stepper-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* =========================================================
   Hero Redesign (Editorial Split Layout)
   ========================================================= */

.mc-hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: var(--container-width);
    margin: 60px auto;
    padding: 0 var(--spacing-md);
}

@media (max-width: 900px) {
    .mc-hero-split {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .mc-hero-split-content {
        order: 2;
    }
    .mc-hero-split-image {
        order: 1;
    }
}

.mc-hero-split-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 0; /* Surowy, brutalistyczny styl */
    box-shadow: 0 15px 35px var(--color-shadow);
}

/* Pudełko Tytułowe z grubą ramką */
.mc-hero-split-title-box {
    border: 12px solid var(--color-primary);
    padding: 50px 40px;
    text-align: center;
    margin-bottom: 30px;
    background: var(--color-bg);
}

@media (max-width: 600px) {
    .mc-hero-split-title-box {
        padding: 30px 20px;
        border-width: 8px;
    }
}

.mc-hero-split-pretitle {
    display: block;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 15px;
}

.mc-hero-split-title-box h1 {
    margin: 0;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-text);
    line-height: 1.1;
}

@media (max-width: 900px) {
    .mc-hero-split-title-box h1 {
        font-size: 2.5rem;
    }
}

.mc-hero-split-desc h2 {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--color-text);
    margin-top: 0;
    line-height: 1.6;
}

/* =========================================================
   Strona Główna Hero (Border Box + Opacity BG)
   ========================================================= */

.mc-home-hero {
    position: relative;
    padding: 120px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.mc-home-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/17.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 0;
}

.mc-home-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    width: 100%;
}

.mc-home-hero-content h1 {
    margin: 0 0 20px 0;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 0 4px 15px rgba(0,0,0,0.8), 0 2px 5px rgba(0,0,0,0.6);
}

@media (max-width: 900px) {
    .mc-home-hero-content h1 { font-size: 2.2rem; }
}

.mc-home-hero h2 {
    font-size: 1.5rem;
    font-weight: 500;
    color: #ffffff;
    text-shadow: 0 4px 15px rgba(0,0,0,0.8), 0 2px 5px rgba(0,0,0,0.6);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

/* Aktualizacja Kart Usług (Ostre krawędzie, grubsze linie) */

.card {
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
  max-width: 350px;
  height: 450px;
  border-radius: 0;
  border: 4px solid transparent !important;
  border-image: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%) 1 !important;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.10);
  background-color: var(--color-surface);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin: 0;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}
.card .landscape-section {
    border-radius: 0;
}


.mc-home-hero-bg-collage {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    z-index: 0;
}


.mc-collage-item {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.mc-collage-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 20, 25, 0.65); /* ciemny overlay, 65% opacity dla czytelności */
    z-index: 1;
}
.mc-home-hero-content {
    z-index: 2;
}

/* Ribbon style */
.landscape-section {
    position: relative;
}
.mc-ribbon {
    position: absolute;
    top: 15px;
    right: -5px;
    background: #f59e0b;
    color: white;
    padding: 8px 15px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.mc-ribbon::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 0;
    border-top: 5px solid #b45309;
    border-right: 5px solid transparent;
}


.mc-home-hero-bg-collage {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    z-index: 0;
}

