/* ==========================================================
   SERVICES PAGE
   Loaded only on /services (see resources/views/Web/services.blade.php).
   All classes use the svc- prefix to avoid collisions with the
   stylesheets that base.css loads on every page.

   1. Shared: buttons, headings, lists
   2. Hero
   3. Care options: sliding cards (reuse .care-card from home.css)
   4. Pricing
   5. Qualifications
   6. Care professionals
   7. FAQ
   8. Responsive: 991px (tablet)
   9. Responsive: 767px (phone)
   ========================================================== */


/* ==========================================================
   1. SHARED
   ========================================================== */
.svc-page {
    overflow-x: hidden;
}

.svc-section {
    max-width: 1320px;
    margin: 100px auto;
    padding: 0 20px;
    text-align: center;
}

.svc-heading {
    margin-bottom: 0;
    font-family: var(--font-family-heading);
    font-size: 40px;
    font-weight: 600;
    color: var(--charcoal-ink);
}

.svc-heading em {
    color: var(--gold-primary);
}

.svc-lead {
    max-width: 720px;
    margin: 20px auto 40px;
    color: var(--warm-gray);
    font-size: 18px;
}

.svc-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--gold-primary);
    font-family: var(--font-family-button);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.svc-center {
    margin-top: 40px;
    text-align: center;
}

/* Buttons */
.svc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 12px 32px;
    border: 1px solid transparent;
    border-radius: 100px;
    font-family: var(--font-family-button);
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.svc-btn:hover {
    opacity: 0.9;
}

.svc-btn img {
    width: 20px;
    height: 20px;
}

.svc-btn--gold {
    background-color: var(--gold-primary);
    box-shadow: inset 0 0 10px 4px rgba(255, 255, 255, 0.5);
    color: var(--white-color);
}

.svc-btn--gold:hover {
    color: var(--white-color);
}

.svc-btn--white {
    background-color: var(--white-color);
    color: var(--gold-primary);
}

.svc-btn--white:hover {
    color: var(--gold-primary);
}

.svc-btn--outline {
    border-color: var(--gold-primary);
    background-color: transparent;
    color: var(--gold-primary);
}

.svc-btn--outline:hover {
    background-color: var(--gold-primary);
    color: var(--white-color);
    opacity: 1;
}

.svc-btn--block {
    width: 100%;
}

/* Checkmark list */
.svc-list {
    margin: 0;
    padding: 20px 0;
    list-style: none;
    text-align: left;
}

.svc-list li {
    margin-bottom: 16px;
    padding-left: 30px;
    background: url(../images/list.png) no-repeat left 3px;
    background-size: 20px 20px;
    color: var(--charcoal-ink);
}


/* ==========================================================
   2. HERO
   ========================================================== */
.svc-hero {
    position: relative;
    padding: 170px 20px 90px;
    overflow: hidden;
    background:
        linear-gradient(to right, rgba(255, 255, 255, 0.2) 1.4px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.2) 1.4px, transparent 1px),
        linear-gradient(180deg, #FBF8F2 -6.25%, #BFA273 352.06%);
    background-size: 100px 100px, 100px 100px, auto;
    text-align: center;
}

.svc-hero__ornament {
    position: absolute;
    pointer-events: none;
}

.svc-hero__ornament--left {
    top: 190px;
    left: 12%;
}

.svc-hero__ornament--right {
    top: 150px;
    right: 0;
}

/* Hero photos: soft arches on each side, anchored to the bottom */
.svc-hero__photo {
    position: absolute;
    bottom: 0;
    width: 380px;
    height: 480px;
    border-radius: 190px 190px 0 0;
    object-fit: cover;
    pointer-events: none;
}

.svc-hero__photo--left {
    left: 3%;
}

/* The left image is a cutout with a transparent background:
   show the whole figure with no arch crop. The double class keeps
   this winning over the border-radius set in the media queries below. */
.svc-hero__photo.svc-hero__photo--left {
    border-radius: 0;
    object-fit: contain;
    object-position: bottom center;
}

