/*
 * Membership Accordion Pro — style.css
 * File: membership-accordion-widget/style.css
 * ═══════════════════════════════════════════════════════════
 * All colours/sizes are also overridable via the Elementor
 * Style tab. These are the fallback defaults.
 * ═══════════════════════════════════════════════════════════
 */

/* ── Wrapper ── */
.maw-accordion {
  width: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
}
.custom-accordion-content-title {
    font-family: "Arimo", Sans-serif;
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    color: #DCFFA4;
}
/* ── Individual item ── */
.maw-item {
  border: 1px solid #e0d8cc;
  border-radius: 0;
  margin-bottom: -1px; /* collapse borders */
  overflow: hidden;
}
.maw-item:first-child { border-radius: 4px 4px 0 0; }
.maw-item:last-child  { border-radius: 0 0 4px 4px; margin-bottom: 0; }

/* ── HEADER ── */
.maw-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 24px 28px;
  cursor: pointer;
  background: #ffffff;
  user-select: none;
  transition: background 0.18s;
}
.maw-header:hover { background: #fdfaf6; }
.maw-item.open .maw-header {
  border-bottom: 1px solid #e0d8cc;
}

.maw-header-left {
  flex: 1;
  min-width: 0;
}

.maw-header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

/* Title */
.maw-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1a1a1a;
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

/* Description */
.maw-desc {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #555555;
  line-height: 1.65;
  max-width: 680px;
}

/* Badge */
.maw-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 5px 14px;
  border-radius: 20px;
  background: #c8a96e;
  color: #ffffff;
  white-space: nowrap;
}

/* Icon */
.maw-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #c8a96e;
  color: #c8a96e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
  font-family: Georgia, serif;
}
.maw-item.open .maw-icon {
  background: #c8a96e;
  color: #ffffff;
}

/* ── CONTENT PANEL ── */
.maw-content {
  overflow: hidden;
  /* Smooth height animation */
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.3s ease;
}
.maw-content[hidden] {
  display: grid !important; /* override browser [hidden] so transition works */
  grid-template-rows: 0fr;
  visibility: hidden;
}
.maw-content-inner {
  overflow: hidden;
  background: #ffffff;
  padding: 24px 28px;
}

/* ── FEATURE PILL GRID ── */
.maw-pill-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.maw-pill-link {
  display: block;
  text-decoration: none;
}

.maw-pill {
  padding: 10px 14px;
  background: #f5f0e8;
  color: #1a1a1a;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, transform 0.15s;
  line-height: 1.3;
}
.maw-pill:hover {
  background: #c8a96e;
  color: #ffffff;
  transform: translateY(-1px);
}

/* ── Animated open/close via grid-template-rows ── */
.maw-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  visibility: hidden;
}
.maw-content > .maw-content-inner {
  min-height: 0; /* required for the 0fr trick */
  overflow: hidden;
}
.maw-item.open .maw-content {
  grid-template-rows: 1fr;
  visibility: visible;
}

/* Remove the [hidden] attribute approach — we use class-based show/hide */
.maw-content[hidden] { display: grid !important; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .maw-pill-grid { grid-template-columns: repeat(2, 1fr); }
  .maw-title { font-size: 18px; }
}
@media (max-width: 600px) {
  .maw-pill-grid { grid-template-columns: 1fr 1fr; }
  .maw-header { padding: 16px 18px; flex-wrap: wrap; }
  .maw-content-inner { padding: 16px 18px; }
  .maw-title { font-size: 16px; }
  .maw-desc  { font-size: 10px; }
  .maw-icon  { width: 30px; height: 30px; font-size: 1.1rem; }
}
@media (max-width: 380px) {
  .maw-pill-grid { grid-template-columns: 1fr; }
}
