/* ══════════════════════════════════════════
   Scott Chaney Construction: Process Page
   ══════════════════════════════════════════ */

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── Photo Strip (full-bleed, matches .photo-strip pattern site-wide) ── */
.proc-photo-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.proc-photo-strip img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
}

@media (max-width: 700px) {
  .proc-photo-strip { grid-template-columns: 1fr; }
  .proc-photo-strip img { height: 260px; }
}

@media (max-width: 700px) {
  .proc-photo-strip { grid-template-columns: 1fr; }
  .proc-photo-strip img { height: 240px; }
}

/* ── Layout ── */
.proc-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Jump Nav ── */
.proc-jumpnav-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 150;
  background: rgba(253, 248, 240, 0.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2.5rem;
}

.proc-jumpnav {
  max-width: 860px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.proc-jumpnav a {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--taupe);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 1px solid var(--rule);
  border-radius: 20px;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.proc-jumpnav a:hover {
  background: var(--lt-gold-bg);
  border-color: var(--gold-light);
  color: var(--deep-brown);
}

.proc-jumpnav a.active {
  background: var(--deep-brown);
  border-color: var(--deep-brown);
  color: var(--cream);
}

/* ── Mid-Page CTA ── */
.proc-mid-cta {
  background: var(--lt-gold-bg);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 2.5rem 0;
}

.proc-mid-cta-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  text-align: center;
}

.proc-mid-cta-inner p {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--deep-brown);
  font-weight: 400;
  margin: 0;
}

/* ── Client Quote ── */
.proc-quote {
  margin: 1.75rem 0 0.5rem;
  padding: 1.75rem 2rem;
  background: var(--lt-gold-bg);
  border-left: 5px solid var(--gold-light);
  border-radius: 0 6px 6px 0;
}

.proc-quote p {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--deep-brown);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.proc-quote cite {
  display: block;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.proc-section {
  padding: 4rem 0;
  background: var(--cream);
}

.proc-section.proc-alt {
  background: var(--warm-tan);
}

.proc-section-heading {
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--rule);
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.proc-section-icon {
  width: 30px;
  height: 30px;
  color: var(--gold-light);
  flex-shrink: 0;
}

.proc-section-icon svg { width: 100%; height: 100%; }

.proc-section-heading h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  color: var(--deep-brown);
  font-weight: 300;
}

.proc-body {
  font-size: 1rem;
  color: var(--taupe);
  line-height: 1.75;
  margin-bottom: 1rem;
}

/* ── Bullet list ── */
.proc-list {
  list-style: none;
  margin: 0.5rem 0 1.25rem;
  padding: 0;
}

.proc-list li {
  font-size: 0.97rem;
  color: var(--taupe);
  padding: 0.5rem 0 0.5rem 1.5rem;
  position: relative;
  border-bottom: 1px solid var(--rule);
  line-height: 1.6;
}

.proc-list li:last-child { border-bottom: none; }

.proc-list li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: var(--gold-light);
  font-weight: 700;
}

/* ── Callout box ── */
.proc-callout {
  border-left: 5px solid var(--gold-light);
  background: var(--lt-gold-bg);
  border-radius: 0 6px 6px 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.proc-callout-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
}

.proc-callout p {
  font-size: 0.95rem;
  color: var(--taupe);
  font-style: italic;
  line-height: 1.65;
}

/* ══════════════ PHASE TIMELINE ══════════════ */
.phase-timeline { margin: 2rem 0 0; }

.action-legend {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  font-size: 0.82rem;
  color: var(--taupe);
  font-style: italic;
  flex-wrap: wrap;
}

.action-legend .action-req { margin-left: 0; font-style: normal; }

/* Track */
.phase-track {
  display: flex;
  align-items: flex-start;
  position: relative;
  padding: 0 0 1rem;
}

.phase-track::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(10% + 4px);
  right: calc(10% + 4px);
  height: 4px;
  background: var(--rule);
  z-index: 0;
}

