
/* =========================================
   SERVICES SECTION
========================================= */

.services-section {
    padding: 75px 0 90px;
    background: #f5f7fa;
    color: #071c68;
}

.services-section,
.services-section * {
    box-sizing: border-box;
}


/* =========================================
   SECTION HEADING
========================================= */

.services-section .section-heading {
    max-width: 1200px;
    margin: 0 auto 45px;
    text-align: center;
}

.services-section .section-heading .eyebrow {
    margin: 0 0 10px;
    color: #071c68;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}

.services-section .section-heading h2 {
    margin: 0 0 12px;
    color: #071c68;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.15;
}

.services-section .section-description {
    max-width: 1180px;
    margin: 0 auto;
    color: #344054;
    font-size: 19px;
    font-weight: 400;
    line-height: 1.5;
}

.services-section .section-divider {
    width: 60px;
    height: 2px;
    margin: 32px auto 0;
    background: #071c68;
}


/* =========================================
   SERVICES GRID
========================================= */

.services-grid {
    max-width: 1200px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;

    align-items: stretch;
}


/* =========================================
   SERVICE CARD
========================================= */

.service-card {
    display: flex;
    flex-direction: column;

    min-width: 0;
    height: 100%;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid #dce2ea;
    border-radius: 16px;

    color: #101828;
    text-decoration: none;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}


/* =========================================
   SERVICE IMAGE
========================================= */

.service-image {
    position: relative;

    width: 100%;
    height: 238px;

    overflow: hidden;
    flex-shrink: 0;

    background: #e9edf3;
}

.service-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transition: transform 0.4s ease;
}


/* =========================================
   SERVICE CONTENT
========================================= */

.service-content {
    display: flex;
    flex-direction: column;
    flex: 1;

    padding: 24px;
    text-align: left;
}


/* =========================================
   SERVICE TITLE
========================================= */

.service-content h3 {
    margin: 0 0 12px;

    color: #101828;

    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
}


/* =========================================
   SERVICE DESCRIPTION
========================================= */

.service-content p {
    margin: 0 0 16px;

    color: #344054;

    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;

    flex: 1;
}


/* =========================================
   LEARN MORE LINK
========================================= */

.service-link {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;

    margin-top: auto;

    color: #071c68;

    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;

    transition: color 0.25s ease;
}


/* =========================================
   HOVER EFFECTS
========================================= */

.service-card:hover {
    transform: translateY(-5px);

    border-color: #c5cfe0;

    box-shadow:
        0 12px 28px rgba(7, 28, 104, 0.10);
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-card:hover .service-link {
    color: #1646a0;
}

.service-card:focus-visible {
    outline: 3px solid #1646a0;
    outline-offset: 4px;
}

.service-card:visited {
    color: #101828;
}

.service-card:hover,
.service-card:focus {
    text-decoration: none;
}


/* =========================================
   FAQ SECTION
========================================= */

.faq-section {
    padding: 80px 20px 85px;
    background: #f2f4f7;
    color: #202630;
}

.faq-container {
    max-width: 844px;
    margin: 0 auto;
}

/* Heading */

.faq-heading {
    text-align: center;
    margin-bottom: 40px;
}

.faq-eyebrow {
    display: block;
    margin-bottom: 12px;
    color: #244b80;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
}

.faq-heading h2 {
    margin: 0;
    color: #202630;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.2;
    font-weight: 750;
}

/* FAQ list */

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    overflow: hidden;
    background: #fafbfc;
    border: 1px solid #d9dfe7;
    border-radius: 16px;
    transition: border-color 0.25s ease,
                box-shadow 0.25s ease;
}

.faq-item.active {
    border-color: #d4dce7;
}

/* Question button */

.faq-question {
    width: 100%;
    min-height: 62px;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    border: none;
    background: transparent;
    color: #30343a;
    text-align: left;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.faq-item.active .faq-question {
    color: #244779;
}

.faq-question:focus-visible {
    outline: 3px solid #719bd2;
    outline-offset: -4px;
    border-radius: 12px;
}

/* Plus and minus icons */

.faq-icon {
    position: relative;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    color: #244779;
}

.faq-icon::before,
.faq-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 3px;
    border-radius: 3px;
    background: currentColor;
    transform: translate(-50%, -50%);
}

.faq-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
    transition: transform 0.2s ease;
}

.faq-item.active .faq-icon::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

/* Expandable answer */

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease;
}

.faq-item.active .faq-answer {
    grid-template-rows: 1fr;
}

.faq-answer-content {
    overflow: hidden;
    padding: 0 24px;
    color: #424c5d;
    font-size: 15.5px;
    line-height: 1.55;
}

.faq-item.active .faq-answer-content {
    padding-bottom: 24px;
}

.booking-location-link {
    margin-bottom: 20px;
    text-align: left;
}

.visit-location-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    color: #176b45;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.visit-location-btn:hover {
    color: #104d32;
    text-decoration: underline;
}

