/* CareMed V5 Professional - cleaner, inline, sharp corporate layout */
:root{
    --blue:#1598d2;
    --blue-dark:#0877aa;
    --green:#62b532;
    --green-dark:#43891f;
    --navy:#0e2b3d;
    --navy-2:#153b52;
    --text:#4d606b;
    --muted:#71818a;
    --soft:#f5f9fb;
    --soft-green:#f3faef;
    --white:#ffffff;
    --line:rgba(14,43,61,.13);
    --shadow:0 18px 45px rgba(14,43,61,.12);
    --shadow-light:0 8px 24px rgba(14,43,61,.07);
    --container:1180px;
}

*{box-sizing:border-box;margin:0;padding:0}

html{
    scroll-behavior:smooth;
}

body{
    font-family:"Segoe UI",Arial,sans-serif;
    color:var(--text);
    background:#fff;
    line-height:1.62;
    overflow-x:hidden;
}

a{text-decoration:none;color:inherit}
img{display:block;max-width:100%}

.container{
    width:min(var(--container),calc(100% - 36px));
    margin:0 auto;
}

h1,h2,h3{
    color:var(--navy);
    line-height:1.08;
}

h1{
    font-size:clamp(2.65rem,5.5vw,5rem);
    letter-spacing:-.055em;
}

h2{
    font-size:clamp(2rem,3.6vw,3.25rem);
    letter-spacing:-.045em;
}

h3{
    font-size:1.25rem;
}

p{
    margin-top:12px;
}

.lead{
    font-size:1.12rem;
    color:var(--muted);
    max-width:740px;
}

.kicker{
    display:inline-block;
    color:var(--green-dark);
    text-transform:uppercase;
    letter-spacing:.15em;
    font-size:.76rem;
    font-weight:900;
    margin-bottom:12px;
}

.kicker.inverse{
    color:#d7f7c7;
}

.section{
    padding:82px 0;
}

.section.soft{
    background:var(--soft);
}

.section.green-soft{
    background:linear-gradient(180deg,var(--soft-green),#fff);
}

.section-head{
    max-width:780px;
    margin-bottom:32px;
}

.btn-row{
    display:flex;
    gap:14px;
    flex-wrap:wrap;
    margin-top:30px;
}

.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:48px;
    padding:13px 22px;
    font-weight:850;
    border:1px solid transparent;
    transition:
        transform .3s cubic-bezier(.16,1,.3,1),
        box-shadow .3s cubic-bezier(.16,1,.3,1),
        border-color .3s ease,
        background .3s ease;
}

.btn-primary{
    background:linear-gradient(135deg,var(--blue),var(--green));
    color:#fff;
    box-shadow:0 14px 30px rgba(21,152,210,.24);
}

.btn-primary:hover{
    transform:translateY(-3px);
    box-shadow:0 18px 36px rgba(21,152,210,.30);
}

.btn-white{
    background:#fff;
    color:var(--navy);
}

.btn-white:hover{
    transform:translateY(-3px);
    box-shadow:0 14px 30px rgba(255,255,255,.20);
}

.btn-outline{
    background:#fff;
    color:var(--navy);
    border-color:var(--line);
}

.btn-outline:hover{
    border-color:rgba(21,152,210,.45);
    transform:translateY(-3px);
    box-shadow:var(--shadow-light);
}

/* HEADER - always inline on desktop, no white stacked topbar, no rounded box */
.site-header{
    position:sticky;
    top:0;
    z-index:1000;
    background:#fff;
    border-bottom:1px solid rgba(14,43,61,.10);
    box-shadow:0 8px 24px rgba(14,43,61,.06);
}

.header-inner{
    height:84px;
    display:flex;
    align-items:center;
    gap:26px;
    white-space:nowrap;
}

.brand{
    flex:0 0 auto;
    display:flex;
    align-items:center;
}

.brand img{
    width:172px;
    height:auto;
}

.main-menu{
    flex:1 1 auto;
    display:flex;
    justify-content:center;
    min-width:0;
}

.main-menu ul{
    list-style:none;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:22px;
    width:auto;
}

