﻿/* ========================================= */
/* HOME UI STYLING (PAGE-SPECIFIC)       */
/* ========================================= */

/* --- 1. Container & Layout --- */

    .header .text h1 {
        font-weight: 100;
    }

/* --- 2. The Full-Width Background/Banner Image --- */
.banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../../images/banner background image.jpg');
    background-size: cover;
    background-position: right bottom;
}

    /* --- 3. The Gradient Fade (Light Grey) --- */
    .banner::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        /*background: linear-gradient(to right, rgba(242, 242, 242, 1) 0%,*/ /* Start light grey */
        /*rgba(242, 242, 242, 1) 40%, rgba(242, 242, 242, 0) 75%*/ /* Fade to transparent */
        /*);*/
    }

/* --- 4. Overlay Content & Positioning --- */
.content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    /*width: 50%;*/
    height: 100%;
    display: flex;
    align-items: center;
    padding-left: 5%;
    box-sizing: border-box;
}

/* --- 5, 6, 7. Text and Logo Styling (Vertical Layout) --- */
.text-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.text h2 {
    font-family: 'Calibre', sans-serif;
    font-size: 2.9em;
    color: #33C1C1;
    font-weight: 100;
    margin-bottom: 0;
    /* ... rest of H2 styles ... */
}

.text p {
    font-family: 'Calibre', sans-serif;
    font-size: 26px;
    color: var(--color-grey-darker);
    margin: 0 0 20px 0;
    font-weight: 500;
    /* ... rest of P styles ... */
    margin-bottom: 0;
    margin-top: -10px;
}

/* ... Logo styles ... */
.tablet-logo {
    width: 147px;
    height: auto;
    margin-left: 20px;
    padding-top: 10px;
}

    .tablet-logo img {
        width: 100%;
        display: block;
    }
/* ========================================= */
/* HOME PAGE STYLES (testimonials & intro)   */
/* ========================================= */

:root {
    --accent: #18bdb3;
    --muted: #bfbfbf;
    --light-green: #dde79a;
    --testimonial-gap: 28px;
}

/* Page intro block */
.page-intro {
    padding: 32px 0 64px;
    background: #fff;
    color: #333;
    font-family: 'Calibre', sans-serif;
}

    .page-intro .lead-text {
        color: var(--accent);
        font-style: italic;
        max-width: 1100px;
        margin: 0 0 18px;
        line-height: 1.5;
        font-size: 15px;
    }


.midcontainer {
    padding-left: 4rem;
    padding-right: 4rem;
}

/* Section title and rule matching screenshot */
.section-title {
    font-size: 22px;
    margin: 12px 0 6px;
    color: var(--color-title-gray);
    font-weight: 600;
}

.section-rule {
    /* 1. Reset default browser styling */
    border: none;
    border-top: 3px solid #A8A8A8; /* Use border-top for a clean line */
    background-color: transparent; /* Ensure background is clear */
    /* 2. Control positioning and size */
    margin-top: 5px; /* Space above the line (between H2 and line) */
    margin-bottom: 5px; /* Space below the line (between line and P) */
    /* 3. Ensure left alignment */
    margin-left: 0;
    /* === NEW: Rounded Ends === */
    border-radius: 1.5px; /* Half of the border-top thickness for a perfect semicircle */
    /* If the line thickness might change, a larger value like 100px or 50% also works */
}

/* Grid layout for testimonials */
.testimonials-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--testimonial-gap);
    align-items: start;
}

    /* Decorative icons (absolute positioned) */
    .testimonials-grid .deco {
        position: absolute;
        width: 64px;
        height: auto;
        opacity: 0.95;
        pointer-events: none;
    }



/* Placeholders: adjust offsets to match screenshot */
.deco-left-top {
    left: -10px;
    top: 0;
}

.deco-right-top {
    right: -10px;
    top: 6px;
}

.deco-left-bottom {
    left: -6px;
    bottom: 0;
    width: 72px;
}

    .deco-left-bottom.rotate90 {
        transform: rotate(90deg);
    }

.deco-right-bottom {
    right: -6px;
    bottom: -6px;
}



.highlight-yellow {
    color: var(--color-yellow_bright);
}

.highlight-black {
    color: var(--color-black);
}

.highlight-black-bolder {
    color: var(--color-black);
    font-weight: 600;
}

.highlight-green {
    color: var(--color-green);
}

.highlight-white {
    color: var(--color-white);
}

/* Testimonial card base */
.testimonial {
    padding-left: 4rem;
    padding: 28px;
    border-radius: 18px;
    box-sizing: border-box;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-weight: 300;
    font-size: 21px;
}

    .testimonial.leftTestimonial {
        margin-left: 4rem;
    }

    .testimonial.rihtTestimonial {
        margin-right: 4rem;
    }

    /* Individual styles to match the screenshot */
    .testimonial.t1 {
        background: var(--color-green);
        color: var(--color-white);
        border-radius: 18px;
    }
        .testimonial.t1 .author {
            color: var(--color-white);
        }

    .testimonial.t2 {
        background: #fff;
        color: var(--color-green);
        border: 2px solid var(--color-green);
        border-radius: 18px;
    }
        .testimonial.t2 .author {
            color: var(--color-black);
        }

    .testimonial.t3 {
        background: var(--color-yellow);
        color: var(--color-black);
        border-radius: 18px;
    }
        .testimonial.t3 .author {
            color: var(--color-black);
        }

    .testimonial.t4 {
        background: #dcdcdc;
        color: var(--color-black);
        border-radius: 18px;
    }
        .testimonial.t4 .author {
            color: var(--color-black);
        }

    /* Quote text */
    .testimonial .quote {
        margin: 0 0 14px;
        line-height: 1.6;
    }

    /* Author */
    .testimonial .author {
        margin: 0;
    }

