/* -------------------------------------------------------------
   ONTARIOLOTO.COM - GLOBAL DESIGN SYSTEM
   ------------------------------------------------------------- */

/* Theme Variables (Derived from JSON Spec) */
:root {
  /* Colors */
  --bg-primary: #0C0E15;
  --bg-secondary: #1A1C2B;
  --bg-card-dark: #1E2032;
  --bg-card-light: #FFFFFF;
  --bg-section-alternate: #F6F8FC;
  --accent-purple: #6C5CE7;
  --accent-blue: #00C2FF;
  --accent-yellow: #FFD700;
  --accent-pink: #FF3366;
  --text-white: #FFFFFF;
  --text-dark: #1A1A2E;
  --text-body: #B0B3C6;
  --text-gray: #8B8EA8;
  --border-dark: #2F3247;
  --border-light: #E5E7EB;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-circle: 50%;
  --radius-pill: 999px;

  /* Spacing Scale */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 80px;

  /* Shadows */
  --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-medium: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-large: 0 16px 40px rgba(0, 0, 0, 0.12);
  --shadow-glow-purple: 0 8px 24px rgba(108, 92, 231, 0.3);
  --shadow-glow-blue: 0 8px 24px rgba(0, 194, 255, 0.3);

  /* Layout */
  --max-width: 1200px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography Utility Styles */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-white);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 56px;
  line-height: 1.1;
  background: linear-gradient(to right, var(--text-white), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: var(--space-lg);
}

h2 {
  font-size: 40px;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

h3 {
  font-size: 28px;
  line-height: 1.3;
  margin-bottom: var(--space-md);
}

h4 {
  font-size: 20px;
  line-height: 1.4;
  margin-bottom: var(--space-sm);
}

h5 {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: var(--space-xs);
}

p {
  font-size: 16px;
  color: var(--text-body);
  margin-bottom: var(--space-md);
}

p.large {
  font-size: 18px;
  line-height: 1.6;
}

p.small {
  font-size: 14px;
  color: var(--text-gray);
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-accent-blue { color: var(--accent-blue); }
.text-accent-purple { color: var(--accent-purple); }
.text-accent-yellow { color: var(--accent-yellow); }
.text-accent-pink { color: var(--accent-pink); }
.text-white { color: var(--text-white); }
.text-gray { color: var(--text-gray); }

.uppercase-caption {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
  margin-bottom: var(--space-sm);
}

/* Layout Grid and Utilities */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  width: 100%;
}

.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.flex-row {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.flex-column {
  display: flex;
  flex-direction: column;
}

.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.flex-wrap { flex-wrap: wrap; }
.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

.section-padding {
  padding: var(--space-4xl) 0;
}

.section-alternate {
  background-color: var(--bg-secondary);
}

.section-alternate-light {
  background-color: var(--bg-section-alternate);
  color: var(--text-dark);
}

.section-alternate-light h2,
.section-alternate-light h3,
.section-alternate-light h4,
.section-alternate-light h5 {
  color: var(--text-dark);
}

.section-alternate-light p {
  color: var(--text-dark);
  opacity: 0.8;
}

/* Navbar Component */
.header-nav {
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-dark);
  position: sticky;
  top: 0;
  height: 74px;
  z-index: 1000;
  display: flex;
  align-items: center;
}

.header-nav.scrolled {
  background-color: rgba(12, 14, 21, 0.95);
  backdrop-filter: blur(8px);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
}

.logo-image {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.logo-text {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.5px;
  text-transform: uppercase;
}

.logo-text span {
  color: var(--accent-purple);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--space-xl);
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-body);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--text-white);
}

.nav-menu a.active {
  border-bottom: 2px solid var(--accent-purple);
  padding-bottom: var(--space-xs);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s, color 0.2s;
  border: none;
}

.btn-primary {
  background-color: var(--accent-purple);
  color: var(--text-white);
  box-shadow: var(--shadow-glow-purple);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(108, 92, 231, 0.5);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--border-dark);
  color: var(--text-body);
}

.btn-outline:hover {
  background-color: var(--bg-card-dark);
  color: var(--text-white);
  transform: translateY(-2px);
}

