/* =========================================================
   NEW STAR HOME HEALTH CARE
   COMPLETE STYLE.CSS
   ========================================================= */

/* =========================
   RESET
========================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter, Arial, sans-serif;
    color: #173b3a;
    background: #ffffff;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

.container {
    width: min(1160px, 92%);
    margin: auto;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
    width: 100%;
    height: 90px;
    position: sticky;
    top: 0;
    z-index: 99999;
    background: #0b8580;
    color: #ffffff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.10);
}

.nav-wrap {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}


/* LOGO */

.brand {
    display: flex;
    align-items: center;
    color: #ffffff;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: #ffffff;
    color: #087f78;
    display: grid;
    place-items: center;
    font-size: 23px;
}

.brand b {
    display: block;
    font-size: 18px;
    letter-spacing: .7px;
}

.brand small {
    display: block;
    font-size: 9px;
    letter-spacing: 2px;
    opacity: .8;
}


/* NEW LOGO */

.header-logo {
    width: 330px;
    height: 82px;
    object-fit: contain;
}

.site-header .brand-mark {
    display: none;
}

.site-header .brand > span {
    display: none;
}


/* DESKTOP NAV */

.site-header nav#mainNav {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 90px;
}

.site-header nav#mainNav > a {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: .25s ease;
}

.site-header nav#mainNav > a:hover {
    color: #b9fffa;
    transform: translateY(-2px);
}


/* LOGIN */

.login-wrap {
    position: relative;
    margin-left: 7px;
}

.login-btn {
    height: 44px;
    padding: 0 18px;
    border-radius: 7px;
    background: transparent;
    border: 1px solid rgba(255,255,255,.5);
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
    transition: .25s ease;
}

.login-btn:hover {
    background: #ffffff;
    color: #087f78;
}


/* LOGIN DROPDOWN */

.login-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: 245px;
    background: #ffffff;
    color: #173b3a;
    border-radius: 12px;
    padding: 7px;
    box-shadow: 0 15px 40px rgba(0,0,0,.20);

    opacity: 0;
    visibility: hidden;
    transform: translateY(-7px);

    transition: .25s ease;
}

.login-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.login-menu a {
    display: block;
    padding: 12px;
    border-radius: 8px;
    transition: .2s ease;
}

.login-menu a:hover {
    background: #eef9f7;
}

.login-menu strong,
.login-menu small {
    display: block;
}

.login-menu small {
    font-size: 11px;
    color: #82908f;
}


/* HAMBURGER */

.menu-btn {
    display: none;
    border: 0;
    background: rgba(255,255,255,.12);
    color: #ffffff;
    border-radius: 10px;
    width: 52px;
    height: 52px;
    font-size: 27px;
    cursor: pointer;
}


/* =========================================================
   HERO
========================================================= */

.hero {
    min-height: 650px;
    display: flex;
    align-items: center;

    background:
        linear-gradient(
            90deg,
            rgba(4,63,59,.92),
            rgba(4,63,59,.60),
            rgba(4,63,59,.12)
        ),
        url("img/hero.jpg") center/cover;
}

.hero-content {
    padding: 90px 0;
    color: #ffffff;
}

.eyebrow {
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: 800;
}

.hero h1 {
    font-size: clamp(38px,5.4vw,68px);
    line-height: 1.08;
    max-width: 780px;
    margin: 15px 0;
}

.hero h1 em {
    color: #92eee7;
    font-style: normal;
}

.hero p {
    max-width: 650px;
    font-size: 16px;
    color: rgba(255,255,255,.88);
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    flex-wrap: wrap;
}


/* BUTTONS */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    border: 0;
    cursor: pointer;
    transition: .3s ease;
}

.btn:hover {
    transform: translateY(-3px);
}

.primary {
    background: #0aa49a;
    color: #ffffff;
}

.primary:hover {
    background: #066e68;
}

.outline {
    border: 1px solid rgba(255,255,255,.50);
    color: #ffffff;
}

.outline:hover {
    background: #ffffff;
    color: #087f78;
}

.light {
    background: #ffffff;
    color: #087f78;
}


/* HERO STATS */

.hero-stats {
    display: flex;
    gap: 38px;
    margin-top: 48px;
}

