/*
Theme Name: Adlook
Author: Konrad Bukański
Author URI: 
Theme URI: 
Tags: full-site-editing, editor-style, block-styles, block-patterns
Text Domain: adlook
Requires at least: 6.3
Requires PHP: 7.4
Tested up to: 6.3
Version: 1.0.0

License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* Styles intended only for the front.*/
html {
	overflow-x: hidden;
}

/* Hide sections until scripts are loaded to prevent FOUC */
/* DISABLED - sections load immediately without delay */
/*
body:not(.scripts-loaded) section:not(.hero):not(.hero-section):not([class*="hero"]):not([class*="hero-full"]):not(.hero-full-screen-image):not(.cs-hero-hp):not([class*="cs-hero"]):not(.navbar):not([class*="navbar"]):not(header):not(.site-header):not(footer) {
	opacity: 0 !important;
	visibility: hidden !important;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

body:not(.scripts-loaded) main .wp-block-group:not(:first-child) {
	opacity: 0 !important;
	visibility: hidden !important;
}

body.scripts-loaded section:not(.hero):not(.hero-section):not([class*="hero"]):not([class*="hero-full"]):not(.hero-full-screen-image):not(.cs-hero-hp):not([class*="cs-hero"]),
body.scripts-loaded main .wp-block-group {
	opacity: 1 !important;
	visibility: visible !important;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}
*/

/* Lenis smooth scroll styles */
html.lenis {
	height: auto;
}

*{
	margin-block-start: unset;
    margin-block-end: unset;
}

.lenis.lenis-smooth {
	scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
	overscroll-behavior: contain;
}

.lenis.lenis-stopped {
	overflow: hidden;
}

.lenis.lenis-scrolling iframe {
	pointer-events: none;
}

html, body {
	max-width: 100%;
	overflow-x: hidden;
}

/* Sections full width */
section {
	max-width: none;
}

/* Fix H1UserAgentFontSizeInSection warning - ensure h1 in sections has explicit font-size */
section h1 {
	font-size: inherit;
}

@media screen and (prefers-reduced-motion: reduce) {

	html {
		scroll-behavior: auto;
	}
}

body {
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
	/* background-color: #edeee9; */
}

/* Global parallax effect styles - removed transform to prevent body shifting */
main {
	backface-visibility: hidden;
	perspective: 1000px;
}

/* Prevent orphans (single words at end of line) */
p, li, h1, h2, h3, h4, h5, h6, span, div, a, label, button {
	orphans: 3;
	widows: 3;
	hyphens: auto;
	-webkit-hyphens: auto;
	-moz-hyphens: auto;
	-ms-hyphens: auto;
	text-wrap: pretty;
}


main{
	padding: 0!important;
	background-color: transparent;
}

nav a{
	text-decoration: none!important;
}

header{
	z-index: 100;
	position: relative;
}

*{
	margin: 0;
	padding: 0;
	font-family: var(--wp--preset--font-family--lexend);
	position: relative;
}


.custom-logo-link{
	max-width: 7rem;
}

footer{
	margin-top: 0;
}

/* Custom background for page-insights */
body.page-insights {
	position: relative;
}

body.page-insights::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100vw;
	height: 200vh;
	background-color: #fff0;
	background-image: radial-gradient(circle at 0% calc(50% - 30px), #23ab5d70, #fff 23%);
	background-clip: border-box;
	z-index: -999;
	pointer-events: none;
	overflow: visible;
}

/* Custom background for page-careers */
body.page-careers {
	position: relative;
}

