/*
 * Shared components and heading fixes (TZ 05.10.2026, tasks 3, 4, 5, 16, 17).
 * Loaded after the page stylesheets.
 */

/* ---------- Section titles promoted from H3 to H2: keep their former size ---------- */
.feedbacks h2.section-title,
.services-section h2.section-title,
.faq h2.title {
  font-size: 24px;
}

.services-section h2,
.about .services-section h2 {
  font-weight: 600;
}

.quiz-wrapper h2 {
  font-weight: 500;
  font-size: 36px;
}

.slotenmaker .quiz-wrapper h2 {
  font-weight: 600;
}

.progress_bar h2 {
  font-weight: 500;
  font-size: 24px;
}

.locked .warning h2.title {
  font-weight: 600;
  font-size: 24px;
  color: #0A0A0A;
}

/* Info rows: the title wrapper sets the size; editor H2 inside it used to be bigger than EN. */
.locked .info .block .title h2 {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  margin: 0;
}

.lock .blocks-section h2 {
  font-weight: 600;
  font-size: 36px;
}

.lock .info h2 {
  font-size: 30px;
  line-height: 45px;
  color: #2D3748;
}

.brands .types h2 {
  font-weight: 600;
  font-size: 36px;
}

.burglary .method h2 {
  text-align: center;
  font-weight: 600;
  font-size: 36px;
  color: #111827;
}

.burglary .break h2 {
  font-weight: 600;
  font-size: 36px;
  color: #111827;
  margin-bottom: 16px;
}

.burglary .text h2 {
  font-weight: 600;
  font-size: 36px;
  color: #0A0A0A;
  margin-bottom: 16px;
}

.access .products h2 {
  font-weight: 600;
  font-size: 32px;
  color: #000000;
  margin-bottom: 32px;
}

.audit .security h2 {
  font-weight: 600;
  font-size: 32px;
  color: #0A0A0A;
}

