/* ==========================================================================
   Services page (services.html) - hero and service cards.
   Shared parts (eyebrows, buttons, why-cards, process, FAQ, Google Reviews,
   CTA, scroll reveal) come from about-page.css / about-page.js.
   ========================================================================== */

/* ---------- Hero with photo background ---------- */
.sv-hero {
    padding: clamp(8rem, 13vw, 10rem) 0 clamp(4.5rem, 8vw, 6.5rem);
    background:
        linear-gradient(100deg, rgba(8, 15, 29, 0.94) 0%, rgba(8, 15, 29, 0.82) 42%, rgba(8, 15, 29, 0.35) 75%, rgba(8, 15, 29, 0.2) 100%),
        url("../images/hero-bg.webp") center 60% / cover no-repeat,
        #0B1424;
}

.sv-hero::before {
    display: none;
}

.sv-hero-inner {
    position: relative;
    max-width: 1200px;
}

.sv-hero .ab-hero-title,
.sv-hero .ab-hero-sub {
    max-width: 640px;
}

.sv-hero-jump {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-width: 680px;
    margin: 2.25rem 0 0;
    padding: 0;
    list-style: none;
}

.sv-hero-jump a {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.06);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    transition: border-color 0.25s, color 0.25s, background 0.25s;
}

.sv-hero-jump a:hover,
.sv-hero-jump a:focus-visible {
    border-color: #C5A039;
    color: #E9D39A;
    background: rgba(197, 160, 57, 0.12);
}

/* ---------- Service cards ---------- */
.sv-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem;
}

@media (max-width: 1100px) {
    .sv-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.sv-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 24px;
    background: var(--color-bg-card);
    border: 1px solid color-mix(in srgb, var(--color-text-heading) 8%, transparent);
    box-shadow: 0 24px 50px -40px rgba(15, 23, 42, 0.55);
    scroll-margin-top: 110px;
    transition: transform 0.5s var(--ab-ease), box-shadow 0.5s var(--ab-ease), border-color 0.3s;
}

.sv-card:hover {
    transform: translateY(-8px);
    border-color: color-mix(in srgb, var(--color-secondary) 45%, transparent);
    box-shadow: 0 36px 70px -38px color-mix(in srgb, var(--color-secondary) 60%, transparent);
}

/* highlight the card when arriving from a #bookkeeping style link */
.sv-card:target {
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-secondary) 35%, transparent), 0 36px 70px -38px rgba(15, 23, 42, 0.5);
}

.sv-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0B1424;
}

.sv-media img {
    /* pinned inside the 16:9 frame so tall photos (e.g. payroll) can't stretch the card */
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.9);
    transition: transform 0.8s var(--ab-ease), filter 0.5s;
}

.sv-media::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px 24px 0 0;
    background: linear-gradient(180deg, rgba(11, 20, 36, 0) 45%, rgba(11, 20, 36, 0.55) 100%);
}

.sv-card:hover .sv-media img {
    transform: scale(1.07);
    filter: saturate(1.05);
}

.sv-icon {
    position: absolute;
    left: 1.25rem;
    bottom: -26px;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: linear-gradient(145deg, color-mix(in srgb, var(--color-secondary) 75%, #FFFFFF), var(--color-secondary));
    color: #FFFFFF;
    box-shadow: 0 0 0 5px var(--color-bg-card), 0 12px 24px -10px color-mix(in srgb, var(--color-secondary) 80%, transparent);
    transition: transform 0.45s var(--ab-ease);
}

.sv-media {
    overflow: visible;
}

.sv-media img {
    border-radius: 24px 24px 0 0;
}

.sv-card:hover .sv-icon {
    transform: rotate(-8deg) scale(1.06);
}

.sv-icon svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sv-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 2.4rem 1.6rem 1.6rem;
}

.sv-body h3 {
    margin: 0 0 0.6rem;
    font-size: 1.25rem;
    line-height: 1.3;
    color: var(--color-text-heading);
}

.sv-body > p {
    margin: 0 0 1rem;
    font-size: 0.93rem;
    line-height: 1.7;
    color: var(--color-text-light);
}

.sv-points {
    display: grid;
    gap: 0.45rem;
    margin: 0 0 1.4rem;
    padding: 0;
    list-style: none;
}

.sv-points li {
    position: relative;
    padding-left: 1.6rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
}

.sv-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.2em;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--color-secondary) 16%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12l4 4 8-8' fill='none' stroke='%23C5A039' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.sv-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1.1rem;
    border-top: 1px solid color-mix(in srgb, var(--color-text-heading) 8%, transparent);
}

.sv-more {
    padding: 0.65rem 1.2rem;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--color-secondary) 55%, transparent);
    background: transparent;
    color: var(--color-text-heading);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.sv-more:hover,
.sv-more:focus-visible {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    color: #FFFFFF;
}

.sv-enquire {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--color-secondary);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.sv-enquire i {
    font-style: normal;
    transition: transform 0.3s var(--ab-ease);
}

.sv-enquire:hover i {
    transform: translateX(4px);
}

.sv-more:focus-visible,
.sv-enquire:focus-visible {
    outline: 2px solid var(--color-secondary);
    outline-offset: 3px;
}

/* "Not sure" card */
.sv-card-cta {
    justify-content: center;
    padding: 2.2rem;
    background:
        radial-gradient(400px 220px at 100% 0%, rgba(197, 160, 57, 0.28), transparent 70%),
        linear-gradient(155deg, #0B1424, #15233E);
    color: #FFFFFF;
    border: 0;
}

.sv-card-cta h3 {
    margin: 0 0 0.7rem;
    font-size: 1.45rem;
    color: #FFFFFF;
}

.sv-card-cta p {
    margin: 0 0 1.6rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
}

.sv-card-cta .btn-primary {
    align-self: flex-start;
    background: #C5A039;
    border-color: #C5A039;
    color: #0B1424;
}

/* Section rhythm */
.sv-why {
    background: var(--color-bg-body);
}

.sv-reviews .gr {
    margin-top: 1.5rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
    .sv-hero {
        background:
            linear-gradient(180deg, rgba(8, 15, 29, 0.9) 0%, rgba(8, 15, 29, 0.8) 60%, rgba(8, 15, 29, 0.65) 100%),
            url("../images/hero-bg.webp") 65% center / cover no-repeat,
            #0B1424;
    }

    .sv-grid {
        grid-template-columns: 1fr;
    }

    .sv-actions {
        flex-wrap: wrap;
    }

    .sv-card-cta .btn-primary {
        align-self: stretch;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sv-card,
    .sv-media img,
    .sv-icon {
        transition: none;
    }
}
