@import url("colors.css");

:root {
	color-scheme: dark;
	--bg: #0b0d1a;
	--surface: rgb(0 0 0 / 61%);
	--surface-alt: rgba(60, 81, 255, 0.18);
	--text: var(--snow);
	--muted: rgba(249, 244, 245, 0.92);
	--primary: var(--full-spectrum-blue);
	--primary-dark: var(--deep-navy);
	--accent: var(--deep-purple);
	--border: rgba(249, 244, 245, 0.18);
	--shadow: 0 18px 50px rgba(0, 0, 0, 0.36);
	--radius: 24px;
	--radius-sm: 16px;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

section { scroll-margin-top: 92px; }

body {
	margin: 0;
	font-family: "Segoe UI", Arial, Helvetica, sans-serif;
	color: var(--text);
	background:
		radial-gradient(circle at top left, rgba(60, 81, 255, 0.16), transparent 32%),
		radial-gradient(circle at right 15%, rgba(82, 21, 78, 0.14), transparent 24%),
		var(--bg);
	line-height: 1.6;
	position: relative;
	transition: background 0.25s ease, color 0.25s ease;
}

#vanta-bg {
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
}

.site-header,
main,
.site-footer {
	position: relative;
	z-index: 1;
}

a {
	color: inherit;
	text-decoration: none;
}

.site-shell {
	width: min(1120px, calc(100% - 32px));
	margin: 0 auto;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 10;
	backdrop-filter: blur(16px);
	background: color-mix(in srgb, var(--bg) 88%, transparent);
	border-bottom: 1px solid var(--border);
}

.site-header .site-shell {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 18px 0;
}

.brand {
	display: flex;
	align-items: center;
	gap: 14px;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.brand-mark {
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	border-radius: 14px;
	background: linear-gradient(135deg, var(--primary), var(--accent));
	color: #fff;
	font-size: 1.05rem;
	box-shadow: var(--shadow);
}

.brand-full {
	height: 34px;
	width: auto;
	display: block;
}

.brand-mark-img {
	height: 36px;
	display: block;
	border-radius: 12px;
	box-shadow: var(--shadow);
	object-fit: cover;
	display: none;
}

@media (min-width: 640px) {
	.brand-full { display: block; }
	.brand-mark-img { display: none; }
}

.brand-full--light { display: none; }

@media (min-width: 640px) {
	.brand-full--dark { display: block; }
}

.brand small {
	display: block;
	color: var(--muted);
	font-weight: 500;
}

.nav {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	min-height: 46px;
}

#start {
  scroll-margin-top: 100px;
}

.nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: 1px solid transparent;
	color: var(--muted);
	font-size: 1.25rem;
	padding: 6px 10px;
	border-radius: 8px;
	cursor: pointer;
}

.nav-toggle:focus {
	outline: 2px solid rgba(255,255,255,0.06);
}

.nav a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 10px 14px;
	border-radius: 999px;
	color: var(--muted);
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav a:hover,
.nav a:focus-visible,
.nav a[aria-current="page"] {
	color: var(--text);
	background: rgba(60, 81, 255, 0.12);
	outline: none;
}

svg { color: inherit; }

.hero,
.content-section,
.panel,
.contact-strip {
	background: var(--surface);
	border: 1px solid var(--border);
	box-shadow: var(--shadow);
	border-radius: var(--radius);
}

.hero {
	margin: 28px 0 24px;
	padding: 42px;
	position: relative;
	overflow: hidden;
}

.hero::after {
	content: "";
	position: absolute;
	inset: auto -80px -100px auto;
	width: 260px;
	height: 260px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(82, 21, 78, 0.22), transparent 70%);
	pointer-events: none;
}



.hero h1,
.hero h2 {
	margin-top: 0;
	font-size: clamp(2.4rem, 6vw, 4.8rem);
}

.hero h2 {
	font-size: clamp(1.9rem, 4.4vw, 3.6rem);
}

.hero p,
.content-section p,
.panel p,
.panel li {
	color: var(--muted);
	font-size: 1.03rem;
}

.hero-copy {
	max-width: 660px;
	margin-top: 18px;
}

.cta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 28px;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 0 18px;
	border-radius: 999px;
	font-weight: 700;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.button:hover,
.button:focus-visible {
	transform: translateY(-1px);
	outline: none;
}

.button-primary {
	background: linear-gradient(135deg, var(--primary), var(--accent));
	color: #fff;
	box-shadow: 0 12px 24px rgba(17, 19, 68, 0.2);
}