.about .rfid .rule-info h3.title {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.calculator_wrapper h2.calculator_title {
  margin-bottom: 20px;
  color: #ffffff;
  font-size: 24px;
}

.calculator_wrapper_prices h2.calculator_title {
  color: #0A0A0A;
}

.prices .calculator_wrapper h2.calculator_title {
  font-weight: 600;
}

section.calculator-section {
  margin-bottom: 56px;
}

.top-content .rich-text ul,
.top-content > ul {
  margin: 8px 0;
}

/* ---------- New headings ---------- */
.services-blocks-title {
  font-size: 24px;
  font-weight: 600;
  margin: 32px 0 16px;
}

.contact-block-title {
  font-size: 24px;
  font-weight: 600;
  margin: 24px 0 16px;
}

.audit-top-section-content h2.title {
  font-weight: 600;
  font-size: 24px;
  color: #0A0A0A;
  margin-bottom: 24px;
}

.quiz-title,
.prices-title,
.locksmith-list-title {
  font-size: 40px;
  font-weight: 600;
  margin: 24px 0;
}

.prices-heading {
  margin-bottom: 0;
}

.gone-page {
  padding: 80px 0;
}

.gone-page h1 {
  font-size: 40px;
  margin-bottom: 16px;
}

.gone-page a {
  color: var(--primary-blue);
}

/* Complianz: no cookie policy document is configured; do not show an empty link (task 10). */
.cmplz-cookiebanner .cmplz-links a.cmplz-link:empty {
  display: none !important;
}

/* ---------- Editor HTML (task 5) ---------- */
.rich-text > :first-child {
  margin-top: 0;
}

.rich-text > :last-child {
  margin-bottom: 0;
}

.rich-text p + p,
.rich-text p + ul,
.rich-text p + ol,
.rich-text ul + p,
.rich-text ol + p {
  margin-top: 0.75em;
}

.rich-text ul,
.rich-text ol {
  padding-left: 1.25em;
  margin: 0.5em 0;
}

.city-block .rich-text ul {
  list-style: disc;
}

.city-block .rich-text ol {
  list-style: decimal;
}

/* Body text on light backgrounds: black instead of grey #999 (task 5). Dark banners keep
   their own white text; review dates and other meta labels stay grey. */
p.grey,
.grey.rich-text,
.faq-text,
.services-blocks .block p,
[class*="top-content-wrapper"] .top-content p,
[class*="top-content-wrapper"] .top-content li,
[class*="top-content-wrapper"] .top-content .grey {
  color: #000;
}

.grey.rich-text a,
.faq-text a {
  color: var(--primary-blue);
  text-decoration: underline;
}

/* ---------- Overview tabs as links (task 16) ---------- */
.tabs a.tab {
  color: inherit;
  text-decoration: none;
}

.tabs a.tab:focus-visible {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

.locksmith-province[hidden],
.locksmith_item[hidden] {
  display: none !important;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Municipal blocks (task 17) ---------- */
.info-locksmith .info-locksmith-wrapper .content h2 {
  color: var(--font-colour-default);
  font-weight: 600;
  font-size: 24px;
  margin-bottom: 12px;
}

.city-block .city-block__title {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 16px;
}

.city-block__body {
  display: block;
}

.city-block__body--photos {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.city-block__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.city-block__links a,
.city-block__more a {
  color: var(--primary-blue);
}

.city-block__more {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 16px;
}

.city-block__photos {
  display: grid;
  gap: 16px;
}

.city-block__body--photos-2 .city-block__photos,
.city-block__body--photos-3 .city-block__photos {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.city-block__body--photos-3 .city-block__photo:first-child {
  grid-column: 1 / -1;
}

.city-block__photo {
  margin: 0;
}

.city-block__photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
}

.city-block__photo figcaption {
  font-size: 14px;
  color: #424242;
  margin-top: 6px;
}

@media screen and (max-width: 768px) {
  .city-block__body--photos {
    grid-template-columns: minmax(0, 1fr);
  }

  .city-block .city-block__title {
    font-size: 26px;
  }
}

/* ---------- Audit calendar and address suggestions (task 4) ---------- */
#calendar td.sl-blocked span,
#calendar td.sl-past span {
  cursor: not-allowed;
}

.sl-address {
  position: relative;
}

.sl-address-list {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: 100%;
  margin: 4px 0 0;
  padding: 4px 0;
  list-style: none;
  background: #fff;
  border: 1px solid #DBE3FF;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(16, 63, 178, 0.12);
}

.sl-address-list li {
  padding: 8px 12px;
  cursor: pointer;
}

.sl-address-list li.is-active,
.sl-address-list li:hover {
  background: #E8EFFD;
}

.sl-address-attribution {
  font-size: 12px;
  color: #424242;
  margin: 4px 0 0;
}

.sl-address-attribution a {
  color: inherit;
  text-decoration: underline;
}

/* ---------- Mobile ---------- */
@media screen and (max-width: 768px) {
  .progress_bar h2 {
    width: 100%;
  }

  .burglary .method h2,
  .burglary .break h2 {
    font-size: 32px;
  }

  .access .products h2 {
    text-align: left;
  }

  .quiz-title,
  .prices-title,
  .locksmith-list-title {
    font-size: 28px;
  }
}

@media screen and (max-width: 575px) {
  .quiz-wrapper h2 {
    font-size: 32px;
  }
}

/* ---------- Horizontal overflow on phones (task 6) ---------- */
/* Long Dutch compounds and municipality names wrap instead of widening the page. */
h1,
h2,
h3,
.banner .title,
.block-title {
  overflow-wrap: anywhere;
  hyphens: auto;
}

.top-section-content > *,
.home-top-content-wrapper,
.home-top-content-wrapper .top-content {
  min-width: 0;
}

/* Grid columns may shrink below their content's min-content width. */
.services-blocks {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.audit .security {
  overflow-x: clip;
}

.brands .marquee .item img {
  max-width: 100%;
  height: auto;
}

@media screen and (max-width: 992px) {
  .services-blocks {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media screen and (max-width: 575px) {
  .brands .types h2,
  .lock .blocks-section h2,
  .burglary .method h2,
  .burglary .break h2,
  .burglary .text h2,
  .terms .content h2,
  .audit .security h2,
  .access .products h2 {
    font-size: 26px;
  }

  .prices.container-fluid {
    padding-left: 0;
    padding-right: 0;
  }

  .brands .marquee .item img {
    max-width: 160px;
  }
}
