/* ==========================================================================
   CTW SOLAR POWER SYSTEM PACKAGES — BESPOKE CAPSULE INFOGRAPHIC LAYOUT
   Inspired by modern residential solar package infographics, crafted natively
   in CTW's Dark Obsidian (#0c101a), Crisp White (#ffffff) & Golden Yellow (#f5b800)
   ========================================================================== */
.ctw-sol-showcase {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  margin-top: 26px;
  border: 2px solid #22293d;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.34);
  background: #0b0f19;
  color: #ffffff;
}

/* 1. ARCHITECTURAL ROOFTOP HERO HEADER + INTEGRATED CTW SOLAR CREST */
.ctw-sol-hero {
  position: relative;
  padding: 28px 32px 24px;
  background:
    linear-gradient(100deg, rgba(10, 13, 22, 0.92) 0%, rgba(10, 13, 22, 0.72) 52%, rgba(10, 13, 22, 0.32) 100%),
    url('solar/ctw-solar-sunny-roof.jpg') center 34% / cover no-repeat;
  border-bottom: 3px solid #f5b800;
}

.ctw-sol-brand-row {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

/* Integrated Circular CTW Solar Division Crest (never a pasted box!) */
.ctw-sol-crest {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #1d2438 0%, #0b0e17 75%);
  border: 3.5px solid #f5b800;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.92), 0 14px 32px rgba(0, 0, 0, 0.48);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: none;
  padding: 10px;
}

.ctw-crest-sun {
  color: #f5b800;
  font-size: 18px;
  line-height: 1;
  text-shadow: 0 0 12px rgba(245, 184, 0, 0.65);
}

.ctw-sol-crest img {
  width: 78px;
  height: auto;
  filter: brightness(0) invert(1);
}

.ctw-sol-crest span {
  font: 800 8.5px/1 var(--font-mono, monospace);
  color: #fbbf24;
  letter-spacing: 0.11em;
}

.ctw-sol-headline h2 {
  margin: 0;
  font-family: var(--font-display, 'Montserrat', sans-serif);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: #ffffff;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.55);
}

.ctw-sol-headline h2 span {
  color: #fbbf24;
}

.ctw-sol-ribbon {
  display: inline-block;
  margin-top: 10px;
  background: linear-gradient(90deg, #f5b800 0%, #fbbf24 100%);
  color: #090b10;
  font: 800 12.5px/1.25 var(--font-display, sans-serif);
  letter-spacing: 0.03em;
  padding: 8px 18px;
  border-radius: 999px;
  transform: skewX(-6deg);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

/* Filter / View Navigation Pills */
.ctw-sol-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ctw-sol-nav button {
  background: rgba(12, 16, 26, 0.86);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #f1f5f9;
  border-radius: 999px;
  padding: 8px 15px;
  font: 700 11.5px/1 var(--font-display, sans-serif);
  cursor: pointer;
  transition: all 0.16s ease;
}

.ctw-sol-nav button:hover {
  border-color: #f5b800;
  color: #ffffff;
}

.ctw-sol-nav button.active {
  background: #ffffff;
  border-color: #ffffff;
  color: #090b10;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.ctw-sol-nav button.ghost {
  background: rgba(245, 184, 0, 0.16);
  border-color: #f5b800;
  color: #fde047;
}

/* 2. MIDDLE CAPSULE STAGE W/ DYNAMIC GOLDEN-YELLOW DIAGONAL WAVE BACKDROP */
.ctw-sol-stage {
  position: relative;
  padding: 28px 26px 30px;
  background:
    linear-gradient(166deg, #121726 0%, #121726 52%, #f5b800 52.3%, #eab308 82%, #0c101a 82.3%, #0c101a 100%);
}

.ctw-capsule-grid {
  display: grid;
  gap: 16px;
  align-items: stretch;
}

.ctw-capsule-grid.cols-6 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ctw-capsule-grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1060px;
  margin: 0 auto;
}

/* INDIVIDUAL TALL ROUNDED "ENGINEERED TO RUN" CAPSULE CARD */
.ctw-sol-capsule {
  position: relative;
  background: #ffffff;
  border-radius: 30px;
  border: 3.5px solid #ffffff;
  box-shadow: 0 18px 40px rgba(6, 9, 16, 0.42), 0 0 0 1.5px rgba(15, 23, 42, 0.14);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ctw-sol-capsule:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(6, 9, 16, 0.54), 0 0 0 3px #f5b800;
}

.ctw-sol-capsule.is-popular {
  box-shadow: 0 22px 46px rgba(6, 9, 16, 0.5), 0 0 0 3px #f5b800;
}

.ctw-cap-ribbon {
  position: absolute;
  top: 10px;
  right: 14px;
  z-index: 3;
  background: #f5b800;
  color: #090b10;
  font: 900 9px/1 var(--font-mono, monospace);
  letter-spacing: 0.06em;
  padding: 4px 8px;
  border-radius: 999px;
}

/* Dark Obsidian Dome Header w/ Curved Golden-Yellow Arch Bottom */
.ctw-cap-dome {
  background: linear-gradient(180deg, #0b0f19 0%, #161d2f 100%);
  padding: 20px 16px 20px;
  text-align: center;
  border-bottom: 5px solid #f5b800;
  border-radius: 26px 26px 42% 42% / 26px 26px 18px 18px;
}

.ctw-cap-dome strong {
  display: block;
  font-family: var(--font-display, 'Montserrat', sans-serif);
  font-weight: 900;
  font-style: italic;
  font-size: 44px;
  line-height: 0.96;
  color: #f5b800;
  letter-spacing: -0.02em;
  text-shadow: 0 3px 12px rgba(245, 184, 0, 0.26);
}

.ctw-cap-dome span {
  display: block;
  margin-top: 4px;
  font: 800 12px/1.1 var(--font-display, sans-serif);
  font-style: italic;
  letter-spacing: 0.08em;
  color: #ffffff;
}

.ctw-cap-dome small {
  display: inline-block;
  margin-top: 7px;
  background: rgba(245, 184, 0, 0.14);
  border: 1px solid rgba(245, 184, 0, 0.42);
  color: #fde68a;
  border-radius: 999px;
  padding: 3px 10px;
  font: 700 10px/1.2 var(--font-mono, monospace);
}

/* Crisp White Illustrated Appliance Center */
.ctw-cap-body {
  flex: 1;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  padding: 16px 20px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.ctw-cap-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 12px;
  padding-bottom: 7px;
  border-bottom: 1px dashed #e2e8f0;
}

.ctw-cap-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.ctw-cap-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ctw-cap-icon svg {
  width: 40px;
  height: 40px;
  display: block;
}

.ctw-cap-txt b {
  display: block;
  font: 900 15px/1.12 var(--font-display, sans-serif);
  color: #0b0f19;
}

.ctw-cap-txt span {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  line-height: 1.22;
}

/* Bottom Dark Obsidian + Gold Price Pill inside Capsule */
.ctw-cap-foot {
  padding: 6px 10px 10px;
  background: #f8fafc;
}

.ctw-cap-pricebox {
  background: linear-gradient(180deg, #0e1320 0%, #090c14 100%);
  border: 2.5px solid #f5b800;
  border-radius: 20px;
  padding: 11px 12px;
  text-align: center;
}

.ctw-cap-pricebox span {
  display: block;
  font: 800 10.5px/1.1 var(--font-display, sans-serif);
  font-style: italic;
  letter-spacing: 0.06em;
  color: #ffffff;
}

.ctw-cap-pricebox strong {
  display: block;
  margin: 3px 0 2px;
  font-family: var(--font-display, 'Montserrat', sans-serif);
  font-weight: 900;
  font-style: italic;
  font-size: 30px;
  line-height: 1;
  color: #f5b800;
}

.ctw-cap-pricebox small {
  display: block;
  font: 600 10px/1.2 var(--font-mono, monospace);
  color: #86efac;
}

.ctw-cap-actions {
  display: grid;
  grid-template-columns: 1fr 38px;
  gap: 6px;
  margin-top: 7px;
}

.ctw-cap-quote {
  background: #0d111c;
  color: #ffffff;
  border: 1px solid #0d111c;
  border-radius: 12px;
  padding: 8px 10px;
  font: 800 11.5px/1 var(--font-display, sans-serif);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.ctw-cap-quote:hover {
  background: #f5b800;
  border-color: #f5b800;
  color: #090b10;
}

.ctw-cap-zoom {
  background: #e2e8f0;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  cursor: pointer;
  font-size: 13px;
}

.ctw-cap-zoom:hover {
  background: #fde68a;
}

/* 3. DARK OBSIDIAN ENGINEERING FOOTER: SERVICE SCOPE · INCLUSIONS · WARRANTY SHIELD */
.ctw-sol-footer {
  background: #0b0f19;
  border-top: 3px solid #f5b800;
  padding: 26px 30px 24px;
}

.ctw-sol-foot-cols {
  display: grid;
  grid-template-columns: 1fr 1.12fr 0.88fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 22px;
}

.ctw-foot-col {
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  padding-right: 18px;
}

.ctw-gold-tag {
  display: inline-block;
  background: #f5b800;
  color: #090b10;
  font: 900 12px/1 var(--font-display, sans-serif);
  font-style: italic;
  letter-spacing: 0.05em;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.ctw-foot-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.ctw-foot-col li {
  font-size: 12.6px;
  color: #f1f5f9;
  line-height: 1.38;
  padding-left: 20px;
  position: relative;
}

.ctw-foot-col li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #f5b800;
  font-weight: 900;
}

/* Crisp White + Gold SYSTEM WARRANTY Shield Card */
.ctw-warranty-card {
  background: #ffffff;
  color: #0b0f19;
  border-radius: 18px;
  padding: 16px 18px;
  border: 2.5px solid #f5b800;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.36);
}

.ctw-warranty-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.ctw-shield-svg {
  width: 48px;
  height: 54px;
  flex: none;
}

.ctw-warranty-ribbon {
  flex: 1;
  background: linear-gradient(90deg, #f5b800, #fbbf24);
  color: #090b10;
  font: 900 14px/1.08 var(--font-display, sans-serif);
  font-style: italic;
  text-align: center;
  padding: 8px 12px;
  border-radius: 10px;
}

.ctw-warranty-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.ctw-warranty-list li {
  font-size: 12.8px;
  color: #1e293b;
  padding-left: 20px;
  position: relative;
  font-weight: 600;
}

.ctw-warranty-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #d97706;
  font-weight: 900;
}

/* Bottom Dual Pill Call-To-Action Strip */
.ctw-sol-ctabar {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
  align-items: stretch;
}

.ctw-cta-gold {
  background: linear-gradient(90deg, #f5b800 0%, #fbbf24 100%);
  color: #090b10;
  border: 2.5px solid #ffffff;
  border-radius: 999px;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(245, 184, 0, 0.25);
}

.ctw-cta-phone {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #0b0f19;
  color: #f5b800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex: none;
}

.ctw-cta-gold strong {
  display: block;
  font: 900 14px/1.15 var(--font-display, sans-serif);
  font-style: italic;
}

.ctw-cta-gold small {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
}

.ctw-cta-trust {
  background: #ffffff;
  color: #0b0f19;
  border-radius: 999px;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ctw-cta-check {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #22c55e;
  color: #ffffff;
  font-weight: 900;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.ctw-cta-trust strong {
  display: block;
  font: 800 13.5px/1.15 var(--font-display, sans-serif);
  font-style: italic;
}

.ctw-cta-trust small {
  display: block;
  font-size: 11.5px;
  color: #475569;
  font-weight: 600;
}

/* 4. TAB 2: HOW SOLAR WORKS + INTERACTIVE APPLIANCE LOAD SIZER */
.ctw-sol-sizer-wrap {
  display: grid;
  gap: 18px;
}

.ctw-how-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.ctw-how-step {
  background: rgba(11, 15, 25, 0.95);
  border: 1px solid #2a334d;
  border-top: 3px solid #f5b800;
  border-radius: 14px;
  padding: 15px 16px;
}

.ctw-step-num {
  display: inline-block;
  font: 800 10px/1 var(--font-mono, monospace);
  color: #f5b800;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.ctw-how-step h5 {
  margin: 0 0 6px;
  font: 800 14.5px/1.22 var(--font-display, sans-serif);
  color: #ffffff;
}

.ctw-how-step p {
  margin: 0;
  font-size: 12.2px;
  line-height: 1.5;
  color: #cbd5e1;
}

.ctw-calc-card {
  background: rgba(11, 15, 25, 0.96);
  border: 1.5px solid #2c3550;
  border-radius: 16px;
  padding: 20px;
}

.ctw-calc-toprow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.ctw-calc-toprow h4 {
  margin: 0;
  font: 800 18px/1.2 var(--font-display, sans-serif);
  color: #ffffff;
}

.ctw-calc-pkgbtns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.ctw-calc-pkgbtns button {
  background: #171e30;
  border: 1px solid #2e3856;
  color: #e2e8f0;
  border-radius: 8px;
  padding: 8px 13px;
  font: 800 12.5px/1 var(--font-display, sans-serif);
  cursor: pointer;
}

.ctw-calc-pkgbtns button.active {
  background: #f5b800;
  border-color: #fbbf24;
  color: #090b10;
}

.ctw-meter-banner {
  background: #121828;
  border: 1px solid #28324e;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.ctw-meter-banner.is-over {
  border-color: #ef4444;
  background: rgba(127, 29, 29, 0.22);
}

.ctw-meter-nums {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.ctw-meter-nums small {
  display: block;
  font: 700 10px/1 var(--font-mono, monospace);
  color: #94a3b8;
  margin-bottom: 4px;
}

.ctw-meter-nums strong {
  font: 800 17px/1.1 var(--font-display, sans-serif);
  color: #ffffff;
}

.ctw-meter-nums strong span {
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
}

.ctw-meter-bar {
  height: 9px;
  background: #1d253b;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 9px;
}

.ctw-meter-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  transition: width 0.22s ease;
}

.ctw-meter-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
}

.ctw-switch-pkg {
  background: #f5b800;
  color: #090b10;
  border: 0;
  border-radius: 6px;
  padding: 6px 12px;
  font: 800 11.5px/1 var(--font-display, sans-serif);
  cursor: pointer;
}

.ctw-stepper-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.ctw-step-item {
  background: #121726;
  border: 1px solid #242d46;
  border-radius: 9px;
  padding: 9px 11px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.ctw-step-item.on {
  border-color: #f5b800;
  background: rgba(245, 184, 0, 0.08);
}

.ctw-step-item strong {
  display: block;
  font-size: 12px;
  color: #ffffff;
}

.ctw-step-item small {
  display: block;
  font: 500 10px/1.2 var(--font-mono, monospace);
  color: #94a3b8;
}

.ctw-step-ctrl {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ctw-step-ctrl button {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid #333e5e;
  background: #1a2136;
  color: #ffffff;
  font-weight: 900;
  cursor: pointer;
  padding: 0;
}

.ctw-step-ctrl button:hover {
  background: #f5b800;
  border-color: #f5b800;
  color: #090b10;
}

.ctw-step-ctrl span {
  min-width: 16px;
  text-align: center;
  font: 800 12.5px/1 var(--font-mono, monospace);
  color: #fbbf24;
}

@media (max-width: 1060px) {
  .ctw-capsule-grid.cols-6,
  .ctw-capsule-grid.cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ctw-sol-foot-cols,
  .ctw-sol-ctabar {
    grid-template-columns: 1fr;
  }
  .ctw-foot-col {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding-right: 0;
    padding-bottom: 16px;
  }
  .ctw-how-grid,
  .ctw-stepper-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .ctw-sol-hero {
    padding: 18px 16px 16px;
  }
  .ctw-sol-brand-row {
    gap: 14px;
  }
  .ctw-sol-crest {
    width: 78px;
    height: 78px;
    padding: 6px;
  }
  .ctw-sol-crest img {
    width: 52px;
  }
  .ctw-sol-stage,
  .ctw-sol-footer {
    padding: 18px 14px;
  }
  .ctw-cta-gold,
  .ctw-cta-trust {
    border-radius: 16px;
    padding: 12px 14px;
  }
  .ctw-capsule-grid.cols-6,
  .ctw-capsule-grid.cols-3,
  .ctw-how-grid,
  .ctw-stepper-grid {
    grid-template-columns: 1fr;
  }
  .ctw-sol-ribbon {
    transform: none;
    border-radius: 10px;
    font-size: 11px;
    padding: 7px 12px;
  }
}
