/* =========================================================
   File: /assets3/css/index3.css
   RehabCo index2 V4
   Symmetrical white gully + timing stack above image
   ========================================================= */

:root{
    --navy:#07384f;
    --navy-dark:#022a3d;
    --teal:#18a9aa;
    --teal-soft:#5bd1ce;
    --white:#fff;
    --text:#153b4c;
    --muted:#6f858e;
    --line:#dce7e8;
    --font-heading:"Playfair Display",Georgia,serif;
    --font-body:"DM Sans",Arial,sans-serif;
    --container:1260px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:#fff;color:var(--text);font-family:var(--font-body)}
a{color:inherit;text-decoration:none}
.container{width:min(calc(100% - 48px),var(--container));margin:auto}


/* HERO */

.hero{
    position:relative;
    min-height:760px;
    background:url("../images/hero-rehab.png") center/cover no-repeat;
    overflow:hidden;
}

.hero-overlay{
    position:absolute;
    inset:0;
    background:linear-gradient(
        90deg,
        rgba(2,35,51,.90) 0%,
        rgba(2,35,51,.67) 39%,
        rgba(2,35,51,.17) 71%,
        rgba(2,35,51,.05) 100%
    );
}

.site-header{
    position:absolute;
    top:28px;
    left:0;
    width:100%;
    z-index:10;
}

.nav-wrap{
    min-height:82px;
    padding:0 18px;
    display:flex;
    align-items:center;
    gap:28px;
    background:rgba(3,40,57,.46);
    border:1px solid rgba(255,255,255,.17);
    border-radius:10px;
    backdrop-filter:blur(16px);
    -webkit-backdrop-filter:blur(16px);
}

.brand{
    min-width:220px;
    display:flex;
    align-items:center;
    gap:11px;
    color:#fff;
}

.brand-mark{
    width:45px;
    height:45px;
    display:grid;
    place-items:center;
    border-radius:50%;
    background:var(--teal);
    font-size:15px;
    font-weight:700;
}

.brand-copy strong{
    display:block;
    font:600 24px/1 var(--font-heading);
}

.brand-copy small{
    display:block;
    margin-top:5px;
    color:rgba(255,255,255,.70);
    font-size:9px;
    letter-spacing:.08em;
}

.main-nav{
    margin-left:auto;
    display:flex;
    align-items:center;
    gap:28px;
}

.main-nav a{
    position:relative;
    padding:29px 0;
    color:rgba(255,255,255,.90);
    font-size:13px;
    font-weight:500;
}

.main-nav a::after{
    content:"";
    position:absolute;
    left:0;
    bottom:21px;
    width:0;
    height:1px;
    background:var(--teal-soft);
    transition:.25s;
}

.main-nav a:hover::after,
.main-nav a.active::after{
    width:100%;
}

.nav-button{
    padding:14px 18px;
    background:var(--teal);
    color:#fff;
    font-size:11px;
    font-weight:700;
    letter-spacing:.05em;
    text-transform:uppercase;
}

.hero-content{
    position:relative;
    z-index:4;
    min-height:760px;
    padding-top:130px;
    display:flex;
    align-items:center;
}

.hero-copy{max-width:720px}

.eyebrow,
.section-eyebrow{
    display:inline-flex;
    align-items:center;
    gap:12px;
    color:var(--teal);
    font-size:11px;
    font-weight:700;
    letter-spacing:.16em;
}

.eyebrow::after,
.section-eyebrow::after{
    content:"";
    width:50px;
    height:1px;
    background:currentColor;
}

.hero h1{
    margin:24px 0;
    color:#fff;
    font:500 76px/.98 var(--font-heading);
    letter-spacing:-.035em;
}

.hero h1 em{color:#8ee0dd}

.hero-copy>p{
    max-width:570px;
    color:rgba(255,255,255,.82);
    font-size:17px;
    line-height:1.75;
}

.hero-actions{
    display:flex;
    gap:12px;
    margin-top:34px;
}

.btn{
    min-height:50px;
    padding:0 22px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:12px;
    font-size:11px;
    font-weight:700;
    letter-spacing:.06em;
    text-transform:uppercase;
}

.btn-primary{
    background:var(--teal);
    color:#fff;
}

.btn-secondary{
    border:1px solid rgba(255,255,255,.43);
    background:rgba(255,255,255,.08);
    color:#fff;
}

.hero-note{
    position:absolute;
    right:0;
    bottom:52px;
    width:310px;
    padding:20px 22px;
    background:rgba(255,255,255,.90);
    border-left:4px solid var(--teal);
    color:var(--navy);
}

.hero-note small{
    color:var(--teal);
    font-size:10px;
    font-weight:700;
    letter-spacing:.12em;
}

.hero-note p{
    margin:7px 0 0;
    color:#58717a;
    font-size:12px;
    line-height:1.55;
}


/* ABOUT */

.about-section{
    padding:28px 0 112px;
    background:#fff;
}

.about-heading{
    margin-top:0;
    margin-bottom:-72px;
    position:relative;
    z-index:2;
}

.about-heading h2{
    max-width:720px;
    margin:18px 0 0;
    color:var(--navy);
    font:500 60px/.98 var(--font-heading);
    letter-spacing:-.035em;
}

.about-heading h2 em{
    color:var(--teal);
}

.about-grid{
    display:grid;
    grid-template-columns:58% 42%;
    gap:70px;
    align-items:start;
}

.about-visual{
    position:relative;
}

/*
   Increased top space intentionally:
   the timing card now lives mostly ABOVE the image.
*/
.image-shell{
    position:relative;
    height:520px;
    margin-top:150px;
}

.team-image{
    position:absolute;
    inset:0;
    background:url("../images/team-rehab.png") center center / cover no-repeat;
    border-radius:24px;
}

/*
   SINGLE BACK-CARD WRAPPER:
   Using padding gives the teal card a PERFECTLY SYMMETRICAL
   white gully on top, right, bottom and left.
*/
.hours-stack{
    position:absolute;
    z-index:8;
    top:-148px;
    right:-150px;
    width:320px;
    padding:14px;
    background:#fff;
    border-radius:28px;
    box-shadow:0 18px 42px rgba(7,56,79,.08);
}

/*
   Front teal card.
   No separate positioning = equal white border on every side.
*/
.hours-card{
    width:100%;
    padding:23px 24px;
    background:var(--teal);
    color:#fff;
    border-radius:20px;
}

.hours-card h3{
    margin:0 0 14px;
    color:#fff;
    font:500 25px/1.1 var(--font-heading);
}

.hour-row{
    padding:10px 0;
    display:flex;
    justify-content:space-between;
    gap:14px;
    border-top:1px solid rgba(255,255,255,.20);
    font-size:11px;
}

.hour-row strong{
    font-weight:600;
}


/* LEGACY */

.legacy-column{
    padding-top:20px;
    padding-left:72px;
    position:relative;
    z-index:2;
}

.legacy-number{
    position:relative;
    display:inline-flex;
    align-items:flex-start;
    margin:0 0 20px 18px;
}

.number-fill{
    display:inline-block;
    font:600 116px/.75 var(--font-heading);
    letter-spacing:-.08em;
    color:transparent;

    background:url("../images/team-rehab.png") center 47% / 480px auto no-repeat;

    -webkit-background-clip:text;
    background-clip:text;
}

.legacy-number sup{
    margin:-18px 0 0 6px;
    color:var(--teal);
    font:400 52px/1 var(--font-heading);
}

.legacy-label{
    display:block;
    margin:0 0 15px 18px;
    color:var(--teal);
    font-size:10px;
    font-weight:700;
    letter-spacing:.16em;
}

.legacy-column>h3{
    max-width:470px;
    margin:0 0 18px 18px;
    color:var(--navy);
    font:500 36px/1.08 var(--font-heading);
    letter-spacing:-.025em;
}

.legacy-column>p{
    max-width:650px;
    margin:0 0 0 -118px;
    color:var(--muted);
    font-size:15px;
    line-height:1.8;
}

.team-trust{
    margin:20px 0 0 -118px;
    display:flex;
    align-items:center;
    gap:15px;
}

.trust-avatars{
    display:flex;
}

.avatar{
    width:42px;
    height:42px;
    margin-right:-8px;
    border:3px solid #fff;
    border-radius:50%;
    background-image:url("../images/team-rehab.png");
    background-size:390px auto;
}

.a1{background-position:15% 38%}
.a2{background-position:47% 30%}
.a3{background-position:80% 36%}

.team-trust strong,
.team-trust small{
    display:block;
}

.team-trust strong{
    color:var(--navy);
    font-size:16px;
    line-height:1.35;
    font-weight:700;
}

.team-trust small{
    margin-top:5px;
    color:#667f89;
    font-size:13px;
    line-height:1.45;
}

.about-features{
    width:calc(100% + 138px);
    margin:22px 0 0 -118px;
    display:grid;
    grid-template-columns:repeat(3,1fr);
    border-top:1px solid var(--line);
}

.about-features>div{
    padding:20px 26px 4px 0;
}

.about-features>div+div{
    padding-left:24px;
    border-left:1px solid var(--line);
}

.about-features span,
.about-features strong,
.about-features small{
    display:block;
}

.about-features span{
    margin-bottom:10px;
    color:var(--teal);
    font-size:13px;
    line-height:1.3;
    font-weight:700;
}

.about-features strong{
    color:var(--navy);
    font-size:16px;
    line-height:1.35;
    font-weight:700;
}

.about-features small{
    margin-top:7px;
    color:#667f89;
    font-size:13px;
    line-height:1.55;
}




/* =========================================================
   COMPREHENSIVE SERVICES
   ========================================================= */

.services-section{
    padding:96px 0 105px;
    background:#f4f9f8;
}

.services-heading{
    display:grid;
    grid-template-columns:1.15fr .85fr;
    gap:80px;
    align-items:end;
    margin-bottom:48px;
}

.services-heading h2{
    margin:18px 0 0;
    color:var(--navy);
    font:500 56px/.98 var(--font-heading);
    letter-spacing:-.035em;
}

.services-heading h2 em{
    color:var(--teal);
}

.services-heading>p{
    max-width:480px;
    margin:0 0 4px auto;
    color:var(--muted);
    font-size:16px;
    line-height:1.75;
}

.services-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:24px;
}

.service-card{
    position:relative;
    min-height:390px;
    padding:34px 34px 30px;
    display:flex;
    flex-direction:column;
    background:#fff;
    border:1px solid #d6e3e4;
    border-radius:18px;
    overflow:hidden;
    transition:
        transform .32s ease,
        box-shadow .32s ease,
        border-color .32s ease,
        background .32s ease;
}

.service-card::before{
    content:"";
    position:absolute;
    left:0;
    top:0;
    width:100%;
    height:4px;
    background:var(--teal);
    transform:scaleX(0);
    transform-origin:left;
    transition:transform .32s ease;
}

.service-card:hover{
    transform:translateY(-8px);
    border-color:rgba(24,169,170,.55);
    box-shadow:0 22px 55px rgba(7,56,79,.11);
    background:#fff;
}

.service-card:hover::before{
    transform:scaleX(1);
}

.service-icon{
    width:76px;
    height:76px;
    display:grid;
    place-items:center;
    background:var(--teal);
    border-radius:16px;
    transition:
        transform .32s ease,
        border-radius .32s ease,
        background .32s ease;
}

.service-icon svg{
    width:44px;
    height:44px;
    fill:none;
    stroke:#fff;
    stroke-width:2;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.service-card:hover .service-icon{
    transform:translateY(-4px) rotate(-2deg);
    border-radius:50%;
    background:var(--navy);
}

.service-number{
    position:absolute;
    top:37px;
    right:34px;
    color:#a4b7bd;
    font-size:12px;
    font-weight:700;
    letter-spacing:.12em;
    transition:color .3s ease;
}

.service-card:hover .service-number{
    color:var(--teal);
}

.service-card h3{
    margin:0 0 14px;
    color:var(--navy);
    font:500 30px/1.08 var(--font-heading);
    letter-spacing:-.02em;
}

.service-card p{
    margin:0 0 28px;
    color:#667f89;
    font-size:15px;
    line-height:1.7;
}

.service-card>a{
    margin-top:auto;
    padding-top:19px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    border-top:1px solid var(--line);
    color:var(--navy);
    font-size:14px;
    font-weight:700;
    transition:color .3s ease;
}

.service-card>a span{
    font-size:20px;
    color:var(--teal);
    transition:transform .3s ease;
}

.service-card:hover>a{
    color:var(--teal);
}

.service-card:hover>a span{
    transform:translate(5px,-3px);
}

.services-bottom{
    margin-top:34px;
    padding-top:26px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:30px;
    border-top:1px solid #d6e3e4;
}

.services-bottom>span{
    color:#607983;
    font-size:15px;
}

.services-bottom>a{
    display:inline-flex;
    align-items:center;
    gap:14px;
    color:var(--navy);
    font-size:13px;
    font-weight:700;
    letter-spacing:.04em;
    text-transform:uppercase;
}

.services-bottom>a span{
    color:var(--teal);
    font-size:19px;
    transition:transform .25s ease;
}

.services-bottom>a:hover span{
    transform:translate(4px,-3px);
}

@media(max-width:1080px){
    .services-heading{
        grid-template-columns:1fr;
        gap:24px;
    }

    .services-heading>p{
        max-width:650px;
        margin-left:0;
    }

    .services-grid{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:680px){
    .services-section{
        padding:75px 0 82px;
    }

    .services-heading h2{
        font-size:44px;
    }

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

    .service-card{
        min-height:0;
    }

    .services-bottom{
        align-items:flex-start;
        flex-direction:column;
    }
}


/* FOOTER */

.site-footer{
    background:var(--navy-dark);
    color:#fff;
}

.footer-grid{
    padding:70px 0 56px;
    display:grid;
    grid-template-columns:1.5fr 1fr 1fr 1.15fr;
    gap:65px;
}

.footer-brand{
    min-width:0;
}

.footer-about>p{
    max-width:320px;
    margin:22px 0 26px;
    color:#b8c9cf;
    font-size:13px;
    line-height:1.75;
}

.socials{
    display:flex;
    gap:10px;
}

.socials a{
    width:34px;
    height:34px;
    display:grid;
    place-items:center;
    border:1px solid rgba(255,255,255,.14);
    font-size:11px;
}

.footer-col h4{
    margin:0 0 22px;
    color:#fff;
    font-size:12px;
    letter-spacing:.12em;
    text-transform:uppercase;
}

.footer-col a{
    display:block;
    margin:9px 0;
    color:#b8c9cf;
    font-size:13px;
}

.footer-col p{
    margin:0 0 10px;
    color:#b8c9cf;
    font-size:13px;
    line-height:1.65;
}

.footer-bottom{
    border-top:1px solid rgba(255,255,255,.13);
}

.footer-bottom-wrap{
    min-height:68px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    color:#8ca3ac;
    font-size:11px;
}


/* RESPONSIVE */

@media(max-width:1080px){
    .legacy-column>p,
    .team-trust,
    .about-features{
        margin-left:0;
    }
    .about-features{
        width:100%;
    }

    .main-nav{
        display:none;
    }

    .nav-button{
        margin-left:auto;
    }

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

    .legacy-column{
        padding-top:18px;
        padding-left:0;
    }
    .legacy-number,
    .legacy-label,
    .legacy-column>h3,
    .legacy-column>p,
    .team-trust,
    .about-features{
        margin-left:0;
    }

    .footer-grid{
        grid-template-columns:1.4fr 1fr 1fr;
    }

    .footer-grid>:last-child{
        grid-column:1/-1;
    }
}

@media(max-width:760px){

    .container{
        width:min(calc(100% - 28px),var(--container));
    }

    .site-header{
        top:14px;
    }

    .nav-wrap{
        min-height:72px;
        padding:0 14px;
    }

    .brand{
        min-width:auto;
    }

    .brand-copy small{
        display:none;
    }

    .nav-button{
        display:none;
    }

    .hero{
        min-height:680px;
        background-position:58% center;
    }

    .hero-content{
        min-height:680px;
        padding-top:110px;
    }

    .hero h1{
        font-size:49px;
    }

    .hero-copy>p{
        font-size:15px;
    }

    .hero-note{
        display:none;
    }

    .about-section{
        padding:28px 0 85px;
    }

    .about-heading h2{
        font-size:46px;
    }

    .image-shell{
        height:460px;
        margin-top:165px;
    }

    .hours-stack{
        top:-150px;
        right:0;
        width:min(320px,88vw);
    }

    .legacy-column>h3{
        font-size:32px;
    }

    .about-features{
        grid-template-columns:1fr;
    }

    .about-features>div+div{
        padding-left:0;
        border-left:0;
        border-top:1px solid var(--line);
    }

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

    .footer-about{
        grid-column:1/-1;
    }
}

@media(max-width:500px){

    .hero h1{
        font-size:42px;
    }

    .hero-actions{
        flex-wrap:wrap;
    }

    .about-heading h2{
        font-size:39px;
    }

    .image-shell{
        height:420px;
        margin-top:180px;
    }

    .hours-stack{
        top:-162px;
        width:100%;
        padding:12px;
        border-radius:26px;
    }

    .hours-card{
        padding:24px;
        border-radius:20px;
    }

    .number-fill{
        font-size:92px;
    }

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

    .footer-about{
        grid-column:auto;
    }

    .footer-bottom-wrap{
        display:block;
        padding:20px 0;
    }

    .footer-bottom-wrap span{
        display:block;
        margin:4px 0;
    }
}


/* =========================================================
   SERVICE CARD IMAGE SLIDE-OUT HOVER
   ========================================================= */

.service-media{
    position:relative;
    width:100%;
    height:76px;
    margin-bottom:26px;
    overflow:visible;
    z-index:2;
}

.service-media .service-icon{
    position:absolute;
    z-index:3;
    left:0;
    top:0;
}

.service-hover-image{
    position:absolute;
    z-index:2;
    left:54px;
    top:0;
    width:0;
    height:76px;
    opacity:0;
    overflow:hidden;
    border-radius:0 16px 16px 0;
    background-size:cover;
    background-position:center;
    box-shadow:0 10px 30px rgba(7,56,79,.08);
    transform:translateX(-18px);
    transition:
        width .42s cubic-bezier(.22,.61,.36,1),
        opacity .22s ease,
        transform .42s cubic-bezier(.22,.61,.36,1);
}

/* The related image slides out from behind the icon and remains visible
   for as long as the pointer stays anywhere on the service card. */
.service-card:hover .service-hover-image{
    width:190px;
    opacity:1;
    transform:translateX(0);
}

/* Keep the icon square while the photo extends to its right. */
.service-card:hover .service-icon{
    transform:translateY(-4px);
    border-radius:16px;
    background:var(--navy);
}

/* Shift the service number away from the expanded hover photo. */
.service-card:hover .service-number{
    transform:translateY(1px);
}

@media(max-width:680px){
    .service-card:hover .service-hover-image{
        width:min(190px,55vw);
    }
}


/* =========================================================
   SERVICE HOVER IMAGE V3
   Equal-height icon + fully revealed image
   ========================================================= */

.service-card{
    overflow:hidden;
}

/* Header strip reserves enough width for both icon and image */
.service-visual{
    position:relative;
    width:100%;
    height:76px;
    margin-bottom:26px;
    overflow:visible;
}

/* Icon remains exactly 76px high */
.service-visual .service-icon{
    position:relative;
    z-index:3;
    width:76px;
    height:76px;
    margin:0;
    flex:0 0 76px;
}

/* Image starts directly behind the icon */
.service-hover-image{
    position:absolute;
    z-index:2;
    top:0;
    left:0;

    height:76px;
    width:calc(100% - 76px);

    border-radius:0 16px 16px 0;
    overflow:hidden;

    background-size:cover;
    background-position:center;

    opacity:0;
    transform:translateX(0);
    transition:
        transform .42s cubic-bezier(.22,.61,.36,1),
        opacity .22s ease;
}

/*
   On hover image travels exactly one icon-width to the right.
   Final state:
   icon = 76px wide
   image = remaining visual-strip width
   both = 76px tall
*/
.service-card:hover .service-hover-image{
    opacity:1;
    transform:translateX(76px);
}

/* Keep icon square/consistent instead of turning circular on hover */
.service-card:hover .service-visual .service-icon{
    transform:translateY(-2px);
    border-radius:16px;
    background:var(--navy);
}

/* Slightly widen the visual region visually on larger cards */
@media(min-width:1081px){
    .service-visual{
        width:100%;
    }
}

@media(max-width:680px){
    .service-visual{
        height:72px;
    }

    .service-visual .service-icon{
        width:72px;
        height:72px;
        flex-basis:72px;
    }

    .service-hover-image{
        height:72px;
        width:calc(100% - 72px);
    }

    .service-card:hover .service-hover-image{
        transform:translateX(72px);
    }
}


/* =========================================================
   SERVICE HOVER IMAGE V4
   Full balanced header strip
   ========================================================= */

/*
   The nested wrappers are deliberately forced to use the full
   available inner width of each card.
*/
.service-media,
.service-visual{
    display:block;
    position:relative;
    width:100%;
    height:76px;
    overflow:hidden;
}

.service-media{
    margin-bottom:26px;
}

/* Equal-height icon anchored at the left. */
.service-visual .service-icon{
    position:absolute;
    z-index:4;
    top:0;
    left:0;
    width:76px;
    height:76px;
    margin:0;
    border-radius:16px;
}

/*
   The photograph occupies ALL remaining header width after the icon.
   It begins off-canvas behind the icon and slides fully into place.
*/
.service-visual .service-hover-image{
    position:absolute;
    z-index:2;
    top:0;
    left:76px;

    width:calc(100% - 76px);
    height:76px;

    border-radius:0 16px 16px 0;
    background-size:cover;
    background-position:center;

    opacity:0;
    transform:translateX(-100%);
    transition:
        transform .42s cubic-bezier(.22,.61,.36,1),
        opacity .20s ease;
}

.service-card:hover .service-visual .service-hover-image{
    opacity:1;
    transform:translateX(0);
}

/* Keep the icon stable and visually paired with the image. */
.service-card:hover .service-visual .service-icon{
    transform:none;
    border-radius:16px 0 0 16px;
    background:var(--navy);
}

/*
   Place the service number above the image strip without reducing
   the usable photo width.
*/
.service-number{
    z-index:6;
}

.service-card:hover .service-number{
    color:#fff;
    text-shadow:0 1px 5px rgba(7,56,79,.45);
}

/* Mobile keeps the same 1:1 icon/image height relationship. */
@media(max-width:680px){
    .service-media,
    .service-visual{
        height:72px;
    }

    .service-visual .service-icon{
        width:72px;
        height:72px;
    }

    .service-visual .service-hover-image{
        left:72px;
        width:calc(100% - 72px);
        height:72px;
    }
}


/* =========================================================
   SERVICES INTRO COPY V5
   Larger, more editorial and senior-friendly
   ========================================================= */

.services-heading .services-intro{
    position:relative;
    max-width:560px;
    margin:0 0 5px auto;
    padding:4px 0 4px 24px;

    color:#456572;
    font-size:22px;
    line-height:1.58;
    font-weight:400;
    letter-spacing:-.01em;
}

/* Teal editorial accent */
.services-heading .services-intro::before{
    content:"";
    position:absolute;
    left:0;
    top:8px;
    bottom:8px;

    width:3px;
    border-radius:3px;
    background:var(--teal);
}

/* Key phrases receive subtle emphasis, not heavy bolding */
.services-heading .services-intro strong{
    color:var(--navy);
    font-weight:600;
}

/* Tablet */
@media(max-width:1080px){
    .services-heading .services-intro{
        max-width:680px;
        margin-left:0;
        font-size:20px;
    }
}

/* Mobile */
@media(max-width:680px){
    .services-heading .services-intro{
        padding-left:18px;
        font-size:18px;
        line-height:1.6;
    }
}


/* =========================================================
   SERVICES BOTTOM CTA V6
   ========================================================= */

.services-bottom{
    margin-top:42px;
    padding:30px 34px;

    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:34px;

    background:#ffffff;
    border:1px solid #d6e3e4;
    border-radius:16px;
}

.services-help{
    display:flex;
    flex-direction:column;
    gap:6px;
}

.services-help-label{
    color:var(--teal);
    font-size:11px;
    font-weight:700;
    letter-spacing:.14em;
}

.services-help strong{
    max-width:620px;
    color:var(--navy);
    font:500 24px/1.28 var(--font-heading);
    letter-spacing:-.015em;
}

.services-all-btn{
    min-width:205px;
    min-height:54px;
    padding:0 22px;

    display:inline-flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;

    background:var(--navy);
    border:1px solid var(--navy);
    border-radius:8px;

    color:#fff;
    font-size:12px;
    font-weight:700;
    letter-spacing:.07em;
    text-transform:uppercase;

    transition:
        background .28s ease,
        border-color .28s ease,
        transform .28s ease;
}

.services-all-btn span{
    color:var(--teal-soft);
    font-size:20px;
    transition:transform .28s ease;
}

.services-all-btn:hover{
    background:var(--teal);
    border-color:var(--teal);
    transform:translateY(-2px);
}

.services-all-btn:hover span{
    color:#fff;
    transform:translate(4px,-3px);
}

@media(max-width:760px){
    .services-bottom{
        padding:26px;
        align-items:flex-start;
        flex-direction:column;
    }

    .services-help strong{
        font-size:21px;
    }

    .services-all-btn{
        width:100%;
    }
}

/* =========================================================
   WORDPRESS INTEGRATION + INNER PAGES
   ========================================================= */

body.admin-bar .site-header{top:60px}
@media(max-width:782px){body.admin-bar .site-header{top:60px}}

.rehabco-menu{list-style:none;margin:0;padding:0;display:flex;align-items:center;gap:28px}
.rehabco-menu li{margin:0;padding:0}
.rehabco-menu .current-menu-item>a,.rehabco-menu .current_page_item>a{color:#fff}
.rehabco-menu .current-menu-item>a::after,.rehabco-menu .current_page_item>a::after{width:100%}

.custom-logo-wrap,.custom-logo-link{display:flex;align-items:center}.custom-logo{max-height:54px;width:auto}

.menu-toggle{display:none;margin-left:8px;width:44px;height:44px;padding:11px;border:1px solid rgba(255,255,255,.22);border-radius:8px;background:rgba(255,255,255,.08)}
.menu-toggle span{display:block;height:2px;background:#fff;margin:5px 0}

.inner-hero{position:relative;min-height:470px;padding-top:132px;background:linear-gradient(135deg,#052f43 0%,#07384f 58%,#0a6270 100%);color:#fff;overflow:hidden}
.inner-hero::after{content:"";position:absolute;right:-180px;bottom:-250px;width:560px;height:560px;border:1px solid rgba(91,209,206,.22);border-radius:50%}
.inner-site-header{top:28px}
.inner-hero-content{position:relative;z-index:2;padding-top:90px;padding-bottom:80px}
.inner-hero h1{max-width:850px;margin:20px 0 18px;color:#fff;font:500 68px/.98 var(--font-heading);letter-spacing:-.035em}
.inner-hero h1 em{color:#8ee0dd}
.inner-hero-content>p{max-width:720px;color:#c5d9df;font-size:18px;line-height:1.75}
.inner-page{background:#fff}
.content-section{padding:90px 0}
.soft-section{padding:75px 0;background:#f3f8f7}
.entry-content{font-size:17px;line-height:1.8;color:#526f79}
.entry-content h2,.content-section h2{color:var(--navy);font:500 48px/1.05 var(--font-heading);letter-spacing:-.025em}

.two-col-content{display:grid;grid-template-columns:1fr 1fr;gap:70px;align-items:center}
.two-col-content p{color:#607b85;font-size:17px;line-height:1.8}
.content-image{min-height:480px;border-radius:28px;background-size:cover;background-position:center}
.team-photo{background-image:url('../images/team-rehab.png')}

.feature-grid-large{display:grid;grid-template-columns:repeat(3,1fr);gap:28px}
.feature-grid-large>div{padding:32px;background:#fff;border:1px solid #dce7e8;border-radius:16px}
.feature-grid-large span{color:var(--teal);font-size:13px;font-weight:700}
.feature-grid-large h3{margin:10px 0;color:var(--navy);font:500 28px/1.1 var(--font-heading)}
.feature-grid-large p{margin:0;color:#677f89;font-size:15px;line-height:1.7}

.standalone-services{padding-top:80px}
.service-detail-grid{display:grid;grid-template-columns:48% 52%;gap:70px;align-items:center;padding-top:90px;padding-bottom:90px}
.service-detail-image{min-height:560px;border-radius:30px;background-size:cover;background-position:center}
.service-detail-copy h2{margin:18px 0;color:var(--navy);font:500 50px/1.02 var(--font-heading)}
.service-detail-copy>p{color:#607b85;font-size:17px;line-height:1.8}
.detail-points{margin:34px 0;display:grid;gap:0;border-top:1px solid var(--line)}
.detail-points>div{padding:19px 0;border-bottom:1px solid var(--line);display:grid;grid-template-columns:145px 1fr;gap:20px}
.detail-points strong{color:var(--navy)}
.detail-points span{color:#687f88;font-size:14px;line-height:1.6}

.specialists-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:28px}
.specialist-card{padding-bottom:26px;border-bottom:1px solid var(--line)}
.specialist-photo{height:380px;border-radius:22px;background-size:cover;background-position:center top;margin-bottom:20px}
.specialist-card h3{margin:0 0 6px;color:var(--navy);font:500 28px/1.1 var(--font-heading)}
.specialist-card strong{color:var(--teal);font-size:13px}.specialist-card p{color:#667f89;font-size:14px;line-height:1.7}

.case-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:26px}
.case-card{min-height:300px;padding:34px;border:1px solid var(--line);border-radius:18px;background:#f7fbfa}
.case-card span{color:var(--teal);font-size:11px;font-weight:700;letter-spacing:.12em}.case-card h3{color:var(--navy);font:500 30px/1.1 var(--font-heading)}.case-card p{color:#667f89;line-height:1.75}

.contact-grid{display:grid;grid-template-columns:38% 62%;gap:70px}
.contact-info{padding:38px;background:#f3f8f7;border-radius:18px}.contact-info h2{font-size:44px}.contact-info p{font-size:16px;color:#607b85;line-height:1.7}.contact-info strong{color:var(--navy)}
.rehabco-form{padding:38px;background:#fff;border:1px solid var(--line);border-radius:18px;display:grid;grid-template-columns:1fr 1fr;gap:22px}
.rehabco-form label{display:block;color:var(--navy);font-size:13px;font-weight:700}.rehabco-form input,.rehabco-form select,.rehabco-form textarea{width:100%;margin-top:8px;padding:14px;border:1px solid #cfdfe1;border-radius:7px;background:#fff;color:#183f4e;font:15px var(--font-body)}
.rehabco-form label:has(textarea){grid-column:1/-1}.rehabco-form button{width:max-content;border:0}.form-success{grid-column:1/-1;padding:14px 16px;background:#e7f8f4;color:#0a6d68;border-radius:7px;font-weight:600}
.appointment-layout{max-width:900px}.appointment-form{grid-template-columns:1fr 1fr}

.not-found-box{text-align:center;padding:70px 0}
.post-card{padding:24px 0;border-bottom:1px solid var(--line)}.post-card h2{font-size:34px}

/* WordPress fixes for the approved home design. */
.hero{background-image:url('../images/hero-rehab.png')}
.team-image{background-image:url('../images/team-rehab.png')}
.number-fill{background-image:url('../images/team-rehab.png')}
.avatar{background-image:url('../images/team-rehab.png')}
.site-footer a:hover{color:#fff}
.footer-bottom a{color:inherit}

@media(max-width:1080px){
  .menu-toggle{display:block}.nav-button{margin-left:auto}.main-nav{display:none;position:absolute;top:92px;left:24px;right:24px;padding:18px;background:#053347;border-radius:12px;box-shadow:0 18px 45px rgba(0,0,0,.18)}.main-nav.is-open{display:block}.rehabco-menu{display:flex;flex-direction:column;align-items:stretch;gap:0}.rehabco-menu a{display:block;padding:13px 10px}.inner-hero h1{font-size:56px}.two-col-content,.service-detail-grid,.contact-grid{grid-template-columns:1fr}.specialists-grid,.case-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:680px){
  .inner-hero{min-height:410px;padding-top:92px}.inner-hero-content{padding-top:80px;padding-bottom:55px}.inner-hero h1{font-size:43px}.inner-hero-content>p{font-size:16px}.content-section{padding:68px 0}.entry-content h2,.content-section h2{font-size:39px}.feature-grid-large,.specialists-grid,.case-grid{grid-template-columns:1fr}.content-image,.service-detail-image{min-height:380px}.service-detail-grid{gap:38px;padding-top:65px;padding-bottom:65px}.detail-points>div{grid-template-columns:1fr;gap:6px}.rehabco-form,.appointment-form{grid-template-columns:1fr;padding:24px}.rehabco-form label:has(textarea){grid-column:auto}.contact-grid{gap:35px}.inner-site-header{top:14px}
}
