/*
Theme Name: Nerona UK
Theme URI: https://nerona.co.uk
Author: Nerona
Description: WordPress theme for the approved Nerona UK website layout.
Version: 1.1.4
Text Domain: nerona-uk
*/

:root {
    --navy: #061a40;
    --teal: #008c8c;
    --soft-teal: #e7f6f5;
    --background: #f8fafc;
    --white: #ffffff;
    --ink: #12304f;
    --muted: #5d6b82;
    --border: rgba(6, 26, 64, 0.12);
    --shadow: 0 18px 50px rgba(6, 26, 64, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: Inter, Manrope, "DM Sans", Arial, sans-serif;
    color: var(--navy);
    background: #f4f6f8;
    overflow-x: hidden;
}

img,
svg,
video,
iframe {
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
    overflow-wrap: anywhere;
}

p,
li,
h1,
h2,
h3,
h4,
h5,
h6,
.btn {
    overflow-wrap: anywhere;
}

.site-header {
    position: sticky;
    top: 10px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 86px;
    margin: 10px 12px 0;
    padding: 0 32px 0 38px;
    background: var(--white);
    border: 1px solid rgba(6, 26, 64, 0.08);
    border-radius: 12px;
    box-shadow: 0 4px 22px rgba(6, 26, 64, 0.14);
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 215px;
    height: auto;
}

.nav {
    display: flex;
    align-items: center;
    gap: 42px;
    font-size: 18px;
    font-weight: 800;
}

.nav > a:not(.btn) {
    position: relative;
    padding: 31px 0 27px;
}

.nav > a:not(.btn).active {
    color: var(--navy);
}

.nav > a:not(.btn).active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 20px;
    height: 3px;
    border-radius: 999px;
    background: var(--teal);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    min-height: 52px;
    border-radius: 9px;
    padding: 15px 30px;
    border: 2px solid transparent;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
}

.btn-primary {
    background: var(--navy);
    color: var(--white);
}

.btn-teal {
    background: var(--teal);
    color: var(--white);
}

.btn-outline {
    border-color: var(--teal);
    color: var(--teal);
    background: var(--white);
}

.page-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 48%) minmax(0, 52%);
    min-height: 560px;
    overflow: hidden;
    background: var(--white);
}

.hero-copy {
    grid-column: 1;
    z-index: 2;
    min-width: 0;
    padding: 48px 0 0 64px;
}

.page-hero > :not(.hero-image):not(.hero-fade) {
    grid-column: 1;
    z-index: 2;
}

.page-hero > p,
.page-hero > ul,
.page-hero > ol,
.page-hero > blockquote,
.page-hero > .wp-block-buttons,
.page-hero > .wp-block-button {
    max-width: 575px;
    margin: 0 0 24px 64px;
    color: var(--ink);
    font-size: 22px;
    line-height: 1.48;
}

.page-hero > h1,
.page-hero > h2,
.page-hero > h3,
.page-hero > h4 {
    max-width: 720px;
    margin: 0 0 24px 64px;
}

.page-hero > .hero-copy + .hero-copy {
    padding-top: 0;
}

.hero-copy h1 {
    max-width: 720px;
    margin: 0 0 26px;
    font-size: clamp(44px, 4.05vw, 62px);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: 0;
}

.teal {
    color: var(--teal);
}

.hero-copy p {
    max-width: 575px;
    margin: 0 0 24px;
    font-size: 22px;
    line-height: 1.48;
    color: var(--ink);
}

.hero-copy .emphasis {
    max-width: 520px;
    font-size: 24px;
    line-height: 1.18;
    font-weight: 900;
    color: var(--navy);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 575px;
    margin-top: 30px;
}

.hero-image {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    width: 62%;
    min-height: 560px;
    background-position: center;
    background-size: cover;
}

.hero-fade {
    position: absolute;
    z-index: 1;
    top: 0;
    bottom: 0;
    left: 30%;
    width: 34%;
    background: linear-gradient(90deg, var(--white) 0%, rgba(255, 255, 255, 0.96) 30%, rgba(255, 255, 255, 0.58) 58%, rgba(255, 255, 255, 0.08) 86%, rgba(255, 255, 255, 0));
}

.page-home .hero-image {
    background-position: 64% center;
}

.page-how-nerona-helps .hero-image {
    background-position: 60% center;
}

.page-trust-curriculum .hero-image {
    width: 60%;
    background-position: 64% center;
}

.page-subscribe .hero-image {
    background-position: 58% center;
}

.cards {
    position: relative;
    z-index: 3;
    display: grid;
    gap: 22px;
}

