/* WCAG 2.1 accessibility layer – loaded after the theme styles. */
:root {
  --a11y-brand: #4f591d;
  --a11y-text: #333333;
  --a11y-muted: #555555;
  --a11y-focus: #c00000;
  --a11y-error: #a4001e;
}

html { font-size: 100%; }
body { color: var(--a11y-text); line-height: 1.6; }
p, li { line-height: 1.6; }
img, video, iframe { max-width: 100%; }
img { height: auto; }

/* Bypass repeated blocks. */
.skip-links {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100000;
}
.skip-links a {
  position: absolute;
  left: 0;
  top: 0;
  min-width: 240px;
  padding: 12px 16px;
  background: #ffffff;
  color: #111111;
  border: 3px solid #111111;
  font-weight: 700;
  text-decoration: underline;
  transform: translateY(-150%);
}
.skip-links a:focus,
.skip-links a:focus-visible { transform: translateY(0); }

/* Strong, consistent keyboard focus. */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus,
[tabindex]:focus {
  outline: 3px solid var(--a11y-focus) !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 5px #ffffff !important;
}
#main-content:focus { outline-offset: -6px !important; }

/* Links must not rely on colour alone. */
#main-content p a,
#main-content li a,
#main-content figcaption a,
#footer .copyright a {
  color: var(--a11y-brand);
  text-decoration: underline;
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}
#top-bar .main-menu li a[aria-current="page"] {
  color: var(--a11y-brand);
  border-bottom-color: currentColor;
  font-weight: 700;
}

/* Theme green was below 4.5:1 on white; this replacement exceeds 7:1. */
.navbar-default .navbar-nav > li > a:hover,
#top-bar .main-menu li a:hover,
figure figcaption h4 a,
figure figcaption h2 a,
#contact-section .address i,
#contact-section .email i,
#contact-section .phone i,
#footer .copyright a,
#footer .social li a,
.cd-headline.slide .cd-words-wrapper,
#product-showcase-banner .block h2,
#related-items .block h4 span,
.service-page .service-parts .block i,
.team-member h3,
.wrapper_404 h1 {
  color: var(--a11y-brand);
}
#contact-section .contact-form .btn-send,
.single-post .post-comment .btn-send,
.social-share a,
.green {
  background: var(--a11y-brand);
  color: #ffffff;
}

.section-heading p,
.subtitle-des,
#about .block p,
.company-description .block p,
.service-page .service-parts .block p,
#feature p,
figure figcaption {
  color: var(--a11y-muted);
}

