/* cam86 minisite — mobile-first responsive (320px → 1920px) */

/* 1. Brand tokens */
:root {
  --color-primary: #a8e436;
  --color-primary-dark: #6fb214;
  --color-ink: #0d0d0d;
  --color-surface: #1a1a1a;
  --color-surface-2: #232323;
  --color-divider: #2f2f2f;
  --color-muted: #8a8a8a;
  --color-bg: #f6efe1;
  --color-bg-2: #ffffff;
  --color-on-primary: #0d0d0d;
  --color-accent: #ffd166;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --max-w: 1200px;
  --radius-sm: 0.5rem;
  --radius: 0.75rem;
  --radius-lg: 1rem;
  --shadow-sm: 0 2px 8px rgba(13, 13, 13, 0.06);
  --shadow: 0 8px 24px rgba(13, 13, 13, 0.08);
  --shadow-lg: 0 16px 36px rgba(13, 13, 13, 0.12);
}

/* 2. Reset / base */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: clamp(0.95rem, 0.85rem + 0.4vw, 1.05rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.75rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.35rem); }
h4 { font-size: 1rem; }
p { margin: 0 0 1em; }
ul { list-style: none; padding: 0; margin: 0; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1rem;
}

.section-title { text-align: center; margin-bottom: 1.5rem; }
.section-lead {
  text-align: center;
  max-width: 50rem;
  margin: 0 auto 2.5rem;
  color: #444;
}

section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }

/* 3. Header & nav */
#site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-divider);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  gap: 1rem;
  flex-wrap: nowrap;
}
.brand img {
  height: clamp(2rem, 4vw + 1rem, 3rem);
  width: auto;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-sm);
  cursor: pointer;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  margin: 0 auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.primary-nav {
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  background: var(--color-surface);
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.primary-nav.open { max-height: 80vh; }
.primary-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.primary-nav a {
  display: block;
  padding: 0.875rem 1rem;
  color: #f0f0f0;
  font-weight: 600;
  border-bottom: 1px solid var(--color-divider);
}
.primary-nav a:hover { color: var(--color-primary); background: rgba(168, 228, 54, 0.06); }

.header-actions {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.875rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-ghost {
  color: #fff;
  border-color: var(--color-divider);
  background: transparent;
}
.btn-ghost:hover { background: var(--color-surface-2); }
.btn-primary {
  background: var(--color-primary);
  color: var(--color-on-primary);
  box-shadow: 0 4px 12px rgba(168, 228, 54, 0.35);
}
.btn-primary:hover { background: var(--color-primary-dark); }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 40px;
  padding: 0.5rem 0.875rem;
  background: var(--color-surface-2);
  color: #fff;
  border: 1px solid var(--color-divider);
  border-radius: 9999px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.875rem;
  transition: background 0.2s ease, transform 0.1s ease;
}
.lang-toggle:hover { background: var(--color-divider); }
.lang-toggle:active { transform: scale(0.97); }
.lang-toggle img {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
}

/* 4. Banner */
.banner-section {
  position: relative;
  overflow: hidden;
  height: clamp(380px, 65vh, 600px);
  background: var(--color-surface);
}
.banner-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
  z-index: 1;
}
.banner-slide.active { opacity: 1; }
.banner-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, rgba(13,13,13,0.55) 0%, rgba(13,13,13,0.78) 100%);
  padding: 1.5rem 0;
}
.banner-content { color: #fff; text-align: center; }
.banner-content h1 { color: #fff; }
.banner-content p {
  color: #f0f0f0;
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  max-width: 42rem;
  margin: 0 auto 1.5rem;
}
.banner-dots {
  position: absolute;
  bottom: 0.75rem;
  left: 0; right: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}
.banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: rgba(255,255,255,0.4);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.banner-dot.active {
  background: var(--color-primary);
  transform: scale(1.3);
}
.hero-cta-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 22rem;
  margin: 0 auto;
}

/* 5. CTA button */
.cta-button {
  display: block;
  width: 100%;
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  padding: 0.875rem 1.5rem;
  min-height: 48px;
  border-radius: var(--radius);
  box-shadow: 0 6px 14px rgba(168, 228, 54, 0.35);
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.cta-button:hover {
  background: var(--color-primary-dark);
  box-shadow: 0 8px 18px rgba(168, 228, 54, 0.45);
}
.cta-button:active { transform: scale(0.98); }
.cta-button-lg {
  font-size: 1.125rem;
  padding: 1rem 2rem;
  min-height: 56px;
}
.cta-button-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  box-shadow: none;
}
.cta-button-outline:hover {
  background: var(--color-primary);
  color: var(--color-on-primary);
}

/* 6. Intro */
#intro {
  background: var(--color-bg);
}
#intro p { max-width: 56rem; margin: 0 auto 1rem; }
#intro p strong { color: var(--color-primary-dark); }

