/* ==========================================================================
   /services/* — styles shared by the service pages
   Loaded on every service page as the first entry of pageCss
   (['service', 'service-<slug>']). Only components that appear on more than
   one service design live here; each page's own art is in
   service-<slug>.css. Shared file: append in a commented block, re-read it
   first, and don't rename what's here — other views use these classes.
   ========================================================================== */

/* ---------- Two-column hero (copy + illustration) ----------
   <div class="hero__panel svc-hero"> — the hero panel as a grid instead of
   a stack, the art column centred beside the copy. */
.svc-hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
    gap: 48px;
    align-items: center;
}
.svc-hero__copy { display: flex; flex-direction: column; gap: 20px; position: relative; }

/* ---------- Section heading: eyebrow + h2 (+ lead) ---------- */
.svc-head { display: flex; flex-direction: column; gap: 16px; }
.svc-eyebrow { font-weight: 700; font-size: 15px; color: var(--c-pink-text); }
.svc-head .h2 { max-width: 820px; text-wrap: balance; }
.svc-head .lead { max-width: 640px; }

/* ---------- Key facts strip under the hero (four tinted cards) ----------
   <section class="section svc-facts"><div class="grid-4"><div class="card tint-yellow">
   <span class="label">…</span><span class="svc-fact">…</span></div>…</div></section> */
.svc-facts { padding-top: 24px; }
.svc-fact { font-size: 17px; line-height: 1.45; font-weight: 500; }

/* ---------- Tinted two-column panel (heading left, list right) ---------- */
.svc-panel {
    border-radius: var(--r-hero);
    padding: clamp(28px, 5vw, 64px);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
    gap: 40px;
    align-items: start;
}
.svc-panel__head { display: flex; flex-direction: column; gap: 18px; }
.svc-panel__head .svc-eyebrow { color: var(--c-ink); }
.svc-panel__head .h2 { max-width: 820px; text-wrap: balance; }
.svc-panel__text { font-size: 18px; line-height: 1.6; max-width: 760px; text-wrap: pretty; }

/* ---------- Numbered speech-bubble list ----------
   <ol class="svc-points"><li class="svc-point">
     <span class="svc-badge svc-badge--teal" aria-hidden="true">1</span>
     <span class="svc-point__text">…</span></li></ol>
   Badges alternate their tilt (odd/even) and swing the other way on hover. */
.svc-points { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.svc-point {
    background: var(--c-cream);
    border-radius: 24px 24px 24px 6px;
    padding: 16px 20px 16px 16px;
    display: flex; gap: 16px; align-items: center;
}
.svc-point__text { font-size: 17px; line-height: 1.5; font-weight: 500; }

.svc-badge {
    --badge: var(--c-teal);
    flex: none; position: relative;
    width: 52px; height: 46px; border-radius: 16px;
    background: var(--badge); border: 3px solid var(--c-ink);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--f-display); font-weight: 800; font-size: 24px; line-height: 1;
    color: var(--c-ink); padding-top: 2px;
    transform: rotate(-4deg);
    transition: transform .35s cubic-bezier(.34, 1.8, .5, 1);
    cursor: default;
}
.svc-point:nth-child(even) .svc-badge { transform: rotate(3deg); }
.svc-point:hover .svc-badge { transform: rotate(5deg) scale(1.1) translateY(-3px); }
.svc-point:nth-child(even):hover .svc-badge { transform: rotate(-5deg) scale(1.1) translateY(-3px); }
/* The badge's little speech tail: an ink triangle with a coloured one inside */
.svc-badge::before,
.svc-badge::after {
    content: ""; position: absolute; top: calc(100% - 3px);
    clip-path: polygon(0 0, 100% 0, 0 100%);
}
.svc-badge::before { left: 7px; width: 18px; height: 15px; background: var(--c-ink); }
.svc-badge::after  { left: 10px; width: 10px; height: 8px; background: var(--badge); }
.svc-badge--teal   { --badge: var(--c-teal); }
.svc-badge--yellow { --badge: var(--c-yellow); }
.svc-badge--pink   { --badge: var(--c-pink); }
.svc-badge--lilac  { --badge: var(--c-lilac); }
.svc-badge--orange { --badge: var(--c-orange); }

/* ---------- Closing call to action (yellow speech bubble) ----------
   <section class="section svc-cta">
     <div class="svc-cta__panel"><div class="blob blob--teal svc-cta__blob" data-float aria-hidden="true"></div>
       <h2 class="svc-cta__title">…</h2><p class="svc-cta__text">…</p><div class="btn-row">…</div></div>
     <span class="svc-cta__tail" data-tail aria-hidden="true"></span>
   </section> */