/* White text on the original yellow/green banner failed contrast. */
.global-page-header,
#call-to-action {
  background-color: #303810;
  background-image: linear-gradient(rgba(25, 30, 8, .78), rgba(25, 30, 8, .78)), url('../images/baner_bg.jpg');
  color: #ffffff;
}
.global-page-header h1,
.global-page-header h2,
.global-page-header .breadcrumb .active,
.global-page-header .breadcrumb li a,
#call-to-action .block,
#call-to-action .block h2 { color: #ffffff; }
#call-to-action { height: auto; min-height: 300px; }
#call-to-action .block .btn-contact {
  color: var(--a11y-brand);
  border: 2px solid var(--a11y-brand);
  font-size: 14px;
  font-weight: 700;
}
.about-feature .about-feature-1 { background: #4c581a; }
.about-feature .about-feature-2 { background: #485617; }
.about-feature .about-feature-3 { background: #3f4b14; }

/* Controls need visible boundaries and sufficient target size. */
button,
.btn,
.navbar-nav > li > a,
.footer-nav a,
.social a,
figure .overlay a {
  min-height: 44px;
  min-width: 44px;
}
button,
.btn,
figure .overlay a,
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
#contact-section input,
#contact-section textarea {
  border: 2px solid #666666;
  color: #333333;
  font-size: 16px;
}
#contact-section input { min-height: 44px; height: auto; }
#contact-section textarea { min-height: 9em; }
#contact-section label {
  display: inline-block;
  margin-bottom: 6px;
  color: #333333;
  font-size: 16px;
  font-weight: 700;
}
::placeholder { color: #555555; opacity: 1; }

.form-help { margin-bottom: 18px; }
.form-errors,
.form-status { margin: 12px 0; }
.form-errors:not(:empty) {
  padding: 12px 14px;
  border-left: 5px solid var(--a11y-error);
  background: #fff4f5;
  color: #4a0010;
  font-weight: 600;
}
.form-status:not(:empty) {
  padding: 12px 14px;
  border-left: 5px solid var(--a11y-brand);
  background: #f6f8ed;
  color: #283000;
}
.field-error {
  display: block;
  margin-top: 6px;
  color: #7a0016;
  font-weight: 700;
}
[aria-invalid="true"] { border-color: var(--a11y-error) !important; }
.contact-heading { font-size: 16px; font-weight: 700; line-height: 1.4; }

/* Hover-only image actions are also exposed on keyboard focus. */
figure .img-wrapper:focus-within .overlay,
figure .overlay:focus-within { opacity: 1; }
figure .img-wrapper:focus-within .overlay a,
figure .overlay a:focus {
  -webkit-transform: scale3d(1, 1, 1);
  transform: scale3d(1, 1, 1);
}

/* Footer sitemap provides a second route to pages. */
.footer-nav {
  clear: both;
  margin: 0 0 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #bdbdbd;
}
.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 0;
  padding: 0;
}
.footer-nav li { list-style: none; }
.footer-nav a {
  display: inline-flex;
  align-items: center;
  color: #333333;
  text-decoration: underline;
  text-underline-offset: .18em;
}

.card-title { margin: 0; font-size: 28px; }
.card-title a { color: var(--a11y-brand); }
.service-title { font-size: 20px; margin-top: 20px; }
abbr[title] { text-decoration: underline dotted; text-underline-offset: .15em; cursor: help; }

/* Prevent clipping at 200–400% zoom / narrow reflow. */
.container, .container-fluid { max-width: 100%; }
iframe { border: 0; }
@media (max-width: 480px) {
  .title { font-size: 30px; }
  .global-page-header h1, .global-page-header h2 { font-size: 34px; }
  #call-to-action { min-height: 0; padding: 50px 0; }
  .footer-nav ul { display: block; }
  .footer-nav a { width: 100%; }
}

/* Respect the OS/browser reduced-motion preference. */
@media (prefers-reduced-motion: reduce) {
  html:focus-within { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  figure:hover img { transform: none !important; }
}

@media (forced-colors: active) {
  a:focus, button:focus, input:focus, textarea:focus, select:focus, [tabindex]:focus {
    outline: 3px solid CanvasText !important;
    box-shadow: none !important;
  }
}

.fancybox-close { background-color: #ffffff; border: 2px solid #333333; }
.fancybox-prev span, .fancybox-next span { border: 2px solid #ffffff; }

/* --- 2026-09 follow-up fixes after keyboard/zoom review --- */
body,
input,
textarea,
select,
button {
  font-size: 16px;
}

.title { font-size: clamp(1.875rem, 1.4rem + 1.2vw, 2.25rem); }
.subtitle { font-size: clamp(1.5rem, 1.2rem + 0.8vw, 2rem); }

.subtitle-des,
#about .block p,
.company-description .block p,
.service-page .service-parts .block p,
#feature p,
figure figcaption,
#call-to-action .block p,
.global-page-header .breadcrumb,
#contact-section .contact-form .btn-send,
#call-to-action .block .btn-contact,
.navbar-nav > li > a {
  font-size: 1rem;
  line-height: 1.6;
}

/* Scroll-triggered reveals were removed from the HTML and JS. */

/* Keep the original light olive gallery colour scheme. */
.global-page-header,
#call-to-action {
  background-color: #c6dd44;
  background-image: url('../images/baner_bg.jpg');
  background-repeat: repeat-x;
  background-size: auto 100%;
  color: #1f2605;
}

.global-page-header .block,
#call-to-action .block {
  padding-inline: 1rem;
}

.global-page-header h1,
.global-page-header h2,
#call-to-action .block h2,
#call-to-action .block p {
  color: #1f2605;
}

.global-page-header h1,
.global-page-header h2 {
  font-size: clamp(2.25rem, 1.6rem + 2vw, 4rem);
  line-height: 1.15;
  word-break: break-word;
}

/* Breadcrumbs: explicit high-specificity colours so generic link rules cannot override them. */
#main-content .global-page-header .breadcrumb,
#main-content .global-page-header .breadcrumb .active,
#main-content .global-page-header .breadcrumb li,
#main-content .global-page-header .breadcrumb li a {
  color: #1f2605;
}

