/*
 Theme Name:   Wellmint Labs
 Template:     blocksy
 Version:      1.4.0
 Description:  Child theme for the Wellmint Labs OEM/ODM supplement site.
*/

:root {
  --qb-navy: #102136;
  --qb-blue: #24417c;
  --qb-teal: #1f9d7a;
  --qb-ink: #243044;
  --qb-muted: #5b6b7c;
  --qb-line: #e6ecef;
  --qb-paper: #f4f7f6;
  --qb-white: #ffffff;
  --qb-max: 1180px;
}

/* Inner pages + rebuilt home: blocks control width. */
.home .entry-content.is-layout-constrained,
.page-id-565 .entry-content.is-layout-constrained,
.page-id-1034 .entry-content.is-layout-constrained,
.page-id-1036 .entry-content.is-layout-constrained,
.page-id-1038 .entry-content.is-layout-constrained,
.home .site-main .ct-container,
.page-id-565 .site-main .ct-container,
.page-id-1034 .site-main .ct-container,
.page-id-1036 .site-main .ct-container,
.page-id-1038 .site-main .ct-container {
  max-width: none !important;
  width: 100%;
  padding-inline: 0;
}

.home .entry-content.is-layout-constrained > .qb-hero,
.page-id-565 .entry-content.is-layout-constrained > .qb-hero,
.page-id-1034 .entry-content.is-layout-constrained > .qb-hero,
.page-id-1036 .entry-content.is-layout-constrained > .qb-hero,
.page-id-1038 .entry-content.is-layout-constrained > .qb-hero,
.home .entry-content.is-layout-constrained > .qb-band,
.page-id-565 .entry-content.is-layout-constrained > .qb-band,
.page-id-1034 .entry-content.is-layout-constrained > .qb-band,
.page-id-1036 .entry-content.is-layout-constrained > .qb-band,
.page-id-1038 .entry-content.is-layout-constrained > .qb-band {
  max-width: none !important;
  width: 100%;
}

.home,
.page-id-565,
.page-id-1034,
.page-id-1036,
.page-id-1038 {
  overflow-x: clip;
}

.home .site-main,
.page-id-565 .site-main,
.page-id-1034 .site-main,
.page-id-1036 .site-main,
.page-id-1038 .site-main {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.qb-wrap {
  width: min(var(--qb-max), calc(100% - 48px));
  margin-inline: auto;
}

.qb-hero {
  background: linear-gradient(160deg, #102136 0%, #24417c 58%, #1c6e62 100%);
  color: #fff;
  padding: 56px 0 48px;
  box-sizing: border-box;
}

.qb-hero-light {
  background: #fff;
  color: var(--qb-ink);
  padding: 48px 0 36px;
}

.qb-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.qb-hero-visual img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  display: block;
}

.entry-content .qb-hero h1,
.qb-hero h1 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.18;
  margin: 0 0 14px;
  letter-spacing: -0.03em;
  max-width: 16ch;
  color: #fff !important;
}

.entry-content .qb-hero-light h1,
.qb-hero-light h1 {
  color: var(--qb-navy) !important;
  max-width: 14ch;
}

.entry-content .qb-hero p,
.qb-hero p {
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: 17px;
  line-height: 1.65;
  max-width: 40em;
  margin: 0;
}

.entry-content .qb-hero-light p,
.qb-hero-light p {
  color: var(--qb-muted) !important;
}

.qb-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--qb-teal);
  margin-bottom: 12px;
}

.qb-hero .qb-kicker {
  color: #9de7cf;
}

.qb-hero-light .qb-kicker {
  color: var(--qb-teal);
}

.qb-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}

.qb-pills li {
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.qb-pills a {
  color: inherit;
  text-decoration: none;
}

.qb-hero-light .qb-pills li {
  border-color: var(--qb-line);
  color: var(--qb-blue);
  background: var(--qb-paper);
}

.qb-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.page-id-1038 .qb-hero {
  padding: 40px 0 32px;
}

.page-id-1038 .qb-hero h1 {
  max-width: 20ch;
}

#gummies,
#softgels,
#powders,
#liquids,
#capsules {
  scroll-margin-top: 96px;
}

.qb-section {
  padding: 52px 0;
}

.qb-section:has(.qb-cta) {
  padding-bottom: 56px;
}

.qb-section-tight {
  padding: 36px 0 56px;
}

.qb-band {
  background: var(--qb-paper);
  padding: 48px 0;
}

.qb-section h2,
.qb-band h2,
.qb-pair h2 {
  font-size: clamp(24px, 3vw, 32px);
  color: var(--qb-navy);
  margin: 0 0 12px;
  letter-spacing: -0.03em;
}

.qb-lead {
  color: var(--qb-muted);
  font-size: 16px;
  line-height: 1.7;
  max-width: 46em;
}

.qb-grid {
  display: grid;
  gap: 20px;
}

