/* Avenwell People — site-specific CSS layered over platform.css.
 * Brand: deep teal (#15706E) + white. The platform.css fallback chain is
 *   var(--site-*, var(--b-theme-*))
 * so setting --site-* here re-themes the shared chrome (header bar, buttons,
 * heading colours) without forking platform components. */

:root {
    --site-primary: #15706E;
    --site-primary-dark: #0F5654;
    --site-primary-soft: #E5F2F2;
    --site-primary-tint: #F5FAFA;
    --site-secondary: #FFFFFF;
    --site-header-bg: #FFFFFF;
    --site-text-primary: #15706E;
}

body {
    background: #FFFFFF;
}

/* Headings + Bootstrap text-primary use the brand teal — Blazorise's inline
 * <style> after HeadOutlet ships .text-primary with !important, so we need
 * higher specificity to win the cascade. */
body .text-primary,
body h1, body h2, body h3, body h4 {
    color: var(--site-primary) !important;
}

/* Top nav links — match the live design's teal-on-white. */
.navbar-light .navbar-nav .nav-link,
.nav-item a {
    color: var(--site-primary);
}

.navbar-light .navbar-nav .nav-link:hover,
.nav-item a:hover {
    color: var(--site-primary-dark);
}

/* Bootstrap colour overrides so .btn-primary and .text-bg-primary pick
 * up the brand teal everywhere they appear — including the bottom CTA
 * banner's teal background and the platform's primary buttons. */
body .btn-primary {
    background-color: var(--site-primary);
    border-color: var(--site-primary);
}

body .btn-primary:hover,
body .btn-primary:focus {
    background-color: var(--site-primary-dark);
    border-color: var(--site-primary-dark);
}

body .btn-outline-primary {
    color: var(--site-primary);
    border-color: var(--site-primary);
}

body .btn-outline-primary:hover {
    background-color: var(--site-primary);
    border-color: var(--site-primary);
    color: white;
}

/* ============================================================
 * Hero — soft tinted band with curved bottom corners; matches
 * the design's pastel-teal backdrop behind the headline + circle
 * ============================================================ */
.avenwell-hero-wrap {
    position: relative;
    background: linear-gradient(135deg, var(--site-primary-tint) 0%, var(--site-primary-soft) 100%);
    border-radius: 0 0 48px 48px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.avenwell-hero-wrap::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(21, 112, 110, 0.06);
    pointer-events: none;
}

.avenwell-hero {
    padding: 4rem 0 3rem;
}

.avenwell-hero h1 {
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.avenwell-hero p.lead {
    font-size: 1.125rem;
    color: #4a5a5a;
    margin-bottom: 2rem;
    max-width: 30rem;
}

.avenwell-hero .hero-image-circle {
    width: 100%;
    max-width: 460px;
    border-radius: 50%;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border: 8px solid #FFFFFF;
    box-shadow: 0 24px 60px rgba(21, 112, 110, 0.25);
}

.avenwell-hero .btn-pair {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.avenwell-hero .btn-pair .btn {
    border-radius: 999px;
    padding: 0.75rem 1.75rem;
    font-weight: 600;
}

/* ============================================================
 * Trust strip — five tiles with coloured icon backgrounds.
 * Sits below the hero on its own row, not inside the gradient.
 * ============================================================ */
.avenwell-trust {
    background: #FFFFFF;
    border: 1px solid var(--site-primary-soft);
    border-radius: 999px;
    padding: 0.75rem 1.5rem;
    margin: -2rem auto 3rem;
    max-width: 1100px;
    box-shadow: 0 8px 24px rgba(21, 112, 110, 0.08);
    position: relative;
    z-index: 2;
}

.avenwell-trust .trust-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    gap: 1rem;
}

.avenwell-trust .trust-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: #2a3a3a;
    font-weight: 500;
}

