/* BritishCharmHoouse.com - Premium Gaming Platform Styles */

/* ===== CSS VARIABLES & DESIGN TOKENS ===== */
:root {
  /* Paper & Background Palette */
  --paper-cream: #FAF5EB;
  --kraft-beige: #E9DECF;
  --ink-dark: #1E1A16;
  --ink-muted: #5E5148;

  /* Accent Colors */
  --post-blue: #223A5A;
  --seal-red: #B24A34;
  --brass-gold: #C6A15B;

  /* Functional */
  --divider-rgba: rgba(30, 26, 22, 0.12);
  --shadow-soft: rgba(30, 26, 22, 0.08);
  --shadow-medium: rgba(30, 26, 22, 0.15);

  /* Typography */
  --font-display: 'Fraunces', serif;
  --font-body: 'Plus Karla', sans-serif;
  --font-mono: 'Azeret Mono', monospace;

  /* Spacing Scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-xxl: 6rem;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--paper-cream);
  color: var(--ink-dark);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink-dark);
}

.bch-mono {
  font-family: var(--font-mono);
  font-size: 0.85em;
  letter-spacing: 0.05em;
}

/* ===== UTILITY CLASSES ===== */
.bch-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.bch-section {
  padding: var(--space-xxl) 0;
  position: relative;
}

/* ===== HEADER & NAVIGATION ===== */
.bch-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 245, 235, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--divider-rgba);
  transition: var(--transition-smooth);
}

.bch-header.scrolled {
  box-shadow: 0 4px 20px var(--shadow-soft);
}

.bch-nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
  max-width: 1280px;
  margin: 0 auto;
}

.bch-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--post-blue);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.bch-logo-icon {
  width: 45px;
  height: 45px;
  background-image: url('../images/logo.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.bch-logo:hover {
  color: var(--brass-gold);
  transform: translateY(-2px);
}

.bch-logo:hover .bch-logo-icon {
  transform: scale(1.05);
}

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

.bch-nav-link {
  color: var(--ink-muted);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: var(--transition-smooth);
}

.bch-nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--post-blue);
  transition: var(--transition-smooth);
}

.bch-nav-link:hover {
  color: var(--post-blue);
}

.bch-nav-link:hover::after {
  width: 100%;
}

.bch-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
}

.bch-mobile-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--ink-dark);
  margin: 5px 0;
  transition: var(--transition-smooth);
}

/* ===== HERO SECTION ===== */
.bch-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--paper-cream) 0%, var(--kraft-beige) 100%);
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.bch-hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background-image: url('../images/hero.png');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  mask-image: linear-gradient(to left, black 30%, transparent 100%);
  -webkit-mask-image: linear-gradient(to left, black 30%, transparent 100%);
}

.bch-hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.bch-hero-text {
  animation: fadeSlideUp 1s ease-out;
}

.bch-hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: var(--space-md);
  color: var(--post-blue);
}

.bch-hero-subtitle {
  font-size: 1.25rem;
  color: var(--ink-muted);
  margin-bottom: var(--space-lg);
  max-width: 500px;
}

.bch-hero-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: flex-start;
  animation: fadeSlideUp 1s ease-out 0.2s backwards;
}

/* ===== BUTTONS ===== */
.bch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-mono);
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.bch-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.bch-btn:hover::before {
  width: 300px;
  height: 300px;
}

.bch-btn-primary {
  background: var(--post-blue);
  color: var(--paper-cream);
  border-radius: var(--radius-pill);
}

.bch-btn-primary:hover {
  background: var(--brass-gold);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px var(--shadow-medium);
}

.bch-btn-secondary {
  background: transparent;
  color: var(--post-blue);
  border: 2px solid var(--post-blue);
  border-radius: var(--radius-pill);
}

.bch-btn-secondary:hover {
  background: var(--post-blue);
  color: var(--paper-cream);
  transform: translateY(-3px);
}

.bch-btn-accent {
  background: var(--seal-red);
  color: var(--paper-cream);
  border-radius: var(--radius-pill);
}

.bch-btn-accent:hover {
  background: var(--brass-gold);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px var(--shadow-medium);
}

/* ===== ABOUT SECTION ===== */
.bch-about {
  background: var(--paper-cream);
}

.bch-section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.bch-section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--space-sm);
  color: var(--post-blue);
}

.bch-section-subtitle {
  font-size: 1.1rem;
  color: var(--ink-muted);
  max-width: 600px;
  margin: 0 auto;
}

.bch-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.bch-about-text {
  font-size: 1.1rem;
  color: var(--ink-muted);
  line-height: 1.8;
}

