/**
 * Commercial .bmd-page system — The Practice single-service / hub language.
 * Home + contact are theme templates and are not styled here.
 */

body.bmd-has-bmd-page,
body.bmd-has-custom-page {
  --bmd-header-offset: 0px;
}

.bmd-main--commercial .bmd-entry__content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.bmd-page {
  --bmd-ink: #141711;
  --bmd-muted: rgba(20, 23, 17, 0.62);
  --bmd-line: rgba(20, 23, 17, 0.12);
  --bmd-cream: #fbf6ee;
  --bmd-cream-2: #f4e6e0;
  --bmd-accent: #788c58;
  --bmd-lime: #e2e6a6;
  --bmd-blue: #d7e3ea;
  --bmd-wide: 88rem;
  color: var(--bmd-ink);
  font-family: "Switzer", system-ui, sans-serif;
  line-height: 1.65;
  background: transparent;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
.bmd-page * { box-sizing: border-box; }
.bmd-page em,
.bmd-page i {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
}

.bmd-page .bmd-wrap {
  width: min(100% - 2rem, var(--bmd-wide));
  margin-inline: auto;
}

/* ---------- Shared chrome ---------- */
.bmd-page .bmd-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 1.15rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(20, 23, 17, 0.7);
  text-decoration: none;
}
.bmd-page .bmd-back:hover { color: #141711; }

.bmd-page .bmd-eyebrow,
.bmd-page .bmd-chip {
  display: inline-flex !important;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.15rem !important;
  padding: 0.5rem 0.95rem !important;
  border-radius: 999px !important;
  background: rgba(251, 246, 238, 0.85) !important;
  border: 1px solid rgba(20, 23, 17, 0.1) !important;
  font-size: 0.84rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em !important;
  text-transform: none !important;
  color: #141711 !important;
}
.bmd-page .bmd-eyebrow::before,
.bmd-page .bmd-chip::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--bmd-accent);
  flex: 0 0 auto;
}

.bmd-page h1,
.bmd-page h2 {
  font-weight: 400 !important;
  letter-spacing: -0.04em;
  color: #141711 !important;
  line-height: 1.05 !important;
}
.bmd-page h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.35rem) !important;
  max-width: 14ch !important;
  margin: 0 0 1.15rem !important;
}
.bmd-page h2 {
  font-size: clamp(1.85rem, 3.8vw, 3rem) !important;
  max-width: 16ch !important;
  margin: 0 0 1.15rem !important;
}
.bmd-page h3 {
  font-weight: 500 !important;
  letter-spacing: -0.02em;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem) !important;
  line-height: 1.25;
  color: #141711 !important;
}
.bmd-page .bmd-lede,
.bmd-page .bmd-hero p:not(.bmd-disclaimer):not(.bmd-eyebrow):not(.bmd-trust) {
  color: rgba(20, 23, 17, 0.72) !important;
  max-width: 38ch !important;
  font-size: clamp(1.02rem, 1.35vw, 1.15rem) !important;
  line-height: 1.55;
  margin: 0 0 1.35rem;
}
.bmd-page p { color: rgba(20, 23, 17, 0.72); }

