:root {
  --primary: #266fdb;
  --bg: #f7f9fc;
  --text: #1f2937;
  --muted: #6b7280;
  --card: #ffffff;
  --border: #e5e7eb;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}

/* Header + nav */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
}

.logo:hover {
  text-decoration: none;
}

.logo img {
  width: 56px;
  height: 56px;
  display: block;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  font-size: 15px;
  font-weight: 500;
}

.site-nav a {
  color: var(--text);
}

.site-nav a:hover {
  color: var(--primary);
  text-decoration: none;
}

.site-nav .nav-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 10px;
  font-weight: 600;
}

.site-nav .nav-cta:hover {
  filter: brightness(0.95);
  text-decoration: none;
}

/* Hero (home) */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 48px 0 32px;
}

.hero h1 {
  font-size: 40px;
  line-height: 1.15;
  margin: 0 0 16px;
}

.hero p.lead,
.page-lead {
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 24px;
}

.cta {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 14px 24px;
  border-radius: 14px;
  font-weight: 600;
}

.cta:hover {
  filter: brightness(0.95);
  text-decoration: none;
}

.cta-secondary {
  display: inline-block;
  margin-left: 0;
  padding: 14px 24px;
  border-radius: 14px;
  font-weight: 600;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.cta-secondary:hover {
  background: rgba(38, 111, 219, 0.08);
  text-decoration: none;
}

/* Primary + secondary actions: aligned on wrap and full-width when stacked (mobile) */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
}

.cta-row .cta,
.cta-row .cta-secondary {
  text-align: center;
  box-sizing: border-box;
}

@media (max-width: 560px) {
  .cta-row {
    flex-direction: column;
  }

  .cta-row .cta,
  .cta-row .cta-secondary {
    width: 100%;
    max-width: 100%;
  }
}

/* Lone download CTAs in article sections: easier tap targets on narrow screens */
@media (max-width: 560px) {
  .content-section > p:has(> a.cta:only-child) {
    display: block;
  }

  .content-section > p:has(> a.cta:only-child) .cta {
    display: block;
    width: 100%;
    max-width: 100%;
  }
}

.qr-card {
  background: var(--card);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  text-align: center;
}

.qr-box {
  width: 200px;
  height: 200px;
  background: #eef2ff;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
}

/* QR: desktop/other = two codes; iOS/Android = one code (store-specific later) */
.qr-layout--single {
  display: none;
}

.qr-layout--dual {
  display: block;
}

html[data-servivo-ua="ios"] .qr-layout--dual,
html[data-servivo-ua="android"] .qr-layout--dual {
  display: none !important;
}

html[data-servivo-ua="ios"] .qr-layout--single,
html[data-servivo-ua="android"] .qr-layout--single {
  display: block;
}

.qr-dual-codes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 20px 28px;
  margin-bottom: 8px;
}

.qr-dual-codes .qr-box--compact {
  width: 148px;
  height: 148px;
  margin: 0 auto 8px;
}

.qr-layout--single .qr-target-ios,
.qr-layout--single .qr-target-android {
  display: none;
}

html[data-servivo-ua="ios"] .qr-layout--single .qr-target-ios,
html[data-servivo-ua="android"] .qr-layout--single .qr-target-android {
  display: block;
}

.download-qr-hero {
  display: block;
  width: 100%;
  padding-top: 0;
  margin-bottom: 8px;
}

.download-qr-hero .qr-layout--dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.download-qr-hero .qr-layout--single {
  max-width: 420px;
  margin: 0 auto;
}

html[data-servivo-ua="ios"] .download-qr-hero .qr-layout--dual,
html[data-servivo-ua="android"] .download-qr-hero .qr-layout--dual {
  display: none !important;
}

html[data-servivo-ua="ios"] .download-qr-hero .qr-layout--single,
html[data-servivo-ua="android"] .download-qr-hero .qr-layout--single {
  display: block;
}

@media (max-width: 720px) {
  .download-qr-hero .qr-layout--dual {
    grid-template-columns: 1fr;
  }
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin-top: 16px;
}