.btn-outline:active {
  transform: translateY(0);
}

/* Cards */
.card-service {
  background-color: var(--bg-card-dark);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-light);
  border: 1px solid transparent;
  transition: transform 0.3s, box-shadow 0.3s, border-top 0.3s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-service:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-medium);
  border-top: 4px solid var(--accent-purple);
}

.card-service.active-state {
  border: 1px solid var(--accent-purple);
  background-color: rgba(108, 92, 231, 0.05);
}

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background-color: rgba(108, 92, 231, 0.1);
  color: var(--accent-purple);
  margin-bottom: var(--space-lg);
}

.card-icon svg {
  width: 28px;
  height: 28px;
}

.card-service h3 {
  margin-bottom: var(--space-sm);
}

/* Campaign/Game review cards */
.card-campaign {
  background-color: var(--bg-card-dark);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-dark);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-campaign:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-medium);
  border-color: var(--accent-blue);
}

.card-image-wrap {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.card-campaign:hover .card-image {
  transform: scale(1.1);
}

.card-badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  background-color: rgba(0, 194, 255, 0.85);
  color: var(--bg-primary);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.card-content {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-meta {
  font-size: 12px;
  color: var(--text-gray);
  margin-bottom: var(--space-sm);
  display: flex;
  justify-content: space-between;
}

.card-campaign h3 {
  font-size: 22px;
  margin-bottom: var(--space-sm);
}

.card-cta {
  color: var(--text-white);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  margin-top: auto;
  padding-top: var(--space-md);
  font-size: 14px;
  transition: color 0.2s;
}

.card-campaign:hover .card-cta {
  color: var(--accent-blue);
}

/* Process step cards (for About) */
.card-process {
  background-color: var(--bg-card-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-light);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.step-badge {
  background: var(--accent-purple);
  color: var(--text-white);
  border-radius: var(--radius-circle);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: var(--space-lg);
  transition: background-color 0.3s;
}

.card-process:hover .step-badge {
  background: var(--accent-blue);
}

.card-process h3 {
  color: var(--text-dark);
  margin-bottom: var(--space-sm);
}

.card-process p {
  color: var(--text-gray);
  font-size: 14px;
  margin-bottom: 0;
}

/* Stats Widget Overlay on Hero (JSON layout) */
.stats-overlay {
  background-color: var(--bg-card-dark);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  box-shadow: var(--shadow-large);
  border: 1px solid var(--border-dark);
  display: inline-flex;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.stat-val {
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  color: var(--text-body);
}

/* FAQ Accordion Component */
.faq-accordion {
  border-bottom: 1px solid var(--border-dark);
  padding: 20px 0;
  cursor: pointer;
}

.faq-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
}

.faq-question {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-white);
  transition: color 0.3s;
}

.faq-toggle-icon {
  color: var(--text-white);
  transition: transform 0.3s, color 0.3s;
  display: flex;
  align-items: center;
}

.faq-accordion:hover .faq-question,
.faq-accordion:hover .faq-toggle-icon {
  color: var(--accent-purple);
}

.faq-content {
  color: var(--text-body);
  padding-top: var(--space-md);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-accordion.active .faq-content {
  max-height: 300px;
}

.faq-accordion.active .faq-toggle-icon {
  transform: rotate(45deg);
  color: var(--accent-purple);
}

/* Footer Section */
.footer-main {
  background-color: var(--bg-primary);
  padding: 60px 0 20px 0;
  border-top: 1px solid var(--border-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer-column h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: var(--space-xs);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-links a {
  color: var(--text-body);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text-white);
}

.social-icons {
  display: flex;
  gap: var(--space-sm);
}

.social-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-circle);
  background-color: var(--bg-card-dark);
  border: 1px solid var(--border-dark);
  color: var(--text-body);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.social-icon-btn:hover {
  background-color: var(--accent-purple);
  color: var(--text-white);
}

.footer-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: var(--space-md);
  margin-top: var(--space-2xl);
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.footer-bottom-bar p {
  margin-bottom: 0;
  font-size: 13px;
  color: var(--text-gray);
}

.content-identity-desc {
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-gray);
  opacity: 0.7;
  border-top: 1px dashed var(--border-dark);
  padding-top: var(--space-sm);
  margin-top: var(--space-sm);
  width: 100%;
}

/* Mobile Menu & Toggle Button */
.menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-white);
  cursor: pointer;
}

