/* ============================================================
   Mindfulness Club Cleveland — Shared Stylesheet
   Aesthetic: Warm earth, sage, linen — grounded & organic
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Jost:wght@300;400;500&display=swap');

/* ── CSS Variables ── */
:root {
  --cream:       #f5f0e8;
  --linen:       #ede5d8;
  --warm-white:  #faf7f2;
  --sage:        #7d9a7e;
  --sage-light:  #a8bf9e;
  --sage-dark:   #4e6e50;
  --earth:       #8b6f47;
  --earth-light: #b89a72;
  --bark:        #3d2e1e;
  --stone:       #6b6256;
  --mist:        #c9d4c5;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', sans-serif;

  --radius:  12px;
  --radius-lg: 24px;
  --shadow:  0 4px 24px rgba(61, 46, 30, 0.10);
  --shadow-sm: 0 2px 8px rgba(61, 46, 30, 0.07);

  --transition: 0.3s ease;
  --max-width: 900px;
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--warm-white);
  color: var(--bark);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Subtle grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

main { position: relative; z-index: 1; flex: 1; }

img { max-width: 100%; display: block; }
a { color: var(--sage-dark); text-decoration: none; }
a:hover { color: var(--earth); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  color: var(--bark);
}

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ── Header & Nav ── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--linen);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.site-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--bark);
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-logo .logo-leaf {
  color: var(--sage);
  font-size: 1.4rem;
}

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

nav#nav-links a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone);
  padding-bottom: 2px;
  border-bottom: 1.5px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

nav#nav-links a:hover,
nav#nav-links a.active {
  color: var(--sage-dark);
  border-bottom-color: var(--sage-light);
}

/* Mobile nav toggle */
#nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}

#nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--bark);
  transition: var(--transition);
}

/* ── Page Hero (shared) ── */
.page-hero {
  background: linear-gradient(160deg, var(--linen) 0%, var(--cream) 60%, var(--mist) 100%);
  padding: 5rem 2rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0; right: 0;
  height: 60px;
  background: var(--warm-white);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.page-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-style: italic;
  color: var(--bark);
  margin-bottom: 0.5rem;
}

.page-hero .subtitle {
  font-size: 1rem;
  color: var(--stone);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 400;
}

/* ── Container ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 2rem;
}

/* ── Section Label ── */
.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--linen);
}

.past-label { color: var(--stone); margin-top: 3.5rem; }

/* ── Home Hero ── */
.home-hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 5rem;
  background: linear-gradient(175deg, var(--warm-white) 0%, var(--cream) 50%, var(--linen) 100%);
  position: relative;
  overflow: hidden;
}

/* Decorative organic circles */
.home-hero::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168,191,158,0.18) 0%, transparent 70%);
  top: -150px; right: -150px;
  pointer-events: none;
}

.home-hero::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,111,71,0.10) 0%, transparent 70%);
  bottom: -100px; left: -100px;
  pointer-events: none;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin-bottom: 1.5rem;
  animation: fadeUp 0.8s ease both;
}

.home-hero h1 {
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-style: italic;
  line-height: 1.05;
  color: var(--bark);
  margin-bottom: 1.5rem;
  animation: fadeUp 0.8s ease 0.1s both;
}

.home-hero h1 em {
  font-style: normal;
  color: var(--sage-dark);
}

.hero-mission {
  max-width: 520px;
  font-size: 1.1rem;
  color: var(--stone);
  line-height: 1.85;
  margin-bottom: 3rem;
  animation: fadeUp 0.8s ease 0.2s both;
}

.divider-leaf {
  font-size: 1.4rem;
  margin-bottom: 3rem;
  opacity: 0.6;
  animation: fadeUp 0.8s ease 0.3s both;
}

/* ── Next Event Card (home) ── */
#next-event { animation: fadeUp 0.8s ease 0.4s both; }

.next-event-card {
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--linen);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  max-width: 540px;
  text-align: left;
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow);
}

.event-tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sage-dark);
  background: var(--mist);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  font-family: var(--font-body);
}

.next-event-card h3 {
  font-size: 1.7rem;
  font-style: italic;
  margin-bottom: 0.75rem;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.85rem;
  color: var(--stone);
  margin-bottom: 1rem;
  font-family: var(--font-body);
}

.btn-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--sage-dark);
  border-bottom: 1px solid var(--sage-light);
  padding-bottom: 1px;
  transition: color var(--transition), border-color var(--transition);
}

.btn-link:hover { color: var(--earth); border-color: var(--earth-light); }

/* ── Welcome Strip (below hero on home) ── */
.welcome-strip {
  background: var(--sage-dark);
  color: var(--cream);
  text-align: center;
  padding: 4rem 2rem;
}

.welcome-strip h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-style: italic;
  color: var(--cream);
  margin-bottom: 1rem;
}

.welcome-strip p {
  max-width: 560px;
  margin: 0 auto;
  color: var(--mist);
  font-size: 1rem;
  line-height: 1.85;
}

/* ── Events List ── */
.event-card {
  display: flex;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--linen);
  animation: fadeUp 0.5s ease both;
  transition: opacity var(--transition);
}

.event-card.past { opacity: 0.55; }

.event-date-block {
  flex-shrink: 0;
  width: 64px;
  text-align: center;
  background: var(--linen);
  border-radius: var(--radius);
  padding: 0.6rem 0.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
}

.event-month {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-dark);
  display: block;
}

.event-day {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--bark);
  line-height: 1;
  display: block;
}

.event-body h3 {
  font-size: 1.5rem;
  font-style: italic;
  margin-bottom: 0.4rem;
}

.event-body .event-meta { margin-bottom: 0.75rem; }
.event-body p { font-size: 0.95rem; color: var(--stone); }

.no-events {
  color: var(--stone);
  font-style: italic;
  padding: 2rem 0;
}

/* ── About Page ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-text h2 {
  font-size: 2rem;
  font-style: italic;
  margin-bottom: 1.25rem;
  color: var(--bark);
}

.about-text p { color: var(--stone); font-size: 0.98rem; }

.about-panel {
  background: linear-gradient(145deg, var(--linen), var(--cream));
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid rgba(139,111,71,0.12);
}

.about-panel h3 {
  font-size: 1.3rem;
  font-style: italic;
  margin-bottom: 1.25rem;
  color: var(--sage-dark);
}

.info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.info-list li {
  font-size: 0.9rem;
  color: var(--stone);
  padding-left: 1.25rem;
  position: relative;
}

.info-list li::before {
  content: '◦';
  position: absolute;
  left: 0;
  color: var(--sage);
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.pillar {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--warm-white);
  border-radius: var(--radius);
  border: 1px solid var(--linen);
}

.pillar-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.pillar h3 { font-size: 1.1rem; font-style: italic; margin-bottom: 0.5rem; }
.pillar p { font-size: 0.85rem; color: var(--stone); }

/* ── Community Page ── */
.community-intro {
  max-width: 620px;
  margin-bottom: 3.5rem;
}

.community-intro h2 {
  font-size: 2rem;
  font-style: italic;
  margin-bottom: 1rem;
}

.community-intro p { color: var(--stone); }

.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.community-card {
  background: var(--linen);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(139,111,71,0.1);
  transition: transform var(--transition), box-shadow var(--transition);
}

.community-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.community-card-img {
  height: 180px;
  background: linear-gradient(135deg, var(--sage-light), var(--mist));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--warm-white);
}

.community-card-body {
  padding: 1.5rem;
}

.community-card-body h3 {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 0.5rem;
}

.community-card-body p {
  font-size: 0.88rem;
  color: var(--stone);
  margin-bottom: 0.75rem;
}

.card-link {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--sage-dark);
  border-bottom: 1px solid var(--sage-light);
  padding-bottom: 1px;
}

.reflections-section { margin-top: 1rem; }

.reflections-section h2 {
  font-size: 1.8rem;
  font-style: italic;
  margin-bottom: 2rem;
}

.reflection {
  border-left: 2px solid var(--sage-light);
  padding: 0.25rem 0 0.25rem 1.5rem;
  margin-bottom: 2rem;
}

.reflection blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--bark);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.reflection cite {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone);
  font-style: normal;
}

/* ── Footer ── */
footer {
  position: relative;
  z-index: 1;
  background: var(--bark);
  color: var(--linen);
  padding: 3rem 2rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand .site-logo { color: var(--cream); font-size: 1.1rem; }
.footer-brand p {
  font-size: 0.85rem;
  color: rgba(237,229,216,0.6);
  margin-top: 0.75rem;
  line-height: 1.7;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sage-light);
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a {
  font-size: 0.88rem;
  color: rgba(237,229,216,0.7);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--cream); }

.footer-col p {
  font-size: 0.88rem;
  color: rgba(237,229,216,0.7);
  line-height: 1.7;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(237,229,216,0.1);
  text-align: center;
  font-size: 0.78rem;
  color: rgba(237,229,216,0.35);
}

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

.fade-in {
  animation: fadeUp 0.7s ease both;
}

/* ── Responsive ── */
@media (max-width: 700px) {
  #nav-toggle { display: flex; }

  nav#nav-links {
    display: none;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: var(--warm-white);
    border-bottom: 1px solid var(--linen);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
  }

  nav#nav-links.open { display: flex; }
  nav#nav-links a {
    padding: 0.85rem 2rem;
    width: 100%;
    border-bottom: none;
  }

  .header-inner { position: relative; }

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

  .event-card { flex-direction: column; gap: 1rem; }
  .event-date-block { width: 100%; flex-direction: row; gap: 0.5rem; padding: 0.5rem 1rem; }

  .home-hero { padding: 4rem 1.5rem 3rem; min-height: auto; }

  .next-event-card { padding: 1.5rem; }
}
