/* Streamlyne LLC — Canal Lock and Flow Gauge theme */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --canal-mist: #F4F8F8;
  --sluice-cream: #FDFEFB;
  --lock-teal: #1E6B66;
  --gate-iron: #5E6E70;
  --river-mint: #9BC8B8;
  --amber: #D9A03E;
  --teal-ink: #1F3333;
  --hairline: #DAE6E4;
  --deep-lock: #143532;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: #1F3333;
  background-color: #F4F8F8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--lock-teal);
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------- WINDLASS NAV ---------------- */
.windlass-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--sluice-cream);
  box-shadow: 0 2px 10px rgba(20, 53, 50, 0.08);
}

.water-level-strip {
  height: 12px;
  width: 100%;
  position: relative;
  background-color: var(--river-mint);
  border-bottom: 2px solid var(--lock-teal);
}

.water-level-strip::before,
.water-level-strip::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 6px;
  background-color: var(--gate-iron);
}

.water-level-strip::before {
  left: 0;
}

.water-level-strip::after {
  right: 0;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 14px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lock-teal);
}

.brand-glyph {
  width: 18px;
  height: 18px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-glyph .wheel {
  width: 14px;
  height: 14px;
  border: 2px solid var(--gate-iron);
  border-radius: 50%;
  position: relative;
}

.brand-glyph .wheel::before,
.brand-glyph .wheel::after {
  content: "";
  position: absolute;
  background-color: var(--gate-iron);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.brand-glyph .wheel::before {
  width: 11px;
  height: 2px;
}

.brand-glyph .wheel::after {
  width: 2px;
  height: 11px;
}

.brand-glyph .chain {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 2px;
  height: 4px;
  background-color: var(--gate-iron);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-links li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.flow-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--river-mint);
}

.nav-links a {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal-ink);
  padding: 6px 4px;
  position: relative;
  transition: color 0.2s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background-color: var(--lock-teal);
  transition: width 0.25s;
}

.nav-links a:hover {
  color: var(--lock-teal);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--hairline);
  color: var(--lock-teal);
  font-size: 22px;
  padding: 4px 12px;
  border-radius: 4px;
  cursor: pointer;
}

/* ---------------- LOCK-CHAMBER HERO ---------------- */
.lock-hero {
  background-color: var(--canal-mist);
  border-bottom: 1px solid var(--hairline);
}

.hero-text {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: 72px 24px 60px;
}

.eyebrow {
  display: inline-block;
  background-color: var(--lock-teal);
  color: var(--sluice-cream);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 8px 18px;
  border-radius: 2px;
  margin-bottom: 26px;
}

.hero-title {
  font-size: 52px;
  line-height: 1.08;
  font-weight: 700;
  color: var(--teal-ink);
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}

.hero-title .flow {
  color: var(--lock-teal);
}

.hero-sub {
  font-size: 18px;
  color: var(--gate-iron);
  max-width: 620px;
  margin: 0 auto 36px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 30px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 3px;
  border: 1px solid transparent;
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
}

.btn-fill {
  background-color: var(--lock-teal);
  color: var(--sluice-cream);
}

.btn-fill:hover {
  box-shadow: 0 4px 14px rgba(30, 107, 102, 0.35);
  transform: translateY(-1px);
}

.btn-outline {
  border-color: var(--lock-teal);
  color: var(--lock-teal);
  background-color: transparent;
}

.btn-outline:hover {
  background-color: var(--lock-teal);
  color: var(--sluice-cream);
}

/* Lock chamber drawn in pure CSS */
.lock-chamber {
  background-color: var(--gate-iron);
  position: relative;
  height: 260px;
  overflow: hidden;
}

.chamber-water {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 150px;
  background-color: var(--river-mint);
}

.chamber-water::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--lock-teal);
}

.chamber-wall-left,
.chamber-wall-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 64px;
  background-color: #66787A;
  background-image: linear-gradient(#5E6E70 1px, transparent 1px);
  background-size: 100% 18px;
}

.chamber-wall-left {
  left: 0;
}

.chamber-wall-right {
  right: 0;
}

.chamber-wall-left::before,
.chamber-wall-right::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background-color: var(--gate-iron);
}

.flow-arrows {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  display: flex;
  justify-content: space-between;
}

.flow-arrow {
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 16px solid rgba(31, 51, 51, 0.5);
  animation: floatArrow 2.4s ease-in-out infinite;
}

.flow-arrow.small {
  border-bottom-color: #B9CFC9;
  transform: scale(0.7);
}

.flow-arrow.large {
  animation-delay: 0.4s;
}

@keyframes floatArrow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.gate-leaf {
  position: absolute;
  bottom: 0;
  width: 34px;
  background-color: var(--lock-teal);
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  transform-style: preserve-3d;
}

.gate-leaf::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 4px;
  background-color: var(--teal-ink);
  box-shadow: 0 7px 0 -2px var(--sluice-cream);
}

.gate-leaf.left {
  left: 43%;
}

