/* ============================================
   Services Grid Widget — services-grid.css
   ============================================ */

/* Wrapper */
.sgw-wrapper {
    width: 100%;
    padding: 20px 0;
    font-family: inherit;
}

/* ─── Header ─────────────────────────────── */
.sgw-header {
    text-align: center;
    margin-bottom: 40px;
}

.sgw-star {
    display: inline-block;
    font-size: 20px;
    color: #3dc04a;
    line-height: 1;
    margin-bottom: 4px;
}

.sgw-star-line {
    width: 120px;
    height: 1px;
    background: #ccc;
    margin: 4px auto 10px;
    position: relative;
}

.sgw-section-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 900;
    color: #0d1b2a;
    margin: 0 0 4px;
    line-height: 1.1;
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

.sgw-section-title::after {
    content: '';
    display: block;
    width: 100%;
    height: 4px;
    background: #3dc04a;
    border-radius: 2px;
    margin-top: 6px;
}

.sgw-section-subtitle {
    font-size: clamp(14px, 1.5vw, 17px);
    color: #555;
    margin: 12px auto 0;
    max-width: 600px;
    line-height: 1.6;
}

.sgw-highlight {
    color: #3dc04a;
    font-weight: 600;
}

/* ─── Grid ───────────────────────────────── */
.sgw-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ─── Card ───────────────────────────────── */
.sgw-card {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.sgw-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

/* Image Area */
.sgw-card-image {
    height: 240px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #1a3520;
    flex-shrink: 0;
}

/* Card Body — dark green overlay at bottom */
.sgw-card-body {
    background: #0a2413;
    padding: 20px 18px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

/* Curved wave top effect */
.sgw-card-body::before {
    content: '';
    display: block;
    position: absolute;
    top: -28px;
    left: 0;
    right: 0;
    height: 36px;
    background: #0a2413;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

/* Icon circle */
.sgw-icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #3dc04a;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: -44px; /* overlap into image */
    margin-bottom: 14px;
    z-index: 2;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(61, 192, 74, 0.45);
}

.sgw-icon-wrap i,
.sgw-icon-wrap svg {
    font-size: 24px;
    color: #ffffff;
    fill: #ffffff;
    width: 24px;
    height: 24px;
}

/* Title */
.sgw-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px;
    line-height: 1.25;
}

/* Description */
.sgw-card-desc {
    font-size: 14px;
    color: #b8c8bb;
    line-height: 1.65;
    margin: 0;
}

/* ─── Responsive ─────────────────────────── */

/* Tablet: 2 columns */
@media (max-width: 1024px) {
    .sgw-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Mobile landscape / small tablet: 2 columns */
@media (max-width: 768px) {
    .sgw-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .sgw-card-image {
        height: 180px;
    }

    .sgw-card-title {
        font-size: 17px;
    }

    .sgw-section-title {
        font-size: 28px;
    }

    .sgw-header {
        margin-bottom: 28px;
    }
}

/* Mobile portrait: SINGLE column */
@media (max-width: 480px) {
    .sgw-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .sgw-wrapper {
        padding: 12px 0;
    }

    .sgw-card {
        border-radius: 14px;
    }

    .sgw-card-image {
        height: 220px;
    }

    .sgw-card-body {
        padding: 18px 16px 22px;
    }

    /* Restore normal icon/title/desc sizes since 1 col has full width */
    .sgw-icon-wrap {
        width: 60px;
        height: 60px;
        margin-top: -44px;
        margin-bottom: 14px;
    }

    .sgw-icon-wrap i,
    .sgw-icon-wrap svg {
        font-size: 24px;
        width: 24px;
        height: 24px;
    }

    .sgw-card-title {
        font-size: 19px;
        margin: 0 0 10px;
    }

    .sgw-card-desc {
        font-size: 14px;
        line-height: 1.65;
    }

    .sgw-section-title {
        font-size: 26px;
    }

    .sgw-section-subtitle {
        font-size: 14px;
    }

    .sgw-header {
        margin-bottom: 24px;
        padding: 0 8px;
    }
}
