/* ==========================================================================
   WISE — Women in Science & Engineering (wisedr.org)
   Editorial, Feminine, Inclusive & Secure Design System
   ========================================================================== */

:root {
  --white: #FFFFFF;
  --pearl: #FAF6FB;
  --lavender-soft: #F3EBF6;
  --plum-deep: #1A0A1E;
  --plum-mid: #2C1233;
  --plum-muted: #5F4766;
  --plum-light-text: #E6D3E3;

  --magenta: #E84A9C;
  --violet: #7B61FF;
  --brand-gradient: linear-gradient(135deg, #E84A9C 0%, #B55CE6 52%, #7B61FF 100%);
  --soft-gradient: linear-gradient(135deg, rgba(232, 74, 156, 0.10), rgba(123, 97, 255, 0.10));

  --border-light: rgba(26, 10, 30, 0.10);
  --border-plum: rgba(255, 255, 255, 0.16);

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --shadow-card: 0 14px 36px rgba(26, 10, 30, 0.06);
  --shadow-elevated: 0 22px 50px rgba(26, 10, 30, 0.12);
  --shadow-glow: 0 12px 30px rgba(232, 74, 156, 0.24);
  --transition: all 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--white);
  color: var(--plum-deep);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: min(1140px, 90%);
  margin: 0 auto;
}

.section {
  padding: 5.5rem 0;
  position: relative;
}

.section-white {
  background-color: var(--white);
}

.section-pearl {
  background-color: var(--pearl);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section-plum {
  background: radial-gradient(circle at top right, #2D1135 0%, #1A0A1E 65%);
  color: var(--white);
}

.section-header {
  max-width: 720px;
  margin: 0 auto 3.2rem;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--magenta);
  background: var(--soft-gradient);
  border: 1px solid rgba(232, 74, 156, 0.24);
  padding: 0.42rem 1rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}

.eyebrow-light {
  color: #F89ACB;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.18;
}

h2 {
  font-size: clamp(1.9rem, 3.8vw, 2.75rem);
  margin-bottom: 0.95rem;
}

.section-lead {
  font-size: 1.05rem;
  color: var(--plum-muted);
}

.section-plum .section-lead {
  color: var(--plum-light-text);
}

.gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--plum-deep);
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
}

.brand-sub {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--plum-muted);
  margin-top: 3px;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--plum-deep);
  font-size: 0.92rem;
  font-weight: 600;
  transition: var(--transition);
}

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

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

.lang-toggle {
  background: var(--pearl);
  border: 1px solid var(--border-light);
  color: var(--plum-deep);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.lang-toggle:hover {
  border-color: var(--magenta);
  color: var(--magenta);
}

.menu-toggle {
  display: none;
  background: var(--pearl);
  border: 1px solid var(--border-light);
  color: var(--plum-deep);
  border-radius: 10px;
  padding: 0.42rem 0.72rem;
  font-size: 1.15rem;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.65rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.93rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-sm {
  padding: 0.54rem 1.2rem;
  font-size: 0.85rem;
}

.btn-primary {
  background: var(--brand-gradient);
  color: var(--white);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(232, 74, 156, 0.34);
}

.btn-secondary {
  background: var(--white);
  color: var(--plum-deep);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  border-color: var(--magenta);
  color: var(--magenta);
  transform: translateY(-2px);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-outline-light:hover {
  background: var(--white);
  color: var(--plum-deep);
}

/* Hero Section */
.hero {
  background: linear-gradient(180deg, var(--pearl) 0%, var(--white) 100%);
  padding: 4.5rem 0 5.5rem;
  border-bottom: 1px solid var(--border-light);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  align-items: center;
  gap: 3.2rem;
}

.hero h1 {
  font-size: clamp(2.25rem, 4.6vw, 3.65rem);
  margin-bottom: 1.25rem;
  letter-spacing: -0.015em;
}

.hero-desc {
  font-size: 1.08rem;
  color: var(--plum-muted);
  max-width: 600px;
  margin-bottom: 1.6rem;
}

.discipline-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 2rem;
}

.discipline-pill {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--plum-deep);
  background: var(--white);
  border: 1px solid var(--border-light);
  padding: 0.38rem 0.9rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 12px rgba(26, 10, 30, 0.03);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2.4rem;
}

/* Responsive-safe Hero Metrics (Fixes text overlap on mobile/tablet) */
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--border-light);
}

.metric-item {
  min-width: 0;
  overflow-wrap: break-word;
}

.metric-item strong {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  line-height: 1.25;
  color: var(--plum-deep);
  margin-bottom: 0.25rem;
}

