/* ============================================
   MEN'S FORGE — Potomac Valley Church
   Premium Industrial Design System
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow:wght@300;400;500;600;700&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&display=swap');

/* --- Root Variables --- */
:root {
  --bg-deep: #151515;
  --bg-primary: #1c1c1c;
  --bg-elevated: #242424;
  --bg-card: #2a2a2a;
  --bg-card-hover: #313131;
  --bg-input: #1e1e1e;

  --text-primary: #f2efe9;
  --text-secondary: #c4bfb8;
  --text-muted: #8a847e;

  --accent: #c47d2b;
  --accent-glow: #d99a45;
  --accent-dim: #8b5a1e;
  --accent-subtle: rgba(196, 125, 43, 0.12);

  --border: #363636;
  --border-subtle: #2a2a2a;

  --success: #4a9e6b;
  --danger: #c0503e;

  --font-display: 'Bebas Neue', 'Impact', sans-serif;
  --font-heading: 'Barlow', 'Helvetica Neue', sans-serif;
  --font-body: 'Cormorant Garamond', 'Georgia', serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --space-2xl: 8rem;

  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 10px;

  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 600ms ease;

  --max-width: 1200px;
  --max-width-narrow: 800px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 1.25rem;
  line-height: 1.75;
  color: var(--text-primary);
  background-color: var(--bg-deep);
  overflow-x: hidden;
}

/* Noise texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--accent-glow); }

::selection {
  background: var(--accent);
  color: var(--bg-deep);
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
}

.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.display-xl {
  font-size: clamp(3.5rem, 8vw, 7rem);
  line-height: 0.95;
}

.display-lg {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1;
}

.display-md {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
}

h1 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p {
  color: var(--text-secondary);
  max-width: 65ch;
}

.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }

/* --- Diamond Separator --- */
.diamond-sep {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: var(--space-lg) 0;
}

.diamond-sep::before,
.diamond-sep::after {
  content: '';
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.diamond-sep .diamond {
  width: 10px;
  height: 10px;
  background: var(--accent);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

section {
  padding: var(--space-xl) 0;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: all var(--transition-base);
  background: transparent;
}

.nav.scrolled {
  background: rgba(21, 21, 21, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo img {
  height: 52px;
  width: auto;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition-base);
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading) !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase;
  padding: 0.6rem 1.25rem;
  border: 1px solid var(--accent);
  color: var(--accent) !important;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast) !important;
}

.nav-cta:hover {
  background: var(--accent) !important;
  color: var(--bg-deep) !important;
}

.nav-cta svg {
  width: 16px;
  height: 16px;
}

/* Mobile menu button */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: all var(--transition-fast);
}

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: var(--space-xl) var(--space-md);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(196, 125, 43, 0.08), transparent),
    radial-gradient(ellipse 80% 60% at 50% 120%, rgba(196, 125, 43, 0.05), transparent);
  pointer-events: none;
}

/* Geometric accent lines */
.hero::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(600px, 80vw);
  height: min(600px, 80vw);
  border: 1px solid rgba(196, 125, 43, 0.06);
  transform: translate(-50%, -50%) rotate(45deg);
  pointer-events: none;
}

.hero-logo {
  width: min(450px, 80vw);
  margin-bottom: var(--space-lg);
  opacity: 0;
  animation: fadeUp 0.8s ease 0.2s forwards;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 400;
  font-style: italic;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.5s forwards;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.8s forwards;
}

.hero-scroll span {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-scroll .arrow {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease infinite;
}

/* --- Mission Section --- */
.mission {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.mission-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.mission-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: var(--space-md);
}

.mission-text {
  font-size: 1.3rem;
  line-height: 1.85;
  color: var(--text-secondary);
}

.mission-text p + p {
  margin-top: var(--space-sm);
}

.mission-values {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding-top: var(--space-md);
}

.mission-values li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.mission-values .icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  color: var(--accent);
  transform: rotate(45deg);
  margin-top: 0.25rem;
}

.mission-values .icon svg {
  transform: rotate(-45deg);
  width: 16px;
  height: 16px;
}

.mission-values h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

