/* LOCALSEWA UI-05 v32.9.45 — single-load, cache-busting replacement stylesheet.
 * Based on approved v32.9.43 CSS. Keeps existing header/location/Popular Services
 * intact. Crucial deployment change: unique new filename in index.html.
 * DO NOT load both the old localsewa-ui05-popular-hero-v32.9.33.css and this file.
 */
/* Localsewa UI-05 v32.9.33 — TWO approved homepage refinements only.
 * 1. Popular Services: one heading + existing See all link.
 *    Card DOM, classes, styling, assets, routes, counts and loading states untouched.
 * 2. Shorter desktop/tablet hero through natural padding, NOT fixed height.
 * Requirements: live UI-04 v32.9.30 hero styling + latest v32.9.32 location/account.
 * Place as LAST stylesheet in <head>.
 */
html body #root .ls-customer-home .ls-home-popular {
  --ls-ui05-loaded: v32933;
}
/* Title-only heading. Never hide paragraph text inside a service card. */
html body #root .ls-customer-home .ls-home-popular-header > div:first-child > p.ls-home-popular-eyebrow,
html body #root .ls-customer-home .ls-home-popular-header > div:first-child > p:not(.ls-home-popular-eyebrow) {
  display: none !important;
}
/* Align See all beside the single title; overrule older phone absolute placement. */
html body #root .ls-customer-home .ls-home-popular-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
}
html body #root .ls-customer-home .ls-home-popular-header > div:first-child {
  min-width: 0 !important;
  padding-right: 0 !important;
}
html body #root .ls-customer-home .ls-home-popular-header .ls-home-popular-see-all {
  position: static !important;
  inset: auto !important;
  align-self: center !important;
  flex: 0 0 auto !important;
  white-space: nowrap !important;
}
/* Retain the 1280px hero width, background, Live Directory dimensions,
 * title font and location-picker behavior. Tighten ONLY vertical white space. */
@media (min-width: 1200px) {
  html body #root .ls-customer-home .ls-home-hero > .ls-home-hero-inner {
    padding-top: 28px !important;
    padding-bottom: 28px !important;
    min-height: 0 !important;
    height: auto !important;
  }
  html body #root .ls-customer-home .ls-home-hero button.ls-home-location-control {
    margin-bottom: 18px !important;
  }
}
@media (min-width: 1024px) and (max-width: 1199.98px) {
  html body #root .ls-customer-home .ls-home-hero > .ls-home-hero-inner {
    padding-top: 24px !important;
    padding-bottom: 24px !important;
    min-height: 0 !important;
    height: auto !important;
  }
  html body #root .ls-customer-home .ls-home-hero button.ls-home-location-control {
    margin-bottom: 16px !important;
  }
}
@media (min-width: 768px) and (max-width: 1023.98px) {
  html body #root .ls-customer-home .ls-home-hero > .ls-home-hero-inner {
    padding-top: 26px !important;
    padding-bottom: 38px !important;
    height: auto !important;
  }
}
/* On phones the previously-approved natural-height hero stays unchanged. */

/* UI-05 v32.9.36 | verified against uploaded public_html(3).zip
   Production JSX: ls-public-header is in the public layout, NOT nested in ls-customer-home.
   No JS, menu, address API, service card, or Live Directory changes. */

/* Markers for unambiguous live CSS verification (DevTools -> computed style). */
html body #root .ls-public-header { --ls-ui05-verified: v32936; }
html body #root .ls-customer-home .ls-home-hero { --ls-ui05-verified: v32936; }

/* Maintain hero text and the Live Directory at the same vertical start.
   Leave the location selector in its existing row, with consistent spacing. */