.qb-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.qb-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.qb-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.qb-card {
  background: var(--qb-white);
  border: 1px solid var(--qb-line);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 8px 24px rgba(16, 33, 54, 0.04);
}

.qb-card h3 {
  margin: 14px 0 8px;
  color: var(--qb-navy);
  font-size: 18px;
}

.qb-card p,
.qb-card li {
  color: var(--qb-muted);
  line-height: 1.65;
  margin: 0;
}

.qb-card img,
.qb-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  background: #f6f8f9;
  border-radius: 12px;
  display: block;
}

.qb-formats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.qb-format {
  background: #fff;
  border: 1px solid var(--qb-line);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.qb-format a {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.qb-format img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #f6f8f9;
  display: block;
}

.qb-format .qb-format-body {
  padding: 14px 16px 18px;
  flex: 1;
}

.qb-format h3 {
  margin: 0 0 6px;
  font-size: 16px;
  color: var(--qb-navy);
}

.qb-format p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--qb-muted);
}

.qb-format-example {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--qb-blue);
}

.qb-format-text {
  background: var(--qb-navy);
  min-height: 100%;
}

.qb-format-text .qb-format-body {
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 240px;
}

.qb-format-text h3 {
  color: #fff;
}

.qb-format-text p {
  color: rgba(255, 255, 255, 0.82);
}

.qb-format-text .qb-format-example {
  color: #9de7cf;
}

.qb-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.qb-pair article {
  background: #fff;
  border: 1px solid var(--qb-line);
  border-radius: 16px;
  padding: 24px;
}

.qb-pair h3 {
  margin: 0 0 8px;
  font-size: 22px;
  color: var(--qb-navy);
}

.qb-pair p {
  color: var(--qb-muted);
  line-height: 1.65;
  margin: 0;
}

.qb-pair img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-top: 18px;
  display: block;
}

.qb-figure {
  margin: 24px 0 0;
}

.qb-figure img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
  background: #fff;
}

.qb-figure figcaption {
  color: var(--qb-muted);
  font-size: 14px;
  line-height: 1.55;
  margin-top: 12px;
}

.qb-why {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.qb-why article {
  background: #fff;
  border: 1px solid var(--qb-line);
  border-radius: 16px;
  padding: 22px;
}

.qb-why h3 {
  margin: 0 0 8px;
  font-size: 17px;
  color: var(--qb-navy);
}

.qb-why p {
  margin: 0;
  color: var(--qb-muted);
  font-size: 14px;
  line-height: 1.6;
}

.qb-caps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.qb-cap {
  background: #fff;
  border: 1px solid var(--qb-line);
  border-radius: 14px;
  padding: 22px 20px;
}

.qb-cap h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--qb-navy);
}

.qb-cap p {
  margin: 0;
  color: var(--qb-muted);
  font-size: 14px;
  line-height: 1.6;
}

.qb-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 28px;
}

.qb-step {
  padding-right: 28px;
}

.qb-step:not(:last-child) {
  border-right: 1px solid var(--qb-line);
  margin-right: 28px;
}

.qb-step .qb-step-num {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--qb-teal);
  margin-bottom: 8px;
}

.qb-step h3 {
  margin: 0 0 8px;
  font-size: 22px;
  color: var(--qb-navy);
}

.qb-step p {
  margin: 0;
  color: var(--qb-muted);
  line-height: 1.65;
}

.qb-lead-format {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}

.qb-lead-format img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
}

.qb-hero-grid > p,
.qb-split > p,
.qb-lead-format > p {
  display: none !important;
}

.qb-geo-block h2 {
  margin-bottom: 8px;
}

.qb-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--qb-line);
  border-radius: 14px;
  overflow: hidden;
  margin-top: 24px;
}

.qb-facts > div {
  padding: 18px 22px;
  border-bottom: 1px solid var(--qb-line);
}

.qb-facts > div:nth-child(odd) {
  border-right: 1px solid var(--qb-line);
}

.qb-facts > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.qb-facts dt {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--qb-teal);
}

.qb-facts dd {
  margin: 0;
  color: var(--qb-ink);
  font-size: 16px;
  line-height: 1.5;
}

.qb-faq {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.qb-faq-item {
  background: #fff;
  border: 1px solid var(--qb-line);
  border-radius: 12px;
  padding: 18px 22px;
}

.qb-faq-item h3 {
  margin: 0 0 8px;
  font-size: 17px;
  color: var(--qb-navy);
}

.qb-faq-item p {
  margin: 0;
  color: var(--qb-muted);
  line-height: 1.65;
}

.single-post .qb-geo-block {
  padding-top: 12px;
}

.qb-cta {
  background: var(--qb-navy);
  color: #fff;
  border-radius: 18px;
  padding: 28px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 8px;
}

.qb-cta h2,
.qb-cta p { color: #fff; margin: 0 0 6px; }

.qb-cta h2 { font-size: 24px !important; }

.qb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--qb-teal);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 13px;
  border-radius: 999px;
  padding: 14px 24px;
  white-space: nowrap;
}

