/* ==========================================================================
   BookMyGroomer shared base. Loaded last on every front-end page.
   One font, one set of colours, readable text and large tap targets,
   so every page feels like the same site and is easy for older visitors.
   Selectors use body:not(.wp-admin) and !important only where older
   stylesheets force their own values with !important.
   ========================================================================== */

:root {
  --bmg-font: "DM Sans", Arial, sans-serif;
  --bmg-navy: #10223f;
  --bmg-text: #26324a;
  --bmg-muted: #4f5a6d;
  --bmg-orange: #ff8a1f;
  --bmg-orange-text: #b4530a;
  --bmg-cream: #fbf7ef;
  --bmg-line: #e7e1d7;
  --bmg-radius: 18px;
  --bmg-focus: #b4530a;
}

/* One font everywhere. Inter was named in the old CSS but never loaded, so most pages fell back to Arial. */
body:not(.wp-admin),
body:not(.wp-admin) :is(button, input, select, textarea) {
  font-family: var(--bmg-font);
}

body:not(.wp-admin) :is(h1, h2, h3, h4, .listing-card-business-name) {
  font-family: var(--bmg-font) !important;
  letter-spacing: -0.02em;
}

/* Clear keyboard focus on every control. */
body:not(.wp-admin) :is(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--bmg-focus) !important;
  outline-offset: 3px;
}

/* Big, easy tap targets for buttons and form fields. */
body:not(.wp-admin) main :is(.btn, button, input[type="submit"], select, input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="tel"], input[type="url"]) {
  min-height: 48px;
}

body:not(.wp-admin) main :is(input, select, textarea) {
  font-size: 17px !important;
}

/* Readable minimum text sizes. */
body:not(.wp-admin) main label,
body:not(.wp-admin) main .field-group > span {
  font-size: 16px !important;
  font-weight: 700;
  color: var(--bmg-navy) !important;
}

body:not(.wp-admin) main small {
  font-size: 15px !important;
}

body:not(.wp-admin) :is(.bmg-section-label, .eyebrow, .detail-kicker) {
  font-size: 14px !important;
  letter-spacing: 0.06em;
}

/* Pet Pro cards: used on the home page, directory, service and city pages. */
body:not(.wp-admin) .listing-card-local-title {
  font-size: 14px !important;
  letter-spacing: 0.04em;
  color: var(--bmg-orange-text) !important;
}

body:not(.wp-admin) .listing-card-business-name {
  font-size: 21px !important;
  line-height: 1.25;
}

body:not(.wp-admin) .listing-card-area-line,
body:not(.wp-admin) .listing-card-services p {
  font-size: 16px !important;
  line-height: 1.5;
}

body:not(.wp-admin) .listing-card .listing-card-services > span,
body:not(.wp-admin) .listing-card-services > span {
  font-size: 14px !important;
  color: var(--bmg-navy) !important;
}

body:not(.wp-admin) .listing-card-profile-link {
  min-height: 48px;
  font-size: 17px !important;
}

/* Directory: search form and results. */
body:not(.wp-admin) .bmg-directory-intro p,
body:not(.wp-admin) .bmg-directory-search__heading p,
body:not(.wp-admin) .bmg-directory-search__footer,
body:not(.wp-admin) .bmg-directory-search__footer span {
  font-size: 16px !important;
}

body:not(.wp-admin) .bmg-service-search__footer,
body:not(.wp-admin) .bmg-service-search__footer :is(span, a) {
  font-size: 16px !important;
}

body:not(.wp-admin) .page-numbers {
  min-width: 48px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}

/* Pet Pro profile. */
body:not(.wp-admin) .bmg-pc {
  --pc-muted: var(--bmg-muted);
  background-color: var(--bmg-cream);
  background-image: none;
}

body:not(.wp-admin) .bmg-pc :is(p, li, dd) {
  font-size: max(1em, 16px);
}

body:not(.wp-admin) .bmg-pc dt {
  font-size: 15px !important;
}

