/*
 * VisionCare — Home Page Section Styles
 *
 * This file merges the homepage section CSS for products, services,
 * booking, branch network, and team into a single stylesheet.
 */

/* =====================================================================
   PRODUCTS SECTION
   ===================================================================== */
.vc-products {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(180deg, #7facdf 0%, #ffffff 50%, #ffffff 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vc-products__container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vc-products__carousel-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.vc-products__carousel {
    width: 100%;
    height: 100%;
    position: relative;
}

.vc-products__item {
    position: absolute;
    width: 25vw;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

.vc-products__item.active {
    width: 50vw;
    opacity: 1;
    pointer-events: auto;
    z-index: 10;
    transform: translateX(21vw) scale(0.8);


}

@keyframes drift {
    from {
        transform: scaleX(-1) translateX(0);
    }

    to {
        transform: scaleX(-1) translateX(20px);
    }
}

.vc-products__item.prev {
    width: 25vw;
    opacity: 0.6;
    pointer-events: auto;
    z-index: 5;
    transform: translateX(60.5vw) scale(0.5);
}

.vc-products__item.next {
    width: 25vw;
    opacity: 0.6;
    pointer-events: auto;
    z-index: 5;
    transform: translateX(7.5vw) scale(0.5);
}

.vc-products__item.hidden {
    opacity: 0;
    transform: scale(0.3);
}

/* Content within items */
.vc-products__item-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.vc-products__item-content {
    text-align: center;
    max-width: 50vw;
    margin-bottom: 4vh;
    opacity: 0;
    transition: opacity 0.5s ease 0.3s, transform 0.5s ease 0.3s;
    transform: translateY(20px);
}

.vc-products__item.active .vc-products__item-content {
    opacity: 1;
    transform: translateY(0);
}

.vc-products__heading {
    font-family: var(--vc-font-brand);
    font-size: 3.5vw;
    color: var(--vc-blue-primary);

}

.vc-products__description {
    font-family: var(--vc-font-body);
    font-size: 1vw;
    color: #4d5b7a;
    line-height: 1.6;
    max-width: 35vw;
    margin: 0 auto 3vh;
}

/* Visuals - Pedestal and Image */
.vc-products__visual {
    position: relative;
    width: 100%;
    height: 45vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.vc-products__item-image {
    width: auto;
    height: 40vh;
    object-fit: contain;
    z-index: 2;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.12));
    transition: transform 0.5s ease;
}

.vc-products__item.active .vc-products__item-image {
    height: 45vh;
}

.vc-products__pedestal {
    position: absolute;
    bottom: -5vh;
    width: 40vw;
    height: auto;
    z-index: 1;
    opacity: 0.8;
}

.vc-products__item.prev .vc-products__pedestal,
.vc-products__item.next .vc-products__pedestal {
    width: 20vw;
    bottom: 5vh;
}

/* Navigation */
.vc-products__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3.5vw;
    height: 3.5vw;
    border-radius: 50%;
    background: #fff;
    border: 0.15vw solid var(--vc-blue-primary);
    color: var(--vc-blue-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
}

.vc-products__nav:hover {
    background: var(--vc-blue-primary);
    color: #fff;
}

.vc-products__nav--prev {
    left: 8vw;
}

.vc-products__nav--next {
    right: 8vw;
}

.vc-products__nav svg {
    width: 1.5vw;
    height: 1.5vw;
}

/* Clouds */
.vc-products__cloud {
    position: absolute;
    bottom: 0;
    width: 100vw;
    z-index: 30;
    pointer-events: none;
}

.vc-products__cloud-image {
    width: 100%;
    height: auto;
    opacity: 0.9;
}

.cloud-left {
    position: absolute;
    /* Ensure it can move relative to the container */
    left: 5vw;
    left: 49vw;
    bottom: -3vh;

    /* Animation Properties */
    animation: drift 5s ease-in-out infinite alternate;
    animation-delay: 3s;

    /* Initial state */
    transform: scaleX(-1);
}

.cloud-right {
    right: -10vw;
    width: 60vw;
    bottom: -5vh;
}

@media (max-width: 768px) {
    .vc-products__heading {
        font-size: 8vw;
    }

    .vc-products__description {
        font-size: 3.5vw;
        max-width: 80vw;
    }

    .vc-products__item.active .vc-products__visual {
        height: 35vh;
    }

    .vc-products__item-image {
        height: 25vh;
    }

    .vc-products__pedestal {
        width: 80vw;
    }

    .vc-products__nav {
        width: 10vw;
        height: 10vw;
    }

    .vc-products__nav svg {
        width: 5vw;
        height: 5vw;
    }
}

/* =====================================================================
   SERVICES SECTION
   ===================================================================== */
.vc-services {
    padding: 8vh 4vw;
    background: #fff;
}

.vc-services__inner {

    margin: 0 auto;
}

.vc-services__intro {
    text-align: left;
    margin-bottom: 4vh;
}

.vc-services__label {
    display: inline-block;
    margin-bottom: 1.5vh;
    font-size: 0.8vw;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #1d4f96;
    font-weight: 600;
}

.vc-services__title {
    font-size: 3vw;
    line-height: 1.02;
    color: var(--vc-blue-primary);
    margin: 0 0 2vh;
    letter-spacing: -0.03em;
}

.vc-services__subtitle,
.vc-products__description {
    margin: 0 0 2vh;
    color: #4d5b7a;
    line-height: 1.85;
    font-size: 1vw;
}

.vc-services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2vw;
}

