/* ==========================================================================
   Page — Home
   ========================================================================== */

/* ---------- Hero ---------- */
.home-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(2.5rem, 1.5rem + 4vw, 5rem) 0 clamp(5.5rem, 4.5rem + 3vw, 7rem);
}
.home-hero__title {
  font-size: clamp(2.5rem, 1.6rem + 3.4vw, 4rem); font-weight: 800; line-height: 1.06;
  margin: 1.4rem 0 1.4rem; max-width: 15ch;
}
.home-hero__title > span:first-child { display: block; color: var(--ink-900); }
.lang-bn .home-hero__title { font-size: clamp(2.2rem, 1.4rem + 2.8vw, 3.4rem); line-height: 1.3; max-width: 17ch; }
.home-hero__lead { font-size: var(--fs-lg); color: var(--ink-600); max-width: 52ch; margin-bottom: 2rem; }

/* Search widget */
.hero-search {
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
  padding: .5rem;
  max-width: 640px;
}
.hero-search__tabs {
  position: relative; display: inline-flex; padding: 4px; margin: .25rem .25rem .5rem;
  background: var(--ink-100); border-radius: var(--r-full);
}
.hero-search__tab {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .5rem 1.1rem; border: 0; background: transparent; border-radius: var(--r-full);
  font-size: .875rem; font-weight: 650; color: var(--ink-500);
  transition: color var(--dur) ease;
}
.hero-search__tab.is-active { color: var(--ink-900); }
.hero-search__pill {
  position: absolute; top: 4px; bottom: 4px; left: var(--pill-x, 4px); width: var(--pill-w, 50%);
  background: #fff; border-radius: var(--r-full); box-shadow: var(--sh-sm);
  transition: left var(--dur) var(--ease-out), width var(--dur) var(--ease-out);
}
.hero-search__panel { display: flex; align-items: stretch; gap: 0; }
.hero-search__panel[hidden] { display: none; }
.hero-search__field {
  flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15rem;
  padding: .55rem 1rem; border-radius: var(--r-md); cursor: pointer;
  transition: background var(--dur-fast) ease;
}
.hero-search__field:hover { background: var(--ink-50); }
.hero-search__field--wide { flex: 2; }
.hero-search__field + .hero-search__field { border-left: 1px solid var(--ink-100); }
.hero-search__label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-400); display: flex; gap: .35rem; align-items: center; }
.lang-bn .hero-search__label { letter-spacing: .02em; font-size: .78rem; }
.hero-search__label .bi { color: var(--brand-500); }
.hero-search__select {
  appearance: none; -webkit-appearance: none; width: 100%;
  border: 0; background: transparent; padding: 0; outline: 0;
  font-size: .95rem; font-weight: 650; color: var(--ink-900); cursor: pointer;
  text-overflow: ellipsis;
}
.hero-search__submit {
  flex-shrink: 0; align-self: center;
  width: 60px; height: 60px; margin-left: .35rem; border: 0; border-radius: var(--r-lg);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--grad-brand); color: #fff; font-size: 1.25rem; box-shadow: var(--sh-brand);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) ease;
}
.hero-search__submit:hover { transform: scale(1.05); box-shadow: 0 16px 32px -10px rgba(255,91,34,.65); }

@media (max-width: 767.98px) {
  .hero-search__panel { flex-direction: column; }
  .hero-search__field + .hero-search__field { border-left: 0; border-top: 1px solid var(--ink-100); }
  .hero-search__submit { width: 100%; height: 52px; margin: .5rem 0 0; font-size: 1rem; font-weight: 650; }
}

.hero-proof { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; }
.hero-proof__text { font-size: .85rem; color: var(--ink-600); font-weight: 500; margin-top: .15rem; }

/* Visual composition */
.hero-visual { position: relative; padding: 1.5rem 0 2.5rem 2.5rem; }
.hero-visual__main {
  position: relative; border-radius: var(--r-2xl); overflow: hidden;
  aspect-ratio: 4 / 4.6; box-shadow: var(--sh-xl);
}
.hero-visual__main img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual__main::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, transparent 50%, rgba(7,11,22,.35)); }
.hero-visual__thumb {
  position: absolute; left: 0; bottom: 0; width: 42%; aspect-ratio: 1;
  border-radius: var(--r-xl); overflow: hidden; border: 6px solid #fff; box-shadow: var(--sh-xl);
}
.hero-visual__thumb img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual__ring {
  position: absolute; width: 140px; height: 140px; right: -40px; top: -10px; z-index: -1;
  border-radius: 50%; border: 22px solid var(--brand-100);
}

