/*
 * Sonic /technicians/ — One Sonic rebuild (Nov 20 2026)
 * Scoped to .sonic-tech so it inherits the campaign landing tokens
 * (sonic-lp.css: Pancetta Pro, #E30613, #2B2E30, 12px radii) without
 * touching the shared landing stylesheet.
 * Bump the enqueue version in inc/sonic-technicians.php on every change.
 */

.sonic-tech { font-family: 'Pancetta Pro', 'Open Sans', Arial, sans-serif; color: #111; }
.sonic-tech img { max-width: 100%; height: auto; }

/* ---------- Hero ---------- */
.sonic-tech .st-hero { padding: 48px 0 64px; }
.sonic-tech .st-hero .sonic-lp-h1 { font-size: clamp(38px, 5vw, 62px); line-height: 1.03; }
.sonic-tech .st-hero .sonic-lp-hero-media img {
	border-radius: 12px;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	width: 100%;
}

/* ---------- Proof points ---------- */
.st-pillars { padding: 56px 0 64px; background: #F8F8F8; }
.sonic-tech .st-pillar-grid { grid-template-columns: repeat(4, 1fr); }
.sonic-tech .sonic-lp-pillar h3 { font-size: 18px; line-height: 1.3; margin: 0 0 8px; }
.sonic-tech .sonic-lp-pillar p { font-size: 15px; line-height: 1.5; color: #555; margin: 0; }

/* ---------- Split sections ---------- */
.st-split { padding: 72px 0; }
.st-split-alt { background: #F8F8F8; }
.st-split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.st-split-media img { border-radius: 12px; width: 100%; }

.st-list {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px 24px;
	margin: 0 0 28px;
	padding: 0;
	list-style: none;
}
.st-list li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.5; color: #333; }
.st-list li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 7px;
	width: 13px;
	height: 7px;
	border-left: 2px solid #E30613;
	border-bottom: 2px solid #E30613;
	transform: rotate(-45deg);
}

/* ---------- Foam system ---------- */
.st-foam { padding: 72px 0; background: #fff; }
.st-foam-head { max-width: 820px; }
.st-foam-sizes { display: block; margin: 8px 0 32px; max-width: 100%; }
.st-foam-prompt { font-size: 20px; font-weight: 600; margin: 0 0 16px; }
.st-foam-chips { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Dark bands ---------- */
.st-band { background: #2B2E30; color: #fff; padding: 72px 0; }
.st-body-light { color: rgba(255, 255, 255, 0.85); }
.st-warranty .sonic-lp-h2 { max-width: 820px; }

.st-steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	list-style: none;
	margin: 0 0 32px;
	padding: 0;
}
.st-steps li { display: flex; gap: 14px; align-items: flex-start; font-size: 16px; line-height: 1.55; color: rgba(255, 255, 255, 0.9); }
.st-step-num {
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #E30613;
	color: #fff;
	font-weight: 700;
	font-size: 15px;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ---------- Customer stories ---------- */
.st-stories { padding: 72px 0; background: #F8F8F8; }
.st-story-card { background: #fff; border: 1px solid #E0E0E0; border-radius: 16px; padding: 40px; }
.st-story-copy .sonic-lp-h2 { font-size: 26px; max-width: 760px; }

/* ---------- Trusted by ---------- */
.st-trusted { padding: 64px 0; background: #fff; }
.st-center { text-align: center; }
.st-logos { display: grid; grid-template-columns: repeat(7, 1fr); gap: 32px; align-items: center; }
.st-logos img { width: 100%; max-height: 44px; object-fit: contain; filter: grayscale(1); opacity: 0.75; }

/* ---------- Closing CTA ---------- */
.st-cta-inner { text-align: center; }
.st-cta .sonic-lp-section-body { margin-left: auto; margin-right: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
	.st-split-grid { grid-template-columns: 1fr; gap: 32px; }
	.sonic-tech .st-pillar-grid { grid-template-columns: repeat(2, 1fr); }
	.st-steps { grid-template-columns: 1fr; }
	.st-logos { grid-template-columns: repeat(4, 1fr); gap: 24px; }
	.st-list { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.sonic-tech .st-pillar-grid { grid-template-columns: 1fr; }
	.st-logos { grid-template-columns: repeat(3, 1fr); }
	.st-story-card { padding: 24px; }
	.st-hero, .st-split, .st-foam, .st-band, .st-stories, .st-trusted { padding: 44px 0; }
}

/* ---------------------------------------------------------------------------
   Pillar icons — use the existing Sonic technician line icons
   (SVG-FOR-TECHNICIAN-PAGE-01..04.svg) instead of generic placeholder glyphs.
   --------------------------------------------------------------------------- */
.sonic-tech .st-pillar-icon-img { width: 56px; height: auto; display: block; margin: 0 0 14px; }

/* ---------------------------------------------------------------------------
   Interactive toolbox callouts. The component's own rules live in
   Appearance > Customize > Additional CSS (global), so nothing here restyles it:
   these rules only keep it working inside this page's grid on narrow screens.
   --------------------------------------------------------------------------- */
.sonic-tech .toolbox-section { grid-template-columns: 1fr 1fr; }
.sonic-tech .toolbox-section__right { padding: 2rem 0 2rem 2.5rem; }

@media (max-width: 900px) {
	.sonic-tech .toolbox-section { grid-template-columns: 1fr; }
	.sonic-tech .toolbox-section__right { padding: 1.5rem 0 0; }
	.sonic-tech .toolbox-callouts { min-height: 420px; padding: 2rem 0; }
	.sonic-tech .toolbox-callouts__image { max-width: 320px; }
}

/* ---------------------------------------------------------------------------
   Proof points — four columns of icon + label + three points, matching the
   live page's structure (icon, then the three points that belong to it).
   --------------------------------------------------------------------------- */
.sonic-tech .st-pillar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; align-items: start; }
.sonic-tech .st-pillar { background: transparent; border: 0; padding: 0; }
.sonic-tech .st-pillar-icon-img { width: 150px; max-width: 100%; height: auto; margin: 0 0 12px; }
.sonic-tech .st-pillar-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #E30613; margin: 0 0 14px; }
.sonic-tech .st-bullets { list-style: disc; margin: 0; padding-left: 18px; }
.sonic-tech .st-bullets li { font-size: 15px; line-height: 1.55; color: #333; margin: 0 0 6px; }
.sonic-tech .st-pillars-cta { margin-top: 36px; }

@media (max-width: 1000px) {
  .sonic-tech .st-pillar-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}
@media (max-width: 560px) {
  .sonic-tech .st-pillar-grid { grid-template-columns: 1fr; }
  .sonic-tech .st-pillar-icon-img { width: 120px; }
}

/* Long CTA labels must wrap instead of overflowing on narrow screens */
.sonic-tech .st-pillars-cta .sonic-lp-btn { max-width: 100%; white-space: normal; text-align: center; }
@media (max-width: 560px) {
  .sonic-tech .st-pillars-cta .sonic-lp-btn { width: 100%; }
}

/* Proof-point columns: match the live page's proportions.
   Prod's icon box is 150x139 including the baked-in wordmark, so its artwork
   is ~86px tall. Ours is wordmark-free, so 88px gives the same optical weight
   instead of a 150px icon that overpowers the column. Bullets follow prod:
   18px, no markers. Label carries the column heading now that the wordmark
   is gone, so it is dark rather than a fourth red element. */
.sonic-tech .st-pillar { display: flex; flex-direction: column; }
.sonic-tech .st-pillar-icon-img { width: 88px; height: auto; margin: 0 0 18px; }
.sonic-tech .st-pillar-eyebrow {
	font-size: 13px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
	color: #111; margin: 0 0 12px; max-width: 24ch; line-height: 1.35;
}
.sonic-tech .st-bullets { list-style: none; margin: 0; padding: 0; }
.sonic-tech .st-bullets li { font-size: 17px; line-height: 1.5; color: #333; margin: 0 0 8px; }
@media (max-width: 560px) {
	.sonic-tech .st-pillar-icon-img { width: 72px; }
	.sonic-tech .st-bullets li { font-size: 16px; }
}

/* Reserve two label lines in every column so the bullet lists start on the
   same baseline; without this, a one-line label leaves its list 18px high. */
.sonic-tech .st-pillar-eyebrow { min-height: 2.7em; }

/* ---------------------------------------------------------------------------
   Proof points — brand-correct bullets and icon scale (Luke, 23 Nov 2026)

   1. Icons were still oversized against the copy; 56px puts the artwork in
      proportion with 17px body text.
   2. Bullets must be Sonic's own marker. The theme styles them site-wide as a
      red › chevron in .wp-content-area ul li:before; this section sits outside
      that wrapper, so it fell back to default discs. Same treatment applied
      here, matching the theme's values exactly.
   --------------------------------------------------------------------------- */
.sonic-tech .st-pillar-icon-img { width: 56px; height: auto; margin: 0 0 16px; }

.sonic-tech .st-bullets { list-style: none; margin: 0; padding: 0; }
.sonic-tech .st-bullets li {
	position: relative;
	padding-left: 15px;
	font-size: 17px;
	line-height: 1.5;
	color: #333;
	margin: 0 0 8px;
}
.sonic-tech .st-bullets li::before {
	content: "\203A";
	position: absolute;
	left: 0;
	top: 0;
	color: #E30613;
	font-weight: 700;
	transform: translateY(-1px);
}

@media (max-width: 560px) {
	.sonic-tech .st-pillar-icon-img { width: 48px; }
}

/* ---------------------------------------------------------------------------
   Proof-point icons as thumbnail tiles (Luke, 23 Nov 2026)
   Stripped of their baked-in wordmarks the icons are thin line art and read
   as empty space on the white/grey band. Give each one a consistent tile so
   the column has a clear visual anchor, the way prod's larger icons do.
   The tile is fixed and the art is inset, so all four stay identical.
--------------------------------------------------------------------------- */
.sonic-tech .st-pillar-icon-img {
	width: 88px;
	height: 88px;
	padding: 19px;
	box-sizing: border-box;
	object-fit: contain;
	background: #fff;
	border: 1px solid #E6E6E6;
	border-radius: 12px;
	box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 10px 24px -14px rgba(0,0,0,.22);
	margin: 0 0 18px;
}
/* Prod's tighter bullet rhythm (line-height 1.4, 0.25em gaps) */
.sonic-tech .st-bullets li { line-height: 1.4; margin: 0 0 4px; }
.sonic-tech .st-bullets li:last-child { margin-bottom: 0; }

@media (max-width: 560px) {
	.sonic-tech .st-pillar-icon-img { width: 76px; height: 76px; padding: 16px; }
}

/* ---------------------------------------------------------------------------
   Proof points as whole cards (Luke, 23 Nov 2026)
   The icon tile alone left the copy floating outside it. The column is now one
   card: icon, heading and bullets together. The inner tile is removed so the
   icon is not boxed twice, and it drops back to an accent size inside the card.
   --------------------------------------------------------------------------- */
.sonic-tech .st-pillar-grid { align-items: stretch; gap: 24px; }

.sonic-tech .st-pillar {
	background: #fff;
	border: 1px solid #E6E6E6;
	border-radius: 16px;
	padding: 30px 26px 28px;
	box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 14px 30px -20px rgba(0,0,0,0.25);
	display: flex;
	flex-direction: column;
	height: 100%;
}

/* icon: accent inside the card, no second box */
.sonic-tech .st-pillar-icon-img {
	width: 52px;
	height: 52px;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	margin: 0 0 20px;
}

.sonic-tech .st-pillar-eyebrow { margin: 0 0 14px; }

@media (max-width: 560px) {
	.sonic-tech .st-pillar { padding: 24px 20px; }
	.sonic-tech .st-pillar-icon-img { width: 44px; height: 44px; margin-bottom: 16px; }
}

/* ---------------------------------------------------------------------------
   Toolbox callouts — block-scoped rules recovered from the page's inline CSS.
   The One Sonic template bypasses the page content, so these were lost: the
   hovered hotspot kept z-index 2 like its siblings, so popovers sank under
   the "+" markers that come later in the DOM. Ported verbatim from production.
   --------------------------------------------------------------------------- */
.toolbox-callouts-block .toolbox-section,
.toolbox-callouts-block .toolbox-section__left,
.toolbox-callouts-block .toolbox-callouts { background: transparent !important; }

.toolbox-callouts-block .toolbox-section { margin-bottom: 3rem !important; }

.toolbox-callouts-block .toolbox-callouts__spotlight {
	position: absolute !important;
	width: 90% !important;
	max-width: 520px !important;
	aspect-ratio: 1 !important;
	border-radius: 50% !important;
	background: #ffffff !important;
	top: 50% !important;
	left: 50% !important;
	transform: translate(-50%, -50%) !important;
	pointer-events: none !important;
	z-index: 0 !important;
}

/* Raise the hovered hotspot so its popover reads above the other "+" markers */
.toolbox-callouts-block .toolbox-callouts__trigger:hover:not(.is-dismissed) { z-index: 10 !important; }

/* Callout position overrides */
.toolbox-callouts-block .toolbox-callouts__trigger--9  { top: 44%; left: 24%; }
.toolbox-callouts-block .toolbox-callouts__trigger--10 { top: 67%; left: 44%; }
.toolbox-callouts-block .toolbox-callouts__trigger--12 { top: 74%; left: 72%; }

/* Hotspots are positioned as a percentage of .toolbox-callouts, so the
   wrapper:image ratio must match production or the markers drift off the
   toolbox. Prod is 640 wrapper / 420 image = 65.625%. My global
   `.sonic-tech img` rule was overriding the component's 420px cap and
   inflating the image to 534px, which is what pushed markers off target. */
.sonic-tech .toolbox-callouts__image {
	width: 65.625%;
	max-width: 420px;
	height: auto;
}
@media (max-width: 760px) {
	.sonic-tech .toolbox-callouts__image { width: 100%; max-width: 420px; }
}

/* Correction to the rule above: the hotspots are a percentage of the WRAPPER,
   so matching the wrapper:image ratio is not enough — the image must render at
   production's absolute size (420px wide / 386px tall inside a 520px-tall
   wrapper), otherwise every marker sits higher up the toolbox. */
.sonic-tech .toolbox-callouts__image {
	width: auto;
	max-width: min(420px, 100%);
	height: auto;
}

/* Final piece of the callout geometry: hotspots are a percentage of
   .toolbox-callouts, and the image is a fixed 420px centred inside it. Prod's
   wrapper is exactly 640px (half of its 1280 container), so the wrapper width
   sets where every marker lands on the photo. Match that column width. */
@media (min-width: 901px) {
	.sonic-tech .toolbox-section { grid-template-columns: 640px minmax(0, 1fr); }
	.sonic-tech .toolbox-callouts { width: 100%; }
}

/* Trusted-by carousel: the theme's Swiper component owns its own sizing, so
   only neutralise this page's blanket img rule and let the component work. */
.sonic-tech .brand-carousel-logo-image { max-width: 100%; height: 100%; object-fit: contain; }
.sonic-tech .brands-carousel-section .brands-carousel-heading { font-family: 'Pancetta Pro', 'Open Sans', Arial, sans-serif; }

/* Match prod's carousel width: its page content is constrained to 1280, while
   this template lets the section run full-bleed, so the logo row started wider
   than the heading above it. */
.sonic-tech .brands-carousel-section { max-width: 1280px; margin-left: auto; margin-right: auto; }

/* Logo carousel arrows must stay inside the carousel box. The theme positions
   them at the edges, and at wide viewports (1920+) they landed 48px outside
   and were clipped by overflow:hidden, so the row looked non-scrollable. */
@media (min-width: 769px) {
	.sonic-tech .brands-carousel .carousel-control.previous { left: 8px; right: auto; }
	.sonic-tech .brands-carousel .carousel-control.next { right: 8px; left: auto; }
}

/* ---------------------------------------------------------------------------
   Mobile: stop the hidden hotspot popovers creating horizontal page scroll.
   They are absolutely positioned and only hidden with opacity/visibility, so
   they still take up layout: on a 390px viewport one extended to 415px and the
   whole page could be dragged sideways, which also let the page steal the
   carousel's horizontal swipe gesture. Clip horizontally only (never vertical)
   so a popover that IS open is not cut off.
   --------------------------------------------------------------------------- */
@media (max-width: 768px) {
	.sonic-tech .toolbox-callouts { overflow-x: clip; }
	.sonic-tech .toolbox-callouts__modal { max-width: min(200px, calc(100vw - 40px)); }
}

/* ---------------------------------------------------------------------------
   Restored production content: Kies video, warranty image, foam banner.
   H1 now carries "Technicians" (prod's H1) while the big headline stays H2.
--------------------------------------------------------------------------- */
.sonic-tech h1.sonic-lp-eyebrow, .sonic-tech h2.sonic-lp-h1 { margin: 0; }
.sonic-tech h2.sonic-lp-h1 { font-size: clamp(36px, 4.4vw, 60px); line-height: 1.02; }

/* Kies story: copy + video side by side */
.sonic-tech .st-story-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 36px; align-items: center; }
.sonic-tech .st-story-video { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.sonic-tech .st-story-video iframe { display: block; width: 100%; height: 100%; border: 0; }

/* Warranty: copy + product cut-out on a white panel (the PNG is transparent) */
.sonic-tech .st-warranty-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; }
.sonic-tech .st-warranty-media { background: #fff; border-radius: 16px; padding: 24px; }
.sonic-tech .st-warranty-media img { display: block; width: 100%; max-width: 420px; height: auto; margin: 0 auto; }

/* Foam: prod's wide drawer image under the size strip */
.sonic-tech .st-foam-banner { display: block; width: 100%; max-width: 1280px; height: auto; border-radius: 16px; margin: 0 0 32px; }

@media (max-width: 900px) {
	.sonic-tech .st-story-card { grid-template-columns: 1fr; gap: 24px; }
	.sonic-tech .st-warranty-grid { grid-template-columns: 1fr; gap: 28px; }
	.sonic-tech .st-warranty-media { order: -1; padding: 16px; }
}

/* ---------------------------------------------------------------------------
   Closing CTA (30 Nov 2026). Was a flat #2B2E30 charcoal band with centred
   text and a red pill: a colour that is not in the Sonic palette and the most
   generic CTA pattern there is. Rebuilt on the brand surface: Sonic red with a
   slight gradient for depth, an inverted white button (the strongest contrast
   on red), one supporting line to set expectations, and a subordinate link for
   people who are not ready to talk yet.
--------------------------------------------------------------------------- */
.sonic-tech .st-cta {
	background: linear-gradient(180deg, #E30613 0%, #C00511 100%);
	color: #fff;
	padding: clamp(64px, 7vw, 96px) 0;
	position: relative;
	overflow: hidden;
}
.sonic-tech .st-cta::before {
	content: "";
	position: absolute;
	left: 50%;
	top: -55%;
	width: 90%;
	height: 110%;
	transform: translateX(-50%);
	background: radial-gradient(closest-side, rgba(255,255,255,.16), rgba(255,255,255,0) 72%);
	pointer-events: none;
}
.sonic-tech .st-cta-inner { position: relative; text-align: center; }
.sonic-tech .st-cta-eyebrow {
	margin: 0 0 14px;
	font-family: 'Pancetta Pro', 'Open Sans', Arial, sans-serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: rgba(255,255,255,.86);
}
.sonic-tech .st-cta-title { margin: 0 auto 16px; max-width: 20ch; }
.sonic-tech .st-cta-sub {
	margin: 0 auto 34px;
	max-width: 54ch;
	font-size: 18px;
	line-height: 1.5;
	color: rgba(255,255,255,.94);
}
.sonic-tech .st-cta-actions { display: flex; gap: 22px; justify-content: center; align-items: center; flex-wrap: wrap; }

/* Inverted button: white on red measures 4.88:1, so it passes AA both ways */
.sonic-tech .st-cta .st-cta-primary {
	width: auto;
	min-height: 52px;
	padding: 15px 34px;
	background: #fff;
	color: #E30613;
	border: 0;
	font-weight: 600;
	transition: transform .18s ease, box-shadow .18s ease;
}
.sonic-tech .st-cta .st-cta-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -14px rgba(0,0,0,.55); }
.sonic-tech .st-cta .st-cta-primary:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.sonic-tech .st-cta-secondary {
	color: #fff;
	font-weight: 500;
	text-decoration: none;
	border-bottom: 1px solid rgba(255,255,255,.55);
	padding-bottom: 2px;
	transition: border-color .18s ease;
}
.sonic-tech .st-cta-secondary:hover { border-color: #fff; }

@media (max-width: 560px) {
	.sonic-tech .st-cta-actions { flex-direction: column; gap: 18px; }
	.sonic-tech .st-cta .st-cta-primary { width: 100%; }
	.sonic-tech .st-cta-sub { font-size: 16px; margin-bottom: 28px; }
}

/* ---------------------------------------------------------------------------
   Closing CTA v2 (30 Nov 2026) — black, not red.
   Measured problem: the red band's gradient bottom met the newsletter bar,
   which is exactly #E30613. Two red blocks of ~330px and 128px stacked with
   no seam read as one slab of red and the newsletter disappears into it.
   The newsletter is a global footer component used on every page, so the
   local section gives way: Sonic black (#000, in the palette) with a faint
   red glow, white type (21:1), and the brand red reserved for the one
   primary button. Progression is now black CTA -> red newsletter -> white
   footer, so red appears once.
--------------------------------------------------------------------------- */
.sonic-tech .st-cta { background: linear-gradient(180deg, #141414 0%, #000 100%); }
.sonic-tech .st-cta::before {
	background: radial-gradient(closest-side, rgba(227,6,19,.30), rgba(227,6,19,0) 72%);
}
.sonic-tech .st-cta-eyebrow { color: rgba(255,255,255,.72); }
.sonic-tech .st-cta-sub { color: rgba(255,255,255,.88); }
.sonic-tech .st-cta .st-cta-primary { background: #E30613; color: #fff; }
.sonic-tech .st-cta .st-cta-primary:hover { background: #C00511; box-shadow: 0 12px 26px -14px rgba(0,0,0,.9); }
.sonic-tech .st-cta-secondary { color: #fff; border-bottom-color: rgba(255,255,255,.45); }
.sonic-tech .st-cta-secondary:hover { border-bottom-color: #fff; }
