/* ==========================================================================
   Sripati Gold — Manufacturing
   All "Manufacturing" section styles live here.
   Requires base.css. Header/footer styles live in layout.css.
   ========================================================================== */

/* Shared inner wrapper for this page */
.mf-inner {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 2rem;
}

/* ================================================================== *
 *  HERO
 * ================================================================== */
.mf-hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: var(--color-brown);
  background-image:
    linear-gradient(180deg, rgba(15,10,4,0.62) 0%, rgba(15,10,4,0.42) 45%, rgba(15,10,4,0.72) 100%),
    url("../Manufacturing/manufacturing-hero-bg.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.mf-hero-inner {
  flex: 1;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  /* top-align content and clear the absolute site-header (~184px) with a gap */
  padding: 220px 2rem 5rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: start;
  gap: 3rem;
}

.mf-hero-title {
  font-family: var(--font-display);
  font-size: var(--fs-hero-alt);      /* 66 — non-1st/Contact hero */
  line-height: 1.08;
  color: var(--color-cream);
}

.mf-hero-sub {
  margin-top: 1.75rem;
  max-width: 40ch;
  font-family: var(--font-body);      /* Gilroy */
  font-weight: 300;                   /* Light — matches Figma "Gilroy-LightItalic" */
  font-style: italic;                 /* whole paragraph is italic in the design */
  font-size: 1.625rem;                /* 26px */
  line-height: 40.8px;                /* per Figma */
  color: rgba(248, 247, 243, 0.9);
}
.mf-hero-sub em { color: var(--color-gold-soft); }  /* accent only; already italic */

/* Overlapping card slider (right) */
.mf-hero-slider {
  position: relative;
  height: clamp(360px, 34vw, 480px);
}
.mf-hs-card {
  position: absolute;
  top: 50%;
  left: 0;
  width: 58%;
  aspect-ratio: 3 / 4;
  border: 3px solid #fff;
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
  transform: translateY(-50%) translateX(104%) scale(0.72);   /* default = hidden slot */
  opacity: 0;
  z-index: 1;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease;
  will-change: transform, opacity;
}
.mf-hs-card img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* slot 0 = front, 1 & 2 = peeking right, 3+ = hidden behind */
.mf-hs-card[data-slot="0"] { transform: translateY(-50%) translateX(0)    scale(1);    opacity: 1; z-index: 30; }
.mf-hs-card[data-slot="1"] { transform: translateY(-50%) translateX(56%)  scale(0.88); opacity: 1; z-index: 20; }
.mf-hs-card[data-slot="2"] { transform: translateY(-50%) translateX(104%) scale(0.77); opacity: 1; z-index: 10; }
.mf-hs-card[data-slot="3"] { transform: translateY(-50%) translateX(104%) scale(0.72); opacity: 0; z-index: 1; }

/* pagination dots */
.mf-hs-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2.4rem;
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  z-index: 40;
}
.mf-hs-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(248, 247, 243, 0.4);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}
.mf-hs-dot:hover { background: rgba(248, 247, 243, 0.7); }
.mf-hs-dot.is-active { background: var(--color-gold); transform: scale(1.2); }

/* ================================================================== *
 *  OUR COLLECTION
 * ================================================================== */
.mf-collection {
  background-color: var(--bg-page);
  background-image: url("../Manufacturing/our-collection-bg.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-block: clamp(4rem, 8vw, 7rem);
}
.mf-collection-title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  text-align: center;
  margin-bottom: 3.5rem;
  color: var(--color-brown);
}

.mf-collection-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.mf-ccard {
  position: relative;
  min-height: 560px;
  border-radius: 14px;
  overflow: hidden;              /* clips the zooming image */
  display: flex;                 /* body stretches to fill the card */
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}
/* the 2nd & 4th cards sit lower (staggered), matching Figma */
.mf-ccard--low { margin-top: 4rem; }

