/* ============================================================
   boarded.co.nz — Main Theme Stylesheet
   Designed to work alongside Elementor Global Colours/Fonts.
   ============================================================ */

/* ── CSS Custom Properties ───────────────────────────────── */
:root {
    --bd-primary:        #185FA5;
    --bd-primary-dark:   #0C447C;
    --bd-primary-light:  #378ADD;
    --bd-primary-bg:     #E6F1FB;
    --bd-accent:         #16a34a;
    --bd-text:           #111827;
    --bd-text-secondary: #4b5563;
    --bd-text-muted:     #9ca3af;
    --bd-border:         #e5e7eb;
    --bd-bg:             #ffffff;
    --bd-bg-alt:         #f9fafb;
    --bd-radius:         12px;
    --bd-shadow:         0 1px 4px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.06);
    --bd-font-sans:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --bd-max-w:          1200px;
}

/* ── Layout ──────────────────────────────────────────────── */
.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-content {
    flex: 1;
}

.container {
    max-width: var(--bd-max-w);
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Site Header ─────────────────────────────────────────── */
.site-header {
    background: var(--bd-bg);
    border-bottom: 1px solid var(--bd-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.site-header__inner {
    max-width: var(--bd-max-w);
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-header__logo {
    font-family: var(--bd-font-sans);
    font-weight: 800;
    font-size: 20px;
    color: var(--bd-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

.site-header__logo:hover { text-decoration: none; color: var(--bd-primary-dark); }

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav li a {
    font-size: 14px;
    font-weight: 500;
    color: var(--bd-text-secondary);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}

.site-nav li a:hover {
    background: var(--bd-bg-alt);
    color: var(--bd-text);
    text-decoration: none;
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* ── Buttons ─────────────────────────────────────────────── */
.boarded-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: var(--bd-font-sans);
    font-weight: 600;
    font-size: 15px;
    padding: 10px 22px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
    white-space: nowrap;
    line-height: 1.3;
}

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

.boarded-btn--primary:hover {
    background: var(--bd-primary-dark);
    color: #fff;
    text-decoration: none;
}

.boarded-btn--outline {
    background: transparent;
    color: var(--bd-primary);
    border: 2px solid var(--bd-primary);
}

.boarded-btn--outline:hover {
    background: var(--bd-primary-bg);
    color: var(--bd-primary-dark);
    text-decoration: none;
}

.boarded-btn--ghost {
    background: transparent;
    color: var(--bd-text-secondary);
    border: 1px solid var(--bd-border);
}

.boarded-btn--ghost:hover {
    background: var(--bd-bg-alt);
    color: var(--bd-text);
    text-decoration: none;
}

.boarded-btn--sm {
    font-size: 13px;
    padding: 7px 16px;
}

.boarded-btn--lg {
    font-size: 17px;
    padding: 14px 32px;
    border-radius: 10px;
}

/* ── Hero Section ────────────────────────────────────────── */
.boarded-hero {
    position: relative;
    background: linear-gradient(135deg, #0C447C 0%, #185FA5 60%, #2d79c7 100%);
    color: #fff;
    padding: 96px 24px 80px;
    text-align: center;
    overflow: hidden;
}

.boarded-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><circle cx="1100" cy="100" r="300" fill="rgba(255,255,255,0.03)"/><circle cx="100" cy="500" r="200" fill="rgba(255,255,255,0.03)"/></svg>') center/cover no-repeat;
    pointer-events: none;
}

.boarded-hero__inner {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
}

.boarded-hero__eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.75);
    margin-bottom: 20px;
    background: rgba(255,255,255,0.12);
    padding: 4px 12px;
    border-radius: 20px;
}

.boarded-hero__heading {
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin: 0 0 20px;
    color: #fff;
}

.boarded-hero__subheading {
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255,255,255,0.85);
    margin: 0 0 40px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.boarded-hero__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.boarded-hero .boarded-btn--primary {
    background: #fff;
    color: var(--bd-primary);
}

.boarded-hero .boarded-btn--primary:hover {
    background: #f0f9ff;
    color: var(--bd-primary-dark);
}

.boarded-hero .boarded-btn--outline {
    border-color: rgba(255,255,255,0.5);
    color: #fff;
}

.boarded-hero .boarded-btn--outline:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

/* ── Section utilities ───────────────────────────────────── */
.boarded-section {
    padding: 80px 0;
}

.boarded-section--alt {
    background: var(--bd-bg-alt);
}

.boarded-section--dark {
    background: #0C447C;
    color: #fff;
}

.boarded-section__header {
    text-align: center;
    margin-bottom: 48px;
}

.boarded-section__label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--bd-primary);
    margin-bottom: 10px;
    display: block;
}

.boarded-section__title {
    font-size: clamp(24px, 3.5vw, 40px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--bd-text);
    margin: 0 0 14px;
}

.boarded-section--dark .boarded-section__title { color: #fff; }
.boarded-section--dark .boarded-section__label { color: rgba(255,255,255,0.6); }

.boarded-section__desc {
    font-size: 17px;
    color: var(--bd-text-secondary);
    line-height: 1.7;
    max-width: 540px;
    margin: 0 auto;
}

.boarded-section--dark .boarded-section__desc { color: rgba(255,255,255,0.75); }

/* ── Role Cards ──────────────────────────────────────────── */
.boarded-roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.boarded-role-card {
    background: var(--bd-bg);
    border: 1px solid var(--bd-border);
    border-radius: var(--bd-radius);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: var(--bd-shadow);
    transition: transform 0.15s, box-shadow 0.15s;
}

.boarded-role-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1), 0 12px 32px rgba(0,0,0,0.08);
}

.boarded-role-card__header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.boarded-role-card__type {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--bd-primary);
    background: var(--bd-primary-bg);
    padding: 3px 8px;
    border-radius: 20px;
}

