/*
  Global Dark Theme Styles
  - Uses CSS variables for theme colors and spacing
  - Mobile-first responsive layout
  - Comments explain each block and component
*/

:root {
  /* Color palette */
  --color-bg: #0b0f1a;
  --color-surface: #11182a;
  --color-surface-2: #0f1526;
  --color-text: #e6e9f2;
  --color-text-muted: #a3acc2;
  --color-primary: #6a8dff;
  --color-accent: #ff5072;
  --color-border: #223055;
  --overlay: rgba(10, 14, 25, 0.7);

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

/* Base reset and typography for accessibility */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: min(1200px, 92%); margin-inline: auto; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Skip link removed per request */

/* Buttons: primary, ghost, accent, sizes */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-2);
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.12s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:focus { outline: 2px solid #ffffff33; outline-offset: 2px; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--color-primary); }
.btn--ghost { background: transparent; border-color: var(--color-border); color: var(--color-text); }
.btn--accent { background: var(--color-accent); }
.btn--success { background: #16a34a; }
.btn--success:hover { background: #149143; }
.btn--lg { padding: 14px 22px; font-size: 1.05rem; }

/* Header: layout with logo and nav; sticky for better UX */
.site-header { position: sticky; top: 0; background: var(--color-surface); z-index: 50; box-shadow: 0 1px 0 var(--color-border); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; padding: var(--space-3) 0; gap: var(--space-4); }
.logo img { height: 40px; width: auto; }

.primary-nav__list { display: flex; align-items: center; gap: var(--space-3); list-style: none; padding: 0; margin: 0; }

/* Breadcrumbs */
.breadcrumbs { background: var(--color-surface-2); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.breadcrumbs__list { display: flex; gap: var(--space-2); list-style: none; padding: var(--space-2) 0; margin: 0; width: min(1200px, 92%); margin-inline: auto; }
.breadcrumbs__item { color: var(--color-text-muted); }
.breadcrumbs__item a { color: var(--color-text); }
.breadcrumbs__item span { opacity: 0.85; }

/* Hero banner with centered semi-transparent overlay CTA */
.hero { position: relative; }
.hero__media img { width: 100%; height: clamp(240px, 35vw, 520px); object-fit: cover; }
.hero__overlay {
  position: absolute; inset: 0; display: grid; place-items: center;
  padding: var(--space-6);
}
.hero__cta {
  background: var(--overlay);
  padding: var(--space-4) var(--space-6);
  border: 1px solid #ffffff26;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  width: min(720px, 92%);
}
.hero__title { margin: 0 0 var(--space-2) 0; font-size: clamp(1.25rem, 2.4vw, 2rem); }
.hero__subtitle { margin: 0 0 var(--space-4) 0; color: var(--color-text-muted); }

/* Content typography */
.content { padding: var(--space-8) 0; }
.content h2 { font-size: clamp(1.25rem, 2.2vw, 1.75rem); margin-top: 0; }
.content h3 { margin-top: var(--space-8); font-size: clamp(1.125rem, 2vw, 1.4rem); }
.content h4 { margin-top: var(--space-6); font-size: 1.05rem; color: var(--color-text); }
.content p, .content li { color: var(--color-text); }
.content ul, .content ol { padding-left: var(--space-6); }
.cta-center { text-align: center; margin-top: var(--space-8); }

/* Responsive tables: wrap enables horizontal scroll on narrow screens */
.table-wrap { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); overflow: auto; box-shadow: var(--shadow); }
.table { width: 100%; border-collapse: collapse; min-width: 560px; }
.table th, .table td { padding: 12px 14px; border-bottom: 1px solid var(--color-border); text-align: left; }
.table thead th { position: sticky; top: 0; background: #0e1528; z-index: 1; }

/* Mobile stacked table: no horizontal scroll, expands vertically */
@media screen and (max-width: 640px) {
  .table-wrap { overflow: visible; }
  .table { display: block; min-width: 0; }
  .table thead {
    /* Visually hide header but keep for screen readers */
    border: 0; clip: rect(0 0 0 0); clip-path: inset(50%);
    height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; white-space: nowrap;
  }
  .table tbody { display: block; }
  .table tr { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 12px; border-bottom: 1px solid var(--color-border); }
  .table td { display: grid; grid-template-columns: max(9rem, 40%) 1fr; gap: 8px; align-items: start; border: 0; padding: 0; }
  .table td::before { content: attr(data-label); color: var(--color-text-muted); font-weight: 600; }
}

/* Slots grid: 6 per row on desktop, 3 on tablets, 2 on phones */
.slots { padding: var(--space-8) 0; background: var(--color-surface-2); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.slots__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); list-style: none; padding: 0; margin: var(--space-4) 0 0; }
.slots__item { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; transition: transform 0.15s ease; }
.slots__item:hover { transform: translateY(-2px); }
.slots__item img { aspect-ratio: 1 / 1; object-fit: cover; }

@media screen and (min-width: 640px) {
  .slots__grid { grid-template-columns: repeat(3, 1fr); }
}
@media screen and (min-width: 1024px) {
  .slots__grid { grid-template-columns: repeat(6, 1fr); }
}

/* Footer with payment logos */
.site-footer { background: var(--color-surface); padding: var(--space-8) 0; margin-top: var(--space-10); border-top: 1px solid var(--color-border); }
.payments__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); list-style: none; padding: 0; margin: 0 0 var(--space-6) 0; align-items: center; }
.payments__grid img { margin-inline: auto; filter: saturate(0.9) brightness(0.95); max-width: 72px; height: auto; }
@media screen and (min-width: 640px) {
  .payments__grid { grid-template-columns: repeat(6, 1fr); }
}
@media screen and (min-width: 1024px) {
  .payments__grid { grid-template-columns: repeat(8, 1fr); }
}
.footer-nav__list { display: flex; gap: var(--space-4); list-style: none; padding: 0; margin: 0 0 var(--space-3) 0; }
.footer-copy { color: var(--color-text-muted); margin: 0; }

/* Mobile orientation lock hint: prevent body scroll during overlay UIs if used */
body.locked { overflow: hidden; height: 100vh; }

/* Focus visibility for keyboard users */
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }


