/* Dental Staff (SiteID 33) — site-wide CSS layered over platform.css.
 *
 * Loaded automatically by App.razor as /sites/dentalstaff/site.css, so these
 * rules theme every page (header, footer, buttons) — not just the home page.
 *
 * Brand: sky-blue primary (#0EA5E9) + electric-cyan secondary (#38BDF8) on a
 * soft-slate page background (#F4F6F8), slate text (#1E293B), with a premium
 * purple (#7C3AED) reserved for featured/urgent accents. The platform.css
 * fallback chain is  var(--site-*, var(--b-theme-*))  so setting --site-* here
 * re-themes shared chrome without forking platform components.
 */

:root {
    --ds-primary: #0EA5E9;        /* sky — links, nav, headings */
    --ds-primary-dark: #0284C7;   /* hover / pressed */
    --ds-primary-soft: #E0F2FE;   /* tinted fills, borders */
    --ds-primary-tint: #F0F9FF;   /* very light section wash */
    --ds-secondary: #38BDF8;      /* cyan — primary Apply / Post Job buttons */
    --ds-secondary-dark: #0EA5E9;
    --ds-accent: #7C3AED;         /* purple — featured / urgent */
    --ds-slate: #1E293B;          /* body text / header wordmark */
    --ds-bg: #F4F6F8;             /* page background */

    /* Hooks consumed by platform.css shared chrome.
     * NOTE: --site-header-bg is overloaded — platform.css uses it for the
     * .header-bar page-title band (which renders WHITE text, so it needs a
     * DARK background). Do NOT set it to white: that makes every /results,
     * /jobs etc. page-title bar white-on-white. (Avenwell sets it white but
     * only loads its CSS on the home page, so it never hits .header-bar; our
     * site.css is site-wide.) We give it a dark sky-blue and theme the top
     * navbar white explicitly below instead. */
    --site-primary: var(--ds-primary);
    --site-secondary: var(--ds-secondary);
    --site-header-bg: var(--ds-primary);
    --site-footer-bg: var(--ds-slate);
    --site-text-primary: var(--ds-primary);
}

body {
    background: var(--ds-bg);
    color: var(--ds-slate);
}

/* Top nav (Header.razor's .site-header / Blazorise Bar) stays white — themed
 * directly here rather than via --site-header-bg (which drives .header-bar). */
.site-header,
.site-header .navbar,
.site-header .b-bar {
    background-color: #FFFFFF !important;
}

/* .header-bar is the page-title band on /results, /jobs etc. It renders white
 * text, so force a dark brand background (mirrors HealthJobs4u's fix). Its
 * platform default is var(--site-header-bg, --b-theme-secondary) !important,
 * so we need !important + our own dark value to win. */
.header-bar {
    background-color: var(--ds-primary) !important;
}

/* Headings + Bootstrap .text-primary use the brand sky-blue. Blazorise ships
 * .text-primary with an inline !important <style> after HeadOutlet, so we need
 * higher specificity (body …) to win the cascade. */
body .text-primary,
body h1, body h2, body h3, body h4 {
    color: var(--ds-primary) !important;
}

/* Top nav links — sky-blue on white. */
.navbar-light .navbar-nav .nav-link,
.nav-item a {
    color: var(--ds-primary);
}

.navbar-light .navbar-nav .nav-link:hover,
.nav-item a:hover {
    color: var(--ds-primary-dark);
}

/* ------------------------------------------------------------------
 * Buttons. Two clearly-distinct fills, both with WHITE text for a
 * consistent look everywhere (previously .btn-primary used dark text on
 * light cyan, which read as black on e.g. the Contact Us "Get in Touch"
 * button). Primary = deeper blue (the main CTA), Secondary = brighter
 * cyan — a clear light/dark split so the two don't blur together.
 * ------------------------------------------------------------------ */
body .btn-primary {
    background-color: var(--ds-primary-dark);   /* #0284C7 deep sky */
    border-color: var(--ds-primary-dark);
    color: #FFFFFF;
    font-weight: 600;
}

body .btn-primary:hover,
body .btn-primary:focus {
    background-color: #036aa0;                   /* one step darker */
    border-color: #036aa0;
    color: #FFFFFF;
}

/* .btn-secondary is used by the Header's Post Job button (Color.Secondary). */
body .btn-secondary {
    background-color: var(--ds-secondary);       /* #38BDF8 cyan */
    border-color: var(--ds-secondary);
    color: #FFFFFF;
    font-weight: 600;
}

