/* ============================================================
   WOKAITE - Electric Hoist & EOT Crane Manufacturer
   style.css - responsive, mobile-first
   ============================================================ */

:root {
  --orange: #fd6f01;
  --amber: #eeb11b;
  --dark: #191919;
  --text: #333;
  --muted: #666;
  --light: #edebe6;
  --white: #fff;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0, 0, 0, .08);
  --container: 1400px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .3s; }
ul { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

.logo img { height: 52px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-list {
  display: flex;
  gap: 26px;
}

.nav-list a {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 15px;
  letter-spacing: .5px;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] { color: var(--orange); border-bottom-color: var(--orange); }

.nav-cta { display: flex; align-items: center; gap: 18px; }

.btn-quote {
  background: var(--orange);
  color: #fff;
  padding: 10px 22px;
  border-radius: 4px;
  font-weight: 700;
  white-space: nowrap;
}
.btn-quote:hover { background: #d95f00; color: #fff; }

.header-mail { font-size: 14px; color: var(--muted); }
.header-mail:hover { color: var(--orange); }

/* hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  width: 26px;
  height: 3px;
  background: var(--dark);
  border-radius: 2px;
  transition: .3s;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------------- Category nav ---------------- */
.cat-nav { background: var(--light); border-bottom: 1px solid #ddd; }
.cat-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 30px;
  padding: 0 20px;
}
.cat-nav a {
  display: block;
  font-weight: 700;
  font-size: 17px;
  line-height: 56px;
  color: #222;
}
.cat-nav a:hover { color: var(--orange); }

/* ---------------- Hero ---------------- */
.hero { position: relative; background: #000; }

.slider { position: relative; overflow: hidden; }

.slide { display: none; }
.slide.is-active { display: block; animation: fade .8s ease; }
.slide img { width: 100%; max-height: 560px; object-fit: cover; }

@keyframes fade { from { opacity: .4; } to { opacity: 1; } }

.slider-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}
.slider-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, .55);
  cursor: pointer;
}
.slider-dots button.is-active { background: var(--amber); }

.hero-caption {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  z-index: 4;
  pointer-events: none;
}

.hero-caption h1 {
  color: #fff;
  font-size: clamp(28px, 4vw, 48px);
  text-shadow: 0 2px 10px rgba(0, 0, 0, .65);
  line-height: 1.2;
}

.hero-caption p {
  color: #fff;
  font-size: clamp(15px, 1.8vw, 20px);
  margin-top: 10px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .65);
  max-width: 720px;
}

/* ---------------- Sections ---------------- */
.section { padding: 64px 0; }
.section-title {
  text-align: center;
  font-size: 30px;
  margin-bottom: 40px;
  position: relative;
}
.section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  background: var(--orange);
  margin: 12px auto 0;
  border-radius: 2px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.product-card {
  background: var(--white);
  border: 1px solid #eee;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.product-card h3 {
  font-size: 17px;
  text-align: center;
  padding: 14px 12px;
}
.product-card a:hover h3 { color: var(--orange); }

.latest { background: var(--light); }

/* ---------------- Why choose ---------------- */
.why { background: var(--light); }
.why-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.why-text h2 { font-size: 28px; margin-bottom: 24px; color: #444; }
.why-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  color: var(--muted);
  font-size: 17px;
}
.why-list li { display: flex; align-items: center; gap: 12px; }
.why-image img { border-radius: var(--radius); width: 100%; }