.svc-cta { position: relative; }
.svc-cta__panel {
    background: var(--c-yellow);
    border-radius: 48px 48px 48px 0;
    padding: clamp(36px, 6vw, 72px);
    display: flex; flex-direction: column; gap: 20px; align-items: flex-start;
    position: relative; overflow: hidden;
}
.svc-cta__panel > :not(.blob) { position: relative; }
.svc-cta__blob { right: -60px; bottom: -80px; width: 220px; height: 220px; }
.svc-cta__title {
    font-family: var(--f-display); font-weight: 800;
    font-size: clamp(36px, 5vw, 64px); line-height: 1; letter-spacing: -0.025em;
    max-width: 820px;
}
.svc-cta__text { font-size: 20px; line-height: 1.55; max-width: 600px; }
.svc-cta__tail {
    position: absolute; left: var(--gutter); bottom: -30px;
    width: 60px; height: 32px; overflow: hidden;
    background: var(--c-yellow);
    clip-path: polygon(0 0, 100% 0, 0 100%);
}

/* ==========================================================================
   Added by the Development / SEO / FreeScout pages
   ========================================================================== */

/* ---------- Hero heading and intro sized as on the service designs ----------
   <h1 class="svc-h1">…</h1> <p class="lede svc-lede">…</p> */
.svc-h1 {
    font-family: var(--f-display); font-weight: 800;
    font-size: clamp(44px, 5.4vw, 80px); line-height: 0.95; letter-spacing: -0.03em;
    max-width: 1000px; text-wrap: balance;
}
.svc-lede { max-width: 660px; }
.svc-kicker { font-weight: 700; font-size: 16px; }

/* ---------- Tinted card grid (three across on wide screens) ----------
   <div class="svc-cards"><div class="svc-card tint-yellow lift">
     <span class="svc-card__title">…</span><span class="svc-card__text">…</span></div></div> */
.svc-cards {
    display: grid; gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, max(260px, calc(33.3% - 22px))), 1fr));
}
.svc-card {
    border-radius: 32px 32px 32px 8px; padding: 28px;
    display: flex; flex-direction: column; gap: 12px;
    scroll-margin-top: 24px;
}
.svc-card__title { font-family: var(--f-display); font-weight: 800; font-size: 26px; line-height: 1.1; }
.svc-card__text { font-size: 17px; line-height: 1.55; }
.svc-card__meta { font-size: 14px; font-weight: 600; }
.svc-card .link { font-size: 16px; }

/* ---------- Numbered process steps (outlined white cards) ----------
   <ol class="svc-steps"><li class="svc-step"><span class="svc-step__num bg-teal">1</span>
   <span class="svc-step__title">…</span><span class="svc-step__text">…</span></li></ol> */
.svc-steps {
    margin: 0; padding: 0; list-style: none;
    display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}
.svc-step {
    border: 3px solid var(--c-ink); border-radius: var(--r-card); padding: 24px;
    display: flex; flex-direction: column; gap: 10px; background: var(--c-white);
}
.svc-step__num {
    width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--f-display); font-weight: 800; font-size: 20px;
}
.svc-step__title { font-family: var(--f-display); font-weight: 800; font-size: 22px; line-height: 1.1; }
.svc-step__text { font-size: 16px; line-height: 1.5; }

/* ---------- FAQ: heading left, questions right ----------
   <section class="section svc-faq"><div class="svc-head svc-faq__head">…</div>
   <div class="svc-faq__list"><details class="faq tint-yellow">…</details></div></section> */
.svc-faq { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.svc-faq__head { flex: 1 1 280px; }
.svc-faq__list { flex: 999 1 min(100%, 480px); display: flex; flex-direction: column; gap: 12px; min-width: 0; }

/* Sections laid out as heading + content with the design's 40px gap */
.svc-section { display: flex; flex-direction: column; gap: 40px; scroll-margin-top: 24px; }

/* The key-facts strip sits 24px under the hero */
.section.svc-facts { padding-top: 24px; }

/* ==========================================================================
   Added by the Locations module (local landing pages)
   ========================================================================== */

/* ---------- "Areas we cover": links to the local landing pages ----------
   app/Views/partials/location-areas.php — after each service page (via
   partials/service-page.php) and on every location page.
   <section class="section areas"><div class="areas__panel">
     <div class="svc-head">…</div>
     <ul class="areas__places chips"><li class="chip tint-yellow">Woodhall Spa</li></ul>
     <ul class="areas__links"><li><a class="pill-link" href="/…">…</a></li></ul>
   </div></section> */
.section.areas { padding-top: 96px; }
.areas__panel {
    border: 3px solid var(--c-ink); border-radius: var(--r-hero);
    background: var(--c-white);
    padding: clamp(28px, 5vw, 56px);
    display: flex; flex-direction: column; gap: 28px;
}
.areas__panel .svc-head { gap: 12px; }
.areas__places, .areas__links { margin: 0; padding: 0; list-style: none; }
.areas__places { gap: 8px; }
.areas__places .chip { font-size: 15px; padding: 6px 16px; }
.areas__links { display: flex; flex-wrap: wrap; gap: 12px; }
.areas__links .pill-link { display: inline-block; transition: background .2s, transform .25s var(--ease-spring); }
.areas__links .pill-link:hover { transform: translateY(-2px); }
/* The way back to the main service page stands out from the siblings. */
.areas__links .areas__main { background: var(--c-yellow); }
.areas__links .areas__main:hover { background: var(--c-yellow-tint-hover); }
