/*
Theme Name: Skyline
Text Domain: promisys
Author: Promisys
Version: 1.0
*/

:root{
	--font-size: 1rem;
	--site-width: 1080px;
	--scroll-header-h: 68px;

	--color: #676f7e;
	--color-dark: #14181f;
	--link : #242424;

	--primary: hsl(40 50% 70%);
	--border-color: #e2e4e9;
	--navy: #262c3a;
}

html{
	scroll-padding-top: 100px;
}

body{
	font-family: "Raleway", sans-serif;
	font-optical-sizing: auto;
	font-weight: 300;
	font-style: normal;
	font-size: var(--font-size);
	line-height: 1.4;
	color: var(--color);
	overflow-x: hidden;
	background: #fff;
}

.wrap,
.et-db #et-boc .et-l .et_pb_section:not(.fullwidth) .et_pb_row{
	width: min(100% - 3rem, var(--site-width)) !important;
	margin-inline: auto;
}
main{
	padding-top: 2rem;
}
:is(.home, .page-template-template-notitle) main{
	padding-top: 0;
}

section.banner{
	height: 50dvh;
	background-position: top center;
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
	position: relative;
	transition: height .2s;
	display: grid;
	place-content: center;
	position: relative;
}
section.banner::after{
	content: '';
	position: absolute;
	inset: 0;
	background: #20213361;
}
section.banner h1{
	--fs: 5rem;
	color: #fff !important;
	position: relative;
	z-index: 1;
	max-width: 30rem;
	text-align: center;
	margin-bottom: 0 !important;
}

header{
	--gap: 2rem;
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	background: hsl(220 30% 15% / .8);
	transition: box-shadow 0.2s;
	backdrop-filter: blur(4px);
	z-index: 98;
}
header.scroll{
	box-shadow: 0 -6px 18px #0000002b;
}
header.fixed{
	position: fixed;
	width: 100%;
	top: var(--wp-admin--admin-bar--height, 0px);
	transition: top 0.2s;
}
@media(min-width: 1024px){
	header.fixed.scroll{
		top: calc(var(--wp-admin--admin-bar--height, 0px) - 32px);
	}
}
header.fixed + #content > main{
	padding-top: 0;
}


.logo svg{
	width: 150px;
}

header > .wrap{
	padding-block: 10px;
}

footer{
	padding-block: 2rem;
	margin-top: auto;
	background: var(--navy);
	color: #dce0e7;
	font-size: .85rem;
}
footer .content{
	gap: 1rem;
	padding-bottom: 2rem;
	flex-wrap: nowrap;
}
footer .content .footer-links{
	margin-left: auto;
}

footer .footer-links{
	gap: 2rem;
}



footer ul.menu{
	list-style: none;
	font-size: .8rem;
}
footer ul.menu li{
	margin-top: .6rem;
}
footer a:not(:hover){
	color: #dce0e7;
}
footer a:hover{
	color: var(--primary);
}
footer p{
	margin-bottom: 1rem;
}
footer span{
	display: block;
}

footer .site-info{
	gap: 2rem;
	padding-top: 2rem;
	border-top: 1px solid #4e576b;
}
footer nav ul{
	gap: 1rem;
}

.socials{
	gap: 1rem;
}


span.label{
	display: block;
	text-transform: uppercase;
	letter-spacing: 2px;
	font-size: .7rem;
	color: var(--primary);
	font-weight: 400;
}
span.label.gray{
	color: var(--color-dark);
}
span.label.center{
	text-align: center !important;
}

span.tag{
	color: #a97520 !important;
	padding: .6em .6em .4em !important;
	background: #fbf8f3 !important;
}

hr{
	margin-block: 1rem;
	display: block;
	width: 10%;
	border: 0;
	border-bottom: 1px solid;
	border-color: #dbdcdd;
	max-width: 60px;
}
hr.primary{
	border-color: var(--primary);
}

