/* ============================================
   LONDON LEGACY CLUB — Global Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ---- CSS Variables ---- */
:root {
  --navy:       #0f1e38;
  --navy-mid:   #1a2f52;
  --navy-light: #243b6a;
  --gold:       #c9a84c;
  --gold-light: #e2c47a;
  --gold-pale:  #f5e9c8;
  --green:      #1e4d2b;
  --green-mid:  #2c6e3c;
  --cream:      #f5f0e6;
  --cream-mid:  #e8dfc8;
  --white:      #ffffff;
  --text-light: #e8e0d0;
  --text-muted: #a8a09a;
  --dark-bg:    #080f1e;
  --card-bg:    #152240;
  --border:     rgba(201,168,76,0.25);
  --shadow:     0 8px 32px rgba(0,0,0,0.4);
  --radius:     12px;
  --radius-lg:  20px;
  --transition: 0.28s ease;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', -apple-system, sans-serif;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--dark-bg);
  color: var(--text-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font-sans); border: none; outline: none; }

/* ---- Typography ---- */
h1, h2, h3, h4 { font-family: var(--font-serif); line-height: 1.22; }
h1 { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p { line-height: 1.72; }

/* ---- Section base ---- */
.section { padding: 90px 24px; }
.section--light { background: var(--navy); }
.container { max-width: 1160px; margin: 0 auto; }
.section-label {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 12px;
}
.section-title { color: var(--cream); margin-bottom: 20px; }
.section-subtitle { color: var(--text-muted); font-size: 1.05rem; max-width: 560px; line-height: 1.7; }
.section-header { margin-bottom: 56px; }
.section-header--center { text-align: center; }
.section-header--center .section-subtitle { margin: 0 auto; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 30px; border-radius: 50px; font-size: 0.9rem; font-weight: 600;
  letter-spacing: 0.04em; transition: all var(--transition);
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--navy); box-shadow: 0 4px 18px rgba(201,168,76,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px); color: var(--navy);
  box-shadow: 0 8px 28px rgba(201,168,76,0.5);
}
.btn-outline {
  border: 1.5px solid var(--gold); color: var(--gold);
  background: transparent;
}
.btn-outline:hover { background: rgba(201,168,76,0.1); color: var(--gold-light); transform: translateY(-2px); }
.btn-ghost { color: var(--text-light); background: rgba(255,255,255,0.07); }
.btn-ghost:hover { background: rgba(255,255,255,0.13); color: var(--white); }

/* ---- Nav ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  padding: 0 24px; height: 70px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(8,15,30,0.9); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.nav__logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-serif); font-size: 1.25rem; color: var(--cream); font-weight: 700;
}
.nav__logo-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--navy); font-weight: 700; font-family: var(--font-sans);
}
.nav__links {
  display: flex; align-items: center; gap: 6px;
}
.nav__links a {
  padding: 7px 14px; border-radius: 8px; font-size: 0.875rem;
  font-weight: 500; color: var(--text-light);
  transition: all var(--transition);
}
.nav__links a:hover { background: rgba(201,168,76,0.12); color: var(--gold); }
.nav__links a.active { color: var(--gold); }
.nav__cta { margin-left: 10px; }
.nav__hamburger {
  display: none; flex-direction: column; gap: 5px; padding: 6px;
  background: none; cursor: pointer;
}
.nav__hamburger span { display: block; width: 22px; height: 2px; background: var(--cream); border-radius: 2px; transition: all var(--transition); }
.nav__mobile {
  display: none; position: fixed; top: 70px; left: 0; right: 0; z-index: 899;
  background: rgba(8,15,30,0.98); backdrop-filter: blur(20px);
  padding: 20px 24px 28px; border-bottom: 1px solid var(--border);
  flex-direction: column; gap: 4px;
}
.nav__mobile a {
  display: block; padding: 12px 16px; border-radius: 8px;
  color: var(--text-light); font-size: 0.95rem; font-weight: 500;
  transition: all var(--transition);
}
.nav__mobile a:hover { background: rgba(201,168,76,0.1); color: var(--gold); }
.nav__mobile .btn { margin-top: 10px; justify-content: center; width: 100%; }
@media(max-width: 820px) {
  .nav__links, .nav__cta { display: none; }
  .nav__hamburger { display: flex; }
}

/* ---- Page Hero (for inner pages) ---- */
.page-hero {
  padding: 140px 24px 80px;
  background: linear-gradient(160deg, var(--navy-mid) 0%, var(--dark-bg) 100%);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.page-hero__label { color: var(--gold); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 14px; }
.page-hero__title { color: var(--cream); margin-bottom: 18px; }
.page-hero__subtitle { color: var(--text-muted); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }

/* ---- Cards ---- */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(201,168,76,0.45); }
.card__icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(201,168,76,0.2) 0%, rgba(201,168,76,0.08) 100%);
  border: 1px solid var(--border); display: flex; align-items: center;
  justify-content: center; font-size: 1.5rem; margin-bottom: 20px;
}

