/* ============================================================
   Custom CSS — Sino Howo Truck Website
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: #1e293b;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #f59e0b; border-radius: 3px; }

/* ── Dropdown ─────────────────────────────────────────────── */
.dropdown-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease;
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ── Product card ─────────────────────────────────────────── */
.product-card { overflow: hidden; }
.product-card .card-img { transition: transform 0.45s cubic-bezier(.4,0,.2,1); }
.product-card:hover .card-img { transform: scale(1.07); }
.product-card .card-overlay {
  opacity: 0;
  transition: opacity 0.3s ease;
}
.product-card:hover .card-overlay { opacity: 1; }

/* ── Scroll reveal ────────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
[data-reveal="left"]  { transform: translateX(-28px); }
[data-reveal="right"] { transform: translateX(28px); }
[data-reveal="scale"] { transform: scale(0.94); }
[data-reveal].revealed {
  opacity: 1;
  transform: none;
}

/* ── Section heading accent ───────────────────────────────── */
.section-badge {
  display: inline-block;
  background: #f59e0b;
  color: #0d1b2a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 2px;
  margin-bottom: 12px;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: #0d1b2a;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform-origin: center;
  animation: heroZoom 14s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(4, 8, 15, 0.88) 0%,
    rgba(13, 27, 42, 0.82) 50%,
    rgba(4, 8, 15, 0.75) 100%
  );
}
.hero-content { position: relative; z-index: 10; }

/* ── Stat strip ───────────────────────────────────────────── */
.stat-strip { background: #f59e0b; }

/* ── Category pill ────────────────────────────────────────── */
.cat-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: #f59e0b;
  color: #0d1b2a;
  padding: 2px 8px;
  border-radius: 2px;
}

/* ── News card ────────────────────────────────────────────── */
.news-card:hover .news-img { transform: scale(1.05); }
.news-img { transition: transform 0.4s ease; }

/* ── Page hero (inner pages) ──────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, #0d1b2a 0%, #152d50 100%);
  padding: 80px 0 60px;
  margin-top: 100px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  right: -60px;
  bottom: -40px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(245,158,11,0.12) 0%, transparent 70%);
  border-radius: 50%;
}

/* ── Form inputs ──────────────────────────────────────────── */
.form-input {
  width: 100%;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 6px;
  padding: 11px 14px;
  font-size: 14px;
  font-family: inherit;
  color: #1e293b;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}
.form-input:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245,158,11,0.12);
}
.form-input::placeholder { color: #94a3b8; }

/* ── Button styles ────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f59e0b;
  color: #0d1b2a;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 28px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  text-decoration: none;
  font-family: inherit;
}
.btn-primary:hover { background: #fbbf24; transform: translateY(-1px); }
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 11px 26px;
  border-radius: 4px;
  border: 1.5px solid rgba(255,255,255,0.4);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  text-decoration: none;
}
.btn-outline:hover { border-color: #f59e0b; color: #f59e0b; }

/* ── Divider ──────────────────────────────────────────────── */
.divider-amber {
  width: 48px;
  height: 3px;
  background: #f59e0b;
  border-radius: 2px;
  margin: 12px 0;
}

/* ── Tag chip ─────────────────────────────────────────────── */
.tag-chip {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  background: rgba(245,158,11,0.1);
  color: #b45309;
  border: 1px solid rgba(245,158,11,0.25);
  padding: 2px 10px;
  border-radius: 20px;
}

/* ── Placeholder product grad ─────────────────────────────── */
.prod-grad-1 { background: linear-gradient(135deg, #0f2744 0%, #0d1b2a 100%); }
.prod-grad-2 { background: linear-gradient(135deg, #1a3a4a 0%, #0d1b2a 100%); }
.prod-grad-3 { background: linear-gradient(135deg, #1e2d4d 0%, #0d1b2a 100%); }
.prod-grad-4 { background: linear-gradient(135deg, #0f3330 0%, #0d1b2a 100%); }

/* ── Testimonial ──────────────────────────────────────────── */
.testimonial-card {
  border-left: 3px solid #f59e0b;
}

/* ── Map dots ─────────────────────────────────────────────── */
@keyframes ping {
  75%, 100% { transform: scale(2); opacity: 0; }
}
.ping { animation: ping 1.5s cubic-bezier(0,0,.2,1) infinite; }

/* ── Back to top ──────────────────────────────────────────── */
#back-to-top {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
#back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}
