/*
Theme Name: Tessell Health
Template: twentytwentyfive
Version: 1.0
*/

/*
 * Tessell Health website
 * Custom child theme for Twenty Twenty-Five
 */

:root {
    --th-green: #4a8522;
    --th-green-dark: #447a20;
    --th-ink: #252525;
    --th-grey: #525252;
    --th-pale-green: #edf5e8;
    --th-neutral-green: #f7f9f6;
    --th-border: #d9e2d4;
    --th-white: #ffffff;

    --th-wide: 1200px;
    --th-content: 800px;
}

/* =========================================================
   Tessell Health global baseline
   ========================================================= */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--th-grey);
    background: var(--th-white);
    font-family:
        Manrope,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Helvetica,
        Arial,
        sans-serif;
    font-size: 18px;
    line-height: 1.55;
}

img {
    max-width: 100%;
    height: auto;
}

/* Basic heading hierarchy */
h1 {
    color: var(--th-ink);
    font-size: 56px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

h2 {
    color: var(--th-ink);
    font-size: 36px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h3 {
    color: var(--th-ink);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

/* Standard Tessell Health page widths */
.th-wide {
    width: calc(100% - 64px);
    max-width: var(--th-wide);
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.th-content {
    width: calc(100% - 64px);
    max-width: var(--th-content);
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

/* Standard section spacing */
.th-section {
    padding-top: 72px;
    padding-bottom: 72px;
}

/* Small uppercase section label */
.th-eyebrow {
    margin: 0 0 16px;
    color: var(--th-green);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}


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

@media (max-width: 650px) {

    body {
        font-size: 17px;
    }

    h1 {
        font-size: 40px;
    }

    h2 {
        font-size: 32px;
    }

    h3 {
        font-size: 22px;
    }

    .th-wide,
    .th-content {
        width: calc(100% - 40px);
    }

    .th-section {
        padding-top: 48px;
        padding-bottom: 48px;
    }
}

/* =========================================================
   Tessell Health header
   ========================================================= */

.th-site-header {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;

    background: var(--th-white);
    border-bottom: 1px solid #e9ece7;
}

.th-header-inner {
    width: calc(100% - 64px) !important;
    max-width: var(--th-wide) !important;

    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 !important;

    box-sizing: border-box;
}

.th-header-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;

    width: 100% !important;
    max-width: none !important;

    min-height: 94px;

    margin: 0 !important;
    padding: 0 !important;

    gap: 40px !important;
}

/* Logo */
.th-header-row .wp-block-site-logo {
    margin: 0 !important;
    flex: 0 0 auto;
}

.th-header-row .wp-block-site-logo img {
    display: block;

    width: auto;
    max-width: 230px;
    max-height: 66px;

    object-fit: contain;
}

/* Main navigation */
.th-main-nav {
    margin: 0 !important;
    flex: 0 0 auto;
}

.th-main-nav .wp-block-navigation__container {
    gap: 34px !important;
}

.th-main-nav .wp-block-navigation-item {
    margin: 0 !important;
}

.th-main-nav .wp-block-navigation-item__content {
    padding: 10px 0 !important;

    color: var(--th-ink);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;

    text-decoration: none;
}

.th-main-nav .wp-block-navigation-item__content:hover,
.th-main-nav .wp-block-navigation-item__content:focus {
    color: var(--th-green);
}

/* Current page */
.th-main-nav .current-menu-item > .wp-block-navigation-item__content,
.th-main-nav .current-menu-ancestor > .wp-block-navigation-item__content {
    color: var(--th-green);
}


/* Tablet */
@media (max-width: 900px) {

    .th-header-row {
        min-height: 86px;
        gap: 28px !important;
    }

    .th-header-row .wp-block-site-logo img {
        max-width: 205px;
        max-height: 60px;
    }

    .th-main-nav .wp-block-navigation__container {
        gap: 24px !important;
    }
}


/* Mobile */
@media (max-width: 650px) {

    .th-header-inner {
        width: calc(100% - 40px) !important;
    }

    .th-header-row {
        min-height: 78px;
        gap: 18px !important;
    }

    .th-header-row .wp-block-site-logo img {
        max-width: 170px;
        max-height: 54px;
    }
}

/* =========================================================
   Tessell Health footer
   ========================================================= */

.th-site-footer {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    background: #263126;
    color: #ffffff;
}

.th-footer-inner {
    width: calc(100% - 64px) !important;
    max-width: var(--th-wide) !important;

    margin-left: auto !important;
    margin-right: auto !important;

    padding: 58px 0 28px !important;

    box-sizing: border-box;
}

/* Three main footer columns */
.th-footer-columns {
    display: grid !important;
    grid-template-columns: 1.6fr 1fr 1.2fr !important;
    gap: 64px !important;

    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;
}

/* Override Twenty Twenty-Five Group constraints */
.th-footer-columns > .wp-block-group {
    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;
}

.th-footer-columns > .wp-block-group > * {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Logo */
.th-footer-brand .wp-block-site-logo {
    margin: 0 0 20px !important;
}

.th-footer-brand .wp-block-site-logo img {
    display: block;

    width: auto;
    max-width: 210px;
    max-height: 62px;

    object-fit: contain;
}

/* Brand text */
.th-footer-brand p {
    max-width: 360px;

    margin: 0 0 12px !important;

    color: #e5ebe2;
    font-size: 15px;
    line-height: 1.55;
}

.th-footer-brand a {
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
}

.th-footer-brand a:hover,
.th-footer-brand a:focus {
    text-decoration: underline;
}

/* Footer column headings */
.th-footer-info h3,
.th-footer-legal h3 {
    margin: 0 0 18px !important;

    color: #ffffff;
    font-size: 17px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}

/* Footer navigation */
.th-footer-info .wp-block-navigation,
.th-footer-legal .wp-block-navigation {
    margin: 0 !important;
}

.th-footer-info .wp-block-navigation__container,
.th-footer-legal .wp-block-navigation__container {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;

    gap: 10px !important;
}

.th-footer-info .wp-block-navigation-item,
.th-footer-legal .wp-block-navigation-item {
    margin: 0 !important;
}

.th-footer-info .wp-block-navigation-item__content,
.th-footer-legal .wp-block-navigation-item__content {
    padding: 0 !important;

    color: #e5ebe2;
    font-size: 15px;
    font-weight: 400;

    text-decoration: none;
}

.th-footer-info .wp-block-navigation-item__content:hover,
.th-footer-info .wp-block-navigation-item__content:focus,
.th-footer-legal .wp-block-navigation-item__content:hover,
.th-footer-legal .wp-block-navigation-item__content:focus {
    color: #ffffff;
    text-decoration: underline;
}

/* Bottom legal/company row */
.th-footer-bottom {
    display: flex !important;
    align-items: flex-end !important;
    justify-content: space-between !important;

    width: 100% !important;
    max-width: none !important;

    margin: 42px 0 0 !important;
    padding: 24px 0 0 !important;

    gap: 36px !important;

    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.th-footer-bottom p {
    margin: 0 !important;

    color: #cdd6ca;
    font-size: 13px !important;
    line-height: 1.5 !important;
}

.th-footer-bottom p:first-child {
    max-width: 720px;
}

.th-footer-bottom p:last-child {
    white-space: nowrap;
    text-align: right;
}


/* Tablet */
@media (max-width: 900px) {

    .th-footer-columns {
        grid-template-columns: 1.4fr 1fr 1fr !important;
        gap: 40px !important;
    }
}


/* Mobile */
@media (max-width: 650px) {

    .th-footer-inner {
        width: calc(100% - 40px) !important;
        padding-top: 42px !important;
        padding-bottom: 24px !important;
    }

    .th-footer-columns {
        grid-template-columns: 1fr !important;
        gap: 34px !important;
    }

    .th-footer-brand .wp-block-site-logo img {
        max-width: 185px;
        max-height: 56px;
    }

    .th-footer-bottom {
        flex-direction: column !important;
        align-items: flex-start !important;

        margin-top: 34px !important;
        padding-top: 22px !important;

        gap: 12px !important;
    }

    .th-footer-bottom p:last-child {
        white-space: normal;
        text-align: left;
    }
}

/* =========================================================
   Homepage hero
   ========================================================= */

.th-home-hero {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding: 0 !important;

    background: var(--th-white);
    overflow: hidden;
}

.th-home-hero > .th-wide {
    width: calc(100% - 64px) !important;
    max-width: var(--th-wide) !important;

    margin-left: auto !important;
    margin-right: auto !important;

    padding-top: 72px;
    padding-bottom: 72px;
}

.th-home-hero-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 3fr) minmax(320px, 2fr) !important;
    align-items: center !important;
    gap: 64px !important;

    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;
}

/* Prevent Twenty Twenty-Five constraining the child groups */
.th-home-hero-grid > .wp-block-group {
    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;
}


/* Hero copy */
.th-home-hero-copy h1 {
    max-width: 690px !important;
    margin: 0 0 24px !important;

    color: var(--th-ink);
    font-size: clamp(48px, 5vw, 60px);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -0.035em;
}

.th-home-hero-intro {
    max-width: 650px !important;
    margin: 0 0 30px !important;

    color: var(--th-grey);
    font-size: 18px;
    line-height: 1.55;
}


/* Buttons */
.th-home-hero-copy .wp-block-buttons {
    gap: 16px !important;
}

.th-button-primary .wp-block-button__link {
    padding: 15px 26px;

    border: 2px solid var(--th-green-dark);
    border-radius: 5px;

    background: var(--th-green-dark);
    color: #ffffff;

    font-weight: 700;
    text-decoration: none;
}

.th-button-primary .wp-block-button__link:hover,
.th-button-primary .wp-block-button__link:focus {
    background: var(--th-green);
    border-color: var(--th-green);
}

.th-button-secondary .wp-block-button__link {
    padding: 15px 26px;

    border: 2px solid var(--th-green-dark);
    border-radius: 5px;

    background: transparent;
    color: var(--th-green-dark);

    font-weight: 700;
    text-decoration: none;
}

.th-button-secondary .wp-block-button__link:hover,
.th-button-secondary .wp-block-button__link:focus {
    background: var(--th-pale-green);
}


/* Empty media area for now */
.th-home-hero-media {
    min-height: 410px;
}


/* Tablet */
@media (max-width: 900px) {

    .th-home-hero-grid {
        grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr) !important;
        gap: 40px !important;
    }

    .th-home-hero > .th-wide {
        padding-top: 58px;
        padding-bottom: 58px;
    }

    .th-home-hero-media {
        min-height: 340px;
    }
}


/* Mobile */
@media (max-width: 700px) {

    .th-home-hero > .th-wide {
        width: calc(100% - 40px) !important;

        padding-top: 48px;
        padding-bottom: 48px;
    }

    .th-home-hero-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    .th-home-hero-copy h1 {
        font-size: clamp(38px, 11vw, 42px);
    }

    .th-home-hero-intro {
        font-size: 17px;
    }

    .th-home-hero-media {
        display: none;
    }
}

/* =========================================================
   Homepage — core services
   ========================================================= */

.th-core-services {
    background: var(--th-white);
}

/* Section heading + introduction */
.th-core-services .th-section-intro {
    display: grid !important;
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr) !important;
    align-items: end !important;
    gap: 64px !important;

    width: 100% !important;
    max-width: none !important;

    margin: 0 0 34px !important;
    padding: 0 !important;
}

.th-core-services .th-section-intro > * {
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: none !important;
}

.th-core-services .th-section-intro h2 {
    margin: 0 !important;
}

.th-core-services .th-section-intro p {
    margin: 0 !important;

    color: var(--th-grey);
    font-size: 17px;
    line-height: 1.55;
}


/* Three-card grid */
.th-service-cards {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 20px !important;

    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;
}

.th-service-card {
    position: relative;

    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;

    margin: 0 !important;
    padding: 28px 28px 30px !important;

    border: 1px solid var(--th-border);
    border-radius: 7px;

    background: var(--th-white);

    box-sizing: border-box;
}

/* Remove Twenty Twenty-Five constrained margins */
.th-service-card > * {
    margin-left: 0 !important;
    margin-right: 0 !important;
}


/* Icons */
.th-service-card .wp-block-image {
    margin: 0 0 20px !important;
}

.th-service-card .wp-block-image img {
    display: block;

    width: 64px;
    height: 64px;

    object-fit: contain;
}


/* Card headings */
.th-service-card h3 {
    max-width: calc(100% - 36px) !important;

    margin: 0 0 12px !important;

    color: var(--th-ink);
    font-size: 22px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}


/* Description */
.th-service-card p:not(.th-card-arrow) {
    margin: 0 !important;

    color: var(--th-grey);
    font-size: 16px;
    line-height: 1.5;
}


/* Arrow */
.th-card-arrow {
    position: absolute;
    top: 30px;
    right: 28px;

    margin: 0 !important;

    color: var(--th-green);
    font-size: 26px !important;
    font-weight: 500;
    line-height: 1;
}


/* Subtle interaction ready for when cards become links */
.th-service-card {
    transition:
        border-color 0.15s ease,
        background-color 0.15s ease;
}

.th-service-card:hover {
    border-color: #b9cbb0;
    background: var(--th-neutral-green);
}


/* Tablet */
@media (max-width: 900px) {

    .th-core-services .th-section-intro {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    .th-service-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}


/* Mobile */
@media (max-width: 650px) {

    .th-service-cards {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .th-service-card {
        padding: 24px !important;
    }

    .th-service-card .wp-block-image img {
        width: 58px;
        height: 58px;
    }

    .th-card-arrow {
        top: 26px;
        right: 24px;
    }
}

/* =========================================================
   Homepage — specialist expertise
   ========================================================= */

.th-specialist-expertise {
    background: var(--th-neutral-green);
}

.th-specialist-intro {
    width: 100% !important;
    max-width: none !important;

    margin: 0 0 34px !important;
    padding: 0 !important;
}

.th-specialist-intro > * {
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: none !important;
}

.th-specialist-intro h2 {
    margin: 0 0 10px !important;
}

.th-specialist-intro p {
    margin: 0 !important;

    color: var(--th-grey);
    font-size: 17px;
    line-height: 1.55;
}


/* Four compact specialist items */
.th-specialist-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 0 !important;

    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;
}

.th-specialist-item {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;

    margin: 0 !important;
    padding: 0 28px !important;

    box-sizing: border-box;
}

/* First item aligns with left edge */
.th-specialist-item:first-child {
    padding-left: 0 !important;
}

/* Vertical dividers */
.th-specialist-item + .th-specialist-item {
    border-left: 1px solid var(--th-border);
}

.th-specialist-item > * {
    margin-left: 0 !important;
    margin-right: 0 !important;
}


/* Icons */
.th-specialist-item .wp-block-image {
    margin: 0 0 16px !important;
}

.th-specialist-item .wp-block-image img {
    display: block;

    width: 58px;
    height: 58px;

    object-fit: contain;
}


/* Headings */
.th-specialist-item h3 {
    margin: 0 0 8px !important;

    color: var(--th-ink);
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}


/* Descriptions */
.th-specialist-item p {
    margin: 0 !important;

    color: var(--th-grey);
    font-size: 15px;
    line-height: 1.5;
}


/* Tablet */
@media (max-width: 900px) {

    .th-specialist-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        row-gap: 30px !important;
    }

    .th-specialist-item {
        padding: 0 24px !important;
    }

    .th-specialist-item:nth-child(odd) {
        padding-left: 0 !important;
        border-left: 0 !important;
    }

    .th-specialist-item:nth-child(even) {
        padding-right: 0 !important;
    }
}


/* Mobile */
@media (max-width: 650px) {

    .th-specialist-intro {
        margin-bottom: 28px !important;
    }

    .th-specialist-grid {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }

    .th-specialist-item,
    .th-specialist-item:nth-child(odd),
    .th-specialist-item:nth-child(even) {
        padding: 22px 0 !important;
        border-left: 0 !important;
        border-top: 1px solid var(--th-border);
    }

    .th-specialist-item:first-child {
        padding-top: 0 !important;
        border-top: 0 !important;
    }

    .th-specialist-item .wp-block-image img {
        width: 54px;
        height: 54px;
    }
}

/* =========================================================
   Homepage — why NHS organisations work with us
   ========================================================= */

.th-why {
    background: var(--th-white);
}

.th-why > .th-wide > h2 {
    margin: 0 0 32px !important;

    color: var(--th-ink);
    font-size: 36px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}


/* Four reassurance cards */
.th-why-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 16px !important;

    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;
}

.th-why-item {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;

    margin: 0 !important;
    padding: 24px 24px 26px !important;

    border: 1px solid var(--th-border);
    border-radius: 7px;

    background: var(--th-white);

    box-sizing: border-box;
}

/* Remove Twenty Twenty-Five constrained margins */
.th-why-item > * {
    margin-left: 0 !important;
    margin-right: 0 !important;
}


/* Icons */
.th-why-item .wp-block-image {
    margin: 0 0 18px !important;
}

.th-why-item .wp-block-image img {
    display: block;

    width: 56px;
    height: 56px;

    object-fit: contain;
}


/* Headings */
.th-why-item h3 {
    margin: 0 0 10px !important;

    color: var(--th-ink);
    font-size: 19px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
}


/* Supporting text */
.th-why-item p {
    margin: 0 !important;

    color: var(--th-grey);
    font-size: 15px;
    line-height: 1.5;
}


/* Tablet */
@media (max-width: 900px) {

    .th-why-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}


/* Mobile */
@media (max-width: 650px) {

    .th-why > .th-wide > h2 {
        margin-bottom: 26px !important;
        font-size: 32px;
    }

    .th-why-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    .th-why-item {
        padding: 22px !important;
    }

    .th-why-item .wp-block-image img {
        width: 52px;
        height: 52px;
    }
}

/* =========================================================
   Homepage — evidence / experience
   ========================================================= */

.th-evidence {
    background: var(--th-white);
}

.th-evidence-grid {
    display: grid !important;
    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(280px, 0.9fr)
        minmax(260px, 0.85fr) !important;

    align-items: stretch !important;
    gap: 28px !important;

    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;
}

.th-evidence-grid > .wp-block-group {
    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    box-sizing: border-box;
}

.th-evidence-grid > .wp-block-group > * {
    margin-left: 0 !important;
    margin-right: 0 !important;
}


/* =========================================================
   Evidence copy
   ========================================================= */

.th-evidence-copy {
    padding-right: 18px !important;
}

.th-evidence-copy h2 {
    margin: 0 0 18px !important;

    color: var(--th-ink);
    font-size: 34px !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    letter-spacing: -0.02em;
}

.th-evidence-copy > p {
    margin: 0 0 22px !important;

    color: var(--th-grey);
    font-size: 16px;
    line-height: 1.55;
}


/* Tick list */
.th-evidence-list {
    margin: 0 !important;
    padding: 0 !important;

    list-style: none !important;
}

.th-evidence-list li {
    position: relative;

    margin: 0 0 9px !important;
    padding-left: 30px;

    color: var(--th-grey);
    font-size: 15px;
    line-height: 1.45;
}

.th-evidence-list li:last-child {
    margin-bottom: 0 !important;
}

.th-evidence-list li::before {
    content: "✓";

    position: absolute;
    left: 0;
    top: 0.05em;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 20px;
    height: 20px;

    border-radius: 50%;

    background: var(--th-green-dark);
    color: #ffffff;

    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}


/* =========================================================
   Evidence quote
   ========================================================= */

.th-evidence-quote {
    position: relative;

    padding: 34px 30px 30px !important;

    border: 1px solid var(--th-border);
    border-radius: 7px;

    background: var(--th-neutral-green);
}

.th-evidence-quote::before {
    content: "“";

    display: block;

    margin-bottom: 4px;

    color: var(--th-green);
    font-size: 54px;
    font-weight: 700;
    line-height: 0.8;
}

.th-evidence-quote p {
    margin: 0 0 18px !important;

    color: var(--th-grey);
    font-size: 16px;
    line-height: 1.55;
}

.th-evidence-quote .th-evidence-attribution {
    margin: 0 !important;

    color: var(--th-grey);
    font-size: 14px !important;
    font-weight: 500;
}


/* =========================================================
   Evidence visual placeholder
   ========================================================= */

.th-evidence-media {
    min-height: 300px;

    border-radius: 7px;

    background:
        linear-gradient(
            135deg,
            var(--th-neutral-green),
            var(--th-pale-green)
        );
}


/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 900px) {

    .th-evidence-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    .th-evidence-media {
        grid-column: 1 / -1;
        min-height: 220px;
    }
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 650px) {

    .th-evidence-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .th-evidence-copy {
        padding-right: 0 !important;
    }

    .th-evidence-copy h2 {
        font-size: 30px !important;
    }

    .th-evidence-quote {
        padding: 28px 24px 26px !important;
    }

    .th-evidence-media {
        grid-column: auto;
        min-height: 180px;
    }
}

