/* WordPress-specific adjustments for the 1.0.8 FARHON theme. */

html {
  scroll-padding-top: 90px;
}

#offer,
#home-workflow,
#home-cases,
#home-products,
#home-team,
#home-faq,
#home-next,
#quote-form,
.dp-page {
  scroll-margin-top: 90px;
}

/* Admin bar overlap with the sticky header. */
.admin-bar .masthead {
  top: 32px;
}
@media (max-width: 782px) {
  .admin-bar .masthead {
    top: 46px;
  }
}
.admin-bar {
  scroll-padding-top: 122px;
}

/* Align sample-card meta (price / MOQ / lead time) when descriptions wrap to different lengths. */
@media (min-width: 651px) {
  .hs-products {
    align-items: stretch;
  }
  .hs-product {
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  .hs-product-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
  }
  .hs-product-body .hs-summary {
    flex: 1 1 auto;
  }
  .hs-product-body .hs-terms {
    margin-top: auto;
  }
}

.dp-product-copy > .hs-summary {
  flex: 1 1 auto;
}

.hs-sample-note {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.55;
  color: #5b6e72;
}

.hs-spec-list {
  margin: 18px 0 0;
  font-size: 0.92rem;
}
.hs-spec-list div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  border-top: 1px solid #d8e0df;
  padding: 10px 0;
}
.hs-spec-list dt {
  color: #526461;
  min-width: 7em;
}
.hs-spec-list dd {
  margin: 0;
  font-weight: 650;
}

.footer-since {
  margin: 8px 0 0;
  font-size: 11px;
  letter-spacing: 0.16em;
  font-weight: 650;
  color: #c5d4d4;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.footer-legal a:hover {
  text-decoration: underline;
}

.footer-top nav#footer-links {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 12px 28px;
}

/* Quote page + Fluent Forms, styled to sit with the 1.0.8 inquiry panel. */
.fq-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: start;
}
.fq-page-aside h2 {
  margin: 0 0 16px;
}
.fq-page-aside .footer-contact a {
  color: inherit;
}
.fq-missing {
  padding: 16px 18px;
  background: #eef4f1;
  border-radius: 8px;
}
.fq-form .ff-el-form-control,
.fq-form input[type="text"],
.fq-form input[type="email"],
.fq-form input[type="tel"],
.fq-form input[type="number"],
.fq-form input[type="url"],
.fq-form textarea,
.fq-form select {
  width: 100%;
  max-width: 100%;
}
.fq-form input[type="file"],
.fq-form .ff_upload_btn,
.fq-form .ff-el-form-control[type="file"] {
  /* The live form should not include uploads; hide a file control if one is added later. */
  display: none !important;
}

.farhon-prose {
  max-width: 46rem;
  font-size: 1rem;
  line-height: 1.7;
  color: #51636b;
}
.farhon-prose h2,
.farhon-prose h3 {
  color: #112934;
  letter-spacing: -0.03em;
}
.farhon-prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Screen-reader helpers from WordPress should not inherit theme button styles. */
.screen-reader-text,
.skip-link.screen-reader-text {
  position: absolute;
  left: -999px;
}

@media (max-width: 800px) {
  .fq-page-grid {
    grid-template-columns: 1fr;
  }
}

html.fq-open {
  overflow: hidden;
}