body.page-careers::before {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 200vh;
	background-color: #fff0;
	background-image: radial-gradient(circle at 0% calc(50% - 30px), #23ab5d70, #fff 23%);
	background-clip: border-box;
	z-index: -999;
	pointer-events: none;
	overflow: visible;
}

/* Custom background for single post */
body.single-post {
	position: relative;
}

body.single-post::before {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 200vh;
	background-color: #fff0;
	background-image: radial-gradient(circle at 0% calc(50% - 30px), #23ab5d70, #fff 23%);
	background-clip: border-box;
	z-index: -999;
	pointer-events: none;
	overflow: visible;
}

/* Custom gradients for page-about */
body.page-about {
	position: relative;
}

body.page-about::before {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	width: 50vw;
	height: 50vh;
	background: radial-gradient(70% 107% at 0% 47%, rgba(37, 211, 102, 0.25) 0%, rgba(255, 255, 255, 0) 40%);
	z-index: -999;
	pointer-events: none;
}

body.page-about::after {
	content: '';
	position: fixed;
	top: 0;
	right: 0;
	width: 50vw;
	height: 50vh;
	background: radial-gradient(70% 107% at 100% 47%, rgba(37, 211, 102, 0.25) 0%, rgba(255, 255, 255, 0) 40%);
	z-index: -999;
	pointer-events: none;
}

/* Additional gradients for bottom part using body background */
body.page-about {
	background-image: 
		radial-gradient(70% 107% at 0% 100%, rgba(37, 211, 102, 0.25) 0%, rgba(255, 255, 255, 0) 40%),
		radial-gradient(70% 107% at 100% 100%, rgba(37, 211, 102, 0.25) 0%, rgba(255, 255, 255, 0) 40%);
	background-attachment: fixed;
	background-size: 50% 50%, 50% 50%;
	background-position: left bottom, right bottom;
	background-repeat: no-repeat;
}


.post-password-form{
	padding: 7rem 0 6rem;
	max-width: 1200px;
    margin: 0 auto;
    padding-left: 60px;
    padding-right: 60px;
}

/* Global styles for lists in WYSIWYG content on frontend */
.wp-block-post-content ul:not(.cs-looking-ahead__list):not(.icon-list__list):not(.footer-contact-list-items),
.wp-block-list ul:not(.cs-looking-ahead__list):not(.icon-list__list):not(.footer-contact-list-items),
.entry-content ul:not(.cs-looking-ahead__list):not(.icon-list__list):not(.footer-contact-list-items),
.post-content ul:not(.cs-looking-ahead__list):not(.icon-list__list):not(.footer-contact-list-items),
.content ul:not(.cs-looking-ahead__list):not(.icon-list__list):not(.footer-contact-list-items),
[class*="content"] ul:not(.navbar ul):not(.navbar__nav ul):not(.cs-hero-hp__nav ul):not(.footer-contact-list-items):not(.icon-list__list):not(.cs-looking-ahead__list),
.cs-looking-ahead ul:not(.cs-looking-ahead__list),
.icon-list ul:not(.icon-list__list) {
	list-style-type: disc !important;
	padding-left: 1.5em !important;
	margin-left: 0 !important;
}

.wp-block-post-content ul li:not(.cs-looking-ahead__list-item):not(.icon-list__item):not(.footer-contact-list-item),
.wp-block-list ul li:not(.cs-looking-ahead__list-item):not(.icon-list__item):not(.footer-contact-list-item),
.entry-content ul li:not(.cs-looking-ahead__list-item):not(.icon-list__item):not(.footer-contact-list-item),
.post-content ul li:not(.cs-looking-ahead__list-item):not(.icon-list__item):not(.footer-contact-list-item),
.content ul li:not(.cs-looking-ahead__list-item):not(.icon-list__item):not(.footer-contact-list-item),
[class*="content"] ul li:not(.navbar ul li):not(.navbar__nav ul li):not(.cs-hero-hp__nav ul li):not(.footer-contact-list-item):not(.icon-list__item):not(.cs-looking-ahead__list-item),
.cs-looking-ahead ul li:not(.cs-looking-ahead__list-item),
.icon-list ul li:not(.icon-list__item) {
	display: list-item !important;
	list-style-position: outside !important;
}

.wp-block-post-content ol,
.wp-block-list ol,
.entry-content ol,
.post-content ol,
.content ol,
[class*="content"] ol {
	list-style-type: decimal !important;
	padding-left: 1.5em !important;
	margin-left: 0 !important;
}

.wp-block-post-content ol li,
.wp-block-list ol li,
.entry-content ol li,
.post-content ol li,
.content ol li,
[class*="content"] ol li {
	display: list-item !important;
	list-style-position: outside !important;
}