/* ClrWtrCo Whole-Home Systems Showcase & Product Detail Styles */
:root {
  --hw-navy: #0c1f2c;
  --hw-navy-mid: #102a3b;
  --hw-brand: #0e7c96;
  --hw-brand-dark: #095f74;
  --hw-aqua: #38bdf8;
  --hw-aqua-soft: #e0f5fe;
  --hw-sand: #f4f8fa;
  --hw-ink: #0f252c;
  --hw-body: #3c5660;
  --hw-line: rgba(15, 37, 44, 0.11);
  --hw-gold: #f59e0b;
  --hw-radius: 1.25rem;
  --hw-radius-lg: 1.5rem;
  --hw-max: 1200px;
}

.hw-container {
  max-width: var(--hw-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Top Hero Banner (/products/) */
.hw-systems-hero {
  position: relative;
  overflow: hidden;
  background: var(--hw-navy);
  padding: 4.5rem 0 5.5rem;
  color: #fff;
}

.hw-systems-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hw-systems-hero-bg img {
  position: absolute;
  right: -2%;
  top: 50%;
  transform: translateY(-50%);
  height: 112%;
  width: auto;
  max-width: 55%;
  object-fit: contain;
  opacity: 0.32;
}

.hw-systems-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--hw-navy) 0%, rgba(12, 31, 44, 0.96) 52%, rgba(12, 31, 44, 0.72) 100%);
}

.hw-systems-hero-content {
  position: relative;
  z-index: 2;
  max-width: 46rem;
}

.hw-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--hw-brand);
  margin-bottom: 0.85rem;
}

.hw-eyebrow.aqua {
  color: var(--hw-aqua);
}

.hw-eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  background: currentColor;
  opacity: 0.65;
}

.hw-systems-hero h1 {
  font-family: var(--sans);
  font-size: clamp(2.25rem, 4.8vw, 3.35rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 1.35rem;
}

.hw-systems-hero p.hw-hero-lead {
  font-size: 1.1rem;
  line-height: 1.68;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 2rem;
}

.hw-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.hw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.hw-btn-white {
  background: #fff;
  color: var(--hw-navy);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.hw-btn-white:hover {
  background: var(--hw-aqua-soft);
  transform: translateY(-2px);
}

.hw-btn-brand {
  background: linear-gradient(180deg, #1798b3, var(--hw-brand));
  color: #fff;
  box-shadow: 0 10px 24px rgba(14, 124, 150, 0.26);
}

.hw-btn-brand:hover {
  background: var(--hw-brand-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(14, 124, 150, 0.34);
}

.hw-btn-outline {
  background: #fff;
  color: var(--hw-ink);
  border: 1px solid var(--hw-line);
}

.hw-btn-outline:hover {
  border-color: var(--hw-brand);
  color: var(--hw-brand);
}

/* 5 Systems Grid Section */
.hw-systems-section {
  padding: 4.5rem 0 5rem;
  background: #fff;
}

.hw-systems-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.65rem;
}

.hw-system-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--hw-line);
  border-radius: var(--hw-radius-lg);
  overflow: hidden;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
  text-decoration: none;
  color: inherit;
}

.hw-system-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 45px rgba(12, 31, 44, 0.1);
  border-color: rgba(14, 124, 150, 0.35);
}

/* Stretched link makes the entire card clickable while keeping semantic structure */
.hw-card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hw-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.75rem;
}

.hw-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.hw-system-card:hover .hw-card-media img {
  transform: scale(1.035);
}

.hw-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  background: var(--hw-brand);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.32rem 0.8rem;
  border-radius: 999px;
}

.hw-card-body {
  padding: 1.55rem 1.6rem 1.65rem;
  border-top: 1px solid var(--hw-line);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.hw-card-title {
  font-family: var(--sans);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.32;
  color: var(--hw-ink);
  margin: 0;
}

.hw-card-subtitle {
  margin-top: 0.5rem;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--hw-brand);
}

.hw-card-desc {
  margin-top: 0.75rem;
  font-size: 0.91rem;
  line-height: 1.62;
  color: var(--hw-body);
  flex: 1;
}

