/* AMBITIONS MX - Services Cards Section */

/* Import Typography System */
@import url('typography.css');

/* Services Section */
.services-experience-section {
    position: relative;
    background: linear-gradient(135deg, rgba(13, 19, 30, 0.95), rgba(29, 29, 29, 0.95));
    padding: 50px 0 20px 0;
    overflow: hidden;
}

.services-experience-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 80px;
    align-items: center;
}

/* Left Column - Services Cards */
.services-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    order: 1;
}

.section-heading {
    font-family: var(--font-primary);
    font-size: var(--text-h2-section);
    font-weight: var(--weight-light);
    line-height: var(--lh-normal);
    color: #C9B896;
    letter-spacing: var(--ls-ultra);
    text-transform: uppercase;
    margin-bottom: 12px;
    opacity: 0;
    animation: slideInLeft 1s ease forwards;
    animation-delay: 0.3s;
}

.section-subtitle {
    font-family: var(--font-primary);
    font-size: var(--text-micro);
    font-weight: var(--weight-light);
    line-height: var(--lh-comfortable);
    color: rgba(242, 242, 242, 0.5);
    letter-spacing: var(--ls-tight);
    margin-bottom: 0;
    opacity: 0;
    animation: slideInLeft 1s ease forwards;
    animation-delay: 0.4s;
}

.services-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Service Card - Elegant Design */
.service-card-elegant {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: #F2F2F2;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    opacity: 0;
    animation: slideInLeft 1s ease forwards;
}

.service-card-elegant:nth-child(1) { animation-delay: 0.5s; }
.service-card-elegant:nth-child(2) { animation-delay: 0.6s; }
.service-card-elegant:nth-child(3) { animation-delay: 0.7s; }
.service-card-elegant:nth-child(4) { animation-delay: 0.8s; }
.service-card-elegant:nth-child(5) { animation-delay: 0.9s; }

.service-card-elegant::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(201, 184, 150, 0.06), rgba(201, 184, 150, 0.02));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.service-card-elegant:hover::before {
    opacity: 1;
}

.service-card-elegant:hover {
    border-color: rgba(201, 184, 150, 0.4);
    transform: translateY(-4px);
    box-shadow:
        0 12px 40px rgba(201, 184, 150, 0.1),
        0 0 0 1px rgba(201, 184, 150, 0.1) inset;
}

/* Card Content */
.card-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.card-title {
    font-family: var(--font-primary);
    font-size: var(--text-body-sm);
    font-weight: var(--weight-light);
    letter-spacing: var(--ls-wider);
    text-transform: uppercase;
    color: #E0E0E0;
    margin: 0 0 6px 0;
    transition: color 0.3s ease;
    line-height: var(--lh-comfortable);
}

.service-card-elegant:hover .card-title {
    color: #C9B896;
}

/* Arrow Container */
.card-link-arrow {
    position: relative;
    z-index: 1;
}

/* Card Arrow Icon */
.card-arrow-icon {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: rgba(242, 242, 242, 0.4);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: all 0.3s ease;
}

.service-card-elegant:hover .card-arrow-icon {
    stroke: rgba(201, 184, 150, 0.9);
    transform: translateX(6px);
}

/* Services CTA */
.services-cta-wrapper {
    margin-top: 28px;
    opacity: 0;
    animation: slideInLeft 1s ease forwards;
    animation-delay: 1s;
}

.services-cta-button {
    display: inline-block;
    background: rgba(201, 184, 150, 0.1);
    border: 2px solid #C9B896;
    color: #C9B896 !important;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: var(--weight-medium);
    font-size: var(--text-caption);
    letter-spacing: var(--ls-normal);
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(201, 184, 150, 0.3) !important;
    font-family: var(--font-primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    text-decoration: none;
}

.services-cta-button:hover {
    background: transparent;
    border-color: #C9B896;
    box-shadow: none !important;
    transform: translateY(-2px);
}

/* Right Column - Image */
.services-image {
    position: relative;
    height: 700px;
    border-radius: 0;
    overflow: visible;
    order: 2;
    display: block;
    width: 100%;
    -webkit-mask-image: radial-gradient(
        ellipse 70% 85% at center,
        black 20%,
        rgba(0, 0, 0, 0.7) 50%,
        transparent 85%
    );
    mask-image: radial-gradient(
        ellipse 70% 85% at center,
        black 20%,
        rgba(0, 0, 0, 0.7) 50%,
        transparent 85%
    );
}

.services-image::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    right: -10%;
    bottom: -10%;
    background: radial-gradient(
        ellipse at center,
        transparent 20%,
        rgba(13, 19, 30, 0.5) 50%,
        rgba(13, 19, 30, 0.9) 75%,
        rgba(13, 19, 30, 1) 100%
    );
    z-index: 2;
    pointer-events: none;
    filter: blur(20px);
}

