/* =============================================
   96M Blackjack — Main Stylesheet
   Colors: White, Blue (#1a4b8c), Orange (#f97316)
   Theme: Blackjack / Card Table
   ============================================= */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --white:       #ffffff;
  --blue:        #1a4b8c;
  --blue-mid:    #1e56a0;
  --blue-light:  #2563eb;
  --orange:      #f97316;
  --orange-dark: #ea580c;
  --felt:        #1a6b3c;
  --felt-dark:   #155230;
  --gray-50:     #f9fafb;
  --gray-100:    #f3f4f6;
  --gray-200:    #e5e7eb;
  --gray-400:    #9ca3af;
  --gray-700:    #374151;
  --gray-900:    #111827;
  --red-suit:    #dc2626;
  --radius:      8px;
  --shadow:      0 2px 12px rgba(0,0,0,0.10);
  --shadow-lg:   0 8px 32px rgba(0,0,0,0.14);
  --transition:  0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-700);
  background: var(--white);
}

img { max-width: 100%; display: block; }
a { color: var(--blue-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--orange); }

h1, h2, h3, h4 {
  color: var(--blue);
  line-height: 1.3;
  font-weight: 700;
}
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }

p { margin-bottom: 1rem; }
ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.4rem; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section { padding: 4rem 0; }
.section--alt { background: var(--gray-50); }

/* --- Suit Decorations --- */
.suit { font-style: normal; }
.suit--red { color: var(--red-suit); }
.suit--black { color: var(--gray-900); }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  text-align: center;
  border: 2px solid transparent;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }

.btn--orange {
  background: var(--orange);
  color: var(--white) !important;
  border-color: var(--orange);
}
.btn--orange:hover { background: var(--orange-dark); border-color: var(--orange-dark); color: var(--white) !important; }

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn--outline-white:hover { background: rgba(255,255,255,0.15); color: var(--white); }

.btn--outline-blue {
  background: transparent;
  color: var(--white);
  border-color: var(--blue);
  background: var(--blue);
}
.btn--outline-blue:hover { background: var(--blue-mid); border-color: var(--blue-mid); color: var(--white); }

/* =============================================
   NAVIGATION
   ============================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 3px solid var(--orange);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav__logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
}
.nav__logo:hover { color: var(--orange); }
.nav__logo-suit {
  font-size: 1.5rem;
  color: var(--orange);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav__links a {
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: background var(--transition), color var(--transition);
}
.nav__links a:hover,
.nav__links a.active {
  background: var(--gray-100);
  color: var(--blue);
}
.nav__cta { margin-left: 0.75rem; }
.nav__cta .btn--orange { color: #000000 !important; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav__burger { display: flex; }
  .nav__links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 3px solid var(--orange);
    padding: 1rem 1.25rem 1.5rem;
    gap: 0.25rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  }
  .nav__links.open { display: flex; }
  .nav__links li { width: 100%; }
  .nav__links a { display: block; padding: 0.6rem 1rem; font-size: 1rem; }
  .nav__cta { margin-left: 0; margin-top: 0.5rem; }
  .nav__cta .btn { width: 100%; display: block; text-align: center; }
}

/* =============================================
   HERO — HOMEPAGE
   ============================================= */
.hero {
  background: var(--blue);
  position: relative;
  overflow: hidden;
  padding: 0;
}

.hero__felt {
  background: var(--felt);
  padding: 3.5rem 0 3rem;
  position: relative;
}
.hero__felt::before,
.hero__felt::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 6px;
}
.hero__felt::before { top: 0; background: linear-gradient(90deg, var(--orange), var(--blue), var(--orange)); }
.hero__felt::after  { bottom: 0; background: linear-gradient(90deg, var(--blue), var(--orange), var(--blue)); }

.hero__suits {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  font-size: 2rem;
  margin-bottom: 1.25rem;
  opacity: 0.85;
}

.hero__title {
  color: var(--white);
  text-align: center;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  margin-bottom: 1rem;
}

.hero__sub {
  color: rgba(255,255,255,0.88);
  text-align: center;
  font-size: 1.1rem;
  max-width: 620px;
  margin: 0 auto 2rem;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__ambassadors {
  background: var(--blue);
  padding: 1.25rem 0;
  text-align: center;
  color: rgba(255,255,255,0.80);
  font-size: 0.92rem;
}
.hero__ambassadors strong { color: var(--orange); }

/* =============================================
   HERO — INNER PAGES
   ============================================= */
.page-hero {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-mid) 100%);
  padding: 3rem 0 2.5rem;
  border-bottom: 4px solid var(--orange);
}
.page-hero__breadcrumb {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.75rem;
}
.page-hero__breadcrumb a { color: rgba(255,255,255,0.75); }
.page-hero__breadcrumb a:hover { color: var(--orange); }
.page-hero__title {
  color: var(--white);
  margin-bottom: 0.75rem;
}
.page-hero__suits {
  font-size: 1.5rem;
  opacity: 0.6;
  letter-spacing: 0.5rem;
}

/* =============================================
   FEATURE CARDS (playing-card style)
   ============================================= */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: var(--white);
  border-radius: 12px;
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card__suit {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  opacity: 0.25;
}
.card__icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}
.card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 0.5rem;
}
.card__text {
  font-size: 0.95rem;
  color: var(--gray-700);
  margin-bottom: 1rem;
}
.card__link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--orange);
}
.card__link:hover { color: var(--orange-dark); }

/* =============================================
   STATS / TRUST BAR
   ============================================= */
.stats-bar {
  background: var(--blue);
  padding: 2rem 0;
}
.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  text-align: center;
}
.stats-bar__item { color: var(--white); }
.stats-bar__number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--orange);
  display: block;
}
.stats-bar__label {
  font-size: 0.85rem;
  opacity: 0.80;
}