.cards.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 1390px;
    margin: 30px auto 72px;
    padding: 0 38px;
    gap: 22px;
}

.cards.four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 1490px;
    margin: 30px auto 72px;
    padding: 0 38px;
}

.pricing .cards.three {
    max-width: 1390px;
    margin: 30px auto 80px;
    padding: 0 54px;
}

.card {
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: 132px;
    padding: 24px 28px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 13px;
    box-shadow: 0 16px 38px rgba(6, 26, 64, 0.12);
}

.card > div:last-child,
.pathway-item > div:last-child {
    min-width: 0;
}

.card h3 {
    margin: 0 0 10px;
    font-size: 21px;
    line-height: 1.12;
}

.card p {
    margin: 0;
    color: var(--ink);
    font-size: 16px;
    line-height: 1.45;
}

.icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 92px;
    height: 92px;
    margin-bottom: 0;
    border-radius: 50%;
    background: var(--soft-teal);
    color: var(--teal);
}

.icon svg {
    width: 47px;
    height: 47px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon:empty::before {
    display: block;
    color: currentColor;
    font-family: Arial, sans-serif;
    font-size: 44px;
    font-weight: 900;
    line-height: 1;
}

.page-home .cards .card:nth-child(1) .icon:empty::before {
    content: "\2713";
}

.page-home .cards .card:nth-child(2) .icon:empty::before,
.page-trust-curriculum .pathway-item:nth-child(1) .icon:empty::before {
    content: "\2691";
}

.page-home .cards .card:nth-child(3) .icon:empty::before,
.page-trust-curriculum .cards .card:nth-child(3) .icon:empty::before,
.page-subscribe .cards .card:nth-child(3) .icon:empty::before {
    content: "\2630";
}

.page-how-nerona-helps .cards .card:nth-child(1) .icon:empty::before {
    content: "?";
}

.page-how-nerona-helps .cards .card:nth-child(2) .icon:empty::before {
    content: "\2191";
}

.page-how-nerona-helps .cards .card:nth-child(3) .icon:empty::before {
    content: "\2197";
}

.page-how-nerona-helps .cards .card:nth-child(4) .icon:empty::before {
    content: "\25A3";
}

.page-trust-curriculum .cards .card:nth-child(1) .icon:empty::before,
.page-trust-curriculum .pathway-item:nth-child(3) .icon:empty::before,
.page-subscribe .cards .card:nth-child(2) .icon:empty::before {
    content: "\25A4";
}

.page-trust-curriculum .cards .card:nth-child(2) .icon:empty::before,
.page-trust-curriculum .pathway-item:nth-child(5) .icon:empty::before,
.page-subscribe .cards .card:nth-child(1) .icon:empty::before {
    content: "\25B3";
}

.page-trust-curriculum .cards .card:nth-child(4) .icon:empty::before {
    content: "\25C7";
}

.cards.four .card {
    align-items: flex-start;
    min-height: 214px;
    padding: 34px 28px;
}

.page-trust-curriculum .cards.four {
    width: auto;
    max-width: 1490px;
    margin: 30px auto 20px;
    padding: 0 38px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.page-trust-curriculum .cards.four .card {
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    min-height: 214px;
    padding: 34px 28px;
    text-align: left;
}

.page-trust-curriculum .cards.four .icon {
    width: 92px;
    height: 92px;
}

.page-trust-curriculum .cards.four .icon svg {
    width: 47px;
    height: 47px;
}

.page-trust-curriculum .cards.four h3 {
    font-size: 21px;
}

.page-trust-curriculum .cards.four p {
    font-size: 16px;
    line-height: 1.45;
}

.pathways-panel {
    max-width: 1438px;
    margin: 0 auto 78px;
    padding: 28px 36px 34px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 13px;
    box-shadow: 0 16px 38px rgba(6, 26, 64, 0.12);
}

.pathways-panel,
.pathway-item {
    min-width: 0;
}

.pathways-panel h2 {
    margin: 0 0 28px;
    font-size: 24px;
}

.pathways-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 18px;
}

.pathway-item {
    display: flex;
    align-items: center;
    gap: 18px;
}

.pathway-item .icon {
    width: 64px;
    height: 64px;
}

.pathway-item .icon svg {
    width: 33px;
    height: 33px;
}

.pathway-item h3 {
    margin: 0 0 4px;
    font-size: 17px;
}

.pathway-item p {
    margin: 0;
    color: var(--navy);
    font-size: 14px;
    line-height: 1.2;
}

.pathway-arrow {
    color: var(--navy);
    font-size: 44px;
    line-height: 1;
}

.pricing .card {
    min-height: 178px;
    padding: 24px 36px;
}

.pricing .card h3 {
    position: relative;
    margin-bottom: 22px;
    font-size: 25px;
}

.pricing .card h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -11px;
    width: 52px;
    height: 3px;
    border-radius: 999px;
    background: var(--teal);
}

