.ap-page {
  --ap-navy: #10263e;
  --ap-deep: #091a2e;
  --ap-gold: #e6b65a;
  --ap-light: #f3f7fa;
  font-family: Inter, Arial, sans-serif;
  background: #fff;
  color: #233449;
}

.ap-page * { box-sizing: border-box; }

.ap-wrap {
  width: min(1180px, 92%);
  margin-inline: auto;
}

.ap-local-nav {
  background: #fff;
  border-bottom: 1px solid #e6ebef;
  padding: 15px 0;
}

.ap-local-nav .ap-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.ap-local-nav a {
  color: var(--ap-navy);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.ap-local-nav a:hover,
.ap-local-nav a:focus-visible {
  color: #986719;
  text-decoration: underline;
}

.ap-hero {
  background:
    radial-gradient(circle at 85% 20%, #284d68, transparent 40%),
    linear-gradient(120deg, #091a2e, #173853);
  color: white;
  padding: 96px 0;
}

.ap-hero .ap-wrap {
  display: grid;
  grid-template-columns: 1.4fr 0.85fr;
  gap: 55px;
  align-items: center;
}

.ap-eyebrow {
  color: var(--ap-gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 18px;
}

.ap-hero h1 {
  color: white;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.08;
  margin: 0 0 24px;
  max-width: 850px;
}

.ap-hero h1 span { color: var(--ap-gold); }

.ap-hero p {
  font-size: 18px;
  line-height: 1.75;
  color: #d8e4ee;
  max-width: 650px;
}

.ap-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 30px;
}

.ap-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 15px 22px;
  border-radius: 7px;
  font-weight: 800;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
}

.ap-btn-primary {
  background: var(--ap-gold);
  color: var(--ap-deep);
}

.ap-btn-outline {
  color: white;
  border-color: #b5c9d7;
  background: transparent;
}

.ap-hero-panel {
  padding: 35px;
  border: 1px solid #557187;
  border-radius: 17px;
  background: #ffffff0d;
}

.ap-hero-panel h2 {
  color: white;
  font-size: 24px;
  margin: 0 0 22px;
}

.ap-hero-panel div {
  padding: 15px 0;
  border-top: 1px solid #526d7e;
  font-size: 16px;
}

.ap-section { padding: 78px 0; }
.ap-section-alt { background: var(--ap-light); }

.ap-heading {
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.2;
  color: var(--ap-navy);
  margin: 0 0 15px;
}

.ap-intro {
  max-width: 730px;
  color: #52677b;
  line-height: 1.75;
  margin-bottom: 35px;
}

.ap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.ap-card {
  display: flex;
  flex-direction: column;
  padding: 31px;
  background: white;
  border: 1px solid #e1e9ee;
  border-radius: 13px;
  box-shadow: 0 13px 32px #11283b0a;
}

.ap-card-number {
  font-weight: 800;
  font-size: 13px;
  color: #a8792e;
  margin-bottom: 19px;
}

.ap-card h3 {
  font-size: 24px;
  color: var(--ap-navy);
  margin: 0 0 12px;
}

.ap-card p {
  color: #53677b;
  line-height: 1.7;
  flex: 1;
}

.ap-card a {
  color: #94651a;
  font-weight: 800;
  margin-top: 18px;
}

.ap-form {
  max-width: 850px;
  padding: 35px;
  background: white;
  border-radius: 14px;
  box-shadow: 0 15px 40px #10263e12;
}

.ap-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.ap-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 21px;
}

.ap-field label {
  font-size: 14px;
  font-weight: 750;
  color: var(--ap-navy);
}

.ap-field input,
.ap-field select,
.ap-field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #b9c9d5;
  border-radius: 7px;
  background: white;
  color: #172d43;
  font: inherit;
}

.ap-field input:focus,
.ap-field select:focus,
.ap-field textarea:focus {
  outline: 3px solid #e6b65a66;
  border-color: #94651a;
}

.ap-note {
  font-size: 13px;
  color: #556b7d;
  line-height: 1.6;
}

.ap-status {
  margin-top: 19px;
  font-weight: 700;
}

