/* 09 Super Handy services catalogue. Every rule scoped under #services.
   Round 11: back to real work in progress. Candid crew photos from assets/img/real (under-sink supply line,
   ceiling box wiring, two-person TV mount in a family room with a smart-lock close-up below it, cutting in a
   sage wall over plastic-wrapped furniture) replace the people-free product renders.
   Round 10: people-free photography of the finished work (fitted faucet, fan, smart lock, painted room) in one
   cool neutral light; each photo now stretches to the full height of its ledger (no dead block under it);
   one visible "Starting at" column head per ledger replaces 19 repeated "From" labels; prices one step quieter;
   descriptors at reading size; index cells carry a count line so all five fill evenly.
   Round 9: new candid crew photography (work in frame, faces turned away, lived-in homes) at one fixed 3:2 crop;
   intro text column now spans the full height of the headline; "From" labels and prices sit on fixed columns;
   display italic caps reserved for the headline, group names, prices and step numbers.
   Round 8: one strict two-column system from the intro down. Left half = the photograph (brand set: real
   technicians in navy shirts, working in bright rooms), right half = category name + price ledger. The photo
   is stretched to the exact height of its ledger, so no column ever runs long or leaves dead space. Prices
   read "From $X" on every priced row; the header row is visually hidden so the list is not 19 identical
   ruled rows under repeated column labels. Larger work keeps the grid, with a cool-grey panel in place of
   the photo. Gold appears once: the "Book a service" button. */
#services{
  --svc-top:132px;            /* anchor offset; js/09-services.js sets it from the live header height */
  --svc-gap:clamp(32px,4vw,64px);
  background:var(--white);color:var(--ink);
  padding-top:var(--section-y);
  overflow-x:clip;
}
#services figure{margin:0}
#services ol,#services ul{margin:0;padding:0;list-style:none}

/* ---------- Intro ---------- */
#services .svc-kicker{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;margin-bottom:clamp(24px,2.6vw,36px);font:700 var(--fs-xs)/1.2 var(--body);letter-spacing:.16em;text-transform:uppercase;color:var(--muted)}
#services .svc-kicker__brand{color:var(--navy)}
#services .svc-kicker__line{width:56px}
#services .svc-intro__grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:var(--svc-gap);align-items:stretch}
#services .svc-title{font-size:clamp(54px,7.6vw,112px);line-height:.94;letter-spacing:0;color:var(--navy);margin-left:-.04em}
#services .svc-title span{display:block}
#services .svc-intro__side{display:flex;flex-direction:column;justify-content:space-between;gap:28px;padding:clamp(6px,.7vw,12px) 0 clamp(4px,.5vw,8px);border-left:3px solid var(--navy);padding-left:clamp(20px,2.2vw,32px)}
#services .svc-lead{max-width:30ch;font:500 clamp(18px,1.75vw,24px)/1.45 var(--body);letter-spacing:-.01em;color:var(--ink)}
#services .svc-jump{margin:0}
#services .svc-jump a{font:600 var(--fs-md)/1 var(--body);color:var(--navy);text-decoration:underline;text-decoration-color:var(--gold);text-decoration-thickness:2px;text-underline-offset:6px}
#services .svc-jump a:hover{color:var(--water)}

/* Category index: the whole catalogue at a glance */
#services .svc-index{margin-top:clamp(48px,5.4vw,80px)}
#services .svc-index ol{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));border-top:2px solid var(--navy);border-bottom:1px solid var(--line)}
#services .svc-index li + li{border-left:1px solid var(--line)}
#services .svc-index a{display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto auto;align-content:start;column-gap:10px;row-gap:8px;align-items:baseline;height:100%;padding:16px 12px 16px 0;text-decoration:none;color:var(--navy);transition:color .2s var(--ease)}
#services .svc-index__c{grid-column:2;font:600 var(--fs-xs)/1 var(--body);letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
#services .svc-index li + li a{padding-left:clamp(14px,1.6vw,22px)}
#services .svc-index__n{font:900 italic var(--fs-sm)/1 var(--display);letter-spacing:.06em;color:var(--navy)}
#services .svc-index__t{font:600 var(--fs-md)/1.25 var(--body);letter-spacing:-.005em}
#services .svc-index a:hover{color:var(--water)}
#services .svc-index a:hover .svc-index__t{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:5px}

