/* ===================================================================
   BNI Cutting Edge — Landing Page Styles
   Brand palette: BNI Red / White / Black + supporting greys
   =================================================================== */

:root {
  --red: #cf122c;          /* BNI red */
  --red-dark: #a20d22;
  --red-soft: #fbe7ea;
  --black: #101114;
  --ink: #1c1e24;
  --grey-900: #22242b;
  --grey-600: #565a66;
  --grey-400: #8a8f9c;
  --grey-200: #e4e6ec;
  --grey-100: #f4f5f8;
  --white: #ffffff;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(16, 17, 20, 0.08);
  --shadow-lg: 0 20px 50px rgba(16, 17, 20, 0.16);
  --maxw: 1140px;

  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; color: var(--black); margin: 0 0 .5em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--red);
  margin: 0 0 .6rem;
}
.eyebrow.light { color: #ffb3bd; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  padding: .8rem 1.4rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--grey-200);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: .7rem; color: var(--black); }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-grid;
  place-items: center;
  background: var(--red);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: .04em;
  padding: .35rem .5rem;
  border-radius: 8px;
  font-size: 1rem;
}
.brand-text strong { display: block; font-family: var(--font-head); font-size: 1.05rem; line-height: 1; }
.brand-text small { color: var(--grey-600); font-size: .72rem; letter-spacing: .02em; }