#main-content .global-page-header .breadcrumb li a {
  text-decoration: underline;
  text-decoration-thickness: .08em;
  text-underline-offset: .16em;
  font-weight: 700;
}

.global-page-header .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .35rem;
}

.global-page-header .breadcrumb > li {
  float: none;
}

/* CTA button remains clearly distinguishable on the light banner. */
#call-to-action .block .btn-contact {
  background: #1f2605;
  border-color: #1f2605;
  color: #ffffff;
}
#call-to-action .block .btn-contact:hover,
#call-to-action .block .btn-contact:focus {
  background: #ffffff;
  color: #1f2605;
  border-color: #1f2605;
}

/* Gallery reflow at 200% zoom: no fixed 100px side padding. */
.gallery {
  padding: clamp(1rem, 3vw, 3rem) 0;
}

#gallery .container {
  max-width: 1170px;
  width: auto;
}

#gallery .row {
  display: flex;
  flex-wrap: wrap;
}

#gallery [class*="col-"] {
  margin-bottom: 1.5rem;
}

#gallery .img-wrapper,
#gallery figure,
#gallery img {
  max-width: 100%;
}

#gallery .buttons {
  left: 50%;
  transform: translateX(-50%);
}

/* Contact labels are persistent, visible text above their fields. */
#contact-section .form-group {
  margin-bottom: 1.25rem;
}

#contact-section label {
  display: block;
  margin-bottom: .5rem;
  color: #333333;
  font-size: 1rem;
  font-weight: 700;
}

#contact-section .form-control {
  font-size: 1rem;
  line-height: 1.5;
  padding: .75rem .875rem;
}

@media (max-width: 991px) {
  .global-page-header {
    padding: 110px 0 30px;
  }
}

@media (max-width: 767px) {
  .global-page-header {
    padding: 100px 0 26px;
  }

  .global-page-header .breadcrumb {
    justify-content: flex-start;
    text-align: left;
  }

  #gallery .row {
    display: block;
  }
}
#main-content .global-page-header .breadcrumb > li + li::before {
  color: #1f2605;
}

/* --- 2026-09 visual corrections v3 --- */
/* Page banners keep the original light-olive look and white text. */
.global-page-header {
  background-color: #c6dd44;
  background-image: url('../images/baner_bg.jpg');
  background-repeat: repeat-x;
  background-size: auto 100%;
  color: #ffffff;
}
.global-page-header h1,
.global-page-header h2,
#main-content .global-page-header .breadcrumb,
#main-content .global-page-header .breadcrumb .active,
#main-content .global-page-header .breadcrumb li,
#main-content .global-page-header .breadcrumb li a,
#main-content .global-page-header .breadcrumb > li + li::before {
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.32);
}
#main-content .global-page-header .breadcrumb li a {
  text-decoration: none;
  font-weight: 600;
}

/* Only CTA stays dark green. */
#call-to-action {
  background-color: #303810;
  background-image: linear-gradient(rgba(25, 30, 8, .78), rgba(25, 30, 8, .78)), url('../images/baner_bg.jpg');
  color: #ffffff;
}
#call-to-action .block h2,
#call-to-action .block p {
  color: #ffffff;
}
#call-to-action .block .btn-contact {
  background: #ffffff;
  color: #1f2605;
  border-color: #ffffff;
}
#call-to-action .block .btn-contact:hover,
#call-to-action .block .btn-contact:focus {
  background: #1f2605;
  color: #ffffff;
  border-color: #ffffff;
}

