/* Compare Hub — page-specific styles */

/* ============= HERO ============= */
.compare-page .hero {
  background: var(--servme-bg-warm);
  padding: 64px 0 56px;
  text-align: center;
}
@media (min-width: 768px) { .compare-page .hero { padding: 96px 0 80px; } }
@media (min-width: 1100px) { .compare-page .hero { padding: 128px 0 96px; } }

.hero-inner { max-width: 1180px; margin: 0 auto; padding: 0; }

.compare-page .hero .eyebrow { margin-bottom: 28px; }

.compare-page .hero h1 .gold { color: var(--servme-accent-deep); font-style: italic; }
.compare-page .hero h1 { margin: 0 0 24px; text-wrap: balance; max-width: none; }

.hero-sub {
  font-family: var(--font-body);
  font-size: 17px; line-height: 1.55;
  color: var(--servme-primary-mid);
  margin: 0 auto 36px;
  max-width: 52ch;
}
@media (min-width: 768px) { .hero-sub { font-size: 18px; } }

.hero-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 24px; height: 50px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 15px; font-weight: 500;
  text-decoration: none;
  background: transparent;
  color: var(--servme-primary);
  border: 1px solid var(--servme-primary);
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
  white-space: nowrap;
}
.hero-cta:hover {
  background: #396465;
  color: var(--servme-bg);
  border-color: #396465;
  transform: translateY(-2px);
}

/* ============= COMPARISON CARDS ============= */
.cards {
  padding: 64px 0;
  background: var(--servme-bg);
}
@media (min-width: 768px) { .cards { padding: 96px 0; } }
@media (min-width: 1100px) { .cards { padding: 128px 0; } }

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px) { .cards-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }
@media (min-width: 1100px) { .cards-grid { gap: 32px; } }

.ccard {
  display: flex; flex-direction: column;
  background: var(--servme-bg);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  padding: 32px 28px;
  text-decoration: none;
  color: inherit;
  transition: border-color .25s, box-shadow .25s, transform .25s cubic-bezier(.2,.8,.2,1);
}
@media (min-width: 768px) { .ccard { padding: 40px 36px; } }
@media (min-width: 1100px) { .ccard { padding: 48px 44px; } }

.ccard:hover {
  border-color: var(--servme-accent-deep);
  box-shadow: 0 24px 56px rgba(15,42,45,0.10);
  transform: translateY(-4px);
}

.ccard-vs {
  font-family: var(--font-display); font-weight: 600;
  font-size: 32px; line-height: 1.1;
  color: var(--servme-primary);
  margin: 0 0 14px;
  letter-spacing: 0;
}
@media (min-width: 1100px) { .ccard-vs { font-size: 44px; line-height: 49px; } }

.ccard-title {
  font-family: var(--font-display); font-style: italic; font-weight: 600;
  font-size: 18px;
  color: var(--servme-accent-deep);
  margin: 0 0 18px;
  letter-spacing: 0;
}
@media (min-width: 1100px) { .ccard-title { font-size: 22px; line-height: 1.3; } }

.ccard-body {
  font-family: var(--font-body); font-weight: 400;
  font-size: 15px; line-height: 1.55;
  color: var(--servme-primary-mid);
  margin: 0 0 24px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (min-width: 768px) { .ccard-body { font-size: 16px; } }

.ccard-cta {
  font-family: var(--font-body); font-weight: 500; font-size: 14px;
  color: var(--servme-primary);
  padding-bottom: 0;
  border-bottom: 0;
  align-self: flex-start;
  transition: color .2s;
}
.ccard:hover .ccard-cta { color: var(--servme-accent-deep); }

/* ============= WHY SWITCH ============= */
.why {
  background: #1d4044;
  color: var(--servme-bg);
  padding: 64px 0;
}
@media (min-width: 768px) { .why { padding: 96px 0; } }
@media (min-width: 1100px) { .why { padding: 128px 0; } }

.why-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
@media (min-width: 768px) { .why-head { margin-bottom: 80px; } }
.why-head h2 { color: var(--servme-bg); text-wrap: balance; }

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 768px) { .why-grid { grid-template-columns: 1fr 1fr; gap: 56px 64px; } }
@media (min-width: 1100px) { .why-grid { gap: 72px 80px; } }

.why-item {
  display: flex; flex-direction: column;
  padding: 0;
  position: relative;
  padding-top: 20px;
  border-top: 1px solid rgba(219,172,107,0.35);
}

