:root {
  --deep-ocean-blue-transparent: #1b3b5f7f;
  --sunset-orange: #ff7e5f;
  --white: #fcfcfb;
  --forest-green: #1e5a39;
  --sandy-beige: #f9f0e0;
  --charcoal-gray: #333333;
  --burnt-orange: #e06648;
  --seafoam-green: #3aafa9;
  --light-gray: #cccccc;
  --error-red: #d32f2f;

  --max-width: 1024px;
}

header {
  padding: 30px;
  padding-bottom: 0;
  font-size: 24px;
  position: relative;
  color: var(--white);
  font-weight: bold;
  display: flex;
  align-items: center;
}

header .logo {
  width: 30px;
  margin-right: 10px;
  stroke: var(--white);
}

body {
  margin: 0;
  background-color: var(--sandy-beige);
}
body,
input,
textarea {
  font-family: "Lato", sans-serif;
}

.hero-background {
  background-image: url(/assets/van-island.webp);
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-background::before {
  content: "";
  background-color: var(--deep-ocean-blue-transparent);
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.hero {
  color: var(--white);
  padding: 40px 30px 100px;
  max-width: var(--max-width);
  margin: auto;
  display: flex;
  flex-direction: column;
  position: relative;
  gap: 50px;
}

@media (min-width: 577px) {
  .hero {
    gap: 80px;
  }
}

.hero h1 {
  font-size: 32px;
  line-height: 1.2;
  margin: 0;
}

.hero h2 {
  font-size: 22px;
  line-height: 1.4;
  margin: 0;
}

@media (min-width: 577px) {
  .hero h1 {
    font-size: 48px;
  }
  .hero h2 {
    font-size: 26px;
  }
}

@media (min-width: 993px) {
  .hero h1 {
    font-size: 64px;
  }
  .hero h2 {
    font-size: 40px;
  }
}

.hero .button {
  margin: 0;
  box-shadow: var(--sunset-orange) 0px 0px 6px 0px;
  transition: box-shadow 300ms ease-in-out;
}

.hero .button:hover {
  box-shadow: var(--sunset-orange) 0px 0px 13px 0px;
  background-color: var(--sunset-orange);
}

.button {
  background-color: var(--sunset-orange);
  color: var(--white);
  text-decoration: none;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 5px;
  border: none;
  width: max-content;
  margin-bottom: 40px;
  display: block;
}

.button:hover {
  background-color: var(--burnt-orange);
}

.info-section {
  max-width: var(--max-width);
  margin: auto;
  padding: 30px;
}

.info-section h2 {
  font-size: 28px;
  color: var(--forest-green);
  margin-bottom: 20px;
}

.info-section h3 {
  font-size: 20px;
  color: var(--forest-green);
}

@media (min-width: 577px) {
  .info-section h2 {
    font-size: 36px;
  }

  .info-section h3 {
    font-size: 24px;
  }
}

.info-section p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--charcoal-gray);
  margin-bottom: 40px;
}

.info-section .value-proposition {
  font-size: 18px;
  margin: 18px 0;
}

.info-section .card {
  background: var(--white);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.services .cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.services .card {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.services .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.services .title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.services .icon {
  height: 24px;
  stroke: var(--forest-green);
}

.process-background {
  background-color: var(--white);
}

.process .steps {
  display: grid;
}

@media (min-width: 577px) {
  .process .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 993px) {
  .process .steps {
    grid-template-columns: repeat(6, 1fr);
  }
}

.process .step {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: span 3;
}

@media (min-width: 577px) {
  .process .step {
    grid-column: span 1;
    grid-row: span 3;
    grid-template-rows: subgrid;
  }
}

.process .title {
  margin: 0;
  text-align: right;
}

.process .timeline {
  position: relative;
  width: 2px;
  height: 100%;
  margin: 0 20px;
}

.process .step:first-child .timeline {
  padding-top: 10px;
}

.process .timeline::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 10px;
  background-color: var(--seafoam-green);
  display: block;
  top: 10px;
  left: -4px;
  position: absolute;
}

.process .timeline::after {
  content: "";
  width: 100%;
  height: 100%;
  background-color: var(--seafoam-green);
  display: block;
}

.process .description {
  margin: 0;
  margin-bottom: 30px;
}

.process .step:last-child .description {
  margin-bottom: 0;
}

@media (min-width: 577px) {
  .process .title {
    text-align: left;
  }

  .process .timeline {
    height: 2px;
    width: 100%;
    margin: 20px 0;
  }

  .process .step:first-child .timeline {
    padding-top: 0;
  }

  .process .timeline::before {
    top: -4px;
    left: 0;
  }

  .process .description {
    margin-right: 30px;
  }

  .process .step:nth-child(3n) .timeline {
    width: calc(100% - 20px);
  }
}

@media (min-width: 993px) {
  .process .step:nth-child(3) .timeline {
    width: 100%;
  }
}

.contact label {
  display: block;
  font-size: 16px;
  margin-bottom: 5px;
  color: var(--charcoal-gray);
}

.contact input,
.contact textarea {
  width: calc(100% - 20px);
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid var(--light-gray);
  border-radius: 5px;
  font-size: 16px;
  display: block;
  background-color: var(--white);
}

.contact-form-container {
  position: relative;
  max-width: 500px;
}

.contact form.fade-out {
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.5s,
    visibility 0.5s;
}

.contact .confirmation-message.fade-in {
  animation: 0.5s 0.25s forwards fade;
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.contact .confirmation-message {
  opacity: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.contact .error-message {
  color: var(--error-red);
  font-weight: bold;
}

footer {
  background-color: var(--charcoal-gray);
  color: var(--white);
  padding: 40px 20px;
  font-size: 14px;
  text-align: center;
}
