/* ================================
   SERVICES SECTION
   Modular CSS for service cards
   Depends on: base.css
   ================================ */

/* ================================
   SECTION CONTAINER
   ================================ */
.services {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.9);
    position: relative;
}

/* Decorative background gradients */
.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(139, 69, 19, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(160, 82, 45, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

/* ================================
   SERVICES GRID LAYOUT
   ================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

/* ================================
   SERVICE CARD STYLING
   ================================ */
.service-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(139, 69, 19, 0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Top accent bar that appears on hover */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8b4513, #a0522d, #cd853f);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(139, 69, 19, 0.15);
}

/* ================================
   FEATURED CARD (Middle Card)
   ================================ */
.service-card.featured {
    border: 2px solid #8b4513;
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(139, 69, 19, 0.2);
}

.service-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 25px 50px rgba(139, 69, 19, 0.25);
}

/* ================================
   SERVICE ICON
   ================================ */
.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #8b4513, #a0522d);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

.service-icon i {
    font-size: 1.5rem;
    color: white;
}

/* ================================
   CARD CONTENT
   ================================ */
.service-card h3 {
    margin-bottom: 1rem;
    color: #2c2c2c;
}

.service-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

.service-card ul {
    list-style: none;
    margin-bottom: 2rem;
}

.service-card li {
    padding: 0.5rem 0;
    color: #4a4a4a;
    position: relative;
    padding-left: 1.5rem;
}

.service-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #8b4513;
    font-weight: bold;
}

.service-card .btn {
    margin-top: auto;
    align-self: flex-start;
}

/* ================================
   SCROLL REVEAL ANIMATION
   ================================ */
.service-card.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.service-card.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */

/* Tablet and Below (≤1024px) */
@media screen and (max-width: 1024px) {
    .services {
        padding: 80px 0;
    }
    
    .services-grid {
        gap: 1.5rem;
    }
}

/* Mobile (≤768px) */
@media screen and (max-width: 768px) {
    .services {
        padding: 60px 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card.featured {
        transform: scale(1);
    }
    
    .service-card.featured:hover {
        transform: translateY(-5px);
    }
    
    .service-card {
        padding: 2rem;
    }
}

/* Small Mobile (≤480px) */
@media screen and (max-width: 480px) {
    .service-card {
        padding: 1.5rem;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
    }
    
    .service-icon i {
        font-size: 1.3rem;
    }
}