/*
Theme Name: WashingPowders.co.za Storefront Child
Theme URI: https://washingpowders.co.za
Description: Modern Storefront child theme for the WashingPowders.co.za WooCommerce store and public Knowledge Centre.
Author: WashingPowders Development
Template: storefront
Version: 1.1.5
Text Domain: wpstore
*/

:root {
  --wp-navy: #112d4e;
  --wp-navy-deep: #081a2e;
  --wp-blue: #1769e0;
  --wp-teal: #0b8f86;
  --wp-teal-dark: #076c65;
  --wp-mint: #d8f4ef;
  --wp-lime: #d8f46b;
  --wp-ink: #1b2b3b;
  --wp-muted: #5d6d7c;
  --wp-surface: #f8fafb;
  --wp-paper: #fff;
  --wp-warm: #f5f0e7;
  --wp-line: #dfe6ea;
  --wp-shadow: 0 18px 48px rgba(14, 37, 61, 0.12);
  --wp-radius: 1.25rem;
}

body {
  background: var(--wp-surface);
  color: var(--wp-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}

body .site, body .site-content { background: var(--wp-surface); }
h1, h2, h3, h4, .site-title, .site-title a {
  color: var(--wp-navy);
  font-family: ui-rounded, "Avenir Next", Inter, ui-sans-serif, sans-serif;
  font-weight: 760;
  letter-spacing: -0.035em;
}
a { color: var(--wp-blue); }
a:hover { color: var(--wp-teal-dark); }

.button, button, input[type="button"], input[type="reset"], input[type="submit"] {
  background: var(--wp-blue);
  border-radius: 999px;
  box-shadow: none;
  font-weight: 750;
  padding: .8rem 1.25rem;
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}
.button:hover, button:hover, input[type="button"]:hover, input[type="reset"]:hover, input[type="submit"]:hover {
  background: var(--wp-teal-dark);
  box-shadow: 0 10px 22px rgba(23, 105, 224, .22);
  transform: translateY(-1px);
}

.wp-utility-bar { background: var(--wp-navy-deep); color: #dceaf5; font-size: .8rem; letter-spacing: .01em; }
.wp-utility-bar__inner { align-items: center; display: flex; gap: 1rem; justify-content: space-between; min-height: 2.25rem; }
.wp-utility-bar__note { color: #a9c6dc; }
.wp-utility-menu { display: flex; gap: 1rem; list-style: none; margin: 0; }
.wp-utility-menu a { color: #dceaf5; text-decoration: none; }
.site-header { background: rgba(255,255,255,.96); border-bottom: 1px solid var(--wp-line); box-shadow: 0 1px 0 rgba(17,45,78,.03); }
.site-branding .site-title a { color: var(--wp-navy); }

.wp-storefront-home { overflow: hidden; }
.wp-hero {
  background: radial-gradient(circle at 12% 8%, rgba(216,244,107,.22), transparent 24rem), radial-gradient(circle at 90% 8%, rgba(22,105,224,.34), transparent 30rem), linear-gradient(132deg, var(--wp-navy-deep), var(--wp-navy) 56%, #0b5d84);
  color: #fff;
  isolation: isolate;
  padding: clamp(3.25rem, 7vw, 6.5rem) 0;
  position: relative;
}
.wp-hero::after { border: 1px solid rgba(255,255,255,.15); border-radius: 50%; content: ""; height: 35rem; pointer-events: none; position: absolute; right: -17rem; top: -21rem; width: 35rem; }
.wp-hero__layout { align-items: center; display: grid; gap: clamp(2.5rem, 7vw, 7rem); grid-template-columns: minmax(0, 1.05fr) minmax(260px, .8fr); position: relative; z-index: 1; }
.wp-hero h1 { color: #fff; font-size: clamp(2.65rem, 5.2vw, 5rem); line-height: .96; margin: .45rem 0 1.25rem; max-width: 12ch; }
.wp-hero__lead { color: #d6e8f3; font-size: clamp(1rem, 1.4vw, 1.2rem); line-height: 1.65; margin: 0 0 1.5rem; max-width: 53ch; }
.wp-kicker { color: var(--wp-teal-dark); font-size: .77rem; font-weight: 800; letter-spacing: .14em; margin: 0 0 .7rem; text-transform: uppercase; }
.wp-kicker--light { color: var(--wp-lime); }
.wp-cleaning-search { align-items: stretch; background: #fff; border-radius: 1rem; box-shadow: 0 14px 32px rgba(0,0,0,.2); display: flex; max-width: 39rem; overflow: hidden; }
.wp-cleaning-search input[type="search"] { background: transparent; border: 0; box-shadow: none; color: var(--wp-ink); flex: 1; min-width: 0; padding: .95rem 1rem; }
.wp-cleaning-search .button { border-radius: 0; white-space: nowrap; }
.wp-hero__actions { align-items: center; display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.25rem; }
.wp-hero .button.alt { background: var(--wp-lime); color: var(--wp-navy-deep); }
.wp-hero .button.alt:hover { background: #e7fb9f; }
.wp-hero__text-link, .wp-hero__text-link:hover { color: #fff; font-weight: 750; text-decoration: underline; text-underline-offset: .25em; }
.wp-hero__proof { display: flex; flex-wrap: wrap; gap: .6rem 1rem; list-style: none; margin: 1.8rem 0 0; padding: 0; }
.wp-hero__proof li { color: #c5deec; font-size: .84rem; }
.wp-hero__proof li::before { color: var(--wp-lime); content: "✓"; font-weight: 900; margin-right: .45rem; }
.wp-hero__art { align-self: stretch; display: flex; justify-content: center; position: relative; }
.wp-hero__art::before { background: linear-gradient(145deg, rgba(216,244,107,.48), rgba(11,143,134,.08)); border-radius: 2rem; content: ""; inset: 7% 2% 3% 6%; position: absolute; transform: rotate(4deg); }
.wp-hero__art img { align-self: center; border-radius: 1.6rem; box-shadow: var(--wp-shadow); height: auto; max-width: 100%; object-fit: cover; position: relative; transform: rotate(-2deg); }

.wp-section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.wp-section--categories { background: var(--wp-paper); }
.wp-section--products { background: var(--wp-surface); }
.wp-section--knowledge { background: var(--wp-warm); }
.wp-section-heading { align-items: end; display: flex; gap: 1rem; justify-content: space-between; margin-bottom: 1.75rem; }
.wp-section-heading h2, .wp-knowledge-split h2, .wp-safety-note h2, .wp-pre-footer h2 { font-size: clamp(2rem, 3.4vw, 3.15rem); line-height: 1; margin: 0; }
.wp-text-link { align-items: center; color: var(--wp-navy); display: inline-flex; font-weight: 800; gap: .35rem; text-decoration: none; }
.wp-text-link::after { content: "→"; transition: transform 150ms ease; }
.wp-text-link:hover::after { transform: translateX(.25rem); }

.wp-cat-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.wp-cat-card { background: #fff; border: 1px solid var(--wp-line); border-radius: var(--wp-radius); color: var(--wp-ink); display: flex; flex-direction: column; min-height: 16rem; overflow: hidden; position: relative; text-decoration: none; transition: box-shadow 180ms ease, transform 180ms ease, border-color 180ms ease; }
.wp-cat-card:hover { border-color: #aac5d5; box-shadow: var(--wp-shadow); color: var(--wp-ink); transform: translateY(-4px); }
.wp-cat-card__visual { background: linear-gradient(140deg, #eff7f7, #dcecf8); display: block; height: 9.4rem; overflow: hidden; }
.wp-cat-card__visual:empty { background: linear-gradient(140deg, var(--wp-mint), #dcecf8); }
.wp-cat-card__visual img { height: 100%; object-fit: cover; transition: transform 240ms ease; width: 100%; }
.wp-cat-card:hover .wp-cat-card__visual img { transform: scale(1.05); }
.wp-cat-card__body { display: grid; gap: .3rem; padding: 1rem 1.1rem 1.2rem; }
.wp-cat-card__body strong { color: var(--wp-navy); font-size: 1.02rem; line-height: 1.15; }
.wp-cat-card__body span { color: var(--wp-muted); font-size: .8rem; }
.wp-cat-card__arrow { bottom: 1rem; color: var(--wp-teal-dark); font-size: 1.2rem; font-weight: 800; position: absolute; right: 1.1rem; }

.wp-product-grid { display: grid; gap: 1rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wp-product-card { background: #fff; border: 1px solid var(--wp-line); border-radius: var(--wp-radius); display: flex; flex-direction: column; overflow: hidden; }
.wp-product-card__image { align-items: center; background: linear-gradient(150deg, #fff, #edf4f8); display: flex; justify-content: center; min-height: 13rem; }
.wp-product-card__image img { height: 100%; max-height: 16rem; object-fit: contain; padding: 1.2rem; width: 100%; }
.wp-product-card__body { display: flex; flex: 1; flex-direction: column; gap: .65rem; padding: 1.15rem; }
.wp-product-card__type { color: var(--wp-teal-dark); font-size: .72rem; font-weight: 800; letter-spacing: .07em; margin: 0; text-transform: uppercase; }
.wp-product-card h3 { font-size: 1.04rem; line-height: 1.2; margin: 0; }
.wp-product-card h3 a { color: var(--wp-navy); text-decoration: none; }
.wp-product-card__price { color: var(--wp-navy); font-size: 1.1rem; font-weight: 800; margin-top: auto; }
.wp-product-card__link { color: var(--wp-blue); font-size: .88rem; font-weight: 800; text-decoration: none; }

.wp-knowledge-split { align-items: start; display: grid; gap: clamp(2rem, 7vw, 6rem); grid-template-columns: minmax(0, .7fr) minmax(0, 1.05fr); }
.wp-knowledge-split__intro > p:not(.wp-kicker) { font-size: 1.05rem; line-height: 1.65; max-width: 37ch; }
.wp-knowledge-split__intro .button { margin-top: .5rem; }
.wp-knowledge-card-list { display: grid; gap: .85rem; }
.wp-knowledge-card { background: rgba(255,255,255,.82); border: 1px solid rgba(17,45,78,.12); border-radius: 1rem; padding: 1.25rem 1.35rem; }
.wp-knowledge-card > p { color: var(--wp-teal-dark); font-size: .72rem; font-weight: 800; letter-spacing: .08em; margin: 0 0 .4rem; text-transform: uppercase; }
.wp-knowledge-card h3 { font-size: 1.2rem; margin: 0 0 .45rem; }
.wp-knowledge-card h3 a { color: var(--wp-navy); text-decoration: none; }
.wp-knowledge-card__excerpt { color: var(--wp-muted); font-size: .91rem; line-height: 1.55; margin-bottom: .65rem; }
.wp-knowledge-empty { border: 1px dashed rgba(17,45,78,.25); border-radius: 1rem; color: var(--wp-muted); padding: 1.5rem; }

.wp-section--editorial { background: var(--wp-paper); }
.wp-editorial-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wp-editorial-card { background: #f2f6f8; border-radius: var(--wp-radius); padding: clamp(1.5rem, 4vw, 2.5rem); }
.wp-editorial-card h2 { color: var(--wp-navy); font-size: clamp(1.55rem, 2.4vw, 2.25rem); margin: 0 0 .9rem; }
.wp-editorial-card__content { color: var(--wp-muted); line-height: 1.65; }
.wp-editorial-card__content > :last-child { margin-bottom: 0; }
.wp-editorial-card--teal { background: linear-gradient(135deg, #d8f4ef, #eefcf8); }
.wp-editorial-card--navy { background: linear-gradient(135deg, #14375a, #0b5871); }
.wp-editorial-card--navy, .wp-editorial-card--navy h2, .wp-editorial-card--navy .wp-editorial-card__content { color: #fff; }
.wp-editorial-card--navy a { color: var(--wp-lime); }

.wp-safety-note { background: var(--wp-navy-deep); color: #dceaf5; }
.wp-safety-note h2 { color: #fff; max-width: 23ch; }
.wp-safety-note__inner > p:not(.wp-kicker) { color: #c3d7e6; line-height: 1.65; max-width: 65ch; }
.wp-safety-note .wp-text-link { color: var(--wp-lime); }
.wp-pre-footer { background: var(--wp-blue); color: #fff; padding: clamp(2.5rem, 5vw, 4rem) 0; }
.wp-pre-footer__inner { align-items: center; display: flex; gap: 2rem; justify-content: space-between; }
.wp-pre-footer h2 { color: #fff; max-width: 20ch; }
.wp-pre-footer .wp-kicker { color: var(--wp-lime); }
.wp-pre-footer__actions { align-items: center; display: flex; flex-wrap: wrap; gap: 1rem; }
.wp-pre-footer .button.alt { background: var(--wp-lime); color: var(--wp-navy-deep); }
.wp-pre-footer .wp-text-link { color: #fff; }

.kc-article { background: #fff; border: 1px solid var(--wp-line); border-radius: var(--wp-radius); margin: 2rem auto; max-width: 52rem; padding: clamp(1.5rem, 5vw, 3.5rem); }
.kc-article h2 { border-bottom: 2px solid var(--wp-teal); margin-top: 2.2rem; padding-bottom: .4rem; }
.kc-toc { background: var(--wp-warm); border-radius: .9rem; padding: 1rem 1.25rem; }
.kc-callout { background: #fff8e8; border-left: 4px solid #c28009; border-radius: 0 .75rem .75rem 0; padding: .95rem 1.1rem; }
.kc-danger { background: #feeeee; border-left-color: #bd2635; }
.site-footer { background: var(--wp-navy-deep); }
.site-footer, .site-footer a { color: #c7d8e5; }
.site-footer .widget-title { color: #fff; }

@media (max-width: 960px) {
  .wp-hero__layout, .wp-knowledge-split { grid-template-columns: 1fr; }
  .wp-hero__art { max-width: 39rem; }
  .wp-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 660px) {
  .wp-utility-bar__inner, .wp-section-heading, .wp-pre-footer__inner { align-items: flex-start; flex-direction: column; }
  .wp-utility-bar__note { display: none; }
  .wp-hero { padding-top: 3rem; }
  .wp-hero h1 { font-size: clamp(2.45rem, 12vw, 3.4rem); }
  .wp-cleaning-search { background: transparent; box-shadow: none; display: block; overflow: visible; }
  .wp-cleaning-search input[type="search"] { background: #fff; border-radius: .85rem; box-shadow: 0 8px 22px rgba(0,0,0,.15); display: block; margin-bottom: .6rem; width: 100%; }
  .wp-cleaning-search .button { border-radius: 999px; }
  .wp-cat-grid, .wp-product-grid, .wp-editorial-grid { grid-template-columns: 1fr; }
  .wp-section-heading h2, .wp-knowledge-split h2, .wp-safety-note h2, .wp-pre-footer h2 { font-size: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