.avenwell-trust .trust-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--site-primary-soft);
    color: var(--site-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.avenwell-trust .trust-icon svg {
    width: 16px;
    height: 16px;
}

/* ============================================================
 * Feature tiles — larger 4-up row beneath the trust pill.
 * Horizontal layout: teal icon disc + stacked headline/body.
 * ============================================================ */
.avenwell-features {
    padding: 1rem 0 3rem;
}

.avenwell-features .feature-tile {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: #FFFFFF;
    border: 1px solid var(--site-primary-soft);
    border-radius: 1rem;
    padding: 1.25rem;
    height: 100%;
    box-shadow: 0 4px 12px rgba(21, 112, 110, 0.05);
}

.avenwell-features .feature-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--site-primary);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avenwell-features .feature-icon svg {
    width: 26px;
    height: 26px;
}

.avenwell-features .feature-body h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    line-height: 1.2;
}

.avenwell-features .feature-body p {
    font-size: 0.9rem;
    color: #4a5a5a;
    margin: 0;
}

/* ============================================================
 * Employer / Candidate split — two cards with soft-teal tinted
 * backgrounds and a teal icon disc in the top-left corner
 * ============================================================ */
.avenwell-split {
    padding: 3rem 0;
}

.avenwell-split .split-card {
    position: relative;
    background:
        radial-gradient(circle at 100% 0%, rgba(21, 112, 110, 0.08) 0%, transparent 60%),
        linear-gradient(135deg, var(--site-primary-tint) 0%, #FFFFFF 100%);
    border: 1px solid var(--site-primary-soft);
    border-radius: 1.5rem;
    padding: 2.5rem 2rem 2rem;
    height: 100%;
    box-shadow: 0 8px 24px rgba(21, 112, 110, 0.06);
}

.avenwell-split .split-card .split-icon {
    position: absolute;
    top: -24px;
    left: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--site-primary);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 14px rgba(21, 112, 110, 0.3);
}

.avenwell-split .split-card .split-icon svg {
    width: 26px;
    height: 26px;
}

.avenwell-split .split-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    margin-top: 1rem;
}

.avenwell-split .split-card p {
    color: #4a5a5a;
    margin-bottom: 1.5rem;
}

.avenwell-split .split-card .btn {
    border-radius: 999px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
}

/* ============================================================
 * Sectors we support — bordered tiles, icon-only image, label below
 * ============================================================ */
.avenwell-sectors {
    padding: 4rem 0;
}

.avenwell-sectors h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.avenwell-sectors .sector-tile {
    text-align: center;
    padding: 1.5rem 0.75rem;
    border: 1px solid var(--site-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;
}

.avenwell-sectors .sector-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(21, 112, 110, 0.12);
    border-color: var(--site-primary);
    text-decoration: none;
}

.avenwell-sectors .sector-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 0.75rem;
    border-radius: 50%;
    background: var(--site-primary-soft);
    color: var(--site-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.avenwell-sectors .sector-icon svg {
    width: 32px;
    height: 32px;
}

.avenwell-sectors .sector-label {
    font-weight: 600;
    color: var(--site-primary);
    font-size: 0.95rem;
}

/* ============================================================
 * Why choose Avenwell — 4-column strip with white-on-teal icons
 * ============================================================ */
.avenwell-why {
    background: var(--site-primary-tint);
    padding: 4rem 0;
}

.avenwell-why h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.avenwell-why .why-tile {
    text-align: center;
    padding: 1rem;
}

.avenwell-why .why-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem;
    background: var(--site-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(21, 112, 110, 0.25);
}

.avenwell-why .why-icon svg {
    width: 32px;
    height: 32px;
}

.avenwell-why .why-tile h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.avenwell-why .why-tile p {
    font-size: 0.9rem;
    color: #4a5a5a;
}

/* ============================================================
 * CTA banner at the bottom of the home page
 * ============================================================ */
.avenwell-cta {
    background: linear-gradient(135deg, var(--site-primary) 0%, var(--site-primary-dark) 100%);
    color: white;
    border-radius: 1.5rem;
    padding: 3rem 2rem;
    margin: 3rem 0;
    text-align: center;
    box-shadow: 0 12px 32px rgba(21, 112, 110, 0.2);
}

.avenwell-cta h2 {
    color: white !important;
    margin-bottom: 1rem;
}

.avenwell-cta p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
}

