/*
Theme Name: Precision Health - Child
Version: 1.0
Description: A child theme of DMM
Template: mts_schema
Text Domain: schema
*/
@import url("../mts_schema/style.css");

:root {
    --ph-navy: #0E3F6E;
    --ph-deep: #0A2E52;
    --ph-green: #6AA63B;
    --ph-cream: #F2F5E9;
    --ph-tint: #E9F1F8;
    --ph-ink: #123C60;
    --ph-body: #4E6274;
    --ph-line: #E4EBF2;
    --ph-serif: "Source Serif 4", Georgia, serif;
    --ph-sans: "Source Sans 3", system-ui, sans-serif;
    --ph-wrap: 1240px;
}

* { box-sizing: border-box; }

body.main {
    font-family: var(--ph-sans);
    color: var(--ph-body);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

#page.homepage { padding: 0; }

.ph-wrap {
    width: 100%;
    max-width: var(--ph-wrap);
    margin: 0 auto;
    padding: 0 32px;
}

.ph-eyebrow {
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    color: var(--ph-navy);
}

.ph-eyebrow.green { color: var(--ph-green); }
.ph-center { text-align: center; }

.ph-h1, .ph-h2, .ph-h3 {
    margin: 0 0 24px;
    font-family: var(--ph-serif);
    font-weight: 600;
    color: var(--ph-ink);
    line-height: 1.2;
    text-wrap: pretty;
}

.ph-h1 { font-size: 56px; line-height: 1.1; letter-spacing: -0.5px; color: var(--ph-navy); }
.ph-h2 { font-size: 38px; }
.ph-h3 { font-size: 31px; line-height: 1.28; }

.ph-btn, .ph-btn.no-bg {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 16px 26px;
    border: 1px solid var(--ph-navy);
    border-radius: 4px;
    background: var(--ph-navy);
    color: #fff !important;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition: background .25s ease, color .25s ease;
}

.ph-btn:hover { background: var(--ph-deep); border-color: var(--ph-deep); }
.ph-btn.ghost { background: rgba(255,255,255,.5); color: var(--ph-navy) !important; }
.ph-btn.ghost:hover { background: var(--ph-navy); color: #fff !important; }
.ph-btn.green { background: var(--ph-green); border-color: var(--ph-green); }
.ph-btn.green:hover { background: #5B9130; border-color: #5B9130; }
.ph-btn i { font-size: 10px; }

.ph-head {
    position: sticky;
    top: 0;
    z-index: 40;
    background: #fff;
    border-bottom: 1px solid #E8EEF4;
}

.ph-head__in, .ph-foot__in, .ph-foot__legal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.ph-head__in { padding: 18px 32px; }
.ph-logo { margin: 0; font-size: 19px; letter-spacing: 5px; color: var(--ph-navy); }
.ph-logo img { display: block; max-height: 48px; width: auto; }

.ph-nav ul, .ph-foot__meta, .ph-social, .ph-links, .ph-issues__grid, .ph-stars {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ph-nav ul { display: flex; align-items: center; gap: 30px; }

.ph-nav a {
    display: block;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    color: #5C7186;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    white-space: nowrap;
}

.ph-nav .current-menu-item > a,
.ph-nav .current_page_item > a,
.ph-nav a:hover { color: var(--ph-navy); border-color: var(--ph-navy); }

.ph-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ph-line);
    border-radius: 4px;
    color: var(--ph-navy);
    background: #fff;
}

.ph-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(105deg, #E3EDF7 0%, #EFF5FA 55%, #F6FAFC 100%);
}

.ph-hero__media {
    position: absolute;
    inset: 0 0 0 48%;
    background-position: center;
    background-size: cover;
}

.ph-hero__media:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #E5EEF7 0%, rgba(229,238,247,0) 38%);
}

.ph-hero__in {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    gap: 40px;
    padding: 78px 32px 96px;
}

.ph-hero__copy { align-self: start; }
.ph-hero__lead { margin: 0 0 18px; font-size: 17px; font-weight: 700; color: var(--ph-ink); }
.ph-hero__text { max-width: 430px; margin: 0 0 36px; font-size: 16.5px; line-height: 1.75; text-wrap: pretty; }
.ph-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.ph-stats {
    align-self: end;
    justify-self: end;
    display: flex;
    gap: 44px;
    padding: 30px 34px;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 18px 46px -22px rgba(14,63,110,.35);
}

.ph-stat { display: flex; align-items: center; gap: 14px; }
.ph-stat > span, .ph-test__by > span { display: flex; flex-direction: column; }

.ph-stat i, .ph-step i, .ph-issue i {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--ph-tint);
    color: var(--ph-navy);
    flex: 0 0 auto;
}

