/* Shared public-site compatibility and layout styles */
.mabe-hero {
  align-items: center;
  background:
    linear-gradient(
      90deg,
      rgba(9, 17, 25, 0.9) 0%,
      rgba(9, 17, 25, 0.62) 55%,
      rgba(9, 17, 25, 0.3) 100%
    ),
    linear-gradient(0deg, rgba(9, 17, 25, 0.55) 0%, rgba(9, 17, 25, 0) 40%),
    url('/images/mabe/hero-pergola-pool-1600.jpg') center 55% / cover no-repeat;
  color: var(--mabe-white);
  display: flex;
  min-height: 650px;
  overflow: hidden;
  position: relative;
}

@media (max-width: 767.98px) {
  .mabe-hero {
    background-image:
      linear-gradient(
        90deg,
        rgba(9, 17, 25, 0.9) 0%,
        rgba(9, 17, 25, 0.62) 55%,
        rgba(9, 17, 25, 0.3) 100%
      ),
      linear-gradient(0deg, rgba(9, 17, 25, 0.55) 0%, rgba(9, 17, 25, 0) 40%),
      var(
        --mabe-mobile-shuffle-image,
        url('/images/mabe/mobile-pergola-01.jpg')
      );
  }
}

.mabe-hero::after {
  background: var(--mabe-accent);
  bottom: 0;
  content: '';
  height: 7px;
  left: 0;
  position: absolute;
  width: 38%;
}

.mabe-hero h1 {
  color: var(--mabe-white);
  font-size: clamp(2.5rem, 5.1vw, 4.8rem);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0 0 1.5rem;
  max-width: 920px;
  text-transform: none;
}

