/* ===== NS Innovate — Design Tokens ===== */
:root {
  --bg: #faf6ef;
  --bg-soft: #f2ebdc;
  --card: #ffffff;
  --card-hover: #fdf8ee;
  --line: #e5dcc8;
  --gold: #b8860b;
  --gold-bright: #8a6108;
  --gold-dim: #d8c48a;
  --text: #2a2419;
  --text-muted: #756a55;
  --danger: #c0392b;
  --success: #3f8f5a;
  --radius: 14px;
  --serif: "Playfair Display", "Noto Serif Bengali", serif;
  --sans: "Manrope", "Noto Sans Bengali", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-tap-highlight-color: transparent;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.gold-text {
  background: linear-gradient(135deg, var(--gold-dim) 0%, var(--gold-bright) 45%, var(--gold) 75%, var(--gold-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 700; margin: 0; letter-spacing: 0.01em; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ===== Top bar ===== */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px;
  background: rgba(250,246,239,0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(184,134,11,0.06);
}
.topbar .brand { display: flex; align-items: center; gap: 10px; }
.topbar .brand img { width: 34px; height: 34px; border-radius: 8px; }
.topbar .brand span { font-family: var(--serif); font-weight: 700; font-size: 1.05rem; }
.install-btn {
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold-bright);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: none;
}
.install-btn.show { display: inline-flex; align-items: center; gap: 6px; }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 64px 20px 40px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(205,163,68,0.16), transparent 60%),
    var(--bg);
}
.hero-logo {
  width: 128px; height: 128px; margin: 0 auto 22px;
  border-radius: 22px;
  box-shadow: 0 0 0 1px var(--line), 0 20px 60px -20px rgba(205,163,68,0.35);
}
.hero h1 { font-size: clamp(2rem, 7vw, 3.2rem); line-height: 1.15; }
.hero p.tagline { color: var(--text-muted); max-width: 480px; margin: 16px auto 0; font-size: 1rem; }
.hero .spark {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, var(--gold-bright), transparent 70%);
  opacity: 0.5; filter: blur(1px);
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@media (prefers-reduced-motion: reduce) { .hero .spark { animation: none; } }

/* ===== Section shell ===== */
section.block { padding: 52px 0; }
.block-head { text-align: center; margin-bottom: 30px; }
.block-head h2 { font-size: clamp(1.5rem, 5vw, 2.1rem); margin-top: 8px; }
.block-head p { color: var(--text-muted); margin-top: 8px; font-size: 0.95rem; }

/* ===== Business / product grid ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}
.tile {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  display: block;
}
.tile:hover, .tile:focus-visible { transform: translateY(-4px); border-color: var(--gold-dim); background: var(--card-hover); }
.tile .thumb { width: 100%; aspect-ratio: 1/1; object-fit: cover; background: var(--bg-soft); }
.tile .thumb.placeholder { display: flex; align-items: center; justify-content: center; color: var(--gold-dim); font-size: 2rem; }
.tile .cap { padding: 12px 14px 14px; }
.tile .cap .name { font-weight: 700; font-size: 0.95rem; }
.tile .cap .go { color: var(--gold); font-size: 0.75rem; margin-top: 4px; display: block; }

/* Product card (with price) */
.pcard {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.pcard .thumb { width: 100%; aspect-ratio: 1/1; object-fit: contain; background: var(--bg-soft); }
.pcard .body { padding: 14px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.pcard .name { font-weight: 700; }
.pcard .price { color: var(--gold-bright); font-weight: 700; font-family: var(--serif); font-size: 1.1rem; }
.pcard .desc { color: var(--text-muted); font-size: 0.85rem; flex: 1; }
.desc.collapsed {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.desc-toggle {
  color: var(--gold); font-size: 0.78rem; font-weight: 700; cursor: pointer;
  background: none; border: none; padding: 2px 0; text-align: left; font-family: var(--sans);
}
.pcard .desc.collapsed {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.pcard .desc-toggle {
  color: var(--gold); font-size: 0.78rem; font-weight: 700; cursor: pointer;
  background: none; border: none; padding: 2px 0; text-align: left; font-family: var(--sans);
}
.pcard .order-btn {
  margin-top: 6px; text-align: center; padding: 9px; border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-dim), var(--gold));
  color: #17130e; font-weight: 800; font-size: 0.85rem;
}

/* Service card */
.scard {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; display: flex; gap: 14px; align-items: flex-start;
}
.scard .icon {
  width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--gold-dim), var(--gold));
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.scard h3 { font-size: 1rem; font-family: var(--sans); font-weight: 800; }
.scard p { color: var(--text-muted); font-size: 0.87rem; margin: 4px 0 0; }

/* Notice list */
.notice { border-bottom: 1px solid var(--line); padding: 18px 0; }
.notice:last-child { border-bottom: none; }
.notice .title { font-family: var(--serif); font-weight: 800; font-size: 1.15rem; color: var(--text); line-height: 1.35; }
.notice .meta { color: #8a6108; background: rgba(184,134,11,0.12); display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; margin-top: 8px; }
.notice .desc { color: var(--text-muted); font-size: 0.9rem; margin-top: 10px; }
.notice a.link { color: var(--gold); font-size: 0.85rem; font-weight: 700; margin-top: 8px; display: inline-block; }
.notice-media { margin-top: 12px; border-radius: 12px; overflow: hidden; }

/* Video grid */
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.vcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.vcard .frame-wrap { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; cursor: pointer; }
.vcard iframe, .vcard video { width: 100%; height: 100%; border: 0; }
.vcard .vt { padding: 10px 12px; font-size: 0.88rem; font-weight: 700; }

/* ===== Swipeable media gallery (products / notices) ===== */
.media-box { position: relative; width: 100%; }
.gallery {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery .slide {
  flex: 0 0 100%; scroll-snap-align: start; position: relative;
  aspect-ratio: 1/1; background: var(--bg-soft); display: flex; align-items: center; justify-content: center;
}
.gallery .slide img { width: 100%; height: 100%; object-fit: contain; }
.gallery .slide.video-slide { cursor: pointer; }
.gallery .slide.video-slide img { object-fit: cover; }
.vthumb-fallback { font-size: 2.5rem; }
.play-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; background: rgba(10,9,8,0.35);
}
.play-btn {
  width: 52px; height: 52px; border-radius: 50%; background: rgba(205,163,68,0.92); color: #17130e;
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem; padding-left: 4px;
  box-shadow: 0 6px 20px -4px rgba(0,0,0,0.5);
}
.play-label {
  background: rgba(10,9,8,0.75); color: var(--gold-bright); font-size: 0.72rem; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
}
.gdots { display: flex; justify-content: center; gap: 6px; padding: 8px 0; }
.gdot { width: 6px; height: 6px; border-radius: 50%; background: var(--line); transition: background 0.2s, width 0.2s; }
.gdot.active { background: var(--gold); width: 16px; border-radius: 4px; }
.fallback-link {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  background: rgba(10,9,8,0.85); color: var(--gold-bright); font-size: 0.72rem; font-weight: 700;
  padding: 5px 12px; border-radius: 999px; white-space: nowrap; z-index: 2;
}

/* Empty state */
.empty {
  text-align: center; padding: 30px 16px; color: var(--text-muted);
  border: 1px dashed var(--line); border-radius: var(--radius); font-size: 0.9rem;
}

/* ===== Footer / contact ===== */
footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 100px;
  background: var(--bg-soft);
  text-align: center;
}
footer .brand-line { font-family: var(--serif); font-size: 1.2rem; margin-bottom: 6px; }
footer .email { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 20px; }
.social-row { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.social-btn {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: border-color 0.2s, transform 0.2s, color 0.2s, background 0.2s;
}
.social-btn:hover { transform: translateY(-3px); }
.social-btn.wa:hover { border-color: #25D366; color: #25D366; }
.social-btn.fb:hover { border-color: #1877F2; color: #1877F2; }
.social-btn.yt:hover { border-color: #FF0000; color: #FF0000; }
.social-btn.tt:hover { border-color: var(--gold); color: var(--gold-bright); }
.social-btn.em:hover { border-color: var(--gold); color: var(--gold-bright); }
footer .admin-link { display: inline-block; margin-top: 26px; color: var(--text-muted); font-size: 0.75rem; opacity: 0.6; }

/* Floating WhatsApp */
.fab-whatsapp {
  position: fixed; right: 18px; bottom: 18px; z-index: 50;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #06210f;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 10px 30px -8px rgba(0,0,0,0.6);
}

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Focus visibility */
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 2px; }

/* ===== Admin shared ===== */
.admin-shell { max-width: 720px; margin: 0 auto; padding: 24px 18px 80px; }
.admin-login {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px;
}
.login-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 26px; width: 100%; max-width: 360px; text-align: center;
}
.login-card img { width: 64px; margin: 0 auto 14px; border-radius: 12px; }
.field { text-align: left; margin-top: 16px; }
.field label { font-size: 0.78rem; color: var(--text-muted); display: block; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; background: var(--bg-soft); border: 1px solid var(--line); color: var(--text);
  padding: 11px 12px; border-radius: 10px; font-size: 0.92rem; font-family: var(--sans);
}
.field textarea { min-height: 70px; resize: vertical; }
.btn {
  display: inline-block; padding: 11px 20px; border-radius: 999px; font-weight: 800;
  border: none; cursor: pointer; font-size: 0.88rem; font-family: var(--sans);
}
.btn-gold { background: linear-gradient(135deg, var(--gold-dim), var(--gold)); color: #17130e; }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn-danger { background: transparent; border: 1px solid var(--danger); color: var(--danger); }
.btn-block { width: 100%; margin-top: 18px; }
.error-msg { color: var(--danger); font-size: 0.82rem; margin-top: 12px; min-height: 1em; }

.admin-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; border-bottom: 1px solid var(--line); margin-bottom: 20px;
}
.admin-header .title { font-family: var(--serif); font-size: 1.3rem; }
.tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 20px; }
.tab-btn {
  flex-shrink: 0; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--text-muted); font-size: 0.82rem; font-weight: 700; cursor: pointer;
}
.tab-btn.active { border-color: var(--gold); color: var(--gold-bright); background: rgba(205,163,68,0.08); }
.panel { display: none; }
.panel.active { display: block; }

.item-row {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px; margin-bottom: 12px; display: flex; gap: 12px; align-items: center;
}
.item-row img.thumb-sm { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; background: var(--bg-soft); flex-shrink: 0; }
.item-row .info { flex: 1; min-width: 0; }
.item-row .info .n { font-weight: 700; font-size: 0.9rem; }
.item-row .info .s { color: var(--text-muted); font-size: 0.78rem; }
.item-row .actions { display: flex; gap: 6px; flex-shrink: 0; }
.icon-btn {
  width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line);
  background: transparent; color: var(--text-muted); cursor: pointer; font-size: 0.9rem;
}
.icon-btn.danger { color: var(--danger); border-color: var(--danger); }

.card-form {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; margin-bottom: 24px;
}
.card-form h3 { font-family: var(--sans); font-size: 0.95rem; margin-bottom: 4px; }
.toast {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: #fff; padding: 10px 20px; border-radius: 999px;
  font-weight: 800; font-size: 0.85rem; z-index: 100; opacity: 0; pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(-6px); }
.progress-bar { height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; margin-top: 8px; }
.progress-bar .fill { height: 100%; background: var(--gold); width: 0%; transition: width 0.2s; }
