/* ============ RESET & BASE ============ */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}
html{scroll-behavior:smooth;}
:root{
  --ink:#15200F; --ink-rgb:21,32,15;
  --ink-soft:#3F4A39; --ink-soft-rgb:63,74,57;
  --paper:#EFEBE0; --paper-rgb:239,235,224;
  --paper-dim:#E4DECC; --paper-dim-rgb:228,222,204;
  --paper-deep:#DAD3BC; --paper-deep-rgb:218,211,188;
  --pine:#234C20; --pine-rgb:35,76,32;
  --pine-deep:#14300F; --pine-deep-rgb:20,48,15;
  --pine-mid:#2F6329; --pine-mid-rgb:47,99,41;
  --pine-light:#548C4A; --pine-light-rgb:84,140,74;
  --alarm:#E8650A; --alarm-rgb:232,101,10;
  --alarm-btn:#BC4E05; --alarm-btn-rgb:188,78,5;
  --alarm-dark:#A34503; --alarm-dark-rgb:163,69,3;
  --alarm-light:#F59545; --alarm-light-rgb:245,149,69;
  --brass:#7A561F; --brass-rgb:122,86,31;
  --brass-light:#DCB878; --brass-light-rgb:220,184,120;
  --white:#FBF9F2; --white-rgb:251,249,242;
  --fs-base:16px; --fs-h1:60px; --fs-h2:42px; --lh:1.6;
  --wrap-max:1320px; --wrap-pad:24px;
  --section-pad:96px; --section-pad-sm:64px;
  --card-radius:18px; --btn-radius:999px;
  --logo-h:48px; --logo-h-scroll:38px; --logo-h-mobile:36px;
  --line:rgba(var(--ink-rgb),0.15);
  --line-strong:rgba(var(--ink-rgb),0.28);
  --shadow-soft:0 8px 30px rgba(var(--pine-deep-rgb),0.10);
  --shadow-med:0 16px 44px rgba(var(--pine-deep-rgb),0.16);
  --font-display:'Outfit', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body:'Outfit', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:'Outfit', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}
html,body{background:var(--paper);color:var(--ink);}
body{
  font-family:var(--font-body);
  font-size:var(--fs-base);
  line-height:var(--lh);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}
ul{list-style:none;}
button{font:inherit;background:none;border:none;cursor:pointer;color:inherit;}
input,select,textarea{font:inherit;color:inherit;}
h1,h2,h3,h4{font-family:var(--font-display);font-weight:600;line-height:1.1;letter-spacing:-0.01em;}
section{position:relative;}
.icon{width:1em;height:1em;stroke:currentColor;fill:none;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;display:inline-block;vertical-align:-0.14em;}
::selection{background:var(--alarm);color:var(--white);}
:focus-visible{outline:3px solid var(--alarm);outline-offset:3px;border-radius:2px;}

.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
.sprite{display:none;}
.icon-flip{transform:rotate(180deg);}

@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{animation-duration:0.001ms !important;animation-iteration-count:1 !important;transition-duration:0.001ms !important;scroll-behavior:auto !important;}
}

/* ============ LAYOUT UTILITIES ============ */
.wrap{max-width:var(--wrap-max);margin-inline:auto;padding-inline:var(--wrap-pad);}
.section-pad{padding-block:var(--section-pad);}
@media (max-width:768px){.section-pad{padding-block:var(--section-pad-sm);}}

.eyebrow{
  font-family:var(--font-mono);
  font-size:12.5px;
  font-weight:600;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:var(--alarm-dark);
  display:inline-block;
}
.eyebrow.on-dark{color:var(--brass-light);}

.section-head{max-width:640px;margin-bottom:52px;}
.section-head h2{font-size:clamp(28px,4vw,var(--fs-h2));margin-top:14px;color:var(--pine-deep);}
.section-head p{margin-top:16px;font-size:17px;color:var(--ink-soft);max-width:56ch;}
.section-head.center{margin-inline:auto;text-align:center;}
.section-head.center p{margin-inline:auto;}
.section-head.on-dark h2{color:var(--white);}
.section-head.on-dark p{color:rgba(var(--white-rgb),0.72);}

/* Reveal-on-scroll */
.reveal{opacity:0;transform:translateY(28px);transition:opacity .8s cubic-bezier(.2,.6,.2,1), transform .8s cubic-bezier(.2,.6,.2,1);}
.reveal.is-visible{opacity:1;transform:translateY(0);}
.reveal-stagger > *{opacity:0;transform:translateY(24px);transition:opacity .7s ease, transform .7s ease;}
.reveal-stagger.is-visible > *{opacity:1;transform:translateY(0);}
.reveal-stagger.is-visible > *:nth-child(1){transition-delay:.02s;}
.reveal-stagger.is-visible > *:nth-child(2){transition-delay:.10s;}
.reveal-stagger.is-visible > *:nth-child(3){transition-delay:.18s;}
.reveal-stagger.is-visible > *:nth-child(4){transition-delay:.26s;}
.reveal-stagger.is-visible > *:nth-child(5){transition-delay:.34s;}
.reveal-stagger.is-visible > *:nth-child(6){transition-delay:.42s;}
.reveal-stagger.is-visible > *:nth-child(7){transition-delay:.50s;}
.reveal-stagger.is-visible > *:nth-child(8){transition-delay:.58s;}
.reveal-stagger.is-visible > *:nth-child(9){transition-delay:.64s;}
.reveal-stagger.is-visible > *:nth-child(10){transition-delay:.70s;}
.reveal-stagger.is-visible > *:nth-child(11){transition-delay:.76s;}

/* ============ BUTTONS ============ */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  padding:15px 28px;border-radius:var(--btn-radius);font-weight:700;font-size:15.5px;
  transition:transform .25s ease, box-shadow .25s ease, background .25s ease;
  white-space:nowrap;
}
.btn .icon{font-size:18px;}
.btn-alarm{background:var(--alarm-btn);color:var(--white);box-shadow:0 10px 26px rgba(var(--alarm-rgb),0.38);}
.btn-alarm:hover{background:var(--alarm-dark);transform:translateY(-2px);box-shadow:0 14px 32px rgba(var(--alarm-rgb),0.46);}
.btn-outline{background:transparent;border:1.5px solid var(--line-strong);color:var(--pine-deep);}
.btn-outline:hover{border-color:var(--pine-deep);background:rgba(var(--pine-rgb),0.06);}
.btn-outline.on-dark{border-color:rgba(var(--white-rgb),0.4);color:var(--white);}
.btn-outline.on-dark:hover{border-color:var(--white);background:rgba(var(--white-rgb),0.08);}
.btn-pine{background:var(--pine-deep);color:var(--white);}
.btn-pine:hover{background:var(--pine);transform:translateY(-2px);}
.btn-block{width:100%;}
.btn-header-call{padding:12px 20px;}
.btn-pulse{position:relative;}
.btn-pulse::after{
  content:'';position:absolute;inset:0;border-radius:var(--btn-radius);border:2px solid var(--alarm);
  animation:pulseRing 2.2s cubic-bezier(.4,0,.3,1) infinite;
}
@keyframes pulseRing{0%{opacity:.7;transform:scale(1);}100%{opacity:0;transform:scale(1.35);}}

/* ============ TOP ALERT BAR ============ */
.alert-bar{
  background:var(--pine-deep);color:var(--white);
  font-family:var(--font-mono);font-size:12.5px;font-weight:500;letter-spacing:0.03em;
  padding:9px 0;position:relative;overflow:hidden;z-index:200;
}
.alert-bar .wrap{display:flex;align-items:center;justify-content:center;gap:10px;text-align:center;flex-wrap:wrap;}
.alert-bar strong{color:var(--brass-light);font-weight:600;}
.alert-dot{width:7px;height:7px;border-radius:50%;background:var(--alarm-light);animation:dotBlink 1.6s ease-in-out infinite;flex:none;}
@keyframes dotBlink{0%,100%{opacity:1;}50%{opacity:.25;}}

/* ============ HEADER ============ */
header{
  position:sticky;top:0;z-index:190;
  background:rgba(var(--paper-rgb),0.86);backdrop-filter:blur(14px) saturate(1.4);
  border-bottom:1px solid var(--line);
  transition:padding .3s ease, box-shadow .3s ease;
}
header.scrolled{box-shadow:0 6px 24px rgba(var(--pine-deep-rgb),0.08);}
.nav-inner{display:flex;align-items:center;justify-content:space-between;padding-block:20px;transition:padding .3s ease;}
header.scrolled .nav-inner{padding-block:12px;}
.brand{display:flex;align-items:center;gap:12px;font-family:var(--font-display);font-weight:600;font-size:21px;color:var(--pine-deep);}
.brand-img{height:var(--logo-h);width:auto;transition:height .3s ease;}
header.scrolled .brand-img{height:var(--logo-h-scroll);}
.brand-img-sm{height:var(--logo-h-scroll);}
/* On dark surfaces the logo needs a light plaque to stay legible */
.brand-img-plaque{background:var(--white);border-radius:12px;padding:8px 12px;}
@media (max-width:600px){.brand-img{height:var(--logo-h-mobile);}header.scrolled .brand-img{height:var(--logo-h-mobile);}.brand-img-sm{height:var(--logo-h-mobile);}}

.main-nav{display:flex;align-items:center;gap:2px;}
.main-nav a{
  font-size:14.5px;font-weight:600;color:var(--ink-soft);padding:10px 15px;border-radius:8px;
  transition:color .2s ease, background .2s ease;position:relative;
}
.main-nav a:hover{color:var(--pine-deep);background:rgba(var(--pine-rgb),0.06);}