.hw-card-bestfor {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px dashed rgba(15, 37, 44, 0.1);
  font-size: 0.83rem;
  color: var(--hw-body);
}

.hw-card-bestfor strong {
  color: var(--hw-ink);
  font-weight: 600;
}

.hw-card-link {
  margin-top: 1.15rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--hw-brand);
  text-decoration: none;
  transition: gap 0.2s ease, color 0.2s ease;
}

.hw-system-card:hover .hw-card-link {
  gap: 0.75rem;
  color: var(--hw-brand-dark);
}

.hw-card-link svg {
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
}

/* Product Detail Page Styles */
.hw-detail-hero {
  background: var(--hw-sand);
  padding: 2.75rem 0 4.5rem;
  border-bottom: 1px solid var(--hw-line);
}

.hw-breadcrumb {
  font-size: 0.85rem;
  color: var(--hw-body);
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.hw-breadcrumb a {
  color: var(--hw-body);
  text-decoration: none;
  transition: color 0.15s ease;
}

.hw-breadcrumb a:hover {
  color: var(--hw-brand);
}

.hw-breadcrumb .current {
  color: var(--hw-ink);
  font-weight: 600;
}

.hw-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 3.25rem;
  align-items: center;
}

.hw-detail-image-card {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #fff;
  border: 1px solid var(--hw-line);
  border-radius: var(--hw-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  box-shadow: 0 18px 40px rgba(12, 31, 44, 0.05);
}

.hw-detail-image-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hw-detail-image-card .hw-badge {
  top: 1.5rem;
  left: 1.5rem;
  font-size: 0.76rem;
  padding: 0.4rem 0.95rem;
}

.hw-detail-info h1 {
  font-family: var(--sans);
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  font-weight: 800;
  line-height: 1.12;
  color: var(--hw-ink);
  margin-bottom: 0.9rem;
}

.hw-detail-subtitle {
  font-size: 1.22rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--hw-brand);
  margin-bottom: 1.15rem;
}

.hw-detail-desc {
  font-size: 1.05rem;
  line-height: 1.68;
  color: var(--hw-body);
  margin-bottom: 1.5rem;
}

.hw-bestfor-box {
  background: #fff;
  border: 1px solid var(--hw-line);
  border-radius: 1rem;
  padding: 1.1rem 1.3rem;
  font-size: 0.94rem;
  color: var(--hw-body);
  margin-bottom: 1.85rem;
}

.hw-bestfor-box strong {
  color: var(--hw-ink);
  font-weight: 700;
}

.hw-review-pill {
  margin-top: 1.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: #fff;
  border: 1px solid var(--hw-line);
  border-radius: 999px;
  padding: 0.55rem 1.15rem;
  box-shadow: 0 4px 12px rgba(12, 31, 44, 0.04);
  font-size: 0.86rem;
}

.hw-stars {
  display: inline-flex;
  gap: 0.15rem;
  color: var(--hw-gold);
}

.hw-stars svg {
  width: 1rem;
  height: 1rem;
}

/* Features & Certs Section */
.hw-features-section {
  padding: 4.5rem 0;
  background: #fff;
  border-bottom: 1px solid var(--hw-line);
}

.hw-features-header {
  max-width: 42rem;
  margin-bottom: 2.25rem;
}

.hw-features-header h2 {
  font-family: var(--sans);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--hw-ink);
  margin: 0;
}

.hw-features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.hw-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: var(--hw-sand);
  border: 1px solid var(--hw-line);
  border-radius: 1rem;
  padding: 1.15rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--hw-ink);
  line-height: 1.45;
}

.hw-feature-icon {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--hw-brand);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 0.8rem;
  margin-top: 0.1rem;
}

/* Full Specifications Section */
.hw-specs-section {
  padding: 4.5rem 0;
  background: var(--hw-sand);
  border-bottom: 1px solid var(--hw-line);
}

.hw-specs-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.hw-specs-top h2 {
  font-family: var(--sans);
  font-size: clamp(1.85rem, 3.2vw, 2.4rem);
  font-weight: 800;
  color: var(--hw-ink);
  margin: 0;
}

