/*
  Light Theme Stylesheet
  - Mobile-first responsive CSS
  - Uses CSS variables for theme
  - BEM naming
  - Detailed comments for blocks/components
*/

:root {
  /* Theme tokens */
  --color-brand: #131a4e; /* Header color as requested */
  --color-brand-contrast: #ffffff;
  --color-bg: #ffffff;
  --color-surface: #f6f7fb;
  --color-text: #14151a;
  --color-muted: #6b7280;
  --color-cta: #ff3e55;
  --color-cta-contrast: #ffffff;
  --color-border: #e5e7eb;

  --radius-s: .5rem;
  --radius-m: .75rem;
  --radius-l: 1rem;

  --shadow-s: 0 1px 2px rgba(0,0,0,.06);
  --shadow-m: 0 6px 18px rgba(0,0,0,.12);

  --container: 1200px;
}

/* CSS Reset (minimal) */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji"; background: var(--color-bg); color: var(--color-text); line-height: 1.6; }
html, body { overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1rem; }

/* Accessibility helpers */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip-link { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { left: 1rem; top: 1rem; width: auto; height: auto; background: #fff; color: #000; padding: .5rem .75rem; border-radius: var(--radius-s); box-shadow: var(--shadow-m); z-index: 1000; }

/* Header Block */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--color-brand); color: var(--color-brand-contrast); box-shadow: var(--shadow-s); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 64px; }
.header__logo img { display: block; }

/* Navigation */
.header__menu-toggle { background: transparent; color: var(--color-brand-contrast); border: 1px solid rgba(255,255,255,.18); padding: .5rem .75rem; border-radius: .5rem; display: none; align-items: center; cursor: pointer; }
.header__nav { display: flex; align-items: center; }
.header__menu { display: none; list-style: none; gap: .5rem; padding: 0; margin: 0; }
.header__menu a { padding: .5rem .75rem; border-radius: .5rem; }
.header__menu a:hover { background: rgba(255,255,255,.12); }
.header__actions { display: inline-flex; gap: .5rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: .6rem 1rem; border-radius: .6rem; font-weight: 600; border: 1px solid transparent; transition: transform .1s ease, box-shadow .2s ease, background .2s ease, color .2s ease; }
.btn:focus-visible { outline: 3px solid rgba(255,255,255,.7); outline-offset: 2px; }
.btn--ghost { background: transparent; color: var(--color-brand-contrast); border-color: rgba(255,255,255,.24); }
.btn--secondary { background: #ffffff; color: var(--color-brand); }
.btn--primary { background: var(--color-cta); color: var(--color-cta-contrast); box-shadow: 0 6px 16px rgba(255,62,85,.3); }
.btn--cta { background: var(--color-cta); color: var(--color-cta-contrast); padding: .8rem 1.25rem; font-size: 1.1rem; box-shadow: 0 8px 24px rgba(255,62,85,.35); }
.btn:hover { transform: translateY(-1px); }

/* Hero/Banner Block */
.hero { position: relative; isolation: isolate; display: grid; }
.hero picture, .hero img { width: 100%; display: block; grid-area: 1 / 1; }
.hero__overlay { grid-area: 1 / 1; align-self: center; justify-self: center; position: relative; background: rgba(19,26,78,.72); color: #fff; padding: 1rem; border-radius: var(--radius-m); backdrop-filter: saturate(130%) blur(4px); max-width: min(720px, 92%); text-align: center; margin: 2vw; }
.hero__title { margin: 0 0 .25rem; font-size: 1.5rem; }
.hero__subtitle { margin: 0 0 .75rem; color: #e6e9ff; }

/* Breadcrumbs */
.breadcrumbs { background: var(--color-surface); border-bottom: 1px solid var(--color-border); }
.breadcrumbs ol { margin: 0; padding: .5rem 1rem; list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.breadcrumbs a { color: var(--color-brand); text-decoration: underline; }
.breadcrumbs li { color: var(--color-muted); }

/* Slots Grid */
.slots { padding: 2rem 0; }
.section-intro { color: var(--color-muted); margin: 0 0 1rem; }
.slots__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; list-style: none; padding: 0; margin: 0; }
.slot { display: block; border-radius: var(--radius-m); overflow: hidden; border: 1px solid var(--color-border); background: #fff; box-shadow: var(--shadow-s); }
.slot img { aspect-ratio: 1 / 1; object-fit: cover; }
.slot:hover { box-shadow: var(--shadow-m); transform: translateY(-1px); }

/* Content */
.content { padding: 2rem 0; }
.content h2 { margin: 0 0 .75rem; }
.content h3 { margin: 2rem 0 .5rem; }
.content h4 { margin: 1.25rem 0 .5rem; }
.content p { margin: 0 0 1rem; }
.content ul, .content ol { margin: 0 0 1rem 1.25rem; }

/* Tables: responsive pattern
   - Wrap table in .table-responsive
   - On narrow screens, rows stack: cells display as blocks with data-label
*/
.table-responsive { width: 100%; overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius-m); background: #fff; }
.table-responsive table { width: 100%; border-collapse: collapse; min-width: 560px; }
table th, table td { padding: .75rem; border-bottom: 1px solid var(--color-border); text-align: left; vertical-align: top; }
table thead th { background: var(--color-surface); font-weight: 700; }

/* Mobile stacked table (enhanced by JS adding data-labels) */
@media (max-width: 640px) {
  .table-responsive { overflow: hidden; }
  .table-responsive table { display: block; min-width: 0; }
  .table-responsive thead { display: none; }
  .table-responsive tbody { display: grid; gap: .75rem; padding: .5rem; }
  .table-responsive tr { display: grid; grid-template-columns: 1fr; border: 1px solid var(--color-border); border-radius: var(--radius-m); overflow: hidden; }
  .table-responsive td { display: grid; grid-template-columns: 10rem 1fr; gap: .5rem; padding: .75rem; border: none; border-bottom: 1px solid var(--color-border); }
  .table-responsive td:last-child { border-bottom: none; }
  .table-responsive td::before { content: attr(data-label); font-weight: 600; color: var(--color-muted); }
}

/* Footer */
.site-footer { background: #0f143e; color: #cdd3ff; padding: 2rem 0; margin-top: 2rem; }
.payments__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; list-style: none; padding: 0; margin: 0 0 1rem; align-items: center; }
.payments__grid li { display: grid; place-items: center; }
.payments__grid img { width: auto; max-width: 72px; height: auto; filter: drop-shadow(0 0 0 rgba(255,255,255,0)); transition: filter .25s ease, transform .2s ease; }
.payments__grid img:hover { filter: drop-shadow(0 0 16px rgba(255,255,255,.65)); transform: translateY(-2px); }
.legal { font-size: .9rem; color: #aab2ff; }
/* store badges removed per request */

/* Larger screens */
@media (min-width: 640px) {
  .header__menu { display: flex; }
  .header__actions { display: inline-flex; }
  .header__menu-toggle { display: none; }
  .hero__title { font-size: 2rem; }
  .slots__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .payments__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .payments__grid img { max-width: 88px; }
  .badge { padding: .5rem .8rem; }
  .badge__icon { width: 26px; height: 26px; }
}

@media (min-width: 1024px) {
  .badge { padding: .6rem 1rem; }
  .badge__icon { width: 28px; height: 28px; }
}

@media (min-width: 1024px) {
  .hero__overlay { inset: 2rem auto auto 2rem; }
  .hero__title { font-size: 2.25rem; }
  .slots__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}


