/* ===== Services: the package deck ===== */

.package-stack {
    display: grid;
    grid-auto-rows: 1fr; 
    gap: 2rem;
    max-width: 44rem;
    margin: 3rem auto 0;
    text-align: left;
}

.package-card {
    /* The stacking magic: each card sticks a little lower than the last */
    position: sticky;
    top: calc(6rem + var(--i) * 1.25rem);
    margin-bottom: calc(var(--left) * 1.25rem);   /* earlier cards stop higher, so the edges stay */
    padding: 2.5rem 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 -6px 20px rgba(70, 79, 70, 0.12);   /* soft edge on top of the card below */
    transform-origin: top center;
    transition: transform 0.2s ease-out;
}

/* The last card in the deck */
.card-sage {
    background: var(--sage);
    color: var(--off-white);
}

/* ----- What's inside each card ----- */
.package-number {
    font-family: var(--font-heading);
    opacity: 0.6;
}

.package-card h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 2.75rem);
    line-height: 1.1;
    margin: 0.25rem 0 0.75rem;
}

.package-tagline {
    font-size: 1.1rem;
    font-weight: 500;
}

.package-for {
    margin-top: 0.5rem;
    line-height: 1.6;
    opacity: 0.85;
}

.package-features {
    list-style: none;
    margin: 1.5rem 0;
    padding: 0;
    display: grid;
    gap: 0.6rem;
}

.package-features li {
    position: relative;
    padding-left: 1.75rem;
    line-height: 1.5;
}

/* Little ticks instead of bullet points */
.package-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    font-weight: 600;
}

.package-price {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
}

.package-note {
    margin-top: 0.25rem;
    font-size: 0.9rem;
    opacity: 0.85;
}

.package-card .btn {
    margin-top: 1.5rem;
}

/* A light button on the dark sage card */
.card-sage .btn-dark {
    background: var(--off-white);
    color: var(--sage);
    border-color: var(--off-white);
}

.package-promise {
    max-width: 32rem;
    margin: 3rem auto 0;
    font-weight: 500;
    line-height: 1.6;
}

/* ----- When stacking isn't a good idea, show a plain list ----- */
/* Short screens (a card might be taller than the screen) */
/* and visitors who prefer less motion */
@media (max-height: 699px), (prefers-reduced-motion: reduce) {
    .package-stack {
        grid-auto-rows: auto;
    }

    .package-card {
        position: static;
        margin-bottom: 0;
    }
}

/* ===== More ways I can help ===== */
.more-services {
    background: var(--cream);
}

.more-cards {
    display: grid;
    gap: 1.5rem;
    margin-top: 3rem;
    text-align: left;
}

.more-card {
    display: flex;
    flex-direction: column;
    padding: 2.5rem 2rem;
    border-radius: 1.5rem;
    background: var(--off-white);
}

.more-card h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    line-height: 1.1;
    margin-bottom: 0.75rem;
}

/* Price and button sit at the bottom, so side-by-side cards line up */
.more-card .package-price {
    margin-top: auto;
}

.more-card .btn {
    align-self: flex-start;      /* button only as wide as its words */
    margin-top: 1.5rem;
}

/* Custom builds: the big sage card */
.more-card-wide {
    background: var(--sage);
    color: var(--off-white);
}

.more-card-wide .btn-dark {
    background: var(--off-white);
    color: var(--sage);
    border-color: var(--off-white);
}

/* ----- Tablets and up: Care and Hosting side by side ----- */
@media (min-width: 768px) {
    .more-cards {
        grid-template-columns: 1fr 1fr;
    }

    .more-card-wide {
        grid-column: 1 / -1;     /* stretch across both columns */
    }

    /* Custom builds has lots of bullets, so they go in two columns */
    .more-card-wide .package-features {
        grid-template-columns: 1fr 1fr;
        column-gap: 2rem;
    }
}

/* ===== Soft colour glows behind the deck ===== */
.services-page {
    position: relative;
    overflow: clip;              /* trims the glows at the edges (see "why" below!) */
}

.services-page::before,
.services-page::after {
    content: "";
    position: absolute;
    width: 40rem;
    height: 40rem;
    border-radius: 50%;
    opacity: 0.9;
    pointer-events: none;
}

/* Mint glow, top left */
.services-page::before {
    top: -10rem;
    left: -15rem;
    background: radial-gradient(circle, var(--mint) 0%, var(--mint) 25%, transparent 70%);
}

/* Butter glow, lower right */
.services-page::after {
    top: 45%;
    right: -15rem;
    background: radial-gradient(circle, #EAD592 0%, #EAD592 20%, transparent 70%);
}

/* Keep the words and cards in front of the glows */
.services-page .section-inner {
    position: relative;
    z-index: 1;
}