:root {
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-featured: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  --border-light: #e2e8f0;
  --border-featured: #38bdf8;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --brand-primary: #0284c7;
  --brand-primary-hover: #0369a1;
  --brand-accent: #0ea5e9;
  --whatsapp-green: #16a34a;
  --whatsapp-green-hover: #15803d;
  --badge-amber-bg: #fef3c7;
  --badge-amber-text: #92400e;
  --badge-green-bg: #dcfce7;
  --badge-green-text: #166534;
  --badge-blue-bg: #e0f2fe;
  --badge-blue-text: #075985;
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 25px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 90px;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
.site-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25);
}

.brand-tld {
  color: var(--brand-primary);
}

.brand-tag {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--badge-blue-bg);
  color: var(--badge-blue-text);
  padding: 3px 8px;
  border-radius: 999px;
  margin-left: 4px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.promise-pill {
  font-size: 0.82rem;
  color: var(--text-secondary);
  background: var(--bg-subtle);
  padding: 6px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.btn-outline {
  background: var(--bg-surface);
  border-color: var(--border-light);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: #cbd5e1;
  background: var(--bg-subtle);
}

.btn-primary {
  background: var(--brand-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-primary-hover);
}

.btn-whatsapp {
  background: var(--whatsapp-green);
  color: #fff;
}

.btn-whatsapp:hover {
  background: var(--whatsapp-green-hover);
}

/* Hero Section */
.hero {
  background: linear-gradient(180deg, #e0f2fe 0%, #f8fafc 100%);
  padding: 36px 0 24px;
  border-bottom: 1px solid var(--border-light);
}

.hero-top {
  max-width: 780px;
  margin: 0 auto 24px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #bae6fd;
  color: #0369a1;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}

.hero h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

/* Quick Country Bar */
.country-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.country-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  box-shadow: var(--shadow-sm);
}

.country-pill:hover {
  border-color: var(--brand-accent);
  color: var(--text-primary);
}

.country-pill.active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}

/* Search & Filter Control Box */
.search-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 20px;
}

.search-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.6fr auto auto;
  gap: 12px;
  align-items: center;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.input-label {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.input-control {
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg-page);
  color: var(--text-primary);
  font-weight: 500;
  width: 100%;
}

.input-control:focus {
  outline: none;
  border-color: var(--brand-primary);
  background: #fff;
}

.quick-toggles {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 18px;
}

.toggle-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--bg-page);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.toggle-chip.active {
  background: var(--badge-green-bg);
  border-color: #86efac;
  color: var(--badge-green-text);
}

/* Symptom Selector ("Not sure what service you need?") */
.symptom-section {
  margin-top: 8px;
}

.symptom-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.symptom-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.symptom-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.symptom-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.symptom-card:hover {
  border-color: #7dd3fc;
  transform: translateY(-1px);
}

.symptom-card.active {
  border-color: var(--brand-primary);
  background: #f0f9ff;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

.symptom-icon {
  font-size: 1.35rem;
}

.symptom-name {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-primary);
}

.symptom-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.symptom-advice-banner {
  margin-top: 12px;
  background: #fff;
  border-left: 4px solid var(--brand-primary);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.symptom-advice-text strong {
  color: var(--brand-primary);
}

/* Main Content Layout */
.main-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  padding-top: 28px;
  align-items: start;
}

.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}

.results-count {
  font-size: 1.05rem;
  font-weight: 700;
}

.sort-control {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.sort-select {
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: #fff;
  font-weight: 600;
}

/* Provider Cards */
.provider-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.provider-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.provider-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.provider-card.featured {
  background: var(--bg-featured);
  border: 2px solid var(--border-featured);
  box-shadow: 0 8px 24px -4px rgba(2, 132, 199, 0.14);
}

.card-top-badges {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.badge-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
}

.badge-featured {
  background: #0284c7;
  color: #fff;
}

.badge-verified {
  background: var(--badge-blue-bg);
  color: var(--badge-blue-text);
}

.badge-fast {
  background: var(--badge-green-bg);
  color: var(--badge-green-text);
}

.badge-emergency {
  background: var(--badge-amber-bg);
  color: var(--badge-amber-text);
}

.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 10px;
}

