/*
Theme Name:  GH Shot
Template:    kadence
Description: Child theme of Kadence for GH Shot. Look and layout come from Kadence settings (Customizer, block settings); this file holds only what Kadence cannot set. No business logic (that lives in the GH Shot Core plugin).
Version:     0.5.13
Text Domain: gh-shot
*/

/* The only logo files are black-on-transparent; invert them for the dark site. */
.site-branding img.custom-logo,
img[src*="GH-SHOT-czarno-biale"],
img[src*="gh-shot-logo"] {
	filter: invert(1);
}

/*
 * Header phone: keep one line when visible. Between tablet-desktop and ~1360 px
 * the 7-item menu + CTA leave no room (Kadence HTML item has no per-width hide).
 */
.site-header-main-section-right .header-html,
.site-header-main-section-right .header-html a {
	white-space: nowrap;
}
@media (min-width: 1025px) and (max-width: 1359px) {
	.site-header-main-section-right .header-html {
		display: none;
	}
}

/* Keyboard focus: neon ring; leave mouse clicks without a persistent outline. */
a:focus-visible,
button:focus-visible,
.kb-button:focus-visible,
.header-button a:focus-visible,
.ghs-actionbar a:focus-visible,
.wp-block-details > summary:focus-visible,
.menu-toggle:focus-visible {
	outline: 2px solid var(--global-palette1, #39ff14);
	outline-offset: 3px;
}

/*
 * Service / content card photos: equal crop so three-up rows look aligned.
 * Kadence Image has no global aspect-ratio setting for all card figures.
 */
.wp-block-kadence-column .kt-inside-inner-col > .wp-block-image:first-child {
	margin: 0 0 0.75rem;
}
.wp-block-kadence-column .kt-inside-inner-col > .wp-block-image:first-child img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	display: block;
	border-radius: 2px;
}

/* Cennik / stacked price groups: clearer separation without a second catalogue UI. */
.entry-content .wp-block-kadence-advancedheading + .wp-block-shortcode,
.entry-content .wp-block-shortcode + .wp-block-list {
	margin-block-start: 0.75rem;
}
.entry-content .wp-block-list {
	padding-inline-start: 1.25rem;
}
.entry-content .wp-block-list li + li {
	margin-top: 0.35rem;
}

/*
 * ==========================================================================
 * Mobile header + sticky CTA — FINAL SIMPLIFICATION (v0.5.11)
 *
 * Navbar concept: [ LOGO ] ……………… [ MENU ]  (no REZERWUJ in header)
 * Booking CTA lives only in `.ghs-actionbar` on mobile/tablet.
 * Desktop header button is untouched (outside #mobile-header).
 *
 * Structural notes carried from v0.5.10:
 * - Kill Kadence contained padding on sticky wrap (was 24px + 12px gutters).
 * - Solid full-bleed header background.
 * - Placeholder height must match sticky bar (no ghost gap).
 * ========================================================================== */
