/* ============================================================
   National Robots — Corporate Website (Light Tech)
   Brand: Red (#E02020) + Black (#0F0F12) on Light (#FFFFFF / #F6F7F9)
   ============================================================ */

:root {
  --ink: #0f0f12;
  --ink-2: #1a1a1f;
  --ink-soft: #52525b;
  --muted: #6b7280;
  --red: #e02020;
  --red-dark: #b81717;
  --red-soft: #fdecec;
  --line: #e7e8ec;
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --bg-soft-2: #eef0f3;
  --white: #ffffff;

  --font-sans: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(15,15,18,0.04), 0 4px 12px rgba(15,15,18,0.05);
  --shadow-md: 0 8px 30px rgba(15,15,18,0.08);
  --shadow-lg: 0 20px 50px rgba(15,15,18,0.12);
}

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


html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.container-main { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- Accent utilities ---------- */
.red-text { color: var(--red); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px; height: 2px;
  background: var(--red);
  vertical-align: middle;
  margin-right: 10px;
}

/* ============================================================
   Header / Navigation
   ============================================================ */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 24px;
}

.logo-block { display: flex; align-items: center; flex-shrink: 0; }
.logo-block img { height: 46px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  position: relative;
  transition: color 0.2s;
  padding: 6px 2px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: width 0.25s;
  border-radius: 2px;
}

.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta {
  background: var(--red);
  color: #fff !important;
  padding: 11px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
}
.nav-cta:hover { background: var(--red-dark); }
.nav-cta::after { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-block;
  padding: 15px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
  cursor: pointer;
  border: 1.5px solid transparent;
}

.btn-red {
  background: var(--red);
  color: #fff;
}
.btn-red:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(224,32,32,0.28); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }

.btn-light {
  background: #fff;
  color: var(--ink);
}
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  background: var(--bg);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -20%; right: -10%;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(224,32,32,0.07), transparent 65%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding: 84px 0;
  max-width: 1200px !important;
  width: 100% !important;
  margin: 0 auto !important;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin: 16px 0 22px;
}

.hero p.lead {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 520px;
  margin-bottom: 34px;
}

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-visual {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.hero-visual .hero-video { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; display: block; }

.hero-badge {
  position: absolute;
  bottom: 22px; left: 22px;
  background: #fff;
  border-radius: 12px;
  padding: 12px 18px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-badge .dot { width: 10px; height: 10px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,0.18); }
.hero-badge .t { font-weight: 700; font-size: 0.88rem; }
.hero-badge .s { color: var(--muted); font-size: 0.76rem; }

/* ============================================================
   Stats band
   ============================================================ */
.stats-band {
  background: var(--ink);
  color: #fff;
  padding: 56px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat .num {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
}
.stat .num em { font-style: normal; color: #f87171; }
.stat .label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #a1a1aa;
  margin-top: 4px;
}

/* ============================================================
   Sections
   ============================================================ */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-soft); }

.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.5vw, 2.7rem); margin: 10px 0 16px; }
.section-head p { color: var(--muted); font-size: 1.06rem; }

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

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: #f0c6c6; }

.card-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  background: var(--red-soft);
  color: var(--red);
}
.card-icon svg { width: 26px; height: 26px; }

.card h3 { font-size: 1.28rem; margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Category / product cards ---------- */
.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.product-card .product-img { position: relative; height: 220px; overflow: hidden; }
.product-card .product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-card .product-img video { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-card .product-body { padding: 28px; }

.product-card .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  background: var(--red-soft);
  border-radius: 999px;
  padding: 5px 13px;
  margin-bottom: 14px;
}
.product-card h3 { font-size: 1.42rem; margin-bottom: 10px; }
.product-card p { color: var(--muted); font-size: 0.95rem; }

.feature-list { list-style: none; margin-top: 18px; }
.feature-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  color: var(--ink-soft);
  font-size: 0.94rem;
}
.feature-list li::before {
  content: "";
  position: absolute; left: 0; top: 8px;
  width: 12px; height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23e02020'%3E%3Cpath d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ---------- Icon row (small stat) ---------- */
.icon-feature { display: flex; gap: 16px; align-items: flex-start; }
.icon-feature .ic {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--red-soft);
  color: var(--red);
  display: flex; align-items: center; justify-content: center;
}
.icon-feature .ic svg { width: 22px; height: 22px; }
.icon-feature h4 { font-size: 1.04rem; margin-bottom: 4px; }
.icon-feature p { color: var(--muted); font-size: 0.88rem; }

/* ============================================================
   Testimonial / case quote
   ============================================================ */