a{
	color: var(--link);
	text-decoration: none;
}
.entry-content a{
	text-decoration: underline;
	text-underline-offset: 2px;
}
a:hover{
	color: var(--hover);
}
a.btn,
#page #content a.et_pb_button,
.is_front #content input[type="submit"],
a.wp-block-button__link,
.nf-form-content .submit-container input[type="submit"]{
	color: #fff !important;
	padding: 1.2em 2em 1em !important;
	text-transform: uppercase !important;
	display: inline-flex !important;
	border: 1px solid !important;
	text-decoration: none !important;
	cursor: pointer !important;
	text-align: center !important;
	border-radius: 0 !important;
	background: transparent !important;
	font-size: 0.8rem !important;
	letter-spacing: 2px !important;
	transition: color 0.2s, background 0.2s !important;
}
a.btn:hover,
#page #content a.et_pb_button:hover,
.is_front #content input[type="submit"]:hover,
a.btn.active,
button.active,
a.wp-block-button__link:hover,
.nf-form-content .submit-container input[type="submit"]:hover{
	text-decoration: none !important;
	color: var(--primary) !important;
	background: hsl(40deg 50% 70% / 15%) !important;
}
a.btn.navy,
#page #content a.et_pb_button.navy{
	color: var(--navy) !important;
}
a.btn.primary,
#page #content a.navy:hover,
#page #content a.et_pb_button.navy:hover,
#page #content a.et_pb_button.primary{
	color: var(--primary) !important;
}
a.btn.primary:hover,
#page #content a.et_pb_button.primary:hover{
	color: var(--navy) !important;
}

.content-area:not(.wrap) > h1{
	width: min(100% - 3rem, var(--site-width));
	margin-inline: auto;
}

.is_front :is(h1, h2, h3),
:is(h1, h2, h3)[class*="et-fb-root-ancestor"]{
	line-height: 1.1;
	color: var(--color-dark) !important;
	text-wrap: balance;
	font-family: "Cormorant Garamond", serif;
	font-optical-sizing: auto;
	font-weight: 200 !important;
	font-style: normal;
}
.is_front h1,
h1[class*="et-fb-root-ancestor"]{
	--fs: 3rem;
	--mb: 1em;
	font-size: clamp(2.5rem, 2.5vw, var(--fs));
	margin-bottom: var(--mb);
}
.is_front h2,
h2[class*="et-fb-root-ancestor"]{
	--fs: 2.6rem;
	--mb: .6em;
	font-size: var(--fs);
	margin-bottom: var(--mb) !important;
}
.is_front h3,
h3[class*="et-fb-root-ancestor"]{
	--fs: 1.5rem;
	--mb: 2rem;
	font-size: var(--fs);
	padding-bottom: 0 !important;
	margin-bottom: var(--mb) !important;
}

.is_front .et_pb_module:not(.separation-title) h3,
.is_front h3.has-text-align-center{
	max-width: 50rem;
}
.is_front h3[style*="center"],
.is_front h3.has-text-align-center{
	margin-inline: auto !important;
}


.listing-header{
	margin-bottom: 3rem;
}
.listing-header,
.listing-header > .flex{
	align-items: center;
	gap: 1rem;
}
.listing-header :is(h1, h2, h3){
	margin-bottom: 0;
}

.align-right{
	margin-left: auto;
}

.filter-group :is(a, button):not(:hover){
	color: var(--color)
}

.button-trigger{
	text-transform: uppercase;
	font-size: .8rem;
	font-weight: 300;
	cursor: pointer;
}
.button-trigger:hover{
	color: var(--primary);
}

.map-container{
	margin-bottom: 2rem;
}
.filter-group.map.open{
	margin-bottom: 1rem;
}
svg.primary{
	color: var(--primary);
}

#page main .entry-content p{
	font-size: .95rem;
	margin-bottom: 1rem;
	max-width: 80ch;
	max-width: 64ch;
	color: var(--color);
}
#page main .entry-content .large p{
	font-size: 1.25rem;
	line-height: 1.75rem;
}
p[style*="center"],
p.has-text-align-center{
	margin-inline: auto !important;
}