.boarded-role-card__region {
    font-size: 12px;
    color: var(--bd-text-muted);
}

.boarded-role-card__title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    color: var(--bd-text);
}

.boarded-role-card__title a {
    color: inherit;
    text-decoration: none;
}

.boarded-role-card__title a:hover {
    color: var(--bd-primary);
    text-decoration: none;
}

.boarded-role-card__org {
    font-size: 13px;
    color: var(--bd-text-secondary);
    margin: 0;
}

.boarded-role-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    gap: 8px;
}

.boarded-role-card__closes {
    font-size: 12px;
    color: var(--bd-text-muted);
}

.boarded-role-card__cta {
    font-size: 13px;
    font-weight: 600;
    color: var(--bd-primary);
    text-decoration: none;
    white-space: nowrap;
}

.boarded-role-card__cta:hover {
    color: var(--bd-primary-dark);
    text-decoration: underline;
}

/* ── Filters ─────────────────────────────────────────────── */
.boarded-filters {
    margin-bottom: 28px;
}

.boarded-filters__inner {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.boarded-filter-search,
.boarded-filter-type,
.boarded-filter-region {
    height: 42px;
    border: 1.5px solid var(--bd-border);
    border-radius: 8px;
    font-size: 14px;
    font-family: var(--bd-font-sans);
    padding: 0 14px;
    color: var(--bd-text);
    background: var(--bd-bg);
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
}

.boarded-filter-search { flex: 1; min-width: 220px; }
.boarded-filter-type,
.boarded-filter-region { min-width: 160px; }

.boarded-filter-search:focus,
.boarded-filter-type:focus,
.boarded-filter-region:focus {
    border-color: var(--bd-primary);
    box-shadow: 0 0 0 3px rgba(24, 95, 165, 0.15);
}

/* ── Stats Counter ───────────────────────────────────────── */
.boarded-stats-counter {
    display: flex;
    gap: 48px;
    justify-content: center;
    flex-wrap: wrap;
}

.boarded-stat {
    text-align: center;
}

.boarded-stat__number {
    display: block;
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 800;
    color: var(--bd-primary);
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 8px;
}

.boarded-stat__label {
    font-size: 15px;
    color: var(--bd-text-secondary);
    font-weight: 500;
}

/* ── How It Works ────────────────────────────────────────── */
.boarded-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
}

.boarded-step {
    text-align: center;
    padding: 32px 24px;
}

.boarded-step__number {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--bd-primary);
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.boarded-step__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--bd-text);
    margin: 0 0 10px;
}

.boarded-step__desc {
    font-size: 15px;
    color: var(--bd-text-secondary);
    line-height: 1.65;
    margin: 0;
}

/* ── Testimonials ────────────────────────────────────────── */
.boarded-testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.boarded-testimonial {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--bd-radius);
    padding: 28px;
}

.boarded-testimonial__quote {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255,255,255,0.9);
    font-style: italic;
    margin: 0 0 20px;
}

.boarded-testimonial__author {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}

.boarded-testimonial__role {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    margin-top: 2px;
}

/* ── Pricing ─────────────────────────────────────────────── */
.boarded-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    align-items: start;
}

.boarded-pricing-card {
    background: var(--bd-bg);
    border: 1.5px solid var(--bd-border);
    border-radius: 16px;
    padding: 32px 28px;
    position: relative;
}

.boarded-pricing-card--featured {
    border-color: var(--bd-primary);
    box-shadow: 0 0 0 4px rgba(24, 95, 165, 0.1);
}

.boarded-pricing-card__badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bd-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 20px;
    white-space: nowrap;
}

.boarded-pricing-card__tier {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--bd-text-secondary);
    margin-bottom: 12px;
}

.boarded-pricing-card__price {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--bd-text);
    line-height: 1;
    margin-bottom: 4px;
}

.boarded-pricing-card__price sup {
    font-size: 22px;
    vertical-align: super;
    margin-right: 2px;
}

.boarded-pricing-card__period {
    font-size: 14px;
    color: var(--bd-text-muted);
    margin-bottom: 24px;
}

