/* KajBD — base stylesheet. Mobile first, Bangla first. */

:root {
  --green: #0f7b5f;
  --green-dark: #0a5a45;
  --green-soft: #e8f5f0;
  --amber: #e08b1e;
  --ink: #16211d;
  --body: #4a5a54;
  --line: #dde6e2;
  --bg: #ffffff;
  --bg-alt: #f6faf8;
  --danger: #c0392b;
  --radius: 12px;
  --shadow: 0 2px 14px rgba(16, 60, 45, 0.08);
  --wrap: 1120px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Hind Siliguri', 'Noto Sans Bengali', 'Kalpurush', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--body);
  background: var(--bg);
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.35; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--green); }
img { max-width: 100%; height: auto; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 18px; }
.narrow { max-width: 720px; }

/* ---------- header ---------- */

.site-head {
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 40;
}
.site-head .wrap { display: flex; align-items: center; gap: 14px; min-height: 64px; }
.brand { font-weight: 800; font-size: 1.3rem; color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.brand span { color: var(--green); }
.nav { margin-inline-start: auto; display: flex; align-items: center; gap: 6px; }
.nav a {
  color: var(--body); text-decoration: none; padding: 8px 11px;
  border-radius: 8px; font-size: .95rem;
}
.nav a:hover { background: var(--green-soft); color: var(--green-dark); }
.nav a.active { color: var(--green-dark); font-weight: 600; }
.nav-toggle {
  margin-inline-start: auto; display: none; background: none; border: 1px solid var(--line);
  border-radius: 8px; padding: 7px 11px; font-size: 1.1rem; cursor: pointer; color: var(--ink);
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: stretch; padding: 8px 12px 16px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow); margin: 0;
  }
  .nav.open { display: flex; }
  .nav a { padding: 11px 8px; }
  .nav .btn { text-align: center; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block; background: var(--green); color: #fff; text-decoration: none;
  padding: 11px 20px; border-radius: 10px; border: 1px solid var(--green);
  font-weight: 600; font-size: 1rem; cursor: pointer; font-family: inherit;
  transition: background .15s;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn.ghost { background: #fff; color: var(--green-dark); }
.btn.ghost:hover { background: var(--green-soft); }
.btn.amber { background: var(--amber); border-color: var(--amber); }
.btn.amber:hover { background: #c2760f; border-color: #c2760f; }
.btn.small { padding: 6px 13px; font-size: .88rem; border-radius: 8px; }
.btn.danger { background: var(--danger); border-color: var(--danger); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- hero + sections ---------- */

.hero { background: linear-gradient(170deg, var(--green-soft), #fff 70%); padding: 56px 0 48px; }
.hero h1 { font-size: 2.3rem; max-width: 15ch; }
.hero p.lead { font-size: 1.12rem; max-width: 54ch; }
.eyebrow {
  display: inline-block; background: #fff; border: 1px solid var(--line); color: var(--green-dark);
  border-radius: 100px; padding: 4px 14px; font-size: .85rem; font-weight: 600; margin-bottom: 16px;
}
section { padding: 52px 0; }
section.alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { max-width: 60ch; margin-bottom: 30px; }

/* ---------- grid + cards ---------- */

.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid.four { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card .rate { color: var(--green-dark); font-weight: 700; font-size: 1.05rem; }
.card .num {
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  border-radius: 50%; background: var(--green-soft); color: var(--green-dark); font-weight: 700;
  margin-bottom: 12px;
}

.price-card { display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--green); border-width: 2px; }
.price-card .amount { font-size: 1.9rem; font-weight: 800; color: var(--ink); }
.price-card .amount small { font-size: .95rem; font-weight: 500; color: var(--body); }
.price-card ul { padding-inline-start: 20px; margin: 14px 0 20px; }
.price-card li { margin-bottom: 6px; }
.price-card .btn { margin-top: auto; text-align: center; }
.tag {
  display: inline-block; background: var(--amber); color: #fff; font-size: .78rem;
  padding: 2px 10px; border-radius: 100px; font-weight: 600; margin-bottom: 8px;
}

/* ---------- stats ---------- */

.stats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.stat .n { font-size: 1.7rem; font-weight: 800; color: var(--green-dark); display: block; line-height: 1.2; }
.stat .l { font-size: .9rem; }

/* ---------- forms ---------- */

.form { display: grid; gap: 14px; }
.field label { display: block; font-weight: 600; color: var(--ink); font-size: .95rem; margin-bottom: 5px; }
.field .hint { font-size: .85rem; color: var(--body); margin: 4px 0 0; }
input[type=text], input[type=tel], input[type=email], input[type=url], input[type=password],
input[type=number], input[type=date], select, textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 1rem; color: var(--ink); background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
textarea { min-height: 110px; resize: vertical; }
fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin: 0; }
legend { font-weight: 600; color: var(--ink); font-size: .95rem; padding: 0 6px; }
.checks { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.checks label { display: flex; gap: 9px; align-items: flex-start; font-weight: 400; cursor: pointer; }
.checks input { margin-top: 6px; }
.two-col { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (max-width: 620px) { .two-col { grid-template-columns: 1fr; } }

.msg { padding: 11px 15px; border-radius: 10px; font-size: .95rem; margin: 0; }
.msg.ok { background: var(--green-soft); color: var(--green-dark); border: 1px solid #bfe3d6; }
.msg.err { background: #fdecea; color: #922; border: 1px solid #f5c6c2; }
.msg:empty { display: none; }

/* ---------- tables ---------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { text-align: start; padding: 10px 13px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg-alt); color: var(--ink); font-weight: 600; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }

.pill { display: inline-block; padding: 2px 10px; border-radius: 100px; font-size: .8rem; font-weight: 600; }
.pill.pending { background: #fff4e0; color: #8a5a06; }
.pill.active, .pill.approved, .pill.open { background: var(--green-soft); color: var(--green-dark); }
.pill.submitted, .pill.claimed { background: #e7f0fb; color: #1f5fa8; }
.pill.rejected, .pill.suspended, .pill.closed { background: #fdecea; color: #922; }
.pill.draft { background: #eee; color: #555; }

/* ---------- tabs ---------- */

.tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.tabs button {
  background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 14px;
  font-family: inherit; font-size: 1rem; color: var(--body); cursor: pointer;
}
.tabs button.active { color: var(--green-dark); border-bottom-color: var(--green); font-weight: 600; }
.panel[hidden] { display: none; }

/* ---------- faq ---------- */

details { border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; background: #fff; margin-bottom: 10px; }
details summary { cursor: pointer; font-weight: 600; color: var(--ink); }
details[open] summary { margin-bottom: 10px; }

/* ---------- notice ---------- */

.notice {
  background: #fff9ec; border: 1px solid #f0dcb0; border-radius: var(--radius);
  padding: 16px 20px; margin: 22px 0;
}
.notice strong { color: #7a5307; }

/* ---------- footer ---------- */

.site-foot { background: var(--ink); color: #b9c9c3; padding: 44px 0 26px; margin-top: 20px; font-size: .93rem; }
.site-foot h4 { color: #fff; font-size: 1rem; margin-bottom: .7em; }
.site-foot a { color: #b9c9c3; text-decoration: none; display: block; padding: 3px 0; }
.site-foot a:hover { color: #fff; }
.foot-grid { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.foot-bottom { border-top: 1px solid #2b3a34; margin-top: 30px; padding-top: 18px; font-size: .88rem; }

.muted { color: var(--body); font-size: .92rem; }
.center { text-align: center; }
.mt0 { margin-top: 0; }
.mb0 { margin-bottom: 0; }

/* ---------- two-door homepage ---------- */

.doors-wrap { padding-top: 0; margin-top: -26px; }
.grid.two.doors { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.door { display: flex; flex-direction: column; padding: 26px 24px 22px; }
.door h2 { font-size: 1.28rem; margin-bottom: .5em; }
.door .btn-row { margin-top: auto; padding-top: 4px; }
.door-tag {
  display: inline-block; align-self: flex-start; background: var(--green-soft);
  color: var(--green-dark); border-radius: 100px; padding: 4px 14px;
  font-size: .85rem; font-weight: 700; margin-bottom: 14px;
}
.door-tag.alt { background: #fdf1de; color: #8a5a06; }
.door-foot { font-size: .88rem; color: var(--body); margin: 14px 0 0; }

.ticks { list-style: none; padding: 0; margin: 0 0 20px; }
.ticks li { position: relative; padding-inline-start: 26px; margin-bottom: 8px; }
.ticks li::before {
  content: "✓"; position: absolute; inset-inline-start: 0; top: 0;
  color: var(--green); font-weight: 700;
}

/* ---------- rate table helpers ---------- */

.rate-note { font-size: .88rem; color: var(--body); margin: 8px 0 0; }
td.num-cell, th.num-cell { text-align: end; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-card .tag { align-self: flex-start; }