.hero-stats b,
.hero-stats span {
    display: block;
}

.hero-stats b {
    font-size: 20px;
}

.hero-stats span {
    font-size: 11px;
    color: rgba(255,255,255,.65);
}


/* =========================================================
   HERO IMAGE ANIMATION
========================================================= */

.hero-image {
    position: relative;
    height: 540px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.hero-image:before {
    content: "";
    position: absolute;
    width: 560px;
    height: 560px;
    border-radius: 50%;
    background: #ccece8;
    right: -30px;
    bottom: -120px;
}

.hero-image img {
    position: relative;
    z-index: 2;

    width: 100%;
    height: 520px;

    object-fit: cover;
    object-position: center;

    border-radius: 40px 40px 0 0;

    box-shadow:
        0 20px 60px rgba(4,70,78,.18);

    transform-origin: center bottom;

    animation:
        nurseFloat 4s ease-in-out infinite;

    transition:
        transform .5s ease,
        filter .5s ease;
}

.hero-image img:hover {
    transform: scale(1.025);
    filter: brightness(1.04);
}


/* HERO IMAGE FLOAT */

@keyframes nurseFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-9px) scale(1.015);
    }
}


/* FLOATING LEAF */

.hero-image:after {
    content: "🍃";
    position: absolute;
    z-index: 4;
    left: 5%;
    top: 20%;
    font-size: 35px;

    animation:
        leafMove 5s ease-in-out infinite;
}

@keyframes leafMove {

    0% {
        transform: translate(0,0) rotate(0deg);
    }

    50% {
        transform: translate(25px,-18px) rotate(15deg);
    }

    100% {
        transform: translate(0,0) rotate(0deg);
    }
}


/* QUOTE */

.quote {
    position: absolute;
    z-index: 5;
    right: -10px;
    bottom: 25px;

    background: #087f78;
    color: #ffffff;

    padding: 20px 28px;

    border-radius: 25px 0 25px 0;

    font-size: 19px;
    font-weight: 800;
    text-align: center;

    max-width: 300px;

    animation:
        quoteFloat 3s ease-in-out infinite;
}

@keyframes quoteFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-7px);
    }
}


/* =========================================================
   TRUST STRIP
========================================================= */

.trust-strip {
    background: #ffffff;
    position: relative;
    margin-top: -35px;
    z-index: 10;
}

.trust-grid {
    background: #ffffff;
    border-radius: 14px;

    box-shadow:
        0 12px 30px rgba(0,0,0,.08);

    padding: 20px;

    display: grid;
    grid-template-columns: repeat(4,1fr);

    gap: 10px;
}

.trust-grid > div {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 21px;
}

.trust-grid span {
    font-size: 11px;
    color: #788786;
}

.trust-grid b {
    display: block;
    color: #173b3a;
    font-size: 13px;
}


/* =========================================================
   SECTION
========================================================= */

.section {
    padding: 90px 0;
}

.soft {
    background: #f5faf9;
}

.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 45px;
}

.section-head > span,
.section-head .eyebrow {
    font-size: 11px;
    color: #078c83;
    font-weight: 800;
    letter-spacing: 2px;
}

.section-head h2 {
    font-size: clamp(29px,4vw,43px);
    line-height: 1.15;
    margin: 9px 0 12px;
}

.section-head p {
    font-size: 14px;
    color: #748281;
}


/* =========================================================
   SERVICES
========================================================= */

.cards {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 20px;
}


/* SERVICE CARD */

.service-card {
    position: relative;

    background: #ffffff;

    border: 1px solid #e8f0ef;
    border-radius: 14px;

    overflow: hidden;

    box-shadow:
        0 8px 25px rgba(0,0,0,.06);

    transition:
        transform .4s ease,
        box-shadow .4s ease;
}


/* CARD HOVER */

.service-card:hover {
    transform: translateY(-9px);

    box-shadow:
        0 18px 42px rgba(0,0,0,.14);
}


/* SERVICE IMAGE */

.service-card > img {
    width: 100%;
    height: 190px;

    object-fit: cover;

    transform: scale(1);

    transform-origin: center center;

    transition:
        transform .7s ease,
        filter .7s ease;

    animation:
        serviceImageFloat 4s ease-in-out infinite;
}