.ap-footer-note {
  padding: 30px 0;
  background: #edf2f6;
  font-size: 14px;
}

@media(max-width: 800px) {
  .ap-hero { padding: 65px 0; }
  .ap-hero .ap-wrap,
  .ap-grid,
  .ap-form-grid {
    grid-template-columns: 1fr;
  }
  .ap-form { padding: 22px; }
}


/* QHP_HOME_HERO_APPLIANCE_IMAGE_V1 */

.ap-home-hero {
  position: relative;
  min-height: 660px;

  background-color: #091a2e;

  background-image:
    linear-gradient(
      90deg,
      rgba(5, 19, 34, .96) 0%,
      rgba(5, 19, 34, .88) 26%,
      rgba(5, 19, 34, .58) 44%,
      rgba(5, 19, 34, .05) 72%
    ),
    url("../img/appliace installation-2.png");

  background-size: cover;
  background-position:
    center center,
    60% center;

  background-repeat: no-repeat;
}

.ap-home-hero .ap-wrap {
  grid-template-columns: minmax(0, 660px) 1fr;
  min-height: 500px;
}

.ap-home-hero .ap-hero-panel {
  display: none;
}

.ap-home-hero h1 {
  max-width: 640px;
  text-shadow: 0 3px 15px rgba(0,0,0,.2);
}

.ap-home-hero .ap-credential-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 15px;
  padding: 9px 17px 9px 10px;
  border-radius: 12px;
  background: rgba(5,19,34,.65);
  border: 1px solid rgba(255,255,255,.32);
  color: #fff;
  font-size: 13px;
  line-height: 1.5;
}

.ap-home-hero .ap-credential-mark img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  background: white;
  border-radius: 8px;
  padding: 4px;
}

.ap-home-hero .ap-credential-mark strong {
  color: #f2cb78;
}

@media (max-width: 800px) {
  .ap-home-hero {
    min-height: 660px;

    background-image:
      linear-gradient(
        90deg,
        rgba(5,19,34,.91),
        rgba(5,19,34,.69)
      ),
      url("../img/appliace installation-2.png");

    background-position:
      center center,
      67% center;

    padding: 65px 0;
  }

  .ap-home-hero .ap-wrap {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .ap-home-hero .ap-credential-mark img {
    width: 55px;
    height: 55px;
  }
}


/* QHP_SERVICE_CARD_IMAGES_V1 */

.ap-service-card {
  padding: 0;
  overflow: hidden;
}

.ap-service-card .ap-card-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  background: #edf2f6;
}

.ap-service-card > :not(.ap-card-image) {
  margin-left: 24px;
  margin-right: 24px;
}

.ap-service-card > .ap-card-number {
  margin-top: 24px;
}

.ap-service-card > a:last-child {
  margin-bottom: 26px;
}


/* QHP_APPLIANCE_HOME_COMPLETION_V2 */

.ap-page .ap-wrap {
  width: min(1280px, 92%);
}

.ap-topline {
  padding: 9px 15px;
  background: #10263e;
  color: #f0c977;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.ap-preview-header {
  background: #fff;
  border-bottom: 1px solid #e3e9ee;
}

.ap-header-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
}

.ap-brand img {
  display: block;
  width: 145px;
  height: auto;
}

.ap-primary-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 19px;
}

.ap-primary-links a {
  color: #10263e;
  text-decoration: none;
  font-size: 13px;
  font-weight: 750;
}

.ap-primary-links a:hover,
.ap-primary-links a:focus-visible {
  color: #a27429;
  text-decoration: underline;
}

.ap-header-cta {
  padding: 13px 17px;
  border-radius: 7px;
  background: #d8a747;
  color: #10263e;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.ap-trust {
  background: #f3f7fa;
  padding: 30px 0;
}

.ap-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.ap-trust-grid > div {
  padding-left: 18px;
  border-left: 3px solid #cba04d;
}

.ap-trust strong,
.ap-trust span {
  display: block;
}

.ap-trust strong {
  font-size: 18px;
  color: #10263e;
}

