/* Appily twentyone — Greensphere Irrigation Junction contact */

.page-irrigation-junction {
  --ij-ink: #14221c;
  --ij-muted: #5a6d64;
  --ij-line: #b8d4c8;
  --ij-paper: #f0f7f3;
  --ij-mesh: #dce8e0;
  --ij-deep: #0a2e28;
  --ij-water: #3a8fa8;
  --ij-water-light: #6ec4d8;
  --ij-copper: #b87333;
  --ij-copper-dark: #8b5a2b;
  --ij-green: #0b7a45;
  --ij-green-light: #12a35c;
  background: var(--ij-paper);
}

/* ── Junction hero ── */
.ij-junction {
  position: relative;
  padding: 44px 0 48px;
  background: linear-gradient(165deg, #061a16 0%, var(--ij-deep) 40%, #0d4a38 100%);
  color: #fff;
  overflow: hidden;
}

.ij-pipe-grid {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 32px,
      rgba(184, 115, 51, 0.08) 32px,
      rgba(184, 115, 51, 0.08) 34px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 32px,
      rgba(58, 143, 168, 0.06) 32px,
      rgba(58, 143, 168, 0.06) 34px
    );
  pointer-events: none;
}

.ij-droplets {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ij-droplets span {
  position: absolute;
  width: 6px;
  height: 10px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: rgba(110, 196, 216, 0.5);
  animation: ij-drip 3.5s ease-in-out infinite;
}

.ij-droplets span:nth-child(1) { left: 12%; top: 22%; animation-delay: 0s; }
.ij-droplets span:nth-child(2) { left: 28%; top: 48%; animation-delay: 0.7s; }
.ij-droplets span:nth-child(3) { left: 68%; top: 18%; animation-delay: 1.2s; }
.ij-droplets span:nth-child(4) { left: 82%; top: 55%; animation-delay: 1.9s; }
.ij-droplets span:nth-child(5) { left: 48%; top: 32%; animation-delay: 2.5s; }

@keyframes ij-drip {
  0%, 100% { opacity: 0.25; transform: translateY(0); }
  50% { opacity: 0.85; transform: translateY(8px); }
}

.ij-junction-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(200px, 0.75fr);
  gap: 36px;
  align-items: center;
}

.ij-kicker {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ij-water-light);
}

.ij-junction-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(1.95rem, 4.2vw, 2.85rem);
  line-height: 1.12;
  margin: 0 0 14px;
  color: #fff;
}

.ij-junction-copy h1 em {
  font-style: normal;
  color: #8ee8c0;
}

.ij-lede {
  margin: 0 0 20px;
  max-width: 52ch;
  line-height: 1.7;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.86);
}

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

.ij-topic-chips li {
  padding: 6px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(58, 143, 168, 0.25);
  border: 1px solid rgba(110, 196, 216, 0.35);
  border-radius: 3px;
}

/* Valve wheel badge */
.ij-valve {
  display: grid;
  gap: 4px;
  padding: 24px 22px 20px;
  background: rgba(10, 46, 40, 0.6);
  border: 2px solid rgba(184, 115, 51, 0.45);
  border-radius: 6px;
  text-align: center;
  backdrop-filter: blur(4px);
}

.ij-valve-wheel {
  position: relative;
  width: 64px;
  height: 64px;
  margin: 0 auto 8px;
  border: 4px solid var(--ij-copper);
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #d4a060, var(--ij-copper-dark));
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.3);
}

.ij-valve-spoke {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 22px;
  margin: -11px 0 0 -2px;
  background: var(--ij-copper-dark);
  border-radius: 2px;
}

.ij-valve-spoke:nth-child(1) { transform: rotate(0deg); }
.ij-valve-spoke:nth-child(2) { transform: rotate(60deg); }
.ij-valve-spoke:nth-child(3) { transform: rotate(120deg); }

.ij-valve-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  background: #3d2814;
  border-radius: 50%;
  border: 2px solid var(--ij-copper);
}

.ij-valve-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.ij-valve-status {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: #8ee8c0;
}

.ij-valve-code {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ij-water-light);
}

.ij-valve-drop {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px dashed rgba(110, 196, 216, 0.35);
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.7);
}

.ij-junction-lip {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    var(--ij-copper) 0,
    var(--ij-copper) 8px,
    var(--ij-water) 8px,
    var(--ij-water) 16px
  );
  opacity: 0.7;
}

/* ── Floor layout ── */
.ij-floor {
  padding: 32px 0 64px;
}

.ij-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  gap: 28px;
  align-items: start;
}

/* Mesh tag form card */
.ij-tag-card {
  position: relative;
  padding: 28px 28px 24px;
  background: #fff;
  border: 1px solid var(--ij-line);
  border-radius: 4px;
  box-shadow:
    0 1px 0 var(--ij-mesh),
    0 8px 28px rgba(10, 46, 40, 0.08);
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 23px,
      rgba(184, 212, 200, 0.35) 23px,
      rgba(184, 212, 200, 0.35) 24px
    );
}

.ij-mesh-clip {
  position: absolute;
  top: -6px;
  left: 24px;
  width: 28px;
  height: 36px;
  background: linear-gradient(180deg, #9aa8a0, #6a7870);
  border-radius: 2px 2px 0 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.ij-mesh-clip::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 8px;
  background: #4a5850;
  border-radius: 1px;
}

.ij-tag-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--ij-line);
}

.ij-tag-stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 6px;
  border: 2px solid var(--ij-water);
  border-radius: 50%;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ij-water);
  transform: rotate(-8deg);
}

