/* One opening composition for the company and its four services. */
#main > .brand-hero {
  --hero-blue: #285bbf;
  --hero-inset: max(6vw, calc((100vw - 75rem) / 2));
  --hero-focus: 50% 50%;
  display: grid;
  grid-template-columns: minmax(0, 48fr) minmax(0, 52fr);
  align-items: stretch;
  min-height: clamp(26rem, 34vw, 35rem);
  margin: 0;
  padding: 0;
  gap: 0;
  background: var(--hero-blue);
  color: white;
}
#main > .brand-hero--home { --hero-focus: 50% 62%; }
#main > .brand-hero--about { --hero-focus: 50% 46%; }
#main > .brand-hero--interior { --hero-focus: 50% 45%; }
#main > .brand-hero--exterior { --hero-focus: 50% 51%; }
#main > .brand-hero--cabinets { --hero-focus: 52% 62%; }
#main > .brand-hero--commercial { --hero-focus: 60% 52%; }
#main > .brand-hero::after { content: none; }
.brand-hero-copy {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(2.8rem, 4.7vw, 5rem) clamp(1.4rem, 3vw, 4rem) clamp(2.8rem, 4.7vw, 5rem) var(--hero-inset);
}
#main .brand-hero .brand-hero-kicker {
  max-width: 100%;
  margin: 0 0 1rem;
  color: white;
  font: 500 1rem/1.5 var(--display);
  letter-spacing: normal;
  text-transform: none;
}
#main .brand-hero h1 {
  max-width: 18ch;
  margin: 0;
  color: white;
  font-family: var(--display);
  font-size: var(--reading-h1);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.025em;
  text-wrap: balance;
}
#main .brand-hero h1 span { display: block; color: inherit; }
#main .brand-hero .brand-hero-description {
  max-width: 46ch;
  margin: 1.15rem 0 0;
  color: white;
  font: 400 1rem/1.65 var(--display);
  text-wrap: pretty;
}
.brand-hero-description p + p { margin-top: .85rem; }
.brand-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem 1.4rem;
  margin-top: 1.65rem;
}
#main .brand-hero .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin: 0;
  padding: .8rem 1.35rem;
  background: white;
  color: #163f90;
  font: 600 1rem/1.4 var(--display);
}
#main .brand-hero .button:hover { background: #edf3ff; }
.brand-hero .call-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: white;
  font: 500 1rem/1.5 var(--display);
  text-decoration: underline;
  text-underline-offset: .23em;
}
.brand-hero .crew-facts { margin-top: .75rem; max-width: none; }
#main .brand-hero .crew-facts a { padding: 0; background: transparent; }
#main .brand-hero a:focus-visible { outline: 3px solid white; outline-offset: 4px; }
.brand-hero-photo {
  position: relative;
  isolation: isolate;
  grid-area: 1 / 2;
  display: block;
  min-width: 0;
  margin: 0;
  overflow: hidden;
}
.brand-hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--hero-focus);
}
.brand-hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, var(--hero-blue), rgb(40 91 191 / 45%) 10%, rgb(40 91 191 / 5%) 27%, transparent 55%);
}
.brand-hero-photo figcaption {
  position: absolute;
  z-index: 1;
  right: clamp(1rem, 3vw, 3rem);
  bottom: 1.1rem;
  max-width: calc(100% - 2rem);
  padding: .35rem .7rem;
  border-radius: .25rem;
  background: rgb(17 36 70 / 87%);
  color: white;
  font: 400 .875rem/1.45 var(--display);
}
@media (max-width: 800px) {
  #main > .brand-hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }
  .brand-hero-copy {
    padding: clamp(2.3rem, 6.5vw, 3.25rem) 6% 1.75rem;
  }
  .brand-hero-photo {
    grid-area: 2 / 1;
    height: clamp(12.5rem, 61vw, 24rem);
  }
  .brand-hero-photo::after {
    background: linear-gradient(180deg, var(--hero-blue), rgb(40 91 191 / 34%) 12%, transparent 35%);
  }
  .brand-hero-photo figcaption { bottom: .7rem; }
  .brand-hero-actions { margin-top: 1.35rem; }
}
@media (min-width: 1800px) {
  #main:has(> .brand-hero--home), #main:has(> .brand-hero--about) { max-width: none; }
}
