/*
Theme Name: Bartek Baran v3
Theme URI: https://bartekbaran.pl
Author: Bartek Baran
Description: Ciemny motyw one-page dla trenera personalnego, autorski układ pod silownie i online coaching.
Version: 1.0.5
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
Text Domain: bartekbaran
*/

:root {
	--bb-bg: #000000;
	--bb-bg-soft: #0a0a0a;
	--bb-card: #121212;
	--bb-card-border: #1f1f1f;
	--bb-text: #ffffff;
	--bb-text-muted: #a3a3a3;
	--bb-accent: #39ff14;
	--bb-accent-dim: rgba(57, 255, 20, 0.35);
	--bb-radius: 20px;
	--bb-radius-pill: 999px;
	--bb-font: "Inter", system-ui, -apple-system, sans-serif;
	--bb-max: 1120px;
	--bb-space-section: clamp(3.5rem, 8vw, 6rem);
	/* Punkt kadrowania pionowego zdjęcia w hero (np. center 30% = wyżej) */
	--bb-hero-object-position: center 32%;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--bb-font);
	font-size: 1rem;
	line-height: 1.6;
	color: var(--bb-text);
	background: var(--bb-bg);
	-webkit-font-smoothing: antialiased;
}

/* Stały pasek nawigacji: kompensacja wysokości (fixed) */
:root {
	--bb-header-height: 72px;
}

main#main {
	padding-top: var(--bb-header-height);
}

body.admin-bar main#main {
	padding-top: calc(var(--bb-header-height) + 32px);
}

@media (max-width: 782px) {
	body.admin-bar main#main {
		padding-top: calc(var(--bb-header-height) + 46px);
	}
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--bb-accent);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

.bb-skip {
	position: absolute;
	left: -9999px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.bb-skip:focus {
	position: fixed;
	left: 1rem;
	top: 1rem;
	width: auto;
	height: auto;
	padding: 0.75rem 1rem;
	background: var(--bb-accent);
	color: #000;
	z-index: 100000;
}

.bb-container {
	width: 100%;
	max-width: calc(var(--bb-max) + 2rem);
	margin-left: auto;
	margin-right: auto;
	padding-left: clamp(1.25rem, 4vw, 2rem);
	padding-right: clamp(1.25rem, 4vw, 2rem);
}

.bb-accent {
	color: var(--bb-accent);
	font-weight: 700;
}

.bb-muted {
	color: var(--bb-text-muted);
}

/* ——— Header ——— */
.bb-header {
	position: fixed !important;
	top: 0 !important;
	left: 0;
	right: 0;
	z-index: 999999;
	width: 100%;
	background: rgba(0, 0, 0, 0.92);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55);
}

body.admin-bar .bb-header {
	top: 32px !important;
}

@media (max-width: 782px) {
	body.admin-bar .bb-header {
		top: 46px !important;
	}
}

.bb-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	max-width: calc(var(--bb-max) + 4rem);
	margin: 0 auto;
	padding: 0.85rem clamp(1.25rem, 4vw, 2rem);
}

.bb-logo {
	font-weight: 700;
	font-size: 1rem;
	letter-spacing: -0.02em;
	color: var(--bb-text);
	white-space: nowrap;
}

.bb-logo:hover {
	text-decoration: none;
	color: var(--bb-accent);
}

.bb-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 1.25rem;
	justify-content: flex-end;
	list-style: none;
	margin: 0;
	padding: 0;
}

.bb-nav a {
	color: var(--bb-text-muted);
	font-size: 0.9rem;
	font-weight: 500;
}

.bb-nav a:hover {
	color: var(--bb-text);
	text-decoration: none;
}

@media (max-width: 640px) {
	.bb-nav {
		gap: 0.25rem 0.75rem;
		justify-content: flex-start;
	}

	.bb-header__inner {
		flex-wrap: wrap;
	}
}

