body {
  margin: 0 auto;
  font-family: "Public Sans", serif;
  background-color: #000000;
  color: black;
  overflow-x: hidden;
}

.video-container {
  width: 100%;
  max-height: 720px;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid #ffffff;
  height: 720px;
}

.video-main {
  width: 100%;
  height: 100%;
  max-height: 720px;
  object-fit: cover;
  object-position: center;
  display: block;
  height: 720px;
}

#icon {
  width: 23px;
  align-self: center;
  justify-self: center;
}

#email {
  text-transform: none;
}
#title {
  font-size: 17px;
  letter-spacing: 1.2px;
}

.cta-video-container {
  position: absolute;
  top: 20%;
  right: 8%;
  background-color: rgba(0, 0, 0, 0.95);
  width: 350px;
  height: fit-content;
  color: white;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  border: 1px solid white;
  border-radius: 5px;
}
.cta-heading {
  text-align: center;
  font-size: 38px;
  font-weight: 400;
  margin-top: 20px;
  position: relative;
}
.cta-heading img {
  max-width: 300px;
  position: absolute;
  left: 50%;
  top: -85px;
  transform: translateX(-50%);
}
.cta-text {
  line-height: 1.6;
  font-size: 17px;
  margin-top: 170px;
}
.cta-text span {
  display: block;
  margin-bottom: 20px;
}
.cta-text p {
  margin-bottom: 0px;
}
.cta-buttons {
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 50px;
  display: flex;
}
.cta-btn {
  width: 100px;
  text-align: center;
  padding: 12px 8px;
  border: 2px solid white;
  color: white;
  text-decoration: none;
  transition: color 0.5s ease, border-color 0.5s ease,
    background-color 0.5s ease;
}

.cta-btn:hover {
  color: #f0a500;
  cursor: pointer;
  border: 2px solid #f0a500;
  background-color: rgba(44, 44, 44, 0.568);
}

.why-us-container {
  position: relative;
  overflow: hidden;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 0px 75px 0px;
}
.why-us-container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%; /* adjust for intensity */
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.99) 11%,
    rgb(2, 2, 2, 0.85)
  );
  z-index: 0;
}

.why-us-container::before {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background-image: url("photos/who-we-are-grain.webp");
  background-size: cover;
  background-position: center;
  filter: blur(2px);
  z-index: -1;
}
.why-us {
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 30;
}
.why-us-heading {
  color: white;
  font-size: 42px;
  padding: 30px;
  margin-bottom: 25px;
  text-transform: uppercase;
  font-style: italic;
  font-weight: 500;
  padding-top: 0px;
}
/*.why-us-text-container {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
}
  */
.why-us-text-container {
  color: white;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  font-size: 20px;
  line-height: 1.44;

  padding: 20px;

  width: 100%;
}

.why-us-text p {
  margin: 0 auto;
}

.process-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 50px;
  padding: 50px 0;
  background-color: #070707;
  color: white;
}

.process-title {
  font-size: 42px;
  margin: 20px;
  text-transform: uppercase;
  font-style: italic;
  color: #45c41f;
  text-align: center;
}

.process-title span {
  font-size: 20px;
  color: white;
  text-transform: none;
  font-style: normal;
}

.process-step-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* optional: center the rows */
  gap: 70px; /* spacing between items */
}

.process-step {
  flex: 1 1 calc(33.33% - 70px); /* 3 per row with spacing accounted for */
  max-width: 300px; /* optional max size */
  box-sizing: border-box;
  justify-content: top;
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.process-step img {
  width: 100px;
  margin: 10px;
  /*filter: brightness(90%);*/
}

/* Make the bottom row span full width and center the button */
.process-bottom {
  flex: 1 1 100%;
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

/* Green CTA button */
.estimate-btn {
  display: inline-block;
  background-color: #3aac17; /* matches your green */
  color: #ffffff;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 14px 28px;
  border-radius: 3px;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    background-color 0.2s ease, border-color 0.2s ease;

  font-style: italic;
}

/* Hover/Focus states */
.estimate-btn:hover,
.estimate-btn:focus {
  background-color: #339c19ea; /* slightly darker green */
  transform: translateY(-1px);
  box-shadow: 0 0px 15px rgba(69, 196, 31, 0.2);
  outline: none;
}

/* Active press */
.estimate-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(69, 196, 31, 0.25);
}

/* Optional: make it full-width on very small screens */
@media (max-width: 480px) {
  .estimate-btn {
    width: 100%;
    text-align: center;
  }
}

.step-title {
  font-size: 20px;
  text-align: center;
  color: white;
}

.step-title span {
  color: #d88305;
}

.step-text {
  text-align: center;
  color: #46aa27;
  font-size: 18px;
  line-height: 1.3;
}

.future {
  font-size: 40px;
  text-align: center;
  color: white;
  background-color: #070707;
}

.mobile-view-container {
  display: none;
}

@media (max-width: 1250px) {
  .video-container {
    display: none;
  }
  .mobile-view-container {
    display: block;
  }

  /* Video wrapper: 16:9 at full width */
  .mobile-video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* keeps height ~56.25% of width */
    overflow: visible; /* allow logo to hang out */
    background: #000; /* fallback while video loads */
  }

  .mobile-video-container video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover; /* fills the 16:9 box nicely */
  }

  /* Logo badge pinned to bottom center, half in / half out */
  .mobile-logo-container {
    position: absolute;
    left: 50%;
    bottom: -20px;
    transform: translate(-50%, 50%); /* 50% down = half outside the video box */
    background: none;
    border-radius: 14px;
    padding: 8px 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    z-index: 2;
  }

  .mobile-logo-container img {
    display: block;
    height: 200px; /* adjust freely; won't affect layout */
  }

  /* Give space so following text doesn't collide with the overhanging logo */
  .mobile-text-container {
    padding: 28px 18px 40px;
    margin-top: 90px; /* room for the overhang */
    text-align: center;
    background-color: #000;
  }

  .mobile-text-container p {
    margin: 0;
    line-height: 1.5;
    color: #fff; /* assume dark theme; change if needed */
  }

  .cta-row {
    display: flex;
    justify-content: center;
    gap: 35px;
    margin-top: 35px;
  }

  /* Parallelogram buttons (slanted sides) */
  .btn {
    display: inline-block;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.5px;
    font-size: 16px;
  }

  .btn-para {
    background: #7fc70b; /* Niagara green */
    color: #0a0a0a;
    border: 2px solid #7fc70b;
    padding: 12px 22px;
    transform: skewX(-14deg); /* create the slant */
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  }

  /* un-skew the text so it reads normally */
  .btn-para > span {
    display: inline-block;
    transform: skewX(14deg);
  }

  .btn-para:hover {
    background: transparent;
    color: #7fc70b;
    transform: skewX(-14deg) translateY(-1px);
  }
  #why-us-text-2 {
    display: none;
  }
  .why-us-text {
    width: 100%;
  }
  .process-step-container {
    margin: 25px;
    flex-direction: column;
  }
  .estimate-btn {
    width: 50%;
  }
  .why-us-text-container {
    width: 70%;
  }
}
