/* ========================================
   ACEPULSE.SHOP - BACCARAT RULES & VARIATIONS
   Master Casino Games Through Strategic Education
   ======================================== */

/* ========================================
   1. ROOT & VARIABLES
   ======================================== */

:root {
  --primary: #1a1a2e;
  --secondary: #0f3460;
  --accent: #aa8c2c;
  --background: #f8f7f3;
  --text: #2c2c2c;
  --light-gray: #e8e7e3;
  --white: #ffffff;
  --shadow: 0 2px 8px rgba(26, 26, 46, 0.1);
  --shadow-hover: 0 8px 16px rgba(26, 26, 46, 0.15);
  --border-radius: 4px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   2. RESET & GLOBAL STYLES
   ======================================== */

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

html {
  scroll-behavior: smooth;
}

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

/* ========================================
   3. 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: 3.5rem;
  letter-spacing: -1px;
}

h2 {
  font-size: 2.5rem;
  letter-spacing: -0.5px;
  margin-top: 1.5em;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.375rem;
}

p {
  margin-bottom: 1em;
  font-size: 1rem;
}

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

a:hover {
  color: #8b6f1f;
}

strong {
  font-weight: 600;
}

em {
  font-style: italic;
}

/* ========================================
   4. UTILITY CLASSES
   ======================================== */

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

.container-sm {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-divider {
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent), transparent);
  margin: 3rem 0;
  opacity: 0.3;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ========================================
   5. SVG ICONS
   ======================================== */

.casino-icon {
  width: 48px;
  height: 48px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
  fill: currentColor;
}

.hero .casino-icon {
  width: 64px;
  height: 64px;
  margin-right: 12px;
  margin-bottom: 12px;
}

.card .casino-icon {
  width: 40px;
  height: 40px;
  margin-right: 12px;
  color: var(--accent);
}

/* ========================================
   6. HEADER
   ======================================== */

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

.header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-logo h1 {
  font-size: 1.5rem;
  margin: 0;
  color: var(--primary);
}

.header-logo .tagline {
  font-size: 0.75rem;
  color: var(--accent);
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.header-nav {
  display: none;
}

.header-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary);
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========================================
   7. NAVIGATION
   ======================================== */

.nav {
  background-color: var(--primary);
  padding: 0;
  margin: 0;
  list-style: none;
}

.nav.active {
  display: block;
}

.nav li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav a {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--white);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav a:hover {
  background-color: rgba(170, 140, 44, 0.1);
  color: var(--accent);
  border-bottom: 3px solid var(--accent);
  padding-bottom: calc(1rem - 3px);
}

/* ========================================
   8. HERO SECTION
   ======================================== */

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

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

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

.hero h1 {
  color: var(--white);
  margin-bottom: 0.5rem;
  font-size: 2.5rem;
}

.hero .tagline {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--accent);
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 500;
  letter-spacing: 1px;
}

.hero p {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.95);
}

.hero .casino-icon {
  color: var(--accent);
}

/* ========================================
   9. BUTTONS
   ======================================== */

.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border: 2px solid var(--accent);
  background-color: var(--accent);
  color: var(--white);
  font-weight: 600;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
}

.btn:hover {
  background-color: transparent;
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(170, 140, 44, 0.2);
}

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

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

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

.btn-primary:hover {
  background-color: #8b6f1f;
  border-color: #8b6f1f;
}

.btn-block {
  display: block;
  width: 100%;
}

/* ========================================
   10. CARDS
   ======================================== */

.card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--accent);
  transition: var(--transition);
}

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

.card-header {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.card h3 {
  margin: 0;
  color: var(--primary);
}

.card p {
  margin-bottom: 0.5rem;
  color: var(--text);
}

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

.card-footer {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--light-gray);
}

/* ========================================
   11. SECTION
   ======================================== */

.section {
  padding: 3rem 1.5rem;
}

.section-title {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--accent);
  font-size: 1.125rem;
  margin-bottom: 2rem;
  font-weight: 500;
}

/* ========================================
   12. CONTENT GRID
   ======================================== */

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

.grid-2
