
/* ============================================
   COMMON.CSS — Single source of truth
   For dev sites at:
     dev.horsforthlocallottery.co.uk
     dev.horsforthtownteam.co.uk
     dev.admin.horsforthtownteam.co.uk
   Mobile-first. Add new sections as components are built.
   Last cleaned: 2026-04-27
   ============================================ */

/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
  --hll-green: #1B3A2D;
  --hll-gold: #D4A843;
  --color-text: #1a1a1a;
  --color-text-inverse: #ffffff;
  --color-bg: #ffffff;
  --color-bg-muted: #f5f0e8;
  --font-heading: 'Ubuntu', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;
  --tap-target: 44px;
  --hll-radius: 4px;
  --hll-transition-panel: transform 280ms ease;
  --hll-transition-hover: 150ms ease;
}

/* ============================================
   RESET / BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; overflow-x: hidden; }
body { margin: 0; padding: 0; min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); margin: 0 0 var(--space-md); }
a { color: inherit; }
img { max-width: 100%; display: block; }

/* ============================================
   PAGE MAIN (between header and footer/map)
   ============================================ */
main,
.page-main { flex: 1 0 auto; }

.shared-header,
.shared-map,
.shared-footer { flex-shrink: 0; }

/* ============================================
   SHARED HEADER
   ============================================ */
.shared-header {
    background-color: var(--hll-green);
    position: sticky;
    top: 0;
    z-index: 900;
    width: 100%;
}

.shared-header__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
}

.shared-header__hamburger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--tap-target);
    height: var(--tap-target);
    background: transparent;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
    margin: 0;
    border-radius: var(--hll-radius);
    transition: background-color var(--hll-transition-hover);
}

.shared-header__hamburger:hover {
    background-color: rgba(255,255,255,0.1);
}

.shared-header__brand-link {
    color: inherit;
    text-decoration: none;
    display: inline-block;
    flex-grow: 1;
}

.shared-header__brand {
    color: var(--color-text-inverse);
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.01em;
    white-space: nowrap;
    flex: 1 1 auto;
}

.shared-header__brand strong {
    font-weight: 700;
}

.shared-header__login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--tap-target);
    height: var(--tap-target);
    padding: 0;
    margin: 0;
    border: none;
    color: var(--color-text-inverse);
    text-decoration: none;
    flex-shrink: 0;
    border-radius: var(--hll-radius);
    transition: background-color var(--hll-transition-hover);
}

.shared-header__login:hover {
    background-color: rgba(255,255,255,0.1);
}

/* ============================================
   SHARED DRAWER (hamburger menu panel)
   ============================================ */
.hll-nav__backdrop {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--hll-transition-hover);
}

.hll-nav__backdrop--open {
    opacity: 1;
    pointer-events: auto;
}

.hll-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    max-width: 80vw;
    height: 100vh;
    background: var(--hll-green);
    color: var(--color-text-inverse);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.45);
    transform: translateX(-100%);
    transition: var(--hll-transition-panel);
    padding-top: 60px;
    overflow-y: auto;
}


.shared-drawer__panel,
.hll-nav__panel {
    background: var(--hll-green);
}
.hll-nav--open {
    transform: translateX(0) !important;
}

.hll-nav__header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.hll-nav__close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 6px;
    border-radius: var(--hll-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.hll-nav__close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text-inverse);
}

.hll-nav__section {
    padding: var(--space-sm) var(--space-md);
}

.hll-nav__section ul,
.hll-nav__section ol {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.hll-nav__item {
    margin: 0;
}

.hll-nav__section-title {
    font-family: var(--font-heading);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: var(--space-md) 0 var(--space-md);
    color: rgba(255,255,255,0.6);
}

.hll-nav__section + .hll-nav__section {
    margin-top: var(--space-md);
}

.hll-nav__link {
    display: block;
    padding: 6px 0 6px var(--space-sm);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0.01em;
    color: var(--color-text-inverse);
    text-decoration: none;
    transition: color var(--hll-transition-hover);
}

.hll-nav__link:hover {
    color: var(--color-text-inverse);
    text-decoration: underline;
}

/* ============================================
   SHARED FOOTER
   ============================================ */
.shared-footer {
    background-color: var(--hll-green);
    color: var(--color-text-inverse);
    width: 100%;
}

.shared-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-lg) var(--space-md);
    text-align: center;
}

.shared-footer__copyright {
    font-family: var(--font-body);
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    margin: 0 0 6px;
}

.shared-footer__copyright-link {
    color: var(--color-text-inverse);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: rgba(255,255,255,0.5);
    transition: text-decoration-color var(--hll-transition-hover);
}

.shared-footer__copyright-link:hover {
    text-decoration-color: rgba(255,255,255,1);
}

.shared-footer__credit {
    font-family: var(--font-body);
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    margin: 0;
}

.shared-footer__credit-link {
    color: inherit;
    text-decoration: none;
}

.shared-footer__credit-link:hover {
    text-decoration: underline;
}

/* ============================================
   SHARED MAP
   ============================================ */
.shared-map {
    width: 100vw;
    height: 90vh;
    margin-left: calc(50% - 50vw);
    position: relative;
    display: block;
}

.shared-map .leaflet-container {
    width: 100%;
    height: 100%;
}

.shared-map + footer,
.shared-map + .shared-footer {
    margin-top: 0;
}

/* ============================================
   LEGAL PAGE LAYOUT
   ============================================ */

.legal-page__body ul,
.legal-page__body ol,
.prose ul,
.prose ol {
  padding-left: var(--space-lg);
  margin: var(--space-md) 0;
}

.legal-page__body li,
.prose li {
  margin-bottom: var(--space-xs);
  line-height: 1.5;
}

.legal-page__body ul li,
.prose ul li {
  list-style: disc;
}

.legal-page__body ol li,
.prose ol li {
  list-style: decimal;
}

/* ============================================
   META TAGS (no visual rules — kept for grouping)
   ============================================ */

/* ============================================
   RESPONSIVE BREAKPOINTS
   Mobile-first. Add overrides only when needed.
   ============================================ */
@media (min-width: 600px) {
    .shared-header__brand { font-size: 24px; }
}

@media (min-width: 900px) {
    .shared-header__inner { gap: var(--space-md); }
    .shared-header__brand { font-size: 28px; }
}

/* ============================================
   SHARED HERO (parallax video)
   ============================================ */
.shared-hero {
  position: relative;
  width: 100vw;
  min-height: calc(100vh - 60px);
  overflow: hidden;
  display: flex;
  align-items: center;
}
.shared-hero__video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -2;
}
.shared-hero__scrim {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%);
  z-index: 1;
  pointer-events: none;
}
.shared-hero__frame {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
}
.shared-hero__content {
  max-width: 560px;
  color: #fff;
}
.shared-hero__headline {
  font-family: var(--font-heading);
  font-size: 44px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-md);
  color: #fff;
}
.shared-hero__tagline {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.35;
  margin: 0 0 var(--space-lg);
  color: rgba(255,255,255,0.95);
}
/* .shared-hero__cta — DEPRECATED. Use .btn .btn--gold .btn--lg instead. */
@media (min-width: 900px) {
  .shared-hero__headline { font-size: 64px; }
  .shared-hero__tagline { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .shared-hero__video { display: none; }
  .shared-hero { background: var(--hll-green); }
}
/* ============================================
   BUTTONS
   Standard button system. Default form factor for
   over-dark backgrounds (hero, login, etc).
   New buttons: use .btn .btn--gold for filled CTA,
   .btn .btn--outline-light for outlined secondary.
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px 28px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  border-radius: 3px;
  border: 1.5px solid transparent;
  cursor: pointer;
  min-height: 48px;
  transition: filter 0.15s ease, background 0.15s ease, color 0.15s ease;
  /* sentence case by default — no uppercase, no letter-spacing */
}
.btn:hover { filter: brightness(1.06); }
.btn:active { filter: brightness(0.94); }
.btn:focus-visible { outline: 2px solid var(--hll-gold); outline-offset: 2px; }

/* Filled gold variant — primary CTA on dark backgrounds */
.btn--gold {
  background: var(--hll-gold);
  color: var(--hll-green);
  border-color: var(--hll-gold);
}

/* Outlined white variant — secondary CTA on dark backgrounds */
.btn--outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.85);
}
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.08); }

/* Larger size for hero CTAs */
.btn--lg {
  padding: 16px 32px;
  font-size: 17px;
  min-height: 52px;
}

@media (min-width: 900px) {
  .btn--lg { padding: 18px 36px; font-size: 18px; min-height: 56px; }
}


/* ============================================
   STATS BAR (lottery only)
   ============================================ */