@media (min-width: 1024px) {
  html body #root .ls-customer-home .ls-home-hero > .ls-home-hero-inner {
    padding-top: 28px !important;
    padding-bottom: 30px !important;
    min-height: 0 !important;
    height: auto !important;
  }
  html body #root .ls-customer-home .ls-home-hero button.ls-home-location-control {
    margin-bottom: 18px !important;
  }
  html body #root .ls-customer-home .ls-home-hero .ls-home-hero-layout {
    align-items: start !important;
    column-gap: clamp(32px, 3.3vw, 54px) !important;
  }
  html body #root .ls-customer-home .ls-home-hero .ls-home-hero-layout > div:first-child {
    align-self: start !important;
    min-width: 0 !important;
  }
  html body #root .ls-customer-home .ls-home-hero .ls-home-hero-layout h1 {
    margin-top: 0 !important;
    margin-bottom: 12px !important;
  }
  html body #root .ls-customer-home .ls-home-hero .ls-home-hero-layout p.ls-home-hero-kicker {
    margin-top: 0 !important;
    margin-bottom: 12px !important;
  }
  html body #root .ls-customer-home .ls-home-hero .ls-home-hero-layout > div:first-child > p:not(.ls-home-hero-kicker) {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    max-width: 530px !important;
  }
  html body #root .ls-customer-home .ls-home-hero .ls-home-trust-points {
    margin-top: 20px !important;
  }
}

/* THE KEY FIX: header is a SIBLING of .ls-customer-home, not its descendant.
   Override the older .ls-public-desktop-actions > div > button pill rule.
   Keep the avatar, the first name and the existing account-menu onClick. */
html body #root .ls-public-header .ls-public-desktop-actions button.ls-loc-v2__account-trigger {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 9px !important;
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: 180px !important;
  height: 40px !important;
  min-height: 40px !important;
  margin: 0 !important;
  padding: 3px 0 3px 3px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  color: white !important;
  font: 600 13px/1.2 Inter, system-ui, sans-serif !important;
  white-space: nowrap !important;
  cursor: pointer;
}
html body #root .ls-public-header .ls-public-desktop-actions button.ls-loc-v2__account-trigger:hover,
html body #root .ls-public-header .ls-public-desktop-actions button.ls-loc-v2__account-trigger[aria-expanded="true"] {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
html body #root .ls-public-header .ls-public-desktop-actions button.ls-loc-v2__account-trigger:focus-visible {
  outline: 2px solid #fff !important;
  outline-offset: 3px !important;
  border-radius: 4px !important;
}
html body #root .ls-public-header .ls-public-desktop-actions .ls-loc-v2__account-avatar {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 30px !important;
  min-width: 30px !important;
  height: 30px !important;
  flex: 0 0 30px !important;
  padding: 0 !important;
  object-fit: cover !important;
  border: 0 !important;
  border-radius: 50% !important;
}
html body #root .ls-public-header .ls-public-desktop-actions .ls-loc-v2__account-name {
  display: block !important;
  min-width: 0 !important;
  max-width: 110px !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
  color: #fff !important;
}
html body #root .ls-public-header .ls-public-desktop-actions .ls-loc-v2__account-chevron {
  display: none !important;
}

/* UI-05 v32.9.37 | visual corrections verified against the actual
   index-v32.9.32-ui04-location-addresses.js hero and header DOM.
   No route, JS, location, Live Directory data or Popular Services logic changed. */
html body #root .ls-public-header { --ls-ui05-visual-fix: v32937; }
html body #root .ls-customer-home .ls-home-hero { --ls-ui05-visual-fix: v32937; }

