/* Shared interior-page styles */

.subpage-hero {
  position: relative;
  min-height: 610px;
  overflow: clip;
  color: var(--tme-white);
  background:
    linear-gradient(90deg, rgba(0, 26, 61, .96) 0%, rgba(0, 35, 81, .9) 42%, rgba(0, 35, 81, .34) 73%, rgba(0, 0, 0, .24) 100%),
    image-set(
      url("assets/images/electrical-work-hero-1600.webp") type("image/webp"),
      url("assets/images/electrical-work-hero-1600.jpg") type("image/jpeg")
    );
  background-position: center;
  background-size: cover;
}

.subpage-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 12px;
  background: linear-gradient(90deg, var(--tme-navy), var(--tme-white) 48%, var(--tme-red));
}

.subpage-hero--right {
  background-position: 64% center;
}

.subpage-hero--center {
  background-position: 54% center;
}

.subpage-hero-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100vw - 32px));
  min-height: inherit;
  margin: 0 auto;
  padding: 54px 0 72px;
  display: grid;
  align-content: center;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
  color: #d9e8ff;
  font-size: 13px;
  font-weight: 750;
}

.breadcrumbs a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, .45);
}

.breadcrumbs span[aria-hidden="true"] {
  color: var(--tme-gold);
}

.subpage-hero-content {
  width: min(790px, 100%);
}

.subpage-hero h1 {
  max-width: 790px;
  margin-top: 16px;
  font-size: 64px;
  line-height: 1;
}

.subpage-hero .hero-lede {
  max-width: 700px;
}

.hero-detail-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 28px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid rgba(255, 255, 255, .25);
  list-style: none;
  color: #eef5ff;
  font-weight: 750;
}

.hero-detail-list li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 9px;
  background: var(--tme-gold);
}

.page-proof-band {
  border-bottom: 1px solid var(--tme-line);
  background: var(--tme-white);
}

.page-proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.page-proof-item {
  min-height: 158px;
  padding: 30px 24px;
  border-right: 1px solid var(--tme-line);
  display: grid;
  align-content: center;
}

.page-proof-item:first-child {
  border-left: 1px solid var(--tme-line);
}

.page-proof-item strong {
  color: var(--tme-navy);
  font-size: clamp(24px, 2.05vw, 33px);
  line-height: 1;
  white-space: nowrap;
}

.page-proof-item span {
  margin-top: 9px;
  color: var(--tme-muted);
  font-size: 14px;
  line-height: 1.4;
}

.page-section {
  padding: 86px 0;
  background: var(--tme-white);
}

.page-section--field {
  background: #f1f3f5;
}

.page-section--dark {
  background: var(--tme-ink);
  color: var(--tme-white);
}

.page-section--dark .section-copy,
.page-section--dark .scope-row p,
.page-section--dark .process-item p,
.page-section--dark .audience-item p {
  color: #cbd6e3;
}

.page-section--dark .scope-row,
.page-section--dark .process-item,
.page-section--dark .audience-item {
  border-color: rgba(255, 255, 255, .18);
}

.page-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  gap: 84px;
  align-items: start;
}

.page-intro-grid .section-copy + .section-copy {
  margin-top: 18px;
}

.contact-page-grid {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(420px, .68fr);
  gap: 72px;
  align-items: start;
}

.contact-page-grid .contact-panel {
  position: sticky;
  top: 104px;
}

.contact-direct-list {
  margin-top: 36px;
  border-top: 1px solid var(--tme-line);
}

.contact-direct-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 22px;
  min-height: 68px;
  align-items: center;
  border-bottom: 1px solid var(--tme-line);
}

.contact-direct-row strong {
  color: var(--tme-navy);
  font-size: 13px;
  text-transform: uppercase;
}

.contact-direct-row a {
  color: var(--tme-red-700);
  font-weight: 850;
  overflow-wrap: anywhere;
}

.page-side-note {
  padding: 8px 0 8px 24px;
  border-left: 4px solid var(--tme-red);
}

.page-side-note strong {
  display: block;
  color: var(--tme-navy);
  font-size: 20px;
}

.page-side-note p {
  margin-top: 9px;
  color: var(--tme-muted);
}

.scope-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 44px;
  margin-top: 42px;
}

.scope-row {
  min-height: 176px;
  padding: 26px 0;
  border-top: 1px solid var(--tme-line);
}

.scope-row h3 {
  font-size: 23px;
  line-height: 1.15;
}

.scope-row p {
  margin-top: 10px;
  color: var(--tme-muted);
}

.scope-row a {
  min-height: 44px;
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  color: var(--tme-red-700);
  font-weight: 850;
}

.scope-row a::after,
.related-card a::after {
  content: "\2192";
  margin-left: 8px;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
  margin-top: 42px;
}

.audience-item {
  min-height: 180px;
  padding: 12px 0 12px 24px;
  border-left: 1px solid var(--tme-line);
}

.audience-item b {
  display: block;
  color: var(--tme-gold);
  font-size: 14px;
}

.audience-item h3 {
  margin-top: 12px;
  font-size: 24px;
}

.audience-item p {
  margin-top: 10px;
  color: var(--tme-muted);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 42px;
  border: 1px solid var(--tme-line);
}

.process-item {
  min-height: 230px;
  padding: 26px;
  border-right: 1px solid var(--tme-line);
}

.process-item:last-child {
  border-right: 0;
}

.process-item span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--tme-navy);
  color: var(--tme-white);
  font-size: 13px;
  font-weight: 900;
}

.process-item h3 {
  margin-top: 22px;
  font-size: 20px;
}

