/*
Theme Name: Night Riders
Theme URI: https://night-riders.pl/
Author: Night Riders
Author URI: https://night-riders.pl/
Description: Motyw na bazie HTML/CSS/JS Night Riders.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: night-riders
*/

:root {
	--bg: #0b0d10;
	--text: #ffffff;
	--muted: rgba(255, 255, 255, 0.7);
	--accent: #ff2d2d;
	--line: rgba(255, 255, 255, 0.15);
}

* {
	box-sizing: border-box;
}
html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: 'Inter', sans-serif;
	background: var(--bg);
	color: var(--text);
}

/* =======================================================
   NAV (SZKŁO + FIXED + LINKI JAK WCZEŚNIEJ)
   ======================================================= */

.nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;

	/* szkło + gradient (jak na początku) + fallback */
	background-color: rgba(11, 13, 16, 0.55);
	background-image: linear-gradient(180deg, rgba(11, 13, 16, 0.7), rgba(11, 13, 16, 0.45));
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);

	border-bottom: 1px solid var(--line);
}

/* NAVBAR - większa wysokość */
.nav__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 28px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

/* większe logo */
.brand img {
	height: 72px;
	width: auto;
	display: block;
}

/* prawa kolumna: ikonki nad menu */
.nav__right {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 12px;
}

/* socials */
.nav__socials {
	display: flex;
	align-items: center;
	gap: 10px;
}

.social {
	width: 40px;
	height: 40px;
	border-radius: 14px;
	border: 1px solid var(--line);
	background: rgba(255, 255, 255, 0.05);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	transition:
		transform 0.15s ease,
		border-color 0.2s ease,
		background 0.2s ease;
}

.social:hover {
	transform: translateY(-1px);
	border-color: rgba(255, 45, 45, 0.55);
	background: rgba(255, 255, 255, 0.07);
}

.social svg {
	width: 20px;
	height: 20px;
	fill: #fff;
	opacity: 0.92;
}

/* menu linków */
.nav__links {
	display: flex;
	align-items: center;
	gap: 22px;
}

/* LINKI – formatowanie jak wcześniej (underline gradient + hover + active) */
.nav__links a {
	position: relative;
	text-decoration: none;
	color: var(--text);
	font-weight: 700;
	letter-spacing: 0.2px;

	padding: 10px 6px;
	opacity: 0.92;

	display: inline-flex;
	align-items: center;
	line-height: 1;

	transition:
		opacity 0.2s ease,
		transform 0.2s ease;
}
.nav__links a:hover {
	opacity: 1;
	transform: translateY(-1px);
}
.nav__links a:visited {
	color: var(--text);
}
.nav__links a::after {
	content: '';
	position: absolute;
	left: 6px;
	right: 6px;
	bottom: 6px;
	height: 2px;
	border-radius: 999px;

	background: linear-gradient(90deg, transparent, var(--accent), transparent);
	transform: scaleX(0);
	transform-origin: center;
	transition: transform 0.25s ease;
	opacity: 0.95;
}
.nav__links a:hover::after,
.nav__links a.is-active::after {
	transform: scaleX(1);
}

/* BURGER */
.burger {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
}
.burger span {
	display: block;
	width: 26px;
	height: 2px;
	background: white;
	margin: 6px 0;
}

/* =======================================================
   DRAWER
   ======================================================= */

.drawer {
	position: fixed;
	inset: 0;
	z-index: 9999;
	pointer-events: none;
}

.drawer__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.62);
	opacity: 0;
	transition: opacity 0.25s ease;
}

.drawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	height: 100%;
	width: min(88vw, 360px);
	background: rgba(15, 19, 24, 0.96);
	border-left: 1px solid var(--line);
	box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
	transform: translateX(102%);
	transition: transform 0.28s ease;
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.drawer.is-open {
	pointer-events: auto;
}
.drawer.is-open .drawer__backdrop {
	opacity: 1;
}
.drawer.is-open .drawer__panel {
	transform: translateX(0);
}

