/* ============================================
   Bhu Naksha — Frontend Styles
   Uses CSS custom properties set inline by PHP
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

.bn-container {
    max-width: 1060px;
    margin: 36px auto;
    padding: 0 20px 40px;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--bn-text-dark, #1a1a1a);
    box-sizing: border-box;
}

.bn-container *,
.bn-container *::before,
.bn-container *::after {
    box-sizing: border-box;
}

/* ---- Header ---- */
.bn-header {
    text-align: center;
    margin-bottom: 44px;
    padding: 48px 20px 36px;
    position: relative;
}

.bn-header-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--bn-primary, #2ECC71), var(--bn-secondary, #27AE60));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 12px 32px rgba(46, 204, 113, 0.3);
}

.bn-header-icon svg {
    width: 32px;
    height: 32px;
    stroke: #fff;
}

.bn-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 900;
    margin: 0 0 10px;
    background: linear-gradient(135deg, var(--bn-primary, #2ECC71), var(--bn-secondary, #27AE60));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.bn-subtitle {
    font-size: 17px;
    color: var(--bn-text-light, #666);
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.2px;
}

/* ---- Info Banner ---- */
.bn-info-banner {
    background: linear-gradient(135deg, var(--bn-primary, #2ECC71), var(--bn-secondary, #27AE60));
    color: #fff;
    padding: 24px 32px;
    border-radius: 20px;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 44px;
    box-shadow: 0 12px 36px rgba(46, 204, 113, 0.22);
}

.bn-banner-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bn-banner-icon svg {
    width: 24px;
    height: 24px;
    stroke: #fff;
}

.bn-banner-content h3 {
    margin: 0 0 8px;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.2px;
}

.bn-banner-content p {
    margin: 0;
    font-size: 15px;
    opacity: 0.95;
    line-height: 1.6;
}

/* ---- Service Cards Grid ---- */
.bn-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    margin-bottom: 52px;
}

.bn-service-card {
    background: var(--bn-bg-card, #fff);
    border-radius: 20px;
    padding: 28px 24px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
    border: 2px solid transparent;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    position: relative;
    overflow: hidden;
}

.bn-service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--bn-primary, #2ECC71), var(--bn-secondary, #27AE60));
    opacity: 0;
    transition: opacity 0.28s ease;
    border-radius: inherit;
    z-index: 0;
}

.bn-service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(46, 204, 113, 0.2);
    border-color: var(--bn-primary, #2ECC71);
}

.bn-service-icon {
    flex-shrink: 0;
    width: 66px;
    height: 66px;
    background: linear-gradient(135deg, var(--bn-primary, #2ECC71), var(--bn-secondary, #27AE60));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 22px rgba(46, 204, 113, 0.28);
    position: relative;
    z-index: 1;
}

.bn-service-icon svg {
    width: 30px;
    height: 30px;
    stroke: #fff;
}

.bn-service-body {
    flex: 1;
    position: relative;
    z-index: 1;
}

.bn-service-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--bn-text-dark, #1a1a1a);
    margin: 0 0 6px;
    letter-spacing: -0.2px;
}

.bn-service-desc {
    font-size: 13.5px;
    color: var(--bn-text-light, #666);
    margin: 0;
    line-height: 1.55;
}

.bn-service-arrow {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(46, 204, 113, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.28s ease, transform 0.28s ease;
    position: relative;
    z-index: 1;
}

.bn-service-arrow svg {
    width: 18px;
    height: 18px;
    stroke: var(--bn-primary, #2ECC71);
    transition: stroke 0.28s ease;
}

.bn-service-card:hover .bn-service-arrow {
    background: var(--bn-primary, #2ECC71);
    transform: translateX(4px);
}

.bn-service-card:hover .bn-service-arrow svg {
    stroke: #fff;
}

/* ---- Section Heading ---- */
.bn-section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.bn-section-line {
    width: 6px;
    height: 36px;
    background: linear-gradient(180deg, var(--bn-primary, #2ECC71), var(--bn-secondary, #27AE60));
    border-radius: 4px;
    flex-shrink: 0;
}

.bn-section-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--bn-text-dark, #1a1a1a);
    margin: 0;
    letter-spacing: -0.4px;
}

/* ---- States Grid ---- */
.bn-states-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.bn-state-card {
    background: var(--bn-bg-card, #fff);
    border-radius: 14px;
    padding: 16px 18px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.06);
    border: 2px solid transparent;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.bn-state-card:hover {
    transform: translateX(6px);
    box-shadow: 0 8px 28px rgba(46, 204, 113, 0.16);
    border-color: var(--bn-primary, #2ECC71);
}

.bn-state-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(46, 204, 113, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    transition: background 0.25s ease;
}

.bn-state-card:hover .bn-state-icon {
    background: rgba(46, 204, 113, 0.14);
}

.bn-state-icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    display: block;
}

/* Fallback icon for states without a PNG map */
.bn-state-card--fallback .bn-state-icon {
    background: linear-gradient(135deg, var(--bn-primary, #2ECC71), var(--bn-secondary, #27AE60));
}

.bn-state-card--fallback .bn-state-icon svg {
    width: 22px;
    height: 22px;
    stroke: #fff;
    fill: none;
}

.bn-state-name {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--bn-text-dark, #1a1a1a);
    flex: 1;
    line-height: 1.3;
}

.bn-state-arrow {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease;
}

.bn-state-arrow svg {
    width: 15px;
    height: 15px;
    stroke: var(--bn-primary, #2ECC71);
    opacity: 0.7;
    transition: opacity 0.25s ease;
}

.bn-state-card:hover .bn-state-arrow {
    transform: translateX(4px);
}

.bn-state-card:hover .bn-state-arrow svg {
    opacity: 1;
}

/* ---- Footer Note ---- */
.bn-footer-note {
    margin-top: 32px;
    text-align: center;
    font-size: 12.5px;
    color: var(--bn-text-light, #999);
    padding: 14px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    letter-spacing: 0.1px;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .bn-services-grid {
        grid-template-columns: 1fr;
    }
    .bn-states-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 580px) {
    .bn-container {
        padding: 0 12px 30px;
    }
    .bn-info-banner {
        flex-direction: column;
        padding: 20px;
    }
    .bn-states-grid {
        grid-template-columns: 1fr;
    }
    .bn-service-card {
        padding: 20px 16px;
    }
    .bn-section-title {
        font-size: 21px;
    }
}
