/*
 Theme Name:   sprawdz-kierowce.pl
 Theme URI:    https://sprawdz-kierowce.pl
 Description:  Motyw dziecko Twenty Twenty-Five ze stylistyką sprawdz-kierowce.pl
 Author:       Grizzly Software
 Author URI:   https://sprawdz-kierowce.pl
 Template:     twentytwentyfive
 Version:      1.0.37
 License:      GNU General Public License v2 or later
 License URI:  https://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  sprawdz-kierowce
*/

/* ==========================================================================
   1. GLOBAL OVERRIDES
   ========================================================================== */

html {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body {
	overflow-x: hidden;
}

/* ==========================================================================
   2. HERO SECTION (use with Cover block)
   */

.hero-wave {
  position: relative;
  overflow: hidden;
  margin-top: -40vw;
  line-height: 0;
  z-index: -1; /*zeby schowac sie pod tytulem i menu*/
}

.hero-wave img{
  display: block;
  width: 100%;
  height: auto;
}

.hero-wave svg {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: auto;
  fill: #fff;
  z-index: 2;
  pointer-events: none;
}

/* nadpisanie koloru pod hero-wave */
.wp-block-site-title {
  color: #ffffff;
}

.wp-block-navigation {
  padding-top: 20px;
  color: #ffffff;
  justify-content: center;
}

.wp-block-navigation .wp-block-navigation__responsive-container-open {
  margin-left: auto;
}
   
/* Wave shape bottom - dodaj jako Custom HTML block pod Cover */
.sk-wave-bottom {
	position: absolute;
	bottom: -1px;
	left: 0;
	width: 100%;
	line-height: 0;
	z-index: 2;
}

.sk-wave-bottom svg {
	display: block;
	width: 100%;
	height: auto;
}

.sk-wave-bottom svg path {
	fill: #ffffff;
}

/* Hero section spacing */
.sk-hero {
	padding-top: 170px !important;
	padding-bottom: 100px !important;
	position: relative;
	overflow: hidden;
}

.sk-hero .wp-block-cover__inner-container {
	position: relative;
	z-index: 3;
}

/* ==========================================================================
   3. SECTION SPACING (use as CSS class on Group blocks)
   ========================================================================== */

.sk-section {
	padding-top: 100px !important;
	padding-bottom: 100px !important;
}

.sk-section-sm {
	padding-top: 60px !important;
	padding-bottom: 60px !important;
}

/* Whitesmoke gradient background */
.sk-bg-whitesmoke {
	background-image: linear-gradient(180deg, rgba(244,244,249,0.8) 50%, rgba(244,244,249,0.05) 100%) !important;
}

/* ==========================================================================
   4. BUTTONS
   ========================================================================== */

/* Primary button (default - already set in theme.json) */
.wp-block-button__link {
	transition: all 0.3s ease;
}

/* Outline / transparent button */
.wp-block-button.is-style-outline .wp-block-button__link {
	color: var(--wp--preset--color--primary);
	border: 2px solid var(--wp--preset--color--primary);
	background-color: transparent;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	color: var(--wp--preset--color--white);
	background-color: var(--wp--preset--color--primary-hover);
	border-color: var(--wp--preset--color--primary-hover);
}

/* White outline button (for hero) */
.sk-btn-white-outline .wp-block-button__link {
	color: #fff !important;
	border: 2px solid #fff !important;
	background-color: transparent !important;
}

.sk-btn-white-outline .wp-block-button__link:hover {
	color: var(--wp--preset--color--primary) !important;
	background-color: #fff !important;
	border-color: #fff !important;
}

/* Purple button (for demo CTA) */
.sk-btn-purple .wp-block-button__link {
	background-color: var(--wp--preset--color--secondary) !important;
	border-color: var(--wp--preset--color--secondary) !important;
}

.sk-btn-purple .wp-block-button__link:hover {
	background-color: #6a4bc5 !important;
	border-color: #6a4bc5 !important;
}

/* ==========================================================================
   5. BLOG CARDS (use with Query Loop + Columns)
   ========================================================================== */

.sk-blog-card {
	background: var(--wp--preset--color--white);
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 3px rgba(96, 96, 96, 0.1);
	transition: box-shadow 0.3s ease, transform 0.3s ease;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.sk-blog-card:hover {
	box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.12);
	transform: translateY(-3px);
}

.sk-blog-card img {
	width: 100%;
	height: 200px;
	object-fit: cover;
}

.sk-blog-card .sk-card-body {
	padding: 1.25rem;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.sk-blog-card .sk-card-body h5 {
	font-family: var(--wp--preset--font-family--jakarta);
	font-size: 1.1875rem;
	font-weight: 700;
	color: var(--wp--preset--color--dark);
	margin-bottom: 0.75rem;
}

.sk-blog-card .sk-card-body p {
	flex-grow: 1;
	margin-bottom: 1rem;
}

.sk-blog-card .sk-card-date {
	font-size: 0.875rem;
	color: var(--wp--preset--color--grey);
}

/* ==========================================================================
   6. FLOATING SOCIAL PANEL
   ========================================================================== */

.sk-social-panel {
	position: fixed;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	z-index: 1000;
	background-color: rgba(255, 255, 255, 0.95);
	border-radius: 0 12px 12px 0;
	box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.1);
	padding: 15px 10px;
}

.sk-social-panel ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.sk-social-panel ul li a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 45px;
	height: 45px;
	border-radius: 50%;
	background-color: #f5f5f5;
	color: #333;
	text-decoration: none;
	transition: all 0.3s ease;
}

