/* Supplemental layouts for the pages added after the v7 UI-fix pass. */
.np-hero {
  position: relative;
  isolation: isolate;
  min-height: 560px;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #07101f;
  color: #fff;
}
.np-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(5, 13, 27, .78) 0%, rgba(5, 13, 27, .52) 48%, rgba(5, 13, 27, .12) 100%);
}
.np-hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.np-hero-inner {
  width: min(780px, 100%);
  padding-block: clamp(110px, 14vw, 180px) clamp(72px, 9vw, 112px);
}
.np-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: #5bc8ff;
  font-family: "Montserrat","Montserrat Fallback", sans-serif;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.np-eyebrow::before { display: none; }
.np-hero h1 { max-width: 880px; margin: 0 0 22px; color: #fff; font-size: clamp(2.45rem, 6vw, 5.3rem); line-height: .98; }
.np-hero p { max-width: 680px; margin-bottom: 30px; color: rgba(255,255,255,.82); font-size: clamp(1.02rem, 1.8vw, 1.28rem); line-height: 1.72; }
.np-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.np-actions .btn-secondary { border-color: rgba(255,255,255,.45); color: #fff; background: rgba(255,255,255,.06); }
.np-actions .btn-secondary:hover { border-color: #fff; background: #fff; color: #07101f; }

.np-section { padding-block: clamp(72px, 9vw, 126px); }
.np-section-soft { background: #f2f5f8; }
.np-section-dark { background: #080d15; color: #fff; }
.np-section-dark h2, .np-section-dark h3 { color: #fff; }
.np-section-dark p { color: rgba(255,255,255,.72); }
.np-heading { max-width: 820px; margin-bottom: clamp(34px, 5vw, 64px); }
.np-heading.center { margin-inline: auto; text-align: center; }
.np-heading h2 { margin: 10px 0 18px; font-size: clamp(2rem, 4.5vw, 4rem); line-height: 1.05; }
.np-heading p { max-width: 700px; margin: 0; font-size: 1.08rem; line-height: 1.75; }
.np-heading.center p { margin-inline: auto; }
.np-heading h2::after,
.np-copy h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 2px;
  margin-top: 20px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--cyan));
}
.np-heading.center h2::after { margin-inline: auto; }
.np-section-dark .np-heading h2::after { background: linear-gradient(90deg, var(--cyan), rgba(255,255,255,.6)); }
.feature-card h3 { margin-bottom: 8px; color: var(--brand-dark); font-size: 1.3rem; }
.step h3 { color: var(--brand-dark); font-size: 1.2rem; }
.table-scroll-hint { display: none; margin: -28px 0 12px; color: var(--brand); font-size: .88rem; font-weight: 700; }

.np-split { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; gap: clamp(38px, 7vw, 100px); }
.np-split.reverse .np-visual { order: 2; }
.np-visual { position: relative; min-width: 0; }
.np-visual img { width: 100%; min-height: 520px; object-fit: cover; border-radius: var(--radius); box-shadow: 0 26px 70px rgba(8, 28, 52, .18); }
.np-visual::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; z-index: -1; border: 2px solid var(--brand); border-radius: var(--radius); opacity: .28; }
.np-copy h2 { margin-bottom: 20px; font-size: clamp(2rem, 4vw, 3.55rem); line-height: 1.08; }
.np-copy p { margin-bottom: 18px; line-height: 1.8; }
.np-checks { display: grid; gap: 14px; margin: 28px 0 32px; padding: 0; list-style: none; }
.np-checks li { display: grid; grid-template-columns: 38px 1fr; gap: 13px; align-items: start; }
.np-checks i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--brand-light); color: var(--brand); font-size: 1.15rem; }
.np-checks strong { display: block; margin: 3px 0 3px; color: var(--brand-dark); font-family: "Montserrat","Montserrat Fallback", sans-serif; }