.header-actions{display:flex;align-items:center;gap:14px;}
.header-phone{display:flex;align-items:center;gap:9px;font-family:var(--font-mono);font-weight:600;font-size:15px;color:var(--pine-deep);}
.header-phone .icon{color:var(--alarm-dark);font-size:19px;}

.nav-toggle{display:none;width:44px;height:44px;align-items:center;justify-content:center;border-radius:10px;color:var(--pine-deep);flex:none;}
.nav-toggle .icon{font-size:24px;}

/* Mobile nav panel */
.mobile-panel{
  display:none;position:fixed;inset:0;z-index:250;background:var(--pine-deep);color:var(--white);
  padding:28px 24px;flex-direction:column;gap:6px;overflow-y:auto;
}
.mobile-panel.open{display:flex;}
.mobile-panel-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;}
.mobile-panel .nav-toggle{color:var(--white);background:transparent;border-color:rgba(var(--white-rgb),0.3);}
.mobile-panel a.mobile-link{
  font-family:var(--font-display);font-size:24px;padding:14px 4px;border-bottom:1px solid rgba(var(--white-rgb),0.12);
}
.mobile-panel .btn{margin-top:20px;}

@media (max-width:920px){
  .main-nav{display:none;}
  .header-phone span.txt{display:none;}
  .nav-toggle{display:flex;}
}
@media (max-width:480px){
  .header-phone{display:none;}
}

/* ============ HERO ============ */
.hero{
  background:
    radial-gradient(ellipse 900px 500px at 85% -10%, rgba(var(--pine-light-rgb),0.28), transparent),
    linear-gradient(180deg, var(--paper) 0%, var(--paper) 100%);
  padding-top:min(96px,8vw);padding-bottom:70px;overflow:hidden;
}
.hero-grid{display:grid;grid-template-columns:1.05fr 0.95fr;gap:56px;align-items:center;}
.hero-badges{display:flex;flex-wrap:wrap;gap:10px;margin-top:28px;}
.hero-badge{
  display:flex;align-items:center;gap:8px;background:var(--white);border:1px solid var(--line);
  padding:9px 14px;border-radius:999px;font-size:12.5px;font-weight:600;color:var(--pine-deep);
}
.hero-badge .icon{color:var(--brass);font-size:15px;}
.hero h1{font-size:clamp(36px,5.4vw,var(--fs-h1));color:var(--pine-deep);margin-top:18px;}
.hero h1 em{font-style:normal;color:var(--alarm-dark);position:relative;}
.hero-sub{margin-top:22px;font-size:18px;color:var(--ink-soft);max-width:52ch;}
.hero-ctas{display:flex;gap:14px;margin-top:34px;flex-wrap:wrap;}
.hero-trust{display:flex;gap:26px;margin-top:40px;flex-wrap:wrap;}
.hero-trust div{display:flex;flex-direction:column;}
.hero-trust strong{font-family:var(--font-display);font-size:26px;color:var(--pine-deep);}
.hero-trust span{font-size:12px;color:var(--ink-soft);font-weight:600;letter-spacing:0.02em;}

/* Hero visual: specimen showcase card with real photo */
.hero-visual{position:relative;display:flex;justify-content:center;}
.spec-hero-card{
  width:min(400px,100%);background:var(--white);border:1px solid var(--line);border-radius:calc(var(--card-radius) + 4px);
  box-shadow:var(--shadow-med);padding:22px;position:relative;transform:rotate(-1.5deg);
  animation:floatCard 6s ease-in-out infinite;
}
@keyframes floatCard{0%,100%{transform:rotate(-1.5deg) translateY(0);}50%{transform:rotate(-1.5deg) translateY(-12px);}}
.spec-hero-top{display:flex;justify-content:space-between;align-items:flex-start;padding:0 8px;}
.spec-code{font-family:var(--font-mono);font-size:11.5px;font-weight:700;letter-spacing:0.08em;color:var(--brass);background:rgba(var(--brass-rgb),0.12);padding:4px 10px;border-radius:6px;}
.spec-tag{font-family:var(--font-mono);font-size:10.5px;font-weight:700;letter-spacing:0.06em;color:var(--alarm-dark);background:rgba(var(--alarm-rgb),0.12);padding:4px 9px;border-radius:6px;text-transform:uppercase;}
.spec-hero-photo{
  width:100%;aspect-ratio:4/3;margin-block:16px;border-radius:calc(var(--card-radius) - 2px);overflow:hidden;background:var(--paper-dim);
}
.spec-hero-photo img{width:100%;height:100%;object-fit:cover;}
.spec-hero-name{font-family:var(--font-display);font-size:23px;color:var(--pine-deep);padding:0 8px;}
.spec-hero-name small{display:block;font-family:var(--font-mono);font-size:11px;color:var(--ink-soft);font-weight:500;margin-top:3px;letter-spacing:0.03em;}
.spec-hero-fact{font-size:13.5px;color:var(--ink-soft);margin-top:12px;line-height:1.5;padding:0 8px;}
.spec-hero-foot{display:flex;align-items:center;justify-content:space-between;margin-top:18px;padding:16px 8px 0;border-top:1px dashed var(--line-strong);}
.spec-hero-call{display:flex;align-items:center;gap:7px;font-family:var(--font-mono);font-weight:600;font-size:12.5px;color:var(--pine-deep);}
.spec-hero-call .icon{color:var(--alarm-dark);}
.icon-brass{color:var(--brass);}

.floaty{position:absolute;border-radius:50%;background:var(--brass-light);opacity:.35;filter:blur(1px);}
.f1{width:16px;height:16px;top:8%;left:4%;animation:drift1 9s ease-in-out infinite;}
.f2{width:10px;height:10px;bottom:14%;right:2%;background:var(--alarm-light);animation:drift2 7s ease-in-out infinite;}
.f3{width:8px;height:8px;top:48%;right:10%;animation:drift1 11s ease-in-out infinite;}
@keyframes drift1{0%,100%{transform:translateY(0) translateX(0);}50%{transform:translateY(-18px) translateX(8px);}}
@keyframes drift2{0%,100%{transform:translateY(0);}50%{transform:translateY(16px);}}

@media (max-width:980px){
  .hero-grid{grid-template-columns:1fr;}
  .hero-visual{order:-1;margin-bottom:8px;}
  .spec-hero-card{transform:none;animation:none;width:min(340px,80vw);}
}
@media (max-width:560px){
  .hero-ctas{flex-direction:column;align-items:stretch;}
  .hero-trust{gap:20px;}
}

/* ============ REASONS (4 Gründe) ============ */
.reasons-sec{background:var(--white);border-block:1px solid var(--line);}
.reasons-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:var(--line);border:1px solid var(--line);border-radius:var(--card-radius);overflow:hidden;}
.reason-card{background:var(--white);padding:34px 26px;transition:background .3s ease;}
.reason-card:hover{background:var(--paper);}
.reason-num{font-family:var(--font-mono);font-size:12px;color:var(--brass);font-weight:700;letter-spacing:0.08em;}
.reason-icon{
  width:52px;height:52px;border-radius:13px;background:var(--pine-deep);color:var(--brass-light);
  display:flex;align-items:center;justify-content:center;margin-block:16px 18px;
}
.reason-icon .icon{font-size:24px;}
.reason-card h3{font-size:18px;color:var(--pine-deep);margin-bottom:9px;}
.reason-card p{font-size:14.5px;color:var(--ink-soft);}
@media (max-width:920px){.reasons-grid{grid-template-columns:repeat(2,1fr);}}
@media (max-width:560px){.reasons-grid{grid-template-columns:1fr;}}

/* ============ STATS STRIP ============ */
.stats-sec{background:var(--pine-deep);color:var(--white);padding-block:56px;position:relative;overflow:hidden;}
.stats-sec::before{
  content:'';position:absolute;inset:0;opacity:.5;
  background:radial-gradient(circle at 15% 20%, rgba(var(--pine-light-rgb),0.5), transparent 45%),
             radial-gradient(circle at 85% 80%, rgba(var(--brass-rgb),0.35), transparent 45%);
}
.stats-grid{position:relative;display:grid;grid-template-columns:repeat(4,1fr);gap:20px;text-align:center;}
.stat-item strong{display:block;font-family:var(--font-display);font-size:clamp(30px,4vw,44px);color:var(--brass-light);}
.stat-item span{font-size:13px;color:rgba(var(--white-rgb),0.72);font-weight:600;letter-spacing:0.02em;}
@media (max-width:768px){.stats-grid{grid-template-columns:repeat(2,1fr);row-gap:34px;}}

