/* ============================================================
   HAMS CONSTRUCTIONS — Compare Packages (Light Theme)
   ============================================================ */

.active-link { color: var(--orange) !important; }

/* ── PAGE HERO ── */
.cp-hero {
  padding: 7rem 6% 3.5rem;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}
.cp-hero-inner { max-width: 680px; }

/* ── SELECTOR BAR ── */
.cp-selector-bar {
  position: sticky; top: 72px; z-index: 90;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
  padding: 0.85rem 6%;
  box-shadow: 0 2px 12px rgba(26,26,24,0.06);
}
.cp-selector-inner {
  display: flex; align-items: center; gap: 1.2rem;
  flex-wrap: wrap; max-width: 1200px; margin: 0 auto;
}
.cp-selector-label {
  font-size: 0.75rem; color: var(--ink3);
  letter-spacing: 1px; text-transform: uppercase; font-weight: 600;
  white-space: nowrap;
}
.cp-selector-dropdowns {
  display: flex; align-items: center; gap: 0.8rem; flex: 1;
}
.cp-vs {
  font-family: var(--font-display);
  font-size: 1rem; color: var(--orange);
  letter-spacing: 2px; font-weight: 800;
}
.cp-dropdown { position: relative; }
.cp-dropdown-btn {
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--bg2);
  border: 1.5px solid var(--rule);
  border-radius: 50px;
  color: var(--ink); padding: 0.55rem 1rem;
  font-family: var(--font-body);
  font-size: 0.875rem; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: border-color 0.2s, background 0.2s;
}
.cp-dropdown-btn:hover { border-color: var(--orange); background: var(--white); }
.cp-dropdown-btn span { font-size: 0.75rem; color: var(--orange); font-weight: 600; }
.cp-dropdown-btn svg { width: 14px; height: 14px; stroke: var(--ink3); }
.cp-dropdown-list {
  display: none; position: absolute; top: calc(100% + 6px); left: 0;
  background: var(--white);
  border: 1.5px solid var(--rule);
  border-radius: var(--radius);
  list-style: none; min-width: 220px;
  box-shadow: var(--shadow-md); z-index: 200; overflow: hidden;
}
.cp-dropdown-list.open { display: block; }
.cp-dropdown-list li {
  padding: 0.65rem 1rem; font-size: 0.875rem; font-weight: 500;
  cursor: pointer; display: flex; justify-content: space-between;
  transition: background 0.15s; color: var(--ink);
}
.cp-dropdown-list li:hover { background: var(--bg); }
.cp-dropdown-list li em { color: var(--orange); font-style: normal; font-size: 0.8rem; }
.cp-cta-btn { margin-left: auto; white-space: nowrap; font-size: 0.875rem; padding: 0.6rem 1.4rem !important; }

/* ── TABLE WRAP ── */
.cp-table-wrap { background: var(--bg); padding: 2.5rem 6%; }
.cp-table-scroll {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-sm);
}
.cp-table {
  width: 100%; border-collapse: collapse;
  min-width: 820px; font-size: 0.875rem;
  background: var(--white);
}

/* Header */
.cp-thead-row th {
  background: var(--bg);
  padding: 0; border-bottom: 2px solid var(--rule);
  vertical-align: top; position: sticky; top: 0; z-index: 10;
}
.cp-thead-row th:first-child { background: var(--white); }