/* zoomable image layer */
.mf-ccard__img {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1);
}
/* dark at top & bottom for text legibility, lighter middle for the product */
.mf-ccard::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg,
    rgba(26,17,7,0.55) 0%,
    rgba(44,29,13,0.12) 32%,
    rgba(44,29,13,0.12) 58%,
    rgba(26,17,7,0.82) 100%);
}
/* fills the card and pushes heading to the top, description to the bottom */
.mf-ccard__body {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem 1.75rem;
}
/* smooth hover: image zooms in, card lifts gently */
.mf-ccard:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 52px rgba(44, 29, 13, 0.30);
}
.mf-ccard:hover .mf-ccard__img { transform: scale(1.09); }
.mf-ccard__title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  line-height: 1.15;
  color: var(--color-cream);
  margin: 0;
}
.mf-ccard__text {
  font-family: var(--font-body);
  font-weight: 300;
  font-style: italic;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(248, 247, 243, 0.9);
  max-width: none;
  margin: 0;
}

/* ================================================================== *
 *  DESIGN JOURNEY — SIX STEPS
 * ================================================================== */
.mf-steps {
  position: relative;
  background-color: var(--color-brown);
  background-image:
    linear-gradient(180deg, rgba(20,13,5,0.82) 0%, rgba(20,13,5,0.72) 100%),
    url("../Manufacturing/image 329.webp");
  background-size: cover;
  background-position: center;
  padding-block: clamp(4rem, 8vw, 7rem);
}
.mf-steps-eyebrow {
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--color-gold-soft);
  margin-bottom: 0.75rem;
}
.mf-steps-title {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  line-height: 1.05;
  color: var(--color-cream);
  margin-bottom: 3rem;
}
.mf-steps-title span:last-child { color: var(--color-cream); }

/* Asymmetric grid: row 1 = narrow · narrow · WIDE, row 2 = WIDE · narrow · narrow.
   19-track base → narrow = 5, wide = 9 (≈1.8× wider), rows sum to 19. */
.mf-steps-grid {
  display: grid;
  grid-template-columns: repeat(19, 1fr);
  gap: 1.5rem;
}
.mf-step {
  grid-column: span 5;              /* narrow tile */
  position: relative;
  min-height: 250px;
  border-radius: 0;                 /* sharp corners, matches Figma */
  border: 2px solid rgba(255, 255, 255, 0.85);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  /* internal rows: [flex top space] [heading] [description].
     default = heading at bottom; hover = space-between (heading top). */
  display: grid;
  grid-template-rows: 1fr auto 0fr;
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow);
  transition: grid-template-rows 0.55s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s ease;
}
.mf-step:nth-child(3),              /* CAD Refinement — wide, top-right */
.mf-step:nth-child(4) {             /* Prototype Development — wide, bottom-left */
  grid-column: span 9;
}
.mf-step::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,13,5,0.05) 0%, rgba(20,13,5,0.35) 40%, rgba(20,13,5,0.82) 100%);
  transition: background 0.4s ease;
}
.mf-step__label {
  grid-row: 2;                       /* heading row */
  position: relative;
  z-index: 2;
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  font-size: 1.35rem;
  line-height: 1.2;
  color: var(--color-cream);
  margin: 0;
}
.mf-step__label b {
  color: var(--color-cream);
  font-weight: var(--fw-bold);
}
/* description sits at the bottom of its (growing) row, hidden until hover */
.mf-step__desc {
  grid-row: 3;
  align-self: end;
  position: relative;
  z-index: 2;
  margin: 0;
  overflow: hidden;
  opacity: 0;
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(248, 247, 243, 0.92);
  transition: opacity 0.4s ease;
}

/* ---- hover: heading glides to top, description fades in at the bottom ---- */
.mf-step:hover {
  grid-template-rows: 0fr auto 1fr;
  border-color: var(--color-gold);
}
.mf-step:hover::before {
  background: linear-gradient(180deg, rgba(20,13,5,0.78) 0%, rgba(20,13,5,0.72) 100%);
}
.mf-step:hover .mf-step__desc { opacity: 1; }