body:not(.wp-admin) .bmg-pc .bmg-crumbs a,
body:not(.wp-admin) .bmg-pc nav[aria-label="Breadcrumb"] :is(a, span) {
  font-size: 15px !important;
}

/* Plain pages: About, Contact, legal, insurance and resources. */
body:not(.wp-admin).page :is(.entry-content, .page-content, .content-shell) > p,
body:not(.wp-admin).page :is(.entry-content, .page-content, .content-shell) > ul li {
  font-size: 18px !important;
  line-height: 1.7;
  max-width: 68ch;
}

body:not(.wp-admin) .contact-email-link {
  font-size: 18px !important;
  display: inline-block;
  padding: 10px 0;
  overflow-wrap: anywhere;
}

/* Join page: plan cards, progress line and small text links. */
body:not(.wp-admin) .bmg-register-progress,
body:not(.wp-admin) .bmg-register-progress span,
body:not(.wp-admin) .bmg-price-card-topline,
body:not(.wp-admin) .bmg-price-card-price span,
body:not(.wp-admin) .bmg-price-card-assurance {
  font-size: 15px !important;
}

body:not(.wp-admin) :is(.bmg-join-help-link, .bmg-join-text-link) {
  display: inline-block;
  padding: 10px 0;
  font-size: 16px !important;
}

/* Visible breadcrumbs outside the guides pages. */
.bmg-crumbs--page {
  margin: 0 0 14px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* Link chips: cities, services and suggestions (moved from home.css). */

.bmg-city-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bmg-city-chips a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--bmg-line);
  border-radius: 999px;
  background: #fff;
  color: var(--bmg-navy);
  font-weight: 600;
  text-decoration: none;
}

.bmg-city-chips a:hover {
  border-color: var(--bmg-navy);
}

/* ==========================================================================
   Pet care search (home page and directory).
   ========================================================================== */

.bmg-finder {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--bmg-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(16, 34, 63, 0.12);
  text-align: left;
}

.bmg-finder fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

body:not(.wp-admin) .bmg-finder :is(legend, .bmg-finder__legend) {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  padding: 0;
  color: var(--bmg-navy) !important;
  font-size: 18px !important;
  font-weight: 800;
}

.bmg-finder__num {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bmg-orange);
  color: #1b1206;
  font-size: 15px;
  font-weight: 800;
}

.bmg-finder__options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

body:not(.wp-admin) .bmg-finder .bmg-finder__option {
  position: relative;
  margin: 0;
  font-size: 17px !important;
}

.bmg-finder__option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.bmg-finder__option span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 52px;
  padding: 8px 12px;
  border: 2px solid #d6cfc3;
  border-radius: 12px;
  background: #fff;
  color: var(--bmg-navy);
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}

.bmg-finder__option span:hover {
  border-color: var(--bmg-orange);
}

.bmg-finder__option input:checked + span {
  border-color: var(--bmg-orange);
  background: #fff3e6;
}

.bmg-finder__option input:checked + span::before {
  content: "✓";
  color: var(--bmg-orange-text);
  font-weight: 800;
}

.bmg-finder__option input:focus-visible + span {
  outline: 3px solid var(--bmg-focus);
  outline-offset: 3px;
}

.bmg-finder__where {
  display: flex;
  gap: 10px;
}

body:not(.wp-admin) .bmg-finder__where input {
  flex: 1;
  min-width: 0;
  min-height: 56px;
  padding: 0 16px;
  border: 2px solid #d6cfc3;
  border-radius: 12px;
  background: #fff;
  color: var(--bmg-navy);
  font-size: 18px !important;
}

.bmg-finder__where input:focus {
  border-color: var(--bmg-orange);
}

body:not(.wp-admin) .bmg-finder .bmg-finder__go {
  min-height: 56px;
  padding: 0 26px;
  border-radius: 12px;
  font-size: 18px;
  white-space: nowrap;
}

body:not(.wp-admin) .bmg-finder .bmg-finder__hint {
  margin: 8px 0 0;
  color: var(--bmg-muted) !important;
  font-size: 15px !important;
}

