/* ═══════════════════════════════════════════════════════
   HERO V2  — Curaway Health
═══════════════════════════════════════════════════════ */

/* ── Desktop: horizontal background ── */
body {
    overflow-x: hidden;
}

.hero-v2 {
    background: url('../images/horizontal.jpg.jpeg') center center / cover no-repeat;
    height: calc(100svh - 108px);
    min-height: 500px;
    max-height: 860px;
    padding-bottom: 104px;
    display: flex;
    align-items: center;
    overflow-y: hidden;
    overflow-x: visible;
}

.hero-v2__container {
    z-index: 1;
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-v2__row {
    min-height: calc(100svh - 108px);
    max-height: 860px;
    align-items: center;
}

/* ── Left column ── */
.hero-v2__left {
    padding-top: 6vh;
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-self: flex-start;
    z-index: 2;
    transform: none;
}

/* Badge */
.hero-v2__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #2EBB79;
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    padding: 10px 22px;
    border-radius: 50px;
    margin-bottom: 20px;
    width: fit-content;
}
.hero-v2__badge i { font-size: 13px; }

/* Headline */
.hero-v2__h1 {
    font-size: clamp(38px, 4.6vw, 58px);
    font-weight: 800;
    line-height: 1.06;
    color: #1a1a1a;
    letter-spacing: -2px;
    margin-bottom: 14px;
}

/* Sub */
.hero-v2__sub {
    font-size: 15px;
    line-height: 1.7;
    color: #5a5c5e;
    max-width: 420px;
    margin-bottom: 26px;
}

/* CTA buttons */
.hero-v2__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}
.hero-v2__btn-fill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #123524;
    color: #fff !important;
    font-size: 16px;
    font-weight: 700;
    padding: 15px 32px;
    border-radius: 8px;
    text-decoration: none !important;
    box-shadow: 0 6px 20px rgba(18,53,36,0.28);
    transition: background .25s, transform .2s, box-shadow .25s;
}
.hero-v2__btn-fill:hover {
    background: #0d2719;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(18,53,36,0.38);
    color: #fff !important;
}
.hero-v2__btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #1a1a1a !important;
    font-size: 16px;
    font-weight: 700;
    padding: 13px 30px;
    border-radius: 8px;
    border: 2px solid #c5c5c5;
    text-decoration: none !important;
    transition: border-color .25s, background .25s, color .25s, transform .2s;
}
.hero-v2__btn-outline:hover {
    border-color: #123524;
    color: #123524 !important;
    background: rgba(18,53,36,0.04);
    transform: translateY(-2px);
}

/* ── Right column ── */
.hero-v2__right {
    position: relative;
    height: calc(100svh - 108px);
    max-height: 760px;
    min-height: 500px;
    overflow: visible;
}

/* World map — hidden on desktop (bg image already has map context) */
.hero-v2__map {
    display: none;
    position: absolute;
    bottom: 0;
    left: -20%;
    transform: none;
    width: 130%;
    max-width: none;
    height: auto;
    z-index: 1;
    opacity: 0.9;
    pointer-events: none;
}

/* Doctor image */
.hero-v2__doc {
    position: absolute;
    bottom: -6%;
    right: -2%;
    left: auto;
    transform: none;
    z-index: 2;
    height: 94%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.08));
}

/* Temp hero image — positioned relative to .hero-v2 section so bottom:0 = journey bar */
.hero-v2__hero-img {
    position: absolute;
    bottom: 0;
    right: -20%;
    left: auto;
    transform: none;
    z-index: 2;
    height: 100%;
    width: auto;
    max-width: none;
    filter: none;
}

/* Female Doctor image (left of main doctor) */
.hero-v2__doc-female {
    position: absolute;
    bottom: -6%;
    left: 16%;
    right: auto;
    transform: none;
    z-index: 1;
    height: 86%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.08));
}



