:root {
  --bni-red: #cf2030;
  --bni-red-dark: #a5121f;
  --ink: #1b1b1e;
  --grey: #64666a;
  --line: #e6e6e8;
  --bg: #ffffff;
  --bg-soft: #f5f6f8;
  --shadow: 0 6px 24px rgba(20, 20, 25, 0.08);
  --shadow-lg: 0 20px 50px rgba(20, 20, 25, 0.18);
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .display { font-family: "Poppins", "Inter", sans-serif; font-weight: 700; line-height: 1.15; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { width: min(1180px, 92vw); margin: 0 auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  height: 96px;
  gap: 16px;
}
.site-header.logo-only .wrap {
  display: flex;
  justify-content: flex-start;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 70px; width: auto; }
.brand .brand-sub { font-size: 12px; color: var(--grey); font-weight: 600; letter-spacing: .3px; display: none; }
.nav-links { display: flex; align-items: center; justify-content: center; gap: 26px; }
.nav-links a { font-size: 15.5px; font-weight: 700; color: #33343a; }
.nav-links a:hover { color: var(--bni-red); }
.header-cta { justify-self: end; white-space: nowrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 14.5px; border-radius: 999px;
  padding: 11px 22px; border: 2px solid transparent; cursor: pointer;
  transition: transform .12s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}
.btn-primary { background: var(--bni-red); color: #fff; }
.btn-primary:hover { background: var(--bni-red-dark); transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--bni-red); border-color: var(--bni-red); }
.btn-ghost:hover { background: var(--bni-red); color: #fff; }
.btn-white { background: #fff; color: var(--bni-red); }
.btn-white:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-outline-white:hover { background: #fff; color: var(--bni-red); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(255,255,255,.14), transparent 60%),
    linear-gradient(135deg, #cf2030 0%, #a5121f 55%, #7d0d18 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M0 30h60M30 0v60' stroke='%23ffffff' stroke-opacity='0.05' stroke-width='1'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 2; padding: 78px 0 88px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28);
  padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: .4px;
  text-transform: uppercase;
}
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); margin: 20px 0 6px; letter-spacing: -0.5px; }
.hero .subtitle { font-size: clamp(1.15rem, 2.4vw, 1.6rem); font-weight: 600; color: #ffe3e5; margin: 0 0 20px; }
.hero .lede { font-size: 1.1rem; max-width: 640px; color: rgba(255,255,255,.92); margin: 0 0 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 14px 34px; margin-top: 40px;
  padding-top: 26px; border-top: 1px solid rgba(255,255,255,.2);
}
.hero-meta .item { display: flex; align-items: center; gap: 12px; }
.hero-meta .item svg { flex: none; width: 22px; height: 22px; opacity: .9; }
.hero-meta .k { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: rgba(255,255,255,.75); }
.hero-meta .v { font-weight: 700; font-size: 15px; }

/* ---------- Concept strip ---------- */
.concept { padding: 70px 0 20px; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head .kicker { color: var(--bni-red); font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; font-size: 13px; }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin: 10px 0 14px; }
.section-head p { color: var(--grey); font-size: 1.08rem; margin: 0; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value-card {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; text-align: center;
}
.value-card .ic {
  width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 14px;
  background: rgba(207,32,48,.1); color: var(--bni-red);
  display: grid; place-items: center;
}
.value-card .ic svg { width: 28px; height: 28px; }
.value-card h3 { font-size: 1.18rem; margin: 0 0 8px; }
.value-card p { color: var(--grey); font-size: .97rem; margin: 0; }

/* ---------- Members ---------- */
.members { padding: 26px 0 90px; }
.members .section-head {
  max-width: 860px;
}
.member-headline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  margin-bottom: 18px;
  text-align: left;
}
.member-logo { flex: none; }
.member-logo img { height: 84px; }
.member-headline h2 { margin-bottom: 0; }
.filters {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  justify-content: center; margin: 0 auto 34px;
}
.search-box { position: relative; flex: 1 1 320px; max-width: 420px; }
.search-box svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--grey); }
.search-box input {
  width: 100%; padding: 13px 16px 13px 44px; border: 1.5px solid var(--line);
  border-radius: 999px; font-size: 15px; font-family: inherit; outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.search-box input:focus { border-color: var(--bni-red); box-shadow: 0 0 0 4px rgba(207,32,48,.1); }
.count-note { text-align: center; color: var(--grey); font-size: .95rem; margin: -18px 0 30px; }

.card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 24px;
}
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .16s ease, box-shadow .16s ease; cursor: pointer;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-top { position: relative; padding: 26px 22px 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.avatar {
  width: 104px; height: 104px; border-radius: 50%; object-fit: cover;
  border: 3px solid #fff; box-shadow: 0 0 0 3px rgba(207,32,48,.15); background: var(--bg-soft);
}
.avatar-fallback {
  width: 104px; height: 104px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 34px;
  font-family: "Poppins", sans-serif; box-shadow: 0 0 0 3px rgba(207,32,48,.15);
}
.card h3 { font-size: 1.22rem; margin: 16px 0 2px; }
.card .biz { color: var(--ink); font-weight: 600; font-size: .95rem; margin: 0 0 10px; }
.cat-badge {
  display: inline-block; background: rgba(207,32,48,.08); color: var(--bni-red-dark);
  font-weight: 700; font-size: 12.5px; padding: 5px 13px; border-radius: 999px; margin-bottom: 4px;
}
.card-actions { display: flex; justify-content: center; gap: 10px; padding: 18px 22px 22px; margin-top: auto; }
.action-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line);
  background: #fff; color: var(--bni-red); display: grid; place-items: center; cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .12s ease;
}
.action-btn:hover { background: var(--bni-red); color: #fff; border-color: var(--bni-red); transform: translateY(-2px); }
.action-btn svg { width: 20px; height: 20px; }

.reveal {
  max-height: 0; overflow: hidden; transition: max-height .3s ease;
  border-top: 0 solid var(--line); background: var(--bg-soft);
}
.card.open .reveal { max-height: 260px; border-top: 1px solid var(--line); }
.reveal-inner { padding: 16px 22px 20px; }
.reveal-inner .row { display: flex; align-items: center; gap: 10px; font-size: 14px; margin-bottom: 10px; color: #333; }
.reveal-inner .row svg { width: 17px; height: 17px; color: var(--bni-red); flex: none; }
.reveal-inner .row a { font-weight: 600; word-break: break-word; }
.reveal-inner .row a:hover { color: var(--bni-red); }
.socials { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 12px; }
.socials a {
  width: 34px; height: 34px; border-radius: 9px; background: #fff; border: 1px solid var(--line);
  display: grid; place-items: center; transition: transform .12s ease, border-color .15s ease;
}
.socials a:hover { transform: translateY(-2px); border-color: var(--bni-red); }
.socials img { width: 18px; height: 18px; }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(15,15,20,.6); backdrop-filter: blur(3px);
  display: none; align-items: center; justify-content: center; padding: 20px; z-index: 100;
}
.modal-backdrop.show { display: flex; }
.modal {
  background: #fff; border-radius: 20px; width: min(680px, 100%); max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-lg); position: relative;
}
.modal-header {
  background: linear-gradient(135deg, #cf2030, #a5121f); color: #fff; padding: 34px 32px 30px;
  display: flex; gap: 22px; align-items: center; border-radius: 20px 20px 0 0;
}
.modal-header .avatar, .modal-header .avatar-fallback { width: 92px; height: 92px; box-shadow: 0 0 0 3px rgba(255,255,255,.35); flex: none; }
.modal-header h2 { margin: 0 0 4px; font-size: 1.6rem; }
.modal-header .m-biz { font-weight: 600; opacity: .95; }
.modal-header .m-cat { display: inline-block; margin-top: 8px; background: rgba(255,255,255,.2); padding: 4px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.modal-close {
  position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.2); border: 0; color: #fff; font-size: 22px; cursor: pointer; line-height: 1;
  display: grid; place-items: center; transition: background .15s ease;
}
.modal-close:hover { background: rgba(255,255,255,.35); }
.modal-body { padding: 28px 32px 34px; }
.modal-contact { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.modal-contact .btn { font-size: 14px; padding: 10px 18px; }
.modal-info { display: grid; gap: 12px; margin-bottom: 22px; }
.modal-info .row { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: #333; }
.modal-info .row svg { width: 18px; height: 18px; color: var(--bni-red); flex: none; margin-top: 3px; }
.modal-info .row a:hover { color: var(--bni-red); }
.profile-sections { display: grid; gap: 18px; margin-top: 6px; }
.profile-sections .ps { border-left: 3px solid var(--bni-red); padding-left: 16px; }
.profile-sections h4 { margin: 0 0 4px; font-size: 1rem; color: var(--bni-red-dark); font-family: "Poppins", sans-serif; }
.profile-sections p { margin: 0; color: #444; font-size: .96rem; }
.modal .socials { margin-top: 18px; }

/* ---------- Member profile pages ---------- */
.profile-page {
  min-height: 100vh;
  padding: 42px 0 76px;
  background:
    linear-gradient(180deg, rgba(207,32,48,.06), transparent 280px),
    var(--bg-soft);
}
.profile-back {
  display: inline-flex;
  align-items: center;
  margin-bottom: 24px;
  color: var(--bni-red-dark);
  font-weight: 800;
}
.profile-back:hover { color: var(--bni-red); }
.profile-shell { display: grid; gap: 22px; }
.profile-hero-card,
.profile-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.profile-hero-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 34px;
  align-items: center;
  padding: 34px;
}
.profile-photo-wrap {
  width: 220px;
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 7px;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(207,32,48,.15);
}
.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.profile-photo-fallback {
  display: grid;
  place-items: center;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 58px;
  font-weight: 800;
}
.profile-intro h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin: 8px 0 8px;
}
.profile-business {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 700;
}
.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.profile-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  padding: 26px 30px;
}
.profile-details div {
  display: grid;
  gap: 4px;
}
.profile-details span {
  color: var(--grey);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .7px;
  text-transform: uppercase;
}
.profile-details a,
.profile-details p {
  margin: 0;
  color: var(--ink);
  font-weight: 650;
  overflow-wrap: anywhere;
}
.profile-details a:hover { color: var(--bni-red); }
.profile-section-grid {
  display: grid;
  gap: 18px;
  padding: 30px;
}
.profile-section {
  border-left: 4px solid var(--bni-red);
  padding-left: 18px;
}
.profile-section h2 {
  margin: 0 0 6px;
  color: var(--bni-red-dark);
  font-size: 1.08rem;
}
.profile-section p {
  margin: 0;
  color: #444;
}
.profile-socials { padding-left: 4px; }

/* ---------- Interactive Flyer / flip-book ---------- */
.flyer-section { padding: 70px 0 90px; background: var(--bg-soft); border-top: 1px solid var(--line); }
.flipbook { display: flex; align-items: center; justify-content: center; gap: 16px; }
.flip-stage {
  position: relative; flex: 1 1 auto; max-width: 940px;
  height: 624px; border-radius: 18px;
  background: #fff; box-shadow: var(--shadow-lg); overflow: hidden;
  perspective: 1700px; perspective-origin: left center;
}
.flip-pages { position: absolute; inset: 0; transform-style: preserve-3d; }
.flip-page {
  position: absolute; inset: 0;
  transform-origin: left center;
  transform: rotateY(0deg);
  transition: transform 1.05s cubic-bezier(.42, .04, .28, 1);
  transform-style: preserve-3d;
}
/* pages before the current one are folded back over the left spine */
.flip-page.turned { transform: rotateY(-180deg); }

/* each leaf has a content front face and a paper underside */
.leaf-face {
  position: absolute; inset: 0; border-radius: 18px; overflow: hidden;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.leaf-front {
  padding: 32px 42px; display: flex; flex-direction: column; background: #fff;
  overflow-x: hidden; overflow-y: auto;
  box-shadow: 0 14px 34px rgba(20, 20, 25, .12);
}
/* the underside of the page — seen as it flips over */
.leaf-back {
  transform: rotateY(180deg);
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .015) 0 2px, transparent 2px 6px),
    linear-gradient(115deg, #eef0f3 0%, #e4e6ea 55%, #d7d9df 100%);
}
.leaf-back::before {
  content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 10px;
  background: linear-gradient(270deg, rgba(0, 0, 0, .14), transparent);
}
/* BNI spine bar down the binding edge */
.leaf-front::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 6px; z-index: 4;
  background: linear-gradient(var(--bni-red), var(--bni-red-dark));
}
/* fold / curve shading — fades in only while a page is mid-turn */
.leaf-front::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .42) 0, rgba(0, 0, 0, .13) 14%, rgba(0, 0, 0, 0) 40%),
    linear-gradient(270deg, rgba(0, 0, 0, .20) 0, rgba(0, 0, 0, 0) 20%);
  opacity: 0; transition: opacity .45s ease;
}
.flip-page.turning .leaf-front::after { opacity: 1; }

