/*
 * ═══════════════════════════════════════════════════════════════════════════
 *  nbs-country-guides.css  —  Shared stylesheet for NBS "Hire in {Country}" pages
 * ═══════════════════════════════════════════════════════════════════════════
 *
 *  Editorial design system for the 12 country hiring guides, aligned to the
 *  nbs-case-studies.css aesthetic: light editorial hero, eyebrow labels,
 *  accent-rule headings, dark ribbon stat strips, hairline-bordered cards,
 *  a pull-quote callout, and a dark CTA with a radial glow. Same brand tokens
 *  and fonts as the rest of the NBS site (Montserrat / Lato / Roboto).
 *
 *  Every page wraps all content in `class="nbs-cg"`.
 *  Delivery: theme-enqueued on the 12 country slugs (see the enqueue PHP).
 *  Content lives inside a Gutenberg Custom HTML block (<!-- wp:html -->).
 * ═══════════════════════════════════════════════════════════════════════════
 */

@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300&family=Lato:wght@400;500;600;700&family=Roboto:wght@400;500;600&display=swap");

/* ─── TOKENS + BASE ──────────────────────────────────────────────────────── */
.nbs-cg {
    --cg-accent: #ff4800;
    --cg-accent-dark: #e04000;
    --cg-ink: #1a1a2e;
    --cg-body: #3a3a4a;
    --cg-muted: #777785;
    --cg-surface: #ffffff;
    --cg-surface-alt: #f5f6f8;
    --cg-surface-dark: #13131f;
    --cg-border: #e4e6ea;
    font-family: "Roboto", sans-serif;
    color: var(--cg-body);
}
.nbs-cg * { box-sizing: border-box; }
.nbs-cg h1, .nbs-cg h2, .nbs-cg h3, .nbs-cg h4 { margin-top: 0; color: var(--cg-ink); font-family: "Montserrat", sans-serif; }
.nbs-cg p { line-height: 1.75; color: var(--cg-body); }
.nbs-cg a { color: var(--cg-accent-dark); text-decoration: none; }

/* Full-bleed bands break out of the theme's centered content column */
.nbs-cg .nbs-cg-band,
.nbs-cg .nbs-cg-snapshot,
.nbs-cg .nbs-cg-pullquote,
.nbs-cg .nbs-cg-cta {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

/* Section shell */
.nbs-cg-section { padding: 72px 40px; }
.nbs-cg-band { background: var(--cg-surface-alt); }
.nbs-cg-inner { max-width: 1120px; margin: 0 auto; }

/* Eyebrow — flanked uppercase label */
.nbs-cg-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: "Lato", sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--cg-accent);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.nbs-cg-eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--cg-accent); display: inline-block; }

/* Section heading — accent rule above */
.nbs-cg-section h2 {
    font-size: 34px;
    font-weight: 600;
    letter-spacing: -0.5px;
    line-height: 1.18;
    margin-bottom: 14px;
}
.nbs-cg-section > .nbs-cg-inner > h2:first-child::before {
    content: "";
    display: block;
    width: 42px;
    height: 3px;
    background: var(--cg-accent);
    margin-bottom: 20px;
}
.nbs-cg-lead { font-size: 18px; color: var(--cg-body); max-width: 820px; margin: 0 0 8px; line-height: 1.7; }

/* ─── HERO (light, editorial) ────────────────────────────────────────────── */
.nbs-cg-hero { background: var(--cg-surface); padding: 84px 40px 64px; }
.nbs-cg-hero-inner { max-width: 880px; margin: 0 auto; text-align: center; }
.nbs-cg-hero .nbs-cg-eyebrow::after { content: ""; width: 24px; height: 2px; background: var(--cg-accent); display: inline-block; }
.nbs-cg-hero h1 {
    font-size: 46px;
    font-weight: 600;
    color: var(--cg-ink);
    letter-spacing: -0.8px;
    line-height: 1.15;
    margin-bottom: 22px;
}
.nbs-cg-hero-sub { font-size: 19px; color: var(--cg-body); max-width: 720px; margin: 0 auto 34px; line-height: 1.65; }

