/* ==========================================================================
   SFR Group - Home module (wwwroot/css/modules/home.css)
   Loaded after site.css / motion.css on the home page (Views/Home/Index.cshtml) and on the Website CMS staff screens
   (Settings, Menus, Home Sections, Hero Slides, Stats, Partners, Testimonials) after admin.css.
   Everything comes from tokens.css (--srf-*) and the public design guide in site.css; nothing brand-related is hard-coded.
   Sections: 1 hero variants · 2 hero slides · 3 about · 4 stats band · 5 partners · 6 testimonials · 7 staff screens (.cms-*)
   ========================================================================== */

/* ---------- 1. Default hero: variants of the prototype composition ---------------------------------------- */
.home-hero__grid--solo { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 992px) {
  .home-hero__grid--solo { grid-template-columns: minmax(0, 1fr); }
  .home-hero__grid--solo .home-hero__copy { max-width: 48rem; }
}
.home-hero__art--one .home-hero__arch--lg { left: 14%; width: 72%; }

/* ---------- 2. Hero slides (carousel) --------------------------------------------------------------------- */
.home-slides {
  --home-slides-h: clamp(30rem, 78vh, 46rem);
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--srf-navy-950); color: #fff;
}
.home-slides__track { display: grid; touch-action: pan-y pinch-zoom; }
.home-slide {                                                /* every slide sits in the same grid cell, so the track is as tall as the tallest slide */
  grid-area: 1 / 1; position: relative; display: flex; align-items: flex-end; min-height: var(--home-slides-h);
  opacity: 0; visibility: hidden;
  transition: opacity .9s var(--srf-ease), visibility 0s linear .9s;
}
.home-slide.is-active { z-index: 1; opacity: 1; visibility: visible; transition-delay: 0s; }
.home-slide__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-slide.is-active .home-slide__img { animation: home-slide-settle 9s ease-out both; }
@keyframes home-slide-settle { from { transform: scale(1.07); } to { transform: scale(1); } }
.home-slide__shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7, 19, 39, .28) 0%, rgba(7, 19, 39, .2) 30%, rgba(7, 19, 39, .88) 100%);
}
.home-slide__inner { position: relative; z-index: 2; width: 100%; }
.home-slide__copy { max-width: 40rem; padding-block: clamp(2rem, 6vw, 4.5rem); }
.home-slides.has-ui .home-slide__copy { padding-bottom: clamp(5.75rem, 11vw, 7.25rem); }     /* keeps the text clear of the controls */
.home-slide__copy::before {
  content: ""; display: block; width: 56px; height: 3px; margin-bottom: 1.1rem; border-radius: 3px; background: var(--srf-gold-500);
}
.home-slide__title {
  margin: 0 0 .9rem; color: #fff; font-size: clamp(1.9rem, 4.4vw, 3.4rem); line-height: 1.12; letter-spacing: -.01em; text-wrap: balance;
}
html[lang="bn"] .home-slide__title { font-weight: 700; line-height: 1.32; letter-spacing: 0; }
.home-slide__sub { max-width: 34rem; margin: 0 0 1.6rem; color: rgba(255, 255, 255, .9); font-size: clamp(1rem, 1.7vw, 1.2rem); }
.home-slide__copy > .srf-btn { max-width: 100%; }
.home-slide.is-active .home-slide__copy > * { animation: srf-rise .8s var(--srf-ease) backwards; }
.home-slide.is-active .home-slide__copy > :nth-child(2) { animation-delay: .09s; }
.home-slide.is-active .home-slide__copy > :nth-child(3) { animation-delay: .18s; }
@media (min-width: 992px) {
  .home-slide { align-items: center; }
  .home-slide__shade {
    background:
      linear-gradient(90deg, rgba(7, 19, 39, .9) 0%, rgba(7, 19, 39, .62) 42%, rgba(7, 19, 39, .1) 100%),
      linear-gradient(0deg, rgba(7, 19, 39, .45), transparent 36%);
  }
}

