/* =============================================================================
   V5 Inner Pages — site-wide mobile + desktop responsive layer
   Loaded on all pages except homepage. Works with legacy Blade templates.
   ============================================================================= */

body.v5-layout:not(.home-v5-page) {
  overflow-x: clip;
  --max: 1320px;
  --gutter: clamp(16px, 3vw, 48px);
  --v5-green: #8dc63f;
  --v5-green-dark: #6fa82e;
  --v5-ink: #141414;
  --v5-muted: #3d3d3d;
  --v5-line: #e8e8e8;
}

/* Typography inside content columns only — never banner/hero overlays */
body.v5-layout:not(.home-v5-page) .main_container .container h1,
body.v5-layout:not(.home-v5-page) .main_container .container h2,
body.v5-layout:not(.home-v5-page) .main_container .container h3,
body.v5-layout:not(.home-v5-page) .main_container .container h4,
body.v5-layout:not(.home-v5-page) .main_container .container h5,
body.v5-layout:not(.home-v5-page) .main_container .container h6 {
  font-family: "DM Sans", system-ui, sans-serif;
  color: #141414;
}

/* ─── Global layout shell ─────────────────────────────────────────────────── */
body.v5-layout:not(.home-v5-page) #app,
body.v5-layout:not(.home-v5-page) .main_container {
  max-width: 100%;
  overflow-x: clip;
}

body.v5-layout:not(.home-v5-page) .main_container .container,
body.v5-layout:not(.home-v5-page) .page_breadcrumb .container,
body.v5-layout:not(.home-v5-page) .main_container > section > .container,
body.v5-layout:not(.home-v5-page) section.detail-gallery-view > .container,
body.v5-layout:not(.home-v5-page) section.detail-intro1 > .container,
body.v5-layout:not(.home-v5-page) section.detail-intro2 > .container,
body.v5-layout:not(.home-v5-page) section.detail-intro3 > .container,
body.v5-layout:not(.home-v5-page) section.detail-intro4 > .container,
body.v5-layout:not(.home-v5-page) section.detail-intro5 > .container,
body.v5-layout:not(.home-v5-page) section.detail-tabs > .container,
body.v5-layout:not(.home-v5-page) section.sh-cta > .container {
  width: min(var(--max), calc(100% - 2 * var(--gutter)));
  max-width: none;
  margin-inline: auto;
  padding-inline: 0;
}

