/* Home background image */
#middle {
  background-image: url(assets/home/background.jpg);
  background-size: cover;
  background-position: center calc(var(--bg-offset));
  background-repeat: no-repeat;
}

/* Overlay for readability */
#middle::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

/* Keep content above overlay */
#middle .container {
  position: relative;
}

/* Logo under menu ~100px below header */
.under-header-logo {
  position: absolute;
  top: calc(var(--header-h) + 100px);
  right: 10%;
  z-index: 2;
}

.under-header-logo img {
  width: 500px;
  height: auto;
  opacity: 0.95;
  border-radius: 5px;
}

/* Hero */
.hero {
  padding: 40px 0;
  margin-top: 150px;
}

.hero h1 {
  font-size: 60px;
  margin-bottom: 20px;
}

.hero h1 span {
  color: #ff8000;
}

.hero p {
  font-size: 22px;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .hero h1 {
    font-size: 42px;
  }

  .under-header-logo {
    left: 10%;
    top: calc(var(--header-h) + 90px);
  }
}

/* =========================
   RESPONSIVE HOME LOGO
========================= */

/* Tablet */
@media (max-width: 900px) {
  .under-header-logo img {
    width: 320px; /* down from 500 */
  }

  .under-header-logo {
    right: 10%;
    top: calc(var(--header-h) + 80px);
  }

  .hero {
    margin-top: 130px;
  }
}

/* Large phones */
@media (max-width: 600px) {
  .under-header-logo {
    right: 50%;
    transform: translateX(50%);
    top: calc(var(--header-h) + 70px);
  }

  .under-header-logo img {
    width: 240px;
  }

  .hero {
    margin-top: 180px; /* push text below logo */
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 18px;
  }
}

/* Small phones */
@media (max-width: 400px) {
  .under-header-logo img {
    width: 200px;
  }

  .hero {
    margin-top: 200px;
  }
}