body .btn-secondary:hover,
body .btn-secondary:focus {
    background-color: var(--ds-secondary-dark);  /* #0EA5E9 */
    border-color: var(--ds-secondary-dark);
    color: #FFFFFF;
}

body .btn-outline-primary {
    color: var(--ds-primary-dark);
    border-color: var(--ds-primary-dark);
}

body .btn-outline-primary:hover {
    background-color: var(--ds-primary-dark);
    border-color: var(--ds-primary-dark);
    color: #FFFFFF;
}

/* ============================================================
 * Search hero — the shared MainSearch widget renders white text
 * (strapline, site name, "Search N Jobs") on the assumption it
 * sits on a dark photo hero. Dental Staff has no hero image, so
 * we give it a dark sky→slate gradient band here; without this the
 * white text lands on the light page background and is invisible.
 * ============================================================ */
.ds-search-hero {
    background: linear-gradient(135deg, var(--ds-primary) 0%, var(--ds-slate) 100%);
    padding: 2.5rem 0 3rem;
}

/* The MainSearch markup: .hero-container wraps everything, and the
 * form panel is .form-search.bg-black-transparent — whose background
 * is var(--b-theme-secondary) (cyan on this site, too light for white
 * text). Override both so the panel reads as a translucent dark card. */
.ds-search-hero .hero-container {
    background-image: none;
}

.ds-search-hero .form-search.bg-black-transparent {
    background: rgba(15, 23, 42, 0.55) !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1rem;
}

/* Field labels + inputs inside the dark search card. */
.ds-search-hero .form-search label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.ds-search-hero .hero-text {
    margin-bottom: 0.5rem;
}

/* Strapline heading sits on the sky gradient — force white for contrast
 * (it's an h3 with TextColor.White, but our body h1-h4 primary rule would
 * otherwise recolour it sky-blue on sky). */
.ds-search-hero .hero-text h1,
.ds-search-hero .hero-text h2,
.ds-search-hero .hero-text h3 {
    color: #FFFFFF !important;
}

/* Same guard for the site-name / job-count headings inside the dark card. */
.ds-search-hero .form-search h1,
.ds-search-hero .form-search h2 {
    color: #FFFFFF !important;
}

/* The Find Jobs button should use the brand cyan even here (it's a
 * .btn-primary, already themed globally), but ensure it stays legible
 * on the dark card. */
.ds-search-hero .search-cta .btn {
    font-weight: 600;
}

/* ============================================================
 * Hero — soft sky-tinted band with curved bottom corners.
 * ============================================================ */
.ds-hero-wrap {
    position: relative;
    background: linear-gradient(135deg, var(--ds-primary-tint) 0%, var(--ds-primary-soft) 100%);
    border-radius: 0 0 48px 48px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.ds-hero-wrap::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(14, 165, 233, 0.08);
    pointer-events: none;
}

.ds-hero {
    padding: 4rem 0 3rem;
}

.ds-hero h1 {
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.ds-hero p.lead {
    font-size: 1.125rem;
    color: #475569;
    margin-bottom: 2rem;
    max-width: 32rem;
}

.ds-hero .btn-pair {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.ds-hero .btn-pair .btn {
    border-radius: 999px;
    padding: 0.75rem 1.75rem;
    font-weight: 600;
}

/* Hero visual — the brand icon tile on a soft glow, keeps the page
 * asset-light while staying unmistakably on-brand. */
.ds-hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.ds-hero-visual img {
    width: 100%;
    max-width: 340px;
    border-radius: 32px;
    box-shadow: 0 24px 60px rgba(14, 165, 233, 0.25);
}

/* ============================================================
 * Trust strip — five proof-points in a rounded white pill.
 * ============================================================ */
.ds-trust {
    background: #FFFFFF;
    border: 1px solid var(--ds-primary-soft);
    border-radius: 999px;
    padding: 0.75rem 1.5rem;
    margin: -2rem auto 3rem;
    max-width: 1100px;
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.08);
    position: relative;
    z-index: 2;
}

.ds-trust .trust-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    gap: 1rem;
}

.ds-trust .trust-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: var(--ds-slate);
    font-weight: 500;
}