/* ——— Buttons ——— */
.bb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.85rem 1.85rem;
	font-family: inherit;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	border-radius: var(--bb-radius-pill);
	cursor: pointer;
	transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.bb-btn--outline {
	background: transparent;
	color: var(--bb-text);
	border: 2px solid var(--bb-accent);
}

.bb-btn--outline:hover {
	background: rgba(57, 255, 20, 0.08);
	text-decoration: none;
}

.bb-badge {
	display: inline-block;
	padding: 0.2rem 0.55rem;
	font-size: 0.65rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #000;
	background: var(--bb-accent);
	border-radius: 4px;
	vertical-align: middle;
	margin-left: 0.35rem;
}

/* ——— Sections ——— */
.bb-section {
	padding: var(--bb-space-section) 0;
}

.bb-section--soft {
	background: var(--bb-bg-soft);
}

.bb-section__title {
	text-align: center;
	font-size: clamp(1.6rem, 4vw, 2.25rem);
	font-weight: 700;
	letter-spacing: -0.03em;
	margin: 0 0 2.5rem;
	line-height: 1.2;
}

.bb-section__title--left {
	text-align: left;
	margin-bottom: 1.75rem;
}

/* ——— Hero: widoczna limonkowa poświata w górnych rogach (::before / ::after) ——— */
.bb-hero {
	padding-top: clamp(2.5rem, 6vw, 4rem);
	padding-bottom: var(--bb-space-section);
	overflow: hidden;
	position: relative;
	isolation: isolate;
	background-color: var(--bb-bg);
	background-image: radial-gradient(
		ellipse 70% 55% at 50% 112%,
		rgba(57, 255, 20, 0.22) 0%,
		rgba(57, 255, 20, 0.08) 38%,
		transparent 70%
	);
	background-repeat: no-repeat;
}

.bb-hero::before,
.bb-hero::after {
	content: "";
	position: absolute;
	pointer-events: none;
	z-index: 0;
	width: min(92vw, 780px);
	height: min(62vh, 560px);
}

/* Lewy górny róg */
.bb-hero::before {
	left: max(-14rem, -22vw);
	top: max(-10rem, -28vh);
	background: radial-gradient(
		ellipse 55% 48% at 42% 48%,
		rgba(57, 255, 20, 0.34) 0%,
		rgba(57, 255, 20, 0.14) 42%,
		rgba(57, 255, 20, 0.04) 62%,
		transparent 74%
	);
}

/* Prawy górny róg */
.bb-hero::after {
	right: max(-14rem, -22vw);
	top: max(-10rem, -28vh);
	background: radial-gradient(
		ellipse 55% 48% at 58% 48%,
		rgba(57, 255, 20, 0.3) 0%,
		rgba(57, 255, 20, 0.12) 42%,
		rgba(57, 255, 20, 0.035) 62%,
		transparent 74%
	);
}

.bb-hero > .bb-container {
	position: relative;
	z-index: 1;
}

.bb-hero__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(2rem, 5vw, 3.5rem);
	align-items: center;
	grid-template-areas:
		"content visual"
		"cta visual";
}

@media (max-width: 900px) {
	.bb-hero__grid {
		grid-template-columns: 1fr;
		grid-template-areas:
			"content"
			"visual"
			"cta";
	}
}

/* CTA w hero: 1 element, różne położenie zależnie od ekranu */
.bb-hero__content {
	grid-area: content;
}

.bb-hero__visual {
	grid-area: visual;
}

.bb-hero__cta {
	grid-area: cta;
	justify-self: start;
	align-self: start;
	margin-top: -0.25rem;
}

@media (max-width: 900px) {
	.bb-hero__content {
		text-align: center;
	}

	.bb-hero__lead {
		max-width: 46ch;
		margin-left: auto;
		margin-right: auto;
	}

	.bb-hero__visual {
		min-height: auto;
		padding-top: 0;
	}

	.bb-hero__cta {
		justify-self: center;
		align-self: center;
		margin: 0.25rem auto 0.5rem;
	}
}