.ij-tag-label {
  margin: 0 0 2px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ij-muted);
}

.ij-tag-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--ij-ink);
}

.ij-tag-ref {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ij-muted);
}

.ij-tag-perf {
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 3px,
    var(--ij-line) 3px,
    var(--ij-line) 4px
  );
  transform: translateY(3px);
}

/* Notices */
.ij-notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 4px;
}

.ij-notice-success {
  background: rgba(11, 122, 69, 0.1);
  border: 1px solid rgba(11, 122, 69, 0.3);
}

.ij-notice-success strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.9rem;
  color: var(--ij-green);
}

.ij-notice-success p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--ij-muted);
}

.ij-notice-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  background: var(--ij-green);
  color: #fff;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 800;
}

.ij-notice-error {
  background: rgba(196, 60, 40, 0.08);
  border: 1px solid rgba(196, 60, 40, 0.35);
  color: #a33;
  font-size: 0.88rem;
}

/* Form */
.ij-form {
  position: relative;
  z-index: 1;
}

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

.ij-fields-duo {
  grid-template-columns: 1fr 1fr;
}

.ij-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.ij-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ij-ink);
}

.ij-optional {
  font-weight: 500;
  color: var(--ij-muted);
}

.ij-field input,
.ij-field textarea {
  width: 100%;
  padding: 11px 13px;
  font: inherit;
  font-size: 0.92rem;
  color: var(--ij-ink);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--ij-line);
  border-radius: 4px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.ij-field input:focus,
.ij-field textarea:focus {
  outline: none;
  border-color: var(--ij-green);
  box-shadow: 0 0 0 3px rgba(11, 122, 69, 0.12);
}

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

.ij-form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--ij-line);
}

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

.ij-fine a {
  color: var(--ij-green);
  font-weight: 600;
}

/* Buttons */
.ij-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 20px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.ij-btn-primary {
  background: var(--ij-green);
  color: #fff;
  border-color: var(--ij-green);
}

.ij-btn-primary:hover {
  background: var(--ij-green-light);
  border-color: var(--ij-green-light);
}

.ij-btn-soft {
  background: #fff;
  color: var(--ij-ink);
  border-color: var(--ij-line);
}

.ij-btn-soft:hover {
  background: var(--ij-paper);
  border-color: var(--ij-water);
}

.ij-btn-outline {
  background: transparent;
  color: var(--ij-green);
  border-color: var(--ij-green);
}

.ij-btn-outline:hover {
  background: rgba(11, 122, 69, 0.08);
}

/* Junction directory panel */
.ij-panel {
  position: relative;
  padding: 24px 22px 22px;
  background: linear-gradient(180deg, #fff 0%, var(--ij-paper) 100%);
  border: 2px solid var(--ij-copper);
  border-radius: 6px;
  box-shadow: 0 6px 24px rgba(10, 46, 40, 0.1);
  overflow: hidden;
}

.ij-panel-pipes {
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  opacity: 0.2;
  pointer-events: none;
}

.ij-pipe {
  position: absolute;
  background: var(--ij-copper);
  border-radius: 2px;
}

.ij-pipe-h {
  top: 40px;
  right: 0;
  width: 60px;
  height: 8px;
}

.ij-pipe-v {
  top: 20px;
  right: 36px;
  width: 8px;
  height: 50px;
}

.ij-pipe-node {
  top: 36px;
  right: 32px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ij-copper-dark);
  border: 3px solid var(--ij-copper);
}

.ij-panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ij-line);
}

.ij-panel-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 1.1rem;
  color: var(--ij-water);
  background: rgba(58, 143, 168, 0.12);
  border: 2px solid rgba(58, 143, 168, 0.3);
  border-radius: 50%;
}

.ij-panel-head h2 {
  margin: 0 0 2px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ij-ink);
}

.ij-panel-head p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ij-muted);
}

.ij-plates {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ij-plate {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  padding: 12px 14px 12px 28px;
  background: #fff;
  border: 1px solid var(--ij-line);
  border-left: 4px solid var(--ij-copper);
  border-radius: 0 4px 4px 0;
}

.ij-plate-rivet {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #d4a060, var(--ij-copper-dark));
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.ij-plate-key {
  grid-column: 1 / -1;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ij-muted);
}

.ij-plate-val {
  grid-column: 1 / -1;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ij-ink);
  line-height: 1.45;
  word-break: break-word;
}

a.ij-plate-val {
  color: var(--ij-green);
  font-weight: 600;
  text-decoration: none;
}

a.ij-plate-val:hover {
  text-decoration: underline;
}

.ij-brand-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 18px;
  padding: 14px 16px;
  background: var(--ij-mesh);
  border: 1px dashed var(--ij-line);
  border-radius: 4px;
}

.ij-brand-card strong {
  font-size: 0.9rem;
  color: var(--ij-ink);
}

.ij-brand-card span {
  font-size: 0.78rem;
  color: var(--ij-muted);
}

.ij-panel-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

  .ij-valve {
    max-width: 280px;
  }

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

@media (max-width: 640px) {
  .ij-junction {
    padding: 32px 0 40px;
  }

  .ij-tag-card {
    padding: 22px 18px 20px;
  }

  .ij-fields-duo {
    grid-template-columns: 1fr;
  }

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

  .ij-btn-primary {
    width: 100%;
  }

  .ij-tag-ref {
    margin-left: 0;
    width: 100%;
  }

  .ij-panel-links {
    flex-direction: column;
  }

  .ij-panel-links .ij-btn {
    width: 100%;
    text-align: center;
  }
}
