/*
Theme Name: Bizbot
Theme URI: https://bizbot.bd
Author: Bizbot (Sister concern of Ecare)
Author URI: https://ecare.com.bd
Description: One-page WordPress theme for Bizbot — AI customer engagement suite for Bangladeshi businesses. Matches the Bizbot web app design: orange brand palette, Noto Serif Bengali, dark/light toggle, video reviews.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bizbot
Tags: one-page, business, custom-colors, custom-logo, custom-menu, translation-ready
*/

/* ---------- Design tokens (mirrors the Bizbot app) ---------- */
:root {
  --radius: 0.375rem;
  --background: oklch(1 0 0);
  --foreground: oklch(0.129 0.042 264.695);
  --card: oklch(1 0 0);
  --primary: oklch(0.66 0.21 40);
  --primary-foreground: oklch(0.99 0.005 60);
  --muted: oklch(0.968 0.007 247.896);
  --muted-foreground: oklch(0.554 0.046 257.417);
  --accent: oklch(0.968 0.007 247.896);
  --border: oklch(0.929 0.013 255.508);
  --max: 72rem;      /* max-w-6xl */
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Serif Bengali", "Helvetica Neue", Arial, sans-serif;
  --font-bn: "Noto Serif Bengali", ui-serif, Georgia, serif;
}

html.dark {
  --background: oklch(0.129 0.042 264.695);
  --foreground: oklch(0.984 0.003 247.858);
  --card: oklch(0.208 0.042 265.755);
  --muted: oklch(0.279 0.041 260.031);
  --muted-foreground: oklch(0.704 0.04 256.788);
  --accent: oklch(0.279 0.041 260.031);
  --border: oklch(1 0 0 / 12%);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--foreground); font-family: var(--font-sans); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
:lang(bn), .bn { font-family: var(--font-bn); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 768px) { .container { padding: 0 1.5rem; } }
.narrow { max-width: 56rem; margin: 0 auto; }
.center { text-align: center; }
.muted { color: var(--muted-foreground); }
.icon { width: 1rem; height: 1rem; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.875rem, 3.4vw, 2.25rem); }
h3 { font-size: 1rem; }
p { margin: 0; }