/* ================================================================== *
 *  250+ REFINED DESIGNS
 * ================================================================== */
.mf-metrics {
  background-color: var(--surface-soft);
  background-image: url("../Manufacturing/our-collection-bg.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-block: clamp(3.5rem, 7vw, 6rem);
}
.mf-metrics-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: end;            /* copy bottom-aligns with the heading */
  padding-bottom: 4.5rem;
}
.mf-metrics-big {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 8vw, 7rem);
  line-height: 1;
  color: var(--color-gold);
}
.mf-metrics-title {
  font-family: var(--font-display);
  font-size: var(--fs-h5);
  line-height: 1.08;
  color: var(--color-brown);
  margin-top: 0.5rem;
}
.mf-metrics-copy {
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--color-brown);
  max-width: 42ch;
}
.mf-metrics-copy strong { color: var(--color-gold); font-weight: var(--fw-bold); }

.mf-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding-top: 3rem;
}
/* vertical divider lines between stats (not before the first) */
.mf-stat {
  text-align: left;
  padding-left: 2.75rem;
  border-left: 1px solid rgba(44, 29, 13, 0.28);
}
.mf-stat:first-child {
  padding-left: 0;
  border-left: none;
}
.mf-stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  line-height: 1;
  color: var(--color-brown);
  margin-bottom: 0.6rem;
}
.mf-stat__label {
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  font-size: 1.05rem;
  line-height: 1.35;
  color: rgba(44, 29, 13, 0.75);
}

/* ================================================================== *
 *  QUALITY ASSURANCE — SUPERIOR FINISHING
 * ================================================================== */
.mf-finishing {
  background-color: var(--color-brown);
  padding-block: clamp(4rem, 8vw, 7rem);
}
.mf-finishing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.mf-finishing-eyebrow {
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  font-size: 1.05rem;
  color: var(--color-gold-soft);
  margin-bottom: 0.75rem;
}
.mf-finishing-title {
  font-family: var(--font-display);
  font-size: var(--fs-h5);
  line-height: 1.08;
  color: var(--color-cream);
  margin-bottom: 1.5rem;
}
.mf-finishing-lead {
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(248, 247, 243, 0.82);
  margin-bottom: 2rem;
  max-width: 46ch;
}
.mf-checklist { display: grid; gap: 1.1rem; }
.mf-checklist li {
  position: relative;
  padding-left: 2.25rem;
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  font-size: 1.2rem;
  color: var(--color-cream);
}
.mf-checklist li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-gold);
  font-size: 1.2rem;
}
.mf-finishing-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.mf-finishing-img img { width: 100%; height: 100%; object-fit: cover; }

/* ================================================================== *
 *  READY STOCK + MADE-TO-ORDER (diagonal 2×2 showcase — images touch)
 * ================================================================== */
.mf-showcase {
  background-color: var(--bg-page);
  padding-block: clamp(4rem, 8vw, 7rem);
}
.mf-showcase-grid {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 3rem;             /* breathing room between the two rows/columns */
  align-items: stretch;
}
.mf-sc-img {
  overflow: hidden;
  box-shadow: var(--shadow);
}
/* full baked gold frame shown (no crop); the image is taller than the text, so
   it defines the row height and the two images meet at the centre corner */
.mf-sc-img img { width: 100%; height: auto; display: block; }
.mf-sc-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.mf-sc-text--right { padding: 2rem 0 2rem 3.5rem; }   /* Ready text, right of its image */
.mf-sc-text--left  { padding: 2rem 3.5rem 2rem 0; }   /* Made-to-Order text, left of its image */

.mf-ready-title,
.mf-mto-title {
  font-family: var(--font-display);
  font-size: var(--fs-h5);
  line-height: 1.08;
  color: var(--color-brown);
  margin-bottom: 1.25rem;
}
.mf-ready-copy,
.mf-mto-copy {
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(44, 29, 13, 0.82);
  margin-bottom: 1.5rem;
  max-width: 46ch;
}
.mf-enquire {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: var(--fw-semibold);
  font-size: 1.05rem;
  color: var(--color-brown);
  border-bottom: 2px solid var(--color-gold);
  padding-bottom: 2px;
}
.mf-enquire:hover { color: var(--color-gold); }

