/* ============================================================
   THUNDER BAY DEVELOPERS · service and area pages
   Loaded after styles.css by /web-design-thunder-bay/, /business-automation/,
   /custom-software/, /ai-assistants/ and /northwestern-ontario/. The header,
   footer, buttons, labels and FAQ come from styles.css unchanged; this file
   adds the page shell, namespaced pg- so it cannot collide with the home
   page. These pages run no script beyond boot.js, so nothing here waits on
   JavaScript: every word renders with the HTML and CSS.
   ============================================================ */

/* ---------- A page without script.js ---------- */
/* On the home page script.js fades the header in; here it is simply shown */
html.js .pg .site-head{opacity:1}
/* FAQ answers start open and render at once instead of fading in on load */
html.js .pg .faq-item[open] p{animation:none}
/* The logo link gets the same 44px touch target as the nav links; the inline Print Pros
   Plus link takes its 44px target from styles.css */
.pg .brand{display:inline-flex;align-items:center;min-height:44px}
/* Hyphenated words such as e-commerce never split at the hyphen, and short text
   blocks avoid a lone word on their last line */
.pg .nw{white-space:nowrap}
.pg-spec dd,.pg-rows p,.pg-steps p,.pg-list li,.pg-links-desc{text-wrap:pretty}

/* ---------- Hero: breadcrumb, headline, lead and a short spec ---------- */
.pg-hero{padding:clamp(6.5rem,15vh,10.5rem) var(--gutter) 0}
.pg-crumbs{margin:0 0 clamp(.75rem,2.2vw,2rem)}
.pg-crumbs ol{
  list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;align-items:center;gap:0 .75rem;
  font-size:.75rem;font-weight:500;letter-spacing:.16em;text-transform:uppercase;color:var(--ink-3);
}
.pg-crumbs li{display:flex;align-items:center;gap:.75rem}
/* The separator is decoration: the alternative-text form hides it from screen readers, and
   the first declaration keeps it for browsers that do not read that syntax */
.pg-crumbs li+li::before{content:"/";content:"/" / "";color:var(--ink-3)}
/* Inline padding widens the short crumb links to a 44px target; the negative margin keeps
   the text where it was */
.pg-crumbs a{position:relative;display:inline-flex;align-items:center;min-height:44px;padding-inline:.3rem;margin-inline:-.3rem;color:var(--ink)}
.pg-crumbs a::after{content:"";position:absolute;left:.3rem;right:calc(.3rem + .16em);bottom:calc(50% - .95em);height:1px;background:currentColor;transform:scaleX(0);transform-origin:left;transition:transform .5s var(--ease)}
.pg-crumbs a:focus-visible::after{transform:scaleX(1)}
/* Touch screens cannot hover, so the Home link keeps a faint underline there */
@media (hover:none){.pg-crumbs a::after{transform:scaleX(1);opacity:.35}}

/* The headline sits on the home page's scale: about the size of the home hero,
   and clearly above the section headings at every width */
.pg-title{
  font-family:var(--display);font-weight:800;
  font-size:clamp(2.5rem,1.9rem + 3.3vw,5rem);line-height:.95;letter-spacing:-.04em;
  max-width:12em;margin:0;color:var(--ink);text-wrap:balance;overflow-wrap:break-word;
}
.pg-intro{
  display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:2.5rem clamp(2rem,6vw,7rem);align-items:start;
  margin-top:clamp(2.25rem,5vw,4.5rem);padding:clamp(1.5rem,2.6vw,2.25rem) 0 clamp(4.5rem,9vw,8rem);
  border-top:1px solid var(--ink);
}
.pg-lead{display:grid;gap:clamp(1.75rem,3vw,2.5rem);justify-items:start}
.pg-lead .copy{font-size:clamp(1.0625rem,1.3vw,1.25rem);line-height:1.55;max-width:36rem}
.pg-spec{margin:0}
.pg-spec div{display:grid;grid-template-columns:9.75rem minmax(0,1fr);gap:1rem;padding:.8rem 0;border-bottom:1px solid var(--rule)}
.pg-spec div:first-child{padding-top:.3rem}
.pg-spec dt{font-size:.75rem;font-weight:500;letter-spacing:.16em;text-transform:uppercase;color:var(--ink-3);padding-top:.2em}
.pg-spec dd{margin:0;font-size:.9375rem;line-height:1.45;color:var(--ink)}

/* ---------- Services page: opens on the premise and its ledger, as the home page once did ---------- */
.pg .statement{padding-top:clamp(6.5rem,15vh,10.5rem)}
.statement-inner .pg-crumbs{grid-column:1/-1}

