/* =============================================
   Kosavi Industries — Homepage-specific styles
   Only classes that do NOT exist in style.css or components.css
   ============================================= */

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + var(--utility-bar-height));
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: -15%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10,10,10,0.62) 35%,
    rgba(10,10,10,0.32) 65%,
    rgba(10,10,10,0.08) 100%
  );
}
.hero__content {
  position: relative;
  z-index: 1;
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}
.hero__headline {
  font-size: var(--text-display);
  font-weight: 800;
  color: var(--white);
  max-width: 720px;
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero__sub {
  font-size: var(--text-lead);
  color: var(--grey-400);
  max-width: 580px;
  margin-bottom: 40px;
}
.hero__cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero__trust {
  margin-top: 32px;
  font-size: var(--text-small);
  color: var(--grey-400);
}
@media (max-width: 768px) {
  .hero {
    padding-top: var(--header-height-mobile);
  }
  .hero__headline { font-size: 2.25rem; }
  .hero__cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .hero__headline { font-size: 1.875rem; }
}

/* ---- METRICS STRIP ---- */
/* ---- TICKER STRIP ---- */
.ticker-strip {
  background: var(--grey-950);
  border-top: 2px solid var(--red-600);
  border-bottom: 2px solid var(--red-600);
  overflow: hidden;
  padding: 18px 0;
}
.ticker-track {
  overflow: hidden;
  white-space: nowrap;
}
.ticker-inner {
  display: inline-flex;
  align-items: center;
  gap: 0;
  animation: ticker-scroll 28s linear infinite;
  will-change: transform;
}
.ticker-strip:hover .ticker-inner {
  animation-play-state: paused;
}
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-item {
  font-size: var(--text-small);
  font-weight: 400;
  color: var(--grey-400);
  padding: 0 32px;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.ticker-item strong {
  font-weight: 700;
  color: var(--white);
}
.ticker-sep {
  color: var(--red-600);
  font-size: 8px;
  flex-shrink: 0;
  line-height: 1;
}
@media (prefers-reduced-motion: reduce) {
  .ticker-inner { animation: none; }
  .ticker-strip { overflow-x: auto; }
}

/* ─── Product Explorer (HOME-03) ──────────────────────────────────────────── */
.prod-explorer {
  background: var(--grey-50);
  padding: 96px 0;
}

/* Header row: heading left, sub + CTA right */
.prod-explorer__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 56px;
}
.prod-explorer__heading {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--grey-950);
  margin: 0;
  letter-spacing: -0.035em;
  line-height: 1.1;
}
.prod-explorer__heading em {
  font-style: normal;
  color: var(--red-600);
}
.prod-explorer__header-right {
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.prod-explorer__sub {
  font-size: 0.95rem;
  color: var(--grey-600);
  line-height: 1.65;
  margin: 0;
}

/* Two-column layout */
.prod-explorer__layout {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 0;
  border: 1px solid var(--grey-200);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 32px rgba(0,0,0,0.07);
}

/* ── Tab list (left column) ── */
.prod-explorer__tabs {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-right: 1px solid var(--grey-200);
}
.prod-tab {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-bottom: 1px solid var(--grey-100);
  border-left: 3px solid transparent;
  text-align: left;
  transition: background 200ms, border-color 200ms;
  position: relative;
}
.prod-tab:last-child { border-bottom: none; }
.prod-tab:hover {
  background: var(--grey-50);
}
.prod-tab--active {
  background: var(--red-50);
  border-left-color: var(--red-600);
}
.prod-tab__num {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--grey-300);
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  width: 22px;
}
.prod-tab--active .prod-tab__num { color: var(--red-600); }
.prod-tab__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.prod-tab__name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--grey-500);
  line-height: 1.2;
  transition: color 200ms;
}
.prod-tab--active .prod-tab__name,
.prod-tab:hover .prod-tab__name { color: var(--grey-950); }
.prod-tab__sub {
  font-size: 0.72rem;
  color: var(--grey-400);
  line-height: 1.3;
}
.prod-tab--active .prod-tab__sub { color: var(--grey-600); }
.prod-tab__arrow {
  width: 14px;
  height: 14px;
  color: var(--grey-300);
  flex-shrink: 0;
  transition: color 200ms, transform 200ms;
}
.prod-tab--active .prod-tab__arrow {
  color: var(--red-600);
  transform: translateX(2px);
}

