/* Worker Hub — public marketing site */

:root,
[data-theme="light"] {
    --wh-navy: #0f172a;
    --wh-navy-mid: #1e3a5f;
    --wh-blue: #2563eb;
    --wh-sky: #0ea5e9;
    --wh-slate-50: #f8fafc;
    --wh-slate-100: #f1f5f9;
    --wh-slate-200: #e2e8f0;
    --wh-slate-500: #64748b;
    --wh-slate-700: #334155;
    --wh-header-h: 4rem;
    --wh-body-bg: #f8fafc;
    --wh-body-text: #0f172a;
    --wh-surface: #ffffff;
    --wh-surface-muted: #f1f5f9;
    --wh-header-bg: rgba(255, 255, 255, 0.95);
    --wh-shadow: rgba(15, 23, 42, 0.08);
    --wh-page-hero-bg: linear-gradient(135deg, var(--wh-slate-100), #ffffff);
    --wh-contact-hero-bg: linear-gradient(135deg, #eff6ff 0%, #ffffff 50%, var(--wh-slate-50) 100%);
    --wh-reviews-bg: linear-gradient(180deg, var(--wh-slate-50) 0%, #ffffff 100%);
}

[data-theme="dark"] {
    --wh-slate-50: #0f172a;
    --wh-slate-100: #1e293b;
    --wh-slate-200: #334155;
    --wh-slate-500: #94a3b8;
    --wh-slate-700: #cbd5e1;
    --wh-body-bg: #0f172a;
    --wh-body-text: #f1f5f9;
    --wh-surface: #1e293b;
    --wh-surface-muted: #334155;
    --wh-header-bg: rgba(15, 23, 42, 0.95);
    --wh-shadow: rgba(0, 0, 0, 0.35);
    --wh-page-hero-bg: linear-gradient(135deg, #1e293b, #0f172a);
    --wh-contact-hero-bg: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #172554 100%);
    --wh-reviews-bg: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    color-scheme: dark;
}

.wh-public-body {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--wh-body-bg);
    color: var(--wh-body-text);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.wh-public-main {
    flex: 1 0 auto;
}

/* Header */
.wh-site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: var(--wh-header-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--wh-slate-200);
    box-shadow: 0 1px 3px var(--wh-shadow);
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.wh-site-header .navbar {
    min-height: var(--wh-header-h);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.wh-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--wh-body-text) !important;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.wh-brand:hover {
    color: var(--wh-blue) !important;
}

.wh-brand-icon {
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, var(--wh-navy-mid), var(--wh-blue));
    color: #fff;
    font-size: 1.1rem;
}

.wh-nav-link {
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--wh-slate-700) !important;
    padding: 0.5rem 0.85rem !important;
    border-radius: 0.375rem;
}

.wh-nav-link:hover,
.wh-nav-link.active {
    color: var(--wh-blue) !important;
    background: var(--wh-slate-100);
}

.wh-btn-portal {
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.45rem 1rem;
    border-radius: 0.5rem;
}

/* Theme toggle */
.wh-theme-toggle {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    flex-shrink: 0;
}

.wh-theme-toggle .wh-theme-icon {
    font-size: 1.1rem;
    line-height: 1;
}

[data-theme="light"] .wh-theme-toggle .wh-theme-icon--light,
[data-theme="dark"] .wh-theme-toggle .wh-theme-icon--dark {
    display: none;
}

[data-theme="light"] .wh-theme-toggle .wh-theme-icon--dark,
[data-theme="dark"] .wh-theme-toggle .wh-theme-icon--light {
    display: inline-block;
}

/* Hero */
.wh-hero {
    background: linear-gradient(160deg, var(--wh-navy) 0%, var(--wh-navy-mid) 45%, #1e40af 100%);
    color: #fff;
    padding: 4rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.wh-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 70% 20%, rgba(14, 165, 233, 0.2), transparent);
    pointer-events: none;
}

.wh-hero .container {
    position: relative;
    z-index: 1;
}

.wh-hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.wh-hero-lead {
    font-size: 1.125rem;
    opacity: 0.9;
    max-width: 36rem;
}

.wh-hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.35rem 0.85rem;
    border-radius: 2rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

/* Sections */
.wh-section {
    padding: 4rem 0;
}

.wh-section-alt {
    background: var(--wh-surface);
    border-top: 1px solid var(--wh-slate-200);
    border-bottom: 1px solid var(--wh-slate-200);
}

.wh-section-title {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.wh-section-subtitle {
    color: var(--wh-slate-500);
    max-width: 40rem;
    margin-bottom: 2.5rem;
}

/* Feature cards */
.wh-feature-card {
    height: 100%;
    border: 1px solid var(--wh-slate-200);
    border-radius: 0.75rem;
    padding: 1.5rem;
    background: var(--wh-surface);
    transition: box-shadow 0.2s, transform 0.2s, background-color 0.2s ease;
}

@media (hover: hover) {
    .wh-feature-card:hover {
        box-shadow: 0 12px 32px var(--wh-shadow);
        transform: translateY(-2px);
    }
}

.wh-feature-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.wh-feature-icon--blue { background: #dbeafe; color: #1d4ed8; }
.wh-feature-icon--green { background: #dcfce7; color: #15803d; }
.wh-feature-icon--amber { background: #fef3c7; color: #b45309; }
.wh-feature-icon--violet { background: #ede9fe; color: #6d28d9; }

/* Portal cards */
.wh-portal-card {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--wh-shadow);
    height: 100%;
    background: var(--wh-surface);
}

.wh-portal-card .card-body {
    padding: 2rem;
}

/* Content pages */
.wh-page-hero {
    background: var(--wh-page-hero-bg);
    border-bottom: 1px solid var(--wh-slate-200);
    padding: 2.5rem 0;
}

.wh-page-hero h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
}

.wh-prose {
    max-width: 48rem;
    line-height: 1.7;
    color: var(--wh-slate-700);
}

.wh-prose h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--wh-body-text);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.wh-prose ul {
    padding-left: 1.25rem;
}

.wh-contact-card {
    border: 1px solid var(--wh-slate-200);
    border-radius: 0.75rem;
    padding: 1.5rem;
    background: var(--wh-surface);
}

/* Contact page */
.wh-contact-hero {
    background: var(--wh-contact-hero-bg);
}

.wh-contact-info-card {
    border: 1px solid var(--wh-slate-200);
    border-radius: 0.75rem;
    padding: 1.5rem;
    background: var(--wh-surface);
    box-shadow: 0 2px 8px var(--wh-shadow);
    transition: box-shadow 0.2s, transform 0.2s;
}

@media (hover: hover) {
    .wh-contact-info-card:hover {
        box-shadow: 0 8px 24px var(--wh-shadow);
        transform: translateY(-2px);
    }
}

.wh-contact-info-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1rem;
    color: #fff;
}

.wh-contact-info-icon--location { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.wh-contact-info-icon--phone { background: linear-gradient(135deg, #059669, #047857); }
.wh-contact-info-icon--email { background: linear-gradient(135deg, #7c3aed, #6d28d9); }
.wh-contact-info-icon--hours { background: linear-gradient(135deg, #d97706, #b45309); }

.wh-contact-form-card,
.wh-contact-map-card {
    border: 1px solid var(--wh-slate-200);
    border-radius: 0.75rem;
    padding: 1.75rem;
    background: var(--wh-surface);
    box-shadow: 0 4px 16px var(--wh-shadow);
}

.wh-contact-map-wrap {
    position: relative;
    border-radius: 0.65rem;
    overflow: hidden;
    border: 1px solid var(--wh-slate-200);
    background: var(--wh-slate-100);
    min-height: 320px;
}

.wh-contact-map-wrap iframe {
    display: block;
    width: 100%;
    height: 320px;
    border: 0;
}

@media (min-width: 992px) {
    .wh-contact-map-wrap iframe {
        min-height: 380px;
        height: 380px;
    }
}

/* Homepage reviews */
.wh-reviews-section {
    background: var(--wh-reviews-bg);
}

.wh-review-card {
    border: 1px solid var(--wh-slate-200);
    border-radius: 0.75rem;
    padding: 1.75rem;
    background: var(--wh-surface);
    box-shadow: 0 4px 16px var(--wh-shadow);
}

.wh-review-stars {
    color: #f59e0b;
    font-size: 1rem;
    letter-spacing: 0.05em;
}

.wh-review-quote {
    font-size: 0.975rem;
    line-height: 1.65;
    color: var(--wh-slate-700);
    margin: 0;
    font-style: normal;
}

.wh-review-author {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin: 0;
}

.wh-review-avatar {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Footer */
.wh-site-footer {
    flex-shrink: 0;
    background: var(--wh-navy);
    color: rgba(255, 255, 255, 0.85);
    padding: 3rem 0 1.5rem;
    margin-top: auto;
}

.wh-footer-brand {
    font-weight: 700;
    font-size: 1.125rem;
    color: #fff;
    margin-bottom: 0.75rem;
}

.wh-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wh-footer-links li {
    margin-bottom: 0.5rem;
}

.wh-footer-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.9375rem;
}

.wh-footer-links a:hover {
    color: #fff;
}

.wh-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 2rem;
    padding-top: 1.25rem;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 991.98px) {
    .wh-hero {
        padding: 2.5rem 0 3rem;
    }

    .wh-section {
        padding: 2.5rem 0;
    }

    .wh-site-header .navbar-collapse {
        padding: 1rem 0;
        border-top: 1px solid var(--wh-slate-200);
        margin-top: 0.5rem;
    }

    .wh-header-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
        padding-top: 0.75rem;
    }

    .wh-header-actions .btn {
        width: 100%;
    }

    .wh-theme-toggle {
        width: 100%;
    }
}

[data-theme="dark"] .wh-feature-icon--blue { background: #1e3a8a; color: #93c5fd; }
[data-theme="dark"] .wh-feature-icon--green { background: #14532d; color: #86efac; }
[data-theme="dark"] .wh-feature-icon--amber { background: #78350f; color: #fcd34d; }
[data-theme="dark"] .wh-feature-icon--violet { background: #4c1d95; color: #c4b5fd; }