/* ---------- Pieces ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .4rem;
  border: 1px solid color-mix(in oklab, var(--primary) 30%, transparent);
  background: color-mix(in oklab, var(--primary) 6%, transparent);
  color: var(--primary);
  border-radius: var(--radius);
  padding: .25rem .75rem; font-size: .75rem; font-weight: 500;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border-radius: var(--radius); padding: .75rem 1.5rem;
  font-size: .875rem; font-weight: 500; border: 1px solid transparent;
  transition: opacity .15s ease, background .15s ease, transform .15s ease;
}
.btn-primary { background: var(--primary); color: var(--primary-foreground); box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.btn-primary:hover { opacity: .9; }
.btn-outline { border-color: var(--border); background: var(--background); color: var(--foreground); }
.btn-outline:hover { background: var(--accent); }
.btn-sm { padding: .5rem 1rem; }

.grid { display: grid; gap: 1rem; }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.gap-6 { gap: 1.5rem; }
@media (max-width: 1024px) { .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 768px) { .grid-3 { grid-template-columns: 1fr; } }

.card { border: 1px solid var(--border); background: var(--card); border-radius: .5rem; }
.card-pad { padding: 1.5rem; }
.card:hover { box-shadow: 0 4px 6px -1px rgba(0,0,0,.08); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40; width: 100%;
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, var(--background) 80%, transparent);
  backdrop-filter: blur(8px);
}
.site-header .bar { display: flex; height: 4rem; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: .5rem; }
.brand img, .brand .custom-logo { height: 2.25rem; width: 2.25rem; border-radius: .75rem; object-fit: cover; background: var(--primary); }
.brand span { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.02em; }
.nav { display: none; align-items: center; gap: 1.75rem; }
.nav a { font-size: .875rem; color: var(--muted-foreground); }
.nav a:hover { color: var(--foreground); }
.actions { display: none; align-items: center; gap: .75rem; }
.actions .phone { display: inline-flex; align-items: center; gap: .5rem; font-size: .875rem; font-weight: 500; }
.actions .phone:hover { color: var(--primary); }
.icon-btn { display: inline-flex; height: 2.25rem; width: 2.25rem; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: var(--radius); }
.icon-btn:hover { background: var(--accent); }
.mobile-actions { display: flex; align-items: center; gap: .5rem; }
.menu-btn { display: inline-flex; height: 2.5rem; width: 2.5rem; align-items: center; justify-content: center; border-radius: var(--radius); }
.mobile-nav { display: none; border-top: 1px solid var(--border); background: var(--background); }
.mobile-nav.open { display: block; }
.mobile-nav .container { display: flex; flex-direction: column; gap: .25rem; padding-top: .75rem; padding-bottom: .75rem; }
.mobile-nav a { border-radius: var(--radius); padding: .5rem; font-size: .875rem; color: var(--muted-foreground); }
.mobile-nav a:hover { background: var(--accent); color: var(--foreground); }
@media (min-width: 768px) {
  .nav, .actions { display: flex; }
  .mobile-actions .menu-btn { display: none; }
  .mobile-actions .icon-btn { display: none; }
  .mobile-nav { display: none !important; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 80% 50% at 50% -10%, color-mix(in oklab, var(--primary) 14%, transparent), transparent 70%);
}
.hero .container { padding-top: 4rem; padding-bottom: 5rem; }
@media (min-width: 768px) { .hero .container { padding-top: 6rem; padding-bottom: 7rem; } }
.hero-copy { max-width: 48rem; margin: 0 auto; text-align: center; }
.hero h1 { margin-top: 1.5rem; }
.hero .lead { margin-top: 1.25rem; color: var(--muted-foreground); font-size: 1.0625rem; }
.hero .lead .sub { font-size: .875rem; }
.hero .cta { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.ticks { margin-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.5rem; font-size: .75rem; color: var(--muted-foreground); }
.ticks span { display: inline-flex; align-items: center; gap: .375rem; }
.ticks .icon { width: .875rem; height: .875rem; color: var(--primary); }
.hero-shot { margin: 3.5rem auto 0; max-width: 64rem; border: 1px solid var(--border); background: var(--card); border-radius: .5rem; overflow: hidden; box-shadow: 0 25px 50px -12px color-mix(in oklab, var(--primary) 18%, transparent); }

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section-sm { padding: 4rem 0; }
.bordered-top { border-top: 1px solid var(--border); }
.strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: color-mix(in oklab, var(--muted) 40%, var(--background)); padding: 2.5rem 0; }
.tint { background: color-mix(in oklab, var(--muted) 40%, var(--background)); }
.section-head { max-width: 42rem; margin: 0 auto; text-align: center; }
.section-head h2 { margin-top: 1rem; }
.section-head p { margin-top: .75rem; color: var(--muted-foreground); }

.chips { margin-top: 1.25rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.chip { display: inline-flex; align-items: center; gap: .5rem; border: 1px solid var(--border); background: var(--background); border-radius: var(--radius); padding: .5rem 1rem; font-size: .875rem; font-weight: 500; }
.dot { width: .375rem; height: .375rem; border-radius: 9999px; background: var(--primary); }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 2rem; }
@media (max-width: 768px) { .stats { grid-template-columns: 1fr; } }
.stat .value { font-size: 2.5rem; font-weight: 700; }
@media (min-width: 768px) { .stat .value { font-size: 3rem; } }
.stat .label { margin-top: .5rem; font-size: .875rem; color: var(--muted-foreground); }

.feature .badge { display: inline-flex; height: 2.5rem; width: 2.5rem; align-items: center; justify-content: center; border-radius: .5rem; background: color-mix(in oklab, var(--primary) 10%, transparent); color: var(--primary); }
.feature .badge .icon { width: 1.25rem; height: 1.25rem; }
.feature h3 { margin-top: 1rem; font-size: 1rem; font-weight: 600; }
.feature p { margin-top: .5rem; font-size: .875rem; color: var(--muted-foreground); }

.review .frame { aspect-ratio: 16 / 9; background: var(--muted); }
.review iframe { width: 100%; height: 100%; border: 0; display: block; }
.review .meta { padding: 1.25rem; }
.review .meta h3 { font-size: .875rem; font-weight: 600; }
.review .meta div { margin-top: .25rem; font-size: .75rem; color: var(--muted-foreground); }

.cta-box { max-width: 56rem; margin: 0 auto; background: var(--primary); color: var(--primary-foreground); border-radius: .75rem; padding: 2.5rem; text-align: center; }
@media (min-width: 768px) { .cta-box { padding: 4rem; } }
.cta-box h2 { margin-top: 1rem; }
.cta-box p { margin: .75rem auto 0; max-width: 36rem; opacity: .85; }
.cta-box .btn-light { background: var(--background); color: var(--foreground); }
.cta-box .btn-ghost { background: transparent; border-color: color-mix(in oklab, var(--primary-foreground) 30%, transparent); color: var(--primary-foreground); }
.cta-box .btn-ghost:hover { background: color-mix(in oklab, var(--primary-foreground) 10%, transparent); }
.cta-box .icon-lg { width: 2.5rem; height: 2.5rem; margin: 0 auto; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cta-box .cta { margin-top: 2rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.5rem; margin-top: 3rem; }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } }
.plan { position: relative; display: flex; flex-direction: column; padding: 1.75rem; }
.plan.featured { border-color: var(--primary); box-shadow: 0 10px 30px -12px color-mix(in oklab, var(--primary) 35%, transparent); }
.plan .name { font-size: 1rem; font-weight: 600; }
.plan .price { margin: .5rem 0 .25rem; font-size: 2rem; font-weight: 700; }
.plan .price small { font-size: .875rem; font-weight: 500; color: var(--muted-foreground); }
.plan ul { list-style: none; margin: 1.25rem 0; padding: 0; display: grid; gap: .5rem; }
.plan li { display: flex; gap: .5rem; align-items: flex-start; font-size: .875rem; color: var(--muted-foreground); }
.plan li .icon { width: 1rem; height: 1rem; color: var(--primary); margin-top: .25rem; }
.plan .btn { margin-top: auto; width: 100%; }
.tag { position: absolute; top: -.75rem; right: 1rem; background: var(--primary); color: var(--primary-foreground); font-size: .7rem; font-weight: 600; padding: .15rem .6rem; border-radius: var(--radius); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.5rem; margin-top: 3rem; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { text-align: center; padding: 1.75rem; }
.contact-card .badge { display: inline-flex; height: 2.5rem; width: 2.5rem; align-items: center; justify-content: center; border-radius: .5rem; background: color-mix(in oklab, var(--primary) 10%, transparent); color: var(--primary); margin-bottom: .75rem; }
.contact-card .label { font-size: .875rem; font-weight: 600; }
.contact-card .value { margin-top: .25rem; font-size: .875rem; color: var(--muted-foreground); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 3rem 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid .about { grid-column: span 2; } }
.footer-grid p { margin-top: .75rem; max-width: 20rem; font-size: .875rem; color: var(--muted-foreground); }
.footer-grid .about a.inline { font-weight: 500; color: var(--foreground); }
.footer-grid .about a.inline:hover { color: var(--primary); }
.footer-grid .col-title { font-size: .875rem; font-weight: 600; }
.footer-grid ul { list-style: none; margin: .75rem 0 0; padding: 0; display: grid; gap: .5rem; font-size: .875rem; color: var(--muted-foreground); }
.footer-grid ul a:hover { color: var(--primary); }
.footer-phone { margin-top: 1rem; display: inline-flex; align-items: center; gap: .5rem; font-size: .875rem; color: var(--muted-foreground); }
.footer-phone:hover { color: var(--primary); }
.footer-bottom { margin-top: 2.5rem; border-top: 1px solid var(--border); padding-top: 1.5rem; text-align: center; font-size: .75rem; color: var(--muted-foreground); }

/* ---------- Floating support ---------- */
.support-fab {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 50;
  display: inline-flex; align-items: center; gap: .5rem;
  border-radius: var(--radius); background: var(--primary); color: var(--primary-foreground);
  padding: .75rem 1.25rem; font-size: .875rem; font-weight: 500;
  box-shadow: 0 10px 25px -5px color-mix(in oklab, var(--primary) 40%, transparent);
  transition: transform .15s ease;
}
.support-fab:hover { transform: scale(1.05); }
.support-fab .icon { width: 1.25rem; height: 1.25rem; }
@media (max-width: 640px) { .support-fab span { display: none; } }

