/* 22VIP Royal Manuscript Theme - Main Stylesheet */

/* ===============================================
   1. CSS Variables & Root Styles
   =============================================== */
:root {
  /* Royal Manuscript Color Palette */
  --primary-parchment: #F4E8D0;
  --secondary-parchment: #E8DCC4;
  --dark-brown: #3E2723;
  --deep-brown: #5D4037;
  --burgundy-red: #8B0000;
  --dark-burgundy: #660000;
  --muted-gold: #B8860B;
  --antique-gold: #D4AF37;
  --seal-red: #A52A2A;
  --ink-black: #1A1410;

  /* Aliases to support legacy markup (from root style.css) */
  --matte-gold: var(--muted-gold);
  --burgundy: var(--burgundy-red);
  --cream: #FAF6F0;
  --parchment: var(--primary-parchment);
  --text-secondary: #5d4835;
  --border-gold: #d4a574;

  /* Typography */
  --font-heading: 'Cinzel', 'Playfair Display', Georgia, serif;
  --font-body: 'Merriweather', 'Georgia', serif;
  --font-sans: 'Lato', 'Helvetica Neue', sans-serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2.5rem;
  --spacing-xl: 4rem;

  /* Borders & Shadows */
  --border-ornate: 2px solid var(--muted-gold);
  --shadow-parchment: 0 4px 20px rgba(139, 69, 19, 0.15);
  --shadow-seal: 0 8px 32px rgba(139, 0, 0, 0.25);
}

/* ===============================================
   2. Base Styles & Reset
   =============================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  line-height: 1.7;
  color: var(--ink-black);
  background: linear-gradient(180deg, var(--primary-parchment) 0%, var(--secondary-parchment) 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Parchment texture overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhlaWdodD0iMzAwIj4KPGZpbHRlciBpZD0icGFwZXIiIHg9IjAlIiB5PSIwJSI+CjxmZVR1cmJ1bGVuY2UgdHlwZT0iZnJhY3RhbE5vaXNlIiBiYXNlRnJlcXVlbmN5PSIwLjAyIiBudW1PY3RhdmVzPSI1IiByZXN1bHQ9Im5vaXNlIi8+CjxmZURpZmZ1c2VMaWdodGluZyBpbj0ibm9pc2UiIGxpZ2h0aW5nLWNvbG9yPSJ3aGl0ZSIgc3VyZmFjZVNjYWxlPSIxIj4KPGZlRGlzdGFudExpZ2h0IGF6aW11dGg9IjQ1IiBlbGV2YXRpb249IjYwIi8+CjwvZmVEaWZmdXNlTGlnaHRpbmc+CjwvZmlsdGVyPgo8cmVjdCB3aWR0aD0iMzAwIiBoZWlnaHQ9IjMwMCIgZmlsbD0iI2Y0ZThjMCIgZmlsdGVyPSJ1cmwoI3BhcGVyKSIgb3BhY2l0eT0iMC4yIi8+Cjwvc3ZnPg==');
  opacity: 0.3;
  pointer-events: none;
  z-index: 1;
}

/* ===============================================
   3. Typography
   =============================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  color: var(--dark-brown);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
  margin-bottom: var(--spacing-md);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--dark-brown), var(--muted-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  border-bottom: 3px double var(--muted-gold);
  padding-bottom: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
}

h3 {
  font-size: clamp(1.3rem, 3vw, 1.75rem);
}

p {
  margin-bottom: var(--spacing-md);
  text-align: justify;
  text-indent: 2em;
}

a {
  color: var(--burgundy-red);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

a:hover {
  color: var(--muted-gold);
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
}

/* Ornamental first letter */
.content-text > p:first-child::first-letter {
  float: left;
  font-family: var(--font-heading);
  font-size: 4em;
  line-height: 0.8;
  margin: 0.1em 0.1em 0 0;
  color: var(--burgundy-red);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
  background: linear-gradient(135deg, var(--muted-gold), var(--antique-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===============================================
   4. Layout Components
   =============================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  position: relative;
  z-index: 2;
}

.section {
  padding: var(--spacing-xl) 0;
  position: relative;
}

/* ===============================================
   5. Header & Navigation
   =============================================== */
.header {
  background: linear-gradient(180deg, var(--dark-brown) 0%, var(--deep-brown) 100%);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 4px double var(--muted-gold);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  min-height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 40px;
  width: auto;
  transition: all 0.3s ease;
}

.logo:hover img {
  transform: scale(1.05);
  filter: brightness(1.1);
}



.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu--primary {
  display: flex;
  gap: 25px;
  align-items: center;
}

.nav-menu--primary a {
  color: var(--primary-parchment);
  font-family: var(--font-sans);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  padding: 8px 16px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  text-decoration: none;
  border-radius: 4px;
}

/* Better focus visibility for accessibility */
a:focus-visible,
button:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.mobile-nav-toggle:focus-visible {
  outline: 3px solid var(--antique-gold);
  outline-offset: 2px;
}

.nav-menu--primary a:hover {
  color: var(--antique-gold);
  border-color: var(--muted-gold);
  background: rgba(212, 175, 55, 0.1);
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.header-cta {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn-primary, .btn-secondary {
  padding: 10px 20px;
  font-family: var(--font-sans);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 6px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  font-size: 0.8rem;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--burgundy-red), var(--dark-burgundy));
  color: var(--primary-parchment);
  border: 2px solid var(--muted-gold);
  box-shadow: 0 4px 15px rgba(139, 0, 0, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(139, 0, 0, 0.4);
  background: linear-gradient(135deg, var(--dark-burgundy), var(--burgundy-red));
}

.btn-secondary {
  background: transparent;
  color: var(--antique-gold);
  border: 2px solid var(--muted-gold);
}

.btn-secondary:hover {
  background: rgba(212, 175, 55, 0.1);
  color: var(--primary-parchment);
  border-color: var(--antique-gold);

/* Royal CTA button */
.btn-royal {
  padding: var(--spacing-sm) var(--spacing-xl);
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 10px;
  border: 2px solid var(--antique-gold);
  background: linear-gradient(135deg, var(--muted-gold), var(--antique-gold));
  color: var(--deep-brown);
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-royal:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(212, 175, 55, 0.45);
  background: linear-gradient(135deg, var(--antique-gold), var(--muted-gold));
}


/* ===============================================
   6. Hero Section
   =============================================== */
.hero {
  min-height: 600px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--dark-brown) url('../imgs/luxury-casino-hall.jpg') center/cover no-repeat;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}



.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 0%, rgba(26,20,16,0.7) 100%);
}

/* Improve hero title readability on busy backgrounds */
.hero h1 { text-shadow: 2px 2px 6px rgba(0,0,0,0.6); }

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--spacing-xl);
  max-width: 900px;
}

