/* Below-fold rendering (conservative sizes — wrong intrinsic height causes CLS) */
.about-section-four {
  content-visibility: auto;
  contain-intrinsic-size: auto 700px;
}
.why-choose-us-two {
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}
.main-footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 400px;
}

/* Cookie bar: transform only (fixed — avoids layout shift) */
.cookie-banner {
  bottom: 0 !important;
  transform: translate3d(0, 100%, 0);
  transition: transform 0.5s ease-in-out !important;
}
.cookie-banner.show {
  bottom: 0 !important;
  transform: translate3d(0, 0, 0);
}

/* Logo: reserve space without stretching */
.main-header .logo img,
.sticky-header .logo img {
  width: auto;
  height: auto;
  max-height: 65px;
}

/* Accessibility: contrast (WCAG AA) */
.header-top .list-style-one li,
.header-top .list-style-one li a {
  color: #b8b8b8;
}
.feature-block-two:nth-child(3n + 3) .inner-box .text {
  color: #d4d4d4;
}
.sec-title .sub-title::before {
  color: #c62828;
}
.service-block .read-more:hover,
.service-block .title:hover {
  color: #c62828;
}
.cookie-banner,
.cookie-banner .cookie-text {
  color: #ffffff;
}
.cookie-banner .cookie-text {
  color: #f5e6a8;
  background: none;
  border: none;
  font: inherit;
  padding: 0;
}
.cookie-banner .cookie-text:hover {
  color: #fff8dc;
}

button.mobile-nav-toggler {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

/* Screen-reader-only section title (keeps visual layout unchanged) */
.a11y-section-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/*
 * Restore original sizes + bold weights after semantic heading changes.
 * Bootstrap critical.css sets h2 to 500; global h3/h4 default to 700.
 */
/* Extra-bold card titles (theme default: 800 on Manrope) */
.feature-block-two .title,
.feature-block-two h3.title,
.feature-block-two .title a {
  font-family: var(--title-font, "Manrope"), sans-serif !important;
  font-size: var(--h6-font-size, 20px) !important;
  font-weight: 800 !important;
  line-height: 1.2em;
  letter-spacing: -0.045em;
  margin: 0 0 10px;
  -webkit-font-smoothing: subpixel-antialiased;
}

/* White service cards — heaviest headings (match reference) */
.services-section .service-block .title,
.services-section .service-block h3.title,
.services-section .service-block .title a,
.services-section .service-block h3.title a {
  font-family: var(--title-font, "Manrope"), sans-serif !important;
  font-size: var(--h5-font-size, 22px) !important;
  font-weight: 900 !important;
  line-height: 1.15em;
  letter-spacing: -0.05em;
  color: #0f0f0f !important;
  -webkit-font-smoothing: subpixel-antialiased;
  font-synthesis-weight: auto;
}

.services-section .service-block .title,
.services-section .service-block h3.title {
  margin: 0 0 14px;
}

.process-block .title,
.process-block h3.title {
  font-family: var(--title-font, "Manrope"), sans-serif !important;
  font-size: var(--h6-font-size, 20px) !important;
  font-weight: 800 !important;
  line-height: 1.2em;
  letter-spacing: -0.045em;
  margin: 0 0 15px;
}

.feature-block-six .title,
.feature-block-six h4.title {
  font-family: var(--title-font, "Manrope"), sans-serif !important;
  font-size: var(--h5-font-size, 22px) !important;
  font-weight: 800 !important;
  line-height: 1.15em;
  letter-spacing: -0.04em;
  margin: 0 0 10px;
  color: #0f0f0f !important;
}

#main-content .sec-title h2:not(.sub-title) {
  font-size: var(--sec-title-font-size, 46px) !important;
  font-weight: 700 !important;
  margin-top: -5px;
  margin-bottom: 0;
}

.services-section .sec-title h2.sub-title {
  font-size: var(--sec-title-subtitle-font-size, 23px) !important;
  font-weight: var(--sec-title-subtitle-font-weight, 500) !important;
  line-height: var(--sec-title-subtitle-line-height, 1.2em);
  font-family: var(--sec-title-subtitle-font-family, var(--text-font));
  color: var(--sec-title-subtitle-color, var(--text-color));
  margin: 0;
  position: relative;
  top: -8px;
}

.main-footer .widget-title,
.main-footer h2.widget-title {
  font-size: var(--h6-font-size, 20px) !important;
  font-weight: 600 !important;
  line-height: 1.2em;
  margin: 0 0 15px;
  color: #fff;
}

.why-choose-us-two .sec-title > .row > .col-lg-6:first-child > h3 {
  font-size: var(--h4-font-size, 24px) !important;
  font-weight: 700 !important;
  line-height: var(--line-height-heading, 1.2em);
  margin: 0;
  letter-spacing: -0.04em;
}

.why-choose-us-two .sec-title > .row > .col-lg-6:first-child > h2 {
  font-size: var(--sec-title-font-size, 46px) !important;
  font-weight: 700 !important;
}
