/*
 * Exact standalone translation of p80-ntc-services.css.
 * The #ntc-services scope prevents legacy prototype styles from competing.
 */

.section-header .site-header {
  background: var(--color-surface-white);
}

.section-header .nav {
  align-items: center;
  display: grid;
  gap: 0;
  grid-template-columns: minmax(25rem, 1fr) auto minmax(25rem, 1fr);
  height: auto;
  min-height: 13.2rem;
  padding-bottom: 1.5rem;
  padding-left: 5rem;
  padding-right: 5rem;
  padding-top: 1.5rem;
}

.section-header .logo {
  display: block;
  height: 9.2rem;
  justify-self: start;
  overflow: hidden;
  width: 30rem;
}

.section-header .logo img {
  height: 9.2rem;
  object-fit: contain;
  object-position: center;
  width: 30rem;
}

.section-header .desktop-nav {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(0.8rem, 1.5vw, 2.4rem);
  justify-self: center;
  margin: 0;
}

.section-header .desktop-nav a {
  color: var(--color-text);
  font-family: var(--font-body-family);
  font-size: var(--font-size-paragraph-small);
  font-weight: var(--font-weight-paragraph-small);
  padding: 1.5rem 0.8rem;
  white-space: nowrap;
}

.section-header .desktop-nav a.active {
  color: var(--color-primary);
}

.section-header .desktop-nav a.active::after {
  bottom: -2rem;
  height: 0.3rem;
  left: 0.8rem;
  right: 0.8rem;
}

.section-header .header-actions {
  align-items: center;
  display: flex;
  gap: 1.4rem;
  justify-self: end;
}

.section-header .header-search {
  align-items: center;
  color: var(--color-text);
  display: flex;
  height: 4.4rem;
  justify-content: center;
  width: 4.4rem;
}

.section-header .header-search svg {
  height: 2.4rem;
  width: 2.4rem;
}

.section-header .header-actions .quote {
  color: var(--color-surface-white) !important;
  font-family: var(--font-body-family);
  white-space: nowrap;
}

#ntc-services {
  background: var(--color-surface-white);
  padding-bottom: 6.4rem;
  padding-top: 6.4rem;
}

#ntc-services .ntc-services__inner {
  margin: 0 auto;
  max-width: 144rem;
  width: 100%;
}

#ntc-services .ntc-services__header {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0 auto 4rem;
  max-width: 82rem;
  text-align: center;
}

#ntc-services .ntc-services__heading-content {
  text-align: center;
}

#ntc-services .ntc-services__heading-row {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  justify-content: center;
}

#ntc-services .ntc-services__logo {
  display: block;
  flex: 0 0 5.6rem;
  height: 5.6rem;
  max-height: 5.6rem;
  max-width: 5.6rem;
  object-fit: contain;
  width: 5.6rem;
}

#ntc-services .ntc-services__description {
  color: var(--color-muted);
  font-size: var(--font-size-paragraph-regular);
  line-height: var(--line-height-paragraph-regular);
  margin-top: 1rem;
}

#ntc-services .ntc-services__description p {
  margin: 0;
}

#ntc-services .ntc-services__grid {
  border: 0;
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  padding: 0;
}

#ntc-services .ntc-services__card:not(:hover),
#ntc-services .ntc-services__card:nth-child(2n):not(:hover),
#ntc-services .ntc-services__card:nth-child(5n):not(:hover) {
  background: var(--color-surface-white);
  border: 0.1rem solid var(--color-border-default);
  border-radius: 1.2rem;
  box-shadow: none;
  height: 100%;
  min-height: 21rem;
  padding: 2.4rem;
  transform: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

#ntc-services .ntc-services__icon {
  align-items: center;
  background: transparent;
  border: 0.1rem solid var(--color-overlay-primary-25);
  border-radius: 50%;
  color: var(--color-primary);
  display: flex;
  height: 5.2rem;
  justify-content: center;
  margin: 0 0 2rem;
  width: 5.2rem;
  align-items: center;
  border: 0.1rem solid rgba(var(--color-brand-primary), 0.25);
  border-radius: 50%;
}

#ntc-services .ntc-services__icon svg {
  height: 2.8rem;
  width: 2.8rem;
}

#ntc-services .ntc-services__card h3 {
  color: var(--color-navy);
  font-size: var(--font-size-paragraph-regular);
  font-weight: 700;
  letter-spacing: normal;
  line-height: var(--line-height-paragraph-regular);
  margin: 0;
  text-transform: none;
}

#ntc-services .ntc-services__card p {
  color: var(--color-muted);
  font-size: var(--font-size-paragraph-small);
  line-height: var(--line-height-paragraph-small);
  margin: 1rem 0 0;
}

#ntc-services .ntc-services__footer {
  display: flex;
  justify-content: center;
  margin-top: 3.2rem;
  text-align: initial;
}