/* =========================================================
   Global CTA band
   ========================================================= */

.th-cta-band {
    width: 100vw;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;

    background: var(--th-green-dark);
}

.th-cta-band > .th-wide {
    width: calc(100% - 64px) !important;
    max-width: var(--th-wide) !important;

    margin-left: auto !important;
    margin-right: auto !important;

    padding-top: 44px;
    padding-bottom: 44px;
}

.th-cta-inner {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 48px !important;

    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;
}

.th-cta-inner > .wp-block-group {
    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;
}


/* Copy */
.th-cta-copy h2 {
    margin: 0 0 8px !important;

    color: #ffffff;
    font-size: 30px !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    letter-spacing: -0.02em;
}

.th-cta-copy p {
    max-width: 650px !important;

    margin: 0 !important;

    color: #eef4eb;
    font-size: 16px;
    line-height: 1.5;
}


/* Actions */
.th-cta-actions .wp-block-buttons {
    margin: 0 !important;
    gap: 14px !important;
    justify-content: flex-end;
}


/* Primary CTA */
.th-cta-button-primary .wp-block-button__link {
    padding: 14px 24px;

    border: 2px solid #ffffff;
    border-radius: 5px;

    background: #ffffff;
    color: var(--th-green-dark);

    font-weight: 700;
    text-decoration: none;
}