.phase-track::after {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(10% + 4px);
  height: 4px;
  background: var(--gold-light);
  z-index: 1;
  transition: width 0.45s cubic-bezier(.4,0,.2,1);
  width: 0%;
}

.phase-track[data-active="0"]::after { width: 0%; }
.phase-track[data-active="1"]::after { width: 20%; }
.phase-track[data-active="2"]::after { width: 40%; }
.phase-track[data-active="3"]::after { width: 60%; }
.phase-track[data-active="4"]::after { width: calc(80% - 8px); }

/* Nodes */
.phase-node {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.phase-node .node-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--warm-tan);
  border: 3px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--taupe);
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.phase-node:hover .node-circle {
  border-color: var(--gold-light);
  background: var(--lt-gold-bg);
  color: var(--deep-brown);
  transform: scale(1.08);
}

.phase-node.active .node-circle {
  background: var(--deep-brown);
  border-color: var(--gold-light);
  color: var(--gold-light);
  transform: scale(1.15);
  box-shadow: 0 4px 18px rgba(74,44,10,0.25);
}

.phase-node.done .node-circle {
  background: var(--med-brown);
  border-color: var(--gold-light);
  color: var(--gold-light);
}

.phase-node .node-label {
  margin-top: 0.65rem;
  font-size: 0.72rem;
  color: var(--taupe);
  text-align: center;
  line-height: 1.35;
  max-width: 90px;
  transition: color 0.2s;
}

.phase-node .node-sub {
  display: block;
  font-size: 0.62rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.phase-node.active .node-label {
  color: var(--deep-brown);
  font-weight: 600;
}

/* Detail panel */
.phase-detail {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 8px;
  margin-top: 1.5rem;
  overflow: hidden;
}

.phase-detail-inner {
  display: none;
  padding: 1.5rem 1.75rem;
  animation: fadeSlide 0.3s ease;
}

.phase-detail-inner.active { display: block; }

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.detail-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rule);
}

.detail-badge {
  background: var(--deep-brown);
  color: var(--gold-light);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  white-space: nowrap;
}

.detail-header h4 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--deep-brown);
  font-weight: 700;
  line-height: 1.3;
}

.phase-detail-inner ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.phase-detail-inner ul li {
  font-size: 0.95rem;
  color: var(--taupe);
  padding: 0.45rem 0;
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
  border-bottom: 1px solid var(--warm-tan);
  line-height: 1.55;
}

.phase-detail-inner ul li:last-child { border-bottom: none; }

.bi { color: var(--gold-light); font-weight: 700; flex-shrink: 0; }

/* Action Required badge */
.action-req {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  background: var(--gold-light);
  color: #2C1608;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.14rem 0.5rem;
  border-radius: 3px;
  margin-left: auto;
  white-space: nowrap;
  flex-shrink: 0;
  border: 1px solid var(--gold);
}

.phase-detail-inner ul li.action-item {
  background: rgba(196, 150, 26, 0.07);
  border-radius: 4px;
  padding: 0.5rem 0.6rem;
  margin: 0 -0.25rem;
  border-bottom: 1px solid rgba(196, 150, 26, 0.2) !important;
  font-weight: 600;
  color: var(--deep-brown) !important;
}

.phase-detail-inner ul li.action-item:last-child {
  border-bottom: none !important;
}

/* ══════════════ PAYMENT CALCULATOR ══════════════ */
.proc-calc {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.25rem 0;
  padding: 1.1rem 1.4rem;
  background: var(--warm-tan);
  border: 1px solid var(--rule);
  border-radius: 8px;
}

.proc-calc label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--taupe);
}

.proc-calc-input-wrap {
  display: flex;
  align-items: center;
  background: var(--cream);
  border: 1.5px solid var(--rule);
  border-radius: 6px;
  padding: 0.5rem 0.9rem;
  transition: border-color 0.2s;
}

