/* =========================================
   GLOBAL TYPOGRAPHY
   ========================================= */

:root {
    --heading-font: 'Playfair Display', Georgia, serif;
    --body-font: 'Playfair Display', Georgia, serif;
    --nav-font: 'Playfair Display', Georgia, serif;
    --accent-colour: #D88E81;
    --accent-colour-light: #E8A49A;
    --text-colour: #333;
}

html,
body {
    font-family: var(--body-font);
    color: var(--text-colour);
    font-size: 19px;
    line-height: 1.55;
}

p {
    font-family: var(--body-font);
    font-size: 1rem;
    line-height: 1.55;
    margin-bottom: 1.65rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--heading-font);
}

/* =========================================
   GLOBAL WIX-STYLE HEADER
   ========================================= */

.global-wix-header {
    background: linear-gradient(to bottom, var(--accent-colour), var(--accent-colour-light));
    color: white;
    padding: 3.5rem 0 2.5rem 0;
}

/* Large serif title */
.wix-header-title {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
    font-size: clamp(2.1rem, 7vw, 3.2rem);
}

.wix-header-inner {
    flex-wrap: wrap;
    gap: 1.25rem;
}

/* Right-hand graphic and name */
.wix-header-right {
    display: block;
    margin: 0 0 0.5rem 0 !important;
    padding: 0 !important;
}

.wix-header-graphic {
    max-width: 300px;
/*    background-color: lime;
    outline: 2px solid blue;*/
}

.wix-header-name {
    font-family: var(--heading-font);   
    font-size: 2.0rem;  
    margin-top: 1.5rem !important;
    padding: 0 !important;      
    line-height: 1.1;
}

.wix-header-name-email {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    margin-top: 1rem !important;
    padding: 0 !important;
    line-height: 1.1;
}

.wix-header-details {
    margin-top: 2.5rem;
}

    .wix-header-name + div {
        margin: 0.25rem 0 0 0;
        padding: 0;
    }

/* Divider line */
.wix-header-divider {
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.7);
    margin-top: 2rem;
}

@media (max-width: 576px) {
    .global-wix-header {
        padding: 2.25rem 0 1.5rem 0;
    }

    .wix-header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .wix-header-right {
        margin-left: 0;
        width: 100%;
        text-align: left !important;
    }

    .wix-header-graphic {
        max-width: 110px;
    }

    .wix-header-name {
        font-size: 1.25rem;
    }

    .wix-header-divider {
        margin-top: 1.25rem;
    }
}


/* =========================================
   GLOBAL WIX-STYLE FOOTER
   ========================================= */

.global-wix-footer {
    background: linear-gradient(to bottom, var(--accent-colour), var(--accent-colour-light));
    color: white;
    padding: 3.5rem 0 2.5rem 0;
}

.mtl-logo {
    height: 18px;
    width: auto;
    display: inline-block;
    margin-left: 6px;
    opacity: 0.8;
    vertical-align: baseline;
}


/* =========================================
   WIX NAVIGATION BAR
   ========================================= */

.wix-nav {
    background: #F7F4F2;
    border-bottom: 1px solid #ccc;
    padding: 0.65rem 0;
}

.wix-nav-list .nav-link {
    font-family: var(--nav-font);
    color: #333 !important;
    font-size: 1.15rem;
    padding: 0.25rem 1.25rem;
    letter-spacing: 0.5px;
}

    .wix-nav-list .nav-link:hover {
        text-decoration: underline;
    }

@media (max-width: 767.98px) {
    .wix-nav-list .nav-link {
        padding: 0.5rem 0.75rem;
        text-align: center;
    }
}

/* Spread the navigation links across a wider area on desktop */
@media (min-width: 768px) {
    .wix-nav-list {
        width: 100%;
        max-width: 1100px;
        justify-content: space-between;
        align-items: center;
    }
}


/* =========================================
   MAIN LAYOUT
   ========================================= */

main.container {
    max-width: 900px;
}


/* =========================================
   HOME PAGE - WIX LAYOUT
   ========================================= */

.wix-section {
    padding: 1rem 0;
}

.wix-img-large {
    width: 100%;
    max-width: 420px;
}

.wix-img-medium {
    width: 100%;
    max-width: 340px;
}

.two-col img {
    border-radius: 8px;
    display: block;
    max-width: 100%;
}