/* ---------------- Quote ---------------- */
.quote-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}
.quote-avatar { border-radius: 50%; }
.quote-inner blockquote p { font-size: 19px; color: var(--muted); max-width: 780px; }
.quote-inner cite { display: block; margin-top: 10px; font-size: 14px; color: #aaa; font-style: normal; }

/* ---------------- About + News ---------------- */
.about-news { background: var(--white); }
.an-grid {
  display: grid;
  grid-template-columns: 56fr 42fr;
  gap: 48px;
}
.an-about p { margin-bottom: 14px; color: var(--muted); }
.btn-more {
  display: inline-block;
  margin-top: 10px;
  background: var(--orange);
  color: #fff;
  padding: 12px 34px;
  border-radius: 4px;
  font-weight: 700;
}
.btn-more:hover { background: #d95f00; color: #fff; }

.an-news .news-item {
  border-left: 3px solid var(--orange);
  padding: 6px 0 6px 18px;
  margin-bottom: 30px;
}
.an-news h3 { font-size: 19px; margin-bottom: 8px; }
.an-news h3 a:hover { color: var(--orange); }
.an-news p { color: #555; font-size: 15px; }
.news-more { display: inline-block; margin-top: 8px; font-weight: 700; color: var(--orange); }
.news-more:hover { text-decoration: underline; }

/* ---------------- CTA ---------------- */
.cta { background: var(--dark); color: #fff; padding: 70px 0; }
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta h2 { font-size: 26px; margin-bottom: 8px; max-width: 760px; }
.cta p { color: #ccc; }
.btn-cta {
  background: var(--amber);
  color: #000;
  padding: 20px 48px;
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
}
.btn-cta:hover { background: #000; color: #fff; outline: 1px solid #555; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--white); color: var(--muted); }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
  padding: 56px 20px;
}
.f-col h2 { font-size: 18px; color: #555; margin-bottom: 18px; }
.f-news { margin-bottom: 20px; }
.f-news h3 { font-size: 16px; color: #333; margin-bottom: 6px; }
.f-news h3 a:hover { color: var(--orange); }
.f-news p { font-size: 14px; }
.f-news p a, .f-col a { color: var(--orange); }
.f-col address { font-style: normal; font-size: 14px; line-height: 1.9; }

/* customer service rows */
.cs-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  font-size: 14px;
}
.cs-time { line-height: 1.5; min-width: 90px; }
.cs-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--muted);
}
.cs-icon img { width: 48px; height: 48px; object-fit: contain; }
.cs-icon:hover { color: var(--orange); }
.f-madein { margin-top: 6px; font-weight: 700; }
.f-madein a { color: var(--orange); }

/* social icons grid */
.social {
  display: grid;
  grid-template-columns: repeat(3, 60px);
  gap: 14px;
}
.social img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  transition: transform .3s;
}
.social a:hover img { transform: scale(1.1); }

.footer-bottom {
  background: #8e8a80;
  color: #fff;
  text-align: center;
  padding: 18px 20px;
  font-size: 14px;
}
.footer-bottom a { color: #fff; text-decoration: underline; }

/* ---------------- Floating quote button ---------------- */
.float-quote {
  position: fixed;
  right: 22px;
  bottom: 26px;
  z-index: 90;
  background: var(--orange);
  color: #fff;
  border: 0;
  border-radius: 30px;
  padding: 14px 26px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background .3s, transform .3s;
}
.float-quote:hover { background: #d95f00; transform: translateY(-2px); }

/* ---------------- Modal ---------------- */
.modal { position: fixed; inset: 0; z-index: 999; display: flex; align-items: center; justify-content: center; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); }
.modal-box {
  position: relative;
  background: #fff;
  width: min(500px, calc(100% - 40px));
  padding: 36px;
  border-radius: 10px;
  color: var(--muted);
}
.modal-box h2 { color: #333; margin-bottom: 6px; }
.modal-box p { margin-bottom: 20px; }
.modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 30px;
  border: 0;
  background: none;
  cursor: pointer;
  color: #888;
}
.modal-box label { display: block; margin: 12px 0 5px; font-size: 14px; }
.modal-box input, .modal-box textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  font: inherit;
}
.btn-submit {
  margin-top: 22px;
  width: 100%;
  padding: 14px;
  background: #ff6600;
  color: #fff;
  border: 0;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background .3s;
}
.btn-submit:hover { background: #d95400; }
.btn-submit[disabled] { opacity: .6; cursor: wait; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .an-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .menu-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 24px;
    box-shadow: var(--shadow);
    display: none;
  }
  .main-nav.open { display: flex; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a { display: block; padding: 14px 0; border-bottom: 1px solid #f0f0f0; }
  .nav-cta { flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 16px; }

  .why-inner { grid-template-columns: 1fr; }
  .hero-caption { position: static; padding: 20px; background: #111; }
  .hero-caption h1, .hero-caption p { text-shadow: none; }
}

@media (max-width: 600px) {
  .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cat-nav ul { gap: 0; }
  .cat-nav li { width: 50%; }
  .cat-nav a { font-size: 15px; line-height: 42px; }
  .section { padding: 44px 0; }
  .why-list { grid-template-columns: 1fr; }
  .cta h2 { font-size: 21px; }
  .btn-cta { padding: 14px 30px; font-size: 16px; }
}