/* The three-column "about-feature" strip should not use the dark theme. */
.about-feature .about-feature-1 { background: #c6db42; }
.about-feature .about-feature-2 { background: #bad034; }
.about-feature .about-feature-3 { background: #b0c628; }
.about-feature .block,
.about-feature .block h2,
.about-feature .block h3,
.about-feature .block p,
.about-feature .block a,
.about-feature .block li,
.about-feature .block i {
  color: #1f2605;
}

/* Fix the focus ring around client logos so it wraps the logo, not the whole column. */
#clients1 a {
  display: inline-block;
  line-height: 0;
}
#clients1 a:focus,
#clients1 a:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}
#clients1 a:focus img,
#clients1 a:focus-visible img {
  outline: 3px solid var(--a11y-focus);
  outline-offset: 4px;
  box-shadow: 0 0 0 4px #ffffff;
}

/* Gallery should keep the original multi-row Bootstrap flow; only spacing is reduced for zoom. */
#gallery .row {
  display: block;
}
#gallery .col-sm-4,
#gallery .col-xs-12 {
  margin-bottom: 30px;
}
.gallery figure {
  margin-bottom: 0;
}


/* --- homepage / shared navigation follow-up --- */
/* Centre overlay actions relative to the whole image, not an inherited left offset. */
#main-content figure .overlay .buttons {
  position: absolute;
  inset: 0;
  left: 0 !important;
  top: 0 !important;
  width: 100%;
  height: 100%;
  margin: 0;
  transform: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Keep the focused skip-navigation target clear of the fixed header. */
#main-navigation:focus {
  outline: 3px solid var(--a11y-focus);
  outline-offset: 3px;
}

/* --- Shared template + homepage review --- */
/* Strong red/white keyboard focus: visible on both light and dark backgrounds. */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus,
[tabindex]:focus {
  outline: 3px solid var(--a11y-focus) !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 3px #ffffff, 0 0 0 6px var(--a11y-focus) !important;
}

.skip-links a:focus,
.skip-links a:focus-visible {
  border-color: var(--a11y-focus);
}

/* Homepage typography: the former theme used 14px/300 for the introductory copy. */
.page-home #works .section-heading {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 3.5rem;
}

.page-home #works .section-heading .title {
  margin-top: 0;
  margin-bottom: 1.25rem;
  font-size: clamp(2.25rem, 1.75rem + 1.6vw, 3.25rem);
  line-height: 1.18;
  font-weight: 400;
  text-transform: none;
  letter-spacing: .01em;
}

.page-home #works .section-heading p {
  max-width: 1080px;
  margin: 0 auto;
  color: #444444;
  font-size: 1.125rem;
  line-height: 1.75;
  font-weight: 400;
}

.page-home .home-card figcaption {
  min-height: 11.5rem;
}

.page-home .home-card .card-title {
  font-size: clamp(1.65rem, 1.45rem + .45vw, 2rem);
  line-height: 1.3;
  font-weight: 600;
}

.page-home .home-card figcaption p {
  margin-top: .75rem;
  color: #4a4a4a;
  font-size: 1.0625rem;
  line-height: 1.7;
  font-weight: 400;
}

.page-home #call-to-action .title {
  font-size: clamp(1.8rem, 1.55rem + .8vw, 2.4rem);
  line-height: 1.3;
  font-weight: 500;
  text-transform: none;
}

.page-home #call-to-action .block p {
  max-width: 900px;
  margin: 1rem auto 0;
  font-size: 1.125rem;
  line-height: 1.7;
  font-weight: 400;
}

.page-home #call-to-action .btn-contact {
  font-size: 1rem;
}

#footer .copyright,
#footer .footer-nav a {
  font-size: 1rem;
  line-height: 1.6;
}

#footer .social li a {
  font-size: 1.5rem;
}

@media (max-width: 767px) {
  .page-home #works .section-heading {
    margin-bottom: 2.5rem;
  }

  .page-home #works .section-heading .title {
    font-size: clamp(2rem, 9vw, 2.6rem);
  }

  .page-home .home-card figcaption {
    min-height: 0;
  }
}



#footer .social li a {
  gap: .5rem;
  text-decoration: underline;
  text-underline-offset: .18em;
}

#footer .social-link-text {
  font-size: 1rem;
  line-height: 1.5;
}

#footer .external-link-note {
  font-size: .875em;
  font-weight: 400;
}

