/* Madar Electronics — Supplier homepage (Build: pro1) */
.hero-supplier {
  position: relative;
  min-height: min(88vh, 760px);
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h, 70px) + 48px) 0 56px;
  overflow: hidden;
  background: #0b1220;
}

.hero-supplier .hero-media,
.hero-supplier .hero-bg-slides,
.hero-supplier .hero-bg-photo {
  position: absolute;
  inset: 0;
}

.hero-supplier .hero-bg-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.hero-supplier .hero-bg-photo.is-active {
  opacity: 1;
}

.hero-supplier .hero-media-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(8, 15, 28, 0.82) 0%, rgba(8, 15, 28, 0.55) 42%, rgba(8, 15, 28, 0.28) 100%),
    linear-gradient(180deg, rgba(8, 15, 28, 0.35) 0%, transparent 35%, rgba(8, 15, 28, 0.55) 100%);
}

.hero-supplier .container {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}

.hero-supplier-copy {
  max-width: 34rem;
  color: #fff;
}

.hero-supplier-copy .brand-line {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #bfdbfe;
}

.hero-supplier-copy h1 {
  margin: 0 0 14px;
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: #fff;
}

.hero-supplier-copy p {
  margin: 0 0 24px;
  font-size: clamp(1.02rem, 2vw, 1.18rem);
  line-height: 1.45;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  max-width: 30rem;
}

.hero-supplier-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-supplier .hero-dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 8px;
}

.section-supplier {
  padding: 64px 0;
}

.section-supplier.alt {
  background: #fff;
}

.section-supplier .section-head {
  max-width: 40rem;
  margin: 0 0 28px;
}

.section-supplier .section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  letter-spacing: -0.03em;
  color: #0f172a;
}

.section-supplier .section-head p {
  margin: 0;
  color: #64748b;
  font-weight: 500;
  line-height: 1.5;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.category-grid a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  text-decoration: none;
  color: #0f172a;
  font-weight: 650;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.section-supplier.alt .category-grid a {
  background: #f8fafc;
}

.category-grid a:hover {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.category-grid a span {
  color: #94a3b8;
  font-size: 1.1rem;
  font-weight: 500;
}

.split-supply {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.split-supply a {
  display: block;
  padding: 28px 24px;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
}

.split-supply a.dark {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}

.split-supply strong {
  display: block;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.split-supply span {
  display: block;
  color: #64748b;
  font-weight: 500;
  line-height: 1.45;
  font-size: 0.95rem;
}

.split-supply a.dark span {
  color: rgba(255, 255, 255, 0.72);
}

.home-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.home-note {
  margin-top: 18px;
  color: #64748b;
  font-size: 0.92rem;
  font-weight: 500;
}

.trust-simple {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.trust-simple div {
  padding: 18px 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.trust-simple strong {
  display: block;
  margin-bottom: 4px;
  color: #0f172a;
}

.trust-simple span {
  color: #64748b;
  font-weight: 500;
  font-size: 0.92rem;
  line-height: 1.4;
}

.cta-band {
  padding: 56px 0;
  background: #0f172a;
  color: #fff;
  text-align: center;
}

.cta-band h2 {
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  letter-spacing: -0.03em;
}

.cta-band p {
  margin: 0 auto 20px;
  max-width: 32rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
}

.cta-band .hero-supplier-actions {
  justify-content: center;
}

.cta-band .btn-outline {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.rt-price-quote {
  margin-top: 4px;
  font-size: 0.9rem;
  line-height: 1.45;
  font-weight: 550;
  color: #475569;
}

.rt-price-quote strong {
  display: block;
  margin-bottom: 4px;
  color: #0f172a;
  font-size: 1rem;
}

@media (max-width: 980px) {
  .category-grid,
  .home-feature-grid,
  .trust-simple {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .hero-supplier {
    min-height: 520px;
    align-items: center;
    padding: calc(var(--header-h, 58px) + 28px) 0 48px;
  }

  .hero-supplier .hero-media-shade {
    background:
      linear-gradient(180deg, rgba(8, 15, 28, 0.45) 0%, rgba(8, 15, 28, 0.72) 55%, rgba(8, 15, 28, 0.88) 100%);
  }

  .split-supply,
  .category-grid,
  .home-feature-grid,
  .trust-simple {
    grid-template-columns: 1fr;
  }
}