/* Primary button (dark pill for light backgrounds) */
.nbs-cg a.nbs-cg-btn {
    display: inline-block;
    background: var(--cg-ink);
    border: 2px solid var(--cg-ink);
    border-radius: 55px;
    padding: 14px 34px;
    color: #fff;
    font-family: "Lato", sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-decoration: none;
    transition: background 0.3s, border-color 0.3s, transform 0.2s;
}
.nbs-cg a.nbs-cg-btn:hover { background: var(--cg-accent); border-color: var(--cg-accent); color: #fff; transform: translateY(-2px); }
/* Accent button (for dark backgrounds) */
.nbs-cg a.nbs-cg-btn-accent {
    display: inline-block;
    background: var(--cg-accent);
    border: 2px solid var(--cg-accent);
    border-radius: 55px;
    padding: 14px 34px;
    color: #fff;
    font-family: "Lato", sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-decoration: none;
    transition: background 0.3s, border-color 0.3s, transform 0.2s;
}
.nbs-cg a.nbs-cg-btn-accent:hover { background: var(--cg-accent-dark); border-color: var(--cg-accent-dark); color: #fff; transform: translateY(-2px); }

/* ─── SNAPSHOT RIBBON (dark) ─────────────────────────────────────────────── */
.nbs-cg-snapshot { background: var(--cg-surface-dark); padding: 34px 40px; }
.nbs-cg-snapshot-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.nbs-cg-fact { border-left: 2px solid var(--cg-accent); padding-left: 16px; }
.nbs-cg-fact-label { display: block; font-family: "Lato", sans-serif; font-size: 11px; font-weight: 700; color: var(--cg-accent); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 5px; }
.nbs-cg-fact-value { display: block; font-family: "Montserrat", sans-serif; font-size: 20px; font-weight: 600; color: #fff; line-height: 1.25; }

/* ─── INTRO ──────────────────────────────────────────────────────────────── */
.nbs-cg-intro { padding: 56px 40px 8px; }
.nbs-cg-intro .nbs-cg-inner { max-width: 820px; }
.nbs-cg-intro p { font-size: 18px; color: var(--cg-body); }

/* ─── KEY STATS (fact grid, hairline) ────────────────────────────────────── */
.nbs-cg-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--cg-border);
    border: 1px solid var(--cg-border);
    border-radius: 14px;
    overflow: hidden;
    margin-top: 12px;
}
.nbs-cg-stat { background: var(--cg-surface); padding: 22px 24px; }
.nbs-cg-stat-label { display: block; font-family: "Lato", sans-serif; font-size: 11px; font-weight: 700; color: var(--cg-accent); text-transform: uppercase; letter-spacing: 1.3px; margin-bottom: 7px; }
.nbs-cg-stat-value { display: block; font-family: "Montserrat", sans-serif; font-size: 17px; font-weight: 600; color: var(--cg-ink); line-height: 1.35; }

/* ─── FEATURE CARDS (why hire) ───────────────────────────────────────────── */
.nbs-cg-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 14px; }
.nbs-cg-feature {
    background: var(--cg-surface);
    border: 1px solid var(--cg-border);
    border-radius: 14px;
    padding: 28px 26px;
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.nbs-cg-feature:hover { transform: translateY(-4px); border-color: var(--cg-accent); box-shadow: 0 18px 40px -24px rgba(26, 26, 46, 0.4); }
.nbs-cg-feature h3 { font-family: "Montserrat", sans-serif; font-size: 19px; font-weight: 600; color: var(--cg-ink); margin: 0 0 12px; padding-top: 14px; border-top: 3px solid var(--cg-accent); display: inline-block; }
.nbs-cg-feature p { margin: 0; font-size: 15px; color: var(--cg-body); }

/* ─── ROLE CATEGORY CARDS ────────────────────────────────────────────────── */
.nbs-cg-roles { display: flex; flex-direction: column; gap: 18px; margin-top: 14px; }
.nbs-cg-role {
    background: var(--cg-surface);
    border: 1px solid var(--cg-border);
    border-radius: 14px;
    padding: 28px 32px;
    transition: border-color 0.25s, box-shadow 0.25s;
}
.nbs-cg-role:hover { border-color: var(--cg-accent); box-shadow: 0 18px 40px -24px rgba(26, 26, 46, 0.4); }
.nbs-cg-role h3 { font-family: "Montserrat", sans-serif; font-size: 20px; font-weight: 600; color: var(--cg-ink); margin: 0 0 6px; }
.nbs-cg-role-desc { font-size: 15px; color: var(--cg-muted); margin: 0 0 16px; line-height: 1.65; max-width: 880px; padding-bottom: 18px; border-bottom: 1px solid var(--cg-border); }
.nbs-cg-role-group { display: grid; grid-template-columns: 116px 1fr; gap: 10px 20px; align-items: start; padding: 13px 0; border-bottom: 1px solid var(--cg-surface-alt); }
.nbs-cg-role-group:last-child { border-bottom: none; padding-bottom: 0; }
.nbs-cg-role-glabel { font-family: "Lato", sans-serif; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--cg-accent); padding-top: 7px; line-height: 1.4; }
.nbs-cg-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.nbs-cg-chips li { background: var(--cg-surface-alt); border: 1px solid var(--cg-border); border-radius: 30px; padding: 6px 15px; font-family: "Lato", sans-serif; font-size: 13px; font-weight: 600; color: var(--cg-ink); line-height: 1.25; transition: border-color 0.2s, color 0.2s; }
.nbs-cg-chips li:hover { border-color: var(--cg-accent); color: var(--cg-accent-dark); }