/* =============================================
   SECTION DIVIDER
   ============================================= */
.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-header__suits {
  font-size: 1.1rem;
  letter-spacing: 0.8rem;
  opacity: 0.45;
  margin-bottom: 0.5rem;
}
.section-header__title { margin-bottom: 0.5rem; }
.section-header__sub {
  color: var(--gray-400);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto;
}

/* =============================================
   CTA BANNER
   ============================================= */
.cta-banner {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  padding: 3.5rem 0;
  text-align: center;
}
.cta-banner__title {
  color: var(--white);
  margin-bottom: 0.75rem;
}
.cta-banner__sub {
  color: rgba(255,255,255,0.88);
  margin-bottom: 1.75rem;
  font-size: 1.05rem;
}
.cta-banner .btn--outline-white { font-size: 1.1rem; padding: 0.85rem 2.5rem; }

/* =============================================
   CONTENT AREA (prose)
   ============================================= */
.prose h2 { margin: 2rem 0 0.75rem; }
.prose h3 { margin: 1.5rem 0 0.5rem; color: var(--blue-mid); }
.prose ul li::marker { color: var(--orange); }
.prose ol li::marker { color: var(--blue); font-weight: 700; }
.prose a { color: var(--blue-light); font-weight: 500; }
.prose a:hover { color: var(--orange); }

.tip-box {
  background: #eff6ff;
  border-left: 4px solid var(--blue-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.tip-box__label {
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.warning-box {
  background: #fff7ed;
  border-left: 4px solid var(--orange);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

/* =============================================
   BASIC STRATEGY TABLE
   ============================================= */
.strategy-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
}
.legend-dot {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  display: inline-block;
}
.legend-h  { background: #bfdbfe; }
.legend-s  { background: #bbf7d0; }
.legend-d  { background: #fed7aa; }
.legend-ds { background: #fde68a; }
.legend-p  { background: #e9d5ff; }
.legend-r  { background: #fecaca; }

.strategy-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}
.strategy-table-wrap h3 {
  background: var(--blue);
  color: var(--white);
  padding: 0.75rem 1rem;
  margin: 0;
  font-size: 1rem;
  border-radius: var(--radius) var(--radius) 0 0;
}

.strategy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  min-width: 580px;
}
.strategy-table th {
  background: var(--felt-dark);
  color: var(--white);
  padding: 0.5rem 0.4rem;
  text-align: center;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 1;
}
.strategy-table th:first-child {
  background: var(--blue);
  text-align: left;
  padding-left: 0.75rem;
  min-width: 90px;
}
.strategy-table td {
  padding: 0.4rem 0.35rem;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.06);
  font-weight: 600;
  font-size: 0.8rem;
}
.strategy-table td:first-child {
  background: var(--gray-100);
  font-weight: 700;
  text-align: left;
  padding-left: 0.75rem;
  color: var(--blue);
  border-right: 2px solid var(--gray-200);
}
.strategy-table tr:hover td { filter: brightness(0.94); }

/* Cell colors */
.h  { background: #bfdbfe; color: #1e40af; }
.s  { background: #bbf7d0; color: #14532d; }
.d  { background: #fed7aa; color: #9a3412; }
.ds { background: #fde68a; color: #78350f; }
.p  { background: #e9d5ff; color: #5b21b6; }
.r  { background: #fecaca; color: #991b1b; }
.rh { background: #fecaca; color: #991b1b; }

/* =============================================
   ODDS TABLE
   ============================================= */
.odds-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
}
.odds-table th {
  background: var(--blue);
  color: var(--white);
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.9rem;
}
.odds-table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.92rem;
}
.odds-table tr:last-child td { border-bottom: none; }
.odds-table tr:nth-child(even) td { background: var(--gray-50); }
.odds-table td:last-child { font-weight: 700; color: var(--blue); }

/* =============================================
   BLOG CARDS
   ============================================= */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.blog-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}
.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.blog-card__thumb {
  background: linear-gradient(135deg, var(--felt) 0%, var(--felt-dark) 100%);
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: rgba(255,255,255,0.5);
  position: relative;
  overflow: hidden;
}
.blog-card__thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(255,255,255,0.03) 10px,
    rgba(255,255,255,0.03) 20px
  );
}

.blog-card__body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.blog-card__tag {
  display: inline-block;
  background: #eff6ff;
  color: var(--blue-light);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.blog-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}
.blog-card__excerpt { font-size: 0.9rem; color: var(--gray-700); flex: 1; margin-bottom: 1rem; }
.blog-card__link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.blog-card__link:hover { color: var(--orange-dark); }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--gray-900);
  color: rgba(255,255,255,0.75);
  padding: 3rem 0 1.5rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer__col-title {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.footer__links {
  list-style: none;
  padding: 0;
}
.footer__links li { margin-bottom: 0.5rem; }
.footer__links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--orange); }

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.footer__brand-suit { color: var(--orange); }
.footer__tagline { font-size: 0.88rem; color: rgba(255,255,255,0.55); margin-bottom: 0; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.10);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}
.footer__disclaimer { max-width: 600px; line-height: 1.5; }
.footer__suits { font-size: 1rem; opacity: 0.3; letter-spacing: 0.4rem; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 600px) {
  .section { padding: 2.5rem 0; }
  .hero__felt { padding: 2.5rem 0 2rem; }
  .hero__suits { font-size: 1.5rem; gap: 0.75rem; }
  .hero__actions { flex-direction: column; align-items: center; }
  .hero__actions .btn { width: 100%; max-width: 320px; }
  .stats-bar__grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid { grid-template-columns: 1fr; }
  .strategy-legend { gap: 0.5rem; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__bottom { flex-direction: column; text-align: center; }
}
