/* =============================================
   CASINOWAGER.SHOP - RESPONSIVE CSS STYLESHEET
   House Edge Analysis & Casino Mathematics
   ============================================= */

/* =============================================
   ROOT & TYPOGRAPHY VARIABLES
   ============================================= */

:root {
  --primary: #1a1a2e;
  --secondary: #16213e;
  --accent: #aa8c2c;
  --background: #f8f7f3;
  --text: #2d2d2d;
  --light-text: #555555;
  --border-light: #e0e0e0;
  --border-dark: #d0cfc8;
  --white: #ffffff;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
}

/* Font definitions using system fonts (no @import) */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background-color: var(--background);
  line-height: 1.6;
  letter-spacing: 0.3px;
}

/* =============================================
   TYPOGRAPHY
   ============================================= */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary);
  margin-bottom: 0.5em;
}

h1 {
  font-size: 2.75rem;
  letter-spacing: -1px;
}

h2 {
  font-size: 2.25rem;
  letter-spacing: -0.5px;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.375rem;
}

h5 {
  font-size: 1.125rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1.25rem;
  color: var(--light-text);
  font-size: 1rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
}

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

strong {
  font-weight: 600;
  color: var(--primary);
}

/* =============================================
   BUTTONS
   ============================================= */

.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 4px;
  transition: var(--transition);
  text-decoration: none;
  letter-spacing: 0.5px;
  user-select: none;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn-primary:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-secondary:hover {
  background-color: var(--accent);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-dark {
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn-dark:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

/* =============================================
   HEADER & NAVIGATION
   ============================================= */

.header {
  background-color: var(--white);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-text {
  letter-spacing: 1px;
}

.logo-tagline {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--accent);
  display: block;
  line-height: 1;
  letter-spacing: 0.5px;
}

.nav {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: var(--transition);
}

.nav a:hover::after {
  width: 100%;
}

/* Mobile Menu Toggle */

.menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  gap: 5px;
}

.menu-toggle span {
  width: 24px;
  height: 3px;
  background-color: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* =============================================
   HERO SECTION
   ============================================= */

.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--white);
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(170, 140, 44, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(170, 140, 44, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero-container {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero .casino-icon {
  width: 64px;
  height: 64px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 12px;
  opacity: 0.9;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 2.75rem;
  letter-spacing: -1px;
}

.hero .tagline {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  font-weight: 300;
  letter-spacing: 0.5px;
}

.hero-content {
  margin-bottom: 2.5rem;
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

/* =============================================
   SECTIONS & SPACING
   ============================================= */

.section {
  padding: 3.5rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.section-divider {
  height: 3px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
  margin: 3.5rem auto;
  max-width: 100px;
}

/* =============================================
   CARD LAYOUTS
   ============================================= */

.card {
  background-color: var(--white);
  border-radius: 6px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border-top: 4px solid var(--accent);
  position: relative;
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card-icon {
  width: 48px;
  height: 48px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
  margin-bottom: 1rem;
}

.card h3 {
  margin-bottom: 1rem;
  font-size: 1.375rem;
}

.card p {
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.card .btn {
  margin-top: 1rem;
}

/* Grid layouts for cards */

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.cards-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* =============================================
   BLOG & ARTICLE SECTIONS
   ============================================= */

.blog-
