/* =========================================================
   Bolton Lake Dental — Service page layout + Nav dropdown
   Layered on top of colors_and_type.css, kit.css, landing.css
   ========================================================= */

/* ---------- NAV DROPDOWN (shared with Landing) ----------- */
.bld-nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.bld-nav-item > .bld-nav-link {
  cursor: pointer;
}
.bld-nav-item > .bld-nav-link::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  opacity: 0.55;
  transition: transform .18s ease, opacity .18s ease;
}
.bld-nav-item.is-open > .bld-nav-link::after,
.bld-nav-item:hover  > .bld-nav-link::after {
  opacity: 1;
  transform: translateY(0) rotate(225deg);
}

.bld-megamenu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  transform: translateY(8px);
  width: min(960px, 92vw);
  max-width: calc(100vw - 48px);
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
  padding: 28px 32px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s ease, transform .18s ease;
  z-index: 30;
}
.bld-nav-item:hover .bld-megamenu,
.bld-nav-item.is-open .bld-megamenu,
.bld-megamenu:hover {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* invisible hover bridge so the menu doesn't snap closed
   when crossing the gap between trigger and panel */
.bld-megamenu::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}

.bld-mm-col-head {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.55;
  padding-bottom: 10px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--hairline-soft);
}

.bld-mm-link {
  display: block;
  text-decoration: none;
  color: var(--ink);
  padding: 8px 10px;
  margin: 0 -10px;
  border-radius: 8px;
  transition: background-color .12s ease;
}
.bld-mm-link:hover {
  background: var(--surface-soft);
}
.bld-mm-link-h {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.1px;
  line-height: 1.25;
  color: var(--ink);
}
.bld-mm-link-sub {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 330;
  letter-spacing: -0.06px;
  line-height: 1.3;
  color: var(--ink);
  opacity: 0.55;
  margin-top: 2px;
}

/* ---------- SERVICE PAGE — HERO ----------- */
.sp-hero {
  background: var(--block-blush);
  padding: clamp(48px, 7vw, 96px) clamp(24px, 5vw, 80px);
}
.sp-hero-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.sp-hero-copy { min-width: 0; }
.sp-hero-eye {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 18px;
}
.sp-hero-eye .sp-hero-eye-sep {
  display: inline-block;
  width: 18px;
  height: 1px;
  background: currentColor;
  vertical-align: middle;
  margin: 0 10px;
  opacity: 0.55;
}
.sp-hero-h {
  font-family: var(--font-sans);
  font-size: clamp(56px, 8vw, 104px);
  font-weight: 340;
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0;
}
.sp-hero-h em {
  font-style: italic;
  font-weight: 380;
  color: var(--accent-coral);
}
.sp-hero-sub {
  font-family: var(--font-sans);
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 330;
  line-height: 1.4;
  letter-spacing: -0.18px;
  margin: 24px 0 32px;
  max-width: 52ch;
  opacity: 0.78;
}
.sp-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.sp-hero-cta .lp-btn-outline {
  background: transparent;
  border: 1px solid rgba(0,0,0,0.3);
  color: var(--ink);
  padding: 10px 20px;
}
.sp-hero-cta .lp-btn-outline:hover {
  background: rgba(0,0,0,0.04);
}

.sp-hero-media {
  position: relative;
  aspect-ratio: 4 / 5;
  width: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(0,0,0,0.04);
  box-shadow: 0 24px 80px rgba(0,0,0,0.10);
}
.sp-hero-media image-slot {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 28px;
}
.sp-hero-media .sp-hero-tag {
  position: absolute;
  left: 18px;
  bottom: 18px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  z-index: 2;
  pointer-events: none;
}

/* ---------- BREADCRUMBS ----------- */
.sp-crumbs {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px clamp(24px, 5vw, 80px) 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.55;
}
.sp-crumbs a {
  color: inherit;
  text-decoration: none;
}
.sp-crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.sp-crumbs-sep {
  display: inline-block;
  margin: 0 10px;
  opacity: 0.6;
}

/* ---------- CONTENT ----------- */
.sp-content {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(64px, 8vw, 112px) 24px;
}
.sp-content-eye {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 18px;
}
.sp-content-h {
  font-family: var(--font-sans);
  font-size: clamp(36px, 4.2vw, 52px);
  font-weight: 340;
  letter-spacing: -0.018em;
  line-height: 1.08;
  margin: 0 0 32px;
}
.sp-content-h em {
  font-style: italic;
  font-weight: 380;
  color: var(--accent-coral);
}
.sp-content p {
  font-family: var(--font-sans);
  font-size: 19px;
  font-weight: 320;
  line-height: 1.55;
  letter-spacing: -0.18px;
  margin: 0 0 20px;
}
.sp-content p:last-child { margin-bottom: 0; }

/* ---------- RELATED ----------- */
.sp-related {
  background: var(--surface-soft);
  border-top: 1px solid var(--hairline);
  padding: clamp(64px, 8vw, 96px) clamp(24px, 5vw, 80px);
}
.sp-related-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.sp-related-eye {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 12px;
}
.sp-related-h {
  font-family: var(--font-sans);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 340;
  letter-spacing: -0.018em;
  line-height: 1.1;
  margin: 0 0 36px;
  max-width: 28ch;
}
.sp-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.sp-related-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 24px;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  text-decoration: none;
  color: var(--ink);
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.sp-related-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: rgba(0,0,0,0.16);
}
.sp-related-card-eye {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.55;
}
.sp-related-card-h {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.16px;
  line-height: 1.2;
  margin-top: 4px;
}
.sp-related-card-arrow {
  margin-top: auto;
  padding-top: 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.5;
}

/* ---------- CTA STRIP ----------- */
.sp-cta-strip {
  background: var(--block-cream);
  padding: clamp(48px, 6vw, 72px) clamp(24px, 5vw, 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.sp-cta-strip > div { max-width: 56ch; }
.sp-cta-strip h2 {
  font-family: var(--font-sans);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 340;
  letter-spacing: -0.018em;
  line-height: 1.08;
  margin: 0 0 8px;
}
.sp-cta-strip p {
  margin: 0;
  font-size: 18px;
  font-weight: 320;
  letter-spacing: -0.18px;
  opacity: 0.7;
}

/* ---------- BENEFITS GRID (used on Digital Anesthesia, etc.) ---------- */
.sp-benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 48px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 880px) {
  .sp-hero-grid { grid-template-columns: 1fr; }
  .sp-hero-media { aspect-ratio: 4 / 3; }
  .sp-related-grid { grid-template-columns: 1fr 1fr; }
  .bld-megamenu { grid-template-columns: 1fr 1fr; width: min(560px, 94vw); }
}
@media (max-width: 540px) {
  .sp-related-grid { grid-template-columns: 1fr; }
  .bld-megamenu { grid-template-columns: 1fr; width: min(360px, 94vw); }
  .sp-benefits-grid { grid-template-columns: 1fr; }
}
}