.ds-trust .trust-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--ds-primary-soft);
    color: var(--ds-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ds-trust .trust-icon svg {
    width: 16px;
    height: 16px;
}

/* ============================================================
 * Sectors we recruit — bordered tiles, icon disc + label.
 * ============================================================ */
.ds-sectors {
    padding: 4rem 0;
}

.ds-sectors h2 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.ds-sectors .section-sub {
    text-align: center;
    color: #475569;
    margin-bottom: 3rem;
}

.ds-sectors .sector-tile {
    text-align: center;
    padding: 1.75rem 0.75rem;
    border: 1px solid var(--ds-primary-soft);
    border-radius: 1rem;
    background: #FFFFFF;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    height: 100%;
    text-decoration: none;
    display: block;
}

.ds-sectors .sector-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(14, 165, 233, 0.14);
    border-color: var(--ds-primary);
    text-decoration: none;
}

.ds-sectors .sector-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 0.75rem;
    border-radius: 50%;
    background: var(--ds-primary-soft);
    color: var(--ds-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ds-sectors .sector-icon svg {
    width: 32px;
    height: 32px;
}

.ds-sectors .sector-label {
    font-weight: 600;
    color: var(--ds-primary);
    font-size: 0.95rem;
}

/* ============================================================
 * Why choose Dental Staff — 4-up strip, white-on-sky icons.
 * ============================================================ */
.ds-why {
    background: var(--ds-primary-tint);
    padding: 4rem 0;
}

.ds-why h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.ds-why .why-tile {
    text-align: center;
    padding: 1rem;
}

.ds-why .why-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem;
    background: var(--ds-primary);
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(14, 165, 233, 0.25);
}

.ds-why .why-icon svg {
    width: 32px;
    height: 32px;
}

.ds-why .why-tile h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.ds-why .why-tile p {
    font-size: 0.9rem;
    color: #475569;
}

/* ============================================================
 * Bottom CTA banner.
 * ============================================================ */
.ds-cta {
    background: linear-gradient(135deg, var(--ds-primary) 0%, var(--ds-accent) 100%);
    color: #FFFFFF;
    border-radius: 1.5rem;
    padding: 3rem 2rem;
    margin: 3rem 0;
    text-align: center;
    box-shadow: 0 12px 32px rgba(14, 165, 233, 0.2);
}

.ds-cta h2 {
    color: #FFFFFF !important;
    margin-bottom: 1rem;
}

.ds-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.ds-cta .btn {
    border-radius: 999px;
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    margin: 0.25rem;
}

.ds-cta .btn-light {
    background: #FFFFFF;
    color: var(--ds-primary);
    border-color: #FFFFFF;
}

.ds-cta .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.7);
    color: #FFFFFF;
}

/* ============================================================
 * Mobile — reflow the hero, trust pill, sectors & CTA at ≤767px.
 * Mobile-responsive is a hard platform requirement.
 * ============================================================ */
@media (max-width: 767px) {
    .ds-hero {
        padding: 2rem 0 1.5rem;
    }

    .ds-hero h1 {
        font-size: 2rem;
    }

    .ds-hero-visual img {
        max-width: 220px;
        margin-top: 1rem;
    }

    /* Trust pill: stack as a 2-col grid so labels don't wrap mid-word. */
    .ds-trust {
        border-radius: 1.25rem;
        margin: 1rem 1rem 2.5rem;
        padding: 1rem;
    }

    .ds-trust .trust-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem 1rem;
        justify-content: stretch;
    }

    .ds-trust .trust-item {
        font-size: 0.8rem;
        align-items: flex-start;
    }

    .ds-sectors {
        padding: 2.5rem 0;
    }

    .ds-sectors h2,
    .ds-why h2 {
        margin-bottom: 1.5rem;
    }

    .ds-sectors .sector-tile {
        padding: 1.25rem 0.5rem;
    }

    .ds-sectors .sector-icon {
        width: 52px;
        height: 52px;
    }

    .ds-sectors .sector-icon svg {
        width: 26px;
        height: 26px;
    }

    .ds-why {
        padding: 2.5rem 0;
    }

    .ds-why .why-icon {
        width: 60px;
        height: 60px;
    }

    .ds-why .why-icon svg {
        width: 26px;
        height: 26px;
    }

    .ds-cta {
        padding: 2rem 1.25rem;
        margin: 2rem 0;
    }

    .ds-cta h2 {
        font-size: 1.4rem;
    }

    .ds-cta .btn {
        display: block;
        width: 100%;
        margin: 0.4rem 0;
    }
}