.button-secondary {
	background: rgba(82, 21, 78, 0.25);
	border: 1px solid rgba(82, 21, 78, 0.52);
	color: var(--snow)
}

.section-grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 20px;
	margin-bottom: 24px;
}

.content-section {
	padding: 30px;
}

.content-section.full {
	grid-column: 1 / -1;
}

.content-section.span-7 {
	grid-column: span 7;
}

.content-section.span-5 {
	grid-column: span 5;
}

.content-section.span-6 {
	grid-column: span 6;
}

.section-title {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
}

.section-title h2 {
	margin-top: 0;
}

.section-title p {
	margin: 0;
	max-width: 46ch;
}

.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
}

.card,
.panel {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
}

.card {
	padding: 20px;
}

.card h3 {
	margin-bottom: 10px;
	font-size: 1.06rem;
}

.meta-list,
.bullet-list {
	margin: 0;
	padding-left: 18px;
}

.meta-list li + li,
.bullet-list li + li {
	margin-top: 10px;
}

.timeline {
	display: grid;
	gap: 14px;
}

.timeline-item {
	padding: 18px 18px 18px 20px;
	border-left: 4px solid var(--accent);
	background: var(--surface-alt);
	border-radius: 14px;
}

.timeline-item h3,
.timeline-item p {
	margin: 0;
}

.timeline-item p {
	margin-top: 6px;
}

.contact-strip {
	margin: 26px 0 42px;
	padding: 24px 30px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.contact-strip strong {
	display: block;
	font-size: 1.1rem;
}

/* theme icon removed */

.site-footer {
	padding: 36px 0 36px;
	color: var(--muted);
	font-size: 0.95rem;
	background: var(--surface);
	border-top: 1px solid rgba(255,255,255,0.06);
	backdrop-filter: blur(8px);
	width: 100%;	
}

.footer-inner {
	width: min(1120px, calc(100% - 32px));
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.footer-brand {
	display: flex;
	align-items: center;
	gap: 12px;
}

.footer-logo {
	width: 40px;
	height: auto;
	display: block;
}

.social-links {
	display: flex;
	gap: 12px;
	align-items: center;
}

.social-links a img {
	width: 22px;
	height: 22px;
	display: block;
	filter: invert(1) brightness(1.6) saturate(1.1);
}

.footer-note {
	text-align: center;
	margin-top: 12px;
	color: var(--muted);
}

	.muted {
		color: var(--muted);
	}

@media (max-width: 900px) {
	.site-header .site-shell {
		flex-direction: column;
		align-items: flex-start;
		justify-content: space-between;
	}

	.hero {
		padding: 30px 24px;
	}

	.content-section.span-7,
	.content-section.span-5 {
		grid-column: 1 / -1;
	}

	.section-title {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (max-width: 900px) {
	.site-shell {
		width: min(100% - 20px, 1120px);
	}

	.header-top {
		display: flex;
		justify-content: space-between;
		width: 100%;
	}

	.nav {
		width: 100%;
		display: none;
		flex-direction: column;
		gap: 6px;
		padding: 12px 0;
		background: transparent;
	}

	.nav.open {
		display: flex;
	}

	.nav a {
		width: 100%;
		padding: 10px 14px;
		border-radius: 8px;
		background: transparent;
	}

	.nav-toggle {
		display: inline-flex;
		margin-left: 8px;
	}

	.hero h1 {
		max-width: none;
	}

	.content-section,
	.contact-strip {
		padding: 22px;
	}

	@media (max-width: 900px) {
    .brand > span {
		display: none;
	}
	}
}

/* Project two-column layout */
.project-row {
	display: grid;
	grid-template-columns: 1fr 360px;
	gap: 20px;
	align-items: start;
	margin-top: 6px;
}
.project-text p { margin-top: 0; }
.project-media {
	display: flex;
	justify-content: center;
}
.project-media img {
	width: auto;
	height: 300px;
	border-radius: 8px;
	margin-top: 0;
}

@media (max-width: 900px) {
	.project-row {
		grid-template-columns: 1fr;
		gap: 14px;
	}
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 3rem;
    padding: 0;
    align-items: start;
}

/* pojedynczy kafelek */
.photo-item {
    margin: 0;
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    transform: translateZ(0);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    aspect-ratio: 4 / 3;
}

.photo-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.3s ease;
}

/* hover efekt */
.photo-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

.photo-item:hover img {
    transform: scale(1.08);
    filter: saturate(1.1) contrast(1.05);
}

/* delikatny overlay (opcjonalnie, bardzo subtelny) */
.photo-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.05),
        rgba(0, 0, 0, 0.15)
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.photo-item:hover::after {
    opacity: 1;
}

/* mobile tweak */
@media (max-width: 600px) {
    .photo-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .photo-item img {
        aspect-ratio: 1 / 1;
    }
}

/* Lightbox / image preview */
.lightbox-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.85);
	display: grid;
	place-items: center;
	z-index: 9999;
	opacity: 0;
	transition: opacity 200ms ease;
}
.lightbox-overlay.visible { opacity: 1; }
.lightbox-content { max-width: 92vw; max-height: 92vh; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.lightbox-img { max-width: 100%; max-height: 80vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,0.6); }
.lightbox-caption { color: var(--muted); font-size: 0.95rem; text-align: center; max-width: 86vw; }
.lightbox-close { position: absolute; top: 18px; right: 18px; background: rgba(255,255,255,0.06); color: var(--muted); border: 1px solid rgba(255,255,255,0.06); padding: 8px 10px; border-radius: 8px; cursor: pointer; }

