/* ============================================================
   Solar Haven — Product cards, brand tiles, system sizes,
   rebate band, Google-reviews block, product tabs.
   Used on: solar-batteries.html, hot-water.html, aircon.html
   ============================================================ */

/* ---- Section scaffold ---- */
.products {
  padding: 90px 0;
  text-align: center;
}
.products.alt { background: var(--us-bg-warm); }
.products .container { max-width: var(--us-container); }
.products .eyebrow { justify-content: center; }
.products h2 {
  font-size: 36px;
  color: var(--us-navy);
  font-weight: 600;
  margin: 0 0 14px;
  line-height: 1.2;
}
.products .products-intro {
  max-width: 720px;
  margin: 0 auto 46px;
  color: var(--us-text);
  font-size: 15px;
  line-height: 1.7;
}

/* ---- Product grid ---- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: left;
}
.product-grid.cols-3 { grid-template-columns: repeat(3, 1fr); max-width: 1040px; margin: 0 auto; }

.product-card {
  background: var(--us-white);
  border: 1px solid var(--us-divider);
  border-radius: var(--us-radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--us-shadow-soft);
  transition: transform .18s ease, box-shadow .18s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--us-shadow-card); }

/* Product image tile — real product render on a soft white panel */
.pc-brand {
  position: relative;
  height: 204px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 22%, rgba(249,115,22,.05), transparent 62%),
    linear-gradient(180deg, #ffffff 0%, var(--us-bg-warm) 100%);
  border-bottom: 1px solid var(--us-divider);
  padding: 18px 20px;
}
.pc-brand img { max-height: 176px; max-width: 90%; width: auto; object-fit: contain; }
.pc-wordmark {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--us-charcoal);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-align: center;
}
.pc-wordmark::before {
  content: "";
  width: 12px; height: 12px;
  border-radius: 3px;
  background: var(--us-orange);
  flex-shrink: 0;
}
.pc-wordmark small { font-size: 13px; font-weight: 500; color: var(--us-text-soft); letter-spacing: 0; }

/* Body */
.pc-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.pc-type {
  color: var(--us-orange);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin: 0 0 6px;
}
.pc-name {
  color: var(--us-navy);
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 10px;
  line-height: 1.25;
}
.pc-spec {
  margin: 0 0 14px;
  font-size: 12.5px;
  color: var(--us-text-soft);
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}
.pc-spec .mod { color: var(--us-text-muted); }
.pc-feats { display: flex; flex-direction: column; gap: 9px; margin: 0 0 20px; }
.pc-feats li {
  position: relative;
  padding-left: 26px;
  font-size: 14px;
  color: var(--us-text);
  line-height: 1.45;
}
.pc-feats li::before {
  content: "";
  position: absolute;
  left: 0; top: 1px;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: rgba(249,115,22,.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F97316' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px;
}
.pc-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.pc-badge {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--us-charcoal);
  background: var(--us-bg-warm);
  border: 1px solid var(--us-divider);
  border-radius: var(--us-radius-pill);
  padding: 6px 12px;
  white-space: nowrap;
}
.pc-foot .btn { padding: 11px 22px; font-size: 13px; }

/* Product manual / spec sheet link */
.pc-manual {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--us-text-soft);
  text-decoration: none;
  margin: -2px 0 16px;
}
.pc-manual:hover { color: var(--us-orange); }
.pc-manual svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ---- System-size cards ---- */
.size-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  text-align: center;
}
.size-card {
  background: var(--us-white);
  border: 1px solid var(--us-divider);
  border-radius: var(--us-radius-card);
  padding: 30px 18px;
  box-shadow: var(--us-shadow-soft);
  transition: transform .18s ease, box-shadow .18s ease;
}
.size-card:hover { transform: translateY(-4px); box-shadow: var(--us-shadow-card); }
.size-card .kw { font-size: 34px; font-weight: 700; color: var(--us-orange); line-height: 1; margin: 0; }
.size-card .kw span { font-size: 16px; font-weight: 600; color: var(--us-charcoal); }
.size-card .who { font-size: 13px; color: var(--us-text); margin: 12px 0 0; line-height: 1.5; }