/* --- O firmie: content and Google reviews --- */
.page-about .company-description {
  margin-top: 64px;
  margin-bottom: 54px;
}
.page-about .company-description .block p,
.page-about #lista li,
.page-about .about-feature .block p,
.page-about .google-reviews p,
.page-about #clients1 .subtitle-des {
  font-size: 1.0625rem;
  line-height: 1.72;
}
.page-about .company-description .subtitle,
.page-about .works .subtitle,
.page-about #clients1 .subtitle,
.page-about .google-reviews .subtitle {
  font-size: clamp(1.75rem, 1.35rem + 1vw, 2.25rem);
  line-height: 1.25;
}
.page-about .about-feature .block {
  min-height: 310px;
}
.page-about .about-feature .item_title {
  font-size: 1.75rem;
  line-height: 1.25;
  margin-bottom: 1rem;
}
.page-about #lista {
  max-width: 980px;
  margin: 2rem auto 0;
}
.page-about #lista ul {
  padding-left: 0;
}
.page-about #lista li {
  position: relative;
  list-style: none;
  margin-bottom: 1rem;
  padding-left: 2rem;
}
.page-about #lista li > i {
  position: absolute;
  left: 0;
  top: .15em;
  font-size: 1.25rem;
}
.page-about .about-contact {
  margin-top: 2rem;
  text-align: center;
  font-size: 1.0625rem;
}

.google-reviews {
  padding: 64px 0;
  background: #f6f6f3;
}
.google-review-card {
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
  padding: 2.25rem;
  background: #ffffff;
  border: 1px solid #d5d5d0;
  box-shadow: 0 6px 24px rgba(0,0,0,.08);
}
.google-review-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.google-review-value {
  display: block;
  color: #222222;
  font-size: clamp(3.25rem, 2.5rem + 2vw, 4.5rem);
  line-height: 1;
  font-weight: 700;
}
.google-review-value > span {
  font-size: .45em;
  font-weight: 500;
}
.google-review-stars {
  margin: .7rem 0 .35rem;
  color: #7a5a00;
  font-size: 1.7rem;
  letter-spacing: .08em;
}
.google-review-count {
  color: #444444;
  font-size: 1rem;
  font-weight: 700;
}
.google-review-content .subtitle {
  margin-top: 0;
}
.google-review-date {
  color: #555555;
  font-size: .95rem !important;
}
.google-review-link {
  margin-top: .5rem;
  white-space: normal;
  text-align: center;
}

#clients1 {
  padding: 64px 0 44px;
}
#clients1 .pad-bottom {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#clients1 img {
  max-height: 92px;
  width: auto;
}

@media (max-width: 767px) {
  .page-about .company-description {
    margin-top: 40px;
    margin-bottom: 36px;
  }
  .page-about .company-description img {
    margin-bottom: 2rem;
  }
  .page-about .about-feature .block {
    width: 100%;
    min-height: 0;
    float: none;
    padding: 2.25rem 1.5rem;
  }
  .google-reviews {
    padding: 42px 0;
  }
  .google-review-card {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding: 1.5rem;
  }
  #clients1 .pad-bottom {
    min-height: 100px;
  }
}


/* --- O firmie v7: section separation, homepage-sized copy and live Google reviews --- */
.page-about .company-description .block p,
.page-about #lista li,
.page-about .about-feature .block p,
.page-about .google-reviews p,
.page-about .trusted-companies .subtitle-des,
.page-about .about-contact {
  font-size: 1.125rem;
  line-height: 1.75;
  font-weight: 400;
}

.page-about .about-section-heading {
  max-width: 980px;
  margin: 0 auto 2.75rem;
}

.page-about .about-section-heading .subtitle {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: clamp(2rem, 1.6rem + 1.2vw, 2.75rem);
  line-height: 1.22;
  font-weight: 500;
}

.page-about .about-section-heading .subtitle-des {
  max-width: 880px;
  margin: 0 auto;
  color: #444444;
}

.page-about .google-reviews {
  margin-top: 0;
  padding: 76px 0 82px;
  background: #f3f5ec;
  border-top: 1px solid #d7dcc6;
  border-bottom: 1px solid #d7dcc6;
}

.page-about .trusted-companies {
  padding: 80px 0 68px;
  background: #ffffff;
}

