/* iNSTALL SOUND Pro — unified typography for internal pages only.
   The exported pages used different Tilda content scales (XS/S/M/L), so the
   same text roles looked different on desktop and mobile. This layer keeps
   the original page structure and content while applying one type hierarchy. */

/* Shared body copy: paragraphs, descriptions, captions and contact details. */
#history .sb-font-p2,
#history .sb-font-p3,
#contacts .sb-font-p2,
#contacts .sb-font-p3,
#contacts .sb-font-p4,
#gallery .sb-font-p2,
#video-view .sb-font-p2,
#product-list .sb-font-p2,
#product-list-2 .sb-font-p2 {
  font-family: Montserrat, Arial, sans-serif !important;
  font-size: 18px !important;
  line-height: 1.65 !important;
  font-weight: 400;
}

/* The first line on About is the page heading, embedded in the rich-text block. */
#history .s-history-type-1__text p.sb-font-p2 > font:first-child > b > font {
  display: inline-block;
  font-family: Montserrat, Arial, sans-serif !important;
  font-size: 30px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
}
#history .s-history-type-1__text p.sb-font-p2 b {
  font-family: Montserrat, Arial, sans-serif !important;
  font-size: 1.05em;
  line-height: 1.35;
  font-weight: 700;
}

/* One consistent size for the main heading on each internal page. */
#contacts > .sb-container > .sb-row:first-child .sb-font-title,
#gallery > .sb-container > .sb-row:first-child .sb-font-title,
#product-list > .sb-container > .sb-row:first-child .sb-font-title,
#product-list-2 > .sb-container > .sb-row:first-child .sb-font-title,
.s-video-type-1 > .sb-container > .sb-row:first-child .sb-font-title {
  font-family: Montserrat, Arial, sans-serif !important;
  font-size: 30px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
}

/* Consistent subheadings for service/project categories and gallery entries. */
#contacts h3.sb-font-p2,
#contacts h3.sb-font-p3,
#gallery .s-gallery-type-3__description.sb-font-h4,
#product-list .s-product-list-type-1__item .sb-font-h5,
#product-list-2 .s-product-list-type-1__item .sb-font-h4 {
  font-family: Montserrat, Arial, sans-serif !important;
  font-size: 21px !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
}

/* Superscript tags were shrinking contact labels and values independently. */
#contacts sup,
#contacts sub {
  font-size: inherit !important;
  line-height: inherit !important;
  vertical-align: baseline !important;
}

/* Captions and descriptions on the gallery/video page stay readable and even. */
#gallery figcaption,
#gallery .s-gallery-type-3__description.sb-font-p2,
.s-video-type-1 .sb-font-p2 {
  font-family: Montserrat, Arial, sans-serif !important;
  font-size: 18px !important;
  line-height: 1.55 !important;
}

/* Tablet: a measured middle step without changing the hierarchy. */
@media (min-width: 640px) and (max-width: 959px) {
  #history .s-history-type-1__text p.sb-font-p2 > font:first-child > b > font,
  #contacts > .sb-container > .sb-row:first-child .sb-font-title,
  #gallery > .sb-container > .sb-row:first-child .sb-font-title,
  #product-list > .sb-container > .sb-row:first-child .sb-font-title,
  #product-list-2 > .sb-container > .sb-row:first-child .sb-font-title,
  .s-video-type-1 > .sb-container > .sb-row:first-child .sb-font-title {
    font-size: 28px !important;
  }
  #history .sb-font-p2,
  #history .sb-font-p3,
  #contacts .sb-font-p2,
  #contacts .sb-font-p3,
  #contacts .sb-font-p4,
  #gallery .sb-font-p2,
  #video-view .sb-font-p2,
  #product-list .sb-font-p2,
  #product-list-2 .sb-font-p2,
  #gallery figcaption,
  #gallery .s-gallery-type-3__description.sb-font-p2,
  .s-video-type-1 .sb-font-p2 {
    font-size: 17px !important;
  }
}

/* Mobile: identical base size on every internal page, with compact headings. */
@media screen and (max-width: 639px) {
  #history .sb-font-p2,
  #history .sb-font-p3,
  #contacts .sb-font-p2,
  #contacts .sb-font-p3,
  #contacts .sb-font-p4,
  #gallery .sb-font-p2,
  #video-view .sb-font-p2,
  #product-list .sb-font-p2,
  #product-list-2 .sb-font-p2,
  #gallery figcaption,
  #gallery .s-gallery-type-3__description.sb-font-p2,
  .s-video-type-1 .sb-font-p2 {
    font-size: 16px !important;
    line-height: 1.6 !important;
  }

  #contacts > .sb-container > .sb-row:first-child .sb-font-title,
  #gallery > .sb-container > .sb-row:first-child .sb-font-title,
  #product-list > .sb-container > .sb-row:first-child .sb-font-title,
  #product-list-2 > .sb-container > .sb-row:first-child .sb-font-title,
  .s-video-type-1 > .sb-container > .sb-row:first-child .sb-font-title,
  #history .s-history-type-1__text p.sb-font-p2 > font:first-child > b > font {
    font-size: 24px !important;
    line-height: 1.25 !important;
  }

  #contacts h3.sb-font-p2,
  #contacts h3.sb-font-p3,
  #gallery .s-gallery-type-3__description.sb-font-h4,
  #product-list .s-product-list-type-1__item .sb-font-h5,
  #product-list-2 .s-product-list-type-1__item .sb-font-h4 {
    font-size: 18px !important;
    line-height: 1.35 !important;
  }

  #history .s-history-type-1__text { padding: 18px; }
}
