/* ============================================================
   BOLA88 — ameliavictoria.co.uk
   Landing page stylesheet (mobile-first)
   ============================================================ */

/* --- 1. Tokens ------------------------------------------- */
:root {
  --ink: #0a0d12;
  --ink-2: #111722;
  --panel: #151c28;
  --panel-2: #1b2433;
  --line: rgba(233, 185, 73, 0.18);
  --line-soft: rgba(255, 255, 255, 0.08);
  --gold: #e9b949;
  --gold-strong: #f7cf5a;
  --gold-deep: #b98b22;
  --text: #e9eef5;
  --muted: #a3b2c4;
  --white: #ffffff;
  --radius: 14px;
  --radius-pill: 50px;
  --container: 1180px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* --- 2. Base --------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 118px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--ink);
  background-image:
    radial-gradient(900px 420px at 50% -120px, rgba(233, 185, 73, 0.14), transparent 70%),
    linear-gradient(180deg, #0a0d12 0%, #0a0d12 40%, #0c1119 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

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

a { color: var(--gold); text-decoration: none; }
a:hover, a:focus { color: var(--gold-strong); text-decoration: underline; }

h1, h2, h3 {
  line-height: 1.25;
  margin: 0 0 14px;
  color: var(--white);
  font-weight: 800;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(1.65rem, 5.2vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 3.8vw, 1.95rem); }
h3 { font-size: clamp(1.08rem, 2.6vw, 1.25rem); font-weight: 700; }
p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }

:focus-visible { outline: 3px solid var(--gold-strong); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--gold);
  color: #1a1205;
  padding: 10px 18px;
  border-radius: 0 0 10px 0;
  font-weight: 700;
}
.skip-link:focus { left: 0; text-decoration: none; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --- 3. Buttons ------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  min-height: 44px;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.btn:hover, .btn:focus { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: linear-gradient(180deg, var(--gold-strong), var(--gold-deep)); color: #1a1205; }
.btn-primary:hover, .btn-primary:focus { background: var(--gold-strong); color: #1a1205; }
.btn-outline { background: transparent; color: var(--gold); border-color: rgba(233, 185, 73, 0.55); }
.btn-outline:hover, .btn-outline:focus { background: rgba(233, 185, 73, 0.12); color: var(--gold-strong); }
.btn-sm { padding: 8px 16px; font-size: 0.86rem; min-height: 40px; }

/* --- 4. Header ------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(10, 13, 18, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; gap: 12px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; flex: 0 0 auto; }
.logo img { width: 150px; height: 43px; }
.header__spacer { flex: 1 1 auto; }

.main-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
}
.main-nav a:hover, .main-nav a:focus {
  background: rgba(233, 185, 73, 0.12);
  color: var(--gold-strong);
  text-decoration: none;
}

.header__actions { display: flex; align-items: center; gap: 8px; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
}
.nav-toggle span { position: relative; display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; }
.nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px; height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* --- 5. Section navigation + reading progress ------------ */
.section-nav {
  position: sticky;
  top: 68px;
  z-index: 50;
  background: rgba(17, 23, 34, 0.96);
  border-bottom: 1px solid var(--line-soft);
}
.section-nav__track {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 9px 0;
  scrollbar-width: none;
}
.section-nav__track::-webkit-scrollbar { display: none; }
.section-nav__label {
  flex: 0 0 auto;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-right: 6px;
}
.section-nav a {
  flex: 0 0 auto;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
}
.section-nav a:hover, .section-nav a:focus, .section-nav a.is-active {
  background: rgba(233, 185, 73, 0.14);
  border-color: var(--line);
  color: var(--gold-strong);
  text-decoration: none;
}
.progress-bar {
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-strong));
  transition: width 0.1s linear;
}

/* --- 6. Sections ----------------------------------------- */
.section { padding: 48px 0; border-top: 1px solid var(--line-soft); }
.section__head { max-width: 760px; margin-bottom: 26px; }
.section__head p { color: var(--muted); margin-bottom: 0; }
.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(233, 185, 73, 0.08);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

/* --- 7. Hero --------------------------------------------- */
.hero { padding: 36px 0 48px; border-top: 0; }
.hero__grid { display: grid; gap: 28px; align-items: center; }
.hero__text p { color: var(--muted); font-size: 1.02rem; }
.hero__text .lead { color: var(--text); font-size: 1.08rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero__figure { margin: 0; }
.hero__figure img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  object-fit: cover;
}
.hero__figure figcaption { margin-top: 10px; font-size: 0.82rem; color: var(--muted); text-align: center; }
.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.hero__facts li {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}
.hero__facts strong { display: block; color: var(--gold); font-size: 0.95rem; }

/* --- 8. Cards and panels --------------------------------- */
.card-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.card {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover { border-color: var(--line); transform: translateY(-2px); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.94rem; }
.card__meta {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}
.card__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-weight: 700; font-size: 0.9rem; }

.prose-grid { display: grid; gap: 18px; }
.panel {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 22px;
}
.panel p { color: var(--muted); }
.list-check { margin: 0; padding: 0; list-style: none; }
.list-check li { position: relative; padding-left: 26px; margin-bottom: 10px; color: var(--muted); font-size: 0.95rem; }
.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px; height: 10px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--gold-strong), var(--gold-deep));
}
.list-check li:last-child { margin-bottom: 0; }
.list-steps { margin: 0; padding-left: 20px; color: var(--muted); }
.list-steps li { margin-bottom: 10px; }
.list-steps li::marker { color: var(--gold); font-weight: 700; }