.boarded-pricing-card__features {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.boarded-pricing-card__features li {
    font-size: 14px;
    color: var(--bd-text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

.boarded-pricing-card__features li::before {
    content: '✓';
    color: var(--bd-accent);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ── Roles listing page ──────────────────────────────────── */
.boarded-roles-listing { width: 100%; }

.boarded-roles-grid--loading {
    position: relative;
    min-height: 200px;
}

.boarded-loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--bd-text-muted);
    gap: 12px;
}

.boarded-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--bd-border);
    border-top-color: var(--bd-primary);
    border-radius: 50%;
    animation: boarded-spin 0.7s linear infinite;
}

@keyframes boarded-spin {
    to { transform: rotate(360deg); }
}

.boarded-empty {
    text-align: center;
    padding: 48px 24px;
    color: var(--bd-text-muted);
    font-size: 15px;
}

.boarded-error {
    text-align: center;
    padding: 32px;
    color: #dc2626;
    background: #fef2f2;
    border-radius: 8px;
    font-size: 14px;
}

/* ── Pagination ──────────────────────────────────────────── */
.boarded-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.boarded-page-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border: 1.5px solid var(--bd-border);
    border-radius: 8px;
    background: var(--bd-bg);
    font-family: var(--bd-font-sans);
    font-size: 14px;
    font-weight: 500;
    color: var(--bd-text-secondary);
    cursor: pointer;
    transition: all 0.15s;
}

.boarded-page-btn:hover,
.boarded-page-btn--active {
    background: var(--bd-primary);
    border-color: var(--bd-primary);
    color: #fff;
}

.boarded-page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ── Role detail page ────────────────────────────────────── */
.boarded-role-detail {
    max-width: 760px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

.boarded-role-detail__back {
    font-size: 14px;
    color: var(--bd-text-secondary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 32px;
}

.boarded-role-detail__back:hover { color: var(--bd-text); text-decoration: none; }

.boarded-role-detail__type {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--bd-primary);
    background: var(--bd-primary-bg);
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 16px;
}

.boarded-role-detail__title {
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--bd-text);
    margin: 0 0 12px;
    line-height: 1.2;
}

.boarded-role-detail__org {
    font-size: 18px;
    color: var(--bd-text-secondary);
    margin: 0 0 32px;
}

.boarded-role-detail__meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    padding: 20px 24px;
    background: var(--bd-bg-alt);
    border-radius: var(--bd-radius);
    border: 1px solid var(--bd-border);
}

.boarded-role-detail__meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.boarded-role-detail__meta-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--bd-text-muted);
}

.boarded-role-detail__meta-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--bd-text);
}

.boarded-role-detail__description {
    font-size: 16px;
    line-height: 1.75;
    color: var(--bd-text-secondary);
    margin-bottom: 48px;
}

.boarded-role-detail__description p {
    margin: 0 0 16px;
}

.boarded-role-detail__cta {
    background: var(--bd-bg-alt);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    border: 1px solid var(--bd-border);
}

.boarded-role-detail__cta h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px;
}

.boarded-role-detail__cta p {
    color: var(--bd-text-secondary);
    margin: 0 0 20px;
}

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
    background: #0C2B4F;
    color: rgba(255,255,255,0.7);
    padding: 64px 0 32px;
}

.site-footer__inner {
    max-width: var(--bd-max-w);
    margin: 0 auto;
    padding: 0 24px;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 48px;
}

.site-footer__brand {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    display: block;
    text-decoration: none;
}

.site-footer__tagline {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    line-height: 1.6;
    max-width: 220px;
}

.site-footer__col h4 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.4);
    margin: 0 0 16px;
}

.site-footer__col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.site-footer__col ul li a {
    font-size: 14px;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    transition: color 0.15s;
}

.site-footer__col ul li a:hover {
    color: #fff;
    text-decoration: none;
}

.site-footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.site-footer__copy {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}

/* ── Recent Roles Strip ──────────────────────────────────── */
.boarded-recent-roles__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.boarded-recent-roles__cta {
    text-align: center;
}

/* ── Logo strip ──────────────────────────────────────────── */
.boarded-org-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.boarded-org-strip__item {
    font-size: 14px;
    font-weight: 600;
    color: var(--bd-text-secondary);
    opacity: 0.7;
    transition: opacity 0.15s;
    text-align: center;
    max-width: 140px;
}

.boarded-org-strip__item:hover { opacity: 1; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
    .site-footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .site-nav { display: none; }
}

@media (max-width: 600px) {
    .site-footer__grid { grid-template-columns: 1fr; }
    .boarded-hero { padding: 64px 20px 56px; }
    .boarded-section { padding: 56px 0; }
    .boarded-role-detail { padding: 32px 16px 60px; }
    .boarded-stats-counter { gap: 32px; }
}

/* ── Mobile nav toggle ───────────────────────────────────── */
.site-header__mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--bd-text);
}

@media (max-width: 900px) {
    .site-header__mobile-toggle { display: flex; }
    .site-nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bd-bg);
        border-bottom: 1px solid var(--bd-border);
        padding: 16px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.12);
        z-index: 99;
    }
    .site-nav.open li a { padding: 10px 16px; border-radius: 8px; display: block; }
}

/* ── Elementor overrides ─────────────────────────────────── */
.elementor-section { position: relative; }
