/* ==========================================================================
   Cusco Casino (cusco7.nl) — shared stylesheet
   ========================================================================== */

:root {
  --bg: #0e0c12;
  --bg-alt: #161320;
  --surface: #1e1a29;
  --surface-alt: #251f34;
  --border: #322c44;
  --text: #f3f1f7;
  --text-muted: #a9a3ba;
  --accent: #ff6a1a;
  --accent-2: #ff3d5a;
  --accent-purple: #8b3ffb;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

a { color: var(--accent); }

h1, h2, h3, h4 { line-height: 1.25; color: var(--text); }
h1 { font-size: clamp(1.6rem, 4vw, 2.1rem); }
h2 { font-size: clamp(1.25rem, 3vw, 1.5rem); margin-top: 2.2rem; }
h3 { font-size: 1.1rem; }

/* ---- Buttons -------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .55rem 1.15rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .85rem;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, color .15s ease, border-color .15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 80, 40, .35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(255, 80, 40, .5); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-cta { padding: .85rem 1.75rem; font-size: 1rem; }

/* ---- Header ----------------------------------------------------------- */

.site-header {
  background: rgba(14, 12, 18, .95);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: .55rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  position: relative;
}

.logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
}
.logo-icon {
  height: 40px;
  width: 40px;
  border-radius: 22%;
  object-fit: cover;
  flex: 0 0 auto;
}
.logo-text {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: .01em;
  color: #fff;
  white-space: nowrap;
}
.logo-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin: 0 auto;
}
.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
}
.site-nav a:hover { color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: .6rem; flex: 0 0 auto; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 26px;
  height: 22px;
  cursor: pointer;
}
.burger span { display: block; height: 2px; border-radius: 2px; background: var(--text); }

/* ---- Breadcrumbs -------------------------------------------------------- */

.breadcrumbs { background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.breadcrumbs .container { padding-top: .55rem; padding-bottom: .55rem; }
.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  font-size: .8rem;
  color: var(--text-muted);
}
.breadcrumbs li { display: flex; align-items: center; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin: 0 .45rem; color: var(--border); }
.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs li[aria-current] { color: var(--text); }

/* ---- Hero --------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(9, 7, 12, .92) 0%, rgba(9, 7, 12, .68) 40%, rgba(9, 7, 12, .2) 75%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.25rem;
  width: 100%;
}
.hero-content { max-width: 480px; }
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .75rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 .75rem;
}
.hero-title { font-size: clamp(1.5rem, 4vw, 2.3rem); font-weight: 800; margin: 0 0 .75rem; }
.hero-text { color: var(--text-muted); margin: 0 0 1.6rem; }

/* ---- Main / article ------------------------------------------------------ */

main { display: block; }
main .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 2.5rem;
  padding-top: 2.5rem;
  padding-bottom: 3rem;
  align-items: start;
}

article table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: .92rem; }
article th, article td {
  border: 1px solid var(--border);
  padding: .55rem .75rem;
  text-align: left;
}
article th { background: var(--surface-alt); }
article tbody tr:nth-child(even) { background: rgba(255, 255, 255, .02); }

article ul, article ol { padding-left: 1.35rem; }
article li { margin-bottom: .35rem; }

section { margin-bottom: .5rem; }

/* TOC accordion */
details.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 1.75rem 0 2.25rem;
  padding: 0;
}
details.toc summary {
  cursor: pointer;
  padding: .95rem 1.15rem;
  font-weight: 700;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
details.toc summary::-webkit-details-marker { display: none; }
details.toc summary::after { content: "+"; color: var(--accent); font-size: 1.2rem; }
details.toc[open] summary::after { content: "\2212"; }
details.toc summary:hover { color: var(--accent); }
details.toc ol, details.toc ul { margin: 0; padding: 0 1.15rem 1.1rem 1.75rem; }

aside.bio {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  font-size: .9rem;
  color: var(--text-muted);
  align-self: start;
}
aside.bio strong { color: var(--text); }

/* ---- Footer --------------------------------------------------------------- */

.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); margin-top: 2rem; padding: 2.5rem 0 1.5rem; }
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
}
.footer-brand .logo { margin-bottom: .85rem; }
.footer-brand p { color: var(--text-muted); font-size: .85rem; max-width: 320px; }
.footer-col h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin: 0 0 .9rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .55rem; }
.footer-col a { color: var(--text-muted); text-decoration: none; font-size: .92rem; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding: 1.2rem 1.25rem 0;
  border-top: 1px solid var(--border);
  font-size: .78rem;
  color: var(--text-muted);
}
.footer-bottom p { margin: .3rem 0; }

/* ---- Responsive ------------------------------------------------------------ */

@media (max-width: 860px) {
  main .container { grid-template-columns: 1fr; }
  aside.bio { margin-top: 1rem; }
}

@media (max-width: 760px) {
  .burger { display: flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }
  .site-nav a { padding: .85rem 1.25rem; border-bottom: 1px solid var(--border); }

  .nav-toggle:checked ~ .site-nav { max-height: 320px; }

  .header-inner { gap: .6rem; padding: .5rem .9rem; }
  .logo-icon { height: 32px; width: 32px; }
  .logo-text { font-size: 1rem; }
  .header-actions { gap: .4rem; }
  .btn { padding: .42rem .7rem; font-size: .72rem; }

  .hero {
    display: block;
    min-height: 0;
    overflow: visible;
  }
  .hero-media {
    position: static;
    width: 100%;
    aspect-ratio: 1983 / 793;
  }
  .hero::before { display: none; }
  .hero-inner {
    position: static;
    padding: 2rem 1.25rem;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
  }
  .hero-content { max-width: none; }

  .footer-inner { grid-template-columns: 1fr; gap: 1.75rem; }
}

@media (max-width: 380px) {
  .btn { padding: .38rem .55rem; font-size: .68rem; }
  .logo-icon { height: 28px; width: 28px; }
  .logo-text { font-size: .9rem; }
}
