/* =====================================================
   Yueming Technology — Landing Page Stylesheet
   Palette derived from logo:
   deep navy #0E3A7C / primary blue #1256A0 / accent #2FA3DC / silver #AEB6BF
   ===================================================== */
:root {
  --c-navy: #0E3A7C;
  --c-primary: #1256A0;
  --c-accent: #2FA3DC;
  --c-dark: #0F1F33;
  --c-text: #3C4653;
  --c-muted: #6E7A88;
  --c-silver: #AEB6BF;
  --c-light: #F4F8FC;
  --c-border: #E3EAF2;
  --shadow: 0 15px 40px rgba(14, 58, 124, .10);
}

html { scroll-behavior: smooth; font-size: 112.5%; }
body {
  font-family: Arial, "PingFang SC", sans-serif;
  color: var(--c-text);
  font-size: 17.5px;
  line-height: 1.72;
  overflow-x: hidden;
}
img { max-width: 100%; }
a { text-decoration: none; }

/* ---------- Header ---------- */
.top-bar {
  background: var(--c-navy);
  color: rgba(255,255,255,.85);
  font-size: 14px;
  padding: 7px 0;
}
.top-bar a { color: #fff; }
.top-bar .sep { margin: 0 12px; opacity: .4; }

.main-nav {
  background: #fff;
  padding: 10px 0;
  transition: box-shadow .3s;
}
.main-nav.scrolled { box-shadow: 0 6px 25px rgba(14,58,124,.12); }
.brand-logo { height: 76px; width: auto; }
.main-nav .nav-link {
  color: var(--c-dark);
  font-weight: 600;
  font-size: 16px;
  padding: 10px 14px !important;
  position: relative;
}
.main-nav .nav-link:hover,
.main-nav .nav-link.active { color: var(--c-primary); }
.dropdown-menu {
  border: 0;
  border-top: 3px solid var(--c-accent);
  border-radius: 0 0 8px 8px;
  box-shadow: var(--shadow);
  padding: 8px 0;
  min-width: 260px;
}
.dropdown-item { font-size: 15.5px; padding: 9px 20px; color: var(--c-dark); }
.dropdown-item:hover { background: var(--c-light); color: var(--c-primary); }

.btn-quote {
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  color: #fff !important;
  padding: 10px 26px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  transition: transform .25s, box-shadow .25s;
}
.btn-quote:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(47,163,220,.4); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--c-navy);
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10,30,62,.88) 0%, rgba(14,58,124,.72) 45%, rgba(47,163,220,.35) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 90px 0; }
.hero-eyebrow {
  color: var(--c-accent);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 15px;
  margin-bottom: 14px;
}
.hero-title {
  color: #fff;
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 22px;
}
.hero-title span { color: var(--c-accent); }
.hero-sub {
  color: rgba(255,255,255,.88);
  font-size: 19.5px;
  max-width: 720px;
  margin-bottom: 32px;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-hero-main {
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  color: #fff;
  font-weight: 700;
  padding: 13px 34px;
  border-radius: 50px;
  border: 0;
  transition: transform .25s, box-shadow .25s;
}
.btn-hero-main:hover { transform: translateY(-2px); color:#fff; box-shadow: 0 12px 28px rgba(47,163,220,.45); }
.btn-hero-ghost {
  color: #fff;
  border: 2px solid rgba(255,255,255,.6);
  padding: 12px 34px;
  border-radius: 50px;
  font-weight: 700;
  transition: all .25s;
}
.btn-hero-ghost:hover { background: #fff; color: var(--c-primary); }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 34px 0 0; }
.hero-chips li {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .5px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50px;
  padding: 5px 16px;
  background: rgba(255,255,255,.08);
}

/* ---------- Floating contact ---------- */
.float-contact {
  position: fixed;
  right: 18px; bottom: 90px;
  flex-direction: column;
  gap: 10px;
  z-index: 99;
}
.fc-item {
  width: 46px; height: 46px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(14,58,124,.3);
  transition: transform .25s;
}
.fc-item:hover { transform: translateY(-3px); color: #fff; }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section.alt { background: var(--c-light); }
.section-head { text-align: center; max-width: 820px; margin: 0 auto 55px; }
.section-tag {
  display: inline-block;
  color: var(--c-accent);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13.5px;
  margin-bottom: 12px;
}
.section-title {
  color: var(--c-dark);
  font-weight: 800;
  font-size: clamp(28px, 3.6vw, 42px);
  margin-bottom: 16px;
}
.section-desc { color: var(--c-muted); font-size: 18px; }

/* ---------- Advantage cards ---------- */
.who { padding-top: 90px; }
.adv-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 14px;
  padding: 34px 28px;
  transition: transform .3s, box-shadow .3s, border-color .3s;
  position: relative;
  overflow: hidden;
}
.adv-card::before {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s;
}
.adv-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.adv-card:hover::before { transform: scaleX(1); }
.adv-icon {
  width: 62px; height: 62px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(18,86,160,.1), rgba(47,163,220,.15));
  color: var(--c-primary);
  margin-bottom: 20px;
}
.adv-card h3 { color: var(--c-dark); font-size: 21px; font-weight: 700; margin-bottom: 12px; }
.adv-card p { color: var(--c-muted); font-size: 16.5px; margin: 0; }

/* ---------- Counters ---------- */
.counters {
  background:
    linear-gradient(110deg, rgba(14,58,124,.94), rgba(18,86,160,.9)),
    var(--c-navy);
  color: #fff;
  padding: 65px 0;
}
.counter-item { text-align: center; padding: 10px 20px; border-right: 1px solid rgba(255,255,255,.18); }
.counters .col-6:last-child .counter-item { border-right: 0; }
.counter-num { font-size: 48px; font-weight: 800; line-height: 1.1; }
.counter-num em { font-style: normal; font-size: 20px; color: var(--c-accent); margin-left: 4px; }
.counter-item p { margin: 6px 0 0; color: rgba(255,255,255,.85); font-size: 16.5px; }
@media (max-width: 991px) { .counter-item { border-right: 0; } }

/* ---------- Products ---------- */
.product-row {/* margin-bottom: 80px; */}
.product-row:last-child { margin-bottom: 0; }
.product-img {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.product-img img {width: 100%;/* height: 520px; */object-fit: cover;transition: transform .6s;}
.product-img:hover img { transform: scale(1.05); }
.product-words h3 { color: var(--c-dark); font-size: 29px; font-weight: 800; margin-bottom: 16px; }
.product-words > p { color: var(--c-muted); }
.tick-list { list-style: none; padding: 0; margin: 18px 0 26px; }
.tick-list li {
  padding: 7px 0 7px 32px;
  position: relative;
  color: var(--c-text);
  font-size: 17px;
}
.tick-list li::before {
  content: "";
  position: absolute; left: 0; top: 10px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--c-accent) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"/></svg>') center/14px no-repeat;
}
.btn-line {
  border: 2px solid var(--c-primary);
  color: var(--c-primary);
  font-weight: 700;
  padding: 10px 28px;
  border-radius: 50px;
  transition: all .25s;
}
.btn-line:hover { background: var(--c-primary); color: #fff; }

/* ---------- Quality ---------- */
.quality-list { list-style: none; padding: 0; margin: 0; }
.quality-list li {
  position: relative;
  padding: 0 0 18px 34px;
  color: var(--c-text);
  font-size: 17px;
}
.quality-list li::before {
  content: "";
  position: absolute; left: 0; top: 5px;
  width: 14px; height: 14px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
}
.quality-list strong { color: var(--c-dark); }
.quality-note {
  background: rgba(47,163,220,.08);
  border-left: 4px solid var(--c-accent);
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  color: var(--c-muted);
  font-size: 16.5px;
  margin-top: 10px;
}
.quality-img { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }

/* Swiper shared */
.equip-swiper-wrap, .cert-swiper-wrap, .factory-swiper-wrap, .testi-swiper-wrap, .gallery-swiper-wrap { position: relative; padding: 0 55px; }
.swiper-button-prev, .swiper-button-next {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 18px rgba(14,58,124,.18);
  color: var(--c-primary) !important;
}
.swiper-button-prev::after, .swiper-button-next::after { font-size: 17px; font-weight: 800; }
.swiper-pagination-bullet { background: var(--c-silver); opacity: 1; }
.swiper-pagination-bullet-active { background: var(--c-accent); width: 22px; border-radius: 4px; }

.equipSwiper .swiper-slide img {
  width: 100%; height: 200px; object-fit: cover;
  border-radius: 10px;
}
.equipSwiper .swiper-slide p {
  text-align: center; margin: 10px 0 24px;
  font-size: 15px; font-weight: 600; color: var(--c-dark);
}

/* ---------- Certifications ---------- */
.cert-card {
  background: #155ea7;
  border: 1px solid var(--c-border);
  border-radius: 12px;
  padding: 12px;
  height: 450px;
  display: flex; align-items: center; justify-content: center;
  transition: box-shadow .3s;
}
.cert-card:hover { box-shadow: var(--shadow); }
.cert-card img { max-height: 100%; object-fit: contain; }
.certSwiper .swiper-slide p {
  text-align: center; margin: 12px 0 20px;
  font-weight: 700; color: var(--c-dark); letter-spacing: 1px;
}
.comp-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-left: 4px solid var(--c-accent);
  border-radius: 10px;
  padding: 18px 22px;
  height: 100%;
}
.comp-market { display: block; font-size: 14px; color: var(--c-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.comp-card strong { color: var(--c-dark); font-size: 17px; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    linear-gradient(110deg, rgba(14,58,124,.95), rgba(18,86,160,.92)),
    var(--c-navy);
  color: #fff;
  padding: 55px 0;
}
.cta-band h2 { font-size: clamp(24px, 3.2vw, 36px); font-weight: 800; margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,.85); margin: 0; font-size: 17.5px; }

/* ---------- Factory ---------- */
.factorySwiper .swiper-slide img {
  width: 100%;
  aspect-ratio: 7 / 5;
  height: auto;
  object-fit: cover;
  object-position: top; /* crop baked-in captions at the bottom of source photos */
  border-radius: 10px;
}
.factorySwiper .swiper-slide p {
  text-align: center; margin: 10px 0 24px;
  font-size: 15px; font-weight: 600; color: var(--c-dark);
}
.exhibition-img { border-radius: 16px; box-shadow: var(--shadow); width: 100%; }
.exhibition-note { color: var(--c-muted); font-size: 16.5px; max-width: 760px; margin: 0 auto; }

/* ---------- Who we serve ---------- */
.serve-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 14px;
  padding: 34px 28px;
  transition: transform .3s, box-shadow .3s;
}
.serve-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.serve-card h3 { color: var(--c-dark); font-size: 21px; font-weight: 700; margin-bottom: 12px; }
.serve-card p { color: var(--c-muted); font-size: 16.5px; margin: 0; }
.market-strip {
  margin-top: 45px;
  background: linear-gradient(135deg, rgba(18,86,160,.06), rgba(47,163,220,.1));
  border: 1px dashed var(--c-accent);
  border-radius: 14px;
  padding: 22px 28px;
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
}
.market-label { font-weight: 800; color: var(--c-primary); text-transform: uppercase; letter-spacing: 1px; font-size: 15px; }
.market-strip ul { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.market-strip li {
  background: #fff;
  border: 1px solid var(--c-border);
  color: var(--c-dark);
  font-size: 15px; font-weight: 600;
  border-radius: 50px;
  padding: 6px 18px;
}

/* ---------- Testimonials (vertical auto-scroll cards) ---------- */
.single-testimonials {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 14px;
  padding: 14px;
  transition: box-shadow .3s, transform .3s;
}
.single-testimonials:hover { box-shadow: var(--shadow); transform: translateY(-5px); }
.scroll-box {
  height: 440px;
  overflow: hidden;
  border-radius: 10px;
}
.scroll-inner {
  display: flex;
  flex-direction: column;
  animation: scrollUp 16s linear infinite;
}
.scroll-box:hover .scroll-inner { animation-play-state: paused; }
.scroll-inner img {
  width: 100%;
  display: block;
}
@keyframes scrollUp {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}

/* ---------- Product Gallery ---------- */
.gallery-head { text-align: center; margin: 80px 0 40px; }
.gallery-head h3 {
  color: var(--c-dark);
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 10px;
}
.gallery-head p { color: var(--c-muted); font-size: 17px; margin: 0; }
.gallery-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 14px;
  padding: 12px;
  transition: box-shadow .3s, transform .3s;
}
.gallery-card:hover { box-shadow: var(--shadow); transform: translateY(-5px); }
.gallery-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
}
.gallery-card p {
  text-align: center;
  margin: 12px 0 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--c-dark);
}