.quote-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 36px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.quote-card .mark { color: var(--red); font-size: 2.4rem; line-height: 1; margin-bottom: 12px; }
.quote-card blockquote { font-size: 1.05rem; color: var(--ink-soft); flex: 1; margin-bottom: 22px; }
.quote-author { display: flex; align-items: center; gap: 14px; }
.quote-author .avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-soft-2);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--ink-soft);
  font-size: 1.05rem;
}
.quote-author .name { font-weight: 700; font-size: 0.95rem; }
.quote-author .role { color: var(--muted); font-size: 0.82rem; }

/* ============================================================
   Industry card (image top)
   ============================================================ */
.industry-card {
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  transition: transform 0.3s, box-shadow 0.3s;
}
.industry-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.industry-card .industry-img { height: 180px; overflow: hidden; }
.industry-card .industry-img img { width: 100%; height: 100%; object-fit: cover; }
.industry-card .industry-body { padding: 26px; }
.industry-card h3 { font-size: 1.28rem; margin-bottom: 10px; }
.industry-card p { color: var(--muted); font-size: 0.94rem; }

/* ============================================================
   Location / distribution
   ============================================================ */
.loc-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.loc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.loc-card .loc-img { height: 150px; overflow: hidden; border-radius: 8px; margin-bottom: 18px; }
.loc-card .loc-img img { width: 100%; height: 100%; object-fit: cover; }
.loc-card .city { font-size: 1.22rem; font-weight: 700; margin-bottom: 4px; }
.loc-card .role { color: var(--red); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; }
.loc-card p { color: var(--muted); font-size: 0.9rem; }
.loc-card.hq { border-color: var(--red); background: linear-gradient(135deg, #fff, var(--red-soft)); }

/* ============================================================
   Contact
   ============================================================ */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--ink);
  font-size: 1rem;
  font-family: var(--font-sans);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(224,32,32,0.12);
}
.field textarea { resize: vertical; min-height: 140px; }
.form-note { color: var(--muted); font-size: 0.82rem; margin-top: 14px; }

.contact-info-list { list-style: none; margin-top: 8px; }
.contact-info-list li { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.contact-info-list .ic {
  flex-shrink: 0; width: 44px; height: 44px;
  border-radius: 10px; background: var(--red-soft); color: var(--red);
  display: flex; align-items: center; justify-content: center;
}
.contact-info-list .ic svg { width: 20px; height: 20px; }
.contact-info-list .t { font-weight: 700; font-size: 0.95rem; }
.contact-info-list .s { color: var(--muted); font-size: 0.9rem; }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band {
  background: linear-gradient(135deg, var(--ink), #2a0a0a);
  color: #fff;
  border-radius: 22px;
  padding: 60px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute; top: -50%; right: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(224,32,32,0.35), transparent 65%);
}
.cta-band h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 14px; position: relative; z-index: 1; }
.cta-band p { color: #c7c7cd; max-width: 540px; margin: 0 auto 28px; position: relative; z-index: 1; }
.cta-band .btn { position: relative; z-index: 1; }

/* ============================================================
   Page hero (inner pages)
   ============================================================ */
.page-hero {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding: 72px 0 56px;
}
.page-hero h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); margin: 12px 0 16px; }
.page-hero p { color: var(--ink-soft); max-width: 640px; font-size: 1.08rem; }

/* ============================================================
   Footer
   ============================================================ */
footer.site-footer {
  background: var(--ink);
  color: #fff;
  padding: 70px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding-bottom: 50px;
  padding-top: 0px !important;
  align-items: start;
}
.footer-grid h4 { font-size: 0.95rem; margin-bottom: 18px; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 11px; }
.footer-grid a, .footer-grid li { color: #a1a1aa; font-size: 0.9rem; transition: color 0.2s; }
.footer-grid a:hover { color: #f87171; }
.footer-logo { background: #fff; padding: 8px 12px; border-radius: 8px; display: inline-block; margin-bottom: 18px; }
.footer-logo img { height: 40px; width: auto; }
.footer-desc { color: #a1a1aa; font-size: 0.9rem; max-width: 280px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #71717a;
}

/* ============================================================
   Responsive
   ============================================================ */
.is-visible { opacity: 1 !important; transform: none !important; }

@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .contact-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .nav-links {
    position: fixed;
    top: 74px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 24px;
    gap: 18px;
    transform: translateY(-120%);
    transition: transform 0.3s;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: flex; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .cta-band { padding: 44px 24px; }
  .stats-grid { gap: 20px; }
  .stat .num { font-size: 2.2rem; }
}