.bmd-page .bmd-cta-row,
.bmd-page .bmd-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.35rem;
  margin-top: 0.35rem;
}
.bmd-page .bmd-btn {
  border-radius: 999px !important;
  font-weight: 500 !important;
  letter-spacing: 0.01em;
  text-transform: none !important;
  min-height: 3rem;
  padding: 0.85rem 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  text-align: center;
  text-wrap: balance;
  line-height: 1.25;
  max-width: min(100%, 22rem);
  white-space: normal;
  hyphens: none;
  word-break: normal;
  overflow-wrap: break-word;
}
.bmd-page .bmd-btn-primary {
  background: #141711 !important;
  color: #fbf6ee !important;
  border: 0 !important;
}
.bmd-page .bmd-btn-primary:hover { background: #000 !important; color: #fbf6ee !important; }
.bmd-page .bmd-btn-secondary {
  background: transparent !important;
  color: #141711 !important;
  border: 0 !important;
  text-decoration: underline !important;
  text-underline-offset: 0.22em;
  padding-left: 0;
  padding-right: 0;
  min-height: auto;
  max-width: none;
}

/* ---------- Service hero (Practice photo panel) ---------- */
.bmd-page > .bmd-svc-hero,
.bmd-page > .bmd-hero.bmd-svc-hero {
  width: min(100% - 1.25rem, 92rem);
  margin: 1rem auto 0;
  min-height: clamp(28rem, 62vh, 40rem);
  border-radius: 1.75rem;
  overflow: hidden;
  position: relative;
  display: grid;
  background: #f4e6e0;
  border: 1px solid rgba(20, 23, 17, 0.06);
  color: #141711 !important;
}
@media (min-width: 900px) {
  .bmd-page > .bmd-svc-hero {
    grid-template-columns: minmax(20rem, 1fr) minmax(18rem, 1fr);
  }
}
.bmd-page .bmd-svc-hero__media {
  position: relative;
  min-height: 16rem;
  background-size: cover;
  background-position: center;
  order: 2;
}
.bmd-page .bmd-svc-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(244, 230, 224, 0.88) 0%, rgba(244, 230, 224, 0.2) 35%, rgba(244, 230, 224, 0) 60%);
  pointer-events: none;
}
@media (max-width: 899px) {
  .bmd-page .bmd-svc-hero__media {
    min-height: 14rem;
    order: -1;
  }
  .bmd-page .bmd-svc-hero__media::after {
    background: linear-gradient(180deg, rgba(244, 230, 224, 0.15) 0%, rgba(244, 230, 224, 0.55) 70%, rgba(244, 230, 224, 0.92) 100%);
  }
}
.bmd-page .bmd-svc-hero__content {
  position: relative;
  z-index: 2;
  padding: clamp(1.75rem, 3.5vw, 3rem) clamp(1.35rem, 3vw, 3rem) clamp(2rem, 4vw, 3.25rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(90deg, #f7ebe5 0%, #f4e6e0 100%);
}
.bmd-page .bmd-svc-hero .bmd-meta-pills {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.bmd-page .bmd-meta-pills li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(251, 246, 238, 0.82);
  border: 1px solid rgba(20, 23, 17, 0.1);
  font-size: 0.86rem;
  font-weight: 500;
  color: #141711;
}
.bmd-page .bmd-meta-pills li::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--bmd-accent);
}
.bmd-page .bmd-trust {
  margin: 1.15rem 0 0 !important;
  font-size: 0.9rem !important;
  color: rgba(20, 23, 17, 0.62) !important;
  max-width: none !important;
}
.bmd-page .bmd-svc-hero__watermark {
  position: absolute;
  left: 58%;
  right: 3%;
  bottom: 4%;
  z-index: 3;
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: clamp(1.5rem, 2.8vw, 2.5rem);
  line-height: 0.95;
  color: rgba(20, 23, 17, 0.16);
  pointer-events: none;
  text-align: right;
}
@media (max-width: 899px) {
  .bmd-page .bmd-svc-hero__watermark { display: none; }
}

