/* Jawaid Publications — static catalogue styles
   Mobile-first. Order list → WhatsApp. No live payments until Razorpay links are set. */

:root {
  --ink: #1a1714;
  --ink-soft: #4a453e;
  --ink-faint: #7a7368;
  --cream: #f4eee3;
  --cream-dark: #e8dfcd;
  --paper: #faf6ee;
  --white: #fffdf8;
  --green: #143d32;
  --green-deep: #0c2a23;
  --green-mid: #1c5746;
  --green-soft: #2a6b57;
  --gold: #a68438;
  --gold-bright: #c4a35a;
  --gold-soft: #d9c48a;
  --line: rgba(166, 132, 56, 0.38);
  --line-soft: rgba(20, 61, 50, 0.12);
  --whatsapp: #0f7a4a;
  --danger: #8b3a2a;
  --sample: #7a3b2e;
  --known: #1c5746;
  --shadow: 0 18px 40px rgba(12, 42, 35, 0.08);
  --shadow-soft: 0 8px 24px rgba(12, 42, 35, 0.06);
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 4.5rem;
  --font-serif: "Cormorant Garamond", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --font-sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", sans-serif;
  --font-bn: "Noto Serif Bengali", "Noto Serif", var(--font-serif);
  --space: 1rem;
  --max: 72rem;
  --narrow: 42rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--green-mid); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--green-deep); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--green-deep);
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.15rem, 6vw, 3.65rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.35rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--green);
  color: var(--white);
  padding: 0.5rem 0.9rem;
  z-index: 100;
  border-radius: 4px;
}
.skip:focus { top: 0.75rem; }

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}
.wrap-narrow { width: min(100% - 2rem, var(--narrow)); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 238, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-top {
  display: none;
  background: var(--green-deep);
  color: var(--cream);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.35rem 1rem;
}
.header-top a { color: var(--gold-soft); }

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: var(--header-h);
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.logo:hover { color: inherit; }
.logo-mark {
  width: 2.4rem;
  height: 2.4rem;
  flex: 0 0 auto;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-en {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--green-deep);
  letter-spacing: -0.02em;
}
.logo-bn {
  font-family: var(--font-bn);
  font-size: 0.72rem;
  color: var(--gold);
  margin-top: 0.12rem;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 1.05rem;
  height: 1.5px;
  background: var(--green-deep);
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }

.header-actions { display: flex; align-items: center; gap: 0.5rem; }

.nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 0.5rem 1rem 1rem;
  box-shadow: var(--shadow);
}
.nav.is-open { display: block; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block;
  padding: 0.7rem 0.4rem;
  color: var(--green-deep);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--line-soft);
}
.nav .has-sub summary,
.nav .sub a { cursor: pointer; }
.nav .has-sub { border-bottom: 1px solid var(--line-soft); }
.nav .has-sub summary {
  list-style: none;
  padding: 0.7rem 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--green-deep);
}
.nav .has-sub summary::-webkit-details-marker { display: none; }
.nav .sub { padding: 0 0 0.4rem 0.9rem; }
.nav .sub a { border: 0; font-weight: 500; color: var(--ink-soft); padding: 0.4rem; }

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  color: var(--green-deep);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}
.cart-link:hover { color: var(--green-deep); border-color: var(--gold); }
.cart-count {
  display: inline-flex;
  min-width: 1.25rem;
  height: 1.25rem;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: var(--cream);
  border-radius: 999px;
  font-size: 0.72rem;
  padding: 0 0.3rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.2;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--green);
  color: var(--cream);
}
.btn-primary:hover { background: var(--green-deep); color: var(--white); }
.btn-gold {
  background: var(--gold);
  color: var(--green-deep);
}
.btn-gold:hover { background: var(--gold-bright); color: var(--green-deep); }
.btn-ghost {
  background: transparent;
  color: var(--green-deep);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--white); color: var(--green-deep); }
.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
}
.btn-whatsapp:hover { background: #0b5c38; color: #fff; }
.btn[disabled],
.btn.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 0.7rem; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(20, 61, 50, 0.04), rgba(250, 246, 238, 0.2) 40%, var(--paper)),
    var(--cream);
  border-bottom: 1px solid var(--line);
  padding: 2.4rem 0 3rem;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/pattern.svg");
  background-size: 340px;
  opacity: 0.1;
  pointer-events: none;
}
.hero-inner { position: relative; width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.kicker-bn {
  font-family: var(--font-bn);
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.95rem;
  font-weight: 600;
}
.hero h1 { max-width: 14ch; margin-bottom: 0.7rem; }
.lead {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 38rem;
  margin-bottom: 1.5rem;
}
.hero-panel {
  margin-top: 2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 1rem;
  display: grid;
  gap: 0.85rem;
}
.hero-stat strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--green-deep);
  font-weight: 600;
}
.hero-stat span { color: var(--ink-faint); font-size: 0.88rem; }