.mission-values p {
  font-size: 1.15rem;
  line-height: 1.75;
}

/* --- Next Meeting CTA --- */
.next-meeting {
  background: var(--bg-deep);
  position: relative;
}

.next-meeting-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-lg);
  align-items: center;
  position: relative;
  overflow: hidden;
}

.next-meeting-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent), var(--accent-dim));
}

.next-meeting-date {
  text-align: center;
  min-width: 90px;
}

.next-meeting-date .month {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}

.next-meeting-date .day {
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 1;
  color: var(--text-primary);
}

.next-meeting-date .year {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.next-meeting-info h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.next-meeting-info .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 0.75rem;
}

.next-meeting-info .meta span {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.next-meeting-info .meta svg {
  width: 14px;
  height: 14px;
  color: var(--accent-dim);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-deep);
}

.btn-primary:hover {
  background: var(--accent-glow);
  color: var(--bg-deep);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(196, 125, 43, 0.3);
}

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

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

.btn-ghost {
  background: transparent;
  color: var(--accent);
  padding: 0.5rem 0;
  letter-spacing: 0.06em;
}

.btn-ghost:hover {
  color: var(--accent-glow);
}

.btn-ghost .arrow {
  transition: transform var(--transition-fast);
}

.btn-ghost:hover .arrow {
  transform: translateX(4px);
}

.btn-sm {
  font-size: 0.75rem;
  padding: 0.6rem 1.25rem;
}

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

.btn-danger:hover {
  background: #d45a48;
}

/* --- WhatsApp Banner --- */
.whatsapp-banner {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--space-lg) 0;
}

.whatsapp-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.whatsapp-inner .content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.whatsapp-inner .wa-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.whatsapp-inner .wa-icon svg {
  width: 24px;
  height: 24px;
  color: white;
}

.whatsapp-inner h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
}

.whatsapp-inner p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.btn-whatsapp {
  background: #25D366;
  color: white;
  white-space: nowrap;
}

.btn-whatsapp:hover {
  background: #20bd5a;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

/* --- Donate / Venmo Banner --- */
.donate-banner {
  background: var(--bg-deep);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--space-lg) 0;
}

.donate-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.donate-inner .content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.donate-inner .venmo-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #3d95ce;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.donate-inner .venmo-icon svg {
  width: 20px;
  height: 20px;
  color: white;
}

.donate-inner h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
}

.donate-inner p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.btn-venmo {
  background: #3d95ce;
  color: white;
  white-space: nowrap;
}

.btn-venmo:hover {
  background: #4da5de;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(61, 149, 206, 0.3);
}

@media (max-width: 768px) {
  .donate-inner {
    flex-direction: column;
    text-align: center;
    gap: var(--space-md);
  }

  .donate-inner .content {
    flex-direction: column;
    align-items: center;
  }
}

/* --- Footer --- */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-lg) 0 var(--space-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.footer-brand img {
  height: 60px;
  margin-bottom: var(--space-sm);
  opacity: 0.8;
}

.footer-brand p {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 30ch;
}

.footer h4 {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

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

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- Page Header --- */
.page-header {
  padding: calc(80px + var(--space-xl)) 0 var(--space-lg);
  text-align: center;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 80% at 50% 100%, rgba(196, 125, 43, 0.04), transparent);
  pointer-events: none;
}

.page-header .label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-xs);
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
}

.page-header p {
  margin: var(--space-sm) auto 0;
  text-align: center;
  font-size: 1.25rem;
}

/* --- Schedule / Timeline --- */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 11px;
  width: 1px;
  height: 100%;
  background: var(--border);
}

.timeline-year {
  position: relative;
  margin-bottom: var(--space-md);
}

.timeline-year-label {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  position: relative;
}

.timeline-year-label::before {
  content: '';
  position: absolute;
  left: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 23px;
  height: 1px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--space-md);
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition-slow);
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -34px;
  top: 1.5rem;
  width: 9px;
  height: 9px;
  background: var(--border);
  border-radius: 50%;
  border: 2px solid var(--bg-deep);
  transition: background var(--transition-fast);
}

