/*
Theme Name: Neos Interim Management
Text Domain: promisys
Author: Promisys
Version: 1.0
*/

:root{
	--font-size: 1rem;
	--site-width: 80rem;

	--color: #393939;

	--primary:   hsl(357, 85%, 51%);
	--secondary: #00194d;
	--accent:    hsl(201, 33%, 25%);

	--links:     hsl(353, 100%, 44%);
	--hover:     hsl(8, 74%, 60%);
	--btn-hover: hsl(357, 92%, 58%);
}

html{
	scroll-padding-top: 100px;
}

body{
	font-family: "Raleway", sans-serif;
/*	font-family: "Libre Baskerville", serif;*/
	font-optical-sizing: auto;
	font-weight: 400;
	font-style: normal;
	font-size: var(--font-size);
	line-height: 1.6;
	color: var(--color);
}

main{
	--gap: 8rem;
	padding-bottom: var(--gap);
}

body:not(.home) main > .wp-block-group__inner-container > *{
	margin-top: var(--gap);
}
body:not(.home) main > .wp-block-group__inner-container > *:first-child{
	--gap: 5rem;
}

.wrap, body:not(.home) main{
	width: min(100% - 3rem, var(--site-width));
	margin-inline: auto;
}
.wide > .wrap{
	width: calc(100% - 3rem);
}

.home .wp-block-cover__image-background.has-parallax{
	background-position: 50% 0% !important;
}
.wp-block-cover__image-background.has-parallax{
	background-position: 50% 38% !important;
}
#content .wp-block-cover__background{
	opacity: 0.45 !important;
}

section.banner{
	height: 800px;
	background-position: top center;
	background-repeat: no-repeat;
	background-size: cover;
	position: relative;
	transition: height .2s;
}

header{
	position: sticky;
	display: flex;
	background: #fff;
	top: var(--wp-admin--admin-bar--height, 0);
	align-items: center;
	gap: clamp(1rem, 3vw, 4rem);
	padding: 1rem 2rem;
	transition: box-shadow 0.2s;
	z-index: 99;
	border-bottom: 1px solid #f3f3f3;
}
header.scroll{
	box-shadow: 0 -6px 18px #0000002b;
}

svg.logo{
	display: block;
}
header svg.logo{
	height: 60px;
	display: block;
}
header svg.logo .neos path{
	fill: var(--primary);
}
header svg.logo .baseline path{
	fill: var(--secondary);
}

header a.btn{
	font-size: .9rem;
}
header a.btn svg{
	font-size: 1.1rem;
}

footer{
	--font-weight: 300;
	background: #222;
	color: #fff;
	padding-top: 3rem;
	margin-top: auto;
	font-weight: var(--font-weight);
}
footer .wrap > .flex{
	align-items: flex-start;
	justify-content: space-between;
	gap: 2rem;
}
footer .flex .flex{
	align-items: center;
	gap: 2rem;
}
footer h3{
	color: #fff;
}
footer address{
	font-weight: var(--font-weight);
}
footer a.btn:not(:hover){
	background: #474747;
}

#page footer .logos{
	padding-top: 10px ;
	justify-content: flex-start;
	flex-wrap: wrap;
}
footer .logos img{
	max-width: 120px;
}

footer .site-info{
	font-size: 0.9rem;
	padding: 2rem 0 1rem;
	gap: 2rem;
}
footer nav ul{
	gap: 1rem;
}

.clients{
	background: #f4f3f1;
/*	border-top: 1px solid #ccc;*/
	padding-block: 2rem;
}

.socials{
	gap: 1rem;
}


a{
	color: var(--link);
	text-decoration: none;
}
.entry-content a{
	text-decoration: underline;
	text-underline-offset: 2px;
}
a:hover{
	color: var(--hover);
}
a.btn,
button.btn,
input[type="submit"],
a.wp-block-button__link,
.nf-form-content .submit-container input[type="submit"]{
	color: #fff;
	background: var(--primary);
	padding: 1em 2em;
	font-size: .875rem;
	border-radius: 5px;
	text-transform: uppercase;
	font-weight: 600;
	display: inline-flex;
	gap: 10px;
	text-decoration: none;
	border: 0;
	transition: background 0.15s;
	cursor: pointer;
}
a.btn:hover,
button.btn:hover,
input[type="submit"]:hover,
a.btn.active,
button.active,
a.wp-block-button__link:hover,
.nf-form-content .submit-container input[type="submit"]:hover{
	color: #fff;
	text-decoration: none;
	background: var(--btn-hover);
}

a.btn.alt,
button.btn.alt,
input[type="submit"].alt,
.alt a.wp-block-button__link,
a.wp-block-button__link.alt,
.nf-form-content .submit-container input[type="submit"].alt{
	background: #fff;
	color: var(--primary);
	border: 1px solid currentColor;
}

h1, h2, h3{
	font-family: "Cormorant Garamond", serif;
	font-optical-sizing: auto;
	font-weight: 400;
	font-style: normal;
	line-height: 1.1;
	text-wrap: balance;
	max-width: 50ch;
	color: #232323;
}
h1{
	font-size: clamp(1.3rem, 2.5vw, 3rem);
	margin-bottom: 1em;
}
.wp-block-cover__inner-container h1{
	max-width: 58rem;
	margin-inline: auto;
}

main > h1{
	margin-top: 2rem;
}

h2{
	font-size: clamp(1.1rem, 2.5vw, 1.5rem);
	margin-bottom: .6em;
}
main h2{
	font-size: clamp(2rem, 2.5vw, 2.4rem);
}
h3{
	font-size: clamp(1.4rem, 2.5vw, 1.6rem);
	margin-bottom: .4em;
	font-weight: 500;
}

