﻿:root {
    --bg: #fff;
    --text: #3b3a4a;
    --head: #2a1a6e;
    --brand: #3d1a8c;
    --accent: #ff5c8a;
    --soft: #f6f3fc;
    --card: #fff;
    --line: #e4def5;
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top,0px);
    padding-bottom: env(safe-area-inset-bottom,0px)
}

@media (prefers-color-scheme:dark) {
    :root:not([data-theme="light"]) {
        --bg: #14111f;
        --text: #d5d2e2;
        --head: #e6defc;
        --brand: #2a1a6e;
        --accent: #ff6f98;
        --soft: #1d1930;
        --card: #1d1930;
        --line: #352d57
    }
}

:root[data-theme="dark"] {
    --bg: #14111f;
    --text: #d5d2e2;
    --head: #e6defc;
    --brand: #2a1a6e;
    --accent: #ff6f98;
    --soft: #1d1930;
    --card: #1d1930;
    --line: #352d57
}

html {
    scroll-padding-top: env(safe-area-inset-top,0px);
    scroll-behavior: smooth
}

*, *:before, *:after {
    box-sizing: border-box
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Poppins,system-ui,sans-serif;
    line-height: 1.6
}

a {
    color: inherit;
    text-decoration: none
}

h1, h2, h3 {
    color: var(--head);
    margin: 0 0 .5em;
    line-height: 1.2
}

.wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px
}

header {
    position: sticky;
    top: env(safe-area-inset-top,0px);
    z-index: 20;
    background: var(--brand);
    color: #fff
}

    header .wrap {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 92px
    }

.logo {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: .3px
}

    .logo span {
        color: var(--accent)
    }


nav {
    display: flex;
    gap: 32px;
    font-weight: 600;
    font-size: 1.05rem
}

    nav a:hover {
        color: var(--accent)
    }

.btn {
    display: inline-block;
    border: 2px solid var(--accent);
    background: var(--accent);
    color: #fff;
    padding: 10px 24px;
    border-radius: 999px;
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
    font-family: inherit
}

    .btn.ghost {
        background: transparent;
        color: var(--accent)
    }

    .btn.dark {
        background: var(--brand);
        border-color: var(--brand)
    }
/* carousel */
.hero {
    position: relative;
    height: min(70vh,520px);
    min-height: 380px;
    overflow: hidden;
    background: #222
}

.track {
    display: flex;
    height: 100%;
    transition: transform .8s cubic-bezier(.6,0,.2,1)
}

.slide {
    min-width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center 20%
}

    .slide:before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg,rgba(20,10,50,.7),rgba(20,10,50,.15))
    }

    .slide video {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover
    }

.s1 {
    background-image: linear-gradient(135deg,#5b2a86,#f0a56a)
}

.s2 {
    background-image: url(../images/hero1.png)
}

.s3 {
    background-image: url(../images/hero2.png) 
}

.cap {
    position: relative;
    color: #fff;
    max-width: 640px;
    padding: 0 70px
}

    .cap h1 {
        color: #fff;
        font-size: clamp(1.6rem,4vw,2.5rem)
    }

    .cap p {
        margin: 0 0 20px;
        font-size: 1rem
    }

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 0;
    background: rgba(255,255,255,.2);
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    backdrop-filter: blur(4px)
}

    .arrow:hover {
        background: rgba(255,255,255,.4)
    }

.prev {
    left: 14px
}

.next {
    right: 14px
}

.dots {
    position: absolute;
    bottom: 16px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 5
}

    .dots button {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        border: 0;
        background: rgba(255,255,255,.5);
        padding: 0;
        cursor: pointer
    }

        .dots button.on {
            background: #fff;
            transform: scale(1.3)
        }
/* sections */
section {
    padding: 70px 0
}

.center {
    text-align: center
}

    .center p {
        max-width: 640px;
        margin: 0 auto 24px
    }

h2 {
    font-size: clamp(1.5rem,3.2vw,2.1rem)
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
    gap: 24px;
    margin-top: 40px
}

.arch {
    background: var(--card);
    border: 2px solid var(--line);
    border-radius: 140px 140px 14px 14px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 22px
}

    .arch .img {
        height: 190px;
        margin-bottom: 16px;
        background-size: cover;
        background-position: center 25%
    }

    .arch:nth-child(1) .img {
        background-image: url(../images/personal-care.jpg)
    }

    .arch:nth-child(2) .img {
        background-image: url(../images/companion-care.jpg)
    }

    .arch:nth-child(3) .img {
        background-image: url(../images/respite-care.jpeg)
    }

    .arch h3 {
        font-size: 1.05rem
    }

    .arch p {
        font-size: .88rem;
        padding: 0 18px;
        margin: 0 0 14px
    }