.mabe-eyebrow {
  color: var(--mabe-accent);
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.mabe-hero-lead {
  color: #edf1f4;
  font-size: 1.2rem;
  max-width: 760px;
}

.mabe-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.mabe-hero-actions .btn-outline-light {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background: rgba(15, 23, 42, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.78);
  color: #ffffff !important;
  font-weight: 600;
}

.mabe-hero-actions .btn-outline-light:hover {
  background: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  color: #0f172a !important;
  transform: translateY(-2px);
}

.mabe-hero-actions .btn-hero-call {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  color: #ffffff !important;
  font-weight: 600;
}

.mabe-hero-actions .btn-hero-call:hover {
  background: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  color: #0f172a !important;
  transform: translateY(-2px);
}

.mabe-hero-actions .btn-hero-call i {
  color: #ffffff;
}

.mabe-hero-actions .btn-hero-call:hover i {
  color: #0f172a;
}

.mabe-hero-actions .btn-primary {
  background: var(--mabe-primary);
  border-color: var(--mabe-primary);
  box-shadow: 0 4px 18px rgba(205, 0, 5, 0.4);
  color: #ffffff !important;
  font-weight: 700;
}

.mabe-hero-actions .btn-primary:hover {
  background: var(--mabe-primary-hover);
  border-color: var(--mabe-primary-hover);
  box-shadow: 0 8px 25px rgba(205, 0, 5, 0.55);
  transform: translateY(-2px);
}

.mabe-contact-ribbon {
  background: var(--mabe-ink);
}

.mabe-contact-ribbon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.mabe-contact-ribbon-grid > a {
  align-items: center;
  border-right: 1px solid rgba(255, 255, 255, 0.13);
  color: var(--mabe-white);
  display: flex;
  gap: 1rem;
  min-height: 96px;
  padding: 1rem 1.4rem;
}

.mabe-contact-ribbon-grid > a:first-child {
  border-left: 1px solid rgba(255, 255, 255, 0.13);
}

.mabe-contact-ribbon-grid > a:hover {
  background: rgba(205, 0, 5, 0.1);
}

.mabe-contact-ribbon-grid i {
  color: var(--mabe-accent);
  font-size: 1.55rem;
}

.mabe-contact-ribbon-grid span,
.mabe-contact-ribbon-grid strong {
  display: block;
}

.mabe-contact-ribbon-grid small {
  color: #aeb7bf;
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mabe-contact-ribbon-grid strong {
  color: var(--mabe-white);
  font-size: 0.96rem;
}

.mabe-section,
.mabe-story-section,
.mabe-requirements-section,
.mabe-quote-section,
.mabe-map-section {
  padding: clamp(2.25rem, 3.5vw, 3rem) 0;
}

.mabe-story-section,
.mabe-quote-section {
  background: var(--mabe-soft);
}

.section-title {
  color: var(--mabe-accent-dark);
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 0.11em;
  line-height: 28px;
  margin: 0;
  text-transform: uppercase;
}

.section-sub-title {
  font-size: 36px;
  font-weight: 900;
  line-height: 46px;
  margin: 0 0 1.15rem;
  text-transform: none;
}

.column-title {
  margin: 0 0 40px;
}

@media (max-width: 575px) {
  .section-sub-title {
    font-size: 28px;
  }
}

.mabe-section-intro {
  font-size: 1.08rem;
  margin: 0 auto 3rem;
  max-width: 820px;
}

.mabe-story-image {
  border-radius: var(--mabe-radius);
  box-shadow: var(--mabe-shadow);
  min-height: 500px;
  overflow: hidden;
  position: relative;
}

.mabe-story-image img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.mabe-story-image span {
  background: var(--mabe-accent);
  bottom: 0;
  color: #111820;
  left: 0;
  padding: 1.2rem 1.5rem;
  position: absolute;
  width: min(82%, 420px);
}

.mabe-story-image strong {
  display: block;
  font-size: 1.35rem;
}

.mabe-rounded-image {
  border-radius: var(--mabe-radius);
  box-shadow: var(--mabe-shadow);
  max-height: 500px;
  object-fit: cover;
  width: 100%;
}

.mabe-benefit-card {
  background: var(--mabe-ink);
  border-radius: var(--mabe-radius);
  color: #cbd2d8;
  height: 100%;
  padding: 2rem 1.6rem;
}

.mabe-benefit-card-light {
  background: var(--mabe-white);
  border: 1px solid var(--mabe-line);
  color: var(--mabe-muted);
}

.mabe-benefit-card i {
  color: var(--mabe-accent);
  font-size: 2rem;
  margin-bottom: 1.25rem;
}

.mabe-benefit-card h3 {
  color: var(--mabe-white);
  font-size: 1.16rem;
  text-transform: none;
}

.mabe-benefit-card-light h3 {
  color: var(--mabe-ink);
}

.mabe-process-list {
  counter-reset: none;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
}

.mabe-process-list li {
  background: var(--mabe-white);
  border-radius: var(--mabe-radius);
  box-shadow: 0 8px 25px rgba(17, 28, 39, 0.06);
  padding: 1.6rem;
  position: relative;
}

.mabe-process-list li > span {
  align-items: center;
  background: var(--mabe-primary);
  border-radius: 50%;
  color: var(--mabe-white);
  display: flex;
  font-size: 1.1rem;
  font-weight: 800;
  height: 44px;
  justify-content: center;
  margin-bottom: 1.25rem;
  width: 44px;
}

.mabe-process-list h3 {
  font-size: 1.08rem;
  text-transform: none;
}

.project-img-container {
  background: var(--mabe-white);
  border: 1px solid var(--mabe-line);
  border-radius: var(--mabe-radius);
  box-shadow: 0 8px 25px rgba(17, 28, 39, 0.06);
  height: 100%;
  overflow: hidden;
}

.project-img-container > a {
  display: block;
  height: 245px;
  overflow: hidden;
}

.project-img-container > a img {
  height: 100%;
  object-fit: cover;
  transition: transform 350ms ease;
  width: 100%;
}

.project-img-container:hover > a img {
  transform: scale(1.035);
}

.project-item-info {
  background: var(--mabe-white) !important;
  opacity: 1 !important;
  padding: 1.4rem 1.5rem 1.6rem;
  position: static !important;
  transform: none !important;
}

.project-item-info-content {
  left: auto !important;
  padding: 0 !important;
  position: static !important;
  top: auto !important;
  transform: none !important;
}

.project-item-title {
  font-size: 1.15rem;
  line-height: 1.4;
  text-transform: none;
}

.project-item-title a,
.project-cat {
  color: var(--mabe-ink) !important;
}

.project-cat {
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.65;
  min-height: 4.8em;
  text-transform: none;
}

.mabe-cta,
.mabe-quote-explainer {
  background: var(--mabe-ink);
  color: #d7dde2;
  padding: 58px 0;
}

.mabe-cta h2,
.mabe-quote-explainer h2 {
  color: var(--mabe-white);
  margin-bottom: 0.6rem;
  text-transform: none;
}

.mabe-quote-explainer {
  border-bottom: 6px solid var(--mabe-accent);
}

.mabe-quote {
  border-left: 5px solid var(--mabe-accent);
  color: var(--mabe-ink);
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 2rem;
  padding: 1rem 0 1rem 1.5rem;
}

.banner-area {
  background-image:
    linear-gradient(rgba(9, 17, 25, 0.74), rgba(9, 17, 25, 0.74)),
    url('/images/mabe/about-banner.jpg') !important;
  background-position: center 45% !important;
  background-size: cover !important;
  color: #fff;
  min-height: 300px;
  position: relative;
}

.banner-area + .mabe-section,
.banner-area + .mabe-story-section,
.banner-area + .mabe-requirements-section,
.banner-area + .mabe-quote-section,
.banner-area + .mabe-map-section {
  padding-top: clamp(1.75rem, 2.5vw, 2.25rem);
}

.projects-page .banner-area {
  background-image:
    linear-gradient(rgba(9, 17, 25, 0.62), rgba(9, 17, 25, 0.62)),
    url('/images/mabe/projects-banner.jpg') !important;
  background-position: center 48% !important;
}

@media (max-width: 767.98px) {
  .about-page .banner-area {
    background-image:
      linear-gradient(rgba(9, 17, 25, 0.74), rgba(9, 17, 25, 0.74)),
      var(
        --mabe-mobile-shuffle-image,
        url('/images/mabe/mobile-pergola-01.jpg')
      ) !important;
    background-position: center 48% !important;
  }

  .projects-page .banner-area {
    background-image:
      linear-gradient(rgba(9, 17, 25, 0.62), rgba(9, 17, 25, 0.62)),
      var(
        --mabe-mobile-shuffle-image,
        url('/images/mabe/mobile-pergola-01.jpg')
      ) !important;
    background-position: center 48% !important;
  }
}

.banner-title {
  color: #fff;
  font-size: 58px;
  font-weight: 900;
  text-transform: none;
}

.banner-text {
  left: 0;
  margin: 0 auto;
  max-width: 1170px;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  z-index: 1;
}

.banner-heading {
  text-align: center;
}

.catalog-breadcrumbs .breadcrumb {
  background: none;
  font-size: 12px;
  font-weight: 700;
  padding: 0;
  text-transform: uppercase;
}

.catalog-breadcrumbs .breadcrumb a,
.catalog-breadcrumbs .breadcrumb-item {
  color: #fff !important;
}

.catalog-breadcrumbs .breadcrumb-item + .breadcrumb-item::before {
  color: #fff;
}

@media (max-width: 767px) {
  .banner-title {
    font-size: 48px;
  }
}

@media (max-width: 575px) {
  .banner-title {
    font-size: 32px;
  }
}

.accordion-group .card {
  border-bottom: 1px solid #dfdfdf !important;
  border-radius: 0;
  margin-bottom: 10px;
}

.accordion-group .card-body {
  padding: 15px 20px;
}

.accordion-group .card-body img {
  margin-bottom: 10px;
  max-width: 100px;
}

.accordion-group .card-header .btn {
  font-size: 16px;
  font-weight: 700;
  padding: 13px 15px 10px;
  text-transform: uppercase;
}

.accordion-group .card-header .btn::before {
  background-color: #333;
  border-radius: 3px;
  color: #fff;
  content: '\f107';
  font-family: 'Font Awesome 5 Free';
  font-size: 14px;
  font-weight: 700;
  padding: 3px 8px 1px;
  position: absolute;
  right: 16px;
  text-align: center;
  top: 12px;
  transition: 0.3s;
  z-index: 0;
}

.accordion-group .card-header .btn[aria-expanded='true'] {
  color: var(--mabe-primary);
}

.accordion-group .card-header .btn[aria-expanded='true']::before {
  background-color: var(--mabe-primary);
  content: '\f106';
}

.accordion-group.accordion-classic .card-header .btn::before {
  display: none;
}

.mabe-check-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.mabe-check-list li {
  border-bottom: 1px solid var(--mabe-line);
  padding: 0.7rem 0 0.7rem 1.8rem;
  position: relative;
}

.mabe-check-list i {
  color: var(--mabe-accent-dark);
  left: 0;
  position: absolute;
  top: 1rem;
}

.mabe-quote-card,
.mabe-detail-note,
.mabe-status-note {
  background: var(--mabe-soft);
  border-left: 5px solid var(--mabe-accent);
  border-radius: 0 var(--mabe-radius) var(--mabe-radius) 0;
  padding: 1.6rem;
}

.mabe-requirements-section .mabe-quote-card,
.mabe-quote-section .mabe-detail-note {
  background: var(--mabe-white);
}

.mabe-quote-card h2,
.mabe-quote-card h3,
.mabe-detail-note h2,
.mabe-detail-note h3 {
  text-transform: none;
}

.mabe-quote-card-sticky {
  position: sticky;
  top: 2rem;
}

.mabe-quote-card-sticky > i {
  color: var(--mabe-accent-dark);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.mabe-secondary-link {
  display: block;
  font-weight: 700;
  margin-top: 1.2rem;
}

.mabe-prose h1,
.mabe-prose h2 {
  margin-top: 2rem;
  text-transform: none;
}

.mabe-prose h1 {
  font-size: 2rem;
}

.mabe-prose h2 {
  font-size: 1.35rem;
}

.mabe-status-note {
  color: var(--mabe-ink);
  margin-bottom: 2rem;
}

.mabe-not-found {
  align-items: center;
  background: var(--mabe-soft);
  display: flex;
  min-height: 620px;
  padding: 5rem 0;
}

.mabe-not-found-code {
  color: var(--mabe-accent-dark);
  font-size: clamp(5rem, 13vw, 10rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.9;
  margin: 0;
}

.mabe-not-found h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-top: 1.5rem;
  text-transform: none;
}

@media (max-width: 1199.98px) {
  .mabe-process-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 991.98px) {
  .mabe-section,
  .mabe-story-section,
  .mabe-process-section,
  .mabe-requirements-section,
  .mabe-quote-section,
  .mabe-map-section {
    padding: clamp(1.5rem, 3vw, 2rem) 0;
  }

  .mabe-hero {
    min-height: 560px;
  }

  .mabe-contact-ribbon-grid {
    grid-template-columns: 1fr;
  }

  .mabe-contact-ribbon-grid > a,
  .mabe-contact-ribbon-grid > a:first-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
    border-left: 0;
    border-right: 0;
    min-height: 82px;
  }

  .mabe-product-layout,
  .mabe-product-top-row,
  .mabe-category-layout,
  .mabe-category-top-row {
    gap: 20px;
    grid-template-columns: 1fr;
  }

  .catalog-sidebar-column {
    order: 2;
  }

  .mabe-product-content,
  .mabe-product-hero-wrapper,
  .catalog-category-content {
    order: 1;
  }

  .catalog-sidebar {
    max-width: none;
  }

  .mabe-product-hero-card {
    gap: 24px;
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .mabe-product-copy {
    padding-top: 0;
  }

  .mabe-features-cards-grid,
  .mabe-applications-grid,
  .mabe-materials-grid,
  .mabe-gallery-grid {
    grid-template-columns: 1fr;
  }

  .mabe-workflow-steps {
    flex-direction: column;
    gap: 16px;
  }

  .mabe-wf-arrow {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .mabe-hero {
    min-height: 520px;
    padding: 5rem 0;
  }

  .mabe-hero h1 {
    font-size: clamp(2.2rem, 11vw, 3.3rem);
  }

  .mabe-hero-lead {
    font-size: 1.05rem;
  }

  .mabe-process-list {
    grid-template-columns: 1fr;
  }

  .mabe-process-list li > span {
    margin-left: auto;
    margin-right: auto;
  }

  .mabe-story-image {
    min-height: 390px;
  }

  .mabe-benefit-card i {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .mabe-product-guarantees-row {
    flex-direction: column;
    gap: 12px;
  }

  .mabe-quick-specs-grid {
    grid-template-columns: 1fr;
  }

  .mabe-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .mabe-hero-actions a {
    justify-content: center;
    width: 100%;
  }

  .mabe-spec-row {
    gap: 4px;
    grid-template-columns: 1fr;
  }

  .mabe-attach-files-box {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .btn-upload-files {
    justify-content: center;
    width: 100%;
  }

  .mabe-quote-form {
    padding: 1.25rem;
  }

  .mabe-map-frame {
    height: 380px;
    min-height: 380px;
  }

  .mabe-map-copy,
  .mabe-map-frame {
    border-radius: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   SIMPLIFIED & SMART INTENT-DRIVEN REDESIGN (LOW COGNITIVE LOAD)
   ========================================================================== */

.mabe-process-header-row {
  margin-bottom: clamp(16px, 2vw, 24px);
}

.mabe-catalog-image-placeholder {
  align-items: center;
  background: linear-gradient(135deg, #f1f5f9, rgba(17, 24, 39, 0.04)), #eef2f5;
  color: #64748b;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  justify-content: center;
  min-height: 180px;
  text-align: center;
  width: 100%;
}

.mabe-catalog-image-placeholder i {
  font-size: 1.7rem;
}

.mabe-catalog-image-placeholder span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mabe-choice-img-wrap > .mabe-catalog-image-placeholder,
.ts-service-image-wrapper > .mabe-catalog-image-placeholder,
.project-img-container > a > .mabe-catalog-image-placeholder,
.mabe-gallery-img-wrap > .mabe-catalog-image-placeholder {
  height: 100%;
}

.mabe-hero-photo-container > .mabe-catalog-image-placeholder {
  height: 100%;
  min-height: 100%;
}

.mabe-product-unavailable {
  background: #e2e8f0;
  border-radius: 4px;
  color: #334155;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 0.8rem 1rem;
  text-transform: uppercase;
}

.mabe-product-top-row {
  align-items: stretch;
  gap: 1.5rem;
  grid-template-columns: 284px minmax(0, 1fr);
  margin-bottom: 0;
}

.mabe-product-hero-card {
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.04);
  padding: 1.85rem 2rem;
}

.mabe-hero-main-row {
  align-items: center;
  gap: 1.75rem;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 1fr);
}

.mabe-product-kicker-row {
  margin-bottom: 0.75rem;
}

.mabe-product-title {
  color: #0f172a;
  font-size: clamp(1.9rem, 2.7vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0 0 0.85rem;
  text-transform: none;
}

.mabe-product-lead {
  margin-bottom: 0.75rem;
}

.mabe-product-description {
  margin-bottom: 1rem;
}

.mabe-product-highlights-strip {
  background: transparent;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 1rem;
}

.mabe-highlight-pill {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: none;
  gap: 8px;
  min-height: 52px;
  padding: 7px 9px;
}

.mabe-highlight-pill i {
  color: #cd0005;
  font-size: 0.95rem;
}

.mabe-highlight-pill-val {
  font-size: 11px;
  line-height: 1.2;
}

.mabe-highlight-pill-lbl {
  font-size: 9px;
}

.mabe-product-key-specs {
  margin-bottom: 0;
}

.mabe-key-specs-title {
  margin-bottom: 6px;
}

.mabe-key-specs-tags {
  gap: 6px;
}

.mabe-spec-tag {
  font-size: 11px;
  padding: 4px 8px;
}

.mabe-product-hero-card .mabe-hero-actions {
  gap: 10px;
  margin-top: 0;
  padding-top: 1rem;
}

.mabe-product-hero-visual {
  align-self: stretch;
  height: auto;
  min-height: 0;
  padding: 0;
}

.mabe-hero-photo-container {
  aspect-ratio: 4 / 3;
  height: auto;
  max-height: 400px;
  min-height: 280px;
}

.mabe-hero-img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.mabe-hero-gallery-badge {
  bottom: 14px;
  right: 14px;
}

.mabe-block-subtitle {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

.mabe-block-subtitle .subtitle-accent-bar {
  background: #cd0005;
  border-radius: 2px;
  display: inline-block;
  height: 3px;
  width: 24px;
}

@media (max-width: 991.98px) {
  .mabe-product-top-row {
    grid-template-columns: 1fr;
  }

  .mabe-product-hero-card {
    padding: 1.75rem 1.5rem;
  }

  .mabe-hero-main-row {
    grid-template-columns: 1fr;
  }

  .mabe-product-hero-visual {
    order: -1;
  }
}

@media (max-width: 575.98px) {
  .mabe-product-highlights-strip {
    grid-template-columns: 1fr;
  }
}
