/* BanglaMemo — single page site
   Palette follows mh_bs_theme: Bangladesh flag bottle-green + red. */
:root {
  --green: #006a4e;
  --green-dark: #00402f;
  --green-soft: #e6f2ee;
  --red: #f42a41;
  --red-dark: #c81d32;
  --red-soft: #fde9eb;
  --paper: #fffdf6;
  --ink: #1f2d27;
  --muted: #5b6b64;
  --line: #dfe8e4;
  --bg: #ffffff;
  --bg-alt: #f5f9f7;
  --radius: 14px;
  --shadow: 0 18px 40px rgba(0, 64, 47, .12);
  --font: "Inter", "Hind Siliguri", system-ui, sans-serif;
}
html[lang="bn"] { --font: "Hind Siliguri", "Inter", system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
html[lang="bn"] body { line-height: 1.75; }
img, svg { display: block; max-width: 100%; }
a { color: var(--green); text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--green-dark); }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.6em; border-radius: 999px; font-weight: 600; font-size: 1rem;
  border: 2px solid transparent; cursor: pointer; transition: .2s ease; font-family: inherit;
}
.btn-sm { padding: .55em 1.1em; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(244, 42, 65, .3); }
.btn-red:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-ghost { border-color: var(--green); color: var(--green); background: #fff; }
.btn-ghost:hover { background: var(--green); color: #fff; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }

.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--red); background: var(--red-soft); padding: .35em .9em; border-radius: 999px; margin-bottom: 1rem;
}
html[lang="bn"] .eyebrow { letter-spacing: .02em; font-size: .9rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.site-header::before { content: ""; display: block; height: 4px; background: linear-gradient(90deg, var(--green) 70%, var(--red) 70%); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand-logo { display: block; height: 40px; width: auto; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--ink); font-weight: 500; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--red); transition: .2s; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 12px; }

.lang-switch { display: flex; border: 1.5px solid var(--green); border-radius: 999px; overflow: hidden; }
.lang-switch a {
  border: 0; background: transparent; padding: .35em .8em; font-weight: 600; cursor: pointer;
  color: var(--green); font-family: "Inter", "Hind Siliguri", sans-serif; font-size: .85rem;
}
.lang-switch a.active { background: var(--green); color: #fff; }

.menu-toggle { display: none; background: none; border: 0; padding: 6px; cursor: pointer; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--green-dark); margin: 5px 0; transition: .2s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: 80px 0 100px; overflow: hidden;
  background:
    radial-gradient(circle at 85% 30%, rgba(244, 42, 65, .12) 0, transparent 30%),
    radial-gradient(circle at 10% 90%, rgba(0, 106, 78, .1) 0, transparent 40%),
    var(--bg-alt);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.3rem); font-weight: 800; letter-spacing: -.02em; }
