html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

img,
svg {
  max-width: 100%;
}

.brand-link {
  flex: 0 1 auto;
  min-width: 0;
}

.brand-logo-mark,
.footer-logo-mark {
  display: block;
  flex: 0 0 auto;
  width: 6rem;
  aspect-ratio: 960 / 391;
  overflow: hidden;
  background: transparent;
  border: 0;
  box-shadow: none;
  line-height: 0;
}

.footer-logo-mark {
  width: 7.5rem;
}

.brand-logo-mark img,
.footer-logo-mark img {
  display: block;
  width: 100%;
  height: auto;
  min-width: 0;
  object-fit: contain;
}

#brandText {
  min-width: 0;
  line-height: 1.2;
}

.site-hero,
.site-hero-content {
  min-height: 90svh;
}

.mobile-card-grid {
  grid-template-columns: 1fr;
}

.responsive-actions > * {
  width: 100%;
  justify-content: center;
}

.mobile-fluid {
  width: 100%;
  justify-content: center;
}

.client-logo {
  width: auto;
  max-height: 4rem;
  object-fit: contain;
}

.article-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.article-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.75rem 2rem;
  border: 1px solid #e5e7eb;
  border-left: 4px solid #e5e7eb;
  border-radius: 0.875rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.article-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
}

.article-card-active {
  border-left-color: #ea580c;
}

.article-card-draft {
  border-left-color: #cbd5e1;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.article-card-link {
  display: block;
}

.article-card-link:hover {
  text-decoration: none;
}

.article-title {
  color: #0f172a;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.2;
}

.article-summary {
  color: #475569;
  font-size: 1rem;
  line-height: 1.75;
}

.article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 0.25rem;
}

.article-status {
  color: #64748b;
  font-size: 0.9375rem;
  font-weight: 500;
}

.article-arrow {
  color: #ea580c;
  font-weight: 700;
}

.article-card-link:hover .article-card {
  border-color: #fdba74;
}

.article-card-link:hover .article-title {
  color: #ea580c;
}

.epoxy-types-list {
  display: grid;
  gap: 1.75rem;
}

.epoxy-type-card {
  padding: 2rem;
  border: 1px solid #e5e7eb;
  border-left: 4px solid #f97316;
  border-radius: 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.07);
}

.epoxy-type-grid {
  display: grid;
  gap: 1.5rem;
}

.mbg-step-list {
  display: grid;
  gap: 1.25rem;
}

.mbg-step-item {
  position: relative;
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.mbg-step-marker {
  position: relative;
  display: flex;
  justify-content: center;
}

.mbg-step-marker::after {
  content: "";
  position: absolute;
  top: 3.75rem;
  bottom: -1.5rem;
  width: 2px;
  background: linear-gradient(180deg, rgba(249, 115, 22, 0.45) 0%, rgba(203, 213, 225, 0.22) 100%);
}

.mbg-step-item:last-child .mbg-step-marker::after {
  display: none;
}

.mbg-step-num {
  position: relative;
  z-index: 1;
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: linear-gradient(180deg, #fb923c 0%, #ea580c 100%);
  color: #ffffff;
  font-size: 1.125rem;
  font-weight: 800;
  box-shadow: 0 16px 28px rgba(249, 115, 22, 0.28);
}

.mbg-step-card {
  padding: 1.35rem 1.5rem;
  border: 1px solid #e5e7eb;
  border-left: 4px solid #f97316;
  border-radius: 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
}

.mbg-step-title {
  color: #0f172a;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.mbg-step-copy {
  color: #475569;
  line-height: 1.7;
  margin: 0;
}

.wa-widget {
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
}

.wa-popup {
  max-width: min(20rem, calc(100vw - 2rem));
}

.wa-popup:not(.hidden) {
  animation: wa-pop 180ms ease-out;
}

a[href^="mailto:"],
a[href^="tel:"] {
  overflow-wrap: anywhere;
}

@keyframes wa-pop {
  from {
    opacity: 0;
    transform: translateY(0.75rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 640px) {
  .mobile-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .epoxy-types-list {
    gap: 2rem;
  }

  .epoxy-type-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .responsive-actions > * {
    width: auto;
  }

  .mobile-fluid {
    width: auto;
  }
}

@media (max-width: 639px) {
  .article-card {
    padding: 1.5rem;
  }

  .epoxy-type-card {
    padding: 1.5rem;
  }

  .mbg-step-item {
    grid-template-columns: 3rem minmax(0, 1fr);
    gap: 0.875rem;
  }

  .mbg-step-num {
    width: 3rem;
    height: 3rem;
    font-size: 1rem;
  }

  .mbg-step-marker::after {
    top: 3.25rem;
  }

  .mbg-step-card {
    padding: 1.2rem 1.25rem;
  }

  .mbg-step-title {
    font-size: 1.125rem;
  }

  .article-title {
    font-size: 1.5rem;
  }

  .brand-logo-mark {
    width: 5.25rem;
  }

  #brandText {
    font-size: 0.9375rem;
  }

  .wa-widget {
    left: max(1rem, env(safe-area-inset-left));
    right: max(1rem, env(safe-area-inset-right));
    align-items: flex-end;
  }

  .wa-popup {
    width: 100%;
  }

  .client-logo {
    max-height: 3rem;
  }
}

@media (max-width: 374px) {
  #brandText {
    display: none;
  }
}

@media (max-width: 767px) {
  .safari-scroll-bg {
    background-attachment: scroll !important;
  }
}

@supports (-webkit-touch-callout: none) {
  .safari-scroll-bg {
    background-attachment: scroll !important;
  }
}
