/* ============================================================================
   JACKHOUSE.SHOP - CASINO INFORMATION WEBSITE
   Baccarat Rules & Variations Educational Reference
   ============================================================================ */

/* ============================================================================
   1. ROOT & BASE STYLES
   ============================================================================ */

:root {
  --primary: #1a1a2e;
  --secondary: #16213e;
  --accent: #aa8c2c;
  --background: #f8f7f3;
  --text: #2c2c2c;
  --text-light: #5a5a5a;
  --text-lighter: #8a8a8a;
  --border-light: #e8e7e3;
  --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

/* ============================================================================
   2. TYPOGRAPHY
   ============================================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  line-height: 1.3;
  color: var(--primary);
  margin-bottom: 0.8em;
}

h1 {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.75rem;
  font-weight: 600;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
}

h5 {
  font-size: 1rem;
  font-weight: 600;
}

h6 {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

p {
  margin-bottom: 1em;
  color: var(--text-light);
}

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

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

/* ============================================================================
   3. NAVIGATION & HEADER
   ============================================================================ */

.header {
  background-color: var(--primary);
  color: var(--background);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-medium);
}

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

.logo {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tagline {
  font-size: 0.65rem;
  color: var(--text-lighter);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: -0.25rem;
}

.nav {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav a {
  color: var(--background);
  font-weight: 500;
  font-size: 0.95rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}

.nav a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--accent);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* ============================================================================
   4. HERO SECTION
   ============================================================================ */

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

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(170, 140, 44, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(170, 140, 44, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

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

.hero .casino-icon {
  width: 64px;
  height: 64px;
  display: inline-block;
  vertical-align: middle;
  margin-bottom: 1rem;
  filter: brightness(0.9);
}

.hero h1 {
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.hero .subtitle {
  font-size: 1.25rem;
  color: var(--background);
  margin-bottom: 2rem;
  font-weight: 300;
  letter-spacing: 0.02em;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* ============================================================================
   5. BUTTONS
   ============================================================================ */

.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  text-decoration: none;
  letter-spacing: 0.02em;
}

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

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

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

.btn-secondary:hover {
  background-color: var(--background);
  color: var(--primary);
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  background-color: var(--accent);
  color: var(--primary);
  transform: translateY(-2px);
}

/* ============================================================================
   6. CONTAINER & SECTIONS
   ============================================================================ */

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

.section {
  padding: 4rem 1rem;
  position: relative;
}

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

.section-header h2 {
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, transparent 100%);
  margin-top: 0.5rem;
}

.section-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
  margin: 3rem 0;
}

/* ============================================================================
   7. CARD LAYOUTS
   ============================================================================ */

.card {
  background-color: white;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  border-top: 4px solid var(--accent);
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.card-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 3rem;
}

.card-body {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.card p {
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.card-footer {
  margin-top: auto;
}

.card .btn {
  width: 100%;
  text-align: center;
}

.grid {
  display: grid;
  gap: 2rem;
}

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

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* ============================================================================
   8. BLOG & ARTICLES
   ============================================================================ */

.blog-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2