html[lang="bn"] .hero h1 { letter-spacing: 0; font-weight: 700; }
.hl { color: var(--red); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--green-dark); font-weight: 500; }
.hero-points li::before { content: "✓"; color: #fff; background: var(--green); border-radius: 50%; width: 20px; height: 20px; display: inline-grid; place-items: center; font-size: .7rem; margin-right: 8px; }

.hero-visual { position: relative; margin-top: 30px; max-width: 420px; justify-self: center; width: 100%; }
.memo, .memo-form {
  background:
    repeating-linear-gradient(to bottom, transparent 0, transparent 27px, rgba(0, 106, 78, .07) 27px, rgba(0, 106, 78, .07) 28px),
    var(--paper);
  border-radius: 10px 10px 0 0; box-shadow: var(--shadow); position: relative;
}
.memo { transform: rotate(-2deg); }
.memo::after, .memo-form::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px;
  background:
    linear-gradient(-45deg, transparent 6px, var(--paper) 0) 0 0 / 14px 10px repeat-x,
    linear-gradient(45deg, transparent 6px, var(--paper) 0) 0 0 / 14px 10px repeat-x;
}
.memo-head {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  background: var(--green); color: #fff; padding: .75rem 1.25rem; border-radius: 10px 10px 0 0;
  border-bottom: 4px solid var(--red); font-weight: 700; letter-spacing: .06em; font-size: .9rem;
}
.memo-no { font-size: .72rem; letter-spacing: .15em; border: 1px solid rgba(255, 255, 255, .5); padding: .15em .6em; border-radius: 3px; white-space: nowrap; }
.memo-body { padding: 1.1rem 1.25rem 3.6rem; }
.memo-meta { display: flex; justify-content: space-between; font-size: .82rem; color: var(--muted); margin-bottom: .6rem; flex-wrap: wrap; gap: 4px; }
.memo table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.memo th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--green); border-bottom: 1.5px dashed rgba(0, 106, 78, .35); padding: 6px 0; }
.memo td { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.memo th:not(:first-child), .memo td:not(:first-child) { text-align: right; }
.memo tr.ret td { color: var(--red); }
.memo-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: .8rem; font-weight: 600; }
.memo-total strong { font-size: 1.4rem; color: var(--green-dark); }
.memo-words { font-size: .78rem; color: var(--muted); font-style: italic; margin: .3rem 0 0; }
.memo-stamp {
  position: absolute; right: 22px; bottom: 14px; transform: rotate(-8deg);
  border: 3px double var(--red); color: var(--red); padding: .2em .7em; font-weight: 800;
  letter-spacing: .15em; font-size: .9rem; border-radius: 6px; opacity: .85;
}
.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px; background: #fff;
  border-radius: 12px; padding: .7rem 1rem; box-shadow: var(--shadow); animation: float 5s ease-in-out infinite;
}
.float-card small { display: block; color: var(--muted); font-size: .75rem; }
.float-card strong { color: var(--green-dark); }
.fc-1 { left: -48px; bottom: -44px; }
.fc-2 { right: -40px; top: -78px; animation-delay: 1.5s; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.green { background: var(--green); box-shadow: 0 0 0 5px var(--green-soft); }
.dot.red { background: var(--red); box-shadow: 0 0 0 5px var(--red-soft); }
@keyframes float { 50% { transform: translateY(-8px); } }

/* ---------- Strip ---------- */
.strip { background: var(--green-dark); color: #fff; padding: 28px 0; }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.strip strong { display: block; font-size: 1.6rem; color: #fff; }
.strip span { color: rgba(255, 255, 255, .75); font-size: .9rem; }
.strip-grid > div:nth-child(odd) strong { color: #ff8a97; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head h2, .reports-copy h2, .contact-copy h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; }
html[lang="bn"] .section-head h2, html[lang="bn"] .reports-copy h2, html[lang="bn"] .contact-copy h2 { font-weight: 700; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px;
  transition: .25s ease; position: relative; overflow: hidden;
}
.feature::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: .3s; }
.feature:nth-child(even)::before { background: var(--red); }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.feature:hover::before { transform: scaleX(1); }
.feature h3 { font-size: 1.08rem; }
.feature p { color: var(--muted); font-size: .94rem; margin: 0; }
.ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; }
.ico svg { width: 24px; height: 24px; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico.g { background: var(--green-soft); } .ico.g svg { stroke: var(--green); }
.ico.r { background: var(--red-soft); } .ico.r svg { stroke: var(--red); }

/* Workflow */
.flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; position: relative; }
.flow::before { content: ""; position: absolute; top: 28px; left: 8%; right: 8%; border-top: 2px dashed rgba(0, 106, 78, .35); }
.flow li { text-align: center; position: relative; }
.flow .num {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px;
  background: var(--green); color: #fff; font-size: 1.4rem; font-weight: 700; font-family: "Hind Siliguri", sans-serif;
  box-shadow: 0 0 0 6px var(--bg-alt), 0 0 0 8px rgba(0, 106, 78, .2); position: relative;
}
.flow li:nth-child(even) .num { background: var(--red); }
.flow h3 { font-size: 1rem; margin-bottom: .3em; }
.flow p { font-size: .88rem; color: var(--muted); margin: 0; }

/* Reports */
.reports-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.reports-copy p { color: var(--muted); font-size: 1.05rem; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding: .4em 0 .4em 32px; position: relative; font-weight: 500; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: .45em; width: 22px; height: 22px; border-radius: 50%; background: var(--red-soft); color: var(--red); display: grid; place-items: center; font-size: .75rem; font-weight: 700; }
.report-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.report {
  display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line);
  border-left: 4px solid var(--green); border-radius: 10px; padding: .8rem 1rem; font-weight: 500; font-size: .93rem;
}
.report span { flex: 1; }
.report em { font-style: normal; font-size: .68rem; font-weight: 700; padding: .2em .5em; border-radius: 4px; background: var(--red-soft); color: var(--red); }
.report em.x { background: var(--green-soft); color: var(--green); }

