/* ========== ROOT VARIABLES ========== */
:root {
    --primary-color: #0F2F73;
    --secondary-blue: #2563EB;
    --accent-color: #D4A574;
    --light-bg: #F8FBFF;
    --light-text: #6B7280;
    --heading: #1F2937;
    --paragraph: #4B5563;
}

/* ========== SERVICES HERO SECTION ========== */
.services-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: url('../images/services_image/services.png') center/cover no-repeat;
    background-color: #F5F9FF;
    overflow: hidden;
    width: 100%;
}

.services-hero::before {
    display: none;
}

.services-hero::after {
    display: none;
}

.services-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    animation: fadeInDown 0.8s ease-out;
}

.services-hero .hero-heading {
    margin: 0 0 1rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.services-hero .hero-subtitle {
    margin: 0;
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: #FFFFFF;
    font-weight: 500;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
}

/* ========== SERVICES INTRO SECTION ========== */
.services-intro {
    padding: clamp(3rem, 8vh, 6rem) 0;
    background: #FFFFFF;
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.intro-content .section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 2rem;
}

.intro-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--paragraph);
    margin: 0;
}

/* ========== SERVICES CAROUSEL SECTION ========== */
.services-section {
    padding: clamp(3rem, 8vh, 6rem) 0;
    background: linear-gradient(180deg, #FFFFFF 0%, #F8FBFF 100%);
}

.services-section .section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin: 0 0 3rem;
}

#servicesCarousel {
    width: 100%;
    overflow: hidden;
    /* vertical room so hovered cards aren't clipped when they lift */
    padding: 18px 6px 32px;
}

#servicesCarousel .carousel-inner {
    display: flex;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    scroll-behavior: smooth;
}

#servicesCarousel .carousel-item {
    min-width: clamp(300px, calc(100% / 3 - 1.5rem), 450px);
    flex-shrink: 0;
}

/* ========== SERVICE CARD ========== */
.service-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FBFF 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 47, 115, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.1);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(37, 99, 235, 0.15);
    border-color: var(--secondary-blue);
}

.service-image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(79, 134, 247, 0.02) 100%);
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-card:hover .service-image img {
    transform: scale(1.04);
}

.service-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--secondary-blue);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.service-content {
    padding: clamp(1rem, 2vw, 1.5rem);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-title {
    margin: 0 0 0.5rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--heading);
    transition: color 0.4s ease;
}

.service-card:hover .service-title {
    color: var(--secondary-blue);
}

.service-description {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--paragraph);
    flex-grow: 1;
}

.service-highlights {
    margin: 0;
    padding-left: 1.25rem;
    list-style: none;
}

.service-highlights li {
    margin: 0.5rem 0;
    font-size: 0.85rem;
    color: var(--light-text);
    position: relative;
    padding-left: 0.75rem;
    transition: all 0.3s ease;
}

.service-highlights li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-blue);
    font-weight: bold;
}

.service-card:hover .service-highlights li {
    color: var(--paragraph);
    padding-left: 1rem;
}

/* ========== SERVICE FEATURES SECTION ========== */
.service-features {
    padding: clamp(3rem, 8vh, 6rem) 0;
    background: #FFFFFF;
}

.service-features .section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin: 0 0 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(2rem, 4vw, 3rem);
}

.feature-item {
    text-align: center;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    background: linear-gradient(135deg, #F8FBFF 0%, #EFF6FF 100%);
    border-radius: 16px;
    border: 1px solid rgba(37, 99, 235, 0.1);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.12);
    border-color: var(--secondary-blue);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(79, 134, 247, 0.1) 100%);
    border-radius: 12px;
    font-size: 1.8rem;
    color: var(--secondary-blue);
    transition: all 0.4s ease;
}

.feature-item:hover .feature-icon {
    transform: scale(1.15);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.25) 0%, rgba(79, 134, 247, 0.15) 100%);
}

.feature-item h3 {
    margin: 0 0 1rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--heading);
}

.feature-item p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--paragraph);
}

/* ========== SERVICES STATS SECTION ========== */
.services-stats {
    padding: clamp(3rem, 8vh, 6rem) 0;
    background: #C68366;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: clamp(2rem, 4vw, 3rem);
}