.drawer__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--line);
}

.drawer__logo {
	height: 44px;
	width: auto;
}

.drawer__close {
	width: 44px;
	height: 44px;
	border-radius: 14px;
	border: 1px solid var(--line);
	background: rgba(255, 255, 255, 0.05);
	color: var(--text);
	font-size: 18px;
	cursor: pointer;
}

.drawer__links {
	display: grid;
	gap: 10px;
	margin-top: 10px;
}
.drawer__links a {
	text-decoration: none;
	color: var(--text);
	font-weight: 700;
	padding: 14px 14px;
	border-radius: 16px;
	border: 1px solid var(--line);
	background: rgba(255, 255, 255, 0.04);
}

.drawer__socials {
	display: flex;
	gap: 10px;
	margin-top: 10px;
}

/* blokada scrolla przy drawer */
body.no-scroll {
	overflow: hidden;
}

/* =======================================================
   HERO
   ======================================================= */

.hero {
	min-height: 100vh;
	background:
		linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)),
		url('assets/header-bg.jpg') center / cover no-repeat;

	display: flex;
	align-items: center;

	/* ważne przy fixed navbar (żeby content nie wchodził pod nav) */
	padding-top: 140px;
}

.hero__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
	width: 100%;
}

.hero__badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 16px;
}

.hero h3 {
	padding: 0 0 20px 0;
}

.dot {
	width: 10px;
	height: 10px;
	background: var(--accent);
	border-radius: 50%;
}

h1 {
	font-size: clamp(36px, 5vw, 60px);
	margin: 0 0 16px;
}

.lead {
	color: var(--muted);
}

/* BUTTONS */
.btn {
	padding: 12px 18px;
	border-radius: 14px;
	border: 1px solid var(--line);
	color: white;
	text-decoration: none;
	font-weight: 700;
}
.btn--accent {
	background: var(--accent);
	border-color: var(--accent);
}

.hero__cta {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

/* SECTIONS */
main {
	max-width: 1200px;
	margin: auto;
	padding: 0 20px 80px;
}

section {
	margin-bottom: 100px;
}

/* FORM */
.form {
	display: grid;
	gap: 12px;
}
input,
textarea {
	padding: 12px;
	border-radius: 12px;
	border: 1px solid var(--line);
	background: transparent;
	color: white;
}
textarea {
	height: 200px;
}
/* SELECT – dopasowany do input/textarea */
select {
	padding: 12px;
	border-radius: 12px;
	border: 1px solid var(--line);
	background: transparent;
	color: var(--muted); /* zamiast var(--text) */
	font-family: inherit;
	font-size: 12px;
	cursor: pointer;

	/* usunięcie domyślnej strzałki */
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;

	/* własna strzałka */
	background-image:
		linear-gradient(45deg, transparent 50%, var(--text) 50%), linear-gradient(135deg, var(--text) 50%, transparent 50%),
		linear-gradient(to right, transparent, transparent);
	background-position:
		calc(100% - 20px) calc(50% - 3px),
		calc(100% - 15px) calc(50% - 3px),
		100% 0;
	background-size:
		5px 5px,
		5px 5px,
		2.5em 2.5em;
	background-repeat: no-repeat;
}

select:focus {
	outline: none;
	border-color: rgba(255, 45, 45, 0.55);
	box-shadow: 0 0 0 4px rgba(255, 45, 45, 0.15);
}

/* opcja placeholder */
select option[value=''] {
	color: rgba(255, 255, 255, 0.5);
}

/* dropdown (tam gdzie wspierane) */
select option {
	background: #0f1318;
	color: var(--muted);
}

select:not(:has(option:checked[value=''])) {
	color: var(--text);
}

/* =========================
   CONTACT – IMAGE STRIP
   ========================= */
/* =========================
   CONTACT – FULL WIDTH BG
   ========================= */

#contact {
	position: relative;
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	margin-top: 0;

	padding: 120px 0;

	background:
		linear-gradient(rgba(11, 13, 16, 0.88), rgba(11, 13, 16, 0.92)),
		url('assets/contact-bg.jpg') center / cover no-repeat;
}

