/* product.css — Product Page */

/* PRODUCTS GRID */
.products-section {
  background: var(--bg);
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition:
    transform 0.45s var(--ease),
    box-shadow 0.45s var(--ease);
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow);
}
.product-card-img {
  height: 210px;
  overflow: hidden;
  position: relative;
}
.product-card-img img {
  transition: transform 0.65s var(--ease);
}
.product-card:hover .product-card-img img {
  transform: scale(1.06);
}
.product-card-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(11, 18, 32, 0.65);
  backdrop-filter: blur(8px);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}
.product-card-body {
  padding: 22px 22px 26px;
}
.product-card-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.product-card-body p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}
.product-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--primary-dark);
  transition: gap 0.3s ease;
}
.product-link:hover {
  gap: 12px;
}

/* EPC SERVICES */
.epc-section {
  background: var(--secondary);
}
.epc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.epc-item {
  background: var(--glass-bg-dark);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border-dark);
  border-radius: var(--radius-md);
  padding: 20px 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition:
    background 0.3s ease,
    border-color 0.3s ease;
}
.epc-item:hover {
  background: rgba(50, 205, 50, 0.08);
  border-color: rgba(50, 205, 50, 0.2);
}
.epc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
  margin-top: 5px;
}
.epc-item span {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

/* SUBSIDY SECTION */
.subsidy-section {
  background: var(--bg);
}
.subsidy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.subsidy-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary-light);
  border: 1.5px solid rgba(50, 205, 50, 0.25);
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 28px;
}
.subsidy-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}
.subsidy-table th {
  background: var(--secondary);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 14px 18px;
  text-align: left;
}
.subsidy-table td {
  padding: 13px 18px;
  font-size: 13.5px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  background: var(--white);
}
.subsidy-table tr:last-child td {
  border-bottom: none;
}
.subsidy-table td:first-child {
  font-weight: 600;
  color: var(--text-muted);
  width: 44%;
}
.subsidy-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 380px;
  box-shadow: var(--shadow-lg);
}
.eligibility-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.eligibility-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-muted);
}
.eligibility-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .epc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .subsidy-grid {
    gap: 40px;
  }
}
@media (max-width: 768px) {
  .subsidy-grid {
    grid-template-columns: 1fr;
  }
  .subsidy-img {
    height: 260px;
  }
}
@media (max-width: 520px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
  .epc-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ========================================
   PRODUCT TABS
======================================== */
.products-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
}
.tab-btn {
  padding: 12px 32px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.15);
  background: var(--secondary);
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}
.tab-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(50, 205, 50, 0.25);
}
.tab-btn:not(.active):hover {
  border-color: var(--primary);
  color: var(--white);
}

/* ========================================
   TAB PANELS
======================================== */
.tab-panel {
  display: none;
}
.tab-panel.active {
  display: block;
  animation: fadeInTab 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes fadeInTab {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   HOME OWNERS — Portrait card grid (3 cols)
   Warm, approachable, residential feel
======================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition:
    transform 0.45s var(--ease),
    box-shadow 0.45s var(--ease);
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow);
}
.product-card-img {
  height: 210px;
  overflow: hidden;
  position: relative;
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease);
}
.product-card:hover .product-card-img img {
  transform: scale(1.06);
}
.product-card-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(11, 18, 32, 0.65);
  backdrop-filter: blur(8px);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}
.product-card-body {
  padding: 22px 22px 26px;
}
.product-card-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.product-card-body p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}
.product-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--primary-dark);
  transition: gap 0.3s ease;
}
.product-link:hover {
  gap: 12px;
}

/* ========================================
   BUSINESS & INDUSTRY — Horizontal rows
   Bold, clean, enterprise / B2B feel
======================================== */
.biz-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.biz-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition:
    box-shadow 0.4s var(--ease),
    border-color 0.4s var(--ease);
}
.biz-card:hover {
  box-shadow: var(--shadow-glow);
  border-color: rgba(50, 205, 50, 0.3);
}
.biz-card-img {
  position: relative;
  overflow: hidden;
  min-height: 200px;
}
.biz-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease);
}
.biz-card:hover .biz-card-img img {
  transform: scale(1.05);
}
.biz-card-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(11, 18, 32, 0.65);
  backdrop-filter: blur(8px);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}
.biz-card-body {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 3px solid transparent;
  transition: border-color 0.4s ease;
}
.biz-card:hover .biz-card-body {
  border-left-color: var(--primary);
}
.biz-card-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary-dark);
  margin-bottom: 10px;
  opacity: 0.7;
}
.biz-card-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.3;
}
.biz-card-body p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 55ch;
}
.biz-features {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.biz-feature-pill {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--primary-dark);
  background: var(--primary-light);
  border: 1px solid rgba(50, 205, 50, 0.2);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .biz-card {
    grid-template-columns: 240px 1fr;
  }
}
@media (max-width: 768px) {
  .biz-card {
    grid-template-columns: 1fr;
  }
  .biz-card-img {
    min-height: 200px;
    max-height: 220px;
  }
  .biz-card-body {
    border-left: none;
    border-top: 3px solid transparent;
  }
  .biz-card:hover .biz-card-body {
    border-left-color: transparent;
    border-top-color: var(--primary);
  }
  .subsidy-grid {
    grid-template-columns: 1fr;
  }
  .subsidy-img {
    height: 260px;
  }
}
@media (max-width: 520px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
  .epc-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ========================================
   EPC SERVICES — Image Card Grid
======================================== */
.epc-section {
  background: 
    radial-gradient(ellipse at 50% 0%, rgba(50, 205, 50, 0.15) 0%, transparent 60%),
    linear-gradient(180deg, #111a2a 0%, var(--secondary) 100%);
  padding-bottom: clamp(40px, 5vw, 64px);
}

.epc-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.epc-card {
  background: var(--glass-bg-dark);
  border: 1px solid var(--glass-border-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition:
    transform 0.4s var(--ease),
    border-color 0.4s ease,
    box-shadow 0.4s ease;
}
.epc-card:hover {
  transform: translateY(-6px);
  border-color: rgba(50, 205, 50, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

/* Image */
.epc-card-img {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.epc-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease);
  display: block;
}
.epc-card:hover .epc-card-img img {
  transform: scale(1.07);
}
.epc-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 40%,
    rgba(11, 18, 32, 0.55) 100%
  );
  pointer-events: none;
}
.epc-card-num {
  position: absolute;
  bottom: 12px;
  right: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-display, monospace);
}

/* Body */
.epc-card-body {
  padding: 20px 20px 22px;
}
.epc-card-body h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.35;
}
.epc-card-body p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.65;
  margin-bottom: 14px;
}

/* Tags */
.epc-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.epc-tags span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--primary);
  background: rgba(50, 205, 50, 0.1);
  border: 1px solid rgba(50, 205, 50, 0.2);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

/* Extra services pill row */
.epc-extra {
  border-top: 1px solid var(--glass-border-dark);
  padding-top: 28px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}
.epc-extra-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  white-space: nowrap;
  padding-top: 4px;
  flex-shrink: 0;
}
.epc-extra-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.epc-extra-pills span {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  background: var(--glass-bg-dark);
  border: 1px solid var(--glass-border-dark);
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  transition:
    background 0.25s ease,
    color 0.25s ease;
}
.epc-extra-pills span:hover {
  background: rgba(50, 205, 50, 0.1);
  color: rgba(255, 255, 255, 0.85);
}

/* Responsive */
@media (max-width: 1024px) {
  .epc-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .epc-cards-grid {
    grid-template-columns: 1fr;
  }
  .epc-extra {
    flex-direction: column;
    gap: 12px;
  }
}
