/* Solar Panels & Floodlights Kenya ,  shared styles
   Premium electronics catalogue · Zero JavaScript · Mobile-first */

/* -------------------------------------------------------------------------- */
/* Tokens                                                                      */
/* -------------------------------------------------------------------------- */
:root {
  --surface: #f7f6f3;
  --surface-elevated: #ffffff;
  --ink: #141a17;
  --ink-muted: #5c6560;
  --line: #e2e4e0;
  --accent: #1f6b4a;
  --accent-hover: #185a3d;
  --whatsapp: #25d366;
  --whatsapp-hover: #1ebe57;
  --whatsapp-active: #128c7e;
  --focus: #1f6b4a;

  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;

  --text-display: clamp(2rem, 1.5rem + 2vw, 3rem);
  --text-h1: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem);
  --text-h2: clamp(1.35rem, 1.2rem + 0.8vw, 1.65rem);
  --text-h3: 1.125rem;
  --text-body: 1rem;
  --text-sm: 0.875rem;
  --text-xs: 0.75rem;
  --text-price: clamp(1.35rem, 1.2rem + 0.6vw, 1.75rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-1: 0 1px 2px rgb(20 26 23 / 0.06);
  --shadow-2: 0 4px 12px rgb(20 26 23 / 0.08);
  --shadow-3: 0 12px 32px rgb(20 26 23 / 0.1);

  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --dur: 180ms;

  --max: 72rem;
  --prose: 38rem;
  --header-h: 4.25rem;
  --sticky-bar-h: 4.25rem;
  --gutter: 1rem;
}

@media (min-width: 768px) {
  :root {
    --gutter: 1.5rem;
  }
}

/* -------------------------------------------------------------------------- */
/* Reset & base                                                                */
/* -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  padding-bottom: calc(var(--sticky-bar-h) + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 1024px) {
  body {
    padding-bottom: 0;
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
  transition: color var(--dur) var(--ease);
}

a:hover {
  color: var(--accent-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible,
.nav-toggle:focus-visible + .nav-toggle-btn,
.thumb-label:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-4);
  color: var(--ink);
}

h1 {
  font-size: var(--text-h1);
}

h2 {
  font-size: var(--text-h2);
  margin-top: var(--space-10);
}

h3 {
  font-size: var(--text-h3);
  letter-spacing: -0.01em;
  margin-top: var(--space-8);
}

p {
  margin: 0 0 var(--space-4);
}

ul,
ol {
  margin: 0 0 var(--space-4);
  padding-left: 1.25rem;
}

li {
  margin-bottom: var(--space-2);
}

strong {
  font-weight: 600;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: var(--space-10) 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  font-size: var(--text-sm);
  margin: 0 0 var(--space-6);
  background: var(--surface-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

th,
td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  background: rgb(20 26 23 / 0.03);
}

tr:last-child td {
  border-bottom: 0;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: var(--space-6);
  border-radius: var(--radius-md);
}

.num,
.price,
.spec-table td:nth-child(2),
.price-table td:nth-child(n + 2) {
  font-variant-numeric: tabular-nums;
}

/* -------------------------------------------------------------------------- */
/* Utilities                                                                   */
/* -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 1000;
  background: var(--ink);
  color: #fff;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip-link:focus {
  top: var(--space-4);
  color: #fff;
}

.container {
  width: min(100% - (var(--gutter) * 2), var(--max));
  margin-inline: auto;
}

.section {
  padding: var(--space-16) 0;
}

.section--tight {
  padding: var(--space-10) 0;
}

.section--hero {
  padding: var(--space-12) 0 var(--space-16);
}

@media (min-width: 768px) {
  .section {
    padding: var(--space-20) 0;
  }

  .section--hero {
    padding: var(--space-16) 0 var(--space-20);
  }
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-3);
}

.section-head {
  max-width: 40rem;
  margin-bottom: var(--space-10);
}

.section-head p {
  color: var(--ink-muted);
  margin-bottom: 0;
}

.muted {
  color: var(--ink-muted);
}

.center {
  text-align: center;
}

.sr-only {
  position: absolute;
  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-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  padding: 0.9rem 1.35rem;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-1);
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: #fff;
  box-shadow: var(--shadow-2);
}

/* Official-style WhatsApp CTA buttons */
.btn--whatsapp {
  background: var(--whatsapp);
  color: #fff !important;
  border: none;
  border-radius: var(--radius-full);
  font-weight: 600;
  letter-spacing: 0.01em;
  gap: 0.55rem;
  box-shadow: 0 2px 8px rgb(37 211 102 / 0.35);
  text-decoration: none !important;
}