.provider-title-area h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.provider-domain-pill {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-primary);
  background: rgba(2, 132, 199, 0.1);
  padding: 2px 8px;
  border-radius: 6px;
}

.provider-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.86rem;
  color: var(--text-secondary);
  margin-top: 4px;
  flex-wrap: wrap;
}

.rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  color: #b45309;
  background: #fef3c7;
  padding: 2px 8px;
  border-radius: 6px;
}

.price-callout {
  text-align: right;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border-light);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  min-width: 155px;
}

.price-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  font-weight: 700;
}

.price-amount {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
}

.price-unit {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.provider-summary {
  font-size: 0.94rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

/* Upfront Mini Price Menu inside Card */
.mini-price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 8px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 14px;
}

.mini-price-item {
  display: flex;
  flex-direction: column;
  font-size: 0.82rem;
}

.mini-price-item span:first-child {
  color: var(--text-muted);
  font-weight: 500;
}

.mini-price-item strong {
  color: var(--text-primary);
  font-size: 0.88rem;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.service-tag {
  font-size: 0.78rem;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 500;
}

.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  flex-wrap: wrap;
}

.direct-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.secondary-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Sidebar Widgets */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 88px;
}

.widget-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.widget-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.widget-subtitle {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.calc-row {
  margin-bottom: 12px;
}

.calc-output {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: var(--radius-md);
  padding: 14px;
  margin-top: 14px;
}

.calc-output-label {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #0369a1;
}

.calc-output-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 4px 0;
}

.calc-output-note {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.sg-spotlight-widget {
  background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  border: none;
}

.sg-spotlight-widget .widget-subtitle {
  color: #cbd5e1;
}

.sg-bullet-list {
  list-style: none;
  margin: 12px 0 16px;
  font-size: 0.85rem;
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Sticky Comparison Tray */
.compare-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0f172a;
  color: #fff;
  padding: 14px 20px;
  z-index: 50;
  box-shadow: 0 -8px 25px rgba(15, 23, 42, 0.25);
  transform: translateY(100%);
  transition: transform 0.2s ease;
}

.compare-bar.visible {
  transform: translateY(0);
}

.compare-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.compare-chips {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.compare-chip {
  background: #1e293b;
  border: 1px solid #334155;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.84rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.compare-chip button {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-weight: 700;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}

.modal-backdrop.open {
  display: flex;
}

.modal-content {
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 760px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: var(--bg-page);
  cursor: pointer;
  font-size: 1.1rem;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 0.88rem;
}

.compare-table th, .compare-table td {
  border: 1px solid var(--border-light);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

.compare-table th {
  background: var(--bg-subtle);
  font-weight: 700;
}

/* Footer */
.site-footer {
  margin-top: 64px;
  border-top: 1px solid var(--border-light);
  background: #fff;
  padding: 36px 0;
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* Responsive */
@media (max-width: 980px) {
  .main-layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
  }
  .search-grid {
    grid-template-columns: 1fr 1fr;
  }
  .symptom-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .search-grid {
    grid-template-columns: 1fr;
  }
  .symptom-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .card-header-row {
    flex-direction: column;
  }
  .price-callout {
    text-align: left;
    width: 100%;
  }
  .promise-pill {
    display: none;
  }
}


/* Tenancy Badge */
.badge-tenancy {
  background: #f3e8ff;
  color: #6b21a8;
}

/* Power Bill Savings Widget */
.energy-calc-widget {
  background: #faf5ff;
  border-color: #e9d5ff;
}

.energy-savings-box {
  background: #fff;
  border: 1px solid #d8b4fe;
  border-radius: var(--radius-md);
  padding: 14px;
  margin-top: 14px;
}

.energy-savings-label {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #7e22ce;
}

.energy-savings-amount {
  font-size: 1.5rem;
  font-weight: 800;
  color: #581c87;
  margin: 4px 0;
}

.energy-savings-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* 30s Mould Self-Check Steps */
.self-check-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.self-check-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--brand-primary);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-content h4 {
  font-size: 0.96rem;
  margin-bottom: 4px;
}

.step-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.self-check-result-box {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: var(--radius-md);
  padding: 14px;
}

.self-check-result-box h4 {
  color: #166534;
  font-size: 0.95rem;
}