.cp-feature-col {
  width: 26%; font-size: 0.72rem; color: var(--ink3);
  letter-spacing: 1px; text-transform: uppercase;
  padding: 1.5rem 1.2rem 1.2rem !important;
  background: var(--white) !important; vertical-align: bottom !important;
}
.cp-pkg-col { width: 18.5%; text-align: center; }
.cp-pkg-col.cp-pkg-featured {
  background: var(--ink) !important;
  position: relative;
}
.cp-th-badge {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  background: var(--orange); color: #fff;
  font-size: 0.6rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 0.22rem 0.75rem; border-radius: 0 0 6px 6px; white-space: nowrap;
}
.cp-th-inner { padding: 1.8rem 0.8rem 1.2rem; }
.cp-th-name {
  font-family: var(--font-display);
  font-size: 1.6rem; font-weight: 800; margin-bottom: 0.2rem; color: var(--ink);
}
.cp-pkg-featured .cp-th-name { color: #fff; }
.cp-th-price {
  font-size: 1.1rem; font-weight: 700; color: var(--orange); margin-bottom: 0.3rem;
}
.cp-th-price span { font-size: 0.72rem; font-weight: 400; color: var(--ink3); }
.cp-pkg-featured .cp-th-price span { color: rgba(255,255,255,0.5); }
.cp-th-sub {
  font-size: 0.72rem; color: var(--ink3); line-height: 1.4; margin-bottom: 0.9rem;
}
.cp-pkg-featured .cp-th-sub { color: rgba(255,255,255,0.55); }
.cp-th-btn {
  display: inline-block; border: 1.5px solid var(--orange);
  color: var(--orange); padding: 0.42rem 1rem;
  border-radius: 50px; font-size: 0.75rem; font-weight: 700;
  transition: all 0.2s;
}
.cp-th-btn:hover { background: var(--orange); color: #fff; }
.cp-pkg-featured .cp-th-btn { background: var(--orange); color: #fff; border-color: var(--orange); }

/* Category rows */
.cp-cat-row td {
  padding: 0.85rem 1.2rem 0.5rem;
  background: var(--bg2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.cp-cat-row span {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--orange);
}

/* Data rows */
.cp-table tbody tr:not(.cp-cat-row):not(.cp-cta-row) {
  border-bottom: 1px solid rgba(26,26,24,0.05);
  transition: background 0.15s;
}
.cp-table tbody tr:not(.cp-cat-row):not(.cp-cta-row):hover { background: var(--bg); }
.cp-table td { padding: 0.75rem 1.2rem; vertical-align: middle; color: var(--ink2); line-height: 1.5; }
.cp-feat { color: var(--ink); font-weight: 600; font-size: 0.875rem; }
.cp-table tbody td:not(.cp-feat) { text-align: center; }

.cp-pkg-featured { background: var(--ink) !important; }
.cp-pkg-featured td, td.cp-pkg-featured { background: rgba(26,26,24,0.03); color: var(--ink2); }
/* For body featured cells */
tbody .cp-pkg-featured {
  background: rgba(26,26,24,0.025) !important;
  border-left: 1px solid rgba(26,26,24,0.08);
  border-right: 1px solid rgba(26,26,24,0.08);
}

td.yes { color: #16a34a; font-weight: 600; }
td.no  { color: var(--ink3); opacity: 0.4; }
td.partial { color: #d97706; font-weight: 500; }

/* CTA row */
.cp-cta-row td {
  padding: 1.5rem 1rem; text-align: center;
  background: var(--bg); border-top: 2px solid var(--rule);
}
.cp-table-cta {
  display: inline-block; border: 1.5px solid var(--orange);
  color: var(--orange); padding: 0.6rem 1.4rem;
  border-radius: 50px; font-size: 0.82rem; font-weight: 700;
  transition: all 0.2s;
}
.cp-table-cta:hover { background: var(--orange); color: #fff; }
.cp-table-cta.featured { background: var(--orange); color: #fff; }

/* ── LEGEND ── */
.cp-legend {
  background: var(--white);
  border-top: 1px solid var(--rule);
  padding: 1rem 6%;
  display: flex; align-items: center; flex-wrap: wrap; gap: 1.5rem;
  font-size: 0.8rem; color: var(--ink3);
}
.leg-yes { color: #16a34a; font-style: normal; font-weight: 700; margin-right: 0.3rem; }
.leg-no  { color: var(--ink3); font-style: normal; font-weight: 700; margin-right: 0.3rem; opacity: 0.5; }
.leg-partial { color: #d97706; font-style: normal; font-weight: 700; margin-right: 0.3rem; }
.leg-note { font-size: 0.75rem; color: var(--ink3); opacity: 0.6; margin-left: auto; }

/* ── FAQ ── */
.cp-faq { background: var(--white); padding: 5rem 6%; }
.cp-faq-inner {
  max-width: 900px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 2fr;
  gap: 5rem; align-items: start;
}
.cp-faq-header { position: sticky; top: 130px; }

.cp-faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-q {
  width: 100%; background: none; border: none; cursor: pointer;
  color: var(--ink); font-family: var(--font-body);
  font-size: 0.93rem; font-weight: 600; padding: 1.2rem 0;
  text-align: left; display: flex; justify-content: space-between;
  align-items: center; gap: 1rem; transition: color 0.2s;
}
.faq-q:hover { color: var(--orange); }
.faq-q span { font-size: 1.2rem; color: var(--orange); flex-shrink: 0; transition: transform 0.3s; }
.faq-item.open .faq-q span { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s; }
.faq-item.open .faq-a { max-height: 300px; padding-bottom: 1.2rem; }
.faq-a p { font-size: 0.875rem; color: var(--ink3); line-height: 1.8; }

/* ── BOTTOM CTA ── */
.cp-bottom-cta { background: var(--ink); padding: 5rem 6%; text-align: center; }
.cp-bottom-cta .section-title { color: #fff; margin-bottom: 1rem; }
.cp-bottom-cta p { color: rgba(255,255,255,0.55); font-size: 0.95rem; margin-bottom: 2rem; }

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .cp-faq-inner { grid-template-columns: 1fr; gap: 2rem; }
  .cp-faq-header { position: static; }
  .leg-note { margin-left: 0; }
}
@media (max-width: 600px) {
  .cp-hero { padding-top: 6rem; }
  .cp-selector-inner { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
  .cp-cta-btn { margin-left: 0 !important; width: 100%; text-align: center; }
}
