/* ============================================================
   NikahCard — home.css — redesigned homepage only.
   Everything below is scoped to body.homepage and home-* classes
   so no other surface is affected. Tokens come from the supplied
   reference palette (extras/reference/prompt.md).
   ============================================================ */

body.homepage {
  --home-forest: #082A20;
  --home-darkgreen: #10392D;
  --home-ivory: #F8F4EA;
  --home-cream: #F1EBDD;
  --home-gold: #B38A3E;
  --home-gold-ink: #8A6A2E;
  --home-sage: #DCE3D4;
  --home-ink: #17251F;
  --home-muted: #697168;
  --home-line: #e2dccb;
  --home-head-h: 80px;
  background: var(--home-ivory);
  color: var(--home-ink);
}

.home-wrap { max-width: 1440px; margin: 0 auto; padding: 0 clamp(20px, 4.2vw, 60px); }
.home-section { padding: clamp(70px, 6.5vw, 92px) 0; }
body.homepage [id] { scroll-margin-top: calc(var(--home-head-h) + 16px); }
html[lang="bn"] .home-main h1,
html[lang="bn"] .home-main h2 { font-family: var(--bn-serif); }

/* ---------- shared buttons ---------- */
.home-btn-primary { background: var(--home-forest); color: var(--home-ivory); box-shadow: 0 2px 10px rgba(8, 42, 32, 0.28); }
.home-btn-primary:hover { background: var(--home-darkgreen); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(8, 42, 32, 0.34); }
.home-btn-gold-dark { background: var(--home-gold); color: var(--home-forest); font-weight: 700; box-shadow: 0 2px 10px rgba(179, 138, 62, 0.3); }
.home-btn-gold-dark:hover { background: #c19a48; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(179, 138, 62, 0.36); }
.home-btn-quiet { border: 1px solid var(--home-line); color: var(--home-ink); background: transparent; }
.home-btn-quiet:hover { border-color: var(--home-ink); background: #fff; transform: translateY(-1px); }
.home-btn-quiet svg { color: var(--home-gold-ink); }

/* ---------- type ---------- */
.home-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--home-gold-ink); margin-bottom: 18px; display: flex; align-items: center; gap: 14px; }
.home-eyebrow--rule::before { content: ''; width: 34px; height: 1.5px; background: var(--home-gold); flex-shrink: 0; }
.home-eyebrow--lines { justify-content: center; }
.home-eyebrow--lines::before, .home-eyebrow--lines::after { content: ''; width: 34px; height: 1px; background: var(--home-gold); opacity: 0.75; flex-shrink: 0; }
.home-eyebrow--gold { color: var(--home-gold); }
html[lang="bn"] .home-eyebrow { font-family: var(--bn); letter-spacing: 0.06em; font-size: 12.5px; }

.home-sec-head { max-width: 680px; margin-bottom: 54px; }
.home-sec-head--center { max-width: 720px; text-align: center; margin-left: auto; margin-right: auto; }
.home-sec-head h2 { font-family: var(--display); font-weight: 640; font-size: clamp(2.3rem, 4.4vw, 3.5rem); line-height: 1.1; letter-spacing: -0.015em; }
.home-sec-head h2 em { font-style: italic; color: var(--home-gold-ink); font-weight: 640; }
.home-sec-sub { margin-top: 16px; color: var(--home-muted); font-size: 15.5px; line-height: 1.7; max-width: 56ch; }
.home-sec-head--center .home-sec-sub { margin-inline: auto; }

