/* RUWBI INC — headgate flume shed theme
   Palette:
   FLUME-PAPER  #F2F4EE  body background
   STEM-INK     #26302C  primary text / dark well
   CANAL-BLUE   #2E5560  accent
   BOARD-CREAM  #FBFBF3  panels / cards
   GATE-RUST    #A05A32  headgate wheel accent (sparingly)
   ALFALFA-GREY #6E7A6E  secondary labels / small rules
   SEDIMENT-BONE#C9C39E  measuring board marks + gauge plate + one display word only
   FERN-BANK    #8FA5A0  gooseneck glyph + siphon dots only
*/

* { box-sizing: border-box; }

body {
  font-size: 16px;
  margin: 0;
  padding: 0;
  background: #F2F4EE;
  color: #26302C;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.68;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: Georgia, "Times New Roman", serif; line-height: 1.22; margin: 0 0 0.5em; }

a { color: #2E5560; }

img { max-width: 100%; }

.shell { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ============ DITCH RAIL HEADER ============ */
.ditchrail {
  background: #26302C;
  padding: 14px 0 0;
  border-bottom: 6px solid #2E5560;
}
.ditchrail-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 14px;
  display: flex;
  align-items: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}
.ditchrail-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #FBFBF3;
  color: #26302C;
  padding: 9px 16px;
  border-radius: 3px;
  font-weight: bold;
  letter-spacing: 0.06em;
  font-size: 1.02rem;
  box-shadow: inset 0 -3px 0 #A05A32;
}
.ditchrail-glyph {
  width: 20px;
  height: 20px;
  display: inline-block;
  position: relative;
  flex: 0 0 auto;
}
.ditchrail-glyph::before {
  content: "";
  position: absolute;
  left: 2px; top: 2px;
  width: 16px; height: 16px;
  border: 3px solid #A05A32;
  border-radius: 50%;
}
.ditchrail-glyph::after {
  content: "";
  position: absolute;
  left: 9px; top: 0;
  width: 2px; height: 20px;
  background: #A05A32;
}
.ditchrail-boards {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  flex-wrap: wrap;
  margin-left: auto;
}
.flumeboard {
  display: inline-block;
  background: #FBFBF3;
  color: #26302C;
  text-decoration: none;
  padding: 8px 15px;
  border-radius: 2px;
  font-size: 0.93rem;
  border-bottom: 3px solid #2E5560;
  transition: background 0.18s, color 0.18s;
}
.flumeboard:hover { background: #2E5560; color: #FBFBF3; border-bottom-color: #A05A32; }
.flumeboard.b1 { padding: 7px 14px; }
.flumeboard.b2 { padding: 10px 17px; }
.flumeboard.b3 { padding: 8px 15px; }
.flumeboard.b4 { padding: 11px 16px; }
.flumeboard.b5 { padding: 7px 18px; }
.ditchrail-toggle {
  display: none;
  background: #FBFBF3;
  color: #26302C;
  border: 0;
  border-radius: 3px;
  padding: 10px 16px;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  margin-left: auto;
  box-shadow: inset 0 -3px 0 #A05A32;
}

/* ============ HERO : HEADGATE BAY ============ */
.headgate {
  padding: 60px 0 0;
  background: #F2F4EE;
}
.headgate-copy { max-width: 760px; }
.headgate h1 {
  font-size: 3.05rem;
  margin: 0 0 12px;
  color: #26302C;
}
.headgate .word-on-turn {
  color: #2E5560;
  font-style: italic;
}
.headgate .display-last {
  display: block;
  font-size: 4.4rem;
  color: #2E5560;
  letter-spacing: 0.01em;
}
.headgate-lede {
  font-size: 1.13rem;
  color: #26302C;
  margin: 6px 0 20px;
  max-width: 720px;
}
.headgate-lede a {
  color: #2E5560;
  font-weight: bold;
  text-decoration: none;
  border-bottom: 2px solid #8FA5A0;
}
.headgate-lede a:hover { border-bottom-color: #2E5560; }

/* full width shed band */
.shedband {
  background: #FBFBF3;
  border-top: 4px solid #26302C;
  border-bottom: 4px solid #26302C;
  margin-top: 34px;
}
.shedband-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 24px 0;
  display: grid;
  grid-template-columns: 1fr 1.25fr 1fr;
  gap: 34px;
  align-items: end;
}

/* --- LEFT: cast-iron headgate --- */
.headgate-unit { text-align: center; padding-bottom: 28px; }
.headgate-frame {
  width: 130px;
  height: 190px;
  margin: 0 auto 12px;
  border: 12px solid #26302C;
  border-radius: 4px;
  position: relative;
  background: #E9ECE4;
}
.headgate-frame::before {
  content: "";
  position: absolute;
  left: 50%; top: 0;
  transform: translateX(-50%);
  width: 14px; height: 100%;
  background: #4A5650;
}
.headgate-frame::after {
  content: "";
  position: absolute;
  left: 8%; right: 8%; top: 46%;
  height: 12px;
  background: #26302C;
}
.headgate-stem {
  width: 8px;
  height: 46px;
  margin: 0 auto;
  background: #6E7A6E;
}
.headgate-wheel {
  width: 62px;
  height: 62px;
  margin: 0 auto;
  border: 8px solid #A05A32;
  border-radius: 50%;
  position: relative;
}
.headgate-wheel::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 4px; height: 100%;
  background: #A05A32;
}
.headgate-wheel::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 100%; height: 4px;
  background: #A05A32;
}
.orderlabel {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6E7A6E;
  margin-top: 14px;
}