.svc-hero__photo--right {
    right: 3%;
}

.svc-hero__content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 720px;
    margin: 0 auto;
}

.svc-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    margin-bottom: 20px;
    padding: 8px 20px;
    border-radius: 50px;
    background-color: var(--white-color);
    box-shadow: inset 0 0 10px var(--gold-primary);
    font-family: var(--font-family-button);
    white-space: nowrap;
}

.svc-pill__dot {
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--gold-primary);
}

.svc-hero__title {
    margin: 0;
    font-family: var(--font-family-heading);
    font-size: 48px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--charcoal-ink);
}

.svc-hero__title em {
    color: var(--gold-primary);
}

.svc-hero__text {
    max-width: 620px;
    margin: 20px auto 0;
    color: var(--warm-gray);
    font-size: 18px;
}

.svc-hero__underline {
    width: 140px;
    margin: 20px 0;
}

.svc-hero__actions {
    margin-bottom: 30px;
}

/* Jump links to each care option */
.svc-jump {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.svc-jump__link {
    padding: 8px 20px;
    border: 1px solid var(--gold-primary);
    border-radius: 50px;
    background-color: rgba(255, 255, 255, 0.6);
    color: var(--charcoal-ink);
    font-size: 15px;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.svc-jump__link:hover {
    background-color: var(--gold-primary);
    color: var(--white-color);
}


/* ==========================================================
   3. CARE OPTIONS
   Sliding cards reuse .care-card, .care-details, and the photo
   classes from home.css. These rules only add the extra detail
   content the Services page shows inside each card.
   ========================================================== */
.svc-care {
    margin-top: 80px;
    text-align: left;
}

/* Clear the header when jumping to /services#overnight */
.svc-care__card {
    scroll-margin-top: 120px;
}

/* Room for the longer content when a card is open */
.svc-care .care-card.active .care-details {
    max-height: 1600px;
}

.svc-care__content {
    gap: 40px;
}

.svc-care__text {
    color: var(--charcoal-ink);
}

.svc-care__subtitle {
    margin: 0 0 8px;
    color: var(--gold-primary);
    font-family: var(--font-family-heading);
    font-size: 22px;
    font-style: italic;
}

.svc-care__intro {
    margin: 0 0 28px;
    color: var(--charcoal-ink);
    font-size: 20px;
    line-height: 1.6;
}

.svc-care__details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 28px;
}

.svc-care__details h3,
.svc-care__included {
    margin: 0 0 8px;
    color: var(--charcoal-ink);
    font-size: 18px;
    font-weight: 600;
}

.svc-care__details p {
    margin: 0;
    color: var(--warm-gray);
    line-height: 1.6;
}

.svc-care__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 30px;
    padding: 12px 0 8px;
}

.svc-care__pricing {
    margin: 0 0 24px;
    color: var(--warm-gray);
    font-size: 15px;
}

.svc-care__image {
    flex-shrink: 0;
    align-self: flex-end;
}


/* Leave room for the card that overlaps from below */
.svc-care .care-card.active:not(:last-child) .care-details {
    padding-bottom: 50px;
}

/* The small photo extends 95px left; keep it off the text */
.svc-care__image {
    margin-left: 95px;
}


/* ==========================================================
   4. PRICING
   ========================================================== */
.svc-pricing__box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 40px 50px;
    border-radius: 16px;
    background-color: var(--gold-primary);
    color: var(--white-color);
    text-align: left;
}

.svc-pricing__label {
    flex-shrink: 0;
    font-size: 26px;
    font-weight: 700;
}

.svc-pricing__label strong {
    display: block;
    font-size: 48px;
    line-height: 1.1;
}

.svc-pricing__label span {
    font-size: 18px;
    font-weight: 500;
}

.svc-pricing__text p {
    margin: 0 0 8px;
    font-size: 18px;
}

.svc-pricing__text p:last-child {
    margin-bottom: 0;
}

.svc-pricing__box .svc-btn {
    flex-shrink: 0;
}


