/* ==========================================================================
   Niltar Trade Ltd — corporate site stylesheet
   Mobile-first, no framework. Sectioned by component.
   ========================================================================== */

/* ---- Tokens ------------------------------------------------------------ */
:root {
  --ink: #1c1c1c;
  --ink-soft: #2b2620;
  --paper: #faf8f3;
  --paper-alt: #f1ebdd;
  --white: #ffffff;
  --gold: #8a6a2f;
  --gold-bright: #b6903f;
  --line: #e3ddcd;
  --line-dark: #45403a;
  --muted: #6b6558;
  --muted-on-dark: #c9c2b0;

  --font-display: Georgia, 'Times New Roman', Times, serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --container: 1180px;
  --radius: 2px;
  --shadow-soft: 0 10px 30px rgba(28, 28, 28, 0.08);
}

/* ---- Reset --------------------------------------------------------------*/
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; margin: 0 0 0.5em; color: var(--ink); }
p { margin: 0 0 1.1em; }
address { font-style: normal; }
button { font: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--white);
  padding: 12px 18px; z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; }

.wrap { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ---- Type scale ----------------------------------------------------------*/
h1, .h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3.2rem); letter-spacing: -0.01em; }
h2, .h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.15rem); }
h3, .h3 { font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.4rem); }
.eyebrow {
  display: inline-block; font-family: var(--font-body); font-size: 0.72rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold);
  font-weight: 600; margin-bottom: 0.9em;
}
.lede { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }

