/* Islam Trade International — site styles
   Layout: left-aligned single column (max 1120px) with a two-column hero
   (copy left, paper swatch stack right). Sections are separated by space and
   one hairline, not cards. The swatch stack is the one bold element. */

:root {
  --paper: #f7f8f6;        /* cool sheet white */
  --sheet: #ffffff;        /* coated face */
  --ink: #1d2733;          /* offset ink, blue-black */
  --ink-soft: #4c5866;     /* body secondary */
  --rule: #dfe3e1;         /* hairlines */
  --grey-back: #9aa0a6;    /* duplex grey back */
  --kraft: #a57447;        /* kraft brown, small use */
  --cyan: #0b6e99;         /* process cyan, links and actions */
  --cyan-ink: #ffffff;
  --field: #ffffff;
  --ok: #1f7a4d;
  --err: #b3261e;

  --display: "Archivo", "Hind Siliguri", system-ui, sans-serif;
  --body: "Public Sans", "Hind Siliguri", system-ui, sans-serif;
  --bangla: "Hind Siliguri", system-ui, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(2rem, 1.4rem + 2.6vw, 3.1rem);
  --measure: 66ch;
  --gutter: 20px;
  --radius: 4px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #12171d; --sheet: #1a2129; --ink: #e8ebe8; --ink-soft: #a9b2bb;
    --rule: #2b333c; --grey-back: #5e656c; --kraft: #c9945f; --cyan: #5cb6e0;
    --cyan-ink: #0d1a22; --field: #161c23; --ok: #6fd09f; --err: #ff8a80;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #12171d; --sheet: #1a2129; --ink: #e8ebe8; --ink-soft: #a9b2bb;
  --rule: #2b333c; --grey-back: #5e656c; --kraft: #c9945f; --cyan: #5cb6e0;
  --cyan-ink: #0d1a22; --field: #161c23; --ok: #6fd09f; --err: #ff8a80;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: var(--step-0); line-height: 1.6;
}
img, svg { max-width: 100%; }
a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: 1120px; margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.site-head { border-bottom: 1px solid var(--rule); background: var(--paper); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand svg { width: 36px; height: 36px; flex: none; }
.brand b { display: block; font-family: var(--display); font-weight: 700; font-stretch: 110%; font-size: 1.05rem; letter-spacing: -0.005em; line-height: 1.2; }
.brand span { display: block; font-family: var(--bangla); font-size: 0.82rem; color: var(--ink-soft); line-height: 1.2; }
.nav { display: flex; align-items: center; gap: 4px 18px; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; font-size: 0.95rem; }
.nav a:hover { color: var(--cyan); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--cyan); color: var(--cyan-ink); border: 0; border-radius: var(--radius);
  padding: 11px 18px; font: 600 0.95rem var(--body); text-decoration: none; cursor: pointer;
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--ink); filter: none; }
.nav .btn { padding: 8px 14px; color: var(--cyan-ink); }
@media (max-width: 720px) { .nav a:not(.btn) { display: none; } }
@media (max-width: 480px) { .nav { display: none; } }

