/* ==========================================================================
   একসেবা (EkSeba) — Design System
   File: assets/css/style.css
   Structure:  1) Fonts  2) Tokens  3) Reset/Base  4) Layout  5) Components
               6) Sections  7) Pages  8) Motion  9) Responsive
   Note: টোকেনগুলো CSS variable, তাই Next.js/Tailwind-এ ম্যাপ করা সহজ।
   ========================================================================== */

/* ---------------------------------------------- 1) FONTS — সোলাইমানলিপি -- */
@font-face {
  font-family: 'SolaimanLipi';
  src: local('SolaimanLipi'), local('Solaiman Lipi'),
       url('https://cdn.jsdelivr.net/gh/maateen/bangla-web-fonts@master/fonts/solaiman-lipi/SolaimanLipi.woff2') format('woff2'),
       url('https://fonts.maateen.me/solaiman-lipi/SolaimanLipi.woff2') format('woff2'),
       url('https://fonts.maateen.me/solaiman-lipi/SolaimanLipi.woff') format('woff'),
       url('https://fonts.maateen.me/solaiman-lipi/SolaimanLipi.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ------------------------------------------------------- 2) TOKENS ------ */
:root {
  /* Brand — গাঢ় সবুজ (বাংলাদেশ) */
  --brand-50:  #E0F7F5;
  --brand-100: #B2DFDB;
  --brand-200: #80CBC4;
  --brand-300: #4DB6AC;
  --brand-400: #26A69A;
  --brand-500: #00897B;
  --brand-600: #00796B;
  --brand-700: #00695C;
  --brand-800: #0D4F48;
  --brand-900: #06332E;

  /* Accent — সোনালি ও টেরাকোটা */
  --gold-300: #FFE0B2;
  --gold-400: #FF9800;
  --gold-500: #F57C00;
  --terra-500: #FF7043;

  /* Status */
  --success: #4CAF50;
  --warning: #FB8C00;
  --danger:  #F44336;
  --info:    #0097A7;

  /* Neutrals */
  --ink-900: #1A1A1A;
  --ink-800: #262626;
  --ink-700: #333333;
  --ink-600: #555555;
  --ink-500: #666666;
  --ink-400: #888888;
  --ink-300: #AAAAAA;

  /* Surfaces */
  --canvas:      #F8FAFA;
  --canvas-alt:  #F1F5F5;
  --surface:     #FFFFFF;
  --surface-2:   #F8FAFA;
  --line:        #E0E0E0;
  --line-strong: #D2DCDB;

  --fg:      var(--ink-900);
  --fg-soft: var(--ink-500);
  --fg-mute: var(--ink-400);

  /* Radius */
  --r-xs: 8px;  --r-sm: 12px;  --r-md: 16px;
  --r-lg: 22px; --r-xl: 30px;  --r-pill: 999px;

  /* Shadow — সবুজ আভাযুক্ত নরম ছায়া */
  --sh-1: 0 1px 2px rgba(0, 105, 92, .06), 0 1px 3px rgba(0, 105, 92, .05);
  --sh-2: 0 4px 12px rgba(0, 105, 92, .07), 0 2px 4px rgba(0, 105, 92, .04);
  --sh-3: 0 14px 34px rgba(0, 105, 92, .10), 0 4px 10px rgba(0, 105, 92, .05);
  --sh-4: 0 28px 60px rgba(0, 105, 92, .14), 0 8px 20px rgba(0, 105, 92, .06);
  --sh-focus: 0 0 0 3px var(--brand-200), 0 0 0 5px rgba(0,137,123,.18);

  /* Spacing */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;
  --sp-9: 88px; --sp-10: 120px;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;

  /* Type — বাংলার জন্য উদার line-height */
  --font: 'SolaimanLipi', 'Noto Sans Bengali', 'Kalpurush', 'Nikosh', 'Hind Siliguri', system-ui, sans-serif;
  --lh-tight: 1.35;
  --lh-body: 1.85;

  --t-display: clamp(2.15rem, 1.35rem + 3.4vw, 4rem);
  --t-h1: clamp(1.9rem, 1.3rem + 2.4vw, 3rem);
  --t-h2: clamp(1.6rem, 1.2rem + 1.6vw, 2.35rem);
  --t-h3: clamp(1.25rem, 1.05rem + .8vw, 1.6rem);
  --t-lead: clamp(1.02rem, .96rem + .4vw, 1.2rem);
  --t-body: 1rem;
  --t-sm: .92rem;
  --t-xs: .82rem;

  --ease: cubic-bezier(.22, .8, .3, 1);
  --dur: .28s;

  /* নকশি মোটিফ (jamdani-inspired) */
  --motif: radial-gradient(circle at center, rgba(0,137,123,.10) 1.6px, transparent 1.7px);
  --motif-size: 22px 22px;
}

/* ---- Dark theme ---- */
:root[data-theme="dark"] {
  --canvas:      #121415;
  --canvas-alt:  #17191A;
  --surface:     #1C1C1E;
  --surface-2:   #232527;
  --line:        #2C2F31;
  --line-strong: #3A3E40;

  --fg:      #ECEFEF;
  --fg-soft: #B4BCBC;
  --fg-mute: #8A9392;

  --brand-50:  #10302C;
  --brand-100: #14403A;
  --brand-200: #1E5C53;

  --sh-1: 0 1px 2px rgba(0,0,0,.5);
  --sh-2: 0 4px 14px rgba(0,0,0,.45);
  --sh-3: 0 16px 36px rgba(0,0,0,.5);
  --sh-4: 0 30px 64px rgba(0,0,0,.6);
  --sh-focus: 0 0 0 3px rgba(38,166,154,.35), 0 0 0 5px rgba(0,137,123,.2);

  --motif: radial-gradient(circle at center, rgba(77,182,172,.12) 1.6px, transparent 1.7px);
  color-scheme: dark;
}

/* --------------------------------------------------- 3) RESET / BASE ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  color: var(--fg);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

h1, h2, h3, h4, h5 { line-height: var(--lh-tight); font-weight: 700; letter-spacing: 0; }
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); }
p  { color: var(--fg-soft); }

a { color: inherit; text-decoration: none; }
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }
table { border-collapse: collapse; width: 100%; }

:focus-visible {
  outline: none;
  box-shadow: var(--sh-focus);
  border-radius: var(--r-xs);
}

::selection { background: var(--brand-300); color: #06332E; }

/* Skip link — অ্যাক্সেসিবিলিটি */
.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 999;
  background: var(--brand-600); color: #fff;
  padding: 10px 18px; border-radius: var(--r-pill);
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 12px; }

/* ------------------------------------------------------- 4) LAYOUT ------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(56px, 7vw, 104px); position: relative; }
.section--tight { padding-block: clamp(40px, 5vw, 72px); }
.section--alt { background: var(--canvas-alt); }
.section--motif::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--motif); background-size: var(--motif-size);
  opacity: .55; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.section > .container { position: relative; z-index: 1; }

.grid { display: grid; gap: var(--sp-5); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.stack { display: flex; flex-direction: column; gap: var(--sp-4); }
.row { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.measure { max-width: 62ch; }
.hide { display: none !important; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* --------------------------------------------------- 5) COMPONENTS ------ */

/* ---- Icon (SVG sprite) ---- */
.icon {
  width: 22px; height: 22px;
  stroke: currentColor; fill: none;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  flex: none;
}
.icon--sm { width: 18px; height: 18px; stroke-width: 1.9; }
.icon--lg { width: 28px; height: 28px; stroke-width: 1.6; }
.icon--xl { width: 34px; height: 34px; stroke-width: 1.5; }

/* ---- Section head ---- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--t-xs); color: var(--brand-600);
  background: var(--brand-50); border: 1px solid var(--brand-100);
  padding: 6px 14px; border-radius: var(--r-pill);
}
:root[data-theme="dark"] .eyebrow { color: var(--brand-300); }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-400); }

.sec-head { max-width: 640px; margin-bottom: var(--sp-6); }
.sec-head.center { margin-inline: auto; }
.sec-head h2 { margin-top: var(--sp-3); }
.sec-head p { margin-top: var(--sp-3); font-size: var(--t-lead); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 24px; border-radius: var(--r-pill);
  font-size: var(--t-sm); font-weight: 700; line-height: 1.2;
  border: 1px solid transparent; cursor: pointer; position: relative;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(140deg, var(--brand-500), var(--brand-700));
  color: #fff; box-shadow: var(--sh-2);
}
.btn--primary:hover { box-shadow: 0 12px 26px rgba(0,121,107,.32); }

.btn--gold {
  background: linear-gradient(140deg, var(--gold-400), var(--gold-500));
  color: #4E2C00; box-shadow: var(--sh-2);
}
.btn--ghost {
  background: var(--surface); color: var(--fg);
  border-color: var(--line-strong); box-shadow: var(--sh-1);
}
.btn--ghost:hover { border-color: var(--brand-300); color: var(--brand-600); }
:root[data-theme="dark"] .btn--ghost:hover { color: var(--brand-300); }

.btn--quiet { background: transparent; color: var(--fg-soft); padding-inline: 12px; }
.btn--quiet:hover { color: var(--brand-600); }

.btn--on-dark { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.28); }
.btn--on-dark:hover { background: rgba(255,255,255,.2); }

.btn--sm { padding: 9px 16px; font-size: var(--t-xs); }
.btn--lg { padding: 16px 32px; font-size: var(--t-body); }
.btn--block { width: 100%; }
.btn--icon { padding: 11px; border-radius: 50%; }

/* ---- Badge ---- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--t-xs); padding: 5px 12px; border-radius: var(--r-pill);
  background: var(--brand-50); color: var(--brand-600); border: 1px solid var(--brand-100);
}
.badge--gold  { background: #FFF3E0; color: #E65100; border-color: #FFE0B2; }
.badge--green { background: #E8F5E9; color: #00796B; border-color: #C8E6C9; }
.badge--red   { background: #FFEBEE; color: #C62828; border-color: #FFCDD2; }
.badge--blue  { background: #E0F7FA; color: #00838F; border-color: #B2EBF2; }
:root[data-theme="dark"] .badge--gold  { background: #33270A; color: var(--gold-300); border-color: #4D3B10; }
:root[data-theme="dark"] .badge--green { background: #10302C; color: var(--brand-300); border-color: #1E5C53; }
:root[data-theme="dark"] .badge--red   { background: #331717; color: #EF9A9A; border-color: #4D2222; }
:root[data-theme="dark"] .badge--blue  { background: #0E2E33; color: #80DEEA; border-color: #17454B; }

/* ---- Card ---- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  box-shadow: var(--sh-1);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.card--flat { box-shadow: none; }
.card--pad-lg { padding: clamp(24px, 3vw, 40px); }

/* ---- Topbar ---- */
.topbar { background: var(--brand-800); color: rgba(255,255,255,.78); font-size: var(--t-xs); }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); min-height: 42px; }
.topbar a { display: inline-flex; align-items: center; gap: 7px; padding: 4px 0; }
.topbar a:hover { color: #fff; }
.topbar__left, .topbar__right { display: flex; align-items: center; gap: var(--sp-5); }
.topbar .sep { width: 1px; height: 16px; background: rgba(255,255,255,.2); }

/* ---- Header ---- */
.header {
  position: sticky; top: 0; z-index: 90;
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.header.is-stuck { border-bottom-color: var(--line); box-shadow: var(--sh-2); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); min-height: var(--header-h); }

/* ---- Logo ---- */
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo__mark {
  width: 44px; height: 44px; border-radius: 14px; flex: none;
  background: linear-gradient(145deg, var(--brand-400), var(--brand-700));
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 6px 16px rgba(0,105,92,.28);
  position: relative; overflow: hidden;
}
.logo__mark::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.4), transparent 55%);
}
.logo__mark svg { width: 26px; height: 26px; position: relative; z-index: 1; }
.logo__text { display: flex; flex-direction: column; line-height: 1.3; }
.logo__name { font-size: 1.35rem; font-weight: 700; color: var(--fg); }
.logo__name span { color: var(--brand-500); }
.logo__tag { font-size: .7rem; color: var(--fg-mute); }