/* 1) Balanced header right actions: do not move the approved center nav. */
@media (min-width: 1024px) {
  html body #root .ls-public-header .ls-ui02-header-actions {
    gap:clamp(12px,1.1vw,19px) !important;
  }
  html body #root .ls-public-header .ls-public-desktop-actions {
    margin-left:3px !important;
  }
  html body #root .ls-public-header .ls-public-desktop-actions button.ls-loc-v2__account-trigger {
    gap:10px !important;
    padding-left:4px !important;
  }
}
/* 2) Brand: a little larger, lighter, more legible. Keep official logo untouched. */
html body #root .ls-public-header .ls-ui02-brand-name,
html body #root .ls-public-header .ls-ui02-brand-name > span {
  font-family:'Plus Jakarta Sans',Inter,system-ui,sans-serif !important;
  font-size:20px !important;
  font-weight:700 !important;
  letter-spacing:-.024em !important;
  line-height:1.24 !important;
  text-shadow:none !important;
}
@media (min-width:1024px) and (max-width:1199.98px) {
  html body #root .ls-public-header .ls-ui02-brand-name,
  html body #root .ls-public-header .ls-ui02-brand-name > span { font-size:18.5px !important; }
}
@media (max-width:1023.98px) {
  html body #root .ls-public-header .ls-ui02-brand-name,
  html body #root .ls-public-header .ls-ui02-brand-name > span { font-size:17px !important; }
}
@media (max-width:359.98px) {
  html body #root .ls-public-header .ls-ui02-brand-name,
  html body #root .ls-public-header .ls-ui02-brand-name > span { font-size:16px !important; }
}

/* 3) Barlow heading: preserve tall letterforms, ease excessive heaviness. */
html body #root .ls-customer-home .ls-home-hero .ls-home-hero-layout h1 {
  font-weight:600 !important;
  letter-spacing:-.012em !important;
}
/* 4) Trust line: more breathing room before the description. */
html body #root .ls-customer-home .ls-home-hero .ls-home-hero-layout p.ls-home-hero-kicker {
  margin-bottom:20px !important;
}
@media (max-width:767.98px) {
  html body #root .ls-customer-home .ls-home-hero .ls-home-hero-layout p.ls-home-hero-kicker {
    margin-bottom:15px !important;
  }
}

/* 5) Directory: precise DOM is
  .ls-home-hero-layout > div:last-child > div(shell) > div(panel)
  > div:nth-child(2)(service grid) > a.
  Only the directory itself is targeted; Popular Services cards stay identical. */
@media (min-width:1024px) {
  html body #root .ls-customer-home .ls-home-hero .ls-home-hero-layout > div:last-child {
    align-self:start !important;
    justify-self:center !important;
    width:min(100%,548px) !important;
    margin-top:-12px !important;
    transform:translateY(-20px) !important;
    min-width:0 !important;
  }
}
html body #root .ls-customer-home .ls-home-hero .ls-home-hero-layout > div:last-child > div {
  background:rgba(3,77,36,.25) !important;
  border:1px solid rgba(224,255,233,.17) !important;
  border-radius:52px !important;
  padding:24px !important;
  box-shadow:0 6px 17px rgba(0,58,28,.08) !important;
  backdrop-filter:none !important;
}
html body #root .ls-customer-home .ls-home-hero .ls-home-hero-layout > div:last-child > div > div {
  background:#FFFFFF !important;
  border:1px solid #E0EDE4 !important;
  border-radius:28px !important;
  color:#102A1C !important;
  box-shadow:0 3px 12px rgba(6,49,27,.035) !important;
}
html body #root .ls-customer-home .ls-home-hero .ls-home-hero-layout > div:last-child > div > div > div:nth-child(2) > a {
  background:#F7FAF8 !important;
  border-color:#DEE9E2 !important;
  color:#173A27 !important;
}
html body #root .ls-customer-home .ls-home-hero .ls-home-hero-layout > div:last-child > div > div > div:nth-child(2) > a:hover {
  background:#EBF8F0 !important;
  border-color:#83CBA1 !important;
}
html body #root .ls-customer-home .ls-home-hero .ls-home-hero-layout > div:last-child > div > div > div:last-child {
  background:#103524 !important;
  color:#FFFFFF !important;
}