/* Hero */
.hero { padding-block: clamp(40px, 7vw, 88px) clamp(40px, 6vw, 72px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }
h1, h2, h3 { font-family: var(--display); font-stretch: 112%; letter-spacing: -0.015em; text-wrap: balance; margin: 0; color: var(--ink); }
h1 { font-size: var(--step-3); line-height: 1.08; font-weight: 700; }
h2 { font-size: var(--step-2); line-height: 1.2; font-weight: 700; }
h3 { font-size: var(--step-1); line-height: 1.3; font-weight: 600; font-stretch: 105%; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 56ch; margin: 18px 0 26px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.facts { margin: 30px 0 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 22px; font-size: 0.95rem; max-width: 520px; }
.facts dt { color: var(--ink-soft); }
.facts dd { margin: 0; }

/* Swatch stack — the paper sample book */
.swatches { position: relative; height: 340px; max-width: 440px; width: 100%; justify-self: center; }
@media (max-width: 860px) { .swatches { height: 300px; } }
.sw {
  position: absolute; left: 0; right: 0; height: 74px; border-radius: 3px;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
  padding: 12px 14px 0; font-size: 0.82rem; color: #1d2733;
  box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 8px 18px -10px rgba(16,24,32,.35);
  transform-origin: left bottom;
}
.sw b { font-family: var(--display); font-stretch: 108%; font-weight: 600; font-size: 0.95rem; }
.sw i { font-style: normal; opacity: .72; }
/* each sheet shows its face colour and, along the bottom edge, its back */
.sw::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 5px; border-radius: 0 0 3px 3px; background: var(--back, #fff); }
.sw-1 { top: 0;   background: #ffffff; --back: #ffffff; transform: rotate(-3.5deg) translateX(10px); }
.sw-2 { top: 54px; background: #f3f4f1; --back: #9aa0a6; transform: rotate(-1.8deg) translateX(4px); }
.sw-3 { top: 108px; background: #fbfbf7; --back: #e9e3d3; transform: rotate(-0.4deg); }
.sw-4 { top: 162px; background: #ffffff; --back: #e3e6e2; transform: rotate(1.2deg) translateX(-4px); }
.sw-5 { top: 216px; background: linear-gradient(90deg, #ffffff 0 82%, #f2c94c 82% 100%); --back: #f2c94c; transform: rotate(2.6deg) translateX(-8px); }
.sw-6 { top: 262px; background: #b8875a; color: #fff; --back: #a57447; transform: rotate(3.8deg) translateX(-12px); }
.sw-1 b::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; background: conic-gradient(#00a0d6 0 25%, #e0287b 0 50%, #f5d300 0 75%, #1d1d1b 0); vertical-align: 1px; }
@media (prefers-reduced-motion: no-preference) {
  .sw { animation: fan .7s cubic-bezier(.2,.7,.2,1) both; }
  .sw-2 { animation-delay: .05s } .sw-3 { animation-delay: .1s } .sw-4 { animation-delay: .15s } .sw-5 { animation-delay: .2s } .sw-6 { animation-delay: .25s }
  @keyframes fan { from { transform: rotate(0) translateY(14px); opacity: .0001; } }
}

/* Sections */
section { padding-block: clamp(48px, 7vw, 84px); border-top: 1px solid var(--rule); }
.sec-head { max-width: var(--measure); margin-bottom: 30px; }
.sec-head p { color: var(--ink-soft); margin: 12px 0 0; }
.prose { max-width: var(--measure); }
.prose p { margin: 0 0 14px; }

.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); }
@media (max-width: 860px) { .two { grid-template-columns: minmax(0, 1fr); } }

.work { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.work li { display: grid; gap: 2px; }
.work b { font-family: var(--display); font-stretch: 106%; font-weight: 600; }
.work span { color: var(--ink-soft); }

/* Grade list — rows, each with a two-sided sheet chip */
.grades { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.grade { display: grid; grid-template-columns: 54px minmax(0, 1fr) minmax(0, 1.4fr); gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--rule); align-items: start; }
@media (max-width: 760px) { .grade { grid-template-columns: 54px minmax(0, 1fr); } .grade .uses { grid-column: 2; } }
.chip { width: 44px; height: 30px; border-radius: 2px; background: var(--face, #fff); position: relative; margin-top: 4px; box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 6px 10px -8px rgba(0,0,0,.5); }
.chip::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 4px; background: var(--back, #fff); border-radius: 0 0 2px 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.06); }
.grade h3 { font-size: 1.08rem; }
.grade .alt { color: var(--ink-soft); font-size: 0.92rem; margin: 2px 0 0; }
.grade .uses, .grade .supply { font-size: 0.95rem; margin: 0; }
.grade .supply { color: var(--ink-soft); }
.note { color: var(--ink-soft); font-size: 0.92rem; margin: 16px 0 0; max-width: var(--measure); }

/* Sister concern */
.trims { columns: 2; column-gap: 28px; padding: 0; margin: 0 0 8px; list-style: none; }
.trims li { padding: 7px 0; border-bottom: 1px solid var(--rule); break-inside: avoid; }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 22px; margin: 0; font-size: 0.97rem; }
.kv dt { color: var(--ink-soft); }
.kv dd { margin: 0; }

/* Reference table */
.table-wrap { overflow-x: auto; border-top: 1px solid var(--ink); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 0.95rem; }
th, td { text-align: left; padding: 11px 14px 11px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-weight: 600; font-family: var(--display); font-stretch: 105%; }
td:first-child { font-weight: 500; }

/* Records */
.records { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; max-width: var(--measure); }
.records li { padding-left: 16px; border-left: 2px solid var(--kraft); }
.records small { display: block; color: var(--ink-soft); }

/* Contact + form */
.addr { font-style: normal; margin: 0 0 22px; }
.addr b { display: block; font-family: var(--display); font-stretch: 106%; }
form.rfq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 16px; }
form.rfq .full { grid-column: 1 / -1; }
@media (max-width: 560px) { form.rfq { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 5px; min-width: 0; }
label { font-size: 0.9rem; font-weight: 600; }
label .opt { font-weight: 400; color: var(--ink-soft); }
input, select, textarea {
  width: 100%; font: 1rem var(--body); color: var(--ink); background: var(--field);
  border: 1px solid var(--rule); border-radius: var(--radius); padding: 10px 11px;
}
input:focus, select:focus, textarea:focus { border-color: var(--cyan); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--cyan) 25%, transparent); }
textarea { min-height: 110px; resize: vertical; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.status { min-height: 1.5em; font-size: 0.95rem; margin: 0; }
.status.ok { color: var(--ok); }
.status.err { color: var(--err); }

/* Footer */
footer { border-top: 1px solid var(--rule); padding-block: 28px 40px; color: var(--ink-soft); font-size: 0.9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; }
footer .bn { font-family: var(--bangla); }

/* Quote assistant */
.qa-launch {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 20;
  border: 0; border-radius: 999px; background: var(--ink); color: var(--paper);
  padding: 12px 18px; font: 600 0.95rem var(--body); cursor: pointer; box-shadow: 0 10px 24px -12px rgba(0,0,0,.6);
}
.qa {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 21;
  width: min(400px, calc(100vw - 36px)); height: min(600px, calc(100vh - 120px));
  display: flex; flex-direction: column; background: var(--sheet); color: var(--ink);
  border: 1px solid var(--rule); border-radius: 8px; box-shadow: 0 24px 48px -20px rgba(0,0,0,.45);
}
.qa-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--rule); }
.qa-head b { font-family: var(--display); font-stretch: 106%; }
.qa-head small { display: block; color: var(--ink-soft); font-size: 0.8rem; }
.qa-close { background: none; border: 0; color: var(--ink); font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 4px 8px; }
.qa-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 86%; padding: 9px 12px; border-radius: 8px; font-size: 0.94rem; white-space: pre-wrap; word-wrap: break-word; }
.msg.bot { background: var(--paper); align-self: flex-start; border: 1px solid var(--rule); }
.msg.me { background: var(--cyan); color: var(--cyan-ink); align-self: flex-end; }
.msg.sys { align-self: center; color: var(--ink-soft); font-size: 0.82rem; background: none; padding: 2px; text-align: center; }
.qa-summary { border: 1px solid var(--kraft); border-radius: 6px; padding: 10px 12px; font-size: 0.9rem; background: var(--paper); }
.qa-summary dl { display: grid; grid-template-columns: max-content minmax(0,1fr); gap: 3px 12px; margin: 6px 0 10px; }
.qa-summary dt { color: var(--ink-soft); }
.qa-summary dd { margin: 0; }
.qa-summary .row { display: grid; gap: 6px; }
.qa-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 8px; }
.qa-chips button { border: 1px solid var(--rule); background: var(--paper); color: var(--ink); border-radius: 999px; padding: 5px 11px; font: 0.85rem var(--body); cursor: pointer; }
.qa-chips button:hover { border-color: var(--cyan); }
.qa-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--rule); }
.qa-form input { flex: 1; }
.qa-form .btn { padding: 10px 14px; }
.qa-foot { padding: 0 14px 10px; font-size: 0.75rem; color: var(--ink-soft); }

/* Premises photos */
.photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.photos figure { margin: 0; }
.photos img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); display: block; background: var(--rule); }
.photos figcaption { color: var(--ink-soft); font-size: 0.9rem; margin-top: 8px; }