/* ── 1400px and above (large/wide screens) ── */
@media (min-width: 1400px) {
    .hero-v2__hero-img { height: 100%; width: auto; max-width: none; right: 0; bottom: 0; }
}

/* ── 1600px and above (extra-wide / 4K ── */
@media (min-width: 1600px) {
    .hero-v2__hero-img { height: 100%; width: auto; max-width: none; right: 0; bottom: 0; }
}

/* ── 991px – 1199px ── */
@media (max-width: 1199px) {
    .hero-v2__h1 { font-size: 46px; letter-spacing: -1.3px; }
    .hero-v2__sub { max-width: 400px; }
    .hero-v2__doc { height: 80%; right: -6%; bottom: 0; }
    .hero-v2__doc-female { height: 80%; left: -6%; bottom: 0; }
    .hero-v2__hero-img { height: 100%; width: auto; max-width: none; right: 0; bottom: 0; }

}

/* ── 768px – 991px ── */
@media (max-width: 991px) {
    .hero-v2 {
        height: calc(100svh - 90px);
        min-height: 460px;
        padding-bottom: 0 !important;
    }
    .hero-v2__tmarquee { display: none !important; }
    .hero-v2__row,
    .hero-v2__right {
        min-height: calc(100svh - 90px);
        max-height: 700px;
    }
    .hero-v2__left { transform: none; padding-top: 2vh; }
    .hero-v2__h1 { font-size: 34px; letter-spacing: -1px; }
    .hero-v2__sub { font-size: 14px; }
    .hero-v2__btn-fill, .hero-v2__btn-outline { font-size: 14px; padding: 12px 24px; }
    .hero-v2__doc { height: 68%; right: -1%; bottom: 0; }
    .hero-v2__doc-female { height: 68%; left: -1%; bottom: 0; }
    .hero-v2__hero-img { height: 85%; width: auto; max-width: none; right: 0; bottom: 0; }
}

/* ════════════════════════════════════════
   MOBILE  ≤ 767px — follows image2 layout
   stacked content with map + doctor visual
════════════════════════════════════════ */
@media (max-width: 767px) {
    .hero-v2 {
        background: url('../images/vertical-map.png') center center / cover no-repeat;
        background-size: 90% auto;
        background-position: center 80%;
        height: calc(100svh - 76px);
        min-height: 480px;
        max-height: 680px;
        padding: 0;
        align-items: stretch;
    }

    .hero-v2__row {
        height: calc(100svh - 76px);
        min-height: 480px;
        max-height: 680px;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        padding-bottom: 0;
    }

    .hero-v2__left,
    .hero-v2__right {
        width: 100%;
        max-width: 100%;
        flex-shrink: 0;
    }

    .hero-v2__left {
        flex: 0 0 auto;
        justify-content: center;
        align-items: center;
        padding-top: 18px;
        padding-bottom: 4px;
        padding-left: 20px;
        padding-right: 20px;
        transform: none;
        align-self: auto;
        position: relative;
        z-index: 2;
        text-align: center;
    }

    .hero-v2__right {
        flex: 1 1 0;
        min-height: 200px;
        max-height: unset;
        overflow: hidden;
        position: relative;
        display: flex;
        align-items: flex-end;
        margin-top: 0;
    }

    /* hide the map on mobile since background image is now used */
    .hero-v2__map {
        display: none;
    }

    .hero-v2__doc {
        height: 90%;
        left: 50%;
        margin-left: 1px;
        right: auto;
        transform: none;
        bottom: 0;
        max-width: 58%;
        filter: drop-shadow(0 14px 30px rgba(0,0,0,0.12));
    }

    .hero-v2__hero-img {
        height: auto;
        width: 100%;
        left: 0;
        right: 0;
        bottom: 0;
        transform: none;
        filter: none;
    }

    .hero-v2__doc-female {
        display: block;
        position: absolute;
        height: 90%;
        right: 50%;
        margin-right: 1px;
        left: auto;
        bottom: 0;
        width: auto;
        max-width: 58%;
        object-fit: contain;
        z-index: 1;
        filter: drop-shadow(0 14px 30px rgba(0,0,0,0.12));
    }

    .hero-v2__float {
        display: none;
    }

    .hero-v2__h1 {
        font-size: clamp(31px, 7.9vw, 42px);
        line-height: 1.03;
        letter-spacing: -1.5px;
        margin-bottom: 12px;
        max-width: 520px;
        text-align: center;
    }

    .hero-v2__sub {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 18px;
        max-width: 330px;
        color: #3f4347;
        text-align: center;
    }

    .hero-v2__badge {
        font-size: 10px;
        padding: 8px 20px;
        margin-bottom: 16px;
        letter-spacing: 0.06em;
        border-radius: 999px;
    }

    .hero-v2__ctas {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        width: 100%;
    }

    .hero-v2__btn-fill,
    .hero-v2__btn-outline {
        font-size: 14px;
        padding: 14px 20px;
        border-radius: 12px;
        width: 100%;
        max-width: 260px;
    }

    .hero-v2__btn-outline {
        border-color: rgba(134, 169, 70, 0.7);
        box-shadow: 0 10px 24px rgba(18,53,36,0.08);
    }
}

