/*
 * Service (2026) template: page-service-2026.php. Loaded only on pages using that template.
 * Hero, consultation band, case studies and author box reuse the industry and case study styles in main.css.
 *
 * Classes for body copy in the page editor:
 *   .svc-snapshot           first block on the page: results card overlapping the hero. Put the main.css
 *                           .case-study-snapshot-card / .case-study-results / .case-study-facts markup inside.
 *   .svc-section            a section; starts with an optional .svc-eyebrow and an h2 (gold underline).
 *   .svc-wide               widen any block from the reading column (760px) to the full container.
 *   .svc-band               full-width light grey band around a section.
 *   .svc-grid .svc-grid-2/3 card grid (stacks on phones). Items: .svc-card, .svc-card-featured.
 *   .svc-tag .svc-price     small label and big price inside a card.
 *   .svc-quick              "Quick answer" callout.
 *   .svc-split              two columns (text beside a visual), vertically centered; stacks on phones.
 *   .svc-prompt             example AI chat: .svc-chat-q (question bubble), .svc-chat-a with .svc-rank rows; .svc-rank.is-top marks the winner.
 *   .svc-steps              numbered process list (ol).
 *   .svc-tabs               tabbed panels, e.g. deliverables by business type (markup example in the Tabs section below;
 *                           edit in the Text tab of the editor so the role/aria attributes are kept).
 *   .svc-note               small grey note text.
 *   .svc-actions            row of buttons.
 */

/* Buttons linking to #cta (or #faq, #pricing) glide down; anchors stop below the sticky header. */
@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}
#cta, #faq, #pricing, .service-body [id] { scroll-margin-top: 90px; }

