/*
Theme Name: 1777bet Longform
Theme URI: https://1777bet.cfd/
Author: Codex
Description: Bengali-first brand entry theme for 1777bet Bangladesh content.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: 1777bet-longform
*/

:root {
  --ink: #171717;
  --muted: #57534e;
  --paper: #fbfaf7;
  --panel: #ffffff;
  --line: #ded8cd;
  --green: #0f7b55;
  --green-dark: #07593d;
  --gold: #c58b20;
  --red: #b4233c;
  --teal: #087278;
  --shadow: 0 16px 40px rgba(23, 23, 23, 0.08);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

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

a {
  color: var(--green-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 250, 247, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.header-inner,
.site-footer-inner,
.content-wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
}

.brand-symbol {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: #fff;
  background: var(--green-dark);
  font-size: 18px;
  letter-spacing: 0;
}

.custom-logo,
.custom-logo-link img,
.site-branding img,
.brand-logo img,
.footer-brand img {
  max-width: 210px;
  max-height: 58px;
  width: auto;
  height: auto;
}

.primary-menu,
.footer-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
  flex-wrap: wrap;
}

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

.primary-menu a:hover,
.footer-menu a:hover {
  background: #efe9dc;
}

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

.entry {
  padding: 36px 0 64px;
}

.page-hero {
  padding: 44px 0 24px;
  border-bottom: 1px solid var(--line);
  background: #f3efe5;
}

.page-hero h1 {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto 12px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.1;
}

.page-hero p {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  color: var(--muted);
}

.entry-content > * {
  width: min(900px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.entry-content > .alignwide,
.entry-content > .brand-hero,
.entry-content > .section-band {
  width: min(1120px, calc(100% - 32px));
}

.brand-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 36px;
  align-items: center;
  padding: 52px 0 36px;
}

.brand-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.4rem, 5vw, 5rem);
  line-height: 1.05;
}

.kicker {
  margin: 0 0 12px;
  color: var(--red);
  font-weight: 800;
}

.lead {
  color: #393531;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
}

.hero-actions,
.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid var(--green-dark);
  border-radius: 6px;
  background: var(--green-dark);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.btn:hover {
  background: var(--green);
  color: #fff;
}

.btn.secondary {
  color: var(--green-dark);
  background: transparent;
}

.btn.secondary:hover {
  background: #e8f3ee;
  color: var(--green-dark);
}

.hero-media,
.content-image {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: #e8e3d8;
}

.hero-media img {
  aspect-ratio: 16 / 11;
  object-fit: cover;
  width: 100%;
}

.section-band {
  padding: 40px 0;
}

.section-band + .section-band {
  border-top: 1px solid var(--line);
}

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

.info-card,
.faq-item,
.note-box {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

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

.note-box {
  border-left: 5px solid var(--gold);
}

.entry-content h2 {
  margin-top: 42px;
  margin-bottom: 12px;
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  line-height: 1.18;
}

.entry-content h3 {
  margin-bottom: 8px;
  line-height: 1.25;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.35em;
}

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

.cta-strip {
  width: min(1120px, calc(100% - 32px));
  margin: 34px auto;
  padding: 28px;
  border-radius: var(--radius);
  color: #fff;
  background: var(--ink);
}

.cta-strip a {
  color: #fff;
}

.site-footer {
  padding: 36px 0;
  border-top: 1px solid var(--line);
  background: #efe9dc;
}

.site-footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
}

.footer-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  max-width: 680px;
}

@media (max-width: 860px) {
  .header-inner,
  .site-footer-inner,
  .brand-hero {
    grid-template-columns: 1fr;
  }

  .header-inner {
    align-items: flex-start;
    padding: 14px 0;
  }

  .primary-menu {
    width: 100%;
  }

  .brand-hero {
    padding-top: 34px;
  }

  .section-grid {
    grid-template-columns: 1fr;
  }
}

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

  .primary-menu a,
  .footer-menu a {
    min-height: 34px;
    padding: 5px 7px;
    font-size: 14px;
  }

  .hero-actions .btn,
  .button-row .btn {
    width: 100%;
  }

  .cta-strip {
    padding: 22px;
  }
}
