/* ============================================================
   Fence-focused additions, layered on top of styles.css.
   Keeps the existing colors, fonts and components.
   ============================================================ */

/* ---------- Split hero with phone-framed before/after video ---------- */
.hero--split {
  display: block;
  position: relative;
  min-height: 0;
  padding: 72px 0 64px;
  background: var(--black);
  color: var(--white);
  text-align: left;
  overflow: hidden;
}
.hero--split::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(1100px 420px at 78% 0%, rgba(217, 168, 67, 0.16), transparent 60%);
  pointer-events: none;
}
.hero-split-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 48px;
  align-items: center;
}
.hero-copy { max-width: 640px; }
.hero--split .hero-ctas,
.hero--split .trust-strip { justify-content: flex-start; }
.hero-phone {
  justify-self: center;
  width: 300px;
  max-width: 82vw;
  aspect-ratio: 9 / 16;
  background: #000;
  border: 10px solid #141414;
  border-radius: 34px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.hero-phone video { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 880px) {
  .hero-split-grid { grid-template-columns: 1fr; gap: 34px; text-align: center; }
  .hero-copy { margin: 0 auto; }
  .hero--split .hero-ctas,
  .hero--split .trust-strip { justify-content: center; }
  .hero-phone { width: 262px; }
}

/* ---------- Two-up service cards ---------- */
.cards.cards-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 720px) { .cards.cards-2 { grid-template-columns: 1fr; } }

/* ---------- "Other work we do" compact row ---------- */
.otherwork { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; }
.otherwork a {
  display: block;
  padding: 20px 22px;
  background: var(--white);
  border: 1px solid #e4e4e4;
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--black);
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.otherwork a:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.otherwork span {
  display: block;
  margin-top: 4px;
  font-family: system-ui, sans-serif;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}
@media (max-width: 560px) { .otherwork { grid-template-columns: 1fr; } }

/* ---------- Why Us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.why-item {
  background: var(--white);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}
.why-item h3 { font-size: 1.1rem; margin-bottom: 8px; }
.why-item p { color: var(--text-muted); font-size: 0.96rem; margin: 0; }
@media (max-width: 880px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }

/* ---------- Stats band background: a real fence shot ---------- */
.stats-band {
  background-image: linear-gradient(rgba(10, 10, 10, 0.9), rgba(10, 10, 10, 0.9)), url("../assets/projects/fence-patio-turf-05-after-street.jpg");
}

/* ---------- Legal disclaimer (readable, never hidden or faded) ---------- */
.footer-legal { margin-top: 14px; font-weight: 700; color: #d2d2d2; }
.form-legal { display: block; margin-top: 16px; text-align: center; font-weight: 700; color: #ededed; }

/* ---------- Gallery <picture> fills tiles like a plain img ---------- */
.gallery-item picture { display: block; }
.card-media picture { display: block; }

/* ---------- Photo-prompt line above the submit button ---------- */
.form-photoline { margin-top: 6px; font-size: 0.9rem; color: var(--text-muted); }

/* ---------- Fence type pills ---------- */
.fence-types { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.ftype {
  background: var(--white);
  border: 2px solid var(--black);
  border-radius: var(--radius);
  padding: 11px 22px;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
  color: var(--black);
}

/* ---------- Build-process timeline ---------- */
.process-timeline { position: relative; max-width: 900px; margin: 6px auto 0; }
.ptl-line {
  position: absolute; left: 50%; top: 12px; bottom: 12px; width: 4px;
  transform: translateX(-50%);
  background: rgba(217, 168, 67, 0.22);
  border-radius: 2px;
}
.ptl-fill {
  position: absolute; left: 0; top: 0; width: 100%; height: 0%;
  background: var(--gold); border-radius: 2px;
}
.ptl-step { position: relative; width: 50%; padding: 0 48px 42px 0; }
.ptl-step:nth-child(even) { margin-left: 50%; padding: 0 0 42px 48px; }
.ptl-node {
  position: absolute; top: 2px;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--black); color: var(--gold);
  border: 3px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 700; font-size: 1.05rem;
  z-index: 2;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.ptl-step:nth-child(odd) .ptl-node { right: -24px; }
.ptl-step:nth-child(even) .ptl-node { left: -24px; }
.ptl-node.lit { background: var(--gold); color: var(--black); transform: scale(1.08); }
.ptl-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border-top: 3px solid var(--gold);
}
.ptl-photo { aspect-ratio: 16 / 10; overflow: hidden; background: var(--gray-bg-2); }
.ptl-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.ptl-card:hover .ptl-photo img { transform: scale(1.05); }
.ptl-body { padding: 20px 22px 22px; }
.ptl-body h3 { font-size: 1.15rem; margin-bottom: 8px; }
.ptl-body p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

@media (max-width: 760px) {
  .ptl-line { left: 23px; }
  .ptl-step, .ptl-step:nth-child(even) {
    width: 100%; margin-left: 0; padding: 0 0 34px 58px;
  }
  .ptl-step:nth-child(odd) .ptl-node,
  .ptl-step:nth-child(even) .ptl-node { left: 0; right: auto; }
}

/* ---------- Feature split rows (welding / concrete page) ---------- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
.feature-row + .feature-row { margin-top: 60px; }
.feature-media img {
  width: 100%; aspect-ratio: 16 / 11; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  border-bottom: 4px solid var(--gold);
}
.feature-text h2 { margin-bottom: 12px; }
.feature-text p { color: var(--text-muted); margin-bottom: 0; }
.feature-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.feature-row.reverse .feature-media { order: 2; }
@media (max-width: 820px) {
  .feature-row { grid-template-columns: 1fr; gap: 22px; }
  .feature-row.reverse .feature-media { order: 0; }
}

/* ---------- Ensure [hidden] always wins over flex/grid display (e.g. the Insured badge) ---------- */
[hidden] { display: none !important; }

/* ---------- Hero overlay: even, minimalistic darkening for overlaid text ---------- */
.hero .hero-media::after {
  background: linear-gradient(180deg, rgba(12, 12, 12, 0.66), rgba(12, 12, 12, 0.56) 45%, rgba(12, 12, 12, 0.82));
}

/* ---------- Steady hero: no Ken Burns zoom (Ben wants it still, not drifting) ---------- */
.hero .hero-media video,
.hero .hero-media img { animation: none; transform: none; }
