/* =========================================================
   1. Cheviot Design Tokens
   These are intentionally global so future About / Contact /
   Header CSS can use the same palette and spacing values.
   ========================================================= */

:root {
    --cheviot-purple: #6B21A8;
    --cheviot-deep-purple: #4B147D;
    --cheviot-soft-purple: #EDE9F9;
    --cheviot-soft-purple-2: #F3EFFB;
    --cheviot-text: #241532;
    --cheviot-muted: #4F3F63;
    --cheviot-border: #DCD2EC;
    --cheviot-white: #ffffff;
    --cheviot-orange: #e85c35;

    --cheviot-shadow: 0 18px 45px rgba(75, 20, 125, 0.12);
    --cheviot-shadow-strong: 0 24px 54px rgba(75, 20, 125, 0.16);
    --cheviot-shadow-soft: 0 12px 32px rgba(75, 20, 125, 0.08);

    --cheviot-radius-sm: 6px;
    --cheviot-radius-md: 22px;
    --cheviot-radius-lg: 24px;
    --cheviot-radius-xl: 34px;
    --cheviot-radius-pill: 999px;
    --cheviot-radius-button: 6px;
    --cheviot-radius-card: 24px;
    --cheviot-radius-large: 32px;

    --cheviot-error: #b42318;
    --cheviot-success: #2f6f45;
}


/* =========================================================
   2. Homepage Base
   Scoped to the refreshed homepage wrapper.
   ========================================================= */

.cheviot-home {
    color: var(--cheviot-text);
    margin-top: -86px !important;
}

.cheviot-home,
.cheviot-home * {
    box-sizing: border-box;
}

.cheviot-home h1,
.cheviot-home h2,
.cheviot-home h3,
.cheviot-home p {
    margin-top: 0;
}

.cheviot-home h1,
.cheviot-home h2,
.cheviot-home h3 {
    color: var(--cheviot-text) !important;
}

.cheviot-home h1 {
    max-width: 720px;
    margin-bottom: 24px;
    font-size: clamp(42px, 4.2vw, 64px) !important;
    line-height: 1.08 !important;
    font-weight: 800;
    letter-spacing: -0.045em;
}

.cheviot-home h1 mark {
    background: transparent !important;
    color: var(--cheviot-purple) !important;
}

.cheviot-home h2 {
    margin-bottom: 18px;
    font-size: clamp(34px, 3.2vw, 50px);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.cheviot-home h3 {
    margin-bottom: 14px;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 800;
}

.cheviot-home p {
    margin-bottom: 18px;
    color: var(--cheviot-muted);
    font-size: 17px;
    line-height: 1.72;
}

.cheviot-home-lead {
    max-width: 680px;
    font-size: 19px !important;
}


/* =========================================================
   3. Shared Homepage Components
   ========================================================= */

.cheviot-home-kicker,
.cheviot-home-trust-row p,
.cheviot-home-proof-label {
    border-radius: 999px;
    background: rgba(155, 111, 214, 0.18) !important;
    color: var(--cheviot-purple) !important;
    font-weight: 800;
}

.cheviot-home-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 18px !important;
    padding: 8px 16px;
    font-size: 13px !important;
    line-height: 1.2 !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cheviot-home-proof-label {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 16px !important;
    padding: 7px 12px;
    font-size: 13px !important;
    line-height: 1.2 !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.cheviot-home-section {
    padding: 86px 20px;
}

.cheviot-home-section-intro {
    max-width: 780px;
    margin: 0 auto 42px;
}

.cheviot-home-section-heading-row {
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 42px;
}

.cheviot-home-button-row {
    display: flex;
    gap: 14px;
    margin-top: 28px;
}

.cheviot-home-button-row--center {
    justify-content: center;
}

.cheviot-home-button .wp-block-button__link {
    padding: 14px 30px;
    border-radius: var(--cheviot-radius-sm) !important;
    font-weight: 800;
    text-decoration: none;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease,
        color 0.18s ease;
}

.cheviot-home-button--primary .wp-block-button__link {
    background: var(--cheviot-purple) !important;
    color: var(--cheviot-white) !important;
    box-shadow: 0 10px 24px rgba(107, 33, 168, 0.22) !important;
}

.cheviot-home-button--secondary .wp-block-button__link {
    background: var(--cheviot-white) !important;
    color: var(--cheviot-purple) !important;
    border: 1px solid rgba(107, 33, 168, 0.28) !important;
}

.cheviot-home-button .wp-block-button__link:hover,
.cheviot-home-button .wp-block-button__link:focus {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(107, 33, 168, 0.22);
}

.cheviot-home-button--secondary .wp-block-button__link:hover,
.cheviot-home-button--secondary .wp-block-button__link:focus {
    background: var(--cheviot-purple) !important;
    color: var(--cheviot-white) !important;
    border-color: var(--cheviot-purple) !important;
}

.cheviot-home-hero-card,
.cheviot-home-service-card,
.cheviot-home-difference-card,
.cheviot-home-proof-card,
.cheviot-home-testimonial-card {
    border-color: var(--cheviot-border) !important;
    box-shadow: var(--cheviot-shadow) !important;
}

.cheviot-home-service-card,
.cheviot-home-difference-card,
.cheviot-home-proof-card,
.cheviot-home-testimonial-card {
    height: 100%;
    padding: 32px;
    border: 1px solid var(--cheviot-border);
    border-radius: var(--cheviot-radius-lg);
    background: var(--cheviot-white);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cheviot-home-service-card,
.cheviot-home-proof-card,
.cheviot-home-testimonial-card {
    display: flex !important;
    flex-direction: column !important;
}

.cheviot-home-service-card:hover,
.cheviot-home-difference-card:hover,
.cheviot-home-proof-card:hover,
.cheviot-home-testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--cheviot-shadow-strong) !important;
}

.cheviot-home-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 18px !important;
    border-radius: 999px;
    background: rgba(155, 111, 214, 0.16) !important;
    color: var(--cheviot-purple) !important;
    font-size: 24px !important;
    line-height: 1 !important;
    font-weight: 800;
}

