/* Services luxury layer (style only). Linked only from standalone /services/* pages.
   Navy / warm-white system (existing site palette tones only), fluid margins, calm cards, one button family, serif hierarchy.
   Selectors are prefixed with "html body" so they win over the pages' own inline <style> blocks.
   CSS only: no content is hidden, added or reordered. */
:root{--sl-navy:#383b4f;--sl-navy-deep:#262836;--sl-ink:#1a1a1e;--sl-text:#3a3e4b;--sl-muted:#5a5f6d;--sl-accent:#393d57;--sl-warm:#efece7;--sl-warm-line:rgba(239,236,231,.8);--sl-warm-hair:rgba(239,236,231,.28);--sl-accent-ink:#393d57;--sl-line:rgba(57,61,87,.32);--sl-hair:#e6e2d8;--sl-paper:#f8f6f1;--sl-serif:Georgia,"Times New Roman",serif;--sl-wrap:min(1180px,calc(100% - clamp(40px,8vw,140px)));--sl-ease:cubic-bezier(.2,.7,.2,1)}
html body{font-family:"Open Sans",Arial,Helvetica,sans-serif;color:var(--sl-ink);line-height:1.65;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;overflow-x:clip}
html body main img{max-width:100%;height:auto}
html body main :is(p,li,a){overflow-wrap:break-word}

/* Header + footer (44px tap targets) */
html body .topbar{background:var(--sl-navy);border-bottom:1px solid var(--sl-warm-hair)}
html body .topbar .nav,html body .footer .footer-inner,html body main .section,html body .hero .hero-inner{width:var(--sl-wrap)}
html body .topbar .nav{padding:10px 0}
html body header nav a,html body footer a{display:inline-flex;align-items:center;min-height:44px}
html body .nav-links{gap:clamp(16px,2vw,28px);letter-spacing:.16em;font-weight:600}
html body .nav-links a{border-bottom:1px solid transparent;transition:border-color .26s var(--sl-ease),color .26s var(--sl-ease)}
html body .nav-links a:hover{border-bottom-color:var(--sl-warm-line);color:#fff}
html body .footer{background:var(--sl-navy-deep);border-top:1px solid var(--sl-warm-hair);padding:16px 0}
html body .footer .footer-inner{align-items:center}
html body footer a{text-underline-offset:3px}

/* Hero */
html body .hero{background:linear-gradient(180deg,#fff 0%,var(--sl-paper) 100%);border-bottom:1px solid var(--sl-hair)}
html body .hero .hero-inner{padding:clamp(44px,7vw,108px) 0 clamp(40px,6vw,92px);gap:clamp(32px,5vw,80px)}
html body .hero h1{font-family:var(--sl-serif);font-weight:400;letter-spacing:-.012em;line-height:1.04;color:var(--sl-ink)}
html body .eyebrow{display:flex;align-items:center;gap:14px;color:var(--sl-accent-ink);font-weight:700;letter-spacing:.2em}
html body .eyebrow::before{content:"";flex:0 0 32px;height:1px;background:var(--sl-accent)}
html body .hero :is(.hero-actions,.hero-inner > div > p:has(> .button)){display:flex;flex-wrap:wrap;gap:12px;margin:clamp(24px,2.6vw,34px) 0 clamp(4px,1vw,10px)}
html body .hero .intro{font-size:clamp(17px,1.35vw,20px);line-height:1.7;color:var(--sl-text);max-width:62ch}
html body .hero .hero-inner > div > p:not(.eyebrow):not(.intro){color:var(--sl-muted);font-size:15px;line-height:1.7;max-width:70ch}
html body .hero .panel{border:0;border-top:2px solid var(--sl-accent);background:#fff;padding:clamp(24px,2.4vw,34px);box-shadow:0 24px 60px -28px rgba(26,26,30,.22)}
html body .hero .panel h2{font-family:var(--sl-serif);font-weight:400;font-size:21px;color:var(--sl-ink)}
html body .hero .panel li{color:var(--sl-text);font-size:15px;line-height:1.6}
html body .hero .panel li::marker{color:var(--sl-accent)}

/* Rhythm: consistent section spacing (no stacked double padding) */
html body main .section{padding:clamp(36px,4.4vw,64px) 0}
html body main .section + .section{padding-top:0}
html body main:has(> .section) > p{width:var(--sl-wrap);margin:0 auto clamp(28px,3vw,44px);color:var(--sl-muted);font-size:15px}
html body main:has(> .section) > p:last-child{margin-bottom:0}
html body main .section > :last-child,html body main .section > div:last-child > :last-child{margin-bottom:0}
html body main .section > :is(p,ul,.grid,.detail-grid):first-child{margin-top:0}
html body main .section .photo-grid figure{margin:0}

/* Type hierarchy inside content */
html body main .section > h2,html body main .section > div > h2{font-family:var(--sl-serif);font-weight:400;font-size:clamp(26px,2.5vw,36px)!important;line-height:1.18;letter-spacing:-.006em;color:var(--sl-ink)!important;margin:clamp(40px,4.5vw,64px) 0 18px!important}
html body main .section > h2::after,html body main .section > div > h2::after{content:"";display:block;width:44px;height:1px;background:var(--sl-accent);margin-top:16px}
html body main .section > h2:first-child,html body main .section > div:first-child > h2:first-child{margin-top:0!important}
html body main .section > h3,html body main .section > div > h3{font-family:var(--sl-serif);font-weight:400;font-size:clamp(19px,1.6vw,23px)!important;line-height:1.3;color:var(--sl-ink)!important;margin:1.8em 0 .45em!important}
html body main .section > p,html body main .section > div > p,html body main .section > ul,html body main .section > div > ul{font-size:clamp(16px,1.15vw,17px);line-height:1.75;color:var(--sl-text);max-width:72ch}
html body main .section a:not(.button){text-decoration-color:var(--sl-line);text-underline-offset:3px;text-decoration-thickness:1px;transition:color .2s,text-decoration-color .2s}
html body main .section a:not(.button):hover{color:var(--sl-accent-ink);text-decoration-color:var(--sl-accent)}

/* Cards: hairline, airy. Explicit columns: 1 / 2 / 3, never an orphan column */
html body main .section :is(.grid,.detail-grid){grid-template-columns:minmax(0,1fr);gap:clamp(18px,2.2vw,32px);margin-top:clamp(18px,2vw,28px)}
html body main .section .card{position:relative;border:0;border-top:1px solid var(--sl-line);background:transparent;padding:22px 0 6px;transition:border-color .3s var(--sl-ease)}
html body main .section .card:hover{border-top-color:var(--sl-accent)}
html body main .section .card :is(h2,h3){font-family:var(--sl-serif);font-weight:400;font-size:clamp(19px,1.5vw,22px);line-height:1.3;color:var(--sl-ink);margin:0 0 10px}
html body main .section .card p{font-size:15px;line-height:1.7;color:var(--sl-muted);max-width:72ch}
html body main .section .card :is(h2,h3) a{text-decoration:none;color:var(--sl-ink)}
html body main .section .card :is(h2,h3) a:hover{color:var(--sl-accent-ink)}
/* Card whose only link is its heading: the whole card is the tap target (no copy changes) */
html body main .section .card:has(> :is(h2,h3) > a):not(:has(p a)) > :is(h2,h3) > a::after{content:"";position:absolute;inset:0}
html body main .section .card img{display:block;width:100%;aspect-ratio:3/2;object-fit:cover;margin:0 0 16px;background:var(--sl-paper)}
/* Link-only card walls (specialties lists) become a quiet index */
html body main .section .detail-grid:has(> .card > h3 > a){gap:0 clamp(24px,3vw,48px)}
html body main .section .detail-grid > .card:has(> h3 > a){padding:14px 0 12px;border-top-color:var(--sl-hair)}
html body main .section .detail-grid > .card:has(> h3 > a):hover{border-top-color:var(--sl-accent)}
html body main .section .detail-grid > .card:has(> h3 > a) h3{font-family:"Open Sans",Arial,sans-serif;font-size:15px;font-weight:600;letter-spacing:.01em;margin:0 0 2px}
html body main .section .detail-grid > .card:has(> h3 > a) p{font-size:13.5px;line-height:1.55}
@media (min-width:700px){
  html body main .section :is(.grid,.detail-grid){grid-template-columns:repeat(2,minmax(0,1fr))}
  html body main .section :is(.grid,.detail-grid):not(:has(> .card > h3 > a)) > .card:last-child:nth-child(odd):not(:first-child){grid-column:1/-1}
}
@media (min-width:1024px){
  html body main .section :is(.grid,.detail-grid):has(> :nth-child(3)):not(:has(> :last-child:nth-child(4))):not(:has(> .card > h3 > a)){grid-template-columns:repeat(3,minmax(0,1fr))}
  html body main .section .detail-grid:has(> .card > h3 > a){grid-template-columns:repeat(4,minmax(0,1fr))}
  html body main .section :is(.grid,.detail-grid):not(:has(> .card > h3 > a)) > .card:last-child:nth-child(odd):not(:first-child){grid-column:auto}
  html body main .section :is(.grid,.detail-grid):has(> :nth-child(5)):not(:has(> .card > h3 > a)) > .card:last-child:nth-child(3n+1){grid-column:1/-1}
}

/* Dark bands */
html body main .section .cta{background:var(--sl-navy);border-top:2px solid var(--sl-warm-line);padding:clamp(28px,4vw,52px);margin-top:clamp(36px,4vw,56px);gap:clamp(20px,3vw,48px)}
html body main .section .cta h2{font-family:var(--sl-serif);font-weight:400;font-size:clamp(24px,2.2vw,32px)!important;color:#fff!important;margin:0 0 10px!important;line-height:1.2}
html body main .section .cta p{color:rgba(255,255,255,.82);line-height:1.7}
html body main .bb-fit-block{background:var(--sl-navy-deep);border:1px solid var(--sl-warm-hair);padding:clamp(26px,3.6vw,48px);margin:clamp(40px,4.5vw,64px) 0}
html body main .bb-fit-block :is(h2,h3){font-family:var(--sl-serif);font-weight:400;line-height:1.2}
html body main .bb-fit-block h2{font-size:clamp(24px,2.2vw,32px)}
html body main .bb-fit-block h3{font-size:clamp(19px,1.6vw,22px);margin:0 0 12px;color:#fff}
html body main .bb-fit-block + .cta{margin-top:0}

/* One button family */
html body .button,html body main .bb-fit-block .bb-fit-actions a{border-radius:2px;min-height:48px;padding:13px 22px;font-size:12px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;transition:background-color .26s var(--sl-ease),color .26s var(--sl-ease),border-color .26s var(--sl-ease),box-shadow .26s var(--sl-ease)}
html body .hero .button{border:1px solid var(--sl-navy);background:transparent;color:var(--sl-navy)}
html body .hero .button:hover{border-color:var(--sl-navy);box-shadow:inset 0 -2px 0 var(--sl-navy)}
html body .hero :is(.hero-actions,.hero-inner > div > p:has(> .button)) .button:last-child:not(:first-child){background:var(--sl-navy);border-color:var(--sl-navy);color:#fff}
html body .hero :is(.hero-actions,.hero-inner > div > p:has(> .button)) .button:last-child:not(:first-child):hover{background:var(--sl-navy-deep);box-shadow:inset 0 0 0 1px var(--sl-warm-line)}
html body main .section .cta .button,html body main .bb-fit-block .bb-fit-actions a{border:1px solid var(--sl-warm-line);background:transparent;color:#fff}
html body main .section .cta .button:hover,html body main .bb-fit-block .bb-fit-actions a:hover{background:var(--sl-warm);border-color:var(--sl-warm);color:var(--sl-ink)!important}
html body :is(a,button):focus-visible{outline:2px solid var(--sl-accent-ink);outline-offset:3px}
html body :is(.topbar,.footer,.cta,.bb-fit-block,.bb-mobile-actionbar) :is(a,button):focus-visible{outline-color:var(--sl-warm)}

/* Mobile action bar: brand colours instead of default blue */
html body .bb-mobile-actionbar a{display:flex;align-items:center;justify-content:center;min-height:48px;letter-spacing:.14em}
html body .bb-mobile-actionbar a:last-child{background:var(--sl-warm);color:var(--sl-navy)}

@media (max-width:800px){
  html body main .section .cta{padding:28px 22px}
  html body .button{white-space:normal;text-align:center}
  html body .footer .footer-inner{align-items:flex-start;gap:4px}
}
@media (prefers-reduced-motion:reduce){
  html body :is(a,button,.button,.card),html body :is(a,button,.button,.card)::after{transition:none!important;animation:none!important}
}
