/* ==========================================================================
   Northwest Technologies Private Limited - Site styles
   Palette: Navy #0B1F51 primary, Steel grey accents, white space
   ========================================================================== */

:root {
  --navy: #0B1F51;
  --navy-dark: #07153A;
  --navy-light: #1A3578;
  --steel: #5A6B85;
  --steel-light: #E5E9F0;
  --ink: #1F2937;
  --muted: #6B7280;
  --bg: #FFFFFF;
  --bg-alt: #F7F8FA;
  --border: #E1E5EC;
  --accent: #C9A961;
  --shadow-sm: 0 1px 2px rgba(11, 31, 81, 0.04);
  --shadow-md: 0 4px 12px rgba(11, 31, 81, 0.08);
  --radius: 4px;
  --max: 1180px;
  --pad: clamp(1rem, 4vw, 2rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { color: var(--navy); font-weight: 600; line-height: 1.25; margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.container { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* ---------- Header ---------- */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem var(--pad);
  max-width: var(--max);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  color: var(--navy);
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 36px; height: 36px;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text small { font-size: 0.7rem; color: var(--muted); font-weight: 400; letter-spacing: 0.05em; }

.nav-links {
  display: flex;
  gap: 1.6rem;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.nav-links a:hover { color: var(--navy); text-decoration: none; border-bottom-color: var(--accent); }
.nav-links a.active { color: var(--navy); border-bottom-color: var(--navy); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--navy);
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem var(--pad);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--border); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a { display: block; padding: 0.9rem 0; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  padding: clamp(3rem, 8vw, 6rem) var(--pad);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 50%; height: 100%;
  background: radial-gradient(ellipse at right, rgba(201, 169, 97, 0.08), transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero h1 { color: #fff; margin-bottom: 0.4em; }
.hero .lede { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: rgba(255,255,255,0.85); max-width: 42em; margin: 0 0 1.8em; }
.hero-meta { display: flex; gap: 2rem; flex-wrap: wrap; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.15); }
.hero-meta div { color: rgba(255,255,255,0.7); font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase; }
.hero-meta strong { display: block; color: #fff; font-size: 1.1rem; text-transform: none; letter-spacing: 0; margin-top: 0.2rem; font-weight: 600; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid var(--navy);
  transition: background 0.15s, transform 0.1s;
  cursor: pointer;
}
.btn:hover { background: var(--navy-light); text-decoration: none; }
.btn-outline { background: transparent; color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: var(--steel-light); }

/* ---------- Sections ---------- */
section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 42em; margin: 0 auto 3rem; text-align: center; }
.section-head .eyebrow { color: var(--accent); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 0.6em; }
.section-head p { color: var(--steel); font-size: 1.05rem; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.card:hover { border-color: var(--navy-light); box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: 0.5em; }
.card p { color: var(--steel); margin: 0; font-size: 0.95rem; }
.card-icon {
  width: 44px; height: 44px;
  background: var(--steel-light);
  color: var(--navy);
  border-radius: var(--radius);
  display: grid; place-items: center;
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

/* ---------- Partner badge ---------- */
.partner {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--navy);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2.5rem;
}
.partner.secondary { border-left-color: var(--accent); }
.partner-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.partner-head h2 { margin: 0; }
.partner-role { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; background: var(--navy); padding: 0.3rem 0.7rem; border-radius: var(--radius); }
.partner.secondary .partner-role { background: var(--accent); }
.partner-tag { color: var(--steel); font-size: 0.9rem; margin: 0 0 1.5rem; }

/* ---------- Team ---------- */
.team-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
}
.team-card .role { color: var(--accent); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 0.5em; }
.team-card h3 { margin: 0 0 0.3em; }
.team-card p { color: var(--steel); font-size: 0.95rem; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1rem; max-width: 600px; margin: 0 auto; }
.form label { font-weight: 500; font-size: 0.9rem; color: var(--navy); display: block; margin-bottom: 0.3rem; }
.form input, .form textarea, .form select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.15s;
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(11, 31, 81, 0.1);
}
.form textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 0.4rem; }

/* ---------- Contact cards ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; margin-bottom: 3rem; }
.contact-item {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 1.8rem;
  text-align: center;
}
.contact-item .label { font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--steel); margin-bottom: 0.5rem; }
.contact-item .value { font-size: 1.1rem; font-weight: 600; color: var(--navy); }
.contact-item a { color: var(--navy); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.75);
  padding: 3rem var(--pad) 1.5rem;
  margin-top: 0;
}
.footer-inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; }
.site-footer h4 { color: #fff; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer a { color: rgba(255,255,255,0.75); }
.site-footer a:hover { color: #fff; text-decoration: none; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 0.5rem; font-size: 0.95rem; }
.footer-brand p { font-size: 0.95rem; line-height: 1.6; max-width: 28em; }
.footer-bottom {
  max-width: var(--max);
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  text-align: center;
}

@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.cta-band {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 3rem var(--pad);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 36em; margin-left: auto; margin-right: auto; }

/* Lists in card */
.svc-list { list-style: none; padding: 0; margin: 0; }
.svc-list li { padding: 0.4rem 0 0.4rem 1.4rem; position: relative; font-size: 0.95rem; color: var(--steel); }
.svc-list li::before { content: '▸'; position: absolute; left: 0; color: var(--accent); font-size: 0.9rem; }

/* ---------- Product cards with images ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.product-card:hover { border-color: var(--navy-light); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.product-card .product-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  background: var(--steel-light);
  border-bottom: 1px solid var(--border);
}
.product-card .product-body { padding: 1.4rem; flex: 1; display: flex; flex-direction: column; }
.product-card h3 { margin: 0 0 0.5em; font-size: 1.05rem; }
.product-card p { color: var(--steel); font-size: 0.92rem; margin: 0 0 0.8em; line-height: 1.55; }
.product-card .product-specs { font-size: 0.82rem; color: var(--muted); margin-top: auto; padding-top: 0.8rem; border-top: 1px dashed var(--border); }
.product-card .product-specs strong { color: var(--navy); font-weight: 600; }

/* Hero with background image */
.hero-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}
.hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11, 31, 81, 0.92) 0%, rgba(7, 21, 58, 0.88) 100%);
  z-index: 0;
}
.hero-image .hero-inner { position: relative; z-index: 1; }

/* Banner image strip */
.banner-strip {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  display: block;
}
