/* Modern Services Section - Google Inspired */

.services-modern {
    background: #ffffff;
    padding: var(--section-padding) 0;
    position: relative;
    overflow: hidden;
}

/* Cloud pattern background */
.services-modern::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.06;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='80' viewBox='0 0 120 80'%3E%3Cg fill='none' stroke='%232563eb' stroke-width='1.5'%3E%3Cpath d='M30 55c0-8.3 6.7-15 15-15 1.5 0 3 .2 4.4.7C52.3 33.5 59 28 67 28c5.5 0 10.4 2.8 13.3 7 1.2-.3 2.4-.5 3.7-.5 8.3 0 15 6.7 15 15s-6.7 15-15 15H45c-8.3 0-15-6.7-15-15z'/%3E%3Ccircle cx='15' cy='25' r='6'/%3E%3Ccircle cx='105' cy='15' r='4'/%3E%3Ccircle cx='60' cy='12' r='3'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 120px 80px;
    pointer-events: none;
    z-index: 0;
}

/* Hero Section */
.services-hero {
    margin-bottom: 40px;
}

.services-main-title {
    font-size: var(--h1-size);
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.2;
}

.services-subtitle {
    font-size: 18px;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

/* Featured Service Section */
.featured-service {
    background: linear-gradient(135deg, #4285f4 0%, #1967d2 100%);
    border-radius: 12px;
    padding: 48px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.featured-label {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.featured-title {
    font-size: 32px;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 24px;
}

.featured-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 24px 32px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.featured-icon {
    font-size: 40px;
    color: #4285f4;
    margin-right: 20px;
}

.featured-card-title {
    font-size: 20px;
    font-weight: 500;
    color: #202124;
    margin-bottom: 4px;
}

.featured-card-desc {
    font-size: 14px;
    color: #5f6368;
    margin: 0;
}

.badge-coming-soon {
    display: inline-block;
    padding: 4px 12px;
    background: #fbbc04;
    color: #202124;
    font-size: 11px;
    font-weight: 500;
    border-radius: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn-featured {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #4285f4;
    color: #ffffff;
    border-radius: 50%;
    font-size: 20px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-featured:hover {
    background: #1967d2;
    transform: scale(1.1);
    color: #ffffff;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.service-card-modern {
    background: #ffffff;
    border: 1px solid #e8eaed;
    border-radius: 8px;
    padding: 32px 24px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.service-card-modern:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
    border-color: #dadce0;
}

.service-icon-modern {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8f0fe;
    border-radius: 8px;
    margin-bottom: 20px;
}

.service-icon-modern i {
    font-size: var(--icon-md);
    color: #1967d2;
}

.service-content-modern {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-badge {
    font-size: 11px;
    font-weight: 500;
    color: #5f6368;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
}

.service-title-modern {
    font-size: 20px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.3;
}

.service-desc-modern {
    font-size: var(--small-size);
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-link-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #f1f3f4;
    color: #5f6368;
    border-radius: 50%;
    font-size: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
    align-self: flex-start;
}

.service-link-modern:hover {
    background: #4285f4;
    color: #ffffff;
    transform: translateX(4px);
}

/* Per-card CTA */
.service-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 16px;
}

.btn-service-consult {
    display: inline-block;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #1a73e8;
    background: #e8f0fe;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-service-consult:hover {
    background: #1a73e8;
    color: #ffffff;
    transform: translateY(-1px);
}

/* CTA Section */
.services-cta {
    text-align: center;
    padding: 20px 0 0;
}

.cta-title {
    font-size: 28px;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.cta-desc {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.btn-services-cta {
    display: inline-block;
    padding: 14px 32px;
    background: var(--sn-primary);
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-services-cta:hover {
    background: var(--sn-primary-dark);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 991px) {
    .services-main-title {
        font-size: 40px;
    }

    .featured-service {
        padding: 32px 24px;
    }

    .featured-title {
        font-size: 28px;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 767px) {
    .services-modern {
        padding: var(--section-padding-xs) 0;
    }

    .services-main-title {
        font-size: 32px;
    }

    .services-subtitle {
        font-size: 16px;
    }

    .featured-service {
        padding: 24px 20px;
    }

    .featured-title {
        font-size: 24px;
    }

    .featured-card {
        padding: 20px;
    }

    .featured-icon {
        font-size: 32px;
        margin-right: 16px;
    }

    .btn-featured {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

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

    .cta-title {
        font-size: 24px;
    }
}

/* ============================================
   SERVICES SECTION Overrides
   (Merged from custom.css)
   ============================================ */

/* Service Item Cards */
.service-item {
    background: #ffffff;
    box-shadow: 0 0 25px 0 rgba(0, 0, 0, 0.05);
    padding: 30px;
    border-radius: 8px;
    height: 100%;
    transition: all 0.3s ease-in-out;
    border-bottom: 3px solid transparent;
}

.service-item:hover {
    box-shadow: 0 10px 30px 0 rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
    border-bottom: 3px solid var(--accent-color);
}

.service-item .icon {
    font-size: 36px;
    color: var(--accent-color);
    margin-bottom: 20px;
}

/* Premium CTA Button */
.btn-premium-cta {
    display: inline-block;
    background-color: var(--sn-primary);
    color: #ffffff;
    font-weight: 700;
    font-size: 1.125rem;
    padding: 16px 32px;
    border-radius: 9999px;
    /* Pill shape */
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
    text-align: center;
    line-height: 1.2;
}

.btn-premium-cta:hover {
    background-color: var(--sn-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.5), 0 8px 10px -6px rgba(37, 99, 235, 0.1);
    color: #ffffff;
}

/* Services Section - Modern Grid */
#services {
    scroll-margin-top: 100px;
    /* Prevent header overlap */
}

.services .service-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    transition: all 0.3s ease-in-out;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    height: 100%;
    position: relative;
    overflow: hidden;
    text-align: center;
    /* Center align everything */
}

.services .service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.1);
}

/* Flex Container for Header (Icon + Title) */
.services .service-header {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center the icon+title block */
    gap: 15px;
    margin-bottom: 20px;
}

.services .service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: transparent;
    flex-shrink: 0;
}

/* Blend mode to hide white backgrounds on images */
.services .service-icon img {
    mix-blend-mode: multiply;
    display: block;
    filter: contrast(1.15) brightness(1.05);
    /* Blow out gray background */
}

.services .service-title {
    font-weight: 800;
    margin-bottom: 0;
    font-size: 1.25rem;
    color: var(--nav-color);
    line-height: 1.3;
    text-align: left;
    /* Keep title left-aligned relative to icon */
    text-align: left;
}

.services .service-description {
    color: #6b7280;
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.services .service-link {
    color: var(--sn-primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.2s ease;
}

.services .service-link:hover {
    gap: 10px;
}

/* ============================================
   CLICKABLE CARD LINKS (homepage 4-card grid)
   ============================================ */

/* 4-column grid on desktop */
.services-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1199px) {
    .services-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .services-grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Whole-card anchor reset */
a.service-card-modern.service-card-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

a.service-card-modern.service-card-link:hover {
    box-shadow: 0 8px 28px rgba(26, 115, 232, 0.15);
    transform: translateY(-5px);
    border-color: #4285f4;
}

a.service-card-modern.service-card-link .service-title-modern {
    color: var(--text-primary);
    transition: color 0.2s ease;
}

a.service-card-modern.service-card-link:hover .service-title-modern {
    color: #1a73e8;
}

/* Arrow indicator at bottom of card */
.service-arrow-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #f1f3f4;
    color: #5f6368;
    border-radius: 50%;
    font-size: 15px;
    margin-top: auto;
    align-self: flex-start;
    transition: all 0.25s ease;
}

a.service-card-modern.service-card-link:hover .service-arrow-modern {
    background: #4285f4;
    color: #ffffff;
    transform: translateX(4px);
}