/* Eleventwenty additions to the Creative theme */

/* Short banner for inner pages (Services, Contact, legal) */
header.page-header {
  padding-top: 9rem;
  padding-bottom: 4rem;
  background: linear-gradient(to bottom, rgba(92, 77, 66, 0.85) 0%, rgba(92, 77, 66, 0.85) 100%), url("../assets/img/bg-masthead.jpg");
  background-position: center;
  background-size: cover;
}
header.page-header h1 {
  font-size: 2.25rem;
}
@media (min-width: 992px) {
  header.page-header h1 {
    font-size: 3rem;
  }
}

/* Numbered steps on the homepage */
.step-num {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: #f4623a;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 3.5rem;
}

/* Readable legal pages */
.legal {
  max-width: 50rem;
}
.legal h2 {
  font-size: 1.35rem;
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
}
.legal p,
.legal li {
  color: #4a4a4a;
  line-height: 1.7;
}

/* SMS consent box on the contact form */
.sms-consent {
  background: #f8f9fa;
  border-radius: 0.5rem;
  padding: 1rem 1rem 1rem 2.5rem;
}

footer a {
  color: inherit;
}

/* Logo in the menu bar: white over the photo, dark once the bar turns white */
.brand-logo {
  height: 2.25rem;
  width: auto;
  margin-right: 0.6rem;
}
#mainNav .logo-white { display: none; }
#mainNav .logo-dark { display: inline-block; }
@media (min-width: 992px) {
  #mainNav:not(.navbar-shrink) .logo-white { display: inline-block; }
  #mainNav:not(.navbar-shrink) .logo-dark { display: none; }
}

/* Hero photo: lighter overlay so the photo shows; WebP for modern browsers, JPG fallback */
header.masthead,
header.page-header {
  background-image:
    linear-gradient(to bottom, rgba(25, 22, 18, 0.55) 0%, rgba(25, 22, 18, 0.65) 100%),
    url("../assets/img/bg-masthead.jpg");
  background-image:
    linear-gradient(to bottom, rgba(25, 22, 18, 0.55) 0%, rgba(25, 22, 18, 0.65) 100%),
    image-set(url("../assets/img/bg-masthead-sm.webp") type("image/webp"), url("../assets/img/bg-masthead.jpg") type("image/jpeg"));
  background-position: center 40%;
  background-size: cover;
}
@media (min-width: 768px) {
  header.masthead,
  header.page-header {
    background-image:
      linear-gradient(to bottom, rgba(25, 22, 18, 0.55) 0%, rgba(25, 22, 18, 0.65) 100%),
      image-set(url("../assets/img/bg-masthead.webp") type("image/webp"), url("../assets/img/bg-masthead.jpg") type("image/jpeg"));
  }
}

/* Homepage hero: full, uncropped photo (its own headline is part of the image) */
header.hero-photo {
  position: relative;
  margin-top: 72px; /* room for the white menu bar on phones/tablets */
  background: #212529;
}
header.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
}
@media (min-width: 992px) {
  header.hero-photo {
    margin-top: 0; /* menu floats over the photo on desktop */
  }
  /* soft shade at the top so the white logo and links stay readable */
  header.hero-photo::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 140px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
    pointer-events: none;
  }
}