.bmg-finder__more summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--bmg-orange-text);
  font-size: 16px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

body:not(.wp-admin) .bmg-finder__more label {
  display: block;
  margin: 6px 0;
}

body:not(.wp-admin) .bmg-finder__more label span {
  color: var(--bmg-muted);
  font-weight: 400;
}

.bmg-finder__more input {
  box-sizing: border-box;
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 2px solid #d6cfc3;
  border-radius: 12px;
}

/* Directory placement and result line. */
.bmg-directory-finder {
  margin-top: 24px;
}

body:not(.wp-admin) .bmg-directory-finder__note {
  margin: 12px 4px 0;
  color: var(--bmg-muted) !important;
  font-size: 16px !important;
}

.bmg-result-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin: 0 0 24px;
  padding: 16px 20px;
  border: 1px solid var(--bmg-line);
  border-radius: 14px;
  background: var(--bmg-cream);
}

body:not(.wp-admin) .bmg-result-line p {
  margin: 0;
  color: var(--bmg-navy) !important;
  font-size: 20px !important;
}

.bmg-result-line a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--bmg-orange-text);
  font-size: 17px;
  font-weight: 700;
}

.bmg-no-results-summary .bmg-city-chips {
  margin-top: 12px;
}

@media (max-width: 640px) {
  .bmg-finder {
    padding: 16px;
  }

  .bmg-finder__options {
    grid-template-columns: 1fr 1fr;
  }

  .bmg-finder__where {
    flex-direction: column;
  }

  body:not(.wp-admin) .bmg-finder .bmg-finder__go {
    width: 100%;
    justify-content: center;
  }
}

/* Rotating Pet Pro cards: hidden ones stay hidden even when card styles set display. */
[data-bmg-rotate] > [hidden] {
  display: none !important;
}