.gate-leaf.right {
  right: 43%;
  transform: perspective(200px) rotateY(18deg);
  transform-origin: right bottom;
}

.cill-mark {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 24px;
  background-color: #4E5F61;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}

.gauge-board {
  position: absolute;
  left: 76px;
  bottom: 16px;
  width: 42px;
  height: 96px;
  background-color: var(--sluice-cream);
  border: 2px solid var(--teal-ink);
  overflow: hidden;
}

.gauge-board::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  width: 30px;
  height: 78px;
  background-image: repeating-linear-gradient(
    var(--teal-ink) 0 1px, transparent 1px 12px
  );
  filter: saturate(0.65);
}

.gauge-fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 46%;
  background-color: var(--river-mint);
}

.gauge-fill::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--lock-teal);
}

.towpath-edge {
  position: absolute;
  right: 64px;
  top: 20px;
  width: calc(100% - 160px);
  border-top: 3px solid #4E5F61;
}

.bollard {
  position: absolute;
  right: 100px;
  top: 12px;
  width: 12px;
  height: 26px;
  background-color: var(--sluice-cream);
  border: 2px solid var(--gate-iron);
  border-radius: 3px;
}

.lamp-post {
  position: absolute;
  left: calc(50% - 160px);
  top: 20px;
  width: 2px;
  height: 30px;
  background-color: var(--gate-iron);
}

.lamp-light {
  position: absolute;
  left: calc(50% - 163px);
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--amber);
}

/* ---------------- STAGE-GATE ROWS ---------------- */
.stagegate-rows {
  background-color: var(--canal-mist);
  padding: 76px 0;
}

.section-title {
  font-size: 36px;
  color: var(--lock-teal);
  margin-bottom: 12px;
  font-weight: 700;
}

.section-lead {
  color: var(--gate-iron);
  font-size: 17px;
  max-width: 640px;
  margin-bottom: 44px;
}

.stage-row {
  display: flex;
  align-items: center;
  gap: 26px;
  background-color: var(--sluice-cream);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 28px 30px;
  margin-bottom: 12px;
  transition: box-shadow 0.2s;
}

.stage-row:hover {
  box-shadow: 0 6px 18px rgba(30, 107, 102, 0.1);
}

.stage-plate {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  background-color: var(--gate-iron);
  color: var(--sluice-cream);
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  position: relative;
}

.stage-plate::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 2px;
  background-color: var(--river-mint);
  border-radius: 1px;
}

.stage-body {
  flex: 1 1 auto;
}

.stage-body h3 {
  font-size: 21px;
  color: var(--teal-ink);
  margin-bottom: 8px;
}

.stage-body p {
  color: var(--gate-iron);
  font-size: 16px;
}

.water-level-mark {
  flex: 0 0 42px;
  width: 42px;
  height: 86px;
  background-color: var(--sluice-cream);
  border: 1px solid var(--hairline);
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.water-level-mark::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: 30px;
  background-image: repeating-linear-gradient(
    var(--hairline) 0 1px, transparent 1px 10px
  );
}

.level-fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--river-mint);
  transition: height 0.3s;
}

.level-fill .level-line {
  display: block;
  height: 2px;
  background-color: var(--lock-teal);
}

.level-q { height: 24%; }
.level-h { height: 50%; }
.level-t { height: 74%; }
.level-f { height: 92%; }
.level-s { height: 100%; }

/* ---------------- HEADWATER METRIC BAND ---------------- */
.headwater-band {
  background-color: var(--lock-teal);
  padding: 60px 24px;
}

.metric-grid {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  max-width: 1140px;
  margin: 0 auto;
}

.metric-block {
  flex: 1 1 0;
  text-align: center;
  border-right: 1px solid var(--river-mint);
  padding: 0 12px;
}

.metric-block:last-child {
  border-right: none;
}

.metric-num {
  font-size: 44px;
  font-weight: 700;
  color: var(--sluice-cream);
  line-height: 1.1;
}

.metric-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--river-mint);
  margin-top: 10px;
}

/* ---------------- STATEMENT BAND ---------------- */
.statement-band {
  background-color: var(--sluice-cream);
  padding: 72px 24px;
  border-bottom: 1px solid var(--hairline);
}

.statement {
  max-width: 780px;
  margin: 0 auto;
  border-left: 4px solid var(--river-mint);
  padding-left: 26px;
}

.statement p {
  font-size: 23px;
  line-height: 1.55;
  color: var(--teal-ink);
  margin-bottom: 18px;
}

.statement .attrib {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--lock-teal);
  font-weight: 600;
}

