/* FabricAir colors, wallpaper backdrop, section bands, and glow buttons now
   live in the shared /assets/css/fabricair-brand.css (linked on this page
   before this stylesheet) via the .fabricair-theme / .fabricair-wallpaper
   body classes and .fabricair-band-a/b section classes in the markup. Only
   this page's own layout rules stay here. */

.tbw-hero {
  min-height: 500px;
  padding: 130px 0 62px;
  display: flex;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(12, 20, 28, 0.94), rgba(12, 20, 28, 0.78) 52%, rgba(12, 20, 28, 0.42)),
    url("/assets/img/healthefamilywithketamine-min.png") center/cover no-repeat;
}

.tbw-hero-copy {
  max-width: 820px;
}

.tbw-kicker {
  margin: 0 0 12px;
  color: #c09201;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.tbw-hero h1,
.tbw-products h2,
.tbw-cart h2,
.tbw-order h2 {
  letter-spacing: 0;
}

.tbw-hero h1 {
  max-width: 820px;
  margin: 0 0 22px;
  color: #fff;
  font-size: 54px;
  line-height: 1.04;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.tbw-lead {
  max-width: 710px;
  color: #f0f3ef;
  font-size: 20px;
  line-height: 1.65;
}

.tbw-offer {
  max-width: 700px;
  margin: 28px 0;
  padding: 18px 20px;
  border-left: 5px solid #c09201;
  background: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.tbw-offer span {
  display: block;
  color: #f4d36b;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.tbw-offer strong {
  display: block;
  margin-top: 5px;
  color: #fff;
  font-size: 21px;
  line-height: 1.35;
}

.tbw-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.tbw-secondary-link {
  color: #fff;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.tbw-products,
.tbw-groups {
  padding: 78px 0;
  /* background intentionally omitted - .fabricair-band-a/b in the markup
     own this now; see fabricair-brand.css */
}

.tbw-products .section-header p,
.tbw-groups .section-header p {
  max-width: 760px;
  margin: 0 auto;
}

.tbw-product-grid,
.tbw-group-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 38px;
}

.tbw-product-grid > div {
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 245px;
  padding: 28px;
  border: 1px solid #e3dfd2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(18, 25, 31, 0.06);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.tbw-product-grid > div:hover,
.tbw-product-grid > div:focus-within,
.tbw-product-grid > div:focus {
  border-color: var(--fabricair-blue-light);
  box-shadow: 0 18px 44px rgba(18, 25, 31, 0.14), 0 0 0 1px var(--fabricair-blue-light), 0 0 24px rgba(95, 227, 35, 0.25);
  transform: translateY(-3px);
  outline: none;
}

.tbw-group-card {
  display: block;
  height: 100%;
  padding: 28px;
  border: 1px solid #ded8c8;
  border-radius: 8px;
  color: inherit;
  background: #fff;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(18, 25, 31, 0.06);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.tbw-group-card:hover {
  transform: translateY(-3px);
  color: inherit;
  border-color: var(--fabricair-blue-light);
  box-shadow: 0 18px 42px rgba(18, 25, 31, 0.12), 0 0 0 1px var(--fabricair-blue-light), 0 0 24px rgba(95, 227, 35, 0.25);
}

.tbw-group-card span {
  display: block;
  margin-bottom: 10px;
  color: #8a6b08;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.tbw-group-card h3 {
  margin: 0 0 12px;
  color: #10231f;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 800;
}

.tbw-group-card p {
  margin: 0;
  color: #54605a;
  line-height: 1.7;
}

.tbw-product-grid i {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 50%;
  color: #fff;
  background: var(--fabricair-gradient);
  font-size: 24px;
}

.tbw-product-grid h3 {
  margin-bottom: 12px;
  color: #10231f;
  font-size: 21px;
  font-weight: 800;
}

.tbw-product-grid p,
.tbw-order p {
  color: #54605a;
  line-height: 1.7;
}

.tbw-reveal-card p {
  max-width: 95%;
}

.tbw-card-reveal {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-height: 0;
  margin-top: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: max-height 220ms ease, margin-top 220ms ease, opacity 180ms ease, transform 180ms ease;
}

.tbw-reveal-card:hover .tbw-card-reveal,
.tbw-reveal-card:focus .tbw-card-reveal,
.tbw-reveal-card:focus-within .tbw-card-reveal,
.tbw-reveal-card.is-expanded .tbw-card-reveal {
  max-height: 120px;
  margin-top: 20px;
  opacity: 1;
  transform: translateY(0);
}

.tbw-reveal-card.is-expanded {
  border-color: #c09201;
  box-shadow: 0 18px 44px rgba(18, 25, 31, 0.14);
  transform: translateY(-3px);
}

.tbw-card-reveal span {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: 1px solid #d6c174;
  border-radius: 6px;
  color: #10231f;
  background: #fff8d7;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.tbw-card-reveal-flow {
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
}

.tbw-card-reveal-flow i {
  width: auto;
  height: auto;
  margin: 0;
  border-radius: 0;
  color: #8a6b08;
  background: transparent;
  font-size: 18px;
}

.tbw-order {
  padding: 86px 0;
  /* background intentionally omitted - see .tbw-products/.tbw-groups above */
}

.page-fabricair:not(.page-tbw-cart) .tbw-legacy-cart {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.tbw-plan {
  padding: 86px 0;
  /* background intentionally omitted - see .tbw-products/.tbw-groups above */
}

.tbw-plan-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: start;
  max-width: 460px;
  margin: 38px auto 0;
}

.tbw-invoice {
  position: static;
  padding: 20px;
  border: 1px solid #26322d;
  border-radius: 8px;
  background: #10231f;
  color: #fff;
  box-shadow: 0 18px 50px rgba(18, 25, 31, 0.18);
}

@media (min-width: 1200px) {
  .page-fabricair main {
    padding-right: 430px;
  }

  .page-fabricair .container {
    max-width: 1000px;
  }

  .tbw-plan-grid {
    max-width: none;
    margin-right: 0;
    margin-left: 0;
  }

  .tbw-invoice {
    position: fixed;
    top: 118px;
    right: 24px;
    bottom: 24px;
    z-index: 990;
    display: flex;
    width: 386px;
    flex-direction: column;
  }
}

.tbw-invoice > span {
  display: block;
  color: #f3d36d;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.tbw-invoice > strong {
  display: block;
  margin: 5px 0 10px;
  color: #fff;
  font-size: 38px;
  line-height: 1;
}

.tbw-invoice-config {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

@media (min-width: 1200px) {
  .tbw-invoice-config {
    min-height: 0;
    overflow-y: auto;
    padding-right: 14px;
  }
}

.tbw-invoice-config label,
.tbw-invoice-config fieldset {
  display: grid;
  gap: 6px;
  margin: 0;
  border-radius: 8px;
  scroll-margin-top: 160px;
  transition: background 160ms ease, box-shadow 160ms ease;
}

.tbw-invoice-config label:focus-within,
.tbw-invoice-config fieldset:focus-within,
.tbw-invoice-config label.is-plan-focus,
.tbw-invoice-config fieldset.is-plan-focus {
  background: rgba(243, 211, 109, 0.08);
  box-shadow: 0 0 0 4px rgba(243, 211, 109, 0.1);
}

.tbw-invoice-config span,
.tbw-invoice-config legend {
  color: #f3d36d;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.tbw-invoice-config select,
.tbw-line-stepper input {
  width: 100%;
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 7px;
  background: #fff;
  color: #10231f;
  font: inherit;
}

.tbw-invoice-config select {
  padding: 7px 10px;
}

.tbw-line-stepper {
  display: grid;
  grid-template-columns: 38px 1fr 38px;
  gap: 8px;
}

.tbw-line-stepper button {
  border: 0;
  border-radius: 7px;
  background: #f3d36d;
  color: #10231f;
  font-size: 20px;
  font-weight: 900;
}

.tbw-line-stepper input {
  padding: 8px;
  text-align: center;
}

.tbw-invoice-config fieldset {
  padding: 0;
  border: 0;
}

.tbw-invoice-config fieldset label {
  display: flex;
  grid-template-columns: none;
  gap: 8px;
  align-items: center;
  color: #eaf0ec;
  font-size: 12px;
  line-height: 1.25;
}

.tbw-invoice-config fieldset .tbw-pbx-bundle {
  padding: 8px;
  border: 1px solid rgba(243, 211, 109, 0.32);
  background: rgba(243, 211, 109, 0.08);
  color: #fff;
  font-weight: 800;
}

.tbw-pbx-price {
  white-space: nowrap;
}

.tbw-invoice.is-full-pbx .tbw-pbx-price {
  color: #b9c4bd;
  text-decoration: line-through;
}

.tbw-invoice-config fieldset input {
  accent-color: #f3d36d;
}

.tbw-quick-phone {
  display: none !important;
}

.tbw-invoice.is-phone-selected .tbw-quick-phone {
  display: grid !important;
}

.tbw-secondary-dark {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 14px;
  flex: 0 0 auto;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.tbw-secondary-dark:hover {
  color: #10231f;
  background: #f3d36d;
}

.tbw-invoice p {
  margin: 16px 0 0;
  color: #d9e1dc;
  font-size: 14px;
  line-height: 1.55;
}

.tbw-invoice-hint {
  display: block;
  margin: -6px 0 10px;
  color: #d9e1dc;
  font-size: 13px;
  line-height: 1.45;
}

.tbw-cart {
  padding: 76px 0;
  /* background intentionally omitted - see .tbw-products/.tbw-groups above */
}

.tbw-cart h2 {
  color: #10231f;
  font-size: 38px;
  line-height: 1.15;
  font-weight: 800;
}

.tbw-cart-card {
  padding: 28px;
  border: 1px solid #dcd6c7;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(18, 25, 31, 0.08);
}

.tbw-cart-head {
  display: flex;
  gap: 18px;
  align-items: end;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid #e7e2d6;
}

.tbw-cart-head span {
  color: #8a6b08;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.tbw-cart-head strong {
  color: #10231f;
  font-size: 42px;
  line-height: 1;
}

.tbw-cart-lines {
  display: grid;
  gap: 0;
  margin: 18px 0;
}

.tbw-invoice-line {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  width: 100%;
  padding: 13px 0;
  border: 0;
  border-bottom: 1px solid #ece7dc;
  background: transparent;
  color: #26322d;
  text-align: left;
  line-height: 1.35;
  cursor: pointer;
}

.tbw-invoice-line:hover,
.tbw-invoice-line:focus {
  color: #8a6b08;
}

.tbw-invoice-line:focus {
  outline: 2px solid rgba(192, 146, 1, 0.38);
  outline-offset: 3px;
}

.tbw-invoice-line b {
  color: #10231f;
  white-space: nowrap;
}

.tbw-invoice-line.is-bundled b {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.tbw-invoice-line.is-bundled s {
  color: #7a837d;
  font-weight: 700;
}

.tbw-invoice-line-count {
  color: #8a6b08;
  font-weight: 800;
}

.tbw-cart-note {
  padding: 16px 18px;
  border-left: 5px solid #c09201;
  background: #f7f7f3;
}

.tbw-cart-note strong {
  color: #10231f;
}

.tbw-cart-note p {
  margin: 6px 0 0;
  color: #4f5b55;
  line-height: 1.55;
}

.tbw-cart-continue {
  margin-top: 18px;
}

.tbw-order h2 {
  color: #10231f;
  font-size: 38px;
  line-height: 1.15;
  font-weight: 800;
}

.tbw-note {
  padding: 16px 18px;
  border-left: 5px solid #c09201;
  background: #fff;
  color: #4f5b55;
  line-height: 1.6;
}

.tbw-checkout-shell {
  overflow: hidden;
  border: 1px solid #dcd6c7;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(18, 25, 31, 0.08);
}

.tbw-checkout-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: #e7e2d6;
}

.tbw-checkout-summary > div {
  padding: 20px;
  background: #10231f;
}

.tbw-checkout-summary span {
  display: block;
  margin-bottom: 7px;
  color: #f3d36d;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.tbw-checkout-summary strong {
  display: block;
  color: #fff;
  font-size: 20px;
  line-height: 1.2;
}

.tbw-checkout-summary p {
  margin: 8px 0 0;
  color: #d9e1dc;
  font-size: 14px;
  line-height: 1.5;
}

.tbw-form {
  padding: 28px;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.tbw-step {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-bottom: 16px;
}

.tbw-step > span {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #10231f;
  background: #f3d36d;
  font-weight: 800;
}

.tbw-form label {
  display: block;
  margin-bottom: 7px;
  color: #26322d;
  font-weight: 800;
}

.tbw-form input,
.tbw-form select,
.tbw-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  border: 1px solid #cfd7d0;
  border-radius: 6px;
  color: #17201b;
  background: #fff;
}

.tbw-form textarea {
  resize: vertical;
}

.tbw-form input:focus,
.tbw-form select:focus,
.tbw-form textarea:focus {
  outline: 3px solid rgba(192, 146, 1, 0.62);
  border-color: #c09201;
}

.tbw-summary {
  margin: 18px 0 24px;
  padding: 18px;
  border-radius: 8px;
  background: #10231f;
  color: #fff;
}

.tbw-summary strong {
  color: #f4d36b;
}

.tbw-summary p {
  margin: 7px 0 0;
  color: #eaf0ec;
}

.tbw-check {
  display: flex !important;
  gap: 10px;
  align-items: flex-start;
  font-weight: 600 !important;
}

.tbw-check input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 3px;
}

.tbw-submit {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  border: 0;
}

.tbw-form.is-sending .tbw-submit {
  opacity: 0.72;
  pointer-events: none;
}

.tbw-status {
  min-height: 24px;
  margin: 14px 0 0;
  color: #10231f;
  font-weight: 800;
}

.tbw-honey {
  position: absolute;
  left: -10000px;
  width: 1px !important;
  height: 1px !important;
  min-height: 1px !important;
  opacity: 0;
}

.tbw-render-marker {
  padding: 10px 18px;
  color: #7a837d;
  background: #f7f7f3;
  font-size: 12px;
  text-align: center;
}

.tbw-render-marker code {
  color: #44504a;
}

.tbw-review-hero {
  min-height: 440px;
}

.tbw-review {
  padding: 76px 0;
  background: #fff;
}

.tbw-review-alt {
  background: #f7f7f3;
}

.tbw-review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 36px;
}

.tbw-review-grid article,
.tbw-question-list article,
.tbw-review-cta {
  border: 1px solid #ded8c8;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(18, 25, 31, 0.06);
}

.tbw-review-grid article {
  padding: 26px;
}

.tbw-review-grid span {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border-radius: 50%;
  color: #10231f;
  background: #f3d36d;
  font-weight: 900;
}

.tbw-review-grid h3,
.tbw-question-list h3,
.tbw-review-cta h2 {
  margin: 0 0 10px;
  color: #10231f;
  font-weight: 800;
  line-height: 1.2;
}

.tbw-review-grid p,
.tbw-question-list p,
.tbw-review-cta p {
  margin: 0;
  color: #54605a;
  line-height: 1.65;
}

.tbw-question-list {
  display: grid;
  gap: 14px;
  margin-top: 34px;
}

.tbw-question-list article {
  padding: 20px 22px;
  border-left: 5px solid #c09201;
}

.tbw-review-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 32px;
}

.tbw-review-cta > div:last-child {
  display: grid;
  gap: 12px;
  min-width: 220px;
}

.page-tbw-cart {
  background: #f2f0e8;
}

.tbw-cart-page {
  min-height: 100vh;
  padding: 118px 0 70px;
  background:
    linear-gradient(180deg, rgba(247, 247, 243, 0.92), rgba(242, 240, 232, 0.98)),
    url("/assets/img/healthefamilywithketamine-min.png") center/cover no-repeat;
}

.tbw-cart-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(420px, 1.08fr);
  gap: 28px;
  align-items: start;
}

.tbw-cart-review,
.tbw-cart-checkout {
  border: 1px solid #d8d0bf;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(18, 25, 31, 0.11);
}

.tbw-cart-review {
  position: sticky;
  top: 112px;
  padding: 28px;
}

.tbw-cart-review h1 {
  margin: 0 0 14px;
  color: #10231f;
  font-size: 38px;
  line-height: 1.1;
  font-weight: 900;
}

.tbw-cart-review > p {
  color: #54605a;
  line-height: 1.65;
}

.tbw-back-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
  color: #8a6b08;
  font-weight: 900;
  text-decoration: none;
}

.tbw-cart-ticket {
  margin-top: 24px;
  padding: 22px;
  border: 1px solid #26322d;
  border-radius: 8px;
  background: #10231f;
  color: #fff;
}

.tbw-cart-ticket-head {
  display: flex;
  gap: 16px;
  align-items: end;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.tbw-cart-ticket-head span {
  color: #f3d36d;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.tbw-cart-ticket-head strong {
  color: #fff;
  font-size: 38px;
  line-height: 1;
}

.tbw-cart-ticket .tbw-invoice-line {
  border-bottom-color: rgba(255, 255, 255, 0.14);
  color: #eaf0ec;
}

.tbw-cart-ticket .tbw-invoice-line b {
  color: #fff;
}

.tbw-cart-ticket .tbw-cart-note {
  background: rgba(255, 255, 255, 0.08);
}

.tbw-cart-ticket .tbw-cart-note strong {
  color: #f3d36d;
}

.tbw-cart-ticket .tbw-cart-note p {
  color: #eaf0ec;
}

.tbw-cart-checkout {
  overflow: hidden;
}

.tbw-cart-checkout .tbw-checkout-summary {
  border-radius: 0;
}

@media (max-width: 991px) {
  .tbw-hero {
    min-height: 0;
    padding: 118px 0 56px;
    background:
      linear-gradient(180deg, rgba(12, 20, 28, 0.95), rgba(12, 20, 28, 0.72)),
      url("/assets/img/healthefamilywithketamine-min.png") center/cover no-repeat;
  }

  .tbw-hero h1 {
    font-size: 40px;
  }

  .tbw-product-grid,
  .tbw-group-grid,
  .tbw-plan-grid,
  .tbw-review-grid,
  .tbw-review-cta,
  .tbw-checkout-summary,
  .tbw-cart-layout {
    grid-template-columns: 1fr;
  }

  .tbw-cart-review {
    position: static;
  }

  .tbw-invoice {
    position: static;
    width: auto;
    max-height: none;
  }
}

@media (max-width: 575px) {
  .tbw-hero h1,
  .tbw-products h2,
  .tbw-plan h2,
  .tbw-cart h2,
  .tbw-order h2 {
    font-size: 32px;
  }

  .tbw-lead {
    font-size: 17px;
  }

  .tbw-form,
  .tbw-invoice {
    padding: 20px;
  }

  .tbw-step {
    grid-template-columns: 1fr;
  }
}