/* ── very small phones ≤ 380px ── */
@media (max-width: 380px) {
    .hero-v2__left { padding-left: 16px; padding-right: 16px; padding-top: 14px; padding-bottom: 8px; }
    .hero-v2__h1 { font-size: 28px; }
    .hero-v2__sub { font-size: 13px; margin-bottom: 16px; }
    .hero-v2__badge { font-size: 9.5px; padding: 8px 18px; margin-bottom: 18px; }
    .hero-v2__btn-fill, .hero-v2__btn-outline { font-size: 13px; padding: 13px 18px; border-radius: 12px; width: 100%; max-width: 260px; }
    .hero-v2__doc { height: 90%; left: 50%; margin-left: 1px; right: auto; bottom: 0; max-width: 58%; }
    .hero-v2__doc-female { height: 90%; right: 50%; margin-right: 1px; left: auto; bottom: 0; max-width: 58%; }
    .hero-v2__hero-img { height: auto; width: 100%; left: 0; right: 0; transform: none; bottom: 0; }
    .hero-v2__map { display: none; }
}

/* ── short landscape viewports (laptops) ── */
@media (max-height: 640px) and (min-width: 768px) {
    .hero-v2 { height: calc(100svh - 86px); max-height: none; }
    .hero-v2__row,
    .hero-v2__right { height: calc(100svh - 86px); max-height: none; min-height: unset; }
    .hero-v2__left { transform: translateY(-1vh); }
    .hero-v2__doc { height: 56%; right: 0; bottom: 5%; }
    .hero-v2__doc-female { height: 56%; left: 0; bottom: 5%; }
    .hero-v2__hero-img { height: 75%; width: auto; max-width: none; right: 0; left: auto; transform: none; bottom: 0; }
    .hero-v2__h1 { font-size: clamp(26px, 3.3vw, 42px); letter-spacing: -1px; margin-bottom: 8px; }
    .hero-v2__sub { font-size: 13px; margin-bottom: 16px; }
    .hero-v2__badge { font-size: 10px; padding: 7px 14px; margin-bottom: 12px; }
    .hero-v2__btn-fill, .hero-v2__btn-outline { font-size: 13px; padding: 11px 22px; }
}

/* ─────────────────────────────────────────────────────
   HERO TESTIMONIAL MARQUEE  (desktop ≥992px)
───────────────────────────────────────────────────── */
@keyframes hero-tscroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.hero-v2__tmarquee {
    position: absolute;
    bottom: 56px;
    left: 0;
    right: 0;
    z-index: 4;
    padding-bottom: 0;
}

.hero-v2__tmarquee-inner {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);
}