.store-badges a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 155px;
  height: 52px;
  line-height: 0;
}

.store-badges img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.store-badges .badge-google {
  transform: scale(1.22);
}

/* Grids + cards */
.sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  padding: 40px 0;
}

.card {
  background: var(--card);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.card h2,
.card h3 {
  margin-top: 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  padding: 24px 0 48px;
}

.service-card {
  background: var(--card);
  border-radius: 16px;
  padding: 22px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.service-card h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.service-card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 15px;
}

.service-card .links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 14px;
  font-weight: 600;
}

.service-card .links a {
  color: var(--primary);
}

.service-card p.trade-intro {
  color: var(--text);
  margin-bottom: 8px;
}

.service-card .common-jobs-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 12px 0 6px;
}

.service-card ul.common-jobs {
  margin: 0 0 12px;
  padding-left: 1.2em;
  color: var(--muted);
  font-size: 15px;
}

.service-card ul.common-jobs li {
  margin-bottom: 4px;
}

.service-card .trade-tip {
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 14px;
  line-height: 1.45;
}

.services-pattern-intro {
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--text);
}

ol.services-pattern {
  margin: 0 0 20px;
  padding-left: 1.35em;
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
}

ol.services-pattern li {
  margin-bottom: 6px;
  padding-left: 4px;
}

/* Article / SEO pages */
.page-hero {
  padding: 32px 0 16px;
}

.page-hero h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 12px;
}

@media (min-width: 700px) {
  .page-hero h1 {
    font-size: 2.35rem;
  }
}

.breadcrumb {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px;
}

.breadcrumb a {
  color: var(--primary);
}

.content-section {
  background: var(--card);
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}

.content-section h2 {
  margin-top: 0;
  font-size: 1.35rem;
}

.tag-columns {
  column-count: 1;
  column-gap: 28px;
}

@media (min-width: 640px) {
  .tag-columns {
    column-count: 2;
  }
}

.tag-columns ul {
  margin: 0;
  padding-left: 1.2em;
  break-inside: avoid;
}

.tag-columns li {
  margin-bottom: 6px;
}

/* Toronto category pages: human intro + collapsible job-tag lists */
.service-list-intro {
  margin: 16px 0 20px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
}

.service-list-intro p {
  margin: 0 0 12px;
}

.service-list-intro p:last-child {
  margin-bottom: 0;
}

.tag-columns-collapsible {
  margin-top: 4px;
}

.service-tags-expand {
  margin-top: 14px;
  border-top: 1px solid var(--border);
  padding-top: 4px;
}

.service-tags-expand > summary {
  cursor: pointer;
  list-style: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  padding: 10px 0 6px;
  user-select: none;
}

.service-tags-expand > summary::-webkit-details-marker {
  display: none;
}

.service-tags-expand .service-tags-expand-meta {
  font-weight: 500;
  color: var(--muted);
}

.service-tags-expand[open] > summary .service-tags-expand-label {
  text-decoration: underline;
}

.why-list,
.faq-list {
  padding-left: 1.2em;
}

.why-list li,
.faq-list li {
  margin-bottom: 10px;
}

.faq-list dt {
  font-weight: 600;
  margin-top: 16px;
}

.faq-list dt:first-child {
  margin-top: 0;
}

.faq-list dd {
  margin: 6px 0 0;
  color: var(--muted);
}

.area-columns {
  columns: 2;
  column-gap: 24px;
  font-size: 14px;
  color: var(--muted);
}

@media (min-width: 720px) {
  .area-columns {
    columns: 3;
  }
}

.area-columns p {
  margin: 0 0 8px;
  break-inside: avoid;
}

.cross-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 15px;
  font-weight: 500;
}

.cross-links a {
  color: var(--primary);
}

.stat-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
}

footer.site-footer {
  text-align: center;
  padding: 40px 16px 32px;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--border);
  margin-top: 48px;
}

footer.site-footer a {
  color: var(--primary);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 32px;
  }
}
