/* Page standards for service + industry pages (Oct 25, 2026).
   Service pages use body class .service-page (Gifting is the reference); industry pages use .industry-page.
   Every service and industry page links this file right after blocks.css.
   Desktop values are what a 1440px-wide screen shows; each one scales down on smaller screens.
   Hero headline alignment stays different on purpose (service = centered, industry = left). */

/* Body text: 18px (was 19.4px) */
body:is(.service-page, .industry-page) {
  --body-size: clamp(1rem, 1.25vw, 1.125rem);
}

/* Side margin 72px and widest content 1440px for every section,
   so section text lines up with the logo and footer.
   Narrow centered columns (FAQ, the blue statement band) keep their width. */
html body:is(.service-page, .industry-page) :is(.program-section:not(.service-faq), .program-hero) .wrap:not(.explore-wrap):not([style*="max-width"]) {
  max-width: 1440px;
  padding-inline: clamp(22px, 5vw, 76px);
}

/* Further reading: full width, with the same space above it as every other section */
html body:is(.service-page, .industry-page) .resources-section .wrap:not(.explore-wrap) {
  max-width: 1440px;
  padding-inline: clamp(22px, 5vw, 76px);
}
html body:is(.service-page, .industry-page) .resources-band,
html body:is(.service-page, .industry-page) .service-faq + .resources-band {
  padding-top: clamp(64px, 7vw, 112px);
}

/* Hero spacing: 24px under the small label, 32px under the headline */
html body:is(.service-page, .industry-page) :is(.program-hero, .industry-hero) .eyebrow {
  margin-bottom: 24px;
}
html body:is(.service-page, .industry-page) :is(.program-hero, .industry-hero) h1 {
  margin-bottom: 32px;
}

/* Large card headings 22px: service cards, step cards, list items (How we help) */
html body:is(.service-page, .industry-page) :is(.program-type h3, .help-item h3, .industry-card:not(.industry-card-cta) h3, .step-card h3) {
  font-size: clamp(1.2rem, 1.53vw, 1.375rem);
  line-height: 1.25;
}

/* Large card text 16px */
html body:is(.service-page, .industry-page) :is(.program-type p:not(.type-num), .industry-card-body p:not(.industry-card-kicker), .steps-section .step-card p) {
  font-size: 1rem;
  line-height: 1.6;
}

/* Small card headings 17.6px: product tiles, article cards, FAQ questions */
html body:is(.service-page, .industry-page) :is(.product-tile h3, .reading-card h4, .faq-item summary) {
  font-size: 1.1rem;
}

/* Small card text 15.7px */
html body:is(.service-page, .industry-page) :is(.product-tile p, .reading-body p:last-child) {
  font-size: .98rem !important;
}

/* ---------- Heading colors (Oct 25, 2026) ----------
   Each section has a heading color and an accent color.
   The period is always the accent color, and one punch word (span.punch) matches it.
   When the punch word is the last word (h2.punch-last), the period switches back
   to the heading color so it still differs from the letter before it.
   Manual exceptions only when Emily asks: Gifting blue band highlights the two words "two hundred". */
html body:is(.service-page, .industry-page) section {
  --hd-base: #0b0d42;
  --hd-accent: #ff5669;
}
html body:is(.service-page, .industry-page) :is(.program-types, .statement-band, .section-blue, .popular-products) {
  --hd-base: #9daaf2;
  --hd-accent: #fff;
}
html body:is(.service-page, .industry-page) :is(.industry-make, .close-navy, .section-navy) {
  --hd-base: #fff;
  --hd-accent: #ff5669;
}
html body:is(.service-page, .industry-page) .program-section h2 { color: var(--hd-base) !important; }
html body:is(.service-page, .industry-page) .program-section h2 :is(.punch, .dot) { color: var(--hd-accent) !important; }
html body:is(.service-page, .industry-page) .program-section h2.punch-last .dot { color: var(--hd-base) !important; }

/* ---------- Hero headline ----------
   First sentence white with a coral period, second sentence coral with a white period,
   each on its own line. Alignment stays as each template has it. */