/* --- CENTER: flume with measuring board + siphon ladder --- */
.flume-unit { padding-bottom: 28px; }
.measure-board {
  background: #26302C;
  border: 5px solid #8B8467;
  border-radius: 3px;
  padding: 8px 14px;
  margin: 0 auto 16px;
  max-width: 360px;
}
.measure-ticks {
  background: #F2F4EE;
  height: 40px;
  position: relative;
  border-radius: 2px;
}
.measure-ticks::before {
  content: "";
  position: absolute;
  left: 6%; right: 6%; top: 50%;
  height: 2px;
  background: #2E5560;
}
.measure-ticks span {
  position: absolute;
  top: 6px; bottom: 6px;
  width: 2px;
  background: #C9C39E;
}
.measure-ticks span:nth-child(1) { left: 14%; }
.measure-ticks span:nth-child(2) { left: 28%; height: 50%; top: 25%; }
.measure-ticks span:nth-child(3) { left: 42%; }
.measure-ticks span:nth-child(4) { left: 56%; height: 50%; top: 25%; }
.measure-ticks span:nth-child(5) { left: 70%; }
.measure-ticks span:nth-child(6) { left: 84%; height: 50%; top: 25%; }
.gauge-plate {
  background: #C9C39E;
  color: #26302C;
  border: 3px solid #26302C;
  border-radius: 2px;
  padding: 6px 12px;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-align: center;
  margin: 10px auto 0;
  max-width: 300px;
}
.flume-boards {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 18px;
}
.flume-boards i {
  display: block;
  height: 15px;
  background: #C9B98E;
  border-radius: 2px;
  border-bottom: 2px solid #A5966E;
}
.flume-boards i:nth-child(1) { width: 100%; }
.flume-boards i:nth-child(2) { width: 92%; }
.flume-boards i:nth-child(3) { width: 97%; }
.flume-boards i:nth-child(4) { width: 88%; }
.siphon-ladder { display: flex; flex-direction: column; gap: 9px; }
.siphon-ladder i {
  display: block;
  height: 13px;
  width: 82%;
  background: #B9C2C5;
  border-radius: 7px;
  position: relative;
}
.siphon-ladder i::after {
  content: "";
  position: absolute;
  right: 0; top: 3px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #8FA5A0;
}
.siphon-ladder i:nth-child(1) { margin-left: 0; }
.siphon-ladder i:nth-child(2) { margin-left: 12%; width: 74%; }
.siphon-ladder i:nth-child(3) { margin-left: 4%; width: 86%; }
.siphon-ladder i:nth-child(4) { margin-left: 16%; width: 70%; }