.avenwell-cta .btn {
    border-radius: 999px;
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    margin: 0.25rem;
}

.avenwell-cta .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.6);
}

/* ============================================================
 * Mobile tweaks — fix overlaps + give wrapped content room
 * to breathe at narrow widths
 * ============================================================ */
@media (max-width: 767px) {
    /* Hero band: trim padding, disable the offset-pill hover so the
     * trust card doesn't overlap the hero gradient awkwardly. */
    .avenwell-hero {
        padding: 2rem 0 1.5rem;
    }

    .avenwell-hero h1 {
        font-size: 2rem;
    }

    .avenwell-hero .hero-image-circle {
        max-width: 280px;
        margin-top: 1rem;
    }

    /* Trust pill: stack vertically as a 2-column grid so labels
     * don't wrap mid-word inside a tight horizontal pill. */
    .avenwell-trust {
        border-radius: 1.25rem;
        margin: 1rem 1rem 2.5rem;
        padding: 1rem;
    }

    .avenwell-trust .trust-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem 1rem;
        justify-content: stretch;
    }

    .avenwell-trust .trust-item {
        font-size: 0.8rem;
        align-items: flex-start;
    }

    /* Feature tiles: keep horizontal layout but tighten spacing. */
    .avenwell-features .feature-tile {
        padding: 1rem;
    }

    .avenwell-features .feature-icon {
        width: 44px;
        height: 44px;
    }

    .avenwell-features .feature-icon svg {
        width: 20px;
        height: 20px;
    }

    .avenwell-features .feature-body h4 {
        font-size: 0.95rem;
    }

    .avenwell-features .feature-body p {
        font-size: 0.8rem;
    }

    /* Employer/Candidate split: when cards stack vertically the
     * second card's protruding -24px icon disc overlaps the first
     * card's button. Add gap between stacked cards. */
    .avenwell-split .split-card {
        margin-top: 2rem;
    }

    .avenwell-split .split-card:first-child,
    .avenwell-split [class*="col-"]:first-child .split-card {
        margin-top: 0;
    }

    .avenwell-split .split-card .split-icon {
        width: 48px;
        height: 48px;
        top: -20px;
    }

    .avenwell-split .split-card .split-icon svg {
        width: 22px;
        height: 22px;
    }

    /* Sectors: tighter per-tile padding on mobile. */
    .avenwell-sectors {
        padding: 2.5rem 0;
    }

    .avenwell-sectors h2,
    .avenwell-why h2 {
        margin-bottom: 1.5rem;
    }

    .avenwell-sectors .sector-tile {
        padding: 1rem 0.5rem;
    }

    .avenwell-sectors .sector-icon {
        width: 52px;
        height: 52px;
    }

    .avenwell-sectors .sector-icon svg {
        width: 26px;
        height: 26px;
    }

    .avenwell-sectors .sector-label {
        font-size: 0.85rem;
    }

    /* Why-choose: tighter on mobile. */
    .avenwell-why {
        padding: 2.5rem 0;
    }

    .avenwell-why .why-icon {
        width: 60px;
        height: 60px;
    }

    .avenwell-why .why-icon svg {
        width: 26px;
        height: 26px;
    }

    /* CTA banner: smaller heading on narrow screens. */
    .avenwell-cta {
        padding: 2rem 1.25rem;
        margin: 2rem 0;
    }

    .avenwell-cta h2 {
        font-size: 1.4rem;
    }

    .avenwell-cta .btn {
        display: block;
        width: 100%;
        margin: 0.4rem 0;
    }
}