.ap-trust span {
  margin-top: 7px;
  font-size: 14px;
  line-height: 1.6;
  color: #52677b;
}

.ap-work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.ap-work-card {
  margin: 0;
  overflow: hidden;
  background: white;
  border: 1px solid #e2e8ed;
  border-radius: 12px;
  box-shadow: 0 8px 24px #10263e0d;
}

.ap-work-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.ap-work-card figcaption {
  padding: 17px;
  color: #10263e;
  font-size: 16px;
  font-weight: 800;
}

.ap-process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.ap-process-grid article {
  padding: 27px;
  border: 1px solid #e2e8ed;
  border-radius: 12px;
  background: white;
}

.ap-process-grid span {
  color: #ae8030;
  font-weight: 900;
  font-size: 15px;
}

.ap-process-grid h3 {
  color: #10263e;
  font-size: 21px;
  margin: 15px 0;
}

.ap-process-grid p {
  color: #53697d;
  font-size: 15px;
  line-height: 1.7;
}

.ap-final-cta {
  padding: 80px 0;
  background: #10263e;
  color: white;
}

.ap-final-cta h2 {
  color: white;
  font-size: clamp(29px, 4vw, 43px);
}

.ap-final-cta p {
  color: #dce5ed;
  font-size: 17px;
  line-height: 1.7;
  max-width: 650px;
}

.ap-preview-footer {
  padding: 55px 0 20px;
  background: #091a2e;
  color: #dce7ef;
}

.ap-footer-layout {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr;
  gap: 45px;
}

.ap-footer-logo {
  width: 150px;
  background: white;
  padding: 7px;
  border-radius: 7px;
}

.ap-footer-layout p {
  line-height: 1.7;
  max-width: 340px;
}

.ap-footer-layout h3 {
  color: #f0c977;
  font-size: 16px;
  margin-bottom: 20px;
}

.ap-footer-layout a {
  display: block;
  margin-bottom: 13px;
  text-decoration: none;
  color: #e5edf4;
  font-size: 14px;
}

.ap-footer-bottom {
  border-top: 1px solid #355068;
  margin-top: 42px;
  padding-top: 20px;
  font-size: 12px;
}

@media (max-width: 1050px) {
  .ap-header-layout {
    flex-wrap: wrap;
  }

  .ap-primary-links {
    order: 3;
    width: 100%;
  }

  .ap-work-grid,
  .ap-process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 650px) {
  .ap-trust-grid,
  .ap-work-grid,
  .ap-process-grid,
  .ap-footer-layout {
    grid-template-columns: 1fr;
  }

  .ap-primary-links {
    justify-content: flex-start;
    gap: 14px;
  }

  .ap-header-cta {
    padding: 11px;
  }
}

/* QHP_SMALL_WORK_SLIDER_V1 */

.ap-work-slider {
  position: relative;
  max-width: 520px;
  margin-top: 28px;
}

.ap-slide-track {
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid #dde6ed;
  background: white;
  box-shadow: 0 10px 28px #10263e14;
}

.ap-slide {
  display: none;
  margin: 0;
}

.ap-slide.active {
  display: block;
}

.ap-slide img {
  width: 100%;
  height: 270px;
  display: block;
  object-fit: cover;
}

.ap-slide figcaption {
  padding: 16px 18px;
  font-weight: 850;
  color: #10263e;
  background: white;
}

.ap-slide-btn {
  position: absolute;
  top: 42%;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: #10263e;
  color: white;
  font-size: 28px;
  cursor: pointer;
}

.ap-slide-prev { left: -19px; }
.ap-slide-next { right: -19px; }

.ap-slide-dots {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.ap-slide-dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: #b8c4ce;
  cursor: pointer;
}

.ap-slide-dots button.active {
  background: #c99637;
}

@media(max-width: 650px) {
  .ap-work-slider { max-width: 100%; }
  .ap-slide img { height: 230px; }
  .ap-slide-prev { left: 10px; }
  .ap-slide-next { right: 10px; }
}


/* QHP_EDITORIAL_SLIDER_V2 */

