/* =========================================================
   PHC COMPONENTS
   Header and footer styles are intentionally excluded.
   ========================================================= */


/* =========================================================
   HERO SECTION
   ========================================================= */

.phc-homepage {
    width: 100%;
}

.phc-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    background:
        linear-gradient(
            90deg,
            #eefaf8 0%,
            #f4fbfa 38%,
            #edfafa 68%,
            #e5f8f7 100%
        );
}


/* =========================================================
   MAIN HERO LAYOUT
   ========================================================= */

.phc-hero-layout {
    position: relative;
    display: grid;
    grid-template-columns: 40% 32% 28%;
    width: calc(100% - 100px);
    max-width: 1640px;
    min-height: 526px;
    margin-inline: auto;
    align-items: stretch;
}


/* =========================================================
   LEFT HERO CONTENT
   ========================================================= */

.phc-hero-content {
    position: relative;
    z-index: 5;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;

    min-width: 0;

    /*
     * Controlled internal spacing.
     */
    padding: 42px 34px 38px 0;
}


/* Eyebrow */

.phc-eyebrow {
    display: block;
    max-width: 100%;
    margin: 0 0 20px;

    color: #008b87;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 3px;
    text-transform: uppercase;
}


/* Main heading */

.phc-hero-content h1 {
    width: 100%;
    max-width: 650px;
    margin: 0;

    color: #123553;
    font-size: clamp(48px, 3.8vw, 64px);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -2.5px;
}


/* Description */

.phc-hero-content p {
    width: 100%;
    max-width: 610px;
    margin: 22px 0 24px;

    color: #58758d;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.48;
}


/* =========================================================
   HERO TABS
   ========================================================= */

.phc-hero-tabs {
    display: flex;
    width: 340px;
    height: 52px;
    margin-bottom: 12px;
}

.phc-tab {
    flex: 1;
    height: 52px;
    padding: 0 20px;

    border: 1px solid #cddfe2;
    background: #ffffff;
    color: #123553;

    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.phc-tab:first-child {
    border-radius: 9px 0 0 9px;
}

.phc-tab:last-child {
    border-radius: 0 9px 9px 0;
}

.phc-tab--active {
    border-color: #009c96;
    background: #009c96;
    color: #ffffff;
}


/* =========================================================
   HERO SEARCH
   ========================================================= */

.phc-search-form {
    display: flex;
    align-items: center;

    width: 100%;
    max-width: 710px;
    height: 62px;
    padding: 6px;

    border: 1px solid #cddfe2;
    border-radius: 12px;
    background: #ffffff;

    box-shadow: 0 3px 12px rgba(25, 75, 90, 0.035);
}

.phc-search-input-wrap {
    display: flex;
    flex: 1;
    align-items: center;

    min-width: 0;
    height: 100%;
}

.phc-search-input-wrap svg {
    flex: 0 0 25px;
    width: 25px;
    height: 25px;
    margin: 0 17px 0 13px;
    color: #009c96;
}

.phc-search-input-wrap input {
    width: 100%;
    min-width: 0;
    height: 100%;
    padding: 0;

    border: 0;
    outline: none;
    background: transparent;
    color: #123553;

    font-size: 16px;
}

.phc-search-input-wrap input::placeholder {
    color: #7890a4;
    opacity: 1;
}

.phc-search-form > button {
    flex: 0 0 116px;
    width: 116px;
    height: 50px;

    border: 0;
    border-radius: 9px;
    background: #009c96;
    color: #ffffff;

    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}


/* =========================================================
   POPULAR SEARCHES
   ========================================================= */

.phc-popular-searches {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;

    margin-top: 12px;

    color: #55748b;
    font-size: 13px;
}

.phc-popular-searches > span {
    margin-right: 3px;
}

.phc-popular-searches a {
    display: inline-flex;
    align-items: center;

    min-height: 30px;
    padding: 5px 14px;

    border-radius: 20px;
    background: rgba(255, 255, 255, 0.84);
    color: #123553;

    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}


/* =========================================================
   CENTER FAMILY VISUAL
   ========================================================= */

.phc-hero-visual {
    position: relative;
    z-index: 2;
    min-width: 0;
    min-height: 526px;
    overflow: visible;
}

.phc-family-image-wrap {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -145px;
    right: 0;
    overflow: hidden;
}

.phc-family-image-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(
            90deg,
            #eefaf8 0%,
            rgba(238, 250, 248, 0.92) 8%,
            rgba(238, 250, 248, 0.45) 20%,
            rgba(238, 250, 248, 0.05) 38%,
            rgba(238, 250, 248, 0) 55%
        ),
        linear-gradient(
            270deg,
            rgba(229, 248, 247, 0.95) 0%,
            rgba(229, 248, 247, 0.65) 12%,
            rgba(229, 248, 247, 0.15) 32%,
            rgba(229, 248, 247, 0) 52%
        );
}