/* Fallback light hero (hubs without photo) */
.bmd-page > .bmd-hero:not(.bmd-svc-hero) {
  width: min(100% - 1.25rem, 92rem);
  margin: 1rem auto 0;
  padding: clamp(2.5rem, 5vw, 4.25rem) clamp(1.35rem, 3vw, 3.25rem) clamp(3rem, 6vw, 4.75rem);
  border-radius: 1.75rem;
  position: relative;
  overflow: hidden;
  color: #141711 !important;
  background:
    linear-gradient(180deg, rgba(251, 246, 238, 0.92) 0%, rgba(239, 224, 216, 0.72) 100%) !important;
  border: 1px solid rgba(20, 23, 17, 0.06);
}
.bmd-page > .bmd-hero:not(.bmd-svc-hero)::after {
  content: "better mind daily.";
  position: absolute;
  right: 4%;
  bottom: 5%;
  width: min(42%, 18rem);
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  line-height: 0.95;
  color: rgba(20, 23, 17, 0.08);
  pointer-events: none;
  text-align: right;
}
.bmd-page > .bmd-hero:not(.bmd-svc-hero) .bmd-wrap {
  position: relative;
  z-index: 1;
  width: 65%;
  max-width: 65%;
  margin-left: 0;
  margin-right: auto;
}
@media (max-width: 899px) {
  .bmd-page > .bmd-hero:not(.bmd-svc-hero) .bmd-wrap {
    width: 100%;
    max-width: 100%;
  }
}
/* Hero copy should fill the 65% wrap — not a narrow 14ch/38ch column. */
.bmd-page > .bmd-hero:not(.bmd-svc-hero) h1 {
  max-width: none !important;
}
.bmd-page > .bmd-hero:not(.bmd-svc-hero) .bmd-lede,
.bmd-page > .bmd-hero:not(.bmd-svc-hero) p:not(.bmd-disclaimer):not(.bmd-eyebrow):not(.bmd-trust):not(.bmd-chip) {
  max-width: none !important;
}
.bmd-page .bmd-svc-hero__content h1 {
  max-width: none !important;
}
.bmd-page .bmd-svc-hero__content .bmd-lede,
.bmd-page .bmd-svc-hero__content p:not(.bmd-disclaimer):not(.bmd-eyebrow):not(.bmd-trust):not(.bmd-chip) {
  max-width: none !important;
}

/* ---------- Twin cards (checklist + topics) ---------- */
.bmd-page .bmd-twin {
  width: min(100% - 1.25rem, 92rem);
  margin: clamp(1.5rem, 3vw, 2.25rem) auto 0;
  display: grid;
  gap: 1rem;
}
@media (min-width: 900px) {
  .bmd-page .bmd-twin {
    grid-template-columns: 1fr 1fr;
  }
}
.bmd-page .bmd-twin__card {
  border-radius: 1.65rem;
  padding: clamp(1.5rem, 3vw, 2.35rem);
  border: 1px solid rgba(20, 23, 17, 0.07);
}
.bmd-page .bmd-twin__card--help {
  background: rgba(251, 246, 238, 0.92);
}
.bmd-page .bmd-twin__card--topics {
  background: var(--bmd-blue);
}
.bmd-page .bmd-twin__card h2 {
  max-width: 12ch !important;
  margin-bottom: 1.35rem !important;
  font-size: clamp(1.75rem, 3.2vw, 2.55rem) !important;
}
.bmd-page .bmd-check-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.bmd-page .bmd-check-list li {
  display: grid;
  grid-template-columns: 1.35rem minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  padding: 0.95rem 0;
  border-top: 1px solid rgba(20, 23, 17, 0.1);
  color: #141711;
  font-size: 1.02rem;
  line-height: 1.4;
}
.bmd-page .bmd-check-list li:last-child {
  border-bottom: 1px solid rgba(20, 23, 17, 0.1);
}
.bmd-page .bmd-check-list li::before {
  content: "";
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.1rem;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8' fill='%23788c58'/%3E%3Cpath d='M4.6 8.2l2.1 2.1 4.7-4.7' fill='none' stroke='%23fbf6ee' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
}
.bmd-page .bmd-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.bmd-page .bmd-topics span {
  display: inline-flex;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  background: rgba(251, 246, 238, 0.9);
  border: 1px solid rgba(20, 23, 17, 0.08);
  font-size: 0.92rem;
  font-weight: 500;
  color: #141711;
}