/* ---- Nav ---- */
.nav { display: flex; align-items: center; gap: 2px; }
.nav__link {
  position: relative; padding: 10px 15px; border-radius: var(--r-pill);
  font-size: var(--t-sm); color: var(--fg-soft);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav__link:hover { color: var(--brand-600); background: var(--brand-50); }
:root[data-theme="dark"] .nav__link:hover { color: var(--brand-300); }
.nav__link.is-active { color: var(--brand-600); font-weight: 700; }
:root[data-theme="dark"] .nav__link.is-active { color: var(--brand-300); }
.nav__link.is-active::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; transform: translateX(-50%);
  width: 20px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--brand-400), var(--gold-400));
}
.header__actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong); color: var(--fg-soft); background: var(--surface);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.theme-toggle:hover { color: var(--brand-500); border-color: var(--brand-300); transform: rotate(-18deg); }
.theme-toggle .icon--moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon--sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon--moon { display: block; }

/* ---- Burger ---- */
.burger {
  width: 44px; height: 44px; border-radius: 14px; display: none; place-items: center;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--fg);
}
.burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.burger span + span { margin-top: 4px; }
body.nav-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .burger span:nth-child(2) { opacity: 0; }
body.nav-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---- Mobile drawer ---- */
.drawer { position: fixed; inset: 0; z-index: 100; visibility: hidden; pointer-events: none; }
.drawer__scrim {
  position: absolute; inset: 0; background: rgba(6,51,46,.45);
  opacity: 0; transition: opacity var(--dur) var(--ease); backdrop-filter: blur(2px);
}
.drawer__panel {
  position: absolute; top: 0; right: 0; height: 100%;
  width: min(86vw, 340px); background: var(--surface);
  box-shadow: var(--sh-4); padding: var(--sp-5);
  transform: translateX(100%); transition: transform .34s var(--ease);
  display: flex; flex-direction: column; gap: var(--sp-4); overflow-y: auto;
}
body.nav-open .drawer { visibility: visible; pointer-events: auto; }
body.nav-open .drawer__scrim { opacity: 1; }
body.nav-open .drawer__panel { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; }
.drawer__close { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--fg-soft); }
.drawer__nav { display: flex; flex-direction: column; gap: 4px; margin-top: var(--sp-3); }
.drawer__nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px; border-radius: var(--r-sm);
  color: var(--fg-soft); font-size: 1.02rem;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.drawer__nav a:hover, .drawer__nav a.is-active { background: var(--brand-50); color: var(--brand-600); font-weight: 700; }
