/*
Theme Name: Jupiter Family Healthcare
Version: 1.0
Author: JP-Webs
Description: A contemporary, native WordPress theme for Jupiter Family Healthcare.
*/
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 30px; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { text-underline-offset: 4px; }
a:hover { color: #973d2a; }
:focus-visible { outline: 3px solid #b74f37; outline-offset: 5px; }
.wp-site-blocks > *, .home .wp-block-post-content > * { margin-block-start: 0; }
:is(.masthead, .brand-family, .header-actions, .nav-row, .hero, .quick-links, .branch-directory, .service-grid, .subpage,
    .split-section, .quote-grid, .footer-grid, .footer-bottom, .profile, .team-grid) > * { margin-block-start: 0; }
.section-inner { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: none; }
.wp-block-button__link { transition: background .2s, transform .2s; text-decoration: none; }
.wp-block-button__link:hover { background: #973d2a; color: white; transform: translateY(-2px); }
.is-style-outline .wp-block-button__link { border: 1px solid #9caaa9; color: #17659f; background: transparent; }
.is-style-outline .wp-block-button__link:hover { background: #d5e9ed; }
.masthead { display: flex; align-items: center; justify-content: space-between;
    width: min(1180px, calc(100% - 40px)); padding-block: 22px; gap: 30px; }
.brand-family { display: flex; align-items: center; gap: clamp(18px, 2.5vw, 32px); }
.brand-family figure { margin: 0; }
.brand-family img { display: block; width: 220px; height: auto; }
.header-actions { display: flex; align-items: center; flex: none; gap: 24px; }
.header-actions p { margin: 0; font-size: 14px; line-height: 1.65; }
.header-actions p a { color: #17659f; font-size: 18px; font-weight: 600; text-decoration: none; }
.nav-band { border-block: 1px solid #ffffff33; background: #327082; color: white; }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-block: 17px; }
.nav-row .wp-block-navigation, .nav-row > p { font-size: 14px; font-weight: 600; color: white; }
.nav-row .wp-block-navigation__container { gap: 27px; }
.nav-row > p { margin: 0; white-space: nowrap; }
.nav-band .nav-row > p > a:any-link { text-decoration-thickness: 2px; }
.wp-block-navigation a { text-decoration: none; }
.nav-band .wp-block-navigation .wp-block-navigation__submenu-container { padding: 12px; min-width: 210px;
    background: #235769; border-color: #ffffff33; color: white; }
.wp-block-navigation .wp-block-navigation__submenu-container a { padding: 8px 12px; }
.hero-band { position: relative; isolation: isolate; background: #fff3e7; }
.hero { display: grid; grid-template-columns: min(480px, 43%) 1fr; align-items: center;
    min-height: 632px; padding-block: 60px 176px; }
.hero-copy > * { max-width: 480px; margin-block: 0 23px; }
.hero h1 { letter-spacing: -.025em; text-wrap: balance; }
.hero h1 em { color: #b74f37; font-style: normal; }
.hero .lead { max-width: 440px; font-size: 18px; color: #50656c; }
.hero-photo, .branch-photo { position: absolute; inset: 0; margin: 0; z-index: -1; }
.hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: right center;
    mask-image: linear-gradient(90deg, transparent 28%, #0002 43%, #000 60%); }
.hero-note { display: flex; gap: 12px; align-items: center; font-size: 16px; color: #586b71; }
.hero-note::before { content: ''; width: 36px; height: 3px; flex-shrink: 0; background: #b74f37; }
.home .quick-strip { position: relative; z-index: 1; height: 0; margin: 0; padding: 0;
    scroll-margin-top: 160px; }
.quick-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; transform: translateY(-50%); }
.quick-links p, .service-card, .concierge-band .split-copy, .testimonials-band > .section-inner {
    background: #fff3e7; border-radius: 12px; box-shadow: 0 12px 28px #124c6b1f; }
.quick-links p { margin: 0; padding: 24px; background: white; box-shadow: 0 12px 24px #092b3f4d; }
.quick-links a { display: block; color: #203b47; text-align: center; text-decoration: none; }
.quick-links strong { display: block; color: #327082; font-size: 21px; line-height: 1.3; }
.quick-links span { display: block; font-size: 14px; margin-top: 10px; }
.quick-links img { display: block; width: 96px; height: 96px; object-fit: contain;
    margin: 0 auto 16px; }
.home-section { padding-block: 80px; }
.section-heading { display: grid; justify-items: center; gap: 14px; text-align: center; margin-bottom: 38px; }
.section-heading h2, .testimonials-band h2 { max-width: 700px; margin: 0; text-wrap: balance; }
.section-heading p { max-width: 680px; margin: 0; }
.branch-logo { margin: 0; }
.branch-logo img { display: block; width: 190px; height: 95px; object-fit: contain; }
.family-band { position: relative; isolation: isolate; background: #124c6b; color: white;
    min-height: 680px; padding-top: 224px; }
.family-band .split-copy { max-width: 480px; }
.family-band h2, .contact-band h2, .branch-directory h3 { color: white; }
.branch-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: right top;
    mask-image: linear-gradient(90deg, transparent 20%, #0002 43%, #000 70%); }
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 24px; }
.service-card { display: flex; flex-direction: column; padding: 24px; }
.service-card > * { margin-block: 0 16px; }
.service-card > figure:first-child { margin: -24px -24px 24px; overflow: hidden; border-radius: 12px 12px 0 0; }
.service-card figure:not(.branch-logo) img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.service-card h3 { font-size: 24px; color: #203b47; }
.service-card p { font-size: 15px; color: #3f555c; }
.service-card .wp-block-buttons { margin-top: auto; }
.branch-phone, .service-card .branch-phone { font-size: 13px; }
.split-section { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; }
.split-section > figure { margin: 0; align-self: stretch; }
.split-section > figure img { display: block; width: 100%; height: 100%; min-height: 560px;
    object-fit: cover; object-position: 58% top; border-radius: 12px; }
.split-copy h2 { margin-block: 12px 22px; text-wrap: balance; }
.split-copy > p { margin-block: 16px; }
.concierge-band { background: linear-gradient(120deg, #d5e9ed, #c3dce5); }
.concierge-band .split-copy { margin-left: -44px; padding: 38px; position: relative; }
.wellness-band { background: linear-gradient(#fff3e7, #f4d3b8); }
.care-values { list-style: none; padding: 0; margin-block: 20px; }
.care-values li { border-top: 1px solid #cad7ce; padding: 10px 0; font-size: 15px; }
.care-values li::before { content: '✓'; color: #327082; margin-right: 12px; }
.testimonials-band { background: #d5e9ed; }
.testimonials-band > .section-inner { padding: clamp(16px, 3.6vw, 48px); }
.testimonials-band h2::before {
    content: "“" / "";
    margin-inline-end: .14em;
    color: #b74f37;
    font: 1.4em/.6 Georgia, serif;
}
.quote-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    font: clamp(18px, 1.65vw, 21px)/1.5 var(--wp--preset--font-family--body);
}
.quote-grid :is(blockquote, p), .branch-directory :is(h3, p) { margin: 0; }
.quote-grid blockquote:first-child { padding-inline-end: clamp(20px, 3vw, 42px); }
.quote-grid blockquote + blockquote { padding-inline-start: clamp(20px, 3vw, 42px); }
.quote-grid cite { margin-block-start: 8px; font: 600 14px/1.6 var(--wp--preset--font-family--body); }
.home .contact-band h2 { margin-block: 0 clamp(26px, 3.5vw, 48px); }
.contact-band { background: #124c6b; color: white; }
.branch-directory, .footer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.branch-directory > div { padding-inline: clamp(78px, 7vw, 96px) 12px; color: #d5e9ed; }
.quote-grid blockquote + blockquote, .branch-directory > div + div { border-inline-start: 1px solid #7199a7; }
.branch-directory h3 { position: relative; font-size: clamp(18px, 1.6vw, 22px); }
.branch-directory img {
    position: absolute;
    inset: 0 calc(100% + 12px) auto auto;
    padding: 4px;
    background: #fff3e7;
    border-radius: 50%;
}
.branch-directory p { font: 15px/1.65 var(--wp--preset--font-family--body); }
.branch-directory a[href^="tel:"] {
    display: inline-block;
    font: 600 clamp(21px, 1.9vw, 28px)/44px var(--wp--preset--font-family--body);
}
.contact-links { text-align: center; margin: 28px 0 0; }
.site-footer { background: #fff3e7; padding-block: 56px 24px; border-top: 4px solid #b74f37; }
.footer-grid { gap: 48px; }
.footer-grid h2, .footer-grid h3 { font-size: 18px; margin-top: 0; }
.footer-grid p, .footer-grid a { font-size: 14px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; margin-top: 40px;
    border-top: 1px solid #cad7ce; padding-top: 22px; }
.footer-bottom p { margin: 0; font-size: 12px; }
:is(.nav-band, .family-band, .branch-directory, .contact-links) a { color: white; }
:is(.nav-band, .family-band, .branch-directory, .contact-links) a:any-link:hover { color: #fff3e7; text-decoration: underline; }
:is(.nav-band, .family-band, .contact-links, .contact-band) :focus-visible { outline-color: white; }
.page-banner { background: radial-gradient(ellipse at top right, #327082, transparent 65%), #124c6b;
    padding-block: 56px; color: white; }
.page-banner h1 { max-width: 1000px; margin-block: 10px 0; color: white; font-size: clamp(2rem, 4.5vw, 3.75rem); }
.page-body { padding-block: 64px 88px; }
.page-body .entry-content { max-width: 1100px; margin-inline: auto; }
.page-body .entry-content h2 { margin-top: 0; font-size: clamp(1.65rem, 2.8vw, 2.25rem); }
.page-body .entry-content h3 { margin-top: 0; font-size: 24px; }
.page-body .subpage { display: grid; gap: 48px; margin: 0; }
.page-body .entry-content .wp-block-image { margin: 0; }
.page-body .entry-content .wp-block-image:not(.branch-logo) img { display: block; border-radius: 16px;
    min-height: 0; max-height: 520px; width: 100%; height: auto; object-fit: cover; }
.page-body .split-section { gap: 40px; }
.page-body .entry-content li { margin-block: 8px; }
.page-body .two-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.page-body .service-card:not(.contact-band), .profile, .team-card, .wp-block-query .wp-block-post {
    background: white; border-radius: 16px; box-shadow: 0 12px 28px #124c6b12; }
.profile { display: grid; grid-template-columns: 200px 1fr; gap: 32px; padding: 32px; }
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
:is(.profile, .team-card) img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.profile .role, .team-card p { color: #586b71; font-size: 14px; }
.team-card { padding: clamp(12px, 2vw, 20px); }
.team-card h4 { font-size: clamp(1rem, 2vw, 1.5rem); margin-block: 16px 6px; }
.single-post .entry-content, .entry-content:has(> .reading-page) { max-width: 800px; }
.page-body .contact-band :is(h2, h3, h4, p, a) { color: white; }
.page-body details summary { cursor: pointer; color: #17659f; font-weight: 600; }
.preview-note { padding: 20px; background: #d5e9ed; border-radius: 12px; }
.contact-preview label { display: block; margin-block: 16px; font-weight: 600; }
.contact-preview input, .contact-preview textarea { display: block; width: 100%; border: 1px solid #c3cfcb;
    border-radius: 8px; padding: 12px; background: #fff; font: inherit; }
fieldset[disabled] { border: 0; margin: 0; padding: 0; }
.page-body .article-content { gap: 20px; }
.wp-block-query .wp-block-post { padding: 28px; }
@media (max-width: 1050px) {
    .brand-family { gap: 18px; }
    .brand-family img { width: 180px; }
    .header-actions p { display: none; }
    .nav-row .wp-block-navigation__container { gap: 18px 10px; }
    .hero.section-inner { width: 100%; grid-template-columns: 1fr; min-height: 0; padding-block: 36px 0; }
    .hero-copy { padding-inline: 32px; }
    .hero-photo { position: static; }
    .hero-photo img { height: 400px; mask-image: linear-gradient(transparent, #000 25%); }
    .family-band.home-section { padding-bottom: 0; min-height: 0; }
    .split-section, .page-body .two-column { grid-template-columns: 1fr; gap: 32px; }
    .concierge-band .split-copy { margin: -64px 16px 0; padding: 28px; }
    .split-section > figure img { height: clamp(360px, 50vw, 500px); min-height: 0; }
    .family-band .branch-photo { position: static; margin-top: 24px; }
    .branch-photo img { height: clamp(260px, 50vw, 400px); mask-image: linear-gradient(transparent, #000 12%); }
}
@media (max-width: 900px) {
    .quote-grid, .branch-directory { grid-template-columns: 1fr; }
    .branch-directory > div { padding: 16px 0 16px 66px; }
    .quote-grid blockquote:first-child { padding: 0 0 20px; }
    .quote-grid blockquote + blockquote { padding: 20px 0 0; }
    .quote-grid blockquote + blockquote, .branch-directory > div + div {
        border-inline-start: 0; border-top: 1px solid #7199a7;
    }
}
@media (max-width: 760px) {
    .section-inner { width: calc(100% - 40px); }
    .masthead { width: calc(100% - 24px); flex-direction: column; gap: 18px; padding-block: 20px; }
    .brand-family { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .brand-family figure:first-child { grid-column: 1 / -1; width: calc((100% - 18px) / 2); }
    .brand-family img { margin-inline: auto; }
    .brand-family figure:first-child img { margin-left: 0; }
    .header-actions { position: absolute; top: 24px; right: 12px; }
    .header-actions .wp-block-button__link { padding: 10px 14px; font-size: 13px; }
    .nav-row { min-height: 56px; padding-block: 12px; }
    .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none !important; }
    .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex !important; }
    .nav-band .wp-block-navigation .wp-block-navigation__responsive-container.has-modal-open.is-menu-open {
        padding: 30px; background: #327082; color: white; }
    .hero-copy { padding-inline: 20px; }
    .home .quick-strip { height: auto; padding-block: 24px; scroll-margin-top: 0; }
    .quick-links { grid-template-columns: 1fr; gap: 16px; transform: none; }
    .home-section { padding-block: 56px; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; gap: 10px; }
    .page-banner { padding-block: 36px; }
    .page-body { padding-block: 36px 56px; }
    .profile { grid-template-columns: 1fr; gap: 12px; }
    .profile > figure { max-width: 200px; }
    .team-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 390px) {
    .header-actions .wp-block-button__link { padding-inline: 10px; font-size: 12px; }
    .hero-photo img { height: 340px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .wp-block-button__link { transition: none; }
}