.grid-layer-v2 {
    display: grid;
    gap: 2vw;
    grid-template-columns: auto auto;
}

.grid-layer-item--1 {
    margin-top: 20vh;
}

.vc-services__card {
    display: flex;
    flex-direction: column;
    min-height: 55vh;
    background: #d7e7f9;
    border: 1px solid rgba(13, 24, 58, 0.08);
    border-radius: 2vw;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    cursor: pointer;
    margin-bottom: 2vh;

}

.vc-services__card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 60px rgba(16, 60, 125, 0.12);
}

.vc-services__media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: inherit;
    background: linear-gradient(180deg, rgba(86, 130, 214, 0.11) 0%, rgba(255, 255, 255, 1) 100%);
    background-size: cover;
}

.vc-services__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.vc-services__card:hover .vc-services__image {
    transform: scale(1.05);
}

.vc-services__card--icon .vc-services__card-title,
.vc-services__card--icon .vc-services__card-description {
    color: #000;
}

.vc-services__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
    border-radius: 28px;
    color: #0d3a88;
    background: #d8e5ff;
}

.vc-services__icon svg {
    width: auto;
    height: 15vw;
}

.vc-services__card--icon .vc-services__card-body {
    position: relative;

}

.vc-services__card--image .vc-services__card-body {
    position: absolute;
    bottom: 10px;
}

.vc-services__card--image:hover .vc-services__media {
    scale: 1.05;
    transition: 300ms;
}

.vc-services__card-body {
    padding: 2vw;
    flex: 1;
    margin-top: 0px;
    z-index: 1;
}

.vc-services__card--icon .vc-services__card-body {
    padding: 2vw;
}

.vc-services__card-title {
    margin: 0 0 1vh;
    font-size: 1.5vw;
    color: #fff;
    line-height: 1.3;
    font-weight: 400;
}

.over-layer-v2 {
    background: linear-gradient(1deg, black, transparent);
    width: 100%;
    position: absolute;
    height: 100%;
    bottom: 0;
}

.vc-services__card-description {
    margin: 0;
    color: #fff;
    line-height: 1.8;
    font-size: 1vw;
}

@media (max-width: 980px) {}

@media (max-width: 768px) {
    .vc-services {
        padding: 40px 16px;
    }

    .vc-services__intro {
        margin-bottom: 28px;
    }

    .vc-services__subtitle {
        display: block;
    }

    .vc-services__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .vc-services__card {
        min-height: 240px;
    }

    .vc-services__card-title {
        opacity: 0;
        transform: translateY(8px);
        transition: opacity 0.25s ease, transform 0.25s ease;
    }

    .vc-services__card-description {
        display: none;
    }

    .vc-services__card:hover .vc-services__card-title,
    .vc-services__card:focus-within .vc-services__card-title {
        opacity: 1;
        transform: translateY(0);
    }

    .grid-layer-v2 {
        gap: 14px;
        margin-top: 40px;
    }

    .grid-layer-item--1 {
        margin-top: 0vh;
    }

    .vc-services__card--icon .vc-services__card-body {
        padding: 0px;
    }
}