body.v5-layout:not(.home-v5-page) .main_container .container-fluid {
  width: min(1400px, calc(100% - 2 * var(--gutter)));
  max-width: none;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

body.v5-layout:not(.home-v5-page) .row {
  --bs-gutter-x: clamp(16px, 2.5vw, 24px);
}

body.v5-layout:not(.home-v5-page) .row > [class*="col-"] {
  min-width: 0;
}

body.v5-layout:not(.home-v5-page) img:not(.brand-logo),
body.v5-layout:not(.home-v5-page) video,
body.v5-layout:not(.home-v5-page) iframe {
  max-width: 100%;
}

body.v5-layout:not(.home-v5-page) .main_container table {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

body.v5-layout:not(.home-v5-page) .section-padding,
body.v5-layout:not(.home-v5-page) .section_padding {
  padding: clamp(32px, 5vw, 56px) 0;
}

/* Content links — main_container + product/detail sections (same rules everywhere) */
body.v5-layout:not(.home-v5-page) :is(
  .main_container,
  section.detail-gallery-view,
  section.detail-intro1,
  section.detail-intro2,
  section.detail-intro3,
  section.detail-intro4,
  section.detail-intro5,
  section.detail-tabs,
  section.sh-cta
) a:not(.default-button):not(.submit-button):not(.btn):not(.btn-link):not(.image-popup-link):not(.nav-link):not(.case_study_read_more):not(.press_read_more):not(.read_more):not(.btn-green):not(.default-button-porfolio) {
  color: var(--v5-green);
}

/* Gallery icon overlays — keep legacy button look, not prose link color */
body.v5-layout:not(.home-v5-page) .show-hover-action a,
body.v5-layout:not(.home-v5-page) .product_gallery_content_inner ul li a {
  color: #fff !important;
  background: var(--v5-green) !important;
  border: 1px solid var(--v5-green) !important;
}

body.v5-layout:not(.home-v5-page) .show-hover-action a:hover,
body.v5-layout:not(.home-v5-page) .product_gallery_content_inner ul li a:hover {
  color: #fff !important;
  background: var(--v5-green-dark) !important;
  border-color: var(--v5-green-dark) !important;
}

/* Never apply inner-page content link color to site chrome */
body.v5-layout:not(.home-v5-page) .site-footer a,
body.v5-layout:not(.home-v5-page) .header-nav-wrap a,
body.v5-layout:not(.home-v5-page) .utility-bar a,
body.v5-layout:not(.home-v5-page) .quote-tab {
  color: inherit;
}

body.v5-layout:not(.home-v5-page) .primary-text,
body.v5-layout:not(.home-v5-page) a.primary-text {
  color: var(--v5-green) !important;
}

/* ─── Breadcrumbs ─────────────────────────────────────────────────────────── */
body.v5-layout:not(.home-v5-page) .page_breadcrumb {
  padding: clamp(6px, 1.2vw, 12px) 0 clamp(10px, 1.5vw, 16px) !important;
  min-height: 0 !important;
  border-bottom: 1px solid var(--v5-line);
}

body.v5-layout:not(.home-v5-page) .page_breadcrumb .tab_label,
body.v5-layout:not(.home-v5-page) .page_breadcrumb .tab_label h1,
body.v5-layout:not(.home-v5-page) .page_breadcrumb h1.tab_label {
  font-size: clamp(1.35rem, 3.5vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  margin: 0;
  color: var(--v5-ink);
}

body.v5-layout:not(.home-v5-page) .page_breadcrumb .breadcrumb {
  justify-content: center;
  margin: 0;
  padding: 0;
  font-size: clamp(0.78rem, 1.8vw, 0.85rem);
  background: transparent;
}

body.v5-layout:not(.home-v5-page) .page_breadcrumb .breadcrumb a {
  color: var(--v5-green);
}

body.v5-layout:not(.home-v5-page) .about_banner .page_breadcrumb.about_breadcrumb {
  padding: 12px 0;
  border-bottom: none;
}

body.v5-layout:not(.home-v5-page) .about_banner .breadcrumb-item a,
body.v5-layout:not(.home-v5-page) .about_banner .breadcrumb-item.active {
  color: #fff !important;
}

@media (min-width: 768px) {
  body.v5-layout:not(.home-v5-page) .page_breadcrumb .breadcrumb {
    justify-content: flex-end;
  }
}

@media (max-width: 767.98px) {
  body.v5-layout:not(.home-v5-page) .page_breadcrumb .row > [class*="col-"] + [class*="col-"] {
    margin-top: 10px;
  }
}

/* ─── Product category / FF&E grids ───────────────────────────────────────── */
body.v5-layout:not(.home-v5-page) .product_collec_section {
  overflow-x: clip;
}

body.v5-layout:not(.home-v5-page) .product {
  margin-bottom: clamp(20px, 3vw, 32px);
}

body.v5-layout:not(.home-v5-page) .product_pic figure {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
}

body.v5-layout:not(.home-v5-page) .product_pic figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

body.v5-layout:not(.home-v5-page) .product_title {
  padding: 12px 4px;
  font-size: clamp(0.88rem, 2vw, 1rem);
  line-height: 1.35;
}

body.v5-layout:not(.home-v5-page) .product_title .btn {
  border-radius: 999px;
  white-space: nowrap;
  font-size: 0.8rem;
  padding: 6px 16px;
}

@media (max-width: 575.98px) {
  body.v5-layout:not(.home-v5-page) .product_title.d-flex {
    flex-direction: column;
    align-items: stretch !important;
    gap: 10px;
    text-align: center;
  }

  body.v5-layout:not(.home-v5-page) .product_title .btn {
    width: 100%;
  }
}

/* Green CTA band after product collections — restore legacy spacing */
body.v5-layout:not(.home-v5-page) section.sh-cta {
  background: #7cb72c !important;
  text-align: center;
  color: #fff;
  padding: 60px 0 !important;
}

body.v5-layout:not(.home-v5-page) section.sh-cta .sh-cta-title {
  color: #fff !important;
  font-family: "Poppins", sans-serif;
}

body.v5-layout:not(.home-v5-page) section.sh-cta a.default-button,
body.v5-layout:not(.home-v5-page) section.sh-cta .btn.default-button {
  color: #fff !important;
  border: 2px solid #fff !important;
  background: transparent !important;
  border-radius: 0;
}

body.v5-layout:not(.home-v5-page) section.sh-cta a.default-button:hover,
body.v5-layout:not(.home-v5-page) section.sh-cta .btn.default-button:hover {
  background: #669527 !important;
  color: #fff !important;
  border-color: #fff !important;
}

@media (min-width: 992px) {
  body.v5-layout:not(.home-v5-page) .collections,
  body.v5-layout:not(.home-v5-page) .collections-product {
    margin: -86px 0;
    z-index: 99;
    padding: 30px 0;
  }

  body.v5-layout:not(.home-v5-page) .collections + section.sh-cta,
  body.v5-layout:not(.home-v5-page) .collections-product + section.sh-cta {
    padding-top: 150px !important;
    padding-bottom: 60px !important;
  }
}

@media (max-width: 991.98px) {
  body.v5-layout:not(.home-v5-page) .collections,
  body.v5-layout:not(.home-v5-page) .collections-product {
    margin: 0;
    padding: 20px 0;
  }

  body.v5-layout:not(.home-v5-page) .collections + section.sh-cta,
  body.v5-layout:not(.home-v5-page) .collections-product + section.sh-cta {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
  }
}

/* Product detail banners */
body.v5-layout:not(.home-v5-page) section.detail-banner,
body.v5-layout:not(.home-v5-page) section.detail-banner-product {
  height: clamp(220px, 42vw, 460px);
  background-size: cover;
  background-position: center;
}

body.v5-layout:not(.home-v5-page) section.detail-banner .detail-banner-content,
body.v5-layout:not(.home-v5-page) section.detail-banner-product .detail-banner-content {
  bottom: clamp(24px, 6vw, 80px);
  left: var(--gutter);
  right: var(--gutter);
  width: auto;
  max-width: min(1140px, 100%);
  margin-inline: auto;
  border-radius: 8px;
}

body.v5-layout:not(.home-v5-page) .detail-banner-title {
  font-size: clamp(1.1rem, 3.5vw, 2rem) !important;
  padding: clamp(8px, 2vw, 14px) clamp(12px, 3vw, 20px) !important;
}

/* Product gallery grid (hospitality casegoods, soft seating, etc.) */
body.v5-layout:not(.home-v5-page) section.detail-gallery-view {
  padding: clamp(24px, 4vw, 48px) 0;
  overflow-x: clip;
}

body.v5-layout:not(.home-v5-page) .detail-gallery-main {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 24px);
  margin: 0;
  width: 100%;
}

body.v5-layout:not(.home-v5-page) .detail-gallery-item,
body.v5-layout:not(.home-v5-page) .detail-gallery-item-product {
  width: auto !important;
  padding: 0;
  min-width: 0;
  grid-column: span 2;
}

body.v5-layout:not(.home-v5-page) .detail-gallery-item:first-child,
body.v5-layout:not(.home-v5-page) .detail-gallery-item:nth-child(2) {
  width: auto !important;
  grid-column: span 3;
}

body.v5-layout:not(.home-v5-page) .detail-gallery-img {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

body.v5-layout:not(.home-v5-page) .detail-gallery-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.v5-layout:not(.home-v5-page) .detail-gallery-item .detail-gallery-img,
body.v5-layout:not(.home-v5-page) .detail-gallery-item:first-child .detail-gallery-img,
body.v5-layout:not(.home-v5-page) .detail-gallery-item:nth-child(2) .detail-gallery-img {
  height: clamp(200px, 24vw, 320px);
}

body.v5-layout:not(.home-v5-page) .detail-gallery-info {
  gap: 12px;
  padding: 12px 0 0;
}

body.v5-layout:not(.home-v5-page) .detail-gallery-info span {
  font-size: clamp(0.92rem, 2vw, 1.05rem);
  line-height: 1.35;
}

body.v5-layout:not(.home-v5-page) .detail-gallery-info .btn,
body.v5-layout:not(.home-v5-page) .detail-gallery-info a {
  border-radius: 999px;
  white-space: nowrap;
  font-size: 0.8rem;
  padding: 6px 16px;
}

@media (min-width: 768px) and (max-width: 991.98px) {
  body.v5-layout:not(.home-v5-page) .detail-gallery-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.v5-layout:not(.home-v5-page) .detail-gallery-item,
  body.v5-layout:not(.home-v5-page) .detail-gallery-item:first-child,
  body.v5-layout:not(.home-v5-page) .detail-gallery-item:nth-child(2) {
    grid-column: span 1;
  }
}

@media (max-width: 767.98px) {
  body.v5-layout:not(.home-v5-page) .detail-gallery-main {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  body.v5-layout:not(.home-v5-page) .detail-gallery-item,
  body.v5-layout:not(.home-v5-page) .detail-gallery-item:first-child,
  body.v5-layout:not(.home-v5-page) .detail-gallery-item:nth-child(2),
  body.v5-layout:not(.home-v5-page) .detail-gallery-item-product {
    grid-column: 1 / -1;
  }

  body.v5-layout:not(.home-v5-page) .detail-gallery-item .detail-gallery-img,
  body.v5-layout:not(.home-v5-page) .detail-gallery-item:first-child .detail-gallery-img,
  body.v5-layout:not(.home-v5-page) .detail-gallery-item:nth-child(2) .detail-gallery-img {
    height: clamp(200px, 55vw, 280px);
  }

  body.v5-layout:not(.home-v5-page) .detail-gallery-info {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  body.v5-layout:not(.home-v5-page) .detail-gallery-info .btn,
  body.v5-layout:not(.home-v5-page) .detail-gallery-info a {
    width: 100%;
    text-align: center;
  }

  /* Touch devices — show gallery actions without hover */
  body.v5-layout:not(.home-v5-page) .detail-gallery-img.hover-actions .show-hover-action {
    opacity: 1;
    transform: none;
  }
}

body.v5-layout:not(.home-v5-page) section.detail-intro1,
body.v5-layout:not(.home-v5-page) section.detail-intro2,
body.v5-layout:not(.home-v5-page) section.detail-intro3,
body.v5-layout:not(.home-v5-page) section.detail-intro4,
body.v5-layout:not(.home-v5-page) section.detail-intro5 {
  padding: clamp(32px, 5vw, 60px) var(--gutter);
}

/* detail-intro4 inside collections — legacy top padding only (pairs with .sh-cta overlap) */
body.v5-layout:not(.home-v5-page) .collections-product section.detail-intro4,
body.v5-layout:not(.home-v5-page) .collections section.detail-intro4 {
  padding: 60px 0 0 !important;
}

body.v5-layout:not(.home-v5-page) .detail-intro1-content p,
body.v5-layout:not(.home-v5-page) .detail-intro4-type1,
body.v5-layout:not(.home-v5-page) .detail-intro4-type2,
body.v5-layout:not(.home-v5-page) .page_heading p {
  font-size: clamp(0.92rem, 2vw, 1rem);
  line-height: 1.65;
}

body.v5-layout:not(.home-v5-page) .detail-intro2-content ul.list-before-check li {
  font-size: clamp(0.9rem, 2vw, 1rem);
  text-align: left;
}

@media (max-width: 767.98px) {
  body.v5-layout:not(.home-v5-page) .detail-intro1-content .detail-intro1-img {
    position: static;
    margin-top: 24px;
  }

  body.v5-layout:not(.home-v5-page) .detail-intro1-content .detail-intro1-img img {
    max-width: 100%;
    height: auto;
  }

  body.v5-layout:not(.home-v5-page) section.detail-intro3 {
    display: block;
  }

  body.v5-layout:not(.home-v5-page) section.detail-intro3 .detail-intro3-side-img {
    margin-bottom: 20px;
    padding: 0;
  }
}

/* ─── Blog listing & detail ───────────────────────────────────────────────── */
body.v5-layout:not(.home-v5-page) .blog-listing .blog_wrapper,
body.v5-layout:not(.home-v5-page) .blog_wrapper {
  max-width: 100%;
  overflow-x: clip;
}

body.v5-layout:not(.home-v5-page) .blog_details_content h1 {
  font-size: clamp(1.35rem, 3.8vw, 2rem);
  line-height: 1.25;
  margin-bottom: 12px;
}

body.v5-layout:not(.home-v5-page) .blog_details_content h2 {
  font-size: clamp(1.15rem, 3vw, 1.6rem);
}

body.v5-layout:not(.home-v5-page) .blog_details_content h3 {
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
}

body.v5-layout:not(.home-v5-page) .blog_details_content p,
body.v5-layout:not(.home-v5-page) .blog_details_content li {
  font-size: clamp(0.92rem, 2vw, 1rem);
  line-height: 1.7;
}

body.v5-layout:not(.home-v5-page) .blog_details_content img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

body.v5-layout:not(.home-v5-page) .blog_pic figure {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
}

body.v5-layout:not(.home-v5-page) .blog_details_elements {
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 8px;
}

body.v5-layout:not(.home-v5-page) .blog-category-chip {
  border-radius: 999px;
  font-family: "DM Sans", system-ui, sans-serif;
}

body.v5-layout:not(.home-v5-page) .blog-pagination__list .page-link {
  border-radius: 999px;
}

@media (max-width: 991.98px) {
  body.v5-layout:not(.home-v5-page) .blog_wrapper .col-md-8,
  body.v5-layout:not(.home-v5-page) .blog_wrapper .col-md-4,
  body.v5-layout:not(.home-v5-page) .blog-listing__main,
  body.v5-layout:not(.home-v5-page) .blog-listing__sidebar {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
  }

  body.v5-layout:not(.home-v5-page) .author-profile-section {
    padding: 20px !important;
  }

  body.v5-layout:not(.home-v5-page) .author-profile-section .author-name {
    font-size: clamp(1.25rem, 4vw, 1.75rem) !important;
  }
}

@media (max-width: 1024px) {
  /* Inner pages — full-width header on mobile/tablet (white strip like homepage) */
  body.v5-layout:not(.home-v5-page) .header-nav-wrap,
  body.v5-layout:not(.home-v5-page):has(> section.detail-banner) .header-nav-wrap,
  body.v5-layout:not(.home-v5-page):has(> section.detail-banner-product) .header-nav-wrap,
  body.v5-layout:not(.home-v5-page):has(#app > section.detail-banner:first-child) .header-nav-wrap,
  body.v5-layout:not(.home-v5-page):has(#app > section.detail-banner-product:first-child) .header-nav-wrap,
  body.v5-layout:not(.home-v5-page):has(> main.main_container > section.about_banner:first-child) .header-nav-wrap,
  body.v5-layout:not(.home-v5-page):has(> main.main_container > section.contact_banner:first-child) .header-nav-wrap,
  body.v5-layout:not(.home-v5-page):has(> main.main_container > section.categorie_timer_thankyou:first-child) .header-nav-wrap,
  body.v5-layout:not(.home-v5-page):has(> main.main_container > section.benefits_hero:first-child) .header-nav-wrap,
  body.v5-layout.page-contact .header-nav-wrap,
  body.v5-layout.page-thank-you .header-nav-wrap {
    margin-bottom: 0 !important;
    padding: 10px var(--gutter, 16px) 12px !important;
    background: #ffffff !important;
  }

  body.v5-layout:not(.home-v5-page) .header-nav-inner {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 999px !important;
    border: 2px solid var(--green) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16) !important;
  }
}

@media (max-width: 767.98px) {
  body.v5-layout:not(.home-v5-page) .blog-listing .container,
  body.v5-layout:not(.home-v5-page) .page_breadcrumb .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-inline: clamp(16px, 4.5vw, 22px) !important;
    box-sizing: border-box;
  }

  body.v5-layout:not(.home-v5-page) .blog-listing .section-padding {
    padding-top: clamp(20px, 4vw, 32px) !important;
    padding-bottom: clamp(28px, 5vw, 40px) !important;
  }

  body.v5-layout:not(.home-v5-page) .page_breadcrumb {
    padding-top: clamp(4px, 1vw, 8px) !important;
    padding-bottom: clamp(8px, 1.5vw, 12px) !important;
  }

  body.v5-layout:not(.home-v5-page) .page_breadcrumb .row {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 6px;
  }

  body.v5-layout:not(.home-v5-page) .page_breadcrumb .tab_label,
  body.v5-layout:not(.home-v5-page) .page_breadcrumb h1.tab_label {
    text-align: left !important;
    width: 100%;
  }

  body.v5-layout:not(.home-v5-page) .page_breadcrumb .breadcrumb {
    justify-content: flex-start !important;
    width: 100%;
  }

  body.v5-layout:not(.home-v5-page) .blog-listing__row,
  body.v5-layout:not(.home-v5-page) .blog-listing__main > .row {
    --bs-gutter-x: 0;
    margin-inline: 0;
  }

  body.v5-layout:not(.home-v5-page) .blog-listing__card {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding-inline: 0 !important;
    margin-bottom: clamp(24px, 5vw, 32px);
  }

  body.v5-layout:not(.home-v5-page) .blog-listing__card figure {
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
  }

  body.v5-layout:not(.home-v5-page) .blog-listing__card .blog_content {
    margin-bottom: 0;
  }

  body.v5-layout:not(.home-v5-page) .blog-listing__card .blog_heading h4 {
    font-size: clamp(1.05rem, 4.2vw, 1.25rem) !important;
    line-height: 1.35;
  }

  body.v5-layout:not(.home-v5-page) .blog-listing__card .blog_heading h6 {
    font-size: 0.82rem;
  }

  body.v5-layout:not(.home-v5-page) .blog-listing__card .blog_description {
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 14px;
  }

  body.v5-layout:not(.home-v5-page) .blog-listing__categories-mobile {
    margin-bottom: 18px;
  }

  body.v5-layout:not(.home-v5-page) .blog-listing__categories-mobile .blog-sidebar-label {
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    color: var(--v5-ink, #141414);
  }

  body.v5-layout:not(.home-v5-page) .blog-category-chip {
    font-size: 0.72rem;
    padding: 7px 12px;
  }

  body.v5-layout:not(.home-v5-page) .blog-listing__sidebar {
    display: none !important;
  }

  body.v5-layout:not(.home-v5-page) .blog-pagination-wrap {
    margin-top: 8px;
  }
}

/* ─── Portfolio listing & detail ──────────────────────────────────────────── */
body.v5-layout:not(.home-v5-page) .portfolio-listing .port-desc-section h3 {
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  line-height: 1.55;
  font-weight: 500;
  color: var(--v5-muted);
  padding-inline: var(--gutter);
}

body.v5-layout:not(.home-v5-page) .portfolio-filter-desktop {
  gap: 8px 10px;
  padding-inline: var(--gutter);
}

body.v5-layout:not(.home-v5-page) .portfolio-filter-desktop .search-btn-portfolio {
  font-size: clamp(0.68rem, 1.6vw, 0.8rem);
  padding: 8px 12px;
  border-radius: 999px !important;
}

body.v5-layout:not(.home-v5-page) .portfolio-col {
  margin-bottom: clamp(16px, 3vw, 28px);
}

body.v5-layout:not(.home-v5-page) .portfolio-item figure.effect-marley {
  border-radius: 12px;
}

/* Portfolio cards — keep white overlay text (legacy effect-marley); don't inherit inner-page heading color */
body.v5-layout:not(.home-v5-page) figure.effect-marley figcaption,
body.v5-layout:not(.home-v5-page) figure.effect-marley figcaption h2,
body.v5-layout:not(.home-v5-page) figure.effect-marley .portfolio_new_desc,
body.v5-layout:not(.home-v5-page) figure.effect-marley .portfolio_new_desc span {
  color: #fff !important;
}

body.v5-layout:not(.home-v5-page) figure.effect-marley .portfolio_new_desc span {
  border-bottom-color: #fff !important;
}

body.v5-layout:not(.home-v5-page) .button-wrapper {
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px var(--gutter);
}

body.v5-layout:not(.home-v5-page) .button-wrapper .btn {
  border-radius: 999px;
  font-size: clamp(0.78rem, 1.8vw, 0.88rem);
}

body.v5-layout:not(.home-v5-page) .portfolio-description {
  font-size: clamp(0.92rem, 2vw, 1rem);
  line-height: 1.65;
}

@media (max-width: 575.98px) {
  body.v5-layout:not(.home-v5-page) .button-wrapper {
    justify-content: center !important;
  }

  body.v5-layout:not(.home-v5-page) .button-wrapper .btn {
    width: 100%;
    text-align: center;
  }
}

/* ─── Contact page ────────────────────────────────────────────────────────── */
body.v5-layout.page-contact .header-nav-wrap {
  margin-bottom: calc(-1 * (var(--header-nav-h) + 12px)) !important;
  background: transparent !important;
  position: sticky;
  top: 0;
  z-index: 1000;
}

body.v5-layout.page-contact > main.main_container {
  max-width: 100%;
  padding-top: 0;
}

body.v5-layout.page-contact .contact_banner {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

body.v5-layout.page-contact .contact_banner figure,
body.v5-layout:not(.home-v5-page) .contact_banner figure {
  margin: 0;
  padding: 0;
  width: 100%;
  height: clamp(260px, 42vw, 460px);
  max-height: none;
  overflow: hidden;
}

body.v5-layout.page-contact .contact_banner figure img,
body.v5-layout:not(.home-v5-page) .contact_banner figure img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center;
  vertical-align: top !important;
}

body.v5-layout:not(.home-v5-page) .section-padding-contact {
  padding: clamp(28px, 5vw, 50px) 0;
}

body.v5-layout:not(.home-v5-page) .message_box .form-control,
body.v5-layout:not(.home-v5-page) .message_box textarea.form-control {
  border-radius: 10px;
  font-size: 1rem;
  min-height: 48px;
}

body.v5-layout:not(.home-v5-page) .message_box label {
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
}

body.v5-layout:not(.home-v5-page) .default-button,
body.v5-layout:not(.home-v5-page) .submit-button {
  border-radius: 999px;
  padding: 12px 28px;
  font-size: 0.9rem;
}

body.v5-layout:not(.home-v5-page) .main_container a.default-button,
body.v5-layout:not(.home-v5-page) .main_container .default-button {
  color: #fff !important;
  background-color: var(--v5-green);
  border: 1px solid var(--v5-green);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.04em;
}

body.v5-layout:not(.home-v5-page) .main_container a.default-button:hover,
body.v5-layout:not(.home-v5-page) .main_container .default-button:hover {
  color: var(--v5-green) !important;
  background-color: #fff;
  border-color: var(--v5-green);
}

body.v5-layout:not(.home-v5-page) .contact_info {
  font-size: clamp(0.9rem, 2vw, 1rem);
}

body.v5-layout:not(.home-v5-page) .social-icons-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

@media (max-width: 575.98px) {
  body.v5-layout:not(.home-v5-page) .contact_info {
    margin-top: 24px;
  }
}

/* ─── About page ──────────────────────────────────────────────────────────── */
body.v5-layout:not(.home-v5-page) .about_banner figure {
  margin: 0;
  max-height: clamp(220px, 40vw, 420px);
  overflow: hidden;
}

body.v5-layout:not(.home-v5-page) .about_banner figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.v5-layout:not(.home-v5-page) .about_company_section .picture_frame_content h1 {
  font-size: clamp(1.5rem, 4.5vw, 2.25rem);
  line-height: 1.15;
}

body.v5-layout:not(.home-v5-page) .picture_frame_content h4 {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
}

body.v5-layout:not(.home-v5-page) .picture_frame_content p {
  font-size: clamp(0.92rem, 2vw, 1rem);
  line-height: 1.7;
}

body.v5-layout:not(.home-v5-page) .picture_frame figure {
  margin: 0;
}

body.v5-layout:not(.home-v5-page) .about_company_section .col-lg-6.order-lg-7 {
  order: unset;
}

@media (max-width: 991.98px) {
  body.v5-layout:not(.home-v5-page) .about_company_section .picture_frame_content--box {
    padding: 24px var(--gutter);
  }

  body.v5-layout:not(.home-v5-page) .picture_frame {
    padding: 0 var(--gutter) 24px;
  }
}

/* ─── Benefits & Features page ────────────────────────────────────────────── */
body.v5-layout:not(.home-v5-page) .benefits_hero {
  height: clamp(280px, 50vw, 550px) !important;
  padding: 0 var(--gutter);
}

body.v5-layout:not(.home-v5-page) .benefits_hero .hero_title {
  font-size: clamp(1.35rem, 4.5vw, 2.25rem) !important;
  line-height: 1.2 !important;
}

body.v5-layout:not(.home-v5-page) .benefits_hero .hero_subtitle {
  font-size: clamp(0.88rem, 2.2vw, 1rem) !important;
  line-height: 1.6 !important;
}

body.v5-layout:not(.home-v5-page) .benefits_hero .btn-green {
  border-radius: 999px;
  padding: 12px 24px;
  font-size: 0.9rem;
}

body.v5-layout:not(.home-v5-page) .benefits_section .section_title,
body.v5-layout:not(.home-v5-page) .intro_section .section_title {
  font-size: clamp(1.25rem, 3.5vw, 1.75rem);
  text-align: center;
}

body.v5-layout:not(.home-v5-page) .benefit_card {
  height: 100%;
}

body.v5-layout:not(.home-v5-page) .benefit_title {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
}

body.v5-layout:not(.home-v5-page) .benefit_desc {
  font-size: clamp(0.88rem, 2vw, 0.95rem);
  line-height: 1.6;
}

body.v5-layout:not(.home-v5-page) .intro_card .intro_img {
  min-height: clamp(200px, 40vw, 320px);
  background-size: cover;
  background-position: center;
  border-radius: 12px;
}

/* ─── Legal / static content pages ────────────────────────────────────────── */
body.v5-layout:not(.home-v5-page) .privacy_policy_section,
body.v5-layout:not(.home-v5-page) .terms_section {
  padding: clamp(32px, 5vw, 56px) var(--gutter);
}

body.v5-layout:not(.home-v5-page) .privacy_policy_section h1,
body.v5-layout:not(.home-v5-page) .privacy_policy_section h4 {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
}

body.v5-layout:not(.home-v5-page) .privacy_policy_section p,
body.v5-layout:not(.home-v5-page) .privacy_policy_section li {
  font-size: clamp(0.92rem, 2vw, 1rem);
  line-height: 1.7;
}

/* ─── FAQ accordion (included on many pages) ──────────────────────────────── */
body.v5-layout:not(.home-v5-page) .faq-block {
  max-width: min(var(--max), 100%);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

body.v5-layout:not(.home-v5-page) .faq-block .accordion-header button {
  font-size: clamp(0.9rem, 2.2vw, 1rem);
  line-height: 1.4;
  padding: 14px 16px;
  text-align: left;
}

body.v5-layout:not(.home-v5-page) .faq-block .accordion-body {
  font-size: clamp(0.88rem, 2vw, 0.95rem);
  line-height: 1.65;
}

/* ─── Location / material / case studies ──────────────────────────────────── */
body.v5-layout:not(.home-v5-page) .service_section,
body.v5-layout:not(.home-v5-page) .material_section,
body.v5-layout:not(.home-v5-page) .case_study_section {
  overflow-x: clip;
}

body.v5-layout:not(.home-v5-page) .large_banner_info h3,
body.v5-layout:not(.home-v5-page) .page_heading h3 {
  font-size: clamp(1.15rem, 3vw, 1.5rem);
}

/* ─── Buttons & forms (global inner pages) ────────────────────────────────── */
body.v5-layout:not(.home-v5-page) a.case_study_read_more,
body.v5-layout:not(.home-v5-page) a.press_read_more {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  text-decoration: none !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.4;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid var(--v5-green);
  background: var(--v5-green) !important;
  color: #fff !important;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

body.v5-layout:not(.home-v5-page) a.case_study_read_more:hover,
body.v5-layout:not(.home-v5-page) a.press_read_more:hover {
  background: var(--v5-green-dark) !important;
  border-color: var(--v5-green-dark);
  color: #fff !important;
}

body.v5-layout:not(.home-v5-page) a.btn-green,
body.v5-layout:not(.home-v5-page) .main_container a.btn-green {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none !important;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 999px;
  padding: 12px 24px;
  border: 1px solid var(--v5-green);
  background: var(--v5-green) !important;
  color: #fff !important;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

body.v5-layout:not(.home-v5-page) a.btn-green:hover,
body.v5-layout:not(.home-v5-page) .main_container a.btn-green:hover {
  background: var(--v5-green-dark) !important;
  border-color: var(--v5-green-dark);
  color: #fff !important;
}

body.v5-layout:not(.home-v5-page) a.read_more {
  color: var(--v5-green) !important;
  text-decoration: none !important;
  font-weight: 600;
}

body.v5-layout:not(.home-v5-page) a.read_more:hover {
  color: var(--v5-green-dark) !important;
}

body.v5-layout:not(.home-v5-page) .btn.btn-outline-dark,
body.v5-layout:not(.home-v5-page) .btn.btn-primary,
body.v5-layout:not(.home-v5-page) .btn.btn-outline-primary {
  border-radius: 999px;
}

body.v5-layout:not(.home-v5-page) .btn.btn-primary,
body.v5-layout:not(.home-v5-page) .main_container .btn.btn-primary {
  background: var(--v5-green) !important;
  border-color: var(--v5-green) !important;
  color: #fff !important;
}

body.v5-layout:not(.home-v5-page) .btn.btn-primary:hover,
body.v5-layout:not(.home-v5-page) .main_container .btn.btn-primary:hover {
  background: var(--v5-green-dark) !important;
  border-color: var(--v5-green-dark) !important;
  color: #fff !important;
}

body.v5-layout:not(.home-v5-page) .btn {
  font-size: clamp(0.8rem, 1.8vw, 0.9rem);
}

@media (max-width: 768px) {
  body.v5-layout:not(.home-v5-page) .quote-tab {
    display: block !important;
    color: #fff !important;
    background: var(--v5-green) !important;
  }
}

/* ─── Case studies ─────────────────────────────────────────────────────────── */
/* Listing + detail banners — restore legacy cover images and white hero text */
body.v5-layout:not(.home-v5-page) .case_studies_banner figure img,
body.v5-layout:not(.home-v5-page) .case_study_card_img img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  object-fit: cover !important;
}

body.v5-layout:not(.home-v5-page) .case_studies_banner .case_studies_title_box h1,
body.v5-layout:not(.home-v5-page) .parallax_bg .case_studies_title_box h1,
body.v5-layout:not(.home-v5-page) .parallax_bg h1 {
  color: #fff !important;
  font-family: "Poppins", sans-serif !important;
}

body.v5-layout:not(.home-v5-page) .case_study_card_title {
  color: #18191b !important;
  font-family: "Poppins", sans-serif !important;
}

body.v5-layout:not(.home-v5-page) .case_study_card_excerpt {
  color: #7a7a7a !important;
}

body.v5-layout:not(.home-v5-page) .case_studies_section .section_title {
  color: #18191b !important;
  font-family: "Poppins", sans-serif !important;
}

body.v5-layout:not(.home-v5-page) .case_studies_section .section_desc {
  color: #000 !important;
  font-family: "Poppins", sans-serif !important;
}

body.v5-layout:not(.home-v5-page) .case_study_detail .case_study_hero {
  background-attachment: scroll;
}

body.v5-layout:not(.home-v5-page) .case_study_detail .case_study_hero h1,
body.v5-layout:not(.home-v5-page) .case_study_detail .case_study_hero .subtitle {
  color: #fff !important;
}

@media (max-width: 991.98px) {
  body.v5-layout:not(.home-v5-page) .case_study_detail .case_study_hero {
    height: auto !important;
    min-height: clamp(300px, 55vw, 420px);
    padding: calc(var(--header-nav-h, 60px) + 20px) var(--gutter, 16px) 36px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    overflow: hidden;
  }

  body.v5-layout:not(.home-v5-page) .case_study_detail .case_study_hero .hero_content {
    padding: 0 !important;
    width: 100%;
    text-align: center;
  }

  body.v5-layout:not(.home-v5-page) .case_study_detail .case_study_hero h1 {
    font-size: clamp(1.25rem, 4.8vw, 1.75rem) !important;
    line-height: 1.25 !important;
    max-width: 100% !important;
    margin-bottom: 12px !important;
    color: #fff !important;
  }

  body.v5-layout:not(.home-v5-page) .case_study_detail .case_study_hero .subtitle {
    font-size: clamp(0.9rem, 2.8vw, 1.05rem) !important;
    line-height: 1.5 !important;
    max-width: 100% !important;
    color: #fff !important;
  }
}

body.v5-layout:not(.home-v5-page) .case_study_detail .introduction_content_section .row {
  justify-content: center;
}

body.v5-layout:not(.home-v5-page) .case_study_detail .introduction_content_section .col-lg-5,
body.v5-layout:not(.home-v5-page) .case_study_detail .introduction_content_section .col-lg-6 {
  text-align: center;
}

body.v5-layout:not(.home-v5-page) .case_study_detail .introduction_content_section .col-lg-5 {
  padding-left: 0 !important;
  padding-right: 0;
  margin-inline: auto;
  max-width: 720px;
}

body.v5-layout:not(.home-v5-page) .case_study_detail .introduction_content_section .introduction_image {
  margin-inline: auto;
  max-width: 640px;
}

body.v5-layout:not(.home-v5-page) .case_study_detail .introduction_content_section .introduction_title,
body.v5-layout:not(.home-v5-page) .case_study_detail .introduction_content_section .introduction_content,
body.v5-layout:not(.home-v5-page) .case_study_detail .introduction_content_section .introduction_content :is(p, li, span, h1, h2, h3, h4, h5, h6) {
  text-align: center !important;
}

body.v5-layout:not(.home-v5-page) .case_study_detail .introduction_content_section .introduction_content :is(ul, ol) {
  list-style-position: inside;
  padding-left: 0;
  margin-inline: auto;
  text-align: center !important;
}

@media (max-width: 767.98px) {
  body.v5-layout:not(.home-v5-page) .main_container .case_studies_banner {
    height: clamp(220px, 52vw, 320px) !important;
  }

  body.v5-layout:not(.home-v5-page) .main_container .case_studies_title_box {
    width: calc(100% - 2 * var(--gutter, 16px)) !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 52px;
    bottom: clamp(20px, 5vw, 40px);
    padding: 10px 16px;
    box-sizing: border-box;
  }

  body.v5-layout:not(.home-v5-page) .main_container .case_studies_title_box h1 {
    font-size: clamp(1.1rem, 4.2vw, 1.5rem) !important;
    line-height: 1.3 !important;
    white-space: normal;
  }
}

/* ─── Modals ──────────────────────────────────────────────────────────────── */
@media (max-width: 575.98px) {
  body.v5-layout:not(.home-v5-page) .modal-dialog {
    margin: 12px;
    max-width: calc(100% - 24px);
  }
}

/* ─── Swiper carousels on inner pages ─────────────────────────────────────── */
body.v5-layout:not(.home-v5-page) .swiper {
  overflow: hidden;
  padding-bottom: 8px;
}

body.v5-layout:not(.home-v5-page) .swiper-button-next,
body.v5-layout:not(.home-v5-page) .swiper-button-prev {
  color: var(--v5-green);
}

/* ─── Canada / trade / industries pages ───────────────────────────────────── */
body.v5-layout:not(.home-v5-page) .detail-banner-content-sh-trade {
  padding: clamp(16px, 4vw, 32px);
}

body.v5-layout:not(.home-v5-page) .detail-banner-content-sh-trade .detail-banner-title {
  font-size: clamp(1.1rem, 3.5vw, 1.75rem) !important;
}

@media (max-width: 767.98px) {
  body.v5-layout:not(.home-v5-page) .portfolio-listing .port-desc-section {
    padding-top: 8px;
  }

  body.v5-layout:not(.home-v5-page) .text-justify {
    text-align: left !important;
  }

  body.v5-layout:not(.home-v5-page) .ps-lg-5 {
    padding-left: 0 !important;
  }
}

/* ─── Thank You page ──────────────────────────────────────────────────────── */
body.v5-layout.page-thank-you .header-nav-wrap {
  margin-bottom: calc(-1 * (var(--header-nav-h) + 12px)) !important;
  background: transparent !important;
  position: sticky;
  top: 0;
  z-index: 1000;
}

body.v5-layout.page-thank-you > main.main_container {
  max-width: 100%;
  padding-top: 0;
}

body.v5-layout.page-thank-you .thank-you-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: clamp(480px, 72vh, 720px);
  margin: 0;
  padding: clamp(120px, 18vw, 180px) 0 clamp(64px, 10vw, 96px);
  background-color: #141414;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

body.v5-layout.page-thank-you .thank-you-hero .dark_overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

body.v5-layout.page-thank-you .thank-you-hero .div_Zindex {
  position: relative;
  z-index: 2;
  width: 100%;
}

body.v5-layout.page-thank-you .thankyou-container {
  display: flex;
  justify-content: center;
  width: min(900px, calc(100% - 2 * var(--gutter))) !important;
  max-width: none !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

body.v5-layout.page-thank-you .thankyou-box {
  width: 100%;
  text-align: center;
}

body.v5-layout.page-thank-you .thankyou-box h1 {
  color: #fff !important;
  font-size: clamp(2.5rem, 8vw, 5.5rem) !important;
  letter-spacing: clamp(4px, 1.5vw, 16px) !important;
  font-weight: 500;
  font-family: Georgia, "Times New Roman", serif;
  margin-bottom: 20px;
}

body.v5-layout.page-thank-you .thankyou-box p {
  color: #fff !important;
  font-size: 1.125rem;
  margin-bottom: 24px;
  font-family: Georgia, "Times New Roman", serif;
}

body.v5-layout.page-thank-you .thankyou-box .additional-info,
body.v5-layout.page-thank-you .thankyou-box .additional-info p {
  margin-top: 0;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 1rem;
}

body.v5-layout.page-thank-you .thankyou-box .additional-info a {
  color: #fff !important;
  text-decoration: underline;
}

body.v5-layout.page-thank-you .thankyou-box .btn-home {
  display: inline-block;
  background-color: var(--v5-green) !important;
  color: #fff !important;
  text-decoration: none !important;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  transition: background-color 0.2s ease;
}

body.v5-layout.page-thank-you .thankyou-box .btn-home:hover {
  background-color: var(--v5-green-dark) !important;
  color: #fff !important;
}

body.v5-layout.page-thank-you .thankyou-box .social-icons {
  margin: clamp(40px, 6vw, 72px) 0 0;
}

body.v5-layout.page-thank-you .thankyou-box .social-icons a {
  display: inline-block;
  margin: 0 10px;
}

body.v5-layout.page-thank-you .thankyou-box .social-icons img {
  width: 36px;
  height: auto;
}

@media (max-width: 767.98px) {
  body.v5-layout.page-thank-you .thankyou-box h1 {
    font-size: clamp(2rem, 12vw, 3.75rem) !important;
    letter-spacing: 4px !important;
  }

  body.v5-layout.page-thank-you .thank-you-hero {
    min-height: clamp(420px, 78vh, 560px);
    padding-top: clamp(96px, 22vw, 140px);
  }
}
