/* ═══════════════════════════════════════════
   MEMBERBRIDGE – MAIN STYLESHEET
   ═══════════════════════════════════════════ */

:root {
  --green:    #2d7a4f;
  --green-lt: #e6f5ec;
  --blue:     #2255b8;
  --blue-lt:  #dce8ff;
  --orange:   #c9620a;
  --orange-lt:#fff0e0;
  --dark:     #1a1f2e;
  --mid:      #4a5568;
  --light:    #f7f8fc;
  --white:    #ffffff;
  --border:   #e2e8f0;
  --radius:   14px;
  --shadow:   0 4px 24px rgba(0,0,0,0.08);
  --font-head: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
em { font-style: italic; color: var(--green); }
p  { color: var(--mid); }
a  { text-decoration: none; color: inherit; }

/* ── NAVBAR ── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px; margin: auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2rem;
}
.logo {
  font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--dark);
}
.logo span { color: var(--green); }
.nav-links { list-style: none; display: flex; gap: 2rem; align-items: center; }
.nav-links a { font-size: 0.95rem; font-weight: 500; color: var(--mid); transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--green); }
.btn-nav {
  background: var(--green); color: white !important;
  padding: 0.5rem 1.2rem; border-radius: 8px; font-weight: 600;
  transition: background 0.2s;
}
.btn-nav:hover { background: #235f3c !important; }
.hamburger { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }
.mobile-menu { display: none; list-style: none; padding: 1rem 2rem 1.5rem; flex-direction: column; gap: 1rem; }
.mobile-menu a { font-size: 1rem; font-weight: 500; color: var(--mid); }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  background: var(--green); color: white;
  padding: 0.75rem 1.8rem; border-radius: 10px;
  font-weight: 600; font-size: 0.95rem; border: none; cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  font-family: var(--font-body);
}
.btn-primary:hover { background: #235f3c; transform: translateY(-1px); }
.btn-ghost {
  display: inline-block;
  background: transparent; color: var(--green);
  padding: 0.75rem 1.8rem; border-radius: 10px;
  font-weight: 600; font-size: 0.95rem;
  border: 2px solid var(--green); cursor: pointer;
  transition: all 0.2s; font-family: var(--font-body);
}
.btn-ghost:hover { background: var(--green-lt); }

/* ── HERO ── */
.hero {
  position: relative; overflow: hidden;
  min-height: 90vh; display: flex; align-items: center;
  padding: 6rem 2rem 4rem;
  background: linear-gradient(135deg, #f0faf4 0%, #eef4ff 100%);
}
.hero-blob {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.4;
}
.blob1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #a8e6c1, #dce8ff);
  top: -100px; right: -100px;
}
.blob2 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, #ffd7a8, #fce4ff);
  bottom: -80px; left: 10%;
}
.hero-content {
  position: relative; max-width: 600px;
  animation: fadeUp 0.8s ease both;
}
.pill {
  display: inline-block;
  background: var(--green-lt); color: var(--green);
  padding: 0.4rem 1rem; border-radius: 999px;
  font-size: 0.85rem; font-weight: 600; margin-bottom: 1.5rem;
}
.hero-content h1 { margin-bottom: 1.2rem; }
.hero-content p { font-size: 1.1rem; margin-bottom: 2rem; max-width: 460px; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-cards {
  position: absolute; right: 8%; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 1rem;
  animation: fadeUp 0.9s ease 0.2s both;
}
.hcard {
  background: white; border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1rem 1.5rem;
  display: flex; align-items: center; gap: 1rem; min-width: 200px;
  border-left: 4px solid var(--green);
}
.hcard-icon { font-size: 1.5rem; }
.hcard-text { display: flex; flex-direction: column; }
.hcard-text strong { font-size: 1.4rem; font-weight: 700; }
.hcard-text span { font-size: 0.8rem; color: var(--mid); }
.hcard2 { border-left-color: var(--blue); }
.hcard3 { border-left-color: var(--orange); }

/* ── SECTIONS ── */
.features, .extras, .content-section {
  max-width: 1200px; margin: auto;
  padding: 5rem 2rem;
}
.alt-bg {
  max-width: 100%; background: var(--light);
  padding: 5rem 2rem;
}
.alt-bg > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
.section-label {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--green);
  margin-bottom: 0.5rem;
}
.section-sub { color: var(--mid); margin-bottom: 2rem; }