.metric-item span {
  display: block;
  font-size: 0.83rem;
  line-height: 1.4;
  color: var(--plum-muted);
}

/* Hero Brand Emblem Card */
.hero-visual {
  display: flex;
  justify-content: center;
}

.emblem-card {
  width: 100%;
  max-width: 390px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-elevated);
  position: relative;
}

.emblem-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--plum-deep);
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.4rem;
}

.emblem-svg {
  width: 195px;
  height: auto;
  margin: 0 auto 1.1rem;
  display: block;
}

.emblem-motto {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--magenta);
  margin-bottom: 0.45rem;
}

.emblem-handle {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--plum-muted);
}

/* Audience / For Every Woman Strip */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.35rem;
}

.audience-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.8rem 1.5rem;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.audience-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 74, 156, 0.35);
}

.audience-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--soft-gradient);
  color: var(--magenta);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.audience-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.audience-card p {
  font-size: 0.92rem;
  color: var(--plum-muted);
}

/* Pillars Grid */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.65rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2.1rem 1.85rem;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(232, 74, 156, 0.38);
  box-shadow: var(--shadow-elevated);
}

.card-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--soft-gradient);
  border: 1px solid rgba(232, 74, 156, 0.24);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.3rem;
}

.card h3 {
  font-size: 1.36rem;
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--plum-muted);
  font-size: 0.94rem;
}

/* Filterable Initiatives */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 2.4rem;
}

.filter-btn {
  background: var(--white);
  border: 1px solid var(--border-light);
  color: var(--plum-deep);
  padding: 0.54rem 1.2rem;
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--brand-gradient);
  color: var(--white);
  border-color: transparent;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.program-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.2rem;
}

.program-tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 0.5rem;
}

.program-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--plum-muted);
}

/* Safe Space Section (Deep Plum Contrast Block) */
.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.trust-list {
  list-style: none;
  display: grid;
  gap: 1rem;
}

.trust-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-plum);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  color: var(--plum-light-text);
  font-size: 0.94rem;
}

.trust-list strong {
  color: var(--white);
}

.trust-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Join Section */
.join-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2.5rem;
  align-items: start;
}

.channel-cards {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.channel-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.4rem;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--border-light);
  text-decoration: none;
  color: var(--plum-deep);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.channel-link:hover {
  border-color: var(--magenta);
  transform: translateX(4px);
}

.channel-info strong {
  display: block;
  font-size: 1rem;
}

.channel-info span {
  font-size: 0.85rem;
  color: var(--plum-muted);
}

.channel-arrow {
  color: var(--magenta);
  font-size: 1.25rem;
  font-weight: 700;
}

.join-form {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.3rem;
  box-shadow: var(--shadow-elevated);
}

.form-group {
  margin-bottom: 1.15rem;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--plum-deep);
  margin-bottom: 0.42rem;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--pearl);
  border: 1px solid var(--border-light);
  color: var(--plum-deep);
  font-family: var(--font-sans);
  font-size: 0.94rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  background: var(--white);
  border-color: var(--magenta);
  box-shadow: 0 0 0 3px rgba(232, 74, 156, 0.14);
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.form-note {
  font-size: 0.8rem;
  color: var(--plum-muted);
  margin-top: 0.85rem;
}

.form-status {
  margin-top: 1rem;
  padding: 0.95rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  display: none;
}

.form-status.success {
  display: block;
  background: #EDFDF5;
  border: 1px solid #9AE6B4;
  color: #22543D;
}

.form-status.error {
  display: block;
  background: #FFF5F5;
  border: 1px solid #FEB2B2;
  color: #822727;
}

/* Footer */
.footer {
  background: var(--plum-deep);
  color: var(--plum-light-text);
  padding: 2.8rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-copy {
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #F89ACB;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(26, 10, 30, 0.72);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 200;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  background: var(--white);
  color: var(--plum-deep);
  border-radius: var(--radius-md);
  max-width: 560px;
  width: 100%;
  padding: 2.2rem;
  position: relative;
  box-shadow: var(--shadow-elevated);
}

.modal-close {
  position: absolute;
  top: 1.1rem;
  right: 1.2rem;
  background: none;
  border: none;
  color: var(--plum-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Responsive Breakpoints */
@media (max-width: 980px) {
  .hero-grid,
  .trust-grid,
  .join-grid {
    grid-template-columns: 1fr;
  }

  .audience-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pillars-grid,
  .programs-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-card);
  }

  .nav-links.open {
    display: flex;
  }

  .menu-toggle {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 3.5rem 0 4.2rem;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

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

  .join-form {
    padding: 1.65rem;
  }
}