/* ============ SERVICES / SPECIMEN CARDS ============ */
.services-sec{background:var(--paper);}
.spec-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;}
.spec-card{
  background:var(--white);border:1px solid var(--line);border-radius:var(--card-radius);overflow:hidden;
  transition:transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s ease, border-color .35s ease;
  position:relative;display:flex;flex-direction:column;
}
.spec-card:hover{transform:translateY(-6px);box-shadow:var(--shadow-med);border-color:var(--pine-light);}
.spec-card-media{aspect-ratio:16/10;overflow:hidden;background:var(--paper-dim);}
.spec-card-media img{width:100%;height:100%;object-fit:cover;transition:transform .5s cubic-bezier(.2,.7,.3,1);}
.spec-card:hover .spec-card-media img{transform:scale(1.06);}
.spec-card-body{padding:22px 26px 26px;flex:1;display:flex;flex-direction:column;}
.spec-card-top{display:flex;justify-content:flex-end;margin-bottom:10px;}
.spec-card h3{font-size:19px;color:var(--pine-deep);margin-bottom:9px;}
.spec-card p{font-size:14px;color:var(--ink-soft);margin-bottom:18px;min-height:44px;}
.spec-mini-badges{display:flex;flex-wrap:wrap;gap:7px;padding-top:16px;border-top:1px dashed var(--line-strong);margin-top:auto;}
.spec-mini-badge{font-size:10.5px;font-weight:700;letter-spacing:0.03em;color:var(--brass);background:rgba(var(--brass-rgb),0.1);padding:5px 9px;border-radius:6px;}
.services-more{
  margin-top:40px;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:20px;
  background:var(--pine-deep);color:var(--white);border-radius:var(--card-radius);padding:30px 34px;
}
.services-more p{font-size:15px;color:rgba(var(--white-rgb),0.78);max-width:44ch;}
.services-more h3{font-family:var(--font-display);font-size:22px;margin-bottom:8px;}
@media (max-width:980px){.spec-grid{grid-template-columns:repeat(2,1fr);}}


/* ============ PROCESS TIMELINE ============ */
.process-sec{background:var(--white);border-block:1px solid var(--line);}
.timeline{position:relative;max-width:820px;margin-inline:auto;}
.timeline::before{
  content:'';position:absolute;left:29px;top:10px;bottom:10px;width:2px;
  background:repeating-linear-gradient(to bottom, var(--line-strong) 0 8px, transparent 8px 16px);
}
.timeline-item{display:flex;gap:26px;padding-block:22px;position:relative;}
.timeline-num{
  flex:none;width:60px;height:60px;border-radius:50%;background:var(--paper);border:2px solid var(--pine-deep);
  color:var(--pine-deep);display:flex;align-items:center;justify-content:center;font-family:var(--font-mono);
  font-weight:700;font-size:17px;z-index:2;transition:background .3s ease,color .3s ease;
}
.timeline-item.active .timeline-num{background:var(--pine-deep);color:var(--brass-light);}
.timeline-body h3{font-size:19.5px;color:var(--pine-deep);margin-bottom:8px;padding-top:8px;}
.timeline-body p{font-size:14.5px;color:var(--ink-soft);max-width:52ch;}

/* ============ TEAM ============ */
.team-sec{background:var(--paper);}
.team-photo{aspect-ratio:21/9;border-radius:calc(var(--card-radius) + 2px);overflow:hidden;margin-bottom:40px;position:relative;background:var(--paper-dim);}
.team-photo img{width:100%;height:100%;object-fit:cover;}
.team-photo-caption{
  position:absolute;left:0;right:0;bottom:0;padding:22px 28px;
  background:linear-gradient(0deg, rgba(var(--pine-deep-rgb),0.82), transparent);
  color:var(--white);font-size:14px;font-weight:600;
}
.team-grid{display:grid;grid-template-columns:1fr 1fr;gap:26px;}
.team-card{background:var(--white);border:1px solid var(--line);border-radius:calc(var(--card-radius) + 2px);padding:32px;display:flex;gap:22px;align-items:flex-start;}
.team-avatar{
  flex:none;width:88px;height:88px;border-radius:50%;background:var(--pine-deep);color:var(--brass-light);
  display:flex;align-items:center;justify-content:center;font-family:var(--font-display);font-size:28px;font-weight:600;
  position:relative;
}
.team-avatar::after{content:'';position:absolute;inset:-5px;border:1.5px solid var(--brass-light);border-radius:50%;opacity:.5;}
.team-card h3{font-size:20px;color:var(--pine-deep);margin-bottom:4px;}
.team-role{font-family:var(--font-mono);font-size:11.5px;color:var(--brass);font-weight:700;letter-spacing:0.04em;text-transform:uppercase;margin-bottom:12px;display:block;}
.team-card p{font-size:14px;color:var(--ink-soft);}
.team-quote{margin-top:44px;background:var(--pine-deep);color:var(--white);border-radius:calc(var(--card-radius) + 2px);padding:38px 42px;position:relative;}
.team-quote::before{content:'\201C';position:absolute;top:6px;left:26px;font-family:var(--font-display);font-size:80px;color:rgba(var(--brass-light-rgb),0.35);line-height:1;}
.team-quote p{font-family:var(--font-display);font-size:clamp(19px,2.4vw,24px);font-style:italic;color:rgba(var(--white-rgb),0.94);max-width:70ch;position:relative;z-index:1;}
.team-quote footer{margin-top:18px;font-family:var(--font-mono);font-size:12.5px;color:var(--brass-light);font-weight:600;}
@media (max-width:820px){.team-grid{grid-template-columns:1fr;}.team-card{flex-direction:column;}}

/* ============ CERTIFICATIONS ============ */
.cert-sec{background:var(--white);border-block:1px solid var(--line);}
.cert-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:18px;}
.cert-stamp{
  text-align:center;padding:26px 14px;border:1.5px dashed var(--line-strong);border-radius:calc(var(--card-radius) - 2px);
  transition:transform .4s cubic-bezier(.2,.8,.3,1), border-color .3s ease;
}
.cert-stamp:hover{transform:rotate(-3deg) scale(1.04);border-color:var(--brass);}
.cert-ring{
  width:70px;height:70px;border-radius:50%;border:2.5px solid var(--brass);margin-inline:auto 12px;
  display:flex;align-items:center;justify-content:center;color:var(--brass);position:relative;
}
.cert-ring::before{content:'';position:absolute;inset:6px;border:1px dotted var(--brass);border-radius:50%;}
.cert-ring .icon{font-size:26px;}
.cert-stamp h4{font-size:13.5px;color:var(--pine-deep);margin-bottom:5px;line-height:1.3;}
.cert-stamp span{font-family:var(--font-mono);font-size:10.5px;color:var(--ink-soft);font-weight:600;}
@media (max-width:920px){.cert-grid{grid-template-columns:repeat(3,1fr);row-gap:24px;}}
@media (max-width:560px){.cert-grid{grid-template-columns:repeat(2,1fr);}}

/* ============ TESTIMONIALS ============ */
.testi-sec{background:var(--paper);}
.testi-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;}
.testi-card{background:var(--white);border:1px solid var(--line);border-radius:var(--card-radius);padding:28px;display:flex;flex-direction:column;gap:16px;}
.testi-stars{display:flex;gap:3px;color:var(--brass);}
.testi-stars .icon{font-size:16px;fill:currentColor;}
.testi-card p{font-size:15px;color:var(--ink);font-style:italic;flex:1;}
.testi-who{display:flex;align-items:center;gap:12px;padding-top:14px;border-top:1px solid var(--line);}
.testi-avatar{width:38px;height:38px;border-radius:50%;background:var(--paper-dim);color:var(--pine-deep);display:flex;align-items:center;justify-content:center;font-family:var(--font-mono);font-weight:700;font-size:13px;flex:none;}
.testi-who strong{font-size:13.5px;color:var(--pine-deep);display:block;}
.testi-who span{font-size:11.5px;color:var(--ink-soft);}
@media (max-width:920px){.testi-grid{grid-template-columns:1fr 1fr;}}
@media (max-width:620px){.testi-grid{grid-template-columns:1fr;}}

/* ============ LEXICON ============ */
.lex-sec{background:var(--white);border-block:1px solid var(--line);}
.lex-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:30px;flex-wrap:wrap;}
.lex-search{
  display:flex;align-items:center;gap:10px;background:var(--paper);border:1px solid var(--line);
  border-radius:12px;padding:12px 16px;min-width:260px;flex:1;max-width:380px;
}
.lex-search .icon{color:var(--ink-soft);font-size:17px;}
.lex-search input{background:none;border:none;width:100%;font-size:14.5px;color:var(--ink);}
.lex-search input:focus{outline:none;}
.lex-count{font-family:var(--font-mono);font-size:12.5px;color:var(--ink-soft);font-weight:600;}
.lex-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;}
.lex-card{
  background:var(--paper);border:1px solid var(--line);border-radius:calc(var(--card-radius) - 4px);cursor:pointer;
  transition:transform .3s ease, box-shadow .3s ease, background .3s ease; position:relative; overflow:hidden;
  display:flex; flex-direction:column;
}
.lex-card:hover{background:var(--white);box-shadow:var(--shadow-soft);transform:translateY(-4px);}
.lex-card-media{aspect-ratio:4/3;overflow:hidden;background:var(--paper-dim);}
.lex-card-media img{width:100%;height:100%;object-fit:cover;}
.lex-card-body{padding:16px 18px 18px;flex:1;display:flex;flex-direction:column;}
.lex-card-code{font-family:var(--font-mono);font-size:10px;color:var(--brass);font-weight:700;letter-spacing:.05em;}
.lex-card h4{font-size:15px;color:var(--pine-deep);margin:6px 0 6px;}
.lex-card-fact{font-size:12px;color:var(--ink-soft);line-height:1.45;}
.lex-card-tag{
  align-self:flex-start;margin-top:10px;font-size:9.5px;font-weight:700;letter-spacing:.03em;text-transform:uppercase;
  padding:4px 8px;border-radius:5px;background:rgba(var(--alarm-rgb),0.1);color:var(--alarm-dark);
}
.lex-card-more{opacity:0;max-height:0;overflow:hidden;transition:opacity .3s ease, max-height .3s ease, margin .3s ease;}
.lex-card-more p{font-size:11.5px;color:var(--ink-soft);}
.lex-card.open .lex-card-more{opacity:1;max-height:120px;margin-top:10px;}
.lex-card-call{display:inline-flex;align-items:center;gap:6px;font-family:var(--font-mono);font-size:11px;font-weight:700;color:var(--pine-deep);margin-top:8px;}
.lex-card-call .icon{color:var(--alarm-dark);font-size:13px;}
.lex-hidden-group{display:none;}
.lex-hidden-group.shown{display:contents;}
.lex-cta-row{display:flex;justify-content:center;margin-top:36px;}
@media (max-width:980px){.lex-grid{grid-template-columns:repeat(3,1fr);}}
@media (max-width:700px){.lex-grid{grid-template-columns:repeat(2,1fr);}}
@media (max-width:460px){.lex-grid{grid-template-columns:1fr 1fr;} .lex-toolbar{flex-direction:column;align-items:stretch;} .lex-search{max-width:none;}}

