/*
====================================
PageYaRona - Services Page Stylesheet
====================================
Enhanced design with gradients, animations, and improved visual hierarchy
*/

/* 1. SERVICES PAGE VARIABLES
------------------------------------ */
:root {
    --services-accent-1: #69cbc0;
    --services-accent-2: #d4a853;
    --services-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 2. HERO SECTION
------------------------------------ */


.services-hero .container {
    position: relative;
    z-index: 1;
}

.services-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    animation: fadeInDown 0.8s ease-out;
    color: #ffffff;
}

.services-hero .lead {
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #ffffff;
}

/* 3. SERVICE CARD SECTION
------------------------------------ */
.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: var(--services-transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Gradient overlay on hover */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(105, 203, 192, 0.1) 0%, rgba(212, 168, 83, 0.05) 100%);
    transition: left 0.4s ease;
    z-index: 0;
}

.service-card:hover::before {
    left: 0;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--services-accent-1);
}

.service-card > * {
    position: relative;
    z-index: 1;
}

/* Service Card Icon */
.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--services-accent-1), var(--services-accent-2));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    margin-bottom: 1.5rem;
    transition: var(--services-transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 8px 16px rgba(105, 203, 192, 0.3);
}

/* Service Card Headings */
.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    transition: var(--services-transition);
}

.service-card:hover h3 {
    color: var(--services-accent-1);
}

/* Service Card Subtitle */
.service-subtitle {
    font-size: 0.95rem;
    color: #999;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    display: block;
}

.service-card:hover .service-subtitle {
    color: var(--services-accent-1);
}

/* Service Problem Statement */
.service-problem {
    background: linear-gradient(135deg, rgba(105, 203, 192, 0.08) 0%, rgba(212, 168, 83, 0.04) 100%);
    border-left: 4px solid var(--services-accent-1);
    padding: 1rem;
    border-radius: 6px;
    margin: 1.5rem 0;
    font-weight: 500;
    font-style: italic;
    color: var(--text-color);
    transition: var(--services-transition);
}

.service-card:hover .service-problem {
    background: linear-gradient(135deg, rgba(105, 203, 192, 0.15) 0%, rgba(212, 168, 83, 0.08) 100%);
    border-left-color: var(--services-accent-2);
}

/* Service Features List */
.service-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.service-features li {
    padding: 0.5rem 0 0.5rem 1.8rem;
    position: relative;
    font-size: 0.95rem;
    color: var(--text-color);
    transition: var(--services-transition);
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--services-accent-1);
    font-weight: 700;
    font-size: 1.1rem;
}

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

.service-features li strong {
    color: var(--services-accent-2);
}

/* Service CTA Button */
.service-cta {
    background: linear-gradient(135deg, var(--services-accent-1), #5bb3a0);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--services-transition);
    display: inline-block;
    margin-top: 1rem;
}

.service-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(105, 203, 192, 0.3);
    color: white;
    text-decoration: none;
}

.service-cta:active {
    transform: translateY(0);
}

/* 4. DIFFERENTIATION SECTION
------------------------------------ */
.differentiator {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    height: 100%;
    transition: var(--services-transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.differentiator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--services-accent-1), var(--services-accent-2));
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.differentiator:hover::before {
    transform: scaleX(1);
}

.differentiator:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.differentiator-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.differentiator h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    transition: var(--services-transition);
}

.differentiator:hover h4 {
    color: var(--services-accent-1);
}

.differentiator p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* 5. CTA SECTION
------------------------------------ */
.services-cta-section {
    background: linear-gradient(135deg, #1e434a 0%, #2a5a64 50%, #1e434a 100%);
    position: relative;
    overflow: hidden;
}

.services-cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(105, 203, 192, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.services-cta-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212, 168, 83, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.services-cta-section .container {
    position: relative;
    z-index: 1;
}

.services-cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    animation: slideInUp 0.6s ease-out;
}

.services-cta-section .lead {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    animation: slideInUp 0.6s ease-out 0.1s both;
    max-width: 600px;
}

/* 6. BUTTON ENHANCEMENTS
------------------------------------ */
.btn-primary {
    background: linear-gradient(135deg, var(--services-accent-1), #5bb3a0);
    border: none;
    font-weight: 600;
    transition: var(--services-transition);
    box-shadow: 0 4px 12px rgba(105, 203, 192, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(105, 203, 192, 0.4);
    background: linear-gradient(135deg, #5bb3a0, #4a9a8f);
}

.btn-outline-primary {
    color: var(--services-accent-1);
    border: 2px solid var(--services-accent-1);
    font-weight: 600;
    transition: var(--services-transition);
}

.btn-outline-primary:hover {
    background: var(--services-accent-1);
    border-color: var(--services-accent-1);
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(105, 203, 192, 0.2);
}

/* 7. ANIMATIONS
------------------------------------ */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 8. ACCESSIBILITY & CONTRAST
------------------------------------ */
.services-cta-section {
    color: #ffffff;
}

.services-cta-section h2,
.services-cta-section .lead {
    color: #ffffff;
}

/* Ensure CTA buttons meet WCAG AAA contrast ratios */
.services-cta-section .btn-primary {
    background: linear-gradient(135deg, #69cbc0, #5ab8aa);
    color: #ffffff;
    font-weight: 700;
}

.services-cta-section .btn-primary:hover {
    background: linear-gradient(135deg, #5ab8aa, #4a9a8f);
    color: #ffffff;
}

/* Alternative light button for dark sections */
.btn-light-accent {
    background: rgba(255, 255, 255, 0.95);
    color: #1e434a;
    border: none;
    font-weight: 600;
    transition: var(--services-transition);
}

.btn-light-accent:hover {
    background: #ffffff;
    color: var(--services-accent-1);
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* 9. DARK MODE COMPATIBILITY
------------------------------------ */
body.dark-mode .service-card {
    background: #2a5a64;
    border-color: #335a61;
}

body.dark-mode .service-problem {
    background: linear-gradient(135deg, rgba(105, 203, 192, 0.12) 0%, rgba(212, 168, 83, 0.06) 100%);
    color: #e8f4f2;
}

body.dark-mode .differentiator {
    background: #2a5a64;
    border-color: #335a61;
}

body.dark-mode .differentiator h4 {
    color: #e8f4f2;
}

body.dark-mode .service-card h3,
body.dark-mode .differentiator p {
    color: #e8f4f2;
}

/* 10. RESPONSIVE DESIGN
------------------------------------ */
@media (max-width: 768px) {
    .services-hero h1 {
        font-size: 2.2rem;
    }

    .services-hero .lead {
        font-size: 1.1rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .service-card h3 {
        font-size: 1.3rem;
    }

    .differentiator {
        margin-bottom: 1rem;
    }

    .services-cta-section h2 {
        font-size: 2rem;
    }

    .services-cta-section .lead {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .services-hero h1 {
        font-size: 1.8rem;
    }

    .services-hero .lead {
        font-size: 1rem;
    }

    .service-card {
        padding: 1.25rem;
    }

    .service-card h3 {
        font-size: 1.1rem;
    }

    .service-features li {
        font-size: 0.9rem;
        padding-left: 1.5rem;
    }

    .services-cta-section h2 {
        font-size: 1.5rem;
    }
}
