/* Appily Eighteen — Pump House Ledger contact */

.page-pump-house {
  --ph-mocha: #6b5b3e;
  --ph-mocha-dark: #4a3f2c;
  --ph-sage: #8fae7a;
  --ph-sage-soft: rgba(143, 174, 122, 0.16);
  --ph-amber: #c67d3a;
  --ph-amber-soft: rgba(198, 125, 58, 0.14);
  --ph-pipe: #8a9aa6;
  --ph-pipe-dark: #5c6b75;
  --ph-water: #7eb8d4;
  --ph-water-soft: rgba(126, 184, 212, 0.18);
  --ph-paper: #faf6ef;
  --ph-paper-line: rgba(107, 91, 62, 0.12);
  --ph-ink: #2c2419;
  --ph-wood: #8b7355;
  background:
    radial-gradient(ellipse at 12% 0%, rgba(126, 184, 212, 0.12) 0%, transparent 42%),
    linear-gradient(180deg, #eef4f0 0%, var(--white) 300px);
}

/* Shared */
.ph-kicker {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ph-mocha);
}

.ph-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
}

.ph-btn-primary {
  background: var(--ph-mocha);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(107, 91, 62, 0.26);
}

.ph-btn-primary:hover {
  background: var(--ph-mocha-dark);
  transform: translateY(-1px);
}

.ph-btn-soft {
  background: var(--white);
  color: var(--ph-ink);
  border: 1px solid var(--line);
}

.ph-btn-soft:hover {
  background: var(--ph-sage-soft);
  border-color: var(--ph-sage);
}

.ph-btn-outline {
  background: transparent;
  color: var(--ph-mocha);
  border: 1px solid rgba(107, 91, 62, 0.35);
}

.ph-btn-outline:hover {
  background: var(--ph-amber-soft);
}

/* Hero — pump shed */
.ph-hero {
  position: relative;
  padding: clamp(30px, 5vw, 44px) 0 clamp(22px, 4vw, 30px);
  overflow: hidden;
}

.ph-pipe-run {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 18px;
  background: linear-gradient(180deg, var(--ph-pipe) 0%, var(--ph-pipe-dark) 100%);
  box-shadow: 0 4px 12px rgba(44, 36, 25, 0.12);
  pointer-events: none;
}

.ph-pipe-run::after {
  content: "";
  position: absolute;
  left: 8%;
  top: 100%;
  width: 10px;
  height: 28px;
  background: linear-gradient(180deg, var(--ph-pipe-dark), var(--ph-water));
  border-radius: 0 0 4px 4px;
  animation: ph-drip 3.2s ease-in-out infinite;
}

@keyframes ph-drip {
  0%, 70%, 100% { opacity: 0.4; transform: scaleY(1); }
  78% { opacity: 1; transform: scaleY(1.15); }
  86% { opacity: 0.2; transform: scaleY(0.85); }
}

.ph-shed-shadow {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(180deg, transparent, rgba(107, 91, 62, 0.06));
  pointer-events: none;
}

.ph-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(20px, 4vw, 40px);
  align-items: center;
  padding-top: 20px;
}

.ph-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.9rem, 4.2vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ph-ink);
}

.ph-hero h1 em {
  font-style: normal;
  color: var(--ph-water);
}

.ph-lede {
  margin: 0 0 18px;
  max-width: 540px;
  color: var(--ink-soft);
  line-height: 1.65;
}

.ph-zone-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ph-zone-chips li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ph-mocha);
  background: var(--ph-water-soft);
  border: 1px solid rgba(126, 184, 212, 0.35);
}

.ph-zone-chips li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ph-water);
}

/* Pressure gauge panel */
.ph-gauge {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 20px 22px 18px;
  min-width: 170px;
  border-radius: 50%;
  width: 170px;
  height: 170px;
  background:
    radial-gradient(circle at 35% 30%, #fff 0%, #e8ece8 45%, #c8d0c8 100%);
  border: 4px solid var(--ph-pipe-dark);
  box-shadow:
    inset 0 2px 8px rgba(0, 0, 0, 0.08),
    0 14px 32px rgba(44, 36, 25, 0.14);
  text-align: center;
}

.ph-gauge-dial {
  position: relative;
  width: 100px;
  height: 50px;
  margin-top: 8px;
  overflow: hidden;
}

.ph-gauge-dial::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 3px solid var(--ph-pipe-dark);
  border-bottom: none;
  border-radius: 100px 100px 0 0;
  background: linear-gradient(180deg, var(--ph-sage-soft) 0%, transparent 100%);
}

.ph-gauge-needle {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 3px;
  height: 42px;
  background: var(--ph-amber);
  transform-origin: bottom center;
  transform: translateX(-50%) rotate(25deg);
  border-radius: 2px 2px 0 0;
  animation: ph-gauge-wobble 4s ease-in-out infinite;
}

@keyframes ph-gauge-wobble {
  0%, 100% { transform: translateX(-50%) rotate(22deg); }
  50% { transform: translateX(-50%) rotate(32deg); }
}

.ph-gauge-label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ph-pipe-dark);
}

.ph-gauge-status {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--ph-sage);
  letter-spacing: 0.04em;
}

.ph-gauge-code {
  font-size: 0.68rem;
  font-family: ui-monospace, monospace;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.ph-hero-plank {
  height: 8px;
  margin-top: 24px;
  background: repeating-linear-gradient(
    90deg,
    var(--ph-wood) 0,
    var(--ph-wood) 24px,
    var(--ph-mocha) 24px,
    var(--ph-mocha) 48px
  );
  opacity: 0.45;
}

/* Floor layout */
.ph-floor {
  padding: 8px 0 72px;
}

.ph-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 28px;
  align-items: start;
}

