/* ============================================================
   NovaTrade Template - Global B2B Showcase Site
   Design system: light theme, navy + amber, professional B2B
   ============================================================ */
:root {
  --navy: #0a2540;
  --navy-2: #10365f;
  --navy-3: #164677;
  --accent: #f59e0b;
  --accent-d: #d97706;
  --ink: #1e293b;
  --muted: #64748b;
  --bg: #ffffff;
  --bg-2: #f5f7fb;
  --line: #e2e8f0;
  --green: #25d366;
  --green-d: #1da851;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(10, 37, 64, 0.08);
  --shadow-lg: 0 24px 60px rgba(10, 37, 64, 0.16);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

.container { width: min(1180px, 92%); margin: 0 auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--navy); letter-spacing: -0.3px; }
.logo .logo-mark { width: 34px; height: 34px; flex: none; }
.logo small { display: block; font-size: 10px; font-weight: 600; color: var(--muted); letter-spacing: 1.5px; text-transform: uppercase; line-height: 1; margin-top: 3px; }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  padding: 9px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover { background: var(--bg-2); color: var(--navy); }
.main-nav a.active { background: rgba(245, 158, 11, 0.12); color: var(--accent-d); }

.header-cta { display: flex; align-items: center; gap: 12px; }

/* Mobile menu */
.menu-toggle { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); align-items: center; justify-content: center; }
.menu-toggle svg { width: 22px; height: 22px; stroke: var(--navy); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(245, 158, 11, 0.35); }
.btn-primary:hover { background: var(--accent-d); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); }
.btn-outline { border: 2px solid var(--line); color: var(--navy); background: #fff; }
.btn-outline:hover { border-color: var(--navy); background: var(--bg-2); }
.btn-wa { background: var(--green); color: #fff; box-shadow: 0 6px 18px rgba(37, 211, 102, 0.3); }
.btn-wa:hover { background: var(--green-d); }
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 10px; }
.btn-lg { padding: 15px 30px; font-size: 16px; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 55%, var(--navy-3) 100%); color: #fff; overflow: hidden; position: relative; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding: 84px 0 96px;
  position: relative;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffd479;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.6px;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.14; font-weight: 800; letter-spacing: -1px; margin-bottom: 18px; }
.hero h1 .hl { color: var(--accent); }
.hero p.lead { font-size: 18px; color: rgba(255, 255, 255, 0.78); max-width: 540px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual { position: relative; }
.hero-visual svg { width: 100%; height: auto; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.35)); }

.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 26px 0 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
}
.trust-item { text-align: center; }
.trust-item b { display: block; font-size: 28px; font-weight: 800; color: var(--accent); }
.trust-item span { font-size: 13px; color: rgba(255, 255, 255, 0.65); letter-spacing: 0.4px; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section.alt { background: var(--bg-2); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head .kicker { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--accent-d); margin-bottom: 12px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); color: var(--navy); letter-spacing: -0.6px; line-height: 1.2; margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 16px; }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-grid.col-3 { grid-template-columns: repeat(3, 1fr); }
.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.product-thumb { height: 170px; display: flex; align-items: center; justify-content: center; position: relative; }
.product-thumb svg { width: 74px; height: 74px; }
.product-thumb .tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 4px 10px;
  border-radius: 999px;
}
.product-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { font-size: 16.5px; color: var(--navy); margin-bottom: 7px; line-height: 1.35; }
.product-body p { font-size: 13.5px; color: var(--muted); flex: 1; margin-bottom: 12px; }
.product-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.product-meta b { color: var(--navy); }
.product-actions { display: flex; gap: 8px; }
.product-actions .btn { flex: 1; }

/* Category filter */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 40px; }
.filter-bar button {
  padding: 9px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  font-weight: 700;
  font-size: 14px;
  color: var(--muted);
  transition: all 0.2s;
}
.filter-bar button:hover { border-color: var(--navy); color: var(--navy); }
.filter-bar button.active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- Feature cards ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; transition: transform 0.2s, box-shadow 0.25s; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.06));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.feature-icon svg { width: 26px; height: 26px; stroke: var(--accent-d); }
.feature-card h3 { font-size: 17px; color: var(--navy); margin-bottom: 9px; }
.feature-card p { font-size: 14px; color: var(--muted); }

