/* yasinarafatbd.com — theme B: warm onyx, ivory & champagne gold */
:root {
  --bg: #0D0C0B;
  --alt: #141311;
  --surface: #181614;
  --ph: #1E1C19;
  --border: #2A2723;
  --border2: #36322D;
  --head: #F4EFE6;
  --text2: #DDD6CA;
  --body: #ABA498;
  --muted: #8A847A;
  --gold: #C9A96E;
  --gold-hi: #DCC08A;
  --on-gold: #14110D;
  --tint: rgba(201, 169, 110, 0.12);
  --gold-grad: linear-gradient(135deg, #E3C994 0%, #C9A96E 50%, #A88A52 100%);
  --serif: 'Playfair Display', 'Hind Siliguri', Georgia, 'Times New Roman', serif;
  --sans: 'Plus Jakarta Sans', 'Hind Siliguri', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 16px;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--body); font-family: var(--sans); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-hi); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--head); font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--on-gold); padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 16px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section.alt { background: var(--alt); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); text-align: center; margin-bottom: 10px; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 44px); }
.section-head p { margin-top: 12px; }
.gold { color: var(--gold); }
.bar { width: 56px; height: 4px; border-radius: 99px; background: var(--gold-grad); margin: 0 auto 18px; }

/* Buttons & chips */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 26px; border-radius: 10px; font-weight: 700; font-size: 15px; border: 0; cursor: pointer; font-family: inherit; }
.btn-gold { background: var(--gold-grad); color: var(--on-gold); box-shadow: 0 8px 24px rgba(201, 169, 110, 0.22); }
.btn-gold:hover { color: var(--on-gold); filter: brightness(1.06); }
.btn-ghost { border: 1px solid var(--border2); color: var(--head); background: transparent; }
.btn-ghost:hover { border-color: var(--gold); color: var(--head); }
.badge { display: inline-flex; align-items: center; gap: 8px; background: var(--gold-grad); color: var(--on-gold); font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 99px; }
.badge .dot { width: 7px; height: 7px; border-radius: 99px; background: var(--on-gold); }
.tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); background: var(--tint); padding: 3px 10px; border-radius: 99px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 36px; }
.chip { font: inherit; font-size: 13px; font-weight: 600; padding: 0 16px; min-height: 40px; border-radius: 99px; cursor: pointer; background: transparent; color: var(--text2); border: 1px solid var(--border2); display: inline-flex; align-items: center; }
.chip:hover { border-color: var(--gold); color: var(--head); }
.chip.on { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(13, 12, 11, 0.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.logo { font-family: var(--sans); font-weight: 800; font-size: 18px; color: var(--head); letter-spacing: -0.02em; }
.logo:hover { color: var(--head); }
.logo span { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 14px; font-weight: 600; }
.nav-links a { color: var(--text2); }
.nav-links a:hover, .nav-links a.active { color: var(--head); }
.nav-links .btn { min-height: 40px; padding: 0 18px; font-size: 14px; color: var(--on-gold); }
.nav-toggle { display: none; background: none; border: 1px solid var(--border2); color: var(--head); width: 44px; height: 44px; border-radius: 10px; cursor: pointer; align-items: center; justify-content: center; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 8px 24px 20px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-links .btn { margin-top: 14px; justify-content: center; border-bottom: 0; }
}

/* Hero */
.hero { background: var(--alt); padding: 72px 0 96px; overflow: hidden; }
.hero-grid { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero-text { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.hero .greet { margin: 22px 0 6px; color: var(--text2); }
.hero h1 { font-size: clamp(42px, 6.4vw, 66px); line-height: 1.04; }
.hero .role { margin-top: 14px; font-size: 18px; font-weight: 700; color: var(--head); font-family: var(--sans); }
.hero .bio { margin-top: 16px; max-width: 500px; font-size: 17px; }
.stats { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.stat-value { font-size: 28px; font-weight: 800; color: var(--gold); letter-spacing: -0.02em; line-height: 1.1; }
.stat-label { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.stat-sep { width: 1px; height: 42px; background: var(--border2); }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-photo { flex: 1 1 320px; display: flex; justify-content: center; }
.photo-ring { width: 320px; max-width: 100%; aspect-ratio: 1; border-radius: 999px; padding: 6px; background: var(--alt); box-shadow: 0 0 0 2px var(--gold), 0 0 110px 30px rgba(201, 169, 110, 0.14); }
.photo-ring img, .photo-ring .ph { width: 100%; height: 100%; border-radius: 999px; object-fit: cover; }
.photo-ring .ph { background: var(--ph); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; }

/* Cards & grids */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h3 { font-size: 21px; }
.card p { font-size: 15px; }
.card-media { aspect-ratio: 16 / 9; background: var(--ph); width: 100%; object-fit: cover; }
a.card { color: inherit; transition: border-color .2s, transform .2s; }
a.card:hover { border-color: var(--border2); transform: translateY(-2px); color: inherit; }
a.card:hover h3 { color: var(--gold-hi); }

.brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; }
/* Light tile so every logo shows in its own colours (like a "trusted by" wall), with the brand name under it. */
.brand { background: #fff; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 18px 14px 14px; min-height: 132px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 12px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.brand:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 12px 30px rgba(0,0,0,.4); }
.brand .logo { width: 100%; height: 64px; display: flex; align-items: center; justify-content: center; }
.brand img { max-width: 100%; max-height: 64px; width: auto; height: auto; object-fit: contain; mix-blend-mode: multiply; }
.brand .initial { width: 56px; height: 56px; border-radius: 99px; background: #F3EBDB; color: #8A6D32; font-family: var(--serif); font-size: 26px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.brand .b-name { color: #1E1B17; font-weight: 700; font-size: 13px; line-height: 1.3; text-align: center; overflow-wrap: anywhere; }
.brand[hidden] { display: none; }
@media (max-width: 520px) { .brands { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .brand { padding: 14px 10px 12px; min-height: 118px; } }

.services { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); overflow: hidden; }
.service { padding: 28px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; margin: 0 -1px -1px 0; }
.service-top { display: flex; justify-content: space-between; align-items: center; }
.icon-box { width: 40px; height: 40px; border-radius: 10px; background: var(--tint); color: var(--gold); display: inline-flex; align-items: center; justify-content: center; }
.service .num { font-size: 12px; font-weight: 700; color: var(--muted); }
.service h3 { font-size: 19px; margin-top: 6px; }
.service p { font-size: 14px; }

.case-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; border-top: 1px solid var(--border); padding-top: 14px; margin-top: 6px; }
.case-stats b { display: block; font-size: 18px; color: var(--gold); font-family: var(--sans); }
.case-stats span { font-size: 12px; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags .t2 { background: var(--ph); color: var(--text2); }
.more { font-weight: 700; font-size: 15px; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; margin-top: auto; }

.review { padding: 22px; gap: 12px; }
.review-head { display: flex; align-items: center; gap: 12px; }
.avatar { width: 44px; height: 44px; border-radius: 999px; background: var(--ph); object-fit: cover; flex: none; }
.review-name { font-weight: 800; color: var(--head); font-size: 15px; }
.review-role { font-size: 12px; color: var(--muted); }
.stars { color: var(--gold); letter-spacing: 2px; font-size: 15px; }
.review blockquote { margin: 0; font-size: 15px; color: var(--text2); flex: 1; }
.review-foot { border-top: 1px solid var(--border); padding-top: 12px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 700; color: var(--gold); gap: 10px; }
.review-foot img { max-height: 20px; width: auto; filter: grayscale(1) brightness(1.6); }

.faq { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; color: var(--head); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--gold); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 0 20px; }

/* Footer */
.site-footer { background: #080807; color: var(--body); border-top: 1px solid var(--border); }
.foot-grid { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; padding: 64px 0 0; }
.foot-grid h2 { font-family: var(--sans); font-size: 16px; font-weight: 800; margin-bottom: 12px; }
.foot-brand { flex: 2 1 340px; max-width: 440px; }
.foot-brand .name { font-size: 22px; font-weight: 600; color: var(--head); font-family: var(--serif); }
.foot-brand .role { color: var(--gold); font-weight: 700; margin: 6px 0 10px; }
.foot-col { flex: 1 1 180px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.foot-col a { color: var(--text2); }
.foot-col a:hover { color: var(--gold); }
.socials { display: flex; gap: 10px; margin-top: 8px; }
.socials a { width: 44px; height: 44px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); color: var(--head); display: inline-flex; align-items: center; justify-content: center; }
.socials a:hover { border-color: var(--gold); color: var(--gold); }
.foot-bottom { margin-top: 48px; border-top: 1px solid var(--border); padding: 22px 0 28px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; font-size: 13px; color: var(--muted); }
.to-top { color: var(--head); border: 1px solid var(--border2); border-radius: 10px; padding: 0 16px; min-height: 44px; display: inline-flex; align-items: center; }

/* Blog & articles */
.page-hero { background: var(--alt); padding: 72px 0 64px; text-align: center; }
.page-hero h1 { font-size: clamp(36px, 5vw, 52px); }
.page-hero p { max-width: 560px; margin: 14px auto 0; }
.page-hero .chips { margin: 28px 0 0; }
.featured { display: flex; flex-wrap: wrap; border: 1px solid var(--border); border-radius: 18px; overflow: hidden; background: var(--surface); margin-bottom: 36px; color: inherit; }
.featured:hover { color: inherit; border-color: var(--border2); }
.featured .card-media { flex: 1 1 420px; min-height: 280px; aspect-ratio: auto; }
.featured .card-body { flex: 1 1 380px; padding: 32px; justify-content: center; }
.featured h2 { font-size: clamp(26px, 3vw, 32px); }
.meta-line { font-size: 13px; color: var(--muted); }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 44px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border2); border-radius: 10px; color: var(--text2); padding: 0 12px; }
.pagination .on { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }

.crumbs { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 18px; }
.crumbs a { color: var(--text2); }
.article-head { max-width: 820px; margin: 0 auto; text-align: center; }
.article-head h1 { font-size: clamp(34px, 5vw, 50px); }
.article-head .meta-line { margin-top: 16px; }
.article-cover { max-width: 960px; margin: 40px auto 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--border); }
.article-layout { display: flex; flex-wrap: wrap; gap: 48px; justify-content: center; align-items: flex-start; }
.toc { flex: 0 1 240px; position: sticky; top: 96px; font-size: 14px; border-left: 2px solid var(--border); padding-left: 16px; }
.toc b { display: block; color: var(--head); margin-bottom: 10px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.toc a { display: block; color: var(--muted); padding: 5px 0; }
.toc a.l3 { padding-left: 12px; }
.toc a:hover { color: var(--gold); }
@media (max-width: 980px) { .toc { position: static; flex-basis: 100%; } }

.prose { flex: 0 1 720px; min-width: 0; font-size: 18px; line-height: 1.8; color: var(--text2); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 30px; margin-top: 1.8em; scroll-margin-top: 90px; }
.prose h3 { font-size: 23px; margin-top: 1.5em; scroll-margin-top: 90px; }
.prose a { text-decoration: underline; text-decoration-color: rgba(201, 169, 110, 0.5); text-underline-offset: 3px; }
.prose strong { color: var(--head); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--gold); }
.prose blockquote { margin-left: 0; border-left: 3px solid var(--gold); padding: 4px 0 4px 20px; font-family: var(--serif); font-size: 21px; color: var(--head); }
.prose img { border-radius: 14px; border: 1px solid var(--border); }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 14px; }
.prose pre { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; overflow-x: auto; font-size: 14px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--border); padding: 10px 12px; text-align: left; }
.prose .ql-align-center { text-align: center; }
.prose .ql-align-right { text-align: right; }
.answer-box { background: var(--tint); border: 1px solid rgba(201, 169, 110, 0.3); border-radius: 14px; padding: 18px 20px; color: var(--head); }

.author { display: flex; gap: 16px; align-items: center; border: 1px solid var(--border); border-radius: 16px; padding: 20px; background: var(--surface); margin-top: 48px; }
.author img, .author .ph { width: 64px; height: 64px; border-radius: 999px; object-fit: cover; background: var(--ph); flex: none; }
.author b { color: var(--head); display: block; }
.author span { font-size: 14px; }

.case-hero-stats { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 32px; }
.case-hero-stats div { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px 22px; min-width: 160px; }
.case-hero-stats b { display: block; font-size: 26px; color: var(--gold); font-family: var(--sans); }
.case-hero-stats span { font-size: 13px; color: var(--muted); }

.cta-band { border: 1px solid var(--border2); border-radius: 20px; padding: 48px 32px; text-align: center; background: radial-gradient(ellipse at top, rgba(201, 169, 110, 0.12), transparent 70%), var(--surface); }
.cta-band h2 { font-size: clamp(28px, 4vw, 40px); }
.cta-band p { margin: 12px auto 26px; max-width: 520px; }

.empty-404 { text-align: center; padding: 120px 0; }
.empty-404 .code { font-family: var(--serif); font-size: 96px; color: var(--gold); line-height: 1; }

@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .wrap { padding: 0 16px; }
  .hero { padding: 48px 0 72px; }
  .prose { font-size: 17px; }
  .stat-sep { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* ===== Available-for-work badge: green, gently hopping ===== */
.badge.avail { background: rgba(34, 197, 94, 0.14); color: #86EFAC; border: 1px solid rgba(34, 197, 94, 0.5); animation: hop 2.8s ease-in-out infinite; }
.badge.avail .dot { background: #22C55E; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); animation: ping 1.8s ease-out infinite; }
@keyframes hop { 0%, 55%, 100% { transform: translateY(0); } 15% { transform: translateY(-7px); } 28% { transform: translateY(0); } 40% { transform: translateY(-3px); } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); } 80%, 100% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } }

/* ===== Typing headlines ===== */
.tw-caret { display: inline-block; width: 2px; height: 0.86em; margin-left: 3px; background: var(--gold); vertical-align: -0.06em; animation: blink 0.9s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
#top { position: absolute; top: 0; left: 0; width: 1px; height: 1px; }

@media (prefers-reduced-motion: reduce) {
  .badge.avail, .badge.avail .dot, .tw-caret { animation: none; }
  html { scroll-behavior: auto; }
}

/* ===== Bangla pages (set automatically when the page title is in Bangla) ===== */
html:lang(bn) body { line-height: 1.85; }
html:lang(bn) h1, html:lang(bn) h2, html:lang(bn) h3, html:lang(bn) h4 { letter-spacing: 0; line-height: 1.35; }
html:lang(bn) .prose { font-size: 18px; line-height: 1.9; }
html:lang(bn) .prose h2 { font-size: 28px; }
html:lang(bn) .prose h3 { font-size: 22px; }