/* ---- Badge ---- */
.badge {
  display: inline-block; padding: 4px 12px; border-radius: 50px;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase;
}
.badge-gold { background: rgba(201,168,76,0.15); color: var(--gold); border: 1px solid var(--border); }
.badge-green { background: rgba(30,77,43,0.3); color: #5abf73; border: 1px solid rgba(90,191,115,0.25); }

/* ---- Divider ---- */
.divider {
  height: 1px; background: var(--border); margin: 40px 0;
}
.divider-gold {
  height: 2px; width: 60px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin-bottom: 28px;
}

/* ---- Footer ---- */
.footer {
  background: var(--navy);
  border-top: 1px solid var(--border);
  padding: 70px 24px 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: 1160px;
  margin: 0 auto;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border);
}
.footer__brand p { color: var(--text-muted); font-size: 0.9rem; margin-top: 14px; line-height: 1.7; max-width: 300px; }
.footer__brand .age-badge {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 18px; padding: 6px 14px; border-radius: 50px;
  background: rgba(201,168,76,0.1); border: 1px solid var(--border);
  font-size: 0.75rem; font-weight: 700; color: var(--gold); letter-spacing: 0.06em;
}
.footer__col h5 {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 18px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col ul li a {
  color: var(--text-muted); font-size: 0.875rem; font-weight: 400;
  transition: color var(--transition);
}
.footer__col ul li a:hover { color: var(--cream); }
.footer__disclaimer {
  max-width: 1160px; margin: 0 auto;
  padding: 28px 0 24px;
  border-bottom: 1px solid var(--border);
}
.footer__disclaimer-box {
  background: rgba(201,168,76,0.06); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 24px;
}
.footer__disclaimer-box p {
  font-size: 0.8rem; color: var(--text-muted); line-height: 1.7;
}
.footer__disclaimer-box a {
  color: var(--gold); font-size: 0.8rem;
}
.footer__bottom {
  max-width: 1160px; margin: 0 auto;
  padding: 20px 0 28px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
}
.footer__bottom p { color: var(--text-muted); font-size: 0.8rem; }
@media(max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media(max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
}

/* ---- Age Verification Modal ---- */
.age-modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(5,10,20,0.97); backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 1; transition: opacity 0.4s;
}
.age-modal-overlay.hidden { opacity: 0; pointer-events: none; }
.age-modal {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 44px 40px;
  max-width: 480px; width: 100%; text-align: center;
  box-shadow: 0 24px 80px rgba(0,0,0,0.7);
  animation: modalIn 0.4s ease;
}
@keyframes modalIn { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.age-modal__crest {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; margin: 0 auto 24px;
  box-shadow: 0 6px 24px rgba(201,168,76,0.4);
}
.age-modal h2 { color: var(--cream); margin-bottom: 10px; font-size: 1.8rem; }
.age-modal__subtitle { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 28px; line-height: 1.6; }
.age-modal__check {
  display: flex; align-items: flex-start; gap: 12px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: 10px; padding: 16px; margin-bottom: 24px;
  cursor: pointer; text-align: left; transition: border-color var(--transition);
}
.age-modal__check:hover { border-color: var(--gold); }
.age-modal__check input[type="checkbox"] {
  flex-shrink: 0; width: 20px; height: 20px; border-radius: 4px;
  accent-color: var(--gold); cursor: pointer; margin-top: 2px;
}
.age-modal__check label { font-size: 0.875rem; color: var(--text-light); cursor: pointer; line-height: 1.55; }
.age-modal__btn {
  width: 100%; padding: 14px; border-radius: 50px;
  font-size: 0.95rem; font-weight: 700; letter-spacing: 0.04em;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--navy);
  opacity: 0.45; pointer-events: none;
  transition: all var(--transition);
  box-shadow: 0 4px 18px rgba(201,168,76,0.3);
}
.age-modal__btn.active { opacity: 1; pointer-events: all; }
.age-modal__btn.active:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(201,168,76,0.5); }
.age-modal__disclaimer { margin-top: 16px; font-size: 0.75rem; color: var(--text-muted); line-height: 1.5; }
.age-modal__disclaimer a { font-size: 0.75rem; color: var(--gold); }

/* ---- Cookie Consent ---- */
.cookie-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 888;
  background: var(--navy-mid); border-top: 1px solid var(--border);
  padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  transform: translateY(100%); transition: transform 0.4s ease;
}
.cookie-bar.visible { transform: none; }
.cookie-bar p { font-size: 0.85rem; color: var(--text-muted); flex: 1; min-width: 260px; }
.cookie-bar p a { font-size: 0.85rem; }
.cookie-bar__actions { display: flex; gap: 10px; flex-shrink: 0; }

/* ---- Utility ---- */
.text-gold { color: var(--gold); }
.text-cream { color: var(--cream); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
@media(max-width: 880px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media(max-width: 560px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---- Prose (for legal/info pages) ---- */
.prose h2 { color: var(--cream); margin: 40px 0 14px; font-size: 1.4rem; }
.prose h3 { color: var(--gold-light); margin: 28px 0 10px; font-size: 1.1rem; }
.prose p { color: var(--text-muted); margin-bottom: 16px; font-size: 0.95rem; line-height: 1.8; }
.prose ul, .prose ol { margin: 0 0 16px 24px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; margin-bottom: 8px; }
.prose a { color: var(--gold); }
.prose strong { color: var(--cream); font-weight: 600; }
.prose .highlight-box {
  background: rgba(201,168,76,0.07); border: 1px solid var(--border);
  border-left: 4px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 20px; margin: 24px 0;
}
.prose .highlight-box p { margin: 0; }

/* ---- Scroll fade-in ---- */
.fade-in { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: none; }
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.22s; }
.fade-in-delay-3 { transition-delay: 0.34s; }