.bch-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.bch-stat-card {
  background: var(--kraft-beige);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: var(--transition-smooth);
  border: 1px solid var(--divider-rgba);
}

.bch-stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px var(--shadow-soft);
  border-color: var(--brass-gold);
}

.bch-stat-value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--post-blue);
  display: block;
  margin-bottom: var(--space-xs);
}

.bch-stat-label {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ===== GAMES SECTION ===== */
.bch-games {
  background: var(--kraft-beige);
}

.bch-game-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  background: var(--paper-cream);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 40px var(--shadow-soft);
  transition: var(--transition-smooth);
}

.bch-game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px var(--shadow-medium);
}

.bch-game-image {
  background-image: url('../images/games.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.bch-game-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(34, 58, 90, 0.3), rgba(30, 26, 22, 0.5));
}

.bch-game-content {
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bch-game-title {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
  color: var(--post-blue);
}

.bch-game-description {
  color: var(--ink-muted);
  margin-bottom: var(--space-lg);
  line-height: 1.8;
}

.bch-game-meta {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.bch-game-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.5rem 1rem;
  background: var(--kraft-beige);
  border-radius: var(--radius-pill);
  color: var(--ink-muted);
}

/* ===== ADVANTAGES SECTION ===== */
.bch-advantages {
  background: var(--paper-cream);
}

.bch-advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.bch-advantage-card {
  background: var(--kraft-beige);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: var(--transition-smooth);
  border: 1px solid var(--divider-rgba);
  position: relative;
  overflow: hidden;
}

.bch-advantage-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--post-blue);
  transform: scaleX(0);
  transition: var(--transition-smooth);
}

.bch-advantage-card:hover::before {
  transform: scaleX(1);
}

.bch-advantage-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px var(--shadow-soft);
}

.bch-advantage-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  display: block;
}

.bch-advantage-title {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
  color: var(--post-blue);
}

.bch-advantage-text {
  color: var(--ink-muted);
  line-height: 1.7;
}

/* ===== CTA SECTIONS ===== */
.bch-cta-section {
  background: linear-gradient(135deg, var(--post-blue), var(--ink-dark));
  color: var(--paper-cream);
  text-align: center;
  padding: var(--space-xxl) var(--space-md);
}

.bch-cta-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: var(--space-md);
  color: var(--paper-cream);
}

.bch-cta-text {
  font-size: 1.1rem;
  margin-bottom: var(--space-lg);
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.bch-cta-light {
  background: var(--kraft-beige);
  color: var(--ink-dark);
}

.bch-cta-light .bch-cta-title {
  color: var(--post-blue);
}

.bch-cta-light .bch-cta-text {
  color: var(--ink-muted);
}

/* ===== FOOTER ===== */
.bch-footer {
  background: var(--ink-dark);
  color: var(--kraft-beige);
  padding: var(--space-xl) 0 var(--space-md);
}

.bch-disclaimer-banner {
  background: var(--seal-red);
  color: var(--paper-cream);
  padding: var(--space-md);
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.bch-disclaimer-banner strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: var(--space-xs);
}

.bch-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.bch-footer-section h4 {
  color: var(--paper-cream);
  margin-bottom: var(--space-md);
  font-size: 1.1rem;
}

.bch-footer-links {
  list-style: none;
}

.bch-footer-links li {
  margin-bottom: var(--space-sm);
}

.bch-footer-links a {
  color: var(--kraft-beige);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.bch-footer-links a:hover {
  color: var(--brass-gold);
  padding-left: 5px;
}

.bch-footer-contact {
  color: var(--kraft-beige);
  line-height: 2;
}

.bch-footer-bottom {
  border-top: 1px solid var(--divider-rgba);
  padding-top: var(--space-md);
  text-align: center;
}

.bch-footer-copyright {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.bch-responsible-gaming {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--divider-rgba);
}

.bch-responsible-gaming p {
  font-size: 0.85rem;
  margin-bottom: var(--space-sm);
  color: var(--ink-muted);
}

.bch-responsible-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
  align-items: center;
}

.bch-responsible-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  opacity: 0.8;
}

.bch-responsible-links a:hover {
  opacity: 1;
  transform: scale(1.05);
}

.bch-responsible-links img {
  max-width: 120px;
  height: auto;
  display: block;
}