/* ---------- Sections: label and heading on the left, substance on the right ---------- */
.pg-sec{padding:clamp(4rem,9vw,8rem) var(--gutter);border-top:1px solid var(--rule)}
.pg-grid{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,8fr);gap:1.75rem clamp(2rem,6vw,7rem);align-items:start}
.pg-head{display:grid;gap:1.1rem;align-content:start;position:sticky;top:clamp(2rem,8vh,5rem)}
.pg-h2,.pg .faq-title{font-family:var(--display-xs);font-size:clamp(1.9rem,1.2rem + 2.6vw,3.5rem);text-wrap:balance;overflow-wrap:break-word}
.pg .faq-title{margin-top:1.1rem}
.pg .faq{padding-bottom:clamp(4rem,9vw,8rem)}
.pg-body{display:grid;gap:clamp(1.5rem,2.5vw,2rem);min-width:0}
.pg-body .copy{max-width:36rem;line-height:1.6}
/* A link inside the prose reads as a link: underlined like the site's other text links, with a tall tap area */
.pg-body .copy a{color:var(--ink);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;text-decoration-color:color-mix(in srgb,currentColor 55%,transparent);padding:.6rem 0}
/* Sections that are only paragraphs: the first one reads as a lead in ink, and the
   section takes less height, so a short heading is not left beside empty paper */
.pg-sec.pg-prose{padding-block:clamp(3.5rem,7vw,6rem)}
.pg-prose .pg-body>.copy:first-child{font-size:clamp(1.125rem,1.55vw,1.4rem);line-height:1.5;color:var(--ink);max-width:34rem}

/* In-text links to the other pages: underlined in ink, with a 44px touch height
   from inline padding, which does not move the lines around them */
.pg-inline{color:var(--ink);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;padding:.8rem 0}

/* Hairline lists, in the idiom of the home page's services index */
.pg-rows,.pg-steps,.pg-list{list-style:none;margin:0;padding:0;border-top:1px solid var(--ink)}
.pg-rows li{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:.45rem clamp(1.25rem,3vw,2.5rem);padding:clamp(1.1rem,2vw,1.6rem) 0;border-bottom:1px solid var(--rule)}
.pg-rows h3,.pg-steps h3{margin:0;font-family:var(--display);font-weight:700;font-size:clamp(1.15rem,1.5vw,1.4rem);letter-spacing:-.02em;line-height:1.2;color:var(--ink);text-wrap:balance}
.pg-rows p,.pg-steps p{margin:0;max-width:34rem;font-size:clamp(.98rem,1.05vw,1.0625rem);line-height:1.55;color:var(--ink-2)}
.pg-steps{counter-reset:step}
.pg-steps li{display:grid;grid-template-columns:2.75rem minmax(0,4fr) minmax(0,7fr);gap:.45rem clamp(1rem,2.5vw,2rem);padding:clamp(1.1rem,2vw,1.6rem) 0;border-bottom:1px solid var(--rule)}
.pg-steps li::before{counter-increment:step;content:counter(step,decimal-leading-zero);font-size:.75rem;font-weight:500;letter-spacing:.16em;color:var(--ink-3);padding-top:.45em}
/* The hairline runs the full width; the text keeps a readable measure (about 70 characters) */
.pg-list li{padding:1rem max(0px,calc(100% - 38rem)) 1rem 0;border-bottom:1px solid var(--rule);font-size:clamp(1rem,1.15vw,1.125rem);line-height:1.5;color:var(--ink)}

/* Short names in a grid of hairlines: the towns served, and the tools automation connects */
.pg-towns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2rem clamp(1.25rem,3vw,2.5rem);padding-top:clamp(1.25rem,2vw,1.6rem);border-top:1px solid var(--ink)}
.pg-towns h3{margin:0 0 .5rem;font-family:var(--body);font-size:.75rem;font-weight:500;letter-spacing:.16em;text-transform:uppercase;color:var(--ink-3)}
.pg-towns ul{list-style:none;margin:0;padding:0}
.pg-tags{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:clamp(1.25rem,3vw,2.5rem);border-top:1px solid var(--ink)}
.pg-towns li,.pg-tags li{padding:.55rem 0;border-bottom:1px solid var(--rule);font-family:var(--display);font-weight:600;font-size:clamp(1.1rem,1.4vw,1.3rem);letter-spacing:-.015em;line-height:1.25;color:var(--ink)}
.pg-tags li{padding:.85rem 0}

