/*
Theme Name: bd89 Bangla
Theme URI: https://bd89.beer/
Author: Codex
Description: Bengali-first bd89 Bangladesh brand entry theme.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: bd89-bangla
*/

:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-soft: #eef7f3;
  --ink: #14161f;
  --muted: #5a6474;
  --line: #dce2ea;
  --brand: #0f766e;
  --brand-dark: #0b4f4a;
  --gold: #d79b1e;
  --red: #b4232a;
  --violet: #4c3f91;
  --radius: 8px;
  --shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
  --wrap: min(1120px, calc(100vw - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.72;
}

a {
  color: var(--brand-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

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

.header-inner {
  width: var(--wrap);
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 21px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  letter-spacing: 0;
}

.site-header .brand-logo-image {
  width: auto !important;
  height: 42px !important;
  max-width: 148px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-text {
  color: var(--ink);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.1;
}

.primary-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.primary-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 7px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a {
  background: var(--surface-soft);
  color: var(--brand-dark);
}

.main-content {
  min-height: 70vh;
}

.content-wrap {
  width: var(--wrap);
  margin: 0 auto;
  padding: 42px 0 72px;
}

.wp-block-group,
.entry-section {
  margin: 0 0 34px;
}

.wp-block-group.has-background {
  padding: clamp(22px, 4vw, 42px);
  border-radius: var(--radius);
}

.hero-band {
  background: #111827;
  color: #fff;
  overflow: hidden;
}

.hero-inner {
  width: var(--wrap);
  margin: 0 auto;
  min-height: min(720px, calc(100vh - 72px));
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.78fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(38px, 7vw, 78px) 0 clamp(34px, 6vw, 70px);
}

.hero-copy {
  max-width: 720px;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #f7c95b;
  font-size: 14px;
  font-weight: 800;
}

.hero-copy h1,
.entry-content h1 {
  margin: 16px 0 18px;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 760px;
  color: #dce7ef;
  font-size: clamp(18px, 2.2vw, 22px);
}

.hero-actions,
.quick-links,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button,
.wp-block-button__link,
.hero-actions a,
.cta-row a,
.quick-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 16px;
  border-radius: 7px;
  background: var(--brand);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
  box-shadow: none;
}

.button.secondary,
.hero-actions a:not(.primary-cta),
.quick-links a {
  background: #fff;
  color: var(--brand-dark);
}

.button.warning {
  background: var(--red);
}

.hero-media {
  align-self: stretch;
  display: grid;
  align-items: center;
}

.hero-media figure,
.entry-content figure {
  margin: 0;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.3);
}

.entry-content {
  width: var(--wrap);
  margin: 0 auto;
  padding: 42px 0 76px;
}

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

.entry-content > .alignwide,
.entry-content > .wp-block-columns,
.entry-content > .wp-block-group,
.entry-content > .wp-block-image {
  max-width: 100%;
}

.entry-content h1 {
  color: var(--ink);
  font-size: clamp(34px, 5vw, 56px);
}

.entry-content h2 {
  margin: 40px 0 14px;
  color: var(--ink);
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.18;
  letter-spacing: 0;
}

.entry-content h3 {
  margin: 28px 0 10px;
  font-size: 22px;
  line-height: 1.28;
}

.entry-content p,
.entry-content li {
  color: #273244;
}

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

.feature-grid,
.wp-block-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.wp-block-column,
.info-card,
.faq-card,
.risk-box,
.trust-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.wp-block-column h2,
.wp-block-column h3,
.info-card h3 {
  margin-top: 0;
}

.image-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 34px 0;
}

.image-band figure,
.topic-image {
  overflow: hidden;
  border-radius: 8px;
  background: #dde5ef;
  border: 1px solid var(--line);
}

.image-band img,
.topic-image img,
.entry-content > figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.topic-image {
  margin: 26px 0;
}

.notice,
.responsible-note {
  border-left: 5px solid var(--red);
  background: #fff7ed;
  color: #3c2411;
  padding: 18px 20px;
  border-radius: 8px;
}

.trust-box {
  border-left: 5px solid var(--brand);
  box-shadow: none;
}

.faq-list details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 12px 0;
  padding: 16px 18px;
}

.faq-list summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 800;
}

.site-footer {
  background: #101820;
  color: #d6dde5;
}

.footer-inner {
  width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 40px 0;
}

.footer-inner a {
  color: #fff;
}

.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 880px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .primary-menu {
    justify-content: flex-start;
  }

  .hero-inner,
  .feature-grid,
  .wp-block-columns,
  .image-band,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: auto;
  }

  .hero-media img {
    aspect-ratio: 16 / 10;
  }

  .footer-menu {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .primary-menu a {
    min-height: 34px;
    padding: 7px 8px;
    font-size: 13px;
  }

  .hero-copy h1,
  .entry-content h1 {
    font-size: 36px;
  }

  .hero-actions a,
  .cta-row a,
  .quick-links a {
    width: 100%;
  }
}