.why {
    background: var(--soft)
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center
}

.circle {
    position: relative;
    width: min(100%,340px);
    aspect-ratio: 1;
    border-radius: 50%;
    background-image: url(../images/why-choose-us.jpg);
    background-size: cover;
    background-position: center;
    margin: auto
}

    .circle .heart {
        position: absolute;
        left: 0;
        bottom: 6px;
        width: 52px;
        height: 52px;
        border-radius: 50%;
        background: var(--brand);
        color: #fff;
        display: grid;
        place-items: center;
        font-size: 1.3rem
    }

    .circle .quote {
        position: absolute;
        right: -10px;
        bottom: -14px;
        width: 190px;
        background: var(--card);
        color: var(--head);
        padding: 12px 14px;
        border-radius: 8px;
        font-size: .78rem;
        font-style: italic;
        font-weight: 600;
        box-shadow: 0 10px 30px rgba(0,0,0,.15)
    }

.testi .photo {
    height: 280px;
    border-radius: 140px 140px 0 0;
    background-image: url(../images/testimonial.jpg);
    background-size: cover;
    background-position: center 25%
}

.stars {
    color: #f5a623;
    letter-spacing: 3px;
    font-size: 1.1rem
}

blockquote {
    margin: 10px 0;
    font-weight: 600;
    color: var(--head)
}

.cta {
    background: var(--brand);
    color: #fff;
    text-align: center;
    padding: 56px 0
}

    .cta h2 {
        color: #fff
    }

    .cta .btn {
        background: #fff;
        color: var(--accent);
        border-color: #fff
    }

.contact {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
    align-items: start
}

form {
    background: #1c1260;
    padding: 28px;
    border-radius: 6px;
    box-shadow: 0 18px 40px rgba(28,18,96,.3);
    display: grid;
    gap: 12px
}

input, textarea {
    width: 100%;
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    padding: 11px 12px;
    font: inherit;
    font-size: .88rem
}

    input::placeholder, textarea::placeholder {
        color: #d6d0f3
    }

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

form .btn {
    justify-self: end;
    background: #ff7a3d;
    border-color: #ff7a3d
}

.info li {
    list-style: none;
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    font-size: .9rem
}

.info b {
    display: block;
    color: var(--head)
}

.info ul {
    padding: 0;
    margin: 20px 0 0
}

.ic {
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: .9rem
}

footer {
    background: var(--brand);
    color: #fff;
    padding: 50px 0 20px
}

.fgrid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1.4fr;
    gap: 30px
}

footer h4 {
    margin: 0 0 10px
}

footer a {
    display: block;
    font-size: .88rem;
    margin-bottom: 6px
}

.news {
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    color: #2a1a6e
}

    .news input {
        border-color: #2a1a6e;
        color: #2a1a6e;
        margin: 10px 0
    }

        .news input::placeholder {
            color: #777
        }

    .news .btn {
        width: 100%;
        background: #ff7a3d;
        border-color: #ff7a3d;
        border-radius: 4px
    }

.copy {
    margin-top: 30px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,.2);
    font-size: .75rem
}
.tag {
    margin-top: -20px;
    padding-left: 800px;
    font-size: .75rem
    
}

@media(max-width:760px) {
    nav {
        gap: 12px;
        font-size: .78rem
    }



    .split, .contact, .fgrid {
        grid-template-columns: 1fr
    }

    .cap {
        padding: 0 56px 0 56px
    }

    .circle .quote {
        right: 0
    }
}
.insurance {
    background: var(--soft)
}

.ins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
    gap: 18px;
    margin-top: 34px;
    text-align: center
}

.ins-card {
    background: var(--card);
    border: 2px solid var(--line);
    border-radius: 14px;
    padding: 22px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--head);
    transition: transform .2s,border-color .2s
}

    .ins-card:hover {
        transform: translateY(-4px);
        border-color: var(--accent)
    }

    .ins-card small {
        color: var(--text);
        font-size: .8rem
    }

.ins-ic {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: .95rem;
    margin-bottom: 4px
}

.logo img {
    height: 68px;
    width: auto;
    display: block
}
@media(max-width:760px) {
    header .wrap {
        height: auto;
        flex-direction: column;
        gap: 6px;
        padding: 10px 20px
    }

    nav {
        font-size: .9rem;
        gap: 14px;
        flex-wrap: wrap;
        justify-content: center
    }
}



