/* ============================================================
   CANADIAN PAYROLL SERVICES LANDING PAGE
   (core/templates/core/service_pages/canadian-payroll-services.html)

   Loaded with service-pages.css, which supplies the shared pieces (.cs-grid,
   sticky .cs-rail, cards, tables, chips, quote factors, FAQ grid, reviews,
   offices, related). Everything here is prefixed .pr- and is this page's own
   look: a bright brand-gradient hero with an illustrative pay stub, a tabbed
   pay-run cycle, a rate card, a penalty table, cost and mistake cards, and a
   "first hire" callout band.
   ============================================================ */

.pr-hero {
    font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont,
        "Segoe UI", Roboto, sans-serif;
    color: #e0f2fe;
    background:
        radial-gradient(640px 320px at 100% 0%, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 70%),
        radial-gradient(520px 300px at 0% 100%, rgba(6, 182, 212, 0.22) 0%, rgba(6, 182, 212, 0) 70%),
        linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #0e7490 100%) !important;
    padding: clamp(1.25rem, 2.5vw, 2rem) 0 0 !important;
}
.pr-hero > .container {
    max-width: none;
    width: 100%;
    padding-left: clamp(1.5rem, 6vw, 7rem);
    padding-right: clamp(1.5rem, 6vw, 7rem);
}
@media (min-width: 1280px) {
    .pr-hero > .container { padding-right: max(clamp(1.5rem, 6vw, 7rem), 108px); }
}

