/* ============================================================
   hero-slider.css — techatfirstcall.com
   Hero + promo banner slider styles
   Last updated: 2026-05-28
   ============================================================ */


/* ── TOKENS ───────────────────────────────────────────────── */
:root {
  --hs-gap:          6px;
  --hs-r:            10px;
  --hs-accent:       #16a34a;
  --hs-accent-dark:  #166534;
  --hs-overlay:      linear-gradient(to top, rgba(0,0,0,.65) 0%, rgba(0,0,0,.15) 55%, transparent 100%);
  --hs-spd:          700ms;
  --hs-ease:         cubic-bezier(.4, 0, .2, 1);
  --hs-slide-bg:     #0f0f0f;   /* letterbox gap fill */
}


/* ── ROOT ─────────────────────────────────────────────────── */
.hs-root {
  display: flex;
  gap: var(--hs-gap);
  width: 100%;
  overflow: hidden;
  height: 480px;
  contain: layout style;
}


/* ── COLUMNS ──────────────────────────────────────────────── */
.hs-hero {
  flex: 0 0 70%;
  position: relative;
  overflow: hidden;
}

.hs-promo {
  flex: 0 0 calc(30% - var(--hs-gap));
  display: flex;
  flex-direction: column;
  gap: var(--hs-gap);
}

.hs-promo__half {
  flex: 1;
  position: relative;
  overflow: hidden;
}


/* ── TRACK ────────────────────────────────────────────────── */
.hs-track {
  display: flex;
  height: 100%;
  will-change: transform;
  transition: transform var(--hs-spd) var(--hs-ease);
}


/* ── SLIDES ───────────────────────────────────────────────── */
.hs-slide {
  flex: 0 0 100%;
  position: relative;
  display: block;
  text-decoration: none;
  overflow: hidden;
  height: 100%;
  background: var(--hs-slide-bg);   /* fills letterbox gaps */
}


/* ── IMAGE — full image visible, never cropped ────────────── */
.hs-slide__img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: fix;
  object-position: center center;
  transform: scale(1.04);
  transition: transform 6s var(--hs-ease);
}

.hs-slide.is-active .hs-slide__img {
  transform: scale(1);
}


/* ── OVERLAY ──────────────────────────────────────────────── */
.hs-slide__overlay {
  position: absolute;
  inset: 0;
  background: var(--hs-overlay);
  pointer-events: none;
}


/* ── SLIDE BODY COPY ──────────────────────────────────────── */
.hs-slide__body {
  position: absolute;
  bottom: 48px;
  left: 24px;
  right: 24px;
  z-index: 2;
  transform: translateY(10px);
  opacity: 0;
  transition: transform .5s var(--hs-ease), opacity .5s var(--hs-ease);
}

.hs-slide.is-active .hs-slide__body {
  transform: translateY(0);
  opacity: 1;
}

.hs-slide__sub {
  margin: 0 0 12px;
  font-size: clamp(.75rem, 1.2vw, .9rem);
  color: rgba(255,255,255,.88);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hs-slide__btn {
  display: inline-block;
  background: var(--hs-accent);
  color: #fff;
  padding: 8px 20px;
  border-radius: 4px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  transition: background .2s;
}

.hs-slide:hover .hs-slide__btn {
  background: var(--hs-accent-dark);
}

.hs-slide__btn--sm {
  padding: 5px 12px;
  font-size: .7rem;
}


/* ── DOTS ─────────────────────────────────────────────────── */
.hs-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 6px;
}

.hs-dots--sm {
  bottom: 7px;
  gap: 4px;
}

.hs-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.7);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background .25s, transform .25s;
  -webkit-tap-highlight-color: transparent;
}

.hs-dot.is-active {
  background: #fff;
  transform: scale(1.3);
}

.hs-dot--sm {
  width: 6px;
  height: 6px;
}


/* ── ARROWS ───────────────────────────────────────────────── */
.hs-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  background: rgba(22,163,74,.82);
  border: 1.5px solid rgba(255,255,255,.3);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: background .2s;
  touch-action: manipulation;
}

.hs-arrow:hover {
  background: rgba(22,163,74,1);
}

.hs-arrow--prev { left: 10px; }
.hs-arrow--next { right: 10px; }


/* ── EMPTY STATE ──────────────────────────────────────────── */
.hs-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1a2e;
  color: rgba(255,255,255,.4);
  font-size: .85rem;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ── Desktop ≥1200px ──────────────────────────────────────── */
@media (min-width: 1200px) {
  .hs-root { height: 480px; }
}

/* ── Tablet 768–1199px ────────────────────────────────────── */
@media (min-width: 768px) and (max-width: 1199px) {
  .hs-root { height: 100dvh; }
}

/* ── Mobile <768px ────────────────────────────────────────── */
@media (max-width: 767px) {
  .hs-root         { flex-direction: column; height: auto; }
  .hs-hero         { flex: none; width: 100%; height: 240px; }
  .hs-promo        { flex: none; flex-direction: row; height: 130px; width: 100%; }
  .hs-promo__half  { flex: 1; }
  .hs-arrow        { width: 28px; height: 28px; font-size: .8rem; }
}


/* ============================================================
   PAGE-LEVEL RESPONSIVE (header, grid, footer, hero-landing)
   ============================================================ */

@media (max-width: 1024px) {
  .hero-content h1  { font-size: 36px; }
  .cat-grid         { grid-template-columns: repeat(4, 1fr); }
  .product-grid     { grid-template-columns: repeat(3, 1fr); }
  .footer-grid      { grid-template-columns: repeat(6, 1fr); }
  .why-grid         { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero-landing              { flex-direction: column; height: auto; }
  .hero-left                 { width: 100%; height: 60vh; min-height: 400px; }
  .hero-right                { width: 100%; flex-direction: row; height: 300px; }
  .promo-top, .promo-bottom  { width: 50%; height: 100%; }
  .hero-content              { padding: 30px; }
  .hero-content h1           { font-size: 28px; }
}

@media (max-width: 768px) {
  .header-inner              { flex-wrap: wrap; }
  .search-bar                { order: 3; flex: 0 0 100%; }
  .product-grid              { grid-template-columns: repeat(2, 1fr); }
  .cat-grid                  { grid-template-columns: repeat(3, 1fr); }
  .footer-grid               { grid-template-columns: 1fr; }
  .why-grid                  { grid-template-columns: 1fr; }
  .hero-right                { flex-direction: column; height: auto; }
  .promo-top, .promo-bottom  { width: 100%; height: 200px; }
  .hero-prev, .hero-next     { width: 30px; height: 30px; font-size: 14px; }
}

@media (max-width: 480px) {
  .hero-left          { height: 50vh; }
  .hero-content h1    { font-size: 22px; }
  .hero-stats         { gap: 20px; }
  .product-grid       { grid-template-columns: repeat(2, 1fr); }
  .hero-stats strong  { font-size: 18px; }
}