/* ============================================================
   Wisconsin Makers — Light Theme
   Facebook feed iframe hero, purple/yellow accents
   ============================================================ */

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --purple: #8224e3;
  --purple-dark: #6a1bb8;
  --purple-soft: rgba(130, 36, 227, 0.08);
  --yellow: #f0d030;
  --yellow-dim: #c4b020;
  --bg-page: #f5f2ed;
  --bg-card: #ffffff;
  --bg-card-hover: #f8f8fa;
  --text-primary: #2d2d3a;
  --text-secondary: #6b6b7a;
  --text-muted: #8e8e99;
  --border: #e0d8d0;
  --radius: 8px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-strong: 0 8px 40px rgba(0, 0, 0, 0.12);
  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", "Consolas", monospace;
  --max-width: 1200px;
  --nav-height: 56px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: #f5f2ed;
  background: var(--bg-page);
  color: #2d2d3a;
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--purple);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--purple-dark);
}

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

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--purple);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-weight: 600;
  z-index: 1000;
}

.skip-link:focus {
  top: 16px;
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.navbar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.navbar-brand:hover {
  color: var(--purple);
}

.navbar-brand .logo-icon {
  width: 32px;
  height: 32px;
  background: var(--purple);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2px;
}

.nav-links a {
  display: block;
  padding: 6px 14px;
  color: var(--text-secondary);
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

/* --- Facebook Hero (homepage) --- */
.fb-hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-page);
  overflow: hidden;
}

