/* ============================================================
   NTM Automation — design system
   Derived from logo: monochrome blue #0171BC, geometric,
   minimalist, technical.
   ============================================================ */

:root {
  --blue: #0171BC;
  --blue-600: #0162A3;
  --blue-700: #01558F;
  --navy: #0B2540;
  --navy-2: #102F52;
  --blue-100: #E3F0FA;
  --blue-50: #F2F8FD;
  --ink: #16283A;
  --gray: #5A6B7C;
  --line: #D9E6F1;
  --white: #FFFFFF;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(9, 40, 70, 0.08);
  --shadow-lg: 0 18px 50px rgba(9, 40, 70, 0.14);
  --font: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-700); }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  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;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img.logo { height: 40px; width: auto; }
.brand .brand-name { font-weight: 800; font-size: 22px; color: var(--navy); letter-spacing: -0.01em; }
.brand .brand-name span { color: var(--blue); }

.main-nav ul { display: flex; gap: 6px; list-style: none; }
.main-nav a {
  display: block; padding: 8px 14px; border-radius: 8px;
  font-size: 14.5px; font-weight: 600; color: var(--ink);
}
.main-nav a:hover { background: var(--blue-50); color: var(--blue-700); }
.main-nav a.active { background: var(--blue-100); color: var(--blue-700); }
.nav-cta {
  background: var(--blue); color: #fff !important;
  box-shadow: 0 4px 14px rgba(1,113,188,0.35);
}
.nav-cta:hover { background: var(--blue-700); }

.burger { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(60% 90% at 85% 10%, rgba(1,113,188,0.10), transparent 60%),
    linear-gradient(180deg, #F4F9FD 0%, #FFFFFF 100%);
  overflow: hidden;
}
.hero-inner {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px;
  padding: 84px 0 88px; align-items: center;
}
.overline {
  display: inline-block; font-size: 12px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue);
  background: var(--blue-100); padding: 5px 12px; border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.08; font-weight: 800; color: var(--navy);
  letter-spacing: -0.02em; margin-bottom: 20px;
}
.hero h1 .accent { color: var(--blue); }
.hero p.lead { font-size: 17.5px; color: var(--gray); max-width: 520px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 10px;
  font-weight: 700; font-size: 15px; cursor: pointer;
  border: 2px solid transparent; transition: all 0.15s ease;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 20px rgba(1,113,188,0.35); }
.btn-primary:hover { background: var(--blue-700); color: #fff; transform: translateY(-1px); }
.btn-outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-outline:hover { background: var(--blue-50); color: var(--blue-700); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); color: #fff; }

/* Hero visual — large NTM logo with slogan */
.hero-visual { display: flex; justify-content: center; align-items: center; }
.hero-logo { text-align: center; }
.hero-logo img {
  width: 300px; height: auto; display: block; margin: 0 auto;
  filter: drop-shadow(0 12px 32px rgba(1,113,188,0.30));
}
.hero-slogan {
  display: inline-block; margin-top: 22px; font-size: 13px; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue);
  background: var(--blue-100); padding: 7px 16px; border-radius: 999px;
}