.main-menu a{
    display:inline-flex;
    align-items:center;
    height:84px;
    color:var(--navy);
    font-weight:800;
    border-bottom:4px solid transparent;
    transition:
        color .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

.main-menu a:hover,
.main-menu a.active{
    color:var(--blue-dark);
    border-bottom-color:var(--green);
}

.header-actions{
    flex:0 0 auto;
    display:flex;
    align-items:center;
    gap:16px;
    font-weight:850;
}

.phone-link{
    color:var(--navy);
}

.solid-link{
    background:var(--navy);
    color:#fff;
    padding:12px 18px;
    transition:
        background .3s ease,
        transform .3s cubic-bezier(.16,1,.3,1),
        box-shadow .3s cubic-bezier(.16,1,.3,1);
}

.solid-link:hover{
    background:var(--blue-dark);
    transform:translateY(-2px);
    box-shadow:0 14px 26px rgba(14,43,61,.16);
}

.menu-toggle{
    display:none;
    width:44px;
    height:44px;
    background:#fff;
    border:1px solid var(--line);
    cursor:pointer;
    margin-left:auto;
    transition:
        transform .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}

.menu-toggle:hover{
    transform:translateY(-2px);
    border-color:rgba(21,152,210,.38);
    box-shadow:var(--shadow-light);
}

.menu-toggle span{
    display:block;
    width:22px;
    height:2px;
    margin:5px auto;
    background:var(--navy);
}

/* HERO */
.hero{
    min-height:720px;
    position:relative;
    display:flex;
    align-items:center;
    overflow:hidden;
    isolation:isolate;
    background:#071d2a;
}

.hero:after{
    content:"";
    position:absolute;
    inset:0;
    z-index:-3;
    background:url('../img/hero-care.jpg') center right/cover no-repeat;
    transform:scale(1.04);
    animation:heroSlowZoom 22s ease-in-out infinite alternate;
    will-change:transform;
}

.hero:before{
    content:"";
    position:absolute;
    inset:0;
    z-index:-2;
    width:auto;
    background:
        linear-gradient(90deg,rgba(0,0,0,.62) 0%,rgba(0,0,0,.50) 42%,rgba(0,0,0,.20) 100%),
        radial-gradient(circle at 18% 45%,rgba(21,152,210,.26),transparent 34%),
        radial-gradient(circle at 35% 72%,rgba(98,181,50,.18),transparent 36%);
}

.hero .container{
    position:relative;
    z-index:2;
}

.hero-content{
    position:relative;
    z-index:2;
    max-width:790px;
    padding:102px 0 96px;
    animation:heroContentIn 1.05s cubic-bezier(.16,1,.3,1) both;
}

.hero-content:before{
    content:"";
    position:absolute;
    left:-34px;
    top:86px;
    width:7px;
    height:72%;
    max-height:390px;
    background:linear-gradient(180deg,var(--blue),var(--green));
    box-shadow:0 0 34px rgba(21,152,210,.38);
}

.hero h1,
.hero .lead{
    color:#fff;
}

.hero h1{
    text-shadow:0 14px 38px rgba(0,0,0,.30);
}

.hero .lead{
    color:rgba(255,255,255,.91);
    margin-top:24px;
    max-width:720px;
    text-shadow:0 8px 24px rgba(0,0,0,.22);
}

.hero h1 span{
    color:#b9f28f;
    text-shadow:0 0 26px rgba(185,242,143,.24);
}

.hero .kicker{
    color:#d8f8cc;
    background:rgba(255,255,255,.10);
    border:1px solid rgba(255,255,255,.18);
    padding:8px 13px;
    backdrop-filter:blur(8px);
}

.hero .btn-row{
    margin-top:34px;
}

.hero .btn{
    box-shadow:0 16px 34px rgba(0,0,0,.20);
}

.hero .btn-white{
    background:rgba(255,255,255,.96);
}

.hero .btn-outline{
    background:rgba(255,255,255,.10);
    color:#fff;
    border-color:rgba(255,255,255,.28);
    backdrop-filter:blur(8px);
}

.hero .btn-outline:hover{
    background:rgba(255,255,255,.18);
    border-color:rgba(255,255,255,.42);
}

.hero-info{
    margin-top:42px;
    display:grid;
    grid-template-columns:repeat(3,1fr);
    max-width:870px;
    background:rgba(255,255,255,.105);
    border:1px solid rgba(255,255,255,.18);
    backdrop-filter:blur(12px);
    box-shadow:0 24px 60px rgba(0,0,0,.20);
    animation:heroInfoIn 1.05s cubic-bezier(.16,1,.3,1) .18s both;
}

.hero-info div{
    position:relative;
    padding:20px 22px;
    border-right:1px solid rgba(255,255,255,.14);
    color:rgba(255,255,255,.84);
}

.hero-info div:last-child{
    border-right:0;
}

.hero-info strong{
    display:block;
    color:#fff;
    font-size:1.16rem;
    margin-bottom:4px;
}

.hero-info div:before{
    content:"";
    display:block;
    width:28px;
    height:3px;
    margin-bottom:12px;
    background:linear-gradient(90deg,var(--blue),var(--green));
}

@keyframes heroSlowZoom{
    0%{
        transform:scale(1.04) translateX(0);
    }

    100%{
        transform:scale(1.12) translateX(-1.5%);
    }
}

@keyframes heroContentIn{
    0%{
        opacity:0;
        transform:translateY(36px);
        filter:blur(8px);
    }

    100%{
        opacity:1;
        transform:translateY(0);
        filter:blur(0);
    }
}

@keyframes heroInfoIn{
    0%{
        opacity:0;
        transform:translateY(28px) scale(.985);
        filter:blur(6px);
    }

    100%{
        opacity:1;
        transform:translateY(0) scale(1);
        filter:blur(0);
    }
}

/* PAGE HERO */
.page-hero{
    min-height:410px;
    display:flex;
    align-items:center;
    background:
        linear-gradient(90deg,rgba(0,0,0,.58),rgba(0,0,0,.28)),
        url('../img/page-hero.jpg') center/cover no-repeat;
}

.page-hero.services{
    background:
        linear-gradient(90deg,rgba(0,0,0,.58),rgba(0,0,0,.28)),
        url('../img/services-hero.jpg') center/cover no-repeat;
}

.page-hero.about{
    background:
        linear-gradient(90deg,rgba(0,0,0,.58),rgba(0,0,0,.28)),
        url('../img/about-hero.jpg') center/cover no-repeat;
}

.page-hero.contact{
    background:
        linear-gradient(90deg,rgba(0,0,0,.58),rgba(0,0,0,.28)),
        url('../img/contact-hero.jpg') center/cover no-repeat;
}

.page-hero h1,
.page-hero .lead{
    color:#fff;
}

.page-hero .lead{
    color:rgba(255,255,255,.90);
    margin-top:18px;
}

/* HOME */
.intro-layout{
    display:grid;
    grid-template-columns:1.03fr .97fr;
    gap:54px;
    align-items:center;
}

.intro-image{
    min-height:500px;
    background:url('../img/home-care.jpg') center/cover no-repeat;
    box-shadow:var(--shadow);
    position:relative;
    overflow:hidden;
}

.intro-image:after{
    content:"";
    position:absolute;
    right:-26px;
    bottom:-26px;
    width:46%;
    height:48%;
    background:linear-gradient(135deg,var(--blue),var(--green));
    z-index:-1;
}

.check-list{
    display:grid;
    gap:13px;
    margin-top:24px;
}

.check-list li{
    list-style:none;
    display:grid;
    grid-template-columns:26px 1fr;
    gap:12px;
    align-items:flex-start;
}

.check-list li:before{
    content:"✓";
    width:26px;
    height:26px;
    display:grid;
    place-items:center;
    background:var(--green);
    color:#fff;
    font-weight:900;
    font-size:.78rem;
}

/* INFO CARDS */
.info-card-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:22px;
}

