/* ==========================================================================
   MLP Home Pros - service detail page
   ==========================================================================
   Loaded after styles.css and only on service.html. Everything here inherits
   the tokens (--ink, --accent, --space-*, --radius, --shadow) defined in
   styles.css, so this file adds layout for the page-specific blocks and
   nothing else.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Breadcrumb
   -------------------------------------------------------------------------- */

.crumbs {
    background: var(--bone);
    border-bottom: 1px solid var(--line);
    padding-block: var(--space-4);
    font-size: 0.875rem;
}

.crumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    color: var(--muted);
}

/* Separator lives in CSS so it is not read out by screen readers. */
.crumbs li + li::before {
    content: "/";
    margin-right: 0.5rem;
    color: var(--line);
}

.crumbs a {
    color: var(--muted);
    text-decoration: none;
}

.crumbs a:hover {
    color: var(--accent-dark);
    text-decoration: underline;
}

.crumbs [aria-current="page"] {
    color: var(--ink);
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.svc-hero {
    background:
        radial-gradient(90% 120% at 100% 0%, var(--sand), transparent 60%),
        var(--white);
    padding-block: clamp(2.5rem, 6vw, var(--space-8));
    border-bottom: 1px solid var(--line);
}

.svc-hero-grid {
    display: grid;
    gap: clamp(2rem, 4vw, var(--space-7));
    align-items: center;
}

@media (min-width: 900px) {
    .svc-hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
    }
}

.svc-hero-copy h1 {
    /* A touch smaller than the home page h1: this is a section landing, not
       the front door. */
    font-size: clamp(2rem, 4.2vw, 3rem);
    margin-bottom: var(--space-4);
}

.svc-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-top: var(--space-6);
}

.svc-hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3) var(--space-5);
    margin-top: var(--space-5);
    list-style: none;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--ink-soft);
}

.svc-hero-points li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.svc-hero-points svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    color: var(--forest);
}

.svc-hero-media {
    position: relative;
    margin: 0;
}

.svc-hero-media img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.svc-hero-note {
    margin-top: var(--space-3);
    font-size: 0.8125rem;
    color: var(--muted);
}

/* --------------------------------------------------------------------------
   Body: prose + "what this covers" checklist
   -------------------------------------------------------------------------- */

.svc-body-grid {
    display: grid;
    gap: clamp(2rem, 4vw, var(--space-7));
    align-items: start;
}

@media (min-width: 900px) {
    .svc-body-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
    }
}

.svc-prose p {
    font-size: 1.0625rem;
    color: var(--ink-soft);
    max-width: 62ch;
}

.svc-prose p + p {
    margin-top: var(--space-4);
}

.svc-includes {
    padding: clamp(1.5rem, 3vw, var(--space-6));
    background: var(--bone);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}

.svc-includes h2 {
    font-size: 1.25rem;
    margin-bottom: var(--space-4);
}

.svc-includes ul {
    display: grid;
    gap: var(--space-3);
    list-style: none;
}

.svc-includes li {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    font-size: 0.9375rem;
    color: var(--ink-soft);
}

.svc-includes svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    /* Nudge the tick onto the first line's optical centre. */
    margin-top: 0.15em;
    color: var(--accent);
}

.svc-includes-note {
    margin-top: var(--space-5);
    padding-top: var(--space-4);
    border-top: 1px solid var(--line);
    font-size: 0.875rem;
    color: var(--muted);
}

/* --------------------------------------------------------------------------
   Work album

   Some trades have no photographed jobs yet. The page says so rather than
   showing a photo of a different kind of work.
   -------------------------------------------------------------------------- */

.svc-nowork {
    margin-top: var(--space-4);
    padding: var(--space-5);
    background: var(--white);
    border: 1px solid var(--line);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
    font-size: 1rem;
    color: var(--ink-soft);
}

.svc-nowork a {
    color: var(--accent-dark);
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   Other services
   -------------------------------------------------------------------------- */

.svc-other-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: var(--space-4);
}

.svc-other-card {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    padding: var(--space-5);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    text-decoration: none;
    transition: transform var(--transition), box-shadow var(--transition),
                border-color var(--transition);
}

.svc-other-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
}

.svc-other-name {
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--ink);
}

.svc-other-blurb {
    font-size: 0.875rem;
    color: var(--muted);
}

.svc-other-go {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: var(--space-3);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-dark);
}

.svc-other-go svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition);
}

.svc-other-card:hover .svc-other-go svg {
    transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   Closing CTA
   -------------------------------------------------------------------------- */

.svc-cta {
    padding-block: clamp(3rem, 7vw, var(--space-8));
    background: var(--forest);
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
}

.svc-cta h2 {
    color: var(--white);
    margin-bottom: var(--space-4);
}

.svc-cta p {
    max-width: 58ch;
    margin-inline: auto;
    font-size: 1.0625rem;
}

.svc-cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-3);
    margin-top: var(--space-6);
}

/* --------------------------------------------------------------------------
   Mobile
   -------------------------------------------------------------------------- */

@media (max-width: 640px) {
    .svc-hero-actions .btn,
    .svc-cta-actions .btn {
        width: 100%;
        justify-content: center;
    }
}