/* Why */
.section-green { background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%); color: #fff; position: relative; overflow: hidden; }
.section-green::after { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: var(--red); opacity: .9; right: -140px; top: -140px; }
.section-green .container { position: relative; z-index: 1; }
.section-head.light h2 { color: #fff; }
.section-head.light .eyebrow { background: rgba(255, 255, 255, .15); color: #fff; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.why { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--radius); padding: 26px 22px; backdrop-filter: blur(4px); }
.why h3 { color: #fff; font-size: 1.1rem; }
.why h3::before { content: ""; display: block; width: 32px; height: 4px; background: var(--red); border-radius: 2px; margin-bottom: 14px; }
.why p { color: rgba(255, 255, 255, .8); font-size: .94rem; margin: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: start; }
.contact-copy p { color: var(--muted); font-size: 1.05rem; }
.contact-info { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.contact-info li { display: flex; align-items: center; gap: 14px; font-weight: 500; }
.contact-info svg { width: 42px; height: 42px; padding: 10px; border-radius: 10px; background: var(--green-soft); fill: none; stroke: var(--green); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.memo-form { margin-bottom: 10px; }
.form-body { padding: 1.5rem; display: grid; gap: 16px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: grid; gap: 6px; }
.contact-form label > span { font-weight: 600; font-size: .9rem; color: var(--green-dark); }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid rgba(0, 106, 78, .25);
  border-radius: 8px; padding: .7em .9em; transition: .2s;
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(0, 106, 78, .15); }
.contact-form .invalid { border-color: var(--red); box-shadow: 0 0 0 4px rgba(244, 42, 65, .12); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; font-weight: 500; font-size: .95rem; min-height: 1.5em; }
.form-status.ok { color: var(--green); background: var(--green-soft); padding: .7em 1em; border-radius: 8px; }
.form-status.err { color: var(--red-dark); background: var(--red-soft); padding: .7em 1em; border-radius: 8px; }

/* Footer */
.site-footer { background: #0e1d18; color: rgba(255, 255, 255, .7); padding: 56px 0 0; }
.site-footer .brand { display: inline-flex; background: #fff; padding: 8px 14px; border-radius: 12px; }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-bottom: 32px; }
.footer-grid p { max-width: 360px; margin-top: 14px; font-size: .92rem; }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; align-items: center; }
.footer-links a { color: rgba(255, 255, 255, .8); }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255, 255, 255, .1); padding: 20px; font-size: .85rem; gap: 16px; }
.flag-line { width: 80px; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--green) 60%, var(--red) 60%); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-card { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .feature-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
  .flow::before { display: none; }
}
@media (max-width: 880px) {
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0, 0, 0, .06);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav-links.open { max-height: 320px; }
  .nav-links a { padding: 14px 20px; border-top: 1px solid var(--line); }
  .nav-links a::after { display: none; }
  .menu-toggle { display: block; }
  .hero { padding: 56px 0 80px; }
  .hero-grid, .reports-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 380px; }
  .strip-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 72px 0; }
}
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .hide-sm { display: none; }
  .feature-grid, .why-grid, .report-list, .row2 { grid-template-columns: 1fr; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .fc-1 { left: -6px; bottom: -34px; }
  .fc-2 { right: -6px; top: -48px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
