/* Global CTA hierarchy overrides */
.btn-primary {
  background-color: #000;
  border-color: #000;
  color: #fff;
  box-shadow: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease,
    transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-check:checked + .btn-primary,
.btn-primary.active,
.show > .btn-primary.dropdown-toggle {
  background-color: #111;
  border-color: #111;
  color: #fff;
}

.btn-primary:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.2);
}

/* Secondary / less-important actions */
.btn-outline-primary {
  background-color: transparent;
  border-color: #000;
  color: #000;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-check:checked + .btn-outline-primary,
.btn-outline-primary.active,
.show > .btn-outline-primary.dropdown-toggle {
  background-color: #000;
  border-color: #000;
  color: #fff;
}

[data-bs-theme='dark'] .btn-primary:not([data-bs-theme='light']) {
  background-color: #fff;
  border-color: #fff;
  color: #121519;
}

[data-bs-theme='dark'] .btn-primary:not([data-bs-theme='light']):hover,
[data-bs-theme='dark'] .btn-primary:not([data-bs-theme='light']):focus,
[data-bs-theme='dark'] .btn-primary:not([data-bs-theme='light']):active,
[data-bs-theme='dark'] .btn-check:checked + .btn-primary:not([data-bs-theme='light']),
[data-bs-theme='dark'] .btn-primary.active:not([data-bs-theme='light']),
[data-bs-theme='dark'] .show > .btn-primary.dropdown-toggle:not([data-bs-theme='light']) {
  background-color: #f2f2f2;
  border-color: #f2f2f2;
  color: #121519;
}

[data-bs-theme='dark'] .btn-primary:not([data-bs-theme='light']):focus-visible {
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.3);
}

[data-bs-theme='dark'] .btn-outline-primary:not([data-bs-theme='light']) {
  border-color: #fff;
  color: #fff;
}

[data-bs-theme='dark'] .btn-outline-primary:not([data-bs-theme='light']):hover,
[data-bs-theme='dark'] .btn-outline-primary:not([data-bs-theme='light']):focus,
[data-bs-theme='dark'] .btn-outline-primary:not([data-bs-theme='light']):active,
[data-bs-theme='dark'] .btn-check:checked + .btn-outline-primary:not([data-bs-theme='light']),
[data-bs-theme='dark'] .btn-outline-primary.active:not([data-bs-theme='light']),
[data-bs-theme='dark'] .show > .btn-outline-primary.dropdown-toggle:not([data-bs-theme='light']) {
  background-color: #fff;
  border-color: #fff;
  color: #121519;
}

/* Placenta benefits icon tile background */
.benefit-icon {
  display: inline-block;
  width: 56px;
  height: 56px;
  background-color: transparent;
  border: 0;
  border-radius: 0;
  padding: 4px;
  box-shadow: none;
  object-fit: contain;
}

[data-bs-theme='light'] .pricing-location-icon {
  background-color: #fff !important;
  border: 1px solid rgba(18, 21, 25, 0.12);
}

