/*
Theme Name: bd333 Longform
Theme URI: https://bd333.beer/
Author: bd333 Editorial
Description: Bengali-first longform brand entry theme for bd333 Bangladesh.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: bd333-longform
*/

:root {
  --bg: #07100d;
  --bg-soft: #101d18;
  --panel: #14241e;
  --panel-2: #192b24;
  --text: #f4f7f1;
  --muted: #b8c5ba;
  --line: rgba(255,255,255,.12);
  --accent: #28d17c;
  --accent-2: #ffd05a;
  --warn: #ff8d5c;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 0%, rgba(40,209,124,.16), transparent 34rem),
    linear-gradient(180deg, #07100d 0%, #0a1511 42%, #10150f 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Noto Sans Bengali", "Noto Sans", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.75;
}

a { color: var(--accent); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--accent-2); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7,16,13,.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner,
.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-symbol {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(40,209,124,.55);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(40,209,124,.25), rgba(255,208,90,.16));
  color: var(--accent-2);
  font-size: 14px;
}

.brand-logo-img {
  width: 38px;
  height: 38px;
  max-width: 38px;
  max-height: 38px;
  flex: 0 0 38px;
  object-fit: contain;
  border-radius: 6px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(40,209,124,.36);
}

.primary-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
}

.primary-menu a {
  color: var(--muted);
  text-decoration: none;
}

.primary-menu a:hover { color: var(--text); }

.hero {
  padding: 56px 0 34px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 480px);
  align-items: center;
  gap: 34px;
}

.eyebrow {
  color: var(--accent-2);
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 10px;
}

h1,
.page-title {
  margin: 0 0 18px;
  color: var(--text);
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.12;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 720px;
  color: var(--muted);
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #06100c;
  box-shadow: 0 18px 34px rgba(40,209,124,.18);
}

.btn-primary:hover { color: #06100c; background: #5ee69d; }

.btn-secondary {
  background: rgba(255,255,255,.06);
  color: var(--text);
  border-color: var(--line);
}

.hero-media {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 24px 70px rgba(0,0,0,.34);
}

.page-shell {
  padding: 42px 0 64px;
}

.article-header {
  padding: 38px 0 20px;
}

.article-header .page-title {
  max-width: 900px;
  font-size: clamp(32px, 4vw, 54px);
}

.featured-image {
  margin: 18px 0 28px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.content-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
}

.entry-content {
  color: #e9efe8;
}

.entry-content > * {
  max-width: 900px;
}

.entry-content h2 {
  margin: 38px 0 14px;
  color: var(--text);
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.25;
  letter-spacing: 0;
}

.entry-content h3 {
  margin: 26px 0 10px;
  color: #f9f2cf;
  font-size: 23px;
  line-height: 1.32;
}

.entry-content p {
  margin: 0 0 17px;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.25rem;
}

.entry-content li + li { margin-top: 8px; }

.entry-content figure {
  max-width: 980px;
  margin: 28px 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
}

.entry-content figcaption {
  padding: 8px 12px;
  color: var(--muted);
  font-size: 14px;
}

.toc,
.trust-strip,
.notice,
.cta-band,
.faq-block,
.link-grid,
.wp-block-table {
  max-width: 980px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(20,36,30,.72);
}

.toc,
.notice,
.faq-block,
.link-grid {
  padding: 18px;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 12px 16px;
  margin: 16px 0 28px;
  color: var(--muted);
  font-size: 14px;
}

.trust-strip a { color: #dffbe9; }

.notice {
  border-color: rgba(255,208,90,.28);
  background: rgba(255,208,90,.08);
}

.cta-band {
  padding: 22px;
  margin: 30px 0;
  background: linear-gradient(135deg, rgba(40,209,124,.16), rgba(255,208,90,.10));
}

.cta-band p { margin-bottom: 14px; }

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  list-style: none;
  padding: 18px;
}

.link-grid a {
  display: block;
  padding: 10px 12px;
  border-radius: 7px;
  background: rgba(255,255,255,.055);
  text-decoration: none;
}

.faq-block details {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.faq-block details:first-child { border-top: 0; padding-top: 0; }
.faq-block summary { cursor: pointer; color: var(--text); font-weight: 800; }
.faq-block p { margin: 10px 0 0; color: var(--muted); }

.site-footer {
  border-top: 1px solid var(--line);
  background: #060d0a;
  color: var(--muted);
  padding: 28px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .header-inner { align-items: flex-start; flex-direction: column; padding: 14px 0; }
  .primary-menu { justify-content: flex-start; }
  .hero { padding-top: 34px; }
  .hero-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
}
