/* =====================================================================
   Shift4 Direct — theme styles
   Design tokens mirror the design handoff. Section-block visuals live in
   the s4d-section-blocks plugin; this file styles chrome + non-block pages.
   ===================================================================== */

:root {
	--s4d-navy: #0B1B3A;
	--s4d-navy-deep: #08132A;
	--s4d-navy-border: #22375C;
	--s4d-navy-border-light: #3C577F;
	--s4d-near-black: #101114;
	--s4d-blue: #136EF6;
	--s4d-blue-hover: #0B4FC0;
	--s4d-blue-light: #4E96FF;
	--s4d-blue-tint: #E3ECFD;
	--s4d-light-bg: #F4F7FD;
	--s4d-light-bg-alt: #FAFBFD;
	--s4d-white: #FFFFFF;
	--s4d-border: #E4E8F0;
	--s4d-border-light: #EDF0F5;
	--s4d-ink-900: #1B2536;
	--s4d-ink-700: #3F4859;
	--s4d-ink-600: #4A5468;
	--s4d-ink-500: #5A6478;
	--s4d-ink-400: #7A8496;
	--s4d-ink-300: #8A93A6;
	--s4d-on-navy: #B4C3DE;
	--s4d-on-navy-soft: #8FA3C6;
	--s4d-success: #0B7A3B;
	--s4d-radius-btn: 6px;
	--s4d-radius-card: 12px;
	--s4d-maxw: 1160px;
	--s4d-pad-x: clamp(16px, 3vw, 32px);
	--s4d-font: 'Archivo', Helvetica, Arial, sans-serif;
	--s4d-header-h: 74px;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	font-family: var(--s4d-font);
	color: var(--s4d-near-black);
	background: var(--s4d-white);
	-webkit-font-smoothing: antialiased;
	line-height: 1.55;
}

img { max-width: 100%; height: auto; }

a { color: var(--s4d-blue); }
a:hover { color: var(--s4d-blue-hover); }

html { scroll-behavior: smooth; }

:target { scroll-margin-top: calc(var(--s4d-header-h) + 16px); }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.s4d-skip-link:focus {
	position: fixed; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto;
	clip: auto; clip-path: none; background: var(--s4d-navy); color: #fff;
	padding: 10px 16px; border-radius: 6px;
}

/* ------------------------------------------------------------------ */
/* Buttons                                                            */
/* ------------------------------------------------------------------ */
.s4d-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	font-family: var(--s4d-font); font-weight: 800; font-size: clamp(15px, 1vw, 17px);
	letter-spacing: 0.01em; line-height: 1; text-decoration: none;
	padding: 14px 24px; border-radius: var(--s4d-radius-btn); border: 1px solid transparent;
	cursor: pointer; transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .08s ease;
	min-height: 44px; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
/* Pressed state on every primary CTA, so a tap is acknowledged the instant
   it lands — before a scroll or a request has had a chance to show. */
.s4d-btn:active, .s4d-sticky__cta:active, .s4d-sticky__call:active { transform: translateY(1px) scale(.98); filter: brightness(.92); }

/* Offer copy that jumps to the lead form (main.js initJumps, theme 1.2.2).
   Cursor and pressed state only — the cards keep their design. */
