/* Heroes Around Me - Website Styles */
:root {
  --color-bg: #faf9f7;
  --color-surface: #fff;
  --color-text: #1a1a1a;
  --color-text-muted: #5a5a5a;
  --color-accent: #2d5a4a;
  --color-accent-hover: #3d7a5a;
  --color-border: #e8e6e3;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;
  --max-width: 720px;
  --header-height: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 247, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--color-text);
  text-decoration: none;
}
.logo:hover { color: var(--color-accent); }
.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}
.nav-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a[href].active { color: var(--color-accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
}

/* Main */
main { padding-bottom: 4rem; }

/* Hero */
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
  text-align: center;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1rem;
  color: var(--color-text);
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 540px;
  margin: 0 auto 1.5rem;
}
.about-preview {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
  text-align: center;
  background: var(--color-surface);
  border-radius: 12px;
  margin-inline: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.about-preview h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin: 0 0 0.5rem;
}
.about-preview h6 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--color-text-muted);
  margin: 0 0 1.5rem;
  line-height: 1.65;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  border: none;
  cursor: pointer;
}
.btn-primary {
  background: var(--color-accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-accent-hover);
  color: #fff;
}
.btn-secondary {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}
.btn-secondary:hover {
  background: var(--color-accent);
  color: #fff;
}

/* Page content */
.page-header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  text-align: center;
}
.page-header h1 {
  font-family: var(--font-display);
  font-size: 2.25rem;
  margin: 0 0 0.5rem;
}
.page-header .subtitle {
  font-size: 1rem;
  color: var(--color-text-muted);
}
.content-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
}
.content-section h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 2rem 0 0.75rem;
}
.content-section h3 {
  font-size: 1.15rem;
  margin: 1.5rem 0 0.5rem;
}
.content-section p {
  color: var(--color-text-muted);
  margin: 0 0 1rem;
  line-height: 1.7;
}
.content-section h6 {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--color-text-muted);
  margin: 0 0 1rem;
  line-height: 1.65;
}

/* Join roles grid */
.roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.role-card {
  background: var(--color-surface);
  padding: 1.25rem;
  border-radius: 10px;
  border: 1px solid var(--color-border);
}
.role-card h3 { margin-top: 0; }

/* Events tabs */
.events-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 1rem;
}
.events-tab {
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.events-panel.is-hidden,
.events-panel[hidden] {
  display: none !important;
}
.events-tab:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}
.events-tab.is-active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}
.events-empty {
  color: var(--color-text-muted);
  text-align: center;
  padding: 2rem 1rem;
  margin: 2rem 0;
}

/* Events list */
.events-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
}
.event-card {
  background: var(--color-surface);
  padding: 1.25rem;
  border-radius: 10px;
  border: 1px solid var(--color-border);
}
.event-card h3 { margin: 0 0 0.35rem; }
.event-card p { margin: 0; }
.subscribe-section {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--color-surface);
  border-radius: 12px;
  margin: 2rem 1.5rem;
}
.subscribe-section h2 { margin-top: 0; }

/* Team section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.team-card {
  background: var(--color-surface);
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
  border: 1px solid var(--color-border);
}
.team-card img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 1rem;
}
.team-card h3 { margin: 0 0 0.25rem; }
.team-card .role { color: var(--color-accent); font-weight: 600; font-size: 0.9rem; }

/* Footer */
.site-footer {
  text-align: center;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* Mobile */
@media (max-width: 640px) {
  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-surface);
    flex-direction: column;
    padding: 1rem;
    gap: 0;
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.2s, opacity 0.2s, visibility 0.2s;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav-links li { padding: 0.75rem 0; }
  .nav-toggle { display: flex; }
}