/* kontener treści – jak about */
#contact > * {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding: 0 20px;
}

/* nagłówek */
#contact h2 {
	margin-bottom: 32px;
}

.contact-gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	width: 100%;
	margin-top: 40px;
	overflow: hidden; /* ważne przy hover zoom */
}

.contact-gallery img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;

	transition: transform 0.4s ease;
	will-change: transform;
}

/* hover zoom */
.contact-gallery img:hover {
	transform: scale(1.06);
}

.footer__socials {
	display: flex;
	justify-content: center;
	gap: 18px;
	margin-bottom: 16px;
	margin-top: 36px;
}

/* 2x większe niż navbar */
.social--footer {
	width: 80px;
	height: 80px;
	border-radius: 24px;
}

.social--footer svg {
	width: 36px;
	height: 36px;
}

.footer__copy {
	font-size: 14px;
}

/* MOBILE */
@media (max-width: 768px) {
	.contact-gallery {
		grid-template-columns: 1fr;
	}
}

/* FOOTER */
footer {
	border-top: 1px solid var(--line);
	padding: 20px;
	text-align: center;
	color: var(--muted);
}

/* Anchor offset przy fixed navbar */
:target {
	scroll-margin-top: 150px;
}

/* =======================================================
   ABOUT – IMAGE + TEXT
   ======================================================= */

.about {
	position: relative;
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	margin-bottom: 0;

	padding: 120px 0;

	background:
		linear-gradient(rgba(11, 13, 16, 0.88), rgba(11, 13, 16, 0.92)),
		url('assets/about-bg.jpg') center / cover no-repeat;
}

.about__container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
	display: grid;
	gap: 80px;
}

.about__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: center;

	padding: 40px;
	background: rgba(15, 19, 24, 0.75);
	border: 1px solid rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(6px);
}

/* Odwrócony układ */
.about__row--reverse {
	direction: rtl;
}
.about__row--reverse > * {
	direction: ltr;
}

/* Obraz - prostokątny, z miękką krawędzią (maska) */
.about__image {
	position: relative;
	overflow: hidden;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
	border-radius: 0;
	isolation: isolate;
}

.about__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	aspect-ratio: 16 / 9;
	display: block;
	transition: transform 0.6s ease;
	will-change: transform;

	-webkit-mask-image: radial-gradient(farthest-side, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0) 100%);
	mask-image: radial-gradient(farthest-side, rgba(0, 0, 0, 1) 70%, rgba(0, 0, 0, 0) 100%);
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-size: 140% 140%;
	mask-size: 140% 140%;
	-webkit-mask-position: center;
	mask-position: center;
}

.about__image:hover img {
	transform: scale(1.06);
}

.about__text h3 {
	margin: 0 0 12px;
	font-size: 24px;
}
.about__text p {
	margin: 0;
	color: var(--muted);
	line-height: 1.7;
	max-width: 52ch;
}

/* =======================================================
   MOBILE
   ======================================================= */
@media (max-width: 900px) {
	.about {
		padding: 80px 0;
	}
	.about__row,
	.about__row--reverse {
		grid-template-columns: 1fr;
		direction: ltr;
		padding: 24px;
	}
	.about__text {
		text-align: left;
	}
}

@media (max-width: 768px) {
	.brand img {
		height: 54px;
	}

	.nav__links {
		display: none;
	}
	.nav__right {
		display: none;
	}

	.burger {
		display: block;
	}

	/* mobile: wyśrodkowanie treści hero */
	.hero__content {
		text-align: center;
	}
	.hero__badge {
		justify-content: center;
	}
	.hero__cta {
		justify-content: center;
	}
}