.info-card{
    background:#fff;
    border:1px solid var(--line);
    border-top:5px solid var(--blue);
    padding:28px;
    box-shadow:var(--shadow-light);
    min-height:230px;
}

.info-card:nth-child(2){
    border-top-color:var(--green);
}

.info-card:nth-child(3){
    border-top-color:var(--navy);
}

.card-icon{
    width:54px;
    height:54px;
    display:grid;
    place-items:center;
    background:linear-gradient(135deg,var(--blue),var(--green));
    color:#fff;
    font-size:1.35rem;
    margin-bottom:18px;
}

.proof-band{
    background:
        linear-gradient(90deg,rgba(0,0,0,.58),rgba(0,0,0,.36)),
        url('../img/care-team.jpg') center/cover no-repeat;
    color:#fff;
}

.proof-band h2,
.proof-band .lead{
    color:#fff;
}

.proof-grid{
    display:grid;
    grid-template-columns:1fr .85fr;
    gap:48px;
    align-items:center;
}

.stats{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px;
}

.stat{
    border:1px solid rgba(255,255,255,.17);
    background:rgba(255,255,255,.08);
    padding:22px;
}

.stat strong{
    display:block;
    color:#fff;
    font-size:1.75rem;
    line-height:1.1;
}

/* SERVICES */
.service-list{
    display:grid;
    gap:30px;
}