/* ===== Mobile menu (hamburger) - paste at the very END of style.css ===== */
.menu-btn {
    display: none;
    background: none;
    border: 0;
    padding: 8px;
    cursor: pointer
}

    .menu-btn span {
        display: block;
        width: 26px;
        height: 3px;
        margin: 5px 0;
        background: #fff;
        border-radius: 2px;
        transition: transform .25s,opacity .25s
    }

@media(max-width:760px) {
    header .wrap {
        flex-direction: row;
        height: 76px;
        padding: 0 20px;
        position: relative
    }

    header .logo img {
        height: 52px
    }

    .menu-btn {
        display: block
    }

    header nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--brand);
        flex-direction: column;
        gap: 0;
        padding: 6px 20px 14px;
        box-shadow: 0 14px 24px rgba(0,0,0,.25);
        font-size: 1rem
    }

        header nav.open {
            display: flex
        }

        header nav a {
            padding: 14px 0;
            border-bottom: 1px solid rgba(255,255,255,.15)
        }

    .menu-btn.open span:nth-child(1) {
        transform: translateY(8px) rotate(45deg)
    }

    .menu-btn.open span:nth-child(2) {
        opacity: 0
    }

    .menu-btn.open span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg)
    }
}
@media(max-width:760px) {
    .split, .contact, .fgrid {
        grid-template-columns: minmax(0,1fr)
    }

        .split > *, .contact > *, .fgrid > * {
            min-width: 0
        }

    img {
        max-width: 100%
    }

    .cap {
        padding: 0 56px
    }

    .circle .quote {
        right: 0
    }
}
/* ===== Effects - paste at the very END of style.css ===== */

/* Menu: zoom in on hover and on the page you are on */
header nav a {
    display: inline-block;
    transition: transform .25s ease,color .25s ease
}

    header nav a:hover, header nav a.active {
        transform: scale(1.14);
        color: var(--accent)
    }

/* Pictures: fade in from nothing when they scroll into view */
.fade-img {
    opacity: 0;
    transform: scale(1.07);
    transition: opacity 1.1s ease,transform 1.3s ease
}

    .fade-img.show {
        opacity: 1;
        transform: none
    }

.arch:nth-child(2) .img {
    transition-delay: .15s
}

.arch:nth-child(3) .img {
    transition-delay: .3s
}

@media(max-width:760px) {
    header nav a:hover, header nav a.active {
        transform: scale(1.04);
        transform-origin: left center
    }
}

@media(prefers-reduced-motion:reduce) {
    header nav a, .fade-img {
        transition: none
    }

    .fade-img {
        opacity: 1;
        transform: none
    }
}
/* ===== Colored lines on images - paste at the very END of style.css ===== */

/* Service cards: colorful gradient outline, a different color for each card */
.arch {
    border: 3px solid transparent;
    transition: transform .3s ease,box-shadow .3s ease
}

    .arch:nth-child(1) {
        background: linear-gradient(var(--card),var(--card)) padding-box,linear-gradient(135deg,#ff7a3d,#ff5c8a) border-box
    }

    .arch:nth-child(2) {
        background: linear-gradient(var(--card),var(--card)) padding-box,linear-gradient(135deg,#27c1a6,#4aa3c7) border-box
    }

    .arch:nth-child(3) {
        background: linear-gradient(var(--card),var(--card)) padding-box,linear-gradient(135deg,#6a3fd0,#3b82f6) border-box
    }

    .arch:hover {
        transform: translateY(-6px);
        box-shadow: 0 16px 30px rgba(61,26,140,.18)
    }

/* Why Choose Us circle: spinning colored ring + a thin dashed ring */
.circle {
    width: min(calc(100% - 64px),340px)
}

    .circle:before, .circle:after {
        content: "";
        position: absolute;
        border-radius: 50%;
        pointer-events: none
    }

    .circle:before {
        inset: -12px;
        border: 4px solid transparent;
        border-top-color: var(--accent);
        border-right-color: #ffb020;
        border-bottom-color: #27c1a6;
        border-left-color: #6a3fd0;
        animation: spin 10s linear infinite
    }

    .circle:after {
        inset: -26px;
        border: 2px dashed #6a3fd0;
        opacity: .45;
        animation: spin 24s linear infinite reverse
    }

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

/* Testimonial photo: double colored line around the arch */
.testi .photo {
    box-shadow: 0 0 0 4px var(--bg),0 0 0 7px var(--accent),0 0 0 11px var(--bg),
}


}

@media(prefers-reduced-motion:reduce) {
    .circle:before, .circle:after {
        animation: none
    }
}