:root {
	--green: #65bc7b;
	--teal: #45bc93;
	--light-green: rgba(0, 188, 50, 0.48);
	--blue: #abddf4;
	--text: #333333;
	--site-width: 1170px;
	--header-height: 110px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: Rubik, Arial, Helvetica, sans-serif;
	font-size: 15px;
	line-height: 1.6;
	color: var(--text);
	background: #ffffff;
	overflow-x: hidden;
}

img {
	max-width: 100%;
	display: block;
}

h1,
h2,
h3,
h4 {
	font-weight: 500;
	line-height: 1.3;
	margin: 0 0 0.6em;
}

h1 {
	font-size: 34px;
}

h2 {
	font-size: 20px;
}

h3 {
	font-size: 20px;
}

h4 {
	font-size: 13px;
	font-weight: 400;
}

p {
	margin: 0 0 1em;
}

a {
	color: inherit;
}

section[id] {
	scroll-margin-top: 80px;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 1000;
	padding: 10px 15px;
	background: #ffffff;
}

.skip-link:focus {
	left: 10px;
	top: 10px;
}

/* Header */
.site-header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header-inner {
	max-width: var(--site-width);
	margin: 0 auto;
	padding: 0 30px;
	height: var(--header-height);
	display: flex;
	align-items: center;
	justify-content: space-between;
	transition: height 0.3s ease;
}

.logo img {
	height: auto;
	max-height: 104px;
	width: auto;
}

.logo-dark {
	display: none;
}

.main-menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 26px;
}

.main-menu a {
	display: block;
	color: #ffffff;
	text-decoration: none;
	font-size: 22px;
	font-weight: 500;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
	transition: color 0.2s ease;
}

.main-menu a:hover,
.main-menu a:focus-visible {
	color: var(--green);
}

.menu-toggle {
	display: none;
	background: none;
	border: 0;
	padding: 10px;
	cursor: pointer;
}

.menu-toggle span {
	display: block;
	width: 26px;
	height: 3px;
	margin: 5px 0;
	background: #ffffff;
	border-radius: 2px;
	transition: background-color 0.3s ease;
}

.site-header.is-sticky {
	position: fixed;
	background: #ffffff;
	box-shadow: 0 1px 8px rgba(0, 0, 0, 0.12);
}

.site-header.is-sticky .header-inner {
	height: 70px;
}

.site-header.is-sticky .logo img {
	max-height: 60px;
}

.site-header.is-sticky .logo-light {
	display: none;
}

.site-header.is-sticky .logo-dark {
	display: block;
}

.site-header.is-sticky .main-menu a {
	color: var(--text);
	font-size: 15px;
	text-shadow: none;
}

.site-header.is-sticky .main-menu a:hover {
	color: var(--green);
}

.site-header.is-sticky .menu-toggle span {
	background: var(--text);
}

/* Hero */
.hero {
	height: 700px;
	background-position: center center;
	background-size: cover;
	background-repeat: no-repeat;
}

.intro {
	max-width: var(--site-width);
	margin: -200px auto 0;
	padding: 0 30px;
	display: flex;
	justify-content: flex-end;
	position: relative;
}

.intro-box {
	width: 60%;
	background: var(--teal);
	color: #ffffff;
	padding: 25px;
}

.intro-box h1 {
	color: #ffffff;
	margin-bottom: 25px;
}

.intro-box p {
	font-size: 13px;
}

/* Services */
.services {
	max-width: var(--site-width);
	margin: 0 auto;
	padding: 80px 30px;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 4%;
	text-align: center;
}

.service-icon {
	height: 75px;
	width: auto;
	margin: 0 auto 20px;
}

.service p {
	font-size: 13px;
	max-width: 330px;
	margin: 0 auto;
}

/* What we do */
.whatwedo {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	text-align: center;
}

.feature {
	padding: 50px;
}

.feature p {
	font-size: 13px;
	margin: 0;
}

.feature-blue {
	background: var(--blue);
}