/* ─── INFO CARD GRID (thrive, compliance, setup, ongoing, termination) ───── */
.nbs-cg-cardgrid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-top: 12px; }
.nbs-cg-cardgrid > .nbs-cg-card { flex: 1 1 300px; max-width: 364px; }
.nbs-cg-cardgrid.is-2col > .nbs-cg-card { flex: 1 1 440px; max-width: 524px; }
.nbs-cg-card {
    background: var(--cg-surface);
    border: 1px solid var(--cg-border);
    border-top: 3px solid var(--cg-accent);
    border-radius: 14px;
    padding: 26px 24px;
    transition: transform 0.25s, box-shadow 0.25s;
}
.nbs-cg-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(26, 26, 46, 0.4); }
.nbs-cg-band .nbs-cg-card { background: var(--cg-surface); }
.nbs-cg-card h3 { font-family: "Montserrat", sans-serif; font-size: 17px; font-weight: 600; color: var(--cg-ink); margin: 0 0 10px; }
.nbs-cg-card p:last-child, .nbs-cg-card ul:last-child { margin-bottom: 0; }
.nbs-cg-card ul { padding-left: 0; margin: 0; list-style: none; }
.nbs-cg-card li { position: relative; padding-left: 20px; margin-bottom: 9px; font-size: 15px; color: var(--cg-body); line-height: 1.55; }
.nbs-cg-card li::before { content: ""; position: absolute; left: 0; top: 10px; width: 10px; height: 2px; background: var(--cg-accent); }

/* ─── PROSE ──────────────────────────────────────────────────────────────── */
.nbs-cg-section h3 { font-family: "Montserrat", sans-serif; font-size: 20px; font-weight: 600; color: var(--cg-ink); margin: 28px 0 12px; }
.nbs-cg-prose p { color: var(--cg-body); margin: 0 0 14px; }
.nbs-cg-prose ul, .nbs-cg-prose ol { color: var(--cg-body); padding-left: 0; margin: 0 0 16px; list-style: none; }
.nbs-cg-prose li { position: relative; padding-left: 26px; margin-bottom: 11px; line-height: 1.6; }
.nbs-cg-prose ul li::before { content: ""; position: absolute; left: 0; top: 12px; width: 14px; height: 2px; background: var(--cg-accent); }
.nbs-cg-prose ol { counter-reset: cg-ol; }
.nbs-cg-prose ol li { counter-increment: cg-ol; padding-left: 40px; }
.nbs-cg-prose ol li::before { content: counter(cg-ol, decimal-leading-zero); position: absolute; left: 0; top: 0; font-family: "Montserrat", sans-serif; font-size: 14px; font-weight: 700; color: var(--cg-accent); }