/* Trust */
.trust {
  display: grid;
  gap: 0.75rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.trust-item {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.95rem;
}
.trust-item strong { color: var(--green-deep); }
.dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 0.45rem;
  flex: 0 0 auto;
}

/* Sections */
.section { padding: 3rem 0; }
.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.6rem;
}
.section-head p { color: var(--ink-soft); max-width: 38rem; }
.eyebrow {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Categories */
.cat-grid, .product-grid, .split, .steps, .info-grid {
  display: grid;
  gap: 1rem;
}
.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
  padding: 0.7rem 0.7rem 1.15rem;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--cream);
  background: var(--green);
  border: 1px solid var(--green-deep);
  box-shadow: var(--shadow-soft);
}
.cat-card:hover { color: var(--white); }
.cat-card .art {
  position: static;
  width: 100%;
  height: 8rem;
  object-fit: contain;
  background: linear-gradient(180deg, #ece4d4, #f7f1e6);
  border-radius: 12px;
  margin: 0 0 0.85rem;
  padding: 0.35rem;
  opacity: 1;
}
.cat-card h3 { color: var(--white); margin: 0 0 0.2rem; position: relative; padding: 0 0.35rem; }
.cat-card p { margin: 0; font-size: 0.92rem; color: var(--gold-soft); position: relative; max-width: none; padding: 0 0.35rem; }

/* Product cards */
.product-card {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
}
.product-card a.thumb {
  display: block;
  background: linear-gradient(180deg, #ece4d4, #f7f1e6);
  aspect-ratio: 4 / 3;
  position: relative;
  text-decoration: none;
}
.product-card .thumb svg,
.product-card .thumb img {
  width: 58%;
  max-height: 80%;
  margin: 8% auto 0;
  object-fit: contain;
}
.badge {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
  background: var(--sample);
  color: #fff;
}
.badge.known { background: var(--known); }
.product-body { padding: 1rem 1.05rem 1.15rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.product-body h3 { margin: 0; font-size: 1.25rem; }
.product-body h3 a { color: inherit; text-decoration: none; }
.product-body h3 a:hover { color: var(--green-mid); }
.meta { font-size: 0.88rem; color: var(--ink-faint); }
.price {
  margin-top: auto;
  padding-top: 0.5rem;
  font-weight: 650;
  color: var(--green-deep);
  letter-spacing: 0.02em;
}
.product-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.6rem; }
.product-actions .btn { padding: 0.55rem 0.9rem; font-size: 0.88rem; }

/* Bands */
.band {
  background: var(--green-deep);
  color: var(--cream);
  padding: 3rem 0;
}
.band h2, .band h3 { color: var(--white); }
.band p { color: rgba(244, 238, 227, 0.86); }
.band-gold {
  background:
    linear-gradient(180deg, rgba(20,61,50,0.04), transparent),
    var(--cream);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.split-copy, .split-media { min-width: 0; }
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-soft);
}
.panel.quiet { background: var(--cream); border-color: var(--line-soft); }

.steps article {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
}
.steps .num {
  font-family: var(--font-sans);
  font-variant-numeric: lining-nums tabular-nums;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold);
  display: block;
  margin-bottom: 0.4rem;
}

.list-plain { margin: 0; padding: 0; list-style: none; }
.list-plain li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line-soft);
  padding-left: 1.15rem;
  position: relative;
}
.list-plain li::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--gold);
  position: absolute;
  left: 0;
  top: 0.95rem;
}