html body:is(.service-page, .industry-page) :is(.program-hero, .industry-hero) h1 { max-width: none !important; }
html body:is(.service-page, .industry-page) :is(.program-hero, .industry-hero) h1 :is(.hero-line-first, .hero-line-second) { display: block; }
html body:is(.service-page, .industry-page) :is(.program-hero, .industry-hero) h1 .hero-line-first { color: #fff; }
html body:is(.service-page, .industry-page) :is(.program-hero, .industry-hero) h1 .hero-line-second { color: #ff5669; }
html body:is(.service-page, .industry-page) :is(.program-hero, .industry-hero) h1 .hero-dot { display: inline; animation: none; color: #fff !important; }
html body:is(.service-page, .industry-page) :is(.program-hero, .industry-hero) h1 .hero-dot-first { color: #ff5669 !important; }
@media (min-width: 900px) {
  html body:is(.service-page, .industry-page) :is(.program-hero, .industry-hero) h1 :is(.hero-line-first, .hero-line-second) { white-space: nowrap; }
}

/* ---------- Brand bar: logos shrink to fit one row instead of wrapping ---------- */
html body.industry-page .brand-bar .wrap { flex-wrap: nowrap; }
html body.industry-page .brand-bar p { flex: none; }
html body.industry-page .brand-bar ul { flex: 1 1 auto; min-width: 0; flex-wrap: nowrap; gap: clamp(14px, 2.4vw, 40px); }
html body.industry-page .brand-bar li { flex: 0 1 auto; min-width: 0; }
html body.industry-page .brand-bar img { width: auto; height: auto; max-width: 100%; max-height: var(--h, 40px); }
@media (max-width: 700px) {
  html body.industry-page .brand-bar .wrap { flex-wrap: wrap; }
  html body.industry-page .brand-bar ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 20px; align-items: center; }
  html body.industry-page .brand-bar li { justify-content: center; }
  html body.industry-page .brand-bar img { max-height: calc(var(--h, 40px) * .75); }
}

/* ---------- Blue statement band: centered ----------
   .section-blue bands on the other service pages get the same treatment.
   A bulleted list stays left aligned inside a centered block so it still reads as a list. */
html body:is(.service-page, .industry-page) :is(.statement-band, .section-blue) .wrap { text-align: center; }
html body:is(.service-page, .industry-page) .section-blue .program-copy { max-width: none; }
html body:is(.service-page, .industry-page) .section-blue .service-list { display: inline-block; text-align: left; margin-inline: auto; }

/* Industry hero: the headline now runs wider, so the navy fade reaches further across the photo
   on desktop to keep it readable. Phones keep their bottom-up fade from blocks.css. */
@media (min-width: 801px) {
  html body.industry-page .industry-hero:after {
    background: linear-gradient(90deg, rgba(11,13,66,.92) 0%, rgba(11,13,66,.8) 50%, rgba(11,13,66,.4) 80%, rgba(11,13,66,.15) 100%);
  }
}

/* Service hero sentence under the headline: 1/3 narrower on desktop (880 to 587px).
   Industry heroes keep their original 560px width. */
@media (min-width: 900px) {
  html body.service-page .program-hero .program-hero-lead { max-width: 587px; margin-inline: auto; }
}

/* Blue statement band: caption 1/3 narrower on desktop (799 to 533px), centered under the heading */
@media (min-width: 900px) {
  html body:is(.service-page, .industry-page) :is(.statement-band, .section-blue) p { max-width: 533px; margin-inline: auto; }
}

/* Service hero height: 1/4 shorter than the industry hero (Emily, Oct 25):
   max(540px, 66svh), 594px on a 900px-tall screen (industry is max(720px, 88svh)) */
html body.service-page .program-hero { min-height: max(540px, 66svh); }

/* Service page type sizes (moved here from the Gifting page so every service page matches):
   hero headline 80px, hero sentence 19.2px, section headings 72px, closing heading 80px.
   Program Management's hero is not centered (.service-hero), so its lead keeps its own width. */
html body.service-page .program-hero h1 { font-size: clamp(3rem, 5.6vw, 5rem); line-height: .9; margin: 0 auto 32px; }
html body.service-page .program-hero .program-hero-lead { font-size: 1.2rem; line-height: 1.55; }
html body.service-page .program-section:not(.close-navy) h2 { font-size: clamp(2.6rem, 5vw, 72px); }
html body.service-page .program-section.close-navy h2 { font-size: clamp(2.8rem, 5.6vw, 80px); }
/* Phones and tablets: hero lines may wrap (some service pages had an older rule that kept them on one line) */
@media (max-width: 899px) {
  html body.service-page .program-hero h1 :is(.hero-line-first, .hero-line-second) { white-space: normal; }
}

/* Hero sentence: regular weight on every service page (some pages had it bold) */
html body.service-page .program-hero .program-hero-lead { font-weight: 400; }

/* Step icons: 76px circles with 32px icons on every page, including five step rows */
html body:is(.service-page, .industry-page) .steps-compact .step-row .step-icon { width: 76px; height: 76px; }
html body:is(.service-page, .industry-page) .steps-compact .step-row .step-icon svg { width: 32px; height: 32px; }
@media (max-width: 1100px) {
  html body:is(.service-page, .industry-page) .steps-compact .step-row .step-icon { width: 68px; height: 68px; }
  html body:is(.service-page, .industry-page) .steps-compact .step-row .step-icon svg { width: 28px; height: 28px; }
}

/* ---------- How we help (Oct 25, 2026) ----------
   Heading and a ruled checklist in the left column, a photo in the right column.
   Rows: a line above each item and under the last, navy check circle, 22px bold heading, body text. */
html body.service-page .help-photo { align-items: start; }
html body.service-page .help-photo .help-list { margin-top: 32px; }
html body.service-page .help-photo .help-item { grid-template-columns: 44px minmax(0, 1fr); gap: 20px; padding: 20px 0; }
html body.service-page .help-photo .help-item:last-child { border-bottom: 1px solid rgba(11,13,66,.2); }
html body.service-page .help-photo .help-icon { width: 44px; height: 44px; }
html body.service-page .help-photo .help-icon svg { width: 22px; height: 22px; }
html body.service-page .help-photo .help-item h3 { font-weight: 700; line-height: 1.3; margin: 0 0 6px; }
html body.service-page .help-photo .help-item h3 + p { margin: 0; }
html body.service-page .help-figure { margin: 0; }
html body.service-page .help-figure img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
html body.service-page .help-figure-empty { aspect-ratio: 1; background: #efeceb; border: 2px dashed rgba(11,13,66,.25); display: flex; align-items: center; justify-content: center; color: #0b0d42; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: .9rem; }
@media (min-width: 901px) { html body.service-page .help-figure { position: sticky; top: 120px; } }

/* Header (Nov 4, 2026): navy and fixed on service and program pages. The parent pages (Home, What We Do,
   Who We Are) keep the clear header that turns navy on scroll (mega-menu.css, body.clear-header). */
html body.service-page header { position: sticky; top: 0; width: 100%; background: rgba(11,13,66,.95); box-shadow: none; z-index: 10; }

/* Service cards with photos (Apparel + Uniforms first): a 4:3 photo across the top of each navy card
   in place of the icon, then the heading and text. Add .types-photos to the cards section to use it. */
html body.service-page .types-photos .program-type { padding: 0 0 28px; overflow: hidden; justify-content: flex-start; }
html body.service-page .types-photos .type-photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; margin: 0 0 22px; }
html body.service-page .types-photos .program-type :is(h3, p) { padding-inline: 24px; }
html body.service-page .types-photos .type-photo { object-position: 50% 30%; }
/* How we help photo in a 4:3 landscape frame instead of a square (Apparel + Uniforms first, Oct 27) */
html body.service-page .help-figure-landscape img { aspect-ratio: 4 / 3; }

/* How we help photo, full bleed (Apparel + Uniforms first, Oct 27): on desktop the photo fills the right half
   of the section, touching the section above, the band below and the screen edge, and holds still while the
   page scrolls past it. Phones keep the 4:3 photo under the list. Set --photo (the image url) and
   --photo-ratio (width / height) on the figure; add .help-bleed to the section. */
@media (min-width: 901px) {
  html body.service-page .help-bleed { position: relative; }
  html body.service-page .help-bleed .help-figure {
    position: absolute; top: 0; bottom: 0; right: 0; width: 50%;
    background-image: var(--photo); background-repeat: no-repeat; background-attachment: fixed;
    background-position: right center;
    background-size: max(50vw, calc(100vh * var(--photo-ratio, 1.5))) auto;
  }
  html body.service-page .help-bleed .help-figure img { opacity: 0; width: 100%; height: 100%; aspect-ratio: auto; }
}
@media (min-width: 901px) {
  html body.service-page .help-bleed .help-figure-empty { aspect-ratio: auto; }
}
/* Parallax hero (Gifting first): the collage gets its own layer so the drift stays smooth */
html body.service-page [data-parallax] { will-change: transform; }

/* Hero collage: all six photos fit inside the shorter hero (rows share the height instead of growing to
   the photos' square size). 3 across by 2 down on desktop, 2 across by 3 down on phones. */
html body.service-page .program-hero-collage { grid-template-rows: repeat(2, minmax(0, 1fr)); }
html body.service-page .program-hero-collage img { min-height: 0; height: 100%; }
@media (max-width: 700px) {
  html body.service-page .program-hero-collage { grid-template-rows: repeat(3, minmax(0, 1fr)); }
}

/* Blue band spacing: 24px between the heading and the text, the same as Gifting's statement band
   (the other pages' bands had 54 to 82px because of the shared section heading margin) */
html body.service-page .section-blue .program-heading { margin-bottom: 24px; margin-inline: auto; }
html body.service-page .section-blue .program-copy > :first-child { margin-top: 0; }

/* ---------- What We Do (hub page, body.hub-page), Oct 28, 2026 ----------
   Same type sizes as the service pages: section headings 72px, closing heading 80px, body text 18px.
   Hero matches Who We Are (Nov 4, 2026): the large site hero headline, the same darker navy overlay,
   and the same supporting text treatment. */
html body.hub-page { --body-size: clamp(1rem, 1.25vw, 1.125rem); }
html body.hub-page .solutions-intro { padding: 160px 0 110px; }
html body.hub-page .solutions-intro h1 { font-size: var(--hero-heading-size); line-height: .92; text-shadow: none; }
html body.hub-page .solutions-intro p { font-size: clamp(1.05rem, 1.35vw, 1.25rem); line-height: 1.7; max-width: 1000px; padding: 24px 48px; margin: 20px auto 24px; text-shadow: 0 2px 16px rgba(0,0,0,.45); }
@media (max-width: 800px) {
  html body.hub-page .solutions-intro { padding: 160px 0 90px; }
  html body.hub-page .solutions-intro p { padding: 18px 20px; margin: 16px auto 20px; }
}
html body.hub-page .solution h2 { font-size: clamp(2.6rem, 5vw, 72px); line-height: .95; }
html body.hub-page .solutions-cta h2 { font-size: clamp(2.8rem, 5.6vw, 80px); }
html body.hub-page :is(.solution-copy p, .solution-examples, .solutions-cta p) { font-size: var(--body-size); }

/* Section photos drift as the page scrolls (nav.js, data-parallax-img). The photo is 30% taller
   than its frame so the drift never shows an edge. */
html body.hub-page .solution-visual { overflow: hidden; }
html body.hub-page .solution-visual img[data-parallax-img] { height: 130%; top: -15%; will-change: transform; }

/* White sections: period and list bullets in coral (heading color rule: navy heading, coral accent),
   and the Explore button in navy so it shows against the white background */
html body.hub-page .solution:not(:nth-child(even)) h2 .dot,
html body.hub-page .solution:not(:nth-child(even)) .solution-examples li::marker { color: var(--coral); }
html body.hub-page .solution:not(:nth-child(even)) .button { background: var(--navy); color: #fff; }
html body.hub-page .solution:not(:nth-child(even)) .button:is(:hover, :focus-visible) { background: var(--coral); color: var(--navy); }

/* Further reading links (option B, Oct 29, 2026): no bullets, bold titles with a coral arrow,
   underline on hover */
html body.hub-page .solution-reading { list-style: none; margin: 0 0 36px; padding: 0; display: grid; gap: 12px; max-width: 650px; }
html body.hub-page .solution-reading a { display: inline-flex; gap: 10px; align-items: baseline; color: inherit; text-decoration: none; font-weight: 600; border-bottom: 2px solid transparent; transition: border-color .2s; }
html body.hub-page .solution-reading a:is(:hover, :focus-visible) { border-color: currentColor; }
html body.hub-page .solution-reading .arrow { color: var(--coral); font-weight: 700; font-size: 1.2em; line-height: 1; flex: none; }
@media (prefers-reduced-motion: reduce) { html body.hub-page .solution-reading a { transition: none; } }

/* Blue band arrow list (Nov 3, Emily): centered two by two grid with light blue arrows instead of coral dots; one column on phones. Opt in with class="service-list service-list-arrows". */
html body:is(.service-page, .industry-page) .section-blue .service-list.service-list-arrows { display: grid; grid-template-columns: repeat(2, auto); justify-content: center; gap: 14px 56px; width: fit-content; max-width: 100%; margin: 36px auto 0; text-align: left; }
html body:is(.service-page, .industry-page) .section-blue .service-list.service-list-arrows li { padding-left: 30px; font-size: 1.25rem; }
html body:is(.service-page, .industry-page) .section-blue .service-list.service-list-arrows li::before { content: "\2192"; background: none; width: auto; height: auto; border-radius: 0; top: 0; color: #9daaf2; font-weight: 700; font-size: 1.2em; line-height: 1.3; }
@media (max-width: 700px) { html body:is(.service-page, .industry-page) .section-blue .service-list.service-list-arrows { grid-template-columns: 1fr; }
  html body:is(.service-page, .industry-page) .section-blue .service-list.service-list-arrows li { font-size: 1.125rem; } }
