﻿/* ==========================================================================
   MILLIONAIREMATCH CANADA - GLOBAL LUXURY STYLESHEET
   ========================================================================== */
:root {
  /* Colors */
  --color-bg-primary: #0a0e14;
  --color-bg-surface: #101620;
  --color-bg-card: #151d2a;
  --color-bg-elevated: #1b2535;
  --color-bg-subtle: #222e42;
  
  --color-gold: #c5a059;
  --color-gold-light: #dfc285;
  --color-gold-dark: #987532;
  --color-gold-glow: rgba(197, 160, 89, 0.16);
  
  --color-text-primary: #f8fafc;
  --color-text-secondary: #c2cbd6;
  --color-text-muted: #8493a5;
  
  --color-border: rgba(197, 160, 89, 0.22);
  --color-border-subtle: rgba(255, 255, 255, 0.08);
  --color-border-hover: rgba(197, 160, 89, 0.45);
  
  /* Typography */
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  
  /* Layout & Spacing */
  --container-max: 1240px;
  --container-narrow: 860px;
  --header-height: 80px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.45);
  --shadow-gold: 0 4px 20px rgba(197, 160, 89, 0.25);
  
  /* Transitions */
  --transition-smooth: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  line-height: 1.65;
  color: var(--color-text-secondary);
  background-color: var(--color-bg-primary);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--color-gold);
  color: #000;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  z-index: 10000;
  border-radius: var(--radius-sm);
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 1rem;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-narrow {
  max-width: var(--container-narrow);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Headings */
h1, h2, h3, h4 {
  color: var(--color-text-primary);
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
}

h1 {
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  margin-bottom: 1.25rem;
}

h2 {
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  margin-top: 2.25rem;
  margin-bottom: 1rem;
  position: relative;
}

h3 {
  font-size: 1.4rem;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--color-gold-light);
}

.eyebrow {
  font-family: var(--font-sans);
  text-transform: uppercase;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--color-gold);
  margin-bottom: 0.75rem;
  display: inline-block;
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 1.5rem 0 1rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  gap: 0.5rem;
}
.breadcrumbs li+li::before {
  content: '/';
  margin-right: 0.5rem;
  color: var(--color-border);
}
.breadcrumbs a:hover {
  color: var(--color-gold-light);
}
.breadcrumbs aria-current {
  color: var(--color-text-secondary);
}

/* Page Hero */
.page-hero {
  padding: 3.5rem 0 4rem;
  background: radial-gradient(circle at 70% 30%, rgba(197, 160, 89, 0.1) 0%, transparent 50%),
              linear-gradient(180deg, rgba(16, 22, 32, 0.95) 0%, rgba(10, 14, 20, 1) 100%);
  border-bottom: 1px solid var(--color-border-subtle);
  position: relative;
}

.page-hero-title {
  max-width: 900px;
}

.page-hero-lead {
  font-size: 1.15rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  max-width: 820px;
  margin-top: 1rem;
}

.page-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.875rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition-smooth);
  text-align: center;
  gap: 0.5rem;
}

.btn-gold {
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
  color: #0b0e14;
  border-color: var(--color-gold-light);
  box-shadow: 0 4px 14px rgba(197, 160, 89, 0.2);
}
.btn-gold:hover {
  background: linear-gradient(135deg, var(--color-gold-light) 0%, var(--color-gold) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(197, 160, 89, 0.35);
  color: #000;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text-primary);
  border-color: var(--color-border);
}
.btn-outline:hover {
  background: rgba(197, 160, 89, 0.1);
  border-color: var(--color-gold);
  color: var(--color-gold-light);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.55rem 1.15rem;
  font-size: 0.875rem;
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 14, 20, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-emblem {
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0e14;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4), 0 0 12px rgba(197, 160, 89, 0.2);
  transition: var(--transition-smooth);
  flex-shrink: 0;
}
.brand-logo:hover .logo-emblem {
  border-color: var(--color-gold);
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(197, 160, 89, 0.35);
}
.logo-emblem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-text-primary);
  line-height: 1.1;
}

.brand-title span {
  color: var(--color-gold);
}