.flip-page .page-tag {
  position: absolute; top: 18px; right: 22px; font-size: 12px; font-weight: 700;
  letter-spacing: .5px; color: var(--grey); text-transform: uppercase;
}

/* cover + back pages */
.flip-cover, .flip-back {
  background: radial-gradient(1000px 400px at 80% -20%, rgba(255,255,255,.14), transparent 60%),
    linear-gradient(140deg, #cf2030 0%, #a5121f 60%, #7d0d18 100%);
  color: #fff; align-items: center; justify-content: center; text-align: center;
}
.flip-cover::before, .flip-back::before { background: rgba(255,255,255,.25); }
.flip-cover .eyebrow, .flip-back .eyebrow {
  font-size: 13px; letter-spacing: 3px; text-transform: uppercase; font-weight: 700; opacity: .9;
}
.flip-cover h3 { font-size: clamp(1.8rem, 4.4vw, 3rem); margin: 14px 0 10px; line-height: 1.1; }
.flip-cover p { max-width: 460px; color: rgba(255,255,255,.92); margin: 0 0 22px; }
.flip-cover .cover-stat { display: flex; gap: 30px; margin-top: 10px; }
.flip-cover .cover-stat .n { font-family: "Poppins",sans-serif; font-weight: 800; font-size: 2rem; line-height: 1; }
.flip-cover .cover-stat .l { font-size: 12px; letter-spacing: .5px; text-transform: uppercase; opacity: .85; }
.flip-hint { margin-top: 26px; font-size: 13px; font-weight: 600; opacity: .85; display: inline-flex; align-items: center; gap: 8px; }

/* category page */
.flip-cat-head { display: flex; align-items: center; gap: 14px; margin: 6px 0 20px; padding-left: 12px; }
.flip-cat-head .cat-ic { width: 46px; height: 46px; border-radius: 12px; background: rgba(207,32,48,.1); color: var(--bni-red); display: grid; place-items: center; flex: none; }
.flip-cat-head .cat-ic svg { width: 26px; height: 26px; }
.flip-cat-head h3 { font-size: clamp(1.3rem, 2.6vw, 1.8rem); margin: 0; }
.flip-cat-head .cat-sub { font-size: 12.5px; color: var(--grey); font-weight: 600; }
.flip-list { display: grid; gap: 10px; padding-left: 12px; }
.flip-row {
  display: flex; align-items: center; gap: 13px; padding: 10px 13px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, transform .12s ease;
}
.flip-row:hover { border-color: var(--bni-red); box-shadow: var(--shadow); transform: translateX(2px); }
.flip-row .avatar, .flip-row .avatar-fallback { width: 52px; height: 52px; box-shadow: 0 0 0 2px rgba(207,32,48,.15); flex: none; }
.flip-row .avatar-fallback { font-size: 18px; }
.flip-row .fr-main { flex: 1 1 auto; min-width: 0; }
.flip-row .fr-spec { font-family: "Poppins",sans-serif; font-weight: 700; font-size: 1rem; color: var(--ink); line-height: 1.2; }
.flip-row .fr-name { font-size: 13px; color: var(--grey); margin-top: 2px; }
.flip-row .fr-name b { color: #333; font-weight: 600; }
.flip-row .fr-right { text-align: right; flex: none; }
.flip-row .stars { color: #f5a623; font-size: 13px; letter-spacing: 1px; white-space: nowrap; }
.flip-row .fr-phone { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; color: var(--bni-red); margin-top: 3px; }
.flip-row .fr-phone svg { width: 13px; height: 13px; }
.flip-badges { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 14px 0 0; padding: 12px 12px 0; border-top: 1px dashed var(--line); }
.flip-badges .b { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; color: var(--grey); }
.flip-badges .b svg { width: 15px; height: 15px; color: var(--bni-red); }

/* back / join page */
.flip-back h3 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); margin: 8px 0 12px; }
.flip-back p { max-width: 440px; color: rgba(255,255,255,.92); margin: 0 auto 22px; }
.flip-back .qr { background: #fff; padding: 12px; border-radius: 14px; width: 150px; height: 150px; margin: 4px 0 18px; box-shadow: var(--shadow); }
.flip-back .qr img { width: 100%; height: 100%; }
.flip-back .join-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.flip-back .join-meet { margin-top: 20px; font-size: 13.5px; opacity: .9; }

/* nav + controls */
.flip-nav {
  flex: none; width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  background: #fff; color: var(--bni-red); box-shadow: var(--shadow); display: grid; place-items: center;
  transition: background .15s ease, color .15s ease, transform .12s ease;
}
.flip-nav:hover { background: var(--bni-red); color: #fff; transform: scale(1.06); }
.flip-nav svg { width: 24px; height: 24px; }
.flip-nav:disabled { opacity: .35; cursor: default; }
.flip-controls { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 26px; }
.flip-dots { display: flex; gap: 9px; }
.flip-dots button {
  width: 10px; height: 10px; border-radius: 50%; border: 0; background: #cdced2; cursor: pointer; padding: 0;
  transition: background .15s ease, transform .15s ease;
}
.flip-dots button.on { background: var(--bni-red); transform: scale(1.25); }
.flip-counter { font-size: 13px; font-weight: 600; color: var(--grey); }

@media (max-width: 760px) {
  .flip-stage { height: 560px; max-width: 100%; }
  .leaf-front { padding: 26px 18px; }
  .flip-nav { width: 42px; height: 42px; }
  .flip-cat-head .cat-ic { width: 40px; height: 40px; }
  .flip-row {
    display: grid; grid-template-columns: auto 1fr;
    grid-template-areas: "av main" "av meta"; column-gap: 11px; row-gap: 4px;
    padding: 11px 12px; align-items: center;
  }
  .flip-row > .avatar, .flip-row > .avatar-fallback { grid-area: av; width: 46px; height: 46px; align-self: start; }
  .flip-row .fr-main { grid-area: main; }
  .flip-row .fr-right { grid-area: meta; text-align: left; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
  .flip-row .fr-right .stars { flex: none; }
  .flip-row .fr-phone { margin-top: 0; flex: none; white-space: nowrap; }
  .flip-row .fr-spec { font-size: .92rem; }
  .flip-row .fr-name { font-size: 12px; }
  .flip-row .fr-phone { font-size: 12.5px; }
}

/* ---------- CTA band + footer ---------- */
.cta-band { background: var(--ink); color: #fff; padding: 66px 0; text-align: center; }
.cta-band h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin: 0 0 12px; }
.cta-band p { color: rgba(255,255,255,.75); max-width: 560px; margin: 0 auto 28px; font-size: 1.08rem; }
.map-link {
  display: block;
  width: min(720px, 100%);
  margin: 0 auto 28px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(0,0,0,.26);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.map-link:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.38);
  box-shadow: 0 22px 52px rgba(0,0,0,.34);
}
.map-link img { width: 100%; aspect-ratio: 23 / 8; object-fit: cover; object-position: center; }
.cta-band .hero-cta { justify-content: center; }

.site-footer { background: #111114; color: rgba(255,255,255,.7); padding: 50px 0 30px; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 34px; }
.site-footer .brand img { height: 48px; filter: brightness(0) invert(1); opacity: .95; }
.site-footer h4 { color: #fff; font-size: 15px; margin: 0 0 14px; font-family: "Poppins", sans-serif; }
.site-footer a { display: block; color: rgba(255,255,255,.7); margin-bottom: 9px; }
.site-footer a:hover { color: #fff; }
.footer-note { text-align: center; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12.5px; color: rgba(255,255,255,.5); }
.footer-note a { color: rgba(255,255,255,.7); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .site-header .wrap { grid-template-columns: auto 1fr auto; }
  .nav-links { display: none; }
  .header-cta { display: none; }
  .nav-toggle { display: block; }
  .value-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .modal-header { flex-direction: column; text-align: center; }
  .profile-hero-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding: 28px 22px;
  }
  .profile-actions { justify-content: center; }
}
@media (max-width: 640px) {
  .member-headline {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .member-logo img { height: 72px; }
}
@media (min-width: 500px) { .brand .brand-sub { display: block; } }