.pricing .card p {
    font-size: 17px;
}

.pricing .price-line {
    margin-top: 16px;
    color: var(--navy);
    font-weight: 800;
}

.pricing .price-line span {
    color: var(--teal);
    font-size: 22px;
    font-weight: 900;
}

.pricing .section-muted {
    margin-top: 0;
}

.section {
    padding: 78px 54px;
    background: var(--white);
}

.section-muted {
    background: var(--background);
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    min-width: 0;
}

.section h2 {
    margin: 0 0 20px;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.05;
}

.section p,
.section li {
    color: var(--ink);
    font-size: 18px;
    line-height: 1.65;
}

.section a,
.legal-page a {
    color: var(--teal);
    text-decoration: underline;
    text-underline-offset: 0.16em;
}

.section img,
.legal-page img,
.wp-block-image img,
.wp-block-media-text img {
    height: auto;
}

.section figure,
.legal-page figure,
.wp-block-image,
.wp-block-table,
.wp-block-embed {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.section table,
.legal-page table,
.wp-block-table table {
    width: 100%;
    border-collapse: collapse;
}

.wp-block-table {
    overflow-x: auto;
}

.wp-block-buttons,
.wp-block-button {
    max-width: 100%;
}

.wp-block-button__link {
    white-space: normal;
    overflow-wrap: anywhere;
}

.nerona-form {
    max-width: 760px;
    margin: 0 auto 80px;
    padding: 34px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.nerona-form label {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
    font-size: 15px;
    font-weight: 800;
}

.nerona-form input,
.nerona-form select,
.nerona-form textarea {
    width: 100%;
    border: 1px solid rgba(6, 26, 64, 0.2);
    border-radius: 9px;
    padding: 14px 15px;
    font: inherit;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.consent {
    grid-template-columns: auto 1fr;
    align-items: start;
    font-weight: 600;
}

.consent input {
    width: auto;
    margin-top: 4px;
}

.form-status {
    margin: 18px 0 0;
    font-weight: 800;
}

.form-status.is-success {
    color: #087f5b;
}

.form-status.is-error {
    color: #b42318;
}

.legal-page {
    max-width: 940px;
    margin: 0 auto;
    padding: 76px 30px;
    overflow-wrap: anywhere;
}

.legal-page h1 {
    margin: 0 0 24px;
    font-size: clamp(40px, 4vw, 56px);
}

.legal-page h2 {
    margin-top: 38px;
    font-size: 28px;
}

.legal-page p,
.legal-page li {
    color: var(--ink);
    font-size: 18px;
    line-height: 1.65;
}

.legal-page ul,
.legal-page ol,
.section ul,
.section ol {
    padding-left: 1.4em;
}

.footer {
    padding: 52px 60px 24px;
    background: var(--navy);
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.3fr 1.3fr;
    gap: 34px;
}

.footer h3,
.footer h4 {
    margin: 0 0 14px;
}

.footer p,
.footer a {
    display: block;
    margin: 0 0 8px;
    color: #dce8f4;
    font-size: 14px;
    line-height: 1.55;
}

.footer .disclaimer {
    padding-left: 24px;
    border-left: 1px solid rgba(255, 255, 255, 0.25);
}

.copyright {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: #dce8f4;
    font-size: 13px;
}

@media (min-width: 981px) and (max-width: 1180px) {
    .site-header {
        padding: 0 24px;
    }

    .logo img {
        width: 170px;
    }

    .nav {
        gap: 22px;
        font-size: 16px;
    }

    .btn {
        min-height: 46px;
        padding: 13px 22px;
        font-size: 16px;
    }

    .hero-copy {
        padding-left: 42px;
    }

    .cards.three,
    .cards.four,
    .pricing .cards.three,
    .page-trust-curriculum .cards.four {
        padding-left: 28px;
        padding-right: 28px;
    }
}

@media (max-width: 980px) {
    .site-header {
        align-items: center;
        min-height: auto;
        padding: 14px 18px 16px;
        gap: 12px;
        flex-direction: row;
        flex-wrap: wrap;
        top: 6px;
        margin: 6px 8px 0;
    }

    .logo img {
        width: 155px;
    }

    .nav {
        flex: 1 1 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 10px 18px;
        font-size: 15px;
    }

    .nav > a:not(.btn) {
        padding: 6px 0 8px;
    }

    .nav > a:not(.btn):nth-of-type(4) {
        display: none;
    }

    .nav > a:not(.btn).active::after {
        bottom: 0;
        height: 2px;
    }

    .nav .btn {
        margin-left: auto;
        min-height: 42px;
        padding: 11px 20px;
        font-size: 15px;
    }

    .page-hero {
        display: flex;
        flex-direction: column;
        min-height: auto;
    }

    .hero-copy {
        padding: 34px 24px 40px;
    }

    .page-hero > p,
    .page-hero > ul,
    .page-hero > ol,
    .page-hero > blockquote,
    .page-hero > .wp-block-buttons,
    .page-hero > .wp-block-button {
        max-width: 760px;
        margin: -24px 24px 24px;
        font-size: 19px;
        line-height: 1.45;
    }

    .page-hero > h1,
    .page-hero > h2,
    .page-hero > h3,
    .page-hero > h4 {
        max-width: 760px;
        margin: -24px 24px 24px;
    }

    .hero-copy h1 {
        max-width: 760px;
        margin-bottom: 20px;
        font-size: clamp(42px, 8vw, 58px);
        line-height: 1.04;
    }

    .hero-copy p {
        font-size: 19px;
        line-height: 1.45;
    }

    .hero-copy .emphasis {
        font-size: 21px;
    }

    .hero-actions {
        gap: 14px;
        margin-top: 24px;
    }

    .hero-image {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        width: 100%;
        order: -1;
        min-height: 390px;
    }

    .page-trust-curriculum .hero-image {
        width: 100%;
        background-position: center;
    }

    .hero-fade {
        display: none;
    }

    .cards.three,
    .cards.four,
    .pricing .cards.three,
    .page-trust-curriculum .cards.four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin: 24px;
        padding: 0;
    }

    .page-trust-curriculum .cards.four .card {
        min-height: auto;
    }

    .pathways-panel {
        width: auto;
        margin: 24px;
        padding: 24px;
    }

    .pathways-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .pathway-arrow {
        display: none;
    }

    .section {
        padding: 54px 24px;
    }

    .form-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .nerona-form {
        margin-left: 0;
        margin-right: 0;
        padding: 26px;
    }

    .footer {
        padding: 36px 24px;
    }

    .footer .disclaimer {
        padding-left: 0;
        border-left: 0;
    }
}

@media (max-width: 600px) {
    .site-header {
        padding: 12px 14px 14px;
        border-radius: 10px;
    }

    .logo img {
        width: 132px;
    }

    .nav {
        gap: 8px 14px;
        font-size: 13px;
    }

    .nav .btn {
        flex-basis: 100%;
        margin-left: 0;
        min-height: 42px;
    }

    .page-hero {
        background: var(--white);
    }

    .hero-image {
        min-height: 300px;
    }

    .hero-copy {
        padding: 28px 20px 34px;
    }

    .page-hero > p,
    .page-hero > ul,
    .page-hero > ol,
    .page-hero > blockquote,
    .page-hero > .wp-block-buttons,
    .page-hero > .wp-block-button {
        margin: -20px 20px 22px;
        font-size: 17px;
    }

    .page-hero > h1,
    .page-hero > h2,
    .page-hero > h3,
    .page-hero > h4 {
        margin: -20px 20px 22px;
    }

    .hero-copy h1 {
        font-size: clamp(38px, 12vw, 48px);
        line-height: 1.04;
    }

    .hero-copy p {
        font-size: 17px;
    }

    .hero-copy .emphasis {
        font-size: 19px;
    }

    .btn {
        width: 100%;
        min-height: 46px;
        padding: 13px 18px;
        font-size: 15px;
    }

    .cards.three,
    .cards.four,
    .pricing .cards.three,
    .page-trust-curriculum .cards.four {
        grid-template-columns: 1fr;
        margin: 20px;
    }

    .card,
    .cards.four .card,
    .pricing .card,
    .page-trust-curriculum .cards.four .card {
        gap: 18px;
        min-height: auto;
        padding: 22px;
    }

    .icon,
    .page-trust-curriculum .cards.four .icon {
        width: 72px;
        height: 72px;
    }

    .icon svg,
    .page-trust-curriculum .cards.four .icon svg {
        width: 36px;
        height: 36px;
    }

    .pathways-panel {
        margin: 20px;
    }

    .section {
        padding: 42px 20px;
    }

    .section h2 {
        font-size: 34px;
    }

    .legal-page {
        padding: 48px 20px;
    }
}