.brand-subtitle {
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

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

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

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  padding: 0.25rem 0;
}
.nav-link:hover, .nav-link.active {
  color: var(--color-gold-light);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.mobile-nav-drawer {
  display: none;
  pointer-events: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-height));
  background: var(--color-bg-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 2rem 1.5rem;
  overflow-y: auto;
  z-index: 999;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-nav-drawer.open {
  pointer-events: auto;
  transform: translateY(0);
  opacity: 1;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.mobile-nav-link {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--color-text-primary);
  display: block;
  border-bottom: 1px solid var(--color-border-subtle);
  padding-bottom: 0.75rem;
}

/* Editorial / Prose Content Area */
.page-content-wrapper {
  padding: 4.5rem 0 6rem;
}

.prose {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #cbd5e1;
}

.prose p {
  margin-bottom: 1.5rem;
}

.prose strong {
  color: #ffffff;
  font-weight: 600;
}

.prose ul, .prose ol {
  margin: 1.5rem 0 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.prose li {
  line-height: 1.7;
}

.prose blockquote {
  border-left: 3px solid var(--color-gold);
  background: rgba(197, 160, 89, 0.05);
  padding: 1.25rem 1.75rem;
  margin: 2rem 0;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--color-text-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.prose .callout-card {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin: 2.25rem 0;
}

.prose .callout-card h4 {
  color: var(--color-gold-light);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.prose .internal-link-banner {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin: 3rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* FAQ Accordion */
.faq-block {
  margin-top: 4rem;
  border-top: 1px solid var(--color-border-subtle);
  padding-top: 3.5rem;
}

.faq-item {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1rem;
  transition: var(--transition-smooth);
}
.faq-item.active {
  border-color: var(--color-border);
  background: var(--color-bg-card);
}

.faq-trigger {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  color: var(--color-text-primary);
}

.faq-question-text {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
}

.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-gold);
  transition: transform 0.3s ease;
}
.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.5rem;
}
.faq-item.active .faq-content {
  padding: 0 1.5rem 1.5rem 1.5rem;
}
.faq-content p {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* Grid & Cards */
.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 2.5rem 0;
}

.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin: 2.5rem 0;
}

.info-card {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: var(--transition-smooth);
}
.info-card:hover {
  border-color: var(--color-gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* CTA Section */
.page-cta-banner {
  background: radial-gradient(circle at center, rgba(197, 160, 89, 0.12) 0%, transparent 60%),
              var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2.5rem;
  text-align: center;
  margin-top: 4.5rem;
}

.page-cta-banner h2 {
  margin-top: 0;
  font-size: 2.2rem;
}

.page-cta-banner p {
  max-width: 620px;
  margin: 1rem auto 2rem;
  color: var(--color-text-secondary);
}

/* Footer */
.site-footer {
  background: #070a0e;
  border-top: 1px solid var(--color-border-subtle);
  padding: 5rem 0 2.5rem;
  font-size: 0.875rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand p {
  color: var(--color-text-muted);
  margin-top: 1rem;
  max-width: 340px;
  line-height: 1.6;
}

.footer-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding: 0.4rem 0.85rem;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  color: var(--color-gold);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.trust-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--color-gold);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
}

.footer-heading {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-gold);
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  color: var(--color-text-secondary);
  transition: var(--transition-smooth);
}
.footer-link:hover {
  color: var(--color-gold-light);
  transform: translateX(3px);
}

.footer-bottom {
  border-top: 1px solid var(--color-border-subtle);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--color-text-muted);
  font-size: 0.8125rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Media Queries */
@media (max-width: 1024px) {
  .card-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

@media (max-width: 860px) {
  .desktop-nav, .header-actions {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .mobile-nav-drawer {
    display: block;
  }
  .card-grid-3, .card-grid-2 {
    grid-template-columns: 1fr;
  }
  .internal-link-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .page-cta-banner {
    padding: 2.5rem 1.5rem;
  }
}

/* ==========================================================================
   CONTENT FEATURED IMAGE BANNER
   ========================================================================== */
.content-featured-media {
  margin: 0 0 2.5rem 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  position: relative;
}

.content-featured-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.content-featured-media:hover .content-featured-img {
  transform: scale(1.02);
}

.content-featured-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1.75rem 1rem;
  background: linear-gradient(to top, rgba(10, 14, 20, 0.92) 0%, rgba(10, 14, 20, 0.4) 70%, transparent 100%);
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.content-featured-caption span {
  color: var(--color-gold);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

@media (max-width: 768px) {
  .content-featured-img {
    height: 240px;
  }
}


/* ==========================================================================
   GLOBAL ACCESSIBILITY & MODAL SYSTEM
   ========================================================================== */
:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 12, 0.85);
  backdrop-filter: blur(10px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.open {
  display: flex;
}

.modal-window {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  max-width: 620px;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: modalFadeIn 0.25s ease;
  overflow: hidden;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--color-border-subtle);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
}

.modal-body {
  padding: 2.25rem;
}

.btn-signin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.15rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
  text-decoration: none;
  transition: var(--transition-smooth);
}
.btn-signin:hover {
  background: rgba(197, 160, 89, 0.1);
  border-color: var(--color-gold);
  color: var(--color-gold-light);
  transform: translateY(-2px);
}