/* ---------- Process steps ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: step; }
.step-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 18px; text-align: center; position: relative; }
.step-num {
  width: 40px;
  height: 40px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--accent);
  font-weight: 800;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-card h3 { font-size: 15.5px; color: var(--navy); margin-bottom: 7px; }
.step-card p { font-size: 13px; color: var(--muted); }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testi-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; }
.testi-stars { color: var(--accent); font-size: 15px; letter-spacing: 2px; margin-bottom: 14px; }
.testi-card p { font-size: 14.5px; color: var(--ink); margin-bottom: 18px; }
.testi-who { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-2), var(--navy-3));
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex: none;
}
.testi-who b { display: block; font-size: 14px; color: var(--navy); line-height: 1.3; }
.testi-who span { font-size: 12.5px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-3) 100%); border-radius: 20px; padding: 56px 48px; display: flex; align-items: center; justify-content: space-between; gap: 30px; color: #fff; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(24px, 3vw, 34px); letter-spacing: -0.5px; margin-bottom: 10px; }
.cta-band p { color: rgba(255, 255, 255, 0.72); font-size: 16px; max-width: 520px; }
.cta-band .btn-wa { padding: 15px 30px; font-size: 16px; }

/* ---------- About page ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.about-grid h2 { font-size: clamp(24px, 3vw, 34px); color: var(--navy); margin-bottom: 16px; letter-spacing: -0.5px; }
.about-grid p { color: var(--muted); font-size: 15.5px; margin-bottom: 14px; }
.about-visual { border-radius: 20px; background: linear-gradient(135deg, var(--navy-2), var(--navy-3)); min-height: 360px; display: flex; align-items: center; justify-content: center; padding: 30px; }
.about-visual svg { width: 100%; max-width: 380px; }

.cert-row { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.cert-badge {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 26px;
  text-align: center;
  min-width: 130px;
}
.cert-badge b { display: block; font-size: 17px; color: var(--navy); }
.cert-badge span { font-size: 12px; color: var(--muted); letter-spacing: 0.5px; }

.timeline { position: relative; max-width: 720px; margin: 0 auto; padding-left: 32px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline-item { position: relative; padding-bottom: 34px; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -31px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--accent);
}
.timeline-item .year { font-weight: 800; color: var(--accent-d); font-size: 15px; margin-bottom: 4px; }
.timeline-item h3 { font-size: 17px; color: var(--navy); margin-bottom: 6px; }
.timeline-item p { font-size: 14.5px; color: var(--muted); }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 36px; align-items: start; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 32px; box-shadow: var(--shadow); }
.contact-card h2 { font-size: 22px; color: var(--navy); margin-bottom: 6px; }
.contact-card > p { font-size: 14px; color: var(--muted); margin-bottom: 24px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 700; color: var(--navy); margin-bottom: 7px; }
.field label span { color: #dc2626; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font: inherit;
  font-size: 14.5px;
  color: var(--ink);
  background: var(--bg-2);
  transition: border-color 0.2s, background 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #fff; }
.field textarea { resize: vertical; min-height: 110px; }

.info-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.info-item:last-child { border-bottom: none; }
.info-icon { width: 42px; height: 42px; border-radius: 11px; background: rgba(245, 158, 11, 0.12); display: flex; align-items: center; justify-content: center; flex: none; }
.info-icon svg { width: 21px; height: 21px; stroke: var(--accent-d); }
.info-item b { display: block; font-size: 14.5px; color: var(--navy); margin-bottom: 3px; }
.info-item span, .info-item a { font-size: 14px; color: var(--muted); word-break: break-all; }
.info-item a:hover { color: var(--accent-d); }

/* FAQ */
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.faq-q { width: 100%; text-align: left; padding: 18px 22px; font-weight: 700; font-size: 15px; color: var(--navy); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-q::after { content: "+"; font-size: 22px; color: var(--accent-d); font-weight: 400; transition: transform 0.2s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a p { padding: 0 22px 18px; font-size: 14px; color: var(--muted); }
.faq-item.open .faq-a { max-height: 220px; }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 25, 47, 0.55);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.show { display: flex; }
.modal {
  background: #fff;
  border-radius: 18px;
  max-width: 680px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 34px 34px 30px;
  position: relative;
  animation: modalIn 0.25s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal-close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; background: var(--bg-2); font-size: 20px; color: var(--muted); display: flex; align-items: center; justify-content: center; }
.modal-close:hover { background: var(--line); color: var(--navy); }
.modal-thumb { height: 200px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 22px; }
.modal-thumb svg { width: 90px; height: 90px; }
.modal h2 { font-size: 23px; color: var(--navy); margin-bottom: 8px; }
.modal .modal-desc { font-size: 14.5px; color: var(--muted); margin-bottom: 20px; }
.spec-table { width: 100%; border-collapse: collapse; margin-bottom: 24px; font-size: 14px; }
.spec-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); }
.spec-table td:first-child { font-weight: 700; color: var(--navy); width: 38%; }
.spec-table td:last-child { color: var(--muted); }
.modal-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.modal-actions .btn { flex: 1; min-width: 180px; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45);
  z-index: 150;
  transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
.wa-float::after {
  content: "Chat with us";
  position: absolute;
  right: 68px;
  background: var(--navy);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.wa-float:hover::after { opacity: 1; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.72); margin-top: 84px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding: 56px 0 40px; }
.footer-top h4 { color: #fff; font-size: 15px; margin-bottom: 16px; letter-spacing: 0.4px; }
.footer-top p, .footer-top a { font-size: 14px; line-height: 2; }
.footer-top a:hover { color: var(--accent); }
.footer-logo { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 19px; margin-bottom: 14px; }
.footer-logo svg { width: 30px; height: 30px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 20px 0; display: flex; justify-content: space-between; align-items: center; font-size: 13px; flex-wrap: wrap; gap: 10px; }
.footer-bottom a { color: rgba(255, 255, 255, 0.55); margin-left: 18px; }
.footer-bottom a:hover { color: var(--accent); }

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

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; padding: 60px 0 50px; }
  .hero-visual { max-width: 420px; margin: 0 auto; }
  .trust-bar { grid-template-columns: repeat(2, 1fr); gap: 20px 8px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .product-grid, .product-grid.col-3 { grid-template-columns: repeat(2, 1fr); }
  .main-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 4%;
    box-shadow: var(--shadow-lg);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 16px; }
  .header-cta .btn { display: none; }
  .menu-toggle { display: flex; }
}
@media (max-width: 560px) {
  .product-grid, .product-grid.col-3 { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 26px; }
  .footer-top { grid-template-columns: 1fr; gap: 26px; }
  .section { padding: 60px 0; }
}
