/* Approved December 2026 presentation. */

#service-literature .nn-service h3.wp-block-heading {
  font-family: var(--wp--preset--font-family--heading, Georgia, "Times New Roman", serif);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.nn-about-values {
  font-family: var(--wp--preset--font-family--heading, Georgia, "Times New Roman", serif);
  margin-top: 2rem;
  color: var(--wp--preset--color--navy, #102b40);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.5;
}

/* Same theme serif heading, enlarged for the Nationwide service section. */
#nationwide-service .nn-nationwide-values {
  font-size: clamp(2.5rem, 3.6vw, 3.25rem);
  line-height: 1.16;
}

/* The former page title retains its theme typography as a homepage section. */
#new-customers .nn-section-title {
 font-family: var(--wp--preset--font-family--heading, Georgia, "Times New Roman", serif);
 font-size: clamp(39px, 4.4vw, 62px);
 font-weight: 400;
 line-height: 1.1;
 letter-spacing: -1.8px;
 margin-top: 0;
 max-width: 850px;
}

#contact-our-team .nn-contact-service-line {
 display: inline-block;
 margin-top: 0.75rem;
 font-family: var(--wp--preset--font-family--heading, Georgia, "Times New Roman", serif);
 font-size: clamp(18px, 1.8vw, 22px);
 font-weight: 400;
 line-height: 1.3;
 letter-spacing: -0.25px;
 color: var(--wp--preset--color--navy, #102b40);
}

/* Actual brochure covers; existing theme typography and colors. */
#service-literature .nn-brochure-preview-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}
#service-literature .nn-brochure-thumb {
  flex: 0 0 auto;
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 8px;
  color: #477f97;
  background: #fff;
  border: 1px solid #cadce4;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgb(16 43 64 / 10%);
  font-family: var(--wp--preset--font-family--body, Arial, Helvetica, sans-serif);
  font-size: 10px;
  line-height: 1.4;
  cursor: zoom-in;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
#service-literature .nn-brochure-thumb:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 16px rgb(16 43 64 / 16%);
}
#service-literature .nn-brochure-thumb img {
  display: block;
  width: 92px;
  height: auto;
  max-height: 135px;
  object-fit: contain;
}
#service-literature .nn-brochure-preview-row .nn-text-link { margin: 0; }
.nn-brochure-thumb:focus-visible, .nn-brochure-close:focus-visible {
  outline: 3px solid #477f97;
  outline-offset: 4px;
}
.nn-brochure-dialog {
  box-sizing: border-box;
  width: min(800px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 22px;
  border: 1px solid #c8d9e1;
  border-radius: 6px;
  color: #102b40;
  background: #fff;
  box-shadow: 0 24px 90px rgb(0 0 0 / 30%);
  font-family: var(--wp--preset--font-family--body, Arial, Helvetica, sans-serif);
  overflow: auto;
}
.nn-brochure-dialog::backdrop { background: rgb(8 25 37 / 76%); backdrop-filter: blur(3px); }
.nn-brochure-dialog-header { display: flex; align-items: start; gap: 18px; margin-bottom: 18px; }
.nn-brochure-dialog .nn-brochure-dialog-header h2 {
  flex: 1;
  margin: 0;
  color: #102b40;
  font-family: var(--wp--preset--font-family--heading, Georgia, "Times New Roman", serif);
  font-size: clamp(21px, 3vw, 28px);
  line-height: 1.25;
  font-weight: 400;
}
.nn-brochure-close {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #cadce4;
  border-radius: 4px;
  background: #eef4f6;
  color: #102b40;
  font: 26px/1 Arial, Helvetica, sans-serif;
  cursor: pointer;
}
.nn-brochure-image-stage { display: flex; justify-content: center; padding: 10px; background: #edf3f5; }
.nn-brochure-image-stage img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100dvh - 220px);
  transform-origin: top left;
  box-shadow: 0 4px 16px rgb(16 43 64 / 16%);
}
.nn-brochure-dialog-footer { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 18px; }
.nn-brochure-dialog-footer span { font-size: 12px; color: #536878; }
.nn-brochure-dialog-footer a { white-space: nowrap; text-decoration: none; font: 700 13px/1.4 Arial, Helvetica, sans-serif; }
@media(max-width: 600px) {
  .nn-brochure-dialog { padding: 16px; }
  .nn-brochure-dialog-footer { flex-wrap: wrap; }
  .nn-brochure-image-stage img { max-height: calc(100dvh - 260px); }
}
@media(prefers-reduced-motion: reduce) {
  #service-literature .nn-brochure-thumb { transition: none; }
  #service-literature .nn-brochure-thumb:hover { transform: none; }
}

/* Correct labels after swapping directory columns. */
@media(max-width: 600px) {
 #contact-our-team .nn-staff-table td:nth-child(2)::before { content: 'Phone: '; }
 #contact-our-team .nn-staff-table td:nth-child(3)::before { content: 'Email: '; }
}

/* Keep core Table styles from overriding the approved staff directory. */
.nn-main .nn-staff-table table { border: 0; border-collapse: collapse; width: 100%; }
.nn-main .nn-staff-table thead { border: 0; }
.nn-main .nn-staff-table th,
.nn-main .nn-staff-table td { border: 0; border-bottom: 1px solid var(--nn-line); }
.nn-main .nn-staff-table th { padding: 16px 14px; text-align: left; }
.nn-main .nn-staff-table td { padding: 23px 14px; }
.nn-main .nn-staff-table figcaption { text-align: center; }
@media (max-width: 600px) {
 .nn-main .nn-staff-table td { border: 0; padding: 5px 0; }
}

/* Opening content fills at least one viewport; following section remains below the fold. */
.nn-home-intro { min-height: 100vh; min-height: 100svh; }
