/* Texas Reuse Alliance. Values come from the 2B-3 Straight Run design. */

@font-face {
  font-family: "Bitter";
  src: url("/fonts/bitter-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bitter";
  src: url("/fonts/bitter-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/source-sans-3-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/source-sans-3-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

html { background: #F5EFE4; }
body { margin: 0; }
a { color: #14273A; }
a:hover { color: #722B8E; }
a:focus-visible { outline: 2px solid #722B8E; outline-offset: 3px; border-radius: 2px; }

.b3 {
  container: b3 / inline-size;
  background: #F5EFE4;
  color: #14273A;
  font-family: "Source Sans 3", Arial, sans-serif;
  font-size: 20px;
  line-height: 1.5;
}
.b3 .wrap {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 0 48px;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 96px;
}
.logo {
  display: block;
  height: 44px;
  width: auto;
  max-width: 46cqw;
  object-fit: contain;
  object-position: left center;
}
.b3 .hloc { display: flex; align-items: center; gap: 12px; }
.phone {
  font-size: clamp(18px, 1.6cqw, 21px);
  line-height: 1.3;
  font-weight: 600;
  white-space: nowrap;
  text-underline-offset: 4px;
  text-decoration-color: #722B8E;
}

/* Hero */
.hero {
  padding-top: clamp(32px, 4.6cqw, 66px);
  padding-bottom: clamp(40px, 5cqw, 72px);
}
.hero h1 {
  margin: 0;
  max-width: 11em;
  font-family: "Bitter", Georgia, serif;
  font-size: clamp(42px, 5.6cqw, 74px);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.hero-copy { margin-top: clamp(20px, 2.2cqw, 30px); }
.hero p {
  margin: 0;
  max-width: 32em;
  font-size: clamp(21px, 1.7cqw, 24px);
  line-height: 1.46;
}
.hero p + p { margin-top: 1.46em; }

/* Flow graphic */
.flow-section { overflow: hidden; }
.b3 .flow-wrap { padding-bottom: clamp(36px, 4cqw, 56px); }
.b3 .flow {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .82fr) minmax(0, 1.3fr) minmax(0, .82fr) minmax(0, 1.08fr);
}
.b3 .run {
  position: absolute;
  left: -1400px;
  right: -1400px;
  top: 108px;
  height: 16px;
  background: #722B8E;
}
.b3 .fl {
  position: absolute;
  top: 98px;
  width: 8px;
  height: 36px;
  border-radius: 2px;
  background: #722B8E;
}
.b3 .fl-left { left: -34px; }
.b3 .fl-right { right: -34px; }
.b3 .bend { display: none; }

.b3 .card {
  position: relative;
  box-sizing: border-box;
  border-radius: 12px;
  min-height: clamp(136px, 16.4cqw, 232px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  gap: 6px;
}
.b3 .card-end {
  background: #FDFBF7;
  border: 1.5px solid #14273A;
  padding: 22px 14px;
}
.b3 .card-mid {
  background: #EFE5F2;
  border: 2px solid #722B8E;
  padding: 22px 18px;
}
.card-name {
  font-family: "Bitter", Georgia, serif;
  font-size: clamp(23px, 1.9cqw, 27px);
  line-height: 1.22;
  font-weight: 600;
}
.card-name-mid {
  font-family: "Bitter", Georgia, serif;
  font-size: clamp(25px, 2.1cqw, 30px);
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 2px;
}
.card-text {
  font-size: clamp(18px, 1.4cqw, 20px);
  line-height: 1.34;
}

.b3 .link {
  position: relative;
  display: grid;
  grid-template-rows: 108px 16px auto;
  min-width: 0;
}
.b3 .lab { font-size: 18px; line-height: 1.25; }
.b3 .lab.w {
  align-self: end;
  text-align: center;
  padding: 0 8px 10px;
  font-weight: 600;
}
.b3 .pipe { position: relative; height: 16px; }
.b3 .pipe svg { position: absolute; right: 0; top: -8px; display: block; }
.b3 .pay {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 14px 0;
}
.b3 .arw { display: flex; align-items: center; }
.b3 .ln { display: block; flex: 1 1 auto; border-top: 2px dashed #14273A; }
.b3 .arw svg { flex: none; display: block; }
.b3 .lab.p { text-align: center; }
.b3 .lab.p-strong { font-weight: 600; }

/* Legend */
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin-top: 22px;
  font-size: 17px;
  font-weight: 600;
}
.legend-item { display: flex; align-items: center; gap: 12px; }
.key-water {
  display: block;
  width: 44px;
  height: 12px;
  background: #722B8E;
  border-radius: 2px;
}
.key-pay { display: block; width: 44px; border-top: 2px dashed #14273A; }

/* Footer */
.b3 .ft {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  border-top: 2px solid #14273A;
  padding-top: 18px;
  padding-bottom: 32px;
  font-size: 16px;
  line-height: 1.45;
}
.ft-phone {
  white-space: nowrap;
  text-underline-offset: 3px;
  text-decoration-color: #722B8E;
}
.nowrap { white-space: nowrap; }
.b3 .fsep { display: block; width: 2px; height: 16px; background: #14273A; }

@container b3 (max-width: 760px) {
  .b3 .ft { flex-direction: column; align-items: flex-start; gap: 2px; }
  .b3 .fsep { display: none; }
}

@container b3 (max-width: 620px) {
  .b3 .hloc { flex-direction: column; align-items: flex-end; gap: 2px; }
}

/* Wide screens: headline on one line and the two paragraphs side by side, so the text spans the same width as the flow graphic. */
@container b3 (min-width: 900px) {
  .hero h1 { max-width: none; text-wrap: balance; }
  .hero-copy {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: clamp(32px, 4cqw, 64px);
  }
  .hero p { max-width: none; }
  .hero p + p { margin-top: 0; }
}

@container b3 (max-width: 1080px) {
  .b3 .wrap { padding: 0 20px; }
  .b3 .flow-wrap { padding-bottom: clamp(36px, 4cqw, 56px); }
  .b3 .run { display: none; }
  .b3 .flow { grid-template-columns: minmax(0, 1fr); padding: 84px 0; }
  /* The pipe enters from the left edge, bends down through the cards, and bends out off the right edge. */
  .b3 .bend {
    display: block;
    position: absolute;
    box-sizing: border-box;
    height: 86px;
    border: 0 solid #722B8E;
  }
  .b3 .bend-in {
    top: 0;
    left: -100px;
    right: calc(50% + 8px);
    border-top-width: 16px;
    border-right-width: 16px;
    border-top-right-radius: 40px;
  }
  .b3 .bend-out {
    bottom: 0;
    left: calc(50% - 24px);
    right: -100px;
    border-bottom-width: 16px;
    border-left-width: 16px;
    border-bottom-left-radius: 40px;
  }
  .b3 .fl { left: calc(50% - 34px); width: 36px; height: 8px; }
  .b3 .fl-left { top: 50px; }
  .b3 .fl-right { top: auto; right: auto; bottom: 50px; }
  .b3 .link {
    grid-template-rows: none;
    grid-template-columns: minmax(0, 1fr) 16px 20px minmax(0, 1fr);
    column-gap: 12px;
    align-items: center;
    min-height: 100px;
  }
  .b3 .lab.w { padding: 0; text-align: right; align-self: center; }
  .b3 .pipe { height: auto; align-self: stretch; width: 16px; background: #722B8E; }
  .b3 .pipe svg { right: auto; top: auto; left: 50%; bottom: -4px; transform: translateX(-50%) rotate(90deg); }
  .b3 .pay { display: contents; }
  .b3 .arw { flex-direction: column; align-self: stretch; width: 20px; padding: 4px 0; box-sizing: border-box; }
  .b3 .ln { width: 0; border-top: 0; border-left: 2px dashed #14273A; }
  .b3 .arw svg { transform: rotate(90deg); }
  .b3 .lab.p { text-align: left; }
}