.fb-hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(130, 36, 227, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(240, 208, 48, 0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

.fb-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 960px;
  padding: calc(var(--nav-height) + 32px) 24px 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fb-hero-inner .fb-hero-label,
.fb-hero-inner h1,
.fb-hero-inner .subtitle,
.fb-hero-inner .fb-hero-cta {
  text-align: center;
}

.fb-hero-inner .fb-hero-label {
  display: inline-block;
  color: #8224e3;
  color: var(--purple);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.fb-hero-inner h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  color: #2d2d3a;
  color: var(--text-primary);
  width: 100%;
}

.fb-hero-inner h1 .accent {
  color: #8224e3;
  color: var(--purple);
}

.fb-hero-inner .subtitle {
  color: #6b6b7a;
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 24px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.fb-hero-inner .fb-page-container {
  width: 100%;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: center;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  background: #ffffff;
  border: 1px solid var(--border);
}

.fb-hero-inner .fb-embed {
  display: block;
  width: 555px;
  max-width: 100%;
  height: 660px;
  border: none;
  background: #ffffff;
}

.fb-hero-cta {
  margin-top: 28px;
}

/* --- Hero (non-homepage) --- */
.hero {
  position: relative;
  padding: calc(var(--nav-height) + 60px) 24px 60px;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(130, 36, 227, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(240, 208, 48, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero h1 .accent {
  color: var(--purple);
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-primary {
  background: var(--purple);
  color: #fff;
}

.btn-primary:hover {
  background: var(--purple-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(130, 36, 227, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--purple);
  color: var(--purple);
}

.btn-yellow {
  background: var(--yellow);
  color: var(--text-primary);
}

.btn-yellow:hover {
  background: var(--yellow-dim);
  color: var(--text-primary);
  transform: translateY(-2px);
}

/* --- Container --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* --- Section --- */
.section {
  padding: 64px 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.section-subtitle {
  color: var(--text-secondary);
  margin-bottom: 40px;
  font-size: 1.05rem;
}

/* --- Cards Grid --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.2s;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--purple);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--purple-soft);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

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

/* --- Board Members --- */
.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.board-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  transition: all 0.2s;
}

.board-card:hover {
  border-color: var(--purple);
  box-shadow: var(--shadow);
}

.board-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 3px solid var(--purple);
}

.board-card h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.board-card .role {
  color: var(--purple);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.board-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-align: left;
}

/* --- FAQ --- */
.faq-list {
  max-width: 800px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-primary);
  padding: 20px 0;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-sans);
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--purple);
}

.faq-question::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--purple);
  transition: transform 0.3s;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding-bottom: 20px;
}

.faq-answer p,
.faq-answer ul {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-answer ul {
  padding-left: 20px;
  margin-top: 8px;
}

.faq-answer li {
  margin-bottom: 6px;
}

/* --- Contact Form --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
}

.contact-info-item .icon {
  width: 44px;
  height: 44px;
  background: var(--purple-soft);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  color: var(--purple);
}

.contact-info-item h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.contact-info-item p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--purple);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

/* --- Pricing Table --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
  justify-content: center;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  transition: all 0.2s;
}

.pricing-card:hover {
  border-color: var(--purple);
  box-shadow: var(--shadow);
}

.pricing-card.featured {
  border-color: var(--purple);
  position: relative;
}

.pricing-card.featured::before {
  content: "Popular";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--purple);
  color: #fff;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.pricing-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.pricing-card .price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--purple);
  margin-bottom: 4px;
}

.pricing-card .price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-secondary);
}

.pricing-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* --- Calendar --- */
.calendar-placeholder {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
}

.calendar-placeholder .icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.calendar-placeholder h3 {
  margin-bottom: 8px;
  color: var(--text-primary);
}

.calendar-placeholder p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* --- Equipment --- */
.equipment-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.equipment-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.equipment-item .dot {
  width: 8px;
  height: 8px;
  background: var(--purple);
  border-radius: 50%;
  flex-shrink: 0;
}

.equipment-item span {
  font-size: 0.95rem;
  color: var(--text-primary);
}

/* --- Page Header --- */
.page-header {
  padding: calc(var(--nav-height) + 32px) 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}

.page-header h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.page-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-card);
  padding: 40px 24px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand .logo-icon {
  width: 32px;
  height: 32px;
  background: var(--purple);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 800;
  color: #fff;
}

.footer-brand span {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
}

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

.footer-copy {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 24px;
    gap: 4px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-toggle {
    display: block;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 40px 0;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .board-grid {
    grid-template-columns: 1fr;
  }

  .fb-hero-inner {
    padding: calc(var(--nav-height) + 16px) 16px 40px;
  }

  .fb-hero-inner .fb-page-container {
    border-radius: 6px;
  }

  .fb-hero-inner .fb-embed {
    height: 540px;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .fb-hero-inner .fb-embed {
    height: 480px;
  }

  .fb-hero-inner .subtitle {
    font-size: 0.95rem;
  }
}

/* --- Membership Join Section --- */
.join-section {
  max-width: 800px;
  margin: 0 auto 64px;
}

.join-section .section-title {
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.join-section .cards-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.membership-cta {
  margin-bottom: 64px;
}

.membership-cta p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* --- About Page --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

.about-text .section-title,
.about-info .section-title {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.about-text p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 16px;
}

.info-card p {
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.info-card strong {
  color: var(--text-primary);
}

/* --- Calendar Page --- */
.calendar-placeholder {
  margin-bottom: 48px;
}

.recurring-events {
  max-width: 800px;
  margin: 0 auto 64px;
}

.recurring-events .section-title {
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.recurring-events .cards-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* --- Contact Page --- */
.contact-grid {
  margin-bottom: 64px;
}

.contact-form h3 {
  margin-bottom: 24px;
}

.btn-full {
  width: 100%;
}

.form-note {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 16px;
}

/* --- Equipment Page --- */
.equipment-section {
  margin-bottom: 48px;
}

.equipment-cards {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin-bottom: 32px;
}

.equipment-cards .card h3 {
  color: var(--purple);
  margin-bottom: 16px;
}

.equipment-note {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.equipment-note p {
  color: var(--text-secondary);
}

.equipment-note strong {
  color: var(--text-primary);
}

/* --- FAQ Page --- */
.faq-list {
  margin: 0 auto;
}

/* --- Utility --- */
.text-center {
  text-align: center;
}

.text-purple {
  color: var(--purple);
}

.text-yellow {
  color: var(--yellow-dim);
}

.mt-16 {
  margin-top: 16px;
}

.mt-24 {
  margin-top: 24px;
}

.mt-40 {
  margin-top: 40px;
}

.mb-24 {
  margin-bottom: 24px;
}