/* ---------- Catalogue ---------- */
#services .svc-catalogue{padding-top:clamp(48px,5vw,72px);padding-bottom:var(--section-y);display:grid;row-gap:clamp(64px,7vw,104px)}
#services .svc-cat{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:var(--svc-gap);
  align-items:start;border-top:3px solid var(--navy);padding-top:clamp(28px,2.8vw,40px);
  scroll-margin-top:var(--svc-top)
}
/* Photo: fills the full height of its ledger */
#services .svc-cat__media{position:relative;overflow:hidden;background:var(--cloud);align-self:stretch;min-height:320px}
#services .svc-cat__media img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:var(--pos,50% 50%)}
/* Home installation: the mount in the room above, the lock close-up below */
#services .svc-cat__media--pair{background:var(--white)}
#services .svc-cat__media--pair .svc-cat__main{inset:0 0 auto 0;height:calc(60% - 4px)}
#services .svc-cat__media--pair .svc-cat__inset{inset:auto 0 0 0;height:calc(40% - 4px)}

#services .svc-cat__body{display:flex;flex-direction:column;min-width:0}
#services .svc-cat__n{display:flex;align-items:baseline;gap:14px;font:900 italic var(--fs-sm)/1 var(--display);letter-spacing:.06em;color:var(--navy)}
#services .svc-cat__count{font:600 var(--fs-xs)/1 var(--body);font-style:normal;letter-spacing:.16em;text-transform:uppercase;color:var(--muted)}
#services .svc-cat .h-card{margin-top:14px;color:var(--navy);font-size:clamp(28px,2.6vw,40px);line-height:.98;letter-spacing:0}
#services .svc-cat__sub{margin-top:14px;max-width:38ch;color:var(--ink-soft);font:400 var(--fs-lg)/1.5 var(--body)}

/* Ledger */
#services .svc-table{width:100%;margin-top:clamp(26px,2.6vw,36px);border-collapse:collapse;font-variant-numeric:tabular-nums}
#services .svc-table thead th{padding:0 0 10px;border-bottom:2px solid var(--navy);font:700 var(--fs-xs)/1 var(--body);letter-spacing:.16em;text-transform:uppercase;color:var(--muted);text-align:left}
#services .svc-table thead th:last-child{text-align:right;white-space:nowrap}
#services .svc-table tbody th,#services .svc-table tbody td{padding:17px 0;border-bottom:1px solid var(--line);vertical-align:baseline}
#services .svc-table tbody tr:last-child th,#services .svc-table tbody tr:last-child td{border-bottom:0;padding-bottom:0}
#services .svc-table tbody th{font:500 var(--fs-lg)/1.35 var(--body);color:var(--ink);text-align:left;padding-right:24px;letter-spacing:-.005em}
#services .svc-table tbody td{text-align:right;white-space:nowrap;width:1%}
#services .svc-table data{display:inline-block;min-width:3em;text-align:right;font:700 italic clamp(19px,1.45vw,21px)/1 var(--display);color:var(--navy);letter-spacing:.02em}
#services .svc-est{font:500 var(--fs-md)/1 var(--body);color:var(--muted)}

/* Larger work: same grid, cool-grey panel in the photo column */
#services .svc-cat__aside{align-self:stretch;display:flex;flex-direction:column;align-items:flex-start;background:var(--cloud);padding:clamp(28px,3vw,44px)}
#services .svc-cat--est .svc-cat__sub{max-width:42ch}
#services .svc-cat__cta{margin-top:auto;padding:clamp(28px,3vw,40px) 0 0 6px}
#services .svc-cat--est .svc-table{margin-top:0}