/* ================================================================== *
 *  RESPONSIVE
 * ================================================================== */
@media (max-width: 1024px) {
  .mf-hero-inner { gap: 2rem; padding-top: 5rem; }
  .mf-collection-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .mf-ccard--low { margin-top: 2rem; }
  /* tablet: even 2-up grid, reset the asymmetric spans */
  .mf-steps-grid { grid-template-columns: repeat(2, 1fr); }
  .mf-step,
  .mf-step:nth-child(3),
  .mf-step:nth-child(4) { grid-column: auto; }
  .mf-finishing-grid { gap: 2.5rem; }
  .mf-sc-text--right { padding-left: 2.5rem; }
  .mf-sc-text--left  { padding-right: 2.5rem; }
}

@media (max-width: 720px) {
  .mf-inner { padding-inline: 1.25rem; }

  /* Hero stacks, cluster on top */
  .mf-hero { min-height: auto; }
  .mf-hero-inner {
    grid-template-columns: 1fr;
    padding: 6.5rem 1.25rem 3.5rem;
  }
  .mf-hero-title { font-size: 2.75rem; }
  .mf-hero-sub  { font-size: 1.15rem; max-width: none; margin-top: 1.25rem; }
  .mf-hero-slider { height: clamp(300px, 78vw, 420px); order: -1; margin-bottom: 1.5rem; }
  .mf-hs-card { width: 62%; }

  /* mobile: keep the 2-up staggered rhythm from the design */
  .mf-collection-title { margin-bottom: 2rem; }
  .mf-collection-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .mf-ccard { min-height: 340px; border-radius: 10px; }
  .mf-ccard--low { margin-top: 2.25rem; }
  .mf-ccard__body { padding: 1.15rem 1rem; }
  .mf-ccard__title { font-size: 1.35rem; }
  .mf-ccard__text { font-size: 0.8125rem; line-height: 1.5; }
  /* no hover-lift on touch */
  .mf-ccard:hover { transform: none; }
  .mf-ccard:hover .mf-ccard__img { transform: none; }

  /* mobile: 2-up, with steps 3 and 6 spanning full width */
  .mf-steps-title { margin-bottom: 2rem; }
  .mf-steps-grid { grid-template-columns: repeat(2, 1fr); gap: 0.85rem; }
  .mf-step,
  .mf-step:nth-child(4) { grid-column: span 1; min-height: 170px; }
  .mf-step:nth-child(3),
  .mf-step:nth-child(6) { grid-column: span 2; min-height: 235px; }
  .mf-step { padding: 1rem 1.1rem; border-width: 2px; }
  .mf-step__label { font-size: 1rem; }
  .mf-step__desc { font-size: 0.875rem; line-height: 1.45; }

  .mf-metrics-head { grid-template-columns: 1fr; gap: 1.5rem; padding-bottom: 2rem; }
  .mf-stats { grid-template-columns: 1fr; gap: 1.5rem; padding-top: 2rem; }
  .mf-stat { padding-left: 0; border-left: none; }

  .mf-finishing-grid { grid-template-columns: 1fr; gap: 2rem; }
  .mf-finishing-img { order: -1; }   /* image above copy on mobile */

  /* showcase stacks into one column: image, text, text, image */
  .mf-showcase-grid { grid-template-columns: 1fr; }
  .mf-sc-text--right,
  .mf-sc-text--left { padding: 1.5rem 0; }
}

/* "Enquire Now" is a <button> now (opens the shared enquiry modal), so reset
   the UA button styling and keep the original link appearance. */
button.mf-enquire {
  border: 0;
  border-bottom: 2px solid var(--color-gold);
  background: none;
  padding: 0 0 2px;
  align-self: flex-start;
  cursor: pointer;
  transition: color var(--transition);
}