/* ─── STEP / PATHWAY CARDS ───────────────────────────────────────────────── */
.nbs-cg-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 14px; }
.nbs-cg-step { background: var(--cg-surface); border: 1px solid var(--cg-border); border-radius: 14px; padding: 30px 26px; display: flex; flex-direction: column; }
.nbs-cg-step-num { font-family: "Montserrat", sans-serif; font-size: 40px; font-weight: 700; color: var(--cg-accent); line-height: 1; letter-spacing: -2px; margin-bottom: 14px; }
.nbs-cg-step h3 { font-family: "Montserrat", sans-serif; font-size: 19px; font-weight: 600; color: var(--cg-ink); margin: 0 0 10px; }
.nbs-cg-step > p { font-size: 15px; color: var(--cg-body); margin: 0 0 16px; }
.nbs-cg-pros, .nbs-cg-cons { list-style: none; padding: 0; margin: 0 0 14px; }
.nbs-cg-pros li, .nbs-cg-cons li { position: relative; padding-left: 26px; margin-bottom: 8px; font-size: 14px; color: var(--cg-body); line-height: 1.5; }
.nbs-cg-pros li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: #1e9e5a; font-weight: 700; }
.nbs-cg-cons li::before { content: "\2715"; position: absolute; left: 0; top: 0; color: #d0432b; font-weight: 700; }
.nbs-cg-step-note { font-size: 14px; color: var(--cg-muted); margin: auto 0 0; padding-top: 14px; border-top: 1px solid var(--cg-border); line-height: 1.55; }

/* ─── DATA TABLES ────────────────────────────────────────────────────────── */
.nbs-cg-table-wrap { overflow-x: auto; margin: 12px 0 14px; border: 1px solid var(--cg-border); border-radius: 14px; }
.nbs-cg table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 480px; background: var(--cg-surface); }
.nbs-cg thead th { background: var(--cg-ink); color: #fff; font-family: "Lato", sans-serif; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; text-align: left; padding: 15px 18px; white-space: nowrap; }
.nbs-cg tbody td { padding: 14px 18px; border-bottom: 1px solid var(--cg-border); color: var(--cg-body); }
.nbs-cg tbody tr:last-child td { border-bottom: none; }
.nbs-cg tbody tr:nth-child(even) td { background: var(--cg-surface-alt); }
.nbs-cg tbody td:first-child { font-weight: 600; color: var(--cg-ink); }
.nbs-cg-note { font-size: 14px; color: var(--cg-muted); font-style: italic; margin-top: 10px; }

/* ─── FIGURE (branded graphic) + collapsible table ───────────────────────── */
.nbs-cg-figure { margin: 14px 0 12px; }
.nbs-cg-figure img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--cg-border); }
.nbs-cg-figure figcaption { font-size: 13px; color: var(--cg-muted); margin-top: 10px; text-align: center; }
.nbs-cg-table-toggle { border: 1px solid var(--cg-border); border-radius: 12px; background: var(--cg-surface); margin: 0 0 12px; overflow: hidden; }
.nbs-cg-table-toggle > summary { font-family: "Lato", sans-serif; font-size: 14px; font-weight: 700; color: var(--cg-ink); padding: 14px 18px; cursor: pointer; list-style: none; }
.nbs-cg-table-toggle > summary::-webkit-details-marker { display: none; }
.nbs-cg-table-toggle > summary::before { content: "+"; color: var(--cg-accent); font-weight: 700; margin-right: 8px; }
.nbs-cg-table-toggle[open] > summary::before { content: "\2212"; }
.nbs-cg-table-toggle .nbs-cg-table-wrap { border: none; border-top: 1px solid var(--cg-border); border-radius: 0; margin: 0; }

/* ─── PULL QUOTE ─────────────────────────────────────────────────────────── */
.nbs-cg-pullquote { background: var(--cg-surface); padding: 76px 40px; }
.nbs-cg-pullquote-inner { max-width: 900px; margin: 0 auto; text-align: center; position: relative; }
.nbs-cg-pullquote-inner::before { content: "\201C"; position: absolute; top: -46px; left: 50%; transform: translateX(-50%); font-family: "Montserrat", serif; font-size: 120px; font-weight: 700; color: var(--cg-accent); line-height: 1; opacity: 0.22; pointer-events: none; }
.nbs-cg-pullquote p { font-family: "Montserrat", sans-serif; font-size: 28px; font-weight: 400; color: var(--cg-ink); line-height: 1.45; letter-spacing: -0.3px; margin: 0; position: relative; z-index: 1; }
.nbs-cg-pullquote em { color: var(--cg-accent); font-style: normal; font-weight: 600; }

/* ─── FAQ ACCORDION ──────────────────────────────────────────────────────── */
.nbs-cg-faq { margin-top: 14px; }
.nbs-cg-faq details { border: 1px solid var(--cg-border); border-radius: 12px; margin-bottom: 12px; background: var(--cg-surface); transition: border-color 0.2s, box-shadow 0.2s; }
.nbs-cg-faq details:hover { border-color: #cfd2d8; }
.nbs-cg-faq details[open] { border-color: var(--cg-accent); box-shadow: 0 18px 40px -28px rgba(26, 26, 46, 0.45); }
.nbs-cg-faq summary { font-family: "Montserrat", sans-serif; font-size: 17px; font-weight: 600; color: var(--cg-ink); padding: 20px 54px 20px 22px; cursor: pointer; list-style: none; position: relative; }
.nbs-cg-faq summary::-webkit-details-marker { display: none; }
.nbs-cg-faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; color: var(--cg-accent); transition: transform 0.2s; }
.nbs-cg-faq details[open] summary::after { content: "\2212"; }
.nbs-cg-faq .nbs-cg-faq-body { padding: 0 22px 20px; font-size: 15px; color: var(--cg-body); line-height: 1.75; }
.nbs-cg-faq .nbs-cg-faq-body p { margin: 0; color: var(--cg-body); }