.hero-v2__tmarquee-track {
    display: flex;
    gap: 14px;
    width: max-content;
    animation: hero-tscroll 36s linear infinite;
}

.hero-v2__tmarquee-track:hover {
    animation-play-state: paused;
}

.hero-v2__tcard {
    flex-shrink: 0;
    width: 290px;
    background: rgba(255, 255, 255, 0.93);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(18, 53, 36, 0.08);
    border-radius: 14px;
    padding: 9px 13px 8px;
    box-shadow: 0 4px 18px rgba(18, 53, 36, 0.09);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hero-v2__tcard-stars {
    display: flex;
    gap: 2px;
    color: #FFC107;
    font-size: 10px;
}

.hero-v2__tcard-text {
    font-size: 11.5px;
    line-height: 1.45;
    color: #374151;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-v2__tcard-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.hero-v2__tcard-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1.5px solid rgba(18, 53, 36, 0.12);
}

.hero-v2__tcard-name {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #123524;
    line-height: 1.2;
}

.hero-v2__tcard-meta {
    display: block;
    font-size: 10px;
    color: #2EBB79;
    font-weight: 600;
}

@media (max-width: 991px) {
    .hero-v2__tmarquee { display: none !important; }
}

/* ═══════════════════════════════════════════════════════
   JOURNEY BAR
═══════════════════════════════════════════════════════ */
.curaway-journey-bar {
    padding: 8px 0;
    background: #fff;
    border-top: 1px solid #f0f2f0;
    border-bottom: 1px solid #f0f2f0;
}
.curaway-journey-bar__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
}
.curaway-journey-step {
    font-size: 26px;
    font-weight: 700;
    color: #123524;
    letter-spacing: 0.01em;
}
.curaway-journey-step--accent {
    color: #2EBB79;
}
.curaway-journey-arrow {
    font-size: 80px;
    font-weight: 700;
    color: #2EBB79;
    line-height: 1;
}
@media (min-width: 768px) {
    .curaway-journey-bar__inner { gap: 200px; }
}
@media (max-width: 480px) {
    .curaway-journey-step { font-size: 18px; }
    .curaway-journey-arrow { font-size: 20px; }
    .curaway-journey-bar__inner { gap: 16px; }
}

/* ═══════════════════════════════════════════════════════
   SERVICES SWIPER — equal-height cards
═══════════════════════════════════════════════════════ */
.services-swiper .swiper-wrapper { align-items: stretch; }
.services-swiper .swiper-slide { height: auto !important; }
.services-swiper .swiper-slide .icon-with-text-style-02,
.services-swiper .swiper-slide .transition-inner-all,
.services-swiper .swiper-slide .feature-box { height: 100%; display: flex; flex-direction: column; }
.services-swiper .swiper-slide .feature-box-content { flex: 1; display: flex; flex-direction: column; }
.services-swiper .swiper-slide .feature-box-content .btn-link { margin-top: auto; }

/* ═══════════════════════════════════════════════════════
   GALLERY TICKER
═══════════════════════════════════════════════════════ */
.gallery-ticker-wrap {
    overflow: hidden;
    width: 100%;
    padding: 0;
}
.gallery-ticker {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    width: max-content;
    animation: gallery-scroll 32s linear infinite;
}
.gallery-ticker-wrap:hover .gallery-ticker {
    animation-play-state: paused;
}
@keyframes gallery-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.gallery-item-link {
    position: relative;
    display: block;
    flex: 0 0 auto;
    width: 340px;
    height: 260px;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
}
.gallery-item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}
.gallery-item-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(18, 53, 36, 0.55);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 1;
    border-radius: 8px;
}
.gallery-item-link:hover::before { opacity: 1; }
.gallery-item-link:hover .gallery-item-img { transform: scale(1.07); }
.gallery-item-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 2;
}
.gallery-item-link:hover .gallery-item-overlay { opacity: 1; }
@media (max-width: 767px) {
    .gallery-item-link { width: 260px; height: 200px; }
}
