/* National Agencies Pvt Ltd — site stylesheet
   Design: trade-ledger aesthetic. Ink/Canvas/Rust/Slate palette.
   Zilla Slab (headlines) + IBM Plex Sans (body) + IBM Plex Mono (spec data). */

:root {
  --ink: #1E2A32;
  --canvas: #F2EEE6;
  --rust: #A6432B;
  --rust-dark: #8A3620;
  --slate: #5B6B72;
  --slate-light: #C9D0D2;
  --white: #FFFFFF;
  --font-head: "Zilla Slab", Georgia, serif;
  --font-body: "IBM Plex Sans", -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.6em 0;
  color: var(--ink);
}

h1 { font-size: 2.4rem; }
h2 { font-size: 1.7rem; margin-top: 0; }
h3 { font-size: 1.25rem; }

p { max-width: 68ch; }
.container p, .container li { max-width: 68ch; }

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

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

/* ---------- Nav ---------- */
.nav {
  background: var(--ink);
  border-bottom: 1px solid #2c3a44;
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.nav .logo {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--white);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.nav .logo span { color: var(--rust); }
.nav ul {
  list-style: none;
  display: flex;
  gap: 1.4rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.nav ul a {
  color: var(--slate-light);
  font-size: 0.94rem;
}
.nav ul a:hover, .nav ul a.active {
  color: var(--white);
  text-decoration: none;
  border-bottom: 2px solid var(--rust);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: 1px solid var(--slate-light);
  padding: 0.5rem 0.7rem;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--white);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero (split) ---------- */
.hero-split {
  display: flex;
  background: var(--ink);
  min-height: 440px;
}
.hero-content {
  flex: 0 0 46%;
  color: var(--white);
  padding: 3.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: fadein 0.6s ease-out;
}
.hero-content h1, .hero-content h2 { color: var(--white); }
.hero-content p { color: var(--slate-light); }
.hero-image {
  flex: 1;
  background-size: cover;
  background-position: center;
}
.rule-accent {
  border-left: 4px solid var(--rust);
  padding-left: 1.1rem;
}
@keyframes fadein {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-content { animation: none; }
}

/* Simple full-width hero image (used on inner pages) */
.hero-simple {
  background: var(--ink);
  color: var(--white);
  padding: 3rem 0;
}
.hero-simple h1 { color: var(--white); }
.hero-simple p { color: var(--slate-light); }
.hero-simple img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  margin-top: 1.5rem;
}

/* ---------- Section bands ---------- */
section { padding: 3.2rem 0; }
.band-stone { background: var(--canvas); }
.band-white { background: var(--white); }
.band-ink { background: var(--ink); color: var(--white); }
.band-ink h2 { color: var(--white); }

/* ---------- Fact strip ---------- */
.fact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid var(--slate-light);
  border-bottom: 1px solid var(--slate-light);
  margin: 1.5rem 0;
}
.fact-strip div {
  padding: 0.9rem 1.6rem 0.9rem 0;
  margin-right: 1.6rem;
  border-right: 1px solid var(--slate-light);
  font-size: 0.95rem;
  color: var(--slate);
}
.fact-strip div:last-child { border-right: none; }
.fact-strip strong { color: var(--ink); display: block; font-family: var(--font-head); font-size: 1.1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--rust);
  color: var(--white) !important;
  padding: 0.75rem 1.5rem;
  border-radius: 0;
  font-weight: 500;
  text-decoration: none !important;
  border: 1px solid var(--rust);
}
.btn:hover { background: var(--rust-dark); border-color: var(--rust-dark); }
.btn-outline {
  background: transparent;
  color: var(--white) !important;
  border: 1px solid var(--slate-light);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.06); }

/* ---------- Product / feature grid ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.card {
  border: 1px solid var(--slate-light);
  padding: 1.6rem;
  background: var(--white);
}
.card img { margin-bottom: 1rem; height: 160px; width: 100%; object-fit: cover; }
.card h3 { margin-bottom: 0.5rem; }

/* ---------- Spec tables ---------- */
table.spec {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0 1.8rem 0;
  font-size: 0.96rem;
}
table.spec th {
  background: var(--ink);
  color: var(--white);
  text-align: left;
  padding: 0.6rem 0.9rem;
  font-family: var(--font-head);
  font-weight: 500;
}
table.spec td {
  padding: 0.55rem 0.9rem;
  border-bottom: 1px solid var(--slate-light);
}
table.spec td.num, table.spec td:nth-child(2) { font-family: var(--font-mono); }
table.spec tr:nth-child(even) td { background: var(--canvas); }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--slate-light); padding: 1.1rem 0; }
.faq-item h3 { margin-bottom: 0.4rem; font-size: 1.1rem; }
.faq-item p { margin: 0; color: var(--slate); }

/* ---------- Blog list ---------- */
.post-list { display: flex; flex-direction: column; gap: 0; }
.post-item {
  border-bottom: 1px solid var(--slate-light);
  padding: 1.3rem 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}
.post-item h3 { margin: 0; font-size: 1.1rem; }
.post-item .tag { color: var(--slate); font-size: 0.85rem; white-space: nowrap; }

/* ---------- Footer ---------- */
footer {
  background: var(--ink);
  color: var(--slate-light);
  padding: 2.5rem 0 1.5rem 0;
  font-size: 0.92rem;
}
footer a { color: var(--white); }
footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2rem; }
footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 0.7rem; }
.footer-bottom { border-top: 1px solid #2c3a44; margin-top: 2rem; padding-top: 1.2rem; font-size: 0.85rem; color: var(--slate); }

/* ---------- Confirm note ---------- */
.confirm-note {
  border-left: 3px solid var(--rust);
  background: var(--canvas);
  padding: 0.9rem 1.2rem;
  font-size: 0.92rem;
  color: var(--slate);
  margin: 1.2rem 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .hero-split { flex-direction: column; }
  .hero-content { flex: none; padding: 2.2rem 1.5rem; }
  .hero-image { height: 220px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .nav-toggle { display: flex; }
  .nav ul {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    margin-top: 1rem;
    border-top: 1px solid #2c3a44;
  }
  .nav ul.open { display: flex; }
  .nav ul li { width: 100%; }
  .nav ul a {
    display: block;
    padding: 0.8rem 0;
    border-bottom: 1px solid #2c3a44;
  }
  .nav ul a:hover, .nav ul a.active { border-bottom: 1px solid var(--rust); }
  footer .container { flex-direction: column; gap: 1.5rem; }
  h1 { font-size: 1.9rem; }
  .fact-strip { flex-direction: column; }
  .fact-strip div { border-right: none; border-bottom: 1px solid var(--slate-light); margin-right: 0; padding-bottom: 0.9rem; }
}

/* Accessible focus */
a:focus-visible, button:focus-visible { outline: 2px solid var(--rust); outline-offset: 2px; }