.service-row{
    display:grid;
    grid-template-columns:44% 56%;
    min-height:360px;
    background:#fff;
    box-shadow:var(--shadow);
    overflow:hidden;
}

.service-row:nth-child(even){
    grid-template-columns:56% 44%;
}

.service-row:nth-child(even) .service-image{
    order:2;
}

.service-row:nth-child(even) .service-copy{
    order:1;
}

.service-image{
    background:center/cover no-repeat;
    min-height:360px;
}

.service-image.personal{
    background-image:url('../img/service-personal-care.jpg');
}

.service-image.health{
    background-image:url('../img/service-health-safety.jpg');
}

.service-image.companion{
    background-image:url('../img/service-companionship.jpg');
}

.service-image.nurse{
    background-image:url('../img/service-nurse-visit.jpg');
}

.service-copy{
    padding:42px;
}

.service-copy ul{
    margin-top:17px;
    padding-left:20px;
}

.service-copy li{
    margin:8px 0;
}

/* ABOUT */
.two-panel{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:24px;
}

.panel{
    background:#fff;
    border:1px solid var(--line);
    border-top:6px solid var(--blue);
    padding:32px;
    box-shadow:var(--shadow-light);
}

.panel:nth-child(2){
    border-top-color:var(--green);
}

/* Team/directors: no team photos required */
.director-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:24px;
}

.director-card{
    position:relative;
    background:#fff;
    box-shadow:var(--shadow);
    border:1px solid var(--line);
    border-top:6px solid var(--blue);
    overflow:hidden;
}

.director-card:nth-child(even){
    border-top-color:var(--green);
}

.director-card:before{
    content:"";
    position:absolute;
    top:0;
    right:0;
    width:150px;
    height:150px;
    background:linear-gradient(135deg,rgba(21,152,210,.12),rgba(98,181,50,.16));
    clip-path:polygon(100% 0,0 0,100% 100%);
    pointer-events:none;
}

.director-photo{
    display:none;
}

.director-copy{
    position:relative;
    z-index:2;
    padding:34px;
}