/* ===== MODALS ===== */
.bch-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(30, 26, 22, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: var(--space-md);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.bch-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.bch-modal-content {
  background: var(--paper-cream);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  max-width: 500px;
  width: 100%;
  text-align: center;
  transform: scale(0.9);
  transition: var(--transition-bounce);
}

.bch-modal-overlay.active .bch-modal-content {
  transform: scale(1);
}

.bch-modal-title {
  font-size: 1.75rem;
  margin-bottom: var(--space-md);
  color: var(--post-blue);
}

.bch-modal-text {
  color: var(--ink-muted);
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}

.bch-modal-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.bch-cookie-banner {
  position: fixed;
  bottom: var(--space-md);
  left: var(--space-md);
  right: var(--space-md);
  background: var(--ink-dark);
  color: var(--paper-cream);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  z-index: 9998;
  box-shadow: 0 10px 40px var(--shadow-medium);
  transform: translateY(150%);
  transition: var(--transition-smooth);
}

.bch-cookie-banner.show {
  transform: translateY(0);
}

.bch-cookie-text {
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

.bch-cookie-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ===== CONTACT PAGE ===== */
.bch-contact-page {
  padding-top: 120px;
  min-height: 100vh;
}

.bch-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.bch-contact-info-card {
  background: var(--kraft-beige);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--divider-rgba);
}

.bch-contact-item {
  margin-bottom: var(--space-lg);
}

.bch-contact-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xs);
  display: block;
}

.bch-contact-value {
  font-size: 1.1rem;
  color: var(--ink-dark);
}

.bch-contact-form {
  background: var(--kraft-beige);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
}

.bch-form-group {
  margin-bottom: var(--space-md);
}

.bch-form-label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 500;
  color: var(--ink-dark);
}

.bch-form-input,
.bch-form-textarea {
  width: 100%;
  padding: var(--space-sm);
  background: var(--paper-cream);
  border: 1px solid var(--divider-rgba);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.bch-form-input:focus,
.bch-form-textarea:focus {
  outline: none;
  border-color: var(--post-blue);
  box-shadow: 0 0 0 3px rgba(34, 58, 90, 0.1);
}

.bch-form-textarea {
  min-height: 150px;
  resize: vertical;
}

/* ===== GAME PAGE ===== */
.bch-game-page {
  padding-top: 100px;
  min-height: 100vh;
}

.bch-game-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.bch-game-iframe-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  background: var(--ink-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px var(--shadow-medium);
  aspect-ratio: 16/9;
}

.bch-game-iframe-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ===== POLICY PAGES ===== */
.bch-policy-page {
  padding-top: 120px;
  min-height: 100vh;
}

.bch-policy-content {
  max-width: 800px;
  margin: 0 auto;
  background: var(--kraft-beige);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  line-height: 1.8;
}

.bch-policy-content h2 {
  color: var(--post-blue);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.bch-policy-content p {
  margin-bottom: var(--space-md);
}

.bch-policy-content ul,
.bch-policy-content ol {
  margin-left: var(--space-lg);
  margin-bottom: var(--space-md);
}

.bch-policy-content li {
  margin-bottom: var(--space-xs);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .bch-hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .bch-hero-actions {
    align-items: center;
  }

  .bch-about-grid {
    grid-template-columns: 1fr;
  }

  .bch-game-card {
    grid-template-columns: 1fr;
  }

  .bch-game-image {
    min-height: 300px;
  }

  .bch-contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --space-xxl: 4rem;
    --space-xl: 2.5rem;
  }

  .bch-nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper-cream);
    flex-direction: column;
    padding: var(--space-md);
    gap: var(--space-md);
    border-bottom: 1px solid var(--divider-rgba);
  }

  .bch-nav-list.active {
    display: flex;
  }

  .bch-mobile-toggle {
    display: block;
  }

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

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

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

  .bch-stats-grid {
    grid-template-columns: 1fr;
  }

  .bch-advantages-grid {
    grid-template-columns: 1fr;
  }

  .bch-footer-grid {
    grid-template-columns: 1fr;
  }

  .bch-modal-actions {
    flex-direction: column;
  }

  .bch-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .bch-hero-title {
    font-size: 2rem;
  }

  .bch-stat-value {
    font-size: 2rem;
  }

  .bch-modal-content {
    padding: var(--space-lg);
  }

  .bch-cookie-banner {
    left: var(--space-xs);
    right: var(--space-xs);
    bottom: var(--space-xs);
    padding: var(--space-md);
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .bch-header,
  .bch-modal-overlay,
  .bch-cookie-banner {
    display: none;
  }

  .bch-section {
    page-break-inside: avoid;
  }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

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

/* Focus styles for keyboard navigation */
a:focus-visible,
button:focus-visible,
.bch-form-input:focus-visible,
.bch-form-textarea:focus-visible {
  outline: 3px solid var(--brass-gold);
  outline-offset: 2px;
}