/* ---- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  padding: 0.85em 1.6em; border: 1px solid var(--ink); border-radius: var(--radius);
  font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
  background: var(--ink); color: var(--white);
}
.btn:hover, .btn:focus-visible { background: var(--gold); border-color: var(--gold); color: var(--white); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover, .btn--ghost:focus-visible { background: var(--ink); color: var(--white); }
.btn--on-dark { border-color: var(--white); color: var(--white); background: transparent; }
.btn--on-dark:hover { background: var(--gold-bright); border-color: var(--gold-bright); }
.btn--small { padding: 0.55em 1.1em; font-size: 0.72rem; }

/* ---- Site header -------------------------------------------------------*/
.site-header {
  position: sticky; top: 0; z-index: 100; background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark { flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__company { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.brand__sub { font-size: 0.68rem; letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; background: transparent; border: 1px solid var(--line);
  border-radius: var(--radius); cursor: pointer;
}
.nav-toggle__bar { display: block; width: 20px; height: 2px; background: var(--ink); margin: 0 auto; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.primary-nav {
  position: fixed; inset: 66px 0 0 0; background: var(--paper);
  transform: translateY(-8px); opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease; overflow-y: auto; padding: 10px 0 40px;
}
.primary-nav.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.primary-nav > ul { display: flex; flex-direction: column; padding: 10px 20px; }
.primary-nav > ul > li { border-bottom: 1px solid var(--line); }
.primary-nav a { display: block; padding: 16px 4px; font-weight: 600; font-size: 1.02rem; }
.primary-nav a.is-active { color: var(--gold); }
.sub-nav-toggle {
  position: absolute; right: 4px; top: 8px; background: none; border: none; width: 40px; height: 40px;
  color: var(--muted); cursor: pointer; font-size: 0.9rem;
}
.has-children { position: relative; }
.sub-nav { display: none; padding: 0 0 10px 14px; }
.sub-nav.is-open { display: block; }
.sub-nav a { padding: 10px 4px; font-weight: 500; font-size: 0.95rem; color: var(--muted); }
.sub-nav a.is-active { color: var(--gold); }

@media (min-width: 900px) {
  .site-header__inner { padding: 16px 20px; }
  .nav-toggle { display: none; }
  .primary-nav {
    position: static; inset: auto; transform: none; opacity: 1; visibility: visible; pointer-events: auto;
    padding: 0; overflow: visible; background: transparent;
  }
  .primary-nav > ul { flex-direction: row; align-items: center; gap: 6px; padding: 0; }
  .primary-nav > ul > li { border-bottom: none; position: relative; }
  .primary-nav a { padding: 10px 14px; font-size: 0.92rem; font-weight: 600; border-radius: var(--radius); }
  .primary-nav a:hover, .primary-nav a:focus-visible { color: var(--gold); }
  .sub-nav-toggle { display: none; }
  .has-children:hover .sub-nav,
  .has-children:focus-within .sub-nav { display: block; }
  .sub-nav {
    position: absolute; top: 100%; left: 14px; min-width: 220px; background: var(--white);
    border: 1px solid var(--line); box-shadow: var(--shadow-soft); padding: 8px; z-index: 20;
  }
  .sub-nav a { padding: 10px 12px; border-radius: var(--radius); }
  .sub-nav a:hover, .sub-nav a:focus-visible { background: var(--paper-alt); color: var(--gold); }
}

/* ---- Hero ---------------------------------------------------------------*/
.hero {
  background: var(--ink); color: var(--white); padding: 72px 0 64px; position: relative;
  border-bottom: 3px solid var(--gold);
}
.hero .wrap { display: grid; gap: 28px; }
.hero__eyebrow { color: var(--gold-bright); }
.hero h1 { color: var(--white); max-width: 16ch; }
.hero p.lede { color: var(--muted-on-dark); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero__facts { display: grid; gap: 18px; margin-top: 12px; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-dark); padding-top: 22px; }
.hero__facts dt { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold-bright); margin-bottom: 4px; }
.hero__facts dd { margin: 0; font-family: var(--font-display); font-size: 1.05rem; }

@media (min-width: 900px) {
  .hero { padding: 120px 0 90px; }
  .hero .wrap { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
}

/* ---- Page header (non-home pages) ---------------------------------------*/
.page-header { background: var(--ink); color: var(--white); padding: 52px 0 46px; border-bottom: 3px solid var(--gold); }
.page-header h1 { color: var(--white); max-width: 24ch; }
.page-header p.lede { color: var(--muted-on-dark); }
.breadcrumbs { margin-top: -6px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.78rem; color: var(--muted-on-dark); list-style: none; margin: 0; padding: 0; }
.breadcrumbs li:not(:last-child)::after { content: '/'; margin-left: 8px; color: var(--line-dark); }
.breadcrumbs a { color: var(--muted-on-dark); }
.breadcrumbs a:hover { color: var(--gold-bright); }
.page-header .breadcrumbs { margin-bottom: 18px; }

/* ---- Sections ------------------------------------------------------------*/
section.section { padding: 56px 0; }
section.section--alt { background: var(--paper-alt); }
section.section--dark { background: var(--ink); color: var(--white); }
section.section--dark h2 { color: var(--white); }
section.section--dark p { color: var(--muted-on-dark); }
.section__head { max-width: 68ch; margin-bottom: 34px; }
@media (min-width: 900px) { section.section { padding: 84px 0; } }

/* ---- Business / card grid ------------------------------------------------*/
.card-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--white); border: 1px solid var(--line); padding: 30px 26px;
  display: flex; flex-direction: column; gap: 12px; transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: var(--shadow-soft); transform: translateY(-2px); }
.card__index { font-family: var(--font-display); color: var(--gold); font-size: 0.85rem; letter-spacing: 0.08em; }
.card h3 { margin-bottom: 4px; }
.card p { color: var(--muted); margin-bottom: 6px; flex-grow: 1; }
.card__link { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; color: var(--ink); }
.card__link:hover { color: var(--gold); }

/* ---- Media + text pairs ---------------------------------------------------*/
.split { display: grid; gap: 30px; align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 56px; }
  .split--reverse .split__media { order: 2; }
}
.split__media img { border: 1px solid var(--line); }
.split__media figcaption { font-size: 0.8rem; color: var(--muted); margin-top: 10px; }

/* ---- Heritage timeline -----------------------------------------------------*/
.timeline { display: grid; gap: 44px; margin-top: 20px; }
.timeline__item {
  display: grid; gap: 22px; padding-bottom: 40px; border-bottom: 1px solid var(--line);
}
.timeline__item:last-child { border-bottom: none; padding-bottom: 0; }
@media (min-width: 800px) {
  .timeline__item { grid-template-columns: 300px 1fr; align-items: start; }
}
.timeline__marker { font-family: var(--font-display); color: var(--gold); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 8px; display: block; }
.timeline__media img { border: 1px solid var(--line); }
.timeline__media figcaption { font-size: 0.78rem; color: var(--muted); margin-top: 8px; }
.timeline__body h3 { margin-bottom: 10px; }
.timeline__body p { color: var(--ink-soft); }

.note {
  border-left: 3px solid var(--gold-bright); background: var(--paper-alt);
  padding: 14px 18px; font-size: 0.92rem; color: var(--muted); margin: 20px 0;
}
.pending-note {
  font-size: 0.88rem; font-style: italic; color: var(--muted); margin-top: 10px;
}

/* ---- Logo / brand strip ----------------------------------------------------*/
.brand-strip {
  display: flex; align-items: center; gap: 16px; padding: 18px 22px; background: var(--white);
  border: 1px solid var(--line); margin-bottom: 24px;
}
.brand-strip img { flex: none; }
.brand-strip p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---- Definition table (brand architecture, domains) -----------------------*/
.def-table { width: 100%; border-collapse: collapse; margin: 22px 0; }
.def-table th, .def-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.def-table th { font-family: var(--font-display); width: 220px; color: var(--ink); }
.def-table td { color: var(--muted); }

.domain-list { display: grid; gap: 14px; margin-top: 20px; }
.domain-list__item {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  padding: 16px 18px; border: 1px solid var(--line); background: var(--white);
}
.domain-list__item strong { font-family: var(--font-display); }
.domain-list__item span { color: var(--muted); font-size: 0.88rem; }

/* ---- Contact ---------------------------------------------------------------*/
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 0.9fr 1.1fr; } }
.contact-card { background: var(--white); border: 1px solid var(--line); padding: 28px; }
.contact-card h3 { margin-bottom: 14px; }
.contact-card dl { margin: 0; }
.contact-card dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); margin-top: 14px; }
.contact-card dd { margin: 4px 0 0; }