.phc-family-image-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 150px;
    z-index: 2;
    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            rgba(238, 250, 248, 0) 0%,
            rgba(238, 250, 248, 0.35) 55%,
            rgba(238, 250, 248, 0.9) 100%
        );
}

.phc-family-image-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 526px;
    object-fit: cover;
    object-position: center center;
}


/* =========================================================
   RIGHT BENEFITS
   ========================================================= */

/* =========================================================
   RIGHT BENEFITS
   ========================================================= */

.phc-hero-benefits {
    position: relative;
    z-index: 6;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 24px;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 50px 12px 0 28px;
}

.phc-benefit-item {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    min-width: 0;
    min-height: 72px;
}

.phc-benefit-icon {
    display: flex;
    flex: 0 0 84px;
    align-items: center;
    justify-content: center;

    width: 84px;
    height: 84px;

    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 20px rgba(30, 80, 90, 0.07);
    color: #009c96;
}

.phc-benefit-icon svg {
    display: block;
    width: 38px;
    height: 38px;
    max-width: 38px;
    max-height: 38px;
}

.phc-benefit-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    overflow: visible;
}

.phc-benefit-content strong {
    display: block;
    color: #123553;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.phc-benefit-content span {
    display: block;
    margin-top: 7px;
    color: #58758d;
    font-size: 17px;
    line-height: 1.25;
    white-space: nowrap;
}


/* =========================================================
   TRUSTED CARD
   ========================================================= */

.phc-trusted-card {
    position: absolute;
    right: 24px;
    bottom: 34px;
    z-index: 10;
    display: flex;
    align-items: center;
    width: min(365px, calc(100% - 48px));
    min-height: 126px;
    padding: 20px 22px;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 30px rgba(25, 75, 90, 0.08);
    backdrop-filter: blur(8px);
}


/* Trusted mark */

.phc-trusted-mark {
    display: flex;
    flex: 0 0 66px;
    align-items: center;
    justify-content: center;

    width: 66px;
    height: 76px;
    margin-right: 17px;
}

.phc-trusted-mark::before {
    content: "◢";
    display: block;

    color: #39b95a;
    font-size: 68px;
    line-height: 1;

    transform: rotate(-25deg);
}


/* Trusted content */

.phc-trusted-content {
    display: flex;
    flex-direction: column;

    min-width: 0;
}

.phc-trusted-content > span {
    color: #6c8294;
    font-size: 15px;
    line-height: 1.2;
}

.phc-trusted-content strong {
    margin-top: 3px;

    color: #123553;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.05;
}

.phc-trusted-content small {
    margin-top: 5px;

    color: #58758d;
    font-size: 13px;
    line-height: 1.2;
    white-space: nowrap;
}


/* Trusted arrow */

.phc-trusted-arrow {
    display: flex;
    flex: 0 0 46px;
    align-items: center;
    justify-content: center;

    width: 46px;
    height: 46px;
    margin-left: auto;

    border-radius: 50%;
    background: #009c96;
    color: #ffffff;

    font-size: 27px;
    line-height: 1;
}



/* =========================================================
   PHC OUR BUSINESSES SECTION
   ========================================================= */

.phc-businesses-section {
    width: 100%;
    background: #ffffff;
    padding: 42px 0 52px;
}

.phc-businesses-container {
    width: min(calc(100% - 60px), 1320px);
    margin: 0 auto;
}


/* =========================================================
   SECTION HEADING
   ========================================================= */

.phc-businesses-heading {
    max-width: 760px;
    margin: 0 auto 24px;
    text-align: center;
}

.phc-businesses-eyebrow {
    display: block;
    margin: 0 0 5px;

    color: #009b98;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.phc-businesses-heading h2 {
    margin: 0;

    color: #123653;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.12;
}

.phc-businesses-heading p {
    max-width: 680px;
    margin: 9px auto 0;

    color: #55728d;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
}


/* =========================================================
   OUR BUSINESSES — CARDS
   ========================================================= */

.phc-businesses-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
}