.hero h1 {
  margin-bottom: var(--spacing-md);
  animation: fadeInDown 1s ease;
}

.hero-subheadline {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--antique-gold);
  font-family: var(--font-heading);
  margin-bottom: var(--spacing-lg);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  animation: fadeInUp 1s ease 0.3s both;
}


/* Subtitle (used in hero across pages) */
.subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--antique-gold);
  font-family: var(--font-heading);
  margin-bottom: var(--spacing-lg);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  animation: fadeInUp 1s ease 0.3s both;
}

.hero-cta {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeIn 1s ease 0.6s both;
}

/* Royal Seal Decoration */
.royal-seal {
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 100px;
  background: var(--seal-red);
  border-radius: 50%;
  box-shadow: var(--shadow-seal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--antique-gold);
  border: 4px double var(--muted-gold);
  z-index: 3;
}

/* ===============================================
   7. Content Blocks
   =============================================== */
.content-block {
  margin-bottom: var(--spacing-xl);
  padding: var(--spacing-lg);
  background: rgba(255, 255, 255, 0.4);
  border: var(--border-ornate);
  box-shadow: var(--shadow-parchment);
  position: relative;
  overflow: hidden;
}

/* Ornamental corners */
.content-block::before,
.content-block::after {
  content: '❦';
  position: absolute;
  font-size: 2rem;
  color: var(--muted-gold);
  opacity: 0.5;
}

.content-block::before {
  top: var(--spacing-sm);
  left: var(--spacing-sm);
}

.content-block::after {
  bottom: var(--spacing-sm);
  right: var(--spacing-sm);
  transform: rotate(180deg);
}

.content-block.horizontal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  align-items: center;
}

.content-block.vertical {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.content-block.vertical .content-image {
  margin: 0 auto var(--spacing-lg);
  max-width: 600px;
}

.content-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow-parchment);
  border: 3px double var(--muted-gold);
  transition: transform 0.3s ease;
}

