/* ═══════════════════════════════════════════════════════════════════════
   COMPARISON PAGE — Easy Weddings Design System (Light Theme)
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  /* ── Easy Weddings Tokens ── */
  --ew-primary: #E8785C;
  --ew-primary-hover: #D96646;
  --ew-primary-tint: #FBEAE5;
  --ew-primary-tint-2: #FDF3F0;

  --ew-ink: #2B2725;
  --ew-ink-soft: #5B5450;
  --ew-body: #6F6864;
  --ew-muted: #9C948F;

  --ew-line: #E9E2DD;
  --ew-line-soft: #F1ECE8;
  --ew-canvas: #FAF6F3;
  --ew-surface: #FFFFFF;

  --ew-success: #4C8C6B;
  --ew-blue: #5B8EC9;
  --ew-amber: #D4943A;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(43, 39, 37, 0.06);
  --shadow-md: 0 4px 16px rgba(43, 39, 37, 0.08);

  --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 150ms;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--ew-canvas);
  color: var(--ew-body);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Header ── */
.compare-header {
  text-align: center;
  padding: var(--sp-8, 32px) var(--sp-4, 16px) var(--sp-5, 20px);
  position: relative;
}

.compare-header::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--ew-primary);
  margin: var(--sp-3, 12px) auto 0;
  border-radius: 2px;
}

.compare-header h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.6rem;
  color: var(--ew-ink);
  margin-bottom: var(--sp-1, 4px);
}

.compare-header .meta {
  color: var(--ew-muted);
  font-size: 0.82rem;
  font-weight: 400;
}

@media (min-width: 768px) {
  .compare-header h1 {
    font-size: 2rem;
  }
}

/* ── Layout ── */
.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--sp-4, 16px) var(--sp-10, 40px);
}

/* ── Scroll Hint ── */
.scroll-hint {
  color: var(--ew-muted);
  font-size: 0.7rem;
  text-align: right;
  margin: var(--sp-2, 8px) 0 var(--sp-1, 4px);
  display: none;
}

@media (max-width: 767px) {
  .scroll-hint {
    display: block;
  }
}

/* ── Table Wrapper ── */
.tbl-wrap {
  overflow-x: auto;
  border: 1px solid var(--ew-line);
  border-radius: var(--radius-lg);
  background: var(--ew-surface);
  box-shadow: var(--shadow-sm);
}

/* ── Sort Bar ── */
.sort-bar {
  display: flex;
  gap: var(--sp-1);
  flex-wrap: wrap;
  margin: var(--sp-4, 16px) 0 var(--sp-3, 12px);
  align-items: center;
}

.sort-bar .sort-label {
  font-size: 0.78rem;
  color: var(--ew-muted);
  padding: var(--sp-1, 4px) 0;
  font-weight: 500;
}

.sort-btn {
  padding: var(--sp-1, 4px) var(--sp-4, 16px);
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--ew-line);
  background: var(--ew-surface);
  color: var(--ew-body);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all var(--dur-fast) var(--ease-out);
}

.sort-btn:hover {
  border-color: var(--ew-primary);
  color: var(--ew-primary);
  background: var(--ew-primary-tint-2);
}

.sort-btn.active {
  background: var(--ew-primary);
  color: #fff;
  border-color: var(--ew-primary);
}

/* ── Table ── */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  min-width: 750px;
}

th {
  background: var(--ew-line-soft);
  padding: var(--sp-3, 12px) var(--sp-2, 8px);
  text-align: left;
  border-bottom: 2px solid var(--ew-primary);
  color: var(--ew-ink-soft);
  font-weight: 600;
  white-space: nowrap;
  position: sticky;
  top: 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

td {
  padding: var(--sp-2, 8px);
  border-bottom: 1px solid var(--ew-line-soft);
  vertical-align: top;
  color: var(--ew-body);
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: var(--ew-primary-tint-2);
}

.best {
  color: var(--ew-success);
  font-weight: 700;
}

.tbc {
  color: var(--ew-muted);
  font-style: italic;
}

.yn {
  color: var(--ew-success);
}

.no {
  color: var(--ew-muted);
}

/* ── Badges ── */
.b-viewing {
  background: rgba(76, 140, 107, 0.12);
  color: var(--ew-success);
  padding: 2px var(--sp-2, 8px);
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
  display: inline-block;
}

.b-enquired {
  background: rgba(91, 142, 201, 0.12);
  color: var(--ew-blue);
  padding: 2px var(--sp-2, 8px);
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
  display: inline-block;
}

.b-priced {
  background: var(--ew-primary-tint);
  color: var(--ew-primary);
  padding: 2px var(--sp-2, 8px);
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
  display: inline-block;
}

.b-rejected {
  background: rgba(108, 100, 96, 0.1);
  color: var(--ew-muted);
  padding: 2px var(--sp-2, 8px);
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
  display: inline-block;
}

.b-followup {
  background: rgba(91, 142, 201, 0.08);
  color: var(--ew-blue);
  padding: 2px var(--sp-2, 8px);
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
  display: inline-block;
}

/* ── Favourite Column ── */
.fav-col {
  text-align: center;
  font-size: 1rem;
  cursor: default;
  width: 32px;
  min-width: 32px;
  color: var(--ew-muted);
}

.fav-col.is-fav {
  color: var(--ew-amber);
}

/* ── Responsive ── */
@media (min-width: 768px) {
  table {
    font-size: 0.85rem;
    min-width: auto;
  }
  th, td {
    padding: var(--sp-3, 12px) var(--sp-3, 12px);
  }
}