.cheviot-home-card-link {
    margin-top: auto !important;
    margin-bottom: 0 !important;
}

.cheviot-home-card-link a,
.cheviot-home-proof-number,
.cheviot-home-testimonial-name {
    color: var(--cheviot-purple) !important;
}

.cheviot-home-card-link a {
    font-weight: 800;
    text-decoration: none;
}

.cheviot-home-card-link a:hover {
    text-decoration: underline;
}


/* =========================================================
   4. Hero
   ========================================================= */

.cheviot-home-hero {
    margin-top: 0 !important;
    padding: 122px 20px 88px !important;
    background: linear-gradient(180deg, var(--cheviot-soft-purple) 0%, var(--cheviot-white) 100%) !important;
}

.cheviot-home-hero__columns,
.cheviot-home-service-grid,
.cheviot-home-difference-layout,
.cheviot-home-proof-grid,
.cheviot-home-testimonial-grid {
    gap: 32px;
}

.cheviot-home-hero-card {
    position: relative;
    overflow: visible;
    padding: 34px;
    border-radius: var(--cheviot-radius-xl);
    background: var(--cheviot-white);
}

.cheviot-home-hero-card::after {
    content: "";
    position: absolute;
    top: -70px;
    right: -70px;
    width: 190px;
    height: 190px;
    border-radius: 999px;
    background: rgba(155, 111, 214, 0.18);
    pointer-events: none;
    z-index: 0;
}

.cheviot-home-hero-card > * {
    position: relative;
    z-index: 1;
}

.cheviot-home-hero-image {
    margin: 0;
}

.cheviot-home-hero-image img {
    display: block;
    width: 100%;
    border-radius: 26px;
}

.cheviot-home-hero-proof {
    max-width: 86%;
    margin: -18px auto 0;
    padding: 22px 24px;
    border-radius: var(--cheviot-radius-md);
    background: var(--cheviot-white);
    box-shadow: var(--cheviot-shadow);
    text-align: center;
}

.cheviot-home-proof-number {
    margin-bottom: 4px !important;
    font-size: 18px !important;
    font-weight: 800;
    line-height: 1.35 !important;
}

