/* ==========================================================================
   mb-near-you.module — "Methylene Blue IV Therapy Near You"
   Figma: "Methylene Blue - Desktop" › Nearyou (13274:610)
   ========================================================================== */

.mb-near-you {
  --mb-blue: var(--color-blue-ocean, #0077BA);
  --mb-blue-dark: var(--color-blue-dark, #005381);
  --mb-blue-accent: #7FB4D8;
  --mb-blue-mid: #508AC5;
  --mb-blue-pale: #8CCAE5;
  --mb-card: #D5E9F4;
  --mb-bg-soft: #E7F2FA;
  --mb-text: #4A5B67;
  --mb-muted: #55697A;
  --mb-body: var(--color-gray-dark, #3C3C3C);
  --mb-orange: var(--color-cta-primary, #F96F48);
  --mb-orange-hover: var(--color-cta-primary-hover, #E05C34);
  --mb-font-head: 'Montserrat', sans-serif;
  --mb-font-body: 'Source Sans Pro', 'Lato', sans-serif;
  --mb-shell: 1200px;
  --mb-pad-y: 96px;
  --mb-pad-x: 120px;
  font-family: var(--mb-font-body);
  background: #FFFFFF;
  padding: var(--mb-pad-y) var(--mb-pad-x);
}

.mb-near-you,
.mb-near-you *,
.mb-near-you *::before,
.mb-near-you *::after {
  box-sizing: border-box;
}

/* The parent theme sets `li { margin: .7rem }`, which insets every grid and
   flex item by 11.2px per side and knocks card rows out of alignment with the
   full-width panels around them. Lists here space themselves with `gap`. */
.mb-near-you ul,
.mb-near-you ol {
  margin: 0;
  padding: 0;
}

.mb-near-you li {
  margin: 0;
}

.mb-near-you--bg-gradient {
  background: linear-gradient(124.09deg, #E7F2FA 0%, #D6E9F5 100%);
}

.mb-near-you--bg-white {
  background: #FFFFFF;
}

.mb-near-you__inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.mb-near-you__heading {
  margin: 0;
  font-family: var(--mb-font-head);
  font-weight: 600;
  font-size: 36px;
  line-height: 1.25;
  color: var(--mb-blue-dark);
}

.mb-near-you__heading-accent { color: var(--mb-blue-mid); }

.mb-near-you__subheading {
  margin: 0;
  max-width: 684px;
  color: #3D5261;
  font-size: 18px;
  line-height: 1.5;
}

.mb-near-you__regions {
  width: 100%;
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  max-width: 840px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.mb-near-you__region-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 16px;
  border: 1px solid var(--mb-card);
  border-radius: 999px;
  background: #FFFFFF;
  color: #005382;
  font-size: 16px;
  line-height: 1.5;
  text-decoration: none;
}

a.mb-near-you__region-pill:hover,
a.mb-near-you__region-pill:focus {
  border-color: var(--mb-blue);
  background: var(--mb-blue);
  color: #FFFFFF;
}

.mb-near-you__ctas {
  display: flex;
  justify-content: center;
  padding-top: 24px;
}

/* Shared CTA buttons — Figma: 8px/32px padding, 8px radius, 18px/1.5 label */
.mb-near-you__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 32px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-family: var(--mb-font-body);
  font-size: 18px;
  line-height: 1.5;
  font-weight: 400;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.mb-near-you__btn--primary {
  background: var(--mb-orange);
  color: #FFFFFF;
}

.mb-near-you__btn--primary:hover,
.mb-near-you__btn--primary:focus {
  background: var(--mb-orange-hover);
  color: #FFFFFF;
}

.mb-near-you__btn--outline {
  background: transparent;
  border-color: var(--mb-blue);
  color: var(--mb-blue);
}

.mb-near-you__btn--outline:hover,
.mb-near-you__btn--outline:focus {
  background: var(--mb-blue);
  color: #FFFFFF;
}


/* --------------------------------------------------------------------------
   Full-bleed inside drag-and-drop areas
   The parent @hubspot/growth theme gives .dnd-section side gutters, a centred
   max-width and vertical padding. This section is designed edge-to-edge, so it
   releases those constraints on the wrapper it sits in. :has() is already used
   this way in the theme — see pdp-hero.module.
   -------------------------------------------------------------------------- */
.dnd-section:has(.mb-near-you) {
  max-width: none !important;
  padding: 0 !important;
}

.dnd-section:has(.mb-near-you) > .row-fluid,
.dnd-section:has(.mb-near-you) .dnd-row,
.dnd-section:has(.mb-near-you) .dnd-column,
.dnd-section:has(.mb-near-you) .widget-span {
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Fallback for engines without :has() — 100vw overhangs by the scrollbar width,
   which child.css clips via `overflow-x: clip` on html/body. */
@supports not selector(:has(*)) {
  .mb-near-you {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50%% - 50vw);
    margin-right: calc(50%% - 50vw);
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .mb-near-you { padding: 64px var(--mb-pad-x); }
  .mb-near-you__heading { font-size: 30px; }
  .mb-near-you__regions { gap: 8px; }
}

@media (max-width: 599px) {
  .mb-near-you { padding: 48px var(--mb-pad-x); }
  .mb-near-you__heading { font-size: 26px; }
}

/* --------------------------------------------------------------------------
   Shared gutter scale — every mb-* section steps down together so blocks stay
   edge-aligned with each other at every width.
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .mb-near-you { --mb-pad-x: 40px; --mb-pad-y: 64px; }
}

@media (max-width: 599px) {
  .mb-near-you { --mb-pad-x: 20px; --mb-pad-y: 48px; }
}