.page-about .trusted-companies-logos {
  margin-top: .5rem;
}

.google-review-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .75rem 1rem;
  margin-bottom: 1rem;
  color: #333333;
  font-size: 1.0625rem;
}

.google-review-summary-score {
  font-size: 1.5rem;
}

.google-review-order {
  margin-bottom: 2rem;
  color: #555555;
}

.google-review-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 1080px;
  margin: 0 auto;
}

.google-review-item {
  padding: 1.6rem;
  background: #ffffff;
  border: 1px solid #d5d5d0;
  box-shadow: 0 4px 18px rgba(0,0,0,.06);
}

.google-review-item-header {
  margin-bottom: .9rem;
}

.google-review-item-header h3 {
  margin: 0 0 .35rem;
  color: #222222;
  font-size: 1.2rem;
  line-height: 1.35;
  font-weight: 600;
}

.google-review-item-rating {
  margin: 0 0 .2rem !important;
  color: #7a5a00;
  font-size: 1.25rem !important;
  line-height: 1.2 !important;
}

.google-review-item time {
  color: #666666;
  font-size: .95rem;
}

.google-review-text {
  margin-bottom: 0;
}

.google-review-text-muted {
  color: #666666;
  font-style: italic;
}

.google-review-fallback {
  display: grid;
  grid-template-columns: minmax(210px, 280px) 1fr;
  gap: 2.5rem;
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
  padding: 2rem;
  background: #ffffff;
  border: 1px solid #d5d5d0;
}

.google-review-more {
  margin: 2rem 0 0 !important;
}

@media (max-width: 767px) {
  .page-about .google-reviews,
  .page-about .trusted-companies {
    padding: 50px 0;
  }

  .google-review-list {
    grid-template-columns: 1fr;
  }

  .google-review-fallback {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
  }
}

/* --- v8: shared readable body-copy scale for Home and About --- */
:root {
  --site-copy-size: 1.125rem; /* 18px at the default browser size */
  --site-copy-line-height: 1.75;
}

/* The same body-copy size is deliberately used on the homepage and About page. */
.page-home #works .section-heading p,
.page-home .home-card figcaption p,
.page-home #call-to-action .block p,
.page-about .company-description .block p,
.page-about #lista li,
.page-about .about-feature .block p,
.page-about .about-contact,
.page-about .about-section-heading .subtitle-des,
.page-about .google-review-text,
.page-about .google-review-fallback p,
.page-about .trusted-companies .subtitle-des {
  font-size: var(--site-copy-size) !important;
  line-height: var(--site-copy-line-height) !important;
  font-weight: 400;
}

/* Keep secondary metadata smaller than the actual content, not the other way round. */
.page-about .google-review-item time,
.page-about .google-review-date,
.page-about .review-static-date,
.page-about .external-link-note {
  font-size: 1rem;
  line-height: 1.55;
}


/* --- Gallery v9: shared typography and reliably centred image action --- */
.page-gallery .gallery {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.page-gallery .gallery-intro {
  max-width: 980px;
  margin: 0 auto 3rem;
}

.page-gallery .gallery-intro .subtitle {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 1.6rem + 1.2vw, 2.75rem);
  line-height: 1.22;
  font-weight: 500;
}

.page-gallery .gallery-intro p,
.page-gallery #call-to-action .block p {
  font-size: var(--site-copy-size) !important;
  line-height: var(--site-copy-line-height) !important;
  font-weight: 400;
}

/* Centre the "Powiększ" control in the actual image overlay. */
.page-gallery #gallery figure .overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.page-gallery #gallery figure .overlay .buttons {
  position: static !important;
  inset: auto !important;
  left: auto !important;
  top: auto !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  transform: none !important;
  display: block;
}

.page-gallery #gallery figure .overlay .fancybox {
  min-width: 7.5rem;
  min-height: 44px;
  margin: 0;
  padding: .75rem 1.25rem;
  font-size: 1.125rem;
  line-height: 1.3;
  text-align: center;
}

/* Keyboard focus must reveal the same action as mouse hover. */
.page-gallery #gallery figure .img-wrapper:focus-within .overlay {
  opacity: 1;
}

