/* Shared subpage hero — canonical layout from services.html (How We Help). */
.hero {
  display: flex;
  height: 80vh;
  min-height: 600px;
  max-height: 760px;
  padding-top: 72px;
  overflow: hidden;
  background: var(--navy-deep);
  position: relative;
}

/* Our Building: centered hero copy on tablet and phone. */
@media (max-width: 960px) {
  body.building-page .hero-left {
    align-items: center;
    text-align: center;
  }

  body.building-page .hero-left .eyebrow-line {
    margin-left: auto;
    margin-right: auto;
  }

  body.building-page .hero-left p {
    margin-left: auto;
    margin-right: auto;
  }
}

.hero-left {
  flex: 0 0 52%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 100px 80px 80px;
  background-color: var(--navy-deep);
  background-image: url('chalk-playbook-navy.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  position: relative;
  z-index: 2;
  clip-path: polygon(0 0, 100% 0, calc(100% - 80px) 100%, 0 100%);
}

.hero-left::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  clip-path: polygon(
    calc(100% - 3px) 0%,
    100% 0%,
    calc(100% - 80px) 100%,
    calc(100% - 80px - 3px) 100%
  );
  z-index: 3;
  pointer-events: none;
}

.hero-left .eyebrow {
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-lt);
  margin-bottom: 12px;
}

.hero-left .eyebrow-line {
  width: 36px;
  height: 2px;
  background: var(--accent-lt);
  margin-bottom: 24px;
  border-radius: 2px;
}

.hero-left h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(36px, 4.5vw, 58px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 20px;
}

.hero-left h1 em {
  color: var(--accent-lt);
  font-style: italic;
}

.hero-left p {
  font-family: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  font-size: 15px;
  color: rgba(255,255,255,.78);
  max-width: 400px;
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-btns {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-right {
  flex: 1;
  margin-left: -80px;
  position: relative;
  overflow: hidden;
  background: var(--navy-dark);
}

.hero-right img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.hero-right-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(7,25,47,.55) 0%, rgba(0,0,0,.2) 50%);
  z-index: 1;
}

@media (max-width: 960px) {
  .hero {
    flex-direction: column;
    height: auto;
    min-height: auto;
    max-height: none;
  }

  .hero-left {
    clip-path: none;
    padding: 80px 32px 56px;
    flex: none;
    order: 2;
  }

  .hero-left::after {
    display: none;
  }

  .hero-right {
    flex: none;
    height: 52vw;
    min-height: 240px;
    margin-left: 0;
    order: 1;
  }

  /* Let the chalkboard texture gradually replace the photo at the seam. */
  .hero-right::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: clamp(100px, 21vw, 170px);
    z-index: 3;
    pointer-events: none;
    background-color: var(--navy-deep);
    background-image: url('chalk-playbook-navy.jpg');
    background-size: cover;
    background-position: center bottom;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    filter: blur(1.5px);
    transform: scale(1.025);
    transform-origin: center bottom;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.08) 25%, rgba(0,0,0,.62) 68%, #000 94%);
    mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.08) 25%, rgba(0,0,0,.62) 68%, #000 94%);
  }
}

@media (max-width: 600px) {
  .hero-left {
    padding: 56px 20px 48px;
  }
}