.ap-page .ap-work-elite {
  position: relative;
  overflow: hidden;
  padding: 88px 0;

  background: linear-gradient(
    90deg,
    #f7f8f6 0 56%,
    #10283f 56% 100%
  );
}

.ap-page .ap-work-editorial {
  display: grid;

  grid-template-columns:
    minmax(0, .85fr)
    minmax(0, 1.35fr);

  align-items: center;
  gap: clamp(35px, 5vw, 76px);
  max-width: 1180px;
}

.ap-page .ap-work-copy {
  min-width: 0;
  max-width: 435px;
}

.ap-page .ap-work-kicker {
  color: #a37228;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  line-height: 1.6;
  margin: 0 0 24px;
}

.ap-page .ap-work-kicker span {
  color: #a8b5bb;
  padding: 0 7px;
}

.ap-page .ap-work-copy h2 {
  color: #10283f;

  font-size: clamp(
    37px, 4.1vw, 58px
  );

  letter-spacing: -1.9px;
  line-height: 1.1;
  margin: 0 0 23px;
  font-weight: 800;
}

.ap-page .ap-work-copy h2 em {
  font-style: normal;
  color: #bc8a38;
}

.ap-page .ap-work-intro {
  font-size: 16px;
  line-height: 1.85;
  color: #526575;
  margin: 0 0 27px;
}

.ap-page .ap-work-divider {
  width: 56px;
  height: 3px;
  border-radius: 4px;
  background: #d1a756;
  margin: 0 0 21px;
}

.ap-page .ap-work-note {
  color: #5b6b7a;
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 28px;
}

.ap-page .ap-work-link {
  display: inline-flex;
  align-items: center;
  gap: 15px;

  color: #10283f;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;

  border-bottom: 2px solid #c69a4b;
  padding-bottom: 10px;
}

.ap-page .ap-work-link:hover {
  color: #95651f;
}

/* Compact, framed image slider */

.ap-page .ap-work-elite .ap-work-slider {
  position: relative;
  width: 100%;
  max-width: 610px;
  min-width: 0;
  margin: 0;
  padding: 9px 9px 0;

  background: white;

  border: 1px solid rgba(238,242,245,.8);
  border-radius: 17px;

  box-shadow:
    0 24px 66px rgba(3,16,29,.26);
}

.ap-page .ap-work-elite .ap-slide-track {
  overflow: hidden;
  border: 0;
  border-radius: 10px 10px 0 0;
  box-shadow: none;
}

.ap-page .ap-work-elite .ap-slide {
  display: none;
  margin: 0;
}

.ap-page .ap-work-elite .ap-slide.active {
  display: block;
}

.ap-page .ap-work-elite .ap-slide img {
  display: block;
  width: 100%;

  height: clamp(
    255px, 33vw, 360px
  );

  object-fit: cover;
  object-position: center;

  border-radius: 10px 10px 0 0;
}

/* Captions underneath photographs */

.ap-page .ap-work-elite .ap-slide figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;

  min-height: 79px;
  padding: 18px 20px;

  background: white;
  color: #10283f;
}

.ap-page .ap-work-elite .ap-slide figcaption small {
  display: block;
  color: #a16f26;
  font-size: 10px;
  letter-spacing: 1.45px;
  font-weight: 800;
  margin-bottom: 6px;
}

.ap-page .ap-work-elite .ap-slide figcaption strong {
  display: block;
  font-size: 19px;
  line-height: 1.25;
  font-weight: 800;
}

.ap-page .ap-work-elite .ap-project-number {
  color: #94a1ab;
  font-weight: 800;
  font-size: 12px;
  white-space: nowrap;
}

/* Navigation underneath the photograph */

.ap-page .ap-work-elite .ap-work-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;

  min-height: 64px;
  padding: 10px 16px 13px;

  border-top: 1px solid #edf0f3;
}

.ap-page .ap-work-elite .ap-slide-dots {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 0;
}

.ap-page .ap-work-elite .ap-slide-dots button {
  height: 9px;
  width: 9px;
  border-radius: 50%;
  background: #c8d0d5;
  border: 0;
  cursor: pointer;
}