.bb-hero__title {
	font-size: clamp(2rem, 5vw, 3rem);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.03em;
	margin: 0 0 1.25rem;
}

.bb-hero__lead {
	font-size: 1.05rem;
	color: var(--bb-text-muted);
	margin: 0 0 1.75rem;
	max-width: 32ch;
}

.bb-powered {
	margin-top: 2rem;
	font-size: 0.75rem;
	color: #555;
}

.bb-hero__visual {
	position: relative;
	min-height: clamp(340px, 52vh, 540px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.5rem 0;
	isolation: isolate;
}

.bb-hero__glow {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: min(100%, 420px);
	height: min(95%, 520px);
	background: radial-gradient(
		ellipse 65% 55% at 50% 45%,
		rgba(57, 255, 20, 0.22) 0%,
		rgba(57, 255, 20, 0.06) 42%,
		transparent 72%
	);
	filter: blur(28px);
	pointer-events: none;
	z-index: 0;
}

.bb-hero__visual--empty .bb-hero__glow {
	opacity: 0.45;
	background: radial-gradient(
		ellipse 60% 50% at 50% 50%,
		rgba(57, 255, 20, 0.12) 0%,
		transparent 65%
	);
}

.bb-hero__frame {
	position: relative;
	z-index: 1;
	width: min(100%, 360px);
	aspect-ratio: 3 / 4;
	max-height: min(520px, 70vh);
	border-radius: var(--bb-radius);
	overflow: hidden;
	background: var(--bb-card);
	border: 1px solid rgba(57, 255, 20, 0.22);
	box-shadow:
		0 28px 56px rgba(0, 0, 0, 0.5),
		0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.bb-hero__photo {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: var(--bb-hero-object-position);
}

.bb-hero__photo-placeholder {
	width: 100%;
	height: 100%;
	min-height: 280px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 0.65rem;
	padding: 1.5rem 1.25rem;
	background: linear-gradient(160deg, #141414 0%, #0a0a0a 100%);
	border: none;
}

.bb-hero__ph-title {
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--bb-text);
}

.bb-hero__ph-text {
	font-size: 0.88rem;
	line-height: 1.55;
	color: var(--bb-text-muted);
	max-width: 26ch;
}

@media (max-width: 900px) {
	.bb-hero__frame {
		width: min(280px, 88vw);
		max-height: min(440px, 58vh);
	}
}

/* ——— Problem cards ——— */
.bb-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

@media (max-width: 768px) {
	.bb-cards {
		grid-template-columns: 1fr;
	}
}

.bb-card {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	background: var(--bb-card);
	border: 1px solid var(--bb-card-border);
	border-radius: var(--bb-radius);
	padding: 2.5rem 1.75rem;
	text-align: center;
	transition: transform 0.3s ease, border-color 0.3s ease;
}

.bb-card:hover {
	border-color: rgba(57, 255, 20, 0.3);
	transform: translateY(-4px);
}

.bb-card::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	background: radial-gradient(circle at top left, rgba(57, 255, 20, 0.05) 0%, transparent 70%);
	opacity: 0.5;
}

.bb-card > * {
	position: relative;
	z-index: 1;
}

.bb-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3.5rem;
	height: 3.5rem;
	margin: 0 auto 1.25rem;
	color: var(--bb-accent);
	position: relative;
	z-index: 1;
}

.bb-card__icon svg {
	display: block;
	width: 100%;
	height: 100%;
	filter: drop-shadow(0 0 12px rgba(57, 255, 20, 0.2));
	transition: all 0.3s ease;
}

.bb-card:hover .bb-card__icon svg {
	transform: scale(1.1);
	filter: drop-shadow(0 0 15px rgba(57, 255, 20, 0.5));
	color: #fff;
}

