/* ============================================================
   MCNEISH SOLUTION LLC — RESTORATION PAGE SPECIFIC STYLES
   ============================================================ */

/* ─── HERO WITH CRACK ANIMATION ──────────────────────────── */
.restoration-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  background: var(--void);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.crack-svg-container {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.crack-svg {
  width: 100%;
  height: 100%;
  opacity: 0.85;
}

.bleed-light {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(232, 148, 58, 0.15) 0%, transparent 70%);
  opacity: 0;
  pointer-events: none;
  filter: blur(40px);
}

.hero-content-wrapper {
  position: relative;
  z-index: 2;
  max-width: 650px;
  padding-left: var(--space-40);
}

.hero-eyebrow {
  margin-bottom: var(--space-16);
  color: var(--copper);
}

.hero-headline {
  color: var(--ivory);
  margin-bottom: var(--space-24);
  letter-spacing: 0.15em;
  font-weight: 300;
}

.hero-sub {
  color: var(--ash-light);
  max-width: 480px;
}

/* ─── CLOCK LAYOUT ───────────────────────────────────────── */
.clock-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-80);
  align-items: center;
  padding: var(--space-64) 0;
}

.clock-visual-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.clock-compass {
  width: 320px;
  height: 320px;
  background: var(--steel);
  border: var(--border-steel);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: var(--shadow-deep);
  position: relative;
}

/* ─── SERVICES BLUEPRINT SCHEMATIC ──────────────────────── */
.schematic-section {
  background: var(--lapis);
  border-top: var(--border-steel);
  border-bottom: var(--border-steel);
  overflow: hidden;
}

.schematic-container {
  position: relative;
  width: 100%;
  height: 600px;
  margin-top: var(--space-48);
}

.schematic-canvas-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.schematic-svg {
  width: 100%;
  height: 100%;
}

.schematic-trace {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: draw-trace 3s ease-out forwards;
}

@keyframes draw-trace {
  to { stroke-dashoffset: 0; }
}

.schematic-nodes {
  position: absolute;
  inset: 0;
}

/* Custom radial coordinates for nodes */
.sch-node {
  position: absolute;
  width: 260px;
  background: var(--void);
  border: var(--border-steel);
  padding: var(--space-20);
  box-shadow: var(--shadow-deep);
  transition: border-color 0.4s, transform 0.4s;
  z-index: 5;
}

.sch-node:hover {
  border-color: var(--copper);
  transform: translateY(-4px);
}

/* Radial Placement positions based on SVG path coords */
.node-tl { top: 10%; left: 2%; }
.node-tr { top: 10%; right: 2%; }
.node-ml { top: 40%; left: 0%; }
.node-mr { top: 40%; right: 0%; }
.node-bl { bottom: 8%; left: 2%; }
.node-br { bottom: 8%; right: 2%; }

.sch-node__icon {
  width: 36px;
  height: 36px;
  color: var(--copper);
  margin-bottom: var(--space-12);
  display: flex;
  align-items: center;
}

.sch-node__title {
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ivory);
  margin-bottom: var(--space-8);
}

.sch-node__desc {
  font-size: 0.75rem;
  color: var(--ash-light);
  line-height: 1.4;
}

/* ─── PROCESS TIMELINE (LINED PAPER STYLING) ────────────── */
.timeline-section {
  background: var(--steel);
}

.vertical-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: var(--space-64);
  border-left: 1px solid rgba(184,115,51,0.25);
}

.timeline-step {
  position: relative;
  margin-bottom: var(--space-80);
}

.timeline-step:last-child {
  margin-bottom: 0;
}

.timeline-step::before {
  content: attr(data-step);
  position: absolute;
  left: -170px;
  top: -20px;
  font-family: var(--font-mono);
  font-size: 8rem;
  font-weight: 900;
  color: var(--void);
  opacity: 0.15;
  pointer-events: none;
}

/* The copper circle marker on the timeline line */
.timeline-step::after {
  content: '';
  position: absolute;
  left: calc(-var(--space-64) - 5px);
  top: 10px;
  width: 9px;
  height: 9px;
  background: var(--copper);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(184,115,51,0.6);
}