.timeline-item.upcoming::before {
  background: var(--accent);
  box-shadow: 0 0 12px rgba(196, 125, 43, 0.4);
}

.timeline-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  transition: all var(--transition-fast);
}

.timeline-card:hover {
  border-color: var(--border);
  background: var(--bg-card);
}

.timeline-item.upcoming .timeline-card {
  border-color: var(--accent-dim);
}

.timeline-card .date {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.timeline-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.timeline-card .desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.timeline-card .card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.timeline-card .card-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.timeline-card .card-meta svg {
  width: 13px;
  height: 13px;
}

.timeline-card .badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 2px;
  margin-bottom: 0.75rem;
}

.badge-upcoming {
  background: var(--accent-subtle);
  color: var(--accent);
  border: 1px solid rgba(196, 125, 43, 0.25);
}

.badge-completed {
  background: rgba(74, 158, 107, 0.1);
  color: var(--success);
  border: 1px solid rgba(74, 158, 107, 0.2);
}

/* --- Notes Page --- */
.notes-grid {
  display: grid;
  gap: var(--space-md);
}

.note-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.note-card:hover {
  border-color: var(--border);
}

.note-card-header {
  padding: var(--space-md);
  cursor: pointer;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-md);
  align-items: center;
  user-select: none;
}

.note-card-date {
  text-align: center;
  min-width: 60px;
  padding: 0.5rem;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
}

.note-card-date .month {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.note-card-date .day {
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1.1;
}

.note-card-info h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  transition: color var(--transition-fast);
}

.note-card:hover .note-card-info h3 {
  color: var(--accent-glow);
}

.note-card-info .speaker {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.note-card-toggle {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.note-card-toggle svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-base);
}

.note-card.open .note-card-toggle {
  border-color: var(--accent);
  color: var(--accent);
}

.note-card.open .note-card-toggle svg {
  transform: rotate(180deg);
}

.note-card-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.note-card.open .note-card-body {
  max-height: 5000px;
}

.note-card-content {
  padding: 0 var(--space-md) var(--space-md);
  border-top: 1px solid var(--border-subtle);
}

/* Notes markdown content styling */
.notes-content {
  padding: var(--space-md) 0;
}

.notes-content h2 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--accent);
  margin: var(--space-md) 0 var(--space-xs);
  letter-spacing: 0.03em;
}

.notes-content h2:first-child {
  margin-top: 0;
}

.notes-content h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  margin: var(--space-sm) 0 var(--space-xs);
}

.notes-content p {
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.notes-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.notes-content em {
  color: var(--text-secondary);
}

.notes-content ul, .notes-content ol {
  margin: 0.5rem 0 1rem 1.5rem;
  color: var(--text-secondary);
}

.notes-content li {
  margin-bottom: 0.35rem;
  font-size: 1.2rem;
}

.notes-content blockquote {
  border-left: 3px solid var(--accent);
  padding-left: var(--space-sm);
  margin: var(--space-sm) 0;
  color: var(--text-secondary);
  font-style: italic;
}

/* Discussion questions */
.discussion-questions {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-subtle);
}

.discussion-questions h3 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.discussion-questions ol {
  list-style: none;
  counter-reset: questions;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.discussion-questions li {
  counter-increment: questions;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.discussion-questions li::before {
  content: counter(questions);
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--accent-dim);
  min-width: 1.5rem;
  line-height: 1.5;
}

/* --- Admin Styles --- */
.admin-container {
  max-width: 900px;
  margin: 0 auto;
  padding: calc(80px + var(--space-lg)) var(--space-md) var(--space-lg);
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border-subtle);
}

.admin-header h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Login form */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

.login-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.login-box img {
  height: 50px;
  margin: 0 auto var(--space-md);
}

.login-box h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-xs);
}

.login-box p {
  text-align: center;
  margin: 0 auto var(--space-md);
  font-size: 0.95rem;
}

/* Forms */
.form-group {
  margin-bottom: var(--space-md);
  text-align: left;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  transition: border-color var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  font-size: 0.95rem;
}

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

.form-group textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.7;
  font-family: var(--font-heading);
  font-size: 1rem;
}