.wix-img-small {
    width: 180px;
}

.wix-centered-section {
    text-align: center;
    padding: 3rem 0 3.5rem 0;
}

.wix-centered-text {
    font-family: var(--heading-font);
    font-size: clamp(2.3rem, 4vw, 3rem);
    line-height: 1.35;
    color: #222;
    margin: 0 auto;
    max-width: 760px;
}

.wix-quote {
    font-family: var(--heading-font);
    font-size: clamp(2.2rem, 4vw, 3rem);
    line-height: 1.35;
    color: #222;
}

/* Contact section */
.wix-contact-section {
    padding: 0rem 0 0rem 0;
}

.wix-contact-email {
    font-size: 1.5rem;
    color: var(--accent-colour);
    font-weight: 600;
}

.wix-contact-email2,
.resources-link-grid a {
    font-size: 1rem;
    color: var(--accent-colour);
    font-weight: 600;
}

    .wix-contact-email a {
        color: var(--accent-colour);
        text-decoration: none;
    }

@media (max-width: 768px) {
    .wix-centered-text,
    .wix-quote {
        font-size: 1.9rem;
    }

    .two-col .col-md-6 {
        text-align: center;
        margin-bottom: 2rem;
    }
}

.two-col .wix-bottom-scribble {
    display: block;
    width: 440px !important;
    max-width: 440px !important;
    height: auto !important;
    flex-shrink: 0;
}

.home-inline-quote {
    margin: 2.5rem auto;
    text-align: center;
}

.home-circles-section {
    display: flex;
    justify-content: center;
    padding-top: 0rem;
}

.home-circles-section .wix-bottom-scribble {
    display: block;
    width: 440px;
    max-width: 100%;
    height: auto;
}

.page-content-row {
    width: 83.333333%;
    margin-left: auto;
    margin-right: auto;
}


/* =========================================
   HOME PAGE - AOS SETTINGS
   ========================================= */

/* Soft fade behaviour for AOS */
[data-aos^="fade"] {
    transform: translate3d(0, 20px, 0);
    opacity: 0;
    transition-property: transform, opacity;
}

    [data-aos^="fade"].aos-animate {
        transform: translate3d(0, 0, 0);
        opacity: 1;
    }

/* Soft zoom */
[data-aos="zoom-in"] {
    transform: scale(0.96);
}

    [data-aos="zoom-in"].aos-animate {
        transform: scale(1);
    }


/* =========================================
   IMAGE PLACEHOLDER STYLE
   ========================================= */

.image-placeholder {
    border: 1px dashed #cfcfcf;
    border-radius: 10px;
    background: #fafafa;
    padding: 2.5rem 1rem;
    text-align: center;
    max-width: 420px;
    margin: 0 auto;
}

.image-placeholder-sm {
    padding: 1.5rem 0.75rem;
}

.image-placeholder-wide {
    padding: 2.25rem 1rem;
}

.placeholder-text {
    margin: 0;
    color: #9a9a9a;
    font-size: 0.9rem;
}


/* =========================================
   ABOUT PAGE STYLE
   ========================================= */

.about-two-col p {
    margin-bottom: 1.25rem;
}

/* Mobile only */
@media (max-width: 767px) {
    .about-two-col p {
        margin-bottom: 0;
    }
}

/* Right column blocks */
.about-media-block {
    margin-bottom: 1.25rem;
}

/* Logo grid similar to Wix right-hand stack */
.logo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.about-portrait {
    width: 100%;
    max-width: 520px;
    height: auto;
    border-radius: 12px;
    display: block;
    margin: 0 auto;
    filter: grayscale(100%);
}

.about-secondary-section {
    margin-top: 2.5rem;
}

.about-heads-img {
    width: 100%;
    max-width: 560px;
}

.qualifications-row .section-heading {
    margin-top: 0;
}

.qualifications-row .wix-list {
    margin-top: 0;
}

.about-column-inner {
    width: 100%;
    max-width: 620px;
    margin-inline: auto;
}

.qualifications-section .section-heading {
    margin-top: 0;
}

/* Centre the visible image on the centre line of the left column */
.about-image-wrapper {
    width: 100%;
    max-width: 720px;
    display: flex;
    justify-content: center;
}

/* Centre the text block on the centre line of the right column */
.about-text-wrapper {
    width: 100%;
    max-width: 720px;
}