[data-bs-theme='dark'] .pricing-location-icon {
  background-color: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

[data-bs-theme='light'] .pricing-location-pin {
  color: var(--ar-primary) !important;
}

[data-bs-theme='dark'] .pricing-location-pin {
  color: #fff !important;
}

[data-bs-theme='light'] .location-font {
  color: #121519 !important;
}

[data-bs-theme='light'] .pricing-amount {
  color: #121519 !important;
  font-weight: 700;
  font-size: 33px;
  line-height: 1.1;
}

[data-bs-theme='light'] .pricing-text {
  margin-top: 30px;
  margin-bottom: 30px;
}

[data-bs-theme='light'] .pricing-suffix {
  color: #576071 !important;
  font-weight: 500;
  font-size: 19px;
}

[data-bs-theme='dark'] .pricing-amount {
  color: #fff !important;
  font-weight: 700;
  font-size: 33px;
  line-height: 1.1;
}

[data-bs-theme='dark'] .pricing-text {
  margin-top: 30px;
  margin-bottom: 30px;
}

[data-bs-theme='dark'] .pricing-suffix {
  color: rgba(255, 255, 255, 0.72) !important;
  font-weight: 500;
  font-size: 19px;
}

[data-bs-theme='dark'] .benefit-icon {
  filter: brightness(0) invert(1);
}


[data-bs-theme='dark'] .steps-arrow {
  color: #fff !important;
}

[data-bs-theme='dark'] .service-option-check {
  color: #fff !important;
}

/* Services page: What Is Placenta Encapsulation (dark mode) */
[data-bs-theme='dark'] .what-is-placenta-section {
  background-color: var(--ar-secondary-bg) !important;
}

[data-bs-theme='dark'] .reviews-hero-bg {
  background-color: var(--ar-secondary-bg) !important;
  background-image: none !important;
  opacity: 1 !important;
}

[data-bs-theme='dark'] .what-is-placenta-section h1,
[data-bs-theme='dark'] .what-is-placenta-section h2,
[data-bs-theme='dark'] .what-is-placenta-section h1 span,
[data-bs-theme='dark'] .what-is-placenta-section p {
  color: #fff !important;
}

/* Contact-style clickable links */
a[href^='mailto:'],
a[href^='sms:'],
a[href^='tel:'],
.text-phone {
  color: #121519 !important;
  text-decoration: underline !important;
  text-underline-offset: 2px;
}

[data-bs-theme='dark'] a[href^='mailto:'],
[data-bs-theme='dark'] a[href^='sms:'],
[data-bs-theme='dark'] a[href^='tel:'],
[data-bs-theme='dark'] .text-phone {
  color: #fff !important;
  text-decoration: underline !important;
}

/* Footer link hover: monochrome, no purple */
footer .nav-link {
  color: rgba(255, 255, 255, 0.78) !important;
}

footer .nav-link:hover,
footer .nav-link:focus {
  color: #fff !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

html[data-bs-theme='dark'] footer .bg-blue[data-bs-theme='dark'] {
  background-color: var(--ar-secondary-bg) !important;
}

html[data-bs-theme='light'] footer .bg-blue[data-bs-theme='dark'] {
  background-color: #14181d !important;
}

/* Footer social icons: Google + Instagram should not link or turn purple */
footer .btn-google,
footer .btn-instagram {
  pointer-events: none;
  cursor: default;
}

footer .btn-google:hover,
footer .btn-google:focus,
footer .btn-google:active,
footer .btn-instagram:hover,
footer .btn-instagram:focus,
footer .btn-instagram:active {
  color: inherit !important;
  background-color: var(--ar-secondary) !important;
  border-color: var(--ar-secondary) !important;
  box-shadow: none !important;
}

[data-bs-theme='dark'] footer .btn-google:hover,
[data-bs-theme='dark'] footer .btn-google:focus,
[data-bs-theme='dark'] footer .btn-google:active,
[data-bs-theme='dark'] footer .btn-instagram:hover,
[data-bs-theme='dark'] footer .btn-instagram:focus,
[data-bs-theme='dark'] footer .btn-instagram:active {
  background-color: var(--ar-secondary-bg) !important;
  border-color: var(--ar-secondary-bg) !important;
}

/* Review slider pagination bullets */
[data-bs-theme='light'] .review-swiper .swiper-pagination-bullet {
  background-color: #000 !important;
  opacity: 0.35;
}

[data-bs-theme='light'] .review-swiper .swiper-pagination-bullet-active {
  opacity: 1;
}

/* Navbar logo size override across breakpoints */
.navbar-brand img {
  height: 1.25rem !important;
  max-height: 1.25rem !important;
}

@media (max-width: 991.98px) {
  .navbar-brand img {
    height: 1.15rem !important;
    max-height: 1.15rem !important;
  }
}

[data-bs-theme='dark'] .review-swiper .swiper-pagination-bullet {
  background-color: #edcb50 !important;
  opacity: 0.45;
}

[data-bs-theme='dark'] .review-swiper .swiper-pagination-bullet-active {
  opacity: 1;
}

html[data-bs-theme='light']
  .badge.fs-xl.bg-primary.text-white.mb-3.mb-lg-4.d-dark-mode-none {
  background-color: #14181d !important;
  border-color: #14181d !important;
}

html[data-bs-theme='light'] .process-step-number {
  background-color: #14181d !important;
  border-color: #14181d !important;
}

/* Animated nav pill indicator */
header .navbar-nav.nav-pill-enabled {
  position: relative;
}

header .navbar-nav .nav-pill-link {
  position: relative;
  z-index: 1;
  border-radius: 999px;
}

header .navbar-nav .nav-pill-indicator {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  transform: translate(0, 0);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  transition: transform 220ms ease, width 220ms ease, height 220ms ease, opacity 180ms ease,
    background-color 180ms ease, box-shadow 180ms ease;
}

header .navbar-nav .nav-pill-indicator.no-anim {
  transition: none !important;
}

html[data-bs-theme='light'] header .navbar-nav .nav-pill-indicator {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.54) 0%,
    rgba(255, 255, 255, 0.22) 55%,
    rgba(255, 255, 255, 0.34) 100%
  );
  box-shadow: 0 10px 24px rgba(18, 21, 25, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

html[data-bs-theme='dark'] header .navbar-nav .nav-pill-indicator {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.24) 0%,
    rgba(255, 255, 255, 0.11) 55%,
    rgba(255, 255, 255, 0.2) 100%
  );
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

@media (max-width: 991.98px) {
  header .navbar-nav .nav-pill-indicator {
    display: none !important;
  }
}

@media (min-width: 576px) and (max-width: 991.98px) {
  header .navbar > .container > .navbar-brand {
    order: 0;
  }

  header .navbar > .container > a.btn.btn-primary.btn-sm {
    order: 1;
    margin-left: auto !important;
    margin-right: 0.75rem !important;
  }

  header .navbar > .container > .mode-switch {
    order: 2;
    margin-left: 0 !important;
    margin-right: 0.75rem !important;
  }

  header .navbar > .container > .navbar-toggler {
    order: 3;
  }
}

@media (min-width: 992px) {
  header .navbar > .container {
    position: relative;
  }

  header .navbar > .container > .navbar-collapse {
    position: absolute !important;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: max-content;
    flex: 0 0 auto;
    margin: 0 !important;
  }

  header .navbar > .container > .navbar-collapse .navbar-nav.navbar-nav-scroll {
    width: max-content;
    margin: 0 !important;
  }

  header .navbar > .container > a.btn.btn-primary.btn-sm {
    margin-left: 0.75rem !important;
    margin-right: 0 !important;
  }

  header .navbar > .container > .mode-switch {
    margin-left: auto !important;
    margin-right: 0 !important;
  }
}

/* Header navigation: monochrome hover/focus states */
.navbar .navbar-nav .nav-link {
  font-size: 15px !important;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: #121519 !important;
}

.navbar .nav-item:hover > .nav-link:not(.disabled),
.navbar .nav-item .nav-link.show:not(.disabled),
.navbar .nav-item.active > .nav-link:not(.disabled) {
  color: #121519 !important;
}

[data-bs-theme='dark'] .navbar .nav-link:hover,
[data-bs-theme='dark'] .navbar .nav-link:focus {
  color: #fff !important;
}

[data-bs-theme='dark'] .navbar .nav-item:hover > .nav-link:not(.disabled),
[data-bs-theme='dark'] .navbar .nav-item .nav-link.show:not(.disabled),
[data-bs-theme='dark'] .navbar .nav-item.active > .nav-link:not(.disabled) {
  color: #fff !important;
}

/* Theme toggle: remove purple accent in all states */
.form-switch.mode-switch {
  align-items: center;
}

.form-switch.mode-switch .form-check-label {
  font-size: 0.8rem !important;
  line-height: 1 !important;
}

.form-switch.mode-switch .form-check-label i {
  display: inline-block !important;
  color: currentColor !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.form-switch.mode-switch .form-check-label:first-of-type {
  margin-right: 0.375rem !important;
}

.form-switch.mode-switch .form-check-label:last-of-type {
  margin-left: 0.375rem !important;
}

.form-switch.mode-switch .form-check-input {
  width: 1.875em !important;
  height: 1.125rem !important;
  margin-top: 0 !important;
  border-radius: 1.875em !important;
}

.form-switch.mode-switch .form-check-label:first-of-type,
.form-switch.mode-switch .form-check-input:checked ~ .form-check-label:last-of-type {
  color: #121519 !important;
}

.form-switch.mode-switch .form-check-input:checked {
  background-color: #121519 !important;
  border-color: #121519 !important;
}

[data-bs-theme='dark'] .form-switch.mode-switch .form-check-label:first-of-type {
  color: rgba(255, 255, 255, 0.72) !important;
}

[data-bs-theme='dark'] .form-switch.mode-switch .form-check-input:checked ~ .form-check-label:last-of-type {
  color: #fff !important;
}

[data-bs-theme='dark'] .form-switch.mode-switch .form-check-input:checked {
  background-color: #fff !important;
  border-color: #fff !important;
  --ar-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23121519'/%3e%3c/svg%3e");
}

[data-bs-theme='dark'] .form-switch.mode-switch .form-check-input {
  background-color: rgba(255, 255, 255, 0.26) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
}

[data-bs-theme='dark'] .form-switch.mode-switch .form-check-input:not(:checked):not(:focus) {
  --ar-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23ffffff'/%3e%3c/svg%3e");
}

/* Global button scale-down for a cleaner, less aggressive CTA look */
.btn:not(.btn-icon) {
  font-size: 0.95rem !important;
  padding: calc(0.55rem + 3px) 0.95rem !important;
  font-weight: 600 !important;
}

.btn-sm:not(.btn-icon) {
  font-size: 0.875rem !important;
  padding: calc(0.45rem + 3px) 0.8rem !important;
  font-weight: 600 !important;
}

.btn-md:not(.btn-icon) {
  font-weight: 600 !important;
}

.btn-lg:not(.btn-icon) {
  font-size: 1rem !important;
  padding: calc(0.7rem + 3px) 1.1rem !important;
  font-weight: 600 !important;
}

.banner-text {
  font-weight: 600 !important;
}

.step-pill {
  font-size: 18px !important;
  padding: 0.58em 0.88em !important;
}

/* Home reviews: graceful fallback when Swiper does not initialize (e.g., cached/blocked JS on deploy) */
@media (min-width: 992px) {
  .review-swiper:not(.swiper-initialized) {
    overflow: visible;
  }

  .review-swiper:not(.swiper-initialized) .swiper-wrapper {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }

  .review-swiper:not(.swiper-initialized) .swiper-slide {
    width: auto;
  }
}

@media (max-width: 991.98px) {
  .review-swiper-mobile:not(.swiper-initialized) .swiper-wrapper {
    display: block;
  }

  .review-swiper-mobile:not(.swiper-initialized) .swiper-slide {
    width: auto;
    margin-bottom: 1rem;
  }
}

/* Service process slider fallback when Swiper fails to initialize */
.process-swiper-fallback .swiper:not(.swiper-initialized) {
  overflow: hidden;
}

.process-swiper-fallback .swiper:not(.swiper-initialized) .swiper-wrapper {
  display: flex;
  gap: 25px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.process-swiper-fallback .swiper:not(.swiper-initialized) .swiper-wrapper::-webkit-scrollbar {
  display: none;
}

.process-swiper-fallback .swiper:not(.swiper-initialized) .swiper-slide {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

[data-bs-theme='dark'] .faq-decor-arrow {
  color: #fff !important;
}
