/* ================================================
   QUALITY PAGE — KULDEVI FORGE & FITTINGS
   ================================================ */

/* ── QUALITY HERO WITH PARALLAX & DARK NAVY OVERLAY ── */
.quality-hero {
  padding: clamp(100px, 15vw, 180px) clamp(16px, 5vw, 48px) clamp(80px, 10vw, 120px);
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(400px, 65vh, 600px);
}

/* Background photo with parallax */
.quality-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url('assets/quality-hero.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* Standard CSS parallax */
  will-change: transform;
}

/* Dark gradient overlay for text legibility */
.quality-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to bottom,
    rgba(2, 8, 20, 0.82) 0%,
    rgba(2, 8, 20, 0.6) 50%,
    rgba(2, 8, 20, 0.88) 100%
  );
}

/* Clean text overlay content */
.quality-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.quality-hero-content h1 {
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 900;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #ffffff 30%, var(--accent-soft) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  line-height: 1.15;
}

.quality-hero-content p {
  color: var(--text-secondary);
  font-size: clamp(14px, 2.5vw, 18px);
  line-height: 1.7;
  max-width: 620px;
  margin: 0 auto;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
  .quality-hero {
    padding: clamp(100px, 12vw, 140px) 16px clamp(60px, 8vw, 80px);
    min-height: clamp(350px, 50vh, 500px);
  }
  .quality-hero-bg {
    background-attachment: scroll; /* Disable fixed parallax on touch devices for performance */
  }
}

/* ── QUALITY GRID ── */
.quality-page {
  max-width: 1200px;
  margin: 0 auto;
}
.quality-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.quality-card {
  padding: 32px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
.quality-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  opacity: 0;
  transition: opacity 0.4s;
}
.quality-card:hover {
  border-color: var(--line-accent);
  transform: translateY(-6px);
  box-shadow: 0 0 40px rgba(37, 99, 235, 0.1);
}
.quality-card:hover::before { opacity: 1; }

.q-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--accent-subtle);
  border: 1px solid var(--line-accent);
  color: var(--accent-soft);
  font-size: 22px;
  margin-bottom: 18px;
}
.quality-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}
.quality-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .quality-grid {
    grid-template-columns: 1fr;
  }
}