/* Localsewa v32.8.4 — Customer Homepage Laptop/Desktop + Approved Footer
   Scope: laptop + desktop homepage/header/footer only.
   Phone and tablet continue to use the approved v32.8 mobile/tablet layout. */

/* Footer must never leak into phone/tablet layouts. */
.ls-desktop-footer {
  display: none !important;
}

/* Laptop (fine pointer) + desktop. */
@media (min-width: 1024px) and (max-width: 1439.98px) and (hover: hover) and (pointer: fine),
       (min-width: 1440px) {
  /* Header: logo left, nav visually centered, account actions right. */
  #root:has(.ls-public-header) .ls-public-header-inner {
    position: relative;
  }

  #root:has(.ls-public-header) .ls-public-main-nav {
    position: absolute;
    left: 50%;
    width: max-content;
    flex: none;
    transform: translateX(-50%);
  }

  /* Desktop/laptop location selector is intentionally removed from the header. */
  #root:has(.ls-public-header) .ls-public-desktop-actions > :first-child {
    display: none !important;
  }

  /* Logged-out state: Sign in stays pinned to the far-right. */
  #root:has(.ls-public-header) .ls-public-header-inner:not(:has(.ls-public-notifications)) .ls-public-desktop-actions {
    margin-left: auto !important;
  }

  /* Logged-in state: Notification first, then Profile at the far-right. */
  #root:has(.ls-public-header) .ls-public-notifications {
    order: 3;
    margin-left: auto !important;
  }

  #root:has(.ls-public-header) .ls-public-desktop-actions {
    order: 4;
  }

  #root:has(.ls-public-header) .ls-public-header-inner:has(.ls-public-notifications) .ls-public-desktop-actions {
    margin-left: 0 !important;
  }

  /* Notification bell: icon-only treatment, no visible box/container. */
  #root:has(.ls-public-header) .ls-public-notifications > button {
    border-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 999px !important;
  }

  #root:has(.ls-public-header) .ls-public-notifications > button:hover {
    background: rgba(255, 255, 255, 0.10) !important;
  }

  /* Logged-in profile control: cleaner translucent treatment. */
  #root:has(.ls-public-header) .ls-public-desktop-actions [aria-haspopup="menu"] {
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    background: rgba(255, 255, 255, 0.10) !important;
    color: #fff !important;
    box-shadow: none !important;
    backdrop-filter: blur(10px);
  }

  #root:has(.ls-public-header) .ls-public-desktop-actions [aria-haspopup="menu"]:hover {
    background: rgba(255, 255, 255, 0.18) !important;
  }

  /* Logged-out Sign in button remains readable but belongs to the right action area. */
  #root:has(.ls-public-header) .ls-public-desktop-actions > a[href="/auth"] {
    box-shadow: none !important;
  }

  /* Popular Services: 5 columns x 2 rows, 4:3 cards. */
  #root:has(.ls-customer-home) .ls-home-category-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }

  #root:has(.ls-customer-home) .ls-home-category-grid > [data-service-category],
  #root:has(.ls-customer-home) .ls-home-category-grid > div {
    aspect-ratio: 4 / 3 !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 14px !important;
  }

  #root:has(.ls-customer-home) .ls-home-category-grid > [data-service-category] > span:first-child {
    width: 46px;
    height: 46px;
  }

  /* Footer is a laptop/desktop-only feature. */
  #root:has(.ls-customer-home) .ls-desktop-footer {
    display: block !important;
  }
}

@media (min-width: 1600px) {
  #root:has(.ls-customer-home) .ls-home-category-grid {
    gap: 18px !important;
  }
}

/* Approved Localsewa desktop footer — v32.8.4.
   Uses explicit semantic classes so it does not depend on Tailwind generating
   new arbitrary-value utilities at runtime. */
.ls-site-footer {
  color: #ffffff;
  background: linear-gradient(135deg, #0c2f22 0%, #103c2b 58%, #0d3325 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ls-site-footer__inner {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
  padding: 42px 0 22px;
}

.ls-site-footer__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 20px 22px;
  margin-bottom: 34px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.075);
}

.ls-site-footer__cta-copy {
  min-width: 0;
}

.ls-site-footer__eyebrow {
  margin: 0;
  color: #9de0b9;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ls-site-footer__cta-title {
  margin: 5px 0 0;
  color: #ffffff;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.ls-site-footer__cta-text {
  margin: 6px 0 0;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  line-height: 1.6;
}

.ls-site-footer__cta-button {
  display: inline-flex;
  min-height: 44px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  color: #123a29;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 11px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .ls-site-footer__cta-button:hover {
    transform: translateY(-1px);
    background: #f4fff8;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  }
}

.ls-site-footer__cta-button:focus-visible,
.ls-site-footer__brand-link:focus-visible,
.ls-site-footer__link:focus-visible {
  outline: 2px solid #9de0b9;
  outline-offset: 3px;
  border-radius: 6px;
}

.ls-site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) repeat(3, minmax(0, 0.8fr));
  gap: 42px;
  align-items: start;
}

.ls-site-footer__brand,
.ls-site-footer__nav {
  min-width: 0;
}

.ls-site-footer__brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  text-decoration: none;
}

.ls-site-footer__logo {
  display: block;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 13px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

.ls-site-footer__brand-name {
  display: block;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.ls-site-footer__tagline {
  display: block;
  margin-top: 3px;
  color: #9de0b9;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 600;
}

.ls-site-footer__brand-copy {
  max-width: 390px;
  margin: 17px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  line-height: 1.65;
}

.ls-site-footer__heading {
  margin: 1px 0 13px;
  color: rgba(255, 255, 255, 0.96);
  font-size: 11px;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ls-site-footer__nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.ls-site-footer__link {
  display: inline-block;
  padding: 5px 0;
  color: rgba(255, 255, 255, 0.70);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 500;
  text-decoration: none;
  transition: color 150ms ease, transform 150ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .ls-site-footer__link:hover {
    color: #ffffff;
    transform: translateX(2px);
  }
}

.ls-site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 34px;
  padding-top: 19px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  color: rgba(255, 255, 255, 0.52);
  font-size: 11px;
  line-height: 1.5;
}

.ls-site-footer__bottom-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  text-align: right;
}

.ls-site-footer__secure {
  color: #9de0b9;
  font-weight: 700;
}

/* Slightly tighter layout for common 1024–1366 laptop widths. */
@media (min-width: 1024px) and (max-width: 1366px) and (hover: hover) and (pointer: fine) {
  .ls-site-footer__inner {
    width: min(1120px, calc(100% - 48px));
  }

  .ls-site-footer__grid {
    gap: 28px;
    grid-template-columns: minmax(0, 1.45fr) repeat(3, minmax(0, 0.8fr));
  }

  .ls-site-footer__cta {
    gap: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ls-site-footer__cta-button,
  .ls-site-footer__link {
    transition: none;
  }
}