/* ============ FAQ ============ */
.faq-sec{background:var(--paper);}
.faq-list{max-width:820px;margin-inline:auto;}
.faq-item{border-bottom:1px solid var(--line-strong);}
.faq-q{
  width:100%;display:flex;align-items:center;justify-content:space-between;gap:20px;
  padding:24px 4px;text-align:left;font-family:var(--font-display);font-size:18px;color:var(--pine-deep);font-weight:600;
}
.faq-q .icon{flex:none;font-size:20px;color:var(--brass);transition:transform .35s ease;}
.faq-item.open .faq-q .icon{transform:rotate(45deg);}
.faq-a{max-height:0;overflow:hidden;transition:max-height .4s ease, padding .4s ease;}
.faq-item.open .faq-a{max-height:220px;padding-bottom:22px;}
.faq-a p{font-size:15px;color:var(--ink-soft);max-width:66ch;}

/* ============ CONTACT ============ */
.contact-sec{background:var(--pine-deep);color:var(--white);position:relative;overflow:hidden;}
.contact-sec::before{
  content:'';position:absolute;inset:0;
  background:radial-gradient(ellipse 700px 400px at 90% 10%, rgba(var(--brass-rgb),0.22), transparent),
             radial-gradient(ellipse 700px 500px at 5% 90%, rgba(var(--pine-light-rgb),0.3), transparent);
}
.contact-grid{position:relative;display:grid;grid-template-columns:1.2fr 0.8fr;gap:40px;align-items:start;}
.contact-form-card{background:var(--white);color:var(--ink);border-radius:calc(var(--card-radius) + 4px);padding:38px;box-shadow:var(--shadow-med);}
.contact-form-card h3{font-size:23px;color:var(--pine-deep);margin-bottom:6px;}
.contact-form-card > p{font-size:14px;color:var(--ink-soft);margin-bottom:26px;}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:14px;}
.form-field{display:flex;flex-direction:column;gap:6px;}
.form-field.full{grid-column:1/-1;margin-bottom:14px;}
.form-field label{font-size:12px;font-weight:700;color:var(--pine-deep);letter-spacing:0.02em;}
.form-field input,.form-field select,.form-field textarea{
  border:1.5px solid var(--line-strong);border-radius:10px;padding:12px 14px;font-size:14.5px;background:var(--paper);
  transition:border-color .2s ease, background .2s ease;
}
.form-field input:focus,.form-field select:focus,.form-field textarea:focus{outline:none;border-color:var(--pine-light);background:var(--white);}
.form-field textarea{resize:vertical;min-height:96px;}
.form-consent{display:flex;align-items:flex-start;gap:9px;font-size:12px;color:var(--ink-soft);margin:16px 0 20px;}
.form-consent input{margin-top:3px;flex:none;}
.form-error{
  display:none;align-items:center;gap:10px;background:rgba(var(--alarm-rgb),0.1);border:1px solid rgba(var(--alarm-rgb),0.3);
  color:var(--alarm-dark);border-radius:10px;padding:12px 16px;font-size:13.5px;font-weight:600;margin-bottom:16px;
}
.form-error.show{display:flex;}
.form-success{
  display:none;text-align:center;padding:40px 20px;
}
.form-success.show{display:block;}
.form-success .icon{width:56px;height:56px;color:var(--pine-deep);background:var(--paper-dim);border-radius:50%;padding:14px;margin-inline:auto 16px;stroke-width:2;}
.form-success h4{font-size:20px;color:var(--pine-deep);margin-bottom:8px;}
.form-success p{font-size:14px;color:var(--ink-soft);}
.form-success .btn{margin-top:16px;}
.contact-form-fields.hide{display:none;}
.btn[disabled]{opacity:.6;cursor:not-allowed;}

.contact-info-card{background:rgba(var(--white-rgb),0.06);border:1px solid rgba(var(--white-rgb),0.16);border-radius:calc(var(--card-radius) + 4px);padding:32px;backdrop-filter:blur(6px);}
.cinfo-name{font-size:13px;color:rgba(var(--white-rgb),0.6);}
.cinfo-phone{display:block;font-family:var(--font-display);font-size:30px;color:var(--brass-light);margin:10px 0 4px;}
.cinfo-row{display:flex;gap:14px;padding-block:16px;border-top:1px solid rgba(var(--white-rgb),0.14);}
.cinfo-row:first-of-type{border-top:none;padding-top:0;}
.cinfo-row .icon{flex:none;width:38px;height:38px;background:rgba(var(--brass-light-rgb),0.16);color:var(--brass-light);border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:18px;}
.cinfo-row div strong{display:block;font-size:14px;margin-bottom:3px;}
.cinfo-row div span,.cinfo-row div p{font-size:13.5px;color:rgba(var(--white-rgb),0.72);line-height:1.5;}
.cinfo-badge{
  margin-top:22px;display:flex;align-items:center;gap:10px;background:rgba(var(--alarm-rgb),0.18);border:1px solid rgba(var(--alarm-light-rgb),0.4);
  border-radius:12px;padding:14px 16px;font-size:13px;font-weight:600;color:var(--alarm-light);
}
@media (max-width:920px){.contact-grid{grid-template-columns:1fr;}.form-row{grid-template-columns:1fr;}}

/* ============ FOOTER ============ */
footer{background:var(--ink);color:rgba(var(--white-rgb),0.7);padding-block:56px 28px;}
.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:36px;padding-bottom:40px;border-bottom:1px solid rgba(var(--white-rgb),0.1);}
.footer-brand .brand{color:var(--white);margin-bottom:14px;}
.footer-brand p{font-size:13.5px;max-width:34ch;line-height:1.6;}
.footer-col h5,.footer-col-title{font-family:var(--font-mono);font-size:12px;letter-spacing:0.08em;text-transform:uppercase;color:var(--brass-light);margin-bottom:16px;}
.footer-col a,.footer-col span{display:block;font-size:14px;margin-bottom:11px;color:rgba(var(--white-rgb),0.72);transition:color .2s ease;}
.footer-col a:hover{color:var(--white);}
.footer-bottom{display:flex;justify-content:space-between;align-items:center;padding-top:24px;flex-wrap:wrap;gap:12px;font-size:12.5px;}
.footer-certs{display:flex;gap:14px;}
.footer-certs .icon{font-size:20px;color:rgba(var(--white-rgb),0.6);}
@media (max-width:820px){.footer-grid{grid-template-columns:1fr 1fr;}}
@media (max-width:520px){.footer-grid{grid-template-columns:1fr;}}

/* ============ FLOATING MOBILE CALL BAR ============ */
.mobile-call-bar{
  display:none;position:fixed;bottom:0;left:0;right:0;z-index:180;
  background:var(--pine-deep);padding:12px 16px;box-shadow:0 -8px 24px rgba(0,0,0,0.18);
}
.mobile-call-bar a{display:flex;align-items:center;justify-content:center;gap:10px;color:var(--white);font-weight:700;font-size:15.5px;background:var(--alarm-btn);padding:14px;border-radius:12px;}
.mobile-call-bar .icon{font-size:19px;}
@media (max-width:760px){
  .mobile-call-bar{display:block;}
  body{padding-bottom:70px;}
}

/* scroll-margin for anchor offset */
section[id]{scroll-margin-top:88px;}

/* ============ WORDPRESS NAVIGATION MENUS ============ */
.main-nav ul,.mobile-nav-list{list-style:none;margin:0;padding:0;display:flex;align-items:center;gap:2px;}
.mobile-nav-list{flex-direction:column;align-items:stretch;gap:0;}
.main-nav li{position:relative;}
.main-nav .current-menu-item > a,.main-nav .current_page_item > a{color:var(--pine-deep);background:rgba(var(--pine-rgb),0.08);}
.main-nav .sub-menu{
  position:absolute;top:100%;left:0;min-width:230px;flex-direction:column;align-items:stretch;gap:0;
  background:var(--white);border:1px solid var(--line);border-radius:calc(var(--card-radius) - 4px);
  box-shadow:var(--shadow-soft);padding:8px;opacity:0;visibility:hidden;transform:translateY(6px);
  transition:opacity .18s ease, transform .18s ease, visibility .18s;z-index:60;
}
.main-nav li:hover > .sub-menu,.main-nav li:focus-within > .sub-menu{opacity:1;visibility:visible;transform:translateY(0);}
.mobile-nav-list a{
  display:block;font-family:var(--font-display);font-size:24px;padding:14px 4px;
  border-bottom:1px solid rgba(var(--white-rgb),0.12);
}
.mobile-nav-list .sub-menu{list-style:none;margin:0;padding:0 0 0 18px;}
.mobile-nav-list .sub-menu a{font-size:18px;opacity:.85;}

