/*
 * KrokoDent — global.css
 * Style globalne używane na wszystkich podstronach:
 *  - Przyciski (.btn, .btn-primary, .btn-ghost, .btn-outline, .btn-shimmer)
 *  - Kolory sekcji (.section-dark, .section-teal, .section-charcoal)
 *  - Helper klasy (.kicker, .lead, .h1, .h2, .text-center, .container, .mt-*)
 *  - Breadcrumb globalny
 *
 * Enqueue: wp_enqueue_style z deps ['kd-theme'] na każdej stronie.
 * Dodaj w functions.php do globalnego hooka wp_enqueue_scripts.
 */


/* ════════════════════════════════════════════════════════════════
   SECTION COLORS
═══════════════════════════════════════════════════════════════════ */

.section-dark {
	background: var(--bg-near-black, #f0f2ef);
	border-top: 1px solid rgba(45, 122, 58, 0.12);
	border-bottom: 1px solid rgba(45, 122, 58, 0.12);
	padding: var(--space-8, 96px) 0;
}

.section-teal {
	background: linear-gradient(135deg, var(--bg-teal, #eaf2ec) 0%, var(--bg-teal-light, #deeee1) 100%);
	border-top: 1px solid rgba(45, 122, 58, 0.14);
	border-bottom: 1px solid rgba(45, 122, 58, 0.14);
	padding: var(--space-8, 96px) 0;
}

.section-charcoal {
	background: var(--bg-charcoal, #e8ebe7);
	padding: var(--space-8, 96px) 0;
}


/* ════════════════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════════════════ */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2, 12px);
	padding: 16px 32px;
	border-radius: var(--radius-full, 9999px);
	font-family: var(--font-sans, 'Inter', sans-serif);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.02em;
	cursor: pointer;
	border: 2px solid transparent;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	white-space: nowrap;
	text-align: center;
	position: relative;
	overflow: hidden;
	text-decoration: none;
}

.btn::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
	opacity: 0;
	transition: opacity 0.25s ease;
}

.btn:hover::before { opacity: 1; }
.btn:hover         { transform: translateY(-2px); }
.btn:active        { transform: translateY(0); }

/* Primary */
.btn-primary {
	background: linear-gradient(135deg, #184a22 0%, #256531 50%, #2f7440 100%);
	color: #ffffff;
	border-color: #2d7a3a;
	box-shadow: 0 0 20px rgba(45,122,58,0.25), 0 4px 12px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.15);
}

.btn-primary::after {
	content: '';
	position: absolute;
	top: -50%; left: -100%;
	width: 100%; height: 200%;
	background: linear-gradient(90deg, transparent, rgba(200,230,205,0.35), transparent);
	transform: skewX(-25deg);
	transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover::after { left: 100%; }

.btn-primary:hover {
	background: linear-gradient(135deg, #256531 0%, #2f7440 50%, #3c8a4e 100%);
	border-color: #3d8f4a;
	color: #ffffff;
	box-shadow: 0 0 32px rgba(45,122,58,0.40), 0 8px 24px rgba(0,0,0,0.4);
}

/* Shimmer */
.btn-shimmer::before {
	opacity: 1;
	background: linear-gradient(125deg, transparent 40%, rgba(200,230,205,0.35) 50%, transparent 60%);
	animation: kdShimmerBtn 3s infinite;
}

@keyframes kdShimmerBtn {
	0%   { transform: translateX(-100%) skewX(-25deg); }
	100% { transform: translateX(200%) skewX(-25deg); }
}

/* Ghost */
.btn-ghost {
	background: rgba(255,255,255,0.70);
	color: #1a2e1c;
	border-color: rgba(45,122,58,0.22);
}

.btn-ghost:hover {
	background: #ffffff;
	border-color: rgba(45,122,58,0.40);
	color: #1a2e1c;
}

/* Outline (ciemne tło → biały) */
.btn-outline {
	background: transparent;
	color: #3d8f4a;
	border-color: #2d7a3a;
}

.btn-outline:hover {
	background: linear-gradient(135deg, #184a22, #256531, #2f7440);
	color: #ffffff;
	border-color: #3d8f4a;
}

/* Outline na ciemnym tle (hero) */
.hero .btn-outline,
.kd-oferta-hero .btn-outline,
.kd-onas-hero .btn-outline,
.kd-cat-hero .btn-outline,
.kd-contact-hero .btn-outline {
	color: #fff;
	border-color: rgba(255,255,255,0.55);
	background: rgba(255,255,255,0.10);
}

.hero .btn-outline:hover,
.kd-oferta-hero .btn-outline:hover,
.kd-onas-hero .btn-outline:hover,
.kd-cat-hero .btn-outline:hover,
.kd-contact-hero .btn-outline:hover {
	background: rgba(255,255,255,0.22);
	border-color: rgba(255,255,255,0.90);
	color: #fff;
}

.btn:focus-visible {
	outline: 2px solid var(--green, #165224);
	outline-offset: 4px;
}


/* ════════════════════════════════════════════════════════════════
   TYPOGRAFIA GLOBALNA
═══════════════════════════════════════════════════════════════════ */

.kicker {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--green, #165224);
	display: inline-block;
	margin-bottom: var(--space-3, 16px);
}

.h1 {
	font-family: var(--font-serif, 'Playfair Display', serif);
	font-size: clamp(38px, 5.5vw, 72px);
	line-height: 1.1;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--text-primary, #1a2e1c);
	margin: 0 0 var(--space-4, 24px);
}

.h2 {
	font-family: var(--font-serif, 'Playfair Display', serif);
	font-size: clamp(28px, 3.5vw, 46px);
	line-height: 1.15;
	font-weight: 700;
	letter-spacing: -0.015em;
	color: var(--text-primary, #1a2e1c);
	margin: 0 0 var(--space-4, 24px);
}

.lead {
	font-size: clamp(16px, 1.5vw, 19px);
	line-height: 1.7;
	color: var(--text-secondary, rgba(26,46,28,0.70));
	max-width: 68ch;
	margin: 0 0 var(--space-5, 32px);
}

.preheader {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--green, #165224);
	display: inline-block;
	margin-bottom: var(--space-3, 16px);
}

.body-text p { margin: 0 0 1.1em; }
.body-text p:last-child { margin-bottom: 0; }


/* ════════════════════════════════════════════════════════════════
   LAYOUT HELPERS
═══════════════════════════════════════════════════════════════════ */

.text-center { text-align: center; }
.text-center .lead { margin-left: auto; margin-right: auto; }

.mt-5 { margin-top: var(--space-5, 32px); }
.mt-6 { margin-top: var(--space-6, 48px); }
.mb-6 { margin-bottom: var(--space-6, 48px); }


/* ════════════════════════════════════════════════════════════════
   BREADCRUMB GLOBALNY
═══════════════════════════════════════════════════════════════════ */

.breadcrumb-list {
	list-style: none;
	padding: 0;
	margin: 0 0 var(--space-4, 24px);
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0;
}

.breadcrumb-list li  { font-size: 13px; color: rgba(255,255,255,0.55); display: flex; align-items: center; }
.breadcrumb-list a   { color: rgba(255,255,255,0.72); }
.breadcrumb-list a:hover { color: #fff; opacity: 1; }
.breadcrumb-list .sep { margin: 0 8px; opacity: 0.35; }

/* Global trust bar used by offer/service shortcodes. */
.trust-bar {
	position: relative;
	z-index: 4;
	background: linear-gradient(135deg, #0f3a19, #1d5a29);
	color: #fff;
	box-shadow: 0 14px 34px rgba(15, 58, 25, .18);
}

.trust-bar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-4, 24px);
	min-height: 72px;
	padding: 16px 0;
}

.trust-bar-text {
	font-family: var(--font-serif, Georgia, serif);
	font-size: clamp(20px, 2vw, 30px);
	font-weight: 700;
	line-height: 1.15;
}

.trust-bar-meta,
.trust-bar-item {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.trust-bar-meta {
	flex-wrap: wrap;
	justify-content: flex-end;
	color: rgba(255, 255, 255, .86);
	font-weight: 700;
}

.trust-bar-item {
	color: inherit;
	text-decoration: none;
}

.trust-bar-item svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.trust-bar-phone:hover {
	color: #fff;
}

.trust-bar-sep {
	opacity: .4;
}

@media (max-width: 768px) {
	.trust-bar-inner {
		align-items: flex-start;
		flex-direction: column;
		gap: 12px;
	}

	.trust-bar-meta {
		justify-content: flex-start;
	}
}