/*
   Make each qualifications block only as wide as its contents,
   then centre that complete block inside its Bootstrap column.
*/
.qualifications-block {
    width: fit-content;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
    padding-left:80px
}

.about-accreditation-logos {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-left: 0;
}

.about-accreditation-logo-pair {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

    .qualifications-block .section-heading {
        margin-top: 0;
    }

    .qualifications-block .wix-list {
        margin-bottom: 0;
    }

/* =========================================
   LISTS
   ========================================= */

.wix-list {
    padding-left: 1.2rem;
}

    .wix-list li {
        margin-bottom: 0.5rem;
    }


/* =========================================
   SUPERVISION STYLE
   ========================================= */

.supervision-process-img {
    max-width: 100%;
    border-radius: 12px;
}

.supervision-title {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.2;
}

.supervision-subtitle {
    font-family: var(--heading-font);
    font-weight: 700;
}

.supervision-process-inline {
    margin: 2.25rem 0;
}

.supervision-closing-quote {
    text-align: left;
}


/* =========================================
   RESOURCES STYLE
   ========================================= */

.resources-page {
    padding: 70px 0;
}

.resources-title {
    font-family: var(--heading-font);
    font-size: clamp(2.2rem, 4vw, 4rem);
    font-weight: 400;
}

.resources-callout {
    font-family: var(--heading-font);
    font-weight: 600;
    line-height: 1.5;
    color: #333;
}

.resources-heading {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.35;
    color: #333;
}

.resources-subheading {
    font-family: var(--heading-font);
    font-weight: 600;
    color: #333;
}

.resources-image {
    max-height: 520px;
    object-fit: cover;
}

.resources-link-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem 2rem;
    padding-left: 1.2rem;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    list-style-position: inside;
}

.resources-link-grid li {
    text-align: center;
}

.resources-content-width {
    width: min(100%, 1000px);
    margin-left: auto;
    margin-right: auto;
}

.resources-opening-row p {
    margin-bottom: 1rem;
}

.resources-followup-row {
    margin-top: 0 !important;
}

.resources-opening-row > *,
.resources-followup-row > * {
    margin-top: 0;
}

.resources-drugs-paragraph,
.resources-support-intro {
    margin-bottom: 3rem;
}