@media (max-width: 1024px) {
	/* Full-bleed sticky shell */
	#mobile-header .site-main-header-wrap,
	#mobile-header .site-main-header-wrap.site-header-row-layout-contained,
	#mobile-header .kadence-sticky-header {
		width: 100% !important;
		max-width: none !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
		left: 0 !important;
		right: 0 !important;
		box-sizing: border-box !important;
		background-color: var(--global-palette7, #1a202c) !important;
		background-image: none !important;
		min-height: 66px;
		height: auto !important;
	}

	#mobile-header .site-header-row-container-inner {
		width: 100% !important;
		max-width: none !important;
		margin: 0 !important;
		padding: 0 !important;
		box-sizing: border-box;
		background: transparent;
	}

	#mobile-header .site-container {
		width: 100% !important;
		max-width: none !important;
		margin: 0 !important;
		padding-top: 0 !important;
		padding-bottom: 0 !important;
		padding-left: max(16px, env(safe-area-inset-left, 0px)) !important;
		padding-right: max(16px, env(safe-area-inset-right, 0px)) !important;
		box-sizing: border-box !important;
	}

	/* Sticky placeholder = bar height */
	#mobile-header .site-header-upper-inner-wrap.child-is-fixed {
		height: 66px !important;
		min-height: 66px !important;
	}
	#mobile-header,
	#mobile-header .site-header-inner-wrap,
	#mobile-header .site-header-upper-wrap {
		min-height: 0;
	}

	/*
	 * Layout: [ LOGO | MENU ]
	 * Remove Kadence mobile header button from the mobile layout entirely
	 * (display:none — not opacity / off-screen). Desktop .header-button stays.
	 */
	#mobile-header .site-header-item[data-section="kadence_customizer_mobile_button"],
	#mobile-header .mobile-header-button-wrap,
	#mobile-header a.mobile-header-button {
		display: none !important;
	}

	#mobile-header .site-main-header-inner-wrap.site-header-row {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
		column-gap: 16px;
		width: 100%;
		max-width: 100%;
		min-height: 66px;
		height: 66px;
		box-sizing: border-box;
		margin: 0;
		padding: 0;
	}
	#mobile-header .site-header-main-section-left {
		grid-column: 1;
		display: flex;
		align-items: center;
		justify-content: flex-start;
		min-width: 0;
		height: 100%;
	}
	#mobile-header .site-header-main-section-right {
		display: contents;
	}
	#mobile-header .site-header-item-navgation-popup-toggle {
		grid-column: 2;
		justify-self: end;
		display: flex;
		align-items: center;
		justify-content: flex-end;
		height: 100%;
	}
	#mobile-header .site-header-item {
		margin: 0 !important;
		padding: 0 !important;
	}

	/* Logo slot up to 116 px; height capped to fit 66 px bar (native aspect) */
	#mobile-header .mobile-site-branding {
		width: auto;
		max-width: 116px;
		line-height: 0;
	}
	#mobile-header .mobile-site-branding .brand,
	#mobile-header .mobile-site-branding a {
		display: flex;
		align-items: center;
		width: auto;
	}
	#mobile-header .mobile-site-branding .custom-logo {
		width: auto !important;
		height: auto !important;
		max-width: 116px !important;
		max-height: 58px !important;
		object-fit: contain;
		object-position: left center;
	}

	/* Hamburger */
	#mobile-header .mobile-toggle-open-container {
		display: flex;
		align-items: center;
		justify-content: center;
	}
	#mobile-header #mobile-toggle.menu-toggle-open {
		box-sizing: border-box !important;
		display: inline-flex !important;
		align-items: center;
		justify-content: center;
		width: 44px !important;
		min-width: 44px !important;
		height: 44px !important;
		min-height: 44px !important;
		padding: 0 !important;
		margin: 0 !important;
	}
	#mobile-header #mobile-toggle .menu-toggle-icon,
	#mobile-header #mobile-toggle .kadence-svg-iconset,
	#mobile-header #mobile-toggle svg {
		width: 25px !important;
		height: 25px !important;
	}
}

@media (max-width: 359px) {
	#mobile-header .site-container {
		padding-left: max(14px, env(safe-area-inset-left, 0px)) !important;
		padding-right: max(14px, env(safe-area-inset-right, 0px)) !important;
	}
	/* Narrow phones: still larger than pre-fix 85×38 */
	#mobile-header .mobile-site-branding {
		width: auto;
		max-width: 110px;
	}
	#mobile-header .mobile-site-branding .custom-logo {
		max-width: 110px !important;
		max-height: 54px !important;
	}
}