/* SERVICE IMAGE ANIMATION */

@keyframes serviceImageFloat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.045);
    }
}


/* HOVER IMAGE */

.service-card:hover > img {
    transform: scale(1.10);
    filter: brightness(1.06);
}


/* DIFFERENT TIMING */

.service-card:nth-child(1) > img {
    animation-delay: 0s;
}

.service-card:nth-child(2) > img {
    animation-delay: .6s;
}

.service-card:nth-child(3) > img {
    animation-delay: 1.2s;
}

.service-card:nth-child(4) > img {
    animation-delay: 1.8s;
}

.service-card:nth-child(5) > img {
    animation-delay: 2.4s;
}

.service-card:nth-child(6) > img {
    animation-delay: 3s;
}

.service-card:nth-child(7) > img {
    animation-delay: 3.6s;
}

.service-card:nth-child(8) > img {
    animation-delay: 4.2s;
}


/* SERVICE CONTENT */

.service-card > div {
    padding: 19px;
}

.service-card h3 {
    font-size: 18px;
}

.service-card p {
    font-size: 13px;
    color: #758483;
    margin: 8px 0 13px;
}

.service-card a {
    color: #078c83;
    font-size: 12px;
    font-weight: 800;
}

.service-card a:hover {
    text-decoration: underline;
}


/* =========================================================
   ABOUT
========================================================= */

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.photo-stack {
    position: relative;
    padding: 0 35px 35px 0;
}

.photo-stack > img {
    width: 100%;
    height: 450px;

    object-fit: cover;

    border-radius: 18px;

    box-shadow:
        0 15px 40px rgba(0,0,0,.13);

    transition:
        transform .5s ease,
        filter .5s ease;
}

.photo-stack > img:hover {
    transform: scale(1.025);
    filter: brightness(1.04);
}


/* FLOAT CARD */

.float-card {
    position: absolute;
    right: 0;
    bottom: 0;

    background: #087f78;
    color: #ffffff;

    padding: 18px;

    border-radius: 12px;

    box-shadow:
        0 12px 25px rgba(0,0,0,.18);

    animation:
        aboutCardFloat 3s ease-in-out infinite;
}

.float-card b {
    display: block;
    font-size: 29px;
}

.float-card span {
    font-size: 11px;
}

@keyframes aboutCardFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}


/* ABOUT TEXT */

.copy h2 {
    font-size: clamp(30px,4vw,45px);
    line-height: 1.1;
    margin: 10px 0 18px;
}

.copy p {
    font-size: 14px;
    color: #748281;
    margin-bottom: 14px;
}

.check-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 10px;

    margin: 25px 0;

    color: #315553;

    font-size: 13px;
    font-weight: 700;
}


/* =========================================================
   WHY US
========================================================= */

.why-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 18px;
}

.why-grid > div {
    background: #ffffff;

    border: 1px solid #e5efee;

    border-radius: 13px;

    text-align: center;

    padding: 28px 18px;

    transition:
        transform .35s ease,
        box-shadow .35s ease;
}

.why-grid > div:hover {
    transform: translateY(-7px);

    box-shadow:
        0 15px 30px rgba(0,0,0,.08);
}

.why-grid i {
    display: grid;
    place-items: center;

    width: 55px;
    height: 55px;

    margin: auto auto 14px;

    border-radius: 13px;

    background: #e9f8f6;

    font-style: normal;

    font-size: 24px;
}

.why-grid h3 {
    font-size: 16px;
}

.why-grid p {
    font-size: 12px;
    color: #7c8988;
    margin-top: 7px;
}


/* =========================================================
   GALLERY
========================================================= */

.gallery {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 15px;
}

.gallery img {
    height: 250px;
    width: 100%;

    object-fit: cover;

    border-radius: 13px;

    transition:
        transform .6s ease,
        filter .6s ease;

    animation:
        galleryFloat 5s ease-in-out infinite;
}


/* GALLERY ANIMATION */

@keyframes galleryFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-4px) scale(1.015);
    }
}

.gallery img:hover {
    transform: scale(1.07);
    filter: brightness(1.05);

    box-shadow:
        0 15px 35px rgba(0,0,0,.18);
}