.btn--whatsapp:hover {
  background: var(--whatsapp-hover);
  color: #fff !important;
  box-shadow: 0 4px 14px rgb(37 211 102 / 0.45);
}

.btn--whatsapp:active {
  background: var(--whatsapp-active);
  transform: scale(0.98);
}

.btn--whatsapp:focus-visible {
  outline: 2px solid var(--whatsapp);
  outline-offset: 3px;
}

.wa-icon {
  width: 1.35rem;
  height: 1.35rem;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}

.btn--whatsapp .wa-icon,
.sticky-bar .btn--whatsapp .wa-icon {
  width: 1.4rem;
  height: 1.4rem;
  filter: none;
}

.btn--sm.btn--whatsapp .wa-icon {
  width: 1.15rem;
  height: 1.15rem;
}

/* Sticky bar WhatsApp: full brand treatment */
.sticky-bar .btn--whatsapp {
  font-size: 0.9rem;
  padding: 0.9rem 0.85rem;
  box-shadow: none;
}

.btn--secondary {
  background: var(--surface-elevated);
  color: var(--ink);
  border-color: var(--line);
}

.btn--secondary:hover {
  border-color: var(--ink-muted);
  color: var(--ink);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--block {
  width: 100%;
}

.btn--sm {
  padding: 0.65rem 1rem;
  font-size: var(--text-xs);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.btn svg {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
}

/* -------------------------------------------------------------------------- */
/* Header & nav (checkbox technique)                                           */
/* -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgb(247 246 243 / 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: var(--header-h);
  padding-block: var(--space-3);
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}

.logo:hover {
  color: var(--ink);
}

.logo-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.logo-sub {
  font-size: 0.68rem;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.header-actions .btn {
  display: none;
}

@media (min-width: 480px) {
  .header-actions .btn--header-wa {
    display: inline-flex;
  }
}

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-elevated);
  cursor: pointer;
  color: var(--ink);
}

.nav-toggle-btn .icon-close {
  display: none;
}

.nav-toggle:checked + .nav-toggle-btn .icon-open {
  display: none;
}

.nav-toggle:checked + .nav-toggle-btn .icon-close {
  display: block;
}

.site-nav {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--surface-elevated);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 280ms var(--ease), opacity 200ms var(--ease);
}

.nav-toggle:checked ~ .site-nav {
  max-height: min(80vh, 40rem);
  opacity: 1;
  overflow-y: auto;
}

.nav-inner {
  padding: var(--space-4) var(--gutter) var(--space-6);
  display: grid;
  gap: var(--space-6);
}

.nav-group-title {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 var(--space-3);
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.15rem;
}

.nav-list a {
  display: block;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-sm);
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius-sm);
}

.nav-list a:hover {
  background: var(--surface);
  color: var(--accent);
}

@media (min-width: 1024px) {
  .nav-toggle,
  .nav-toggle-btn {
    display: none;
  }

  .site-header {
    position: sticky;
  }

  .header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: var(--space-6);
  }

  .site-nav {
    position: static;
    max-height: none;
    opacity: 1;
    overflow: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .nav-inner {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-1);
    flex-wrap: wrap;
  }

  .nav-group {
    position: relative;
  }

  .nav-group-title {
    display: none;
  }

  .nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
  }

  .nav-list a {
    padding: 0.45rem 0.55rem;
    font-size: 0.8125rem;
    white-space: nowrap;
  }

  .nav-mobile-only {
    display: none;
  }

  .header-actions .btn {
    display: inline-flex;
  }
}

/* -------------------------------------------------------------------------- */
/* Breadcrumbs                                                                 */
/* -------------------------------------------------------------------------- */
.breadcrumbs {
  padding: var(--space-4) 0 0;
  font-size: var(--text-sm);
  color: var(--ink-muted);
}

.breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
}

.breadcrumbs li {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  color: var(--line);
  margin-left: 0.15rem;
}

.breadcrumbs a {
  color: var(--ink-muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumbs [aria-current="page"] {
  color: var(--ink);
}

/* -------------------------------------------------------------------------- */
/* Spec pills                                                                  */
/* -------------------------------------------------------------------------- */
.spec-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0 0 var(--space-5);
  list-style: none;
  padding: 0;
}

.spec-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  background: var(--surface-elevated);
  font-size: var(--text-xs);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  margin: 0;
}

.spec-pill--accent {
  border-color: rgb(31 107 74 / 0.35);
  background: rgb(31 107 74 / 0.06);
  color: var(--accent);
  font-weight: 600;
}

.spec-pill .label {
  color: var(--ink-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.65rem;
}

/* -------------------------------------------------------------------------- */
/* Product cards                                                               */
/* -------------------------------------------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 600px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
  }
}

@media (min-width: 1280px) {
  .product-grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--surface-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-1);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
  height: 100%;
}

a.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: rgb(92 101 96 / 0.35);
  color: inherit;
}

.product-card__media {
  aspect-ratio: 4 / 3;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__body {
  padding: var(--space-4) var(--space-5) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}

.product-card__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__specs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.25rem;
  font-size: var(--text-sm);
  color: var(--ink-muted);
}

.product-card__specs li {
  margin: 0;
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  font-variant-numeric: tabular-nums;
}

.product-card__specs span:last-child {
  color: var(--ink);
  font-weight: 500;
}

.product-card__price {
  margin-top: auto;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.product-card__meta {
  font-size: var(--text-xs);
  color: var(--ink-muted);
}

/* -------------------------------------------------------------------------- */
/* Category / link chips                                                       */
/* -------------------------------------------------------------------------- */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0 0 var(--space-8);
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  background: var(--surface-elevated);
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease),
    color var(--dur) var(--ease);
}

.chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgb(31 107 74 / 0.05);
}

.chip--active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.chip--active:hover {
  background: var(--accent-hover);
  color: #fff;
}

/* -------------------------------------------------------------------------- */
/* Trust strip                                                                 */
/* -------------------------------------------------------------------------- */
.trust-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin: var(--space-6) 0;
}

@media (min-width: 768px) {
  .trust-strip {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
  }
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--surface-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.trust-item svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.trust-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  margin-bottom: 0.15rem;
}

.trust-item span {
  font-size: var(--text-xs);
  color: var(--ink-muted);
  line-height: 1.4;
}

/* -------------------------------------------------------------------------- */
/* Hero                                                                        */
/* -------------------------------------------------------------------------- */
.hero {
  display: grid;
  gap: var(--space-10);
  align-items: center;
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-12);
  }
}

.hero-copy h1 {
  font-size: var(--text-display);
  margin-bottom: var(--space-5);
}

.hero-copy .lead {
  font-size: 1.0625rem;
  color: var(--ink-muted);
  max-width: 34rem;
  margin-bottom: var(--space-6);
}

/* Hero gallery: auto-rotating slides (CSS only, zero JS) */
.hero-gallery {
  position: relative;
}

.hero-media {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #ddd;
  aspect-ratio: 4 / 3;
}

.hero-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

/* 4 slides, 20s loop (about 5s each), pure CSS keyframes so loops stay staggered */
.hero-slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation-duration: 20s;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}

