/* s-content.css — content family home sections (see docs/REBUILD-PLAN.md):
   features-section .feat · icon-box .ibox · testimonials .tst · stats-numbers .stat · faqs/home-faqs .fqs
   about-us .abt · store-description .sdesc · branches .brn · contact-us .cnt · blogs .blg */

/* ---------- features-section ---------- */
.feat__grid { display: grid; grid-template-columns: repeat(var(--feat-cols-m), minmax(0, 1fr)); gap: var(--feat-gap-m); }
.feat__cr { --per-xs: var(--feat-cols-m); --cr-gap: var(--feat-gap-m); }
@media (min-width: 768px) {
  .feat__grid, .feat__cr .cr__track { grid-template-columns: repeat(var(--feat-cols), minmax(0, 1fr)); gap: var(--feat-gap); }
  /* the mobile slider becomes the normal grid on larger screens */
  .feat__cr .cr__track { grid-auto-flow: row; grid-auto-columns: auto; overflow: hidden; scroll-snap-type: none; }
  .feat--card .feat__cr .cr__track { overflow: visible; }
  .feat__cr .cr__arrow, .feat__cr .cr__progress { display: none; }
}
.feat__item { --ai: center; --ta: center; display: flex; flex-direction: column; align-items: var(--ai); gap: 12px; padding: 18px 14px; text-align: var(--ta); }
.feat--a-start .feat__item { --ai: flex-start; --ta: start; }
.feat--a-end .feat__item { --ai: flex-end; --ta: end; }
.feat--h .feat__item { flex-direction: row; align-items: center; justify-content: var(--ai); text-align: start; }
.feat__ic { display: grid; place-items: center; flex: none; width: var(--feat-ic); height: var(--feat-ic); }
.feat__ic img { width: 100%; height: 100%; object-fit: contain; }
.feat--ic-circle .feat__ic, .feat--ic-square .feat__ic { padding: calc(var(--feat-ic) * .2); background: var(--feat-ic-bg, var(--c-primary-soft)); }
.feat--ic-circle .feat__ic { border-radius: 50%; }
.feat--ic-square .feat__ic { border-radius: calc(var(--feat-ic) * .24); }
.feat__copy { display: grid; gap: 4px; min-width: 0; }
.feat__title { color: var(--feat-t, var(--c-text)); font-size: .95rem; line-height: 1.45; }
.feat__desc { color: var(--feat-d, var(--c-muted)); font-size: .8125rem; line-height: 1.65; white-space: pre-line; }
a.feat__item:hover .feat__title { color: var(--c-primary); }
/* dividers: every item draws its start/top edge; the grid clips the ones on the outer edges */
.feat--div .feat__grid { overflow: hidden; }
.feat--div .feat__item { margin-block-start: -1px; margin-inline-start: -1px; border-block-start: 1px solid var(--c-border); border-inline-start: 1px solid var(--c-border); }
.feat--card .feat__item { border-radius: var(--feat-r); background: var(--feat-card-bg, var(--c-surface)); }
.feat--shadow .feat__item { box-shadow: var(--shadow-sm); }
.feat--hover .feat__item { transition: transform .25s var(--ease), box-shadow .25s; }
.feat--hover .feat__item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
@media (max-width: 767px) {
  .feat--card .cr__track { padding-block: 4px 12px; } /* room for card shadows inside the scroller */
  .feat--compact .feat__item { gap: 8px; padding: 12px 6px; }
  .feat--compact .feat__ic { width: min(var(--feat-ic), 40px); height: min(var(--feat-ic), 40px); }
  .feat--compact .feat__title { font-size: .75rem; }
  .feat--compact .feat__desc { font-size: .6875rem; line-height: 1.5; }
  .feat--compact.feat--h .feat__item { flex-direction: column; align-items: var(--ai); text-align: var(--ta); }
}