.feature-lightgreen {
	background: var(--light-green);
	color: #ffffff;
}

.feature-green {
	background: var(--green);
	color: #ffffff;
}

/* Parallax */
.parallax {
	height: 500px;
	overflow: hidden;
	position: relative;
}

.parallax-image {
	position: absolute;
	left: 0;
	right: 0;
	top: -30%;
	height: 160%;
	background-position: center center;
	background-size: cover;
	will-change: transform;
}

/* References */
.section-heading {
	max-width: var(--site-width);
	margin: 0 auto;
	padding: 70px 30px 50px;
	text-align: center;
}

.section-heading h2 {
	font-size: 34px;
}

.section-heading p {
	font-size: 13px;
	margin: 0;
}

.portfolio {
	--cols: 6;
	container-type: inline-size;
	display: grid;
	grid-template-columns: repeat(var(--cols), 1fr);
	grid-auto-rows: calc(100cqw / var(--cols) * 0.8);
	grid-auto-flow: dense;
}

.portfolio-item {
	position: relative;
	overflow: hidden;
	margin: 0;
}

.portfolio-item.landscape {
	grid-column: span 2;
}

.portfolio-item.big {
	grid-column: span 2;
	grid-row: span 2;
}

.portfolio-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rollover {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 15px;
	text-align: center;
	color: #ffffff;
	background-image: linear-gradient(to top, #65bc7b 0, rgba(101, 188, 123, 0.8) 100%);
	opacity: 0;
	transform: translateX(-100%);
	transition: all 0.3s ease-in-out;
}

.portfolio-item:hover .rollover,
.portfolio-item:focus-within .rollover {
	opacity: 1;
	transform: translateX(0);
}

.rollover h3 {
	color: #ffffff;
	font-size: 18px;
	margin: 0 0 5px;
}

.rollover span {
	font-size: 13px;
}

.many-others {
	text-align: center;
	margin: 50px 0;
}

/* Video slider */
.video-slider {
	position: relative;
	max-width: 600px;
	margin: 0 auto 50px;
	padding: 0 16px;
}

.video-slider .slides {
	position: relative;
	aspect-ratio: 600 / 360;
	background: #000000;
	overflow: hidden;
}

.video-slider .slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.5s ease, visibility 0.5s;
}

.video-slider .slide.is-active {
	opacity: 1;
	visibility: visible;
}

.video-slider iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

.slider-nav {
	position: absolute;
	top: calc(50% - 30px);
	width: 30px;
	height: 30px;
	border: 0;
	background: rgba(0, 0, 0, 0.5);
	color: #ffffff;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	opacity: 0;
	transition: opacity 0.3s ease;
	z-index: 2;
}

.video-slider:hover .slider-nav,
.slider-nav:focus-visible {
	opacity: 1;
}

.slider-nav.prev {
	left: 16px;
}

.slider-nav.next {
	right: 16px;
}

.slider-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 15px;
}

.slider-dots button {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #cccccc;
	cursor: pointer;
}

.slider-dots button[aria-current="true"] {
	background: var(--text);
}

/* About us */
.aboutus {
	background: var(--green);
	color: #ffffff;
	padding: 35px 50px;
	display: grid;
	grid-template-columns: 25% 1fr;
	gap: 4%;
	align-items: center;
}

.aboutus-title {
	padding: 25px 50px 25px 25px;
	text-align: right;
}

.aboutus-title h1 {
	color: #ffffff;
	font-size: 40px;
	margin: 0;
}

.aboutus-text {
	padding: 25px;
	font-size: 13px;
}

.aboutus-text p:last-child {
	margin-bottom: 0;
}

/* Contact */
.contact {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4%;
}

.contact-image {
	min-height: 450px;
	background-position: left top;
	background-size: cover;
}

.contact-text {
	padding: 25px 25px 60px;
}

.contact-text h1 {
	font-size: 40px;
	margin-top: 10px;
}