:root[data-theme="dark"] .drawer__nav a:hover, :root[data-theme="dark"] .drawer__nav a.is-active { color: var(--brand-300); }
.drawer__nav a .icon { color: var(--brand-500); }
.drawer__foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: var(--sp-4); border-top: 1px solid var(--line); }

/* ---- Form fields ---- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field__label { font-size: var(--t-sm); font-weight: 700; color: var(--fg); }
.field__label .req { color: var(--danger); }
.field__hint { font-size: var(--t-xs); color: var(--fg-mute); }
.field__error { font-size: var(--t-xs); color: var(--danger); display: none; align-items: center; gap: 6px; }
.field.has-error .field__error { display: flex; }
.field.has-error .input, .field.has-error .select { border-color: var(--danger); }

.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap > .icon { position: absolute; left: 15px; color: var(--fg-mute); pointer-events: none; }
.input-wrap > .icon ~ .input { padding-left: 46px; }

.input, .select, .textarea {
  width: 100%; padding: 13px 16px;
  background: var(--surface); color: var(--fg);
  border: 1.5px solid var(--line-strong); border-radius: var(--r-sm);
  font-size: var(--t-sm); line-height: 1.6;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--fg-mute); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--brand-400); box-shadow: 0 0 0 4px rgba(0,137,123,.14);
}
.textarea { resize: vertical; min-height: 130px; }
.select {
  appearance: none; padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23888888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 8l5 5 5-5'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center;
}
.check { display: flex; align-items: flex-start; gap: 10px; font-size: var(--t-sm); color: var(--fg-soft); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--brand-500); flex: none; }

/* ---- Tabs ---- */
.tabs { display: flex; gap: 6px; padding: 6px; background: var(--canvas-alt); border-radius: var(--r-pill); border: 1px solid var(--line); flex-wrap: wrap; }
.tab {
  padding: 10px 20px; border-radius: var(--r-pill); font-size: var(--t-sm);
  color: var(--fg-soft); transition: all var(--dur) var(--ease); display: inline-flex; align-items: center; gap: 8px;
}
.tab:hover { color: var(--brand-600); }
.tab.is-active { background: var(--surface); color: var(--brand-600); font-weight: 700; box-shadow: var(--sh-1); }
:root[data-theme="dark"] .tab.is-active { color: var(--brand-300); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fadeUp .4s var(--ease); }

