@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400..700;1,9..40,400..700&family=Hind+Siliguri:wght@400;500;600;700&family=Noto+Serif+Bengali:wght@500;600;700&display=swap');

@font-face {
  font-family: 'LocalBengali';
  src: url('/assets/noto-serif-bengali-500.ttf') format('truetype');
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
}

/* Dedicated font ONLY for Bengali numerals (০-৯), Taka sign (৳), and ASCII digits (0-9) */
@font-face {
  font-family: 'BanglaDigits';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src:
    local('Nirmala UI Bold'),
    local('Nirmala UI'),
    url('https://fonts.gstatic.com/s/notosansbengali/v33/Cn-fJsCGWQxOjaGwMQ6fIiMywrNJIky6nvd8BjzVMvJx2mc4I3mYvNY.woff2') format('woff2');
  unicode-range: U+09E6-09EF, U+09F3, U+0030-0039;
}

:root {
  --font-num: 'BanglaDigits', 'Nirmala UI', sans-serif;
  --font-sans: 'BanglaDigits', 'Hind Siliguri', 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-serif: 'BanglaDigits', 'LocalBengali', 'Noto Serif Bengali', serif;
  --bg: #faf9f4;
  --surface: #ffffff;
  --surface-alt: #eff3ec;
  --surface-sage: #e7eee4;
  --ink: #15231c;
  --ink-muted: #46574e;
  --ink-subtle: #5d6f65;
  --green: #064e3b;
  --green-deep: #071f16;
  --green-mid: #0b2e21;
  --green-hover: #0a6148;
  --gold: #c99b3b;
  --gold-soft: #e8cc82;
  --gold-ink: #7c5810;
  --line: rgba(6, 78, 59, 0.11);
  --line-strong: rgba(6, 78, 59, 0.22);
  --shadow-sm: 0 4px 16px rgba(6, 31, 25, 0.06);
  --shadow-md: 0 12px 32px rgba(6, 31, 25, 0.1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 108px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variant-numeric: tabular-nums;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.icon {
  width: 18px;
  height: 18px;
  flex: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--sm {
  width: 16px;
  height: 16px;
}

.container,
.wrap {
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.skip-link,
.skip {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 2000;
  padding: 12px 16px;
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}

.skip-link:focus,
.skip:focus {
  top: 16px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Top scroll progress bar using GPU transform */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 1002;
  background: var(--gold);
  transform-origin: left center;
  transform: scaleX(0);
  pointer-events: none;
}

/* Floating frosted-glass navbar (adapted from /demo/) */
.site-nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1240px, calc(100% - 48px));
  min-height: 80px;
  padding: 10px 22px 10px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(250, 249, 244, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 38px rgba(6, 31, 25, 0.1);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  z-index: 1000;
  transition:
    transform 0.28s var(--ease),
    top 0.28s var(--ease),
    min-height 0.28s var(--ease),
    background-color 0.28s var(--ease),
    border-color 0.28s var(--ease),
    box-shadow 0.28s var(--ease);
}

.site-nav.is-scrolled {
  top: 12px;
  min-height: 72px;
  background: rgba(250, 249, 244, 0.66);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 8px 28px rgba(6, 31, 25, 0.08);
}

.site-nav.is-scrolled:hover,
.site-nav.is-scrolled:focus-within {
  background: rgba(250, 249, 244, 0.97);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 40px rgba(6, 31, 25, 0.14);
}

.site-nav .brand {
  display: inline-flex;
  align-items: center;
  flex: none;
}

.brand__logo {
  display: block;
  width: 142px;
  height: 55px;
  object-fit: contain;
  background: transparent;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.primary-nav a {
  position: relative;
  padding: 8px 0;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
  transition: color 0.2s var(--ease);
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0px;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.primary-nav a:hover,
.primary-nav a.is-active {
  color: var(--green);
}

.primary-nav a:hover::after,
.primary-nav a.is-active::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-member-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-muted);
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}

.nav-member-link:hover {
  color: var(--green);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 18px;
  background: var(--green);
  color: #ffffff;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease), transform 0.15s var(--ease), box-shadow 0.2s var(--ease);
}

.nav-cta:hover {
  background: var(--green-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(6, 78, 59, 0.25);
}

.nav-cta:active {
  transform: scale(0.98);
}

.nav-cta svg {
  color: var(--gold-soft);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
  transition: transform 0.25s var(--ease);
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.mobile-only {
  display: none;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.15s var(--ease);
}

.button:active {
  transform: scale(0.98);
}

.button--gold {
  background: var(--gold);
  color: var(--green-deep);
}

.button--gold:hover {
  background: #dec073;
}

.button--green {
  background: var(--green);
  color: #ffffff;
}

.button--green:hover {
  background: var(--green-hover);
}

.button--ghost {
  border-color: rgba(255, 255, 255, 0.36);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.button--ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.6);
}

.button--outline-light {
  border-color: rgba(255, 255, 255, 0.36);
  color: #ffffff;
  background: transparent;
}

.button--outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
}

.button--compact {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 13px;
}

/* Typography & Section Primitives */
.eyebrow,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--green);
}

.eyebrow i,
.kicker i {
  display: inline-block;
  width: 24px;
  height: 1.5px;
  background: currentColor;
}

.kicker--gold {
  color: var(--gold-ink);
}

.section {
  padding-block: 96px;
}

.section--light {
  background: var(--bg);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 48px;
  margin-bottom: 40px;
}

.section-heading h2 {
  margin: 10px 0 0;
  font-family: var(--font-serif);
  font-size: clamp(32px, 3.8vw, 50px);
  font-weight: 500;
  line-height: 1.24;
  letter-spacing: -0.01em;
  color: var(--green-mid);
}

.section-heading h2 em {
  font-style: normal;
  color: var(--green);
}

.section-heading > p {
  margin: 0;
  max-width: 380px;
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 1.8;
}

/* Footer */
.footer {
  background: var(--green-deep);
  color: #d6e4dc;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding: 64px 0;
}

.footer .brand__logo {
  width: 148px;
  height: 56px;
  filter: brightness(0) invert(1);
}

.footer__top > div:first-child p {
  max-width: 300px;
  margin: 20px 0 16px;
  color: #9db5a8;
  font-size: 14px;
  line-height: 1.75;
}

.footer h3 {
  margin: 0 0 16px;
  color: var(--gold-soft);
  font-size: 13px;
  font-weight: 600;
}

.footer__top > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer__top > div:first-child {
  display: block;
}

.footer__top a,
.footer__top small {
  display: inline-block;
  font-size: 14px;
  color: #d6e4dc;
  transition: color 0.2s var(--ease);
}

.footer__top a:hover {
  color: var(--gold-soft);
}

.footer__top small {
  color: #96ad9f;
  font-size: 12.5px;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 24px 140px 32px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: #96ad9f;
  font-size: 13px;
}

/* Floating WhatsApp Button */
.whatsapp {
  position: fixed;
  z-index: 90;
  right: 20px;
  bottom: 20px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 15px;
  border-radius: 999px;
  background: var(--green);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  box-shadow: var(--shadow-md);
  font-size: 13px;
  font-weight: 600;
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.whatsapp:hover {
  background: var(--green-hover);
  transform: translateY(-2px);
}

/* Entrance utility */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal--delay {
  transition-delay: 0.12s;
}

@media (max-width: 1050px) {
  .primary-nav {
    gap: 16px;
  }
  .primary-nav a,
  .nav-member-link {
    font-size: 13.5px;
  }
  .footer__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px;
  }
}

@media (max-width: 860px) {
  .container,
  .wrap {
    width: calc(100% - 32px);
  }
  .site-nav {
    top: 12px;
    width: calc(100% - 24px);
    min-height: 64px;
    padding: 8px 12px 8px 16px;
    gap: 12px;
  }
  .site-nav.is-scrolled {
    transform: translate(-50%, -4px);
  }
  .brand__logo {
    width: 112px;
    height: 44px;
  }
  .menu-toggle {
    display: flex;
  }
  .nav-actions {
    gap: 8px;
  }
  .nav-actions > .nav-member-link {
    display: none;
  }
  .nav-cta {
    min-height: 40px;
    padding: 8px 12px;
    font-size: 12px;
  }
  .primary-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 24px 24px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
  }
  .primary-nav.is-open {
    display: flex;
  }
  .primary-nav a {
    padding: 12px 0;
    font-size: 15px;
    border-bottom: 1px solid var(--line);
  }
  .primary-nav a::after {
    display: none;
  }
  .mobile-only {
    display: block !important;
  }
  .section {
    padding-block: 64px;
  }
  .section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
  }
  .footer__top {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 16px 16px;
    padding: 26px 0 18px;
  }
  .footer .brand__logo {
    width: 102px;
    height: 38px;
  }
  .footer__top > div:first-child {
    grid-column: 1 / -1;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .footer__top > div:first-child p {
    margin: 8px 0 8px;
    font-size: 12.5px;
    line-height: 1.5;
  }
  .footer__top > div:first-child a:not(.brand) {
    margin-right: 12px;
    font-size: 12px;
    color: var(--gold-soft);
  }
  .footer h3 {
    margin: 0 0 8px;
    font-size: 12px;
  }
  .footer__top > div {
    gap: 5px;
  }
  .footer__top a,
  .footer__top small {
    font-size: 12.5px;
    line-height: 1.38;
  }
  .footer__top > div:nth-child(4) {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }
  .footer__top > div:nth-child(4) h3 {
    margin: 0;
  }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 58px 16px 0;
    font-size: 11.5px;
  }
  .whatsapp {
    right: 14px;
    bottom: 14px;
    width: 46px;
    height: 46px;
    padding: 0;
    justify-content: center;
  }
  .whatsapp span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}
