/* DemandStream Digital — Trade hub page (template-trade.php).
   Sits on top of home-dark.css + glowup.css + about.css + service.css (loaded with it).
   Grounds alternate: hero photo under a navy wash · stats solid navy · problem cream · services navy/grain ·
   jobs cream · case studies navy · fit cream (#fit) · reviews navy (#reviews) · faq cream (#faq) ·
   other trades navy/contours · contact navy/grain (#schedule). No red glows on this template. */

/* ---- Hero: full-bleed photo under a navy wash, darkest behind the copy ---- */
.tr-hero { position: relative; overflow: hidden; padding: 190px 0 110px; background-color: #06111D; background-image: url(tex/bg-navy-grain.webp) !important; background-size: cover !important; background-position: center !important; background-repeat: no-repeat !important; }
.tr-hero--photo { background-image: none !important; }
.tr-hero__bg { position: absolute; inset: 0; z-index: 0; }
.tr-hero__bg img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.tr-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 17, 29, 0.92) 0%, rgba(6, 17, 29, 0.88) 60%, rgba(6, 17, 29, 0.7) 100%); }
.tr-hero__inner { position: relative; z-index: 1; max-width: 1300px; }
.tr-hero__title { max-width: 900px; font-size: 54px; line-height: 1.12; }
.tr-hero__lead { max-width: 640px; margin-top: 24px; font-size: 18px; }
.tr-hero .hd-btn--outline { color: var(--hd-white) !important; }