.director-copy:before{
    content:"";
    display:block;
    width:58px;
    height:58px;
    margin-bottom:20px;
    background:
        linear-gradient(135deg,var(--blue),var(--green));
    mask:
        radial-gradient(circle at 50% 32%,#000 0 13px,transparent 14px),
        radial-gradient(ellipse at 50% 78%,#000 0 28px,transparent 29px);
    -webkit-mask:
        radial-gradient(circle at 50% 32%,#000 0 13px,transparent 14px),
        radial-gradient(ellipse at 50% 78%,#000 0 28px,transparent 29px);
}

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

.value-card{
    background:#fff;
    border:1px solid var(--line);
    border-left:5px solid var(--green);
    padding:24px;
    box-shadow:var(--shadow-light);
}

/* CONTACT */
.contact-layout{
    display:grid;
    grid-template-columns:390px 1fr;
    gap:30px;
    align-items:start;
}

.contact-details{
    background:linear-gradient(180deg,var(--navy),var(--navy-2));
    color:#fff;
    padding:34px;
    box-shadow:var(--shadow);
}

.contact-details h2,
.contact-details h3,
.contact-details p,
.contact-details a{
    color:#fff;
}

.contact-item{
    padding:18px 0;
    border-bottom:1px solid rgba(255,255,255,.16);
}

.contact-item:last-child{
    border-bottom:0;
}

.contact-form{
    background:#fff;
    border:1px solid var(--line);
    padding:34px;
    box-shadow:var(--shadow-light);
}

.form-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:16px;
}

.field{
    display:grid;
    gap:7px;
}

.field.full{
    grid-column:1/-1;
}

label{
    font-weight:850;
    color:var(--navy);
}

input,
select,
textarea{
    width:100%;
    padding:14px;
    border:1px solid var(--line);
    background:#fbfdff;
    color:var(--navy);
    font:inherit;
    outline:none;
    transition:
        border-color .25s ease,
        box-shadow .25s ease,
        background .25s ease;
}

input:focus,
select:focus,
textarea:focus{
    border-color:var(--blue);
    box-shadow:0 0 0 3px rgba(21,152,210,.12);
    background:#fff;
}

textarea{
    min-height:150px;
    resize:vertical;
}

.map-section{
    min-height:340px;
    display:grid;
    place-items:center;
    padding:34px;
    text-align:center;
    color:#fff;
    background:
        linear-gradient(rgba(0,0,0,.42),rgba(0,0,0,.42)),
        url('../img/map-rustenburg.jpg') center/cover no-repeat;
}

.map-section h2{
    color:#fff;
}

/* FOOTER */
/* FOOTER - CLEAN PROFESSIONAL VERSION */
.site-footer{
    background:#071f2d;
    color:rgba(255,255,255,.72);
    position:relative;
    overflow:hidden;
}

.site-footer:before{
    content:"";
    position:absolute;
    right:-180px;
    bottom:-220px;
    width:430px;
    height:430px;
    background:radial-gradient(circle,rgba(21,152,210,.16),transparent 68%);
    pointer-events:none;
}

.site-footer:after{
    content:"";
    position:absolute;
    left:-180px;
    top:-190px;
    width:400px;
    height:400px;
    background:radial-gradient(circle,rgba(98,181,50,.13),transparent 70%);
    pointer-events:none;
}

/* Top CTA */
.footer-top{
    position:relative;
    z-index:2;
    background:
        linear-gradient(135deg,rgba(21,152,210,.96),rgba(98,181,50,.94));
    color:#fff;
}

.footer-top-inner{
    padding:46px 0;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:34px;
}

.footer-top h2{
    color:#fff;
    font-size:clamp(1.85rem,3vw,2.65rem);
    max-width:720px;
}

.footer-top .kicker{
    margin-bottom:10px;
}

.footer-top .btn-white{
    background:#fff;
    color:var(--navy);
    box-shadow:0 18px 34px rgba(0,0,0,.14);
}

/* Main footer */
.footer-main{
    position:relative;
    z-index:2;
    padding:64px 0 46px;
    display:grid;
    grid-template-columns:1.45fr .75fr .95fr 1.05fr;
    gap:44px;
    align-items:start;
}

.footer-brand img{
    width:178px;
    padding:0;
    background:transparent;
    margin-bottom:18px;
}

.footer-brand p{
    max-width:390px;
    color:rgba(255,255,255,.72);
    font-size:.98rem;
}

.footer-brand small{
    display:block;
    margin-top:16px;
    color:rgba(255,255,255,.46);
    font-size:.88rem;
}

.footer-col h3{
    color:#fff;
    font-size:1rem;
    margin-bottom:18px;
    letter-spacing:.02em;
}

.footer-col a{
    display:block;
    width:max-content;
    max-width:100%;
    margin:10px 0;
    color:rgba(255,255,255,.68);
    font-size:.96rem;
    transition:
        color .25s ease,
        transform .25s ease;
}

.footer-col a:hover{
    color:#fff;
    transform:translateX(4px);
}

.footer-col p{
    color:rgba(255,255,255,.66);
    font-size:.96rem;
    line-height:1.7;
}

/* Bottom */
.footer-bottom{
    position:relative;
    z-index:2;
    border-top:1px solid rgba(255,255,255,.09);
    padding:18px 0;
    color:rgba(255,255,255,.48);
    font-size:.9rem;
}

.footer-bottom-inner{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    flex-wrap:wrap;
}

.designer-credit{
    color:rgba(255,255,255,.62);
    font-weight:750;
    transition:
        color .25s ease,
        transform .25s ease;
}

.designer-credit:hover{
    color:#fff;
    transform:translateY(-1px);
}

/* Tablet */
@media(max-width:980px){
    .footer-top-inner{
        align-items:flex-start;
    }

    .footer-main{
        grid-template-columns:1.2fr 1fr;
        gap:34px 42px;
    }

    .footer-brand{
        grid-column:1/-1;
        padding-bottom:12px;
        border-bottom:1px solid rgba(255,255,255,.09);
    }
}

/* Mobile - cleaner, no bulky cards */
/* Mobile - clean sections with thin dividers */
@media(max-width:640px){
    .site-footer{
        text-align:left;
    }

    .footer-top-inner{
        padding:38px 0;
        flex-direction:column;
        align-items:flex-start;
        gap:24px;
    }

    .footer-top h2{
        font-size:clamp(1.75rem,9vw,2.35rem);
        line-height:1.08;
    }

    .footer-top .btn{
        width:100%;
    }

    .footer-main{
        grid-template-columns:1fr;
        gap:0;
        padding:42px 0 30px;
    }

    .footer-brand{
        text-align:left;
        padding-bottom:28px;
        margin-bottom:2px;
        border-bottom:1px solid rgba(255,255,255,.10);
    }

    .footer-brand img{
        width:158px;
        margin:0 0 16px;
    }

    .footer-brand p{
        max-width:none;
        font-size:.96rem;
    }

    .footer-brand small{
        margin-top:14px;
        color:rgba(255,255,255,.48);
    }

    .footer-col{
        padding:22px 0;
        border-bottom:1px solid rgba(255,255,255,.10);
    }

    .footer-col:last-child{
        border-bottom:0;
    }

    .footer-col h3{
        margin-bottom:12px;
        font-size:.82rem;
        text-transform:uppercase;
        letter-spacing:.16em;
        color:rgba(255,255,255,.95);
    }

    .footer-col a{
        width:100%;
        margin:0;
        padding:8px 0;
        font-size:.98rem;
        color:rgba(255,255,255,.70);
    }

    .footer-col a + a{
        border-top:1px solid rgba(255,255,255,.055);
    }

    .footer-col a:hover{
        transform:none;
        color:#fff;
    }

    .footer-col p{
        margin-top:12px;
        padding-top:12px;
        border-top:1px solid rgba(255,255,255,.055);
        font-size:.95rem;
        color:rgba(255,255,255,.62);
    }

    .footer-bottom{
        padding:18px 0 24px;
        text-align:left;
        border-top:1px solid rgba(255,255,255,.10);
    }

    .footer-bottom-inner{
        flex-direction:column;
        align-items:flex-start;
        gap:8px;
    }

    .designer-credit{
        color:rgba(255,255,255,.72);
    }
}

/* Premium focus animations */
.js-reveal,
.js-reveal-left,
.js-reveal-right{
    opacity:0;
    filter:blur(8px);
    transition:
        opacity .9s cubic-bezier(.16,1,.3,1),
        transform .9s cubic-bezier(.16,1,.3,1),
        filter .9s cubic-bezier(.16,1,.3,1);
    will-change:opacity,transform,filter;
}

.js-reveal{
    transform:translateY(42px) scale(.985);
}

.js-reveal-left{
    transform:translateX(-46px) scale(.985);
}

.js-reveal-right{
    transform:translateX(46px) scale(.985);
}

.js-reveal.is-visible,
.js-reveal-left.is-visible,
.js-reveal-right.is-visible{
    opacity:1;
    filter:blur(0);
    transform:translate(0,0) scale(1);
}

.js-reveal-delay-1{transition-delay:.08s}
.js-reveal-delay-2{transition-delay:.16s}
.js-reveal-delay-3{transition-delay:.24s}
.js-reveal-delay-4{transition-delay:.32s}

/* Premium interactive motion */
.info-card,
.panel,
.value-card,
.director-card,
.service-row,
.contact-form,
.contact-details,
.stat{
    transition:
        transform .35s cubic-bezier(.16,1,.3,1),
        box-shadow .35s cubic-bezier(.16,1,.3,1),
        border-color .35s ease;
}

.info-card:hover,
.panel:hover,
.value-card:hover,
.director-card:hover,
.contact-form:hover,
.contact-details:hover,
.stat:hover{
    transform:translateY(-6px);
    box-shadow:0 24px 55px rgba(14,43,61,.14);
}

.service-row:hover{
    transform:translateY(-5px);
    box-shadow:0 28px 60px rgba(14,43,61,.15);
}

.intro-image,
.service-image{
    transition:
        transform .7s cubic-bezier(.16,1,.3,1),
        filter .7s ease;
}

.intro-image:hover,
.service-row:hover .service-image{
    filter:saturate(1.06) contrast(1.03);
    transform:scale(1.015);
}

.form-alert{
    margin:18px 0 0;
    padding:14px 16px;
    border-left:5px solid var(--green);
    background:rgba(98,181,50,.10);
    color:var(--navy);
    font-weight:750;
}

.form-alert.error{
    border-left-color:#c83737;
    background:rgba(200,55,55,.10);
}

/* RESPONSIVE */
@media(max-width:1120px){
    .header-actions .phone-link{
        display:none;
    }

    .main-menu ul{
        gap:14px;
    }
}

@media(max-width:980px){
    .menu-toggle{
        display:block;
    }

    .main-menu{
        flex:0 0 auto;
        order:5;
    }

    .header-actions{
        display:none;
    }

    .main-menu ul{
        position:fixed;
        top:84px;
        left:18px;
        right:18px;
        display:grid;
        justify-content:stretch;
        gap:0;
        background:#fff;
        border:1px solid var(--line);
        box-shadow:var(--shadow);
        opacity:0;
        visibility:hidden;
        transform:translateY(-8px);
        transition:
            opacity .25s ease,
            visibility .25s ease,
            transform .25s cubic-bezier(.16,1,.3,1);
        padding:10px;
    }

    .main-menu ul.open{
        opacity:1;
        visibility:visible;
        transform:translateY(0);
    }

    .main-menu a{
        height:auto;
        padding:13px 12px;
        border-bottom:0;
        width:100%;
    }

    .main-menu a:hover,
    .main-menu a.active{
        background:rgba(21,152,210,.07);
        border-bottom-color:transparent;
    }

    .intro-layout,
    .proof-grid,
    .contact-layout{
        grid-template-columns:1fr;
    }

    .info-card-grid,
    .value-grid,
    .footer-main{
        grid-template-columns:repeat(2,1fr);
    }

    .service-row,
    .service-row:nth-child(even){
        grid-template-columns:1fr;
    }

    .service-row:nth-child(even) .service-image,
    .service-row:nth-child(even) .service-copy{
        order:initial;
    }

    .service-image{
        min-height:315px;
    }

    .two-panel,
    .director-grid{
        grid-template-columns:1fr;
    }
}

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

    .header-inner{
        height:76px;
    }

    .brand img{
        width:150px;
    }

    .main-menu ul{
        top:76px;
        left:14px;
        right:14px;
    }

    .section{
        padding:62px 0;
    }

    .hero{
        min-height:auto;
    }

    .hero:after{
        background:url('../img/hero-care.jpg') 62% center/cover no-repeat;
        transform:scale(1.05);
        animation:heroSlowZoomMobile 20s ease-in-out infinite alternate;
    }

    .hero:before{
        background:
            linear-gradient(rgba(0,0,0,.58),rgba(0,0,0,.54)),
            radial-gradient(circle at 22% 28%,rgba(21,152,210,.24),transparent 34%),
            radial-gradient(circle at 75% 70%,rgba(98,181,50,.18),transparent 36%);
    }

    .hero-content{
        padding:84px 0 78px;
    }

    .hero-content:before{
        left:0;
        top:56px;
        width:70px;
        height:5px;
        max-height:none;
    }

    .hero h1{
        font-size:clamp(2.35rem,12vw,3.7rem);
        letter-spacing:-.045em;
    }

    .hero .lead{
        font-size:1.02rem;
        margin-top:20px;
    }

    .hero .btn-row{
        gap:12px;
    }

    .hero .btn-row .btn{
        width:100%;
    }

    .hero-info{
        grid-template-columns:1fr;
        margin-top:32px;
    }

    .hero-info div{
        border-right:0;
        border-bottom:1px solid rgba(255,255,255,.14);
    }

    .hero-info div:last-child{
        border-bottom:0;
    }

    .info-card-grid,
    .value-grid,
    .footer-main,
    .stats,
    .form-grid{
        grid-template-columns:1fr;
    }

    .footer-top-inner{
        flex-direction:column;
        align-items:flex-start;
    }

    .service-copy,
    .contact-form,
    .contact-details,
    .director-copy{
        padding:26px;
    }

    .intro-image{
        min-height:360px;
    }

    h2{
        letter-spacing:-.035em;
    }

    @keyframes heroSlowZoomMobile{
        0%{
            transform:scale(1.05) translateX(0);
        }

        100%{
            transform:scale(1.12) translateX(-2%);
        }
    }
}

@media(prefers-reduced-motion:reduce){
    html{
        scroll-behavior:auto;
    }

    *,
    *:before,
    *:after{
        transition:none !important;
        animation:none !important;
    }

    .js-reveal,
    .js-reveal-left,
    .js-reveal-right{
        opacity:1 !important;
        filter:none !important;
        transform:none !important;
    }

    .hero:after{
        animation:none !important;
        transform:none !important;
    }

    .hero-content,
    .hero-info{
        animation:none !important;
    }
}