/* Hero: Serif title style (template-parts/hero-editorial.php). */

.hero.hero-editorial {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: auto;
  min-height: 0;
  overflow: hidden;
  background: #0b0b0a;
  color: #f2eee6;
}

/* Photo */
.hero-editorial .hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-size: cover;
  background-repeat: no-repeat;
}

/* Shading over the photo */
.hero-editorial:after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
}

/* Darker toward the bottom (home page) */
.hero-shade-bottom .hero-bg {
  filter: contrast(1.08) brightness(0.8);
}
.hero-shade-bottom:after {
  background: linear-gradient(180deg, rgba(11, 11, 10, 0.35) 0%, rgba(11, 11, 10, 0.12) 35%, rgba(11, 11, 10, 0.88) 100%), radial-gradient(ellipse at 18% 70%, rgba(11, 11, 10, 0.55), transparent 60%);
}

/* Darker on the left (inner pages) */
.hero-shade-left .hero-bg {
  filter: brightness(0.62) contrast(1.06) saturate(0.9);
}
.hero-shade-left:after {
  background: linear-gradient(90deg, rgba(11, 11, 10, 0.9) 0%, rgba(11, 11, 10, 0.55) 50%, rgba(11, 11, 10, 0.15) 100%), linear-gradient(180deg, transparent 50%, rgba(11, 11, 10, 0.6));
}

/* Darker toward the bottom, darker photo (case studies) */
.hero-shade-case .hero-bg {
  filter: brightness(0.72);
}
.hero-shade-case:after {
  background: linear-gradient(180deg, rgba(11, 11, 10, 0.3) 0%, rgba(11, 11, 10, 0.1) 40%, rgba(11, 11, 10, 0.92) 100%);
}

/* Content sits above the photo, shading and grain */
.hero-editorial .container {
  position: relative;
  z-index: 3;
  width: 100%;
  padding-top: 110px;
  padding-bottom: 110px;
}
.hero-size-xl .container {
  padding-top: 120px;
  padding-bottom: 96px;
}
.hero-shade-case .container {
  padding-top: 140px;
  padding-bottom: 70px;
}

/* Text on the left, video thumbnail on the right */
.hero-editorial .hero-main {
  display: grid;
  grid-template-columns: 1fr;
}
.hero-editorial.hero-has-video .hero-main {
  grid-template-columns: 1.35fr 0.65fr;
  gap: 60px;
  align-items: center;
}


/* =====  Text  ======== */

.hero-editorial .crumbs {
  margin-bottom: 18px;
}

.hero-editorial .hero-logo {
  display: block;
  height: 62px;
  width: auto;
  margin: 22px 0 18px;
}

.hero-editorial .hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 26px;
}
.hero-editorial .hero-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #b45f06;
  box-shadow: 0 0 0 6px rgba(180, 95, 6, 0.25);
}

.hero-editorial h1 {
  margin: 0 0 22px;
  font-size: 95px;
  color: #f2eee6;
}
.hero-editorial.hero-size-xl h1 {
  margin: 0;
  font-size: 124px;
}
.hero-editorial h1 em {
  color: #cbc4bc;
}

.hero-editorial .hero-lead {
  max-width: 600px;
  margin: 0;
  font-size: 19px;
  color: rgba(242, 238, 230, 0.84);
}
.hero-editorial.hero-size-xl .hero-lead {
  max-width: 590px;
  margin: 28px 0 0;
  color: rgba(242, 238, 230, 0.86);
}

.hero-editorial .hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}


/* =====  Prices row (with the buttons beside it)  ======== */