/* ---------- Blog fallback ---------- */
.entry-content { font-size: 1rem; }
.entry-content p { margin-bottom: 1rem; color: var(--muted-foreground); }

/* ---------- Inner pages ---------- */
.page-hero {
    border-bottom: 1px solid var(--border);
    background: color-mix(in oklab, var(--muted) 40%, var(--background));
    padding: 4.5rem 0 3.5rem;
    text-align: center;
}
.page-hero h1 { margin-top: 1rem; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; letter-spacing: -.02em; }
.page-hero p { margin: 1rem auto 0; max-width: 42rem; color: var(--muted-foreground); }

.prose { font-size: 1.0625rem; line-height: 1.85; color: var(--muted-foreground); }
.prose p { margin-bottom: 1.15rem; }
.prose a { color: var(--primary); }
.page-editor-content { margin-top: 2.5rem; }

.link-more { display: inline-flex; align-items: center; gap: .35rem; margin-top: 1rem; font-size: .875rem; font-weight: 500; color: var(--primary); }
.link-more .icon { width: 1rem; height: 1rem; }

.faq-list { display: grid; gap: 1rem; margin-top: 2.5rem; }
.faq .q { font-weight: 600; color: var(--foreground); }
.faq p { margin-top: .5rem; font-size: .875rem; color: var(--muted-foreground); }

.sister { margin-top: 2.5rem; border-color: color-mix(in oklab, var(--primary) 30%, var(--border)); background: color-mix(in oklab, var(--primary) 5%, var(--background)); }
.sister h3 { margin-top: .5rem; font-size: 1.5rem; font-weight: 700; color: var(--foreground); }
.sister p { margin-top: .75rem; color: var(--muted-foreground); }
.sister a.inline { color: var(--primary); font-weight: 500; }

.contact-body { margin-top: 2.5rem; max-width: 46rem; margin-inline: auto; }
.contact-body h3 { font-size: 1.125rem; font-weight: 600; }