.form-group .help-text {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.4rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

/* Admin meeting list */
.admin-meetings {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.admin-meeting-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  transition: border-color var(--transition-fast);
}

.admin-meeting-item:hover {
  border-color: var(--border);
}

.admin-meeting-item .info {
  flex: 1;
}

.admin-meeting-item .info h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
}

.admin-meeting-item .info .meta {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.admin-meeting-item .actions {
  display: flex;
  gap: 0.5rem;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--space-lg);
  transform: translateY(20px);
  transition: transform var(--transition-base);
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-subtle);
}

.modal-header h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.modal-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-subtle);
}

/* Tabs */
.admin-tabs {
  display: flex;
  gap: 0;
  margin-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border);
}

.admin-tab {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: color var(--transition-fast);
}

.admin-tab:hover {
  color: var(--text-secondary);
}

.admin-tab.active {
  color: var(--accent);
}

.admin-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Toast notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  transform: translateX(100%);
  opacity: 0;
  animation: toastIn 0.3s ease forwards;
}

.toast.success { border-color: var(--success); }
.toast.error { border-color: var(--danger); }

/* Filter bar */
.filter-bar {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.filter-bar .label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.filter-btn {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 0.45rem 1rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  border-color: var(--text-muted);
  color: var(--text-primary);
}

.filter-btn.active {
  background: var(--accent-subtle);
  border-color: var(--accent);
  color: var(--accent);
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: var(--space-xl) var(--space-md);
}

.empty-state .icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-md);
  color: var(--text-muted);
}

.empty-state h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: var(--space-xs);
}

.empty-state p {
  text-align: center;
  margin: 0 auto;
}

/* --- Animations --- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

@keyframes toastIn {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition-slow);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for groups */
.stagger > *:nth-child(1) { transition-delay: 0ms; }
.stagger > *:nth-child(2) { transition-delay: 80ms; }
.stagger > *:nth-child(3) { transition-delay: 160ms; }
.stagger > *:nth-child(4) { transition-delay: 240ms; }
.stagger > *:nth-child(5) { transition-delay: 320ms; }
.stagger > *:nth-child(6) { transition-delay: 400ms; }

/* --- Responsive: Tablet (768px) --- */
@media (max-width: 768px) {
  :root {
    --space-xl: 3rem;
    --space-2xl: 4rem;
  }

  body {
    font-size: 1.15rem;
  }

  /* Mobile Nav */
  .nav {
    padding: 0.75rem 0;
  }

  .nav.scrolled {
    padding: 0.6rem 0;
  }

  .nav-logo img {
    height: 42px;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    background: var(--bg-primary);
    flex-direction: column;
    justify-content: center;
    padding: var(--space-lg);
    gap: var(--space-lg);
    border-left: 1px solid var(--border-subtle);
    transition: right var(--transition-base);
    z-index: 999;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 1rem;
    letter-spacing: 0.12em;
  }

  .nav-toggle {
    display: block;
    z-index: 1001;
  }

  /* Hero */
  .hero {
    min-height: 100vh;
    min-height: 100dvh;
    padding: var(--space-lg) var(--space-md);
  }

  .hero-logo {
    width: min(340px, 85vw);
  }

  .hero-tagline {
    font-size: 1.2rem;
  }

  /* Mission */
  .mission-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .mission-title {
    font-size: clamp(2.2rem, 8vw, 3rem);
  }

  .mission-text {
    font-size: 1.15rem;
  }

  .mission-text p {
    max-width: 100%;
  }

  .mission-values h3 {
    font-size: 1.05rem;
  }

  .mission-values p {
    font-size: 1.05rem;
  }

  .mission-values .icon {
    width: 32px;
    height: 32px;
  }

  /* Next Meeting */
  .next-meeting-card {
    grid-template-columns: 1fr;
    gap: var(--space-md);
    text-align: center;
    padding: var(--space-md);
  }

  .next-meeting-card::before {
    width: 100%;
    height: 3px;
    left: 0;
    top: 0;
  }

  .next-meeting-date {
    display: flex;
    gap: 0.5rem;
    align-items: baseline;
    justify-content: center;
  }

  .next-meeting-date .day {
    font-size: 2.5rem;
  }

  .next-meeting-info .meta {
    justify-content: center;
  }

  .next-meeting-card .btn {
    justify-self: center;
  }

  /* WhatsApp */
  .whatsapp-banner {
    padding: var(--space-md) 0;
  }

  .whatsapp-inner {
    flex-direction: column;
    text-align: center;
    gap: var(--space-md);
  }

  .whatsapp-inner .content {
    flex-direction: column;
    align-items: center;
  }

  .whatsapp-inner h3 {
    font-size: 1.05rem;
  }

  /* Footer */
  .footer {
    padding: var(--space-md) 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-brand img {
    height: 50px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  /* Page Headers */
  .page-header {
    padding: calc(70px + var(--space-lg)) 0 var(--space-md);
  }

  .page-header h1 {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }

  .page-header p {
    font-size: 1.1rem;
    padding: 0 var(--space-xs);
  }

  /* Timeline */
  .timeline {
    padding-left: 28px;
  }

  .timeline::before {
    left: 9px;
  }

  .timeline-year-label {
    font-size: 1.6rem;
  }

  .timeline-year-label::before {
    left: -28px;
    width: 19px;
  }

  .timeline-item::before {
    left: -23px;
    width: 7px;
    height: 7px;
  }

  .timeline-card {
    padding: var(--space-sm);
  }

  .timeline-card h3 {
    font-size: 1.05rem;
  }

  .timeline-card .desc {
    font-size: 1rem;
  }

  .timeline-card .card-meta {
    font-size: 0.75rem;
    gap: 0.75rem;
  }

  /* Notes Cards */
  .note-card-header {
    grid-template-columns: auto 1fr auto;
    gap: var(--space-sm);
    padding: var(--space-sm);
  }

  .note-card-info h3 {
    font-size: 1rem;
  }

  .note-card-content {
    padding: 0 var(--space-sm) var(--space-sm);
  }

  .notes-content p,
  .notes-content li {
    font-size: 1.1rem;
  }

  .discussion-questions li {
    font-size: 1.1rem;
  }

  /* Filter bar */
  .filter-bar {
    gap: 0.5rem;
  }

  .filter-btn {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }

  /* Forms */
  .form-row {
    grid-template-columns: 1fr;
  }

  /* Admin */
  .admin-meeting-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .admin-meeting-item .actions {
    width: 100%;
  }

  .admin-meeting-item .actions .btn {
    flex: 1;
    justify-content: center;
  }

  .modal {
    padding: var(--space-md);
    max-height: 95vh;
    max-height: 95dvh;
    border-radius: var(--radius-md);
  }

  .modal-overlay {
    padding: var(--space-xs);
    align-items: flex-end;
  }

  .toast-container {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
  }

  .toast {
    width: 100%;
  }
}

/* --- Responsive: Small phone (480px) --- */
@media (max-width: 480px) {
  body {
    font-size: 1.1rem;
  }

  .hero-logo {
    width: min(300px, 85vw);
  }

  .hero-tagline {
    font-size: 1.1rem;
  }

  .mission-title {
    font-size: 2rem;
  }

  .note-card-date {
    display: none;
  }

  .note-card-header {
    grid-template-columns: 1fr auto;
  }

  .next-meeting-date .day {
    font-size: 2rem;
  }

  .display-md {
    font-size: 2rem;
  }

  .btn {
    font-size: 0.8rem;
    padding: 0.75rem 1.5rem;
  }

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

/* --- Touch device optimizations --- */
@media (hover: none) and (pointer: coarse) {
  /* Larger touch targets */
  .nav-links a {
    padding: 0.5rem 0;
  }

  .filter-btn {
    padding: 0.55rem 1rem;
    min-height: 44px;
  }

  .note-card-header {
    min-height: 72px;
  }

  .btn {
    min-height: 48px;
  }

  /* Remove hover effects on touch */
  .timeline-card:hover {
    border-color: var(--border-subtle);
    background: var(--bg-elevated);
  }

  .note-card:hover .note-card-info h3 {
    color: var(--text-primary);
  }
}
