/* ART CNC — home.css | Homepage-specific styles | MESH/5.1 */

/* ---- Video hero ---- */
.hero { background: #0a0d14; }

.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  z-index: 0; opacity: .55;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,13,20,.72) 0%, rgba(10,13,20,.45) 50%, rgba(30,10,10,.72) 100%);
  z-index: 1;
}
.hero > *:not(.hero-video):not(.hero-overlay) { position: relative; z-index: 2; }
.hero::before {
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(220,38,38,.12) 0%, transparent 65%);
  z-index: 2;
}
.hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(220,38,38,.8), transparent);
  z-index: 3;
}
@media (max-width: 768px) {
  .hero-video { display: none; }
  .hero { background-image: url('/videos/art-cnc-hero-poster.jpg'); background-size: cover; background-position: center; }
}

/* ---- Service cards ---- */
.svc-mini-img {
  height: 160px; background-size: cover; background-position: center;
  border-radius: var(--radius) var(--radius) 0 0;
  margin: -1.5rem -1.5rem 1rem; position: relative;
}
.svc-mini-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(220,38,38,.05) 0%, rgba(10,13,20,.88) 100%);
  border-radius: var(--radius) var(--radius) 0 0;
}
.card.service-card {
  background: linear-gradient(160deg, rgba(22,10,28,.97) 0%, rgba(13,17,30,.97) 100%) !important;
  border: 1px solid rgba(220,38,38,.14) !important;
  box-shadow: 0 4px 24px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.03);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(220,38,38,.35) !important;
  box-shadow: inset 0 2px 0 rgba(220,38,38,.55), 0 20px 52px rgba(220,38,38,.13), 0 6px 20px rgba(0,0,0,.55);
}

/* ---- Stats ---- */
.stat-item {
  background: linear-gradient(155deg, rgba(220,38,38,.08) 0%, transparent 65%) !important;
  border: 1px solid rgba(220,38,38,.22) !important;
  border-top: 2px solid rgba(220,38,38,.65) !important;
  box-shadow: 0 4px 24px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.04);
  transition: transform .22s ease, box-shadow .22s ease, border-top-color .22s ease;
}
.stat-item:hover {
  transform: translateY(-5px);
  border-top-color: var(--gold) !important;
  box-shadow: 0 12px 40px rgba(220,38,38,.2), 0 4px 16px rgba(0,0,0,.4);
}

/* ---- Turbine pills ---- */
.tpill {
  background: linear-gradient(135deg, rgba(220,38,38,.1) 0%, var(--surface) 100%) !important;
  border: 1px solid rgba(220,38,38,.2) !important;
  border-left: 3px solid rgba(220,38,38,.8) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
  transition: transform .18s ease, box-shadow .18s ease;
}
.tpill:hover {
  transform: translateX(4px);
  background: linear-gradient(135deg, rgba(220,38,38,.18) 0%, var(--surface) 100%) !important;
  box-shadow: -5px 0 24px rgba(220,38,38,.25), inset 0 1px 0 rgba(255,255,255,.04);
}

/* ---- Materials grid ---- */
.material-item {
  background: linear-gradient(135deg, rgba(220,38,38,.07) 0%, var(--surface-2) 65%) !important;
  border: 1px solid rgba(220,38,38,.16) !important;
  border-left: 3px solid rgba(220,38,38,.6) !important;
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
  transition: transform .18s ease, box-shadow .18s ease;
}
.material-item:hover {
  transform: translateX(4px);
  box-shadow: -5px 0 24px rgba(220,38,38,.22), 0 4px 16px rgba(0,0,0,.3);
}
.material-item strong {
  background: linear-gradient(90deg, #fff 20%, rgba(220,38,38,.85) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ---- ART trio cards ---- */
.art-trio { display: flex; flex-direction: column; gap: .6rem; }
.art-card {
  display: flex; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(150deg, rgba(220,38,38,.08) 0%, var(--surface) 70%) !important;
  border: 1px solid rgba(220,38,38,.22) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,.32);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease !important;
}
.art-card:hover {
  transform: translateY(-5px);
  border-color: rgba(220,38,38,.45) !important;
  box-shadow: 0 14px 44px rgba(220,38,38,.18), 0 4px 16px rgba(0,0,0,.45);
}
.art-img { position: relative; width: 130px; flex-shrink: 0; overflow: hidden; }
.art-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.art-letter {
  position: absolute; top: 0; left: 0; width: 36px; height: 36px;
  background: var(--gold); color: #fff; font-size: 1.4rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  border-bottom-right-radius: var(--radius);
  box-shadow: 0 0 18px rgba(220,38,38,.75), 0 0 40px rgba(220,38,38,.3) !important;
}
.art-txt { padding: .85rem 1rem; display: flex; flex-direction: column; justify-content: center; }
.art-txt strong { font-size: .97rem; font-weight: 800; color: var(--text); display: block; margin-bottom: .2rem; }
.art-txt span { font-size: .78rem; color: var(--text-muted); line-height: 1.5; }