.stat-card {
    text-align: center;
    padding: clamp(2rem, 4vw, 3rem);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stat-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.stat-number {
    margin: 0 0 1rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #FFFFFF;
}

.stat-label {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

/* ========== SERVICES CTA SECTION ========== */
.services-cta {
    padding: clamp(3rem, 8vh, 6rem) 0;
    background: linear-gradient(135deg, #EAF3FF 0%, #F5F9FF 100%);
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.cta-content h2 {
    margin: 0 0 1rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 700;
    color: var(--primary-color);
}

.cta-content p {
    margin: 0 0 2rem;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--paragraph);
}

.cta-content .btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: #6A3E3F;
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s ease;
    border: 2px solid #6A3E3F;
}

.cta-content .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(106, 62, 63, 0.3);
}

/* ========== ANIMATIONS ========== */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(20px);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1024px) {
    #servicesCarousel .carousel-item {
        min-width: calc(50% - 1rem);
    }
}

@media (max-width: 768px) {
    #servicesCarousel .carousel-item {
        min-width: calc(100% - 1rem);
    }

    .services-hero {
        min-height: 40vh;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-card:hover {
        transform: translateY(-8px);
    }

    .feature-item:hover {
        transform: translateY(-4px);
    }
}

@media (max-width: 480px) {
    .services-hero {
        min-height: 30vh;
        padding: 3rem 1.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .service-image {
        height: 200px;
    }

    .service-badge {
        top: 1rem;
        right: 1rem;
        font-size: 0.75rem;
        padding: 0.4rem 0.75rem;
    }
}

/* ============================================================
   SERVICES CAROUSEL (self-contained, scoped .svc-* classes)
   Same card look as index.html; slides on mobile + desktop
   ============================================================ */
.svc-section {
    padding: clamp(2.5rem, 7vh, 5rem) 0;
    background: #F5F1ED;
}

.svc-header {
    text-align: center;
    margin-bottom: clamp(2rem, 5vh, 3.5rem);
}

.svc-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 700;
    letter-spacing: 2px;
    color: #1a1a1a;
    margin: 0 0 1rem;
}

.svc-decorative-line svg {
    width: 220px;
    max-width: 70%;
    height: auto;
}

/* Carousel layout: arrow | viewport | arrow */
.svc-carousel {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.svc-viewport {
    flex: 1 1 auto;
    min-width: 0;          /* CRITICAL: lets the flex item shrink so it scrolls internally */
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    cursor: grab;
    /* hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.svc-viewport::-webkit-scrollbar { display: none; }
.svc-viewport.is-dragging { cursor: grabbing; scroll-behavior: auto; }

.svc-track {
    display: flex;
    gap: 2rem;
    flex-wrap: nowrap;
}

/* CARD — same visual style as index.html service cards */
.svc-card {
    flex: 0 0 calc(25% - 1.5rem);
    min-width: calc(25% - 1.5rem);
    scroll-snap-align: start;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.svc-card:hover { transform: translateY(-6px); }

.svc-card-image {
    width: 100%;
    aspect-ratio: 1;
    min-height: 437px;
    border-radius: 8px;
    overflow: hidden;
    background: #F5F1ED;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.svc-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-user-drag: none;
    user-select: none;
    transition: transform 0.4s ease;
}

.svc-card:hover .svc-card-image img { transform: scale(1.05); }

.svc-card-name {
    font-family: 'Great Vibes', cursive;
    font-size: 1.57rem;
    font-weight: 400;
    color: #6A3E3F;
    margin: 0;
    letter-spacing: 0.5px;
    line-height: 1.2;
    transition: color 0.3s ease;
}

.svc-card:hover .svc-card-name { color: #4E2C2D; }

/* Arrow buttons */
.svc-arrow {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #C9A961;
    background: #FFFFFF;
    color: #C9A961;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.svc-arrow:hover {
    background: #C9A961;
    color: #FFFFFF;
    transform: scale(1.05);
}

.svc-arrow.is-disabled {
    opacity: 0.35;
    cursor: default;
    transform: none;
    background: #FFFFFF;
    color: #C9A961;
}

.svc-empty {
    text-align: center;
    padding: 3rem;
    color: #999;
}

/* Tablet: 2 cards visible */
@media (max-width: 1023px) {
    .svc-card {
        flex: 0 0 calc(50% - 1rem);
        min-width: calc(50% - 1rem);
    }
    .svc-card-image { min-height: 320px; }
}

/* Mobile: ~1.2 cards (peek next), hide arrows, swipe to slide */
@media (max-width: 599px) {
    .svc-arrow { display: none; }
    .svc-track { gap: 1rem; }
    .svc-card {
        flex: 0 0 82%;
        min-width: 82%;
    }
    .svc-card-image {
        min-height: 0;
        aspect-ratio: 4 / 3;
        margin-bottom: 0.75rem;
    }
    .svc-card-name { font-size: 1.05rem; }
}