/* =====================================================================
   BOOKING SECTION
   ===================================================================== */
.vc-booking {
    background: linear-gradient(180deg, #97C0C8 0%, #ffffff 65%);
    padding: 8vh 4vw 0;
    position: relative;
    overflow: hidden;

}

.vc-booking__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4vh;
}

.vc-booking__copy {

    width: 100%;
}


.vc-booking__subtitle {
    margin: 0 0 2vh;
    color: #45506c;
    line-height: 1.8;
    font-size: 1vw;
}

.vc-booking__visual {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 2vw;
    width: 100%;
    max-width: 80vw;
}

.vc-booking__phone {
    position: relative;
    width: 18vw;
}

.vc-booking__phone-screen {
    position: relative;
    width: 100%;
    z-index: 0;
    left: 4vw;
    bottom: 0vh;
    max-height: 50vh;
    overflow: hidden;
}

.vc-booking__phone-ui {
    width: 100%;
    display: block;
    position: relative;
    z-index: 10;
}

.vc-booking__slider {
    position: absolute;
    inset: 0% 5% 16%;
    overflow: hidden;
    border-radius: 2vw;
    z-index: 1;
}

.vc-booking__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: vcBookingSlide 10s ease-in-out infinite;
}

.vc-booking__slide:nth-child(1) {
    animation-delay: 0s;
}

.vc-booking__slide:nth-child(2) {
    animation-delay: 5s;
}

.vc-booking__phone::after,
.vc-booking__model::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 110px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.95) 100%);
    pointer-events: none;
}

.vc-booking__model {
    position: relative;
    width: 28vw;
}

.vc-booking__model img {
    width: 100%;
    display: block;
    object-fit: contain;
}

@keyframes vcBookingSlide {

    0%,
    40% {
        opacity: 1;
    }

    45%,
    100% {
        opacity: 0;
    }
}

.vc-booking__clouds {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -30vh;
    pointer-events: none;
    overflow: visible;
    z-index: 20;
    height: 0;
}

.vc-booking__cloud {
    position: absolute;
    bottom: -10px;
    opacity: 0.95;
    will-change: transform;
    animation: vcCloudDrift 24s linear infinite;
}

.vc-booking__cloud--one {
    width: 60vw;
    right: 0;
    animation-delay: 0s;

}

.vc-booking__cloud--two {
    width: 70vw;
    animation-delay: 8s;

}

@keyframes vcCloudDrift {
    0% {
        transform: translateX(0) translateY(0);
    }

    50% {
        transform: translateX(180px) translateY(-8px);
    }

    100% {
        transform: translateX(0) translateY(0);
    }
}



@media screen and (max-width: 700px) {
    .vc-footer__contact {
        text-align: center;
        width: 100%;
    }

    .vc-booking {
        padding: 60px 0 40px;
    }

    .vc-booking__title {
        font-size: 2.5rem;
    }

    .vc-booking__subtitle {
        font-size: 0.975rem;
    }

    .vc-booking__phone {
        width: min(280px, 80%);
        max-width: 280px;
    }

    .vc-booking__slider {
        inset: 12% 8% 16%;
    }

    .vc-booking__phone-screen {
        left: 0px;
        max-height: 400px;
    }

    .vc-booking__slider {
        inset: 0% 6% 16%;
    }

    .vc-booking__inner {
        min-height: auto;
        padding: 0 16px;
    }
}

/* =====================================================================
   BRANCH NETWORK SECTION
   ===================================================================== */
.vc-branch-network {
    padding: 8vh 4vw;
    background: #fff;
}

.vc-branch-network__inner {
    display: grid;
    grid-template-columns: 27vw 1fr 25vw;
    gap: 3vw;
    align-items: start;
}

