/* =====================================================
   Fossetta Flip Slider – Public / Frontend Styles
   Exact visual replica of the original HTML design.
   All classes namespaced with ffs- prefix.
   ===================================================== */

/* ---- Wrapper ---- */
.ffs-container {
    width: 95%;
    max-width: 1600px;
    margin: 0 auto;
}

/* ---- Swiper overrides ---- */
.ffs-services-swiper {
    padding: 20px 0 60px !important;
}

/* ---- Card shell ---- */
.ffs-service-card {
    height: 350px;
    perspective: 1000px;
    cursor: pointer;
}

.ffs-card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.ffs-service-card:hover .ffs-card-inner {
    transform: rotateY(180deg);
}

/* Touch-friendly: keep flipped if toggled */
.ffs-service-card.ffs-flipped .ffs-card-inner {
    transform: rotateY(180deg);
}

/* ---- Shared face properties ---- */
.ffs-card-front,
.ffs-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 11px;
    overflow: hidden;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* ===== FRONT ===== */
.ffs-card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ffs-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.ffs-frame {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    z-index: 2;
    pointer-events: none;
}

.ffs-front-content {
    position: absolute;
    inset: 0;
    z-index: 3;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.ffs-front-content h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 30px;
    font-weight: 600;
    margin: 0 0 10px;
    line-height: 1.2;
    color: #fff;
}

.ffs-front-content h4 {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 400;
    margin: 0;
    color: #fff;
}

.ffs-line {
    width: 60px;
    height: 2px;
    background: #c89b4d;
    margin: 0 0 15px;
    flex-shrink: 0;
}

.ffs-number {
    position: absolute;
    bottom: 40px;
    font-size: 40px;
    color: #c89b4d;
    font-family: 'Cormorant Garamond', Georgia, serif;
    line-height: 1;
}

/* ===== BACK ===== */
.ffs-card-back {
    background: #121212;
    transform: rotateY(180deg);
    display: flex;
    justify-content: center;
    align-items: center;
}

.ffs-back-content {
    text-align: center;
    color: #fff;
    padding: 40px 30px;
}

.ffs-back-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 20px;
}

.ffs-back-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.ffs-back-content h3 {
    font-size: 28px;
    margin: 0 0 10px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    color: #fff;
    line-height: 1.2;
}

.ffs-back-content p {
    line-height: 1.8;
    color: #d8d8d8;
    margin: 0 0 25px;
    font-size: 14px;
}

/* Read-more circular button */
.ffs-read-more {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid #c89b4d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #c89b4d;
    font-size: 16px;
    line-height: 1;
    transition: background 0.3s, color 0.3s;
}

.ffs-read-more:hover,
.ffs-read-more:focus {
    background: #c89b4d;
    color: #fff;
    outline: none;
}

/* ===== SWIPER NAV & PAGINATION ===== */
.ffs-services-swiper .swiper-button-next,
.ffs-services-swiper .swiper-button-prev {
    width: 45px;
    height: 45px;
    background: #221d46;
    border-radius: 50%;
    color: #fff;
}

.ffs-services-swiper .swiper-button-next:after,
.ffs-services-swiper .swiper-button-prev:after {
    font-size: 18px;
    color: #c89b4d;
}

.ffs-services-swiper .swiper-pagination-bullet-active {
    background: #c89b4d;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .ffs-service-card {
        height: 400px;
    }

    .ffs-front-content h2 {
        font-size: 26px;
    }

    .ffs-back-content {
        padding: 30px 20px;
    }

    .ffs-back-content h3 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .ffs-front-content h2 {
        font-size: 22px;
    }

    .ffs-front-content h4 {
        font-size: 12px;
    }

    .ffs-number {
        font-size: 30px;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    .ffs-card-inner {
        transition: none;
    }
}

/* No-slides fallback */
.ffs-no-slides {
    text-align: center;
    padding: 20px;
    color: #666;
}