.primary-nav { display: flex; align-items: center; gap: 1.6rem; }
.primary-nav a { color: var(--grey-900); font-weight: 600; font-size: .95rem; }
.primary-nav a:hover { color: var(--red); text-decoration: none; }
.primary-nav .nav-cta { color: #fff; }
.primary-nav .nav-cta:hover { color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 26px; height: 3px; background: var(--black); border-radius: 3px; transition: .25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(207,18,44,.35), transparent 60%),
    linear-gradient(160deg, #16171c 0%, #1f2129 55%, #2a1114 100%);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 420px; height: 420px;
  background: var(--red);
  filter: blur(10px);
  opacity: .18;
  border-radius: 50%;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.35fr .9fr;
  gap: 48px;
  align-items: center;
  padding: 92px 24px 96px;
  position: relative;
  z-index: 1;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -.01em;
}
.hero .lead { color: #d7d9e1; font-size: 1.12rem; max-width: 46ch; }
.hero .lead strong { color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.8rem 0 2.2rem; }
.hero-badges { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .7rem; }
.hero-badges .badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: .45rem .5rem .45rem .55rem;
  color: #c9ccd6;
  font-size: .85rem;
  backdrop-filter: blur(4px);
}
.hero-badges .badge-key {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .78rem;
  line-height: 1;
  padding: .4rem .65rem;
  border-radius: 999px;
  white-space: nowrap;
}

.hero-card {
  background: linear-gradient(180deg, var(--red) 0%, var(--red-dark) 100%);
  border-radius: var(--radius);
  padding: 2.4rem 2rem;
  box-shadow: var(--shadow-lg);
  transform: rotate(-1.5deg);
}
.hero-card-tag { font-size: 1rem; opacity: .9; }
.hero-card-big { font-family: var(--font-head); font-weight: 800; font-size: 2rem; line-height: 1.1; margin: .3rem 0 1.4rem; }
.hero-card-foot {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 700;
  border-top: 1px solid rgba(255,255,255,.35);
  padding-top: 1rem;
}

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.section-sub { color: var(--grey-600); font-size: 1.05rem; margin: 0; }

/* ---------- About ---------- */
.about-lead { font-size: 1.2rem; color: var(--grey-900); max-width: 60ch; margin: 0 0 2.6rem; }
.about-lead em { color: var(--red); font-style: normal; font-weight: 600; }
.feature-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.feature-icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: var(--red-soft);
  border-radius: 12px;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.feature-card h3 { font-size: 1.1rem; }
.feature-card p { color: var(--grey-600); font-size: .95rem; margin: 0; }

/* ---------- Events ---------- */
.section-events { background: var(--grey-100); }
.events-filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 28px; }
.chip {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .9rem;
  padding: .5rem 1.1rem;
  border-radius: 999px;
  border: 1.5px solid var(--grey-200);
  background: var(--white);
  color: var(--grey-900);
  cursor: pointer;
  transition: .2s;
}
.chip:hover { border-color: var(--red); color: var(--red); }
.chip.is-active { background: var(--red); border-color: var(--red); color: #fff; }

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.event-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.event-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.event-top {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-bottom: 1px solid var(--grey-200);
}
.event-date {
  background: var(--black);
  color: #fff;
  padding: 1.1rem 1.2rem;
  text-align: center;
  min-width: 88px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.event-date .month { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; color: #ff8a97; }
.event-date .day { font-family: var(--font-head); font-weight: 800; font-size: 1.9rem; line-height: 1; }
.event-date .year { font-size: .72rem; color: var(--grey-400); }
.event-head { padding: 1rem 1.2rem; display: flex; flex-direction: column; justify-content: center; }
.event-type {
  align-self: flex-start;
  font-family: var(--font-head);
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .25rem .6rem;
  border-radius: 999px;
  margin-bottom: .5rem;
}
.type-mixer { background: var(--red-soft); color: var(--red-dark); }
.type-stack-day { background: #e7eefb; color: #1f4fb0; }
.type-visitor-day { background: #e9f7ec; color: #1c7a34; }
.type-social { background: #fdf1e2; color: #a5620d; }
.event-head h3 { font-size: 1.15rem; margin: 0; }
.event-body { padding: 0 1.2rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.event-meta { list-style: none; margin: .3rem 0 1rem; padding: 0; display: grid; gap: .35rem; }
.event-meta li { color: var(--grey-600); font-size: .9rem; display: flex; gap: .5rem; }
.event-meta .ico { color: var(--red); }
.event-desc { color: var(--grey-900); font-size: .95rem; margin: 0 0 1.2rem; }
.event-body .btn { margin-top: auto; align-self: flex-start; }
.events-empty { text-align: center; color: var(--grey-600); font-size: 1.05rem; padding: 40px 0; }

/* ---------- Members ---------- */
.members-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.member-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  padding: 1.8rem 1.4rem 1.6rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.member-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.member-photo {
  width: 96px; height: 96px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  object-fit: cover;
  border: 3px solid var(--red);
}
/* Initial-based avatar fallback (used until real headshots are added) */
.member-avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2rem;
  border: 3px solid rgba(255,255,255,.7);
  box-shadow: 0 0 0 3px var(--red);
}
.member-card h3 { font-size: 1.1rem; margin: 0 0 .1rem; }
/* Chapter leadership title, sat between the name and the profession. */
.member-leadership {
  display: inline-block;
  margin: .1rem 0 .35rem;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--red-soft);
  color: var(--red-dark);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.member-role { color: var(--red); font-weight: 600; font-size: .9rem; margin: 0 0 .3rem; }
.member-company { color: var(--grey-400); font-size: .82rem; margin: 0 0 .8rem; }
.member-bio { color: var(--grey-600); font-size: .9rem; margin: 0 0 1.1rem; }
.member-link {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .85rem;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}

/* ---------- Visit / CTA ---------- */
.section-visit {
  background:
    radial-gradient(900px 400px at 90% 120%, rgba(207,18,44,.3), transparent 60%),
    linear-gradient(160deg, #16171c 0%, #23252d 100%);
  color: #fff;
}
.section-visit h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.visit-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.visit-copy p { color: #d7d9e1; font-size: 1.05rem; }
.visit-copy em { color: #fff; font-style: italic; }
.visit-details { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: .6rem; }
.visit-details li { color: #e6e8ee; }
.visit-details strong { color: #ff8a97; font-family: var(--font-head); margin-right: .3rem; }

.visit-form {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}
.visit-form h3 { color: var(--black); font-size: 1.3rem; }
.visit-form label { display: block; color: var(--grey-900); font-weight: 600; font-size: .88rem; margin-bottom: 1rem; }
.visit-form input {
  width: 100%;
  margin-top: .35rem;
  padding: .75rem .9rem;
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--ink);
}
.visit-form input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.form-note { color: var(--grey-400); font-size: .78rem; margin: .8rem 0 0; text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: #c9ccd6; padding: 48px 0 32px; }
.footer-inner { display: grid; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: .8rem; }
.footer-brand strong { color: #fff; font-family: var(--font-head); font-size: 1.1rem; }
.footer-brand p { margin: 0; font-size: .85rem; color: var(--grey-400); }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer-links a { color: #d7d9e1; font-weight: 600; font-size: .9rem; }
.footer-links a:hover { color: #fff; text-decoration: none; }
.footer-legal { font-size: .78rem; color: var(--grey-400); margin: 0; border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; padding: 64px 24px 72px; }
  .hero-card { max-width: 360px; }
  .visit-inner { grid-template-columns: 1fr; }
  .feature-cards { grid-template-columns: repeat(2, 1fr); }
  .events-grid { grid-template-columns: repeat(2, 1fr); }
  .members-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
    border-bottom: 1px solid var(--grey-200);
    box-shadow: var(--shadow);
    display: none;
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: 14px 24px; }
  .primary-nav .nav-cta { margin: 10px 24px; text-align: center; }
  .members-grid { grid-template-columns: repeat(2, 1fr); }
  .events-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
}

@media (max-width: 460px) {
  .feature-cards { grid-template-columns: 1fr; }
  .members-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1; }
}