.qb-btn:hover { filter: brightness(1.08); color: #fff !important; }

.qb-btn-navy { background: var(--qb-blue); }

.qb-btn-ghost {
  background: transparent;
  color: var(--qb-blue) !important;
  border: 1px solid var(--qb-line);
}

.qb-btn-ghost:hover { filter: none; background: var(--qb-paper); color: var(--qb-blue) !important; }

.qb-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
}

.qb-split-contact {
  align-items: start;
  grid-template-columns: 1.35fr 0.85fr;
}

.qb-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.qb-list li {
  position: relative;
  padding: 8px 0 8px 26px;
  color: var(--qb-ink);
}

.qb-list li:before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--qb-teal);
  position: absolute;
  left: 0;
  top: 14px;
}

.qb-contact-box {
  background: var(--qb-paper);
  border-radius: 16px;
  padding: 28px;
  position: sticky;
  top: 96px;
}

.qb-contact-box h3 { margin-top: 0; }
.qb-contact-box a { color: var(--qb-blue); font-weight: 700; }

.qb-dl { margin: 0; }
.qb-dl dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--qb-muted);
  margin-top: 20px;
}
.qb-dl dt:first-child { margin-top: 0; }
.qb-dl dd {
  margin: 6px 0 0;
  color: var(--qb-ink);
  line-height: 1.55;
}

.ct-header [data-id="socials"] {
  margin-inline-end: 8px;
}

.ct-footer [data-row="middle"] > .ct-container {
  display: grid !important;
  grid-template-columns: 1.3fr 1fr 1fr !important;
  gap: 32px 48px !important;
  align-items: start;
  padding-top: 40px !important;
  padding-bottom: 28px !important;
}

.ct-footer {
  background-color: #102136 !important;
  --theme-font-color: #c5d0da;
}

.ct-footer,
.ct-footer p,
.ct-footer li,
.ct-footer .widget {
  color: #c5d0da !important;
}

.ct-footer a { color: #9de7cf !important; }
.ct-footer a:hover { color: #fff !important; }

.ct-footer .widget-title,
.ct-footer h1,
.ct-footer h2,
.ct-footer h3,
.ct-footer .ct-footer-copyright {
  color: #fff !important;
}

.ct-footer h2 {
  font-size: 16px !important;
  margin-bottom: 8px !important;
}

.archive .entries[data-layout="grid"] {
  gap: 24px !important;
}

.archive .entry-card .ct-media-container img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.frm-fluent-form .ff-btn-submit,
.fluentform .ff-btn-submit {
  background: #24417c !important;
  border-color: #24417c !important;
  border-radius: 999px !important;
  min-height: 44px;
  padding: 0 24px !important;
  font-weight: 700;
}

.fluentform .ff-el-form-control,
.fluentform select.ff-el-form-control {
  border-radius: 10px !important;
  min-height: 44px;
}

.fluentform .ff-el-group { margin-bottom: 14px !important; }

.qb-404 {
  min-height: 50vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 24px;
}

.qb-404 h1 {
  font-size: 42px;
  color: var(--qb-navy);
  margin: 0 0 12px;
}

.qb-archive-hero {
  margin: 0 0 28px;
}

.qb-archive-hero h1 {
  font-size: clamp(28px, 3.4vw, 40px);
  color: var(--qb-navy);
  margin: 0 0 10px;
  letter-spacing: -0.03em;
}

.qb-archive-hero .qb-lead {
  margin: 0;
}

@media (max-width: 1000px) {
  .qb-formats,
  .qb-why,
  .qb-caps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .qb-facts {
    grid-template-columns: 1fr;
  }
  .qb-facts > div {
    border-right: 0;
  }
  .qb-facts > div:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--qb-line);
  }
  .qb-facts > div:last-child {
    border-bottom: 0;
  }
  .qb-grid-2,
  .qb-grid-3,
  .qb-grid-4,
  .qb-split,
  .qb-split-contact,
  .qb-hero-grid,
  .qb-cta,
  .qb-pair,
  .qb-steps,
  .qb-lead-format,
  .ct-footer [data-row="middle"] > .ct-container {
    grid-template-columns: 1fr !important;
    display: grid;
  }
  .qb-hero { padding: 40px 0 36px; }
  .qb-cta { padding: 24px; }
  .qb-contact-box { position: static; }
  .qb-card img { height: 180px; }
  .qb-step:not(:last-child) {
    border-right: 0;
    border-bottom: 1px solid var(--qb-line);
    margin: 0 0 20px;
    padding: 0 0 20px;
  }
  .qb-hero-visual img { max-height: 280px; }
}

@media (max-width: 640px) {
  .qb-formats {
    grid-template-columns: 1fr 1fr;
  }
}