/* UI-05 v32.9.38 — approved final visual polish.
   Exact markup checked in index-v32.9.32-ui04-location-addresses.js:
   .ls-home-hero-layout > div:last-child > div(shell) > div(panel)
    > div:first-child(header row) > div:first-child > p('Live directory') + h2.
   Styling intentionally limited to this directory and the Popular Services See all link.
   No fake data, logic, service cards or other headings changed. */
html body #root .ls-customer-home .ls-home-hero { --ls-ui05-final-polish: v32938; }
html body #root .ls-customer-home .ls-home-hero .ls-home-hero-layout > div:last-child > div > div > div:first-child > div:first-child > p:first-child {
  display:none !important;
}
html body #root .ls-customer-home .ls-home-hero .ls-home-hero-layout > div:last-child > div > div > div:first-child > div:first-child > h2 {
  margin-top:0 !important;
}
/* Show a genuine underline across 'See all' and arrow on hover or keyboard focus,
   using a pseudo-element so the existing flex link does not lose its underline. */
html body #root .ls-customer-home .ls-home-popular-header a.ls-home-popular-see-all {
  position:relative !important;
  text-decoration:none !important;
}
html body #root .ls-customer-home .ls-home-popular-header a.ls-home-popular-see-all::after {
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-3px;
  height:1.5px;
  background:currentColor;
  opacity:0;
  transform:scaleX(.5);
  transform-origin:center;
  transition:opacity .16s ease, transform .16s ease;
  pointer-events:none;
}
html body #root .ls-customer-home .ls-home-popular-header a.ls-home-popular-see-all:hover::after,
html body #root .ls-customer-home .ls-home-popular-header a.ls-home-popular-see-all:focus-visible::after {
  opacity:1;
  transform:scaleX(1);
}
@media(prefers-reduced-motion:reduce){
  html body #root .ls-customer-home .ls-home-popular-header a.ls-home-popular-see-all::after { transition:none; }
}


/* UI-05 v32.9.40: approved customizer values from the user.
 * Only directory outer frame updated: 24px, 52px, dark transparent GREEN
 * (no whitish tint), subtle shadow; inner pure white at 28px radius.
 * Four service tiles remain off-white. Dynamic categories/data and all other
 * UI including See all hover underline, are unchanged. */
html body #root .ls-customer-home .ls-home-hero { --ls-ui05-directory-final: v32940; }

/* UI-05 v32.9.41: raise directory 20px on desktop; no other visual/functional changes. */
html body #root .ls-customer-home .ls-home-hero { --ls-ui05-directory-position: v32941; }

/* UI-05 v32.9.42 — proper desktop hero composition, no manual translate.
   Actual production structure: hero-inner > location-button + hero-layout > copy + directory.
   The location button is a first-row grid item; the directory spans both rows at their top.
   Desktop hero retains a ~500px minimum height, so Popular Services does not climb with the card.
   No JS, location behavior, services data, navigation or provider links touched. */
html body #root .ls-customer-home .ls-home-hero { --ls-ui05-structure: v32942; }
@media (min-width: 1024px) {
  html body #root .ls-customer-home .ls-home-hero > .ls-home-hero-inner {
    display: grid !important;
    grid-template-columns: minmax(0,1.12fr) minmax(340px,.88fr) !important;
    grid-template-rows: auto minmax(0,1fr) !important;
    column-gap: clamp(32px,3.3vw,54px) !important;
    align-items: start !important;
  }
  html body #root .ls-customer-home .ls-home-hero > .ls-home-hero-inner > .ls-home-location-control {
    grid-column: 1 !important;
    grid-row: 1 !important;
    justify-self: start !important;
    align-self: start !important;
  }
  html body #root .ls-customer-home .ls-home-hero .ls-home-hero-layout {
    display: contents !important;
  }
  html body #root .ls-customer-home .ls-home-hero .ls-home-hero-layout > div:first-child {
    grid-column: 1 !important;
    grid-row: 2 !important;
    align-self: start !important;
  }
  html body #root .ls-customer-home .ls-home-hero .ls-home-hero-layout > div:last-child {
    grid-column: 2 !important;
    grid-row: 1 / span 2 !important;
    justify-self: center !important;
    align-self: start !important;
    margin: 0 !important;
    transform: none !important;
  }
}
@media (min-width: 1200px) {
  html body #root .ls-customer-home .ls-home-hero { min-height: 500px !important; }
}
@media (min-width: 1024px) and (max-width: 1199.98px) {
  html body #root .ls-customer-home .ls-home-hero { min-height: 480px !important; }
}
/* The compact directory has one title. Remove its decorative search mark only. */
html body #root .ls-customer-home .ls-home-hero .ls-home-hero-layout > div:last-child > div > div > div:first-child > div:nth-child(2) {
  display: none !important;
}
/* Outer frame remains approved 24px translucent green / 52px radius.
   Inside: softly off-white main panel with 4 individual PURE WHITE service tiles. */