/* ---------- Split sections ---------- */
.bmd-page .bmd-split {
  width: min(100% - 1.25rem, 92rem);
  margin: clamp(2.25rem, 5vw, 3.75rem) auto 0;
  display: grid;
  gap: clamp(1.25rem, 3vw, 2.5rem);
}
@media (min-width: 960px) {
  .bmd-page .bmd-split {
    grid-template-columns: minmax(14rem, 0.85fr) minmax(0, 1.25fr);
    align-items: start;
  }
}
.bmd-page .bmd-split__aside h2 {
  max-width: 11ch !important;
}
.bmd-page .bmd-dark-card {
  margin-top: 1.35rem;
  padding: 1.15rem 1.25rem;
  border-radius: 1.25rem;
  background: #141711 !important;
  color: #fbf6ee !important;
}
.bmd-page .bmd-dark-card dl {
  margin: 0;
}
.bmd-page .bmd-dark-card .bmd-dark-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(251, 246, 238, 0.14);
}
.bmd-page .bmd-dark-card .bmd-dark-row:last-child { border-bottom: 0; }
.bmd-page .bmd-dark-card dt {
  margin: 0;
  font-size: 0.86rem;
  color: rgba(251, 246, 238, 0.78) !important;
}
.bmd-page .bmd-dark-card dd {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: #fbf6ee !important;
  text-align: right;
}
.bmd-page .bmd-split__main > h3 {
  margin: 1.5rem 0 0.65rem !important;
  font-size: clamp(1.25rem, 2.2vw, 1.65rem) !important;
  font-weight: 400 !important;
}
.bmd-page .bmd-split__main > h3:first-child { margin-top: 0 !important; }
.bmd-page .bmd-split__main > p {
  margin: 0 0 1rem;
  max-width: 52ch;
  font-size: 1.02rem;
}

/* Approach / deliverable cards */
.bmd-page .bmd-approach {
  display: grid;
  gap: 0.75rem;
}
.bmd-page .bmd-approach article {
  padding: 1.2rem 1.25rem;
  border-radius: 1.25rem;
  background: rgba(251, 246, 238, 0.72);
  border: 1px solid rgba(20, 23, 17, 0.08);
}
.bmd-page .bmd-approach article h3 {
  margin: 0 0 0.4rem !important;
}
.bmd-page .bmd-approach article p {
  margin: 0;
  color: var(--bmd-muted);
  max-width: none;
}

/* Hub card grid (services / industries) */
.bmd-page .bmd-hub-grid {
  width: min(100% - 1.25rem, 92rem);
  margin: clamp(1.5rem, 3vw, 2.5rem) auto 0;
  display: grid;
  gap: 1rem;
}
@media (min-width: 900px) {
  .bmd-page .bmd-hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.bmd-page .bmd-hub-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.45rem 1.4rem 1.55rem;
  border-radius: 1.45rem;
  background: rgba(251, 246, 238, 0.78);
  border: 1px solid rgba(20, 23, 17, 0.08);
  text-decoration: none !important;
  color: inherit;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), background 0.25s ease;
}
.bmd-page .bmd-hub-card:hover {
  transform: translateY(-2px);
  background: rgba(251, 246, 238, 0.95);
}
.bmd-page .bmd-hub-card .bmd-hub-card__kicker {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bmd-accent);
}
.bmd-page .bmd-hub-card h3 {
  margin: 0 !important;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem) !important;
  font-weight: 400 !important;
}
.bmd-page .bmd-hub-card p {
  margin: 0;
  color: var(--bmd-muted);
}

/* Legacy grid support */
.bmd-page .bmd-grid {
  display: grid !important;
  gap: 0.85rem !important;
  margin-top: 1.25rem;
  grid-template-columns: 1fr !important;
}
@media (min-width: 900px) {
  .bmd-page .bmd-grid {
    grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)) !important;
  }
}
.bmd-page .bmd-grid article {
  background: rgba(251, 246, 238, 0.72) !important;
  border: 1px solid rgba(20, 23, 17, 0.08) !important;
  border-radius: 1.25rem !important;
  padding: 1.25rem 1.2rem 1.35rem !important;
}
.bmd-page .bmd-grid h3 { margin: 0 0 0.45rem !important; }
.bmd-page .bmd-grid p { margin: 0; max-width: none !important; color: var(--bmd-muted) !important; }

/* Soft / plain sections */
.bmd-page section {
  padding: clamp(1.75rem, 3.5vw, 2.75rem) 0;
}
.bmd-page .bmd-soft,
.bmd-page section.bmd-soft {
  background: transparent !important;
  padding: clamp(1.75rem, 3.5vw, 2.75rem) 0 !important;
}
.bmd-page .bmd-soft .bmd-wrap,
.bmd-page section > .bmd-wrap {
  width: min(100% - 2rem, var(--bmd-wide));
  max-width: none;
}