.ph-stat i { width: 44px; height: 44px; font-size: 17px; }
.ph-stat__num { display: block; font-family: var(--ph-serif); font-size: 34px; font-weight: 600; line-height: 1; color: var(--ph-green); }
.ph-stat__lbl { display: block; max-width: 110px; margin-top: 3px; font-size: 12.5px; line-height: 1.35; color: #54687A; }

.ph-section { padding: 74px 0; }
.ph-section.tight { padding: 30px 0 70px; }
.ph-section h2.ph-h2 { margin-bottom: 62px; }

.ph-steps { display: grid; grid-template-columns: repeat(3,1fr); max-width: 1000px; margin: 0 auto; }
.ph-step { position: relative; display: flex; flex-direction: column; align-items: center; padding: 0 26px; text-align: center; }
.ph-step i { position: relative; z-index: 2; width: 88px; height: 88px; font-size: 30px; background: var(--ph-cream); color: var(--ph-green); }
.ph-step:nth-child(even) i { background: var(--ph-tint); color: var(--ph-navy); }

.ph-step + .ph-step:before {
    content: "";
    position: absolute;
    top: 44px;
    right: calc(50% + 52px);
    left: calc(-50% + 52px);
    height: 1px;
    background: #D5E2EC;
}

.ph-step__head { display: flex; align-items: center; gap: 12px; margin: 22px 0 20px; }

.ph-step__num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #23663A;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.ph-step__title { font-size: 14px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--ph-navy); }
.ph-step p { max-width: 250px; margin: 0; font-size: 15.5px; line-height: 1.75; text-wrap: pretty; }

.ph-split { display: grid; grid-template-columns: 1.06fr 1fr; gap: 22px; }
.ph-issues { align-self: center; padding: 52px 48px 56px; background: var(--ph-cream); }
.ph-issues .ph-h3 { max-width: 400px; margin-bottom: 40px; }
.ph-issues__grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 30px 18px; }
.ph-issue { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; font-size: 12.5px; font-weight: 700; line-height: 1.4; color: var(--ph-ink); }
.ph-issue i { width: 54px; height: 54px; font-size: 19px; background: #E8EDDA; color: var(--ph-green); }

.ph-hosp { display: flex; flex-direction: column; background: var(--ph-tint); }
.ph-hosp__img { height: 264px; flex: 0 0 auto; background-position: center top; background-size: cover; }
.ph-hosp__body { padding: 38px 44px 46px; }
.ph-hosp__body p { margin: 0 0 20px; font-size: 16px; line-height: 1.75; text-wrap: pretty; }
.ph-hosp__body p:last-child { margin: 0; }
.ph-hosp__body strong { color: var(--ph-ink); }

.ph-tests { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }

.ph-test {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 30px 30px 32px;
    border: 1px solid var(--ph-line);
    border-radius: 4px;
    background: #fff;
}

.ph-stars { display: flex; gap: 4px; color: var(--ph-green); font-size: 14px; }
.ph-quote { margin: 0; font-family: var(--ph-serif); font-style: italic; font-size: 17px; line-height: 1.65; color: #2B4459; text-wrap: pretty; }
.ph-test__by { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.ph-test__by img, .ph-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; background: var(--ph-tint); }
.ph-test__by b { display: block; font-size: 14px; color: var(--ph-ink); }
.ph-test__by span { font-size: 13px; color: #6D8399; }
.ph-dots { display: flex; justify-content: center; gap: 9px; margin-top: 26px; }
.ph-dot { width: 9px; height: 9px; border: 0; padding: 0; border-radius: 50%; background: #CBD9E5; cursor: pointer; }

.ph-faqs { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px 34px; }
.ph-faq { overflow: hidden; border: 1px solid var(--ph-line); border-radius: 4px; background: #fff; }

.ph-faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 17px 20px;
    border: 0;
    background: none;
    text-align: left;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--ph-ink);
    cursor: pointer;
}

.ph-faq__q i { color: #8FA7BC; font-size: 12px; }
.ph-faq__a { height: 0; overflow: hidden; }
.ph-faq__a p { margin: 0; padding: 0 20px 20px; font-size: 15px; line-height: 1.7; }

.ph-locate {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: fit-content;
    margin: 32px auto 0;
    padding: 14px 26px;
    border: 1px solid var(--ph-line);
    border-radius: 4px;
    background: #fff;
    font-size: 14.5px;
}

.ph-locate i { color: var(--ph-green); }
.ph-locate strong { color: var(--ph-ink); }

.ph-news { padding: 52px 0; background: var(--ph-navy); color: #C6DCEC; }
.ph-news__in { display: grid; grid-template-columns: auto 1px 1.05fr 1.35fr; gap: 38px; align-items: center; }
.ph-news .ph-eyebrow { color: #9EC7E4; }
.ph-news .ph-h3 { margin: 0; font-size: 26px; line-height: 1.3; color: #fff; }
.ph-news__rule { width: 1px; height: 78px; background: #2B5D8C; }
.ph-news p { margin: 0 0 18px; font-size: 14.5px; line-height: 1.65; text-wrap: pretty; }
.ph-form { display: flex; gap: 14px; }
.ph-form input { flex: 1; min-width: 0; padding: 15px 18px; border: 0; border-radius: 4px; background: #fff; color: var(--ph-ink); font: 400 14.5px var(--ph-sans); }
.ph-form input::placeholder { color: #8FA7BC; }

.ph-foot { padding: 30px 0 26px; background: var(--ph-deep); }
.ph-foot__in, .ph-foot__legal { flex-wrap: wrap; }
.ph-foot__meta { display: flex; align-items: center; gap: 34px; flex-wrap: wrap; }
.ph-foot a, .ph-foot__meta a { font-size: 14px; color: #D5E5F1; }
.ph-foot a:hover { color: var(--ph-green); }
.ph-foot__meta i { margin-right: 10px; color: #9EC7E4; font-size: 13px; }
.ph-social { display: flex; align-items: center; gap: 18px; }
.ph-social a { color: #fff; font-size: 16px; }
.ph-foot__legal { margin-top: 18px; font-size: 12.5px; color: #8FB0C9; }
.ph-foot__legal a { font-size: 12.5px; color: #8FB0C9; }
.ph-foot__legal a:hover { color: #fff; }
.ph-links { display: flex; gap: 26px; }
.ph-foot__logo img { display: block; max-height: 40px; width: auto; }

@media (max-width: 1100px) {
    .ph-nav ul { gap: 20px; }
    .ph-h1 { font-size: 44px; }
    .ph-news__in { grid-template-columns: 1fr 1fr; }
    .ph-news__rule { display: none; }
}

@media (max-width: 900px) {
    .ph-toggle { display: flex; }
    .ph-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; padding: 12px 32px 24px; background: #fff; border-bottom: 1px solid var(--ph-line); }
    .ph-nav.open { display: block; }
    .ph-nav ul { flex-direction: column; align-items: flex-start; gap: 14px; }
    .ph-hero__media { position: relative; inset: auto; height: 320px; }
    .ph-hero__media:after { display: none; }
    .ph-hero__in, .ph-split, .ph-steps, .ph-tests, .ph-faqs { grid-template-columns: 1fr; }
    .ph-stats { justify-self: start; }
    .ph-step { padding: 0 0 40px; }
    .ph-step + .ph-step:before { display: none; }
    .ph-issues { padding: 40px 28px 44px; }
    .ph-issues__grid { grid-template-columns: repeat(3,1fr); }
    .ph-news__in { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .ph-wrap, .ph-head__in, .ph-hero__in { padding-left: 20px; padding-right: 20px; }
    .ph-h1 { font-size: 34px; }
    .ph-h2 { font-size: 28px; }
    .ph-h3 { font-size: 24px; }
    .ph-stats { flex-direction: column; gap: 22px; }
    .ph-issues__grid { grid-template-columns: repeat(2,1fr); }
    .ph-form { flex-direction: column; }
    .ph-head__in .ph-btn { display: none; }
}