/* ---- Stats: a solid navy band, no photo ---- */
.ds-trade .hd-stats { background-image: none !important; background-color: #0B1E33 !important; }
.ds-trade .hd-stats::before { display: none; }

/* ---- Buttons added under sections ---- */
.tr-cta { display: flex; justify-content: center; margin-top: 40px; }
.tr-cta--start { justify-content: flex-start; margin-top: 24px; }
#faq .tr-cta .hd-btn { --hd-white: #FFFFFF; }

/* ---- Services (the spokes): the staging home-dark service boxes, restored here only.
   glowup.css flattens .hd-service site-wide; this section keeps the original look: centered,
   48px red line icons, red-tinted border, red fill wiping in on hover. ---- */
.tr-services { background-color: #08192B !important; background-image: url(tex/bg-navy-grain.webp) !important; background-size: cover !important; background-position: center !important; background-repeat: no-repeat !important; }
.tr-services .hd-head--split { align-items: flex-start; }
.tr-services .hd-head--split .hd-lead { max-width: 720px; }
.tr-services .hd-services__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; border-left: 0; }
.tr-services .hd-card.hd-service { align-items: center; text-align: center; padding: 40px 28px 34px; border: 1px solid rgba(191, 39, 47, 0.35) !important; border-radius: 4px !important; background: transparent !important; overflow: hidden; z-index: 0; }
.tr-services .hd-service::before { display: block !important; }
.tr-services .hd-service__icon svg { width: 48px; height: 48px; stroke-width: 1.5; }
.tr-services .hd-service__title { margin-top: 22px; font-size: 22px; line-height: 1.35; font-weight: 600; letter-spacing: 0; }
.tr-services .hd-service__text { margin: 14px 0 22px; font-size: 16px; line-height: 1.65; }
.tr-services .hd-card.hd-service:hover { border-color: var(--hd-red) !important; background: transparent !important; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35) !important; }
.tr-services .hd-service:hover .hd-service__icon { transform: rotateY(360deg); color: #FFFFFF; }
.tr-services .hd-service:hover .hd-service__title, .tr-services .hd-service:hover .hd-service__text, .tr-services .hd-service:hover .hd-link { color: #FFFFFF; }
.tr-services__note { margin: 32px 0 0; color: var(--hd-text); font-size: 15.5px; text-align: center; }
.tr-services__note a { color: #FF6B72; font-weight: 600; }

/* ---- Jobs: cream ground, white cards with a kind tag ---- */
.tr-jobs, .tr-how {
  --hd-bg: #EEF1F5; --hd-bg-2: #F7F9FB; --hd-card: #FFFFFF; --hd-navy: #E1E6ED; --hd-line: #D3DAE3;
  --hd-white: #15171B; --hd-text: #3A3E45; --hd-muted: #5F646C; --hd-red-text: #B3222B;
  --lx-hair: rgba(21, 23, 27, 0.12); --lx-hair-strong: rgba(21, 23, 27, 0.24); --lx-surface: rgba(21, 23, 27, 0.03);
  --lx-ink: #15171B; --lx-ink-2: #2C3036; --lx-ink-3: #3A3E45;
  color: var(--hd-text);
  background-image: none !important; background-color: var(--hd-bg) !important;
}
.tr-jobs .hd-btn:not(.hd-btn--outline), .tr-how .hd-btn:not(.hd-btn--outline) { --hd-white: #FFFFFF; --hd-red-text: #FFFFFF; }
.tr-jobs__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.tr-job { padding: 24px 26px; border-radius: 4px; background: #FFFFFF; box-shadow: 0 1px 2px rgba(21, 23, 27, 0.06), 0 12px 30px rgba(21, 23, 27, 0.08); }
.tr-job__kind { display: inline-block; margin-bottom: 12px; color: #B3222B; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.tr-job__name { margin: 0 0 8px; color: #15171B; font-size: 20px; font-weight: 600; line-height: 1.3; }
.tr-job__text { margin: 0; color: #3A3E45; font-size: 15.5px; line-height: 1.65; }

/* ---- Case studies: one or two large cards ---- */

/* ---- Other trades + contact: plain navy grounds (no graphite, no red glow) ---- */
.ds-trade .sv-related { --hd-bg: #08192B; --hd-bg-2: #0B1E33; --hd-card: #0F2740; --hd-line: #1E3550; background-color: #08192B !important; background-image: url(tex/bg-navy-grain.webp) !important; background-size: cover !important; background-position: center right !important; background-repeat: no-repeat !important; }
/* Other trades: heading on top, every trade in a 4-column grid below */
.ds-trade .sv-related .sv-split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
.ds-trade .sv-related .sv-split__copy { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 48px; align-items: end; }
.ds-trade .sv-related .sv-split__copy .hd-lead { max-width: 640px; }
.ds-trade .sv-related .sv-split__copy .hd-btn { grid-column: 2; grid-row: 1 / span 3; align-self: end; margin-top: 0; }
.ds-trade .sv-related__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ds-trade .sv-related__name { font-size: 16px; }
.ds-trade #schedule { background-image: url(tex/bg-navy-grain.webp) !important; background-position: center !important; }

/* ---- Tablet ---- */
@media (max-width: 1100px) {
  .tr-hero__title { font-size: 44px; }
  .tr-jobs__grid, .tr-services .hd-services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ds-trade .sv-related__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ds-trade .sv-related .sv-split__copy { grid-template-columns: minmax(0, 1fr); }
  .ds-trade .sv-related .sv-split__copy .hd-btn { grid-column: 1; grid-row: auto; margin-top: 24px; justify-self: start; }
}
/* ---- Phone ---- */
@media (max-width: 767px) {
  .tr-hero { padding: 140px 0 72px; }
  .tr-hero__bg::after { background: rgba(6, 17, 29, 0.86); }
}
@media (max-width: 640px) {
  .tr-hero__title { font-size: 33px; }
  .tr-hero__lead { font-size: 16.5px; }
  .tr-hero .sv-hero__actions .hd-btn { width: 100%; min-width: 0; }
  .tr-jobs__grid, .tr-services .hd-services__grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .tr-job { padding: 20px; }
  .tr-services .hd-card.hd-service { padding: 32px 22px 28px; }
  .ds-trade .sv-related__list { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .ds-trade .sv-related__link { padding: 14px 18px; }
  .ds-trade .sv-related { background-image: url(tex/grain-light-256.png) !important; background-size: 256px 256px !important; background-repeat: repeat !important; }
}

/* Core 30 sections (2026-11-07): how it works. The when section lives in glowup.css (homepage uses it too). */
.tr-how__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: none; }
.tr-how__step { padding: 28px 26px 26px; border-radius: 4px; background: var(--hd-card, #FFFFFF); box-shadow: 0 1px 2px rgba(21, 23, 27, 0.06), 0 8px 24px -12px rgba(21, 23, 27, 0.18); }
.tr-how__num { display: block; margin-bottom: 14px; color: var(--hd-red-text); font-family: var(--ds-head); font-stretch: 115%; font-variation-settings: "wdth" 115; font-size: 15px; font-weight: 600; letter-spacing: .04em; }
.tr-how__title { margin: 0 0 10px; color: #15171B; font-size: 20px; font-weight: 600; line-height: 1.3; }
.tr-how__step p { margin: 0; color: #3A3E45; font-size: 15.5px; line-height: 1.65; }
.tr-how__cta { margin-top: 40px; }
@media (max-width: 1100px) { .tr-how__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .tr-how__steps { grid-template-columns: minmax(0, 1fr); } .tr-how__step { padding: 22px 20px; } }

/* Unslop pass (2026-11-07): one card radius sitewide (14px), including the staging-style service cards. */
.tr-services .hd-card { border-radius: 4px; }
.ds-trade .ab-head .hd-lead { max-width: 68ch; }

/* What it is / Where we work: heading left, copy right (trade hubs). */
.tr-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px 80px; align-items: start; }
.tr-split__head .hd-title { margin-bottom: 0; }
.tr-split__body .hd-lead { margin-top: 0; }
.tr-split__body p:not(.hd-lead) { margin: 18px 0 0; font-size: 17px; line-height: 1.7; }
.tr-split__cta { margin-top: 30px; }
@media (max-width: 900px) { .tr-split { grid-template-columns: minmax(0, 1fr); } }

/* White grounds on the hubs so neighbours alternate: hero (navy) / what (white) / system (gray) / services, when (navy) /
   problems (white) / how (gray) / where (white) / stats, cases, reviews (navy). Same light tokens as .tr-how. */
.tr-what, .tr-where, .ds-trade .sv-problem, .ds-service .sv-problem {
  --hd-bg: #FFFFFF; --hd-bg-2: #F7F9FB; --hd-card: #FFFFFF; --hd-navy: #E1E6ED; --hd-line: #D3DAE3;
  --hd-white: #15171B; --hd-text: #3A3E45; --hd-muted: #5F646C; --hd-red-text: #B3222B;
  --lx-hair: rgba(21, 23, 27, 0.12); --lx-hair-strong: rgba(21, 23, 27, 0.24); --lx-surface: rgba(21, 23, 27, 0.03);
  --lx-ink: #15171B; --lx-ink-2: #2C3036; --lx-ink-3: #3A3E45;
  color: var(--hd-text);
  background-image: none !important; background-color: #FFFFFF !important;
}
.tr-what .hd-btn:not(.hd-btn--outline), .tr-where .hd-btn:not(.hd-btn--outline), .ds-trade .sv-problem .hd-btn:not(.hd-btn--outline), .ds-service .sv-problem .hd-btn:not(.hd-btn--outline) { --hd-white: #FFFFFF; --hd-red-text: #FFFFFF; }

/* ===== What is <trade> marketing: copy left, the trade's image right (template-parts/trade/what.php) ===== */
.tr-what__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px 72px; align-items: center; }
.tr-what__grid.is-text { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
.tr-what__copy .hd-title { margin-bottom: 22px; }
.tr-what__copy .hd-lead { margin: 0; }
.tr-what__copy p:not(.hd-lead):not(.gu-kicker) { margin: 18px 0 0; font-size: 17px; line-height: 1.7; }
.tr-what__media { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--lx-hair); }
.tr-what__media img { display: block; width: 100%; height: auto; }
@media (max-width: 960px) { .tr-what__grid, .tr-what__grid.is-text { grid-template-columns: minmax(0, 1fr); } }

/* ===== Hub services: 3 linked cards (the only trade pages: SEO, website design, advertising) + an unlinked list of the rest ===== */
.tr-services .hd-services__grid.tr-services__main { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tr-services__more-title { margin: 56px 0 18px; font-family: var(--ds-head); font-size: 20px; font-weight: 700; color: #FFFFFF; }
.tr-services__more { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.tr-services__more li { display: flex; gap: 14px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.14); font-size: 15px; line-height: 1.55; color: var(--hd-text); }
.tr-services__more b { display: block; margin-bottom: 3px; font-size: 16px; color: #FFFFFF; }
.tr-services__more-icon { flex: none; color: #FF6B72; padding-top: 2px; }
.tr-services__more-icon svg { width: 28px; height: 28px; }
@media (max-width: 1100px) { .tr-services__more { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .tr-services .hd-services__grid.tr-services__main { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .tr-services__more { grid-template-columns: minmax(0, 1fr); } .tr-services__more-title { margin-top: 44px; } }
.tr-what__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 32px; }
.tr-what__call { color: var(--hd-text); font-size: 15.5px; }
.tr-what__call a { color: var(--lx-ink); font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--lx-hair-strong); }
.tr-what__call a:hover { border-bottom-color: currentColor; }

/* What is: check points between the definition and the closing paragraph (what_points, Doug 2026-11-10). */
.tr-what__points { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.tr-what__points li { display: flex; gap: 12px; align-items: flex-start; color: var(--lx-ink); font-size: 16.5px; line-height: 1.55; }
.tr-what__points .hd-icon { flex: none; margin-top: 3px; color: var(--hd-red-text); }