/* Sticky CTA — compact 44–46px buttons, strip ≤68px without safe-area */
.ghs-actionbar {
	display: none;
}
@media (max-width: 1024px) {
	.ghs-actionbar {
		position: fixed;
		z-index: 99;
		left: 0;
		right: 0;
		bottom: 0;
		display: grid;
		grid-template-columns: 1fr 1fr;
		align-items: center;
		gap: 10px;
		/* 10 + 44 + 10 = 64 px content; +1px border → ~65 without safe-area */
		padding: 10px 15px calc(10px + env(safe-area-inset-bottom, 0px));
		background: var(--global-palette7, #1a202c);
		border-top: 1px solid rgba(255, 255, 255, 0.12);
		box-sizing: border-box;
		max-height: none;
		min-height: 0;
		height: auto;
		transition: transform 0.2s ease;
	}
	.ghs-actionbar.is-hidden {
		transform: translateY(110%);
	}
	.ghs-actionbar a,
	.ghs-actionbar a.button,
	.ghs-actionbar__book,
	.ghs-actionbar__call {
		box-sizing: border-box !important;
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
		width: 100% !important;
		height: 44px !important;
		min-height: 44px !important;
		max-height: 46px !important;
		padding: 0 11px !important;
		margin: 0 !important;
		font-family: var(--global-heading-font-family, Teko, sans-serif) !important;
		font-size: 15px !important;
		font-weight: 500 !important;
		line-height: 1.1 !important;
		letter-spacing: 0.02em;
		text-transform: uppercase;
		text-decoration: none !important;
		border-radius: 5px !important;
		box-shadow: none !important;
	}
	.ghs-actionbar a:focus-visible {
		outline-offset: 2px;
	}
	.ghs-actionbar__book {
		background: #39ff14 !important;
		color: var(--global-palette7, #1a202c) !important;
		border: 0 !important;
	}
	.ghs-actionbar__call {
		background: transparent !important;
		border: 1.5px solid #fff !important;
		color: #fff !important;
	}
	body.ghs-has-actionbar {
		padding-bottom: calc(65px + env(safe-area-inset-bottom, 0px));
	}
}
@media (prefers-reduced-motion: reduce) {
	.ghs-actionbar {
		transition: none;
	}
}

/*
 * Booking anchors: keep #rezerwacja / the widget below the sticky header
 * and above the mobile action bar. Do not use window.scrollTo(0, 0).
 */
:root {
	--ghs-header-offset: 96px;
	--ghs-actionbar-offset: 0px;
}
@media (max-width: 1024px) {
	:root {
		--ghs-header-offset: 66px;
		--ghs-actionbar-offset: 65px;
	}
}
#rezerwacja,
#booking,
#bania,
#strefa,
#pakiety,
#wynajmij-podstawowy,
#wynajmij-rozszerzony,
.ghs-booking,
.gembk-flow-wrap,
.gembk-flow-catalog,
.gembk-pending-payment,
.gembk-inline-booking,
.gembooking-book-schedule__heading {
	scroll-margin-top: calc(var(--ghs-header-offset) + 12px);
	scroll-margin-bottom: calc(var(--ghs-actionbar-offset) + 12px);
}

/*
 * ==========================================================================
 * Booking hub — /rezerwacja/ (v0.5.12)
 * Two attraction cards → Paintball / Bania GemBooking sections.
 * ========================================================================== */
.ghs-hub {
	box-sizing: border-box;
	width: 100%;
	max-width: 1100px;
	margin: 0 auto;
	padding: 2.5rem 1.25rem 3rem;
	color: #f7fafc;
}
.ghs-hub__hero {
	text-align: center;
	margin: 0 auto 2rem;
	max-width: 36rem;
}
.ghs-hub__eyebrow {
	margin: 0 0 0.5rem;
	font-family: var(--global-heading-font-family, Teko, sans-serif);
	font-size: 0.95rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--global-palette1, #39ff14);
}
.ghs-hub__title {
	margin: 0 0 0.75rem;
	font-family: var(--global-heading-font-family, Teko, sans-serif);
	font-size: clamp(1.85rem, 4.5vw, 2.75rem);
	font-weight: 600;
	line-height: 1.05;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #fff;
}
.ghs-hub__lead {
	margin: 0;
	font-size: 1.125rem;
	line-height: 1.55;
	color: #cbd5e0;
}
.ghs-hub__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
}
@media (min-width: 768px) {
	.ghs-hub {
		padding: 3rem 1.5rem 3.5rem;
	}
	.ghs-hub__grid {
		grid-template-columns: 1fr 1fr;
		gap: 1.5rem;
		align-items: stretch;
	}
}
.ghs-hub-card {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	text-decoration: none !important;
	color: inherit;
	background: #1f2733;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 10px;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
	transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
	-webkit-tap-highlight-color: rgba(57, 255, 20, 0.18);
}
.ghs-hub-card:hover {
	transform: translateY(-3px);
	border-color: rgba(57, 255, 20, 0.45);
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.36);
}
.ghs-hub-card:focus-visible {
	outline: 2px solid var(--global-palette1, #39ff14);
	outline-offset: 3px;
}
.ghs-hub-card:active {
	transform: translateY(-1px);
}
.ghs-hub-card__media {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #151a22;
}
.ghs-hub-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 0.25s ease;
}
.ghs-hub-card:hover .ghs-hub-card__media img {
	transform: scale(1.03);
}
.ghs-hub-card__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	gap: 0.65rem;
	padding: 1.15rem 1.15rem 1.25rem;
}
.ghs-hub-card__title {
	display: block;
	font-family: var(--global-heading-font-family, Teko, sans-serif);
	font-size: clamp(1.55rem, 3.2vw, 1.9rem);
	font-weight: 600;
	line-height: 1.05;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #fff;
}
.ghs-hub-card__desc {
	display: block;
	font-size: 1rem;
	line-height: 1.45;
	color: #a0aec0;
}
.ghs-hub-card__facts {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	margin: 0.15rem 0 0.35rem;
	padding: 0;
}
.ghs-hub-card__fact {
	display: block;
	position: relative;
	padding-left: 0.9rem;
	font-size: 0.98rem;
	line-height: 1.35;
	color: #e2e8f0;
}
.ghs-hub-card__fact::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 0.4rem;
	height: 0.4rem;
	border-radius: 50%;
	background: var(--global-palette1, #39ff14);
}
.ghs-hub-card__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: stretch;
	box-sizing: border-box;
	min-height: 46px;
	margin-top: auto;
	padding: 0.7rem 1rem;
	font-family: var(--global-heading-font-family, Teko, sans-serif);
	font-size: 1.05rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-align: center;
	color: var(--global-palette7, #1a202c);
	background: var(--global-palette1, #39ff14);
	border-radius: 6px;
	transition: filter 0.15s ease, background-color 0.15s ease;
}
.ghs-hub-card:hover .ghs-hub-card__cta,
.ghs-hub-card:focus-visible .ghs-hub-card__cta {
	filter: brightness(1.06);
}
.ghs-hub__note {
	margin: 1.75rem 0 0;
	text-align: center;
	font-size: 0.95rem;
	line-height: 1.5;
	color: #a0aec0;
}
.ghs-hub__note a {
	color: var(--global-palette1, #39ff14);
	text-decoration: none;
	font-weight: 600;
}
.ghs-hub__note a:hover,
.ghs-hub__note a:focus-visible {
	text-decoration: underline;
}
@media (max-width: 359px) {
	.ghs-hub {
		padding: 1.75rem 0.9rem 2.25rem;
	}
	.ghs-hub-card__body {
		padding: 1rem 0.95rem 1.1rem;
	}
}
@media (prefers-reduced-motion: reduce) {
	.ghs-hub-card,
	.ghs-hub-card__media img,
	.ghs-hub-card__cta {
		transition: none;
	}
	.ghs-hub-card:hover,
	.ghs-hub-card:active {
		transform: none;
	}
	.ghs-hub-card:hover .ghs-hub-card__media img {
		transform: none;
	}
}

/*
 * FAQ (core Details): the question is the tap target — at least 44 px (project
 * UX rule). Core Details has no setting for the summary; the separator line
 * is the block's border setting.
 */
.wp-block-details > summary {
	padding: 10px 0;
	font-weight: 700;
	cursor: pointer;
}

/*
 * Offer cards (#oferta): equal column height + CTA row pinned to one baseline
 * so missing/extra copy does not leave buttons at different heights.
 */
#oferta .kt-has-3-columns > .wp-block-kadence-column > .kt-inside-inner-col {
	display: flex;
	flex-direction: column;
	height: 100%;
}
#oferta .kt-has-3-columns > .wp-block-kadence-column > .kt-inside-inner-col > .kb-buttons-wrap {
	margin-top: auto;
}
#oferta .ghs-summary {
	min-height: 1.75em;
}