/* Related services: whole-row links between hairlines */
.pg-links{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:clamp(1.5rem,3vw,3rem);border-top:1px solid var(--ink)}
.pg-links li{border-bottom:1px solid var(--rule);transition:border-color .5s}
.pg-links a{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.3rem 1.25rem;min-height:44px;padding:clamp(1.1rem,2vw,1.5rem) 0}
.pg-links-name{font-family:var(--display);font-weight:700;font-size:clamp(1.2rem,1.7vw,1.6rem);letter-spacing:-.02em;line-height:1.15;color:var(--ink)}
.pg-links-desc{grid-column:1;font-size:.9375rem;line-height:1.45;color:var(--ink-2)}
.pg-links .arrow{grid-column:2;grid-row:1 / span 2;margin:0;font-size:1.15rem}

/* ---------- Closing call to action ---------- */
.pg-close{padding:clamp(5rem,11vw,10rem) var(--gutter) clamp(5rem,10vw,9rem);border-top:1px solid var(--rule)}
/* The measure is in em, not ch: a ch is the width of the current font's zero, which the
   fallback face does not share, so a ch measure would wrap differently before the swap */
.pg-close-title{font-size:clamp(2.1rem,1.4rem + 2.9vw,4rem);max-width:8.3em;margin-top:1.25rem;text-wrap:balance;overflow-wrap:break-word}
.pg-close-foot{display:grid;grid-template-columns:minmax(0,6fr) minmax(0,6fr);gap:2rem clamp(2rem,6vw,7rem);align-items:start;margin-top:clamp(2rem,4vw,3.5rem)}
.pg-close-foot .copy{max-width:34rem}
.pg-close-actions{display:flex;flex-wrap:wrap;align-items:center;gap:1rem 2rem}
.pg-mail{position:relative;display:inline-block;padding:.7rem 0;font-family:var(--display);font-weight:600;font-size:clamp(1.05rem,1.4vw,1.3rem);letter-spacing:-.015em;line-height:1.3;overflow-wrap:anywhere}
.pg-mail::after{content:"";position:absolute;left:0;bottom:calc(.7rem - 2px);width:100%;height:1px;background:currentColor;transform:scaleX(0);transform-origin:left;transition:transform .55s var(--ease)}
.pg-mail:focus-visible::after{transform:scaleX(1)}
/* The page's only red: a small square beside the closing label, after the heart */
.pg-mark::before{content:"";display:inline-block;width:7px;height:7px;margin-right:.85em;background:var(--red);vertical-align:.1em}

/* Fallback faces for the sizes these headings reach on tablets and wide screens (the
   @font-face notes in styles.css); the web font is the same at every width */
@media (min-width:600px) and (max-width:960px){
  .pg-title{font-family:var(--display-m)}
  .pg-h2,.pg .faq-title{font-family:var(--display)}
}
@media (min-width:961px){
  .pg-title,.pg-close-title{font-family:var(--display-l)}
  .pg-h2,.pg .faq-title{font-family:var(--display-m)}
}

/* ---------- Hover, for pointers that can hover ---------- */
@media (hover:hover) and (pointer:fine){
  .pg-crumbs a:hover::after,.pg-mail:hover::after{transform:scaleX(1)}
  .pg-links li:hover{border-bottom-color:var(--ink)}
  .pg-links a:hover .arrow{transform:translateX(4px)}
  .pg-inline:hover{text-decoration-thickness:2px}
}

/* ---------- Responsive ---------- */
@media (max-width:960px){
  .pg-intro,.pg-grid,.pg-close-foot{grid-template-columns:1fr}
  .pg-head{position:static}
  /* The spec list now sits under the lead, so it opens with its own hairline */
  .pg-spec{border-top:1px solid var(--rule)}
  .pg-spec div:first-child{padding-top:.8rem}
}
@media (max-width:760px){
  .pg-rows li{grid-template-columns:1fr}
  .pg-steps li{grid-template-columns:2.25rem minmax(0,1fr)}
  .pg-steps p{grid-column:2}
  .pg-towns{grid-template-columns:1fr;gap:1.5rem}
  /* Two short columns of names instead of one long one */
  .pg-towns ul,.pg-tags{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:1.25rem}
  .pg-towns li,.pg-tags li{font-size:1.05rem}
  .pg-links{grid-template-columns:1fr}
}
/* Narrow phones: each spec label sits above its value, so values keep a full line */
@media (max-width:480px){
  .pg-spec div{grid-template-columns:1fr;gap:.3rem}
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion:reduce){
  .pg-crumbs a::after,.pg-mail::after,.pg-links li,.pg-links .arrow{transition:none}
}