/* ── Image panels (right column) ── */
.prod-explorer__panels {
  position: relative;
  min-height: 560px;
}
.prod-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 380ms ease;
  pointer-events: none;
}
.prod-panel--active {
  opacity: 1;
  pointer-events: auto;
}
.prod-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.prod-panel__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.88) 0%,
    rgba(0,0,0,0.45) 40%,
    rgba(0,0,0,0.05) 100%
  );
}
.prod-panel__content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.prod-panel__tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--red-400);
  background: rgba(220,38,38,0.15);
  border: 1px solid rgba(220,38,38,0.3);
  padding: 4px 10px;
  border-radius: 4px;
  width: fit-content;
}
.prod-panel__title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--white);
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.prod-panel__desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.68);
  line-height: 1.65;
  margin: 0;
  max-width: 460px;
}
.prod-panel__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  background: var(--red-600);
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  width: fit-content;
  margin-top: 6px;
  transition: background 200ms, gap 200ms;
}
.prod-panel__cta:hover { background: var(--red-500); gap: 12px; }
.prod-panel__cta i { width: 14px; height: 14px; }

/* Responsive */
@media (max-width: 1100px) {
  .prod-explorer__layout { grid-template-columns: 340px 1fr; }
}
@media (max-width: 900px) {
  .prod-explorer__layout { grid-template-columns: 1fr; }
  .prod-explorer__tabs { flex-direction: row; overflow-x: auto; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .prod-explorer__panels { min-height: 440px; }
  .prod-tab { border-bottom: none; border-left: none; border-bottom: 3px solid transparent; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 16px; white-space: nowrap; min-width: 160px; }
  .prod-tab--active { border-bottom-color: var(--red-600); border-left-color: transparent; background: rgba(220,38,38,0.08); }
  .prod-tab__arrow { display: none; }
  .prod-tab__sub { display: none; }
}
@media (max-width: 640px) {
  .prod-explorer { padding: 64px 0; }
  .prod-explorer__header { flex-direction: column; align-items: flex-start; gap: 20px; }
  .prod-explorer__header-right { max-width: 100%; }
  .prod-explorer__panels { min-height: 380px; }
  .prod-panel__content { padding: 28px 24px; }
  .prod-tab { min-width: 130px; }
  .prod-tab__name { font-size: 0.8rem; }
}

/* ---- TRUST/CAPABILITY STRIP (HOME-04) ---- */
.trust-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
  margin-top: var(--space-5);
}
.trust-strip__item {
  background: var(--grey-950);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}
.trust-strip__icon {
  width: 40px;
  height: 40px;
  color: var(--red-600);
}
.trust-strip__label {
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--white);
  line-height: 1.4;
}
@media (max-width: 1024px) {
  .trust-strip__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .trust-strip__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- SOLUTIONS GRID (HOME-05) — 5 cards: 3 top row, 2 centred bottom row ---- */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-5);
}
.solutions-grid .solution-card:nth-child(4) { grid-column: 1; }
.solutions-grid .solution-card:nth-child(5) { grid-column: 2; }
@media (max-width: 1024px) {
  .solutions-grid { grid-template-columns: repeat(2, 1fr); }
  .solutions-grid .solution-card:nth-child(4) { grid-column: auto; }
  .solutions-grid .solution-card:nth-child(5) { grid-column: auto; }
}
@media (max-width: 768px) {
  .solutions-grid { grid-template-columns: 1fr; }
}