/* ---------------------------------------------------- 6) SECTIONS ------- */

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; padding-block: clamp(48px, 6vw, 96px) clamp(64px, 8vw, 120px); }
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__bg::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--motif); background-size: var(--motif-size); opacity: .7;
  -webkit-mask-image: radial-gradient(120% 90% at 70% 10%, #000, transparent 70%);
          mask-image: radial-gradient(120% 90% at 70% 10%, #000, transparent 70%);
}
.hero__blob {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5;
}
.hero__blob--1 { width: 460px; height: 460px; right: -120px; top: -160px; background: radial-gradient(circle, var(--brand-300), transparent 70%); }
.hero__blob--2 { width: 380px; height: 380px; left: -140px; bottom: -180px; background: radial-gradient(circle, var(--gold-300), transparent 70%); opacity: .35; }
:root[data-theme="dark"] .hero__blob { opacity: .22; }

.hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center;
}
.hero h1 { font-size: var(--t-display); margin-top: var(--sp-4); }
.hero h1 .mark {
  position: relative; color: var(--brand-600); white-space: nowrap;
}
:root[data-theme="dark"] .hero h1 .mark { color: var(--brand-300); }
.hero h1 .mark::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: 6%; height: 34%;
  background: linear-gradient(90deg, rgba(255,152,0,.45), rgba(38,166,154,.45));
  border-radius: 6px; z-index: -1;
}
.hero__lead { font-size: var(--t-lead); margin-top: var(--sp-4); max-width: 54ch; }

/* Hero search */
.hero-search { margin-top: var(--sp-6); position: relative; }
.hero-search__box {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1.5px solid var(--line-strong);
  border-radius: var(--r-pill); padding: 8px 8px 8px 20px; box-shadow: var(--sh-2);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.hero-search__box:focus-within { border-color: var(--brand-400); box-shadow: 0 0 0 5px rgba(0,137,123,.13), var(--sh-2); }
.hero-search__box .icon { color: var(--brand-500); }
.hero-search__box input { flex: 1; border: 0; outline: none; background: none; font-size: var(--t-sm); padding: 8px 0; min-width: 0; }
.hero-search__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--sp-3); align-items: center; }
.chip {
  font-size: var(--t-xs); padding: 6px 13px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--line); color: var(--fg-soft);
  transition: all var(--dur) var(--ease);
}
.chip:hover { border-color: var(--brand-300); color: var(--brand-600); background: var(--brand-50); }
.chip__label { font-size: var(--t-xs); color: var(--fg-mute); }

/* Suggestion dropdown */
.suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 20;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--sh-3); padding: 6px; display: none; max-height: 300px; overflow-y: auto;
}
.suggest.is-open { display: block; animation: fadeUp .2s var(--ease); }
.suggest a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: var(--r-sm); font-size: var(--t-sm); color: var(--fg-soft); }
.suggest a:hover { background: var(--brand-50); color: var(--brand-600); }
.suggest a .icon { color: var(--brand-500); }
.suggest__empty { padding: 16px; text-align: center; color: var(--fg-mute); font-size: var(--t-sm); }

.hero__trust { display: flex; flex-wrap: wrap; gap: var(--sp-5); margin-top: var(--sp-6); }
.trust-item { display: flex; align-items: center; gap: 10px; font-size: var(--t-sm); color: var(--fg-soft); }
.trust-item .icon { color: var(--brand-500); }

/* Hero visual */
.hero__visual { position: relative; }
.hero-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: var(--sp-5); box-shadow: var(--sh-4);
}
.hero-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: var(--sp-4); border-bottom: 1px dashed var(--line-strong); }
.hero-card__title { font-weight: 700; display: flex; align-items: center; gap: 10px; }
.hero-card__rows { display: flex; flex-direction: column; gap: 2px; padding-top: var(--sp-3); }
.hero-card__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; font-size: var(--t-sm); }
.hero-card__row + .hero-card__row { border-top: 1px solid var(--line); }
.hero-card__row .k { color: var(--fg-mute); }
.hero-card__row .v { font-weight: 700; }
.hero-card__total { display: flex; align-items: center; justify-content: space-between; margin-top: var(--sp-4); padding: 14px 16px; border-radius: var(--r-md); background: var(--brand-50); border: 1px solid var(--brand-100); }
.hero-card__total .amount { font-size: 1.5rem; font-weight: 700; color: var(--brand-600); }
:root[data-theme="dark"] .hero-card__total .amount { color: var(--brand-300); }