/* Ledger form */
.ph-ledger {
  position: relative;
  padding: 32px 28px 28px;
  border-radius: var(--radius-lg);
  background:
    repeating-linear-gradient(
      180deg,
      transparent 0,
      transparent 27px,
      var(--ph-paper-line) 27px,
      var(--ph-paper-line) 28px
    ),
    linear-gradient(175deg, var(--ph-paper) 0%, #fff 100%);
  border: 1px solid rgba(107, 91, 62, 0.18);
  box-shadow:
    0 2px 0 rgba(107, 91, 62, 0.08),
    0 18px 44px rgba(44, 36, 25, 0.08);
}

.ph-ledger::before,
.ph-ledger::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #c4a882, var(--ph-mocha));
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

.ph-ledger::before {
  top: 14px;
  left: 14px;
}

.ph-ledger::after {
  top: 14px;
  right: 14px;
}

.ph-ledger-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--ph-mocha);
}

.ph-ledger-stamp {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 4px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ph-mocha);
  border: 2px dashed var(--ph-sage);
  background: var(--white);
  transform: rotate(-4deg);
  flex-shrink: 0;
}

.ph-ledger-tag {
  margin: 0 0 2px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ph-mocha);
}

.ph-ledger-head h2 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--ph-ink);
}

.ph-ledger-ref {
  margin-left: auto;
  font-size: 0.72rem;
  font-family: ui-monospace, monospace;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* Notices */
.ph-notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  line-height: 1.5;
}

.ph-notice p {
  margin: 4px 0 0;
  font-size: 0.88rem;
  opacity: 0.85;
}

.ph-notice-success {
  background: var(--ph-water-soft);
  border: 1px solid rgba(126, 184, 212, 0.45);
  color: var(--ph-ink);
}

.ph-notice-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ph-water);
  color: var(--white);
  font-weight: 800;
  font-size: 0.85rem;
}

.ph-notice-error {
  background: #fff5f5;
  border: 1px solid rgba(198, 40, 40, 0.25);
  color: #c62828;
}

/* Form */
.ph-form {
  display: grid;
  gap: 0;
}

.ph-fields {
  display: grid;
  gap: 14px;
}

.ph-fields-duo {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ph-field {
  display: grid;
  gap: 6px;
}

.ph-field-wide {
  grid-column: 1 / -1;
}

.ph-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(44, 36, 25, 0.65);
}

.ph-optional {
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.7;
}

.ph-field input,
.ph-field textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(107, 91, 62, 0.2);
  font: inherit;
  font-size: 0.92rem;
  color: var(--ph-ink);
  background: rgba(255, 255, 255, 0.82);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.ph-field input:focus,
.ph-field textarea:focus {
  outline: none;
  border-color: var(--ph-water);
  box-shadow: 0 0 0 3px var(--ph-water-soft);
  background: var(--white);
}

.ph-field textarea {
  resize: vertical;
  min-height: 120px;
}

.ph-form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 2px solid var(--ph-mocha);
}

.ph-fine {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.ph-fine a {
  color: var(--ph-mocha);
  font-weight: 600;
}

.ph-fine a:hover {
  text-decoration: underline;
}

/* Pipe rack sidebar */
.ph-rack {
  position: sticky;
  top: 88px;
  padding: 24px 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #f4f6f4 0%, var(--white) 100%);
  border: 2px solid var(--ph-pipe);
  box-shadow: var(--shadow);
}

.ph-rack-pipe {
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--ph-pipe-dark), var(--ph-pipe), var(--ph-pipe-dark));
}

.ph-rack-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 18px;
  padding-top: 10px;
}

.ph-rack-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.ph-rack-head h2 {
  margin: 0 0 2px;
  font-size: 1.1rem;
  color: var(--ph-ink);
}

.ph-rack-head p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.ph-plates {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.ph-plate {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 6px;
  background: linear-gradient(135deg, #d4c4a8 0%, #b8a88c 100%);
  border: 1px solid rgba(107, 91, 62, 0.25);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 2px 6px rgba(44, 36, 25, 0.1);
}

.ph-plate::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #888, #555);
  box-shadow: 6px 0 0 -1px #777, 12px 0 0 -1px #777;
}

.ph-plate-key {
  padding-left: 22px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(44, 36, 25, 0.55);
}

.ph-plate-val {
  padding-left: 22px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ph-ink);
  line-height: 1.45;
  word-break: break-word;
  text-decoration: none;
}

a.ph-plate-val:hover {
  color: var(--ph-mocha);
  text-decoration: underline;
}

.ph-rack-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 8px;
  border-top: 2px dashed var(--ph-pipe);
}

/* Responsive */
@media (max-width: 960px) {
  .ph-hero-grid {
    grid-template-columns: 1fr;
  }

  .ph-gauge {
    justify-self: start;
  }

  .ph-layout {
    grid-template-columns: 1fr;
  }

  .ph-rack {
    position: static;
  }
}

@media (max-width: 560px) {
  .ph-fields-duo {
    grid-template-columns: 1fr;
  }

  .ph-form-foot {
    flex-direction: column;
    align-items: stretch;
  }

  .ph-form-foot .ph-btn-primary {
    width: 100%;
  }

  .ph-ledger-ref {
    margin-left: 0;
    width: 100%;
  }
}