.menu-btn svg {
  width: 28px;
  height: 28px;
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 74px;
  left: 0;
  width: 100%;
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-dark);
  padding: var(--space-lg);
  z-index: 999;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  list-style: none;
  gap: var(--space-md);
}

.mobile-menu-links a {
  text-decoration: none;
  color: var(--text-body);
  font-size: 18px;
  font-weight: 500;
  padding: var(--space-sm) 0;
  display: block;
}

.mobile-menu-links a.active {
  color: var(--accent-purple);
}

/* Hero Section Base */
.hero-section {
  position: relative;
  padding: 120px 0 80px 0;
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-dark);
}

.hero-subtitle {
  font-weight: 600;
  color: var(--accent-blue);
  letter-spacing: 1px;
  margin-bottom: var(--space-sm);
}

/* Form Styles for Contact Page (No inline styles) */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.form-label {
  font-size: 14px;
  color: var(--text-gray);
  font-weight: 500;
}

.form-input, .form-textarea {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: 14px;
  color: var(--text-white);
  font-family: inherit;
  font-size: 15px;
  width: 100%;
  transition: border-color 0.3s;
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent-purple);
}

.form-textarea {
  resize: none;
}

/* Modals for Game Reviews Page (Custom styled) */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(12, 14, 21, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: var(--space-md);
}

.modal-container {
  background-color: var(--bg-card-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-large);
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background-color: rgba(12, 14, 21, 0.5);
  border: none;
  color: var(--text-white);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-circle);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
  z-index: 10;
}

.modal-close-btn:hover {
  background-color: var(--accent-pink);
}

.modal-image-wrap {
  width: 100%;
  height: 280px;
  overflow: hidden;
}

.modal-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-body {
  padding: 32px;
}

.modal-header-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
}

.modal-genre-badge {
  background-color: rgba(108, 92, 231, 0.2);
  color: var(--accent-purple);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
}

.modal-platform {
  font-size: 13px;
  color: var(--text-gray);
}

.modal-title {
  font-size: 32px;
  margin-bottom: var(--space-md);
}

.rating-stars {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
}

.star-icon {
  width: 20px;
  height: 20px;
  color: var(--accent-yellow);
  fill: var(--accent-yellow);
}

.star-icon.empty {
  color: var(--text-gray);
  fill: none;
}

.rating-score {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-white);
  margin-left: var(--space-xs);
}

.modal-text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-body);
}

/* Horizontal Rule for separations (no inline styling) */
.divider {
  border: 0;
  height: 1px;
  background-color: var(--border-dark);
  margin: var(--space-xl) 0;
}

/* -------------------------------------------------------------
   RESPONSIVENESS AND BREAKPOINTS
   ------------------------------------------------------------- */

/* Tablet Breakpoint (768px) */
@media (max-width: 768px) {
  h1 { font-size: 40px; }
  h2 { font-size: 30px; }
  h3 { font-size: 24px; }
  
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }
}

/* Mobile Breakpoint (480px and under) */
@media (max-width: 480px) {
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
  
  .container {
    padding: 0 var(--space-md);
  }
  
  .nav-menu {
    display: none;
  }
  
  .header-nav-cta {
    display: none;
  }
  
  .menu-btn {
    display: block;
  }
  
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-overlay {
    flex-direction: column;
    gap: var(--space-md);
    padding: 16px var(--space-lg);
    width: 100%;
    align-items: center;
  }
}

/* Custom Helpers to Avoid Inline CSS */
.illustration-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  max-height: 400px;
  object-fit: cover;
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.text-dark {
  color: var(--text-dark) !important;
}

.text-opacity-8 {
  opacity: 0.8 !important;
}

.no-decoration {
  text-decoration: none !important;
}