/* ---------- Section scaffolding ---------- */
.section { padding: 84px 0; }
.section.soft { background: var(--blue-50); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 {
  font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; color: var(--navy);
  letter-spacing: -0.015em; line-height: 1.15; margin-top: 12px;
}
.section-head p { color: var(--gray); margin-top: 12px; font-size: 16px; }

/* Anchor offset so jumps land below the sticky header */
.section-head[id] { scroll-margin-top: 110px; }

/* ---------- Product category summary grid ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; display: flex; flex-direction: column;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.cat-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--line);
}
.cat-img img {
  width: 100%; height: 100%; object-fit: contain; display: block;
  transition: transform 0.25s ease;
}
.cat-card:hover .cat-img img { transform: scale(1.05); }
.cat-card:hover {
  transform: translateY(-3px); box-shadow: var(--shadow);
  border-color: var(--blue);
}
.cat-num {
  font-size: 12px; font-weight: 800; letter-spacing: 0.12em; color: var(--blue);
}
.cat-name { font-size: 16.5px; font-weight: 700; color: var(--navy); }
.cat-count { font-size: 13px; color: var(--gray); }
.cat-num, .cat-name, .cat-count { margin: 0 22px; }
.cat-num { margin-top: 16px; }
.cat-name { margin-top: 3px; }
.cat-count { margin-bottom: 16px; }
@media (max-width: 900px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cat-grid { grid-template-columns: 1fr; } }

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

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .icon {
  width: 46px; height: 46px; border-radius: 10px; background: var(--blue-100);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
  color: var(--blue);
}
.card h3 { font-size: 17.5px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.mv-card h3 { font-size: 26px; }
.card p { font-size: 14.5px; color: var(--gray); }
.card ul { list-style: none; margin-top: 10px; }
.card ul li {
  font-size: 13.5px; color: var(--gray); padding: 3px 0 3px 18px; position: relative;
}
.card ul li::before {
  content: ""; position: absolute; left: 2px; top: 10px;
  width: 7px; height: 7px; background: var(--blue); transform: rotate(45deg);
}
.card .link-more { display: inline-block; margin-top: 14px; font-weight: 700; font-size: 14px; }

/* ---------- Product photo cards ---------- */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px; margin-bottom: 40px;
}
.prod-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.prod-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.prod-card .ph {
  background: #fff; aspect-ratio: 4 / 3; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.prod-card .ph img { width: 100%; height: 100%; object-fit: contain; display: block; }
.prod-card .cap { padding: 10px 12px 12px; border-top: 1px solid var(--line); }
.prod-card .cap h3 { font-size: 13.5px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.prod-card .cap p { font-size: 12.5px; color: var(--gray); }
.prod-card .chips { gap: 6px; margin-top: 8px; }
@media (max-width: 560px) { .prod-grid { gap: 10px; } .prod-card .cap { padding: 8px 10px 10px; } .prod-card .cap h3 { font-size: 12.5px; } }

/* ---------- Chips / tags ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip {
  font-size: 12.5px; font-weight: 600; color: var(--blue-700);
  background: var(--blue-50); border: 1px solid var(--blue-100);
  padding: 4px 11px; border-radius: 999px;
  display: inline-flex; align-items: center;
}
/* Brand logo chips on product cards */
.chip:has(img) {
  background: #fff; padding: 4px 8px; border-color: var(--line);
  line-height: 0;
}
.chip img { height: 14px; width: auto; max-width: 80px; object-fit: contain; display: block; }

/* ---------- Brand logos strip ---------- */
.brand-strip {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 14px; margin-bottom: 20px;
}
.brand-logo {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; display: flex; align-items: center; justify-content: center;
  min-height: 80px; transition: box-shadow 0.15s ease;
}
.brand-logo:hover { box-shadow: var(--shadow); }
.brand-logo img { max-height: 42px; width: auto; max-width: 100%; object-fit: contain; }

/* ---------- Brand logo marquee (homepage slideshow) ---------- */
.brand-marquee { padding: 70px 0; background: var(--blue-50); }
.brand-marquee .section-head { margin-bottom: 36px; }
.marquee {
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 22px;
  width: max-content;
  animation: marquee-scroll 40s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track .brand-logo {
  flex: 0 0 auto;
  width: 150px;
  min-height: 84px;
  margin-right: 22px;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; }
}

/* ---------- Stat numbers ---------- */
.stat {
  font-size: 44px; font-weight: 800; color: var(--blue); letter-spacing: -0.02em;
  line-height: 1; margin-bottom: 10px;
}
.card.center { text-align: center; }

/* ---------- Service / solution rows ---------- */
.service-row {
  display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start;
}
.service-row .sicon {
  width: 56px; height: 56px; border-radius: 14px; background: var(--navy);
  color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(11,37,64,0.25);
}
.service-row h3 { font-size: 18px; font-weight: 700; color: var(--navy); }
.service-row p { color: var(--gray); font-size: 14.5px; margin-top: 4px; }

.solution-panel {
  background: linear-gradient(160deg, var(--navy), var(--navy-2));
  color: #fff; border-radius: 16px; padding: 34px; position: relative; overflow: hidden;
}
.solution-panel::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px;
  border: 3px solid rgba(255,255,255,0.14); transform: rotate(45deg); border-radius: 8px;
}
.solution-panel h3 { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.solution-panel p { color: #B9CFE4; font-size: 14.5px; }
.solution-panel .chip { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: #DFEFFF; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, #0171BC, #01558F);
  border-radius: 18px; padding: 52px 48px; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; right: -50px; bottom: -80px; width: 220px; height: 220px;
  border: 3px solid rgba(255,255,255,0.18); transform: rotate(45deg); border-radius: 12px;
}
.cta-band h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; letter-spacing: -0.01em; }
.cta-band p { opacity: 0.85; margin-top: 6px; font-size: 15px; }
.cta-band .btn { background: #fff; color: var(--blue-700); }
.cta-band .btn:hover { background: var(--blue-50); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(160deg, #0B2540 0%, #01558F 100%);
  color: #fff; padding: 64px 0 60px; position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; right: -70px; top: -70px; width: 260px; height: 260px;
  border: 3px solid rgba(255,255,255,0.12); transform: rotate(45deg); border-radius: 10px;
}
.page-hero .overline { background: rgba(255,255,255,0.14); color: #BFE0F8; }
.page-hero h1 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; letter-spacing: -0.02em; margin-top: 14px; }
.page-hero p { color: #C3D9EC; margin-top: 12px; max-width: 620px; font-size: 16px; }
.page-hero .crumbs { font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: #8FB8D8; margin-bottom: 4px; }

/* Page hero with side media */
.hero-flex {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}
.hero-media img {
  display: block; width: 100%; border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.15);
}

/* ---------- Service card photos ---------- */
.card:has(.svc-img) {
  padding: 0;
  overflow: hidden;
}
.svc-img {
  aspect-ratio: 1024 / 724;
  overflow: hidden;
  background: var(--blue-50);
  border-bottom: 1px solid var(--line);
}
.svc-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.3s ease;
}
.card:hover .svc-img img { transform: scale(1.04); }
.card:has(.svc-img) .service-row { padding: 18px 26px 26px; }

/* ---------- Team photo (why section) ---------- */
.why-media img {
  display: block; width: 100%; border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- CTA band ---------- */

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px;
  font: inherit; font-size: 14.5px; background: var(--white); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(1,113,188,0.15);
}
.field textarea { resize: vertical; min-height: 120px; }

.contact-info-card { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 30px; }
.contact-info-card h3 { font-size: 19px; font-weight: 800; margin-bottom: 6px; }
.contact-info-card p.sub { color: #9DBBD6; font-size: 14px; margin-bottom: 22px; }
.info-row { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.1); font-size: 14.5px; }
.info-row .ico { color: #7FB8E4; flex-shrink: 0; }
.info-row .lbl { color: #9DBBD6; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; display: block; }
.info-row .val { color: #EAF3FB; font-weight: 600; }

/* ---------- WhatsApp floating bubble ---------- */
.wa-bubble {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0;
  background: #25D366;
  color: #fff;
  border-radius: 999px;
  padding: 14px;
  box-shadow: 0 8px 26px rgba(18, 140, 126, 0.45);
  transition: all 0.18s ease;
  text-decoration: none;
}
.wa-bubble:hover {
  background: #1EBE5D;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(18, 140, 126, 0.55);
}
.wa-bubble svg {
  width: 30px;
  height: 30px;
  display: block;
  flex-shrink: 0;
}
.wa-bubble .wa-label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
  transition: max-width 0.25s ease, margin-right 0.25s ease;
}
.wa-bubble:hover .wa-label {
  max-width: 220px;
  margin-right: 10px;
}

/* WhatsApp contact stack (multiple contacts) */
.wa-stack {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 999;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 10px;
}
.wa-stack .wa-bubble {
  position: static;
  z-index: auto;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #A9BFD4; margin-top: 90px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding: 56px 0 40px; }
.site-footer h4 { color: #fff; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 9px; font-size: 14px; }
.site-footer ul a { color: #A9BFD4; }
.site-footer ul a:hover { color: #fff; }
.footer-brand img { height: 38px; margin-bottom: 14px; }
.footer-brand p { font-size: 13.5px; max-width: 300px; }
.footer-social { margin-top: 24px; }
.footer-social h4 { margin-bottom: 14px; }
.social-row { display: flex; gap: 10px; flex-wrap: wrap; }
.social-row a {
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.16);
  color: #fff;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.social-row a:hover { background: var(--blue); border-color: var(--blue); transform: translateY(-2px); }
.social-row svg { width: 17px; height: 17px; fill: currentColor; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding: 18px 0;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: 12.5px; color: #7C93AB;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; padding: 56px 0 64px; }
  .hero-visual { margin-top: 20px; }
  .hero-flex { grid-template-columns: 1fr; gap: 24px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .burger { display: block; }
  .main-nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px 4%;
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; }
  .main-nav a { padding: 12px 10px; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 26px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-logo img { width: 220px; }
}
