/* ============================================
   Gold Coast Games — Design System v4
   Heritage luxury × African identity × private members club
   Instrument Serif + Manrope. Multi-background. Scrim system.
   Refined background motion + colour-matched accents.
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Manrope:wght@300;400;500;600;700;800&display=swap');

/* --- Custom Properties --- */
:root {
  --bg: #121212;
  --bg-alt: #161616;
  --surface: #1c1c1c;
  --ink: #f0ebe0;
  --ink-muted: #c4bdb0;
  --ink-dim: #8a8278;
  --gold: #b8944a;
  --gold-dim: #8a7040;
  --gold-rich: #c9a050;
  --red: #8a3a30;
  --red-dim: #6a2e26;
  --green: #3a6a48;
  --green-dim: #2e543a;
  --mustard: #b8944a;
  --rule: #2a2824;
  --focus: #b8944a;
  --font-display: 'Instrument Serif', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --max-width: 1200px;
  --content-width: 72ch;
  --page-accent: var(--gold);
  --page-accent-dim: var(--gold-dim);
  --page-bg-img: url('img/1000027233.jpg');
}

/* --- Per-page accent colours & backgrounds --- */
/* Each page's accent is tuned to harmonise with its background image */
.page-home        { --page-accent: #b8944a; --page-accent-dim: #8a7040; --page-bg-img: url('img/1000027233.jpg'); }
.page-manifesto   { --page-accent: #b8944a; --page-accent-dim: #8a7040; --page-bg-img: url('img/1000027233.jpg'); }
.page-about       { --page-accent: #7a3530; --page-accent-dim: #5e2a26; --page-bg-img: url('img/1000027261.jpg'); }
.page-contact     { --page-accent: #3a6a48; --page-accent-dim: #2e543a; --page-bg-img: url('img/1000027263.png'); }
.page-doctors     { --page-accent: #c49a4a; --page-accent-dim: #9e7a3a; --page-bg-img: url('img/1000027260.png'); }
.page-events      { --page-accent: #b8944a; --page-accent-dim: #8a7040; --page-bg-img: url('img/1000027252.jpg'); }
.page-archive     { --page-accent: #8a7040; --page-accent-dim: #6a5530; --page-bg-img: url('img/1000027233.jpg'); }
.page-team        { --page-accent: #b8944a; --page-accent-dim: #8a7040; --page-bg-img: url('img/1000027261.jpg'); }
.page-corporate   { --page-accent: #c49a4a; --page-accent-dim: #9e7a3a; --page-bg-img: url('img/1000027260.png'); }
.page-faq         { --page-accent: #b8944a; --page-accent-dim: #8a7040; --page-bg-img: url('img/1000027233.jpg'); }
.page-waitlist    { --page-accent: #3a6a48; --page-accent-dim: #2e543a; --page-bg-img: url('img/1000027263.png'); }
.page-feedback    { --page-accent: #c49a4a; --page-accent-dim: #9e7a3a; --page-bg-img: url('img/1000027260.png'); }
.page-privacy     { --page-accent: #b8944a; --page-accent-dim: #8a7040; --page-bg-img: url('img/1000027233.jpg'); }

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Background image (atmospheric layer — full page, continuous) --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: var(--page-bg-img);
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  pointer-events: none;
  animation: bg-breathe 30s ease-in-out infinite alternate;
  transition: background-image 0.8s ease;
  will-change: transform;
}

@keyframes bg-breathe {
  0%   { transform: scale(1) translate(0, 0); }
  50%  { transform: scale(1.025) translate(0.4%, 0.3%); }
  100% { transform: scale(1) translate(0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
  html { scroll-behavior: auto; }
}

/* --- Everything sits above the bg layer --- */
nav, main, footer {
  position: relative;
  z-index: 1;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.08;
  margin-top: 0;
  color: var(--ink);
}

h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.4rem; font-weight: 500; }

p {
  margin: 0 0 1.25em;
  max-width: var(--content-width);
  color: var(--ink-muted);
  font-weight: 400;
  line-height: 1.7;
}

a {
  color: var(--page-accent);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--ink); }
a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(18, 18, 18, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  line-height: 0;
}

.logo {
  height: 48px;
  width: auto;
  display: block;
}

.logo-small {
  height: 42px;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--ink-muted);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

.nav-links a.active {
  border-bottom-color: var(--page-accent);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(18, 18, 18, 0.97);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 0.75rem;
    border-bottom: 1px solid var(--rule);
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 0.95rem; white-space: normal; }
}

/* --- Scrim system — premium editorial plate behind text --- */
.scrim {
  background: rgba(18, 18, 18, 0.5);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  padding: 1.5rem 2rem;
  border-radius: 2px;
  display: inline-block;
}

.scrim-wide {
  display: block;
  padding: 1.5rem 2rem;
  background: rgba(18, 18, 18, 0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border-radius: 2px;
}

.scrim p:last-child,
.scrim-wide p:last-child {
  margin-bottom: 0;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.2s;
  text-decoration: none;
  border-radius: 2px;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--page-accent);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--ink);
  color: var(--bg);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink-muted);
}
.btn-secondary:hover {
  border-color: var(--ink);
  color: var(--ink);
}

/* --- Section header pattern --- */
.section-header {
  margin-bottom: 2.5rem;
}

.section-header h1,
.section-header h2 {
  margin-bottom: 0.5rem;
}

.section-rule {
  width: 60px;
  height: 2px;
  background: var(--page-accent);
}

/* --- Gold underline draw animation --- */
.gold-underline {
  display: inline-block;
  position: relative;
}

.gold-underline::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--page-accent);
  animation: gold-draw 0.8s ease-out 0.3s forwards;
}

@keyframes gold-draw {
  to { width: 100%; }
}

/* --- Text fade-in on load --- */
.fade-in {
  opacity: 0;
  animation: text-fade-in 0.8s ease-out 0.2s forwards;
}

.fade-in-delay-1 { animation-delay: 0.4s; }
.fade-in-delay-2 { animation-delay: 0.6s; }
.fade-in-delay-3 { animation-delay: 0.8s; }

@keyframes text-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .fade-in, .gold-underline::after { animation: none; }
  .fade-in { opacity: 1; }
  .gold-underline::after { width: 100%; }
}

/* --- Hero --- */
.hero {
  min-height: 75vh;
  display: flex;
  align-items: center;
  padding: 3rem 1.5rem;
  position: relative;
}

.hero-content {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.hero-headline {
  font-size: clamp(3rem, 8vw, 5.6rem);
  line-height: 1.02;
  margin-bottom: 1.25rem;
  max-width: 16ch;
  font-weight: 400;
}

.hero-subhead {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--ink-muted);
  max-width: 60ch;
  line-height: 1.65;
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* --- How It Works --- */
.how-it-works {
  padding: 3rem 1.5rem 5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
}

.step {
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
}

.step-number {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--page-accent);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.75rem;
}

.step h3 {
  margin-bottom: 0.5rem;
}

.step p {
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- Photo placeholder --- */
.photo-section {
  padding: 0 1.5rem 5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.photo-placeholder {
  width: 100%;
  aspect-ratio: 16 / 7;
  background: var(--surface);
  border: 1px dashed var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.photo-placeholder-label {
  color: var(--ink-dim);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* --- Page layout --- */
.page-main {
  padding: 4rem 1.5rem 6rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.page-main article,
.page-main section {
  max-width: var(--content-width);
}

/* --- Manifesto --- */
.manifesto-list p {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.65rem);
  line-height: 1.5;
  margin-bottom: 1.75rem;
  padding-left: 1.5rem;
  border-left: 2px solid var(--page-accent-dim);
  color: var(--ink);
  font-weight: 400;
}

/* --- About --- */
.about p {
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.about p:first-of-type {
  font-size: 1.2rem;
  color: var(--ink);
}

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

@media (max-width: 700px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-info h2,
.contact-form h2 {
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
}

.contact-item {
  margin-bottom: 1.25rem;
}

.contact-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
  margin-bottom: 0.25rem;
}

.contact-link {
  font-size: 1.05rem;
}

.contact-social {
  display: flex;
  gap: 1rem;
}

.contact-social a {
  font-size: 0.95rem;
}

/* --- Contact form --- */
.contact-form label {
  display: block;
  margin-bottom: 1.25rem;
}

.label-text {
  display: block;
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-bottom: 0.35rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 3px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--page-accent);
}

.contact-form textarea {
  resize: vertical;
}

.form-status {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--page-accent);
}

/* --- Team Section --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  max-width: var(--content-width);
}

.team-card {
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
}

.team-card-role {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--page-accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.5rem;
}

.team-card h3 {
  margin-bottom: 0.25rem;
}

.team-card-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--surface);
  border: 1px dashed var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.team-card-photo span {
  color: var(--ink-dim);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.team-card-bio {
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* --- FAQ --- */
.faq-list {
  max-width: var(--content-width);
}

.faq-item {
  border-bottom: 1px solid var(--rule);
  padding: 1.5rem 0;
}

.faq-item:first-child {
  border-top: 1px solid var(--rule);
}

.faq-question {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
  color: var(--ink);
}

.faq-answer {
  color: var(--ink-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.faq-answer-empty {
  color: var(--ink-dim);
  font-style: italic;
  font-size: 0.95rem;
}

/* --- Events page --- */
.events-list {
  max-width: var(--max-width);
}

.event-card {
  border-top: 1px solid var(--rule);
  padding: 2rem 0;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 700px) {
  .event-card { grid-template-columns: 1fr; gap: 1rem; }
}

.event-card:last-child {
  border-bottom: 1px solid var(--rule);
}

.event-photo {
  aspect-ratio: 16 / 10;
  background: var(--surface);
  border: 1px dashed var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.event-photo span {
  color: var(--ink-dim);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.event-details h3 {
  margin-bottom: 0.5rem;
}

.event-meta {
  font-size: 0.85rem;
  color: var(--ink-dim);
  margin-bottom: 0.75rem;
  letter-spacing: 0.03em;
}

.event-details p {
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.event-highlights {
  margin: 1rem 0;
  padding: 0;
  list-style: none;
}

.event-highlights li {
  color: var(--ink-muted);
  font-size: 0.9rem;
  padding-left: 1rem;
  position: relative;
  margin-bottom: 0.35rem;
}

.event-highlights li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--page-accent-dim);
}

.event-winner {
  font-size: 0.9rem;
  color: var(--page-accent);
  margin-top: 0.5rem;
}

.event-testimonial {
  font-style: italic;
  color: var(--ink-muted);
  font-size: 0.95rem;
  border-left: 2px solid var(--page-accent-dim);
  padding-left: 1rem;
  margin-top: 0.75rem;
}

/* --- Waitlist / Join button --- */
.btn-waitlist {
  background: transparent;
  color: var(--page-accent);
  border: 1px solid var(--page-accent);
  font-size: 0.85rem;
  padding: 0.6rem 1.5rem;
}
.btn-waitlist:hover {
  background: var(--page-accent);
  color: var(--bg);
}

/* --- Waitlist form --- */
.waitlist-form {
  max-width: 500px;
}

.waitlist-form label {
  display: block;
  margin-bottom: 1.25rem;
}

.waitlist-form .checkbox-group {
  margin-bottom: 1.25rem;
}

.waitlist-form .checkbox-group label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--ink-muted);
  margin-bottom: 0.5rem;
}

.waitlist-form input[type="checkbox"] {
  width: auto;
  margin-top: 0.25rem;
  accent-color: var(--page-accent);
}

/* --- Feedback form --- */
.feedback-form {
  max-width: 500px;
}

.feedback-form label {
  display: block;
  margin-bottom: 1.25rem;
}

.feedback-form .radio-group {
  margin-bottom: 1.25rem;
}

.feedback-form .radio-group p {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-bottom: 0.5rem;
}

.feedback-form .radio-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--ink-muted);
  margin-bottom: 0.35rem;
}

.feedback-form input[type="radio"] {
  width: auto;
  accent-color: var(--page-accent);
}

/* --- Corporate / Partnerships --- */
.corporate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  max-width: var(--max-width);
}

.corporate-card {
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
}

.corporate-card h3 {
  margin-bottom: 0.75rem;
}

.corporate-card p {
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* --- Privacy Policy --- */
.privacy-policy h2 {
  font-size: 1.15rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.privacy-policy h2:first-of-type {
  margin-top: 0;
}

.privacy-policy p,
.privacy-policy li {
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.privacy-policy ul {
  padding-left: 1.25rem;
  margin-bottom: 1.25em;
}

.privacy-policy li {
  margin-bottom: 0.35rem;
}

/* --- Doctors Game Night page --- */
.doctors-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding: 4rem 1.5rem;
}

.doctors-hero-content {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.doctors-hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  margin-bottom: 1.25rem;
  max-width: 18ch;
}

.doctors-hero .hero-subhead {
  max-width: 65ch;
}

.doctors-section {
  padding: 3rem 1.5rem 5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.doctors-section p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-muted);
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--rule);
  padding: 2.5rem 1.5rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--ink-muted);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-links a:hover {
  color: var(--ink);
}

.footer-social {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
}

.social-link {
  color: var(--ink-dim);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.social-link:hover {
  color: var(--page-accent);
}

.footer-tagline {
  color: var(--ink-dim);
  font-size: 0.85rem;
  margin: 0;
}

.footer .attribution {
  font-size: 0.75rem;
  opacity: 0.6;
  margin: 0;
}

.footer .attribution a {
  color: var(--ink-dim);
}

/* --- Focus visible global --- */
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

/* --- Selection --- */
::selection {
  background: var(--page-accent);
  color: var(--bg);
}

/* --- Responsive --- */
@media (max-width: 700px) {
  .hero { min-height: 70vh; padding: 2.5rem 1.5rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .steps-grid { gap: 1.5rem; }
  .manifesto-list p { padding-left: 1rem; }
  .doctors-hero { min-height: 50vh; padding: 3rem 1.5rem; }
  .scrim, .scrim-wide { padding: 1rem 1.25rem; }
  .logo { height: 40px; }
  .logo-small { height: 36px; }
}