/* ============ CONTENT PAGES, ARCHIVES, SINGLE ============ */
.page-hero{background:var(--pine-deep);color:var(--white);padding-block:64px 56px;}
.page-hero h1{color:var(--white);font-size:clamp(28px,4.4vw,calc(var(--fs-h1) * 0.78));}
.page-hero p{margin-top:14px;color:rgba(var(--white-rgb),0.76);max-width:none;}
.breadcrumbs{font-family:var(--font-mono);font-size:12.5px;letter-spacing:.04em;margin-bottom:16px;color:rgba(var(--white-rgb),0.66);}
.breadcrumbs a{color:var(--brass-light);}
.breadcrumbs span[aria-current]{color:var(--white);}





.entry-content{font-size:17px;line-height:1.75;}
.entry-content > * + *{margin-top:1.15em;}
.entry-content h2{font-size:clamp(24px,3vw,32px);margin-top:1.8em;color:var(--pine-deep);}
.entry-content h3{font-size:clamp(20px,2.4vw,24px);margin-top:1.5em;color:var(--pine-deep);}
.entry-content a{color:var(--alarm-dark);text-decoration:underline;text-underline-offset:3px;}
.entry-content a:hover{color:var(--alarm-btn);}
.entry-content ul,.entry-content ol{padding-left:1.35em;}
.entry-content ul{list-style:disc;}
.entry-content ol{list-style:decimal;}
.entry-content li + li{margin-top:.4em;}
.entry-content blockquote{
  border-left:3px solid var(--alarm);padding:6px 0 6px 22px;font-family:var(--font-display);font-size:1.15em;
}
.entry-content img{border-radius:calc(var(--card-radius) - 4px);}
.entry-content table{width:100%;border-collapse:collapse;}
.entry-content th,.entry-content td{border:1px solid var(--line);padding:10px 12px;text-align:left;}
.entry-content pre{background:var(--pine-deep);color:var(--white);padding:18px;border-radius:calc(var(--card-radius) - 4px);overflow-x:auto;}
.entry-content code{font-family:var(--font-mono);font-size:.92em;}
.entry-meta{font-family:var(--font-mono);font-size:12.5px;color:var(--ink-soft);letter-spacing:.04em;margin-bottom:20px;}
.entry-thumb{margin-bottom:28px;border-radius:var(--card-radius);overflow:hidden;}
.entry-thumb img{width:100%;height:auto;}

.post-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:26px;}
.post-card{background:var(--white);border:1px solid var(--line);border-radius:var(--card-radius);overflow:hidden;display:flex;flex-direction:column;}
.post-card-media{aspect-ratio:16/10;overflow:hidden;background:var(--paper-dim);}
.post-card-media img{width:100%;height:100%;object-fit:cover;}
.post-card-body{padding:22px 24px 26px;display:flex;flex-direction:column;gap:10px;}
.post-card h2{font-size:20px;color:var(--pine-deep);}
.post-card p{font-size:14.5px;color:var(--ink-soft);}

.pagination{display:flex;gap:8px;flex-wrap:wrap;margin-top:48px;font-family:var(--font-mono);font-size:14px;}
.pagination .page-numbers{
  display:inline-flex;align-items:center;justify-content:center;min-width:42px;height:42px;padding:0 12px;
  border:1px solid var(--line);border-radius:10px;background:var(--white);
}
.pagination .page-numbers.current{background:var(--pine-deep);color:var(--white);border-color:var(--pine-deep);}

.widget{background:var(--white);border:1px solid var(--line);border-radius:var(--card-radius);padding:24px;}
.widget + .widget{margin-top:24px;}
.widget-title{font-size:17px;margin-bottom:14px;color:var(--pine-deep);}
.widget ul{display:flex;flex-direction:column;gap:9px;font-size:14.5px;}

.search-form{display:flex;gap:8px;}
.search-form input[type="search"]{
  flex:1;padding:12px 14px;border:1px solid var(--line-strong);border-radius:10px;background:var(--paper);
}

.comment-list{list-style:none;display:flex;flex-direction:column;gap:22px;margin-top:24px;}
.comment-list ol{list-style:none;padding-left:26px;margin-top:22px;display:flex;flex-direction:column;gap:22px;}
.comment-body{background:var(--white);border:1px solid var(--line);border-radius:calc(var(--card-radius) - 4px);padding:20px 22px;}
.comment-meta{font-family:var(--font-mono);font-size:12px;color:var(--ink-soft);margin-bottom:8px;}
.comment-respond{margin-top:40px;}
.comment-form p{margin-bottom:14px;}
.comment-form label{display:block;font-size:13px;font-weight:600;margin-bottom:6px;}
.comment-form input[type="text"],.comment-form input[type="email"],.comment-form input[type="url"],.comment-form textarea{
  width:100%;padding:12px 14px;border:1px solid var(--line-strong);border-radius:10px;background:var(--white);
}

.error-404{text-align:center;padding-block:100px;}
.error-404 .code{font-family:var(--font-mono);font-size:clamp(60px,14vw,140px);color:var(--paper-deep);line-height:1;}

/* ============ MAP WITH CONSENT ============ */
.map-consent{
  margin-top:20px;border-radius:calc(var(--card-radius) - 4px);overflow:hidden;
  background:rgba(var(--white-rgb),0.06);border:1px solid rgba(var(--white-rgb),0.16);
}
.map-consent button{
  width:100%;padding:26px 20px;color:var(--white);font-size:14px;font-weight:600;
  display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;
}
.map-consent small{font-weight:400;opacity:.72;font-size:12.5px;max-width:44ch;}
.map-consent iframe{display:block;width:100%;height:300px;border:0;}

/* ============ ADMIN NOTICE FOR EMPTY SECTIONS ============ */
.mks-empty{
  border:1.5px dashed var(--line-strong);border-radius:calc(var(--card-radius) - 4px);
  padding:26px;text-align:center;color:var(--ink-soft);font-size:14.5px;
}
.mks-empty a{color:var(--alarm-dark);text-decoration:underline;}

/* Footer menus rendered by wp_nav_menu */
.footer-menu,.footer-legal{list-style:none;margin:0;padding:0;}
.footer-menu a{display:block;font-size:14px;margin-bottom:11px;color:rgba(var(--white-rgb),0.72);}
.footer-menu a:hover{color:var(--white);}
.footer-legal{display:flex;gap:18px;flex-wrap:wrap;}
.footer-legal a{font-size:12.5px;color:rgba(var(--white-rgb),0.6);}
.footer-legal a:hover{color:var(--white);}
.footer-col-title{font-size:12px;}

/* ============ THEME ADJUSTMENTS FOR THE WORDPRESS MARKUP ============ */

/* The hidden attribute must win over any display rule on a component. */
[hidden] { display: none !important; }

/* Lexicon entries use the hidden attribute for paging and filtering. */
.lex-card-link{
  display:inline-block;margin-top:10px;font-family:var(--font-mono);font-size:11px;font-weight:700;
  color:var(--alarm-dark);text-decoration:underline;text-underline-offset:3px;
}
.lex-card-call{background:none;padding:0;border-radius:0;box-shadow:none;}
.lex-card-call:hover{transform:none;box-shadow:none;background:none;color:var(--alarm-dark);}

/* The question is a heading that wraps the toggle button, which keeps the
   document outline correct without changing the visual design. */
.faq-heading{margin:0;font-size:inherit;font-weight:inherit;line-height:inherit;}
.faq-a{max-height:0;}
.faq-item.open .faq-a{max-height:60rem;padding-bottom:22px;}

/* The timeline is an ordered list, its numbering is rendered by the design. */
.timeline{list-style:none;padding:0;}
.timeline-item{list-style:none;}

/* Team photos replace the initials tile when one is set. */
.team-avatar-photo{overflow:hidden;padding:0;}
.team-avatar-photo img{width:100%;height:100%;object-fit:cover;border-radius:50%;}

/* Quotes are marked up as figure and blockquote for assistive technology. */
.team-quote blockquote,.testi-card blockquote{margin:0;border:0;padding:0;font:inherit;}
.team-quote figcaption{font-family:var(--font-mono);font-size:12px;letter-spacing:.05em;
  text-transform:uppercase;color:var(--brass-light);margin-top:18px;}
.testi-card figcaption{margin-top:auto;}

/* Locks the page behind the open mobile panel. */
body.nav-open{overflow:hidden;}

/* Small layout utilities used by the standard templates. */
.mks-mt{margin-top:32px;}
.entry-meta-tight{margin:0;}
.error-404-text{max-width:52ch;margin:16px auto 28px;}
.error-404-actions{display:flex;gap:14px;justify-content:center;flex-wrap:wrap;}
.error-404-search{max-width:440px;margin:40px auto 0;}
.sidebar{position:sticky;top:104px;}
.comments-area{margin-top:56px;}
.comments-title{font-size:22px;color:var(--pine-deep);}
.page-links{margin-top:24px;font-family:var(--font-mono);font-size:14px;display:flex;gap:10px;}

/* The custom logo comes through the WordPress markup wrapper. */
.custom-logo-link{display:inline-flex;align-items:center;}
.custom-logo{height:var(--logo-h);width:auto;transition:height .3s ease;}
header.scrolled .custom-logo{height:var(--logo-h-scroll);}
@media (max-width:600px){.custom-logo{height:var(--logo-h-mobile);}}

/* Service and lexicon card titles are links now. */
.spec-card h3 a,.post-card h2 a{color:inherit;}
.spec-card h3 a:hover,.post-card h2 a:hover{color:var(--alarm-dark);}
.contact-info-card .cinfo-row a{color:inherit;text-decoration:underline;text-underline-offset:2px;}