/* =========================================================
   CARD
   ========================================================= */

.phc-business-card {
    position: relative;
    display: flex;
    min-width: 0;
    height: 205px;
    overflow: hidden;
    isolation: isolate;

    border-radius: 10px;
}


/* =========================================================
   CARD BACKGROUND IMAGE
   Image covers the complete card.
   ========================================================= */

.phc-business-card-image {
    position: absolute;
    inset: 0;
    z-index: -2;

    width: 100%;
    height: 100%;
    overflow: hidden;
}

.phc-business-card-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: right center;
}


/* =========================================================
   SOFT BLEND OVER IMAGE
   This is what removes the hard vertical split.
   ========================================================= */

.phc-business-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;

    pointer-events: none;

    background: linear-gradient(
        90deg,
        var(--phc-card-bg) 0%,
        var(--phc-card-bg) 30%,
        color-mix(
            in srgb,
            var(--phc-card-bg) 72%,
            transparent
        ) 48%,
        color-mix(
            in srgb,
            var(--phc-card-bg) 18%,
            transparent
        ) 63%,
        transparent 76%
    );
}


/* =========================================================
   CARD COLOURS
   ========================================================= */

.phc-business-card--retail {
    --phc-card-bg: #eef9ed;
}

.phc-business-card--lab {
    --phc-card-bg: #eef6ff;
}

.phc-business-card--wholesale {
    --phc-card-bg: #fff1e9;
}


/* =========================================================
   CARD CONTENT
   ========================================================= */
.phc-business-card-content {
    position: relative;
    z-index: 2;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    width: 58%;
    min-width: 0;

    padding: 14px 0 14px 16px;
    box-sizing: border-box;
}


/* =========================================================
   ICON
   ========================================================= */

.phc-business-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;
    margin-bottom: 9px;

    flex: 0 0 38px;

    border-radius: 50%;

    color: #ffffff;
}

.phc-business-card--retail .phc-business-icon {
    background: #009f98;
}

.phc-business-card--lab .phc-business-icon {
    background: #347bd8;
}

.phc-business-card--wholesale .phc-business-icon {
    background: #ff6b2c;
}

.phc-business-icon svg {
    width: 19px;
    height: 19px;
}


/* =========================================================
   TITLE
   ========================================================= */

.phc-business-card h3 {
    margin: 0 0 5px;

    color: #07365b;

    font-size: 22px;
    font-weight: 800;
    line-height: 1.05;
}
/* =========================================================
   SHORT DESCRIPTION
   ========================================================= */

.phc-business-card .phc-business-short {
    width: 100%;
    max-width: 205px;

    margin: 0 0 5px;

    color: #07365b;

    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
}


/* =========================================================
   SUPPORTING DESCRIPTION
   ========================================================= */

.phc-business-card .phc-business-description {
    width: 100%;
    max-width: 205px;

    margin: 0;

    color: #294f70;

    font-size: 10px;
    font-weight: 400;
    line-height: 1.3;
}


/* =========================================================
   BUTTON
   ========================================================= */

.phc-business-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    margin-top: 10px;
    padding: 8px 13px;

    border-radius: 4px;

    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

.phc-business-button span {
    font-size: 13px;
    line-height: 1;
}

.phc-business-card--retail .phc-business-button {
    background: #009f98;
}

.phc-business-card--lab .phc-business-button {
    background: #2878d8;
}

.phc-business-card--wholesale .phc-business-button {
    background: #ff6b2c;
}

.phc-business-button span {
    font-size: 13px;
    line-height: 1;
}


/* =========================================================
   IMAGE POSITIONING
   ========================================================= */

.phc-business-card--retail .phc-business-card-image img {
    object-position: 82% center;
}

.phc-business-card--lab .phc-business-card-image img {
    object-position: 82% center;
}

.phc-business-card--wholesale .phc-business-card-image img {
    object-position: 82% center;
}

/* =========================================================
   HERO ACTIONS
   ========================================================= */

.phc-hero-actions {
    display: flex;
    align-items: center;
    gap: 10px;

    width: 100%;
    max-width: 420px;

    margin: 0 0 12px;
}

.phc-hero-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 150px;
    height: 46px;

    padding: 0 20px;

    border-radius: 9px;

    font-size: 15px;
    font-weight: 700;
    line-height: 1;

    text-decoration: none;

    box-sizing: border-box;

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background-color 0.18s ease;
}

.phc-hero-action:hover {
    transform: translateY(-1px);
}

