/* ==========================================================================
   Lectric Washing Soda — static site styles
   Palette: brand red #e42924 / #ff0000, sage #90a18f, ink #292929
   Font: Karla
   ========================================================================== */

:root {
  --red: #e42924;
  --red-button: #ff0000;
  --sage: #90a18f;
  --ink: #292929;
  --text: #000000;
  --muted: #6b6b6b;
  --border: #d3d3d3;
  --bg: #ffffff;
  --bg-soft: #f9faf9;
  --rating: #ffcb67;
  --maxw: 1280px;
  --font: "Karla", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }

/* Base type set to 14px to match the original theme (rems scale from here). */
html { -webkit-text-size-adjust: 100%; font-size: 87.5%; }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; font-weight: 700; }
h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; text-transform: uppercase; letter-spacing: .02em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--red); color: #fff;
  padding: 10px 16px; z-index: 1000;
}
.skip-link:focus { left: 8px; top: 8px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Buttons --------------------------------------------------------------- */
.btn {
  display: inline-block; font-weight: 700; text-align: center; cursor: pointer;
  padding: 12px 28px; border: 2px solid var(--red-button); border-radius: 0;
  text-decoration: none; transition: background .15s, color .15s; line-height: 1.2;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--red-button); color: #fff; }
.btn-primary:hover { background: #fff; color: var(--red-button); }
.btn-secondary { background: #fff; color: var(--red-button); }
.btn-secondary:hover { background: var(--red-button); color: #fff; }

/* Announcement bar ------------------------------------------------------ */
.announcement-bar { background: var(--red); color: #fff; text-align: center; }
.announcement-bar p { margin: 0; padding: 9px 20px; font-size: .82rem; letter-spacing: .02em; }
.announcement-bar a { color: #fff; text-decoration: underline; font-weight: 700; }

/* Header / nav ---------------------------------------------------------- */
.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--bg); z-index: 100;
}
/* Centered header: logo on top, nav centered below it. */
.header-inner {
  display: flex; flex-direction: column; align-items: center;
  gap: 6px; padding-top: 18px; padding-bottom: 6px; position: relative;
}
.site-logo { display: block; }
.site-logo img { width: 250px; max-width: 70vw; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0;
  cursor: pointer; padding: 8px; position: absolute; right: 12px; top: 18px;
}
.nav-toggle span { width: 26px; height: 3px; background: var(--ink); display: block; }

.nav-list { list-style: none; display: flex; justify-content: center; gap: 2px; margin: 0; padding: 0; flex-wrap: wrap; }
.nav-item { position: relative; }
.nav-item > a {
  display: block; padding: 12px 14px; color: var(--ink); font-weight: 700;
  text-transform: uppercase; font-size: .82rem; letter-spacing: .04em;
}
.nav-item.has-children > a::after { content: " \25BE"; font-size: .8em; }
.nav-item > a:hover, .nav-item > a[aria-current="page"] { color: var(--red); text-decoration: none; }
.submenu-toggle { display: none; }

/* Desktop dropdowns */
.submenu {
  list-style: none; margin: 0; padding: 8px 0; position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 200px; background: #fff; border: 1px solid var(--border);
  box-shadow: 0 8px 20px rgba(0,0,0,.08); opacity: 0; visibility: hidden;
  transition: all .15s; z-index: 50;
}
.nav-item.has-children:hover .submenu,
.nav-item.has-children:focus-within .submenu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.submenu a {
  display: block; padding: 8px 18px; color: var(--ink); font-size: .85rem;
  text-transform: uppercase; letter-spacing: .02em;
}
.submenu a:hover, .submenu a[aria-current="page"] { background: var(--bg-soft); color: var(--red); text-decoration: none; }

/* Page content (rte) ---------------------------------------------------- */
.site-main { min-height: 50vh; }
.page { max-width: 820px; margin: 0 auto; padding: 40px 20px; }
.page-wide { max-width: var(--maxw); margin: 0 auto; padding: 40px 20px; }
.page-banner { margin-bottom: 28px; }
.page-banner img { margin: 0 auto; }
.rte > :first-child { margin-top: 0; }
.rte h2 { margin: 1.6em 0 .5em; }
.rte h3 { margin: 1.4em 0 .4em; color: var(--red); }
.rte p, .rte li { font-size: 1.05rem; }
.rte ul, .rte ol { padding-left: 1.3em; }
.rte img { margin: 1.5em auto; }
.rte hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }
.rte table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
.rte th, .rte td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; }
.rte th { background: var(--bg-soft); }

/* Hero / home ----------------------------------------------------------- */
.hero-slider { position: relative; }
.hero-slider .slides { position: relative; width: 100%; aspect-ratio: 1690 / 505; background: var(--bg-soft); }
.hero-slider .slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .8s ease; pointer-events: none;
}
.hero-slider .slide.is-active { opacity: 1; pointer-events: auto; }
.slider-dots { position: absolute; bottom: 16px; left: 0; right: 0; display: flex; gap: 10px; justify-content: center; }
.slider-dots button {
  width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: rgba(255,255,255,.4);
  cursor: pointer; padding: 0;
}
.slider-dots button.is-active { background: #fff; }

.home-intro { text-align: center; padding: 48px 20px; max-width: 820px; margin: 0 auto; }
.home-intro h1 { margin-top: 0; }
.home-intro p { max-width: 700px; margin: 0 auto 1em; font-size: 1.15rem; }

.home-video { padding: 30px 0; }
.home-video .video-embed { max-width: 860px; margin: 0 auto; }
.home-product { padding: 10px 0 40px; }
.home-product img { margin: 0 auto; max-height: 600px; width: auto; }

.tile-grid {
  display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  max-width: var(--maxw); margin: 0 auto; padding: 20px;
}
.tile { display: block; text-align: center; }
.tile img { border: 1px solid var(--border); }
.tile span { display: block; margin-top: 10px; font-weight: 700; text-transform: uppercase; color: var(--ink); }
.tile:hover span { color: var(--red); }

/* Green-border image tile grids (Uses / Recipes — labels baked into images) */
.tiles { display: grid; gap: 22px 2%; margin: 24px 0; }
.tiles-2 { grid-template-columns: repeat(2, 1fr); }
.tiles-3 { grid-template-columns: repeat(3, 1fr); }
.tiles a { display: block; }
.greenborder { border: 4px solid green; width: 100%; display: block; transition: opacity .2s; }
.tiles a:hover .greenborder { opacity: .9; }
@media (max-width: 760px) { .tiles-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .tiles-2, .tiles-3 { grid-template-columns: 1fr; } }

/* Product --------------------------------------------------------------- */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: var(--maxw); margin: 0 auto; padding: 40px 20px; }
.product-gallery img { width: 100%; border: 1px solid var(--border); }
.product-info h1 { margin-top: 0; }
.product-buy { margin: 24px 0; display: flex; gap: 14px; flex-wrap: wrap; }
.product-note { color: var(--muted); font-size: .95rem; }
.retailers-heading { font-size: 14px; color: #555; margin: 18px 0 8px; max-width: 420px; }
.retailers { display: flex; flex-direction: column; align-items: flex-start; max-width: 420px; }
.buy-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; max-width: 420px; padding: 14px 24px; margin: 6px 0;
  font: 600 16px Arial, sans-serif; text-decoration: none; border-radius: 100px;
  box-shadow: 0 2px 5px rgba(0,0,0,.15); box-sizing: border-box;
}
.buy-button:hover { text-decoration: none; box-shadow: 0 3px 9px rgba(0,0,0,.22); }
.buy-button img { height: 22px; width: auto; display: inline-block; vertical-align: middle; }
/* Brand colours (matching the live site) */
.buy-amazon { background: #ffd814; color: #0f1111; border: 1px solid #fcd200; }
.buy-coles { background: #e01a22; color: #fff; border: 1px solid #c5141b; }
.buy-woolworths { background: #178841; color: #fff; border: 1px solid #11703a; }
.buy-iga { background: #e4291b; color: #fff; border: 1px solid #c5221a; }
.buy-rejectshop { background: #da291c; color: #fff; border: 1px solid #b92218; }
/* White-out logos that are dark-on-transparent so they read on coloured bars */
.buy-coles img, .buy-iga img, .buy-rejectshop img { filter: brightness(0) invert(1); }

/* Collection grid ------------------------------------------------------- */
.collection { max-width: var(--maxw); margin: 0 auto; padding: 40px 20px; }
.product-card-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.product-card { text-align: center; border: 1px solid var(--border); padding: 18px; }
.product-card img { margin: 0 auto 14px; }
.product-card .title { font-weight: 700; color: var(--ink); display: block; margin-bottom: 12px; }

/* Media / press logos --------------------------------------------------- */
.logo-grid { display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); align-items: center; margin: 2em 0; }
.logo-grid img { margin: 0 auto; filter: grayscale(1); opacity: .8; }

/* Videos ---------------------------------------------------------------- */
.video-grid { display: grid; gap: 30px 2%; grid-template-columns: repeat(2, 1fr); margin: 24px 0; }
.video-cell { text-align: center; }
.video-cell h2 { color: var(--red); text-transform: uppercase; font-size: 1.05rem; margin: 14px 0 0; }
.video-embed { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; }
.video-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 600px) { .video-grid { grid-template-columns: 1fr; } }

/* Recipe sub-pages (miracle-spray, washing-powder, etc.) ---------------- */
.imperial-script-regular {
  font-family: "Imperial Script", cursive; font-weight: 600; font-style: normal;
  font-size: 64px; line-height: 1.1; color: var(--red); text-align: center; padding-top: 16px; margin: .2em 0;
}
.rte .col-xs-12, .rte .col-sm-5 { display: block; width: 100%; }
.btn.red { background: var(--red-button); color: #fff; border: 2px solid var(--red-button); }
.btn.red:hover { background: #fff; color: var(--red-button); }
.bottom-details { display: block; width: 100%; border-top: 1px solid var(--ink); padding-top: 2em; margin-top: 2em; }
.bottom-details > h2 { text-align: center; padding-bottom: .6em; }
.autowide { margin: 0 auto; width: 100%; display: flex; flex-wrap: wrap; gap: 0 2%; }
.autowide .module { flex: 1 1 46%; margin-bottom: 1rem; }
.autowide .module ul { margin: 0; }
@media (min-width: 768px) { .autowide .module { flex-basis: 31%; } }
@media (max-width: 480px) { .autowide .module { flex-basis: 100%; } .imperial-script-regular { font-size: 46px; } }

/* Uses sub-page accordion (matches live red-bar style) ------------------ */
.rte .faqs { margin: 10px 0 30px; }
.rte .faqs details { border: 0; border-radius: 0; margin: 0 0 10px; box-shadow: none; }
.rte .faqs summary {
  background: #e62923; color: #fff; font-weight: 400; font-size: .95rem;
  padding: 14px 44px 13px 18px; list-style: none; cursor: pointer; position: relative;
  text-transform: none;
}
.rte .faqs summary::-webkit-details-marker { display: none; }
.rte .faqs details:not([open]) summary { background: #eee; color: #000; border-bottom: 1px solid #d0d0d0; }
.rte .faqs summary::after { content: "\2212"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 1.3rem; line-height: 1; color: inherit; }
.rte .faqs details:not([open]) summary::after { content: "+"; }
/* keep text readable on hover — the generic .rte summary:hover red would
   vanish against the red bar (and is meant for the white FAQ disclosures) */
.rte .faqs summary:hover { opacity: .95; color: #fff; }
.rte .faqs details:not([open]) summary:hover { color: #000; }
.rte .faqs details > div { padding: 15px 14px 20px 18px; background: #fff; }

/* Solution Strengths table (Uses sub-pages) ----------------------------- */
.solstrength { padding-top: 30px; }
.solstrength h2 { color: var(--ink); }
.responstable {
  margin: 1em 0; width: 100%; border-collapse: collapse; background: #fff;
  color: #024457; border-radius: 10px; overflow: hidden; border: 1px solid #167F92;
}
.responstable tr { border: 1px solid #D9E4E6; }
.responstable tr:nth-child(odd) { background-color: rgba(230, 41, 35, 0.16); }
.responstable th { background-color: #e62923; color: #fff; padding: .9em 1em; text-align: center; border: 1px solid #fff; }
.responstable td { padding: .8em 1em; text-align: center; border: 1px solid #D9E4E6; }

/* Reviews snapshot ------------------------------------------------------ */
.reviews { max-width: 820px; margin: 0 auto; padding: 20px; }
.reviews-summary { display: flex; align-items: center; gap: 16px; border-bottom: 1px solid var(--border); padding-bottom: 16px; margin-bottom: 20px; }
.reviews-summary .score { font-size: 2.5rem; font-weight: 700; color: var(--ink); }
.stars { color: var(--rating); font-size: 1.3rem; letter-spacing: 2px; }
.review { border-bottom: 1px solid var(--border); padding: 18px 0; }
.review .who { font-weight: 700; }
.review .when { color: var(--muted); font-size: .85rem; }
.reviews-note { color: var(--muted); font-size: .85rem; font-style: italic; }

/* Contact / Jotform embed ------------------------------------------------ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

/* Media / press coverage — full-width rows (logo left, text right) ------- */
.media-list { display: flex; flex-direction: column; gap: 22px; margin: 28px 0; }
.media-row {
  display: grid; grid-template-columns: 42% 58%; align-items: stretch;
  background: #ededed; overflow: hidden; text-decoration: none; color: var(--ink);
}
.media-logo { display: flex; align-items: center; justify-content: center; padding: 24px; background: #ededed; }
.media-logo img { max-height: 130px; width: auto; max-width: 100%; }
.media-body { background: #f6f6f6; padding: 26px 32px; display: flex; flex-direction: column; justify-content: center; }
.media-body h2 { margin: 0 0 6px; font-size: 1.15rem; text-transform: uppercase; color: var(--ink); }
.media-body p { margin: 0 0 10px; color: #555; }
.media-row .read-more { color: var(--red); font-weight: 700; text-transform: uppercase; font-size: .85rem; }
.media-row:hover .read-more { text-decoration: underline; }
.media-row:hover .media-body h2 { color: var(--red); }
@media (max-width: 600px) { .media-row { grid-template-columns: 1fr; } .media-logo { padding: 18px; } }

/* Promo blocks (uses / recipes landing) -------------------------------- */
.promo-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 2.5em 0 1em; text-align: center; }
.promo-item h3 { color: var(--red); }

/* FAQ disclosures ------------------------------------------------------- */
.rte details { border: 1px solid var(--border); border-radius: 4px; margin: 10px 0; }
.rte details[open] { box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.rte summary {
  cursor: pointer; padding: 14px 18px; font-weight: 700; color: var(--ink);
  list-style: none; position: relative; padding-right: 44px;
}
.rte summary::-webkit-details-marker { display: none; }
.rte summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--red); line-height: 1;
}
.rte details[open] summary::after { content: "\2212"; }
.rte summary:hover { color: var(--red); }
.rte details > div { padding: 0 18px 16px; }

/* Footer ---------------------------------------------------------------- */
.site-footer { background: var(--red); color: #fff; margin-top: 60px; }
.footer-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 30px; padding: 48px 20px; }
.site-footer a { color: #fff; }
.site-footer a:hover { text-decoration: underline; }
.footer-heading { color: #fff; font-size: 1rem; text-transform: uppercase; margin: 0 0 14px; }
.footer-menu ul { list-style: none; margin: 0; padding: 0; }
.footer-menu li { margin-bottom: 8px; }
.footer-brand img { background: #fff; padding: 8px; }
.footer-tagline { font-size: .9rem; opacity: .9; margin-top: 12px; }
.footer-credits { border-top: 1px solid rgba(255,255,255,.25); }
.footer-credits p { margin: 0; padding: 18px 20px; font-size: .85rem; text-align: center; }

/* Responsive ------------------------------------------------------------ */
@media (max-width: 959px) {
  .header-inner { align-items: center; padding-top: 16px; padding-bottom: 12px; }
  .nav-toggle { display: flex; top: 14px; right: 8px; }
  .primary-nav {
    width: 100%; background: #fff; display: none; margin-top: 8px;
    border-top: 1px solid var(--border);
    max-height: calc(100vh - 120px); overflow-y: auto;
  }
  .primary-nav.is-open { display: block; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-item { border-bottom: 1px solid var(--border); }
  .nav-item > a { padding: 14px 20px; text-align: center; }
  .nav-item.has-children > a::after { content: ""; }
  .submenu-toggle {
    display: block; position: absolute; top: 4px; right: 10px; width: 44px; height: 44px;
    font-size: 1.5rem; background: none; border: 0; color: var(--ink); cursor: pointer;
  }
  .submenu {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: 0; display: none; padding: 0 0 8px; min-width: 0; text-align: center;
  }
  .nav-item.submenu-open .submenu { display: block; }

  .product, .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .site-logo img { width: 200px; }
  h1 { font-size: 1.8rem; }
}
