/* LuBaazi website — Emerald Gold.
   Palette mirrors LuBaazi/DesignSystem/Theme/EmeraldGold.swift (the app's single source). */

:root {
  --background: #10271f;
  --surface: #1a372b;
  --surface-raised: #254438;
  --gold: #e6b76e;
  --gold-soft: rgba(230, 183, 110, 0.14);
  --text-primary: #f8f4e8;
  --text-secondary: #a5bcb0;
  --border: #345246;
  --error: #f1a08a;
  --on-gold: #10271f;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --gutter: 16px;
  --max: 1120px;
  --prose: 720px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(230, 183, 110, 0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(37, 68, 56, 0.9), transparent 70%),
    var(--background);
  background-repeat: no-repeat;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; outline: none; }

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

a { color: var(--gold); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 max(var(--gutter), env(safe-area-inset-left)) 0 max(var(--gutter), env(safe-area-inset-right));
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 10;
  background: var(--gold);
  color: var(--on-gold);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.preview-banner {
  background: var(--gold);
  color: var(--on-gold);
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 8px var(--gutter);
}

.todo {
  background: rgba(241, 160, 138, 0.16);
  color: var(--error);
  border: 1px dashed var(--error);
  border-radius: 6px;
  padding: 0 6px;
  font-weight: 600;
  white-space: normal;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(16, 39, 31, 0.86);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(52, 82, 70, 0.6);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  line-height: 1;
}
.wordmark-spade { color: var(--gold); margin-right: 0.12em; }
.wordmark-lead { color: var(--text-primary); }
.wordmark-tail { color: var(--gold); }
.wordmark-small { font-size: 1.25rem; }

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.975rem;
  text-decoration: none;
}
.nav-list a:hover { color: var(--text-primary); background: var(--gold-soft); }
.nav-list a[aria-current="page"] { color: var(--gold); background: var(--gold-soft); }

/* Typography */

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 1.5rem + 2.8vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.eyebrow {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75em;
}

.lede {
  color: var(--text-secondary);
  font-size: clamp(1.075rem, 1rem + 0.35vw, 1.25rem);
  max-width: 38em;
}

/* Buttons */

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.5rem 0; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.button-primary { background: var(--gold); color: var(--on-gold); }
.button-primary:hover { background: #efc888; }
.button-secondary { border: 1.5px solid var(--gold); color: var(--gold); background: transparent; }
.button-secondary:hover { background: var(--gold-soft); }
.button:active { transform: scale(0.98); }
.button.is-disabled { background: var(--surface-raised); color: var(--text-primary); border: 1.5px dashed var(--gold); cursor: default; }
.button.is-disabled .todo { font-size: 0.8rem; }

/* Hero */

.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(32px, 6vw, 72px); overflow: hidden; }

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

.hero-icon {
  width: 88px;
  height: 88px;
  border-radius: 22.5%;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(248, 244, 232, 0.08);
  margin-bottom: 24px;
}

.hero-sub { display: block; color: var(--gold); }

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.facts li {
  border: 1px solid var(--border);
  background: rgba(26, 55, 43, 0.7);
  color: var(--text-secondary);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.9rem;
  font-weight: 600;
}

.hero-shots {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 0;
}

.shot { margin: 0; }
.shot img {
  border-radius: 34px;
  border: 1px solid rgba(248, 244, 232, 0.12);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), 0 0 0 6px rgba(26, 55, 43, 0.9);
}
.shot-front { width: min(300px, 72vw); position: relative; z-index: 2; }
.shot-back {
  display: none;
  width: 240px;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-46%) rotate(-6deg);
  opacity: 0.8;
}

/* Sections */

.section { padding: clamp(48px, 8vw, 96px) 0; }
.section-title { max-width: 20em; margin-bottom: 1.25em; }

.feature-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.card {
  background: linear-gradient(180deg, var(--surface-raised), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.card p { color: var(--text-secondary); margin: 0; }
.card-mark {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 1.25rem;
  margin-bottom: 14px;
}

.section-split { background: linear-gradient(180deg, transparent, rgba(26, 55, 43, 0.55), transparent); }
.split-inner { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.split-copy p { color: var(--text-secondary); max-width: 34em; }
.shot-solo { width: min(280px, 70vw); margin: 0 auto; order: 2; }

.cta-panel {
  text-align: center;
  background:
    radial-gradient(600px 240px at 50% 0%, rgba(230, 183, 110, 0.16), transparent 70%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 6vw, 64px) 24px;
}
.cta-panel p { color: var(--text-secondary); max-width: 32em; margin: 0 auto 1.5rem; }

.availability-panel {
  text-align: center;
  border: 1px solid rgba(230, 183, 110, 0.45);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(37, 68, 56, 0.9), rgba(26, 55, 43, 0.9));
  padding: clamp(32px, 6vw, 56px) 24px;
}
.availability-panel p { color: var(--text-secondary); max-width: 34em; margin-left: auto; margin-right: auto; }
.availability-icon {
  width: 72px;
  height: 72px;
  border-radius: 22.5%;
  margin: 0 auto 20px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}
.status-pill {
  display: inline-block;
  border: 1px solid var(--gold);
  color: var(--gold) !important;
  background: var(--gold-soft);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.actions-center { justify-content: center; }

/* Prose pages */

.prose {
  max-width: calc(var(--prose) + 2 * var(--gutter));
  padding-top: clamp(24px, 5vw, 56px);
  padding-bottom: clamp(48px, 8vw, 96px);
}
.prose h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); }
.prose h2 { font-size: 1.45rem; margin-top: 2em; }
.prose ul { padding-left: 1.25em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.4em; }
.prose li::marker { color: var(--gold); }
.prose p, .prose li { color: #e3ded0; }

.breadcrumb { font-size: 0.925rem; color: var(--text-secondary); margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb [aria-current] { color: var(--text-primary); }

.meta { color: var(--text-secondary); font-size: 0.95rem; }

.summary-card,
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 1.5rem 0;
}
.summary-card h2,
.contact-card h2 { margin-top: 0; font-size: 1.25rem; }
.summary-card p:last-child { margin-bottom: 0; }
.contact-card .actions { margin-bottom: 0.25rem; }

.faq { display: grid; gap: 10px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 52px;
  padding: 12px 18px;
  font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--gold);
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1;
  flex: none;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 18px 16px; margin: 0; color: var(--text-secondary); }

.back-link { margin-top: 3rem; font-weight: 600; }

.not-found { text-align: center; padding-top: clamp(64px, 12vw, 140px); }
.not-found .actions { justify-content: center; }

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 calc(32px + env(safe-area-inset-bottom));
  background: rgba(10, 28, 22, 0.6);
}
.footer-inner {
  display: grid;
  gap: 12px;
  justify-items: start;
}
.footer-note { color: var(--text-secondary); font-size: 0.875rem; margin: 0; }

/* Larger screens */

@media (min-width: 640px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: auto 1fr; align-items: center; }
  .footer-inner nav { justify-self: end; }
  .footer-note { grid-column: 1 / -1; }
}

@media (min-width: 900px) {
  :root { --gutter: 32px; }
  .hero-inner { grid-template-columns: minmax(0, 1fr) 460px; gap: 56px; }
  .hero-shots { min-height: 640px; align-items: center; justify-content: flex-end; }
  .shot-back { display: block; }
  .shot-front { width: 290px; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .split-inner { grid-template-columns: 0.8fr 1.2fr; gap: 64px; }
  .shot-solo { order: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
  .button:active { transform: none; }
}

@media (forced-colors: active) {
  .button, .card, .faq details, .summary-card, .contact-card { border: 1px solid CanvasText; }
}