.phc-hero-action--primary {
    background: #009c96;
    color: #ffffff;
}

.phc-hero-action--primary:hover {
    background: #008f89;
    color: #ffffff;
}

.phc-hero-action--secondary {
    border: 1px solid #cddfe2;
    background: #ffffff;
    color: #123553;
}

.phc-hero-action--secondary:hover {
    background: #f7fbfb;
    color: #123553;
}


/* =========================================================
   VOICE SEARCH BUTTON
   ========================================================= */

.phc-voice-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 52px;

    width: 52px;
    height: 46px;

    padding: 0;

    border: 0;
    border-radius: 9px;

    background: #009c96;
    color: #ffffff;

    cursor: pointer;

    transition:
        background-color 0.18s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.phc-voice-button svg {
    display: block;

    width: 21px;
    height: 21px;
}

.phc-voice-button:hover {
    background: #008f89;
    transform: translateY(-1px);
}

.phc-voice-button:focus-visible {
    outline: 3px solid rgba(0, 156, 150, 0.25);
    outline-offset: 2px;
}

.phc-voice-button.is-listening {
    background: #123553;
    box-shadow: 0 0 0 4px rgba(18, 53, 83, 0.12);
}

.phc-voice-button.is-listening svg {
    animation: phc-mic-pulse 1.2s ease-in-out infinite;
}

@keyframes phc-mic-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.12);
    }
}


/* =========================================================
   VOICE SEARCH POPUP
   ========================================================= */

.phc-voice-overlay {
    position: fixed;
    inset: 0;

    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(18, 53, 83, 0.28);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease;

    box-sizing: border-box;
}

.phc-voice-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.phc-voice-modal {
    width: min(420px, 100%);

    padding: 32px 28px 28px;

    border-radius: 20px;

    background: #ffffff;

    box-shadow:
        0 20px 60px rgba(18, 53, 83, 0.20);

    text-align: center;

    box-sizing: border-box;

    transform: translateY(10px) scale(0.98);

    transition: transform 0.2s ease;
}

.phc-voice-overlay.is-visible .phc-voice-modal {
    transform: translateY(0) scale(1);
}


/* ---------------------------------------------------------
   MICROPHONE
   --------------------------------------------------------- */

.phc-voice-modal-mic {
    width: 64px;
    height: 64px;

    margin: 0 auto 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #e8f8f6;
    color: #009c96;
}

.phc-voice-modal-mic svg {
    width: 30px;
    height: 30px;
}

.phc-voice-overlay.is-listening .phc-voice-modal-mic {
    animation: phc-voice-ring 1.4s ease-in-out infinite;
}

@keyframes phc-voice-ring {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(0, 156, 150, 0.20);
    }

    50% {
        box-shadow: 0 0 0 12px rgba(0, 156, 150, 0.08);
    }
}


/* ---------------------------------------------------------
   STATUS
   --------------------------------------------------------- */

.phc-voice-modal-title {
    display: block;

    margin: 0 0 7px;

    color: #123553;

    font-size: 20px;
    line-height: 1.2;
    font-weight: 800;
}

.phc-voice-modal-status {
    display: block;

    min-height: 22px;

    margin: 0;

    color: #55738f;

    font-size: 14px;
    line-height: 1.4;
}


/* ---------------------------------------------------------
   LIVE TRANSCRIPT
   --------------------------------------------------------- */

.phc-voice-transcript {
    min-height: 58px;

    margin: 20px 0 0;
    padding: 14px 16px;

    border: 1px solid #dcebed;
    border-radius: 10px;

    background: #f8fcfc;

    color: #123553;

    font-size: 17px;
    line-height: 1.4;
    font-weight: 600;

    text-align: left;

    box-sizing: border-box;
}

.phc-voice-transcript:empty::before {
    content: "Speak your search...";

    color: #8aa1b4;

    font-weight: 400;
}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 767px) {

    .phc-voice-button {
        flex: 0 0 46px;

        width: 46px;
        height: 42px;
    }

    .phc-voice-button svg {
        width: 20px;
        height: 20px;
    }

    .phc-voice-overlay {
        padding: 16px;
    }

    .phc-voice-modal {
        padding: 28px 20px 22px;
        border-radius: 18px;
    }

    .phc-voice-modal-mic {
        width: 58px;
        height: 58px;
    }

    .phc-voice-modal-title {
        font-size: 19px;
    }

    .phc-voice-transcript {
        font-size: 16px;
    }
}