h2:has( + h3){
	margin-bottom: 5px;
}
h2 + h3{
	margin-bottom: 1rem;
}

.wp-block-cover__inner-container h1{
	font-size: clamp(1.5rem, 3.5vw, 4rem);
	margin-bottom: 2rem;
}
.wp-block-cover__inner-container{
	max-width: 50rem;
}
.wp-block-cover__inner-container *:last-child{
	margin-bottom: 0;
}

.entry-content :is(h2, h3) > a{
	text-decoration: none;
}

p{
	margin-bottom: 1rem;
	max-width: 80ch;
	text-wrap: balance;
}
.wp-block-group.intro p,
.no-text-wrap p, p.no-text-wrap{
	text-wrap: initial;
}
p:last-child,
p:last-of-type{
	margin-bottom: 0;
}

.entry-content :is(ul:not(.check-list), ol:not(.check-list)){
	padding-left: 18px;
	margin-bottom: 1rem;
}

.has-text-align-center{
	margin-inline: auto;
}

.contact__wrapper{
	gap: 4rem;
}
aside .contact-info{
	display: flex;
	flex-direction: column;
	gap: 1rem;
}
aside + .entry-content{
	flex: 1;
}

strong{
	font-weight: 600;
}
#content .content-area img{
	display: block;
	font-style: italic;
	max-width: 100%;
}

img{
	display: block;
}

input,
button,
textarea,
select{
	font: inherit;
}
button{
	background: none;
	border: none;
}
address{
	font-style: normal;
}

form[role="search"]{
	position: relative;
	margin-bottom: 20px;
}
form[role="search"] input.search-field{
	width: 100%;
	height: 40px;
	border: 1px solid #ccc;
	border-radius: 5px;
	padding: 0 10px;
}
form[role="search"] .search-submit{
	position: absolute;
	height: 40px;
	width: 40px;
	right: 0;
	top: 0;
	border: none;
	background: transparent;
	cursor: pointer;
	outline: none;
}

/*BLOG*/
aside {
    width: min(100%, 300px);
}
main:has( > aside) {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
}
main.posts{
	gap: 4rem;
}
main.posts h2,
.single-post h1{
	margin-bottom: .5rem;
}

.post-img{
	margin-bottom: 2rem;
}
.post-img a{
	display: inline-block;
	height: 24rem;
	width: 100%;
	border-radius: 8px;
}
.content-area .post-img img{
	height: 100%;
	width: 100%;
	object-fit: cover;
}
span.date{
	font-size: .7rem;
	line-height: 1;
}
.single-post article{
	max-width: 75ch;
}

aside .posts{
	flex-direction: column;
	gap: .8rem;
}
aside .posts li{
	display: flex;
	flex-flow: row;
	align-items: center;
	gap: 1rem;
}
aside .posts li a{
	font-size: 0.9rem;
	color: var(--color);
}
aside .posts a:last-child{
	flex: 1;
}
aside .posts li:hover a{
	color: var(--primary);
	text-decoration: none;
}
aside .posts li img{
	width: 60px;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
	max-width: initial;
}

.flex{
	display: flex;
	flex-wrap: wrap;
}
.flex.column{
	flex-direction: column;
}

.grid {
  --grid-max-col-count: 2;
  --grid-min-col-size: 200px;
  --grid-gap: 1rem;

  --grid-col-size-calc: calc(
    (100% - var(--grid-gap) * var(--grid-max-col-count)) /
      var(--grid-max-col-count)
  );
  --grid-col-min-size-calc: min(
    100%,
    max(var(--grid-min-col-size), var(--grid-col-size-calc))
  );

  display: grid;
  gap: var(--grid-gap);
  grid-template-columns: repeat(
    auto-fill,
    minmax(var(--grid-col-min-size-calc), 1fr)
  );
}
.grid[data-columns="5"]{ --grid-max-col-count: 5; }
.grid[data-columns="4"]{ --grid-max-col-count: 4; }
.grid[data-columns="3"]{ --grid-max-col-count: 3; }
.grid[data-columns="2"]{ --grid-max-col-count: 2; }


*:has( > [class*="svg-inline"]){
	display: flex;
	gap: 5px;
	align-items: center;
}

.card{
	border: 1px solid #efefef;
	padding: 2rem;
	border-radius: 1rem;
	max-width: max-content;
	margin: 0 auto;
}
.card.with-bg{
	padding: 3rem;
}

.warning, .notice{
	border: 1px solid;
	padding: 1rem 1.4rem;
	border-radius: 1rem;
	margin: 0 auto;
	text-align: center;
}
.notice{
    background: #e1f6ff;
    color: #1d78d5;
    border-color: #9ccde2;
}
.warning{
	background: #fff8eb;
	color: #c97d00;
	border-color: #e4c896;
}

#content .padding-block-1{
	padding-block: 1rem;
}

@media( max-width: 1024px ){
	header{
		--wp-admin--admin-bar--height: 0;
		--header-height: 70px;
		display: flex;
		padding: 0.4rem 1rem;
		height: var(--header-height);
	}
	header .wrap{
		width: 100%;
	}
	header .logo{
		margin-inline: auto;
	}
	header .logo a > *{
		max-height: 40px !important;
	}

}


.loader{
	display: flex;
	gap: 0.25rem;
	justify-content: center;
}
.loader > *{
	width: 0.5rem;
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--primary);
	animation: bounce 0.5s infinite alternate;
}
.loader > *:nth-child(2){
	content: '';
	animation-delay: 100ms;
}
.loader > *:nth-child(3){
	content: '';
	animation-delay: 200ms;
}

@keyframes bounce{
	to{
		translate: 0 -0.25rem;
	}
}