/*
 * Section notes (e.g. “Dodatkowe wynajmy…”) must use the body font stack and
 * the same 1.125rem lead size as other section intros — not the default 17px
 * body size that made the line look like a foreign system style.
 */
.entry-content .ghs-section-note,
.entry-content p.ghs-section-note {
	font-family: var(--global-body-font-family, "Maven Pro", sans-serif);
	font-size: 1.125rem;
	line-height: 1.6;
	font-weight: 400;
	letter-spacing: normal;
	margin-top: 1.25rem;
	margin-bottom: 0;
}

/*
 * Phone-only hire tiles (grill / wiaty / sauna): body font at lead size;
 * green weight on tel links so they match .ghs-summary__price, not a “foreign” look.
 */
.entry-content .kt-has-3-columns > .wp-block-kadence-column > .kt-inside-inner-col:has(> h3.wp-block-heading):has(> p a[href^="tel:"]) {
	display: flex;
	flex-direction: column;
	height: 100%;
}
.entry-content .kt-has-3-columns > .wp-block-kadence-column > .kt-inside-inner-col:has(> h3.wp-block-heading):has(> p a[href^="tel:"]) > p {
	font-family: var(--global-body-font-family, "Maven Pro", sans-serif);
	font-size: 1.125rem;
	line-height: 1.55;
	font-weight: 400;
	letter-spacing: normal;
	margin-top: 0.35rem;
	margin-bottom: 0;
}
.entry-content .kt-has-3-columns > .wp-block-kadence-column > .kt-inside-inner-col:has(> h3.wp-block-heading):has(> p a[href^="tel:"]) > p a {
	font-family: inherit;
	font-weight: 700;
	color: var(--global-palette1, #39ff14);
	text-decoration: none;
}
.entry-content .kt-has-3-columns > .wp-block-kadence-column > .kt-inside-inner-col:has(> h3.wp-block-heading):has(> p a[href^="tel:"]) > p a:hover,
.entry-content .kt-has-3-columns > .wp-block-kadence-column > .kt-inside-inner-col:has(> h3.wp-block-heading):has(> p a[href^="tel:"]) > p a:focus-visible {
	text-decoration: underline;
}

/* WooCommerce block checkout: floating labels inherited the light body colour. */
.wc-block-components-text-input label,
.wc-block-components-country-input label,
.wc-blocks-components-select .wc-blocks-components-select__label,
.wc-block-components-combobox .wc-block-components-combobox-control label {
	color: #4a5568;
}
.wc-block-components-text-input input,
.wc-blocks-components-select .wc-blocks-components-select__select {
	color: #1a202c;
}

/* Kadence contact form on the neon panel: typed text was 1.3:1 (temporary — move to the form block settings). */
.wp-block-kadence-form .kb-form .kb-field {
	color: #1a202c !important; /* beats the per-block colour Kadence generates */
}
.wp-block-kadence-form input::placeholder,
.wp-block-kadence-form textarea::placeholder {
	color: #2d3748;
	opacity: 0.8;
}
