/* ==========================================================================
   Our Kitchen — vortas made by Bangladeshi mothers in an inspected kitchen.
   Used by /kitchen, plus the "mothers" teaser on the home page and Our Story.
   Builds on the tokens and components in site.css.
   ========================================================================== */

/* ---------- Hero ---------- */
.kitchen-hero { min-height: min(78vh, 680px); }
.kitchen-hero .hero-media img { object-position: 72% 40%; }
.kitchen-hero .hero-content { max-width: 660px; }
.kitchen-hero .hero-bn { font-size: clamp(2.7rem, 6.4vw, 4.6rem); margin-bottom: 0; }
.kitchen-hero-gloss { font-family: var(--font-display); font-style: italic; font-size: 1.25rem; color: var(--gold-200); margin: 0 0 .9rem; }
.kitchen-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.85rem); }

.kitchen-figure, .inspected-photo, .photo-stack .framed { margin: 0; }

/* Captioned photos: keep the stitched frame on the photo instead of across the caption */
.framed.captioned::before { display: none; }
.framed-media { position: relative; }
.framed-media::after { content: ""; position: absolute; inset: 10px; border: 2px dashed rgba(255, 246, 227, .85); border-radius: 6px; pointer-events: none; }

/* ---------- Districts ---------- */
.district-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.district-card {
  position: relative; padding: 28px 26px 24px;
  background: var(--cream-50); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); border-top: 4px solid var(--gold-500);
}
.district-card:nth-child(3n + 2) { border-top-color: var(--red-700); }
.district-card:nth-child(3n) { border-top-color: var(--green-800); }
.district-bn { display: block; font-family: var(--font-bangla); color: var(--gold-600); font-size: 1.15rem; }
.district-card h3 { font-size: 1.5rem; margin: .1em 0 .35em; }
.district-card p { color: var(--ink-500); margin: 0; font-size: .98rem; }

/* ---------- Process strip (Market → Roast → Pound → Season → Pack) ---------- */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; position: relative; }
.process::before {
  content: ""; position: absolute; top: 37px; left: 10%; right: 10%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--gold-500) 0 12px, transparent 12px 20px);
}
.process li { position: relative; text-align: center; }
.process .step-num { margin-bottom: 14px; }
.process-bn { display: block; font-family: var(--font-bangla); color: var(--gold-600); font-size: 1.1rem; }
.process h3 { font-size: 1.45rem; margin: 0 0 .3em; }
.process p { color: var(--ink-500); font-size: .96rem; margin: 0; }

/* ---------- Gallery ---------- */
.kitchen-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.kitchen-gallery figure {
  position: relative; margin: 0; overflow: hidden; aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg); background: var(--cream-200); box-shadow: var(--shadow-md);
}
.kitchen-gallery .gallery-feature { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.kitchen-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.kitchen-gallery figure:hover img { transform: scale(1.04); }
.kitchen-gallery figure::after { content: ""; position: absolute; inset: 8px; border: 1.5px dashed rgba(255, 246, 227, .7); border-radius: 10px; pointer-events: none; }
.kitchen-gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 34px 18px 14px;
  color: var(--cream-50); font-size: .88rem; line-height: 1.4;
  background: linear-gradient(180deg, transparent, rgba(6, 42, 32, .88));
}
.gallery-feature figcaption { font-size: 1rem; padding: 48px 22px 18px; }
.gallery-note { text-align: center; margin: 18px 0 0; }

/* ---------- Inspected kitchen (highlighted) ---------- */
.inspected {
  background: var(--green-800) var(--pattern-jamdani); border: 2px solid var(--gold-500); border-radius: var(--radius-lg);
  padding: 56px 48px 52px; box-shadow: 0 0 0 6px rgba(214, 167, 64, .18), var(--shadow-lg);
}
.inspected > * { position: relative; z-index: 1; }
.inspected .section-head { margin-bottom: 2.2rem; }
.inspected .section-head p { color: #dbe8e0; }
.inspected-layout { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: center; }
.inspected-photo { background: var(--cream-100); }
.inspected-photo img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 62% center; }
.inspected-seal { position: absolute; z-index: 2; right: -34px; top: -38px; width: 138px; height: 138px; transform: rotate(-10deg); filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .3)); }
.inspected-seal .seal-fill { fill: var(--red-700); stroke: var(--gold-400); stroke-width: 3; }
.inspected-seal .seal-line { fill: none; stroke: var(--gold-200); stroke-width: 1.4; }
.inspected-seal .seal-text { fill: var(--cream-50); font: 600 15px var(--font-body); letter-spacing: .5px; }
.inspected-seal .seal-check { fill: none; stroke: var(--gold-400); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }

.assurances { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; }
.assurances li { display: flex; gap: 14px; align-items: flex-start; }
.assurances svg.icon {
  flex: 0 0 42px; width: 42px; height: 42px; padding: 9px; margin-top: 2px;
  color: var(--gold-400); border: 1.5px solid rgba(214, 167, 64, .55); border-radius: 50%; background: rgba(6, 42, 32, .35);
}
.assurances strong { display: block; color: var(--cream-50); font-family: var(--font-display); font-size: 1.28rem; font-weight: 600; line-height: 1.2; margin-bottom: 3px; }
.assurances span { display: block; color: #cfe0d6; font-size: .95rem; line-height: 1.5; }

/* ---------- Why mothers ---------- */
.value-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.value-card {
  text-align: center; padding: 30px 24px 26px; background: var(--cream-50);
  border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.value-card .icon {
  width: 64px; height: 64px; padding: 15px; margin: 0 auto 14px; display: block;
  color: var(--cream-50); background: var(--red-700); border-radius: 50%;
  box-shadow: 0 0 0 4px var(--cream-50), 0 0 0 6px var(--gold-500);
}
.value-card h3 { font-size: 1.4rem; margin-bottom: .3em; }
.value-card p { color: var(--ink-500); margin: 0; font-size: .97rem; }

/* ---------- Join our kitchen ---------- */
.join-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.join-intro .quote-bn { margin-top: -.2em; }
.join-form-title { font-size: 1.7rem; margin-bottom: .7em; }
#join { scroll-margin-top: 90px; }

.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }

/* ---------- "Made by Bangladeshi mothers" teaser (home page) ---------- */
.mothers-teaser { overflow: hidden; }
.mothers-teaser-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 72px; align-items: center; }
.photo-stack { position: relative; padding: 0 0 54px; }
.photo-stack .framed img { aspect-ratio: 3 / 2; object-fit: cover; }
.photo-inset {
  position: absolute; right: -14px; bottom: 0; z-index: 2; width: 42%; margin: 0;
  aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  border: 6px solid var(--cream-50); box-shadow: 0 0 0 2px var(--gold-500), var(--shadow-lg);
}
.photo-inset img { width: 100%; height: 100%; object-fit: cover; }
.mothers-teaser .quote-bn { font-size: 1.9rem; margin-bottom: .2em; }
.teaser-points { list-style: none; padding: 0; margin: 1.3em 0 1.8em; display: grid; gap: 12px; }
.teaser-points li { display: flex; gap: 12px; align-items: center; color: var(--ink-700); font-weight: 500; }
.teaser-points svg.icon { flex: 0 0 36px; width: 36px; height: 36px; padding: 7px; color: var(--green-800); background: var(--green-100); border: 1px solid #b6d4c3; border-radius: 50%; }

/* ---------- "Mothers in our kitchen" (Our Story) ---------- */
.heritage-photo img { filter: sepia(.18); }
.photo-credit-list { margin: .6em 0 0; padding-left: 1.1em; }
.photo-credit-list li { margin: .25em 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .value-cards { grid-template-columns: repeat(2, 1fr); }
  .inspected { padding: 48px 32px 44px; }
  .inspected-layout { grid-template-columns: 1fr; gap: 40px; }
  .inspected-photo { max-width: 620px; margin: 0 auto; width: calc(100% - 40px); }
  .inspected-photo img { aspect-ratio: 4 / 3; }
  .mothers-teaser-grid { gap: 48px; }
}

@media (max-width: 920px) {
  .district-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: 1fr; gap: 0; max-width: 560px; margin: 0 auto; }
  .process::before { top: 20px; bottom: 20px; left: 36px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--gold-500) 0 12px, transparent 12px 20px); }
  .process li { display: grid; grid-template-columns: 74px 1fr; column-gap: 20px; text-align: left; padding-bottom: 26px; }
  .process li:last-child { padding-bottom: 0; }
  .process .step-num { grid-row: 1 / span 3; margin: 0; }
  .process-bn { margin-top: 4px; }
  .join-layout, .mothers-teaser-grid { grid-template-columns: 1fr; gap: 40px; }
  .join-layout.form-first > :last-child { order: -1; } /* after posting, show the thank-you or the errors first */
  .photo-stack { max-width: 620px; margin: 0 auto; width: 100%; }
}

@media (max-width: 640px) {
  .kitchen-hero .hero-bn { font-size: 2.6rem; }
  .district-grid, .value-cards, .assurances { grid-template-columns: 1fr; }
  .kitchen-gallery { grid-template-columns: 1fr 1fr; gap: 12px; }
  .kitchen-gallery .gallery-feature { grid-row: auto; aspect-ratio: 4 / 3; }
  .kitchen-gallery figcaption { font-size: .78rem; padding: 26px 12px 10px; }
  .gallery-feature figcaption { font-size: .9rem; }
  .inspected { padding: 40px 20px 36px; margin: 0 -8px; }
  .inspected-photo { width: calc(100% - 30px); margin-left: 0; }
  .inspected-seal { width: 104px; height: 104px; right: -28px; top: -30px; }
  .value-card { padding: 26px 20px 22px; }
  .photo-inset { width: 46%; right: -6px; }
  .mothers-teaser .quote-bn { font-size: 1.6rem; }
}