.bb-card__title {
	font-size: 1.2rem;
	font-weight: 700;
	margin: 0 0 0.85rem;
	letter-spacing: -0.01em;
}

.bb-card__text {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.6;
	color: var(--bb-text-muted);
}

/* ——— Split blocks (ścieżki) ——— */
.bb-split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(1.25rem, 3vw, 2rem);
	align-items: stretch;
	margin-top: 2rem;
}

@media (max-width: 900px) {
	.bb-split {
		grid-template-columns: 1fr;
	}
}

.bb-split__img {
	border-radius: var(--bb-radius);
	overflow: hidden;
	background: var(--bb-card);
	min-height: 280px;
}

.bb-split__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bb-split__img--ph {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--bb-text-muted);
	font-size: 0.9rem;
	text-align: center;
	padding: 1.5rem;
	min-height: 280px;
	width: 100%;
	height: 100%;
}

.bb-panel {
	background: var(--bb-card);
	border: 1px solid var(--bb-card-border);
	border-radius: var(--bb-radius);
	padding: clamp(1.5rem, 3vw, 2.25rem);
}

.bb-panel h3 {
	font-size: 1.35rem;
	font-weight: 700;
	margin: 0 0 0.5rem;
}

.bb-panel .bb-panel__sub {
	margin: 0 0 1.25rem;
	color: var(--bb-text-muted);
	font-size: 0.95rem;
}

.bb-panel ul {
	margin: 0 0 1.25rem;
	padding-left: 1.1rem;
	color: var(--bb-text-muted);
}

.bb-panel ul.bb-list-plain {
	list-style: none;
	padding-left: 0;
}

.bb-panel ul.bb-list-plain li {
	margin-bottom: 0.5rem;
}

.bb-panel .bb-transition {
	margin: 1.25rem 0 0.75rem;
	font-weight: 600;
}

.bb-panel .bb-finger-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.bb-panel .bb-finger-list li {
	margin-bottom: 0.65rem;
	padding-left: 0;
}

.bb-order-reverse .bb-split__img {
	order: 2;
}

.bb-order-reverse .bb-panel {
	order: 1;
}

@media (max-width: 900px) {
	.bb-order-reverse .bb-split__img,
	.bb-order-reverse .bb-panel {
		order: unset;
	}
}

/* ——— About (jak hero: tekst | zdjęcie; flex = pewniejszy układ 50/50) ——— */
.bb-about .bb-about__grid {
	display: flex;
	flex-direction: column;
	gap: clamp(2rem, 5vw, 3.5rem);
	align-items: stretch;
}

@media (min-width: 901px) {
	.bb-about .bb-about__grid {
		flex-direction: row;
		align-items: center;
	}

	.bb-about .bb-about__grid > .bb-about__text,
	.bb-about .bb-about__grid > .bb-about__visual {
		flex: 1 1 0;
		min-width: 0;
	}
}

.bb-about .bb-about__text {
	font-size: 1.05rem;
	min-width: 0;
}

.bb-about .bb-about__text p {
	margin: 0 0 1.15rem;
}

.bb-about .bb-about__text p:last-of-type {
	margin-bottom: 1.75rem;
}

.bb-about__visual {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.5rem 0;
}

.bb-about__frame {
	width: min(100%, 380px);
	aspect-ratio: 3 / 4;
	max-height: min(520px, 65vh);
	border-radius: var(--bb-radius);
	overflow: hidden;
	background: var(--bb-card);
	border: 1px solid rgba(57, 255, 20, 0.22);
	box-shadow:
		0 24px 48px rgba(0, 0, 0, 0.45),
		0 0 0 1px rgba(255, 255, 255, 0.04) inset;
	margin-left: auto;
	margin-right: auto;
}

@media (min-width: 901px) {
	.bb-about__frame {
		margin-right: 0;
		margin-left: auto;
	}
}

.bb-about__photo {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 30%;
}