/* First image holds layout height */
.hero-slides img:first-child {
  position: relative;
}

.hero-slides img:nth-child(1) {
  animation-name: hero-fade-1;
  z-index: 4;
}

.hero-slides img:nth-child(2) {
  animation-name: hero-fade-2;
  z-index: 3;
}

.hero-slides img:nth-child(3) {
  animation-name: hero-fade-3;
  z-index: 2;
}

.hero-slides img:nth-child(4) {
  animation-name: hero-fade-4;
  z-index: 1;
}

@keyframes hero-fade-1 {
  0%,
  20% {
    opacity: 1;
  }
  25%,
  100% {
    opacity: 0;
  }
}

@keyframes hero-fade-2 {
  0%,
  20% {
    opacity: 0;
  }
  25%,
  45% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@keyframes hero-fade-3 {
  0%,
  45% {
    opacity: 0;
  }
  50%,
  70% {
    opacity: 1;
  }
  75%,
  100% {
    opacity: 0;
  }
}

@keyframes hero-fade-4 {
  0%,
  70% {
    opacity: 0;
  }
  75%,
  95% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.75rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  z-index: 5;
  pointer-events: none;
}

.hero-dots span {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.45);
  border: 1px solid rgb(0 0 0 / 0.12);
  animation-duration: 20s;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}

.hero-dots span:nth-child(1) {
  animation-name: hero-dot-1;
}

.hero-dots span:nth-child(2) {
  animation-name: hero-dot-2;
}

.hero-dots span:nth-child(3) {
  animation-name: hero-dot-3;
}

.hero-dots span:nth-child(4) {
  animation-name: hero-dot-4;
}

@keyframes hero-dot-1 {
  0%,
  20% {
    background: #fff;
    transform: scale(1.2);
  }
  25%,
  100% {
    background: rgb(255 255 255 / 0.45);
    transform: scale(1);
  }
}

@keyframes hero-dot-2 {
  0%,
  20% {
    background: rgb(255 255 255 / 0.45);
    transform: scale(1);
  }
  25%,
  45% {
    background: #fff;
    transform: scale(1.2);
  }
  50%,
  100% {
    background: rgb(255 255 255 / 0.45);
    transform: scale(1);
  }
}

@keyframes hero-dot-3 {
  0%,
  45% {
    background: rgb(255 255 255 / 0.45);
    transform: scale(1);
  }
  50%,
  70% {
    background: #fff;
    transform: scale(1.2);
  }
  75%,
  100% {
    background: rgb(255 255 255 / 0.45);
    transform: scale(1);
  }
}

@keyframes hero-dot-4 {
  0%,
  70% {
    background: rgb(255 255 255 / 0.45);
    transform: scale(1);
  }
  75%,
  95% {
    background: #fff;
    transform: scale(1.2);
  }
  100% {
    background: rgb(255 255 255 / 0.45);
    transform: scale(1);
  }
}

.hero-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-top: 0.65rem;
}

.hero-thumbs .hero-thumb {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  opacity: 0.75;
  animation-duration: 20s;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}

.hero-thumbs .hero-thumb:nth-child(1) {
  animation-name: hero-thumb-1;
}

.hero-thumbs .hero-thumb:nth-child(2) {
  animation-name: hero-thumb-2;
}

.hero-thumbs .hero-thumb:nth-child(3) {
  animation-name: hero-thumb-3;
}

.hero-thumbs .hero-thumb:nth-child(4) {
  animation-name: hero-thumb-4;
}

.hero-thumbs .hero-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@keyframes hero-thumb-1 {
  0%,
  20% {
    border-color: var(--accent);
    opacity: 1;
  }
  25%,
  100% {
    border-color: transparent;
    opacity: 0.75;
  }
}

