/*
  Light theme styles for Fortunica Casino Australia
  - Semantic layout, accessibility, mobile-first responsive design
  - Header color: #131a4e
  - Detailed comments explain structure and component responsibilities
*/

:root {
  --color-bg: #ffffff;
  --color-text: #0d0f1a;
  --color-muted: #5b6173;
  --color-primary: #131a4e; /* header color */
  --color-primary-contrast: #ffffff;
  --color-accent: #ffb703;
  --color-overlay: rgba(0, 0, 0, 0.45);
  --container-max: 1200px;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --radius-sm: 8px;
  --radius-md: 12px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Base resets with accessible defaults */
* { 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 Neue, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:focus { outline: 3px solid #7aa7ff; outline-offset: 2px; }

/* Utility: visually hidden but accessible */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Layout container */
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-2); }

/* Skip link for keyboard navigation */
.skip-link { position: absolute; top: -1000px; left: 0; background: #000; color: #fff; padding: var(--space-1) var(--space-2); z-index: 10000; }
.skip-link:focus { top: 0; }

/* Header: sticky with brand and primary nav. Mobile hamburger toggles nav visibility */
.site-header { position: sticky; top: 0; z-index: 1000; background: var(--color-primary); color: var(--color-primary-contrast); box-shadow: var(--shadow-sm); }
.header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.brand img { display: block; }
.primary-nav { display: block; }
.nav__list { display: flex; gap: var(--space-2); list-style: none; margin: 0; padding: 0; }
.nav__link { color: var(--color-primary-contrast); padding: var(--space-1) var(--space-2); border-radius: var(--radius-sm); }
.nav__link:focus, .nav__link:hover { background: rgba(255,255,255,0.12); }
.nav__btn { padding: 0.5rem 1rem; }
.btn--success { background: #16a34a; color: #0b1a0f; }
.btn--success:hover, .btn--success:focus { filter: brightness(0.95); }
.nav__icon { color: var(--color-primary-contrast); display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; }
.nav__icon:hover, .nav__icon:focus { background: rgba(255,255,255,0.12); }
.nav-toggle { background: transparent; border: 0; cursor: pointer; color: var(--color-primary-contrast); padding: var(--space-1); display: inline-flex; flex-direction: column; gap: 3px; }
.nav-toggle__bar { width: 22px; height: 2px; background: currentColor; display: block; }

/* Show nav on larger screens */
@media (min-width: 768px) { }

/* Breadcrumbs for SEO and accessibility */
.breadcrumbs { background: #f6f8ff; border-bottom: 1px solid #e4e8ff; }
.breadcrumbs__list { list-style: none; margin: 0; padding: var(--space-1) var(--space-2); display: flex; gap: var(--space-1); flex-wrap: wrap; }
.breadcrumbs__item { color: var(--color-muted); }
.breadcrumbs__item a { color: var(--color-text); }
.breadcrumbs__item + .breadcrumbs__item::before { content: "/"; margin: 0 var(--space-1); color: var(--color-muted); }

/* Hero banner: full-bleed image with centered CTA on semi-transparent overlay */
.hero { position: relative; isolation: isolate; }
.hero picture, .hero img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.hero { padding: var(--space-2) 0; }
.hero img { width: 100%; max-height: 380px; object-fit: cover; object-position: center; }
.hero { padding: var(--space-2) 0; }

/* Mobile: use original banner size (no max-height reduction, no cropping) */
@media (max-width: 767px) {
  .hero { padding: 0; }
  .hero img { max-height: none; height: auto; object-fit: contain; }
}
.hero__cta { display: grid; place-items: center; }
.hero__cta::before { inset: auto auto 12% 50%; }
.hero__overlay { display: none; }
.hero__cta { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: #fff; padding: var(--space-4) var(--space-2); }
.hero__cta > * { margin: 0; }
.hero__cta .hero__title { margin-bottom: var(--space-1); }
.hero__cta .hero__subtitle { margin-bottom: var(--space-2); }
.hero__cta { pointer-events: none; }
.hero__cta .btn { pointer-events: auto; }
.hero__card { position: relative; background: rgba(0,0,0,0.5); border-radius: var(--radius-md); padding: 1rem 1.25rem; box-shadow: 0 12px 30px rgba(0,0,0,0.35); width: min(90%, 560px); backdrop-filter: blur(2px); }
.hero__cta > * { position: relative; z-index: 1; }
.hero__title { font-size: clamp(1.4rem, 3vw, 2.25rem); margin: 0 0 var(--space-1); }
.hero__subtitle { margin: 0 0 var(--space-2); color: #f2f5ff; }

/* Buttons */
.btn { display: inline-block; padding: 0.75rem 1.25rem; border-radius: var(--radius-md); font-weight: 600; box-shadow: var(--shadow-sm); }
.btn--primary { background: var(--color-accent); color: #1a1a1a; box-shadow: 0 6px 0 rgba(0,0,0,0.2), var(--shadow-sm); transform: translateZ(0); }
.btn--primary:hover, .btn--primary:focus { filter: brightness(0.95); transform: translateY(1px); box-shadow: 0 5px 0 rgba(0,0,0,0.2), var(--shadow-sm); }

/* CTA card with semi-transparent background, white text, slight 3D card effect */
.hero__cta::before { background: rgba(0,0,0,0.5); backdrop-filter: blur(2px); box-shadow: 0 12px 30px rgba(0,0,0,0.35); }
.hero__title, .hero__subtitle { color: #ffffff; text-shadow: 0 1px 2px rgba(0,0,0,0.4); }

/* Sections spacing */
.section { padding: var(--space-4) 0; }

/* Slots grid: 6 per row desktop, responsive collapse on smaller screens */
.slots__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-2); }
.slots__item { background: #fff; border-radius: 16px; box-shadow: var(--shadow-sm); overflow: hidden; }
.slots__item img { border-radius: 16px; }
.slot { display: block; }
@media (min-width: 480px) { .slots__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .slots__grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 992px) { .slots__grid { grid-template-columns: repeat(6, 1fr); } }

/* Tables: responsive wrapper with horizontal scroll on small screens; make cells readable */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid #e9ecf5; border-radius: var(--radius-sm); background: #fff; box-shadow: var(--shadow-sm); margin-bottom: var(--space-3); }
.table { width: 100%; border-collapse: collapse; min-width: 560px; }
.table caption { text-align: left; color: var(--color-muted); padding: var(--space-1) var(--space-2); font-size: 0.95rem; }
.table th, .table td { padding: 0.75rem 1rem; border-bottom: 1px solid #eef1f7; text-align: left; vertical-align: top; }
.table thead th { background: #f6f8ff; font-weight: 700; }
.table tbody tr:nth-child(odd) { background: #fafbff; }

/* Mobile-friendly table transformation: stack rows into cards, no horizontal scroll */
@media (max-width: 767px) {
  .table-responsive { overflow-x: hidden; border: 0; background: transparent; box-shadow: none; }
  .table { display: block; width: 100%; min-width: 0; border-collapse: separate; border-spacing: 0; }
  .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .table tbody { display: block; }
  .table tr { display: block; margin: 0 0 var(--space-2); background: #fff; border: 1px solid #e9ecf5; border-radius: 12px; box-shadow: var(--shadow-sm); }
  .table td { display: block; width: 100%; border-bottom: 1px solid #eef1f7; padding: 0.75rem 1rem; }
  .table td:last-child { border-bottom: 0; }
  .table td::before { content: attr(data-label); display: block; font-weight: 700; color: var(--color-muted); margin-bottom: 0.25rem; }
}

/* Content typography */
h1, h2, h3, h4, h5 { color: #111433; line-height: 1.25; margin: 1.25rem 0 0.75rem; }
p { margin: 0 0 1rem; }
ul, ol { padding-left: 1.25rem; margin: 0 0 1rem; }

/* Checklist visual style */
.checklist li { list-style: none; position: relative; padding-left: 1.5rem; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: #17a34a; font-weight: 700; }

/* Payment methods grid */
/* removed mid-page payments section */

/* Footer */
.site-footer { background: #0f143c; color: #cfd7ff; padding: var(--space-4) 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); flex-wrap: wrap; }
.footer-nav { list-style: none; display: flex; gap: var(--space-2); margin: 0; padding: 0; }
.footer-nav a { color: #cfd7ff; }
.footer-nav a:hover, .footer-nav a:focus { text-decoration: underline; }

/* Footer payments row to make icons functional and aligned */
.footer__payments { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); margin-top: var(--space-3); align-items: center; }
.footer__payments img { max-height: 28px; margin: 0 auto; filter: grayscale(0.1); opacity: 0.9; }
@media (min-width: 768px) { .footer__payments { grid-template-columns: repeat(8, 1fr); } }

/* Mobile navigation drawer behavior: use JS to toggle a class that reveals nav */
.site-header.is-open .primary-nav { display: block; position: absolute; top: 64px; left: 0; right: 0; background: var(--color-primary); padding: var(--space-2); border-bottom-left-radius: var(--radius-sm); border-bottom-right-radius: var(--radius-sm); box-shadow: var(--shadow-md); }
.site-header.is-open .nav__list { flex-direction: column; }

/* Fix screen in mobile version: prevent layout shifts, ensure no horizontal scroll */
html, body { max-width: 100%; overflow-x: hidden; }