/* ── FEATURES GRID ── */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem; margin-top: 2.5rem;
}
.feature-card {
  border-radius: var(--radius); padding: 2rem;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.fc-green { background: var(--green-lt); }
.fc-blue  { background: var(--blue-lt); }
.fc-orange{ background: var(--orange-lt); }
.fc-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.feature-card h3 { margin-bottom: 0.5rem; }
.fc-link { display: inline-block; margin-top: 1rem; font-weight: 600; color: var(--green); }
.fc-blue .fc-link { color: var(--blue); }
.fc-orange .fc-link { color: var(--orange); }

/* ── EXTRAS ── */
.extras { text-align: center; }
.extras h2 { margin-bottom: 2.5rem; }
.extras-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem; max-width: 900px; margin: auto;
}
.extra-item {
  background: var(--light); border-radius: 10px;
  padding: 1rem 1.2rem; font-size: 0.9rem; font-weight: 500;
  display: flex; align-items: center; gap: 0.6rem;
  transition: background 0.2s;
}
.extra-item:hover { background: var(--green-lt); }

/* ── PAGE HERO ── */
.page-hero {
  position: relative; overflow: hidden;
  padding: 6rem 2rem 4rem; text-align: center;
}
.green-hero  { background: linear-gradient(135deg, #e6f5ec, #f0faf4); }
.blue-hero   { background: linear-gradient(135deg, #dce8ff, #eef4ff); }
.orange-hero { background: linear-gradient(135deg, #fff0e0, #fff8f0); }
.page-hero h1 { margin-bottom: 1rem; }
.page-hero p  { font-size: 1.1rem; max-width: 560px; margin: auto; }

/* ── MEMBERSHIP CARDS ── */
.membership-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem; margin-top: 2.5rem; align-items: start;
}
.membership-card {
  border: 2px solid var(--border); border-radius: var(--radius);
  padding: 2rem; text-align: center; transition: border-color 0.2s, box-shadow 0.2s;
}
.membership-card:hover { border-color: var(--green); box-shadow: var(--shadow); }
.featured-card { border-color: var(--green); background: var(--green-lt); }
.membership-badge {
  display: inline-block; background: var(--border);
  color: var(--mid); border-radius: 999px;
  padding: 0.3rem 1rem; font-size: 0.8rem; font-weight: 600;
  margin-bottom: 1rem;
}
.badge-featured { background: var(--green); color: white; }
.membership-price { font-family: var(--font-head); font-size: 2.5rem; font-weight: 700; margin-bottom: 1.5rem; }
.membership-price span { font-size: 1rem; color: var(--mid); }
.membership-perks { list-style: none; text-align: left; margin-bottom: 1.5rem; }
.membership-perks li { padding: 0.4rem 0; font-size: 0.9rem; color: var(--mid); }

/* ── SEARCH & TABLE ── */
.search-bar { margin: 2rem 0 1rem; }
.search-bar input {
  width: 100%; max-width: 420px;
  padding: 0.75rem 1.2rem; border-radius: 10px;
  border: 2px solid var(--border); font-size: 0.95rem;
  font-family: var(--font-body); outline: none;
  transition: border-color 0.2s;
}
.search-bar input:focus { border-color: var(--green); }
.member-table-wrap { overflow-x: auto; margin-top: 1rem; }
.member-table {
  width: 100%; border-collapse: collapse;
  background: white; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.member-table th {
  background: var(--dark); color: white;
  padding: 1rem 1.2rem; text-align: left; font-size: 0.85rem;
}
.member-table td {
  padding: 0.9rem 1.2rem; border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.member-table tr:last-child td { border-bottom: none; }
.member-table tr:hover td { background: var(--light); }
.badge-active  { background: #dcfce7; color: #166534; padding: 0.25rem 0.75rem; border-radius: 999px; font-size: 0.8rem; font-weight: 600; }
.badge-pending { background: #fef9c3; color: #854d0e; padding: 0.25rem 0.75rem; border-radius: 999px; font-size: 0.8rem; font-weight: 600; }
.stat-good { color: var(--green); font-weight: 600; }

/* ── FORMS ── */
.form-card {
  background: white; border: 2px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
  max-width: 640px; box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.2rem; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--dark); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.7rem 1rem; border: 2px solid var(--border);
  border-radius: 8px; font-family: var(--font-body); font-size: 0.95rem;
  outline: none; transition: border-color 0.2s; background: white;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--green); }
.success-msg {
  display: none; background: #dcfce7; color: #166534;
  padding: 0.75rem 1rem; border-radius: 8px;
  font-weight: 600; margin-top: 1rem; font-size: 0.9rem;
}

/* ── EVENTS ── */
.filter-bar { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 2rem; }
.filter-btn {
  padding: 0.5rem 1.2rem; border-radius: 999px;
  border: 2px solid var(--border); background: white;
  font-family: var(--font-body); font-weight: 500; cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--green); color: white; border-color: var(--green);
}
.events-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; }
.event-card {
  border: 2px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: transform 0.2s, box-shadow 0.2s;
  background: white;
}
.event-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.event-img { height: 100px; display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.event-info { padding: 1.5rem; }
.event-tags { display: flex; gap: 0.5rem; margin-bottom: 0.75rem; }
.tag { padding: 0.25rem 0.75rem; border-radius: 999px; font-size: 0.78rem; font-weight: 600; }
.tag-green { background: var(--green-lt); color: var(--green); }
.tag-blue  { background: var(--blue-lt);  color: var(--blue); }
.tag-free  { background: #dcfce7; color: #166534; }
.tag-paid  { background: #fef9c3; color: #854d0e; }
.event-info h3 { margin-bottom: 0.4rem; }
.event-meta { font-size: 0.85rem; color: var(--mid); margin-bottom: 0.25rem; }
.event-info p { font-size: 0.9rem; margin: 0.75rem 0 1rem; }
.event-capacity { margin-bottom: 1rem; }
.capacity-bar { background: var(--border); border-radius: 999px; height: 6px; margin-bottom: 0.3rem; }
.capacity-fill { background: var(--green); height: 100%; border-radius: 999px; }
.event-capacity span { font-size: 0.8rem; color: var(--mid); }

/* ── MODAL ── */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.5); z-index: 200;
  align-items: center; justify-content: center; padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal {
  background: white; border-radius: var(--radius);
  padding: 2.5rem; max-width: 560px; width: 100%;
  position: relative; max-height: 90vh; overflow-y: auto;
  animation: fadeUp 0.3s ease;
}
.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: none; border: none; font-size: 1.2rem;
  cursor: pointer; color: var(--mid);
}
.modal h2 { margin-bottom: 0.25rem; }
.modal-price { margin-bottom: 1.5rem; color: var(--mid); }

/* ── EMAIL COMPOSER ── */
.email-composer { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2rem; }
.composer-settings { display: flex; flex-direction: column; }
.audience-pill {
  background: var(--green-lt); color: var(--green);
  padding: 0.6rem 1rem; border-radius: 8px;
  font-size: 0.88rem; margin-bottom: 1.2rem;
}
.template-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; }
.template-thumb {
  border: 2px solid var(--border); border-radius: 10px;
  padding: 0.75rem 0.5rem; text-align: center; cursor: pointer;
  transition: border-color 0.2s;
}
.template-thumb:hover { border-color: var(--green); }
.active-template { border-color: var(--green); background: var(--green-lt); }
.tthumb-inner { font-size: 1.5rem; margin-bottom: 0.3rem; }
.template-thumb span { font-size: 0.72rem; font-weight: 600; color: var(--mid); }
.composer-preview { position: sticky; top: 5rem; }
.preview-label { font-size: 0.8rem; font-weight: 600; color: var(--mid); margin-bottom: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
.email-preview {
  border: 2px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); background: #f9fafb;
}
.ep-header { background: var(--dark); padding: 1rem 1.5rem; }
.ep-logo { font-family: var(--font-head); font-size: 1.2rem; color: white; font-weight: 700; }
.ep-logo span { color: #6ee7a0; }
.ep-body { padding: 1.5rem; background: white; }
.ep-body h2 { font-size: 1.1rem; margin-bottom: 1rem; color: var(--dark); }
.ep-body p { font-size: 0.88rem; margin-bottom: 0.75rem; }
.ep-highlight {
  background: var(--green-lt); color: var(--green);
  padding: 0.6rem 1rem; border-radius: 8px;
  font-size: 0.88rem; font-weight: 600; margin: 1rem 0;
}
.ep-footer {
  padding: 1rem 1.5rem; background: var(--light);
  font-size: 0.78rem; color: var(--mid); text-align: center;
}
.ep-footer a { color: var(--green); }
.campaigns-table-wrap { margin-top: 1.5rem; }

/* ── LOGIN ── */
.login-body { margin: 0; background: var(--dark); }
.login-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.login-left {
  background: linear-gradient(135deg, #1d4e35, #2d7a4f);
  padding: 3rem; position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
}
.login-logo { color: white; }
.login-logo span { color: #6ee7a0; }
.login-blob {
  position: absolute; width: 400px; height: 400px;
  background: rgba(255,255,255,0.05); border-radius: 50%;
  top: -100px; right: -100px;
}
.login-tagline { color: white; position: relative; }
.login-tagline h2 { font-size: 2.2rem; margin-bottom: 1rem; color: white; }
.login-tagline h2 em { color: #6ee7a0; font-style: italic; }
.login-tagline p { color: rgba(255,255,255,0.75); margin-bottom: 1.5rem; }
.login-features { display: flex; flex-direction: column; gap: 0.5rem; }
.lf-item { color: rgba(255,255,255,0.9); font-size: 0.9rem; font-weight: 500; }
.login-right {
  background: var(--light); display: flex;
  align-items: center; justify-content: center; padding: 2rem;
}
.login-card {
  background: white; border-radius: var(--radius);
  padding: 2.5rem; max-width: 480px; width: 100%;
  box-shadow: var(--shadow);
}
.login-tabs { display: flex; gap: 0; margin-bottom: 2rem; border-radius: 10px; overflow: hidden; border: 2px solid var(--border); }
.login-tab {
  flex: 1; padding: 0.75rem; border: none; background: white;
  font-family: var(--font-body); font-weight: 600; font-size: 0.9rem;
  cursor: pointer; color: var(--mid); transition: all 0.2s;
}
.login-tab.active { background: var(--green); color: white; }
.login-sub { color: var(--mid); margin-bottom: 1.5rem; font-size: 0.9rem; }
.login-options { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.2rem; }
.checkbox-label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; cursor: pointer; }
.forgot-link { font-size: 0.85rem; color: var(--green); font-weight: 600; }
.login-divider { text-align: center; color: var(--mid); font-size: 0.85rem; margin: 1rem 0; }

/* ── FOOTER ── */
.footer { background: var(--dark); padding: 3rem 2rem; margin-top: 4rem; }
.footer-inner { max-width: 1200px; margin: auto; text-align: center; }
.footer-logo { font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; color: white; margin-bottom: 0.5rem; }
.footer-logo span { color: #6ee7a0; }
.footer p { color: rgba(255,255,255,0.6); font-size: 0.88rem; margin-bottom: 1.5rem; }
.footer-links { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 0.88rem; transition: color 0.2s; }
.footer-links a:hover { color: #6ee7a0; }
.footer-copy { color: rgba(255,255,255,0.35); font-size: 0.78rem; }

/* ── ANIMATION ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.content-section, .features, .extras {
  animation: fadeUp 0.6s ease both;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero { flex-direction: column; min-height: auto; text-align: center; }
  .hero-content { max-width: 100%; }
  .hero-cta { justify-content: center; }
  .hero-cards { position: relative; right: auto; top: auto; transform: none; flex-direction: row; flex-wrap: wrap; justify-content: center; margin-top: 2rem; }
  .email-composer { grid-template-columns: 1fr; }
  .composer-preview { position: relative; top: auto; }
  .login-split { grid-template-columns: 1fr; }
  .login-left { display: none; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .mobile-menu.open { display: flex; }
  .template-grid { grid-template-columns: repeat(2, 1fr); }
}
