/* ─── assets/css/packages.css ────────────────────────────────────────────────
   Solar package cards, battery cards, and the custom-quote strip.
   ─────────────────────────────────────────────────────────────────────────── */

/* ═══ SOLAR PACKAGES ═══════════════════════════════════════════════════════════ */

.section-packages {
  padding: 88px 48px;
  background: #f7faff;
}

.section-packages-inner { max-width: 1160px; margin: 0 auto; }

.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 1160px;
  margin: 0 auto 28px;
}

.pkg-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  position: relative;
  overflow: visible;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.2s;
}
.pkg-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(15,43,91,0.11);
}
.pkg-card.popular {
  border-color: var(--orange);
  box-shadow: 0 8px 30px rgba(244,123,32,0.18);
}

.pkg-popular-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 4px 16px;
  border-radius: 20px;
  white-space: nowrap;
}

.pkg-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.pkg-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 20px;
  background: #e8f0fb;
  color: var(--navy);
}
.pkg-tag.orange-tag { background: #fff0e0; color: var(--orange); }

.pkg-img {
  width: 132px;
  height: 88px;
  object-fit: contain;
  border-radius: 0;
  flex-shrink: 0;
  margin-left: 8px;
  filter: drop-shadow(0 12px 18px rgba(15,43,91,0.12));
}

.pkg-size {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  letter-spacing: -1px;
}
.pkg-type {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
}

.pkg-features { list-style: none; margin-bottom: 18px; }
.pkg-features li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.84rem;
  color: #444;
  font-weight: 500;
  margin-bottom: 6px;
}

.pkg-divider { height: 1px; background: var(--border); margin: 14px 0; }
.pkg-price-from { font-size: 0.75rem; color: var(--muted); font-weight: 500; margin-bottom: 2px; }
.pkg-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}

/* Custom quote strip */
.pkg-custom {
  max-width: 1160px;
  margin: 0 auto;
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.pkg-custom svg { color: var(--navy); flex-shrink: 0; }
.pkg-custom a {
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  transition: color 0.15s;
}
.pkg-custom a:hover { color: var(--orange); }


/* ═══ BATTERY PACKAGES ═════════════════════════════════════════════════════════ */

.section-battery {
  padding: 88px 48px;
  background: var(--white);
}
.section-battery-inner { max-width: 1160px; margin: 0 auto; }

.battery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 1160px;
  margin: 0 auto;
}

.bat-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 24px 22px;
  position: relative;
  overflow: visible;
  transition: transform 0.25s, box-shadow 0.25s;
}
.bat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(15,43,91,0.11);
}
.bat-card.featured {
  border-color: var(--orange);
  box-shadow: 0 8px 30px rgba(244,123,32,0.18);
}

.bat-featured-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  white-space: nowrap;
}

.bat-brand {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
  max-width: calc(100% - 96px);
}
.bat-size {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  letter-spacing: -1px;
  margin-bottom: 4px;
  max-width: calc(100% - 96px);
}
.bat-name { font-size: 0.92rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; max-width: calc(100% - 96px); }
.bat-sub  { font-size: 0.8rem; color: var(--muted); margin-bottom: 16px; max-width: calc(100% - 96px); }

.bat-img {
  position: absolute;
  top: 28px;
  right: 12px;
  width: 92px;
  height: 122px;
  object-fit: contain;
  filter: drop-shadow(0 14px 18px rgba(15,43,91,0.13));
  pointer-events: none;
}

.bat-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}
.bat-spec {
  background: #f7faff;
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.spec-val { font-size: 0.88rem; font-weight: 800; color: var(--navy); }
.spec-lbl { font-size: 0.68rem; font-weight: 500; color: var(--muted); }

.bat-features { list-style: none; margin-bottom: 16px; }
.bat-features li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.84rem;
  color: #444;
  font-weight: 500;
  margin-bottom: 6px;
}

.bat-divider { height: 1px; background: var(--border); margin: 12px 0; }
.bat-price-from { font-size: 0.75rem; color: var(--muted); font-weight: 500; margin-bottom: 2px; }
.bat-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .packages-grid, .battery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section-packages, .section-battery { padding: 60px 24px; }
  .packages-grid, .battery-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
  .section-packages .section-header-top,
  .section-battery  .section-header-top { flex-direction: column; align-items: flex-start; gap: 16px; }
  .pkg-img { width: 148px; height: 96px; }
  .bat-img { width: 100px; height: 132px; right: 18px; }
}

@media (max-width: 680px) {
  .section-packages, .section-battery { padding: 60px 16px; }
}

@media (max-width: 420px) {
  .pkg-img { width: 128px; height: 86px; }
  .bat-img { width: 82px; height: 110px; right: 12px; }
  .bat-brand,
  .bat-size,
  .bat-name,
  .bat-sub { max-width: calc(100% - 82px); }
}