.float-card {
  position: absolute; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--sh-3); padding: 13px 16px;
  display: flex; align-items: center; gap: 12px; font-size: var(--t-xs);
}
.float-card--tl { left: -28px; top: 34px; animation: floaty 5.5s ease-in-out infinite; }
.float-card--br { right: -22px; bottom: 30px; animation: floaty 6.5s ease-in-out infinite .8s; }
.float-card__icon { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.float-card strong { display: block; font-size: var(--t-sm); color: var(--fg); }
.float-card span { color: var(--fg-mute); }
.i-green { background: #E8F5E9; color: var(--brand-600); }
.i-gold  { background: #FFF3E0; color: #E65100; }
.i-blue  { background: #E0F7FA; color: #00838F; }
.i-red   { background: #FFEBEE; color: #C62828; }
:root[data-theme="dark"] .i-green { background: #10302C; color: var(--brand-300); }
:root[data-theme="dark"] .i-gold  { background: #33270A; color: var(--gold-300); }
:root[data-theme="dark"] .i-blue  { background: #0E2E33; color: #80DEEA; }
:root[data-theme="dark"] .i-red   { background: #331717; color: #EF9A9A; }

/* ---- Service tiles ---- */
.services__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }
.service {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--sp-5); overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.service::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand-400), var(--gold-400));
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.service:hover { transform: translateY(-5px); box-shadow: var(--sh-3); border-color: var(--brand-200); }
.service:hover::before { transform: scaleX(1); }
.service__icon {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: var(--brand-50); color: var(--brand-600); border: 1px solid var(--brand-100);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.service:hover .service__icon { background: linear-gradient(140deg, var(--brand-500), var(--brand-700)); color: #fff; transform: rotate(-6deg) scale(1.06); border-color: transparent; }
.service h3 { font-size: 1.12rem; }
.service p { font-size: var(--t-sm); }
.service__go { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 7px; font-size: var(--t-sm); font-weight: 700; color: var(--brand-600); }
:root[data-theme="dark"] .service__go { color: var(--brand-300); }
.service__go .icon { transition: transform var(--dur) var(--ease); }
.service:hover .service__go .icon { transform: translateX(4px); }
.service.is-hidden { display: none; }
.service__tag { position: absolute; top: 14px; right: 14px; }

/* ---- Steps ---- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); position: relative; }
.steps::before {
  content: ""; position: absolute; top: 32px; left: 12%; right: 12%; height: 2px;
  background-image: linear-gradient(90deg, var(--brand-300) 50%, transparent 0);
  background-size: 12px 2px; background-repeat: repeat-x; opacity: .8;
}
.step { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.step__num {
  width: 64px; height: 64px; border-radius: 22px; display: grid; place-items: center;
  background: var(--surface); border: 1.5px solid var(--brand-200); color: var(--brand-600);
  font-size: 1.35rem; font-weight: 700; box-shadow: var(--sh-2); position: relative; z-index: 1;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.step:hover .step__num { background: linear-gradient(140deg, var(--brand-500), var(--brand-700)); color: #fff; transform: translateY(-4px); border-color: transparent; }
.step h3 { font-size: 1.08rem; }
.step p { font-size: var(--t-sm); max-width: 30ch; margin-inline: auto; }

/* ---- Stats ---- */
.stats { background: linear-gradient(135deg, var(--brand-800) 0%, var(--brand-700) 45%, var(--brand-500) 100%); color: #fff; position: relative; overflow: hidden; }
.stats::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at center, rgba(255,255,255,.09) 1.6px, transparent 1.7px);
  background-size: 24px 24px; opacity: .8;
}
.stats__grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); }
.stat { text-align: center; padding: var(--sp-4); border-radius: var(--r-lg); transition: background var(--dur) var(--ease); }
.stat:hover { background: rgba(255,255,255,.07); }
.stat__icon { width: 46px; height: 46px; margin: 0 auto var(--sp-3); border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.13); color: var(--gold-300); }
.stat__num { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem); font-weight: 700; line-height: 1.2; }
.stat__label { color: rgba(255,255,255,.72); font-size: var(--t-sm); }

/* ---- Notice list ---- */
.notice-list { display: flex; flex-direction: column; gap: 10px; }
.notice {
  display: flex; align-items: center; gap: var(--sp-4);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 16px 18px; transition: all var(--dur) var(--ease);
}
.notice:hover { border-color: var(--brand-200); transform: translateX(5px); box-shadow: var(--sh-2); }
.notice__date {
  flex: none; width: 62px; text-align: center; padding: 8px 4px; border-radius: var(--r-sm);
  background: var(--brand-50); border: 1px solid var(--brand-100); line-height: 1.25;
}
.notice__date b { display: block; font-size: 1.25rem; color: var(--brand-600); }
.notice__date span { font-size: .68rem; color: var(--fg-mute); }
:root[data-theme="dark"] .notice__date b { color: var(--brand-300); }
.notice__body { flex: 1; min-width: 0; }
.notice__body h4 { font-size: var(--t-body); font-weight: 700; }
.notice__body p { font-size: var(--t-xs); margin-top: 2px; }
.notice > .icon { color: var(--fg-mute); }

/* ---- FAQ ---- */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.faq details[open] { border-color: var(--brand-200); box-shadow: var(--sh-2); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  padding: 18px 20px; cursor: pointer; font-weight: 700; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--brand-500); transition: transform var(--dur) var(--ease); flex: none; }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq__body { padding: 0 20px 20px; color: var(--fg-soft); font-size: var(--t-sm); animation: fadeUp .25s var(--ease); }

/* ---- CTA band ---- */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  background: linear-gradient(135deg, var(--brand-800), var(--brand-600) 50%, var(--brand-500));
  color: #fff; padding: clamp(32px, 5vw, 60px);
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-6); flex-wrap: wrap;
}
.cta-band::after {
  content: ""; position: absolute; width: 320px; height: 320px; right: -80px; top: -120px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255,152,0,.32), transparent 70%);
}
.cta-band__text { position: relative; z-index: 1; max-width: 56ch; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.8); margin-top: 12px; }
.cta-band__actions { position: relative; z-index: 1; display: flex; gap: 12px; flex-wrap: wrap; }