.mobile-logo {
    display: none;
}

/* Responsive */
@media (max-width: 992px) {


    .tablet-logo {
        display: none;
    }
    /* Make header a vertical flex container so we can reorder banner and overlay */
    .header {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        height: auto;
        padding-bottom: 0.25rem;
        background-color: inherit;
    }

    /* Content overlay stacked first; convert to a horizontal row (logo left, text right) */
    .content-overlay {
        position: relative;
        order: 1;
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 12px;
        padding: 12px 14px;
        box-sizing: border-box;
        text-align: left;
        background: transparent;
    }

    /* Ensure the banner appears after the overlay in DOM flow */
    .banner {
        position: relative;
        order: 2;
        width: 100%;
        height: 160px; /* cropped image area like the screenshot */
        background-position: right bottom;
    }

    .mobile-logo {
        display: block;
        width: 48px; /* adjust size as needed */
        height: auto;
        flex-shrink: 0;
        margin-right: 6px;
        width: 83px;
    }

    .text {
        display: flex;
        align-items: center;
        gap: 10px; /* spacing between icon and text */
    }

    .testimonials-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

        .testimonials-grid .deco {
            width: 56px;
        }
}

@media (max-width: 767px) {

   
    .lead-text {
        font-size: 14px;
    }

    .section-title {
        font-size: 20px;
    }

    .midcontainer {
        padding-left: 0;
        padding-right: 0;
        text-align: center;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

        .testimonials-grid .deco {
            display: none;
        }
    /* hide decorative icons on small screens */
    .testimonial {
        min-height: auto;
    }

        .testimonial.leftTestimonial {
            margin-left: 0;
        }

        .testimonial.rihtTestimonial {
            margin-right: 0;
        }



    .testimonials-grid .deco.deco-left-top {
        display: block;
        position: relative;
        justify-self: right;
    }

    .testimonials-grid .deco.deco-right-top {
        display: block;
        position: relative;
        justify-self: left;
    }

    .deco.deco-left-bottom {
        display: block;
        position: relative;
        justify-self: right;
    }

        .deco.deco-left-bottom.rotate90 {
            transform: rotate(0);
        }

    .deco.deco-right-bottom {
        display: block;
        position: relative;
        justify-self: left;
    }
}

/* ========================== */
/* Mobile-first enhancements  */
/* ========================== */
@media (max-width: 480px) {

    /*.banner::before {*/
    /* lighter gradient so photo is visible */
    /*background: linear-gradient(to bottom, rgba(242,242,242,0.95) 0%, rgba(242,242,242,0.6) 35%, rgba(242,242,242,0.0) 100%);
        }*/

    /* Logo left */
    /*   .tablet-logo {
        width: 84px;
        flex: 0 0 auto;
        margin: 0;
    }*/

    .tablet-logo img {
        display: block;
        width: 100%;
        height: auto;
    }

    /* Text to the right of logo */
    .text-content {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        flex: 1 1 auto;
        min-width: 0; /* allow truncation/wrapping */
    }


    /* Intro paragraph centered and constrained under banner */
    .page-intro {
        padding: 16px 10px 36px;
    }

        .page-intro .lead-text {
            text-align: center;
            margin: 12px auto 18px;
            max-width: 520px;
            font-size: 15px;
            line-height: 1.6;
            padding: 0 6px;
        }

    /* Center the section title and make rule shorter */
    .section-title {
        text-align: center;
        font-size: 18px;
    }

    .section-rule {
        width: 70px;
        margin: 12px auto 18px;
        border-radius: 2px;
    }

    /* Make testimonial cards full width and increase rounding */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .testimonial {
        padding: 22px;
        border-radius: 22px;
    }

        .testimonial.t1 {
            border-radius: 26px;
            padding: 22px;
        }

    /* small adjustments for spacing */
    .content-overlay + .page-intro {
        margin-top: 6px;
    }
}


    /* Extra small screens */
@media (max-width: 458px) {
    .tablet-logo {
        display: none;
    }
    /* Make header a vertical flex container so we can reorder banner and overlay */
    .header {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        height: auto;
        padding-bottom: 0.25rem;
        background-color: inherit;
    }

    /* Content overlay stacked first; convert to a horizontal row (logo left, text right) */
    .content-overlay {
        position: relative;
        order: 1;
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 12px;
        padding: 12px 14px;
        box-sizing: border-box;
        text-align: left;
        background: transparent;
    }

    /* Ensure the banner appears after the overlay in DOM flow */
    .banner {
        position: relative;
        order: 2;
        width: 100%;
        height: 160px; /* cropped image area like the screenshot */
        background-position: right bottom;
    }

    .mobile-logo {
        display: block;
        width: 48px; /* adjust size as needed */
        height: auto;
        flex-shrink: 0;
        margin-right: 6px;
    }


    .tablet-logo {
        width: 76px;
    }


    .page-intro .lead-text {
        font-size: 14px;
        padding: 0 10px;
    }



    /* Ensure heading and subtitle don't have unexpected margins on mobile */
    .text h2 {
        margin: 0;
        font-size: 1.1rem; /* tweak if needed */
        font-family: 'Calibre', sans-serif;
        color: var(--accent);
        font-weight: 600;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .text p {
        margin: 0;
        font-size: 0.95rem;
        font-family: 'Calibre', sans-serif;
        color: #9aa;
        font-weight: 300;
        line-height: 1.2;
    }
}


    /* Extra small screens */
    @media (max-width: 1116px) {
        .banner {
            opacity: 0.8;
        }
    }
    