.contact-text h4 {
	font-size: 15px;
	margin-bottom: 30px;
}

.contact-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.button {
	display: inline-block;
	padding: 12px 24px;
	background: var(--green);
	border: 2px solid var(--green);
	color: #ffffff;
	text-decoration: none;
	font-weight: 500;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.button:hover,
.button:focus-visible {
	background: var(--teal);
	border-color: var(--teal);
}

.button-outline {
	background: transparent;
	color: var(--green);
}

.button-outline:hover,
.button-outline:focus-visible {
	color: #ffffff;
}

.contact-info {
	background: var(--green);
	color: #ffffff;
	padding: 50px 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 4%;
	text-align: center;
}

.contact-info > div {
	padding: 25px;
}

.contact-info h3 {
	color: #ffffff;
	margin-bottom: 10px;
}

.contact-info p {
	margin: 0;
}

.contact-info a {
	text-decoration: none;
}

.contact-info a:hover {
	text-decoration: underline;
}

/* Footer */
.site-footer {
	background: #363839;
	color: #aaaaaa;
	text-align: center;
	font-size: 12px;
	padding: 20px 16px;
}

.to-top {
	position: fixed;
	right: 20px;
	bottom: 0;
	width: 48px;
	height: 35px;
	background: #333333;
	color: #ffffff;
	text-decoration: none;
	text-align: center;
	font-size: 22px;
	line-height: 40px;
	border-radius: 4px 4px 0 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s;
	z-index: 50;
}

.to-top.is-visible {
	opacity: 0.9;
	visibility: visible;
}

/* Entrance animations */
.js .animate {
	opacity: 0;
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .slide-in-right {
	transform: translateX(60px);
}

.js .slide-in-left {
	transform: translateX(-60px);
}

.js .fade-in-down {
	transform: translateY(-30px);
}

.js .animate.is-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.js .animate {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* Responsive */
@media (max-width: 1100px) {
	.portfolio {
		--cols: 4;
	}
}

@media (max-width: 900px) {
	:root {
		--header-height: 90px;
	}

	.menu-toggle {
		display: block;
	}

	.logo img {
		max-height: 80px;
	}

	.main-menu {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: #ffffff;
		box-shadow: 0 6px 10px rgba(0, 0, 0, 0.1);
		display: none;
	}

	.main-menu.is-open {
		display: block;
	}

	.main-menu ul {
		flex-direction: column;
		gap: 0;
	}

	.main-menu a,
	.site-header.is-sticky .main-menu a {
		color: var(--text);
		font-size: 15px;
		text-shadow: none;
		padding: 14px 30px;
		border-top: 1px solid #eeeeee;
	}

	.hero {
		height: 500px;
	}

	.intro {
		margin-top: -120px;
	}

	.intro-box {
		width: 100%;
	}

	.services,
	.whatwedo,
	.contact-info {
		grid-template-columns: 1fr;
	}

	.services {
		gap: 50px;
		padding: 60px 16px;
	}

	.parallax {
		height: 300px;
	}

	.portfolio {
		--cols: 2;
	}

	.aboutus {
		grid-template-columns: 1fr;
		padding: 25px 16px;
		gap: 0;
	}

	.aboutus-title {
		text-align: left;
		padding: 25px 25px 0;
	}

	.contact {
		grid-template-columns: 1fr;
	}

	.contact-image {
		min-height: 260px;
	}

	.contact-info {
		gap: 0;
		padding: 25px 0;
	}
}

@media (max-width: 600px) {
	h1,
	.section-heading h2,
	.aboutus-title h1,
	.contact-text h1 {
		font-size: 28px;
	}

	.header-inner {
		padding: 0 16px;
	}

	.intro {
		padding: 0 16px;
	}

	.hero {
		height: 380px;
	}

	.feature {
		padding: 40px 16px;
	}

	.section-heading {
		padding: 50px 16px 35px;
	}

	.portfolio-item.big {
		grid-column: span 2;
	}
}