/* ---------- Booking flow: the section closes on navy, gold appears once ---------- */
#services .svc-book{background:var(--navy);color:var(--white);padding-block:var(--section-y);scroll-margin-top:var(--svc-top)}
#services .svc-book__head{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:var(--svc-gap);align-items:end}
#services .svc-book__head .h-section{color:var(--white)}
#services .svc-book__lead{color:#D3DCEA;font-size:var(--fs-lg);line-height:1.5;padding-bottom:.2em}
#services .svc-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));column-gap:clamp(24px,3vw,48px);margin-top:clamp(40px,5vw,64px)}
#services .svc-steps li{padding-top:24px;border-top:2px solid var(--white)}
#services .svc-step__n{display:block;font:900 italic clamp(36px,3.4vw,48px)/1 var(--display);color:var(--white)}
#services .svc-step__t{margin-top:20px;font:700 var(--fs-lg)/1.3 var(--body);letter-spacing:-.005em;color:var(--white);max-width:20ch}
#services .svc-step__d{margin-top:12px;color:#D3DCEA;font-size:var(--fs-md);line-height:1.55;max-width:30ch}
#services .svc-book__foot{display:flex;flex-wrap:wrap;align-items:center;gap:20px 36px;margin-top:clamp(48px,5vw,72px);padding:clamp(32px,3.2vw,44px) 0 0 6px;border-top:1px solid rgba(255,255,255,.2)}
#services .svc-book__fine{max-width:56ch;font-size:var(--fs-sm);line-height:1.55;color:#B9C7DD}
#services .svc-book :focus-visible{outline-color:var(--gold)}

/* ---------- Responsive ---------- */
@media (max-width:1100px){
  #services .svc-steps{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:48px}
  #services .svc-table tbody th{font-size:var(--fs-md)}
  #services .svc-table tbody th,#services .svc-table tbody td{padding:15px 0}
}
@media (max-width:900px){
  #services .svc-index ol{grid-template-columns:repeat(3,minmax(0,1fr))}
  #services .svc-index li:nth-child(4){border-left:0}
  #services .svc-index li:nth-child(n+4){border-top:1px solid var(--line)}
  #services .svc-index li:nth-child(4) a{padding-left:0}
}
/* Phone: photo, name, ledger in one column */
@media (max-width:760px){
  #services .svc-intro__grid{grid-template-columns:1fr;row-gap:24px}
  #services .svc-intro__side{padding:2px 0 2px 18px;gap:20px}
  #services .svc-catalogue{row-gap:64px}
  #services .svc-cat{grid-template-columns:minmax(0,1fr);row-gap:24px}
  #services .svc-cat__media{min-height:0;aspect-ratio:4/3}
  #services .svc-cat__media--pair .svc-cat__main{inset:0;height:100%}
  #services .svc-cat__media--pair .svc-cat__inset{display:none}
  #services .svc-cat__aside{order:0}
  #services .svc-book__head{grid-template-columns:1fr;row-gap:12px}
}
@media (max-width:640px){
  #services .svc-kicker{gap:10px 12px}
  #services .svc-kicker__line{width:40px}
  #services .svc-index ol{grid-template-columns:repeat(2,minmax(0,1fr))}
  #services .svc-index li + li{border-left:0}
  #services .svc-index li:nth-child(even){border-left:1px solid var(--line)}
  #services .svc-index li:nth-child(n+3){border-top:1px solid var(--line)}
  #services .svc-index li:nth-child(4) a{padding-left:14px}
  #services .svc-index li:nth-child(odd) a{padding-left:0}
  #services .svc-index li:nth-child(even) a{padding-left:14px}
  #services .svc-index li:last-child{grid-column:1 / -1;border-left:0}
  #services .svc-index li:last-child a{padding-left:0}
  #services .svc-index a{padding-block:16px}
  #services .svc-cat .h-card{font-size:30px}
  #services .svc-table tbody th,#services .svc-table tbody td{padding:14px 0}
  #services .svc-table tbody th{padding-right:12px;font-size:15px}
  #services .svc-table data{font-size:19px}
  #services .svc-cat__aside{padding:24px}
  #services .svc-steps{grid-template-columns:1fr;row-gap:0;margin-top:32px}
  #services .svc-steps li{display:grid;grid-template-columns:3.2rem 1fr;column-gap:12px;padding:22px 0 24px;border-top:1px solid rgba(255,255,255,.22)}
  #services .svc-steps li:first-child{border-top:2px solid var(--white)}
  #services .svc-step__n{grid-row:span 2;font-size:30px}
  #services .svc-step__t{margin-top:2px}
  #services .svc-step__d{margin-top:8px}
  #services .svc-book__foot{flex-direction:column;align-items:flex-start}
}
@media (prefers-reduced-motion:reduce){
  #services *{transition:none!important}
}