/* --- RIGHT: ledger, roster, rack, lamp --- */
.ledger-stack { padding-bottom: 28px; }
.flow-ledger {
  background: #FBFBF3;
  border: 3px solid #26302C;
  border-radius: 3px;
  padding: 12px;
  margin-bottom: 14px;
}
.flow-ledger h4 { font-size: 0.86rem; color: #6E7A6E; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 8px; }
.ledger-row {
  display: flex;
  gap: 8px;
  border-top: 2px solid #C9C39E;
  padding: 6px 0;
  font-size: 0.8rem;
  color: #26302C;
}
.ledger-row b { flex: 0 0 46px; color: #2E5560; }
.ledger-row:last-child { border-bottom: 2px solid #C9C39E; }
.roster-board {
  background: #26302C;
  border-radius: 3px;
  padding: 12px;
  margin-bottom: 14px;
}
.roster-board h4 { font-size: 0.8rem; color: #C9C39E; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 8px; }
.roster-slot {
  background: #3A4540;
  color: #FBFBF3;
  font-size: 0.78rem;
  padding: 5px 10px;
  border-radius: 2px;
  margin-bottom: 6px;
  border-left: 4px solid #8FA5A0;
}
.goseneck-rack { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.goseneck-rack i {
  display: block;
  height: 12px;
  width: 60%;
  background: #8FA5A0;
  border-radius: 3px 9px 9px 3px;
  border-left: 4px solid #26302C;
}
.goseneck-rack i:nth-child(2) { width: 72%; margin-left: 10%; }
.goseneck-rack i:nth-child(3) { width: 55%; margin-left: 5%; }
.shed-lamp {
  width: 54px;
  height: 44px;
  margin: 0 auto;
  position: relative;
}
.shed-lamp::before {
  content: "";
  position: absolute;
  left: 50%; top: 0;
  width: 3px; height: 16px;
  background: #6E7A6E;
  transform: translateX(-50%);
}
.shed-lamp::after {
  content: "";
  position: absolute;
  left: 6px; bottom: 0;
  width: 42px; height: 26px;
  background: #C9C39E;
  border: 3px solid #26302C;
  border-radius: 50% 50% 8px 8px;
}

/* primary CTA : full width functional bar */
.headgate-cta {
  display: block;
  background: #2E5560;
  color: #FBFBF3;
  text-decoration: none;
  text-align: center;
  padding: 20px 24px;
  font-size: 1.12rem;
  letter-spacing: 0.04em;
  border-top: 4px solid #26302C;
  transition: background 0.18s;
}
.headgate-cta:hover { background: #26302C; }
.headgate-cta .arrow { margin-left: 12px; }

/* ============ SIPHON LADDER RUNS ============ */
.siphonladder {
  padding: 66px 0 20px;
  background: #F2F4EE;
}
.section-intro { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.section-intro h2 { font-size: 2.35rem; color: #26302C; margin-bottom: 10px; }
.section-intro p { color: #6E7A6E; font-size: 1.05rem; margin: 0; }

.rung {
  background: #FBFBF3;
  border: 3px solid #26302C;
  border-left: 12px solid #2E5560;
  border-radius: 3px;
  padding: 26px 30px;
  margin: 0 auto 22px;
  position: relative;
  max-width: 100%;
}
.rung h3 { font-size: 1.5rem; color: #26302C; margin-bottom: 8px; padding-left: 54px; }
.rung p { margin: 0; color: #26302C; padding-left: 54px; }
.rung p a { color: #2E5560; font-weight: bold; }
.pipe-tag {
  position: absolute;
  left: -12px; top: 22px;
  background: #A05A32;
  color: #FBFBF3;
  font-size: 0.85rem;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 2px;
  min-width: 26px;
  text-align: center;
}
.rung-a { width: 88%; margin-left: 0; }
.rung-c { width: 94%; margin-left: auto; }
.rung-f { width: 90%; margin-left: 4%; border-left-color: #26302C; }
.rung-j { width: 86%; margin-left: 0; }
.rung-m { width: 96%; margin-left: 3%; }
.rung-r { width: 92%; margin-left: 5%; border-left-color: #26302C; }
.gate-wheel { position: absolute; right: 24px; top: 24px; width: 30px; height: 30px; border: 5px solid #A05A32; border-radius: 50%; }
.gate-wheel::before { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 2px; height: 100%; background: #A05A32; }
.gate-wheel::after { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 100%; height: 2px; background: #A05A32; }
.siphon-dot { position: absolute; right: 30px; top: 30px; width: 16px; height: 16px; border-radius: 50%; background: #8FA5A0; }

/* ============ FLOW BAND ============ */
.flowband {
  background: #26302C;
  padding: 26px 0;
  margin: 20px 0 0;
}
.flowband-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}
.gauge-sliver {
  display: flex;
  gap: 6px;
  flex: 0 0 auto;
}
.gauge-sliver i { display: block; width: 10px; height: 22px; background: #C9C39E; border-radius: 1px; }
.gauge-sliver i:nth-child(2) { height: 16px; margin-top: 6px; }
.gauge-sliver i:nth-child(3) { height: 22px; }
.gauge-sliver i:nth-child(4) { height: 14px; margin-top: 8px; }
.flowband p { color: #FBFBF3; margin: 0; font-size: 1.06rem; }
.flowband a { color: #FBFBF3; }

/* ============ OVERVIEW BLOCKS ============ */
.overview { padding: 64px 0; background: #F2F4EE; }
.overview h2 { font-size: 2.2rem; color: #26302C; margin-bottom: 18px; }
.overview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.overview p { color: #26302C; margin: 0 0 16px; }
.overview a { color: #2E5560; font-weight: bold; }
.stat-board {
  background: #FBFBF3;
  border: 3px solid #26302C;
  border-top: 10px solid #2E5560;
  border-radius: 3px;
  padding: 24px 26px;
}
.stat-board h3 { font-size: 1.2rem; color: #26302C; margin-bottom: 12px; }
.stat-board ul { margin: 0; padding-left: 20px; color: #26302C; }
.stat-board li { margin-bottom: 8px; }

/* ============ FOOTER : RIDER SHED ============ */
.ridershed {
  background: #26302C;
  color: #FBFBF3;
  padding: 54px 0 0;
  border-top: 8px solid #2E5560;
}
.ridershed-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.ridershed-brandplate {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #FBFBF3;
  color: #26302C;
  padding: 9px 16px;
  border-radius: 3px;
  font-weight: bold;
  letter-spacing: 0.06em;
  box-shadow: inset 0 -3px 0 #A05A32;
  margin-bottom: 14px;
}
.ridershed-blurb { color: #FBFBF3; margin: 0; }
.ridershed-col h4 { color: #8FA5A0; font-size: 0.84rem; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 12px; }
.ridershed-links { list-style: none; margin: 0; padding: 0; }
.ridershed-links li { margin-bottom: 8px; }
.ridershed-links a { color: #FBFBF3; text-decoration: none; border-bottom: 1px solid #4A5650; }
.ridershed-links a:hover { border-bottom-color: #C9C39E; }
.boardstrip {
  background: #1C2521;
  border-top: 3px solid #2E5560;
}
.boardstrip-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  color: #C9C39E;
  font-size: 0.9rem;
  align-items: center;
}
.boardstrip a { color: #C9C39E; }
.wheel-glyph {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 3px solid #C9C39E;
  border-radius: 50%;
  position: relative;
  vertical-align: middle;
  margin-right: 6px;
}
.wheel-glyph::before { content: ""; position: absolute; left: 50%; top: -3px; width: 2px; height: 14px; background: #C9C39E; transform: translateX(-50%); }

/* ============ shared page head ============ */
.pagehead { background: #F2F4EE; padding: 52px 0 10px; }
.pagehead-tight { padding-top: 0; }
.pagehead h1 { font-size: 2.7rem; color: #26302C; margin-bottom: 10px; }
.pagehead p { max-width: 720px; color: #26302C; font-size: 1.08rem; }

/* services process */
.process { padding: 20px 0 60px; }
.process h2 { font-size: 2rem; color: #26302C; margin: 40px 0 14px; }
.process p { color: #26302C; margin: 0 0 16px; }
.step-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 26px 0 10px; }
.step-cell { background: #FBFBF3; border: 3px solid #26302C; border-radius: 3px; padding: 20px; }
.step-cell .pipe-tag2 { display: inline-block; background: #2E5560; color: #FBFBF3; font-size: 0.78rem; padding: 3px 9px; border-radius: 2px; margin-bottom: 10px; }
.step-cell h4 { color: #26302C; font-size: 1.05rem; margin: 0 0 6px; }
.step-cell p { color: #26302C; font-size: 0.94rem; margin: 0; }

/* contact */
.contactpage { padding: 40px 0 60px; }
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 44px; }
.contact-form { background: #FBFBF3; border: 3px solid #26302C; border-top: 10px solid #2E5560; border-radius: 3px; padding: 28px; }
.contact-form label { display: block; font-size: 0.86rem; letter-spacing: 0.08em; text-transform: uppercase; color: #6E7A6E; margin: 0 0 6px; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: #26302C;
  background: #F2F4EE;
  border: 2px solid #26302C;
  border-radius: 3px;
  padding: 11px 13px;
  margin-bottom: 18px;
}
.contact-form button {
  font-family: inherit;
  font-size: 1.05rem;
  background: #2E5560;
  color: #FBFBF3;
  border: 0;
  border-radius: 3px;
  padding: 14px 30px;
  cursor: pointer;
}
.contact-form button:hover { background: #26302C; }
.detail-panel { background: #26302C; color: #FBFBF3; border-radius: 3px; padding: 28px; }
.detail-panel h3 { color: #C9C39E; font-size: 1.1rem; margin: 0 0 12px; }
.detail-panel p { margin: 0 0 14px; color: #FBFBF3; }
.detail-panel a { color: #8FA5A0; }
.hours-list { list-style: none; margin: 0; padding: 0; }
.hours-list li { border-bottom: 2px solid #3A4540; padding: 8px 0; display: flex; justify-content: space-between; color: #FBFBF3; }
.faq { padding: 10px 0 60px; }
.faq h2 { font-size: 2rem; color: #26302C; margin-bottom: 20px; }
.faq-item { background: #FBFBF3; border: 3px solid #26302C; border-radius: 3px; margin-bottom: 14px; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: #FBFBF3; color: #26302C; border: 0; font-family: inherit; font-size: 1.08rem; font-weight: bold; padding: 18px 22px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-q:hover { background: #E9ECE4; }
.faq-q .faq-mark { color: #A05A32; font-size: 1.3rem; flex: 0 0 auto; }
.faq-a { padding: 0 22px 20px; color: #26302C; margin: 0; }
.faq-a[hidden] { display: none; }

/* ============ scroll reveal ============ */
.reveal { transform: translateY(18px); }
.reveal.is-in { transform: translateY(0); transition: transform 0.6s ease; }
html.no-js .reveal { transform: none; }

/* ============ responsive ============ */
@media (max-width: 940px) {
  .headgate h1 { font-size: 2.4rem; }
  .headgate .display-last { font-size: 3.2rem; }
  .shedband-grid { grid-template-columns: 1fr; }
  .overview-grid { grid-template-columns: 1fr; }
  .step-strip { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .ridershed-inner { grid-template-columns: 1fr; }
  .rung-a, .rung-c, .rung-f, .rung-j, .rung-m, .rung-r { width: 100%; margin-left: 0; }
}
@media (max-width: 720px) {
  .ditchrail-boards { display: none; flex-direction: column; width: 100%; }
  .ditchrail-boards.open { display: flex; }
  .ditchrail-toggle { display: inline-block; }
  .flumeboard { width: 100%; }
  .ditchrail-inner { align-items: center; }
  .step-strip { grid-template-columns: 1fr; }
  .headgate h1 { font-size: 2rem; }
  .headgate .display-last { font-size: 2.6rem; }
}