/* --- 9. Notice ------------------------------------------- */
.notice {
  background: rgba(233, 185, 73, 0.08);
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: var(--text);
}
.notice strong { color: var(--gold-strong); }

/* --- 10. Tables ------------------------------------------ */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--panel);
}
table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 0.92rem; }
caption { caption-side: top; text-align: left; padding: 14px 16px 0; color: var(--muted); font-size: 0.85rem; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line-soft); }
thead th {
  background: var(--panel-2);
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(255, 255, 255, 0.025); }
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid var(--line-soft);
  color: var(--muted);
}
.tag--demo { color: var(--gold); border-color: var(--line); background: rgba(233, 185, 73, 0.1); }

/* --- 11. FAQ accordion ----------------------------------- */
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  overflow: hidden;
}
.faq details[open] { border-color: var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: var(--white);
  font-size: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 26px; height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold);
  font-size: 1.1rem;
  line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { background: rgba(233, 185, 73, 0.06); }
.faq__answer { padding: 0 18px 18px; color: var(--muted); font-size: 0.95rem; }

/* --- 12. CTA band ---------------------------------------- */
.cta-band {
  padding: 26px 22px;
  border-radius: var(--radius);
  background: linear-gradient(100deg, #111f2b 0%, #1d2d3d 60%, #243a4d 100%);
  border: 1px solid var(--line);
  text-align: center;
}
.cta-band h2 { font-size: clamp(1.2rem, 3.4vw, 1.6rem); }
.cta-band p { color: var(--muted); max-width: 620px; margin: 0 auto 18px; }

/* --- 13. Footer ------------------------------------------ */
.site-footer { border-top: 1px solid var(--line); background: #080b10; padding: 44px 0 26px; }
.footer__grid { display: grid; gap: 28px; }
.footer__brand img { width: 160px; height: 46px; }
.footer__brand p { margin-top: 14px; color: var(--muted); font-size: 0.9rem; }
.footer__title {
  margin: 0 0 12px;
  font-weight: 800;
  color: var(--white);
}
.footer__col h2, .footer__title {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.footer__col ul { list-style: none; margin: 0; padding: 0; }
.footer__col li { margin-bottom: 9px; }
.footer__col a { color: var(--muted); font-size: 0.92rem; }
.footer__col a:hover, .footer__col a:focus { color: var(--gold-strong); }
.footer__bottom {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.84rem;
}
.footer__disclaimer { max-width: 760px; margin-top: 14px; color: #8494a6; font-size: 0.8rem; }

/* --- 14. Sub pages --------------------------------------- */
.breadcrumb { padding: 18px 0 0; font-size: 0.85rem; color: var(--muted); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--gold-deep); }
.page-body h2 { margin-top: 28px; }
.page-body h3 { margin-top: 20px; }
.page-body p, .page-body li { color: var(--muted); }
.page-body ul { padding-left: 20px; }
.page-body li { margin-bottom: 8px; }

/* --- 15. Responsive -------------------------------------- */
@media (max-width: 920px) {
  .main-nav {
    position: fixed;
    inset: 68px 0 auto;
    z-index: 55;
    background: var(--ink-2);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .main-nav.is-open { max-height: 70vh; overflow-y: auto; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 18px; }
  .main-nav a { padding: 13px 10px; border-bottom: 1px solid var(--line-soft); border-radius: 0; font-size: 1rem; }
  .nav-toggle { display: inline-flex; }
  .header__actions .btn { padding: 8px 14px; font-size: 0.85rem; }
  .logo img { width: 128px; height: 37px; }
}

@media (max-width: 430px) {
  .header__inner { gap: 8px; }
  .header__actions { gap: 6px; }
  .header__actions .btn { padding: 8px 11px; font-size: 0.8rem; }
  .logo img { width: 104px; height: 30px; }
  .hero__facts { grid-template-columns: 1fr; }
}

@media (min-width: 680px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .prose-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 921px) {
  html { scroll-padding-top: 130px; }
  .hero { padding: 54px 0 60px; }
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; gap: 44px; }
  .section { padding: 62px 0; }
  .card-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .cta-band { padding: 38px 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