/* ============ ADMIN BAR OFFSET ============ */
/*
 * The WordPress admin bar is fixed at the top of the viewport, so a sticky
 * header must start below it instead of underneath it. WordPress switches the
 * bar from 32px to 46px and from fixed to absolute at 782px, which is why the
 * offset is only applied while the bar is actually pinned.
 */
body.admin-bar #siteHeader { top: 32px; }
body.admin-bar .mobile-panel { top: 32px; }
body.admin-bar section[id] { scroll-margin-top: 120px; }

@media screen and (max-width: 782px) {
	body.admin-bar #siteHeader { top: 46px; }
	body.admin-bar .mobile-panel { top: 46px; }
	body.admin-bar section[id] { scroll-margin-top: 134px; }
}

@media screen and (max-width: 600px) {
	/* Below 600px the bar scrolls away with the page, so no offset is needed. */
	body.admin-bar #siteHeader { top: 0; }
	body.admin-bar .mobile-panel { top: 0; }
}

/* ============ KEYBOARD AND FOCUS ============ */
/*
 * The lexicon entry is expandable, so the toggle is a real button rather than
 * a click handler on the card. That gives it keyboard operation, a role and a
 * state for free.
 */
.lex-card-toggle {
	display: block;
	width: 100%;
	text-align: left;
	padding: 0;
	background: none;
	border: 0;
	font: inherit;
	color: inherit;
	cursor: pointer;
}

.lex-card-toggle:focus-visible {
	outline: 3px solid var(--alarm-dark);
	outline-offset: 2px;
	border-radius: 6px;
}

.lex-card { cursor: default; }

/* A focused card must be visible even though the button inside is the target. */
.lex-card:focus-within {
	background: var(--white);
	box-shadow: var(--shadow-soft);
}

/* Focus ring on dark grounds needs the light accent to stay visible. */
.alert-bar :focus-visible,
.contact-info-card :focus-visible,
.mobile-panel :focus-visible,
footer :focus-visible,
.page-hero :focus-visible,
.mobile-call-bar :focus-visible {
	outline-color: var(--brass-light);
}

/* ============ FULL WIDTH CONTENT, NO WIDGET SIDEBAR ============ */
.content-layout {
	display: block;
	width: 100%;
}



/* ============ CERTIFICATE IMAGES ============ */
.cert-stamp-media {
	width: 96px;
	height: 96px;
	margin: 0 auto 14px;
	border-radius: 50%;
	overflow: hidden;
	background: var(--white);
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1.5px solid var(--line);
}

.cert-stamp-media img {
	width: 100%;
	height: 100%;
	/* The seal is trimmed to its own edge, so it fills the circle exactly. */
	object-fit: cover;
}

/* ============ PEST AND SERVICE DETAIL PAGES ============ */
.detail-lead {
	font-size: 19px;
	line-height: 1.6;
	color: var(--ink-soft);
	max-width: 62ch;
	margin-bottom: 32px;
}

.detail-facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 1px;
	background: var(--line);
	border: 1px solid var(--line);
	border-radius: var(--card-radius);
	overflow: hidden;
	margin-bottom: 40px;
}

.detail-fact {
	background: var(--white);
	padding: 20px 22px;
}

.detail-fact dt {
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--brass);
	font-weight: 700;
	margin-bottom: 6px;
}

.detail-fact dd {
	margin: 0;
	font-size: 15.5px;
	color: var(--pine-deep);
	font-weight: 600;
}

.detail-media {
	border-radius: var(--card-radius);
	overflow: hidden;
	margin-bottom: 36px;
	background: var(--paper-dim);
}

.detail-media img { width: 100%; height: auto; display: block; }

.detail-block { margin-bottom: 40px; }
.detail-block h2 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 14px; }

.detail-block ul { list-style: none; display: grid; gap: 10px; margin-top: 14px; }

.detail-block ul li {
	position: relative;
	padding-left: 30px;
	max-width: 64ch;
}

.detail-block ul li::before {
	content: '';
	position: absolute;
	left: 4px;
	top: 0.55em;
	width: 12px;
	height: 2px;
	background: var(--alarm);
}

.detail-cta {
	background: var(--pine-deep);
	color: var(--white);
	border-radius: var(--card-radius);
	padding: 34px 38px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 26px;
	flex-wrap: wrap;
	margin-block: 44px;
}

.detail-cta h2 { color: var(--white); font-size: 24px; margin-bottom: 6px; }
.detail-cta p { color: rgba(var(--white-rgb), 0.78); font-size: 15px; max-width: 46ch; }

.detail-areas {
	font-size: 14.5px;
	color: var(--ink-soft);
	background: var(--paper-dim);
	border-radius: calc(var(--card-radius) - 4px);
	padding: 20px 24px;
	max-width: 70ch;
}

.detail-areas strong { color: var(--pine-deep); }

.related-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 18px;
	margin-top: 18px;
}

.related-card {
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: calc(var(--card-radius) - 4px);
	padding: 18px 20px;
	font-weight: 600;
	color: var(--pine-deep);
	display: flex;
	align-items: center;
	gap: 12px;
}

.related-card:hover { border-color: var(--alarm); }
.related-card .icon { color: var(--alarm-dark); flex: none; }

@media (max-width: 640px) {
	.detail-cta { flex-direction: column; align-items: flex-start; padding: 26px 24px; }
}

/* ============ RENDERING PERFORMANCE ============ */
/*
 * Sections below the fold are skipped during the first paint and rendered
 * when they come near the viewport. The size hint stops the scrollbar from
 * jumping while that happens.
 */
.reasons-sec,
.services-sec,
.process-sec,
.team-sec,
.cert-sec,
.testi-sec,
.lex-sec,
.faq-sec,
.contact-sec {
	content-visibility: auto;
	contain-intrinsic-size: auto 900px;
}

/* The hero must never be skipped, it is the first paint. */
.hero { content-visibility: visible; }

/* Reserve the aspect ratio of every card image so nothing shifts on load. */
.spec-card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-dim); }
.spec-card-media img { width: 100%; height: 100%; object-fit: cover; }

/* ============ FULL WIDTH SUBPAGES ============ */
/*
 * Subpages use the same row as the header, so the text starts and ends on the
 * same vertical lines as the logo and the navigation above it.
 */
/*
 * The container carries both .wrap and .content-layout. Only the inner
 * reading measure is released here: the row width, the centring and the side
 * padding all stay with .wrap, otherwise the content escapes the grid that
 * the header and the page title sit on.
 */
.detail-lead { max-width: none; }
.detail-block p { max-width: none; }
.detail-block ul li { max-width: none; }
.detail-areas { max-width: none; }
.entry-content p { max-width: none; }
.page-hero p { max-width: none; }

/*
 * The service area note is a closing statement, not part of the next block,
 * so it needs the same gap that separates two sections.
 */
.detail-areas { margin-bottom: 44px; }
.detail-block + .detail-block { margin-top: 8px; }

/* ============ ACTIONS INSIDE AN OPEN LEXICON ENTRY ============ */
.lex-card-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

.lex-card-actions .lex-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	flex: 1 1 auto;
	padding: 9px 14px;
	border-radius: calc(var(--btn-radius) - 990px + 10px);
	font-family: var(--font-body);
	font-size: 12.5px;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
	transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.lex-card-actions .lex-btn .icon { font-size: 14px; flex: none; }

/* Primary action: call now. */
.lex-btn-call {
	background: var(--alarm-btn);
	color: var(--white);
	border: 1.5px solid var(--alarm-btn);
}

.lex-btn-call:hover { background: var(--alarm-dark); border-color: var(--alarm-dark); }
.lex-btn-call .icon { color: currentColor; }

/* Secondary action: read the full entry. */
.lex-btn-more {
	background: transparent;
	color: var(--pine-deep);
	border: 1.5px solid var(--line-strong);
}

.lex-btn-more:hover { border-color: var(--pine-deep); background: rgba(var(--pine-rgb), 0.06); }
.lex-btn-more .icon { color: var(--alarm-dark); }

/* The open entry needs room for a button row rather than two text links. */
.lex-card.open .lex-card-more { max-height: 260px; }

/* =====================================================================
   NAVIGATION: tighter, smaller, with a visible current section
   ===================================================================== */
.main-nav ul { gap: 0; }

.main-nav a {
	font-size: 13.5px;
	font-weight: 600;
	letter-spacing: 0.01em;
	padding: 8px 11px;
	border-radius: 7px;
	position: relative;
	color: var(--ink-soft);
}

/* The underline grows from the centre, so the current item reads as a tab. */
.main-nav > ul > li > a::after {
	content: '';
	position: absolute;
	left: 50%;
	right: 50%;
	bottom: 2px;
	height: 2px;
	border-radius: 2px;
	background: var(--alarm);
	transition: left .22s ease, right .22s ease;
}

.main-nav > ul > li > a:hover::after {
	left: 11px;
	right: 11px;
}

.main-nav > ul > li.is-current > a,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
	color: var(--pine-deep);
	background: transparent;
}

.main-nav > ul > li.is-current > a::after,
.main-nav .current-menu-item > a::after,
.main-nav .current_page_item > a::after {
	left: 11px;
	right: 11px;
	background: var(--alarm-dark);
	height: 2.5px;
}

.header-actions { gap: 10px; }
.header-phone { font-size: 14px; gap: 7px; }
.nav-inner { gap: 14px; }