@media (max-width: 767px) {
  .page-gallery .gallery {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .page-gallery .gallery-intro {
    margin-bottom: 2rem;
    text-align: left;
  }
}

/* --- Gallery v10: keyboard focus in Fancybox navigation --- */
/* Fancybox 2 uses transparent previous/next links covering large parts of the image.
   The large hit area remains for mouse users, but keyboard focus is drawn only
   around the visible arrow control. */
.fancybox-nav:focus,
.fancybox-nav:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

/* Arrow controls must become visible on keyboard focus, not only on hover. */
.fancybox-nav:focus span,
.fancybox-nav:focus-visible span {
  visibility: visible !important;
}

/* Red + white high-contrast focus around the actual arrow button. */
.fancybox-prev:focus span,
.fancybox-prev:focus-visible span,
.fancybox-next:focus span,
.fancybox-next:focus-visible span {
  outline: 3px solid var(--a11y-focus) !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 3px #ffffff, 0 0 0 6px var(--a11y-focus) !important;
}

.fancybox-prev span,
.fancybox-next span {
  width: 50px;
  height: 50px;
  margin-top: -25px;
  background-color: #009ee3;
}

.fancybox-close:focus,
.fancybox-close:focus-visible {
  outline: 3px solid var(--a11y-focus) !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 3px #ffffff, 0 0 0 6px var(--a11y-focus) !important;
}

/* --- Gallery v11: stronger visible and screen-reader-linked captions --- */
.fancybox-caption {
  margin: 0 !important;
  padding: .8rem 1rem !important;
  background: #ffffff !important;
  color: #222222 !important;
  border-top: 2px solid #d7d7d7;
  font-size: 1.125rem !important;
  line-height: 1.5 !important;
  font-weight: 500 !important;
  text-align: left;
}

@media (max-width: 767px) {
  .fancybox-caption {
    padding: .7rem .85rem !important;
    font-size: 1rem !important;
  }
}


/* --- Contact v12: consistent type, error summary and accessible anti-spam --- */
.page-contact #contact-section,
.page-contact #contact-section p,
.page-contact #contact-section li,
.page-contact #contact-section label,
.page-contact #contact-section input,
.page-contact #contact-section textarea,
.page-contact #contact-section button {
  font-size: 1.125rem;
  line-height: 1.75;
}

.page-contact #contact-section .subtitle {
  font-size: clamp(1.75rem, 1.35rem + 1vw, 2.25rem);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.page-contact #contact-section .subtitle-des,
.page-contact #contact-section .form-help {
  max-width: 65ch;
}

.page-contact #contact-section .form-control {
  min-height: 48px;
  padding: .7rem .9rem;
  line-height: 1.45;
}

.page-contact #contact-section textarea.form-control {
  min-height: 11rem;
}

/* Honeypot: intentionally unavailable to sighted users and assistive tech. */
.hp-field {
  display: none !important;
}

/* Error summary stays focused until the user chooses an error link. */
.form-errors:not(:empty) {
  margin: 1.25rem 0;
  padding: 1rem 1.125rem;
  border-left: 6px solid var(--a11y-error);
  background: #fff4f5;
  color: #3e000c;
}

.form-errors p {
  margin: 0 0 .55rem;
}

.form-errors ul {
  margin: 0;
  padding-left: 1.4em;
}

.form-errors li + li {
  margin-top: .25rem;
}

#main-content .form-errors a {
  color: #7a0016;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: .1em;
  text-underline-offset: .15em;
}

.field-error {
  font-size: 1rem;
  line-height: 1.5;
  margin-top: .4rem;
}

.antispam-block {
  margin: 1.75rem 0 1.25rem;
  padding: 1.25rem;
  border: 2px solid #767676;
  background: #fafafa;
}

.antispam-title {
  margin: 0 0 .65rem;
  font-size: 1.25rem;
  line-height: 1.35;
  font-weight: 700;
  color: #222222;
}

.antispam-help {
  margin: 0 0 1rem;
}

.turnstile-widget-container {
  display: inline-block;
  max-width: 100%;
  padding: .25rem;
}

.turnstile-widget-container[aria-invalid="true"] {
  outline: 3px solid var(--a11y-error);
  outline-offset: 3px;
}