.gallery img:nth-child(1) {
    animation-delay: 0s;
}

.gallery img:nth-child(2) {
    animation-delay: .5s;
}

.gallery img:nth-child(3) {
    animation-delay: 1s;
}

.gallery img:nth-child(4) {
    animation-delay: 1.5s;
}

.gallery img:nth-child(5) {
    animation-delay: 2s;
}

.gallery img:nth-child(6) {
    animation-delay: 2.5s;
}


/* =========================================================
   REVIEWS
========================================================= */

.reviews {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
}

.reviews article {
    background: #ffffff;

    border-radius: 14px;

    padding: 25px;

    box-shadow:
        0 8px 25px rgba(0,0,0,.05);

    transition:
        transform .3s ease,
        box-shadow .3s ease;
}

.reviews article:hover {
    transform: translateY(-5px);

    box-shadow:
        0 15px 30px rgba(0,0,0,.10);
}

.stars {
    color: #f0a72f;
    letter-spacing: 2px;
}

.reviews p {
    font-size: 13px;
    color: #687978;

    margin: 12px 0 18px;

    min-height: 70px;
}

.reviews b {
    font-size: 12px;
}


/* =========================================================
   CTA
   Compatible with RGB CTA in index.php
========================================================= */

.cta {
    padding: 70px 0;
    background: #f5fbfa;
    overflow: hidden;
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cta span {
    font-size: 10px;
    letter-spacing: 2px;
    font-weight: 800;
}

.cta h2 {
    font-size: clamp(24px,3vw,36px);
}


/* =========================================================
   CONTACT
========================================================= */

.contact-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;

    gap: 45px;

    align-items: start;
}

.contact-details > div {
    padding: 18px;

    background: #f5faf9;

    border: 1px solid #e4efee;

    border-radius: 11px;

    margin-bottom: 12px;
}

.contact-details b {
    display: block;

    font-size: 13px;

    margin-bottom: 5px;
}

.contact-details a,
.contact-details p {
    display: block;

    font-size: 13px;

    color: #60716f;
}

.contact-details a:hover {
    color: #087f78;
}


/* CONTACT FORM */

.contact-form {
    background: #f5faf9;

    padding: 28px;

    border-radius: 15px;

    border: 1px solid #e4efee;
}

.form-row {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 15px;
}

.contact-form label {
    display: block;

    font-size: 11px;

    font-weight: 700;

    margin-bottom: 14px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;

    padding: 12px;

    border: 1px solid #dce8e6;

    border-radius: 7px;

    background: #ffffff;

    outline: none;

    margin-top: 6px;

    font: inherit;

    font-size: 12px;

    transition: .25s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: #0a948b;

    box-shadow:
        0 0 0 3px rgba(10,148,139,.08);
}

.contact-form .btn {
    width: 100%;
}


/* =========================================================
   FOOTER
========================================================= */

footer {
    background: #123f3d;

    color: #ffffff;

    padding-top: 55px;
}

.footer-grid {
    display: grid;

    grid-template-columns: 2fr 1fr 1fr 1fr;

    gap: 35px;

    padding-bottom: 45px;
}

.footer-grid p {
    color: rgba(255,255,255,.67);

    font-size: 12px;

    max-width: 330px;

    margin-top: 14px;
}

.footer-grid h4 {
    font-size: 14px;

    margin-bottom: 10px;
}

.footer-grid a,
.footer-grid span {
    display: block;

    color: rgba(255,255,255,.67);

    font-size: 11px;

    margin: 6px 0;

    transition: .2s ease;
}

.footer-grid a:hover {
    color: #92eee7;
}

.copyright {
    text-align: center;

    border-top: 1px solid rgba(255,255,255,.09);

    padding: 17px;

    color: rgba(255,255,255,.53);

    font-size: 10px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .cards {
        grid-template-columns: repeat(2,1fr);
    }

    .why-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .gallery {
        grid-template-columns: repeat(2,1fr);
    }

    .site-header nav#mainNav {
        gap: 14px;
    }

    .site-header nav#mainNav > a {
        font-size: 12px;
    }

}


/* =========================================================
   MOBILE HEADER
========================================================= */

