/* ==========================================================================
   Helpee City — Main Stylesheet
   WordPress 6.4+ | WooCommerce 8.x+
   Design: city-map homepage, yellow/gold header, child-friendly UI
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens (CSS Custom Properties)
   -------------------------------------------------------------------------- */
:root {
  /* Brand colours — extracted from design mockup */
  --google-blue: #4285F4;
  --google-red: #EA4335;
  --google-yellow: #FBBC05;
  --google-green: #34A853;
  --bg-yellow: #FFD500;  
  --hc-yellow-light:   #FFD500;
  --hc-yellow-dark:    #FBBC05;
  --hc-header-grad:    linear-gradient(135deg, var(--hc-yellow-light) 0%, var(--hc-yellow-dark) 100%);

  --hc-green-light:    #c8e6a0;
  --hc-green-mid:      #a8d070;
  --hc-road-grey:      #c8c8c8;
  --hc-road-line:      #ffffff;

  --hc-white:          #ffffff;
  --hc-black:          #1a1a1a;
  --hc-text:           #2d2d2d;
  --hc-text-light:     #666666;

  /* Store label colours (from mockup) */
  --hc-label-clothing: #7ec8c8;   /* teal */
  --hc-label-healing:  #7ec8c8;
  --hc-label-home:     #d4a574;   /* warm tan */
  --hc-label-restaurant: #e8a0a0; /* soft red */
  --hc-label-groceries: #7ec8c8;
  --hc-label-govt:     #c8b4a0;   /* stone */

  /* Typography */
  --hc-font-family:    'Nunito', 'Segoe UI', Arial, sans-serif;
  --hc-font-size-base: 16px;
  --hc-line-height:    1.6;

  /* Spacing scale */
  --hc-space-xs:  4px;
  --hc-space-sm:  8px;
  --hc-space-md:  16px;
  --hc-space-lg:  28px;
  --hc-space-xl:  40px;
  --hc-space-2xl: 64px;

  /* Header */
  --hc-header-height-mobile:  64px;
  --hc-header-height-desktop: 80px;

  /* Border radius */
  --hc-radius-sm:  6px;
  --hc-radius-md:  16px;
  --hc-radius-lg:  20px;
  --hc-radius-pill: 999px;

  /* Shadows */
  --hc-shadow-sm:  0 4px 24px rgba(80, 60, 140, 0.10), 0 1px 4px rgba(0, 0, 0, 0.06);
  --hc-shadow-md:  0 4px 16px rgba(0,0,0,.16);
  --hc-shadow-lg:  0 8px 32px rgba(0,0,0,.20);

  /* Transitions */
  --hc-transition: 200ms ease;

  /* Layout */
  --hc-container-max: 1200px;
  --hc-container-pad: var(--hc-space-md);
}

/* --------------------------------------------------------------------------
   2. Reset & Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: var(--hc-font-size-base);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--hc-font-family);
  font-size: 1rem;
  line-height: var(--hc-line-height);
  color: var(--hc-text);
  background-color: var(--hc-white);
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: underline;
}

a:focus-visible {
  outline: 3px solid var(--hc-yellow-dark);
  outline-offset: 2px;
  border-radius: var(--hc-radius-sm);
}

ul,
ol {
  list-style: none;
}

/* --------------------------------------------------------------------------
   3. Accessibility Utilities
   -------------------------------------------------------------------------- */
.c-blue { color: var(--google-blue); }
.c-red { color: var(--google-red); }
.c-yellow { color: var(--google-yellow); }
.c-green { color: var(--google-green); }

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--hc-space-md);
  z-index: 9999;
  padding: var(--hc-space-sm) var(--hc-space-md);
  background: var(--hc-yellow-dark);
  color: var(--hc-black);
  font-weight: 700;
  border-radius: var(--hc-radius-sm);
  transition: top var(--hc-transition);
}

.skip-link:focus {
  top: var(--hc-space-md);
}

/* --------------------------------------------------------------------------
   4. Layout Utilities
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--hc-container-max);
  margin-inline: auto;
  padding-inline: var(--hc-container-pad);
}

.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main {
  flex: 1;
  padding-top: var(--hc-space-md);
}

/* --------------------------------------------------------------------------
   5. Site Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: var(--hc-header-grad);
  box-shadow: var(--hc-shadow-sm);
  /* Prevent layout shift when sticky kicks in */
  will-change: transform;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--hc-header-height-mobile);
  padding-inline: var(--hc-space-md) var(--hc-space-xs);
  gap: var(--hc-space-md);
}

/* ── Logo ─────────────────────────────────────────────────────────────── */
.site-header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-header__logo-link {
  display: flex;
  align-items: center;
  gap: var(--hc-space-sm);
  text-decoration: none;
}