.why-item-num {
  width: 36px; height: 36px;
  color: var(--servme-accent);
  margin-bottom: 18px;
  display: inline-flex; align-items: center; justify-content: flex-start;
}
.why-item-num svg {
  width: 32px; height: 32px;
  stroke: currentColor; fill: none;
  stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}

.why-item h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 24px; line-height: 1.15;
  color: var(--servme-bg);
  margin: 0 0 14px;
  text-wrap: balance;
}
@media (min-width: 1100px) { .why-item h3 { font-size: 32px; line-height: 1.1; } }

.why-item p {
  font-family: var(--font-body);
  font-size: 15px; line-height: 1.6;
  color: rgba(250,250,249,0.78);
  margin: 0;
  max-width: 44ch;
}
@media (min-width: 768px) { .why-item p { font-size: 16px; } }

/* ============= TESTIMONIALS ============= */
.compare-page .tt { padding: 64px 0; background: var(--servme-bg); }

.tt-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
@media (min-width: 1024px) { .tt-head { max-width: 1100px; } }
.tt-head h2 { text-wrap: balance; }

.tt-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }

.tt-card {
  background: var(--servme-bg-warm);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 28px 24px;
  display: flex; flex-direction: column;
  transition: background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.tt-card:hover {
  background: var(--servme-primary);
  border-color: var(--servme-primary);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(7,29,30,0.12), 0 2px 6px rgba(7,29,30,0.06);
}
.tt-card:hover .tt-quote { color: var(--servme-bg); }
.tt-card:hover .tt-name { color: var(--servme-accent); }
.tt-card:hover .tt-role { color: rgba(250,250,249,0.7); }
.tt-card:hover .tt-meta { border-top-color: rgba(250,250,249,0.18); }

.tt-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 19px;
  line-height: 1.45;
  color: var(--servme-primary);
  margin: 0 0 24px;
  text-wrap: pretty;
  flex: 1;
  transition: color .2s ease;
}
.tt-meta { border-top: 1px solid var(--border-soft); padding-top: 16px; transition: border-color .2s ease; }
.tt-name { font-family: var(--font-body); font-weight: 600; color: var(--servme-primary); font-size: 14px; transition: color .2s ease; }
.tt-role { font-family: var(--font-body); color: var(--servme-primary-mid); font-size: 13px; margin-top: 2px; transition: color .2s ease; }

@media (min-width: 768px) {
  .compare-page .tt { padding: 88px 0; }
  .tt-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .tt-quote { font-size: 21px; }
  .tt-card:nth-child(5) {
    grid-column: 1 / -1;
    max-width: calc(50% - 12px);
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }
}

/* ============= CLOSE CTA ============= */
.close {
  background: var(--servme-bg-warm);
  color: var(--servme-primary);
  padding: 64px 20px 80px;
  text-align: center;
}
@media (min-width: 768px) { .close { padding: 80px 32px 96px; } }
@media (min-width: 1024px) { .close { padding: 112px 56px 128px; } }

.close-inner { max-width: 760px; margin: 0 auto; }

.close h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 36px; line-height: 41px; letter-spacing: 0;
  color: var(--servme-primary);
  margin: 0 0 16px;
  text-wrap: pretty;
}
.close h2 .gold { font-style: italic; color: var(--servme-accent-deep); }
@media (min-width: 1024px) { .close h2 { font-size: 64px; line-height: 69px; } }

.close p {
  font-family: var(--font-body);
  font-size: 17px; line-height: 1.6;
  color: var(--servme-primary-mid);
  margin: 0 auto 32px;
  max-width: 56ch;
}
@media (min-width: 1024px) { .close p { font-size: 18px; max-width: none; } }

.close-btns {
  display: flex; flex-direction: column; gap: 12px;
  align-items: stretch; justify-content: center;
  max-width: 360px; margin: 0 auto;
}
@media (min-width: 600px) {
  .close-btns { flex-direction: row; flex-wrap: wrap; gap: 12px; align-items: center; max-width: none; }
}

.close-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 24px; height: 50px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 15px; font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.close-btn-primary { background: var(--servme-primary); color: var(--servme-bg); }
.close-btn-primary:hover {
  background: #396465; color: var(--servme-bg);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(57,100,101,0.30);
}
.close-btn-secondary {
  background: transparent;
  color: var(--servme-primary);
  border-color: var(--servme-primary);
}
.close-btn-secondary:hover {
  background: #396465; color: var(--servme-bg); border-color: #396465;
  transform: translateY(-2px);
}