/* ---- Footer ---- */
.footer { background: var(--brand-900); color: rgba(255,255,255,.72); padding-top: clamp(48px, 6vw, 80px); position: relative; overflow: hidden; }
.footer::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at center, rgba(255,255,255,.05) 1.5px, transparent 1.6px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 60%);
          mask-image: linear-gradient(180deg, #000, transparent 60%);
}
.footer .container { position: relative; z-index: 1; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: var(--sp-6); padding-bottom: var(--sp-7); }
.footer .logo__name { color: #fff; }
.footer .logo__tag { color: rgba(255,255,255,.5); }
.footer__about p { color: rgba(255,255,255,.66); font-size: var(--t-sm); margin-top: var(--sp-4); max-width: 38ch; }
.footer h4 { color: #fff; font-size: var(--t-body); margin-bottom: var(--sp-4); }
.footer__links { display: flex; flex-direction: column; gap: 11px; }
.footer__links a { font-size: var(--t-sm); display: inline-flex; align-items: center; gap: 8px; transition: color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.footer__links a:hover { color: var(--gold-300); transform: translateX(4px); }
.footer__contact li { display: flex; gap: 12px; font-size: var(--t-sm); margin-bottom: 14px; }
.footer__contact .icon { color: var(--gold-400); flex: none; margin-top: 3px; }
.socials { display: flex; gap: 10px; margin-top: var(--sp-4); }
.socials a {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  transition: all var(--dur) var(--ease);
}
.socials a:hover { background: var(--brand-500); border-color: var(--brand-400); transform: translateY(-3px); color: #fff; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-block: var(--sp-4);
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap;
  font-size: var(--t-xs);
}
.footer__bottom a:hover { color: var(--gold-300); }
.footer__bottom .row { gap: var(--sp-5); }

/* ---- Floating help button ---- */
.fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 80;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 20px; border-radius: var(--r-pill);
  background: linear-gradient(140deg, var(--brand-500), var(--brand-700)); color: #fff;
  box-shadow: 0 14px 30px rgba(0,105,92,.32); font-size: var(--t-sm); font-weight: 700;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.fab:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 18px 38px rgba(0,105,92,.4); }
.fab::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(0,137,123,.5); animation: pulse 2.6s infinite;
}

/* ---- Scroll to top ---- */
.to-top {
  position: fixed; right: 22px; bottom: 86px; z-index: 80;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line-strong); color: var(--fg-soft);
  box-shadow: var(--sh-2); opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all var(--dur) var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { color: var(--brand-600); border-color: var(--brand-300); }

/* ------------------------------------------------------- 7) PAGES ------- */

/* ---- Page header (inner pages) ---- */
.page-head {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--brand-800) 0%, var(--brand-700) 45%, var(--brand-500) 100%);
  color: #fff; padding-block: clamp(40px, 5vw, 72px);
}
.page-head::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at center, rgba(255,255,255,.08) 1.5px, transparent 1.6px);
  background-size: 24px 24px;
}
.page-head::after {
  content: ""; position: absolute; width: 380px; height: 380px; right: -100px; top: -140px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255,152,0,.28), transparent 70%);
}
.page-head .container { position: relative; z-index: 1; }
.page-head h1 { margin-top: var(--sp-3); }
.page-head p { color: rgba(255,255,255,.78); margin-top: 12px; max-width: 62ch; font-size: var(--t-lead); }
.crumb { display: flex; align-items: center; gap: 8px; font-size: var(--t-xs); color: rgba(255,255,255,.62); flex-wrap: wrap; }
.crumb a:hover { color: #fff; }
.crumb .icon { width: 14px; height: 14px; }

/* ---- Split layout (form + aside) ---- */
.split { display: grid; grid-template-columns: 1.45fr .85fr; gap: var(--sp-6); align-items: start; }

/* ---- Data table ---- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.table { min-width: 560px; font-size: var(--t-sm); }
.table thead th {
  text-align: right; font-weight: 700; color: var(--fg); background: var(--canvas-alt);
  padding: 14px 16px; white-space: nowrap; border-bottom: 1px solid var(--line);
}
.table thead th:first-child, .table tbody td:first-child { text-align: left; }
.table tbody td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: right; color: var(--fg-soft); }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background var(--dur) var(--ease); }
.table tbody tr:hover { background: var(--brand-50); }
.table tfoot td { padding: 16px; font-weight: 700; background: var(--canvas-alt); text-align: right; }
.table tfoot td:first-child { text-align: left; }
.table .num { font-variant-numeric: tabular-nums; }

/* ---- Result card ---- */
.result { display: none; margin-top: var(--sp-5); animation: fadeUp .45s var(--ease); }
.result.is-open { display: block; }
.result__head {
  display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap;
  padding: var(--sp-5); border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: linear-gradient(140deg, var(--brand-500), var(--brand-700)); color: #fff;
}
.result__head--warn { background: linear-gradient(140deg, #FB8C00, #EF6C00); }
.result__head--err  { background: linear-gradient(140deg, #F44336, #C62828); }
.result__seal {
  width: 58px; height: 58px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: rgba(255,255,255,.16); border: 2px solid rgba(255,255,255,.35);
}
.result__head h3 { color: #fff; }
.result__head p { color: rgba(255,255,255,.82); font-size: var(--t-sm); margin-top: 2px; }
.result__body {
  background: var(--surface); border: 1px solid var(--line); border-top: 0;
  border-radius: 0 0 var(--r-lg) var(--r-lg); padding: var(--sp-5);
}
.kv { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-4) var(--sp-5); }
.kv__item { display: flex; flex-direction: column; gap: 3px; padding-bottom: 12px; border-bottom: 1px dashed var(--line-strong); }
.kv__k { font-size: var(--t-xs); color: var(--fg-mute); }
.kv__v { font-weight: 700; }

/* ---- Info / aside cards ---- */
.info-card { display: flex; gap: 14px; align-items: flex-start; }
.info-card__icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--brand-50); color: var(--brand-600); border: 1px solid var(--brand-100); }
.info-card h4 { font-size: var(--t-body); }
.info-card p { font-size: var(--t-sm); margin-top: 3px; }
.list-check { display: flex; flex-direction: column; gap: 12px; }
.list-check li { display: flex; gap: 11px; font-size: var(--t-sm); color: var(--fg-soft); }
.list-check .icon { color: var(--brand-500); flex: none; margin-top: 3px; }

/* ---- Timeline (about page) ---- */
.timeline { position: relative; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg, var(--brand-400), var(--gold-400)); border-radius: 2px; }
.timeline li { position: relative; padding-bottom: var(--sp-5); }
.timeline li::before {
  content: ""; position: absolute; left: -34px; top: 6px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--brand-500);
}
.timeline .year { font-size: var(--t-xs); color: var(--brand-600); font-weight: 700; }
:root[data-theme="dark"] .timeline .year { color: var(--brand-300); }
.timeline h4 { margin-top: 2px; }
.timeline p { font-size: var(--t-sm); margin-top: 4px; }

/* ---- Team ---- */
.person { text-align: center; }
.person__avatar {
  width: 92px; height: 92px; border-radius: 50%; margin: 0 auto var(--sp-4);
  display: grid; place-items: center; font-size: 1.9rem; font-weight: 700; color: #fff;
  background: linear-gradient(145deg, var(--brand-400), var(--brand-700));
  box-shadow: var(--sh-2); border: 3px solid var(--surface);
}
.person h4 { font-size: var(--t-body); }
.person p { font-size: var(--t-xs); }

/* ---- Contact ---- */
.contact-card { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.contact-card__icon { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-600); border: 1px solid var(--brand-100); }
.contact-card a { font-weight: 700; color: var(--brand-600); }
:root[data-theme="dark"] .contact-card a { color: var(--brand-300); }
.map-frame { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--sh-1); background: var(--canvas-alt); min-height: 320px; position: relative; display: grid; place-items: center; }
.map-frame iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