@media (max-width: 991.98px) {
    .resources-link-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .resources-link-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================
   CONTACT STYLE
   ========================================= */

.contact-card {
    background: #fff;
    border: 1px solid #e9e9e9;
    border-radius: 14px;
    padding: 2rem;
}

.contact-btn {
    border-radius: 999px;
}


/* =========================================
   RELATIONSHIPS STYLE
   ========================================= */

.relationships-img {
    max-width: 100%;
    border-radius: 12px;
    display: block;
    margin: 0 auto;
}

.relationships-feature-img {
    display: block;
    width: 100%;
    max-width: 500px;
    height: auto;
    margin: 0 auto;
}

/* =========================================
   BUTTON STYLES
   ========================================= */
.contact-btn {
    background: linear-gradient(to bottom, #D88E81, #E8A49A);
    border-color: #D88E81;
    color: white;
}

    .contact-btn:hover,
    .contact-btn:focus {
        background: linear-gradient(to bottom, #C97E72, #D99489);
        border-color: #C97E72;
        color: white;
    }


/* =========================================
   PHONE AND SMALL-SCREEN LAYOUT
   Desktop styling is intentionally unchanged.
   ========================================= */

@media (max-width: 767.98px) {
    body {
        overflow-x: hidden;
    }

    /* Keep mobile content comfortably wide despite nested Bootstrap containers. */
    main.container-fluid,
    main .container-fluid {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

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

    p {
        margin-bottom: 1.35rem;
    }

    .wix-section {
        padding: 0.75rem 0;
    }

    .wix-quote,
    .wix-centered-text {
        font-size: clamp(1.6rem, 7vw, 2rem);
        line-height: 1.25;
    }

    .wix-quote.mt-5 {
        margin-top: 2rem !important;
    }

    .wix-quote.mb-5 {
        margin-bottom: 2rem !important;
    }

    main > section.wix-section.mt-5 {
        margin-top: 1.5rem !important;
    }

    /* Shared header */
    .global-wix-header {
        padding: 1.75rem 0 1.5rem;
    }

    .global-wix-header .container-fluid,
    .wix-nav .container-fluid {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .wix-header-title {
        font-size: 1.65rem;
        line-height: 1.12;
        text-align: center;
    }

    .wix-header-brand {
        margin-top: 1.5rem !important;
    }

    .wix-header-graphic {
        width: 100%;
        max-width: 100px;
    }

    .wix-header-name {
        font-size: 1.4rem;
        margin-top: 0.75rem !important;
    }

    .wix-header-details {
        margin-top: 1.75rem;
        row-gap: 0.6rem;
        text-align: center;
    }

    .wix-header-session,
    .wix-header-name-email {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
    }

    .wix-header-session {
        margin: 0;
        font-size: 1.2rem;
        line-height: 1.3;
    }

    .wix-header-spacer {
        display: none;
    }

    .wix-header-name-email {
        margin-top: 0 !important;
        font-size: 1rem;
        line-height: 1.35;
        overflow-wrap: anywhere;
    }

    /* Navigation remains compact through landscape-phone widths. */
    .navbar-toggler {
        min-width: 44px;
        min-height: 44px;
    }

    .navbar-collapse {
        padding-top: 0.5rem;
    }

    .wix-nav-list .nav-link {
        padding: 0.65rem 1rem;
    }

    /* Avoid invisible or horizontally shifted content if mobile animation loading is delayed. */
    [data-aos],
    [data-aos^="fade"],
    [data-aos="zoom-in"] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    /* Home page */
    .two-col .col-md-6 {
        margin-bottom: 1.5rem;
        text-align: left;
    }

    .two-col .wix-quote {
        text-align: center;
    }

    .two-col .wix-bottom-scribble {
        width: 100% !important;
        max-width: 320px !important;
    }

    .page-content-row {
        width: 100%;
    }

    .home-inline-quote {
        margin: 2rem auto;
    }

    .home-circles-section {
        padding-top: 1rem;
    }

    /* About page */
    main > .row.mb-5 {
        margin-bottom: 2rem !important;
    }

    .about-portrait {
        max-width: 320px;
    }

    .about-secondary-section {
        margin-top: 1.5rem;
    }

    .about-heads-img,
    .relationships-feature-img {
        max-width: 340px;
        margin-left: auto;
        margin-right: auto;
    }

    .qualifications-block {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
    }

    .about-accreditation-logos {
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .about-accreditation-logos > img {
        max-width: min(75%, 240px);
    }

    .about-accreditation-logo-pair {
        width: 100%;
        gap: 0.75rem;
    }

    .about-accreditation-logo-pair img {
        width: auto;
        max-width: calc(50% - 0.375rem);
    }

    /* Therapy, Relationships and Supervision */
    .therapy-page .therapy-row.mt-5,
    .relationships-page .row.mt-5,
    .supervision-page .row.mt-5,
    .resources-page .row.mt-5 {
        margin-top: 2rem !important;
    }

    .therapy-side-img,
    .relationships-img {
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }

    .supervision-subtitle {
        font-size: 1.45rem;
        line-height: 1.3;
    }

    .supervision-closing-quote {
        text-align: center;
    }

    /* Resources */
    .resources-page {
        padding: 0.5rem 0 2rem;
    }

    .resources-link-grid {
        gap: 0.85rem 1.5rem;
    }

    /* Contact areas and form */
    .wix-contact-section {
        padding: 2rem 0 1.5rem;
    }

    .wix-contact-email {
        font-size: 1.15rem;
        overflow-wrap: anywhere;
    }

    a[href^="mailto:"] {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .contact-card {
        padding: 1.25rem;
    }

    .contact-card .form-control,
    .contact-btn {
        min-height: 44px;
    }

    /* Footer */
    .global-wix-footer .row {
        align-items: center !important;
        justify-content: center;
        row-gap: 1rem;
        text-align: center;
    }

    .global-wix-footer .col-1 {
        display: none;
    }

    .global-wix-footer .col-2,
    .global-wix-footer .col-9 {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
    }

    .footer-img {
        max-width: 90px;
    }

    .footer-text {
        flex-wrap: wrap;
        justify-content: center;
        line-height: 1.45;
    }
}

@media (max-width: 575.98px) {
    html,
    body {
        font-size: 17px;
    }

    .resources-link-grid {
        grid-template-columns: 1fr;
    }
}