/* FAQ */
.bmd-page .bmd-faq-block,
.bmd-page .bmd-wrap.bmd-faq,
.bmd-page .bmd-faq {
  width: min(100% - 1.25rem, 92rem) !important;
  margin: clamp(1.75rem, 4vw, 3rem) auto 0;
  max-width: none !important;
}
.bmd-page .bmd-faq-block {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 900px) {
  .bmd-page .bmd-faq-block {
    grid-template-columns: minmax(12rem, 0.75fr) minmax(0, 1.35fr);
    align-items: start;
  }
}
.bmd-page .bmd-faq-block__aside .bmd-chip { margin-bottom: 1rem !important; }
.bmd-page .bmd-faq-block__aside h2 { max-width: 10ch !important; }
.bmd-page .bmd-faq-block__aside p {
  max-width: 28ch;
  color: var(--bmd-muted);
}
.bmd-page .bmd-faq-item {
  padding: 1.2rem 0 !important;
  border-bottom: 1px solid var(--bmd-line);
}
.bmd-page .bmd-faq-item:first-of-type { border-top: 1px solid var(--bmd-line); }
@media (min-width: 900px) {
  .bmd-page .bmd-faq-item {
    display: grid;
    grid-template-columns: minmax(12rem, 0.9fr) minmax(0, 1.3fr);
    column-gap: 2rem;
    align-items: start;
  }
}
.bmd-page .bmd-faq-q {
  margin: 0 0 0.4rem !important;
  font-size: clamp(1.02rem, 1.5vw, 1.2rem) !important;
  font-weight: 500 !important;
  color: #141711 !important;
  max-width: none !important;
}
.bmd-page .bmd-faq-a {
  margin: 0 !important;
  color: rgba(20, 23, 17, 0.68) !important;
  font-size: 1.02rem !important;
  line-height: 1.55;
  max-width: none !important;
}

/* Related cards */
.bmd-page .bmd-related {
  width: min(100% - 1.25rem, 92rem);
  margin: clamp(2rem, 4vw, 3.25rem) auto 0;
}
.bmd-page .bmd-related > .bmd-chip { margin-bottom: 0.85rem !important; }
.bmd-page .bmd-related > h2 {
  max-width: 14ch !important;
  margin-bottom: 1.35rem !important;
}
.bmd-page .bmd-related-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .bmd-page .bmd-related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.bmd-page .bmd-related-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.25rem 1.2rem 1.35rem;
  border-radius: 1.35rem;
  background: rgba(251, 246, 238, 0.78);
  border: 1px solid rgba(20, 23, 17, 0.08);
  text-decoration: none !important;
  color: inherit;
  transition: transform 0.25s ease, background 0.25s ease;
}
.bmd-page .bmd-related-card:hover {
  transform: translateY(-2px);
  background: rgba(251, 246, 238, 1);
}
.bmd-page .bmd-related-card__kicker {
  margin: 0 0 0.45rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bmd-accent);
}
.bmd-page .bmd-related-card h3 {
  margin: 0 0 0.45rem !important;
  font-size: 1.25rem !important;
  font-weight: 400 !important;
}
.bmd-page .bmd-related-card p {
  margin: 0;
  color: var(--bmd-muted);
  font-size: 0.95rem;
}