html body #root .ls-customer-home .ls-home-hero .ls-home-hero-layout > div:last-child > div > div {
  background: #FAFBF9 !important;
}
html body #root .ls-customer-home .ls-home-hero .ls-home-hero-layout > div:last-child > div > div > div:nth-child(2) > a,
html body #root .ls-customer-home .ls-home-hero .ls-home-hero-layout > div:last-child > div > div > div:nth-child(2) > a:not(:hover) {
  background: #FFFFFF !important;
}
/* Keep dark-green bottom summary, white label, green count. */

/* UI-05 v32.9.43 — narrower directory frame + shorter desktop green hero.
 * Inputs: outer radius 34px, inset/padding 12px, inner radius calc(34px - 12px) = 22px.
 * No changes to the directory's vertical top alignment, categories, header, cards,
 * Popular Services styles, booking or location flows.
 */
html body #root .ls-customer-home .ls-home-hero { --ls-ui05-dimensions: v32943; }

/* Derive concentric corner radii from one consistent pair of tokens. */
html body #root .ls-customer-home .ls-home-hero .ls-home-hero-layout > div:last-child > div {
  --ls-directory-outer-radius: 34px;
  --ls-directory-frame-inset: 12px;
  border-radius: var(--ls-directory-outer-radius) !important;
  padding: var(--ls-directory-frame-inset) !important;
  box-shadow: 0 3px 9px rgba(0, 58, 28, 0.055) !important;
}
html body #root .ls-customer-home .ls-home-hero .ls-home-hero-layout > div:last-child > div > div {
  border-radius: max(0px, calc(var(--ls-directory-outer-radius) - var(--ls-directory-frame-inset))) !important;
}

/* Reduce only desktop/tablet green section minimum height and bottom padding.
 * These are minima, not fixed heights: long content can expand naturally.
 * Keep directory aligned to the location row via the v32.9.42 shared grid.
 */
@media (min-width: 1200px) {
  html body #root .ls-customer-home .ls-home-hero { min-height: 455px !important; }
  html body #root .ls-customer-home .ls-home-hero > .ls-home-hero-inner {
    padding-bottom: 16px !important;
  }
}
@media (min-width: 1024px) and (max-width: 1199.98px) {
  html body #root .ls-customer-home .ls-home-hero { min-height: 435px !important; }
  html body #root .ls-customer-home .ls-home-hero > .ls-home-hero-inner {
    padding-bottom: 16px !important;
  }
}
/* <= 1023px retains its previous natural-height layout and original mobile spacing. */

/* UI-05 v32.9.45: Runtime verification marker and defensive desktop alignment.
 * New physical filename bypasses previously cached v32.9.33 CSS bytes.
 * Inner radius derives from outer radius minus frame inset.
 */
