/* ============================================
   ELEGANT SERVICES STYLES (Responsive + Overflow Safe)
   ============================================ */

/* CSS Variables */
:root {
    --card-bg: rgba(255, 255, 255, 0.98);
    --card-border: rgba(0, 122, 61, 0.08);
    --card-shadow: 0 4px 20px rgba(0, 122, 61, 0.06);
    --card-shadow-hover: 0 12px 40px rgba(0, 122, 61, 0.12);
    --accent-gradient: linear-gradient(135deg, #007A3D, #00a847);
    --text-gradient: linear-gradient(135deg, #00112e, #007A3D);
    --glow-color: rgba(0, 122, 61, 0.15);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 20px;
}

/* Section */
.services-section {
    padding: clamp(60px, 8vw, 120px) 0;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.services-section::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 40%;
    height: 140%;
    background: radial-gradient(ellipse at center, rgba(0, 122, 61, 0.05) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 40px);
    position: relative;
    z-index: 1;
}

/* Headings */
.pbmit-heading-subheading {
    text-align: center;
    margin-bottom: clamp(40px, 8vw, 80px);
}

.pbmit-subtitle {
    display: inline-block;
    background: var(--accent-gradient);
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
    transition: var(--transition-smooth);
}

.pbmit-subtitle:hover {
    transform: translateY(-2px);
}

.pbmit-title {
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    color: #00112e;
    margin-bottom: 20px;
    word-break: break-word;
    position: relative;
}

.pbmit-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 2px;
    opacity: 0;
    animation: fadeInWidth 0.8s ease-out 0.3s forwards;
}

.pbmit-description {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 40px;
    width: 100%;
}

/* Service Card */
.service-card {
    position: relative;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
    border: 1px solid var(--card-border);
    max-width: 100%;
    word-wrap: break-word;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-shadow-hover);
    border-color: rgba(0, 122, 61, 0.15);
}

/* Image */
.service-image-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 122, 61, 0.05) 100%);
    opacity: 0;
    transition: var(--transition-smooth);
}

.service-card:hover .image-overlay {
    opacity: 1;
}

/* Badge */
.service-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--accent-gradient);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* Icon */
.service-icon-wrapper {
    position: absolute;
    bottom: 20px;
    right: 20px;
}

.service-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.service-icon i {
    font-size: 20px;
    color: #007A3D;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    background: var(--accent-gradient);
}
.service-card:hover .service-icon i {
    color: #fff;
}

/* Content */
.service-content {
    padding: 20px;
}

.service-subtitle {
    font-size: 0.8rem;
    color: #007A3D;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.service-title {
    font-size: clamp(1rem, 4vw, 1.3rem);
    font-weight: 600;
    color: #00112e;
    margin-bottom: 8px;
    word-break: break-word;
    transition: var(--transition-smooth);
}

.service-card:hover .service-title {
    color: #007A3D;
}

.service-description {
    font-size: clamp(0.85rem, 3vw, 1rem);
    color: #64748b;
    margin-bottom: 16px;
    line-height: 1.6;
    word-break: break-word;
}

/* Features */
.feature-list {
    list-style: none;
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(0, 122, 61, 0.02);
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.feature-item:hover {
    background: rgba(0, 122, 61, 0.05);
    transform: translateX(4px);
}

.feature-icon {
    width: 18px;
    height: 18px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    font-size: 9px;
    color: white;
}

.feature-text {
    font-size: 0.85rem;
    color: #475569;
}

/* Actions */
.service-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-btn.primary-btn {
    flex: 1;
    background: var(--accent-gradient);
    color: white;
    padding: 12px 18px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.service-btn.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 122, 61, 0.25);
}

.service-btn.secondary-btn {
    width: 44px;
    height: 44px;
    background: rgba(0, 122, 61, 0.05);
    color: #007A3D;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: var(--transition-smooth);
}

.service-btn.secondary-btn:hover {
    background: var(--accent-gradient);
    color: white;
    transform: scale(1.05);
}

/* Accessibility */
.service-card:focus-within {
    outline: 2px solid #007A3D;
    outline-offset: 4px;
}
.service-btn:focus {
    outline: 2px solid #007A3D;
    outline-offset: 2px;
}

/* Loading */
.service-card.loading {
    opacity: 0.7;
    pointer-events: none;
}
.service-card.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    margin: -16px 0 0 -16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007A3D;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Animations */
@keyframes fadeInWidth {
    from { width: 0; opacity: 0; }
    to { width: 60px; opacity: 1; }
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===========================
   Responsive Grid
   =========================== */

/* Tablet */
@media (min-width: 600px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 20px;
    }
    .service-actions {
        flex-direction: row;
    }
    .service-btn.primary-btn {
        width: auto;
    }
}

/* Small Desktop */
@media (min-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 24px;
    }
}

/* Large Desktop */
@media (min-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 28px;
    }
}
