/* CSS Document */
@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Oswald:wght@200..700&display=swap');

:root {
	--font-heading: "Oswald", sans-serif;
	--font-sub-heading: "Nunito", sans-serif;;
	--font-body: "Open Sans", sans-serif;
	--dark-grey:#181818;
	--grey:#ededed;
	--purple: purple;
	--teal: teal;
	--blue: #4877ba;
	--aqua: #54d5c7;
	--pink: rgb(243, 59, 179);
	--buttonover: rgb(154, 31, 142);
	--white: #fff;
}


.block{z-index: 1}
.block input{border:1px solid #ccc; padding: 10px; margin: 5px 0 30px; width:100%; max-width: 600px}
.block textarea{border:1px solid #ccc; padding: 10px; margin: 5px 0 30px; width:100%; max-width: 600px; font-family: var(--font-body)}
.block label{display: block; font-weight:700}
.block input[type=submit]{border:0px}

.block h2{color: var(--green); font-size:2rem; margin: 10px 0 30px}

/*  General content */
.general-content-wrap{padding:30px}
.general-content{max-width:var(--content-width); margin: 0 auto}
.general-content h1{text-align: center; font-size:5rem; color: var(--pink); margin: 0; padding: 0}
.general-content h3{margin-top: 40px}
.general-block-white{background-color: #fff; color: #000}
.general-block-pink{background-color: var(--pink); color: #fff}
.general-block-pink h1{color: #000 !important}
.general-block-purple{background-color: var(--purple); color: #fff}
.general-block-grey{background-color:var(--grey)}


.case-study-h1-span{color: var(--blue)}


/* Home page splash */
.home-page-splash{aspect-ratio:16/9; background-color: #000; color: #fff; padding: 190px 30px 15px; position: relative}
.home-page-splash h1{font-size:4rem; text-align: left; color: #fff; text-shadow:2px 2px 0 rgb(0,0,0,0.5)}
.home-page-splash .background-photo{position: absolute; top:0; left:0; width:100%; height:100%}
.home-page-splash .background-photo img{object-fit: cover; object-position: center; width:100%; height: 100%}
.home-page-splash .splash-inner{display: flex; justify-content: flex-start; align-items: flex-start; max-width: var(--masthead-width); margin: 0 auto}
.home-page-splash .splash-inner > div{width:100%}
.home-page-splash .splash-inner > div:first-of-type{max-width: 700px}
.splash-nav-wrap{position: absolute; top:15px; left:0; width:100%; z-index: 3}
.splash-nav{max-width:var(--masthead-width); margin: 0 auto; grid-gap: 30px; display: flex; justify-content: center; align-items: center}
.splash-nav > div{width:100%}
.splash-nav > div:first-of-type{max-width: 300px}

.splash-buttons{display: flex; grid-gap: 15px; justify-content: flex-start; align-items: center}


@media (max-width:1600px) {
	.splash-nav{margin: 0 30px}
}
@media (max-width:600px) {
	.splash-buttons{flex-direction:column; margin: 60px auto}
	.splash-buttons > div{max-width: 100%}
}




/* Team */
.team-flex{display: flex; justify-content: center; align-items: stretch; flex-wrap: wrap; column-gap:30px; grid-row-gap: 60px; position: relative; max-width: var(--content-width); margin: 60px auto}
.team-flex > div{width:100%; max-width:300px; position: relative}
.team-details{background:#fff; color: #000; padding: 15px; width:80%; position: absolute; right:0; bottom:0; z-index: 2; transform:translate(15px, 15px)}
.team-details h2, .team-details h3{margin:0; font-size:1.4rem; font-family:var(--font-heading)}
.team-photo{aspect-ratio:1/1; z-index: 1}
.team-photo img{object-fit: cover; width:100%; height:100%; object-position: center; z-index: 1}


/* Large heading */
.large-heading-block{text-align: center; padding: 30px}
.large-heading-block h2{color: var(--pink); font-size:4rem}


/* Photo Splash */
.photo-splash-block{aspect-ratio:16/9; background-size: cover; background-position: center; transition:all 1s ease-in-out; position: relative; margin: 0 auto}
.photo-splash-block h1{font-size: 6rem; text-align: center; font-weight:900; padding: 60px 30px 30px; transition: all 2s ease-in-out; z-index: 1}
.photo-splash-block .confetti{aspect-ratio:16/6; background-image:url("../img/confetti.avif"); background-repeat: repeat; background-attachment: fixed; position: absolute; top:0; left:0; width:100%; z-index: 2}
@media (max-width:600px) {
	.photo-splash-block{aspect-ratio:1/1}
	.photo-splash-block h1{font-size: 3rem; padding-top: 30px}
}


/* Events list */
.events-list-block{background-image: url("../img/confetti.avif"); background-repeat: repeat; padding:60px 30px}
.events-list-flex{display: flex; max-width:var(--content-width); margin: 0 auto; flex-wrap: wrap; justify-content: center; align-items: stretch; column-gap: 15px; grid-row-gap: 40px}
.events-list-flex > div{width:100%; max-width: 490px; background: var(--pink); display: flex; justify-content: space-between; align-items: stretch; aspect-ratio:1/1}
.events-list-flex > div > div{width:100%; max-width: 50%}
.events-list-flex > div > div:first-of-type{padding:10px; color: #fff}
.events-list-flex > div > div:last-of-type{background-color: #000}
.events-list-flex > div > div:last-of-type img{object-fit: cover; object-position: center; width:100%; height: 100%}
.events-list-flex h2{letter-spacing: 3px; margin-bottom: 60px}
@media (max-width:600px) {
	.events-list-flex > div{flex-direction: column}
	.events-list-flex > div > div{max-width: 100%}
	.events-list-flex > div > div:last-of-type{aspect-ratio:3/4}
}


/* HERO */
.hero-block{background-color: var(--dark-grey); background-size: cover; background-position: center; padding: 100px 30px; transition:all 1s ease-in-out; position: relative}
.hero-block .hero-inner{max-width: var(--content-width); margin: 0 auto}
.hero-block h1{text-align: left; font-size:4rem; color: #fff; margin: 0; text-shadow:2px 2px 5px rgb(0,0,0,0.7); transition:all 1s ease-in-out}
.hero-block p{text-align: left; font-size:2rem; color: #fff; margin: 10px 0 0; text-shadow:1px 1px 3px rgb(0,0,0,0.7); transition:all 1s ease-in-out; line-height: 1.2}
.hero-block .dim{background-color: rgb(0,0,0,0.6); width:100%; height: 100%; position: absolute; top:0; left:0}




/* 2 cols photo and text */
.photo-text-block-wrap{padding: 30px}
.photo-text-block{display:flex; justify-content: space-between; align-items: stretch; max-width: var(--content-width); margin: 0 auto; grid-gap: 60px}
.photo-text-block > div{width:100%; transition:all 1s ease-in-out}
.photo-text-block .photo-side{object-fit: cover; width:100%; border-radius:30px}
.photo-text-block .button{margin-top: 30px; display: inline-block}
.photo-text-block.block-order-left{flex-direction:row-reverse}
.photo-text-block .text-side{max-width: 50%; display: flex; justify-content: center; align-items: center; padding: 0; text-align: left}
.photo-text-block .text-side > div{padding: 30px 60px}

.photo-text-block .photo-side{overflow: hidden}
.photo-text-block .photo-side img{object-fit: cover; object-position: center; width:100%; height: 100%; display: block}

.photo-text-block .button{background: var(--blue) !important; color: #fff}
.photo-text-block .button:hover{background: var(--aqua) !important; color: #fff !important}

.photo-text-block ul{font-size:1.4rem}
.photo-text-block  ul li::marker{color: var(--green)}

@media (max-width:900px) {
	.photo-text-block, .block-order-left{flex-direction: column !important}
	.photo-text-block > div{max-width: 100% !important}
}



/* Services grid */
.block-services{padding: 90px 30px; background-color: var(--grey)}
.services-flex{max-width: var(--masthead-width); margin: 0 auto; display: flex; justify-content: center; align-items: stretch; grid-row-gap: 30px}
.services-flex > div{width:100%}
.services-flex > div:first-of-type{max-width: 600px; background: #fff; border-radius:50px; padding: 30px}
.services-flex h2{font-size:3rem; color: #000; border-bottom:5px solid var(--blue); padding-bottom: 15px; margin-bottom: 15px; display: inline-block}
.services-flex .button-wrap{margin: 60px 0 0}

.services-item-flex{display: flex; flex-wrap:wrap; justify-content: center; align-items: stretch; grid-gap: 30px}

.service-item{width:100%; max-width: 450px; background: #fff; padding: 30px; border-radius:30px; display: flex; justify-content: space-between; align-items: stretch; column-gap: 30px; box-shadow:0 0 20px rgb(0,0,0,0.02)}
.service-item > div{width:100%; color: var(--dark-grey)}
.service-item .icon-column{max-width: 70px}
.service-item .icon-column img{object-fit: contain; object-position: top center; width:100%; height: 100%}
.service-item .glyph-column i{font-size: 3.8rem; color: var(--blue)}
.service-item h3{color: #000; font-size:1.2rem; font-weight:700}

.service-item ul{padding-left: 20px}

.service-item ul li::marker {
    color: var(--aqua);
}
@media (max-width:1000px) {
	.services-flex{flex-direction: column}
	.services-flex > div{max-width: 100% !important}
}


/* Quote form */
.quote-form-block{padding: 30px}
.quote-form-block form{max-width: 600px; margin: 0 auto}
.quote-form-block #formerror{color:red; display: none; background-color:pink; padding: 15px}

/* Contact form */
.contact-form-block{padding: 30px}
.contact-form-block form{max-width: 600px; margin: 0 auto}
.contact-form-block #formerror{color:red; display: none; background-color:pink; padding: 15px}


/* Image gallery */
.image-gallery{background: var(--grey); padding: 60px 30px; margin: 30px auto}
.image-gallery-grid{max-width:var(--content-width); margin: 30px auto; display: flex; grid-gap: 30px; flex-wrap: wrap; justify-content: flex-start; align-items: center}
.image-gallery-grid figure{max-width: 380px; aspect-ratio:1/1; position: relative; display: block}
.image-gallery-grid figure img{z-index: 1; object-fit: cover; width:100%; height: 100%; border-radius:30px}
.image-gallery figcaption{z-index: 2; background-color: rgb(0,0,0,0.5); color:#fff; padding:5px 30px; text-align: center; width:100%; position:absolute; left:0; bottom:4px; border-bottom-right-radius:30px; border-bottom-left-radius:30px}
@media (max-width:1200px) {
	.image-gallery-grid{justify-content: center !important}
}