/* ============= SINGLE COMPARISON — hero CTA override ============= */
.compare-single .hero-cta {
  background: var(--servme-primary);
  color: var(--servme-bg);
  border-color: var(--servme-primary);
}
.compare-single .hero-cta:hover {
  background: #396465;
  border-color: #396465;
}
.compare-single .hero-sub { max-width: none; }

/* ============= COMPARISON TABLE SECTION ============= */
section.ctbl {
  background: var(--servme-bg);
  padding: 56px 0 64px;
}
@media (min-width: 768px) { section.ctbl { padding: 88px 0; } }
@media (min-width: 1100px) { section.ctbl { padding: 112px 0; } }

/* Sticky pill column header — hidden mobile, shown 820px+ */
.ctbl-thead { display: none; }
@media (min-width: 820px) {
  .ctbl-thead {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    background: var(--servme-primary);
    color: var(--servme-bg);
    border-radius: 999px;
    margin-bottom: 24px;
    padding: 0;
    position: sticky;
    top: 88px;
    z-index: 5;
    box-shadow: 0 12px 28px rgba(7,29,30,0.10);
  }
}
.ctbl-thead .ctbl-mark { display: none; }
.ctbl-thead > * {
  padding: 16px 24px;
  font-family: var(--font-body); font-weight: 500; font-size: 13.5px;
  letter-spacing: 0.04em;
  color: var(--servme-bg);
  display: flex; align-items: center;
}
.ctbl-thead .ctbl-cell { padding: 16px 24px; }
.ctbl-thead-feature {
  color: #fafaf9;
  font-family: var(--font-body); font-weight: 400; font-size: 18px;
  letter-spacing: 0; text-transform: none;
}
.ctbl-thead-servme {
  color: var(--servme-accent-deep);
  font-family: var(--font-display); font-weight: 600; font-size: 18px;
  letter-spacing: 0; justify-content: flex-start;
}
.ctbl-thead-other {
  color: var(--servme-bg);
  font-family: var(--font-display); font-weight: 600; font-size: 18px;
  letter-spacing: 0; justify-content: flex-start;
}

/* Table body */
.ctbl-table { background: transparent; border: 0; overflow: visible; }

/* Group / category divider */
.ctbl-group-title {
  color: var(--servme-accent-deep);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 28px 0 14px;
  border-bottom: 1px solid var(--border-soft);
}

/* Row — mobile stacked, desktop 3-col grid at 820px+ */
.ctbl-row {
  display: grid;
  grid-template-columns: 1fr;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-soft);
  gap: 4px;
}
@media (min-width: 820px) {
  .ctbl-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    padding: 0;
    gap: 0;
  }
  .ctbl-row > .ctbl-feature,
  .ctbl-row > .ctbl-cell { padding: 7px 24px; }
}

/* Win/tie/loss indicator — hidden */
.ctbl-mark { display: none; }

/* Feature name — scoped to rows so it doesn't override the header */
.ctbl-row .ctbl-feature {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  color: var(--servme-primary);
  display: flex;
  align-items: center;
}

/* Cell values — scoped to rows so it doesn't override the header */
.ctbl-row .ctbl-cell {
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.4;
  color: var(--servme-primary-mid);
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

/* Mobile: prefix each cell with its column label */
.ctbl-row .ctbl-cell::before {
  content: attr(data-label);
  flex: 0 0 140px;
  font-weight: 500;
  font-size: 13px;
  color: var(--servme-ink-700, #396465);
}
@media (min-width: 820px) {
  .ctbl-row .ctbl-cell::before { display: none; }
  .ctbl-row .ctbl-cell { justify-content: center; text-align: center; }
}

/* Servme column — always slightly bolder */
.ctbl-row .ctbl-cell-servme {
  color: var(--servme-primary);
  font-weight: 500;
}

/* Win rows: Servme cell gets extra visual weight */
.ctbl-row:has(.ctbl-mark-win) .ctbl-cell-servme {
  color: var(--servme-primary);
  font-weight: 600;
}

/* WhatsApp CTA button */
.close-btn-wa {
  background: transparent;
  color: var(--servme-primary);
  border-color: var(--servme-primary);
}
.close-btn-wa:hover {
  background: #25d366; color: #fff; border-color: #25d366;
  transform: translateY(-2px);
}
.close-btn-wa svg { width: 20px; height: 20px; flex-shrink: 0; }