.padding-block-4{
	padding-block: 4rem;
}

.is_front .entry-content :is(ul, ol){
	font-size: .9rem;
	padding-left: 18px;
	display: flex;
	flex-direction: column;
	gap: 1.6rem;
	padding-top: 1rem !important;
}
.is_front .entry-content :is(ul, ol) strong{
	color: var(--color-dark) !important;
	font-weight: 500;
}
.is_front .entry-content :is(ul, ol) li{
	position: relative;
	list-style: none !important;
}
.is_front .entry-content :is(ul, ol) li::before{
	content: '';
	position: absolute;
	translate: -20px 5px;
	display: block;
	width: 8px;
	height: 8px;
	rotate: 45deg;
	background: #f7f2e8;
	border: 1px solid var(--primary);
	transition: background 0.2s;
}
.is_front .entry-content :is(ul, ol) li:hover::before{
	background: var(--primary);
}


#content h3.wp-block-accordion-heading{
	--mb: 1.2rem;
}
#content h3.wp-block-accordion-heading button{
	border: 0;
	border-bottom: 1px solid currentColor;
	padding-inline: 0;
	font-weight: 500;
	font-size: 1rem;
}
.wp-block-accordion-heading__toggle-icon{
	font-size: 1.5rem;
}
.wp-block-accordion-heading__toggle:hover .wp-block-accordion-heading__toggle-title{
	text-decoration: none !important;
}
#content .wp-block-accordion-panel.wp-block-accordion-panel-is-layout-flow{
	margin-bottom: 1.4rem;
}


.contact__wrapper{
	gap: 4rem;
}
aside .contact-info{
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

strong{
	font-weight: 600;
}
#content .content-area img{
	display: block;
	font-style: italic;
	max-width: 100%;
	height: auto;
	width: auto;
}

#content .wp-block-cover img{
	width: 100%;
	height: 100%;
	object-fit: cover;
}

img{
	display: block;
}
a:has( > img){
	display: block;
	width: fit-content;
	overflow: hidden;
}
a img,
.places img{
	transition: scale 0.5s !important;
}
#content .places img{
	width: 100%;
	height: 100%;
	object-fit: cover;
}
#content a:hover img{
	scale: 1.04;
}

main input,
main button,
main textarea,
main select{
	font: inherit;
}
button{
	background: transparent;
	outline: none;
	border: none;
}
#content button{
	color: var(--color-dark);
	border: 1px solid;
	border-radius: 50px;
	cursor: pointer;
	text-transform: uppercase;
	font-size: 0.8rem;
	padding: 0.6em 1.5em;
	font-weight: 300;
	border-radius: 0;
	background: transparent;
}
#content button:hover{
	color: var(--primary);
}
#content button.is-active{
	color: var(--primary);
	font-weight: 500;
}
address{
	font-style: normal;
}

main label{
	display: flex;
	gap: 4px;
	align-items: center;
	font-size: .9rem;
	cursor: pointer;
}
main label:hover{
	color: #000;
}

main input[type="checkbox"]{
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid #ccc;
  display: grid;
  place-content: center;
  transition: all 0.2s ease;
  background-color: #fff;
  outline: none;
  cursor: pointer;
}
main input[type="checkbox"]:hover {
  border-color: #888;
}

main input[type="checkbox"]::before {
  content: "✓";
  font-size: 14px;
  color: white;
  transform: scale(0);
  transition: transform 0.15s ease;
}

main input[type="checkbox"]:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}
main input[type="checkbox"]:checked::before {
  transform: scale(1);
}

main input[type="radio"]{
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  display: none;
}
main label:has( > input[type="radio"]){
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 30px;
  height: 30px;
  border: 1px solid #ccc;
  display: grid;
  place-content: center;
  cursor: pointer;
  line-height: 1;
}
main label:has( > input[type="radio"]):hover{
	border-color: #888;
}
main label:has( > input[type="radio"]:checked){
	background: var(--primary);
	border-color: var(--primary);
	color: #fff;
}
main label input + span{
	translate: 0 -1px;
}



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*/
.grid.posts{
	--gap: 2rem;
}
.wp-singular:not(.single-post) .grid.posts{
	margin-bottom: 6rem;
}

