/* ============================================================
   HUAMEI Kenya — brand stylesheet
   Palette: Red #EE1D23 · Gray #6D6E71 · White #FFFFFF
   ============================================================ */
:root {
  --red: #EE1D23;
  --red-dark: #c61319;
  --red-deep: #9e0f14;
  --gray: #6D6E71;
  --gray-light: #9b9da0;
  --gray-lighter: #c6c8ca;
  --gray-bg: #f5f6f7;
  --gray-dark: #3f4043;
  --ink: #1f2022;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(31, 32, 34, .08);
  --shadow-md: 0 8px 24px rgba(31, 32, 34, .10);
  --shadow-lg: 0 16px 40px rgba(31, 32, 34, .16);
  --radius: 14px;
  --radius-sm: 8px;
  --font: "Inter", "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  --transition: .25s cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
.container { width: min(1180px, 100% - 48px); margin: 0 auto; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 15px; padding: 12px 26px; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer; transition: var(--transition);
  font-family: var(--font); white-space: nowrap;
}
.btn--red { background: var(--red); color: #fff; box-shadow: 0 6px 16px rgba(238, 29, 35, .3); }
.btn--red:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(238, 29, 35, .38); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--gray-lighter); }
.btn--ghost:hover { border-color: var(--gray); background: #fff; }
.btn--white { background: #fff; color: var(--red); }
.btn--white:hover { background: #f0f0f0; transform: translateY(-2px); }
.btn--lg { padding: 15px 32px; font-size: 16px; }
.btn--block { width: 100%; }

/* ============ Top bar ============ */
.topbar { background: var(--red); color: #fff; font-size: 13px; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 40px; gap: 12px; }
.topbar__contacts { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar__contacts a, .topbar__contacts span { display: inline-flex; align-items: center; gap: 7px; }
.topbar__contacts svg { width: 15px; height: 15px; fill: #fff; }
.topbar__lang { font-weight: 600; opacity: .95; }

/* ============ Header ============ */
.header {
  position: sticky; top: 0; z-index: 50; background: #fff;
  box-shadow: var(--shadow-sm); transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: var(--shadow-md); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 16px; }
.brand__logo { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav__link {
  padding: 9px 14px; font-weight: 600; font-size: 15px; color: var(--ink);
  border-radius: 8px; transition: var(--transition); position: relative;
}
.nav__link:hover { color: var(--red); background: #fbe9ea; }
.nav__link.active { color: var(--red); }
.nav__link.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 2px; background: var(--red); border-radius: 2px;
}
.nav__cta { margin-left: 10px; padding: 11px 22px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: var(--transition); border-radius: 2px; }

/* ============ Hero ============ */
.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, #fff 0%, #fbe9ea 60%, #f5f6f7 100%); padding: 72px 0 96px; }
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; position: relative; z-index: 2; }
.hero__tag {
  display: inline-block; background: #fff; color: var(--red); font-weight: 700;
  font-size: 13px; letter-spacing: .4px; text-transform: uppercase;
  padding: 8px 16px; border-radius: 999px; border: 1px solid #f3c1c3; margin-bottom: 20px;
}
.hero__title { font-size: clamp(32px, 4.6vw, 54px); font-weight: 900; margin-bottom: 18px; }
.text-red { color: var(--red); }
.hero__sub { font-size: 18px; color: var(--gray-dark); max-width: 540px; margin-bottom: 28px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.hero__points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 18px; }
.hero__points li { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--gray-dark); }
.hero__points svg { width: 18px; height: 18px; fill: var(--red); flex: none; }

.hero__visual { position: relative; }
.hero__visual-frame {
  background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg);
  padding: 28px; border: 1px solid #f0f0f0;
}
.hero__img--main { width: 100%; height: auto; border-radius: 12px; }
.hero__card {
  position: absolute; background: #fff; border-radius: 14px; box-shadow: var(--shadow-md);
  padding: 14px 20px; display: flex; flex-direction: column; line-height: 1.25;
  border: 1px solid #f0f0f0;
}
.hero__card strong { font-size: 26px; color: var(--red); font-weight: 900; }
.hero__card span { font-size: 13px; color: var(--gray); font-weight: 600; }
.hero__card--a { top: 8px; left: -18px; }
.hero__card--b { bottom: 24px; right: -12px; }

.hero__shape { position: absolute; border-radius: 50%; pointer-events: none; }
.hero__shape--1 { width: 320px; height: 320px; background: rgba(238, 29, 35, .06); top: -120px; right: -80px; }
.hero__shape--2 { width: 200px; height: 200px; background: rgba(109, 110, 113, .07); bottom: -60px; left: -60px; }

/* ============ Stats ============ */
.stats { background: var(--red); color: #fff; padding: 34px 0; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat__num { font-size: 40px; font-weight: 900; display: block; line-height: 1; }
.stat__label { font-size: 14px; opacity: .9; font-weight: 500; }

/* ============ Sections ============ */
.section { padding: 88px 0; }
.section__head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.section__tag {
  display: inline-block; color: var(--red); font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 12px;
}
.section__title { font-size: clamp(26px, 3.4vw, 40px); font-weight: 900; }
.section__lead { font-size: 17px; color: var(--gray-dark); }

/* ============ About ============ */
.about__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about__media { position: relative; }
.about__media img { border-radius: 20px; box-shadow: var(--shadow-md); width: 100%; }
.about__badge {
  position: absolute; left: -14px; bottom: -18px; background: #fff; border-radius: 12px;
  box-shadow: var(--shadow-md); padding: 12px 18px; display: flex; align-items: center; gap: 10px;
  font-weight: 700; color: var(--ink); border: 1px solid #f0f0f0;
}
.about__badge svg { width: 26px; height: 26px; fill: var(--red); }
.about__content .section__tag { text-align: left; }
.about__list { list-style: none; padding: 0; margin: 20px 0 28px; }
.about__list li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; font-weight: 500; }
.about__list svg { width: 20px; height: 20px; fill: var(--red); flex: none; margin-top: 2px; }

/* ============ Products ============ */
.products { background: var(--gray-bg); }
.filter { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 44px; }
.filter__btn {
  font-family: var(--font); font-weight: 600; font-size: 14px; padding: 10px 20px;
  border-radius: 999px; border: 1.5px solid var(--gray-lighter); background: #fff;
  color: var(--gray-dark); cursor: pointer; transition: var(--transition);
}
.filter__btn:hover { border-color: var(--red); color: var(--red); }
.filter__btn.active { background: var(--red); border-color: var(--red); color: #fff; }

.products__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: var(--transition); border: 1px solid #eef0f2;
  display: flex; flex-direction: column;
}
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product__media { padding: 18px 18px 0; background: #fafbfb; }
.product__media img { width: 100%; height: 180px; object-fit: contain; border-radius: 8px; }
.product__body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.product__cat { font-size: 12px; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: .6px; }
.product__name { font-size: 18px; margin: 6px 0 4px; }
.product__spec { font-size: 14px; color: var(--gray); margin: 0 0 14px; }
.product__link { font-weight: 700; color: var(--ink); font-size: 14px; margin-top: auto; }
.product__link:hover { color: var(--red); }

/* ============ Why us ============ */
.why__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.why__card {
  background: #fff; border: 1px solid #eef0f2; border-radius: var(--radius);
  padding: 30px 26px; transition: var(--transition);
}
.why__card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: #f3c1c3; }
.why__icon {
  width: 56px; height: 56px; border-radius: 14px; background: #fbe9ea;
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.why__icon svg { width: 28px; height: 28px; fill: var(--red); }
.why__card h3 { font-size: 19px; margin-bottom: 8px; }
.why__card p { color: var(--gray-dark); font-size: 15px; margin: 0; }

/* ============ Process ============ */
.process__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.process__step { text-align: center; padding: 8px; position: relative; }
.process__num {
  display: inline-flex; width: 52px; height: 52px; border-radius: 50%;
  background: var(--red); color: #fff; font-weight: 900; font-size: 22px;
  align-items: center; justify-content: center; margin-bottom: 16px;
}
.process__step h3 { font-size: 18px; margin-bottom: 6px; }
.process__step p { font-size: 14px; color: var(--gray-dark); margin: 0; }

/* ============ CTA ============ */
.cta { background: linear-gradient(120deg, var(--red) 0%, var(--red-dark) 100%); color: #fff; padding: 54px 0; }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 6px; }
.cta p { margin: 0; opacity: .92; font-size: 16px; }

/* ============ Contact ============ */
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.contact__info { display: flex; flex-direction: column; gap: 14px; }
.contact__item {
  display: flex; gap: 16px; align-items: center; background: #fff; border: 1px solid #eef0f2;
  border-radius: var(--radius); padding: 18px 20px; transition: var(--transition);
}
a.contact__item:hover { box-shadow: var(--shadow-md); border-color: #f3c1c3; transform: translateY(-2px); }
.contact__icon {
  width: 48px; height: 48px; border-radius: 12px; background: #fbe9ea; flex: none;
  display: flex; align-items: center; justify-content: center;
}
.contact__icon svg { width: 22px; height: 22px; fill: var(--red); }
.contact__icon--wa { background: #e8f6ec; }
.contact__icon--wa svg { fill: #25D366; }
.contact__item strong { display: block; font-size: 14px; color: var(--gray); font-weight: 600; }
.contact__item span { font-weight: 700; font-size: 16px; color: var(--ink); }

.contact__form {
  background: #fff; border: 1px solid #eef0f2; border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm);
}
.contact__form h3 { font-size: 22px; margin-bottom: 20px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__field { margin-bottom: 16px; }
.form__field label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; color: var(--gray-dark); }
.form__field input, .form__field select, .form__field textarea {
  width: 100%; font-family: var(--font); font-size: 15px; padding: 12px 14px;
  border: 1.5px solid var(--gray-lighter); border-radius: var(--radius-sm);
  transition: var(--transition); background: #fafbfb; color: var(--ink);
}
.form__field input:focus, .form__field select:focus, .form__field textarea:focus {
  outline: none; border-color: var(--red); background: #fff; box-shadow: 0 0 0 3px rgba(238, 29, 35, .12);
}
.form__field textarea { resize: vertical; }
.form__note { font-size: 14px; min-height: 20px; margin: 12px 0 0; }
.form__note.ok { color: #1a7f37; }
.form__note.err { color: var(--red); }

/* ============ Footer ============ */
.footer { background: var(--gray-dark); color: #d8d9db; padding: 60px 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; }
.footer__logo { height: 46px; width: auto; margin-bottom: 16px; }
.footer__col--brand p { font-size: 14px; color: #b8b9bb; }
.footer__col h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer__col a, .footer__col span { display: block; font-size: 14px; color: #c6c7c9; padding: 5px 0; }
.footer__col a:hover { color: var(--red); }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 20px 0; }
.footer__bottom-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: #9b9da0; }
.footer__bottom p { margin: 0; }

/* ============ WhatsApp button ============ */
.whatsapp {
  position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 58px; height: 58px;
  background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .45); transition: var(--transition);
}
.whatsapp:hover { transform: scale(1.08); }
.whatsapp svg { width: 32px; height: 32px; fill: #fff; }

/* ============ Reveal animation ============ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ============ Responsive ============ */
@media (max-width: 1000px) {
  .products__grid { grid-template-columns: repeat(3, 1fr); }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .process__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { max-width: 460px; margin: 0 auto; width: 100%; }
  .about__inner { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .nav {
    position: fixed; inset: 76px 0 0 0; background: #fff; flex-direction: column;
    padding: 20px 24px; gap: 8px; transform: translateX(100%); transition: transform var(--transition);
    align-items: stretch; box-shadow: var(--shadow-lg);
  }
  .nav.open { transform: translateX(0); }
  .nav__link { padding: 14px 16px; font-size: 17px; }
  .nav__cta { margin-left: 0; text-align: center; }
  .nav-toggle { display: block; }
  .topbar__contacts span { display: none; }
}
@media (max-width: 560px) {
  .products__grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .why__grid { grid-template-columns: 1fr; }
  .process__grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .brand__logo { height: 42px; }
  .hero__card--a { left: 0; }
  .hero__card--b { right: 0; }
}