.proc-calc-input-wrap:focus-within { border-color: var(--gold-light); }

.proc-calc-prefix {
  color: var(--gold);
  font-weight: 700;
  margin-right: 0.3rem;
}

.proc-calc-input-wrap input {
  border: none;
  background: none;
  outline: none;
  font-family: inherit;
  font-size: 1rem;
  color: var(--deep-brown);
  width: 150px;
}

.pay-amount {
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--deep-brown);
  margin-top: 0.4rem;
}

/* ══════════════ PAYMENT VISUAL ══════════════ */
.payment-visual {
  margin: 1.5rem 0;
  background: var(--warm-tan);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--rule);
}

.payment-bar {
  display: flex;
  height: 52px;
}

.pay-seg {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cream);
  transition: opacity 0.2s;
}

.pay-seg:hover { opacity: 0.88; }
.pay-seg.deposit  { background: var(--med-brown); width: 12%; }
.pay-seg.progress { background: var(--gold);      width: 78%; }
.pay-seg.final    { background: var(--deep-brown); width: 10%; }

.payment-legend {
  display: flex;
  border-top: 1px solid var(--rule);
}

.pay-leg {
  flex: 1;
  padding: 1rem 1.1rem;
  border-right: 1px solid var(--rule);
}

.pay-leg:last-child { border-right: none; }

.pay-leg .pct {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  display: block;
  margin-bottom: 2px;
}

.pay-leg.deposit  .pct { color: var(--med-brown); }
.pay-leg.progress .pct { color: var(--gold); }
.pay-leg.final    .pct { color: var(--deep-brown); }

.pay-leg .pay-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--deep-brown);
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 3px;
}

.pay-leg .pay-desc {
  font-size: 0.8rem;
  color: var(--taupe);
  font-style: italic;
  line-height: 1.45;
}

/* ══════════════ WARRANTY ══════════════ */
.warranty-box {
  border-top: 3px solid var(--gold-light);
  border-bottom: 3px solid var(--gold-light);
  background: var(--cream);
  padding: 2rem 2.25rem;
  text-align: center;
  border-radius: 2px;
}

.warranty-box h4 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--deep-brown);
  margin-bottom: 0.75rem;
}

.warranty-box p {
  font-size: 0.97rem;
  color: var(--taupe);
  margin-bottom: 0.5rem;
  line-height: 1.65;
}

.warranty-box .note {
  font-size: 0.84rem;
  color: var(--med-brown);
  font-style: italic;
}

/* ══════════════ CLOSING CTA ══════════════ */
.proc-closing {
  background: var(--deep-brown);
  border-top: 4px solid var(--gold-light);
  padding: 5rem 1.5rem;
  text-align: center;
}

.proc-closing h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--cream);
  font-weight: 700;
  margin-bottom: 1rem;
}

.proc-closing p {
  font-size: 1.05rem;
  color: rgba(242, 232, 213, 0.85);
  max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

/* ══════════════ RESPONSIVE ══════════════ */
@media (max-width: 700px) {
  .phase-track::before,
  .phase-track::after { top: calc(0.35rem + 22px); }

  .phase-node {
    flex-direction: column;
    align-items: center;
  }

  .phase-node {
    padding: 0.35rem 0;
  }

  .phase-node .node-circle {
    width: 44px;
    height: 44px;
    font-size: 0.82rem;
  }

  .phase-node .node-label {
    font-size: 0.62rem;
    max-width: 66px;
    margin-top: 0.3rem;
  }

  .phase-node .node-sub { font-size: 0.52rem; }

  .detail-header { flex-direction: column; align-items: flex-start; gap: 0.4rem; }

  .payment-legend { flex-direction: column; }
  .pay-leg { border-right: none; border-bottom: 1px solid var(--rule); }
  .pay-leg:last-child { border-bottom: none; }
}