.th-cta-button-primary .wp-block-button__link:hover,
.th-cta-button-primary .wp-block-button__link:focus {
    background: var(--th-pale-green);
}


/* Secondary CTA */
.th-cta-button-secondary .wp-block-button__link {
    padding: 14px 24px;

    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 5px;

    background: transparent;
    color: #ffffff;

    font-weight: 700;
    text-decoration: none;
}

.th-cta-button-secondary .wp-block-button__link:hover,
.th-cta-button-secondary .wp-block-button__link:focus {
    background: rgba(255, 255, 255, 0.1);
}


/* Mobile */
@media (max-width: 700px) {

    .th-cta-band > .th-wide {
        width: calc(100% - 40px) !important;

        padding-top: 38px;
        padding-bottom: 38px;
    }

    .th-cta-inner {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .th-cta-copy h2 {
        font-size: 28px !important;
    }

    .th-cta-actions .wp-block-buttons {
        justify-content: flex-start;
    }
}

/* =========================================================
   Homepage — remove default WordPress page title
   ========================================================= */

.home .wp-block-post-title {
    display: none !important;
}

.home main.wp-block-group {
    margin-top: 0 !important;
}

.home .wp-block-post-content {
    margin-top: 0 !important;
}

/* =========================================================
   Homepage hero — force Tessell Health button styling
   ========================================================= */

.th-home-hero .wp-block-button.th-button-primary .wp-block-button__link,
.th-home-hero .wp-block-button__link.th-button-primary {
    padding: 15px 26px !important;

    border: 2px solid var(--th-green-dark) !important;
    border-radius: 5px !important;

    background: var(--th-green-dark) !important;
    color: #ffffff !important;

    font-weight: 700 !important;
    text-decoration: none !important;
}

.th-home-hero .wp-block-button.th-button-primary .wp-block-button__link:hover,
.th-home-hero .wp-block-button.th-button-primary .wp-block-button__link:focus,
.th-home-hero .wp-block-button__link.th-button-primary:hover,
.th-home-hero .wp-block-button__link.th-button-primary:focus {
    background: var(--th-green) !important;
    border-color: var(--th-green) !important;
}


/* Secondary hero button */
.th-home-hero .wp-block-button.th-button-secondary .wp-block-button__link,
.th-home-hero .wp-block-button__link.th-button-secondary {
    padding: 15px 26px !important;

    border: 2px solid var(--th-green-dark) !important;
    border-radius: 5px !important;

    background: #ffffff !important;
    color: var(--th-green-dark) !important;

    font-weight: 700 !important;
    text-decoration: none !important;
}

.th-home-hero .wp-block-button.th-button-secondary .wp-block-button__link:hover,
.th-home-hero .wp-block-button.th-button-secondary .wp-block-button__link:focus,
.th-home-hero .wp-block-button__link.th-button-secondary:hover,
.th-home-hero .wp-block-button__link.th-button-secondary:focus {
    background: var(--th-pale-green) !important;
}

/* =========================================================
   Homepage specialist areas — correct content width
   ========================================================= */

.th-specialist-expertise {
    width: 100vw;

    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;

    background: var(--th-neutral-green);
}

.th-specialist-expertise > .th-wide {
    width: calc(100% - 64px) !important;
    max-width: var(--th-wide) !important;

    margin-left: auto !important;
    margin-right: auto !important;

    box-sizing: border-box;
}

.th-specialist-expertise > .th-wide > * {
    width: 100% !important;
    max-width: none !important;
}


/* Mobile */
@media (max-width: 650px) {

    .th-specialist-expertise > .th-wide {
        width: calc(100% - 40px) !important;
    }
}

/* =========================================================
   Specialist grid — override WordPress wide/full alignment
   ========================================================= */

.th-specialist-expertise .th-specialist-grid {
    width: 100% !important;
    max-width: var(--th-wide) !important;

    margin-left: auto !important;
    margin-right: auto !important;

    padding-left: 0 !important;
    padding-right: 0 !important;

    box-sizing: border-box !important;
}

/* Neutralise any alignfull / alignwide behaviour inherited
   from the WordPress block editor */
.th-specialist-expertise .th-specialist-grid.alignfull,
.th-specialist-expertise .th-specialist-grid.alignwide {
    width: 100% !important;
    max-width: var(--th-wide) !important;

    margin-left: auto !important;
    margin-right: auto !important;
}


/* =========================================================
   Homepage — remove gap before footer
   ========================================================= */

.home .wp-block-post-content {
    margin-bottom: 0 !important;
}

.home .th-cta-band {
    margin-bottom: 0 !important;
}

.home .wp-site-blocks > footer,
.home .wp-site-blocks > .wp-block-template-part:last-child {
    margin-top: 0 !important;
    margin-block-start: 0 !important;
}

.home .th-site-footer {
    margin-top: 0 !important;
}

/* =========================================================
   Homepage — remove theme spacing below page content
   ========================================================= */

.home main,
.home main.wp-block-group,
.home .wp-site-blocks > main {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.home main > .wp-block-post-content {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Remove any WordPress block-gap inserted before the footer */
.home main + .wp-block-template-part,
.home main + footer,
.home .wp-block-template-part:has(.th-site-footer) {
    margin-top: 0 !important;
    margin-block-start: 0 !important;
}

/* Homepage hero emphasis */
.th-hero-highlight {
    color: var(--th-green);
}

/* =========================================================
   Homepage hero — visual panel
   ========================================================= */

.th-home-hero-media {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    min-height: 410px;
}

.th-hero-visual {
    position: relative;

    width: 100% !important;
    max-width: 460px !important;
    aspect-ratio: 1 / 1;

    margin: 0 !important;
    padding: 0 !important;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            var(--th-pale-green) 0%,
            var(--th-neutral-green) 100%
        );

    border-radius: 34% 10% 34% 10%;
}


/* Decorative green forms */
.th-hero-visual::before {
    content: "";

    position: absolute;
    width: 155px;
    height: 155px;

    top: -42px;
    right: -36px;

    background: var(--th-green);

    border-radius: 50%;
    opacity: 0.13;
}

.th-hero-visual::after {
    content: "";

    position: absolute;
    width: 135px;
    height: 135px;

    bottom: -38px;
    left: -32px;

    border: 28px solid var(--th-green);
    border-radius: 50%;

    opacity: 0.10;
}


/* Tablet */
@media (max-width: 900px) {

    .th-hero-visual {
        max-width: 380px !important;
    }
}

/* =========================================================
   Homepage hero — image
   ========================================================= */

.th-hero-visual .th-hero-image {
    position: absolute;
    inset: 0;

    width: 100% !important;
    height: 100% !important;

    margin: 0 !important;
    padding: 0 !important;
}

.th-hero-visual .th-hero-image img {
    display: block;

    width: 100% !important;
    height: 100% !important;

    object-fit: cover;
    object-position: center;

    border-radius: inherit;
}


/* Keep decorative shapes visible over the photograph */
.th-hero-visual::before,
.th-hero-visual::after {
    z-index: 2;
    pointer-events: none;
}

.th-hero-visual .th-hero-image {
    z-index: 1;
}

/* =========================================================
   Homepage hero — definitive button override
   ========================================================= */

/* First button: Explore services */
.th-home-hero-copy
.wp-block-buttons
.wp-block-button:first-child
.wp-block-button__link {
    padding: 15px 26px !important;

    background: var(--th-green-dark) !important;
    color: #ffffff !important;

    border: 2px solid var(--th-green-dark) !important;
    border-radius: 5px !important;

    font-weight: 700 !important;
    text-decoration: none !important;
}

.th-home-hero-copy
.wp-block-buttons
.wp-block-button:first-child
.wp-block-button__link:hover,
.th-home-hero-copy
.wp-block-buttons
.wp-block-button:first-child
.wp-block-button__link:focus {
    background: var(--th-green) !important;
    border-color: var(--th-green) !important;
}


/* Second button: Contact us */
.th-home-hero-copy
.wp-block-buttons
.wp-block-button:nth-child(2)
.wp-block-button__link {
    padding: 15px 26px !important;

    background: #ffffff !important;
    color: var(--th-green-dark) !important;

    border: 2px solid var(--th-green-dark) !important;
    border-radius: 5px !important;

    font-weight: 700 !important;
    text-decoration: none !important;
}

.th-home-hero-copy
.wp-block-buttons
.wp-block-button:nth-child(2)
.wp-block-button__link:hover,
.th-home-hero-copy
.wp-block-buttons
.wp-block-button:nth-child(2)
.wp-block-button__link:focus {
    background: var(--th-pale-green) !important;
}

/* =========================================================
   Homepage evidence — visual message
   ========================================================= */

.th-evidence-media {
    position: relative;

    display: flex !important;
    align-items: flex-end !important;

    min-height: 300px;

    padding: 34px !important;

    overflow: hidden;

    border-radius: 7px;

    background:
        linear-gradient(
            135deg,
            var(--th-neutral-green),
            var(--th-pale-green)
        );

    box-sizing: border-box;
}


/* Decorative form */
.th-evidence-media::before {
    content: "";

    position: absolute;

    width: 180px;
    height: 180px;

    top: -70px;
    right: -55px;

    border-radius: 50%;

    background: var(--th-green);
    opacity: 0.10;
}


.th-evidence-visual-copy {
    position: relative;
    z-index: 1;

    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;
}

.th-evidence-visual-copy p {
    margin: 0 0 4px !important;

    color: var(--th-ink);
    font-size: 25px !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    letter-spacing: -0.02em;
}

.th-evidence-visual-copy p:last-child {
    margin-bottom: 0 !important;
}

.th-evidence-visual-highlight {
    color: var(--th-green) !important;
}


/* Mobile */
@media (max-width: 650px) {

    .th-evidence-media {
        min-height: 200px;
        padding: 28px !important;
    }

    .th-evidence-visual-copy p {
        font-size: 23px !important;
    }
}
/* =========================================================
   Homepage — refined vertical spacing
   ========================================================= */

/* Hero */
.home .th-home-hero > .th-wide {
    padding-top: 64px;
    padding-bottom: 48px;
}

/* Core services */
.home .th-core-services {
    padding-top: 48px;
    padding-bottom: 56px;
}

/* Specialist expertise — coloured section can breathe more */
.home .th-specialist-expertise {
    padding-top: 56px;
    padding-bottom: 56px;
}

/* Why Tessell Health */
.home .th-why {
    padding-top: 56px;
    padding-bottom: 44px;
}

/* Evidence follows another white section, so reduce the join */
.home .th-evidence {
    padding-top: 44px;
    padding-bottom: 56px;
}


/* Tablet */
@media (max-width: 900px) {

    .home .th-home-hero > .th-wide {
        padding-top: 52px;
        padding-bottom: 40px;
    }

    .home .th-core-services,
    .home .th-specialist-expertise,
    .home .th-why,
    .home .th-evidence {
        padding-top: 48px;
        padding-bottom: 48px;
    }
}


/* Mobile — provisional; we'll review properly next */
@media (max-width: 650px) {

    .home .th-home-hero > .th-wide {
        padding-top: 40px;
        padding-bottom: 36px;
    }

    .home .th-core-services,
    .home .th-specialist-expertise,
    .home .th-why,
    .home .th-evidence {
        padding-top: 40px;
        padding-bottom: 40px;
    }
}

/* =========================================================
   Evidence panel — factual assurance rather than testimonial
   ========================================================= */

.th-evidence-quote::before {
    display: none !important;
}

.th-evidence-quote {
    padding: 32px 30px !important;
}

.th-evidence-quote h3 {
    margin: 0 0 14px !important;

    color: var(--th-ink);
    font-size: 21px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
}

.th-evidence-quote p {
    margin: 0 0 14px !important;

    color: var(--th-grey);
    font-size: 15px;
    line-height: 1.55;
}

.th-evidence-quote p:last-child {
    margin-bottom: 0 !important;
}

/* =========================================================
   Homepage — final mobile spacing polish
   ========================================================= */

@media (max-width: 650px) {

    /* Hero */
    .th-home-hero-grid {
        gap: 26px !important;
    }

    .th-home-hero-copy .wp-block-buttons {
        margin-top: 4px !important;
    }

    .th-home-hero-media {
        min-height: 0 !important;
    }

    .th-hero-visual {
        max-width: 100% !important;
        aspect-ratio: 4 / 3;
    }


    /* Core services */
    .th-core-services .th-section-intro {
        margin-bottom: 24px !important;
    }

    .th-service-cards {
        gap: 14px !important;
    }


    /* Specialist areas */
    .th-specialist-intro {
        margin-bottom: 20px !important;
    }

    .th-specialist-item,
    .th-specialist-item:nth-child(odd),
    .th-specialist-item:nth-child(even) {
        padding-top: 18px !important;
        padding-bottom: 18px !important;
    }


    /* Why cards */
    .th-why > .th-wide > h2 {
        margin-bottom: 22px !important;
    }

    .th-why-grid {
        gap: 12px !important;
    }


    /* Evidence */
    .th-evidence-grid {
        gap: 16px !important;
    }


    /* CTA */
    .th-cta-inner {
        gap: 20px !important;
    }
}

/* =========================================================
   Homepage hero — soften photography
   ========================================================= */

.th-hero-visual .th-hero-image img {
    filter:
        saturate(0.72)
        contrast(0.94)
        brightness(1.03);
}