.np-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.np-card { min-width: 0; padding: clamp(26px, 3vw, 38px); border: 1px solid rgba(7, 38, 67, .1); border-radius: var(--radius); background: #fff; box-shadow: 0 16px 45px rgba(8, 34, 60, .08); }
.np-card-icon { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 24px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 1.65rem; }
.np-card h3 { margin-bottom: 12px; font-size: 1.22rem; }
.np-card p { margin: 0; line-height: 1.7; }

.np-steps { counter-reset: npstep; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.np-step { counter-increment: npstep; padding: 28px; border-top: 3px solid var(--brand); background: #fff; color: var(--text); }
.np-step::before { content: "0" counter(npstep); display: block; margin-bottom: 28px; color: var(--brand); font-family: "Montserrat","Montserrat Fallback", sans-serif; font-size: 1.65rem; font-weight: 900; }
.np-step h3 { margin-bottom: 10px; font-size: 1.08rem; }
.np-step p { margin: 0; font-size: .94rem; line-height: 1.65; }
.np-section-dark .np-step h3 { color: var(--brand-dark); }
.np-section-dark .np-step p { color: var(--text); }

.np-gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 120px; gap: 14px; }
.np-gallery .g-item { grid-column: span 4; grid-row: span 3; min-width: 0; overflow: hidden; border-radius: var(--radius); background: #dfe7ee; }
.np-gallery .g-item.wide { grid-column: span 8; }
.np-gallery .g-item.tall { grid-row: span 4; }
.np-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.16,1,.3,1); }
.np-gallery .g-item:hover img { transform: scale(1.035); }
.np-gallery-caption { display: flex; justify-content: space-between; gap: 24px; margin-top: 22px; color: var(--muted); font-size: .9rem; }

.np-quote { position: relative; padding: clamp(34px, 5vw, 70px); overflow: hidden; border-radius: var(--radius); background: var(--brand-dark); color: #fff; }
.np-quote::after { content: "+"; position: absolute; right: -20px; bottom: -90px; color: rgba(51,198,244,.13); font-family: "Montserrat","Montserrat Fallback", sans-serif; font-size: 19rem; font-weight: 900; line-height: 1; }
.np-quote blockquote { position: relative; z-index: 1; max-width: 900px; margin: 0; font-family: "Montserrat","Montserrat Fallback", sans-serif; font-size: clamp(1.45rem, 3vw, 2.6rem); font-weight: 750; line-height: 1.35; }

.np-cta { padding-block: clamp(76px, 10vw, 138px); background: linear-gradient(135deg, #0074bc, #00588f); color: #fff; text-align: center; }
.np-cta h2 { max-width: 850px; margin: 0 auto 18px; color: #fff; font-size: clamp(2.2rem, 5vw, 4.6rem); line-height: 1.02; }
.np-cta p { max-width: 680px; margin: 0 auto 30px; color: rgba(255,255,255,.82); font-size: 1.08rem; }

.np-legal-hero { padding-block: clamp(90px, 12vw, 150px) clamp(55px, 8vw, 88px); background: #080d15; color: #fff; }
.np-legal-hero h1 { max-width: 900px; margin: 12px 0 16px; color: #fff; font-size: clamp(2.5rem, 5vw, 4.8rem); }
.np-legal-hero p { max-width: 760px; margin: 0; color: rgba(255,255,255,.72); }
.np-legal { width: min(980px, 100%); margin-inline: auto; padding-block: clamp(60px, 8vw, 110px); }
.np-legal article { padding: clamp(26px, 5vw, 64px); border: 1px solid rgba(7,38,67,.1); border-radius: var(--radius); background: #fff; box-shadow: 0 18px 55px rgba(8,34,60,.08); }
.np-legal article { min-width: 0; overflow-wrap: anywhere; }
.np-legal article img, .np-legal article iframe { max-width: 100%; height: auto; }
.np-legal article pre { max-width: 100%; overflow-x: auto; white-space: pre-wrap; }
.np-legal article h2 { margin: 2.2em 0 .8em; font-size: clamp(1.35rem, 2.5vw, 2rem); }
.np-legal article h3 { margin: 1.8em 0 .65em; font-size: 1.25rem; }
.np-legal article p, .np-legal article li { line-height: 1.75; }
.np-legal article ul, .np-legal article ol { padding-left: 1.4rem; }
.np-legal table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.np-legal td, .np-legal th { padding: 10px 12px; border: 1px solid #d9e1e8; text-align: left; }
.np-company-data { display: grid; grid-template-columns: 220px 1fr; gap: 0; margin: 0; }
.np-company-data dt, .np-company-data dd { margin: 0; padding: 16px 0; border-bottom: 1px solid #e1e7ec; }
.np-company-data dt { color: var(--muted); font-weight: 700; }
.np-company-data dd { color: var(--brand-dark); font-family: "Montserrat","Montserrat Fallback", sans-serif; font-weight: 700; }

.np-thanks { min-height: 70vh; display: grid; place-items: center; padding-block: 100px; background: #f2f5f8; }
.np-thanks-card { width: min(780px, 100%); padding: clamp(36px, 7vw, 80px); border-radius: var(--radius); background: #fff; box-shadow: 0 24px 80px rgba(8,34,60,.13); text-align: center; }
.np-thanks-icon { display: grid; place-items: center; width: 82px; height: 82px; margin: 0 auto 28px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 2.5rem; }
.np-thanks h1 { margin-bottom: 18px; font-size: clamp(2.2rem, 5vw, 4rem); }
.np-thanks p { max-width: 590px; margin: 0 auto 28px; font-size: 1.08rem; line-height: 1.75; }

@media (max-width: 980px) {
  .np-split { grid-template-columns: 1fr; }
  .np-split.reverse .np-visual { order: 0; }
  .np-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .np-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .np-gallery .g-item, .np-gallery .g-item.wide { grid-column: span 6; }
}
@media (max-width: 640px) {
  .np-hero { min-height: 600px; }
  .np-hero::after { background: linear-gradient(0deg, rgba(5,13,27,.80), rgba(5,13,27,.26)); }
  .np-actions { display: grid; }
  .np-actions .btn { width: 100%; }
  .np-visual img { min-height: 360px; }
  .np-card-grid, .np-steps { grid-template-columns: 1fr; }
  .np-gallery { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .np-gallery .g-item, .np-gallery .g-item.wide, .np-gallery .g-item.tall { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 3; }
  .np-gallery-caption { display: block; }
  .np-company-data { grid-template-columns: 1fr; }
  .np-company-data dt { padding-bottom: 2px; border-bottom: 0; }
  .np-company-data dd { padding-top: 2px; }
  .table-scroll-hint { display: flex; align-items: center; gap: 8px; }
}

/* Shared hero treatment for the renovation page. */
.hero.hero-dark .hero-bg::after { background: linear-gradient(90deg, rgba(5,13,27,.78) 0%, rgba(5,13,27,.60) 52%, rgba(5,13,27,.25) 100%); }
.hero.hero-dark .hero-text h1 { color: #fff; }
.hero.hero-dark .hero-text h1 .hl { color: var(--brand-hover); }
.hero.hero-dark .hero-subtitle { color: rgba(255,255,255,.84); }
.hero.hero-dark .section-subtitle { color: var(--brand-hover); }
.hero.hero-dark .hero-select-card { background: #fff; }
.hero.hero-dark .hero-actions .btn-outline[href^="tel:"] { background: #fff; border-color: #fff; color: var(--brand-dark); box-shadow: 0 10px 24px rgba(0,0,0,.22); }
.hero.hero-dark .hero-actions .btn-outline[href^="tel:"]:hover { background: var(--brand-darkest); border-color: var(--brand-darkest); color: #fff; }
.hero.hero-dark .hero-feature-item { box-shadow: 0 10px 24px rgba(0,0,0,.2); }
@media (max-width: 640px) {
  .np-heading h2::after,
  .np-copy h2::after { width: 44px; }
  .hero.hero-dark .hero-bg::after { background: linear-gradient(180deg, rgba(5,13,27,.28) 0%, rgba(5,13,27,.80) 100%); }
}