.cheviot-home-trust-row {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.cheviot-home-trust-row p {
    margin: 0;
    padding: 8px 12px;
    font-size: 13px;
    line-height: 1.2;
}


/* =========================================================
   5. Sections
   ========================================================= */

.cheviot-home-services-intro,
.cheviot-home-proof,
.cheviot-home-final-cta {
    background: var(--cheviot-white);
}

.cheviot-home-difference,
.cheviot-home-courses,
.cheviot-home-testimonials {
    background: var(--cheviot-soft-purple) !important;
}

.cheviot-home-service-grid,
.cheviot-home-proof-grid,
.cheviot-home-testimonial-grid {
    align-items: stretch !important;
}

.cheviot-home-service-grid--second-row {
    margin-top: 32px;
}

.cheviot-home-service-card--cta {
    background: linear-gradient(180deg, var(--cheviot-white) 0%, var(--cheviot-soft-purple-2) 100%);
}

.cheviot-home-difference-stack {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.cheviot-home-course-feed {
    padding-top: 10px;
}


/* =========================================================
   6. Testimonials
   ========================================================= */

.cheviot-home-testimonial-card {
    position: relative;
    overflow: hidden;
    padding: 44px 40px 34px;
}

.cheviot-home-testimonial-card::before {
    content: "“";
    position: absolute;
    top: 18px;
    left: 26px;
    z-index: 1;
    color: rgba(155, 111, 214, 0.20) !important;
    font-size: 78px;
    line-height: 1;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
    pointer-events: none;
}

.cheviot-home-testimonial-card > * {
    position: relative;
    z-index: 2;
}

.cheviot-home-testimonial-card .wp-block-separator {
    margin-top: auto;
    margin-bottom: 20px;
    border-color: rgba(75, 20, 125, 0.10);
}

.cheviot-home-testimonial-name {
    margin-bottom: 4px !important;
    font-size: 17px !important;
    font-weight: 800;
    line-height: 1.35 !important;
}

.cheviot-home-testimonial-role {
    margin-bottom: 12px !important;
    font-size: 15px !important;
    line-height: 1.45 !important;
}

.cheviot-home-stars {
    margin-bottom: 0 !important;
    color: var(--cheviot-orange) !important;
    font-size: 21px !important;
    letter-spacing: 2px;
    line-height: 1 !important;
}

.cheviot-home-final-cta {
    text-align: center;
}

.cheviot-home-final-cta p {
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}


/* =========================================================
   7. Responsive
   ========================================================= */

@media (max-width: 991px) {
    .cheviot-home {
        margin-top: -62px !important;
    }

    .cheviot-home-hero {
        padding-top: 105px !important;
    }

    .cheviot-home-hero-card,
    .cheviot-home-service-card,
    .cheviot-home-difference-card,
    .cheviot-home-proof-card,
    .cheviot-home-testimonial-card {
        padding: 28px;
    }

    .cheviot-home h1 {
        font-size: clamp(42px, 9vw, 62px) !important;
    }
}

@media (max-width: 781px) {
    .cheviot-home {
        margin-top: -42px !important;
    }

    .cheviot-home-section {
        padding: 62px 18px;
    }

    .cheviot-home-hero {
        padding-right: 18px;
        padding-left: 18px;
        padding-top: 96px !important;
    }

    .cheviot-home-hero-card {
        margin-top: 22px;
    }

    .cheviot-home-hero-proof {
        max-width: 94%;
    }

    .cheviot-home-button-row {
        flex-direction: column;
    }

    .cheviot-home-button-row,
    .cheviot-home-button-row .wp-block-button,
    .cheviot-home-button-row .wp-block-button__link {
        width: 100%;
    }

    .cheviot-home h2 {
        font-size: 34px;
    }

    .cheviot-home-section-heading-row {
        align-items: flex-start;
    }

    .cheviot-home-testimonial-card::before {
        top: 18px;
        left: 22px;
        font-size: 64px;
    }
}

/* =========================================================
   Cheviot HR – About Page Styles
   Add below the shared/root styles and Homepage styles in
   /wp-content/plugins/cheviot-refresh-styles/assets/css/cheviot-refresh.css
   ========================================================= */

/* ================================
   About page base
   ================================ */

.cheviot-about {
    color: var(--cheviot-text);
    margin-top: -86px !important;
}

.cheviot-about,
.cheviot-about * {
    box-sizing: border-box;
}

.cheviot-about h1,
.cheviot-about h2,
.cheviot-about h3,
.cheviot-about p {
    margin-top: 0;
}

.cheviot-about h1 {
    max-width: 650px;
    margin-bottom: 24px;
    color: var(--cheviot-text) !important;
    font-size: clamp(40px, 4vw, 60px) !important;
    line-height: 1.08 !important;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.cheviot-about h2 {
    margin-bottom: 18px;
    color: var(--cheviot-text) !important;
    font-size: clamp(34px, 3.2vw, 48px);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.cheviot-about h3 {
    margin-bottom: 14px;
    color: var(--cheviot-text) !important;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 800;
}

.cheviot-about p {
    margin-bottom: 18px;
    color: var(--cheviot-muted);
    font-size: 17px;
    line-height: 1.72;
}

/* ================================
   Shared About components
   ================================ */

.cheviot-section {
    padding: 82px 20px;
}

.cheviot-section-intro {
    max-width: 760px;
    margin: 0 auto 42px;
}

.cheviot-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 18px !important;
    padding: 8px 16px;
    border-radius: var(--cheviot-radius-pill, 999px);
    background: rgba(155, 111, 214, 0.18) !important;
    color: var(--cheviot-purple) !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cheviot-about .has-text-align-center.cheviot-kicker,
.cheviot-kicker--under-heading {
    display: flex !important;
    width: fit-content !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.cheviot-kicker--under-heading {
    margin-top: 0 !important;
    margin-bottom: 42px !important;
}

.cheviot-button-row {
    display: flex;
    gap: 14px;
    margin-top: 28px;
}

.cheviot-button-row--center {
    justify-content: center;
}

.cheviot-button .wp-block-button__link {
    padding: 14px 30px;
    border-radius: var(--cheviot-radius-button, 6px) !important;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.cheviot-button--primary .wp-block-button__link {
    background: var(--cheviot-purple) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 24px rgba(107, 33, 168, 0.22) !important;
}

.cheviot-button--secondary .wp-block-button__link {
    background: #ffffff !important;
    color: var(--cheviot-purple) !important;
    border: 1px solid rgba(107, 33, 168, 0.28) !important;
}

.cheviot-button .wp-block-button__link:hover,
.cheviot-button .wp-block-button__link:focus {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(107, 33, 168, 0.22);
}

.cheviot-button--secondary .wp-block-button__link:hover,
.cheviot-button--secondary .wp-block-button__link:focus {
    background: var(--cheviot-purple) !important;
    color: #ffffff !important;
    border-color: var(--cheviot-purple) !important;
}

/* ================================
   About hero
   ================================ */

.cheviot-about-hero {
    margin-top: 0 !important;
    padding: 176px 20px 80px !important;
    background: linear-gradient(180deg, var(--cheviot-soft-purple) 0%, #ffffff 100%) !important;
}

.cheviot-about-hero__columns,
.cheviot-card-grid,
.cheviot-difference-layout,
.cheviot-testimonial-grid {
    gap: 32px;
}

.cheviot-hero-card {
    position: relative;
    overflow: hidden;
    padding: 44px;
    border-radius: var(--cheviot-radius-large, 32px);
    background: var(--cheviot-white, #ffffff);
    box-shadow: var(--cheviot-shadow);
}

.cheviot-hero-card::after {
    content: "";
    position: absolute;
    top: -90px;
    right: -90px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(155, 111, 214, 0.16);
    pointer-events: none;
}

.cheviot-hero-card > * {
    position: relative;
    z-index: 1;
}

.cheviot-hero-mini-proof {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}

.cheviot-hero-mini-proof p,
.cheviot-credential-list p,
.cheviot-proof-label {
    background: rgba(155, 111, 214, 0.18) !important;
    color: var(--cheviot-purple) !important;
}

.cheviot-hero-mini-proof p,
.cheviot-credential-list p {
    margin: 0;
    padding: 8px 12px;
    border-radius: var(--cheviot-radius-pill, 999px);
    font-size: 13px;
    line-height: 1.2;
    font-weight: 800;
}

/* ================================
   Team section
   ================================ */

.cheviot-team-section,
.cheviot-values-section,
.cheviot-services-section,
.cheviot-proof-section,
.cheviot-final-cta {
    background: #ffffff;
}

.cheviot-team-section > h2,
.cheviot-proof-section > h2 {
    margin-bottom: 16px !important;
}

.cheviot-team-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px !important;
    margin-top: 8px !important;
}

.cheviot-team-grid > .wp-block-column {
    width: auto !important;
    flex-basis: auto !important;
}

.cheviot-team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100%;
    padding: 28px 24px !important;
    border: 1px solid var(--cheviot-border) !important;
    border-radius: var(--cheviot-radius-large, 30px);
    background: #ffffff;
    box-shadow: var(--cheviot-shadow) !important;
    text-align: center;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cheviot-team-photo {
    margin: 0 auto 22px;
}

.cheviot-team-photo img {
    width: 142px !important;
    height: 142px !important;
    object-fit: cover;
    border-radius: 999px;
    border: 6px solid #ffffff;
    box-shadow: 0 16px 36px rgba(75, 20, 125, 0.18);
}

.cheviot-team-content {
    max-width: 500px;
    padding-right: 0 !important;
}

.cheviot-team-card h3 {
    font-size: 22px !important;
}

.cheviot-team-card p {
    font-size: 15px !important;
    line-height: 1.65 !important;
}

.cheviot-role {
    margin-bottom: 14px !important;
    color: var(--cheviot-purple) !important;
    font-size: 15px !important;
    font-weight: 800;
    line-height: 1.35 !important;
}

.cheviot-credential-list {
    display: flex;
    justify-content: center;
    gap: 8px !important;
    margin: 22px 0;
}

.cheviot-credential-list p {
    padding: 7px 10px !important;
    font-size: 12px !important;
}

.cheviot-breathe-badge {
    width: 96px !important;
    margin: 18px auto 0 !important;
}

.cheviot-breathe-badge img {
    width: 96px !important;
    border-radius: 14px !important;
    box-shadow: 0 10px 24px rgba(75, 20, 125, 0.16) !important;
}

/* ================================
   Cards / values / proof / services
   ================================ */

.cheviot-card-grid {
    align-items: stretch !important;
}

.cheviot-card-grid > .wp-block-column {
    height: 100%;
}

.cheviot-value-card,
.cheviot-proof-card,
.cheviot-service-card,
.cheviot-difference-card {
    height: 100%;
    padding: 32px;
    border: 1px solid var(--cheviot-border) !important;
    border-radius: var(--cheviot-radius-card, 24px);
    background: #ffffff;
    box-shadow: var(--cheviot-shadow) !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cheviot-value-card,
.cheviot-proof-card,
.cheviot-service-card {
    display: flex !important;
    flex-direction: column !important;
}

.cheviot-team-card:hover,
.cheviot-value-card:hover,
.cheviot-proof-card:hover,
.cheviot-service-card:hover,
.cheviot-difference-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--cheviot-shadow-strong) !important;
}

.cheviot-values-section .cheviot-value-card {
    min-height: 390px !important;
}

.cheviot-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 18px !important;
    border-radius: var(--cheviot-radius-pill, 999px);
    background: rgba(155, 111, 214, 0.16) !important;
    color: var(--cheviot-purple) !important;
    font-size: 24px !important;
    line-height: 1 !important;
    font-weight: 800;
}

.cheviot-values-section .cheviot-value-card:nth-child(3) .cheviot-card-icon {
    font-size: 0 !important;
}

.cheviot-values-section .cheviot-value-card:nth-child(3) .cheviot-card-icon::before {
    content: "🤝";
    font-size: 25px !important;
    line-height: 1 !important;
}

.cheviot-proof-label {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 16px !important;
    padding: 7px 12px;
    border-radius: var(--cheviot-radius-pill, 999px);
    font-size: 13px !important;
    line-height: 1.2 !important;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.cheviot-card-link {
    margin-top: auto !important;
    margin-bottom: 0 !important;
}

.cheviot-card-link a {
    color: var(--cheviot-purple) !important;
    font-weight: 800;
    text-decoration: none;
}

.cheviot-card-link a:hover {
    text-decoration: underline;
}

/* ================================
   Difference and testimonials
   ================================ */

.cheviot-difference-section,
.cheviot-testimonials-section {
    background: var(--cheviot-soft-purple) !important;
}

.cheviot-difference-stack {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.cheviot-testimonials-section {
    position: relative;
}

.cheviot-testimonials-section h2 {
    margin-bottom: 46px;
}

.cheviot-testimonial-grid {
    align-items: stretch !important;
}

.cheviot-testimonial-card {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    min-height: 100%;
    padding: 46px 44px 38px;
    border: 1px solid var(--cheviot-border) !important;
    border-radius: var(--cheviot-radius-card, 24px);
    background: #ffffff;
    box-shadow: var(--cheviot-shadow) !important;
}

.cheviot-testimonial-card::before,
.cheviot-testimonial-card::after {
    position: absolute;
    z-index: 1;
    color: rgba(155, 111, 214, 0.20) !important;
    font-size: 82px;
    line-height: 1;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
    pointer-events: none;
}

.cheviot-testimonial-card::before {
    content: "“";
    top: 22px;
    left: 28px;
}

.cheviot-testimonial-card::after {
    content: "”";
    right: 38px;
    top: 50%;
}

.cheviot-testimonial-card > * {
    position: relative;
    z-index: 2;
}

.cheviot-testimonial-card .wp-block-separator {
    margin-top: auto;
    margin-bottom: 24px;
    border-color: rgba(75, 20, 125, 0.10);
}

.cheviot-testimonial-meta {
    align-items: center !important;
    gap: 18px;
}

.cheviot-testimonial-meta h3 {
    margin-bottom: 6px;
    font-size: 19px;
}

.cheviot-testimonial-meta p {
    margin-bottom: 0;
    font-size: 15px;
    line-height: 1.5;
}

.cheviot-stars {
    color: var(--cheviot-purple) !important;
    font-size: 22px !important;
    letter-spacing: 2px;
    line-height: 1 !important;
    white-space: nowrap;
}

.cheviot-final-cta {
    text-align: center;
}

.cheviot-final-cta p {
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

/* ================================
   Responsive
   ================================ */

@media (max-width: 1100px) {
    .cheviot-team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cheviot-team-photo img {
        width: 156px !important;
        height: 156px !important;
    }

    .cheviot-team-card p {
        font-size: 16px !important;
    }

    .cheviot-role {
        font-size: 16px !important;
    }
}

@media (max-width: 991px) {
    .cheviot-about {
        margin-top: -62px !important;
    }

    .cheviot-about-hero {
        padding-top: 130px !important;
    }

    .cheviot-hero-card,
    .cheviot-team-card,
    .cheviot-value-card,
    .cheviot-proof-card,
    .cheviot-service-card,
    .cheviot-difference-card,
    .cheviot-testimonial-card {
        padding: 28px;
    }

    .cheviot-about h1 {
        font-size: clamp(42px, 9vw, 62px) !important;
    }
}

@media (max-width: 781px) {
    .cheviot-about {
        margin-top: -42px !important;
    }

    .cheviot-section {
        padding: 62px 18px;
    }

    .cheviot-about-hero {
        padding-left: 18px;
        padding-right: 18px;
        padding-top: 118px !important;
    }

    .cheviot-hero-card {
        margin-top: 18px;
    }

    .cheviot-button-row {
        flex-direction: column;
    }

    .cheviot-button-row,
    .cheviot-button-row .wp-block-button,
    .cheviot-button-row .wp-block-button__link {
        width: 100%;
    }

    .cheviot-team-grid {
        grid-template-columns: 1fr;
    }

    .cheviot-team-card {
        padding: 28px !important;
    }

    .cheviot-team-photo img {
        width: 150px !important;
        height: 150px !important;
    }

    .cheviot-hero-mini-proof,
    .cheviot-credential-list {
        justify-content: center;
    }

    .cheviot-about h2 {
        font-size: 34px;
    }

    .cheviot-values-section .cheviot-value-card {
        min-height: 0 !important;
    }

    .cheviot-testimonial-card::before {
        top: 18px;
        left: 22px;
        font-size: 64px;
    }

    .cheviot-testimonial-card::after {
        right: 24px;
        top: 48%;
        font-size: 64px;
    }

    .cheviot-stars {
        margin-top: 12px;
        text-align: left !important;
    }
}

/* =========================================================
   Cheviot HR – Contact Form Styles
   Source: migrated from temporary Code Snippets PHP wrapper.
   Location: Cheviot HR Refresh Styles plugin.
   ========================================================= */

/* ================================
   Contact Form 7 wrapper
   ================================ */

.cheviot-cf7-form {
    width: 100%;
    max-width: 620px;
    margin: 0;
    padding: 20px 22px;
    border: 1px solid var(--cheviot-border);
    border-radius: var(--cheviot-radius-md, 22px);
    background: var(--cheviot-soft-purple-2, #F3EFFB);
    box-shadow: var(--cheviot-shadow-soft, 0 12px 32px rgba(75, 20, 125, 0.08));
    box-sizing: border-box;
}

.cheviot-cf7-form,
.cheviot-cf7-form * {
    box-sizing: border-box;
}

.cheviot-cf7-form p {
    margin: 0;
    padding: 0;
}

.cheviot-cf7-form br {
    display: none;
}

.cheviot-cf7-form .wpcf7-form-control-wrap {
    display: block;
}

/* ================================
   Layout
   ================================ */

.cheviot-cf7-form .cheviot-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 10px;
}

.cheviot-cf7-form .cheviot-form-row {
    margin-bottom: 10px;
}

.cheviot-cf7-form .cheviot-form-grid .cheviot-form-row {
    margin-bottom: 0;
}

/* ================================
   Labels and fields
   ================================ */

.cheviot-cf7-form label {
    display: block;
    margin: 0;
    color: var(--cheviot-text);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
}

.cheviot-cf7-form label span {
    display: block;
    margin-bottom: 5px;
}

.cheviot-cf7-form input[type="text"],
.cheviot-cf7-form input[type="email"],
.cheviot-cf7-form input[type="tel"],
.cheviot-cf7-form textarea {
    width: 100%;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid var(--cheviot-border);
    border-radius: var(--cheviot-radius-sm, 6px);
    background: var(--cheviot-white, #ffffff);
    color: var(--cheviot-text);
    font-size: 15px;
    line-height: 1.35;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.cheviot-cf7-form textarea {
    min-height: 70px;
    max-height: 110px;
    resize: vertical;
}

.cheviot-cf7-form input[type="text"]::placeholder,
.cheviot-cf7-form input[type="email"]::placeholder,
.cheviot-cf7-form input[type="tel"]::placeholder,
.cheviot-cf7-form textarea::placeholder {
    color: var(--cheviot-muted);
    opacity: 0.8;
}

.cheviot-cf7-form input[type="text"]:focus,
.cheviot-cf7-form input[type="email"]:focus,
.cheviot-cf7-form input[type="tel"]:focus,
.cheviot-cf7-form textarea:focus {
    outline: none;
    border-color: var(--cheviot-purple);
    background: var(--cheviot-white, #ffffff);
    box-shadow: 0 0 0 3px rgba(107, 33, 168, 0.18);
}

/* ================================
   Submit button
   ================================ */

.cheviot-cf7-form .cheviot-form-submit {
    margin-top: 6px;
}

.cheviot-cf7-form input[type="submit"],
.cheviot-cf7-form .wpcf7-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 24px;
    border: 1px solid var(--cheviot-purple);
    border-radius: var(--cheviot-radius-sm, 6px);
    background: var(--cheviot-purple);
    color: var(--cheviot-white, #ffffff);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.cheviot-cf7-form input[type="submit"]:hover,
.cheviot-cf7-form .wpcf7-submit:hover {
    border-color: var(--cheviot-deep-purple);
    background: var(--cheviot-deep-purple);
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(75, 20, 125, 0.16);
}

.cheviot-cf7-form input[type="submit"]:focus,
.cheviot-cf7-form .wpcf7-submit:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(107, 33, 168, 0.25);
}

.cheviot-cf7-form .wpcf7-spinner {
    margin-left: 10px;
}

/* ================================
   Validation and response messages
   ================================ */

.cheviot-cf7-form .wpcf7-not-valid {
    border-color: var(--cheviot-error, #b42318) !important;
}

.cheviot-cf7-form .wpcf7-not-valid-tip {
    margin-top: 5px;
    color: var(--cheviot-error, #b42318);
    font-size: 13px;
    font-weight: 500;
}

.cheviot-cf7-form .wpcf7-response-output {
    margin: 12px 0 0;
    padding: 10px 12px;
    border-radius: var(--cheviot-radius-sm, 6px);
    font-size: 14px;
    line-height: 1.4;
}

.cheviot-cf7-form form.sent .wpcf7-response-output {
    border: 1px solid rgba(47, 111, 69, 0.35);
    background: rgba(47, 111, 69, 0.08);
    color: var(--cheviot-success, #2f6f45);
}

.cheviot-cf7-form form.invalid .wpcf7-response-output,
.cheviot-cf7-form form.failed .wpcf7-response-output,
.cheviot-cf7-form form.aborted .wpcf7-response-output {
    border: 1px solid rgba(180, 35, 24, 0.35);
    background: rgba(180, 35, 24, 0.08);
    color: var(--cheviot-error, #b42318);
}

/* ================================
   Turnstile
   ================================ */

.cheviot-cf7-form .cf-turnstile,
.cheviot-cf7-form [class*="turnstile"] {
    margin: 10px 0 12px;
}

/* ================================
   Responsive
   ================================ */

@media (max-width: 767px) {
    .cheviot-cf7-form {
        max-width: 100%;
        padding: 18px;
        border-radius: var(--cheviot-radius-md, 22px);
    }

    .cheviot-cf7-form .cheviot-form-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .cheviot-cf7-form input[type="submit"],
    .cheviot-cf7-form .wpcf7-submit {
        width: 100%;
    }
}

/* =========================================================
   Cheviot HR Header
   Desktop CTA, phone icon, mobile menu and visual refinements.

   Keep this section conservative:
   - CSS styles the theme's existing header/dropdown behaviour.
   - JavaScript in cheviot-header.js only changes the CTA text/link and
     inserts the phone/mobile CTA elements.
   ========================================================= */

/* Hide original header button until JS has changed it */
body:not(.cheviot-header-cta-ready) .tg-header-buttons .tg-header-button--1 .tg-button {
    visibility: hidden;
}

/* ================================
   Top eLearning portal bar
   ================================ */

#tg-masthead .tg-header-top-row,
#tg-masthead .tg-top-row,
#tg-masthead .tg-header-builder .tg-header-top-row,
#tg-masthead .tg-header-builder .tg-top-row {
    min-height: 44px !important;
    height: 44px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    background: var(--cheviot-purple) !important;
}

#tg-masthead .tg-header-top-row .tg-container,
#tg-masthead .tg-top-row .tg-container,
#tg-masthead .tg-header-top-row .tg-row,
#tg-masthead .tg-top-row .tg-row,
#tg-masthead .tg-header-builder .tg-header-top-row .tg-container,
#tg-masthead .tg-header-builder .tg-top-row .tg-container {
    min-height: 44px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Cover the common inner row/column wrappers used by the header builder */
#tg-masthead .tg-header-top-row .tg-top-row,
#tg-masthead .tg-top-row .tg-top-row,
#tg-masthead .tg-header-top-row .tg-header-container,
#tg-masthead .tg-top-row .tg-header-container,
#tg-masthead .tg-header-top-row .tg-header-column,
#tg-masthead .tg-top-row .tg-header-column {
    width: 100%;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#tg-masthead .tg-header-top-row a,
#tg-masthead .tg-top-row a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;
    min-height: 30px !important;
    padding: 6px 14px !important;
    border: 1px solid rgba(255, 255, 255, 0.26) !important;
    border-radius: var(--cheviot-radius-sm) !important;
    background: rgba(255, 255, 255, 0.12) !important;
    color: var(--cheviot-white) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease;
}

#tg-masthead .tg-header-top-row a::before,
#tg-masthead .tg-top-row a::before {
    content: "↗";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px !important;
    height: 20px !important;
    border-radius: var(--cheviot-radius-sm);
    background: rgba(255, 255, 255, 0.16);
    color: var(--cheviot-white);
    font-size: 12px !important;
    line-height: 1;
}

#tg-masthead .tg-header-top-row a:hover,
#tg-masthead .tg-header-top-row a:focus,
#tg-masthead .tg-top-row a:hover,
#tg-masthead .tg-top-row a:focus {
    background: rgba(255, 255, 255, 0.20) !important;
    border-color: rgba(255, 255, 255, 0.38) !important;
    transform: translateY(-1px);
}

/* ================================
   Main header CTA and phone icon
   ================================ */

.tg-header-buttons {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

#tg-masthead .tg-header-buttons .tg-button,
#tg-masthead .tg-header-button .tg-button,
.tg-header-area .tg-header-buttons .tg-button,
.tg-header-area .tg-header-button .tg-button {
    padding: 13px 24px !important;
    border: 1px solid var(--cheviot-purple) !important;
    border-radius: var(--cheviot-radius-sm) !important;
    background: var(--cheviot-purple) !important;
    color: var(--cheviot-white) !important;
    box-shadow: 0 10px 24px rgba(107, 33, 168, 0.18);
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

#tg-masthead .tg-header-buttons .tg-button:hover,
#tg-masthead .tg-header-buttons .tg-button:focus,
#tg-masthead .tg-header-button .tg-button:hover,
#tg-masthead .tg-header-button .tg-button:focus,
.tg-header-area .tg-header-buttons .tg-button:hover,
.tg-header-area .tg-header-buttons .tg-button:focus,
.tg-header-area .tg-header-button .tg-button:hover,
.tg-header-area .tg-header-button .tg-button:focus {
    border-color: var(--cheviot-deep-purple) !important;
    background: var(--cheviot-deep-purple) !important;
    color: var(--cheviot-white) !important;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(75, 20, 125, 0.22);
}

/* Desktop phone icon inserted by cheviot-header.js */
.cheviot-header-phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    border: 1px solid rgba(107, 33, 168, 0.24) !important;
    border-radius: var(--cheviot-radius-pill) !important;
    background: rgba(155, 111, 214, 0.16) !important;
    color: var(--cheviot-purple) !important;
    text-decoration: none !important;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.cheviot-header-phone svg,
#mobile-navigation .cheviot-mobile-phone svg {
    display: block;
    width: 22px;
    height: 22px;
    color: currentColor;
    transform-origin: center;
}

.cheviot-header-phone:hover,
.cheviot-header-phone:focus {
    background: rgba(155, 111, 214, 0.24) !important;
    border-color: rgba(107, 33, 168, 0.42) !important;
    color: var(--cheviot-deep-purple) !important;
    text-decoration: none !important;
    transform: translateY(-1px);
    outline: none;
}

.cheviot-header-phone:hover svg,
.cheviot-header-phone:focus svg,
.cheviot-mobile-phone:hover svg,
.cheviot-mobile-phone:focus svg {
    animation: cheviot-phone-shake 0.35s ease-in-out;
}

@keyframes cheviot-phone-shake {
    0% { transform: rotate(0deg); }
    20% { transform: rotate(-14deg); }
    40% { transform: rotate(12deg); }
    60% { transform: rotate(-8deg); }
    80% { transform: rotate(6deg); }
    100% { transform: rotate(0deg); }
}

/* ================================
   Desktop nav visual polish
   ================================ */

@media (min-width: 992px) {
    /*
     * Do not force menu layout/gaps here. The eLearning theme controls
     * the header columns and dropdown mechanics.
     */
    #tg-masthead .tg-header-builder .menu > li > a,
    #tg-masthead .tg-main-nav .menu > li > a,
    #tg-masthead #site-navigation .menu > li > a,
    #tg-masthead .menu > li > a {
        position: relative;
        color: var(--cheviot-text) !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        line-height: 1.35 !important;
        text-decoration: none !important;
        transition:
            color 0.18s ease,
            background-size 0.22s ease;
    }

    /*
     * Underline uses background-image instead of ::before/::after.
     * This avoids clashes with the theme's dropdown arrows/pseudo elements.
     */
    #tg-masthead .tg-header-builder .menu > li > a,
    #tg-masthead .tg-main-nav .menu > li > a,
    #tg-masthead #site-navigation .menu > li > a,
    #tg-masthead .menu > li > a {
        background-image: linear-gradient(var(--cheviot-purple), var(--cheviot-purple)) !important;
        background-repeat: no-repeat !important;
        background-position: 0 calc(100% - 2px) !important;
        background-size: 0 2px !important;
    }

    #tg-masthead .tg-header-builder .menu > li:hover > a,
    #tg-masthead .tg-header-builder .menu > li:focus-within > a,
    #tg-masthead .tg-header-builder .menu > li.current-menu-item > a,
    #tg-masthead .tg-main-nav .menu > li:hover > a,
    #tg-masthead .tg-main-nav .menu > li:focus-within > a,
    #tg-masthead .tg-main-nav .menu > li.current-menu-item > a,
    #tg-masthead #site-navigation .menu > li:hover > a,
    #tg-masthead #site-navigation .menu > li:focus-within > a,
    #tg-masthead #site-navigation .menu > li.current-menu-item > a,
    #tg-masthead .menu > li:hover > a,
    #tg-masthead .menu > li:focus-within > a,
    #tg-masthead .menu > li.current-menu-item > a {
        color: var(--cheviot-purple) !important;
        background-size: 100% 2px !important;
    }

    /*
     * Dropdown visual styling only. Avoid overriding display, top, opacity
     * or visibility here, because the parent theme controls hover behaviour.
     */
    #tg-masthead .sub-menu {
        border: 1px solid var(--cheviot-border) !important;
        border-radius: 16px !important;
        background: var(--cheviot-white) !important;
        box-shadow: 0 18px 45px rgba(75, 20, 125, 0.14) !important;
        overflow: hidden;
    }

    #tg-masthead .sub-menu li,
    #tg-masthead .sub-menu .menu-item {
        border-color: rgba(75, 20, 125, 0.08) !important;
    }

    #tg-masthead .sub-menu li a,
    #tg-masthead .sub-menu .menu-item a {
        padding: 12px 16px !important;
        color: var(--cheviot-text) !important;
        font-size: 15px !important;
        line-height: 1.45 !important;
        font-weight: 600 !important;
        text-decoration: none !important;
        transition:
            background 0.18s ease,
            color 0.18s ease,
            transform 0.18s ease;
    }

    #tg-masthead .sub-menu li a:hover,
    #tg-masthead .sub-menu li a:focus,
    #tg-masthead .sub-menu .menu-item a:hover,
    #tg-masthead .sub-menu .menu-item a:focus {
        background: var(--cheviot-soft-purple-2) !important;
        color: var(--cheviot-purple) !important;
        transform: translateX(3px);
    }
}

/* ================================
   Mobile header/menu fixes
   ================================ */

@media (max-width: 991px) {
    /*
     * Do not show the desktop header button/phone inside the mobile header.
     * A cleaner CTA row is added inside the opened mobile menu instead.
     */
    .tg-header-buttons .tg-header-button--1,
    .tg-header-buttons .cheviot-header-phone {
        display: none !important;
    }

    /*
     * Make the invisible hamburger/toggle visible again,
     * without adding the extra circular background.
     */
    .tg-header-right-col .menu-toggle,
    .tg-header-right-col .tg-menu-toggle,
    .tg-header-right-col .tg-mobile-toggle,
    .tg-header-right-col .tg-mobile-menu-toggle,
    .tg-header-right-col .tg-icon-bars,
    .tg-header-right-col button[aria-controls="primary-menu"],
    .tg-header-right-col button[aria-controls="mobile-menu"] {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        color: var(--cheviot-purple) !important;
        cursor: pointer !important;
        font-size: 0 !important;
        line-height: 1 !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .tg-header-right-col .menu-toggle *,
    .tg-header-right-col .tg-menu-toggle *,
    .tg-header-right-col .tg-mobile-toggle *,
    .tg-header-right-col .tg-mobile-menu-toggle *,
    .tg-header-right-col button[aria-controls="primary-menu"] *,
    .tg-header-right-col button[aria-controls="mobile-menu"] * {
        display: none !important;
    }

    .tg-header-right-col .menu-toggle::before,
    .tg-header-right-col .tg-menu-toggle::before,
    .tg-header-right-col .tg-mobile-toggle::before,
    .tg-header-right-col .tg-mobile-menu-toggle::before,
    .tg-header-right-col button[aria-controls="primary-menu"]::before,
    .tg-header-right-col button[aria-controls="mobile-menu"]::before {
        content: "☰";
        display: block !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        color: var(--cheviot-purple) !important;
        font-size: 28px !important;
        font-weight: 700 !important;
        line-height: 1 !important;
    }

    .tg-header-right-col .menu-toggle::after,
    .tg-header-right-col .tg-menu-toggle::after,
    .tg-header-right-col .tg-mobile-toggle::after,
    .tg-header-right-col .tg-mobile-menu-toggle::after,
    .tg-header-right-col button[aria-controls="primary-menu"]::after,
    .tg-header-right-col button[aria-controls="mobile-menu"]::after {
        display: none !important;
        content: none !important;
    }

    #mobile-navigation .cheviot-mobile-cta-item {
        margin: 22px 0 0 !important;
        padding: 22px 0 0 !important;
        border-top: 1px solid rgba(75, 20, 125, 0.12);
    }

    #mobile-navigation .cheviot-mobile-cta-row {
        display: flex;
        align-items: center;
        gap: 12px;
        flex-wrap: nowrap;
    }

    #mobile-navigation .cheviot-mobile-get-in-touch {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        padding: 11px 22px !important;
        border: 1px solid var(--cheviot-purple) !important;
        border-radius: var(--cheviot-radius-sm) !important;
        background: var(--cheviot-purple) !important;
        color: var(--cheviot-white) !important;
        font-size: 16px;
        font-weight: 700;
        line-height: 1.2;
        text-decoration: none !important;
        transition:
            background-color 0.2s ease,
            border-color 0.2s ease,
            transform 0.2s ease,
            box-shadow 0.2s ease;
    }

    #mobile-navigation .cheviot-mobile-get-in-touch:hover,
    #mobile-navigation .cheviot-mobile-get-in-touch:focus {
        border-color: var(--cheviot-deep-purple) !important;
        background: var(--cheviot-deep-purple) !important;
        color: var(--cheviot-white) !important;
        text-decoration: none !important;
        transform: translateY(-1px);
        outline: none;
    }

    #mobile-navigation .cheviot-mobile-phone {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        min-width: 44px;
        padding: 0 !important;
        border: 1px solid rgba(107, 33, 168, 0.24) !important;
        border-radius: var(--cheviot-radius-pill) !important;
        background: rgba(155, 111, 214, 0.14) !important;
        color: var(--cheviot-purple) !important;
        line-height: 1 !important;
        text-decoration: none !important;
        transition:
            background-color 0.2s ease,
            border-color 0.2s ease,
            color 0.2s ease,
            transform 0.2s ease;
    }

    #mobile-navigation .cheviot-mobile-phone:hover,
    #mobile-navigation .cheviot-mobile-phone:focus {
        border-color: var(--cheviot-purple) !important;
        background: var(--cheviot-purple) !important;
        color: var(--cheviot-white) !important;
        text-decoration: none !important;
        transform: translateY(-1px);
        outline: none;
    }
}

/* =========================================================
   Desktop nav underline hover - exact primary menu targeting
   ========================================================= */

@media (min-width: 992px) {
    #tg-masthead #primary-menu > li > a {
        position: relative !important;
        display: inline-flex !important;
        align-items: center !important;
        color: var(--cheviot-text) !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        text-decoration: none !important;
        background-image: linear-gradient(var(--cheviot-purple), var(--cheviot-purple)) !important;
        background-repeat: no-repeat !important;
        background-size: 0% 2px !important;
        background-position: left calc(100% - 2px) !important;
        transition:
            color 0.18s ease,
            background-size 0.22s ease !important;
    }

    #tg-masthead #primary-menu > li:hover > a,
    #tg-masthead #primary-menu > li:focus-within > a,
    #tg-masthead #primary-menu > li.current-menu-item > a,
    #tg-masthead #primary-menu > li.current-menu-ancestor > a {
        color: var(--cheviot-purple) !important;
        background-size: 100% 2px !important;
    }
}