﻿/*=========================================================
    MY JOY SPECIALITY DENTAL CLINIC
    SERVICES PAGE STYLES
=========================================================*/

/* -------------------------------------------------------
   PAGE WRAPPER
------------------------------------------------------- */

.services-page {
    background: #f0f4f8;
    padding: 80px 0 100px;
}

/* -------------------------------------------------------
   SECTION INTRO
------------------------------------------------------- */

.services-page .section-intro {
    text-align: center;
    margin-bottom: 56px;
}

.services-page .section-intro h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 12px;
    letter-spacing: -0.4px;
}

.services-page .section-intro p {
    color: #6b7280;
    font-size: 1rem;
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.8;
}

/* -------------------------------------------------------
   GRID — 3 equal columns
------------------------------------------------------- */

.service-full-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    align-items: stretch;
}

/* -------------------------------------------------------
   CARD
   Vertical layout: image on top, content below.
   All cards in a row share the same height via
   grid align-items:stretch + flex column + flex:1 on content.
------------------------------------------------------- */

.service-box {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid #e5eaf0;
    box-shadow: 0 2px 12px rgba(0,0,0,.06), 0 1px 4px rgba(0,0,0,.04);
    transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
    position: relative;
}

/* Coloured top accent bar — uses primary blue, changes to orange on hover */
.service-box::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--primary, #1e88e5);
    transition: background .24s ease;
    z-index: 1;
}

.service-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,.11), 0 6px 16px rgba(0,0,0,.07);
    border-color: #c7d8f5;
}

.service-box:hover::before {
    background: var(--accent, #f57c00);
}

/* -------------------------------------------------------
   IMAGE  — fixed height, always fills the same space
------------------------------------------------------- */

.service-box img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center;
    display: block;
    flex-shrink: 0;
    transition: transform .5s ease;
}

.service-box:hover img {
    transform: scale(1.05);
}

/* -------------------------------------------------------
   CONTENT AREA
------------------------------------------------------- */

.service-content {
    padding: 24px 26px 26px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Service name */
.service-content h3 {
    font-size: 1.12rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 10px;
    line-height: 1.3;
    letter-spacing: -0.1px;
}

/* Description — flex:1 pushes price + button to bottom */
.service-content p {
    font-size: .88rem;
    color: #6b7280;
    line-height: 1.75;
    margin-bottom: 16px;
    flex: 1;
}

/* Price line */
.service-content h4 {
    font-size: .8rem;
    font-weight: 700;
    color: var(--accent, #f57c00);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: .6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.service-content h4::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 2px;
    background: var(--accent, #f57c00);
    border-radius: 2px;
    flex-shrink: 0;
}

/* Book Now button */
.service-content .btn-primary {
    align-self: flex-start;
    padding: 10px 24px;
    font-size: .85rem;
    font-weight: 700;
    border-radius: 50px;
    letter-spacing: .2px;
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.service-content .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30,136,229,.3);
}

/* -------------------------------------------------------
   RESPONSIVE
------------------------------------------------------- */

@media (max-width: 1100px) {
    .service-full-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }
}

@media (max-width: 700px) {
    .services-page {
        padding: 60px 0 70px;
    }
    .service-full-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .service-box img {
        height: 210px;
    }
    .service-content {
        padding: 20px 22px 22px;
    }
    .service-content h3 {
        font-size: 1.05rem;
    }
    .service-content .btn-primary {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}