.vc-branch-network__label {
    display: inline-block;
    margin-bottom: 1.5vh;
    color: #1f4cb4;
    font-weight: 700;
    font-size: 0.8vw;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.vc-branch-network__title {
    line-height: 1.02;
    color: var(--vc-blue-primary);
}

.vc-branch-network__h3-title {
    margin: 0 0 20px;
    color: var(--vc-blue-primary);
    font-size: 1.5vw;
}

.vc-branch-network__intro img {
    position: relative;
    left: 8vw;
    bottom: -4vh;
}

.vc-branch-network__subtitle,
.vc-branch-network__description {
    margin: 0 0 16px;
    color: #45506c;
    line-height: 1.8;
    font-size: 1vw;
}

.vc-branch-network__map-card {
    position: relative;
    width: 100%;
}

.vc-branch-network__map-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1.15;
    min-height: 45vh;
    overflow: hidden;
}

.vc-branch-network__map-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.vc-branch-network__pin {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 1.5vw;
    height: 1.5vw;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 2;
}

.vc-branch-network__pin-dot {
    width: 16px;
    height: 16px;
    display: block;
    border-radius: 50%;
    background: #0b4bb4;
    border: 3px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 6px rgba(11, 75, 180, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.vc-branch-network__pin.active .vc-branch-network__pin-dot {
    transform: scale(1.3);
    box-shadow: 0 0 0 10px rgba(11, 75, 180, 0.2);
}

.vc-branch-network__details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20vh;
}

.vc-branch-network__details-panel {
    padding: 2vw;
    background: rgb(244 247 253);
    border-radius: 2vw;

    border: 1px solid #b6c2ed;
}

.vc-branch-network__details-title {
    margin: 0 0 10px;
    font-size: 1.35rem;
    color: #0f2140;
}

.vc-branch-network__details-address,
.vc-branch-network__details-phone,
.vc-branch-network__details-email {
    margin: 0 0 10px;
    color: #35415d;
    line-height: 1.75;
}

.vc-branch-network__details-address::before {
    content: "📌";
    margin-right: 8px;
}

.vc-branch-network__details-phone::before {
    content: "📞";
    margin-right: 8px;
}

.vc-branch-network__list {
    display: grid;
    gap: 12px;
}

.vc-branch-network__branch-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 18px 20px;
    border-radius: 22px;
    border: 1px solid rgba(11, 75, 180, 0.12);
    background: white;
    color: #0f2140;
    text-align: left;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.vc-branch-network__branch-card:hover,
.vc-branch-network__branch-card.active {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(11, 75, 180, 0.09);
    background: #f3f6ff;
}

.vc-branch-network__branch-name {
    font-weight: 700;
    font-size: 1rem;
}

.vc-branch-network__branch-meta {
    font-size: 0.93rem;
    color: #53607a;
}

@media (max-width: 1040px) {}

@media (max-width: 768px) {
    .vc-branch-network {
        padding: 40px 16px;
    }

    .vc-branch-network__inner {
        gap: 24px;
    }

    .vc-branch-network__map-wrapper {
        min-height: 300px;
    }

    .vc-branch-network__details-panel {
        min-height: auto;
    }

    .vc-branch-network__details {
        order: 3;
        margin-top: 1vh;
    }
}

/* =====================================================================
   TEAM SECTION
   ===================================================================== */
.vc-team {
    position: relative;
    padding: 8vh 4vw 0;
    background: #ffffff;
    overflow: hidden;
}

.vc-team__inner {
    display: grid;
    grid-template-columns: auto;
    align-items: center;
    gap: 0rem;
    max-width: 80vw;
    margin: 0 auto;
    padding: 0 4vw;
}

.vc-team__title {
    font-size: 3vw;
    line-height: 1.02;
    margin: 0 0 1.5vh;
    letter-spacing: -0.02em;
    color: var(--vc-blue-primary);
}

.vc-team__description {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.9;
    color: #213253;
}

.vc-team__actions {
    margin-top: 2rem;
}

.vc-team__visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.vc-team__poster {
    width: 100%;
    max-width: 30vw;
    min-height: 45vh;
    border-radius: 2vw;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(9, 67, 167, 0.05), rgba(255, 255, 255, 1));
    box-shadow: 0 30px 80px rgba(15, 46, 98, 0.12);
    transition: transform 0.25s ease;
    will-change: transform;
}

