/* ==========================================================================
   Hospital Facilities & 12 Key Services Grid Section (1:1 Exact Figma Match)
   Matching Figma Node 48:9 (Rectangle 23: 1600x751), 48:12 (x:714), 48:57 (x:82), 48:70 (x:714), 171:704 (x:930)
   ========================================================================== */

.gr-services-section {
    width: 100%;
    background-color: #FFFFFF;
    position: relative;
    padding-bottom: 110px;
    box-sizing: border-box;
}

/* 1. Hospital Facilities Hero Banner Overlay */
.gr-services-hero {
    width: 100%;
    position: relative;
    height: 580px;
    overflow: hidden;
    background-color: #1a2238;
}

.gr-services-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    display: block;
}

.gr-services-hero-overlay {
    display: none;
}

/* Inner Overlay Container (1600px Coordinate System matching Figma) */
.gr-services-hero-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    height: 100%;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
}

/* Left Bottom Description (Exact Figma Node 48:57: x=82px / 5.125% from left, y=3258) */
.gr-services-hero-left {
    position: absolute;
    left: 5.125%;
    bottom: 54px;
    width: 35%;
    max-width: 540px;
    z-index: 3;
}

.gr-services-hero-desc {
    font-family: var(--gr-font-family, 'Instrument Sans', sans-serif);
    font-size: 14.5px;
    font-weight: 400;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Right Content Block: Title + Buttons (Exact Figma Nodes 48:12, 48:70, 171:704: x=714px / 44.625% from left) */
.gr-services-hero-right {
    position: absolute;
    left: 44.625%;
    bottom: 54px;
    width: 50%;
    max-width: 565px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    z-index: 3;
}

.gr-services-hero-title {
    font-family: var(--gr-font-family, 'Instrument Sans', sans-serif);
    font-size: clamp(28px, 2.6vw, 36px);
    font-weight: 400;
    line-height: 1.18;
    color: #FFFFFF;
    letter-spacing: -0.015em;
    margin: 0 0 28px 0;
    max-width: 560px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.gr-services-hero-title em {
    font-style: italic;
    font-weight: 700;
}

/* Actions Row directly under Title starting at x=714 */
.gr-services-hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Glass Transparent Phone Button (Node 48:70: 203px x 46px) */
.gr-services-phone-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 203px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    background-color: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #FFFFFF;
    font-family: var(--gr-font-family, 'Instrument Sans', sans-serif);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 0;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.gr-services-phone-btn:hover {
    background-color: rgba(255, 255, 255, 0.28);
    border-color: #FFFFFF;
}

.gr-phone-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Solid White Appointment Button (Node 171:704: 203px x 46px) */
.gr-services-appoint-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 203px;
    height: 44px;
    background-color: #FFFFFF;
    color: #1E1E1E;
    font-family: var(--gr-font-family, 'Instrument Sans', sans-serif);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 0;
    box-sizing: border-box;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.gr-services-appoint-btn:hover {
    background-color: #f0f3fa;
    transform: translateY(-1px);
}

/* ==========================================================================
   2. 12 Key Services Grid (6 Columns x 2 Rows)
   ========================================================================== */
.gr-services-grid-wrapper {
    width: 100%;
    max-width: 1600px;
    margin: 60px auto 0 auto;
    padding: 0 3.125%;
    box-sizing: border-box;
}

.gr-services-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    width: 100%;
}

.gr-service-card {
    background-color: #FFFFFF;
    border: 1px solid #FFFFFF;
    box-shadow: 0 10px 28px rgba(42, 62, 192, 0.10), 0 2px 8px rgba(0, 0, 0, 0.04);
    min-height: 220px;
    height: 100%;
    width: 100%;
    padding: 30px 16px 22px 16px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    border-radius: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.gr-service-icon-wrap {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: transform 0.3s ease;
}

.gr-service-icon-wrap img,
.gr-service-icon-wrap svg {
    width: 42px;
    height: 42px;
    display: block;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.gr-service-title {
    font-family: var(--gr-font-family, 'Instrument Sans', sans-serif);
    font-size: 14.5px;
    font-weight: 400;
    line-height: 1.35;
    color: #1E1E1E;
    margin: 0;
    max-width: 190px;
    transition: color 0.2s ease;
}

/* Service Card Hover State */
.gr-service-card:hover {
    background-color: #FFFFFF;
    border-color: #FFFFFF;
    box-shadow: none;
    transform: none;
}

.gr-service-card:hover .gr-service-icon-wrap {
    transform: scale(1.05);
}

.gr-service-card:hover .gr-service-title {
    color: #1E1E1E;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .gr-services-hero {
        height: auto;
        min-height: 520px;
    }
    
    .gr-services-hero-container {
        padding: 40px 32px 32px 32px;
        display: flex;
        flex-direction: column-reverse;
        justify-content: flex-end;
        gap: 28px;
    }

    .gr-services-hero-left,
    .gr-services-hero-right {
        position: static;
        width: 100%;
        max-width: 100%;
    }

    .gr-services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .gr-services-hero {
        min-height: auto;
    }
    
    .gr-services-hero-container {
        padding: 36px 16px 28px 16px;
    }

    .gr-services-hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .gr-services-phone-btn,
    .gr-services-appoint-btn {
        width: 100%;
    }
    
    .gr-services-grid-wrapper {
        padding: 0 16px;
        margin-top: 30px;
    }
    
    .gr-services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .gr-service-card {
        padding: 22px 12px;
        min-height: 180px;
    }
    
    .gr-service-title {
        font-size: 13.5px;
    }
}