/* Navigation buttons */
.lightbox-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255,255,255,0.04);
	border: 1px solid rgba(255,255,255,0.06);
	color: var(--muted);
	width: 44px;
	height: 44px;
	border-radius: 999px;
	display: grid;
	place-items: center;
	cursor: pointer;
}
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }
.lightbox-nav:hover { background: rgba(255,255,255,0.12); color: var(--text); }

@media (max-width: 520px) {
	.lightbox-prev, .lightbox-next { width: 38px; height: 38px; }
}


/* Kontener dla dropdownu - musi być "relative", żeby menu pozycjonowało się względem niego */
.dropdown {
    position: relative;
    display: inline-block;
}

/* ==========================================================================
   Modyfikacja Dropdown: Desktop (Hover) / Mobile (Ukryty rodzic)
   ========================================================================== */

/* Wspólne style dla przycisku i linków */
.dropdown-trigger {
    background: none;
    border: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
    padding: 0 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.arrow {
    font-size: 0.7em;
    transition: transform 0.2s;
}

.dropdown-menu a {
    color: var(--muted);
    padding: 10px 14px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-menu a:hover {
    background-color: var(--accent);
}

/* --- DUŻE EKRANY: Pełny dropdown działający na najechanie myszką --- */
@media (min-width: 901px) {
    .dropdown {
        position: relative;
        display: inline-block;
    }

    .dropdown-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #100e1a;
        min-width: 180px;
        box-shadow: 0px 8px 16px rgba(0,0,0,0.1);
        z-index: 100;
        border-radius: 27px;
        padding: 5px 0;
    }

    .dropdown:hover .dropdown-menu {
        display: block;
    }

    .dropdown:hover .arrow {
        transform: rotate(180deg);
    }
}

/* --- MAŁE EKRANY: Ukrywamy nagłówek "Działalność", linki idą prosto do menu --- */
@media (max-width: 900px) {
	.dropdown{
		width: 100%;
	}
    /* Ukrywamy sam przycisk "Działalność" */
    .dropdown-trigger {
        display: none !important;
    }

    /* Pokazujemy zawartość (linki) jako zwykłe elementy menu mobilnego */
    .dropdown-menu {
        display: contents; /* Sprawia, że kontener "znika", a linki wskakują bezpośrednio do .nav */
    }

    /* Resetujemy style linków z dropdownu, aby wyglądały identycznie jak "Start" czy "O nas" */
    .dropdown-menu a {
        width: 100%;
        text-align: center; /* Centrowanie tekstu, żeby pasowało do reszty menu na screenie */
        padding: 14px;
        border-radius: 8px;
        color: var(--muted);
    }

    .dropdown-menu a:hover {
        color: var(--text);
        background: rgba(60, 81, 255, 0.12);
    }
}

.fullscreen-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    margin-bottom: 6rem;
    border-radius: 0;
}

.slides {
    position: absolute;
    inset: 0;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            rgba(0,0,0,.45),
            rgba(0,0,0,.55)
        );
}

.slider-content {
    position: relative;
    z-index: 2;

    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;
    color: white;

    padding: 2rem;
}

.slider-content h1 {
    font-size: clamp(3rem, 8vw, 7rem);
    margin-bottom: 1rem;
}

.slider-content p {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    margin-bottom: 2rem;
}

.scroll-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 1rem 2rem;
    border-radius: 999px;

    backdrop-filter: blur(10px);
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.3);

    color: white;
    text-decoration: none;
    font-weight: 600;

    transition: .3s;
}

.scroll-button:hover {
    transform: translateY(-3px);
    background: rgba(255,255,255,.25);
}