/* ========== Hero (home) ========== */
.hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  isolation: isolate;
  background: var(--black);
  border-bottom: 1px solid var(--line-blue);
}
.hero-photo {
  position: absolute;
  inset: 0;
  background-image: url("../assets/images/hero-millwork.png");
  background-size: cover;
  background-position: center right;
  z-index: 0;
}
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(8, 11, 16, 0.97) 0%,
      rgba(8, 11, 16, 0.92) 28%,
      rgba(8, 11, 16, 0.55) 55%,
      rgba(8, 11, 16, 0.35) 100%
    ),
    linear-gradient(
      180deg,
      rgba(8, 11, 16, 0.55) 0%,
      rgba(8, 11, 16, 0.1) 35%,
      rgba(8, 11, 16, 0.55) 100%
    );
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 9rem 0 6rem;
}
.hero h1 {
  font-size: clamp(3.4rem, 6.6vw, 6.2rem);
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-weight: 900;
  color: var(--white);
  max-width: 12ch;
}
.hero h1 .blue {
  display: block;
  color: var(--blue);
}
.hero-copy {
  max-width: 460px;
  color: var(--off);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.8rem;
}

/* ========== Trust bar ========== */
.trust-bar {
  background: var(--ink);
  border-top: 1px solid var(--line-blue);
  border-bottom: 1px solid var(--line-blue);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  padding: 1.8rem 1.6rem;
  border-right: 1px solid var(--line);
}
.trust-item:last-child {
  border-right: none;
}
.trust-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: var(--blue);
}
.trust-icon svg {
  width: 38px;
  height: 38px;
}
.trust-item h3 {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.35rem;
}
.trust-item p {
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--off);
}

/* ========== Trust bar alignment polish ========== */
.trust-item {
  display: flex;
  align-items: center;
  gap: 1.55rem;
}

.trust-item > div:last-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.trust-icon,
.trust-link {
  width: 62px;
  min-width: 62px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trust-icon svg {
  width: 46px;
  height: 46px;
}

.trust-icon.award svg {
  width: 52px;
  height: 52px;
}

.trust-icon.shield svg {
  width: 50px;
  height: 50px;
}

.ca-gov-logo {
  width: 64px;
  height: auto;
}

.california-logo {
  width: 44px;
  height: auto;
}

@media (max-width: 760px) {
  .trust-item {
    align-items: center;
    gap: 1rem;
  }

  .trust-icon,
  .trust-link {
    width: 50px;
    min-width: 50px;
    height: 50px;
  }

  .trust-icon svg {
    width: 38px;
    height: 38px;
  }

  .ca-gov-logo {
    width: 50px;
  }

  .california-logo {
    width: 36px;
  }
}

/* ========== Client feedback home install language support ========== */
.hero-copy {
  max-width: 46rem;
}

/* ========== Final hero large logo restore ========== */
.hero {
  min-height: clamp(700px, 84vh, 860px);
}
.hero .hero-content {
  position: relative;
  z-index: 1;
  padding: clamp(7.5rem, 10vh, 9.5rem) 0 clamp(4.2rem, 7vh, 6rem);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.hero-dropin {
  width: min(100%, 1120px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-dropin-logo {
  width: min(620px, 68vw);
  height: auto;
  object-fit: contain;
  margin-bottom: clamp(0.9rem, 1.8vw, 1.4rem);
  filter: drop-shadow(0 34px 70px rgba(0, 0, 0, 0.68))
    drop-shadow(0 0 30px rgba(59, 130, 246, 0.18));
}
.hero-dropin h1 {
  max-width: none;
  font-size: clamp(3.4rem, 5.2vw, 6.1rem);
  line-height: 0.9;
  text-align: center;
  white-space: nowrap;
  letter-spacing: -0.055em;
  margin: 0;
}
.hero-dropin h1 span,
.hero-dropin h1 .blue {
  display: inline;
}
.hero-dropin h1 .blue {
  margin-left: 0.16em;
}
.hero-dropin .title-rule.center {
  width: 82px;
  height: 4px;
  margin: clamp(1rem, 1.8vw, 1.25rem) auto 1.25rem;
}
.hero-dropin .hero-copy {
  max-width: 760px;
  margin: 0 auto 1.65rem;
  font-size: clamp(1rem, 1.04vw, 1.1rem);
  line-height: 1.7;
  color: var(--off);
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}
.hero-secondary-btn {
  background: rgba(8, 11, 16, 0.28);
}

@media (max-width: 900px) {
  .hero .hero-content {
    padding-top: 7rem;
    padding-bottom: 4rem;
  }
  .hero-dropin-logo {
    width: min(360px, 76vw);
  }
  .hero-dropin h1 {
    white-space: normal;
    max-width: 8.5ch;
    font-size: clamp(3rem, 12vw, 4.6rem);
  }
  .hero-dropin h1 span,
  .hero-dropin h1 .blue {
    display: block;
    margin-left: 0;
  }
}
@media (max-width: 620px) {
  .hero {
    min-height: auto;
  }
  .hero .hero-content {
    text-align: left;
    justify-content: flex-start;
  }
  .hero-dropin {
    align-items: flex-start;
  }
  .hero-dropin-logo {
    width: min(260px, 72vw);
  }
  .hero-dropin h1 {
    text-align: left;
    font-size: clamp(3rem, 14vw, 4.3rem);
  }
  .hero-dropin .title-rule.center {
    margin-left: 0;
    margin-right: 0;
  }
  .hero-actions,
  .hero-actions .btn {
    width: 100%;
    justify-content: flex-start;
  }
}