.grid.posts figure > a{
	width: 100%;
	height: 220px;
	padding: 0 !important;
}
.grid.posts figure > a img{
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
}
.grid.posts figure figcaption{
	padding-top: 1rem;
}
figcaption > div.flex{
	font-size: .8rem;
	margin-bottom: 1rem !important;
}
figcaption h3{
	text-wrap: initial;
	margin-bottom: 10px !important;
}
figcaption h3 a{
	font-size: .8em;
	padding: 0 !important;
	color: var(--color-dark) !important;
	display: block;
	width: 100%;
	font-weight: 500;
	text-decoration: none !important;
}
figcaption h3 a:hover{
	color: var(--primary) !important;
}

aside {
    width: min(100%, 340px);
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}
main:has( > aside) {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
}

.taxonomy{
	display: flex;
	align-items: center;
}
.single-post .hero .taxonomy::after{
	content: '•';
	display: inline-block;
	margin-left: 10px;
}
.posts .taxonomy::before{
	content: '•';
	display: inline-block;
	margin-left: 1rem;
	font-size: 1rem;
}
.single-post .main-content{
	padding-top: 4rem;
}
.single-post .main-content p{
	margin-bottom: 1.4rem;
}
.single-post .grid.posts{
	border-top: 1px solid var(--border-color);
	padding-top: 3rem;
}

dl{
	padding-top: 2rem;
	padding-left: 2rem;
	max-width: 40rem;
}
.single-place aside dl{
	padding-left: 0;
}
dl dt{
	text-transform: uppercase;
	font-size: 0.7rem;
	letter-spacing: 2px;
	font-weight: 400;
	position: relative;
}
dl dt svg{
	position: absolute;
	color: var(--primary);
	margin-right: 8px;
	font-size: 1rem;
	left: 0;
	translate: calc(-100% - 1rem);
}
dl dd{
	font-size: .9rem;
	font-weight: 400;
	padding-top: 4px;
}
dl dd:not(:last-child){
	margin-bottom: 2rem;
}

dl.hood dt{
	color: var(--color-dark);
}
dl.hood dd{
	color: var(--color);
}

address{
	padding-block: 1rem;
}

.flex{
	display: flex;
	flex-wrap: wrap;
}
.flex.column{
	flex-direction: column;
}

.places{
	padding-top: 2rem;
}
.places article{
	overflow: hidden;
	position: relative;
}
.places article::after{
	content: '';
	position: absolute;
	inset: auto 0 0;
	height: 100%;
	max-height: 50%;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, hsl(220deg 30% 15% / 88%) 100%);
	z-index: 1;
}
.places article > a{
	display: block;
	position: absolute;
	inset: 0;
	z-index: 3;
}

.places article > div{
	display: flex;
	flex-direction: column;
	gap: 1rem;
	position: absolute;
	z-index: 1;
	padding: 2rem;
	bottom: 0;
	left: 0;
	z-index: 2;
}
.places article h3{
	--fs: 1.8rem;
	--mb: 0 !important;
	color: #fff !important;
}
.places article span:not(.label){
	color: #cdcdcd;
}
.places article:hover img{
	scale: 1.04;
}
.places{
	margin-bottom: 4rem;
}

.grid {
  --min-col-size: 200px;
  --gap: 1rem;

  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(min(var(--min-col-size), 100%), 1fr));
}
.grid.auto-fill{
  grid-template-columns: repeat(auto-fill, minmax(min(var(--min-col-size), 100%), 1fr));
}

.grid[data-columns]{
	--grid-max-col-count: 3;
	--grid-col-size-calc: calc(
	  (100% - var(--gap) * var(--grid-max-col-count)) /
	    var(--grid-max-col-count)
	);
	--grid-col-min-size-calc: min(
	  100%,
	  max(var(--min-col-size), var(--grid-col-size-calc))
	);
	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;
}