.home-slides__ui { position: absolute; inset: auto 0 0 0; z-index: 3; }
.home-slides__uiin { display: flex; align-items: center; gap: .5rem; padding-block: .85rem 1rem; }
.home-slides__btn {
  display: grid; place-items: center; flex: 0 0 auto; width: 44px; height: 44px; padding: 0;
  border: 1px solid rgba(255, 255, 255, .5); border-radius: 50%; background: rgba(7, 19, 39, .5); color: #fff; font-size: 1.05rem; cursor: pointer;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  transition: background-color var(--srf-dur-2) var(--srf-ease), border-color var(--srf-dur-2) var(--srf-ease), color var(--srf-dur-2) var(--srf-ease);
}
.home-slides__btn:hover { background: var(--srf-gold-500); border-color: var(--srf-gold-500); color: var(--srf-navy-950); }
.home-slides__btn--toggle { margin-inline-start: auto; }
.home-slides__count { min-width: 3.6rem; text-align: center; font: 600 .92rem/1 var(--srf-font-ui); color: rgba(255, 255, 255, .94); font-variant-numeric: lining-nums tabular-nums; }
.home-slides__dots { display: none; }
@media (min-width: 576px) {                                   /* phones: "2 / 5" between the arrows; from 576px: one dot per slide */
  .home-slides__count { display: none; }
  .home-slides__dots { display: flex; align-items: center; }
}
.home-slides__dot { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.home-slides__dot span {
  display: block; width: 10px; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .55);
  transition: width .3s var(--srf-ease), background-color .3s var(--srf-ease);
}
.home-slides__dot:hover span { background: #fff; }
.home-slides__dot[aria-current="true"] span { width: 30px; background: var(--srf-gold-500); }
html:not(.js) .home-slides__ui { display: none; }             /* controls need JavaScript; without it the first slide simply stays */

@media (prefers-reduced-motion: reduce) {
  .home-slide { transition: none; }
  .home-slide.is-active .home-slide__img,
  .home-slide.is-active .home-slide__copy > * { animation: none; }
}

/* ---------- 3. About: single column while there is nothing to count ---------------------------------------- */
.home-about__grid--single { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 992px) { .home-about__grid--single { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 4. Stats band ------------------------------------------------------------------------------------- */
.home-stats__grid { display: grid; gap: .9rem; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
@media (min-width: 768px) { .home-stats__grid { gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); } }
.home-stat {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: .3rem; min-width: 0; overflow: hidden;
  padding: 1.5rem .9rem 1.2rem; text-align: center;
  background: var(--srf-paper); border: 1px solid var(--srf-line); border-radius: var(--srf-radius-lg); box-shadow: var(--srf-shadow-1);
}
.home-stat::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--srf-gold-500); }
.home-stat__icon {
  display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: .45rem; border-radius: 50%;
  background: var(--srf-gold-100); color: var(--srf-gold-700); font-size: 1.2rem;
}
.home-stat__num { font: 600 clamp(2rem, 5vw, 3rem)/1.05 var(--srf-font-heading); color: var(--srf-navy-900); font-variant-numeric: lining-nums tabular-nums; }
html[lang="bn"] .home-stat__num { font-weight: 700; line-height: 1.2; }
.home-stat__label { font: 600 .82rem/1.35 var(--srf-font-ui); color: var(--srf-gold-800); }
html[lang="en"] .home-stat__label { text-transform: uppercase; letter-spacing: .1em; }
html[lang="bn"] .home-stat__label { font-size: .95rem; }
@media (hover: hover) {
  .home-stat { transition: translate var(--srf-dur-2) var(--srf-ease), box-shadow var(--srf-dur-2) var(--srf-ease); }
  .home-stat:hover { translate: 0 -4px; box-shadow: var(--srf-shadow-3); }
}

/* ---------- 5. Partners strip ---------------------------------------------------------------------------------- */
.home-partners__list { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.home-partners__item { flex: 0 0 calc(50% - .375rem); min-width: 0; }
@media (min-width: 576px) { .home-partners__item { flex-basis: calc(33.333% - .5rem); } }
@media (min-width: 992px) { .home-partners__item { flex-basis: calc(20% - .6rem); } }
.home-partner {
  display: grid; place-items: center; min-height: 96px; padding: .9rem 1rem; text-decoration: none;
  background: var(--srf-ivory); border: 1px solid var(--srf-line); border-radius: var(--srf-radius-md);
  transition: border-color var(--srf-dur-2) var(--srf-ease), box-shadow var(--srf-dur-2) var(--srf-ease);
}
.home-partner img {
  display: block; width: auto; height: auto; max-width: 100%; max-height: 56px; object-fit: contain;
  filter: grayscale(1); opacity: .82; transition: filter var(--srf-dur-2) var(--srf-ease), opacity var(--srf-dur-2) var(--srf-ease);
}
a.home-partner:hover, a.home-partner:focus-visible { border-color: var(--srf-gold-300); box-shadow: var(--srf-shadow-2); }
a.home-partner:hover img, a.home-partner:focus-visible img { filter: none; opacity: 1; }

/* ---------- 6. Testimonials ------------------------------------------------------------------------------------- */
.home-quotes { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .home-quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .home-quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.home-quotes--solo { max-width: 46rem; margin-inline: auto; grid-template-columns: minmax(0, 1fr); }
.home-quote {
  position: relative; display: flex; flex-direction: column; gap: 1rem; min-width: 0; margin: 0; padding: 1.7rem 1.5rem 1.4rem;
  background: var(--srf-paper); border: 1px solid var(--srf-line); border-top: 3px solid var(--srf-gold-500);
  border-radius: var(--srf-radius-lg); box-shadow: var(--srf-shadow-1);
}
.home-quote::after {                                          /* decorative quotation mark */
  content: "\201C"; position: absolute; top: .55rem; right: 1.1rem; font: 600 4.2rem/1 var(--srf-font-heading);
  color: var(--srf-gold-300); opacity: .6; pointer-events: none;
}
.home-quote__stars { display: inline-flex; gap: .15rem; color: var(--srf-gold-600); font-size: 1rem; }
.home-quote__text { margin: 0; color: var(--srf-ink-2); font-size: 1.04rem; line-height: 1.7; }
.home-quote__text p { margin: 0; }
.home-quote__who { display: flex; align-items: center; gap: .8rem; margin-top: auto; }
.home-quote__avatar {
  display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; overflow: hidden; border-radius: 50%;
  background: var(--srf-navy-900); color: var(--srf-gold-300); font: 600 1rem/1 var(--srf-font-heading);
}
.home-quote__avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.home-quote__meta { display: flex; flex-direction: column; min-width: 0; }
.home-quote__name { color: var(--srf-navy-900); font-weight: 700; overflow-wrap: anywhere; }
.home-quote__role { color: var(--srf-muted); font-size: .88rem; overflow-wrap: anywhere; }

/* ---------- 7. Staff screens (Admin > Website): .cms-* ---------------------------------------------------------- */
.cms-thumb {
  display: block; flex: 0 0 auto; width: 72px; height: 48px; object-fit: cover; border-radius: 8px;
  background: var(--srf-navy-50); border: 1px solid var(--srf-line-cool);
}
.cms-thumb--logo { object-fit: contain; background: #fff; padding: 4px; }
.cms-thumb--round { width: 44px; height: 44px; border-radius: 50%; }
.cms-thumb-ph {
  display: grid; place-items: center; flex: 0 0 auto; width: 72px; height: 48px; border-radius: 8px;
  background: var(--srf-navy-50); border: 1px dashed var(--srf-input-border); color: var(--srf-navy-200); font-size: 1.3rem;
}
.cms-thumb-ph.cms-thumb--round { width: 44px; height: 44px; border-radius: 50%; }
.cms-cell { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cms-cell > div { min-width: 0; }
.cms-clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; max-width: 48ch; overflow: hidden; overflow-wrap: anywhere; }
.srf-link-inline { font-weight: 600; text-decoration: none; }
.srf-link-inline:hover { text-decoration: underline; }

.cms-icon-tile {
  display: inline-grid; place-items: center; flex: 0 0 auto; width: 44px; height: 44px; border-radius: 10px;
  background: var(--srf-gold-100); color: var(--srf-gold-700); font-size: 1.3rem;
}
.cms-icon-row { display: flex; align-items: flex-start; gap: 12px; }
.cms-icon-row .form-control { flex: 1 1 auto; min-width: 0; }

.cms-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cms-chips .btn { text-align: left; }
.cms-child { padding-left: 28px; }
.cms-child::before { content: "\21B3"; margin-right: 8px; color: var(--srf-gold-700); }

.cms-map-preview { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--srf-line-cool); border-radius: 12px; background: var(--srf-navy-50); }
.cms-map-preview iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.cms-section__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.cms-section__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.cms-section__order { display: flex; align-items: center; gap: 8px; }
.cms-section__order .form-label { margin: 0; }
.cms-section__order .form-control { width: 96px; }
.cms-details > summary {
  display: flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; font-weight: 600; color: var(--srf-navy-800);
}
.cms-details > summary::-webkit-details-marker { display: none; }
.cms-details > summary:hover { color: var(--srf-navy-900); }
.cms-details > summary .bi { color: var(--srf-gold-700); transition: transform var(--srf-dur-1) ease; }
.cms-details[open] > summary .bi { transform: rotate(90deg); }
.cms-details[open] > summary { margin-bottom: 12px; }