.stats-bar {
  background: var(--color-bg-muted);
  padding: var(--space-xxl) var(--space-md) var(--space-xxl);
  position: relative;
  z-index: 5;
}
.stats-bar__inner {
  max-width: 1200px;
  margin: -56px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
  position: relative;
  z-index: 6;
}
.stats-bar__card {
  background: #fff;
  border: 3.5px solid var(--hll-green);
  border-radius: 8px;
  padding: var(--space-sm) var(--space-sm);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  min-height: 96px;
}
.stats-bar__value {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 32px;
  line-height: 1;
  color: var(--hll-green);
  margin-bottom: var(--space-sm);
}
.stats-bar__label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hll-green);
  line-height: 1.3;
}
@media (max-width: 599px) {
  .stats-bar__inner { grid-template-columns: repeat(3, 1fr); }
  .stats-bar__card:nth-child(4) { display: none; }
}
@media (min-width: 600px) {
  .stats-bar__value { font-size: 44px; }
  .stats-bar__card { padding: var(--space-sm) var(--space-md); min-height: 110px; }
}
@media (min-width: 900px) {
  .stats-bar__inner { gap: var(--space-md); }
  .stats-bar__value { font-size: 72px; }
  .stats-bar__label { font-size: 12px; }
  .stats-bar__card { padding: var(--space-md) var(--space-lg); min-height: 140px; }
}


/* ============================================
   TEXT SECTION (heading + paragraph, cream bg)
   ============================================ */
.text-section {
  background: var(--color-bg-muted);
  padding: var(--space-xl) var(--space-md);
}
.text-section__inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.text-section__heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.1;
  color: var(--hll-green);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: var(--space-xl) 0 var(--space-lg);
}
.text-section__body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-text);
  margin: 0;
}
@media (min-width: 600px) {
  .text-section { padding: var(--space-xxl) var(--space-md); }
}
@media (min-width: 900px) {
  .text-section { padding: 80px var(--space-md); }
  .text-section__heading { font-size: 36px; margin-bottom: var(--space-xl); }
  .text-section__body { font-size: 19px; line-height: 1.65; }
}


/* ============================================
   STEPS SECTION (numbered pills, cream bg)
   ============================================ */
.steps-section {
  background: var(--color-bg-muted);
  padding: 0 var(--space-md) 64px;
}
.steps-section__inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.steps-section__heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.1;
  color: var(--hll-green);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: var(--space-xxl) 0 var(--space-xl);
}
.steps-section__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  justify-items: center;
}
@media (min-width: 700px) {
  .steps-section__list { gap: var(--space-lg); }
}
.steps-section__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  max-width: 100%;
}
.steps-section__pill {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--hll-gold);
  color: var(--hll-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 32px;
  line-height: 1;
}
@media (min-width: 600px) {
  .steps-section__pill { width: 100px; height: 100px; font-size: 48px; }
}
.steps-section__label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--hll-green);
  line-height: 1.3;
}
@media (min-width: 600px) { .steps-section__label { font-size: 15px; } }
@media (min-width: 900px) {
  .steps-section { padding: 0 var(--space-md) 107px; }
  .steps-section__heading { font-size: 36px; margin-bottom: var(--space-xxl); }
  .steps-section__pill { width: 140px; height: 140px; font-size: 64px; }
  .steps-section__label { font-size: 18px; }
}
/* ============================================
   ADMIN LANDING (full video background, centered content)
   ============================================ */
.admin-landing {
  position: relative;
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.admin-landing__video {
  position: fixed;
  top: 60px;
  left: 0;
  width: 100vw;
  height: calc(100vh - 60px);
  object-fit: cover;
  z-index: -1;
}
.admin-landing__content {
  position: relative;
  z-index: 1;
  color: #fff;
  text-align: center;
}
@media (prefers-reduced-motion: reduce) {
  .admin-landing__video { display: none; }
  .admin-landing { background: var(--hll-green); }
}


/* ============================================
   ADMIN LOGIN BACKGROUND (full video, centered card)
   ============================================ */
.admin-login {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.admin-login__video {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  object-fit: cover;
  z-index: -2;
}
.admin-login__scrim {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
  z-index: -1;
}
.admin-login__card {
  position: relative;
  z-index: 1;
  background: #fff;
  padding: var(--space-xl);
  border-radius: 8px;
  min-width: 320px;
  max-width: 400px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}
@media (prefers-reduced-motion: reduce) {
  .admin-login__video { display: none; }
  .admin-login { background: var(--hll-green); }
}