/* Custom logo image (set via WP Customizer) */
.site-header__logo .custom-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
}

/* SVG / text fallback logo */
.site-header__logo-icon {
  display: flex;
  align-items: center;
  width: 55px;
  height: 55px;
  flex-shrink: 0;
}

.site-header__logo-icon svg {
  width: 100%;
  height: 100%;
}

.site-header__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.site-header__logo-name {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--hc-black);
  letter-spacing: -0.02em;
}

.site-header__logo-tagline {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--hc-black);
  opacity: 0.75;
  letter-spacing: 0.05em;
  text-transform: lowercase;
}

/* ── Right icons ──────────────────────────────────────────────────────── */
.site-header__icons {
  display: flex;
  align-items: center;
  gap: var(--hc-space-sm);
  flex-shrink: 0;
}

.header__icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  /* width: 44px;
  height: 44px; */
  border-radius: var(--hc-radius-md);
  transition: background-color var(--hc-transition), transform var(--hc-transition);
  cursor: pointer;
}

.header__icon:hover,
.header__icon:focus-visible {
  background-color: rgba(0, 0, 0, 0.08);
  transform: scale(1.08);
}

.header__icon-img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
}

.header__icon-img svg {
  width: 100%;
  height: 100%;
}

/* Cart count badge */
.header__cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: #e53e3e;
  color: var(--hc-white);
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  border-radius: var(--hc-radius-pill);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   6. City Map — Front Page
   -------------------------------------------------------------------------- */
.site-main--front, .site-main--page {
  overflow: visible;
  /* Background image for the front page — repeats vertically */
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)),
    url('../images/city-map-bg.jpg');
  background-size: 100% auto;
  background-position: center top;
  background-repeat: repeat-y;
}

.city-map {
  position: relative;
  width: 100%;
  /* Full viewport minus header */
  min-height: calc(100vh - var(--hc-header-height-mobile));
  overflow: hidden;
}

/* Background image layer */
.city-map__bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)),
    url('../images/city-map-bg.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  /* Slight overlay to make zone labels readable */
  filter: brightness(0.95);
}

/* Zones container — sits above the background */
.city-map__zones {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  min-height: inherit;
}

/* Individual zone hotspot */
.city-map__zone {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--hc-space-xs) var(--hc-space-sm);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: var(--hc-radius-sm);
  box-shadow: var(--hc-shadow-sm);
  cursor: pointer;
  transition:
    transform var(--hc-transition),
    box-shadow var(--hc-transition),
    background-color var(--hc-transition);
  /* Prevent text selection on tap */
  user-select: none;
  -webkit-user-select: none;
}

.city-map__zone:hover,
.city-map__zone:focus-visible {
  transform: translateY(-3px) scale(1.04);
  box-shadow: var(--hc-shadow-md);
  background: rgba(255, 255, 255, 0.98);
}

.city-map__zone-label {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--hc-black);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

/* Zone colour variants — match mockup label colours */
#zone-clothing-store  .city-map__zone-label,
#zone-healing-centre  .city-map__zone-label,
#zone-groceries       .city-map__zone-label { color: #2a7a7a; }

#zone-home-apartment  .city-map__zone-label { color: #7a5a30; }
#zone-restaurant      .city-map__zone-label { color: #8a3030; }
#zone-government      .city-map__zone-label { color: #5a4a3a; }

/* --------------------------------------------------------------------------
   7. WooCommerce — General
   -------------------------------------------------------------------------- */
.woocommerce-main {
  padding-block: var(--hc-space-xl);
  background-image: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url(../images/city-map-bg.jpg);
  background-size: 100% auto;
  background-position: center top;
  background-repeat: repeat-y;
}
.woocommerce ul.products::before {
  display: none;
}
span.wc-block-components-product-details__name {
  font-weight: 700;
}
/* Product grid */
.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--hc-space-lg);
  list-style: none;
  padding: 0;
  margin: var(--hc-space-md) auto;
}

.woocommerce ul.products li.product {
  background: var(--hc-white);
  border-radius: var(--hc-radius-md);
  box-shadow: var(--hc-shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%!important;
  transition: box-shadow var(--hc-transition), transform var(--hc-transition);
}

.woocommerce ul.products li.product:hover {
  box-shadow: var(--hc-shadow-md);
  transform: translateY(-4px);
}

.woocommerce ul.products li.product a img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 0.95rem;
  font-weight: 700;
  padding: var(--hc-space-sm) var(--hc-space-md) 0;
  color: var(--hc-text);
}

.woocommerce ul.products li.product .price {
  display: block;
  padding: var(--hc-space-xs) var(--hc-space-md) var(--hc-space-md);
  font-weight: 800;
  color: var(--hc-yellow-dark);
  font-size: 1rem;
}