html body #root .ls-customer-home .ls-home-hero {
  --ls-ui05-active-release: v32945;
}
@media (min-width: 1024px) {
  html body #root .ls-customer-home .ls-home-hero > .ls-home-hero-inner {
    display: grid !important;
    grid-template-rows: auto minmax(0,1fr) !important;
    align-items: start !important;
  }
  html body #root .ls-customer-home .ls-home-hero .ls-home-hero-layout {
    display: contents !important;
  }
  html body #root .ls-customer-home .ls-home-hero .ls-home-hero-layout > div:last-child {
    grid-column: 2 !important;
    grid-row: 1 / span 2 !important;
    align-self: start !important;
    justify-self: center !important;
    margin: 0 !important;
    transform: none !important;
  }
}
/* Updated frame remains proportional: 34px outer − 12px actual inset = 22px inner. */
html body #root .ls-customer-home .ls-home-hero .ls-home-hero-layout > div:last-child > div {
  border-radius: 34px !important;
  padding: 12px !important;
  box-shadow: 0 3px 9px rgba(0,58,28,.055) !important;
}
html body #root .ls-customer-home .ls-home-hero .ls-home-hero-layout > div:last-child > div > div {
  border-radius: calc(34px - 12px) !important;
}


/* UI-05 v32.9.45 — CANONICAL DESKTOP GRID ALIGNMENT.
 * The location control and directory must start on the same first row.
 * The copy is in the next row on the left. No relative offsets, negative
 * margins, absolute positioning or transforms that affect following sections.
 * This is deliberately at the END of the one loaded UI-05 stylesheet.
 */
html body #root .ls-customer-home .ls-home-hero {
  --ls-ui05-layout-release: v32945;
}
@media (min-width:1024px) {
  html body #root .ls-customer-home .ls-home-hero > .ls-home-hero-inner {
    display:grid !important;
    grid-template-areas:
      "location directory"
      "copy directory" !important;
    grid-template-columns:minmax(0,1.12fr) minmax(340px,.88fr) !important;
    grid-template-rows:max-content minmax(0,1fr) !important;
    align-items:start !important;
    column-gap:clamp(32px,3.3vw,54px) !important;
  }
  html body #root .ls-customer-home .ls-home-hero > .ls-home-hero-inner > button.ls-home-location-control {
    grid-area:location !important;
    justify-self:start !important;
    align-self:start !important;
    margin-top:0 !important;
    margin-bottom:18px !important;
  }
  html body #root .ls-customer-home .ls-home-hero > .ls-home-hero-inner > .ls-home-hero-layout {
    display:contents !important;
  }
  html body #root .ls-customer-home .ls-home-hero .ls-home-hero-layout > div:first-child {
    grid-area:copy !important;
    justify-self:stretch !important;
    align-self:start !important;
    margin:0 !important;
    transform:none !important;
  }
  html body #root .ls-customer-home .ls-home-hero .ls-home-hero-layout > div:last-child {
    display:block !important;
    grid-area:directory !important;
    justify-self:center !important;
    align-self:start !important;
    position:static !important;
    inset:auto !important;
    margin:0 !important;
    padding:0 !important;
    transform:none !important;
    width:min(100%,548px) !important;
    min-width:0 !important;
  }
  html body #root .ls-customer-home .ls-home-hero .ls-home-hero-layout > div:last-child > div {
    margin:0 !important;
    transform:none !important;
  }
}
/* Preserve approved concentric curves: 34px outer - 12px inset = 22px inner. */
html body #root .ls-customer-home .ls-home-hero .ls-home-hero-layout > div:last-child > div {
  --ls-directory-outer-radius:34px;
  --ls-directory-frame-inset:12px;
  border-radius:var(--ls-directory-outer-radius) !important;
  padding:var(--ls-directory-frame-inset) !important;
}
html body #root .ls-customer-home .ls-home-hero .ls-home-hero-layout > div:last-child > div > div {
  border-radius:max(0px,calc(var(--ls-directory-outer-radius) - var(--ls-directory-frame-inset))) !important;
}