/* ---------- hero ---------- */
.home-hero { position: relative; background: var(--home-ivory); overflow: hidden; }
.home-hero-grid { display: grid; gap: 16px; padding-top: 16px; padding-bottom: 16px; align-items: center; position: relative; z-index: 1; }
.home-hero-copy { position: relative; z-index: 2; }
.home-hero-art { position: relative; width: min(100%, 380px); min-width: 0; justify-self: center; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 3%, #000 97%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 3%, #000 97%, transparent); }
.home-hero-art img { width: 100%; height: auto; aspect-ratio: 2 / 3; display: block; -webkit-mask-image: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.55) 14%, #000 28%); mask-image: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.55) 14%, #000 28%); }
@media (min-width: 900px) {
  .home-hero-grid { max-width: 1200px; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 16px; padding-top: 0; padding-bottom: 0; }
  .home-hero-copy { padding-block: 16px; }
  .home-hero-art { justify-self: end; }
}
@media (max-width: 899px) {
  .home-hero-grid { padding-top: 20px; padding-bottom: 16px; }
  .home-hero-art { width: min(100%, 320px); }
}
.home-hero-title { font-family: var(--display); font-weight: 640; font-size: clamp(3rem, 5.2vw, 4.6rem); line-height: 1.04; letter-spacing: -0.022em; color: var(--home-ink); }
.home-hero-title span { display: block; }
.home-hero-title em { display: block; font-style: italic; font-weight: 640; color: var(--home-gold-ink); padding-bottom: 0.08em; }
.home-hero-sub { margin-top: 16px; font-size: 16.5px; line-height: 1.7; color: var(--home-muted); max-width: 46ch; }
.home-hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.home-hero-benefits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; margin-top: 28px; list-style: none; padding: 0; }
.home-hero-benefits li { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; font-size: 12.5px; font-weight: 600; line-height: 1.35; color: #4d554e; padding-inline: 12px; min-width: 0; }
.home-hero-benefits li:first-child { padding-left: 0; }
.home-hero-benefits li:last-child { padding-right: 0; }
.home-hero-benefits li + li { border-left: 1px solid var(--home-line); }
.home-hero-benefits li > span:last-child { max-width: 11ch; }
.home-hero-benefit-ic { color: var(--home-gold-ink); display: inline-flex; }
.home-hero-benefit-ic svg { width: 21px; height: 21px; }
@media (max-width: 560px) {
  .home-hero-cta .btn { flex: 1 1 0; justify-content: center; padding-inline: 12px; }
  .home-hero-benefits { grid-template-columns: 1fr 1fr; gap: 18px 24px; }
  .home-hero-benefits li { padding-inline: 0; }
  .home-hero-benefits li + li { border-left: 0; }
}

/* ---------- category cards ---------- */
.home-cats { background: var(--home-ivory); }
.home-cat-grid { display: grid; gap: 20px; list-style: none; padding: 0; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .home-cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .home-cat-grid { grid-template-columns: repeat(5, 1fr); } }
.home-cat-card { position: relative; display: flex; flex-direction: column; height: 100%; text-decoration: none; background: #fdfaf3; border: 1px solid var(--home-line); border-radius: 18px; overflow: hidden; transition: transform 0.3s var(--ease-out), box-shadow 0.3s, border-color 0.3s; }
.home-cat-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px -10px rgba(138, 106, 46, 0.22); border-color: var(--line-strong); }
.home-cat-img { display: block; aspect-ratio: 31 / 26; overflow: hidden; background: var(--home-cream); }
.home-cat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease-out); }
.home-cat-card:hover .home-cat-img img { transform: scale(1.04); }
.home-cat-name { font-family: var(--body); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; padding: 16px 18px 0; }
html[lang="bn"] .home-cat-name { font-family: var(--bn); }
.home-cat-sub { font-size: 12.5px; color: var(--home-muted); padding: 4px 18px 18px; }
.home-cat-arr { position: absolute; left: 16px; bottom: 14px; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--home-gold); color: var(--home-gold-ink); display: grid; place-items: center; transition: background 0.2s, transform 0.25s var(--ease-out); }
.home-cat-card:hover .home-cat-arr { background: var(--home-gold); color: #fff; transform: translateX(3px); }
.home-cat-card:has(.home-cat-arr) .home-cat-sub { padding-bottom: 52px; }

/* ---------- sage benefits band ---------- */
.home-benefits { background: var(--home-sage); padding: 68px 0; }
.home-benefits-grid { display: grid; gap: 40px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1100px) { .home-benefits-grid { grid-template-columns: repeat(4, 1fr); gap: 0; } .home-benefit + .home-benefit { border-left: 1px solid rgba(23, 37, 31, 0.14); padding-left: 36px; margin-left: 36px; } }
@media (max-width: 1099px) { .home-benefit { border-bottom: 1px solid rgba(23, 37, 31, 0.1); padding-bottom: 30px; } .home-benefit:nth-last-child(-n+2) { border-bottom: 0; padding-bottom: 0; } }
.home-benefit { text-align: center; }
.home-benefit-ic { display: inline-flex; color: var(--home-darkgreen); margin-bottom: 14px; }
.home-benefit-ic svg { width: 38px; height: 38px; }
.home-benefit h3 { font-family: var(--body); font-size: 16.5px; font-weight: 700; color: var(--home-ink); }
html[lang="bn"] .home-benefit h3 { font-family: var(--bn); }
.home-benefit p { margin: 8px auto 0; font-size: 13.5px; line-height: 1.6; color: #4d554e; max-width: 24ch; }

/* ---------- steps ---------- */
.home-steps-sec { background: var(--home-ivory); }
.home-steps { display: grid; gap: 56px; list-style: none; padding: 0; max-width: 1080px; margin: 0 auto; }
@media (min-width: 1000px) { .home-steps { grid-template-columns: repeat(3, 1fr); gap: 52px; } }
.home-step { position: relative; }
@media (min-width: 1000px) {
  .home-step + .home-step::before { content: ''; position: absolute; top: 26%; left: -38px; width: 24px; height: 1.5px; background: var(--home-gold); opacity: 0.75; }
  .home-step + .home-step::after { content: ''; position: absolute; top: 26%; left: -17px; width: 7px; height: 7px; border-top: 1.5px solid var(--home-gold); border-right: 1.5px solid var(--home-gold); transform: translateY(-3.5px) rotate(45deg); opacity: 0.75; }
}
.home-step-media { position: relative; }
.home-step-media > img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 14px; border: 1px solid var(--home-line); box-shadow: 0 16px 38px -18px rgba(23, 37, 31, 0.22); }
.home-step-num { position: absolute; left: -14px; bottom: -16px; width: 46px; height: 46px; border-radius: 50%; background: var(--home-gold); color: #fff; display: grid; place-items: center; font-family: var(--display); font-size: 16px; font-weight: 700; box-shadow: 0 0 0 5px var(--home-ivory), 0 6px 16px rgba(138, 106, 46, 0.35); }
html[lang="bn"] .home-step-num { font-family: var(--bn-serif); font-size: 15px; }
.home-step h3 { font-family: var(--body); font-weight: 650; font-size: 18px; margin-top: 32px; }
html[lang="bn"] .home-step h3 { font-family: var(--bn); }
.home-step p { margin-top: 8px; font-size: 14px; color: var(--home-muted); max-width: 34ch; }
@media (max-width: 999px) { .home-step-num { left: 12px; } }

/* ---------- showcase (ivory gallery) ---------- */
.home-showcase { background: var(--home-ivory); padding: clamp(44px, 4.5vw, 60px) 0; }
.home-showcase .home-sec-head { margin-bottom: 26px; }
.home-feat-empty { border: 1px dashed var(--home-line); border-radius: 18px; padding: 64px 24px; text-align: center; color: var(--home-muted); font-size: 15px; }
.home-feat { position: relative; }
.home-feat-track { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 2px 14px; }
.home-feat-track::-webkit-scrollbar { display: none; }
.home-feat-track:focus-visible { outline: 2px solid var(--home-gold); outline-offset: 6px; }
.home-feat-card { flex: 0 0 min(74%, 230px); scroll-snap-align: start; text-decoration: none; display: flex; flex-direction: column; color: var(--home-ink); }
.home-feat-card[hidden] { display: none; }
@media (min-width: 700px) { .home-feat-card { flex-basis: calc((100% - 66px) / 4); } }
@media (min-width: 1100px) { .home-feat-card { flex-basis: calc((100% - 88px) / 5); } }
.home-feat-card .tpl-frame { position: relative; display: block; aspect-ratio: 2 / 3; padding: 10px; border-radius: 16px; border: 1px solid var(--home-line); background: #fbf8f0; box-shadow: 0 1px 2px rgba(23, 37, 31, 0.05), 0 18px 34px -26px rgba(23, 37, 31, 0.35); transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out); }
.home-feat-card .tpl-frame .pv-slot { inset: 10px; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(23, 37, 31, 0.12); }
.home-feat-card .tpl-frame::before { border-radius: inherit; box-shadow: none; }
.home-feat-card.is-featured .tpl-frame { border-color: rgba(179, 138, 62, 0.55); }
.home-feat-card .tpl-frame::after { display: none; }
.home-feat-card:hover .tpl-frame, .home-feat-card:focus-visible .tpl-frame { transform: translateY(-4px); border-color: rgba(179, 138, 62, 0.5); box-shadow: 0 1px 2px rgba(23, 37, 31, 0.06), 0 26px 40px -24px rgba(23, 37, 31, 0.4); }
.home-feat-card:focus-visible { outline: none; }
.home-feat-card:focus-visible .tpl-frame { outline: 2px solid var(--home-gold); outline-offset: 4px; }
.home-feat-badge { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 5px 10px; border-radius: 999px; background: var(--home-ivory); color: var(--home-gold-ink); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
html[lang="bn"] .home-feat-badge { font-family: var(--bn); font-size: 12px; letter-spacing: 0; }
.home-feat-meta { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 4px 0; text-align: center; }
.home-feat-style { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--home-gold-ink); }
html[lang="bn"] .home-feat-style { font-family: var(--bn); font-size: 12px; letter-spacing: 0; }
.home-feat-name { font-family: var(--display); font-weight: 640; font-size: 22px; line-height: 1.15; color: var(--home-ink); }
html[lang="bn"] .home-feat-name { font-family: var(--bn); font-size: 19px; }
.home-showcase-foot { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 24px; }

.home-feat-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 16px; }
.home-feat-controls[hidden] { display: none; }
.home-feat-btn { width: 44px; height: 44px; border-radius: 50%; border: none; background: var(--home-darkgreen); color: var(--home-ivory); display: grid; place-items: center; transition: background 0.2s, transform 0.2s; }
.home-feat-btn:hover:not([disabled]) { background: var(--home-forest); transform: translateY(-1px); }
.home-feat-btn:focus-visible { outline: 2px solid var(--home-gold); outline-offset: 3px; }
.home-feat-btn[disabled] { opacity: 0.4; cursor: default; }
.home-feat-dots { display: flex; align-items: center; gap: 6px; }
.home-feat-dot { position: relative; width: 32px; height: 32px; border-radius: 50%; background: transparent; padding: 0; }
.home-feat-dot::before { content: ''; position: absolute; inset: 0; margin: auto; width: 7px; height: 7px; border-radius: 50%; background: rgba(16, 57, 45, 0.25); transition: background 0.25s, transform 0.25s; }
.home-feat-dot:hover::before { background: rgba(16, 57, 45, 0.55); }
.home-feat-dot.on::before { background: var(--home-gold); transform: scale(1.35); }
@media (min-width: 1100px) {
  /* side arrows sit outside the track, inside the page gutter (wrap pad ≥46px) */
  .home-feat-btn { position: absolute; top: 42%; z-index: 3; }
  .home-feat-btn[data-feat-prev] { left: -52px; }
  .home-feat-btn[data-feat-next] { right: -52px; }
}
@media (max-width: 699px) {
  /* arrows + every pagination dot must fit a 390px viewport */
  .home-feat-controls { gap: 10px; }
  .home-feat-dots { gap: 2px; }
  .home-feat-dot { width: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-feat-card .tpl-frame, .home-feat-btn, .home-feat-dot::before { transition: none; }
  .home-feat-card:hover .tpl-frame, .home-feat-btn:hover:not([disabled]) { transform: none; }
}

/* ---------- stories ---------- */
.home-stories { background: var(--home-cream); }
.home-stories-note { margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--home-muted); display: inline-flex; align-items: center; gap: 8px; }
.home-stories-note::before { content: ''; width: 18px; height: 1px; background: var(--home-gold); }
.home-story-grid { display: grid; gap: 22px; list-style: none; padding: 0; }
@media (min-width: 800px) { .home-story-grid { grid-template-columns: repeat(3, 1fr); gap: 26px; } }
.home-story-card { position: relative; background: #fff; border: 1px solid var(--home-line); border-radius: 18px; padding: 40px 28px 24px; display: flex; flex-direction: column; box-shadow: 0 12px 30px -18px rgba(23, 37, 31, 0.14); }
.home-story-mark { position: absolute; top: 6px; left: 20px; font-family: var(--display); font-size: 76px; line-height: 1; color: var(--home-gold); opacity: 0.85; }
.home-story-label { font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--home-muted); }
html[lang="bn"] .home-story-label { font-family: var(--bn); letter-spacing: 0.03em; font-size: 11px; }
.home-story-card blockquote { margin-top: 14px; font-size: 15px; line-height: 1.65; color: var(--home-ink); }
.home-story-card footer { margin-top: auto; padding-top: 22px; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--home-muted); }
.home-story-ic { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(179, 138, 62, 0.5); display: grid; place-items: center; color: var(--home-gold-ink); flex-shrink: 0; }
.home-story-ic svg { width: 17px; height: 17px; }

/* ---------- closing ---------- */
.home-closing { position: relative; background: var(--home-forest); color: var(--home-ivory); overflow: hidden; }
.home-closing-grid { position: relative; display: grid; gap: 24px; align-items: center; padding-top: 32px; padding-bottom: 24px; }
.home-closing-art { min-width: 0; width: 100%; }
.home-closing-art img { width: 100%; height: auto; display: block; -webkit-mask-image: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.55) 12%, #000 28%); mask-image: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.55) 12%, #000 28%); }
@media (min-width: 900px) {
  .home-closing-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 0; padding-block: 24px; }
}
.home-closing-copy { position: relative; z-index: 2; max-width: 520px; }
.home-closing h2 { font-family: var(--display); font-weight: 640; font-size: clamp(2.5rem, 4vw, 3.6rem); line-height: 1.06; letter-spacing: -0.02em; }
.home-closing h2 em { font-style: italic; font-weight: 640; color: var(--home-gold); }
html[lang="bn"] .home-closing h2 { font-family: var(--bn-serif); }
.home-closing p { margin-top: 20px; font-size: 16px; line-height: 1.7; color: #a9b8ae; max-width: 44ch; }
.home-closing .btn { margin-top: 34px; }

/* ---------- reveals (JS adds .home-reveal only when motion is allowed) ---------- */
.home-reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out); }
.home-reveal.on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .home-reveal { opacity: 1; transform: none; transition: none; }
}