.bb-about__photo-placeholder {
	width: 100%;
	height: 100%;
	min-height: 260px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 0.65rem;
	padding: 1.5rem 1.25rem;
	background: linear-gradient(160deg, #141414 0%, #0a0a0a 100%);
}

.bb-about__ph-title {
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--bb-text);
}

.bb-about__ph-text {
	font-size: 0.88rem;
	line-height: 1.55;
	color: var(--bb-text-muted);
	max-width: 28ch;
}

.bb-about__visual--empty .bb-about__frame {
	border-style: dashed;
	border-color: rgba(57, 255, 20, 0.35);
	box-shadow: none;
}

@media (max-width: 900px) {
	.bb-about__frame {
		width: min(300px, 85vw);
		max-height: min(420px, 55vh);
	}
}

/* ——— Contact ——— */
.bb-contact-box {
	background: linear-gradient(125deg, #0d2818 0%, #061a0f 45%, #020804 100%);
	border: 1px solid #1e4d2e;
	border-radius: calc(var(--bb-radius) + 4px);
	padding: clamp(1.75rem, 4vw, 2.75rem);
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: clamp(1rem, 3vw, 2rem);
	align-items: stretch;
}

@media (max-width: 768px) {
	.bb-contact-box {
		grid-template-columns: 1fr;
	}
}

.bb-contact__or {
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	font-size: 0.9rem;
	color: var(--bb-text-muted);
}

@media (max-width: 768px) {
	.bb-contact__or {
		padding: 0.5rem 0;
	}
}

.bb-contact__col h3 {
	margin: 0 0 1.25rem;
	font-size: 1.1rem;
	font-weight: 700;
}

.bb-form-note {
	font-size: 0.9rem;
	color: var(--bb-text-muted);
	margin-top: 1rem;
}

/* Pole formularza (Contact Form 7 / podobne) */
.bb-contact-box .wpcf7 form .wpcf7-form-control-wrap,
.bb-contact-box input[type="text"],
.bb-contact-box input[type="email"],
.bb-contact-box input[type="tel"] {
	display: block;
	width: 100%;
	margin-bottom: 0.75rem;
}

.bb-contact-box input[type="text"],
.bb-contact-box input[type="email"],
.bb-contact-box input[type="tel"],
.bb-contact-box textarea {
	width: 100%;
	padding: 0.65rem 0.85rem;
	border-radius: 10px;
	border: 1px solid #2d5a3d;
	background: rgba(0, 0, 0, 0.35);
	color: var(--bb-text);
	font-family: inherit;
	font-size: 0.95rem;
}

.bb-contact-box label {
	display: block;
	font-size: 0.75rem;
	color: var(--bb-text-muted);
	margin-bottom: 0.25rem;
}

.bb-contact-box .wpcf7-submit,
.bb-contact-box input[type="submit"] {
	width: 100%;
	margin-top: 0.5rem;
	padding: 0.85rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	background: transparent;
	color: var(--bb-text);
	border: 2px solid var(--bb-accent);
	border-radius: var(--bb-radius-pill);
	cursor: pointer;
	font-family: inherit;
}

.bb-contact-box .wpcf7-submit:hover,
.bb-contact-box input[type="submit"]:hover {
	background: rgba(57, 255, 20, 0.1);
}

.bb-contact__grid-fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem;
}

@media (max-width: 480px) {
	.bb-contact__grid-fields {
		grid-template-columns: 1fr;
	}
}

.bb-contact__ig {
	text-align: center;
}

.bb-contact__ig p {
	margin: 0;
	color: var(--bb-text-muted);
	line-height: 1.65;
}

/* ——— Footer ——— */
.bb-footer {
	padding: 2rem 0 2.5rem;
	border-top: 1px solid var(--bb-card-border);
	text-align: center;
	font-size: 0.85rem;
	color: var(--bb-text-muted);
}

.bb-footer a {
	color: var(--bb-text-muted);
}