/* ---- Alert ---- */
.alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); font-size: var(--t-sm); border: 1px solid; }
.alert .icon { flex: none; margin-top: 2px; }
.alert--info { background: #E0F7FA; border-color: #B2EBF2; color: #00838F; }
.alert--warn { background: #FFF3E0; border-color: #FFE0B2; color: #E65100; }
.alert--ok   { background: #E8F5E9; border-color: #C8E6C9; color: #00796B; }
:root[data-theme="dark"] .alert--info { background: #0E2E33; border-color: #17454B; color: #80DEEA; }
:root[data-theme="dark"] .alert--warn { background: #33270A; border-color: #4D3B10; color: var(--gold-300); }
:root[data-theme="dark"] .alert--ok   { background: #10302C; border-color: #1E5C53; color: var(--brand-300); }

/* ------------------------------------------------------ 8) MOTION ------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0,137,123,.45); }
  70%  { box-shadow: 0 0 0 16px rgba(0,137,123,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,137,123,0); }
}
@keyframes spin { to { transform: rotate(360deg); } }

[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }
[data-reveal][data-delay="4"] { transition-delay: .32s; }

.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .7s linear infinite; }
.btn.is-loading { pointer-events: none; opacity: .85; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* --------------------------------------------------- 9) RESPONSIVE ------ */
@media (max-width: 1080px) {
  .services__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1.3fr; }
  .footer__grid > :nth-child(3) { display: none; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .nav, .header__actions .btn--desktop { display: none; }
  .burger { display: grid; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 520px; margin-inline: auto; width: 100%; }
  .float-card--tl { left: -6px; }
  .float-card--br { right: -6px; }
  .split { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: var(--sp-6); }
  .steps::before { display: none; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .topbar__left .hide-md { display: none; }
}

@media (max-width: 720px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > :nth-child(3) { display: block; }
  .footer__about { grid-column: 1 / -1; }
  .kv { grid-template-columns: 1fr; }
  .topbar .topbar__left a span { display: none; }
  .cta-band { text-align: center; justify-content: center; }
  .cta-band__actions { justify-content: center; width: 100%; }
}

@media (max-width: 560px) {
  :root { --sp-5: 18px; }
  .services__grid, .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
  .footer__grid { grid-template-columns: 1fr; }
  .float-card { display: none; }
  .btn--lg { padding: 14px 22px; }
  .hero-search__box { padding-left: 16px; }
  .fab span { display: none; }
  .fab { padding: 15px; border-radius: 50%; }
  .to-top { bottom: 78px; }
}

/* --------------------------------------------------- 10) PRINT ---------- */
@media print {
  .header, .topbar, .footer, .fab, .to-top, .drawer, .btn { display: none !important; }
  body { background: #fff; color: #000; }
  .result { display: block !important; }
}

/* ------------------------------------------------ 11) ADDITIONS --------- */

/* ---- হিরো স্ট্যাট রো (রেফারেন্স ডিজাইন অনুযায়ী) ---- */
.hero__stats {
  display: flex; align-items: center; gap: clamp(16px, 3vw, 34px);
  margin-top: var(--sp-6); padding-top: var(--sp-5);
  border-top: 1px solid var(--line); flex-wrap: wrap;
}
.hero-stat { display: flex; flex-direction: column; }
.hero-stat__num {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); font-weight: 700; line-height: 1.25;
  color: var(--brand-500); font-variant-numeric: tabular-nums;
}
:root[data-theme="dark"] .hero-stat__num { color: var(--brand-300); }
.hero-stat__label { font-size: var(--t-xs); color: var(--fg-mute); }
.hero-stat__sep { width: 1px; height: 34px; background: var(--line-strong); }

/* ---- ৩ ধাপের প্রক্রিয়া ---- */
.steps--3 { grid-template-columns: repeat(3, 1fr); max-width: 980px; margin-inline: auto; }
.steps--3::before { left: 18%; right: 18%; }
.step__num { font-variant-numeric: tabular-nums; letter-spacing: -1px; }

@media (max-width: 960px) {
  .steps--3 { grid-template-columns: 1fr; }
  .hero-stat__sep { display: none; }
  .hero__stats { gap: 22px 34px; }
}

/* ---- হিরো ফটো স্লাইডার ---- */
.hero-slider {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl); border: 1px solid var(--line);
  box-shadow: var(--sh-4); background: var(--canvas-alt);
  aspect-ratio: 4 / 3;
}
.hero-slider__track { position: absolute; inset: 0; }

.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity .75s var(--ease), visibility .75s var(--ease);
}
.hero-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }

/* কেন-বার্নস — শুধু সক্রিয় স্লাইডে */
.hero-slide.is-active img { animation: kenburns 7s linear forwards; }

.hero-slide__shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,51,46,0) 38%, rgba(6,51,46,.55) 68%, rgba(6,51,46,.88) 100%);
}
.hero-slide__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(18px, 3vw, 28px); color: #fff; }
.hero-slide.is-active .hero-slide__cap { animation: fadeUp .6s var(--ease) .12s both; }
.hero-slide__cap h3 { color: #fff; font-size: clamp(1.1rem, .95rem + .6vw, 1.35rem); margin-top: 10px; }
.hero-slide__cap p { color: rgba(255,255,255,.82); font-size: var(--t-sm); margin-top: 4px; }
.hero-slide__cap .badge {
  background: rgba(255,255,255,.16); color: #fff;
  border-color: rgba(255,255,255,.3); backdrop-filter: blur(6px);
}

/* প্রগ্রেস বার */
.hero-slider__progress { position: absolute; top: 0; left: 0; right: 0; height: 3px; background: rgba(255,255,255,.22); z-index: 3; }
.hero-slider__progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-400), var(--brand-300)); }
.hero-slider.is-playing .hero-slider__progress span { animation: sliderProgress var(--slide-dur, 5.5s) linear forwards; }