/* ─── FINAL CTA (dark, glow, oversized mark) ─────────────────────────────── */
.nbs-cg-cta { padding: 64px 40px 84px; background: var(--cg-surface); }
.nbs-cg-cta-inner {
    max-width: 1120px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--cg-surface-dark) 0%, #1e1e30 100%);
    border-radius: 22px;
    padding: 56px 54px;
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 54px;
    align-items: center;
}
.nbs-cg-cta-inner::before { content: ""; position: absolute; top: -120px; right: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 72, 0, 0.24) 0%, transparent 70%); pointer-events: none; }
.nbs-cg-cta-main { position: relative; z-index: 1; }
.nbs-cg-cta-eyebrow { font-family: "Lato", sans-serif; font-size: 12px; font-weight: 700; color: var(--cg-accent); letter-spacing: 3px; text-transform: uppercase; margin-bottom: 14px; }
.nbs-cg-cta-inner h2 { color: #fff; font-size: 32px; font-weight: 600; letter-spacing: -0.4px; margin: 0 0 14px; }
.nbs-cg-cta-main > p { color: rgba(255, 255, 255, 0.82); font-size: 17px; margin: 0 0 28px; }
.nbs-cg-services { position: relative; z-index: 1; display: flex; flex-direction: column; }
.nbs-cg-service { padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.nbs-cg-service:first-child { border-top: none; padding-top: 0; }
.nbs-cg-service:last-child { padding-bottom: 0; }
.nbs-cg-service a { display: block; font-family: "Montserrat", sans-serif; font-size: 16px; font-weight: 600; color: #fff; text-decoration: none; transition: color 0.2s; }
.nbs-cg-service a:hover { color: #ff7a4d; }
.nbs-cg-service p { margin: 5px 0 0; font-size: 14px; color: rgba(255, 255, 255, 0.68); line-height: 1.55; }

/* ─── MOTION ─────────────────────────────────────────────────────────────── */
/* No entrance animation. FlyingPress critical CSS inlines an EMPTY @keyframes
   copy, so any opacity:0 + animation intro freezes the hero invisible.
   Hero content must render visible with zero dependency on keyframes. */

/* ─── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
    .nbs-cg-section { padding: 52px 26px; }
    .nbs-cg-section h2 { font-size: 28px; }
    .nbs-cg-hero { padding: 60px 26px 48px; }
    .nbs-cg-hero h1 { font-size: 34px; }
    .nbs-cg-hero-sub { font-size: 17px; }
    .nbs-cg-snapshot-inner { grid-template-columns: repeat(2, 1fr); gap: 22px 26px; }
    .nbs-cg-stats { grid-template-columns: repeat(3, 1fr); }
    .nbs-cg-steps { grid-template-columns: 1fr; }
    .nbs-cg-cta { padding: 48px 26px 60px; }
    .nbs-cg-cta-inner { padding: 40px 34px; grid-template-columns: 1fr; gap: 34px; }
    .nbs-cg-cta-inner h2 { font-size: 28px; }
    .nbs-cg-pullquote { padding: 54px 26px; }
    .nbs-cg-pullquote p { font-size: 23px; }
}
@media (max-width: 600px) {
    .nbs-cg-section { padding: 42px 18px; }
    .nbs-cg-section h2 { font-size: 25px; }
    .nbs-cg-hero { padding: 48px 18px 38px; }
    .nbs-cg-hero h1 { font-size: 27px; letter-spacing: -0.4px; }
    .nbs-cg-hero-sub { font-size: 15px; }
    .nbs-cg-snapshot { padding: 26px 18px; }
    .nbs-cg-snapshot-inner { grid-template-columns: 1fr; gap: 16px; }
    .nbs-cg-stats { grid-template-columns: 1fr 1fr; }
    .nbs-cg-role-group { grid-template-columns: 1fr; gap: 8px; }
    .nbs-cg-role-glabel { padding-top: 0; }
    .nbs-cg-intro { padding: 38px 18px 4px; }
    .nbs-cg-pullquote p { font-size: 19px; }
    .nbs-cg-pullquote-inner::before { font-size: 90px; top: -34px; }
    .nbs-cg-cta-inner { padding: 34px 24px; }
    .nbs-cg-cta-inner h2 { font-size: 24px; }
}