.vc-team__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vc-team__poster-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8efff 0%, #f8fbff 100%);
}

.vc-team__back-to-top {
    position: absolute;
    bottom: -16px;
    right: 0;
    border: 0;
    background: #102b69;
    color: #ffffff;
    padding: 0.95rem 1.4rem;
    border-radius: 999px;
    font-size: 0.95rem;
    cursor: pointer;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease, box-shadow 0.25s ease;
    box-shadow: 0 18px 40px rgba(16, 43, 105, 0.18);
}

.vc-team__back-to-top:hover {
    transform: translateY(18px);
    box-shadow: 0 20px 45px rgba(16, 43, 105, 0.22);
}

.vc-team--entered .vc-team__content {
    opacity: 1;
    transform: translateY(0);
}

.vc-team__content {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.vc-team--entered .vc-team__back-to-top {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 980px) {
    .vc-team__inner {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .vc-team__visual {
        justify-content: flex-start;
    }
}

@media (max-width: 680px) {
    .vc-team {
        padding: 5rem 0 0px 0rem;
    }

    .vc-team__title {
        font-size: clamp(2rem, 5vw, 2.7rem);
    }

    .vc-team__poster {
        min-height: 320px;
    }

    .vc-team__back-to-top {
        position: relative;
        bottom: auto;
        right: auto;
        display: inline-flex;
        margin-top: 1.5rem;
        transform: translateY(0);
        opacity: 1;
    }
}

/* home */
/**
 * VisionCare — Products Carousel Styles
 *
 * Renders a 3D carousel with:
 * - Large center image (highlighted)
 * - Smaller side images (positioned higher)
 * - Smooth rotation animations
 * - Animated cloud at the bottom
 */

/* =====================================================================
   ANIMATED CLOUD (Bottom)
   ===================================================================== */
.vc-products__cloud {
    position: absolute;

    transform: translateX(-50%);
    z-index: 12;
    animation: vc-cloud-float 6s ease-in-out infinite;
}



.cloud-right {
    left: 80%;
    bottom: 20px;
    animation-delay: 3s;
    width: 60vw;
}

.vc-products__cloud-image {
    width: 50vw;
    height: auto;
    object-fit: contain;
}

.vc-products__cloud--default {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: -15px 10px 0 -5px rgba(255, 255, 255, 0.8),
        15px 10px 0 -5px rgba(255, 255, 255, 0.8);
}

@keyframes vc-cloud-float {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 0.8;
    }

    50% {
        transform: translateX(-50%) translateY(-15px);
        opacity: 1;
    }
}

/* -------------- */
/*
 * VisionCare — Services Section Styles
 *
 * Styles for six cards displaying image and icon services.
 */

@media (max-width: 980px) {}

@media (max-width: 768px) {
    .vc-services {
        padding: 4vh 4vw;
    }

    .vc-services__intro {
        margin-bottom: 3vh;
    }

    .vc-services__subtitle {
        display: block
    }

    .vc-services__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2vw;
    }

    .vc-services__card {
        min-height: 25vh;
    }

    .vc-services__card-title {
        opacity: 0;
        transform: translateY(8px);
        transition: opacity 0.25s ease, transform 0.25s ease;
    }

    .vc-services__card-description {
        display: none;
    }

    .vc-services__card:hover .vc-services__card-title,
    .vc-services__card:focus-within .vc-services__card-title {
        opacity: 1;
        transform: translateY(0);
    }

    .grid-layer-v2 {

        gap: 14px;
        margin-top: 40px;
    }

    .grid-layer-item--1 {
        margin-top: 0vh;
    }

    .vc-services__card--icon .vc-services__card-body {
        padding: 0px;
    }
}

/* Home */
.merged-heading {
    grid-column: span 2;
    /* 👈 this "merges" 2 columns */

}

/* //# blog */

.vc-blog {
    padding: 10vh 0 7vh;
}

.home .vc-blog {
    background: #1a4eba;
}

.vc-blog__media {
    height: 25vh;
    background-size: cover;
}

.vc-blog__grid {

    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1.5rem 2rem !important;
}

.vc-blog__content {
    padding: 1.75rem 0.5rem 2rem;
}