@keyframes hero-thumb-2 {
  0%,
  20% {
    border-color: transparent;
    opacity: 0.75;
  }
  25%,
  45% {
    border-color: var(--accent);
    opacity: 1;
  }
  50%,
  100% {
    border-color: transparent;
    opacity: 0.75;
  }
}

@keyframes hero-thumb-3 {
  0%,
  45% {
    border-color: transparent;
    opacity: 0.75;
  }
  50%,
  70% {
    border-color: var(--accent);
    opacity: 1;
  }
  75%,
  100% {
    border-color: transparent;
    opacity: 0.75;
  }
}

@keyframes hero-thumb-4 {
  0%,
  70% {
    border-color: transparent;
    opacity: 0.75;
  }
  75%,
  95% {
    border-color: var(--accent);
    opacity: 1;
  }
  100% {
    border-color: transparent;
    opacity: 0.75;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slides img {
    animation: none !important;
    opacity: 0;
  }

  .hero-slides img:first-child {
    opacity: 1;
  }

  .hero-dots span,
  .hero-thumbs .hero-thumb {
    animation: none !important;
  }

  .hero-dots span:first-child {
    background: #fff;
    transform: scale(1.2);
  }

  .hero-thumbs .hero-thumb:first-child {
    border-color: var(--accent);
    opacity: 1;
  }
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--line);
}

.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.hero-stat span {
  font-size: var(--text-xs);
  color: var(--ink-muted);
}

/* -------------------------------------------------------------------------- */
/* Category tiles                                                              */
/* -------------------------------------------------------------------------- */
.cat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 600px) {
  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .cat-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cat-tile {
  display: flex;
  flex-direction: column;
  background: var(--surface-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
  box-shadow: var(--shadow-1);
  height: 100%;
}

.cat-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: rgb(31 107 74 / 0.35);
  color: inherit;
}

.cat-tile__media {
  aspect-ratio: 16 / 11;
  background: #e8ebe7;
  overflow: hidden;
}

.cat-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cat-tile__body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.cat-tile h3 {
  margin: 0 0 var(--space-2);
  font-size: 1.05rem;
}

.cat-tile p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--ink-muted);
}

.cat-tile .link-hint {
  margin-top: auto;
  padding-top: var(--space-4);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent);
}

/* Image cards for wattage sizes + solutions */
.media-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 600px) {
  .media-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .media-card-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .media-card-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .media-card-grid--7 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.media-card {
  display: block;
  background: var(--surface-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-1);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.media-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  color: inherit;
}

.media-card__media {
  aspect-ratio: 4 / 3;
  background: #e8ebe7;
  overflow: hidden;
}

.media-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-card__body {
  padding: var(--space-4);
}

.media-card__body h3 {
  margin: 0 0 0.25rem;
  font-size: 0.98rem;
}

.media-card__body p {
  margin: 0;
  font-size: var(--text-xs);
  color: var(--ink-muted);
}

/* -------------------------------------------------------------------------- */
/* Product page                                                                */
/* -------------------------------------------------------------------------- */
.pdp {
  display: grid;
  gap: var(--space-8);
  padding-bottom: var(--space-12);
}

@media (min-width: 900px) {
  .pdp {
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--space-12);
    align-items: start;
  }

  .pdp-buy {
    position: sticky;
    top: calc(var(--header-h) + var(--space-4));
  }
}

.gallery {
  background: var(--surface-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-2);
  box-shadow: var(--shadow-1);
}

.gallery-main {
  position: relative;
  aspect-ratio: 1;
  background: var(--surface);
  border-radius: calc(var(--radius-lg) - 4px);
  overflow: hidden;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 200ms var(--ease);
}

/* Radio gallery */
.gallery-radios {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

#g1:checked ~ .gallery-main img[data-g="1"],
#g2:checked ~ .gallery-main img[data-g="2"],
#g3:checked ~ .gallery-main img[data-g="3"],
#g4:checked ~ .gallery-main img[data-g="4"] {
  opacity: 1;
  position: relative;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.thumb-label {
  display: block;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  background: var(--surface);
}

.thumb-label img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#g1:checked ~ .gallery-thumbs label[for="g1"],
#g2:checked ~ .gallery-thumbs label[for="g2"],
#g3:checked ~ .gallery-thumbs label[for="g3"],
#g4:checked ~ .gallery-thumbs label[for="g4"] {
  border-color: var(--accent);
}

