/* ===================== RESET ===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Quattrocento', serif;
  background: url("../images/bg.webp") center / cover no-repeat fixed;
  overflow-x: hidden;
}



/* ===================== HERO SECTION ===================== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* Hero Image */
.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Dark Overlay */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

/* Centered Content */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: 0 20px;
}

/* Text */
.hero-overlay h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.hero-overlay p {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  letter-spacing: 1px;
  text-transform: uppercase;
}
/* ===================== HEADING SECTION ===================== */
/* Container styling */
  .quality-heading-section {
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
  }

  .quality-heading-section::before {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    top: -30px;
    left: -30px;
    z-index: 0;
  }

  /* Heading styling */
  .quality-heading {
    font-size: 3.5rem;
    font-weight: 700;
    color: #3e2723;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
  }

  /* Subheading styling */
  .quality-subheading {
    font-size: 1.5rem;
    color: #5d4037;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    position: relative;
    z-index: 1;
  }

  /* Responsive adjustments */
  @media (max-width: 768px) {
    .quality-heading {
      font-size: 1.8rem;
    }
    .quality-subheading {
      font-size: 1rem;
    }
  }

  @media (max-width: 480px) {
    .quality-heading {
      font-size: 1.5rem;
    }
    .quality-subheading {
      font-size: 0.95rem;
    }
  }
/* ================= QUALITY STAGES ================= */
.quality-stages {
  padding: 80px 40px;
}

.stage-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 80px;
}

/* Each stage */
.stage-item {
  max-width: 480px;
  margin: 0 auto;          
  text-align: center;
}

/* Image wrapper */
.image-wrap {
  position: relative;
  width: 260px;
  height: 260px;
  margin: 0 auto 30px;
  opacity: 0;
  transform: scale(0.85) translateY(40px);
  transition: all 0.9s ease;
}
/* When visible */
.image-wrap.show {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Subtle floating effect after load */
.image-wrap.show img {
  animation: floatImage 6s ease-in-out infinite;
}
/* Dynamic scroll interaction */
.image-wrap.dynamic {
  transition: transform 0.2s ease-out;
  will-change: transform;
}

/* Floating animation */
@keyframes floatImage {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0);
  }
}
/* Circular image */
.image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* Floating icon box */
.icon-box {
  position: absolute;
    right: -12px;
    top: 70%;
  transform: translateY(-50%);
  width: 80px;
  height: 80px;
  background: #f58220;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  box-shadow: 0 12px 25px rgba(0,0,0,0.25);
  z-index: 3;
}

/* Icon image */
.icon-box img {
  width: 75px;      
  height: 75px;     
  object-fit: contain;
}


/* Color variants */
.icon-box.orange {
  background: #f58220;
}


/* Colors */
.icon-box.orange {
  background: #f58220;
}

.icon-box.green {
  background: #5cb85c;
}

/* Text */

.stage-item h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: #3e2723;
}

.stage-item p {
  font-size: 20px;
  line-height: 1.7;
  color: #5d4037;
  max-width: 480px;
  margin: auto;
  text-align: center;
}
/* stage -2 video styling */
.stage-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px; /* keep same UI style */
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  .stage-container {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .image-wrap {
    width: 220px;
    height: 220px;
  }
}

/* ================= QUALITY CONTENT ================= */
.quality-content {
  background: #f5f1ee;
  width: 100%;
  padding: clamp(60px, 8vw, 120px) 0;
}

.quality-wrapper {
  max-width: 1400px;
  margin: auto;
  padding: 0 clamp(20px, 5vw, 80px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

/* ================= IMAGE ================= */
.quality-image {
  overflow: hidden;
  border-radius: 16px;
}

.quality-image img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.quality-image:hover img {
  transform: scale(1.05);
}

/* ================= TEXT ================= */
.quality-text {
  max-width: 560px;
}

.quality-tag {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  font-weight: 600;
  color: #f58220;
  margin-bottom: 12px;
}

.quality-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 20px;
  color: #3e2723;
  line-height: 1.25;
}

.quality-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #5d4037;
  margin-bottom: 18px;
}

/* Bullet points */
.quality-points {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.quality-points li {
  font-size: 1rem;
  color: #4e342e;
  margin-bottom: 10px;
}

/* Note text */
.quality-note {
  font-size: 0.95rem;
  color: #6d4c41;
  opacity: 0.9;
}

/* ================= ANIMATION ================= */
.animate {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 1s ease forwards;
}

.quality-image.animate { animation-delay: 0.2s; }
.quality-text.animate { animation-delay: 0.4s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .quality-wrapper {
    grid-template-columns: 1fr;
  }

  .quality-image img {
    min-height: 300px;
  }

  .quality-text {
    max-width: 100%;
    text-align: left;
  }
}

#backToTop {
  position: fixed;
  bottom: 80px;   /* keeps it above mobile UI */
  right: 16px;
  z-index: 999999;

  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #3b1c07;
  color: #fff;
  font-size: 22px;
  border: none;
}


/* Visible state */
#backToTop.show {
  opacity: 1;
  visibility: visible;
}