/* অ্যারো */
.slider-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.9); color: var(--brand-700);
  border: 1px solid rgba(255,255,255,.6); box-shadow: var(--sh-2);
  opacity: 0; transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.slider-nav--prev { left: 14px; }
.slider-nav--next { right: 14px; }
.hero-slider:hover .slider-nav,
.hero-slider:focus-within .slider-nav { opacity: 1; }
.slider-nav:hover { background: #fff; transform: translateY(-50%) scale(1.08); }

/* ডট */
.slider-dots { position: absolute; right: clamp(18px, 3vw, 28px); bottom: clamp(20px, 3vw, 30px); z-index: 3; display: flex; gap: 8px; }
.slider-dot {
  width: 9px; height: 9px; border-radius: var(--r-pill); padding: 0;
  background: rgba(255,255,255,.45); border: 0;
  transition: width var(--dur) var(--ease), background var(--dur) var(--ease);
}
.slider-dot.is-active { width: 26px; background: var(--gold-400); }

@keyframes kenburns { from { transform: scale(1.01); } to { transform: scale(1.09); } }
@keyframes sliderProgress { from { width: 0; } to { width: 100%; } }

@media (prefers-reduced-motion: reduce) {
  .hero-slide.is-active img { animation: none; }
  .hero-slider.is-playing .hero-slider__progress span { animation: none; width: 100%; }
}

@media (max-width: 560px) {
  .hero-slider { aspect-ratio: 5 / 4; }
  .slider-nav { opacity: 1; width: 38px; height: 38px; }
}

/* ---- হিরো + স্লাইডার ফিট (কলামের উচ্চতা মিলিয়ে) ---- */
.hero__grid { align-items: stretch; }
.hero__content { align-self: center; }

.hero__visual {
  display: flex; flex-direction: column; justify-content: center;
  min-width: 0;
}
.hero-slider {
  aspect-ratio: auto;
  flex: 1 1 auto;
  min-height: clamp(430px, 40vw, 560px);
  max-height: 560px;
}

/* ক্যাপশনের ডান পাশে ডটের জন্য জায়গা */
.hero-slide__cap { padding-right: clamp(96px, 20%, 168px); }

/* ভাসমান কার্ড — ক্যাপশন/ডটের সাথে সংঘর্ষ এড়াতে শুধু উপরের বাঁ পাশে */
.float-card--tl { left: -26px; top: 30px; z-index: 4; }

@media (max-width: 960px) {
  .hero__grid { align-items: center; }
  .hero__visual { max-width: 560px; }
  .hero-slider {
    aspect-ratio: 4 / 3;
    flex: none; min-height: 0; max-height: none;
  }
}

@media (max-width: 560px) {
  .hero-slider { aspect-ratio: 5 / 4; }
  .hero-slide__cap { padding-right: 84px; }
}

/* ---- স্লাইডার র‍্যাপার — ভাসমান কার্ড স্লাইডারের সাপেক্ষে বসে ---- */
.hero-slider-wrap {
  position: relative;
  display: flex; flex-direction: column;
  flex: 1 1 auto; max-height: 560px; min-width: 0;
}
.hero-slider-wrap .hero-slider { flex: 1 1 auto; max-height: none; }

.hero__visual .float-card--tl { left: -26px; top: 28px; }
.hero__visual .float-card--br { right: -26px; top: 28%; bottom: auto; }

/* হেডলাইনের হাইলাইট — পাতলা ও নরম */
.hero h1 .mark::after {
  bottom: 4%; height: 20%;
  background: linear-gradient(90deg, rgba(255,152,0,.75), rgba(38,166,154,.75));
  border-radius: 4px;
}

@media (max-width: 960px) {
  .hero-slider-wrap { max-height: none; flex: none; }
  .hero__visual .float-card--tl { left: -8px; }
  .hero__visual .float-card--br { right: -8px; }
}

/* ভাসমান কার্ডের প্রস্থ নির্দিষ্ট — নয়তো ডান পাশে চাপা হয়ে যায় */
.float-card { width: max-content; max-width: 250px; }
.hero__visual .float-card { z-index: 5; }

/* ---- কন্টাক্ট কার্ড — সমান উচ্চতা, লিংক নিচে ---- */
.contact-card { height: 100%; }
.contact-card > a { margin-top: auto; }

/* ---- ম্যাপ প্লেসহোল্ডারে হালকা মোটিফ ---- */
.map-frame { background-image: var(--motif); background-size: var(--motif-size); }

/* ---- গ্রিড আইটেম যেন সংকুচিত হতে পারে ----
   min-width:auto থাকায় ভেতরের চওড়া টেবিল (min-width:560px) পুরো
   কলামকে টেনে বড় করে দিচ্ছিল → মোবাইলে হরাইজন্টাল ওভারফ্লো হতো। */
.split > *, .grid > *, .stack > * { min-width: 0; }