/* Scroll-snap fallback strip for multi-image without radios on some pages */
.gallery-snap {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  border-radius: calc(var(--radius-lg) - 4px);
}

.gallery-snap figure {
  margin: 0;
  flex: 0 0 100%;
  scroll-snap-align: start;
  aspect-ratio: 1;
  background: var(--surface);
}

.gallery-snap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.price-block {
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-5);
}

.price-block .price {
  font-family: var(--font-display);
  font-size: var(--text-price);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  margin: 0 0 var(--space-2);
}

.price-block .avail {
  font-size: var(--text-sm);
  color: var(--ink-muted);
  margin: 0;
}

.price-note {
  font-size: var(--text-xs);
  color: var(--ink-muted);
  margin: var(--space-2) 0 0;
}

.answer-first {
  font-size: 1.02rem;
  color: var(--ink-muted);
  margin-bottom: var(--space-5);
}

.honesty-note {
  padding: var(--space-4) var(--space-5);
  border-left: 3px solid var(--accent);
  background: rgb(31 107 74 / 0.05);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: var(--text-sm);
  margin: 0 0 var(--space-6);
}

.honesty-note strong {
  display: block;
  font-family: var(--font-display);
  margin-bottom: var(--space-1);
  color: var(--ink);
}

.content-block {
  margin-top: var(--space-8);
}

.content-block h2:first-child {
  margin-top: 0;
}

/* -------------------------------------------------------------------------- */
/* FAQ                                                                         */
/* -------------------------------------------------------------------------- */
.faq-list {
  display: grid;
  gap: var(--space-3);
}

.faq-list details {
  background: var(--surface-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0;
  overflow: hidden;
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  padding: var(--space-4) var(--space-5);
  position: relative;
  padding-right: 2.5rem;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 500;
  color: var(--ink-muted);
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list details p {
  margin: 0;
  padding: 0 var(--space-5) var(--space-5);
  font-size: var(--text-sm);
  color: var(--ink-muted);
}

/* -------------------------------------------------------------------------- */
/* Blog                                                                        */
/* -------------------------------------------------------------------------- */
.article {
  max-width: var(--prose);
  margin: 0 auto;
  padding-bottom: var(--space-16);
}

.article-header {
  margin-bottom: var(--space-8);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  font-size: var(--text-sm);
  color: var(--ink-muted);
  margin-bottom: var(--space-4);
}

.article .answer-first {
  font-size: 1.08rem;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: var(--space-6);
  margin-bottom: var(--space-8);
}

.article h2 {
  margin-top: var(--space-12);
}

.article .table-wrap,
.article table {
  max-width: none;
}

.article-cta {
  margin-top: var(--space-12);
  padding: var(--space-8);
  background: var(--surface-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-1);
}

.blog-grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--surface-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-1);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  color: inherit;
}

.blog-card__media {
  aspect-ratio: 16 / 10;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card__body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}

.blog-card__date {
  font-size: var(--text-xs);
  color: var(--ink-muted);
}

.blog-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.blog-card p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--ink-muted);
}

/* -------------------------------------------------------------------------- */
/* Forms                                                                       */
/* -------------------------------------------------------------------------- */
.form-grid {
  display: grid;
  gap: var(--space-4);
  max-width: 32rem;
}

.form-field label {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--surface-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  transition: border-color var(--dur) var(--ease);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgb(31 107 74 / 0.15);
}

.form-field textarea {
  min-height: 8rem;
  resize: vertical;
}

