/* Tavern Treasures - Nonprofit Website Styles */
/* No em-dashes used in any public-facing text */

:root {
  --color-bg: #1a1209;
  --color-bg-alt: #0f0a05;
  --color-gold: #c9a227;
  --color-gold-light: #e8d5a3;
  --color-cream: #f5e6c8;
  --color-muted: #a89b8c;
  --color-accent: #8b3a3a;
  --color-card: #23190f;
  --color-border: #3d2e1e;
  --font-heading: 'Georgia', 'Times New Roman', serif;
  --font-body: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --radius: 8px;
  --max-width: 1100px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-cream);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--color-gold); text-decoration: none; }
a:hover { color: var(--color-gold-light); text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

/* Header / Navigation */
header {
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--color-gold);
  letter-spacing: 1px;
}

.logo:hover { text-decoration: none; color: var(--color-gold-light); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  color: var(--color-cream);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a:hover { color: var(--color-gold); }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-cream);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
  text-align: center;
  padding: 4rem 1.5rem 3rem;
  border-bottom: 1px solid var(--color-border);
}

.hero-logo {
  max-width: 400px;
  margin: 0 auto 1.5rem;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  color: var(--color-gold);
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.15rem;
  color: var(--color-muted);
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.1s;
  text-align: center;
}

.btn-primary {
  background: var(--color-gold);
  color: var(--color-bg-alt);
}

.btn-primary:hover {
  background: var(--color-gold-light);
  text-decoration: none;
  color: var(--color-bg-alt);
}

.btn-secondary {
  background: transparent;
  color: var(--color-gold);
  border: 2px solid var(--color-gold);
}

.btn-secondary:hover {
  background: var(--color-gold);
  color: var(--color-bg-alt);
  text-decoration: none;
}

.btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* Sections */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 3rem 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-gold);
  margin-bottom: 1rem;
  text-align: center;
}

.section-subtitle {
  color: var(--color-muted);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2rem;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  color: var(--color-gold);
}

.card h3 {
  font-family: var(--font-heading);
  color: var(--color-gold-light);
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* Info boxes */
.info-box {
  background: var(--color-card);
  border-left: 4px solid var(--color-gold);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}

.info-box p { margin: 0; color: var(--color-cream); }

.info-box strong { color: var(--color-gold); }

.disclosure-box {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  padding: 1.5rem;
  border-radius: var(--radius);
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.disclosure-box p { margin-bottom: 0.75rem; }

.disclosure-box p:last-child { margin-bottom: 0; }

/* Lists */
ul.clean { list-style: none; }
ul.clean li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-muted);
}
ul.clean li:last-child { border-bottom: none; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.contact-item h3 {
  font-family: var(--font-heading);
  color: var(--color-gold);
  margin-bottom: 0.5rem;
}

.contact-item p {
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* Footer */
footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: 2.5rem 0 1.5rem;
  margin-top: 2rem;
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-grid h4 {
  font-family: var(--font-heading);
  color: var(--color-gold);
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.footer-grid ul { list-style: none; }

.footer-grid li { margin-bottom: 0.4rem; }

.footer-grid a { color: var(--color-muted); font-size: 0.9rem; }

.footer-grid a:hover { color: var(--color-gold); }

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 0;
  border-top: 1px solid var(--color-border);
  text-align: center;
  color: var(--color-muted);
  font-size: 0.85rem;
}

.footer-bottom a { color: var(--color-muted); }

.footer-bottom a:hover { color: var(--color-gold); }

/* Legal pages */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.legal-content h1 {
  font-family: var(--font-heading);
  color: var(--color-gold);
  margin-bottom: 0.5rem;
}

.legal-content h2 {
  font-family: var(--font-heading);
  color: var(--color-gold-light);
  margin: 2rem 0 0.75rem;
  font-size: 1.3rem;
}

.legal-content p,
.legal-content li {
  color: var(--color-muted);
  margin-bottom: 0.75rem;
}

.legal-content ul { margin-left: 1.5rem; }

.legal-content .last-updated {
  color: var(--color-muted);
  font-size: 0.85rem;
  margin-bottom: 2rem;
  font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .hero h1 { font-size: 1.8rem; }
  .btn-group { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 280px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Utility */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* Discord Link */
.discord-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: #5865F2;
  color: #ffffff;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
}

.discord-link:hover {
  background: #4752C4;
  text-decoration: none;
  color: #ffffff;
  transform: translateY(-2px);
}

.discord-link svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  flex-shrink: 0;
}

/* QR Code Section */
.qr-section {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  text-align: center;
  margin: 2rem auto;
  max-width: 800px;
}

.qr-section h2 {
  font-family: var(--font-heading);
  color: var(--color-gold);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.qr-section .section-subtitle {
  margin-bottom: 2rem;
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  max-width: 600px;
  margin: 0 auto;
  align-items: start;
}

.qr-item {
  text-align: center;
}

.qr-item a {
  display: inline-block;
  text-decoration: none;
  border-radius: var(--radius);
  transition: transform 0.2s, box-shadow 0.2s;
}

.qr-item a:hover {
  transform: scale(1.03);
  text-decoration: none;
}

.qr-item a:hover img {
  box-shadow: 0 0 20px rgba(201, 162, 39, 0.4);
  border-color: var(--color-gold-light);
}

.qr-item img {
  max-width: 240px;
  width: 100%;
  height: auto;
  margin: 0 auto 1rem;
  border-radius: var(--radius);
  border: 2px solid var(--color-gold);
  background: #ffffff;
  padding: 0.5rem;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.qr-item h3 {
  font-family: var(--font-heading);
  color: var(--color-gold-light);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.qr-item p {
  color: var(--color-muted);
  font-size: 0.9rem;
  max-width: 260px;
  margin: 0 auto;
}

.qr-divider {
  width: 60px;
  height: 2px;
  background: var(--color-gold);
  margin: 1.5rem auto;
  opacity: 0.4;
}

@media (max-width: 768px) {
  .qr-item img { max-width: 200px; }
  .qr-section { padding: 2rem 1rem; }
  .qr-grid { gap: 2rem; }
}

@media (max-width: 480px) {
  .qr-item img { max-width: 180px; }
  .qr-section h2 { font-size: 1.5rem; }
  .qr-grid { grid-template-columns: 1fr; }
}