.woocommerce form .form-row .input-text, .woocommerce form .form-row select
, .wal-number-field, .wal-form-row-value {
    font-family: inherit;
    font-weight: 400;
    letter-spacing: normal;
    padding: .5em;
    display: block;
    background-color: var(--wc-form-color-background, #fff);
    border: var(--wc-form-border-width) solid var(--wc-form-border-color);
    border-radius: var(--wc-form-border-radius);
    color: var(--wc-form-color-text, #000);
    box-sizing: border-box;
    width: 100% !important;
    margin: 0;
    line-height: normal;
    height: auto;
}
/* Add to cart button */
.woocommerce ul.products li.product .button,
.woocommerce .button, .wal-form-btn, .wal-form-button {
  display: inline-flex!important;
  align-items: center;
  justify-content: center;
  padding: var(--hc-space-sm) var(--hc-space-lg) !important;
  background: var(--hc-yellow-dark) !important;
  color: var(--hc-black) !important;
  font-family: var(--hc-font-family);
  font-size: 0.9rem;
  font-weight: 800;
  border: none;
  border-radius: var(--hc-radius-pill) !important;
  cursor: pointer;
  transition: background-color var(--hc-transition), transform var(--hc-transition);
  text-decoration: none;
  width: 80%;
  margin: var(--hc-space-md) auto !important;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce .button:hover {
  background: var(--hc-yellow-light);
  transform: scale(1.03);  
}

.woocommerce ul.order_details li {
    float: left;
    margin-right: 2em;
    text-transform: uppercase;
    font-size: .715em;
    line-height: 1;
    border-right: 1px dashed #cfc8d8;
    padding-right: 2em;
    margin-left: 0;
    padding-left: 0;
    list-style-type: none;
    margin-bottom: var(--hc-space-md);
}

/* Breadcrumbs */
.woocommerce-breadcrumb {
  font-size: 0.85rem;
  color: var(--hc-text-light);
  margin-bottom: var(--hc-space-lg);
}

.woocommerce-breadcrumb a {
  color: var(--hc-yellow-dark);
  font-weight: 600;
}

.woocommerce-breadcrumb a:hover {
  text-decoration: underline;
}

/* Notices */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-radius: var(--hc-radius-md);
  padding: var(--hc-space-md) var(--hc-space-2xl);
  margin-bottom: var(--hc-space-lg);
  font-weight: 600;
}

.woocommerce-message { background: #d4edda; border-left: 4px solid #28a745; }
.woocommerce-info    { background: #d1ecf1; border-left: 4px solid #17a2b8; }
.woocommerce-error   { background: #f8d7da; border-left: 4px solid #dc3545; }
.woocommerce-Address, .woocommerce-orders-table, .woocommerce-order-details, .woocommerce-customer-details, .page-article
,.wal-dashboard-wrapper {
    background: linear-gradient(145deg, #edeaf6, #f5f4fb 30%, #fff 60%);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(80, 60, 140, .1), 0 1px 4px rgba(0, 0, 0, .06);
    box-sizing: border-box;
    font-family: var(--hc-font-family);
    padding: 28px 28px 32px;
    width: 100%;
    margin-bottom: var(--hc-space-lg);
    overflow: auto;
}
label.wc-pao-addon-name em {
    margin-left: -5px;
}
.wc-pao-addon-name {
    font-weight: 800;
}
h2.wc-pao-addon-heading{
    font-weight: 800;
    font-size: 14px;
    margin-top: var(--hc-space-lg);
    margin-bottom: var(--hc-space-sm);
}
.wc-pao-addons-container {
    margin-top: var(--hc-space-lg);
}
h2.woocommerce-loop-category__title {
    padding: var(--hc-space-md) !important;
}
li.product-category {
    border: 4px solid #ffd500;
    border-top-color: #ffffff;
    border-left-color: #ffffff;
    border-bottom-color: #ffd500;
    border-right-color: #ffd500;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    padding: 10px;
}

/* --------------------------------------------------------------------------
   8. Posts Grid (blog / archive)
   -------------------------------------------------------------------------- */
.posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--hc-space-lg);
}

/* --------------------------------------------------------------------------
   9. Page / Single Article
   -------------------------------------------------------------------------- */
.page-article,
.single-article {
  max-width: 1280px;
  margin-inline: auto;
}

.page-article__title,
.single-article__title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: var(--hc-space-md);
  color: var(--hc-black);
}

.single-article__meta {
  font-size: 0.85rem;
  color: var(--hc-text-light);
  margin-bottom: var(--hc-space-lg);
}

.page-article__thumbnail,
.single-article__thumbnail {
  border-radius: var(--hc-radius-md);
  overflow: hidden;
  margin-bottom: var(--hc-space-lg);
}
.front-page-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1.5em;
  margin-top:var(--hc-space-xs);
}

.entry-content {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--hc-text);
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  /* font-weight: 800; */
  margin-top: var(--hc-space-xl);
  margin-bottom: var(--hc-space-sm);
  color: var(--hc-black);
}

.entry-content p { margin-bottom: var(--hc-space-md); }
.entry-content ul,
.entry-content ol { padding-left: var(--hc-space-lg); margin-bottom: var(--hc-space-md); }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }

/* --------------------------------------------------------------------------
   10. Archive Header
   -------------------------------------------------------------------------- */
.archive-header {
  margin-bottom: var(--hc-space-xl);
}

.archive-header__title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 900;
  color: var(--hc-black);
}

.archive-header__description {
  margin-top: var(--hc-space-sm);
  color: var(--hc-text-light);
}

/* --------------------------------------------------------------------------
   11. Post Navigation
   -------------------------------------------------------------------------- */
.post-navigation {
  margin-top: var(--hc-space-xl);
  padding-top: var(--hc-space-lg);
  border-top: 2px solid #f0f0f0;
}

.nav-links {
  display: flex;
  justify-content: space-between;
  gap: var(--hc-space-md);
}

.nav-subtitle {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--hc-text-light);
  margin-bottom: 2px;
}

.nav-title {
  font-weight: 700;
  color: var(--hc-yellow-dark);
}

/* --------------------------------------------------------------------------
   12. Site Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--hc-black);
  color: var(--hc-white);
  padding: 0 var(--hc-space-lg) var(--hc-space-xl) var(--hc-space-lg);
  margin-top: auto;
  margin-bottom: var(--hc-space-xl)
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--hc-space-xs);
}

.site-footer__widgets {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--hc-space-lg);
}

.site-footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--hc-space-sm);
  padding-top: var(--hc-space-lg);
  border-top: 1px solid rgba(255,255,255,.15);
  text-align: center;
}

.site-footer__copyright {
  font-size: 0.85rem;
  color: rgba(255,255,255,.6);
}

.site-footer__copyright a {
  color: var(--hc-yellow-light);
  font-weight: 600;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--hc-space-md);
}

.site-footer__nav a {
  font-size: 0.85rem;
  color: rgba(255,255,255,.7);
  transition: color var(--hc-transition);
}

.site-footer__nav a:hover {
  color: var(--hc-yellow-light);
}

/* --------------------------------------------------------------------------
   13. No Results
   -------------------------------------------------------------------------- */
.no-results {
  text-align: center;
  padding-block: var(--hc-space-2xl);
}

.no-results .page-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: var(--hc-space-md);
}

/* --------------------------------------------------------------------------
   14. Responsive — Tablet (≥ 640px)
   -------------------------------------------------------------------------- */
@media (min-width: 640px) {
  :root {
    --hc-container-pad: var(--hc-space-lg);
  }

  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-footer__widgets {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  /* City map zone labels slightly larger on tablet */
  .city-map__zone-label {
    font-size: 0.75rem;
  }
}

/* --------------------------------------------------------------------------
   15. Responsive — Desktop (≥ 1024px)
   -------------------------------------------------------------------------- */
@media (min-width: 1024px) {
  :root {
    --hc-container-pad: var(--hc-space-xl);
  }

  /* Header grows on desktop */
  .site-header__inner {
    height: var(--hc-header-height-desktop);
    padding-inline: var(--hc-space-xl);
  }

  .site-header__logo .custom-logo {
    height: 60px;
  }

  .site-header__logo-icon {
    width: 60px;
    height: 60px;
  }

  .site-header__logo-name {
    font-size: 1.8rem;
  }

  .header__icon {
    width: 52px;
    height: 52px;
  }

  .header__icon-img {
    width: 50px;
    height: 50px;
  }

  /* City map fills full viewport on desktop */
  .city-map {
    min-height: calc(100vh - var(--hc-header-height-desktop));
  }

  .city-map__bg {
    background-position: center center;
  }

  /* Zone labels larger on desktop */
  .city-map__zone {
    padding: var(--hc-space-sm) var(--hc-space-md);
  }

  .city-map__zone-label {
    font-size: 0.8rem;
  }

  /* WooCommerce product grid — 3 columns on desktop */
  .woocommerce ul.products {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Posts grid — 3 columns on desktop */
  .posts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --------------------------------------------------------------------------
   16. Responsive — Wide (≥ 1280px)
   -------------------------------------------------------------------------- */
@media (min-width: 1280px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* --------------------------------------------------------------------------
   17. Print
   -------------------------------------------------------------------------- */
@media print {
  .site-header,
  .site-footer,
  .city-map__zones {
    display: none;
  }

  body {
    font-size: 12pt;
    color: #000;
  }
}

/* --------------------------------------------------------------------------
   18. Reduced Motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