/* -------------------------------------------------------------------------- */
/* Contact / map                                                               */
/* -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  gap: var(--space-8);
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr 1.1fr;
    gap: var(--space-12);
  }
}

.contact-card {
  background: var(--surface-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  box-shadow: var(--shadow-1);
}

.contact-card dl {
  margin: 0;
}

.contact-card dt {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: var(--space-4);
}

.contact-card dt:first-child {
  margin-top: 0;
}

.contact-card dd {
  margin: var(--space-1) 0 0;
}

.map-wrap {
  aspect-ratio: 16 / 11;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* -------------------------------------------------------------------------- */
/* Page intro                                                                  */
/* -------------------------------------------------------------------------- */
.page-intro {
  max-width: 42rem;
  padding: var(--space-8) 0 var(--space-6);
}

.page-intro h1 {
  margin-bottom: var(--space-4);
}

.page-intro .lead {
  color: var(--ink-muted);
  font-size: 1.05rem;
  margin: 0;
}

.updated-note {
  font-size: var(--text-sm);
  color: var(--ink-muted);
  margin: 0 0 var(--space-6);
}

/* -------------------------------------------------------------------------- */
/* Footer                                                                      */
/* -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: rgb(247 246 243 / 0.82);
  padding: var(--space-16) 0 var(--space-10);
  margin-top: var(--space-16);
}

.site-footer a {
  color: rgb(247 246 243 / 0.9);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.footer-grid {
  display: grid;
  gap: var(--space-10);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: var(--space-8);
  }
}

.footer-brand .logo-mark {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: var(--space-3);
}

.footer-brand p {
  font-size: var(--text-sm);
  line-height: 1.55;
  margin-bottom: var(--space-4);
  max-width: 22rem;
}

.footer-col h3 {
  color: #fff;
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 var(--space-4);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: var(--space-2);
}

.footer-col a {
  font-size: var(--text-sm);
}

.footer-bottom {
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid rgb(247 246 243 / 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
  font-size: var(--text-xs);
  color: rgb(247 246 243 / 0.55);
}

.definitional {
  font-size: var(--text-sm);
  max-width: 40rem;
}

/* -------------------------------------------------------------------------- */
/* Sticky mobile bar                                                           */
/* -------------------------------------------------------------------------- */
.sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-2);
  padding: var(--space-3) var(--gutter);
  padding-bottom: calc(var(--space-3) + env(safe-area-inset-bottom, 0px));
  background: rgb(255 255 255 / 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 20px rgb(20 26 23 / 0.06);
}

.sticky-bar .btn {
  padding: 0.85rem 0.75rem;
}

@media (min-width: 1024px) {
  .sticky-bar {
    display: none;
  }
}

/* -------------------------------------------------------------------------- */
/* 404                                                                         */
/* -------------------------------------------------------------------------- */
.error-page {
  text-align: center;
  padding: var(--space-24) 0;
  max-width: 32rem;
  margin: 0 auto;
}

.error-page h1 {
  font-size: var(--text-display);
}

/* -------------------------------------------------------------------------- */
/* Misc content                                                                */
/* -------------------------------------------------------------------------- */
.prose-width {
  max-width: 42rem;
}

.split-2 {
  display: grid;
  gap: var(--space-8);
}

@media (min-width: 800px) {
  .split-2 {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
  }
}

.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-5);
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: var(--space-5) var(--space-5) var(--space-5) 4rem;
  background: var(--surface-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  margin: 0;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: var(--space-4);
  top: var(--space-5);
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  display: grid;
  place-items: center;
  font-variant-numeric: tabular-nums;
}

.note-box {
  padding: var(--space-5);
  background: var(--surface-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
}

.related-grid {
  margin-top: var(--space-4);
}

.price-table .price-cell {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Placeholder image treatment when real photos missing */
.img-ph {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(145deg, #e8ebe7 0%, #d5dbd6 50%, #eef0ec 100%);
}

/* Inline icon sizing */
.icon {
  width: 1.25rem;
  height: 1.25rem;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