/* ---- PROCESS STEPS (HOME-06) ---- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-3);
  position: relative;
  margin-top: var(--space-5);
}
/* Dashed connector line behind step number circles */
.process-steps::before {
  content: '';
  position: absolute;
  top: 22px;
  left: calc(10% + 18px);
  right: calc(10% + 18px);
  height: 1px;
  border-top: 1px dashed var(--red-600);
  z-index: 0;
}
.process-step {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 32px 24px;
  min-height: 200px;
  transition: border-color 250ms ease, background 250ms ease;
}
.process-step:hover {
  border-color: var(--red-600);
  background: rgba(185,28,28,0.08);
}
.process-step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--red-600);
  color: var(--white);
  font-size: var(--text-small);
  font-weight: 700;
  position: relative;
  z-index: 1;
}
.process-step__title {
  font-size: var(--text-h4);
  color: var(--white);
  margin-top: 16px;
}
.process-step__desc {
  font-size: var(--text-small);
  color: var(--grey-400);
  margin-top: 8px;
  line-height: 1.6;
}
/* Mobile: vertical list with number + title in row */
@media (max-width: 1024px) {
  .process-steps {
    grid-template-columns: 1fr;
  }
  .process-steps::before {
    display: none;
  }
  .process-step {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: var(--space-2);
    align-items: start;
    min-height: unset;
    padding: 20px 24px;
  }
  .process-step__number {
    grid-row: 1 / 3;
    margin-top: 4px;
  }
  .process-step__title {
    margin-top: 0;
  }
}

/* ---- FACTORY CAPABILITY LIST (HOME-07) ---- */
.capability-list {
  list-style: none;
  margin-top: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.capability-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-body);
  color: var(--grey-600);
}
.capability-list li::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red-600);
  flex-shrink: 0;
}

/* ---- FEATURED PROJECTS SWIPER (HOME-08) ---- */
.projects-swiper {
  width: 100%;
  padding-bottom: var(--space-4) !important; /* space for pagination dots */
}
.projects-swiper .card {
  height: 100%;
}
/* Dark placeholder background for project cards (no real images yet) */
.project-card-placeholder {
  height: 220px;
  background: var(--grey-800);
  border-radius: 12px 12px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-card-placeholder span {
  font-size: var(--text-small);
  color: var(--grey-400);
  font-style: italic;
}

/* ---- FINAL CTA BAND (HOME-09) ---- */
.cta-band {
  background: var(--red-600);
  padding: var(--space-7) 0;
}
.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.cta-band__heading {
  font-size: var(--text-h2);
  font-weight: 700;
  color: var(--white);
}
.cta-band__sub {
  font-size: var(--text-body);
  color: rgba(255,255,255,0.8);
  margin-top: 8px;
}
.cta-band__actions {
  display: flex;
  gap: var(--space-2);
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .cta-band__inner {
    flex-direction: column;
    text-align: center;
  }
  .cta-band__actions {
    flex-direction: column;
    width: 100%;
  }
  .cta-band__actions .btn-primary,
  .cta-band__actions .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* ---- FACTORY HERO ---- */
.factory-hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: var(--space-8) 0;
}
.factory-hero__bg {
  position: absolute;
  inset: -15%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
}
.factory-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10,10,10,0.88) 45%,
    rgba(10,10,10,0.55) 75%,
    rgba(10,10,10,0.25) 100%
  );
}
.factory-hero__content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}
.eyebrow--light {
  color: var(--red-400);
}
.factory-hero__heading {
  font-size: var(--text-h1);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin: 12px 0 20px;
}
.factory-hero__sub {
  font-size: var(--text-lead);
  color: var(--grey-400);
  margin-bottom: 32px;
  line-height: 1.6;
}
.factory-hero__list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  margin-bottom: 40px;
}
.factory-hero__list li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-size: var(--text-small);
}
.factory-hero__list li i {
  width: 16px;
  height: 16px;
  color: var(--red-500);
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .factory-hero { min-height: 480px; }
  .factory-hero__overlay {
    background: rgba(10,10,10,0.82);
  }
  .factory-hero__list { grid-template-columns: 1fr; }
  .factory-hero__heading { font-size: var(--text-h2); }
}