.timeline-step__title {
  color: var(--ivory);
  margin-bottom: var(--space-12);
}

.timeline-step__desc {
  max-width: 600px;
  color: var(--ash-light);
}

/* ─── INSURANCE SECTION ────────────────────────────────── */
.insurance-section {
  background: var(--void);
}

.insurance-card {
  max-width: 800px;
  margin: 0 auto;
  background: var(--steel);
  border: var(--border-steel);
  box-shadow: var(--shadow-deep);
  padding: var(--space-48);
  position: relative;
}

.insurance-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--copper);
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .clock-layout {
    grid-template-columns: 1fr;
    gap: var(--space-48);
    text-align: center;
  }
  
  .clock-visual-container {
    order: 1;
  }
  
  .clock-text-container {
    order: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .schematic-container {
    height: auto;
  }

  .schematic-canvas-container {
    display: none;
  }

  .schematic-nodes {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-24);
  }

  .sch-node {
    position: static;
    width: auto;
  }
}

@media (max-width: 768px) {
  .schematic-nodes {
    grid-template-columns: 1fr;
  }

  .vertical-timeline {
    padding-left: var(--space-40);
  }

  .timeline-step::before {
    left: -40px;
    top: -60px;
    font-size: 4rem;
  }

  .insurance-card {
    padding: var(--space-24);
  }
}

/* ─── NEW MEDIA STYLES FOR POPULATION ────────────────────── */
.moisture-image-block {
  margin-top: var(--space-24);
  background: var(--charcoal);
  border: var(--border-copper);
  padding: 8px;
  position: relative;
  box-shadow: var(--shadow-card);
  width: 100%;
  max-width: 480px;
}

.moisture-image-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--copper-lit);
  margin-bottom: 6px;
  padding-left: 4px;
}

.moisture-image-wrapper {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.moisture-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  filter: sepia(0.35) contrast(1.15) brightness(0.85);
  opacity: 0.9;
  transition: filter var(--duration-mid), opacity var(--duration-mid);
}

.moisture-image-block:hover .moisture-image {
  filter: sepia(0.15) contrast(1.05) brightness(0.95);
  opacity: 1;
}

.moisture-image-caption {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--ash);
  margin-top: 6px;
  padding: 0 4px;
}

/* Timeline grid/flex for step + side media */
.timeline-step {
  display: flex;
  gap: var(--space-32);
  align-items: flex-start;
}

.timeline-step__content {
  flex: 1.3;
}

.timeline-step__media {
  flex: 0.7;
  position: relative;
  width: 100%;
  opacity: 0.8;
  transition: transform var(--duration-mid) var(--ease-out-expo), opacity var(--duration-mid);
}

.timeline-step:hover .timeline-step__media {
  transform: translateY(-2px);
  opacity: 1;
}

.media-frame {
  position: relative;
  border: 1px solid rgba(184, 115, 51, 0.2);
  padding: 6px;
  background: var(--void);
  box-shadow: var(--shadow-card);
}

.media-frame__corner {
  position: absolute;
  width: 6px;
  height: 6px;
  border: 1px solid var(--copper);
}

.media-frame__corner.top-left { top: 0; left: 0; border-right: none; border-bottom: none; }
.media-frame__corner.top-right { top: 0; right: 0; border-left: none; border-bottom: none; }
.media-frame__corner.bottom-left { bottom: 0; left: 0; border-right: none; border-top: none; }
.media-frame__corner.bottom-right { bottom: 0; right: 0; border-left: none; border-top: none; }

.timeline-step__img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  filter: sepia(0.2) grayscale(0.2) contrast(1.1);
  transition: filter var(--duration-mid);
}

.timeline-step:hover .timeline-step__img {
  filter: sepia(0.05) grayscale(0) contrast(1.05);
}

.media-caption {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--copper);
  margin-top: 6px;
  text-align: right;
}

@media (max-width: 900px) {
  .timeline-step {
    flex-direction: column;
    gap: var(--space-16);
  }
  
  .timeline-step__media {
    width: 100%;
    max-width: 280px;
    margin-left: 0;
  }
}