/* ==========================================================
   5. QUALIFICATIONS
   ========================================================== */
.svc-quals__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background-color: var(--soft-cream);
    text-align: left;
}

.svc-quals__item {
    padding: 30px;
    border-bottom: 1px solid var(--gold-primary);
}

.svc-quals__item:nth-child(3n + 2) {
    border-right: 1px solid var(--gold-primary);
    border-left: 1px solid var(--gold-primary);
}

.svc-quals__item:nth-last-child(-n + 3) {
    border-bottom: 0;
}

.svc-quals__item img {
    width: 54px;
    height: 54px;
}

.svc-quals__item h3 {
    margin: 15px 0;
    font-size: 20px;
    font-weight: 500;
    color: var(--charcoal-ink);
}

.svc-quals__item p {
    margin: 0;
    color: var(--warm-gray);
}


/* ==========================================================
   6. CARE PROFESSIONALS
   ========================================================== */
.svc-pros__note {
    margin: -20px auto 30px;
    color: var(--warm-gray);
    font-size: 15px;
    font-style: italic;
}

.svc-pros__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.svc-pro {
    position: relative;
    padding: 25px;
    border-radius: 16px;
    background-color: var(--white-color);
    text-align: left;
}

.svc-pro__tag {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 10px;
    border-radius: 50px;
    background-color: var(--soft-cream);
    color: var(--warm-gray);
    font-size: 12px;
    font-weight: 500;
}

.svc-pro__head {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    margin-top: 20px;
}

.svc-pro__head img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
}

.svc-pro__name {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    color: var(--charcoal-ink);
}

.svc-pro__role {
    margin: 24px 0 0;
    font-size: 24px;
    line-height: 1.3;
    color: var(--charcoal-ink);
}

.svc-pro__rate {
    margin: 30px 0 0;
    font-size: 32px;
    font-weight: 700;
    color: var(--charcoal-ink);
}

.svc-pro__rate span {
    font-size: 16px;
    font-weight: 600;
}

.svc-pro__location {
    margin: 30px 0 0;
    color: var(--warm-gray);
}


/* ==========================================================
   7. FAQ
   Stacked cards matching the home page care cards.
   ========================================================== */
.svc-faq__list {
    text-align: left;
}

.svc-faq__item {
    position: relative;
    padding-bottom: 40px;
    border: none;
    border-radius: 20px !important;
    overflow: hidden;
    background: var(--white-color);
    color: var(--charcoal-ink);
}

.svc-faq__item + .svc-faq__item {
    margin-top: -40px;
}

.svc-faq__item:last-child {
    padding-bottom: 0;
}

.svc-faq__item:nth-child(3n + 2) {
    background: var(--soft-cream);
}

.svc-faq__item:nth-child(3n) {
    background: radial-gradient(56.2% 243.62% at 41.71% 56.2%, var(--white-color) 0%, var(--light-pink) 100%);
}

/* Question row */
.svc-faq .svc-faq__question,
.svc-faq .svc-faq__question:not(.collapsed) {
    gap: 20px;
    padding: 25px 30px;
    background-color: transparent;
    box-shadow: none;
    color: var(--charcoal-ink);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
}

.svc-faq .svc-faq__question:focus-visible {
    box-shadow: inset 0 0 0 2px var(--gold-primary);
}