.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 0.82rem; font-weight: 700; margin-bottom: 6px; }
.form-field input, .form-field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); background: var(--white);
  font: inherit; color: var(--ink); border-radius: var(--radius);
}
.form-field input:focus, .form-field textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.form-hp { position: absolute; left: -9999px; top: -9999px; }
.form-alert { padding: 14px 16px; margin-bottom: 20px; border-left: 3px solid var(--gold); background: var(--paper-alt); }
.form-alert--error { border-color: #a3402c; }

/* ---- Footer ----------------------------------------------------------------*/
.site-footer { background: var(--ink); color: var(--muted-on-dark); padding: 56px 0 0; }
.footer__grid { display: grid; gap: 34px; padding-bottom: 40px; border-bottom: 1px solid var(--line-dark); }
@media (min-width: 800px) { .footer__grid { grid-template-columns: 1.2fr 1fr 1fr 1.1fr; } }
.footer__brand { display: flex; gap: 12px; align-items: flex-start; }
.footer__lockup { color: var(--white); font-family: var(--font-display); font-size: 1rem; }
.footer__lockup span { display: block; font-family: var(--font-body); font-size: 0.78rem; color: var(--muted-on-dark); margin-top: 4px; }
.site-footer h2 { color: var(--white); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; font-family: var(--font-body); margin-bottom: 14px; }
.footer__nav ul li, .footer__properties ul li { margin-bottom: 8px; font-size: 0.9rem; }
.footer__sub { padding-left: 14px; opacity: 0.85; }
.footer__nav a:hover, .footer__properties a:hover { color: var(--gold-bright); }
.footer__properties span { display: block; font-size: 0.76rem; color: var(--muted-on-dark); opacity: 0.75; }
.footer__contact address a { display: block; margin-bottom: 6px; }
.footer__contact address a:hover { color: var(--gold-bright); }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 20px 0; font-size: 0.78rem; }

/* ---- Utility --------------------------------------------------------------*/
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.stack { display: grid; gap: 16px; }
