:root {
  --black: #171717;
  --white: #ffffff;
  --off-white: #f7f7f5;
  --gray: #6f6f6f;
  --line: #deded8;
  --blue: #54bfd2;
  --violet: #686fc8;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, Arial, sans-serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
}

img {
  width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: 100%;
  padding: 1.2rem 5vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #49D7E3;
}

.logo {
  font-size: .9rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  font-weight: 700;
}

.site-header nav {
  display: flex;
  gap: 2rem;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.hero {

    position: relative;

    height: 100vh;
    overflow: hidden;

    display: flex;
    align-items: center;

    color: white;

}

.hero-slideshow {

    position: absolute;
    inset: 0;

}

.slide {

    position: absolute;
    inset: 0;

    background-size: cover;
    background-position: center;

    opacity: 0;

    transform: scale(1);

    animation:
        fadeSlide 20s infinite,
        zoomSlide 20s linear infinite;

    will-change: transform, opacity;

}

/* Images */

.slide1 {

    background-image: url("../assets/hero2.jpg");

    animation-delay: 0s;

}

.slide2 {

    background-image: url("../assets/hero1.jpg");

    animation-delay: 4s;

}

.slide3 {

    background-image: url("../assets/hero3.jpg");

    animation-delay: 8s;

}

.slide4 {

    background-image: url("../assets/hero5.jpg");

    animation-delay: 12s;

}

.slide5 {

    background-image: url("../assets/hero4.jpg");

    animation-delay: 16s;

}

.hero-overlay {

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            rgba(0,0,0,.55),
            rgba(0,0,0,.35)
        );

    z-index: 2;

}

.hero-content {

    position: relative;
    z-index: 3;
	
	max-width: 1000px;
    padding: 0 5vw;

}

@keyframes fadeSlide {

    0% {

        opacity: 0;

    }

    4% {

        opacity: 1;

    }

    20% {

        opacity: 1;

    }

    24% {

        opacity: 0;

    }

    100% {

        opacity: 0;

    }

}

@keyframes zoomSlide {

    from {

        transform: scale(1);

    }

    to {

        transform: scale(1.25);

    }

}

.eyebrow {
  margin-bottom: 1rem;
  color: var(--blue);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.08;
  font-weight: 500;
}

h1 {
  font-size: clamp(3rem, 7vw, 7rem);
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.7rem;
  margin-bottom: .9rem;
}

.hero-content p:not(.eyebrow) {
  font-size: 1.15rem;
  color: rgba(255,255,255,.86);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.btn,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .85rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
}

.btn.primary,
button {
  background: var(--blue);
  color: var(--black);
}

.btn.secondary {
  border-color: rgba(255,255,255,.8);
  color: var(--white);
}

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 7rem 5vw;
}

.section-intro {
  max-width: 720px;
  margin-bottom: 3rem;
}

.services {
  background: var(--white);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.service-card {
  padding: 2.2rem;
  border: 1px solid var(--line);
  background: var(--off-white);
}

.service-card p,
.about-copy p,
.spotlight p,
.contact p {
  color: var(--gray);
}

.gallery-section {
  max-width: none;
  background: var(--off-white);
}

.gallery-section .section-intro,
.gallery-grid {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: .9rem;
}

/* Standard vertical images */
.gallery-grid img {
  grid-column: span 2;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform .35s ease, opacity .35s ease;
}

/* Horizontal images */
.gallery-grid img.gallery-horizontal {
  grid-column: span 3;
  aspect-ratio: 3 / 2;
}

.gallery-grid img:hover {
  transform: scale(1.015);
  opacity: .9;
}

.about {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 4rem;
  align-items: center;
}

.about-image img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.spotlight {
  max-width: none;
  text-align: center;
  color: var(--white);

  background-image:
    linear-gradient(rgba(0,0,0,.50), rgba(0,0,0,.50)),
    url("../assets/spotlight.jpg");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  padding-top: 9rem;
  padding-bottom: 9rem;
}

.spotlight p {
  max-width: 620px;
  margin: 0 auto 2rem;
  color: rgba(255,255,255,.85);
}

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-details {
  margin-top: 2rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

input,
textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--line);
  font: inherit;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

footer {
  padding: 2rem 5vw;
  text-align: center;
  color: var(--gray);
  background: var(--off-white);
  font-size: .85rem;
}

@keyframes fade {
  0% { opacity: 0; }
  8% { opacity: 1; }
  33% { opacity: 1; }
  41% { opacity: 0; }
  100% { opacity: 0; }
}

@media (max-width: 850px) {
  .site-header nav {
    display: none;
  }

  .service-grid,
  .about,
  .contact {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-content {
    padding-top: 10rem;
  }
}

@media (max-width: 520px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 5rem 5vw;
  }
}