.content-image:hover {
  transform: scale(1.02);
}

.content-text {
  padding: var(--spacing-md);
}

.content-text h2,
.content-text h3 {
  position: relative;
  padding-left: var(--spacing-lg);
}

.content-text h2::before,
.content-text h3::before {
  content: '§';
  position: absolute;
  left: 0;
  font-size: 1.5em;
  color: var(--burgundy-red);
  opacity: 0.7;
}

/* ===============================================
   8. Content Grids
   =============================================== */
.content-grid {
  display: grid;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

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

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

.grid-item {
  background: rgba(255, 255, 255, 0.5);
  border: var(--border-ornate);
  border-radius: 8px;
  padding: var(--spacing-md);
  box-shadow: var(--shadow-parchment);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.grid-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--muted-gold), var(--antique-gold), var(--muted-gold));
}

.grid-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(139, 69, 19, 0.25);
  background: rgba(255, 255, 255, 0.7);
}

.grid-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: var(--spacing-md);
  border: 2px solid var(--muted-gold);
}

.grid-item h3 {
  font-size: 1.3rem;
  margin-bottom: var(--spacing-sm);
  color: var(--burgundy-red);
}

.grid-item .item-content {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===============================================
   9. Footer
   =============================================== */
.footer {
  background: linear-gradient(180deg, var(--deep-brown) 0%, var(--dark-brown) 100%);
  color: var(--primary-parchment);
  padding: var(--spacing-xl) 0 var(--spacing-lg);
  border-top: 4px double var(--muted-gold);
  margin-top: var(--spacing-xl);
  position: relative;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-column h4 {
  color: var(--antique-gold);
  margin-bottom: var(--spacing-md);
  font-size: 1.2rem;
  border-bottom: 2px solid var(--muted-gold);
  padding-bottom: var(--spacing-sm);
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: var(--spacing-sm);
}

.footer-column a {
  color: var(--primary-parchment);
  font-size: 0.95rem;
  opacity: 0.9;
}

.footer-column a:hover {
  color: var(--antique-gold);
  opacity: 1;
}

.payment-methods {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.payment-methods img {
  height: 40px;
  width: auto;
  filter: brightness(0.9);
  transition: filter 0.3s ease;
}

.payment-methods img:hover {
  filter: brightness(1.1);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--primary-parchment);
  opacity: 0.8;
  font-size: 0.9rem;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--antique-gold);
  margin-bottom: var(--spacing-md);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.footer-logo::before {
  content: '♔';
  font-size: 3rem;
}

/* ===============================================
   10. Animations
   =============================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

.shimmer {
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(212, 175, 55, 0.3) 50%,
    transparent 100%);
  background-size: 200% auto;
  animation: shimmer 3s linear infinite;
}

/* ===============================================
   11. Responsive Design
   =============================================== */
@media (max-width: 1024px) {
  .content-block.horizontal {
    grid-template-columns: 1fr;
  }

  .nav-menu--primary {
    gap: var(--spacing-sm);
  }

  .nav-menu--primary a {
    padding: 10px 14px;
  }

  .content-block { margin-bottom: var(--spacing-lg); }
  .mobile-nav-toggle { padding: 10px; }

  /* Heading sizing on mobile */
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.1rem; }

  .content-block.horizontal { gap: var(--spacing-md); }


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

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

@media (max-width: 768px) {
  .header-cta {
    display: none !important;
  }

  .nav-menu--primary {
    display: none;
  }

  .mobile-nav-toggle {
    display: flex !important;
    position: relative;
    z-index: 1001;
  }

  .mobile-nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .grid-3, .grid-4 {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .hero-content {
    padding: var(--spacing-lg) var(--spacing-md);
  }

  .hero h1 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    line-height: 1.2;
  }

  .subtitle {
    font-size: clamp(1rem, 3vw, 1.3rem);
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .content-block {
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
  }

  .content-block.horizontal {
    gap: var(--spacing-md);
  }

  .content-image {
    max-height: 200px;
    object-fit: cover;
  }

  /* Better button sizing on mobile */
  .btn-primary, .btn-secondary, .btn-royal {
    padding: 15px 25px;
    font-size: 16px;
    min-height: 48px; /* Touch-friendly */
  }
}

@media (max-width: 480px) {
  :root {
    font-size: 14px;
  }

  .container {
    padding: 0 var(--spacing-sm);
  }

  .content-block {
    padding: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
  }

  .hero {
    min-height: 450px;
  }

  .hero-content {
    padding: var(--spacing-md) var(--spacing-sm);
  }

  .royal-seal {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  /* Ultra-mobile optimizations */
  .grid-item {
    padding: var(--spacing-sm);
  }

  .grid-item h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }

  .item-content {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  /* Floating CTA adjustments for small screens */
  .floating-cta {
    bottom: 10px;
    right: 10px;
    padding: 10px 16px;
    font-size: 12px;
    border-radius: 25px;
  }

  /* CTA banner mobile optimization */
  .cta-banner {
    margin: 30px 0;
    padding: 25px 15px;
  }

  .cta-banner h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
  }

  .cta-banner p {
    font-size: 0.9rem;
    margin-bottom: 20px;
  }

  /* Typography scaling for readability */
  h1 {
    font-size: clamp(1.5rem, 6vw, 2rem);
    line-height: 1.1;
  }

  h2 {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    line-height: 1.2;
  }

  h3 {
    font-size: clamp(1rem, 3vw, 1.2rem);
  }

  /* Improve touch targets */
  .btn-primary, .btn-secondary, .btn-royal {
    padding: 12px 20px;
    font-size: 15px;
    min-height: 44px;
  }
}

/* ===============================================
   12. Utility Classes
   =============================================== */
.text-center {
  text-align: center;
}

.text-gold {
  color: var(--antique-gold);
}

.text-burgundy {
  color: var(--burgundy-red);
}

.mb-0 {
  margin-bottom: 0;
}

.mb-sm {
  margin-bottom: var(--spacing-sm);
}

.mb-md {
  margin-bottom: var(--spacing-md);
}

.mb-lg {
  margin-bottom: var(--spacing-lg);
}

.mb-xl {
  margin-bottom: var(--spacing-xl);
}

.ornament {
  display: inline-block;
  font-size: 1.5rem;
  color: var(--muted-gold);
  margin: 0 var(--spacing-sm);
}

/* Wax seal button effect */
.wax-seal {
  position: relative;
  display: inline-block;
  background: var(--seal-red);
  color: var(--antique-gold);
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: 50%;
  border: 3px double var(--muted-gold);
  font-family: var(--font-heading);
  font-weight: bold;
  text-transform: uppercase;
  box-shadow: var(--shadow-seal);
  transition: all 0.3s ease;
}

.wax-seal:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 40px rgba(139, 0, 0, 0.35);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Loading animation */
.loading {
  display: inline-block;
  width: 50px;
  height: 50px;
  border: 5px solid var(--primary-parchment);
  border-top-color: var(--muted-gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Desktop defaults: hide mobile-only UI */
.mobile-cta { display: none; }
.mobile-nav-toggle { display: none; }

/* Mobile menu and overlay are hidden by default on desktop */
@media (min-width: 769px) {
  .mobile-menu { display: none !important; }
  .mobile-menu-overlay { display: none !important; }
}


/* ===============================================
   13. Floating CTA & Sticky Elements
   =============================================== */
.floating-cta {
  position: fixed !important;
  bottom: 20px !important;
  right: 20px !important;
  z-index: 9999 !important;
  background: linear-gradient(135deg, #8B0000, #660000) !important;
  color: white !important;
  padding: 15px 25px !important;
  border-radius: 50px !important;
  text-decoration: none !important;
  font-weight: bold !important;
  font-size: 14px !important;
  box-shadow: 0 4px 20px rgba(139, 0, 0, 0.8) !important;
  transition: all 0.3s ease !important;
  animation: pulse 2s infinite !important;
  display: block !important;
  border: 2px solid #D4AF37 !important;
}

.mobile-menu-open .floating-cta {
  display: none !important;
}

.floating-cta:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 6px 25px rgba(139, 0, 0, 0.9) !important;
  color: white !important;
  background: linear-gradient(135deg, #A52A2A, #8B0000) !important;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); box-shadow: 0 6px 30px rgba(139, 0, 0, 0.9); }
}

.cta-banner {
  background: linear-gradient(135deg, #8B0000, #660000) !important;
  color: white !important;
  text-align: center !important;
  padding: 40px 20px !important;
  margin: 60px 0 !important;
  border-radius: 15px !important;
  position: relative !important;
  overflow: hidden !important;
  border: 3px solid #D4AF37 !important;
  box-shadow: 0 8px 30px rgba(139, 0, 0, 0.5) !important;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% { left: -100%; }
  100% { left: 100%; }
}

.cta-banner h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--antique-gold);
}

.cta-banner p {
  font-size: 1.1rem;
  margin-bottom: 25px;
  opacity: 0.9;
}

/* Mobile optimizations for CTA */
@media (max-width: 768px) {
  .floating-cta {
    display: block;
    left: 50%;
    right: auto;
    bottom: 16px;
    transform: translateX(-50%);
    padding: 12px 20px;
    font-size: 14px;
    z-index: 9999;
  }

  .cta-banner {
    margin: 40px 0;
    padding: 30px 15px;
  }

  .cta-banner h3 {
    font-size: 1.5rem;
  }

  .cta-banner p {
    font-size: 1rem;
  }
}
/* ===============================================
   14. Mobile Content Layout Optimizations
   =============================================== */

/* Responsive images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.content-image {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.content-image:hover {
  transform: scale(1.02);
}

/* Grid improvements for mobile */
.content-grid {
  display: grid;
  gap: var(--spacing-md);
  margin: var(--spacing-lg) 0;
}

.grid-item {
  background: var(--primary-parchment);
  border-radius: 12px;
  padding: var(--spacing-md);
  box-shadow: var(--shadow-parchment);
  transition: all 0.3s ease;
  border: 1px solid var(--border-gold);
}

.grid-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(139, 69, 19, 0.2);
}

.grid-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: var(--spacing-sm);
}

.grid-item h3 {
  color: var(--burgundy-red);
  margin-bottom: var(--spacing-sm);
  font-family: var(--font-heading);
}

.item-content {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--spacing-sm);
}

/* Mobile-specific grid layouts */
@media (max-width: 768px) {
  .content-grid {
    gap: var(--spacing-sm);
    margin: var(--spacing-md) 0;
  }

  .grid-item {
    padding: var(--spacing-sm);
  }

  .grid-item img {
    height: 150px;
    margin-bottom: 10px;
  }

  .grid-item h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
  }

  .item-content {
    font-size: 0.9rem;
    line-height: 1.5;
  }
}

@media (max-width: 480px) {
  .grid-item img {
    height: 120px;
  }

  .grid-item h3 {
    font-size: 1rem;
  }

  .item-content {
    font-size: 0.85rem;
  }
}

/* Lazy loading placeholder */
img[loading="lazy"] {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Content block mobile optimizations */
.content-block.horizontal {
  display: grid;
  gap: var(--spacing-lg);
  align-items: center;
  margin-bottom: var(--spacing-xl);
}

@media (max-width: 768px) {
  .content-block.horizontal {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    text-align: center;
  }

  .content-text-section {
    order: 2;
  }

  .content-image {
    order: 1;
    max-height: 250px;

    object-fit: cover;
  }
}

@media (max-width: 480px) {
  .content-block.horizontal {
    gap: var(--spacing-sm);
  }

  .content-image {
    max-height: 200px;
  }
}
/* ===============================================
   15. Secondary Navigation Bar
   =============================================== */
.secondary-nav {
  background: linear-gradient(135deg, #3E2723, #5D4037);
  padding: 10px 0;
  border-bottom: 1px solid #D4AF37;
}

.secondary-nav-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
}

.secondary-nav a {
  color: #D4AF37;
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 5px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.secondary-nav a:hover {
  background: rgba(212, 175, 55, 0.2) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2) !important;
}

/* ===============================================
   16. Mobile Navigation & Responsive Design
   =============================================== */

/* Mobile Navigation Toggle */
.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: var(--spacing-xs);
  z-index: 1001;
}

.mobile-nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--antique-gold);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.mobile-nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.mobile-nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  z-index: 999;
}