/* ---------------- PROCESS OVERVIEW ---------------- */
.process-steps {
  background-color: var(--canal-mist);
  padding: 76px 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.step-item {
  background-color: var(--sluice-cream);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 28px 24px;
  position: relative;
}

.step-item .step-num {
  font-size: 34px;
  font-weight: 700;
  color: var(--river-mint);
  margin-bottom: 10px;
}

.step-item h3 {
  font-size: 19px;
  color: var(--teal-ink);
  margin-bottom: 10px;
}

.step-item p {
  color: var(--gate-iron);
  font-size: 15px;
}

/* ---------------- CTA BAND ---------------- */
.cta-band {
  background-color: var(--canal-mist);
  padding: 80px 24px;
  text-align: center;
}

.cta-band h2 {
  font-size: 36px;
  color: var(--lock-teal);
  margin-bottom: 14px;
}

.cta-band p {
  color: var(--gate-iron);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto 34px;
}

/* ---------------- TOWPATH FOOTER ---------------- */
.towpath-footer {
  background-color: var(--deep-lock);
  color: var(--sluice-cream);
  padding: 0 24px 34px;
  position: relative;
  z-index: 1;
}

.coping-stones {
  height: 14px;
  background-color: var(--gate-iron);
  margin: 0 -24px 40px;
  background-image: linear-gradient(
    var(--river-mint) 1px, transparent 1px
  );
  background-size: 60px 100%;
  background-repeat: repeat-x;
}

.footer-inner {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sluice-cream);
  margin-bottom: 22px;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 26px;
}

.footer-links a {
  color: var(--sluice-cream);
}

.footer-links a:hover {
  color: var(--river-mint);
}

.paddle-gear {
  width: 26px;
  height: 26px;
  margin: 0 auto 20px;
  position: relative;
}

.paddle-gear .ring {
  width: 26px;
  height: 26px;
  border: 2px solid var(--river-mint);
  border-radius: 50%;
}

.paddle-gear .spoke {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 2px;
  background-color: var(--river-mint);
  transform: translate(-50%, -50%);
}

.paddle-gear .spoke.v {
  transform: translate(-50%, -50%) rotate(90deg);
}

.legal-line {
  font-size: 13px;
  color: #B9C9C7;
  line-height: 1.7;
}

.legal-line a {
  color: var(--river-mint);
}

/* ---------------- Contact page ---------------- */
.contact-form {
  background-color: var(--sluice-cream);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 32px;
  max-width: 760px;
}

.form-row {
  display: flex;
  gap: 18px;
}

.form-field {
  flex: 1 1 0;
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--teal-ink);
  margin-bottom: 6px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  color: var(--teal-ink);
  background-color: #FFFFFF;
  border: 1px solid var(--hairline);
  border-radius: 4px;
  font-family: inherit;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--lock-teal);
  box-shadow: 0 0 0 2px rgba(30, 107, 102, 0.15);
}

.form-status {
  margin-bottom: 16px;
  font-size: 15px;
  font-weight: 600;
}

.form-status.error {
  color: #9A3E2E;
}

.form-status.ok {
  color: var(--lock-teal);
}

.contact-detail {
  background-color: var(--sluice-cream);
  padding: 76px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.contact-card {
  background-color: var(--canal-mist);
  border: 1px solid var(--hairline);
  border-left: 4px solid var(--lock-teal);
  border-radius: 6px;
  padding: 26px;
}

.contact-card h3 {
  font-size: 18px;
  color: var(--lock-teal);
  margin-bottom: 12px;
}

.contact-card p {
  color: var(--gate-iron);
  line-height: 1.8;
}

.faq-section {
  background-color: var(--canal-mist);
  padding: 76px 0;
}

.faq-item {
  background-color: var(--sluice-cream);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 26px;
  font-size: 17px;
  font-weight: 600;
  color: var(--teal-ink);
  cursor: pointer;
  font-family: inherit;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: "+";
  font-size: 22px;
  color: var(--lock-teal);
  transition: transform 0.2s;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  color: var(--gate-iron);
  padding: 0 26px 22px;
  font-size: 16px;
}

@media (max-width: 760px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  .contact-cards {
    grid-template-columns: 1fr;
  }
}

.legal-line a:hover {
  text-decoration: underline;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .metric-grid {
    flex-wrap: wrap;
  }
  .metric-block {
    flex: 1 1 40%;
    border-right: none;
  }
  .steps-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--sluice-cream);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 24px 20px;
    border-bottom: 1px solid var(--hairline);
    box-shadow: 0 10px 18px rgba(20, 53, 50, 0.08);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links li {
    justify-content: center;
    padding: 8px 0;
  }
  .flow-dot {
    display: none;
  }
  .hero-title {
    font-size: 38px;
  }
  .stage-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .water-level-mark {
    align-self: flex-end;
    width: 100%;
    height: 46px;
  }
  .level-fill {
    width: auto;
  }
  .level-fill .level-line {
    width: 100%;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .lock-chamber {
    height: 200px;
  }
  .chamber-wall-left,
  .chamber-wall-right {
    width: 34px;
  }
  .gauge-board {
    left: 46px;
  }
  .towpath-edge {
    right: 34px;
  }
  .bollard {
    right: 70px;
  }
}

/* Scroll reveal: default visible (safe without JS) */
.fade-up {
  opacity: 1;
  transform: none;
}

/* When JS is available, elements animate in via the .visible class */
html.js .fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

html.js .fade-up.visible {
  opacity: 1;
  transform: none;
}