.turnstile-config-error {
  margin-bottom: 0;
}

.page-contact .address-details p,
.page-contact .address-details a {
  font-size: 1.125rem;
  line-height: 1.7;
}

@media (max-width: 380px) {
  .antispam-block {
    padding: .85rem;
  }
}

/* --- v13: mobile header / homepage layout fix --- */
@media (max-width: 767px) {
  :root {
    --mobile-site-header-height: 80px;
  }

  /*
   * Bootstrap's fixed header is outside the normal document flow.
   * Give it a predictable mobile height and reserve exactly that space
   * on the homepage so the H1 can never slide underneath it.
   */
  #top-bar {
    min-height: var(--mobile-site-header-height);
    padding: 8px 0 !important;
  }

  #top-bar > .container {
    position: relative;
  }

  #top-bar .navbar-header {
    position: relative;
    min-height: 64px;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  #top-bar .navbar-brand {
    float: left;
    width: auto;
    max-width: calc(100% - 68px);
    height: auto;
    margin: 0 !important;
    padding: 0 !important;
  }

  #top-bar .navbar-brand a {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 0 !important;
    padding: 0 !important;
  }

  #top-bar .navbar-brand img {
    display: block;
    width: clamp(180px, 58vw, 230px);
    max-width: 100%;
    height: auto;
  }

  /*
   * The global accessibility rule makes buttons flex containers.
   * For the hamburger that flex direction must explicitly be vertical,
   * otherwise Bootstrap's three icon bars appear next to each other.
   */
  #top-bar .navbar-toggle {
    position: absolute;
    top: 50%;
    right: 0;
    float: none;
    display: inline-flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 48px;
    min-width: 48px;
    height: 48px;
    min-height: 48px;
    margin: 0 !important;
    padding: 0 !important;
    transform: translateY(-50%);
    border: 2px solid #333333;
    border-radius: 4px;
    background: #111111;
  }

  #top-bar .navbar-toggle .icon-bar {
    display: block;
    flex: 0 0 auto;
    width: 24px;
    height: 3px;
    margin: 0;
    border-radius: 2px;
    background: #ffffff;
  }

  #top-bar .navbar-toggle .icon-bar + .icon-bar {
    margin-top: 5px;
  }

  #top-bar .navbar-toggle:hover,
  #top-bar .navbar-toggle:focus,
  #top-bar .navbar-toggle:focus-visible {
    background: #111111;
  }

  /* The homepage has no global-page-header spacer, so it needs this offset. */
  .page-home #main-content {
    padding-top: var(--mobile-site-header-height);
  }

  .page-home .home-services {
    padding-top: 3rem;
  }

  /* Avoid an oversized first heading on narrow phones while retaining 200% reflow. */
  .page-home #works .section-heading .title {
    font-size: clamp(2rem, 8.2vw, 2.45rem);
    line-height: 1.2;
  }
}

@media (max-width: 360px) {
  #top-bar .navbar-brand img {
    width: 180px;
  }

  .page-home #works .section-heading .title {
    font-size: 1.9rem;
  }
}

/* --- v14: mobile navigation contrast / current page --- */
@media (max-width: 767px) {
  /*
   * The desktop olive brand colour is intentionally not used for text on the
   * dark collapsed menu: #4f591d on #333333 is far below normal-text contrast.
   */
  #top-bar .navbar-collapse .main-menu li > a,
  #top-bar .navbar-collapse .main-menu li > a:hover,
  #top-bar .navbar-collapse .main-menu li > a:focus,
  #top-bar .navbar-collapse .main-menu li > a:focus-visible {
    color: #ffffff !important;
  }

  #top-bar .navbar-collapse .main-menu li > a[aria-current="page"] {
    color: #ffffff !important;
    background: #242424;
    border-bottom-color: transparent !important;
    border-left: 5px solid #ff4055;
    padding-left: 15px;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: .11em;
    text-underline-offset: .22em;
  }

  /* Keep hover distinguishable without replacing white text with low-contrast olive. */
  #top-bar .navbar-collapse .main-menu li > a:hover {
    background: #292929;
    text-decoration: underline;
    text-underline-offset: .2em;
  }
}
