/* D&L Construction demo, Mecha Data LLC
   Palette pulled from the hero footage: amber paint tray, wet grey paint, warm grey wall. */

:root {
  --amber: #e89a2b;
  --amber-deep: #d97706;
  --ember: #c2410c;
  --warm-grey: #6b6560;
  --warm-grey-soft: #a8a29a;
  --paper: #f7f5f2;
}

/* Page ground: warm paper carrying a strong amber wash up top, grey through the
   middle, and an ember glow low, so the orange and grey read clearly as a gradient. */
.page-bg {
  background:
    radial-gradient(1200px 700px at 88% -10%, rgba(232, 154, 43, 0.52), transparent 60%),
    radial-gradient(1000px 640px at 4% 24%, rgba(107, 101, 96, 0.34), transparent 58%),
    radial-gradient(1100px 780px at 60% 106%, rgba(194, 65, 12, 0.30), transparent 60%),
    linear-gradient(168deg, #fdf6ec 0%, #f6ece0 30%, #ebe6df 62%, #ddd8d1 100%);
  background-attachment: fixed;
}

/* Section bands, used instead of solid white blocks. */
.band-warm {
  background: linear-gradient(155deg, rgba(255, 252, 246, 0.88) 0%, rgba(247, 236, 222, 0.72) 48%, rgba(232, 154, 43, 0.26) 100%);
  border-top: 1px solid rgba(168, 162, 154, 0.40);
  border-bottom: 1px solid rgba(168, 162, 154, 0.40);
}

.band-grey {
  background: linear-gradient(155deg, rgba(107, 101, 96, 0.28) 0%, rgba(250, 246, 240, 0.72) 52%, rgba(232, 154, 43, 0.30) 100%);
  border-top: 1px solid rgba(168, 162, 154, 0.40);
  border-bottom: 1px solid rgba(168, 162, 154, 0.40);
}

.grad-text {
  background: linear-gradient(100deg, var(--amber), var(--ember));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.grad-btn {
  background: linear-gradient(100deg, var(--amber), var(--ember));
}
.grad-btn:hover {
  background: linear-gradient(100deg, #f0a83d, #d4501a);
}

.grad-band {
  background: linear-gradient(115deg, var(--amber) 0%, var(--amber-deep) 42%, var(--ember) 78%, #57534e 100%);
}

/* Service cards: warm gradient fill, amber edge on hover. */
.svc-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  padding: 1.85rem 1.75rem;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.92) 0%, rgba(247, 244, 239, 0.86) 58%, rgba(232, 154, 43, 0.12) 100%);
  border: 1px solid rgba(168, 162, 154, 0.34);
  box-shadow: 0 1px 2px rgba(28, 25, 23, 0.05), 0 10px 30px -12px rgba(107, 101, 96, 0.30);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.svc-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(100deg, var(--amber), var(--ember));
  opacity: 0.75;
}
.svc-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 154, 43, 0.55);
  box-shadow: 0 1px 2px rgba(28, 25, 23, 0.06), 0 20px 44px -14px rgba(194, 65, 12, 0.30);
}
.svc-icon {
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.05rem;
  background: linear-gradient(140deg, var(--amber), var(--ember));
  color: #fff;
  box-shadow: 0 6px 16px -6px rgba(194, 65, 12, 0.55);
}
.svc-icon svg {
  width: 1.4rem;
  height: 1.4rem;
}

/* Info panels on the contact page, same material as the service cards. */
.panel {
  border-radius: 1rem;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.94) 0%, rgba(247, 244, 239, 0.88) 60%, rgba(232, 154, 43, 0.10) 100%);
  border: 1px solid rgba(168, 162, 154, 0.34);
  box-shadow: 0 1px 2px rgba(28, 25, 23, 0.05), 0 10px 30px -12px rgba(107, 101, 96, 0.28);
}

/* Hero strip: video runs edge to edge, height kept short so the page below it
   is visible without scrolling. */
.hero-strip {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 72vh;
  min-height: 480px;
  max-height: 720px;
  margin-top: 60px;
  border-bottom: 1px solid rgba(168, 162, 154, 0.40);
}

/* Before/after hover reveal.
   The AFTER image is the base layer. The BEFORE image sits on top
   and wipes away on hover (or .ba-show-after via tap) to reveal the finished work. */
.ba-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: #e7e5e4;
  cursor: pointer;
}
.ba-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ba-frame picture {
  position: absolute;
  inset: 0;
}
.ba-before {
  z-index: 2;
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}
.ba-card {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.94) 0%, rgba(247, 244, 239, 0.88) 60%, rgba(232, 154, 43, 0.10) 100%);
  border: 1px solid rgba(168, 162, 154, 0.34);
  box-shadow: 0 1px 2px rgba(28, 25, 23, 0.05), 0 12px 34px -14px rgba(107, 101, 96, 0.34);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.ba-card:hover {
  border-color: rgba(232, 154, 43, 0.55);
  box-shadow: 0 1px 2px rgba(28, 25, 23, 0.06), 0 22px 48px -16px rgba(194, 65, 12, 0.30);
}
.ba-card:hover .ba-before,
.ba-card:focus-visible .ba-before,
.ba-card.ba-show-after .ba-before {
  clip-path: inset(0 0 0 100%);
}

.ba-tag {
  position: absolute;
  top: 0.9rem;
  z-index: 3;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 9999px;
  color: #fff;
  transition: opacity 0.35s ease;
}
.ba-tag-before {
  left: 0.9rem;
  background: rgba(28, 25, 23, 0.75);
}
.ba-tag-after {
  right: 0.9rem;
  background: linear-gradient(100deg, var(--amber), var(--ember));
  opacity: 0;
}
.ba-card:hover .ba-tag-after,
.ba-card:focus-visible .ba-tag-after,
.ba-card.ba-show-after .ba-tag-after {
  opacity: 1;
}
.ba-card:hover .ba-tag-before,
.ba-card:focus-visible .ba-tag-before,
.ba-card.ba-show-after .ba-tag-before {
  opacity: 0;
}