.service-hero-lead p { margin: 18px 0 0; max-width: 680px; font-size: 20px; line-height: 1.55; color: #d6dce8; }
.service-hero-lead a { color: var(--brand-primary); text-decoration: underline; }
.service-hero .industry-hero-cta { margin-top: 32px; }

.service-body { padding: 56px 0 40px; overflow-x: clip; }
.service-content { font-size: 18px; line-height: 1.7; color: #27324a; }
.service-content > *, .svc-section > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.service-content > .svc-wide, .service-content > .svc-section, .svc-section > .svc-wide, .service-content > .svc-snapshot { max-width: 1100px; }
.service-content > .svc-band { max-width: none; }

.service-content h2 { margin: 0 auto 18px; font-size: 32px; line-height: 1.2; color: #0a2540; text-wrap: balance; }
.service-content h2::after { content: ""; display: block; width: 56px; height: 4px; margin-top: 14px; border-radius: 2px; background-color: var(--brand-primary); }
.service-content > h2:not(:first-child) { margin-top: 56px; }
.service-content > h3:not(:first-child) { margin-top: 32px; }
.service-content h3 { margin: 0 0 10px; font-size: 21px; line-height: 1.3; color: #0a2540; }
.svc-section { margin-top: 64px; }
.svc-eyebrow { margin-bottom: 6px !important; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-link); }

/* Lists in body copy: gold dots, like case studies */
.service-content ul:not(.list-unstyled) { padding: 0; list-style: none; }
.service-content ul:not(.list-unstyled) > li { position: relative; margin-bottom: 10px; padding-left: 28px; }
.service-content ul:not(.list-unstyled) > li::before { content: ""; position: absolute; top: .62em; left: 2px; width: 9px; height: 9px; border-radius: 50%; background-color: var(--brand-primary); }

/* Results card overlapping the hero */
.svc-snapshot { position: relative; z-index: 2; margin-top: calc(-56px - 3.5rem) !important; margin-bottom: 8px !important; }
.svc-snapshot .case-study-stat { font-size: 46px !important; }
.svc-snapshot .case-study-result-label { font-size: 15px; line-height: 1.4; }

/* Full-width band */
.svc-band { margin: 64px calc(50% - 50vw) 0; padding: 56px max(16px, calc(50vw - 550px)) 64px; background-color: #f6f9fc; border-top: 1px solid #e3e7ee; border-bottom: 1px solid #e3e7ee; }
.svc-band > .svc-section:first-child { margin-top: 0; }

/* Cards */
.svc-grid { display: grid; gap: 24px; margin-top: 28px; }
.svc-grid-2 { grid-template-columns: repeat(2, 1fr); }
.svc-grid-3 { grid-template-columns: repeat(3, 1fr); }
.svc-card { display: flex; flex-direction: column; padding: 26px 26px 22px; border: 1px solid #e3e7ee; border-top: 4px solid var(--brand-primary); border-radius: 8px; background-color: #fff; font-size: 16px; line-height: 1.6; }
.svc-card > :last-child { margin-bottom: 0; }
.svc-card p { margin: 0 0 12px; }
.svc-card .btn { margin-top: auto; align-self: flex-start; }
.svc-card-featured { border: 2px solid var(--brand-primary); border-top-width: 6px; box-shadow: 0 16px 40px rgba(10, 37, 64, .12); }
.svc-card ul:not(.list-unstyled) > li { margin-bottom: 6px; }
.svc-tag { display: block; margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-link); }
.svc-price { margin: 4px 0 14px !important; font-size: 40px; font-weight: 700; line-height: 1; color: #335490; }
.svc-price small { font-size: 15px; font-weight: 400; color: #5b6475; }
.svc-ask { padding: 12px 14px; border-radius: 6px; background-color: #f6f9fc; font-style: italic; color: #3d465a; }

/* Tabs (.svc-tabs with data-svc-tabs): buttons role="tab" in .svc-tablist, panels .svc-tabpanel role="tabpanel".
   Without JavaScript the tab row is hidden and every panel shows, stacked. */
.svc-tabs { margin-top: 28px; }
.svc-tablist { display: none; }
/* Folder tabs joined to the panel: the selected tab is white with a gold top edge and opens into the panel below. */
.svc-tabs.is-ready .svc-tablist { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px; margin: 0; padding: 0 12px; border-bottom: 1px solid #d5dbe6; }
.svc-tabs.is-ready .svc-tablist::before { content: "Choose your business type"; flex: 0 0 100%; margin: 0 0 10px -12px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #6b7384; }
.svc-tablist [role="tab"] { flex: 1 1 0; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; margin: 0 0 -1px; padding: 12px 16px; border: 1px solid #d5dbe6; border-bottom-color: #d5dbe6; border-radius: 10px 10px 0 0; font-size: 16px; font-weight: 700; line-height: 1.25; text-align: center; color: #5b6475; background-color: #eef1f6; cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.svc-tablist [role="tab"]::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .55; }
.svc-tablist [role="tab"]:hover { color: #0a2540; background-color: #e2e8f1; }
.svc-tablist [role="tab"][aria-selected="true"] { min-height: 62px; padding-top: 9px; border-top: 4px solid var(--brand-primary); border-bottom-color: #fff; color: #0a2540; background-color: #fff; box-shadow: 0 -6px 16px rgba(10, 37, 64, .06); }
.svc-tablist [role="tab"][aria-selected="true"]::after { opacity: 1; color: var(--text-link); }
.svc-tablist [role="tab"]:focus-visible { outline: 3px solid rgba(212, 151, 83, .55); outline-offset: -3px; }
.svc-tabs.is-ready .svc-tabpanel { border-top: 0; border-color: #d5dbe6; border-radius: 0 0 10px 10px; box-shadow: 0 16px 36px rgba(10, 37, 64, .08); }
.svc-tabpanel { padding: 28px 30px; border: 1px solid #e3e7ee; border-top: 4px solid var(--brand-primary); border-radius: 8px; background-color: #fff; font-size: 16px; line-height: 1.6; }
.svc-tabpanel + .svc-tabpanel { margin-top: 20px; }
.svc-tabs.is-ready .svc-tabpanel + .svc-tabpanel { margin-top: 0; }
.svc-tabpanel[hidden] { display: none; }
.svc-tabpanel .svc-grid { margin-top: 18px; }
.svc-tabpanel h4 { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #6b7384; }

/* Quick answer callout */
.svc-quick { padding: 22px 26px; border-left: 5px solid var(--brand-primary); border-radius: 0 8px 8px 0; background-color: #f6f9fc; font-size: 17px; }
.svc-quick p { margin: 0; }

/* Two columns, text beside a visual, vertically centered (.svc-split) */
.svc-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; max-width: 1100px !important; }
.svc-split h2 { margin-left: 0; }
.svc-split p { margin: 0 0 14px; }

/* Example AI answer, drawn as a chat: .svc-chat-q (buyer bubble) then .svc-chat-a with .svc-rank rows */
.svc-prompt { padding: 24px; border: 1px solid #e3e7ee; border-radius: 12px; background-color: #f6f9fc; box-shadow: 0 16px 40px rgba(10, 37, 64, .10); font-size: 15px; line-height: 1.45; }
.svc-chat-who { display: block; margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #6b7384; }
.svc-chat-q { margin: 0 0 16px 12%; text-align: right; }
.svc-chat-q p { display: inline-block; margin: 0; padding: 12px 16px; border-radius: 14px 14px 4px 14px; font-size: 16px; font-weight: 700; line-height: 1.4; text-align: left; color: #fff; background-color: #1b2a41; }
.svc-chat-a { padding: 16px 16px 8px; border: 1px solid #e3e7ee; border-radius: 4px 14px 14px 14px; background-color: #fff; }
.svc-rank { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-top: 1px solid #eef1f5; }
.svc-chat-who + .svc-rank { border-top: 0; }
.svc-rank-n { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; font-size: 14px; font-weight: 700; line-height: 28px; text-align: center; color: #444b5c; background-color: #eef1f5; }
.svc-rank.is-top { border-radius: 8px; background-color: #fbf4ea; border-top-color: transparent; }
.svc-rank.is-top + .svc-rank { border-top-color: transparent; }
.svc-rank.is-top .svc-rank-n { color: #1f2533; background-color: var(--brand-primary); }
.svc-rank strong { display: block; font-size: 16px; color: #0a2540; }
.svc-rank span { display: block; font-size: 14px; color: #5b6475; }
.svc-prompt-label { margin: 12px 0 0; font-size: 12px; text-align: right; color: #8a93a5; }
.svc-quick-wide { max-width: 1100px !important; margin-top: 40px; }

/* Numbered steps */
.svc-steps { counter-reset: svc; margin: 28px auto 0; padding: 0; list-style: none; }
.svc-steps > li { position: relative; counter-increment: svc; margin: 0 0 22px; padding-left: 58px; }
.svc-steps > li::before { content: counter(svc); position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 50%; font-weight: 700; line-height: 40px; text-align: center; color: #1f2533; background-color: var(--brand-primary); }
.svc-steps > li > strong:first-child { display: block; font-size: 19px; color: #0a2540; }

/* Tables */
.service-content .table { margin: 24px auto 8px; font-size: 16px; background-color: #fff; }
.service-content .table > thead > tr > th { border-bottom-width: 2px; color: #0a2540; background-color: #f1f4f9; }
.service-content .table td:first-child { font-weight: 700; color: #0a2540; }

.svc-note { font-size: 15px !important; line-height: 1.5; color: #5b6475; }
.svc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.svc-actions .btn { margin: 0; }

/* FAQ */
.service-faq { padding: 56px 0 24px; border-top: 1px solid #e3e7ee; }
.service-faq-inner { max-width: 760px; margin: 0 auto; font-size: 18px; line-height: 1.65; color: #27324a; }
.service-faq-inner h2 { margin: 0 0 18px; font-size: 32px; color: #0a2540; }
.service-faq-inner h2::after { content: ""; display: block; width: 56px; height: 4px; margin-top: 14px; border-radius: 2px; background-color: var(--brand-primary); }
.service-faq-inner h3 { margin: 28px 0 8px; font-size: 20px; color: var(--text-link); }

.service-faq + .industry-results, .service-body + .industry-results { margin-top: 40px; }

@media (max-width: 991px) {
	.svc-grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
	.service-hero-lead p { font-size: 18px; }
	.service-body { padding-top: 40px; }
	.service-content { font-size: 17px; }
	.service-content h2, .service-faq-inner h2 { font-size: 26px; }
	.svc-snapshot { margin-top: calc(-40px - 3rem) !important; }
	.svc-snapshot .case-study-stat { font-size: 38px !important; }
	.svc-grid-2, .svc-grid-3, .svc-split { grid-template-columns: 1fr; }
	.svc-split { gap: 28px; }
	/* Phones: tabs stack as a list; the selected one keeps the gold edge, on the left. */
	.svc-tabs.is-ready .svc-tablist { flex-direction: column; align-items: stretch; gap: 6px; padding: 0; border-bottom: 0; }
	.svc-tabs.is-ready .svc-tablist::before { margin-left: 0; }
	.svc-tablist [role="tab"], .svc-tablist [role="tab"][aria-selected="true"] { justify-content: space-between; min-height: 52px; margin: 0; padding: 12px 16px; border: 1px solid #d5dbe6; border-radius: 8px; text-align: left; box-shadow: none; }
	.svc-tablist [role="tab"][aria-selected="true"] { border-left: 5px solid var(--brand-primary); }
	.svc-tablist [role="tab"]::after { transform: rotate(-45deg); }
	.svc-tablist [role="tab"][aria-selected="true"]::after { transform: rotate(45deg) translateY(-2px); }
	.svc-tabs.is-ready .svc-tabpanel { margin-top: 10px; border-top: 1px solid #d5dbe6; border-radius: 8px; }
	.svc-chat-q { margin-left: 0; }
	.svc-section { margin-top: 48px; }
	.svc-band { margin-top: 48px; padding-top: 40px; padding-bottom: 48px; }
	.svc-prompt { padding: 20px 18px; }
}
