/*!
Theme Name: infologypl
Theme URI: https://infology.pl
Author: Kordian Maćkowiak
Author URI: https://infology.pl
Description: Starter theme
Version: 1.0.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: infologypl
*/

/* Reset
--------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	line-height: 1.15;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: #fff;
	color: #404040;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	font-size: 1rem;
	line-height: 1.5;
}

img {
	max-width: 100%;
	height: auto;
	border-style: none;
}

embed,
iframe,
object {
	max-width: 100%;
}

/* Accessibility
--------------------------------------------- */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* WordPress alignments
--------------------------------------------- */
.alignleft {
	float: left;
	margin-right: 1.5em;
	margin-bottom: 1.5em;
}

.alignright {
	float: right;
	margin-left: 1.5em;
	margin-bottom: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1.5em;
}



/* ─── Odstępy na podstronach (header → treść → footer) ─── */
.site-main {
    padding-top: 50px;
    padding-bottom: 60px;
}

/* Strona główna (front) — bez dodatkowych odstępów (hero zwykle do full width) */
.home .site-main,
.front-page .site-main {
    padding-top: 0;
    padding-bottom: 0;
}

/* Mniejsze odstępy na mobile */
@media (max-width: 768px) {
    .site-main {
        padding-top: 30px;
        padding-bottom: 40px;
    }
}

/* Header zawsze scrolluje razem ze stroną (bez sticky) */
header.ifh.ifh--sticky {
    position: static !important;
    top: auto !important;
}
