/*
 * Updated Service Cards Styling
 * One Sphere Solutions
 * Used for all service pages: legal.php, marketing.php, it.php, health-and-safety.php, accounting.php, hr.php
 */

:root {
    --primary-color: #283848; /* Dark blue-gray */
    --secondary-color: #d9a442; /* Gold/amber */
    --text-color: #333;
    --light-color: #f8f9fa;
}

/* Service Cards Section Styles */
.services-cards-section {
    padding: 60px 0;
    background-color: var(--light-color);
    width: 100%;
    overflow: hidden;
    display: block;
    visibility: visible;
    position: relative;
    z-index: 1;
}

/* Services Header Row */
.services-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.services-header-row h2 {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Helvetica Neue', Helvetica;
    position: relative;
    padding-left: 15px;
    margin-left: 10px;
}

.services-header-row h2::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 30px;
    background-color: var(--secondary-color);
}

/* Service Cards Container */
.services-cards-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
}

.services-cards-row {
    display: flex;
    flex-direction: row;
    gap: 20px;
    width: 100%;
}

.services-card-item {
    flex: 1;
    min-width: 0; /* Prevents flex items from overflowing */
}

/* Updated Service Cards */
.services-card {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-left: 4px solid var(--secondary-color);
}

.services-card:hover {
    transform: translateY(-5px);
    border-left-width: 8px;
}

.services-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-family: 'Helvetica Neue', Helvetica;
    transition: color 0.3s ease;
}

.services-card:hover h3 {
    color: var(--secondary-color);
}

.services-card p {
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-color);
    font-family: 'Helvetica Neue', Helvetica;
    text-align: left !important; /* Force left alignment */
}

/* Icon styles */
.icon-gold {
    color: #d9a442;
    margin-right: 10px;
}

.icon-small {
    margin-right: 8px;
    color: var(--secondary-color);
}

/* Button styles */
.btn-get-in-touch, .btn-call {
    background-color: #222; /* Match navbar button color */
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 20px;
    border-radius: 30px;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-get-in-touch:hover, .btn-call:hover {
    background-color: #d9a442; /* Gold color on hover, matching navbar button hover */
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    text-decoration: none;
}

.btn-get-in-touch i, .btn-call i {
    font-size: 1.1em;
}

.btn-dark-blue {
    background-color: #283848;
    color: white;
    transition: all 0.3s ease;
}

.btn-dark-blue:hover {
    background-color: #1e2a36;
    transform: translateY(-2px);
    color: var(--secondary-color);
}

.btn-gold {
    background-color: #d9a442;
    color: white;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-gold:hover {
    background-color: #c89538;
    transform: translateY(-2px);
}

/* Responsive styles for services cards section */
@media (max-width: 991px) {
    .services-card h3 {
        font-size: 18px;
    }

    .services-card p {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .services-cards-section {
        padding: 40px 0;
    }

    .services-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .services-header-row .btn {
        align-self: flex-start;
    }

    .services-card {
        padding: 20px;
        margin-bottom: 20px;
    }

    .services-card h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .services-card p {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .services-cards-section {
        padding: 30px 0;
    }

    .services-header-row h2 {
        font-size: 20px;
        padding-left: 15px;
        margin-left: 10px;
    }

    .services-header-row h2::before {
        left: -10px;
    }

    .services-card {
        padding: 15px;
    }

    .services-card h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .services-card p {
        font-size: 13px;
        line-height: 1.4;
    }
}