/* Resource directory lists */
.bmd-page .bmd-resource-dirs {
  width: min(100% - 1.25rem, 92rem);
  margin: clamp(1.5rem, 3vw, 2.5rem) auto 0;
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 900px) {
  .bmd-page .bmd-resource-dirs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.bmd-page .bmd-resource-dir {
  padding: 1.35rem 1.3rem 1.45rem;
  border-radius: 1.35rem;
  background: rgba(251, 246, 238, 0.7);
  border: 1px solid rgba(20, 23, 17, 0.08);
}
.bmd-page .bmd-resource-dir h3 {
  margin: 0 0 0.85rem !important;
}
.bmd-page .bmd-resource-dir ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.bmd-page .bmd-resource-dir li {
  margin: 0;
  border-top: 1px solid rgba(20, 23, 17, 0.08);
}
.bmd-page .bmd-resource-dir a {
  display: block;
  padding: 0.75rem 0;
  color: #141711;
  text-decoration: none;
  font-weight: 500;
}
.bmd-page .bmd-resource-dir a:hover { opacity: 0.7; }

/* CTA band */
.bmd-page .bmd-cta-band {
  width: min(100% - 1.25rem, 92rem);
  margin: clamp(2rem, 4vw, 3.25rem) auto 0 !important;
  padding: clamp(2.25rem, 4.5vw, 3.5rem) !important;
  border-radius: 1.75rem !important;
  background: rgba(251, 246, 238, 0.88) !important;
  border: 1px solid rgba(20, 23, 17, 0.08);
  color: var(--bmd-ink) !important;
}
.bmd-page .bmd-cta-band h2 {
  max-width: 16ch !important;
  color: #141711 !important;
}
.bmd-page .bmd-cta-band p { color: rgba(20, 23, 17, 0.72) !important; }
.bmd-page .bmd-cta-band .bmd-btn-primary {
  background: #141711 !important;
  color: #fbf6ee !important;
}
.bmd-page .bmd-cta-band .bmd-btn-secondary {
  color: #141711 !important;
}

body.bmd-has-bmd-page .elementor-location-header,
body.bmd-has-custom-page .elementor-location-header { display: none !important; }

/* ---------- Work / case study project cards ---------- */
.bmd-page .bmd-projects {
  width: min(100% - 1.25rem, var(--bmd-wide));
  margin-inline: auto;
}
.bmd-page .bmd-project {
  display: grid !important;
  grid-template-columns: 1.1fr 0.9fr !important;
  gap: clamp(1.35rem, 3vw, 2.5rem) !important;
  align-items: center;
  margin: 0 0 clamp(1.75rem, 3vw, 2.75rem);
  padding: clamp(1.15rem, 2.2vw, 1.65rem) !important;
  background: rgba(251, 246, 238, 0.88) !important;
  border: 1px solid rgba(20, 23, 17, 0.08) !important;
  border-radius: 1.65rem !important;
  box-shadow: none !important;
}
@media (max-width: 900px) {
  .bmd-page .bmd-project { grid-template-columns: 1fr !important; }
}
.bmd-page .bmd-project-media a {
  display: block;
  overflow: hidden;
  border-radius: 1.25rem;
  background: #ebe4db;
}
.bmd-page .bmd-project-media img,
.bmd-page .bmd-project-hero-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.bmd-page .bmd-project-label {
  margin: 0 0 0.75rem !important;
  color: var(--bmd-accent) !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
}
.bmd-page .bmd-project h3 {
  margin: 0 0 0.85rem !important;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem) !important;
  font-weight: 400 !important;
  max-width: none !important;
  line-height: 1.2 !important;
}
.bmd-page .bmd-project h3 a {
  color: inherit !important;
  text-decoration: none !important;
}
.bmd-page .bmd-project-lede,
.bmd-page .bmd-project-body {
  margin: 0 0 1rem !important;
  max-width: 54ch !important;
  color: rgba(20, 23, 17, 0.72) !important;
  font-size: 1.02rem !important;
}
.bmd-page .bmd-project-services {
  margin: 0 0 1.35rem !important;
  padding: 0 !important;
  list-style: none !important;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 1rem;
}
@media (max-width: 640px) {
  .bmd-page .bmd-project-services { grid-template-columns: 1fr; }
}
.bmd-page .bmd-project-services li {
  margin: 0 !important;
  padding-left: 0.95rem;
  position: relative;
  color: #141711;
  font-size: 0.9rem;
  line-height: 1.4;
}
.bmd-page .bmd-project-services li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--bmd-accent);
}
.bmd-page .bmd-project-full {
  margin: 0 0 clamp(1.75rem, 3vw, 2.75rem);
  padding: 0;
}
.bmd-page .bmd-project-full a { display: block; }
.bmd-page .bmd-project-full img,
.bmd-page .bmd-project-full-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 34rem;
  object-fit: cover;
  object-position: top center;
  border-radius: 1.65rem;
  border: 1px solid rgba(20, 23, 17, 0.08);
}
.bmd-page .bmd-project-full figcaption {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  font-weight: 500;
}
.bmd-page .bmd-project-full figcaption a {
  color: #141711;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* ---------- About page: pillars + team ---------- */
.bmd-page .bmd-pillars {
  display: grid !important;
  gap: 0.85rem;
  margin-top: 1.75rem;
  width: 100% !important;
  max-width: none !important;
}
@media (min-width: 900px) {
  .bmd-page .bmd-pillars {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  /*
   * Plugin soft-wrap rule (bmd-pages.css) forces a 2-col grid on wraps with h2+p.
   * That traps .bmd-pillars in one narrow column. Match/exceed that specificity
   * and force a full-width stack + full-bleed pillars row.
   */
  .bmd-page .bmd-soft > .bmd-wrap:not(:has(.bmd-grid)):not(:has(ul)):not(:has(.bmd-steps)):not(:has(form)):has(> h2):has(> p):has(> .bmd-pillars),
  .bmd-page .bmd-soft > .bmd-wrap:has(> .bmd-pillars) {
    display: block !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
  }
  .bmd-page .bmd-soft > .bmd-wrap:has(> .bmd-pillars) > .bmd-chip,
  .bmd-page .bmd-soft > .bmd-wrap:has(> .bmd-pillars) > p.bmd-chip,
  .bmd-page .bmd-soft > .bmd-wrap:has(> .bmd-pillars) > h2,
  .bmd-page .bmd-soft > .bmd-wrap:has(> .bmd-pillars) > .bmd-pillars {
    grid-column: 1 / -1 !important;
    max-width: none !important;
  }
  .bmd-page .bmd-soft > .bmd-wrap:has(> .bmd-pillars) > h2 {
    max-width: min(22ch, 100%) !important;
    margin-bottom: 0.35rem !important;
  }
  .bmd-page .bmd-soft > .bmd-wrap:has(> .bmd-pillars) > .bmd-pillars {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    width: 100% !important;
  }
}
.bmd-page .bmd-pillar {
  padding: 1.4rem 1.3rem 1.55rem;
  border-radius: 1.35rem;
  background: rgba(251, 246, 238, 0.78);
  border: 1px solid rgba(20, 23, 17, 0.08);
}
.bmd-page .bmd-pillar__num {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--bmd-accent);
}
.bmd-page .bmd-pillar h3 {
  margin: 0 0 0.55rem !important;
  font-size: 1.2rem !important;
  font-weight: 500 !important;
}
.bmd-page .bmd-pillar p {
  margin: 0;
  color: rgba(20, 23, 17, 0.68);
  max-width: none;
}

.bmd-page .bmd-team {
  width: min(100% - 1.25rem, var(--bmd-wide));
  margin: 1.5rem auto 0;
  display: grid;
  gap: 1.25rem;
}
.bmd-page .bmd-team-card {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.1rem, 2vw, 1.5rem);
  border-radius: 1.65rem;
  background: rgba(251, 246, 238, 0.85);
  border: 1px solid rgba(20, 23, 17, 0.08);
}
@media (min-width: 900px) {
  .bmd-page .bmd-team-card {
    grid-template-columns: minmax(14rem, 0.85fr) minmax(0, 1.15fr);
    align-items: center;
  }
  .bmd-page .bmd-team-card--reverse {
    grid-template-columns: minmax(0, 1.15fr) minmax(14rem, 0.85fr);
  }
  .bmd-page .bmd-team-card--reverse .bmd-team-card__media { order: 2; }
  .bmd-page .bmd-team-card--reverse .bmd-team-card__body { order: 1; }
}
.bmd-page .bmd-team-card__media {
  overflow: hidden;
  border-radius: 1.25rem;
  background: #ebe4db;
  min-height: 16rem;
}
.bmd-page .bmd-team-card__media img,
.bmd-page .bmd-team-card__media video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 18rem;
  object-fit: cover;
}
.bmd-page .bmd-team-card__role {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bmd-accent);
}
.bmd-page .bmd-team-card h3 {
  margin: 0 0 0.85rem !important;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem) !important;
  font-weight: 400 !important;
  max-width: none !important;
}
.bmd-page .bmd-team-card__body p {
  margin: 0 0 0.85rem;
  max-width: 54ch;
}
.bmd-page .bmd-team-card__body .bmd-cta-row {
  margin-top: 1.15rem;
}
.bmd-page .bmd-marina-connect {
  margin: 1.35rem 0 0.35rem;
  padding: 1.15rem 1.2rem 1.2rem;
  border-radius: 1.15rem;
  background: rgba(251, 246, 238, 0.85);
  border: 1px solid rgba(20, 23, 17, 0.08);
}
.bmd-page .bmd-marina-connect h4 {
  margin: 0 0 0.45rem !important;
  font-size: 1.15rem !important;
  font-weight: 500 !important;
  letter-spacing: -0.02em;
  color: #141711 !important;
}
.bmd-page .bmd-marina-connect p {
  margin: 0 !important;
  max-width: none !important;
  color: rgba(20, 23, 17, 0.68);
}