/* Round plus button on the right */
.svc-faq .svc-faq__question::after,
.svc-faq .svc-faq__question:not(.collapsed)::after {
    content: "+";
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    margin-left: auto;
    border: 1px solid var(--black-15);
    border-radius: 50%;
    background-image: none;
    background-color: transparent;
    color: var(--charcoal-ink);
    font-size: 24px;
    font-weight: 400;
    line-height: 38px;
    text-align: center;
    transform: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Open: button turns gold and the plus becomes a minus */
.svc-faq .svc-faq__question:not(.collapsed)::after {
    content: "\2212";
    border-color: var(--gold-primary);
    background-color: var(--gold-primary);
    color: var(--white-color);
}

/* Answer */
.svc-faq .svc-faq__answer {
    padding: 0 90px 25px 30px;
    color: var(--warm-gray);
    font-size: 18px;
    line-height: 1.6;
}


/* Standard laptops */
@media (max-width: 1599px) {
    .svc-hero__photo {
        width: 320px;
        height: 420px;
        border-radius: 160px 160px 0 0;
    }

    .svc-hero__photo--left {
        left: 2%;
    }

    .svc-hero__photo--right {
        right: 2%;
    }
}

/* Smaller laptops */
@media (max-width: 1399px) {
    .svc-hero__photo {
        width: 260px;
        height: 340px;
        border-radius: 130px 130px 0 0;
    }
}

/* Hero photos only fit beside the text on wide screens */
@media (max-width: 1199px) {
    .svc-hero__photo {
        display: none;
    }
}


/* ==========================================================
   8. RESPONSIVE: 991px (tablet)
   ========================================================== */
@media (max-width: 991px) {
    .svc-section {
        margin: 60px auto;
    }

    .svc-hero__ornament--left {
        left: 4%;
    }

    /* Care cards: photos move below the text */
    .svc-care__content {
        flex-direction: column;
        gap: 24px;
    }

    .svc-care__image {
        align-self: flex-end;
    }

    /* Pricing stacks */
    .svc-pricing__box {
        flex-direction: column;
        gap: 20px;
        padding: 30px;
        text-align: center;
    }

    /* Qualifications: 2 per row */
    .svc-quals__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .svc-quals__item,
    .svc-quals__item:nth-child(3n + 2),
    .svc-quals__item:nth-last-child(-n + 3) {
        border: 0;
        border-bottom: 1px solid var(--gold-primary);
    }

    .svc-quals__item:nth-last-child(-n + 2) {
        border-bottom: 0;
    }

    /* Care professionals: 2 per row */
    .svc-pros__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ==========================================================
   9. RESPONSIVE: 767px (phone)
   ========================================================== */
@media (max-width: 767px) {

    /* Hero */
    .svc-hero {
        padding: 130px 20px 60px;
    }

    .svc-hero__ornament {
        display: none;
    }

    .svc-hero__title {
        font-size: 32px;
    }

    .svc-hero__text {
        font-size: 16px;
    }

    .svc-hero__underline {
        width: 110px;
    }

    .svc-pill {
        white-space: normal;
    }

    /* Headings */
    .svc-heading {
        font-size: 28px;
    }

    .svc-lead {
        font-size: 16px;
    }

    /* Care cards */
    .svc-care {
        margin-top: 40px;
    }

    .svc-care .care-content {
        flex-direction: column;
        flex-wrap: wrap;
    }

    .svc-care .care-text,
    .svc-care .care-image {
        width: 100%;
    }

    .svc-care .care-image {
        text-align: center;
    }

    .svc-care__image {
        margin-left: 0;
    }

    .svc-care__intro {
        font-size: 17px;
    }

    .svc-care__details,
    .svc-care__list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .svc-care__list {
        gap: 0;
    }

    /* Pricing */
    .svc-pricing__label strong {
        font-size: 40px;
    }

    .svc-pricing__text p {
        font-size: 16px;
    }

    /* Qualifications: 1 per row */
    .svc-quals__grid {
        grid-template-columns: 1fr;
    }

    .svc-quals__item:nth-last-child(2) {
        border-bottom: 1px solid var(--gold-primary);
    }

    /* Care professionals: 1 per row */
    .svc-pros__grid {
        grid-template-columns: 1fr;
    }

    /* FAQ */
    .svc-faq .svc-faq__question,
    .svc-faq .svc-faq__question:not(.collapsed) {
        padding: 20px;
        font-size: 17px;
    }

    .svc-faq .svc-faq__question::after,
    .svc-faq .svc-faq__question:not(.collapsed)::after {
        width: 34px;
        height: 34px;
        font-size: 20px;
        line-height: 32px;
    }

    .svc-faq .svc-faq__answer {
        padding: 0 20px 20px;
        font-size: 16px;
    }
}