/* ---------- icon-box ---------- */
.ibox { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
/* 768+: the column counts 220px boxes fit, balanced per item count by icon-box.jinja */
@media (min-width: 768px) { .ibox { grid-template-columns: repeat(var(--ib-md, 3), minmax(0, 1fr)); } }
@media (min-width: 992px) { .ibox { grid-template-columns: repeat(var(--ib-lg, 4), minmax(0, 1fr)); } }
@media (min-width: 1200px) { .ibox { grid-template-columns: repeat(var(--ib-xl, 5), minmax(0, 1fr)); } }
.ibox__item { display: grid; align-content: start; justify-items: start; gap: 8px; padding: 20px; border: 1px solid var(--c-border); border-radius: var(--radius); background: #fff; transition: border-color .2s, box-shadow .25s; }
.ibox__item:hover { border-color: color-mix(in srgb, var(--c-primary) 40%, var(--c-border)); box-shadow: var(--shadow-sm); }
.ibox__ic { display: grid; place-items: center; width: 56px; height: 56px; margin-block-end: 4px; padding: 8px; border-radius: var(--radius-sm); background: var(--c-primary-soft); }
.ibox__ic img { width: 100%; height: 100%; object-fit: contain; }
.ibox__title { font-size: 1rem; font-weight: 700; line-height: 1.4; }
.ibox__desc { color: var(--c-muted); font-size: .875rem; line-height: 1.7; white-space: pre-line; }

/* ---------- testimonials ---------- */
.tst { --cr-arrow-top: 50%; }
.tst__card { position: relative; display: flex; flex-direction: column; gap: 14px; height: 100%; margin: 0; padding: 22px; border: 1px solid var(--tst-border, var(--c-border)); border-radius: var(--radius); background: var(--tst-bg, #fff); }
.tst__card::before { content: "\201D" / ""; position: absolute; inset-block-start: 8px; inset-inline-end: 18px; color: var(--c-primary); font: 700 4.5rem/1 Georgia, "Times New Roman", serif; opacity: .14; pointer-events: none; }
.tst__stars { display: inline-flex; gap: 2px; color: #d9dbe1; }
.tst__stars .ic { width: 17px; height: 17px; fill: currentColor; stroke: none; }
.tst__stars .is-on { color: #f5a524; }
.tst__text { flex: 1; margin: 0; color: var(--tst-text, var(--c-text)); line-height: 1.85; white-space: pre-line; }
.tst__by { display: flex; align-items: center; gap: 12px; padding-block-start: 14px; border-block-start: 1px solid var(--tst-border, var(--c-border)); }
.tst__avatar { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--c-primary-soft); color: var(--c-primary); font-weight: 700; }
.tst__name { display: block; color: var(--tst-name, var(--c-text)); }
.tst__ok { display: inline-flex; align-items: center; gap: 4px; color: var(--tst-ok, var(--c-success)); font-size: .78rem; font-weight: 600; }
.tst__ok .ic { width: 15px; height: 15px; }

/* ---------- stats-numbers ---------- */
.stat__card { display: grid; align-content: center; justify-items: center; gap: 6px; height: 100%; padding: clamp(18px, 3vw, 32px) 14px; border: 1px solid var(--stat-border, var(--c-border)); border-radius: var(--radius); background: var(--stat-bg, #fff); text-align: center; }
.stat__num { color: var(--stat-num, var(--c-text)); font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; }
.stat--grad .stat__num {
  color: transparent; -webkit-background-clip: text; background-clip: text;
  background-image: linear-gradient(90deg, var(--stat-grad, var(--c-primary)), color-mix(in srgb, var(--stat-grad, var(--c-primary)) 35%, #fff), var(--stat-grad, var(--c-primary)));
  background-size: 200% 100%; animation: stat-shine 4s linear infinite;
}
@keyframes stat-shine { to { background-position: -200% 0; } }
.stat__desc { color: var(--stat-desc, var(--c-muted)); font-size: .9rem; }

/* ---------- faqs / home-faqs-section ---------- */
.fqs .faq { max-width: 860px; margin-inline: auto; }

/* ---------- about-us ---------- */
.abt { display: grid; align-items: center; gap: clamp(20px, 4vw, 56px); }
@media (min-width: 992px) { .abt { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.abt--text { max-width: 860px; justify-items: center; text-align: center; }
@media (min-width: 992px) { .abt--text { grid-template-columns: none; } }
.abt__media { aspect-ratio: 4 / 3; }
.abt__play { position: absolute; inset: 0; display: grid; place-items: center; width: 76px; height: 76px; margin: auto; border-radius: 50%; background: rgb(255 255 255 / 92%); color: var(--c-primary); box-shadow: var(--shadow); transition: transform .25s var(--ease); }
.abt__play:hover { transform: scale(1.08); }
.abt__play .ic { width: 28px; height: 28px; transform: translateX(2px); } /* physical: the play glyph is never mirrored */
.abt__copy { display: grid; justify-items: start; gap: 14px; }
.abt--text .abt__copy { justify-items: center; }
.abt__eyebrow { color: var(--c-primary); font-size: .875rem; font-weight: 600; }
.abt__title { color: var(--c-text); font-size: clamp(1.4rem, 1rem + 1.6vw, 2.2rem); }
.abt__des { color: var(--c-muted); line-height: 1.9; white-space: pre-line; }
.abt__copy .btn { margin-block-start: 6px; }

/* ---------- store-description ---------- */
.sdesc { display: grid; justify-items: center; gap: 14px; max-width: 860px; text-align: center; }
.sdesc__title { font-size: clamp(1.25rem, 1rem + 1.1vw, 1.75rem); }
.sdesc__des { color: var(--c-muted); line-height: 1.9; white-space: pre-line; }
.sdesc__social { justify-content: center; margin-block-start: 4px; color: var(--c-text); }

/* ---------- branches ---------- */
.brn__countries { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-block-end: 18px; }
.brn__group { display: grid; gap: 14px; }
.brn__list { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.brn__list::-webkit-scrollbar { display: none; }
.brn--top .brn__list { flex-wrap: wrap; justify-content: center; }
.brn__tab { display: inline-flex; flex: none; align-items: center; gap: 8px; min-height: 42px; padding: 8px 18px; border: 1px solid var(--c-border); border-radius: var(--pill); background: #fff; color: var(--brn-fg, var(--c-text)); font-weight: 600; white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
.brn__tab:hover { border-color: var(--brn-on-bg, var(--c-primary)); }
.brn__tab.is-active { border-color: var(--brn-on-bg, var(--c-primary)); background: var(--brn-on-bg, var(--c-primary)); color: var(--brn-on-fg, var(--c-on-primary)); }
.brn__tab small { display: none; }
.brn__flag { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
@media (min-width: 992px) {
  .brn--sidebar .brn__group { grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); align-items: start; }
  .brn--sidebar .brn__list { flex-direction: column; max-height: var(--brn-h); overflow-y: auto; }
  .brn--sidebar .brn__list .brn__tab { display: grid; justify-items: start; gap: 2px; padding: 14px 18px; border-radius: var(--radius-sm); text-align: start; white-space: normal; }
  .brn--sidebar .brn__tab small { display: block; color: inherit; font-size: .8125rem; font-weight: 400; opacity: .75; }
}
.brn__panel { position: relative; display: grid; gap: 12px; }
.brn__map, .cnt__map { overflow: hidden; border-radius: var(--radius); background: var(--c-surface); }
.brn__map { height: min(var(--brn-h), 60vh); }
.brn__map iframe, .cnt__map iframe { display: block; width: 100%; height: 100%; border: 0; }
.brn__info { display: grid; gap: 12px; padding: 18px; border: 1px solid var(--c-border); border-radius: var(--radius); background: #fff; }
@media (min-width: 768px) {
  .brn__map { height: var(--brn-h); }
  /* physical top-right: the Google Maps embed keeps its place card top-left and its zoom/attribution at the bottom */
  /* at most half the map minus 34px: the centre, where the pin is, stays 20px clear of the card */
  .brn__map:not([hidden]) + .brn__info { position: absolute; top: 14px; right: 14px; width: min(330px, calc(50% - 34px)); max-height: calc(100% - 28px); overflow-y: auto; border: 0; box-shadow: var(--shadow); }
}
.brn__name { font-size: 1.05rem; font-weight: 700; }
.brn__rows { display: grid; gap: 10px; font-size: .875rem; }
.brn__rows li { display: flex; align-items: flex-start; gap: 10px; }
.brn__rows .ic { width: 18px; height: 18px; margin-block-start: 2px; color: var(--c-primary); }
.brn__rows a:hover { color: var(--c-primary); }
.brn__hours { white-space: pre-line; }

/* ---------- contact-us ---------- */
.cnt { display: grid; gap: var(--gap); }
.cnt__list { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
@media (min-width: 992px) {
  .cnt--map { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .cnt--map .cnt__list { grid-template-columns: none; align-content: start; }
}
.cnt__item { display: flex; align-items: center; gap: 14px; height: 100%; padding: 18px; border: 1px solid var(--c-border); border-radius: var(--radius); background: #fff; transition: border-color .2s, box-shadow .25s; }
a.cnt__item:hover { border-color: var(--c-primary); box-shadow: var(--shadow-sm); }
.cnt__item > .ic { width: 48px; height: 48px; padding: 13px; border-radius: 50%; background: var(--c-primary-soft); color: var(--c-primary); }
.cnt__item small { display: block; color: var(--c-muted); font-size: .78rem; }
.cnt__val { display: block; font-weight: 600; overflow-wrap: anywhere; }
.cnt__text { font-weight: 500; white-space: pre-line; }
.cnt__map { min-height: 320px; }

/* ---------- blogs ---------- */
.blg { --cr-arrow-top: 32%; }
.blg__card { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--c-border); border-radius: var(--radius); background: #fff; transition: box-shadow .25s; }
.blg__card:hover { box-shadow: var(--shadow); }
.blg__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--c-surface); }
.blg__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.blg__card:hover .blg__media img { transform: scale(1.05); }
.blg__body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; flex: 1; padding: 16px; }
.blg__date { color: var(--c-muted); font-size: .78rem; }
.blg__title { font-size: 1rem; line-height: 1.5; }
.blg__title a { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.blg__title a:hover { color: var(--c-primary); }
.blg__excerpt { display: -webkit-box; overflow: hidden; color: var(--c-muted); font-size: .875rem; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.blg__btn { --btn-bg: var(--c-primary-soft); --btn-fg: var(--c-primary-dark); margin-block-start: auto; }