.visit-location-btn:focus-visible {
    outline: 2px solid #176b45;
    outline-offset: 4px;
}

/* =========================================
   BOOKING INFO SECTION
========================================= */

.booking-info {
    padding: 30px 0 70px;
}

.booking-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 25px;
}

.booking-info-card {
    padding: 26px 27px;
    border: 1px solid #e0e7ed;
    border-radius: 14px;
    background: #f9fafc;
}

.booking-info-card h2 {
    margin: 0 0 12px;
    color: #17202a;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

.booking-info-card p {
    margin: 0;
    color: #526577;
    font-size: 15px;
    line-height: 1.6;
}

/* Checklist */

.booking-checklist {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
}

.booking-checklist li {
    position: relative;
    margin-bottom: 10px;
    padding-left: 31px;
    color: #526577;
    font-size: 15px;
    line-height: 1.5;
}

.booking-checklist li:last-child {
    margin-bottom: 0;
}

.booking-checklist li::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 0;
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%231a3a63' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round' d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Same-day care */

.booking-sameday {
    margin-bottom: 25px;
    padding: 32px 27px;
}

.booking-call-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 22px;
    padding: 14px 28px;
    border-radius: 30px;
    background: #1a3a63;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.booking-call-btn:hover,
.booking-call-btn:focus-visible {
    background: #102844;
    color: #ffffff;
}

.booking-call-btn:focus-visible {
    outline: 3px solid #e4a62a;
    outline-offset: 3px;
}

/* Notice */

.booking-notice {
    padding: 24px 25px;
    border: 1px solid #e0e7ed;
    border-radius: 14px;
    background: #f3f5f8;
}

.booking-notice h2 {
    margin: 0 0 8px;
    color: #17202a;
    font-size: 17px;
    font-weight: 700;
}

.booking-notice > p {
    margin: 0;
    color: #526577;
    font-size: 15px;
    line-height: 1.6;
}

.booking-emergency {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 10px;
    background: #e6e9ee;
}

.booking-emergency-icon {
    flex: 0 0 auto;
    margin-top: 1px;
    color: #1a3a63;
}

.booking-emergency p {
    margin: 0;
    color: #17202a;
    font-size: 15px;
    line-height: 1.6;
}

/* Responsive */

@media (max-width: 700px) {
    .booking-info {
        padding: 20px 0 50px;
    }

    .booking-info-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 16px;
    }

    .booking-info-card,
    .booking-sameday {
        padding: 22px 20px;
    }

    .booking-sameday {
        margin-bottom: 16px;
    }

    .booking-info-card h2 {
        font-size: 20px;
    }

    .booking-call-btn {
        width: 100%;
    }

    .booking-notice {
        padding: 20px 16px;
    }
}
/* Mobile responsive */

@media (max-width: 600px) {
    .faq-section {
        padding: 55px 16px 60px;
    }

    .faq-heading {
        margin-bottom: 28px;
    }

    .faq-heading h2 {
        font-size: 29px;
    }

    .faq-question {
        min-height: 60px;
        padding: 17px 18px;
        font-size: 15px;
        gap: 12px;
    }

    .faq-answer-content {
        padding-right: 18px;
        padding-left: 18px;
        font-size: 14.5px;
    }

    .faq-item.active .faq-answer-content {
        padding-bottom: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .faq-item,
    .faq-answer,
    .faq-icon::after {
        transition: none;
    }
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 992px) {

    .services-section {
        padding: 65px 0 75px;
    }

    .services-section .section-heading h2 {
        font-size: 36px;
    }

    .services-section .section-description {
        font-size: 17px;
    }

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }

    .service-image {
        height: 220px;
    }

    .service-content {
        padding: 10px;
    }

    .service-content h3 {
        font-size: 19px;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 700px) {

    .services-section {
        padding: 55px 0 65px;
    }

    .services-section .section-heading {
        margin-bottom: 35px;
    }

    .services-section .section-heading .eyebrow {
        font-size: 14px;
    }

    .services-section .section-heading h2 {
        font-size: 30px;
        line-height: 1.25;
    }

    .services-section .section-description {
        font-size: 16px;
        line-height: 1.5;
    }

    .services-section .section-divider {
        margin-top: 25px;
    }

    /* One card per row */

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
          height: auto;
        min-height: 0;
        border-radius: 14px;
    }

    .service-image {
        height: 230px;
    }

    .service-content {
        padding: 12px;
    }

    .service-content h3 {
        font-size: 19px;
    }

    .service-content p {
        font-size: 15px;
    }

    .service-link {
        font-size: 15px;
    }

}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 400px) {

    .services-section .section-heading h2 {
        font-size: 27px;
    }

    .service-image {
        height: 200px;
    }

    .service-content {
        padding: 12px;
    }

}


/* =========================================
   REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {

    .service-card,
    .service-image img,
    .service-link {
        transition: none;
    }

    .service-card:hover,
    .service-card:hover .service-image img {
        transform: none;
    }

}