.mobile-menu-overlay.active {
  display: block;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(360px, 85vw);
  height: 100vh;
  background: linear-gradient(135deg, var(--dark-brown), var(--deep-brown));
  z-index: 1000;
  transition: right 0.3s ease;
  overflow-y: auto;
  padding: 80px 20px 20px;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
  visibility: hidden;
  pointer-events: none;
}

.mobile-menu.active {
  right: 0;
  visibility: visible;
  pointer-events: auto;
}

@media (max-width: 480px) {
  .mobile-menu {
    width: 100vw;
  }
}

.mobile-menu .nav-menu--mobile {
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
}

.mobile-menu .nav-menu--mobile li {
  width: 100%;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.mobile-menu .nav-menu--mobile a {
  display: block;
  padding: 15px 0;
  color: var(--primary-parchment);
  font-size: 1rem;
  text-decoration: none;
  border: none;
  border-radius: 0;
  background: transparent;
  text-align: left;
}

.mobile-menu .nav-menu--mobile a:hover,
.mobile-menu .nav-menu--mobile a[aria-current="page"] {
  color: var(--antique-gold);
  background: rgba(212, 175, 55, 0.1);
  padding-left: 10px;
}

.mobile-menu .secondary-nav-mobile {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 2px solid var(--antique-gold);
}

.mobile-menu .secondary-nav-mobile h4 {
  color: var(--antique-gold);
  font-size: 0.9rem;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.mobile-menu .secondary-nav-mobile a {
  font-size: 0.9rem;
  padding: 12px 0;
  color: var(--muted-gold);
}

.mobile-menu .mobile-cta {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.mobile-menu .mobile-cta .btn-primary,
.mobile-menu .mobile-cta .btn-secondary {
  width: 100%;
  margin-bottom: 10px;
  justify-content: center;
}

@media (max-width: 768px) {
  /* Hide desktop navigation */
  .nav-menu--primary {
    display: none !important;
  }

  .header-cta {
    display: none;
  }

  /* Show mobile-only UI */
  .mobile-nav-toggle { display: flex !important; }
  .mobile-cta { display: flex; gap: 10px; justify-content: center; padding: 10px 16px; }
  .floating-cta { display: block; }

  /* Secondary nav mobile optimization */
  .secondary-nav {
    padding: 8px 0 !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .secondary-nav::-webkit-scrollbar {
    display: none;
  }

  .secondary-nav-links {
    gap: 10px !important;
    font-size: 12px !important;
    flex-wrap: nowrap;
    min-width: max-content;
  }

  .secondary-nav a {
    padding: 4px 8px !important;
    white-space: nowrap;
  }


  /* Header adjustments */
  .header-container {
    padding: 10px 0;
    min-height: 60px;
  }

  .logo img {
    height: 35px;
  }
}
/* ===============================================
   17. Responsive Images & Content
   =============================================== */

/* Base responsive image rules */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Content images */
.content-image img,
.content-block img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}

/* Grid images */
.grid img,
.game-grid img,
.provider-grid img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}

/* Hero background responsive */
.hero {
  min-height: 400px;
  background-size: cover !important;
  background-position: center !important;
  background-attachment: scroll !important;
}

@media (max-width: 768px) {
  /* Mobile content blocks */
  .content-block.horizontal {
    flex-direction: column;
    gap: 20px;
  }

  .content-block.horizontal .content-image {
    order: -1;
    max-height: 200px;
    overflow: hidden;
  }

  .content-block.horizontal .content-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }

  /* Mobile grids */
  .grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
  }

  .game-grid,
  .provider-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
  }

  /* Mobile hero */
  .hero {
    min-height: 300px;
    padding: 40px 0;
  }

  .hero-content h1 {
    font-size: 1.8rem;
    line-height: 1.2;
  }

  .hero-content .subtitle {
    font-size: 1rem;
  }

  /* Mobile containers */
  .container {
    padding: 0 15px;
  }

  /* Mobile spacing */
  .content-block {
    margin-bottom: 30px;
    padding: 20px 0;
  }

  /* Mobile text */
  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.3rem;
  }

  /* Mobile buttons */
  .btn-primary,
  .btn-secondary,
  .btn-royal {
    padding: 12px 20px;
    font-size: 0.9rem;
    width: auto;
    min-width: 120px;
  }
}

@media (max-width: 480px) {
  /* Extra small mobile */
  .grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .game-grid,
  .provider-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .hero {
    min-height: 250px;
    padding: 30px 0;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  .hero-content .subtitle {
    font-size: 0.9rem;
  }

  .container {
    padding: 0 10px;
  }

  .content-block {
    margin-bottom: 20px;
    padding: 15px 0;
  }

  /* Mobile secondary nav - stack vertically */
  .secondary-nav-links {
    flex-direction: column !important;
    gap: 5px !important;
  }

  .secondary-nav a {
    padding: 8px 12px !important;
    text-align: center;
  }
}