.hero-float {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: .7rem;
  padding: .7rem 1rem .7rem .7rem; border-radius: var(--r-md);
  background: rgba(255,255,255,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.9); box-shadow: var(--sh-lg);
  font-size: .78rem; color: var(--ink-500); line-height: 1.35;
  animation: float-y 6s var(--ease-in-out) infinite;
}
.hero-float strong { display: block; font-size: .88rem; color: var(--ink-900); }
.hero-float--deed { top: 12%; left: 0; }
.hero-float--broker { top: 48%; right: -18px; animation-delay: -2s; }
.hero-float--stat { bottom: 6%; right: 8%; flex-direction: column; align-items: flex-start; gap: 0; padding: .9rem 1.1rem; animation-delay: -4s; }
.hero-float__num { font-size: 1.75rem; font-weight: 800; color: var(--ink-900); letter-spacing: -.03em; line-height: 1; }
.hero-float__num small { font-size: .55em; color: var(--brand-500); }
@keyframes float-y { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (max-width: 991.98px) {
  .hero-visual { max-width: 560px; margin: 0 auto; padding-left: 1.5rem; }
  .hero-float--broker { right: 0; }
}
@media (max-width: 575.98px) {
  .hero-float--deed { left: -4px; top: 6%; }
  .hero-float--stat { display: none; }
}

/* ---------- Pillars (overlapping strip) ---------- */
.pillars {
  position: relative; z-index: 2; margin-top: -3.5rem;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border: 1px solid var(--ink-100); border-radius: var(--r-xl);
  box-shadow: var(--sh-lg); padding: .75rem;
}
.pillar { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.25rem; }
.pillar + .pillar { border-left: 1px solid var(--ink-100); }
.pillar__text { font-weight: 650; color: var(--ink-900); font-size: .95rem; line-height: 1.35; }
@media (max-width: 991.98px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .pillar:nth-child(3) { border-left: 0; }
  .pillar:nth-child(n+3) { border-top: 1px solid var(--ink-100); }
}
@media (max-width: 479.98px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar + .pillar { border-left: 0; border-top: 1px solid var(--ink-100); }
}

/* ---------- Category bento ---------- */
.cat-bento {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1.3fr 1fr 1fr;
  grid-template-rows: 260px 260px;
}
.cat-tile--lg { grid-row: span 2; }
.cat-tile--wide { grid-column: span 2; }
.cat-tile {
  position: relative; display: block; overflow: hidden; isolation: isolate;
  border-radius: var(--r-xl); background: var(--ink-900); color: #fff !important;
  box-shadow: var(--sh-md);
}
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease-out); }
.cat-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7,11,22,0) 30%, rgba(7,11,22,.82) 100%); transition: opacity var(--dur) ease; }
.cat-tile:hover img { transform: scale(1.07); }
.cat-tile__body { position: absolute; inset: auto 0 0; display: flex; align-items: flex-end; gap: 1rem; padding: 1.4rem; }
.cat-tile__icon {
  width: 48px; height: 48px; flex-shrink: 0; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.25rem;
  background: rgba(255,255,255,.14); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.22);
}
.cat-tile__body > div { flex: 1; min-width: 0; }
.cat-tile__title { color: #fff !important; font-size: 1.3rem; margin: 0; }
.cat-tile--lg .cat-tile__title { font-size: 1.7rem; }
.cat-tile__desc { margin: .3rem 0 0; font-size: .88rem; color: rgba(255,255,255,.78); }
.cat-tile__go {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: var(--ink-900); font-size: 1rem;
  transition: background var(--dur) ease, color var(--dur) ease, transform var(--dur) var(--ease-out);
}
.cat-tile:hover .cat-tile__go { background: var(--brand-500); color: #fff; transform: rotate(45deg); }

@media (max-width: 991.98px) {
  .cat-bento { grid-template-columns: 1fr 1fr; grid-template-rows: 300px 220px 220px; }
  .cat-tile--lg { grid-row: auto; grid-column: span 2; }
  .cat-tile--wide { grid-column: span 2; }
}
@media (max-width: 575.98px) {
  .cat-bento { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: 220px; }
  .cat-tile--lg, .cat-tile--wide { grid-column: auto; }
}

/* ---------- About ---------- */
.about-media { position: relative; padding: 0 0 2.5rem 0; }
.about-media__main { width: 100%; aspect-ratio: 5 / 4.4; object-fit: cover; border-radius: var(--r-2xl); box-shadow: var(--sh-xl); }
.about-media__badge {
  position: absolute; right: -1rem; bottom: 0; max-width: 300px;
  display: flex; gap: 1rem; align-items: center;
  padding: 1.1rem 1.25rem; border-radius: var(--r-lg);
  background: #fff; box-shadow: var(--sh-xl); border: 1px solid var(--ink-100);
}
.about-media__badge strong { display: block; color: var(--ink-900); font-size: 1rem; }
.about-media__badge span { font-size: .84rem; color: var(--ink-500); }
@media (max-width: 575.98px) { .about-media__badge { right: .75rem; left: .75rem; max-width: none; } }

.about-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  padding-top: 2rem; border-top: 1px solid var(--sand-200);
}

/* ---------- How it works ---------- */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem;
  counter-reset: step;
}
.step {
  position: relative; padding: 2rem 1.6rem 1.75rem;
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.08);
  transition: border-color var(--dur) ease, transform var(--dur) var(--ease-out), background var(--dur) ease;
}
.step:hover { border-color: rgba(255,130,83,.4); transform: translateY(-4px); background: linear-gradient(180deg, rgba(255,91,34,.09), rgba(255,255,255,.02)); }
.step__num {
  position: absolute; top: 1.4rem; right: 1.5rem;
  font-size: 2.6rem; font-weight: 800; letter-spacing: -.04em; line-height: 1;
  background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,0));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step__title { font-size: 1.15rem; margin: 1.5rem 0 .6rem; color: #fff; }
.step__text { font-size: .92rem; margin: 0; color: var(--ink-400); }
.step::after {
  content: ""; position: absolute; top: 3.15rem; right: -1.25rem; width: 1.25rem; height: 1px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.35) 0 4px, transparent 4px 8px);
}
.step:last-child::after { display: none; }
@media (max-width: 991.98px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .step::after { display: none; }
}
@media (max-width: 575.98px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Services cards ---------- */
.svc-card {
  position: relative; display: flex; flex-direction: column; height: 100%;
  padding: .5rem .5rem 1.4rem; border-radius: var(--r-xl);
  background: #fff; border: 1px solid var(--ink-100); box-shadow: var(--sh-sm);
  color: inherit !important;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }
.svc-card__media { aspect-ratio: 16 / 11; border-radius: calc(var(--r-xl) - 6px); overflow: hidden; }
.svc-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.svc-card:hover .svc-card__media img { transform: scale(1.06); }
.svc-card__icon { margin: -26px 0 0 1rem; border: 4px solid #fff; --tile: 56px; position: relative; }
.svc-card:hover .svc-card__icon { background: var(--grad-brand); color: #fff; }
.svc-card__title { font-size: 1.12rem; margin: .9rem 1rem .5rem; }
.svc-card__link { margin: auto 1rem 0; font-size: .88rem; font-weight: 650; color: var(--ink-500); display: inline-flex; align-items: center; gap: .35rem; }
.svc-card__link .bi { transition: transform var(--dur) var(--ease-out); }
.svc-card:hover .svc-card__link { color: var(--brand-600); }
.svc-card:hover .svc-card__link .bi { transform: translateX(4px); }

/* ---------- Testimonial card ---------- */
.quote-card {
  position: relative; margin-top: 2rem; padding: 2.25rem 2rem 1.75rem;
  border-radius: var(--r-xl); background: #fff; border: 1px solid var(--ink-100); box-shadow: var(--sh-lg);
  overflow: hidden;
}
.quote-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--grad-brand); }
.quote-card__glyph { position: absolute; top: .4rem; right: 1.25rem; font-size: 5.5rem; line-height: 1; color: var(--brand-100); }
.quote-card__track { display: grid; }
.quote-card__slide { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; transform: translateX(16px); transition: opacity .45s var(--ease-out), transform .45s var(--ease-out), visibility .45s; }
.quote-card__slide.is-active { opacity: 1; visibility: visible; transform: none; }
.quote-card blockquote { position: relative; font-size: 1.12rem; line-height: 1.7; color: var(--ink-800); font-weight: 500; margin: 0 0 1.75rem; }
.quote-card figcaption { display: flex; align-items: center; gap: .9rem; }
.quote-card figcaption img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--brand-100); }
.quote-card figcaption .quote-card__initials { width: 52px; height: 52px; flex-shrink: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; font-weight: 700; color: var(--brand-700); background: var(--brand-50); box-shadow: 0 0 0 3px var(--brand-100); }
.quote-card figcaption strong { display: block; color: var(--ink-900); }
.quote-card figcaption span { font-size: .85rem; color: var(--ink-500); }
.quote-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--ink-100); }
.quote-card__nav { display: flex; gap: .5rem; }
.quote-card__nav button {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--ink-200); background: #fff; color: var(--ink-800);
  display: inline-flex; align-items: center; justify-content: center; transition: all var(--dur-fast) ease;
}
.quote-card__nav button:hover { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }
