/* Muslim Mom Collective — warm & cozy refresh
   Palette:
   --blush:    #FAECE7  (soft section background)
   --terracotta: #D85A30 (primary accent / buttons)
   --terracotta-dark: #993C1D (headings on blush)
   --clay:     #F0997B  (photo / gallery blocks)
   --cream:    #FFFDFB  (page background)
   --ink:      #4A1B0C  (dark warm text)
   --ink-soft: #712B13  (secondary warm text)
   --neutral-bg: #F7F3EF (card background)
*/

:root {
  --blush: #FAECE7;
  --terracotta: #D85A30;
  --terracotta-dark: #993C1D;
  --clay: #F0997B;
  --cream: #FFFDFB;
  --ink: #4A1B0C;
  --ink-soft: #712B13;
  --neutral-bg: #F7F3EF;
  --border: #EADFD6;
  --text-secondary: #7A6F68;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream);
  color: #2B2320;
  line-height: 1.6;
}

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

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink-soft);
}

.logo span { color: var(--terracotta); }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: #4A423C;
}

.nav a:hover { color: var(--terracotta); }

/* Dropdown submenus in the header nav (e.g. the "Members" item) */
.nav li {
  position: relative;
  list-style: none;
}

.nav > li { display: inline-block; }

.nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin: 8px 0 0;
  padding: 8px 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  min-width: 160px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  z-index: 20;
}

.nav li:hover > .sub-menu { display: block; }

.nav .sub-menu li { display: block; }

.nav .sub-menu a {
  display: block;
  padding: 8px 16px;
  white-space: nowrap;
}

.nav .sub-menu a:hover { background: var(--neutral-bg); }

.nav-cta {
  background: var(--terracotta);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.nav-cta:hover { background: var(--terracotta-dark); }

.nav-toggle { display: none; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--terracotta);
  color: #fff;
}
.btn-primary:hover { background: var(--terracotta-dark); }

.btn-secondary {
  background: transparent;
  color: var(--terracotta-dark);
  border: 1.5px solid var(--terracotta);
}
.btn-secondary:hover { background: rgba(216, 90, 48, 0.08); }

/* Hero / page intro */
.hero {
  background: var(--blush);
  border-radius: var(--radius-lg);
  margin: 20px 0 40px;
  overflow: hidden;
  text-align: center;
}

.hero-inner { padding: 56px 32px 0; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 600;
  color: var(--terracotta-dark);
  margin: 0 0 14px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 42px;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 16px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.hero p.lede {
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 480px;
  margin: 0 auto 28px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 36px;
}

.hero-photo {
  background: var(--clay);
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-size: 13px;
}

/* Simpler page-header (non-homepage) */
.page-header {
  background: var(--blush);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
  margin: 20px 0 44px;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: 34px;
  color: var(--ink);
  margin: 0 0 12px;
}

.page-header p {
  color: var(--ink-soft);
  max-width: 520px;
  margin: 0 auto;
  font-size: 15px;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 48px;
}

.stat-card {
  background: var(--neutral-bg);
  border-radius: var(--radius-md);
  padding: 18px 12px;
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--terracotta-dark);
  margin: 0;
}

.stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 4px 0 0;
}

/* Section headings */
.section-label {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 12px;
  font-weight: 600;
  color: #A99A8F;
  margin: 0 0 14px;
}

.section {
  margin-bottom: 56px;
}

.section-heading {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--ink);
  margin: 0 0 8px;
}

.section-sub {
  color: var(--text-secondary);
  font-size: 15px;
  margin: 0 0 28px;
  max-width: 560px;
}

/* Offer / category cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 20px;
}

.card i {
  font-size: 22px;
  color: var(--terracotta);
}

.card h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 12px 0 6px;
  color: #2B2320;
}

.card p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
}

.card-highlight {
  background: var(--blush);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: none;
}

.card-highlight p {
  font-weight: 600;
  color: var(--ink-soft);
  font-size: 14px;
}

.card-highlight span {
  display: block;
  font-weight: 400;
  color: var(--terracotta-dark);
  font-size: 12px;
  margin-top: 2px;
}

/* Photo gallery blocks */
.photo-block {
  background: var(--clay);
  border-radius: var(--radius-md);
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-size: 12px;
}

.photo-block.tall { height: 220px; }

/* Quote */
.quote {
  background: var(--neutral-bg);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  text-align: center;
}

.quote p {
  font-family: var(--font-display);
  font-size: 19px;
  color: #2B2320;
  margin: 0;
}

/* CTA band */
.cta-band {
  background: var(--blush);
  border-radius: var(--radius-lg);
  padding: 44px 32px;
  text-align: center;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--ink);
  margin: 0 0 10px;
}

.cta-band p {
  color: var(--ink-soft);
  font-size: 14px;
  margin: 0 0 22px;
}

/* Event list rows (events / past events pages) */
.event-row {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.event-row:last-child { border-bottom: none; }

.event-photo {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-sm);
  background: var(--clay);
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-size: 11px;
}

.event-details { flex: 1; }

.event-tag {
  display: inline-block;
  background: var(--blush);
  color: var(--terracotta-dark);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 6px;
}

.event-details h3 {
  font-size: 16px;
  margin: 0 0 4px;
}

.event-details p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
}

/* Simple form (contact / join) */
.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  max-width: 520px;
  margin: 0 auto;
}

.form-field {
  margin-bottom: 16px;
}

.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #4A423C;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  background: var(--neutral-bg);
}

.form-field textarea { resize: vertical; min-height: 90px; }

/* Pricing (membership) */
.price-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: center;
}

.price-card.featured {
  border: 2px solid var(--terracotta);
  position: relative;
}

.price-card .badge {
  background: var(--terracotta);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 12px;
}

.price-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  margin: 0 0 4px;
}

.price-card .price {
  font-size: 28px;
  font-weight: 600;
  color: var(--terracotta-dark);
  margin: 8px 0 18px;
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  text-align: left;
  font-size: 13px;
  color: var(--text-secondary);
}

.price-card li {
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

.price-card li:last-child { border-bottom: none; }

/* Community board — replies */
.reply-row {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  list-style: none;
}

.reply-row:last-child { border-bottom: none; }

.reply-row .children {
  margin-left: 40px;
  padding-left: 14px;
  border-left: 2px solid var(--border);
}

.reply-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blush);
  color: var(--terracotta-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
  flex: none;
}

.reply-body { flex: 1; }

.reply-meta {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 0 0 4px;
}

.reply-text {
  font-size: 14px;
  color: #2B2320;
}

.reply-text p { margin: 0; }

/* Calendar (member dashboard) */
.calendar {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  max-width: 420px;
}

.calendar-month {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--ink);
  margin: 0 0 14px;
  text-align: center;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar-weekdays {
  margin-bottom: 6px;
}

.calendar-weekdays span {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  border-radius: 50%;
  color: #2B2320;
}

.calendar-day-empty { visibility: hidden; }

.calendar-day-today {
  border: 1.5px solid var(--terracotta);
  font-weight: 600;
}

.calendar-day-has-event {
  background: var(--blush);
  color: var(--terracotta-dark);
  font-weight: 600;
  cursor: default;
}

/* Account / profile page */
.profile-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--blush);
  color: var(--terracotta-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 20px;
  flex: none;
}

/* FAQ accordion (plain <details>/<summary>, no JS needed) */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.faq-item:last-child { border-bottom: none; }

.faq-item summary {
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  color: #2B2320;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::before {
  content: "+";
  display: inline-block;
  width: 18px;
  color: var(--terracotta);
  font-weight: 700;
}

.faq-item[open] summary::before { content: "\2212"; }

.faq-item p {
  margin: 10px 0 0 18px;
  font-size: 14px;
  color: var(--text-secondary);
}

@media (max-width: 600px) {
  .calendar { max-width: 100%; }
}

/* Footer */
.site-footer {
  background: var(--neutral-bg);
  margin-top: 60px;
  padding: 48px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 10px;
  max-width: 240px;
}

.footer-col h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #A99A8F;
  margin: 0 0 12px;
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: #4A423C;
  margin-bottom: 8px;
}

.footer-col a:hover { color: var(--terracotta); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
}

/* Responsive */
@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 30px; }
}

@media (max-width: 600px) {
  .nav { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .event-row { flex-direction: column; align-items: flex-start; }
  .event-photo { width: 100%; height: 140px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