.services-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at center,
        transparent 30%,
        rgba(13, 19, 30, 0.8) 100%
    );
    z-index: 3;
    pointer-events: none;
}

.services-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
    filter: brightness(0.75) contrast(1.1);
    border-radius: 0;
}

.services-image:hover img {
    transform: scale(1.03);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 89, 104, 0.1),
        rgba(13, 25, 41, 0.2)
    );
    opacity: 0.5;
    pointer-events: none;
    z-index: 1;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .services-experience-container {
        gap: 60px;
    }

    .section-heading {
        font-size: 28px;
        letter-spacing: 2px;
    }

    .section-subtitle {
        font-size: 13px;
    }

    .services-image {
        height: 600px;
    }
}

@media (max-width: 968px) {
    .services-experience-section {
        padding: 60px 0 15px 0;
    }

    .services-experience-container {
        grid-template-columns: 1fr !important;
        gap: 60px;
        padding: 0 20px;
    }

    .services-content {
        order: 1;
    }

    .services-image {
        order: 2;
        height: 500px;
    }

    .section-heading {
        font-size: 24px;
        margin-bottom: 12px;
        letter-spacing: 1.5px;
    }

    .section-subtitle {
        font-size: 13px;
    }

    .service-card-elegant {
        padding: 20px 24px;
        gap: 16px;
    }

    .card-title {
        font-size: 14px;
    }

    .card-arrow-icon {
        width: 22px;
        height: 22px;
    }

    .service-card-elegant:hover {
        transform: translateX(4px);
    }

    .services-cta-wrapper {
        margin-top: 24px;
    }

    .services-cta-button {
        font-size: 12px;
        padding: 10px 24px;
    }
}

/* Mobile: pole dance as background + 2-column cards */
@media (max-width: 768px) {
    /* iOS Safari fix: remove animations on mobile to prevent invisible content */
    .section-heading,
    .section-subtitle,
    .services-cards-grid,
    .service-card-elegant,
    .services-cta-wrapper {
        opacity: 1 !important;
        animation: none !important;
        transform: none !important;
    }

    .services-experience-section {
        position: relative;
    }

    .services-experience-container {
        grid-template-columns: 1fr !important;
        gap: 0;
        position: relative;
        z-index: 2;
    }

    /* Turn image into section background */
    .services-image {
        position: absolute !important;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        height: 100% !important;
        width: 100% !important;
        order: 0;
        z-index: 0;
        -webkit-mask-image: none;
        mask-image: none;
        opacity: 0.25;
        pointer-events: none;
    }

    .services-image img {
        filter: brightness(0.5) contrast(1.1);
    }

    /* Cards in 2 columns */
    .services-cards-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .service-card-elegant {
        padding: 12px 10px;
        gap: 10px;
        align-items: center;
    }

    .card-content {
        flex: 1;
        min-width: 0;
    }

    .services-cta-wrapper {
        text-align: center;
    }

    .services-cta-button {
        box-shadow: 0 4px 15px rgba(201, 184, 150, 0.3);
    }

    .services-cta-button:visited,
    .services-cta-button:link {
        color: #C9B896 !important;
    }
}

@media (max-width: 640px) {
    .services-experience-section {
        padding: 35px 0 15px 0;
    }

    .section-heading {
        font-size: 20px;
        line-height: 1.4;
        letter-spacing: 1px;
    }

    .section-subtitle {
        font-size: 12px;
    }

    .service-card-elegant {
        padding: 14px 12px;
        gap: 8px;
    }

    .card-title {
        font-size: 11px;
        letter-spacing: 0.5px;
    }

    .card-arrow-icon {
        width: 18px;
        height: 18px;
    }

    .services-cta-wrapper {
        margin-top: 20px;
    }

    .services-cta-button {
        font-size: 11px;
        padding: 10px 20px;
    }
}

/* Extra-small mobile */
@media (max-width: 480px) {
    .services-experience-section {
        padding: 25px 0 10px 0;
    }

    .services-experience-container {
        padding: 0 12px;
        gap: 0;
    }

    .services-cards-grid {
        gap: 8px;
    }

    .service-card-elegant {
        padding: 12px 10px;
        gap: 6px;
    }

    .card-title {
        font-size: 10px;
        letter-spacing: 0.3px;
    }

    .card-arrow-icon {
        width: 16px;
        height: 16px;
    }

    .section-heading {
        font-size: 18px;
    }

    .services-cta-button {
        font-size: 10px;
        padding: 10px 16px;
    }
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