.process-item p {
  margin-top: 10px;
  color: var(--tme-muted);
}

.faq-stack {
  width: min(920px, 100%);
  margin-top: 36px;
}

.record-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 70px;
  align-items: start;
}

.record-table {
  border-top: 1px solid var(--tme-line);
}

.record-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 100px;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--tme-line);
}

.record-row strong {
  display: block;
  font-size: 18px;
}

.record-row p {
  margin-top: 5px;
  color: var(--tme-muted);
}

.record-row span {
  color: var(--tme-navy);
  font-size: 27px;
  font-weight: 950;
  text-align: right;
}

.year-list {
  margin-top: 34px;
}

.year-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 34px;
  gap: 14px;
  align-items: center;
  min-height: 45px;
}

.year-row strong,
.year-row span {
  font-variant-numeric: tabular-nums;
}

.year-track {
  height: 10px;
  background: #dfe4e8;
}

.year-track i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--tme-navy), var(--tme-red));
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 38px;
}

.related-card {
  min-height: 230px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--tme-line);
  background: var(--tme-white);
}

.related-card h3 {
  font-size: 23px;
}

.related-card p {
  margin-top: 10px;
  color: var(--tme-muted);
}

.related-card a {
  min-height: 44px;
  margin-top: auto;
  padding-top: 18px;
  display: inline-flex;
  align-items: center;
  color: var(--tme-red-700);
  font-weight: 850;
}

.page-cta {
  position: relative;
  overflow: hidden;
  background: var(--tme-navy);
  color: var(--tme-white);
}

.page-cta::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 10px;
  background: var(--tme-red);
}

.page-cta-grid {
  min-height: 330px;
  padding: 62px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 52px;
  align-items: center;
}

.page-cta h2 {
  max-width: 720px;
  font-size: 48px;
  line-height: 1.04;
}

.page-cta p {
  max-width: 650px;
  margin-top: 16px;
  color: #d8e5f5;
  font-size: 18px;
}

.page-cta-actions {
  display: grid;
  gap: 12px;
  min-width: 240px;
}

.page-cta .button-secondary {
  border-color: rgba(255, 255, 255, .38);
  background: transparent;
  color: var(--tme-white);
}

.desktop-nav a[aria-current="page"] {
  border-color: var(--tme-red);
  color: var(--tme-navy);
}

.mobile-panel a[aria-current="page"] {
  color: var(--tme-red-700);
}

@media (max-width: 980px) {
  .subpage-hero {
    background-image:
      linear-gradient(90deg, rgba(0, 26, 61, .96) 0%, rgba(0, 35, 81, .9) 42%, rgba(0, 35, 81, .34) 73%, rgba(0, 0, 0, .24) 100%),
      image-set(
        url("assets/images/electrical-work-hero-1200.webp") type("image/webp"),
        url("assets/images/electrical-work-hero-1200.jpg") type("image/jpeg")
      );
  }

  .page-proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-proof-item:nth-child(2) {
    border-right: 1px solid var(--tme-line);
  }

  .page-proof-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--tme-line);
  }

  .page-intro-grid,
  .contact-page-grid,
  .record-grid,
  .page-cta-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-item:nth-child(2) {
    border-right: 0;
  }

  .process-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--tme-line);
  }

  .page-cta-actions {
    grid-template-columns: repeat(2, minmax(0, 240px));
  }

  .contact-page-grid .contact-panel {
    position: static;
  }
}

@media (max-width: 680px) {
  .subpage-hero {
    min-height: 610px;
    background-position: 67% center;
    background-image:
      linear-gradient(90deg, rgba(0, 26, 61, .96) 0%, rgba(0, 35, 81, .9) 42%, rgba(0, 35, 81, .34) 73%, rgba(0, 0, 0, .24) 100%),
      image-set(
        url("assets/images/electrical-work-hero-800.webp") type("image/webp"),
        url("assets/images/electrical-work-hero-800.jpg") type("image/jpeg")
      );
  }

  .subpage-hero-shell {
    width: min(100% - 32px, 1180px);
    padding: 34px 0 48px;
  }

  .breadcrumbs {
    margin-bottom: 14px;
  }

  .subpage-hero h1 {
    font-size: 42px;
    line-height: 1.02;
  }

  .subpage-hero .hero-lede {
    font-size: 17px;
  }

  .hero-detail-list {
    gap: 8px 14px;
    font-size: 14px;
  }

  .page-proof-grid,
  .scope-grid,
  .audience-grid,
  .process-list,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .page-proof-item,
  .page-proof-item:first-child {
    min-height: 116px;
    border-right: 1px solid var(--tme-line);
    border-bottom: 1px solid var(--tme-line);
    border-left: 1px solid var(--tme-line);
  }

  .page-proof-item:last-child {
    border-bottom: 0;
  }

  .page-section {
    padding: 64px 0;
  }

  .scope-row {
    min-height: auto;
  }

  .audience-item {
    min-height: auto;
  }

  .process-item,
  .process-item:nth-child(2) {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--tme-line);
  }

  .process-item:last-child {
    border-bottom: 0;
  }

  .record-row {
    grid-template-columns: 1fr auto;
    gap: 16px;
  }

  .contact-direct-row {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 14px;
  }

  .record-row span {
    font-size: 22px;
  }

  .page-cta-grid {
    min-height: 390px;
    padding: 54px 0;
  }

  .page-cta h2 {
    font-size: 36px;
  }

  .page-cta-actions {
    grid-template-columns: 1fr;
    min-width: 0;
  }
}