/* ---------- Contact ---------- */
.contact { background: var(--c-light); }
.contact-info { display: flex; flex-direction: column; gap: 22px; }
.ci-item { display: flex; gap: 18px; align-items: flex-start; }
.ci-icon {
  flex: 0 0 52px;
  width: 52px; height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.ci-item h4 { color: var(--c-dark); font-size: 18px; font-weight: 700; margin: 0 0 2px; }
.ci-item p { margin: 0; color: var(--c-muted); font-size: 16.5px; }
.ci-item a { color: var(--c-primary); font-weight: 600; }

.inquiry-form {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 34px;
}
.inquiry-form .form-control,
.inquiry-form .form-select {
  border: 1px solid var(--c-border);
  padding: 12px 16px;
  font-size: 16px;
  border-radius: 8px;
}
.inquiry-form .form-control:focus,
.inquiry-form .form-select:focus {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 4px rgba(47,163,220,.15);
}
.form-ok { color: #1B7A3E; font-weight: 600; margin: 14px 0 0; text-align: center; }

/* ---------- Footer ---------- */
.footer { background: var(--c-dark); color: rgba(255,255,255,.78); padding: 70px 0 0; font-size: 16px; }
.footer-logo { height: 64px; width: auto; margin-bottom: 18px; }
.footer-about { max-width: 340px; }
.footer-tit { color: #fff; font-size: 18px; font-weight: 700; margin-bottom: 18px; position: relative; padding-bottom: 10px; }
.footer-tit::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 34px; height: 3px;
  background: var(--c-accent);
  border-radius: 2px;
}
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-links li, .footer-contact li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,.72); transition: color .2s, padding-left .2s; }
.footer-links a:hover { color: var(--c-accent); padding-left: 5px; }
.footer-contact li { padding-left: 22px; position: relative; }
.footer-contact li::before {
  content: "";
  position: absolute; left: 0; top: 8px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c-accent);
}
.footer-contact a { color: rgba(255,255,255,.72); }
.footer-contact a:hover { color: var(--c-accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 50px;
  padding: 20px 0;
  text-align: center;
  font-size: 13.5px;
  color: rgba(255,255,255,.5);
}
.footer-bottom p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 575px) {
  .hero-overlay { background: linear-gradient(100deg, rgba(10,30,62,.94) 0%, rgba(14,58,124,.86) 55%, rgba(18,86,160,.7) 100%); }
}
@media (max-width: 991px) {
  .section { padding: 65px 0; }
  .main-nav .nav-link { padding: 9px 4px !important; }
  .btn-quote { display: inline-block; margin: 6px 0 12px; }
  .hero { min-height: 78vh; }
  .product-img img { height: 320px; }
  .equip-swiper-wrap, .cert-swiper-wrap, .factory-swiper-wrap, .testi-swiper-wrap, .gallery-swiper-wrap { padding: 0; }
  .swiper-button-prev, .swiper-button-next { display: none; }
  .scroll-box { height: 400px; }
  .inquiry-form { padding: 24px 18px; }
  .float-contact { right: 10px; bottom: 70px; }
}