.hw-cert-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hw-cert-pill {
  background: #fff;
  border: 1px solid var(--hw-line);
  border-radius: 999px;
  padding: 0.38rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--hw-ink);
  letter-spacing: 0.03em;
}

.hw-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.hw-spec-card {
  background: #fff;
  border: 1px solid var(--hw-line);
  border-radius: var(--hw-radius);
  padding: 1.75rem;
  box-shadow: 0 8px 24px rgba(12, 31, 44, 0.03);
}

.hw-spec-card.full-width {
  grid-column: 1 / -1;
}

.hw-spec-card h3 {
  font-family: var(--sans);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--hw-ink);
  margin-bottom: 1.1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--hw-sand);
}

.hw-spec-table {
  width: 100%;
  border-collapse: collapse;
}

.hw-spec-table tr {
  border-bottom: 1px solid rgba(15, 37, 44, 0.08);
}

.hw-spec-table tr:last-child {
  border-bottom: none;
}

.hw-spec-table th,
.hw-spec-table td {
  padding: 0.72rem 0.4rem;
  text-align: left;
  font-size: 0.9rem;
  line-height: 1.5;
  vertical-align: top;
}

.hw-spec-table th {
  color: var(--hw-body);
  font-weight: 500;
  width: 42%;
}

.hw-spec-table td {
  color: var(--hw-ink);
  font-weight: 600;
}

.hw-target-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1.25rem;
  margin-top: 0.5rem;
}

.hw-target-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--hw-ink);
  font-weight: 500;
}

.hw-target-list li::before {
  content: "✓";
  color: var(--hw-brand);
  font-weight: 800;
  flex-shrink: 0;
}

/* Warranty Banner inside Specs */
.hw-warranty-banner {
  margin-top: 1.5rem;
  background: var(--hw-navy);
  color: #fff;
  border-radius: var(--hw-radius);
  padding: 2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.hw-warranty-item .yr {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--hw-aqua);
  line-height: 1.1;
}

.hw-warranty-item .desc {
  margin-top: 0.35rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

.hw-spec-note {
  margin-top: 1.25rem;
  font-size: 0.8rem;
  color: var(--hw-body);
}

/* Closer Look Gallery */
.hw-gallery-section {
  padding: 4.5rem 0;
  background: #fff;
  border-bottom: 1px solid var(--hw-line);
}

.hw-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.hw-gallery-card {
  border: 1px solid var(--hw-line);
  border-radius: var(--hw-radius);
  overflow: hidden;
  background: var(--hw-sand);
}

.hw-gallery-img {
  aspect-ratio: 4 / 3;
  background: #fff;
  padding: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hw-gallery-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hw-gallery-caption {
  padding: 1rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--hw-ink);
  border-top: 1px solid var(--hw-line);
  background: #fff;
}

/* Also In Whole Home Systems Cross-Links */
.hw-related-section {
  padding: 4.5rem 0;
  background: var(--hw-sand);
}

/* Bottom CTA Section */
.hw-cta-banner {
  padding: 4.5rem 0;
  background: var(--hw-navy);
  color: #fff;
  text-align: center;
}

.hw-cta-banner h2 {
  font-family: var(--sans);
  font-size: clamp(1.9rem, 3.6vw, 2.65rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
}

.hw-cta-banner p {
  max-width: 38rem;
  margin: 0 auto 1.75rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
}

.hw-cta-perks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--hw-aqua);
}

@media (max-width: 980px) {
  .hw-systems-grid,
  .hw-features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hw-detail-grid,
  .hw-specs-grid {
    grid-template-columns: 1fr;
  }
  .hw-systems-hero-bg img {
    opacity: 0.16;
    max-width: 80%;
  }
}

@media (max-width: 640px) {
  .hw-systems-grid,
  .hw-features-grid,
  .hw-target-list,
  .hw-warranty-banner,
  .hw-gallery-grid {
    grid-template-columns: 1fr;
  }
  .hw-systems-hero {
    padding: 3.25rem 0 4rem;
  }
  .hw-detail-image-card {
    padding: 1.5rem;
  }
}