/* Forms */
form label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0.85rem 0 0.3rem;
  color: var(--green-deep);
}
form .req { color: var(--sample); }
input[type="text"],
input[type="tel"],
input[type="email"],
input[type="number"],
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  outline: none;
}
textarea { min-height: 8rem; resize: vertical; }
input:focus, select:focus, textarea:focus {
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(28, 87, 70, 0.15);
}
.form-note, .hint { font-size: 0.86rem; color: var(--ink-faint); margin-top: 0.35rem; }
.form-status {
  display: none;
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  background: #e7f3ec;
  color: var(--green-deep);
  border: 1px solid rgba(15, 122, 74, 0.25);
}
.form-status.is-visible { display: block; }
.form-status.is-error { background: #f8ebe8; color: var(--danger); border-color: rgba(139, 58, 42, 0.25); }

/* Product page */
.product-hero { display: grid; gap: 1.4rem; align-items: start; }
.stage {
  background: linear-gradient(180deg, #ece4d4, #f7f1e6);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  min-height: 16rem;
  display: grid;
  place-items: center;
  position: relative;
  padding: 2rem;
}
.stage svg { width: min(70%, 16rem); }
.qty-row { display: flex; align-items: center; gap: 0.7rem; margin: 1rem 0; }
.qty-row input { width: 5rem; }

/* Cart */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
  text-align: left;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border-bottom: 1px solid var(--line);
  padding: 0.5rem 0;
}
.cart-table td {
  border-bottom: 1px solid var(--line-soft);
  padding: 1rem 0;
  vertical-align: top;
}
.cart-empty { padding: 1.5rem 0; color: var(--ink-soft); }
.line-title { font-weight: 650; color: var(--green-deep); }
.remove {
  background: none;
  border: 0;
  color: var(--danger);
  cursor: pointer;
  padding: 0;
  font-size: 0.88rem;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* Contact */
.map-link {
  display: block;
  margin-top: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--cream);
  min-height: 12rem;
  position: relative;
  text-decoration: none;
  color: inherit;
}
.map-frame {
  width: 100%;
  height: 16rem;
  border: 0;
  background: var(--cream-dark);
}
.map-fallback {
  padding: 1.5rem;
}
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding: 0.55rem 0; border-bottom: 1px solid var(--line-soft); }
.contact-list a { color: var(--green-deep); font-weight: 600; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

/* Footer */
.site-footer {
  background: var(--green-deep);
  color: rgba(244, 238, 227, 0.86);
  padding: 2.6rem 0 1.4rem;
  margin-top: 0;
}
.site-footer a { color: var(--gold-soft); }
.footer-grid { display: grid; gap: 1.5rem; }
.site-footer h3, .site-footer .logo-en { color: var(--white); }
.site-footer .logo-bn { color: var(--gold-soft); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0.3rem 0; }
.legal {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(217, 196, 138, 0.2);
  font-size: 0.82rem;
  color: rgba(244, 238, 227, 0.62);
}
.proto-flag {
  display: inline-block;
  margin-bottom: 0.8rem;
  padding: 0.4rem 0.7rem;
  border: 1px dashed var(--gold);
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  border-radius: 999px;
}

/* Page hero (inner) */
.page-hero {
  padding: 2.2rem 0 1.4rem;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(20,61,50,0.05), transparent),
    var(--cream);
}
.page-hero h1 { margin-bottom: 0.45rem; }
.breadcrumb {
  font-size: 0.88rem;
  color: var(--ink-faint);
  margin-bottom: 0.8rem;
}
.breadcrumb a { color: var(--green-mid); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.notice {
  background: #f3ead3;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 0.8rem 1rem;
  border-radius: 10px;
  font-size: 0.92rem;
  margin: 1rem 0 0;
}

/* Focus */
:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 3px;
}

@media (min-width: 640px) {
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .trust { grid-template-columns: 1fr 1fr; }
  .hero-panel { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
}

@media (min-width: 900px) {
  .header-top { display: block; }
  .nav-toggle { display: none; }
  .nav {
    display: block;
    position: static;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
  }
  .nav ul { display: flex; align-items: center; gap: 0.2rem 1.15rem; }
  .nav a, .nav .has-sub summary {
    border: 0;
    padding: 0.4rem 0;
    font-size: 0.92rem;
  }
  .nav .has-sub { position: relative; border: 0; }
  .nav .has-sub summary { padding-right: 0.9rem; }
  .nav .has-sub summary::after {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    border-inline: 4px solid transparent;
    border-top: 5px solid var(--green-deep);
    margin-left: 0.35rem;
    vertical-align: middle;
  }
  .nav .sub {
    display: none;
    position: absolute;
    top: 100%;
    left: -0.8rem;
    min-width: 14rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: var(--shadow);
  }
  .nav .has-sub:hover .sub,
  .nav .has-sub:focus-within .sub,
  .nav .has-sub[open] .sub { display: block; }
  .nav .sub a { padding: 0.45rem 0.55rem; border-radius: 8px; }
  .nav .sub a:hover { background: var(--cream); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .hero { padding: 3.6rem 0 4.2rem; }
  .hero-inner {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 2.5rem;
    align-items: end;
  }
  .hero-panel { margin-top: 0; grid-template-columns: 1fr; }
  .trust { grid-template-columns: repeat(4, 1fr); padding: 1.3rem 0; }
  .split { grid-template-columns: 1.1fr 0.9fr; gap: 2rem; align-items: center; }
  .split.reverse { grid-template-columns: 0.9fr 1.1fr; }
  .split.reverse .split-media { order: -1; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .product-hero { grid-template-columns: 0.95fr 1.05fr; gap: 2.4rem; }
  .section { padding: 4rem 0; }
  .logo-en { font-size: 1.28rem; }
}

@media (min-width: 1100px) {
  .cat-grid { grid-template-columns: repeat(5, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

[hidden] { display: none !important; }
