/* A&L Construction Services — hero photo slideshow
   Sits inside the site's existing .window frame (dark frame + R.O. dimension callouts).
   Uses the site's colour/font variables, with fallbacks so it also works standalone. */

.dw-slides { overflow: visible; }
.dw-stage {
  position: absolute; inset: 18px; overflow: hidden;
  background: var(--glass-b, #17343E);
}
.dw-stage img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; z-index: 0;
}
.dw-stage img.is-prev { opacity: 1; z-index: 1; }
.dw-stage img.is-on {
  opacity: 1; z-index: 2;
  animation: dw-fade .6s ease both;
}
@keyframes dw-fade { from { opacity: 0; } to { opacity: 1; } }

/* centre seam that flashes as the "doors" open */
.dw-seam {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; z-index: 3;
  background: var(--accent, #E0A54A); opacity: 0; pointer-events: none;
}
.dw-seam.go { animation: none; }
@keyframes dw-seam { 0% { opacity: .9; transform: scaleX(1); } 100% { opacity: 0; transform: scaleX(40); } }

/* glass shine */
.dw-shine {
  position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.30) 48%, rgba(255,255,255,.08) 54%, transparent 64%);
  background-size: 300% 100%; background-repeat: no-repeat;
}
.dw-shine.go { animation: none; }
@keyframes dw-shine { 0% { opacity: 1; background-position: 120% 0; } 100% { opacity: 1; background-position: -20% 0; } }

/* overlays */
.dw-stage::before, .dw-stage::after {
  content: ""; position: absolute; left: 0; right: 0; z-index: 5; pointer-events: none;
}
.dw-stage::before { top: 0; height: 28%; background: linear-gradient(rgba(7,12,16,.78), rgba(7,12,16,0)); }
.dw-stage::after  { bottom: 0; height: 36%; background: linear-gradient(rgba(7,12,16,0), rgba(7,12,16,.85)); }

.dw-brand {
  position: absolute; top: 18px; left: 18px; right: 18px; z-index: 6;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-display, "Archivo", "Arial Narrow", system-ui, sans-serif);
  font-weight: 900; font-stretch: 118%; font-size: 1.02rem; letter-spacing: .01em; line-height: 1.1;
  color: var(--ink, #F1F5F6); text-transform: uppercase;
}
.dw-mark {
  flex: none; width: 24px; height: 24px; border: 3px solid var(--ink, #F1F5F6);
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px;
  background: var(--ink, #F1F5F6);
}
.dw-mark i { background: linear-gradient(180deg, var(--glass-a, #315560), var(--glass-b, #17343E)); }

.dw-call {
  position: absolute; left: 18px; right: 18px; bottom: 22px; z-index: 6;
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px; text-decoration: none;
}
.dw-call small {
  font-family: var(--f-mono, "JetBrains Mono", ui-monospace, Menlo, monospace);
  font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted, #A8B5BB);
}
.dw-call strong {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent, #E0A54A); color: var(--accent-ink, #15110A);
  padding: 11px 18px; border-radius: 3px;
  font-family: var(--f-display, "Archivo", "Arial Narrow", system-ui, sans-serif);
  font-weight: 900; font-stretch: 110%; font-size: 1.35rem; letter-spacing: .01em; line-height: 1;
  box-shadow: 0 10px 24px -10px rgba(0,0,0,.6);
  transition: filter .15s, transform .15s;
}
.dw-call:hover strong { filter: brightness(1.06); transform: translateY(-1px); }
.dw-call svg { width: 18px; height: 18px; flex: none; }

.dw-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 7; background: rgba(241,245,246,.15); }
.dw-bar i { display: block; height: 100%; width: 0; background: var(--accent, #E0A54A); transition: width .4s linear; }

@media (max-width: 480px) {
  .dw-brand { font-size: .86rem; top: 14px; left: 14px; }
  .dw-call { left: 14px; bottom: 18px; }
  .dw-call strong { font-size: 1.15rem; padding: 10px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .dw-stage img.is-on, .dw-seam.go { animation: none; }
  .dw-shine { display: none; }
}