@media (max-width: 989px) {
  .section-header .nav {
    display: flex;
    min-height: 7.6rem;
    padding: 0.7rem 1.5rem;
  }

  .section-header .logo {
    height: 6.2rem;
    width: 19rem;
  }

  .section-header .logo img {
    height: 6.2rem;
    object-position: left center;
    width: 19rem;
  }

  .section-header .header-actions {
    display: none;
  }

  .section-header .desktop-nav {
    align-items: stretch;
    display: none;
  }

  .section-header .desktop-nav.open {
    display: flex;
  }

  #ntc-services .ntc-services__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 749px) {
  #ntc-services {
    padding-bottom: 3.2rem;
    padding-top: 3.2rem;
  }

  #ntc-services .ntc-services__heading-row {
    gap: 1rem;
  }

  #ntc-services .ntc-services__logo {
    flex-basis: 4.8rem;
    height: 4.8rem;
    max-height: 4.8rem;
    max-width: 4.8rem;
    width: 4.8rem;
  }

  #ntc-services .ntc-services__grid {
    grid-template-columns: 1fr;
  }

  #ntc-services .ntc-services__card,
  #ntc-services .ntc-services__card:nth-child(2n),
  #ntc-services .ntc-services__card:nth-child(5n) {
    min-height: auto;
  }
}

/* Directory page heroes share the same Radivue presentation. */
body[data-page="solutions"] .page-hero,
body[data-page="permits"] .page-hero,
body[data-page="brands"] .page-hero {
  background:
    radial-gradient(
      circle at 76% 45%,
      var(--color-overlay-blue),
      transparent 28%
    ),
    linear-gradient(
      120deg,
      var(--color-navy-deep) 0%,
      var(--color-primary-deep) 56%,
      var(--color-accent) 100%
    );
  overflow: hidden;
  padding-block: 0;
  position: relative;
}

body[data-page="solutions"] .page-hero::before,
body[data-page="permits"] .page-hero::before,
body[data-page="brands"] .page-hero::before {
  background-image:
    linear-gradient(var(--color-overlay-white-5) 0.1rem, transparent 0.1rem),
    linear-gradient(
      90deg,
      var(--color-overlay-white-5) 0.1rem,
      transparent 0.1rem
    );
  background-size: 4rem 4rem;
  content: "";
  inset: 0;
  mask-image: linear-gradient(
    90deg,
    transparent,
    rgb(var(--color-black)) 45%,
    rgb(var(--color-black))
  );
  pointer-events: none;
  position: absolute;
}

body[data-page="solutions"] .page-hero > .container,
body[data-page="permits"] .page-hero > .container,
body[data-page="brands"] .page-hero > .container {
  position: relative;
  z-index: 1;
}

body[data-page="solutions"] .page-hero .solutions-directory__hero-copy,
body[data-page="permits"] .page-hero .permits-directory__hero-copy,
body[data-page="brands"] .page-hero .brands-directory__hero-copy {
  margin: 0;
  max-width: 72rem;
}

body[data-page="solutions"] .page-hero .solutions-directory__tagline,
body[data-page="permits"] .page-hero .permits-directory__tagline,
body[data-page="brands"] .page-hero .brands-directory__tagline {
  color: var(--color-blue-800);
}

body[data-page="solutions"] .gallery-item {
  cursor: zoom-in;
}

body[data-page="solutions"] .gallery-item:focus-visible {
  outline: 0.3rem solid rgb(var(--color-brand-primary));
  outline-offset: 0.3rem;
}

body[data-page="solutions"] .gallery-item .installation-gallery__zoom {
  box-shadow: 0 0.8rem 2.4rem var(--color-overlay-dark);
}

body[data-page="contact"] .consultation-contact__detail-icon {
  flex: 0 0 4rem;
  min-height: 4rem;
  min-width: 4rem;
}

body[data-page="contact"] .consultation-contact__detail-copy {
  display: grid;
  gap: 0.4rem;
  min-width: 0;
}

body[data-page="contact"] .consultation-contact__detail-copy a {
  overflow-wrap: anywhere;
}

body[data-page="contact"] .consultation-contact__aside-description {
  color: var(--color-overlay-white-82);
  margin: 1.6rem 0 0;
}

body[data-page="contact"] .consultation-contact__button .form-note {
  color: rgb(var(--color-text-muted));
  font-size: var(--font-size-tagline-small);
  line-height: var(--line-height-tagline-small);
  max-width: 28rem;
}

body[data-page="contact"] .form-success.error {
  background: rgba(var(--color-error), 0.08);
  border-color: rgba(var(--color-error), 0.3);
  color: rgb(var(--color-error));
}

body[data-page="contact"] #contact-form [type="submit"]:disabled {
  cursor: wait;
  opacity: 0.7;
}

@media (max-width: 749px) {
  body[data-page="contact"] .consultation-contact__button .form-note {
    max-width: none;
    text-align: center;
  }
}
