/* BhorTech public site */
:root {
  --night: #0F1B3D;
  --night-2: #2A3B6E;
  --amber: #F5A43A;
  --amber-h: #FFB652;
  --rose: #B8677F;

  --bg: #F6F8FC;
  --surface: #FFFFFF;
  --alt: #EDF1F8;
  --ink: #14203A;
  --muted: #55627D;
  --line: #DCE3EF;
  --link: #9A4F00;
  --tint: #FFF3DF;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(15, 27, 61, .06), 0 8px 24px rgba(15, 27, 61, .06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1430;
    --surface: #131F3F;
    --alt: #0F1935;
    --ink: #EEF2FA;
    --muted: #9AA8C4;
    --line: #263455;
    --link: #F5B24E;
    --tint: #1A2547;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; background: var(--night); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Hind Siliguri", "Noto Sans Bengali", "Kalpurush", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.75;
}
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: "Tiro Bangla", "Noto Serif Bengali", Georgia, serif; font-weight: 400; line-height: 1.3; margin: 0; }
h2 { font-size: clamp(1.7rem, 4.4vw, 2.4rem); }
h3, .h3 { font-size: 1.35rem; font-family: "Tiro Bangla", "Noto Serif Bengali", Georgia, serif; font-weight: 400; line-height: 1.35; margin: 0; }
p { margin: 0 0 1em; }
a { color: var(--link); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}
.wrap { max-width: 1160px; margin: 0 auto; padding-inline: 20px; }
.wrap.narrow { max-width: 780px; }
.center { text-align: center; }
.skip { position: absolute; left: -9999px; top: 8px; background: #fff; color: #000; padding: 8px 14px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 10px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  text-align: center;
}
.btn.block { display: block; width: 100%; margin-top: 10px; }
.btn-amber { background: var(--amber); color: #14203A; }
.btn-amber:hover { background: var(--amber-h); }
.btn-dark { background: var(--night); color: #fff; }
.btn-dark:hover { background: var(--night-2); }
.btn-ghost { color: #fff; background: rgba(15, 27, 61, .35); border-color: rgba(255, 255, 255, .5); }
.btn-ghost:hover { background: rgba(15, 27, 61, .55); }
.btn-outline { color: var(--ink); border-color: var(--line); background: var(--surface); }
.btn-outline:hover { border-color: var(--amber); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--night); color: #fff;
  padding-top: env(safe-area-inset-top, 0px);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand img { display: block; height: 36px; width: auto; }
.wordmark { font-weight: 700; font-size: 1.3rem; letter-spacing: .01em; }
.nav-toggle { background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; border-radius: 8px; }
.nav {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  flex-direction: column; gap: 4px;
  background: var(--night);
  padding: 8px 20px 20px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.nav.open { display: flex; }
.nav a { color: #E6ECF9; text-decoration: none; padding: 10px 0; font-weight: 500; }
.nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 6px; }
.nav a[aria-current="page"]:not(.btn) { color: #FFC46B; }
.nav .nav-cta { margin-top: 8px; color: #14203A; }
.nav .nav-cta:hover { color: #14203A; text-decoration: none; }
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav { display: flex; position: static; flex-direction: row; align-items: center; gap: 28px; background: none; padding: 0; border: 0; }
  .nav a { padding: 6px 0; }
  .nav .nav-cta { margin: 0; padding: 9px 20px; }
}

/* ---------- Hero ---------- */
.hero-top {
  background: linear-gradient(180deg, #0F1B3D 0%, #2A3B6E 68%, #B8677F 100%);
  color: #fff;
  padding: 56px 0 72px;
}
.hero h1 { font-size: clamp(2.2rem, 7vw, 4rem); line-height: 1.28; max-width: 15em; text-wrap: balance; }
.hero .lead { margin: 20px 0 0; max-width: 36em; font-size: 1.15rem; color: #E6ECF9; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.scene { display: block; width: 100%; height: clamp(260px, 52vw, 400px); background: #B8677F; }
.sun { animation: rise 2.8s cubic-bezier(.16, .7, .2, 1) both; }
.refl { animation: fade 2.2s .9s ease-out both; }
@keyframes rise { from { transform: translateY(120px); } to { transform: translateY(0); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Stats ---------- */
.stats { background: var(--night); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 20px; margin: 0; padding: 28px 0; }
.stats-grid div { display: flex; flex-direction: column-reverse; }
.stats-grid dd { margin: 0; font-size: 2rem; font-weight: 700; color: #FFC46B; line-height: 1.2; }
.stats-grid dt { color: #C9D3E8; font-size: .95rem; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--alt); }
.section-head { margin-bottom: 36px; }
.section-head p { color: var(--muted); max-width: 40em; margin: 10px 0 0; }
.section-head.row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; }
.ext { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; color: var(--link); }
.ext:hover { text-decoration: underline; text-underline-offset: 4px; }
.ext svg { transition: transform .2s ease; }
.ext:hover svg { transform: translate(2px, -2px); }
.split { display: grid; gap: 40px; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
  .split-wide { grid-template-columns: 1.8fr 1fr; }
}
.big { font-size: 1.2rem; margin-top: 16px; }
.sub-h { margin-bottom: 12px; }

/* ---------- Page head ---------- */
.page-head { background: linear-gradient(180deg, #0F1B3D 0%, #2A3B6E 100%); color: #fff; padding: 40px 0 48px; }
.page-head h1 { font-size: clamp(1.9rem, 5.6vw, 3rem); max-width: 20em; text-wrap: balance; }
.page-head .lead { margin: 14px 0 0; max-width: 38em; color: #D9E2F4; font-size: 1.1rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0; font-size: .92rem; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .55; }
.crumbs a { color: #FFC46B; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- Service cards ---------- */
.svc-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }
.svc-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex; flex-direction: column;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.svc-card:hover { border-color: var(--amber); box-shadow: var(--shadow); }
.ico {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--tint); color: var(--link);
  margin-bottom: 16px;
}
.svc-cat { font-size: .9rem; color: var(--muted); margin: 0 0 4px; }
.svc-card h3 a, .svc-card h2 a { color: var(--ink); text-decoration: none; }
.svc-card h3 a:hover, .svc-card h2 a:hover { text-decoration: underline; text-underline-offset: 5px; }
.svc-desc { color: var(--muted); margin: 8px 0 20px; flex: 1; }
.svc-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.badge { font-size: .85rem; padding: 2px 10px; border-radius: 999px; line-height: 1.6; }
.badge-live { background: #E4F6EA; color: #0B6B33; }
.badge-soon { background: var(--tint); color: var(--link); border: 1px dashed var(--amber); }
@media (prefers-color-scheme: dark) { .badge-live { background: #12351F; color: #6FD59A; } }

/* ---------- About / why ---------- */
.why { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.why li { display: flex; flex-direction: column; padding-left: 18px; border-left: 3px solid var(--amber); }
.why strong { font-weight: 600; }
.why span { color: var(--muted); }
.why-lg { margin-top: 24px; }
.mv { display: grid; gap: 20px; }
@media (min-width: 800px) { .mv { grid-template-columns: 1fr 1fr; } }
.mv-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.mv-card h3 { margin-bottom: 8px; }
.mv-card p { margin: 0; color: var(--muted); }

/* ---------- Leadership ---------- */
.leaders { display: grid; gap: 24px; }
@media (min-width: 800px) { .leaders { grid-template-columns: repeat(2, 1fr); } }
.leader { display: grid; gap: 20px; grid-template-columns: 96px 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; align-items: start; }
.leader-photo img, .avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; display: block; }
.avatar { display: grid; place-items: center; background: linear-gradient(135deg, var(--night-2), var(--rose)); color: #fff; font-size: 1.8rem; font-family: "Tiro Bangla", serif; }
.leader-title { color: var(--link); font-weight: 600; margin: 2px 0 12px; }
.leader-quote { margin: 0 0 12px; padding-left: 14px; border-left: 3px solid var(--amber); color: var(--muted); font-style: normal; }
.leader-links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 12px 0 0; padding: 0; font-size: .95rem; }
.leaders-full { grid-template-columns: 1fr; }
.leader-full { grid-template-columns: 1fr; }
@media (min-width: 700px) {
  .leader-full { grid-template-columns: 200px 1fr; gap: 32px; padding: 32px; }
  .leader-full .leader-photo img, .leader-full .avatar { width: 200px; height: 200px; border-radius: 16px; font-size: 3.4rem; }
}

/* ---------- Blog ---------- */
.post-grid { display: grid; gap: 24px; }
@media (min-width: 640px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.post-cover { display: block; aspect-ratio: 16 / 9; background: var(--alt); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-ph { width: 100%; height: 100%; display: grid; place-items: center; font-family: "Tiro Bangla", serif; font-size: 3rem; color: #FFE9B8; background: linear-gradient(135deg, var(--night), var(--night-2) 55%, var(--rose)); }
.post-body { padding: 20px 22px 24px; }
.post-body h3 a { color: var(--ink); text-decoration: none; }
.post-body h3 a:hover { text-decoration: underline; text-underline-offset: 5px; }
.post-body p { color: var(--muted); margin: 8px 0 0; }
.post-meta { color: var(--muted); font-size: .9rem; margin: 0 0 6px; }
.big-meta { font-size: 1rem; margin-bottom: 20px; }
.post-hero { width: 100%; border-radius: var(--radius); margin-bottom: 28px; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 32px 0 0; }
.tags li { background: var(--tint); padding: 2px 12px; border-radius: 999px; font-size: .9rem; }
.share { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 40px; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* ---------- Prose ---------- */
.prose { max-width: 70ch; }
.prose-lg { font-size: 1.125rem; line-height: 1.9; max-width: none; }
.prose h2 { font-size: 1.7rem; margin: 1.6em 0 .5em; }
.prose h3 { font-size: 1.35rem; margin: 1.4em 0 .4em; }
.prose h4 { font-size: 1.1rem; margin: 1.2em 0 .3em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--amber); color: var(--muted); }
.prose img { border-radius: 10px; }
.prose table { border-collapse: collapse; width: 100%; margin: 1.2em 0; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.prose pre { background: var(--night); color: #E6ECF9; padding: 16px; border-radius: 10px; overflow-x: auto; }

/* ---------- FAQ ---------- */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--link); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--night) 0%, var(--night-2) 60%, var(--rose) 130%); color: #fff; padding: 56px 0; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { color: #fff; }
.cta-band p { margin: 8px 0 0; color: #D9E2F4; max-width: 34em; }

/* ---------- Contact ---------- */
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.row2 { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .row2 { grid-template-columns: 1fr 1fr; } }
.fld { margin-bottom: 16px; }
.fld label { display: block; font-weight: 600; margin-bottom: 6px; }
.fld input, .fld textarea {
  width: 100%; padding: 11px 14px; font: inherit; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
}
.fld textarea { resize: vertical; min-height: 140px; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.notice { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; }
.notice-ok { background: #E4F6EA; color: #0B6B33; }
.notice-err { background: #FDE8E6; color: #8C1D18; }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.info { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 16px; }
.info li { display: flex; gap: 14px; align-items: flex-start; }
.info small { display: block; color: var(--muted); }
.info-ico { flex: none; width: 38px; height: 38px; border-radius: 10px; background: var(--tint); color: var(--link); display: grid; place-items: center; }

/* ---------- 404 ---------- */
.big-404 { font-family: "Tiro Bangla", serif; font-size: clamp(4rem, 18vw, 8rem); line-height: 1; margin: 0; color: var(--amber); }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: #C9D3E8; padding: 56px 0 calc(28px + env(safe-area-inset-bottom, 0px)); }
.foot-grid { display: grid; gap: 32px; }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1.2fr; } }
.foot-brand { color: #fff; font-weight: 700; font-size: 1.4rem; }
.foot-text { margin: 8px 0 20px; max-width: 26em; }
.foot-h { color: #fff; font-weight: 600; margin: 0 0 10px; }
.foot-links, .social { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.social { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.site-footer a { color: #E6ECF9; text-decoration: none; }
.site-footer a:hover { color: #FFC46B; text-decoration: underline; }
.foot-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .92rem; }

/* ---------- Chat widget ---------- */
.bt-chat { position: fixed; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 60; }
.bt-chat-toggle {
  width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--amber); color: #14203A; display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(15, 27, 61, .35);
}
.bt-chat-toggle:hover { background: var(--amber-h); }
.bt-chat-toggle .i-close { display: none; }
.bt-chat.open .bt-chat-toggle .i-open { display: none; }
.bt-chat.open .bt-chat-toggle .i-close { display: inline-flex; }
.bt-chat-panel {
  position: absolute; right: 0; bottom: 70px;
  width: min(380px, calc(100vw - 32px));
  height: min(560px, calc(100vh - 130px));
  height: min(560px, calc(100dvh - 130px));
  display: flex; flex-direction: column;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  box-shadow: 0 16px 48px rgba(15, 27, 61, .3);
}
.bt-chat-panel[hidden] { display: none; }
.bt-chat-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; background: var(--night); color: #fff; padding: 14px 16px; }
.bt-chat-head strong { display: block; font-size: 1.05rem; }
.bt-chat-head small { display: block; color: #B9C5DE; line-height: 1.4; margin-top: 2px; }
.bt-chat-x { background: none; border: 0; color: #fff; cursor: pointer; padding: 4px; border-radius: 6px; }
.bt-chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.bt-msg { max-width: 86%; padding: 10px 14px; border-radius: 14px; line-height: 1.6; white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere; font-size: .98rem; }
.bt-msg a { color: inherit; text-decoration: underline; }
.bt-msg.bot { background: var(--surface); border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.bt-msg.me { background: var(--night); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.bt-typing { display: inline-flex; gap: 4px; }
.bt-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.bt-typing i:nth-child(2) { animation-delay: .2s; }
.bt-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.bt-chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: var(--surface); align-items: flex-end; }
.bt-chat-form textarea { flex: 1; resize: none; max-height: 110px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; color: var(--ink); background: var(--bg); }
.bt-chat-form button { flex: none; width: 44px; height: 44px; border-radius: 10px; border: 0; background: var(--amber); color: #14203A; cursor: pointer; display: grid; place-items: center; }
.bt-chat-form button:disabled { opacity: .5; cursor: default; }
.bt-chat-human { display: block; text-align: center; padding: 8px; font-size: .9rem; border-top: 1px solid var(--line); background: var(--surface); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sun, .refl { animation: none; }
  .bt-typing i { animation: none; opacity: .6; }
  .ext svg { transition: none; }
}
