/*
Theme Name: BA99 Bangladesh Brand
Theme URI: https://ba99.beer/
Author: Codex
Description: Bengali-first ba99 Bangladesh casino and betting brand entry theme.
Version: 1.0.0
Text Domain: ba99-brand
*/

:root {
  --bg: #08090b;
  --panel: #111419;
  --panel-soft: #171b22;
  --text: #f6f7ef;
  --muted: #c6cabd;
  --line: rgba(246, 247, 239, 0.14);
  --gold: #f1c84b;
  --green: #33d17a;
  --red: #f05d5e;
  --ink: #08090b;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 9, 11, 0.9);
  backdrop-filter: blur(14px);
}

.header-inner,
.site-main > .page-wrap,
.footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  min-height: 72px;
}

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

.brand-dot {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gold), var(--green));
  color: var(--ink);
  display: inline-grid;
  place-items: center;
  font-size: 13px;
  font-weight: 900;
}

.header-logo {
  width: 108px;
  max-width: 28vw;
  max-height: 36px;
  object-fit: contain;
}

.brand-name {
  white-space: nowrap;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.main-nav a {
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
}

.main-nav a:hover,
.main-nav a:focus {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.header-cta,
.button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: var(--gold);
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
}

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

.hero {
  position: relative;
  min-height: min(720px, calc(100vh - 72px));
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 9, 11, 0.95), rgba(8, 9, 11, 0.72) 45%, rgba(8, 9, 11, 0.38)),
    linear-gradient(0deg, rgba(8, 9, 11, 1), rgba(8, 9, 11, 0) 44%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 96px 0 72px;
}

.hero h1,
.page-title {
  margin: 0;
  max-width: 860px;
  font-size: clamp(42px, 8vw, 92px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero p {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 23px);
}

.hero-actions,
.entry-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.entry-cta {
  align-items: center;
}

.cta-note {
  flex-basis: 100%;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 36px 0 0;
}

.quick-links a {
  min-height: 52px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  text-decoration: none;
  display: grid;
  align-items: center;
  font-weight: 700;
}

.site-main {
  padding: 64px 0;
}

.site-main.home-main {
  padding-top: 0;
}

.entry-content {
  font-size: 18px;
}

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

.entry-content > .alignwide,
.entry-content > .wp-block-image,
.entry-content > .link-grid,
.entry-content > .game-grid,
.entry-content > .faq-list {
  max-width: var(--max);
}

.entry-content h2 {
  margin: 56px 0 16px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
}

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

.entry-content p,
.entry-content ul,
.entry-content ol {
  color: var(--muted);
}

.entry-content strong {
  color: var(--text);
}

.entry-content .wp-block-image {
  margin: 34px 0;
}

.entry-content .wp-block-image img,
.page-featured img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
  object-fit: cover;
}

.page-featured {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto 34px;
}

.page-featured img {
  max-height: 520px;
}

.page-header {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto 34px;
  padding: 48px 0 12px;
}

.page-header p {
  max-width: 760px;
  color: var(--muted);
  font-size: 20px;
}

.link-grid,
.game-grid,
.faq-list {
  display: grid;
  gap: 12px;
}

.link-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.game-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.link-card,
.game-card,
.faq-item,
.notice-box,
.trust-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 20px;
}

.link-card a {
  color: var(--gold);
  font-weight: 800;
  text-decoration: none;
}

.faq-item h3,
.game-card h3 {
  margin-top: 0;
}

.notice-box {
  border-color: rgba(240, 93, 94, 0.35);
  background: rgba(240, 93, 94, 0.08);
}

.trust-box {
  border-color: rgba(51, 209, 122, 0.35);
  background: rgba(51, 209, 122, 0.08);
  color: var(--muted);
}

.trust-box a {
  color: var(--gold);
  font-weight: 800;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #050607;
}

.footer-inner {
  padding: 34px 0;
  display: grid;
  gap: 14px;
  color: var(--muted);
}

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

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

@media (max-width: 900px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 10px;
  }

  .quick-links,
  .link-grid,
  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .header-inner,
  .site-main > .page-wrap,
  .footer-inner,
  .hero-inner,
  .page-header,
  .page-featured {
    width: min(100% - 24px, var(--max));
  }

  .hero {
    min-height: 680px;
  }

  .hero h1,
  .page-title {
    font-size: 44px;
  }

  .header-cta {
    display: none;
  }

  .header-logo {
    width: 92px;
    max-height: 32px;
  }

  .quick-links,
  .link-grid,
  .game-grid {
    grid-template-columns: 1fr;
  }

  .entry-content {
    font-size: 17px;
  }
}