/* Mobile menu: frosted bar, line icons, pill behind the current section. */
@media (max-width: 920px) {
  body:not(.wp-admin) .bmg-bottom-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    left: 10px !important;
    right: 10px !important;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    min-height: 0 !important;
    gap: 0 !important;
    padding: 6px 4px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    -webkit-backdrop-filter: saturate(1.8) blur(18px);
    backdrop-filter: saturate(1.8) blur(18px);
    border: 1px solid rgba(16, 34, 63, 0.08) !important;
    border-radius: 24px !important;
    box-shadow: 0 12px 32px rgba(16, 34, 63, 0.16) !important;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  body:not(.wp-admin) .bmg-bottom-nav.is-tucked {
    transform: translateY(calc(100% + 24px));
    opacity: 0;
    pointer-events: none;
  }
  body:not(.wp-admin) .bmg-bottom-nav .bmg-bottom-nav__item,
  body:not(.wp-admin) .bmg-bottom-nav .bmg-bottom-nav__item:is(:visited, :hover, :focus) {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px !important;
    min-height: 56px !important;
    padding: 4px 0 !important;
    background: transparent !important;
    color: #4a5568 !important;
    font-family: var(--bmg-font, "DM Sans", system-ui, sans-serif);
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    text-decoration: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent;
  }
  body:not(.wp-admin) .bmg-bottom-nav .bmg-bottom-nav__item::after { display: none !important; }
  body:not(.wp-admin) .bmg-bottom-nav .bmg-bottom-nav__icon {
    display: grid !important;
    place-items: center;
    width: 54px !important;
    height: 30px !important;
    border-radius: 999px;
    background: transparent !important;
    color: inherit !important;
    transition: background-color 0.2s ease, transform 0.15s ease;
  }
  body:not(.wp-admin) .bmg-bottom-nav .bmg-bottom-nav__icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  body:not(.wp-admin) .bmg-bottom-nav .bmg-bottom-nav__item.is-active {
    color: #b4530a !important;
    font-weight: 700 !important;
  }
  body:not(.wp-admin) .bmg-bottom-nav .bmg-bottom-nav__item.is-active .bmg-bottom-nav__icon {
    background: #ffe9d1 !important;
  }
  body:not(.wp-admin) .bmg-bottom-nav .bmg-bottom-nav__item.is-active svg { stroke-width: 2.2; }
  body:not(.wp-admin) .bmg-bottom-nav .bmg-bottom-nav__item:active .bmg-bottom-nav__icon { transform: scale(0.92); }
  body:not(.wp-admin) .bmg-bottom-nav .bmg-bottom-nav__item:focus-visible {
    outline: 3px solid #1d4ed8 !important;
    outline-offset: -3px;
    border-radius: 16px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  body:not(.wp-admin) .bmg-bottom-nav,
  body:not(.wp-admin) .bmg-bottom-nav .bmg-bottom-nav__icon { transition: none; }
}

/* Profile sharing: quiet button, clear panel with four big choices. */
body:not(.wp-admin) .bmg-pc-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  margin-top: 12px;
  padding: 8px 16px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #17324d;
  font: 600 16px/1.2 var(--bmg-font);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
body:not(.wp-admin) .bmg-pc-share:hover { background: #f1f6f8; }
.bmg-pc-share svg,
.bmg-pc-bar-share svg,
.bmg-share svg {
  flex: none;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body:not(.wp-admin) .bmg-pc-claim .bmg-pc-share { width: auto; align-self: flex-start; margin-top: 6px; padding-left: 0; }
body:not(.wp-admin) .bmg-pc-claim .bmg-pc-claim-share { margin: 18px 0 0 !important; padding-top: 16px; border-top: 1px dashed #c9dbe2; }
body:not(.wp-admin) .bmg-pc-claim .bmg-pc-claim-share:first-child { margin-top: 0 !important; padding-top: 0; border-top: 0; }
.bmg-pc-bar-share { display: none; }
@media (max-width: 920px) {
  body:not(.wp-admin) .bmg-pc-bar .bmg-pc-bar-share {
    display: inline-flex;
    flex: 0 0 64px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 48px;
    padding: 4px;
    border: 2px solid #17324d;
    border-radius: 14px;
    background: #fff;
    color: #17324d;
    font: 600 13px/1 var(--bmg-font);
    cursor: pointer;
  }
}

.bmg-share {
  width: min(440px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  padding: 24px;
  border: 0;
  border-radius: 20px;
  background: #fff;
  color: #17324d;
  font-family: var(--bmg-font);
  box-shadow: 0 24px 60px rgba(16, 34, 63, 0.28);
}
.bmg-share::backdrop { background: rgba(16, 34, 63, 0.5); }
.bmg-share__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
body:not(.wp-admin) .bmg-share h2 { margin: 4px 0 0; font-size: 22px; line-height: 1.25; color: #17324d; }
.bmg-share__close {
  flex: none;
  width: 44px;
  height: 44px;
  margin: -6px -8px 0 0;
  border: 0;
  border-radius: 50%;
  background: #f1f6f8;
  color: #17324d;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.bmg-share__lead { margin: 8px 0 18px; font-size: 17px; line-height: 1.5; color: #45566b; }
.bmg-share__options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
body:not(.wp-admin) .bmg-share__opt {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 10px 14px;
  border: 2px solid #dbe4ee;
  border-radius: 14px;
  background: #fff;
  color: #17324d !important;
  font: 600 17px/1.2 var(--bmg-font);
  text-decoration: none !important;
  cursor: pointer;
}
body:not(.wp-admin) .bmg-share__opt:hover { border-color: #17324d; background: #f8fafc; }
.bmg-share__opt.is-whatsapp svg { color: #128c4b; }
.bmg-share__opt.is-facebook svg { color: #1877f2; }
.bmg-share__opt.is-email svg,
.bmg-share__opt.is-copy svg { color: #b4530a; }
.bmg-share__label { display: block; margin: 18px 0 6px; font-size: 15px; font-weight: 600; color: #45566b; }
.bmg-share__link {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #dbe4ee;
  border-radius: 12px;
  background: #f8fafc;
  color: #17324d;
  font: 16px/1.3 var(--bmg-font);
}
.bmg-share__status { min-height: 1.4em; margin: 10px 0 0; font-size: 16px; font-weight: 600; color: #166534; }
@media (max-width: 380px) {
  .bmg-share { padding: 20px 16px; }
  .bmg-share__options { grid-template-columns: 1fr; }
}

/* Pet Pro stats: summary, value labels, ring chart, busy times, free-plan preview. */
.bmg-ps-highlights {
  margin: 0 0 14px;
  padding: 14px 18px;
  border: 1px solid #cfe0ee;
  border-radius: 12px;
  background: #f5f9fc;
}
.bmg-ps-highlights ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.bmg-ps .bmg-ps-highlights li { margin: 0; font-size: 1rem; line-height: 1.45; color: #10223f; }
.bmg-ps-chart .val { font-size: 11px; font-weight: 700; fill: #10223f; }
.bmg-ps-chart .bar { fill: #0072B2; }
.bmg-ps-donut { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; align-items: center; }
.bmg-ps-donut svg { width: 140px; height: 140px; }
.bmg-ps-donut .big { font-size: 24px; font-weight: 800; fill: #10223f; }
.bmg-ps-donut .small { font-size: 11px; fill: #5a6a80; }
.bmg-ps-donut ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.bmg-ps .bmg-ps-donut li { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 8px; align-items: center; margin: 0; font-size: 0.9375rem; }
.bmg-ps-donut i { width: 14px; height: 14px; border-radius: 4px; }
.bmg-ps-heat { display: grid; grid-template-columns: 38px repeat(8, minmax(0, 1fr)); gap: 3px; align-items: center; }
.bmg-ps-heat .hour { font-size: 11px; color: #5a6a80; text-align: center; }
.bmg-ps-heat .day { font-size: 0.8125rem; font-weight: 700; color: #10223f; }
.bmg-ps-heat .cell { display: block; height: 24px; border-radius: 4px; }
.bmg-ps-table { margin-top: 10px; }
.bmg-ps-table summary { cursor: pointer; color: #0759a6; font-weight: 700; font-size: 0.875rem; }
.bmg-ps-table table { width: 100%; margin-top: 8px; border-collapse: collapse; font-size: 0.875rem; }
.bmg-ps-table th { text-align: left; color: #5a6a80; font-weight: 700; padding: 4px 0; }
.bmg-ps-table td { padding: 6px 0; border-top: 1px solid #e4e8ee; }
.bmg-ps-table th + th, .bmg-ps-table td + td { text-align: right; }
.bmg-ps-upsell { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 20px; align-items: center; }
.bmg-ps-upsell__peek {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
}
.bmg-ps-upsell__peek .k { font-size: 0.8125rem; font-weight: 700; color: #dce6f0; }
.bmg-ps-upsell__peek .row { display: block; height: 14px; border-radius: 4px; background: rgba(255, 255, 255, 0.1); }
.bmg-ps-upsell__peek .row i { display: block; height: 14px; border-radius: 4px; background: #56B4E9; filter: blur(2px); opacity: 0.8; }
.bmg-ps-upsell__peek .lock {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -30%);
  padding: 4px 12px;
  border-radius: 999px;
  background: #ff8a1f;
  color: #10223f;
  font-size: 0.8125rem;
  font-weight: 800;
}
@media (max-width: 720px) {
  .bmg-ps-upsell { grid-template-columns: 1fr; }
  .bmg-ps-donut { grid-template-columns: 1fr; justify-items: center; }
  .bmg-ps-heat { grid-template-columns: 32px repeat(8, minmax(0, 1fr)); gap: 2px; }
  .bmg-ps-heat .hour { font-size: 9px; }
}
/* The theme's heading colour rule is !important; keep this heading white on the dark box. */
body:not(.wp-admin) .bmg-ps .bmg-ps-upsell h3 { color: #fff !important; }