.hero-editorial .hero-prices {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 40px;
  margin-top: 30px;
}
.hero-editorial .hero-prices .hero-buttons {
  margin-top: 0;
  margin-left: 32px;
}
.hero-price-label {
  display: block;
  font-family: "Katahdin Round", "Inter", system-ui, sans-serif;
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #e3893a;
}
.hero-price-row {
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.hero-price-row strong {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #f2eee6;
}
.hero-price-row small {
  font-size: 22px;
  font-weight: 600;
  color: #cbc4bc;
}
.hero-price-row small.hero-price-prefix {
  margin-right: 8px;
  font-family: "Katahdin Round", "Inter", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}


/* =====  Video thumbnail  ======== */

.hero-video {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 3px;
  border: 1px solid rgba(242, 238, 230, 0.18);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55);
}
.hero-video img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-video:after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.7));
}
.hero-video-play {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 46%;
  width: 66px;
  height: 66px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background-color: rgba(242, 238, 230, 0.94);
  transition: transform 0.2s;
}
.hero-video-play:before {
  content: "";
  position: absolute;
  left: 26px;
  top: 22px;
  border-left: 18px solid #100f0e;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
}
.hero-video:hover .hero-video-play {
  transform: translate(-50%, -50%) scale(1.06);
}
.hero-video-caption {
  position: absolute;
  z-index: 2;
  left: 18px;
  right: 18px;
  bottom: 14px;
  display: flex;
  justify-content: space-between;
  font-family: "Katahdin Round", "Inter", system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f2eee6;
}


/* =====  Facts row  ======== */

.hero-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 72px;
}
.hero-fact {
  padding: 14px 20px 0 0;
  border-top: 1px solid rgba(242, 238, 230, 0.22);
  font-size: 13.5px;
  color: rgba(242, 238, 230, 0.7);
}
.hero-fact b {
  display: block;
  margin-bottom: 2px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #f2eee6;
}


/* Large devices (desktops, less than 1200px) */
@media (max-width: 1199.98px) {
  .hero-editorial h1 {
    font-size: 79px;
  }
  .hero-editorial.hero-size-xl h1 {
    font-size: 103px;
  }
}

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
  .hero-editorial.hero-has-video .hero-main {
    grid-template-columns: 1fr;
  }
  .hero-video {
    max-width: 440px;
  }
  .hero-editorial h1 {
    font-size: 65px;
  }
  .hero-editorial.hero-size-xl h1 {
    font-size: 85px;
  }
  .hero-editorial .hero-prices .hero-buttons {
    margin-left: 0;
  }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
  .hero-editorial .container {
    padding-top: 80px;
    padding-bottom: 84px;
  }
  .hero-size-xl .container {
    padding-top: 96px;
    padding-bottom: 70px;
  }
  /* Case study heroes keep their spacing on phones */
  .hero-editorial.hero-shade-case {
    min-height: 560px;
  }
  .hero-shade-case .container {
    padding-top: 140px;
    padding-bottom: 70px;
  }
  .hero-editorial.hero-has-video .hero-main {
    gap: 30px;
  }
  .hero-editorial h1 {
    font-size: 54px;
  }
  .hero-editorial.hero-size-xl h1 {
    font-size: 62px;
  }
  .hero-editorial.hero-size-xl .hero-lead {
    font-size: 17px;
  }
  .hero-editorial .hero-eyebrow {
    align-items: flex-start;
    font-size: 10.5px;
    letter-spacing: 0.14em;
  }
  .hero-editorial .hero-dot {
    margin-top: 4px;
  }
  .hero-editorial .hero-buttons .btn {
    flex: 1;
    justify-content: center;
  }
  .hero-video {
    display: none;
  }
  .hero-shade-left:after {
    background: linear-gradient(180deg, rgba(11, 11, 10, 0.55), rgba(11, 11, 10, 0.85));
  }
  .hero-facts {
    grid-template-columns: 1fr 1fr;
    row-gap: 18px;
    margin-top: 44px;
  }
  .hero-fact b {
    font-size: 18px;
  }
  .hero-price-row strong {
    font-size: 42px;
  }
  .hero-editorial .hero-prices {
    gap: 22px;
  }
}