/* ---- Rebate / eligibility band ---- */
.rebate-band {
  background:
    radial-gradient(circle at 18% 30%, rgba(249,115,22,.10), transparent 60%),
    linear-gradient(135deg, var(--us-charcoal) 0%, #2a3849 100%);
  color: var(--us-white);
  padding: 70px 0;
}
.rebate-band .inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
}
.rebate-band .eyebrow { color: var(--us-coral); }
.rebate-band h2 { color: var(--us-white); font-size: 32px; font-weight: 600; margin: 0 0 16px; line-height: 1.2; }
.rebate-band p { color: rgba(255,255,255,.82); font-size: 15px; line-height: 1.7; margin: 0 0 16px; }
.rebate-points { display: flex; flex-direction: column; gap: 14px; }
.rebate-points .rp {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 18px 20px;
}
.rebate-points .rp strong { display: block; color: var(--us-white); font-size: 16px; margin-bottom: 4px; }
.rebate-points .rp span { color: rgba(255,255,255,.72); font-size: 13.5px; line-height: 1.5; }

/* ---- Google reviews (PLACEHOLDER content — swap for real Trustindex embed) ---- */
.greviews { padding: 84px 0; text-align: center; }
.greviews .eyebrow { justify-content: center; }
.greviews h2 { font-size: 34px; color: var(--us-navy); font-weight: 600; margin: 0 0 18px; line-height: 1.2; }
.greviews-rating {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 38px;
  background: var(--us-white);
  border: 1px solid var(--us-divider);
  border-radius: var(--us-radius-pill);
  padding: 10px 22px;
  box-shadow: var(--us-shadow-soft);
}
.greviews-rating .score { font-size: 26px; font-weight: 700; color: var(--us-charcoal); }
.greviews-rating .stars { color: #FBBC05; font-size: 18px; letter-spacing: 2px; }
.greviews-rating .count { font-size: 13px; color: var(--us-text-soft); }
.greviews-rating .gmark { font-weight: 600; font-size: 14px; }
.greviews-rating .gmark b:nth-child(1){color:#4285F4}.greviews-rating .gmark b:nth-child(2){color:#EA4335}.greviews-rating .gmark b:nth-child(3){color:#FBBC05}.greviews-rating .gmark b:nth-child(4){color:#4285F4}.greviews-rating .gmark b:nth-child(5){color:#34A853}.greviews-rating .gmark b:nth-child(6){color:#EA4335}

.gr-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: var(--us-container);
  margin: 0 auto;
  text-align: left;
}
.gr-card {
  background: var(--us-white);
  border: 1px solid var(--us-divider);
  border-radius: var(--us-radius-card);
  padding: 26px 24px;
  box-shadow: var(--us-shadow-soft);
}
.gr-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.gr-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--us-white); font-weight: 700; font-size: 17px; flex-shrink: 0;
}
.gr-head .nm { font-weight: 600; color: var(--us-navy); font-size: 15px; }
.gr-head .stars { color: #FBBC05; font-size: 13px; letter-spacing: 1px; }
.gr-card p { color: var(--us-text); font-size: 14px; line-height: 1.6; margin: 0; }
.gr-card .g { margin-top: 14px; font-size: 12px; color: var(--us-text-muted); display: flex; align-items: center; gap: 6px; }

/* ---- Product tabs (reuse .solutions-tab JS) ---- */
.product-tabs { display: flex; justify-content: center; margin-bottom: 40px; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .product-grid, .product-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .size-grid { grid-template-columns: repeat(3, 1fr); }
  .gr-grid { grid-template-columns: 1fr; max-width: 560px; }
  .rebate-band .inner { grid-template-columns: 1fr; gap: 32px; }
  .products h2, .greviews h2 { font-size: 30px; }
}
@media (max-width: 700px) {
  .products { padding: 60px 0; }
  .product-grid, .product-grid.cols-3 { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
  .size-grid { grid-template-columns: repeat(2, 1fr); }
  .pc-foot { flex-direction: column; align-items: stretch; }
  .pc-foot .btn { width: 100%; }
  .greviews { padding: 56px 0; }
}