/* The logo keeps its ratio at every width. */
.brand-img,
.custom-logo {
	max-width: min(50vw, 280px);
	object-fit: contain;
	object-position: left center;
}

/* =====================================================================
   HEADER ON SMALL SCREENS
   ===================================================================== */
@media (max-width: 1050px) {
	.main-nav a { padding: 8px 8px; font-size: 13px; }
}

@media (max-width: 920px) {
	.nav-inner { padding-block: 12px; gap: 10px; }

	/*
	 * The call button collapses to its icon. On a phone the number is one tap
	 * away either way, and the label was what pushed the menu button off the
	 * screen entirely.
	 */
	.btn-header-call {
		padding: 0;
		width: 44px;
		height: 44px;
		flex: none;
		border-radius: 50%;
		gap: 0;
		box-shadow: none;
	}

	.btn-header-call .icon { font-size: 19px; }
	.btn-header-call .mks-btn-label { display: none; }
	.header-phone { display: none; }

	/* The menu button must always be the last thing that gives up space. */
	.nav-toggle {
		display: flex;
		flex: none;
		border: 1.5px solid var(--line-strong);
		background: var(--white);
	}

	.brand { min-width: 0; flex: 1 1 auto; }
	.brand-img, .custom-logo { max-width: 100%; }
}

@media (max-width: 400px) {
	.brand-img, .custom-logo { height: 30px; }
	.nav-inner { gap: 8px; }
}

/* The alert bar has to wrap instead of running off the edge. */
@media (max-width: 720px) {
	.alert-bar { font-size: 11.5px; line-height: 1.45; padding: 8px 0; }
	.alert-bar .wrap { gap: 7px; }
}

/* =====================================================================
   HERO ON SMALL SCREENS
   ===================================================================== */
@media (max-width: 560px) {
	.hero { padding-top: 26px; padding-bottom: 44px; }
	.hero-visual { margin-bottom: 4px; }
	.spec-hero-card { width: 100%; max-width: 100%; padding: 16px; }
	.hero h1 { font-size: clamp(28px, 8.4vw, 38px); }
	.hero-sub { font-size: 16px; margin-top: 16px; }
	.hero-badges { gap: 7px; margin-top: 20px; }
	.hero-badge { font-size: 11.5px; padding: 7px 11px; }
	.hero-trust { gap: 16px; margin-top: 28px; }
	.hero-trust strong { font-size: 22px; }
	.eyebrow { font-size: 11px; letter-spacing: 0.1em; }
	.section-head { margin-bottom: 34px; }
}

/* =====================================================================
   PEST CARDS: two columns, essentials only
   ===================================================================== */
@media (max-width: 700px) {
	.lex-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.lex-card-body { padding: 12px 12px 14px; }
	.lex-card h3 { font-size: 15px; line-height: 1.25; }

	/* Only the picture, the name and the risk survive on a phone. */
	.lex-card-code,
	.lex-card-fact { display: none; }

	.lex-card-tag { font-size: 9.5px; padding: 3px 7px; margin-top: 6px; }
	.lex-card.open .lex-card-more { max-height: 340px; }
	.lex-card-actions { flex-direction: column; gap: 6px; }
	.lex-card-actions .lex-btn { width: 100%; font-size: 12px; padding: 8px 10px; }
}

/* =====================================================================
   CERTIFICATES: two equal columns
   ===================================================================== */
@media (max-width: 920px) {
	.cert-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

@media (max-width: 700px) {
	.cert-stamp {
		padding: 18px 10px;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: flex-start;
		min-height: 190px;
	}

	.cert-stamp-media { width: 76px; height: 76px; margin-bottom: 10px; }
	.cert-stamp h3 { font-size: 13.5px; line-height: 1.3; }
	.cert-stamp span { font-size: 11px; }
}

/* Dots only exist once the grid becomes a carousel. */
.testi-dots { display: none; }

/* =====================================================================
   REVIEWS: swipeable carousel on small screens
   ===================================================================== */
@media (max-width: 920px) {
	.testi-grid {
		display: flex;
		grid-template-columns: none;
		gap: 14px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: var(--wrap-pad);
		padding-bottom: 10px;
		margin-inline: calc(var(--wrap-pad) * -1);
		padding-inline: var(--wrap-pad);
		scrollbar-width: none;
	}

	.testi-grid::-webkit-scrollbar { display: none; }

	.testi-card {
		flex: 0 0 min(82%, 340px);
		scroll-snap-align: start;
	}

	/* The stagger animation would hide slides that start off screen. */
	.testi-grid.reveal-stagger > * { opacity: 1; transform: none; }

	.testi-dots {
		display: flex;
		justify-content: center;
		gap: 7px;
		margin-top: 16px;
	}

	.testi-dots button {
		width: 8px;
		height: 8px;
		padding: 0;
		border-radius: 50%;
		background: var(--paper-deep);
		border: 0;
		transition: background .2s ease, width .2s ease;
	}

	.testi-dots button[aria-current="true"] {
		background: var(--alarm-dark);
		width: 22px;
		border-radius: 4px;
	}
}


/* =====================================================================
   BACK TO TOP
   ===================================================================== */
.to-top {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 175;
	width: 46px;
	height: 46px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--pine-deep);
	color: var(--white);
	box-shadow: 0 8px 22px rgba(var(--pine-deep-rgb), 0.34);
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity .25s ease, transform .25s ease, visibility .25s, background .2s ease;
}

.to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.to-top:hover { background: var(--pine); }
.to-top .icon { font-size: 20px; transform: rotate(-90deg); }

/* The floating call bar owns the bottom edge on a phone. */
@media (max-width: 760px) {
	.to-top { bottom: 84px; right: 14px; width: 42px; height: 42px; }
}

/* =====================================================================
   REMAINING SMALL SCREEN CORRECTIONS
   ===================================================================== */
@media (max-width: 700px) {
	.spec-grid { gap: 16px; }
	.services-more { flex-direction: column; align-items: flex-start; gap: 18px; }
	.detail-facts { grid-template-columns: 1fr 1fr; }
	.detail-fact { padding: 14px 16px; }
	.detail-fact dd { font-size: 14px; }
	.page-hero { padding-block: 40px 34px; }
	.contact-form-card { padding: 24px 18px; }
	.contact-info-card { padding: 22px 18px; }
	.timeline { padding-left: 0; }
}

/* Nothing may ever push the document sideways. */
html, body { max-width: 100%; overflow-x: clip; }
.wrap { width: 100%; }

/* Legal links directly beneath the company description in the footer. */
.footer-legal-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid rgba(var(--white-rgb), 0.12);
}

.footer-legal-links a {
	font-size: 13px;
	color: rgba(var(--white-rgb), 0.72);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.footer-legal-links a:hover { color: var(--white); }

/*
 * The bundled photographs are 800 px wide. Stretching one across a 1320 px
 * row upscales it by 1.6x and it visibly softens, so the media block is
 * capped just above the source width. Replace the images with larger files
 * and this cap can be raised or removed.
 */
.detail-media {
	max-width: 1000px;
	margin-inline: auto;
}

/* The whole lexicon entry is the click target, so it must look like one. */
.lex-card { cursor: pointer; }
/* The button still receives focus and keyboard events; the pointer is
   handled by the card so a click anywhere counts exactly once. */
.lex-card-toggle { cursor: pointer; pointer-events: none; }
.lex-card-actions a { pointer-events: auto; }

/* ============ QUESTIONS WITH A PICTURE BESIDE THEM ============ */
.faq-layout.has-media {
	display: grid;
	grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
	gap: 46px;
	align-items: start;
}

.faq-media {
	position: sticky;
	top: 110px;
	margin: 0;
	border-radius: var(--card-radius);
	overflow: hidden;
	background: var(--paper-dim);
}

.faq-media img {
	width: 100%;
	height: 100%;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	display: block;
}

.faq-media figcaption {
	display: flex;
	align-items: center;
	gap: 12px;
	background: var(--pine-deep);
	color: var(--white);
	padding: 16px 20px;
	font-size: 13.5px;
	line-height: 1.4;
}

.faq-media figcaption .icon {
	font-size: 20px;
	color: var(--brass-light);
	flex: none;
}

.faq-media figcaption strong {
	display: block;
	font-size: 16px;
	font-weight: 700;
}

/* The list has its own top rule so it lines up with the top of the picture. */
.faq-layout.has-media .faq-list { border-top: 1px solid var(--line-strong); }

@media (max-width: 900px) {
	.faq-layout.has-media { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.faq-media { position: static; max-width: 420px; margin-inline: auto; }
	.faq-media img { aspect-ratio: 4 / 3; }
}

/* =====================================================================
   FULL WIDTH HEADINGS, LISTS AND MEDIA
   ===================================================================== */

/*
 * Section headings ran at 640 px inside a 1320 px row, which left the title
 * floating in the left third while the content below it used the whole row.
 * The heading now follows the same edges as everything under it.
 */
.section-head { max-width: none; }
.section-head p { max-width: none; }

/* The centred narrow list was the reason the questions started in the middle. */
.faq-list { max-width: none; margin-inline: 0; }

/* Inside a detail page the questions and the picture follow the text column. */
.detail-block .faq-list { max-width: none; margin-inline: 0; }
.detail-media { max-width: none; margin-inline: 0; }

/* =====================================================================
   FACT TABLE: at most six per row, no orphan cell
   ===================================================================== */
/*
 * A grid leaves an empty tail when the item count does not divide evenly,
 * and the container background showed through as a grey block. A wrapping
 * flex row lets the last item stretch into the free space instead.
 */
.detail-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 1px;
	background: var(--line);
	border: 1px solid var(--line);
	border-radius: var(--card-radius);
	overflow: hidden;
	margin-bottom: 40px;
}

.detail-fact {
	/* Six per row at the widest, never narrower than a readable column. */
	flex: 1 1 calc(100% / 6 - 1px);
	min-width: 175px;
	background: var(--white);
	padding: 18px 20px;
}

@media (max-width: 1100px) {
	.detail-fact { flex-basis: calc(100% / 4 - 1px); }
}

@media (max-width: 780px) {
	.detail-fact { flex-basis: calc(100% / 3 - 1px); min-width: 150px; }
}

@media (max-width: 560px) {
	.detail-fact { flex-basis: calc(100% / 2 - 1px); min-width: 0; }
}

/* =====================================================================
   SERVICES: two columns on a phone
   ===================================================================== */
@media (max-width: 620px) {
	.spec-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.spec-card-body { padding: 14px 14px 18px; }
	.spec-card h3 { font-size: 15.5px; line-height: 1.25; }
	.spec-card p { font-size: 12.5px; }
	.spec-card-top { margin-bottom: 6px; }
	.spec-code { font-size: 10px; padding: 3px 7px; }

	/* The three identical promises repeat on every card and cost the most room. */
	.spec-mini-badges { display: none; }
}

/* =====================================================================
   COOKIE PREFERENCES
   ===================================================================== */
/* The opener sits on the left, mirroring the back to top button. */
.cookie-fab {
	position: fixed;
	left: 18px;
	bottom: 18px;
	z-index: 176;
	width: 46px;
	height: 46px;
	display: none;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--white);
	color: var(--pine-deep);
	border: 1.5px solid var(--line-strong);
	box-shadow: 0 8px 22px rgba(var(--pine-deep-rgb), 0.18);
}