[data-s4d-jump] { cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .08s ease; }
[data-s4d-jump]:active { transform: scale(.985); }
[data-s4d-jump]:focus-visible { outline: 2px solid var(--s4d-blue); outline-offset: 3px; }
/* The form the page just scrolled to pulses for a second. */
#lead-form-a .s4d-form.is-hit, #lead-form-a.is-hit { animation: s4d-hit .9s ease-out; }
@keyframes s4d-hit {
	from { box-shadow: 0 0 0 0 rgba(19, 110, 246, .6); }
	to   { box-shadow: 0 0 0 16px rgba(19, 110, 246, 0); }
}
.s4d-btn--primary { background: var(--s4d-blue); color: #fff; }
.s4d-btn--primary:hover { background: var(--s4d-blue-hover); color: #fff; }
.s4d-btn--outline { background: transparent; border-color: var(--s4d-border); color: var(--s4d-navy); }
.s4d-btn--outline:hover { background: var(--s4d-navy); color: #fff; }
.s4d-btn--outline-dark { background: transparent; border-color: var(--s4d-navy-border-light); color: var(--s4d-navy); }
.s4d-btn--outline-dark:hover { background: var(--s4d-navy); color: #fff; }

/* ------------------------------------------------------------------ */
/* Announcement bar                                                   */
/* ------------------------------------------------------------------ */
.s4d-announce { background: var(--s4d-navy); color: #fff; font-size: 13px; }
.s4d-announce[hidden] { display: none; }
.s4d-announce__inner {
	width: min(var(--s4d-maxw), 100%); margin: 0 auto; padding: 9px var(--s4d-pad-x);
	display: flex; align-items: center; justify-content: center; gap: 14px; position: relative;
}
.s4d-announce__text { margin: 0; text-align: center; }
.s4d-announce__link { color: var(--s4d-blue-light); font-weight: 700; text-decoration: underline; margin-left: 6px; }
.s4d-announce__close {
	position: absolute; right: var(--s4d-pad-x); top: 50%; transform: translateY(-50%);
	background: none; border: 0; color: var(--s4d-on-navy); font-size: 20px; line-height: 1; cursor: pointer;
}
.s4d-announce__close:hover { color: #fff; }

/* ------------------------------------------------------------------ */
/* Header                                                             */
/* ------------------------------------------------------------------ */
.s4d-header {
	position: sticky; top: 0; z-index: 50; background: #fff;
	border-bottom: 1px solid var(--s4d-border);
}
.s4d-header__inner {
	width: min(1280px, 100%); margin: 0 auto;
	padding: clamp(12px, 1.4vw, 18px) var(--s4d-pad-x);
	display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.s4d-header__brand { display: flex; align-items: center; gap: 12px; }
.s4d-header__logo img, .custom-logo { height: clamp(18px, 1.9vw, 25px); width: auto; display: block; }
.s4d-header__divider { width: 1px; height: 26px; background: #DCE2EC; }
.s4d-header__partner {
	font-size: clamp(9px, 1vw, 11px); font-weight: 700; letter-spacing: 0.13em;
	text-transform: uppercase; color: var(--s4d-ink-500); line-height: 1.35;
}
.s4d-header__actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.s4d-header__actions--mobile { display: none; }

.s4d-phone {
	display: inline-flex; align-items: center; gap: 7px; font-size: clamp(13px, 1vw, 15px);
	font-weight: 800; color: var(--s4d-navy); text-decoration: none; white-space: nowrap;
}
.s4d-phone:hover { color: var(--s4d-blue); }
.s4d-phone .s4d-icon-phone { color: var(--s4d-success); flex: none; }
.s4d-phone:hover .s4d-icon-phone { color: currentColor; }
/* Retained: older imported content may still contain the dot markup. */
.s4d-phone__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--s4d-blue); display: inline-block; }

/* ------------------------------------------------------------------ */
/* Desktop call bar (replaces the promo bar above 900px)              */
/* ------------------------------------------------------------------ */
.s4d-callbar { background: var(--s4d-success); color: #fff; font-size: 14px; }
.s4d-callbar__inner {
	width: min(var(--s4d-maxw), 100%); margin: 0 auto; padding: 9px var(--s4d-pad-x);
	display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center;
}
.s4d-callbar .s4d-icon-phone { flex: none; }
.s4d-callbar__text { line-height: 1.35; }
.s4d-callbar__number {
	color: #fff; font-size: 16px; font-weight: 800; text-decoration: none;
	white-space: nowrap; padding: 2px 2px; border-radius: 4px;
}
.s4d-callbar__number:hover, .s4d-callbar__number:focus-visible { text-decoration: underline; }

/* ------------------------------------------------------------------ */
/* Mobile call pill                                                   */
/* ------------------------------------------------------------------ */
.s4d-callpill {
	display: none; margin-left: auto; align-items: center; gap: 6px;
	background: var(--s4d-navy); color: #fff; border-radius: 999px;
	padding: 0 14px; min-height: 44px; font-size: 14px; font-weight: 800;
	text-decoration: none; white-space: nowrap;
}
.s4d-callpill:hover, .s4d-callpill:focus-visible { background: var(--s4d-navy-deep); color: #fff; }
.s4d-callpill .s4d-icon-phone { flex: none; }

/* Nav */
.s4d-nav { display: flex; align-items: center; }
.s4d-nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: clamp(14px, 1.6vw, 26px); }
.s4d-nav__list li { position: relative; }
.s4d-nav__list a {
	text-decoration: none; color: var(--s4d-navy); font-weight: 600; font-size: 15px; white-space: nowrap;
	display: block; padding: 6px 0;
}
.s4d-nav__list a:hover { color: var(--s4d-blue); }
.s4d-nav__list .sub-menu {
	list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0;
	min-width: 240px; background: #fff; border: 1px solid var(--s4d-border); border-radius: 10px;
	box-shadow: 0 18px 44px rgba(11,27,58,0.10); opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .15s ease, transform .15s ease, visibility .15s; z-index: 60;
}
.s4d-nav__list li:hover > .sub-menu,
.s4d-nav__list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.s4d-nav__list .sub-menu a { padding: 8px 10px; border-radius: 6px; font-weight: 500; }
.s4d-nav__list .sub-menu a:hover { background: var(--s4d-light-bg); }
.menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }

.s4d-nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; margin-left: auto; }
.s4d-nav-toggle__bar, .s4d-nav-toggle__bar::before, .s4d-nav-toggle__bar::after {
	display: block; width: 24px; height: 2px; background: var(--s4d-navy); position: relative; transition: transform .2s ease;
}
.s4d-nav-toggle__bar::before, .s4d-nav-toggle__bar::after { content: ""; position: absolute; left: 0; }
.s4d-nav-toggle__bar::before { top: -7px; }
.s4d-nav-toggle__bar::after { top: 7px; }

@media (max-width: 900px) {
	.s4d-nav-toggle { display: block; }
	.s4d-header__actions--desktop { display: none; }
	.s4d-nav {
		flex-basis: 100%; display: none; order: 5;
	}
	.s4d-nav.is-open { display: block; }
	.s4d-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.s4d-nav__list > li { border-bottom: 1px solid var(--s4d-border-light); }
	.s4d-nav__list .sub-menu {
		position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
		border: 0; padding: 0 0 8px 12px; min-width: 0;
	}
	.s4d-header__actions--mobile { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 14px; }
	.s4d-nav-toggle[aria-expanded="true"] .s4d-nav-toggle__bar { background: transparent; }
	.s4d-nav-toggle[aria-expanded="true"] .s4d-nav-toggle__bar::before { transform: rotate(45deg); top: 0; }
	.s4d-nav-toggle[aria-expanded="true"] .s4d-nav-toggle__bar::after { transform: rotate(-45deg); top: 0; }
}

/* ------------------------------------------------------------------ */
/* Breadcrumb                                                         */
/* ------------------------------------------------------------------ */
.s4d-crumbs { background: #fff; border-bottom: 1px solid var(--s4d-border-light); }
.s4d-crumbs__inner { width: min(var(--s4d-maxw), 100%); margin: 0 auto; padding: clamp(10px, 1vw, 14px) var(--s4d-pad-x); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; }
.s4d-crumbs__sep { color: var(--s4d-ink-300); }
.s4d-crumbs__link { color: var(--s4d-ink-500); text-decoration: none; }
.s4d-crumbs__link:hover { color: var(--s4d-blue); }
.s4d-crumbs__current { color: var(--s4d-navy); font-weight: 700; }

/* ------------------------------------------------------------------ */
/* Generic page + prose                                               */
/* ------------------------------------------------------------------ */
.s4d-page { padding: clamp(44px, 5vw, 88px) var(--s4d-pad-x); }
.s4d-page__inner { width: min(760px, 100%); margin: 0 auto; }
.s4d-page__title { font-size: clamp(30px, 4vw, 46px); font-weight: 800; letter-spacing: -0.025em; color: var(--s4d-navy); margin: 0 0 24px; }

.s4d-prose { color: var(--s4d-ink-600); font-size: 16px; line-height: 1.7; }
.s4d-prose h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -0.02em; color: var(--s4d-navy); margin: 40px 0 12px; }
.s4d-prose h3 { font-size: 20px; font-weight: 800; color: var(--s4d-navy); margin: 28px 0 8px; }
.s4d-prose p { margin: 0 0 16px; }
.s4d-prose ul, .s4d-prose ol { margin: 0 0 16px; padding-left: 22px; }
.s4d-prose li { margin: 6px 0; }
.s4d-prose a { text-decoration: underline; }
.s4d-prose table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15px; }
.s4d-prose th, .s4d-prose td { border: 1px solid var(--s4d-border); padding: 10px 12px; text-align: left; }
.s4d-prose th { background: var(--s4d-light-bg); color: var(--s4d-navy); }

/* ------------------------------------------------------------------ */
/* Blog                                                               */
/* ------------------------------------------------------------------ */
.s4d-archive, .s4d-single__inner { padding: clamp(44px, 5vw, 80px) var(--s4d-pad-x); }
.s4d-archive__inner { width: min(var(--s4d-maxw), 100%); margin: 0 auto; }
.s4d-archive__title { font-size: clamp(28px, 4vw, 42px); font-weight: 800; color: var(--s4d-navy); letter-spacing: -0.025em; margin: 0 0 28px; }
.s4d-postgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(16px, 2vw, 28px); }
.s4d-card-post { border: 1px solid var(--s4d-border); border-radius: var(--s4d-radius-card); overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.s4d-card-post__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.s4d-card-post__body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.s4d-post-meta { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--s4d-ink-400); }
.s4d-card-post__title { font-size: 20px; font-weight: 800; line-height: 1.25; margin: 0; }
.s4d-card-post__title a { color: var(--s4d-navy); text-decoration: none; }
.s4d-card-post__title a:hover { color: var(--s4d-blue); }
.s4d-card-post__excerpt { color: var(--s4d-ink-500); font-size: 15px; margin: 0; flex: 1; }
.s4d-card-post__more { font-weight: 700; text-decoration: none; }

.s4d-single__inner { width: min(760px, 100%); margin: 0 auto; }
.s4d-single__title { font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; letter-spacing: -0.025em; color: var(--s4d-navy); margin: 8px 0 0; line-height: 1.1; }
.s4d-single__media { margin: 28px 0 0; }
.s4d-single__media img { border-radius: var(--s4d-radius-card); }
.s4d-single__content { margin-top: 28px; }
.s4d-single__cta { background: var(--s4d-navy); color: #fff; padding: clamp(44px, 5vw, 72px) var(--s4d-pad-x); text-align: center; }
.s4d-single__cta-inner { width: min(640px, 100%); margin: 0 auto; }
.s4d-single__cta h2 { color: #fff; font-size: clamp(24px, 3vw, 34px); margin: 0 0 10px; }
.s4d-single__cta p { color: var(--s4d-on-navy); margin: 0 0 24px; }

/* Mid-article lead form.                                                      */
/*                                                                             */
/* Sits INSIDE .s4d-prose, so it inherits the 16px/1.7 body type meant for      */
/* running text. The form card sets its own type, but the wrapper must not      */
/* widen the reading column or the article visibly steps out and back in        */
/* around it. Generous vertical margins instead, so it reads as a deliberate    */
/* break in the piece rather than an interruption of the paragraph above.       */
.s4d-single__midform { margin: 40px 0; }
/* The card caps itself at 460px, which reads as a stray column left-aligned
   against body text — centre it so it sits as a deliberate break. */
.s4d-single__midform .s4d-formwrap { margin-left: auto; margin-right: auto; }

/* The listing CTA reuses the post CTA's navy band; the only difference is that */
/* it closes a page of headlines rather than one article.                       */
.s4d-single__cta--listing { margin-top: 8px; }

/* ------------------------------------------------------------------ */
/* Thank-you + 404                                                    */
/* ------------------------------------------------------------------ */
.s4d-thankyou, .s4d-404 { padding: clamp(60px, 8vw, 120px) var(--s4d-pad-x); background: var(--s4d-light-bg); }
.s4d-thankyou__inner, .s4d-404__inner { width: min(640px, 100%); margin: 0 auto; text-align: center; }
.s4d-thankyou__badge { display: inline-block; background: var(--s4d-blue-tint); color: var(--s4d-blue-hover); font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; padding: 8px 14px; border-radius: 100px; }
.s4d-thankyou__title { font-size: clamp(28px, 4vw, 44px); font-weight: 800; color: var(--s4d-navy); margin: 20px 0 12px; letter-spacing: -0.025em; }
.s4d-thankyou__content { color: var(--s4d-ink-600); }
.s4d-thankyou__actions, .s4d-404__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.s4d-404__code { font-size: clamp(60px, 12vw, 120px); font-weight: 800; color: var(--s4d-blue); letter-spacing: -0.04em; line-height: 1; }
.s4d-404__title { font-size: clamp(24px, 3.4vw, 38px); font-weight: 800; color: var(--s4d-navy); margin: 12px 0; }

/* Search form */
.search-form { display: flex; gap: 8px; max-width: 420px; margin: 20px auto 0; }
.search-form .search-field { flex: 1; padding: 12px 14px; border: 1px solid var(--s4d-border); border-radius: 7px; font-size: 15px; font-family: var(--s4d-font); }
.search-form .search-submit { padding: 12px 18px; background: var(--s4d-blue); color: #fff; border: 0; border-radius: 7px; font-weight: 700; cursor: pointer; }

/* ------------------------------------------------------------------ */
/* Footer                                                             */
/* ------------------------------------------------------------------ */
.s4d-footer { background: var(--s4d-navy-deep); color: var(--s4d-on-navy-soft); padding: clamp(32px, 3.6vw, 56px) var(--s4d-pad-x) 0; }
.s4d-footer__inner { width: min(var(--s4d-maxw), 100%); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 2fr; gap: clamp(28px, 4vw, 64px); padding-bottom: 40px; }
.s4d-footer__logo img { height: 24px; width: auto; }
.s4d-footer__entity { font-size: 14px; font-weight: 700; color: #fff; letter-spacing: 0.01em; margin: 12px 0 0; }
.s4d-footer__disclaimer { font-size: clamp(12px, 1vw, 14px); line-height: 1.65; max-width: 38em; margin: 10px 0 18px; }
.s4d-footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.s4d-footer__heading { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; color: #fff; margin: 0 0 14px; }
.s4d-footer__heading--legal { margin-top: 26px; }
.s4d-footer__list { list-style: none; margin: 0; padding: 0; }
.s4d-footer__list li { margin: 8px 0; }
.s4d-footer__list a, .s4d-footer__phone { color: var(--s4d-on-navy-soft); text-decoration: none; font-size: 14px; }
.s4d-footer__list a:hover, .s4d-footer__phone:hover { color: #fff; }
.s4d-footer__phone .s4d-phone__dot { display: none; }
.s4d-social { display: flex; gap: 10px; margin-top: 18px; }
.s4d-social__link { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--s4d-navy-border); display: inline-flex; align-items: center; justify-content: center; color: var(--s4d-on-navy-soft); font-size: 12px; font-weight: 700; text-decoration: none; }
.s4d-social__link:hover { color: #fff; border-color: var(--s4d-blue); }
.s4d-footer__bottom { border-top: 1px solid #172644; }
.s4d-footer__bottom p { width: min(var(--s4d-maxw), 100%); margin: 0 auto; padding: 18px 0; font-size: 12px; line-height: 1.6; color: #8296BC; }

@media (max-width: 782px) {
	.s4d-footer__inner { grid-template-columns: 1fr; }
	.s4d-footer__cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
	.s4d-footer__cols { grid-template-columns: 1fr; }
}

/* Pagination */
.pagination, .nav-links { display: flex; gap: 8px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--s4d-border); border-radius: 6px; text-decoration: none; color: var(--s4d-navy); }
.pagination .page-numbers.current { background: var(--s4d-blue); color: #fff; border-color: var(--s4d-blue); }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}

/* ------------------------------------------------------------------ */
/* Sticky bottom CTA banner                                           */
/* ------------------------------------------------------------------ */
.s4d-sticky {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
	background: #fff; border-top: 2px solid var(--s4d-blue);
	box-shadow: 0 -8px 28px rgba(11, 27, 58, 0.10);
	transform: translateY(100%); transition: transform .25s ease-out, visibility .25s;
	padding-bottom: env(safe-area-inset-bottom);
	/* visibility, not just transform: an off-screen bar that is still painted
	   stays in the tab order, so keyboard users would tab into a bar they
	   cannot see. visibility:hidden takes it out until it is actually shown. */
	visibility: hidden;
}
.s4d-sticky[hidden] { display: none; }
.s4d-sticky.is-visible { transform: translateY(0); visibility: visible; }
.s4d-sticky__inner {
	width: min(var(--s4d-maxw), 100%); margin: 0 auto;
	padding: 11px var(--s4d-pad-x);
	display: flex; align-items: center; gap: 16px;
}
.s4d-sticky__logo { height: 22px; width: auto; flex: none; display: block; }
.s4d-sticky__tagline { margin: 0; font-size: 14px; color: var(--s4d-ink-500); line-height: 1.35; }
.s4d-sticky__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.s4d-sticky__call,
.s4d-sticky__cta {
	display: inline-flex; align-items: center; justify-content: center; gap: 7px;
	border-radius: var(--s4d-radius-btn); font-size: 14px; text-decoration: none;
	white-space: nowrap; min-height: 44px;
}
.s4d-sticky__call {
	border: 1.5px solid var(--s4d-navy); color: var(--s4d-navy); font-weight: 800; padding: 0 16px;
}
.s4d-sticky__call:hover, .s4d-sticky__call:focus-visible { background: var(--s4d-navy); color: #fff; }
.s4d-sticky__cta {
	background: var(--s4d-blue); color: #fff; font-weight: 700; padding: 0 20px;
}
.s4d-sticky__cta:hover, .s4d-sticky__cta:focus-visible { background: var(--s4d-blue-hover); color: #fff; }

.s4d-sticky__close {
	flex: none; width: 44px; height: 44px; margin-right: calc(var(--s4d-pad-x) * -0.5);
	background: none; border: 0; cursor: pointer;
	color: var(--s4d-ink-400); font-size: 22px; line-height: 1;
}
.s4d-sticky__close:hover { color: var(--s4d-navy); }

/* ------------------------------------------------------------------ */
/* Header/banner responsive split                                     */
/*                                                                    */
/* The promo announcement bar is the MOBILE message and the green call */
/* bar is the DESKTOP one. Both ship in every response; only CSS picks */
/* between them, because the HTML is edge-cached (CONTEXT §12).        */
/* ------------------------------------------------------------------ */
@media (min-width: 901px) {
	.s4d-announce { display: none; }
	.s4d-header__actions--desktop { gap: 20px; }
}

/* ------------------------------------------------------------------ */
/* Phone hours (Settings → S4D Attribution)                            */
/*                                                                     */
/* Outside Mon–Fri business hours (Pacific), the attribution plugin's  */
/* head script puts `s4d-phone-off` on <html> BEFORE first paint and   */
/* re-checks every minute. Everything below is the CSS side of that    */
/* deal: hide every phone CTA, and put the promo announcement bar back */
/* on desktop where the green call bar normally replaces it. This MUST */
/* stay client-side — the HTML is edge-cached for up to 30 days        */
/* (CONTEXT §12), so PHP can never decide it.                          */
/* ------------------------------------------------------------------ */
html.s4d-phone-off .s4d-callbar,
html.s4d-phone-off a[href^="tel:"] { display: none !important; }

/* Copy that only makes sense on one side of the gate.                  */
/*                                                                      */
/* Hiding the call button was only half the job: /thank-you/ went on     */
/* saying "If you would rather talk now, call us any time" beside a      */
/* button that was no longer there, leaving "Back to home" as the only   */
/* thing a visitor could do. Both sentences ship in the HTML and CSS     */
/* picks between them, for the same reason the gate itself is CSS — the  */
/* page is edge-cached for up to 30 days, so PHP cannot know which is    */
/* true when it is read. Because the class lands on <html> from the head */
/* script BEFORE first paint, and the off-hours copy starts hidden,      */
/* neither sentence flashes.                                            */
/* `revert` restores the element's OWN default display, so a <span> comes back  */
/* inline and a <p> as a block. That is why these two classes belong on plain   */
/* text elements only — on a flex or grid container revert would drop the       */
/* author's display value along with the hiding.                                */
.s4d-phone-off-only { display: none; }
html.s4d-phone-off .s4d-phone-on-only { display: none; }
html.s4d-phone-off .s4d-phone-off-only { display: revert; }

@media (min-width: 901px) {
	/* Revert to the promo bar — but never resurrect one the visitor
	   dismissed ([hidden] is set by main.js on dismiss). */
	html.s4d-phone-off .s4d-announce { display: block; }
	html.s4d-phone-off .s4d-announce[hidden] { display: none; }
}

/* The header row wraps somewhere around 1040px, where brand + nav + phone +
   CTA stop fitting on one line. Between the mobile breakpoint and that point,
   tighten the nav and CTA to delay the wrap, and leave the actions right-
   aligned (their default margin-left:auto) so a wrapped second row still reads
   as deliberate rather than stranded on the left. */
@media (min-width: 901px) and (max-width: 1099px) {
	.s4d-nav__list { gap: 16px; }
	.s4d-nav__list a { font-size: 14px; }
	.s4d-header__actions--desktop .s4d-btn { padding: 12px 16px; font-size: 15px; }
}

/* Mockup 1e in full: nav pushed right, then the phone, then the CTA — applied
   only where the whole row demonstrably fits on one line. */
@media (min-width: 1100px) {
	.s4d-nav { margin-left: auto; }
	.s4d-header__actions--desktop { margin-left: 0; }
}

@media (max-width: 900px) {
	.s4d-callbar { display: none; }
	.s4d-callpill { display: inline-flex; }

	/* Brand absorbs the free space so the pill and toggle stay right-aligned
	   whether or not a phone number is set. */
	.s4d-header__brand { margin-right: auto; }
	.s4d-callpill, .s4d-nav-toggle { margin-left: 0; }

	/* 1h: the reseller caption is dropped on mobile only — it remains in the
	   desktop header and in the footer, which carries the legal disclosure. */
	.s4d-header__partner, .s4d-header__divider { display: none; }

	/* The header phone repeat is redundant once the pill is present. */
	.s4d-header__actions--mobile .s4d-phone { display: none; }

	/* The promo bar is now mobile-only, so its close button is always sharing a
	   narrow line with the copy. Reserve the gutter it sits in. */
	.s4d-announce__inner { padding-right: calc(var(--s4d-pad-x) + 22px); }
}

/* Small handsets (320–400px): logo + full-number pill + hamburger is a tight
   row. Tighten the gaps and the pill rather than dropping the number — 1h is
   specifically the variation where the whole number stays visible. */
@media (max-width: 400px) {
	.s4d-header__inner { gap: 8px; padding-left: 14px; padding-right: 14px; }
	.s4d-callpill { font-size: 13px; padding: 0 11px; gap: 5px; }
	.s4d-nav-toggle { padding: 10px 4px; }

	/* 1p: two full-width buttons, call on the left. */
	.s4d-sticky { border-top: 1px solid var(--s4d-border); box-shadow: 0 -8px 24px rgba(11, 27, 58, 0.12); }
	.s4d-sticky__inner { gap: 8px; padding: 10px 12px; }
	.s4d-sticky__logo, .s4d-sticky__tagline { display: none; }
	.s4d-sticky__actions { margin-left: 0; gap: 8px; flex: 1; }
	.s4d-sticky__call { flex: 1; border-color: var(--s4d-success); color: var(--s4d-success); padding: 0 8px; }
	.s4d-sticky__call:hover, .s4d-sticky__call:focus-visible { background: var(--s4d-success); color: #fff; }
	.s4d-sticky__cta { flex: 1.3; padding: 0 8px; }
	.s4d-sticky__close { width: 36px; height: 44px; margin-right: -6px; }
}

@media (prefers-reduced-motion: reduce) {
	.s4d-sticky { transition: none; }
	#lead-form-a .s4d-form.is-hit, #lead-form-a.is-hit { animation: none; outline: 3px solid var(--s4d-blue); }
	.s4d-btn:active, .s4d-sticky__cta:active, .s4d-sticky__call:active, [data-s4d-jump]:active { transform: none; }
}