.ap-page .ap-work-elite .ap-slide-dots button.active {
  width: 26px;
  border-radius: 8px;
  background: #bd8e37;
}

.ap-page .ap-work-elite .ap-work-arrows {
  display: flex;
  gap: 9px;
}

.ap-page .ap-work-elite .ap-slide-btn {
  position: static;
  inset: auto;

  display: grid;
  place-items: center;

  width: 39px;
  height: 39px;
  padding: 0;

  border: 1px solid #dce3e8;
  border-radius: 50%;

  background: white;
  color: #10283f;
  font-size: 22px;
  line-height: 1;
  box-shadow: none;
  cursor: pointer;
}

.ap-page .ap-work-elite .ap-slide-btn:hover {
  background: #10283f;
  color: white;
  border-color: #10283f;
}

.ap-page .ap-work-elite button:focus-visible,
.ap-page .ap-work-link:focus-visible {
  outline: 3px solid #ce9e47;
  outline-offset: 4px;
}

/* Mobile */

@media (max-width: 850px) {
  .ap-page .ap-work-elite {
    padding: 62px 0 72px;

    background: linear-gradient(
      to bottom,
      #f7f8f6 0 60%,
      #10283f 60% 100%
    );
  }

  .ap-page .ap-work-editorial {
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 640px;
  }

  .ap-page .ap-work-copy {
    max-width: 560px;
  }

  .ap-page .ap-work-copy h2 {
    font-size: clamp(
      36px, 8vw, 49px
    );
  }

  .ap-page .ap-work-elite .ap-work-slider {
    max-width: 100%;
  }

  .ap-page .ap-work-elite .ap-slide img {
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
  }
}

@media (max-width: 460px) {
  .ap-page .ap-work-elite .ap-slide figcaption {
    padding: 15px 12px;
  }

  .ap-page .ap-work-elite .ap-slide figcaption strong {
    font-size: 16px;
  }

  .ap-page .ap-work-elite .ap-project-number {
    font-size: 10px;
  }
}


/* QHP_FULL_IMAGE_SLIDER_FIX_V1 */

/* Preserve the approved two-column design. */

.ap-page .ap-work-elite .ap-photo-stage {
    width: 100%;
    height: 390px;

    display: flex;
    justify-content: center;
    align-items: center;

    overflow: hidden;
    background: #edf1f4;
}

.ap-page .ap-work-elite .ap-original-photo {
    display: flex;
    width: 100%;
    height: 100%;

    align-items: center;
    justify-content: center;

    cursor: zoom-in;
}

/* Show the complete original image.
   Never enlarge a small source photo. */

.ap-page .ap-work-elite .ap-photo-stage img {
    display: block !important;

    width: auto !important;
    height: auto !important;

    max-width: 100% !important;
    max-height: 100% !important;

    object-fit: contain !important;
    object-position: center !important;

    border-radius: 0 !important;
    aspect-ratio: auto !important;
}

/* Keep captions and controls unchanged. */

@media (max-width: 700px) {
    .ap-page .ap-work-elite .ap-photo-stage {
        height: 290px;
    }
}


/* QHP_FINAL_FOUR_PROJECT_SLIDER_V1 */

/*
 * Preserve the approved editorial layout.
 * Do not crop or upscale the project images.
 */

.ap-page .ap-work-elite .ap-slide-media {
    display: grid;
    place-items: center;

    width: 100%;
    height: 390px;

    overflow: hidden;
    background: #edf2f5;

    border-radius: 10px 10px 0 0;
}

.ap-page .ap-work-elite .ap-slide-media a {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    cursor: zoom-in;
}

.ap-page .ap-work-elite .ap-slide-media img {
    display: block !important;

    width: auto !important;
    height: auto !important;

    max-width: 100% !important;
    max-height: 100% !important;

    object-fit: contain !important;
    object-position: center !important;

    aspect-ratio: auto !important;
    border-radius: 0 !important;
}

@media (max-width: 700px) {
    .ap-page .ap-work-elite .ap-slide-media {
        height: 260px;
    }
}