#page .entry-content .card{
	padding: clamp(1.8rem, 5vw, 3rem);
	max-width: max-content;
	margin: 0 auto;
	box-shadow: 0 8px 40px -8px rgba(0,0,0,0.15);
	background: #fff;
}
#page .entry-content .team .card{
	padding: 0;
	max-width: none;
	width: 100%;
}
#page .entry-content .team img{
	display: block !important;
	margin-inline: auto !important;
}
#page .entry-content .team .padding{
	padding: 2rem;
}
#page .entry-content .team .padding h3{
	--mb: 5px;
}

#page .jobs{
	flex-direction: column;
	gap: 2rem;
}
#page .jobs .job.card{
	width: 100%;
	padding: 2rem 2rem 0 !important;
	max-width: none;
}
#page .jobs h3{
	margin-block: 1rem !important;
}
#page .jobs .job-header{
	padding-bottom: 2rem;
	position: relative;
}
#page .jobs .collapse-trigger{
	justify-content: end;
	margin-top: 1rem;
	cursor: pointer;
	font-size: 2.2rem;
	transition: rotate 0.2s;
}
@media(min-width: 600px){
	#page .jobs .collapse-trigger{
		position: absolute;
		right: 0;
		top: 50%;
	}
}
#page .jobs .job-header .collapse-trigger:is(:hover, .open){
	color: var(--primary);
}
#page .jobs .job-header .collapse-trigger.open svg{
	rotate: 90deg;
}
#page .jobs .job-header .flex svg{
	color: var(--primary);
}
#page .jobs .job-content{
	border-top: 1px solid var(--border-color);
	padding-block: 2rem;
	display: none;
}


.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;
}

@media( max-width: 1024px ){
	header{
		--wp-admin--admin-bar--height: 0px;
		--header-height: 70px;
		display: flex;
		padding: 0.4rem 0;
		height: var(--header-height);
	}
	header .wrap{
		width: 100%;
	}
	header .logo{
		margin-inline: auto;
	}
	header .logo a > *{
		height: 30px;
		width: auto;
	}

}


.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;
	}
}

.diamond-scene {
	position: relative;
	max-width: 400px;
	height: 400px;
	display: flex;
	align-items: center;
	justify-content: center;
	perspective: 900px;
	z-index: -1;
	opacity: .7;
}
.diamond {
	--size: 384px;
	--space: 96px;
	position: absolute;
	border: 1px solid #C9A84C !important;
	opacity: 0;
	transform: rotate(45deg);
	transform-style: preserve-3d;
	backface-visibility: hidden;
	will-change: transform, opacity;
}
.reveal-visible .diamond--lg {
	width: var(--size);
	height: var(--size);
	animation: diamond-reveal 2.2s ease-out forwards;
}
.reveal-visible .diamond--md {
	--innersize: calc(var(--size) - var(--space));
	width: var(--innersize);
	height: var(--innersize);
	animation: diamond-reveal 2.2s ease-out 0.25s forwards;
}
.reveal-visible .diamond--sm {
	--innersize: calc(var(--size) - (var(--space)*2));
	width: var(--innersize);
	height: var(--innersize);
	animation: diamond-reveal 2.2s ease-out 0.5s forwards;
}

@media( max-width: 600px){
	.diamond {
		--size: 300px;
	}
}
@media( max-width: 460px){
	.diamond {
		--size: 250px;
	}
}
@media( max-width: 360px){
	.diamond {
		--size: 200px;
	}
}


@keyframes diamond-reveal {
	0% {
	  opacity: 0;
	  border-width: 3px;
	  transform: rotate(45deg) rotateY(180deg) scale(0.5);
	}
	50% {
	  opacity: 1;
	  border-width: 3px;
	  transform: rotate(45deg) rotateY(40deg) scale(1.05);
	}
	100% {
	  opacity: 0.4;
	  border-width: 1px;
	  transform: rotate(45deg) rotateY(0deg) scale(1);
	}
}