/* ---------- Pricing / fees (Practice fees pattern) ---------- */
.bmd-page--pricing > .bmd-fees-hero {
  width: min(100% - 1.25rem, 92rem);
  margin: 1rem auto 0;
  padding: clamp(2.75rem, 6vw, 4.75rem) clamp(1.35rem, 3vw, 3.25rem) clamp(3rem, 6vw, 5rem);
  border-radius: 1.75rem;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(251, 246, 238, 0.82) 0%, rgba(239, 224, 216, 0.62) 100%);
  border: 1px solid rgba(20, 23, 17, 0.06);
  color: #141711 !important;
}
.bmd-page .bmd-fees-hero__watermark {
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 3%;
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: clamp(3rem, 10vw, 7.5rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: rgba(20, 23, 17, 0.06);
  pointer-events: none;
}
.bmd-page .bmd-fees-hero__inner {
  position: relative;
  z-index: 1;
  width: 65%;
  max-width: 65%;
}
@media (max-width: 899px) {
  .bmd-page .bmd-fees-hero__inner {
    width: 100%;
    max-width: 100%;
  }
}
.bmd-page .bmd-fees-hero h1 {
  max-width: none !important;
}
.bmd-page .bmd-fees-hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(20, 23, 17, 0.1);
}
.bmd-page .bmd-fees-hero__meta p {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(20, 23, 17, 0.55);
  max-width: none;
}