.cookie-root[data-state="decided"] .cookie-fab { display: flex; }
.cookie-fab:hover { border-color: var(--pine-deep); }
.cookie-fab .icon { font-size: 22px; }

.cookie-banner {
	position: fixed;
	left: 18px;
	bottom: 18px;
	z-index: 500;
	width: min(430px, calc(100vw - 36px));
	background: var(--white);
	border: 1px solid var(--line-strong);
	border-radius: var(--card-radius);
	box-shadow: 0 18px 50px rgba(var(--pine-deep-rgb), 0.28);
	padding: 24px 24px 20px;
}

.cookie-banner h2 { font-size: 18px; color: var(--pine-deep); margin-bottom: 8px; }
.cookie-banner p { font-size: 14px; color: var(--ink-soft); line-height: 1.55; }

.cookie-options {
	display: grid;
	gap: 12px;
	margin: 16px 0 4px;
	max-height: 42vh;
	overflow-y: auto;
}

.cookie-option {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 13px;
	color: var(--ink-soft);
	line-height: 1.45;
	background: var(--paper);
	border-radius: 10px;
	padding: 12px 14px;
	cursor: pointer;
}

.cookie-option input { margin-top: 3px; flex: none; width: 17px; height: 17px; accent-color: var(--pine); }
.cookie-option strong { display: block; color: var(--pine-deep); font-size: 13.5px; margin-bottom: 2px; }
.cookie-option input:disabled { cursor: not-allowed; }

.cookie-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin-top: 18px;
}

/* Accept and reject are the same size, which is what the regulator checks. */
.cookie-actions .btn {
	flex: 1 1 140px;
	padding: 12px 18px;
	font-size: 14px;
	box-shadow: none;
}

.cookie-link {
	flex: 1 1 100%;
	background: none;
	border: 0;
	padding: 4px 0 0;
	font-size: 13px;
	color: var(--ink-soft);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-align: left;
}

.cookie-link:hover { color: var(--pine-deep); }

.cookie-legal {
	display: flex;
	gap: 16px;
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid var(--line);
}

.cookie-legal a { font-size: 12.5px; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }
.cookie-legal a:hover { color: var(--pine-deep); }

@media (max-width: 760px) {
	.cookie-fab { bottom: 84px; left: 14px; width: 42px; height: 42px; }
	.cookie-banner { left: 12px; right: 12px; bottom: 80px; width: auto; padding: 20px 18px 16px; }
}

/* =====================================================================
   SMALLER ICONS IN THE CONTACT CARD
   ===================================================================== */
.cinfo-row .icon {
	width: 30px;
	height: 30px;
	font-size: 15px;
	border-radius: 8px;
	padding: 7px;
	box-sizing: border-box;
}

.cinfo-badge .icon { font-size: 16px; }

/* =====================================================================
   SERVICES CLOSING CARD: text centred against the button
   ===================================================================== */
.services-more { align-items: center; }
.services-more > div { display: flex; flex-direction: column; justify-content: center; }

/* =====================================================================
   ONE ALIGNMENT FOR EVERY SECTION HEADING
   ===================================================================== */
/*
 * Some sections were centred and some left aligned, which read as an
 * accident rather than a decision. Every heading now starts at the left
 * edge of the row, the same line the content below it starts on.
 */
.section-head.center { text-align: left; margin-inline: 0; }
.section-head.center p { margin-inline: 0; }

/* =====================================================================
   TEAM CARDS
   ===================================================================== */
/*
 * One card per person, portrait on top, so a visitor sees who will be
 * standing at the door. Four across on a wide screen, two on a phone.
 */
.team-grid {
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 22px;
}

.team-card {
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 16px;
	padding: 26px 20px 28px;
}

.team-avatar,
.team-avatar-photo {
	width: 116px;
	height: 116px;
	flex: none;
}

.team-avatar-photo { border-radius: 50%; }
.team-avatar-photo::after { content: none; }
.team-card h3 { font-size: 18px; margin-bottom: 4px; }
.team-role { margin-bottom: 8px; }
.team-card p { font-size: 13.5px; line-height: 1.5; }

@media (max-width: 820px) {
	.team-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
	.team-card { flex-direction: column; padding: 20px 14px 22px; }
	.team-avatar, .team-avatar-photo { width: 92px; height: 92px; }
	.team-card h3 { font-size: 16px; }
	.team-card p { font-size: 12.5px; }
}

/* =====================================================================
   PROCESS: steps on the left, description across the row
   ===================================================================== */
/*
 * The timeline was centred at 820 px inside a 1320 px row, so the steps
 * floated in the middle while every neighbouring section started at the
 * left edge. It now follows the same line as everything else.
 */
.timeline {
	max-width: none;
	margin-inline: 0;
}

.timeline-body p { max-width: none; }

/* =====================================================================
   TEAM PORTRAIT: one clipping edge, not two
   ===================================================================== */
/*
 * The container clipped a circle and the image rounded itself as well.
 * Two antialiased edges on top of each other produce the light fringe that
 * shows up around the photograph, so only the container clips now.
 */
.team-avatar-photo {
	border: 0;
	background: var(--paper-dim);
}

.team-avatar-photo img {
	border-radius: 0;
	display: block;
}

.team-avatar-photo::after,
.team-avatar-photo::before { content: none; }

/* =====================================================================
   LEGAL PAGES
   ===================================================================== */
.legal-updated {
	font-family: var(--font-mono);
	font-size: 13px;
	letter-spacing: 0.03em;
	color: rgba(var(--white-rgb), 0.66);
	margin-top: 10px;
}

.legal-layout {
	display: grid;
	grid-template-columns: 250px minmax(0, 1fr);
	gap: 56px;
	align-items: start;
}

.legal-toc {
	position: sticky;
	top: 110px;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--card-radius);
	padding: 22px 24px;
}

.legal-toc h2 {
	font-family: var(--font-mono);
	font-size: 11.5px;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--brass);
	margin-bottom: 12px;
}

.legal-toc ol {
	list-style: none;
	counter-reset: legal;
	display: grid;
	gap: 9px;
}

.legal-toc li { counter-increment: legal; }

.legal-toc a {
	display: flex;
	gap: 9px;
	font-size: 13.5px;
	line-height: 1.4;
	color: var(--ink-soft);
}

.legal-toc a::before {
	content: counter(legal);
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--brass);
	flex: none;
	padding-top: 2px;
}

.legal-toc a:hover { color: var(--pine-deep); }

/* A narrower measure than the rest of the site, because this is dense text. */
.legal-body .entry-content { max-width: 74ch; }
.legal-body .entry-content h2 { scroll-margin-top: 110px; }

.legal-body .entry-content h2:first-of-type { margin-top: 0; }

.legal-contact,
.legal-siblings {
	margin-top: 44px;
	background: var(--paper-dim);
	border-radius: var(--card-radius);
	padding: 26px 28px;
	max-width: 74ch;
}

.legal-contact h2,
.legal-siblings h2 { font-size: 18px; margin-bottom: 8px; }
.legal-contact p { font-size: 15px; color: var(--ink-soft); }

.legal-contact-links {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
	margin-top: 14px;
}

.legal-contact-links a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	color: var(--pine-deep);
}

.legal-contact-links .icon { color: var(--alarm-dark); }
.legal-contact-links a:hover { color: var(--alarm-dark); }

.legal-siblings ul { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 6px; }

.legal-siblings a {
	font-size: 14.5px;
	color: var(--alarm-dark);
	text-decoration: underline;
	text-underline-offset: 3px;
}

@media (max-width: 900px) {
	.legal-layout { grid-template-columns: minmax(0, 1fr); gap: 26px; }
	.legal-toc { position: static; }
	.legal-body .entry-content { max-width: none; }
	.legal-contact, .legal-siblings { max-width: none; }
}