.pr-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #e0f2fe;
    margin-bottom: clamp(0.75rem, 2.5vw, 2rem);
}
.pr-crumbs a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    color: #e0f2fe;
    text-decoration: none;
}
.pr-crumbs a:hover { color: #ffffff; }
.pr-crumbs span[aria-current] { color: #ffffff; }
.pr-crumbs span[aria-hidden] { color: #7dd3fc; }

.pr-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    gap: clamp(2rem, 4vw, 4rem);
    align-items: center;
}
.pr-eyebrow {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    padding: 0.3rem 0.75rem;
    margin-bottom: 1rem;
}
.pr-hero h1 {
    font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
    font-size: clamp(1.7rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin: 0 0 1rem;
}
.pr-hero-intro {
    font-size: 1.06rem;
    line-height: 1.7;
    color: #f0f9ff;
    margin: 0 0 1.25rem;
    max-width: 700px;
}
.pr-hero-points { list-style: none; margin: 0 0 1.75rem; padding: 0; display: grid; gap: 0.55rem; }
.pr-hero-points li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.95rem; font-weight: 600; color: #ffffff; }
.pr-hero-points .cs-ico {
    width: 22px;
    height: 22px;
    padding: 4px;
    border-radius: 50%;
    color: #1d4ed8;
    background: #ffffff;
    stroke-width: 3;
}
.pr-hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.pr-hero-actions .svc-rd-btn { font-size: 0.92rem; padding: 0.8rem 1.4rem; gap: 0.5rem; }
.pr-hero-actions .cs-ico { width: 16px; height: 16px; }
.pr-btn-white { background: #ffffff; color: #1d4ed8; }
.pr-btn-white:hover { background: #eff6ff; color: #1e3a8a; }
.pr-btn-ghost { color: #ffffff; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.4); }
.pr-btn-ghost:hover { background: rgba(255, 255, 255, 0.22); color: #ffffff; }

/* Signature visual: key payroll deadlines */
.pr-dead {
    background: #ffffff;
    color: #0f172a;
    border-radius: 18px;
    padding: 1.35rem 1.4rem 1.1rem;
    box-shadow: 0 30px 70px -26px rgba(15, 23, 42, 0.55);
    border-top: 6px solid #f59e0b;
}
.pr-dead-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem 0.75rem;
    margin-bottom: 0.9rem;
}
.pr-dead-head > div { min-width: 0; }
.pr-dead-title {
    display: block;
    font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
}
.pr-dead-sub { display: block; font-size: 0.8rem; font-weight: 600; color: #475569; margin-top: 0.1rem; }
.pr-dead-head .cs-link-pill { margin-top: 0.1rem; }
.pr-dead-list { list-style: none; margin: 0; padding: 0; }
.pr-dead-list li {
    display: flex;
    gap: 0.85rem;
    align-items: center;
    padding: 0.7rem 0;
    border-bottom: 1px dashed #e2e8f0;
}
.pr-dead-list li:last-child { border-bottom: 0; }
.pr-dead-badge {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    align-content: center;
    width: 70px;
    height: 58px;
    border-radius: 14px;
    text-align: center;
    color: #ffffff;
    background: linear-gradient(140deg, #2563eb 0%, #0891b2 100%);
}
.pr-dead-list li:nth-child(4) .pr-dead-badge { background: linear-gradient(140deg, #d97706 0%, #b45309 100%); }
.pr-dead-badge strong {
    display: block;
    font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.1;
}
.pr-dead-badge em {
    display: block;
    font-style: normal;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    opacity: 0.92;
    margin-top: 0.1rem;
}
.pr-dead-list .pr-dead-item {
    display: block;
    font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
    font-size: 0.98rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.1rem;
}
.pr-dead-list p { margin: 0; font-size: 0.82rem; line-height: 1.5; color: #334155; }
.pr-dead-foot { margin: 0.5rem 0 0.2rem; font-size: 0.75rem; line-height: 1.5; color: #475569; }

.pr-stats {
    list-style: none;
    margin: clamp(1.75rem, 3.5vw, 2.75rem) 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid rgba(255, 255, 255, 0.28);
}
.pr-stats li { padding: 1.15rem 1rem 1.3rem; text-align: center; }
.pr-stats li + li { border-left: 1px solid rgba(255, 255, 255, 0.28); }
.pr-stats strong {
    display: block;
    font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
    font-size: clamp(1.3rem, 2.4vw, 1.9rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.15;
}
.pr-stats span { display: block; font-size: 0.82rem; font-weight: 600; color: #e0f2fe; margin-top: 0.2rem; }

/* ---------- Pay run cycle (tabs with JS, stacked cards without) ---------- */
.pr-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.pr-step {
    background: #f8fafc;
    border: 1px solid #e6ebf2;
    border-radius: 16px;
    padding: 1.2rem 1.3rem 1.3rem;
}
.pr-step-head { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 1rem; }
.pr-step-head h3 {
    font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}
.pr-step-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }
.pr-step-you,
.pr-step-we { border-radius: 12px; padding: 0.85rem 1rem 0.95rem; }
.pr-step-you { background: #ffffff; border: 1px solid #e2e8f0; }
.pr-step-we { background: #eff6ff; border: 1px solid #cfe0fb; }
.pr-step-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #475569;
    margin-bottom: 0.3rem;
}
.pr-step-we .pr-step-label { color: #1d4ed8; }
.pr-step-cols p { margin: 0; font-size: 0.92rem; line-height: 1.6; color: #1e293b; }

.pr-tablist { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.9rem; }
.pr-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 40px;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    color: #1e293b;
    background: #ffffff;
    border: 1px solid #cfe0fb;
    border-radius: 999px;
    padding: 0.35rem 0.9rem 0.35rem 0.4rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.pr-tab-num {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: 0.8rem;
    color: #1d4ed8;
    background: #eff6ff;
}
.pr-tab:hover { border-color: #93b4f5; }
.pr-tab[aria-selected="true"] {
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #0891b2);
    border-color: transparent;
    box-shadow: 0 8px 18px -8px rgba(37, 99, 235, 0.6);
}
.pr-tab[aria-selected="true"] .pr-tab-num { color: #1d4ed8; background: #ffffff; }
.pr-tab:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
.pr-tab-num { transition: transform 0.35s cubic-bezier(0.3, 1.5, 0.5, 1), background 0.25s, color 0.25s; }
@media (hover: hover) and (pointer: fine) {
    .pr-tab {
        transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.25s ease,
            background 0.25s, color 0.25s, border-color 0.25s;
    }
    .pr-tab:hover:not([aria-selected="true"]),
    .pr-tab:focus-visible:not([aria-selected="true"]) {
        transform: translateY(-3px);
        border-color: #93b4f5;
        box-shadow: 0 10px 20px -10px rgba(37, 99, 235, 0.5);
    }
    .pr-tab:hover:not([aria-selected="true"]) .pr-tab-num,
    .pr-tab:focus-visible:not([aria-selected="true"]) .pr-tab-num {
        transform: rotate(-8deg) scale(1.15);
        color: #ffffff;
        background: linear-gradient(135deg, #2563eb, #06b6d4);
    }
    .pr-tab[aria-selected="true"]:hover { transform: translateY(-2px); }
    .pr-tab[aria-selected="true"]:hover .pr-tab-num { transform: rotate(-8deg) scale(1.12); }
}
@media (prefers-reduced-motion: reduce) {
    .pr-tab, .pr-tab-num { transition: none !important; }
    .pr-tab:hover, .pr-tab:focus-visible, .pr-tab:hover .pr-tab-num { transform: none !important; }
}
.pr-cycle.is-tabs .pr-step:not(.is-active) { display: none; }

/* ---------- What's included ---------- */
.pr-incl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }
.pr-incl-card {
    background: #ffffff;
    border: 1px solid #e6ebf2;
    border-radius: 16px;
    padding: 1.15rem 1.25rem 1.3rem;
}
.pr-incl-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.pr-incl-card header { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.85rem; }
.pr-incl-card h3 {
    font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
    font-size: 1.08rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}
.pr-incl-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.pr-incl-card li { display: flex; gap: 0.55rem; align-items: flex-start; font-size: 0.92rem; line-height: 1.5; color: #1e293b; }
.pr-incl-card li .cs-ico { width: 17px; height: 17px; margin-top: 3px; color: #059669; stroke-width: 2.6; }

/* ---------- Rate card ---------- */
.pr-rates thead th:not(:first-child) { text-align: left; }
.pr-rates tbody th { width: 34%; }
.pr-rates .pr-rate {
    width: 16%;
    font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1d4ed8;
    background: #f5f9ff;
    white-space: nowrap;
}

/* ---------- What changes by province ---------- */
.pr-prov {
    margin-top: 1.25rem;
    padding: 1.15rem 1.25rem 1.25rem;
    background: #f5f9ff;
    border: 1px solid #cfe0fb;
    border-radius: 16px;
}
.pr-prov h3 {
    font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
    font-size: 1.08rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.85rem;
}
.pr-prov-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.pr-prov-grid li { display: flex; gap: 0.7rem; align-items: flex-start; }
.pr-prov-grid strong { display: block; font-size: 0.92rem; color: #0f172a; line-height: 1.3; }
.pr-prov-grid li span:not(.cs-tile) { display: block; font-size: 0.84rem; line-height: 1.5; color: #334155; margin-top: 0.1rem; }

/* ---------- Employer costs ---------- */
.pr-costs { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0.9rem; }
.pr-cost {
    position: relative;
    background: #ffffff;
    border: 1px solid #e6ebf2;
    border-radius: 16px;
    padding: 1.3rem 1.15rem 1.2rem;
    overflow: hidden;
}
.pr-cost::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #06b6d4);
}
.pr-cost h3 {
    font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
    font-size: 1.02rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0.8rem 0 0.35rem;
}
.pr-cost p { margin: 0; font-size: 0.88rem; line-height: 1.6; color: #334155; }

/* ---------- Mistakes ---------- */
.pr-mistakes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }
.pr-mistake {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    background: #ffffff;
    border: 1px solid #e6ebf2;
    border-radius: 14px;
    padding: 1rem 1.1rem;
}
.pr-mistake-icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fee2e2;
    color: #b91c1c;
}
.pr-mistake-icon .cs-ico { width: 20px; height: 20px; }
.pr-mistake h3 {
    font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.25rem;
}
.pr-mistake p { margin: 0; font-size: 0.88rem; line-height: 1.55; color: #334155; }
.pr-mistake p strong { color: #047857; }

/* ---------- First hire band ---------- */
.pr-first {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.1rem 1.5rem;
    padding: clamp(1.3rem, 3vw, 1.9rem);
    background: linear-gradient(120deg, #0b1220 0%, #12305f 100%);
    border-radius: 20px;
}
.pr-first .cs-tile { color: #7dd3fc; background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.2); }
.pr-first-text { flex: 1 1 300px; min-width: 0; }
.cs-sec .pr-first-text h2 { color: #ffffff; margin: 0 0 0.4rem; font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
.pr-first-text p { margin: 0; font-size: 0.96rem; line-height: 1.65; color: #cbd5e1; }
.pr-first-btn { flex-shrink: 0; font-size: 0.9rem; padding: 0.8rem 1.3rem; }

/* ============ Responsive ============ */
@media (max-width: 991px) {
    .pr-hero-grid { grid-template-columns: minmax(0, 1fr); }
    .pr-dead { max-width: 520px; }
}
@media (max-width: 767px) {
    .pr-incl,
    .pr-mistakes,
    .pr-prov-grid,
    .pr-step-cols { grid-template-columns: minmax(0, 1fr); }

    /* rate card: stack each row into a small card with labelled values */
    .pr-rates thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .pr-rates, .pr-rates tbody, .pr-rates tr, .pr-rates th, .pr-rates td { display: block; width: auto; }
    .pr-rates tr { padding: 0.9rem 1rem; border-bottom: 1px solid #eef2f7; }
    .pr-rates tbody tr:last-child { border-bottom: 0; }
    .pr-rates tbody th { padding: 0 0 0.3rem; border: 0; width: auto; }
    .pr-rates tbody td { padding: 0.15rem 0; border: 0; }
    .pr-rates .pr-rate { width: auto; background: none; font-size: 1.3rem; }
    .pr-rates tbody td:not(.pr-rate)::before { content: attr(data-label) ": "; font-weight: 800; color: #1d4ed8; }
}
@media (max-width: 640px) {
    .pr-hero-actions .svc-rd-btn { width: 100%; justify-content: center; }
    .pr-stats { grid-template-columns: minmax(0, 1fr); }
    .pr-stats li + li { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.28); }
    .pr-first-btn { width: 100%; justify-content: center; }
    .pr-tablist { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
    .pr-tab { flex-shrink: 0; }
}