@media (max-width: 900px) {

    .site-header {
        height: 75px;
    }

    .nav-wrap {
        height: 75px;
        padding: 0 14px;
    }

    .header-logo {
        width: 220px;
        height: 65px;
    }

    .menu-btn {
        display: flex;

        align-items: center;
        justify-content: center;
    }

    /* MOBILE NAV */

    .site-header nav#mainNav {
        display: none;

        position: fixed;

        top: 75px;

        right: 12px;
        left: auto;

        width: 250px;

        height: auto;

        padding: 10px;

        margin: 0;

        background: #087f7a;

        border-radius: 15px;

        box-shadow:
            0 15px 40px rgba(0,0,0,.30);

        flex-direction: column;

        align-items: stretch;

        gap: 0;

        z-index: 100000;
    }

    .site-header nav#mainNav.mobile-open {
        display: flex;
    }

    .site-header nav#mainNav > a {
        display: flex;

        width: 100%;

        height: 48px;

        align-items: center;

        padding: 0 15px;

        color: #ffffff;

        font-size: 16px;

        border-bottom:
            1px solid rgba(255,255,255,.12);

        text-align: left;
    }

    .site-header nav#mainNav > a:hover {
        background: rgba(255,255,255,.10);

        transform: none;
    }


    /* MOBILE LOGIN */

    .site-header .login-wrap {
        width: 100%;

        margin: 10px 0 2px;

        display: flex;

        justify-content: center;
    }

    .site-header .login-btn {
        width: 150px;

        height: 45px;
    }

    .site-header .login-menu {
        position: absolute;

        top: 52px;

        left: 50%;

        transform: translateX(-50%);

        width: 220px;

        display: none;

        background: #ffffff;

        border-radius: 12px;

        box-shadow:
            0 12px 35px rgba(0,0,0,.28);

        overflow: hidden;

        z-index: 100001;
    }

    .site-header .login-menu.open {
        display: block;

        opacity: 1;

        visibility: visible;

        transform: translateX(-50%);
    }

    .site-header .login-menu a {
        display: block;

        padding: 14px 16px;

        color: #087f7a;

        background: #ffffff;

        text-decoration: none;
    }

}


/* =========================================================
   MOBILE CONTENT
========================================================= */

@media (max-width: 780px) {

    .hero {
        min-height: 650px;
    }

    .hero-content {
        padding: 70px 0;
    }

    .hero-stats {
        gap: 20px;
    }

    .trust-grid {
        grid-template-columns: 1fr 1fr;
    }

    .two-col {
        grid-template-columns: 1fr;

        gap: 40px;
    }

    .reviews {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .cta-inner {
        flex-direction: column;

        align-items: flex-start;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-image {
        height: 420px;
    }

    .hero-image img {
        height: 400px;
    }

    .hero-image:before {
        width: 400px;
        height: 400px;
    }

    .quote {
        right: 5px;
        bottom: 15px;

        font-size: 15px;

        padding: 15px 18px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 520px) {

    .header-logo {
        width: 200px;
        height: 62px;
    }

    .menu-btn {
        width: 50px;
        height: 50px;
        font-size: 26px;
    }

    .hero h1 {
        font-size: 39px;
    }

    .hero p {
        font-size: 14px;
    }

    .hero-stats {
        gap: 20px;
        flex-wrap: wrap;
    }

    .trust-grid {
        grid-template-columns: 1fr;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .gallery {
        grid-template-columns: 1fr;
    }

    .gallery img {
        height: 230px;
    }

    .section {
        padding: 70px 0;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .photo-stack > img {
        height: 330px;
    }

    .check-grid {
        grid-template-columns: 1fr;
    }

    .service-card > img {
        height: 220px;
    }

    .service-card:hover > img {
        transform: scale(1.06);
    }

    .hero-image {
        height: 350px;
    }

    .hero-image img {
        height: 330px;
        border-radius: 25px 25px 0 0;
    }

    .hero-image:before {
        width: 330px;
        height: 330px;
    }

    .quote {
        font-size: 13px;
        padding: 12px 15px;
        max-width: 210px;
    }

}


/* =========================================================
   REDUCED MOTION
   Accessibility
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

}