.sk-social-panel ul li a:hover {
	background-color: var(--wp--preset--color--primary);
	color: #fff;
	transform: scale(1.1);
}

.sk-social-panel ul li a svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
}

@media (max-width: 768px) {
	.sk-social-panel {
		display: none;
	}
}

/* ==========================================================================
   7. FOOTER
   ========================================================================== */

.sk-footer {
	padding-top: 100px !important;
}

.sk-footer h6,
.sk-footer .wp-block-heading {
	font-size: 1.0625rem;
	font-weight: 700;
	color: var(--wp--preset--color--dark);
	margin-bottom: 1.25rem;
}

.sk-footer p,
.sk-footer li {
	font-size: 0.9375rem;
}

.sk-footer a {
	color: var(--wp--preset--color--body-text);
	text-decoration: none;
}

.sk-footer a:hover {
	color: var(--wp--preset--color--primary);
}

.sk-footer-socials {
	list-style: none;
	display: flex;
	gap: 12px;
	padding: 0;
	margin: 1rem 0 0 0;
}

.sk-footer-socials a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background-color: #f5f5f5;
	transition: all 0.3s ease;
}

.sk-footer-socials a:hover {
	background-color: var(--wp--preset--color--primary);
	color: #fff;
}

.sk-footer-socials svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.sk-footer-bottom {
	border-top: 1px solid var(--wp--preset--color--border);
	padding-top: 1.5rem;
	margin-top: 2rem;
}

.sk-footer-bottom p {
	font-size: 0.875rem;
	color: var(--wp--preset--color--grey);
}

/* ==========================================================================
   8. SECTION TITLE
   ========================================================================== */

.sk-section-title {
	text-align: center;
	margin-bottom: 70px;
}

.sk-section-title h2 {
	font-size: clamp(1.75rem, 4vw, 3.125rem);
	font-weight: 700;
	margin-bottom: 0.75rem;
}

.sk-section-title p {
	font-size: var(--wp--preset--font-size--x-large);
	color: var(--wp--preset--color--grey);
}

/* ==========================================================================
   9. UTILITY CLASSES
   ========================================================================== */

.sk-shadow {
	box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.08);
}

.sk-shadow-hover:hover {
	box-shadow: 0 8px 24px 0 rgba(0, 0, 0, 0.12);
}

.sk-rounded-sm { border-radius: 4px; }
.sk-rounded-md { border-radius: 8px; }
.sk-rounded-lg { border-radius: 12px; }
.sk-rounded-xl { border-radius: 16px; }

.sk-text-center { text-align: center; }

/* ==========================================================================
   10. RESPONSIVE TWEAKS
   ========================================================================== */

@media (max-width: 991.98px) {
	.sk-hero {
		padding-top: 120px !important;
		padding-bottom: 80px !important;
	}

	.sk-section {
		padding-top: 70px !important;
		padding-bottom: 70px !important;
	}

	.sk-section-title {
		margin-bottom: 50px;
	}
}

@media (max-width: 767.98px) {
	.sk-hero {
		padding-top: 100px !important;
		padding-bottom: 60px !important;
	}

	.sk-section {
		padding-top: 50px !important;
		padding-bottom: 50px !important;
	}

}
/* ===============================
   Query Loop – karty pionowe
   =============================== */

.wp-block-query .wp-block-post-template{
  list-style: none;
  margin: 0;
  padding: 0;

  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

/* 2 kolumny */
.wp-block-query .wp-block-post-template > li{
  flex: 0 0 calc(50% - 14px);
  box-sizing: border-box;

  background: #fff;
  border-radius: 14px;
  border: 1px solid #e8e8e8;
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
  overflow: hidden;

  display: flex;
  flex-direction: column;
}

/* 1 kolumna mobile */
@media (max-width: 860px){
  .wp-block-query .wp-block-post-template > li{
    flex-basis: 100%;
  }
}