/* 7. Highlights (feature cards) */
#highlights { background: var(--color-bg-2); }
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.feature-card {
  background: #fff;
  border: 1px solid rgba(13, 13, 13, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.feature-icon {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
}
.feature-card p { color: #555; margin-bottom: 0; }

/* 8. Games */
#games {
  background: var(--color-bg);
}
.game-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.game-card {
  display: block;
  background: var(--color-surface);
  color: #f5f5f5;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  border: 1px solid var(--color-divider);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.game-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-primary);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}
.game-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}
.game-card h3 { color: var(--color-primary); }
.game-card p { color: #ccc; margin-bottom: 0; font-size: 0.95rem; }

/* 9. Promotions */
#promotions { background: var(--color-bg-2); }
.promo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.promo-card {
  position: relative;
  background: #fff;
  border: 1px solid rgba(13, 13, 13, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  text-align: center;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.promo-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.promo-card-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-on-primary);
  border-color: transparent;
}
.promo-amount {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-primary-dark);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.promo-card-primary .promo-amount { color: var(--color-on-primary); }
.promo-card p { color: #555; margin-bottom: 0; }
.promo-card-primary p { color: rgba(13, 13, 13, 0.85); }

/* 10. Info table */
#info-table { background: var(--color-bg); }
.table-wrapper {
  max-width: 56rem;
  margin: 0 auto;
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  background: #fff;
}
.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.info-table th, .info-table td {
  padding: 0.875rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(13, 13, 13, 0.06);
  vertical-align: top;
}
.info-table th {
  width: 38%;
  font-weight: 700;
  color: var(--color-ink);
  background: rgba(168, 228, 54, 0.08);
}
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: none; }
.info-table td { color: #333; }

/* 11. FAQ */
#faq { background: var(--color-bg-2); }
.faq-list {
  max-width: 48rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.faq-item {
  background: #fff;
  border: 1px solid rgba(13, 13, 13, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}
.faq-item[open] { box-shadow: var(--shadow); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 3rem 1rem 1.25rem;
  font-weight: 700;
  color: var(--color-ink);
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-primary-dark);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p {
  padding: 0 1.25rem 1.25rem;
  margin: 0;
  color: #444;
}

/* 12. News */
#news { background: var(--color-bg); }
.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.news-card {
  display: flex;
  gap: 1rem;
  background: #fff;
  border: 1px solid rgba(13, 13, 13, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.news-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.news-date {
  flex: 0 0 56px;
  height: 64px;
  background: var(--color-surface);
  color: #fff;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.news-day { font-size: 1.5rem; font-weight: 800; line-height: 1; }
.news-month { font-size: 0.75rem; color: var(--color-primary); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 0.25rem; }
.news-card h3 { font-size: 1.05rem; margin-bottom: 0.25rem; }
.news-card p { color: #555; font-size: 0.9rem; margin: 0; }

/* 13. Bottom CTA */
#cta {
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-surface-2) 100%);
  color: #fff;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
  text-align: center;
}
#cta h2 { color: #fff; }
#cta p {
  color: #ccc;
  max-width: 36rem;
  margin: 0 auto 1.5rem;
}
.cta-inner .cta-button {
  max-width: 22rem;
  margin: 0 auto;
}

/* 14. Footer */
#site-footer {
  background: var(--color-ink);
  color: var(--color-muted);
  padding: 2.5rem 0 1.25rem;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-divider);
}
.footer-logo {
  height: 40px;
  width: auto;
  margin-bottom: 0.75rem;
}
.footer-brand p { color: #aaa; }
.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a { color: var(--color-muted); transition: color 0.2s ease; }
.footer-col a:hover { color: var(--color-primary); }
.footer-contact li { line-height: 1.5; }
.footer-contact span { color: #fff; font-weight: 600; margin-right: 0.25rem; }
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.85rem;
}
.footer-tags { color: #555; font-size: 0.8rem; }

/* 15. Tablet (>=640px) */
@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .game-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .promo-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .news-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; }
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
  .hero-cta-row { flex-direction: row; justify-content: center; max-width: none; }
  .cta-button { display: inline-block; width: auto; min-width: 14rem; }
  .cta-inner .cta-button { max-width: none; }
}

/* 16. Desktop (>=1024px) */
@media (min-width: 1024px) {
  .container { padding: 0 2rem; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .game-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .promo-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .news-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .feature-card, .game-card { padding: 2rem; }
  .banner-section { height: clamp(480px, 70vh, 680px); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; }

  /* Show inline nav, hide hamburger */
  .nav-toggle { display: none; }
  .primary-nav {
    position: static;
    max-height: none;
    overflow: visible;
    background: transparent;
    border: none;
    flex: 1;
    margin-left: 1rem;
  }
  .primary-nav ul {
    flex-direction: row;
    gap: 0.25rem;
    justify-content: center;
    flex-wrap: wrap;
  }
  .primary-nav a {
    padding: 0.5rem 0.875rem;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
  }
  .primary-nav a:hover { background: var(--color-surface-2); color: var(--color-primary); }
  .header-actions { display: inline-flex; }
}

/* 17. Wide (>=1440px) */
@media (min-width: 1440px) {
  .primary-nav a { font-size: 0.95rem; padding: 0.625rem 1rem; }
}

/* 18. Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
