/*
Theme Name: Inside Properties
Text Domain: promisys
Author: Promisys
Version: 1.0
*/

:root{
	--font-size: 1rem;
	--site-width: 70rem;

	--color: #1A202C;

	--primary: hsl(43, 69%, 45%);
	--accent:  hsl(44, 56%, 56%);
	--hover:   hsl(43, 69%, 55%);
	--link:    hsl(43, 69%, 40%);

	--accent-light: #fbf8f4;
}

html{
	scroll-padding-top: 0px !important;
}

body{
	font-family: "Open Sans", sans-serif;
	font-optical-sizing: auto;
	font-weight: 400;
	font-style: normal;
	font-variation-settings: "wdth" 100;
	font-size: var(--font-size);
	line-height: 1.4;
	color: var(--color);
}

.wrap{
	width: min(100% - 3rem, var(--site-width));
	margin-inline: auto;
}
main{
	padding-block: 2rem;
}

section.banner{
	height: 800px;
	background-position: top center;
	background-repeat: no-repeat;
	background-size: cover;
	position: relative;
	transition: height .2s;
}

header{
	--gap: 2rem;
	position: sticky;
	display: flex;
	background: var(--accent, #fff);
	top: var(--wp-admin--admin-bar--height, 0);
	align-items: center;
	gap: var(--gap);
	padding: 2rem;
	transition: box-shadow 0.2s;
	z-index: 99;
}
header.scroll{
	box-shadow: 0 -6px 18px #0000002b;
}


footer{
	padding-block: 2rem;
	margin-top: auto;
}
footer .site-info{
	gap: 2rem;
}
footer nav ul{
	gap: 1rem;
}

.socials{
	gap: 1rem;
}


a{
	color: var(--color);
	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{
	color: #fff;
	padding: .9em 2em .8em;
	text-transform: uppercase;
	font-size: .9rem;
	background: var(--primary);
	border-radius: 50rem;
	font-weight: 600;
	display: inline-flex;
	text-decoration: none;
	border: 0;
	gap: 10px;
	align-items: center;
	cursor: pointer;
	transition: background 0.2s;
}
a.btn:hover,
button.btn:hover,
input[type="submit"]:hover,
a.btn.active,
button.active,
a.wp-block-button__link:hover{
	color: #fff;
	text-decoration: none;
	background: var(--hover);
}
.wp-block-button.alt a,
a.btn.alt{
	background: #fff;
	color: var(--color);
	border: 1px solid currentColor;
}
.wp-block-button.alt svg,
.wp-block-button.alt a:hover,
a.btn.alt:hover{
	color: var(--primary);
}

h1, h2, h3{
	line-height: 1.1;
	text-wrap: balance;
}
h1{
	font-size: clamp(1.3rem, 2.5vw, 2rem);
	margin-bottom: 1em;
	color: var(--primary);
}
h2{
	font-size: clamp(1.1rem, 2.5vw, 1.5rem);
	margin-bottom: .3em;
}
h3{
	font-size: clamp(1.1rem, 2.5vw, 1.4rem);
}

p{
	margin-bottom: 1rem;
	max-width: 80ch;
}

.entry-content ul:not(.slides){
	padding-left: 18px;
}


.contact__wrapper{
	gap: 4rem;
}
aside .contact-info{
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

strong{
	font-weight: 600;
}
#content .content-area img:not(li img) {
	display: block;
	font-style: italic;
	max-width: 100%;
	height: auto;
	width: auto;
}

img{
	display: block;
}
a:has( > img){
	display: block;
	width: fit-content;
	overflow: hidden;
}
a img{
	transition: scale 0.3s
}
#content a:hover img{
	scale: 1.02;
}

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{
	--n: 4;
	--gap: 1rem;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(max(360px, calc((100% - calc(var(--n) - 1) * var(--gap)) / var(--n))), 1fr));
	gap: var(--gap);
}
.grid[data-columns="3"]{ --n: 3; }
.grid[data-columns="2"]{ --n: 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;
}
.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;
}

.align-right{
	margin-left: auto;
}

@media( max-width: 1024px ){
	header{
		--wp-admin--admin-bar--height: 0;
		--header-height: 70px;
		display: flex;
		padding: 0.4rem 1rem;
		height: var(--header-height);
	}
}


.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;
	}
}

@media( max-width: 578px){
	.modal .scroller p{
		padding-inline: 2rem;
		text-align: left;
		gap: 1rem;
		line-height: 1;
		font-size: 1.1rem;
	}
}