.bmd-page .bmd-fees {
  width: min(100% - 1.25rem, 92rem);
  margin: clamp(2rem, 4vw, 3.25rem) auto 0;
}
.bmd-page .bmd-fees__head {
  max-width: 40rem;
  margin-bottom: 1.75rem;
}
.bmd-page .bmd-fees__head h2 {
  max-width: 14ch !important;
}
.bmd-page .bmd-fees-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 720px) {
  .bmd-page .bmd-fees-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1100px) {
  .bmd-page .bmd-fees-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.bmd-page .bmd-fee-card {
  padding: 1.45rem 1.35rem 1.55rem;
  border-radius: 1.45rem;
  background: rgba(251, 246, 238, 0.82);
  border: 1px solid rgba(20, 23, 17, 0.08);
}
.bmd-page .bmd-fee-card__price {
  margin: 0 0 0.85rem;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2.4rem, 4vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: #141711;
}
.bmd-page .bmd-fee-card__price span {
  font-family: var(--bmd-font-sans, "Switzer", system-ui, sans-serif);
  font-size: 1rem;
  font-style: normal;
  letter-spacing: 0;
  margin-left: 0.15rem;
  color: rgba(20, 23, 17, 0.55);
}
.bmd-page .bmd-fee-card h3 {
  margin: 0 0 0.55rem !important;
  font-size: 1.2rem !important;
  font-weight: 500 !important;
  max-width: none !important;
}
.bmd-page .bmd-fee-card p {
  margin: 0;
  color: var(--bmd-muted);
  max-width: none;
  font-size: 0.98rem;
}
