/* Ensure body scrolls so footer is reachable */
body.home,
body.front-page {
  overflow-x: clip;
}

body.home,
body.front-page {
	background: #ffffff;
	color: #071d2f;
}

body.sc-home-rendered .elementor {
	display: none !important;
}

body.sc-home-rendered main,
body.sc-home-rendered .site-main {
	margin: 0 !important;
	max-width: none !important;
	padding: 0 !important;
	width: 100% !important;
}

body.sc-home-rendered .site-header {
	background: rgba(255, 255, 255, 0.98);
	border-bottom: 1px solid #edf1f5;
	box-shadow: 0 10px 28px rgba(7, 29, 47, 0.05);
}

.sc-home-page {
	background: #ffffff;
	box-sizing: border-box;
	font-family: Lato, Arial, sans-serif;
	max-width: 100vw;
	overflow-x: clip;
}

.sc-home-page *,
.sc-home-page *::before,
.sc-home-page *::after {
	box-sizing: border-box;
}

.sc-home-topbar {
	background: #071d2f;
	color: #e9f1f7;
	padding: 13px 24px;
	text-align: center;
}

.sc-home-topbar a {
	color: #eef6fc;
	font-size: 0.92rem;
	font-weight: 700;
	text-decoration: none;
}

.sc-home-topbar span {
	color: #d6ad67;
	margin-left: 10px;
}

.sc-home-hero {
	background:
		radial-gradient(circle at 72% 18%, rgba(214, 173, 103, 0.16), transparent 30%),
		linear-gradient(180deg, #ffffff 0%, #ffffff 78%, #f6f9fc 100%);
	min-height: 690px;
	overflow: hidden;
	padding: 86px 24px 58px;
	position: relative;
}

.sc-home-hero-inner {
	align-items: center;
	display: grid;
	gap: 70px;
	grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1.1fr);
	margin: 0 auto;
	max-width: 1220px;
}

.sc-home-copy {
	padding-left: 8px;
	position: relative;
	z-index: 2;
}

.sc-home-eyebrow {
	color: #b58a49;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	margin: 0 0 26px;
	text-transform: uppercase;
}

.sc-home-copy h1 {
	color: #071d2f;
	font-family: Montserrat, Lato, Arial, sans-serif;
	font-size: clamp(3.2rem, 5vw, 5.55rem);
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.03;
	margin: 0;
	max-width: 680px;
}

.sc-home-lede {
	color: #516475;
	font-size: clamp(1.08rem, 1.4vw, 1.28rem);
	line-height: 1.7;
	margin: 30px 0 0;
	max-width: 650px;
}

.sc-home-actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 36px;
}

.sc-home-primary,
.sc-home-secondary {
	align-items: center;
	border-radius: 999px;
	display: inline-flex;
	font-size: 1rem;
	font-weight: 800;
	justify-content: center;
	min-height: 54px;
	min-width: 150px;
	padding: 0 26px;
	text-decoration: none;
	transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.sc-home-primary {
	background: #071d2f;
	box-shadow: 0 18px 34px rgba(7, 29, 47, 0.22);
	color: #ffffff;
}

.sc-home-secondary {
	background: #ffffff;
	border: 1px solid rgba(7, 29, 47, 0.16);
	color: #071d2f;
}

.sc-home-primary:hover,
.sc-home-secondary:hover {
	transform: translateY(-2px);
}

.sc-home-primary:hover {
	background: #0b2c47;
	color: #ffffff;
}

.sc-home-secondary:hover {
	border-color: #d6ad67;
	color: #071d2f;
}

.sc-home-proof {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 34px;
}

.sc-home-proof span {
	background: #f5f8fb;
	border: 1px solid #e4ebf2;
	border-radius: 999px;
	color: #31485c;
	font-size: 0.86rem;
	font-weight: 700;
	padding: 9px 13px;
}

.sc-home-visual {
	min-height: 530px;
	position: relative;
}

.sc-home-ribbon {
	background: linear-gradient(135deg, #071d2f 0%, #0d4d7d 45%, #d6ad67 100%);
	bottom: -30px;
	filter: drop-shadow(0 24px 42px rgba(7, 29, 47, 0.20));
	position: absolute;
	right: 28px;
	top: -64px;
	transform: skewX(-18deg);
	width: 190px;
}

.sc-home-dashboard {
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid rgba(185, 206, 226, 0.72);
	border-radius: 8px;
	box-shadow: 0 28px 74px rgba(7, 29, 47, 0.18), 0 0 0 10px rgba(214, 173, 103, 0.06);
	box-sizing: border-box;
	margin: 64px 0 0 auto;
	max-width: 650px;
	min-height: 420px;
	overflow: hidden;
	padding: 0 22px 22px;
	position: relative;
	width: 100%;
	z-index: 2;
}

.sc-home-dashboard-bar {
	align-items: center;
	border-bottom: 1px solid #e7edf3;
	display: flex;
	gap: 8px;
	height: 48px;
}

.sc-home-dashboard-bar span {
	background: #d6ad67;
	border-radius: 50%;
	height: 10px;
	width: 10px;
}

.sc-home-dashboard-bar span:nth-child(2) {
	background: #9db3c7;
}

.sc-home-dashboard-bar span:nth-child(3) {
	background: #071d2f;
}

.sc-home-dashboard-bar strong {
	color: #071d2f;
	font-size: 0.86rem;
	margin-left: auto;
}

.sc-home-metrics {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	padding: 18px 0;
}

.sc-home-metric {
	background: #f8fafc;
	border: 1px solid #e3eaf1;
	border-radius: 6px;
	padding: 12px;
}

.sc-home-metric span,
.sc-home-score span {
	color: #718394;
	display: block;
	font-size: 0.72rem;
	font-weight: 800;
	margin-bottom: 8px;
	text-transform: uppercase;
}

.sc-home-metric strong {
	color: #071d2f;
	display: block;
	font-size: 1.45rem;
	line-height: 1;
}

.sc-home-metric small {
	color: #6a7d8e;
	display: block;
	font-size: 0.72rem;
	margin-top: 6px;
}

.sc-home-panel-grid {
	display: grid;
	gap: 14px;
	grid-template-columns: 0.85fr 1.15fr;
}

.sc-home-score,
.sc-home-chart,
.sc-home-table {
	background: #ffffff;
	border: 1px solid #e1e8ef;
	border-radius: 8px;
	box-shadow: 0 14px 34px rgba(7, 29, 47, 0.05);
}

.sc-home-score {
	padding: 18px;
}

.sc-home-score strong {
	color: #071d2f;
	font-size: 3rem;
	line-height: 1;
}

.sc-home-score small {
	color: #8ba0b2;
	font-weight: 800;
}

.sc-home-score div {
	align-items: end;
	display: flex;
	gap: 8px;
	height: 96px;
	margin-top: 18px;
}

.sc-home-score i {
	background: linear-gradient(180deg, #d6ad67, #071d2f);
	border-radius: 999px 999px 2px 2px;
	flex: 1;
}

.sc-home-chart {
	background:
		linear-gradient(180deg, rgba(214, 173, 103, 0.13), transparent),
		repeating-linear-gradient(0deg, transparent, transparent 38px, #edf2f6 39px),
		#ffffff;
	min-height: 190px;
	position: relative;
}

.sc-home-chart span {
	background: #0e4e7b;
	border-radius: 999px;
	height: 3px;
	left: 28px;
	position: absolute;
	right: 28px;
	transform-origin: left center;
}

.sc-home-chart span:nth-child(1) {
	top: 118px;
	transform: rotate(-12deg);
}

.sc-home-chart span:nth-child(2) {
	background: #d6ad67;
	top: 86px;
	transform: rotate(8deg);
}

.sc-home-chart span:nth-child(3) {
	background: #7aa1c2;
	top: 140px;
	transform: rotate(-2deg);
}

.sc-home-chart span:nth-child(4) {
	background: rgba(7, 29, 47, 0.18);
	top: 54px;
	transform: rotate(0deg);
}

.sc-home-chart span:nth-child(5) {
	background: rgba(214, 173, 103, 0.34);
	top: 162px;
	transform: rotate(0deg);
}

.sc-home-table {
	margin-top: 14px;
	overflow: hidden;
}

.sc-home-table div {
	align-items: center;
	display: flex;
	justify-content: space-between;
	padding: 13px 16px;
}

.sc-home-table div + div {
	border-top: 1px solid #edf2f6;
}

.sc-home-table strong {
	color: #19344d;
	font-size: 0.86rem;
}

.sc-home-table span {
	background: #eef7f0;
	border-radius: 999px;
	color: #28653d;
	font-size: 0.74rem;
	font-weight: 800;
	padding: 5px 10px;
}

.sc-home-table div:nth-child(2) span {
	background: #fff6e5;
	color: #8b6327;
}

.sc-home-trust {
	background: #ffffff;
	margin: 0 auto;
	max-width: 1180px;
	padding: 42px 24px 72px;
	text-align: center;
}

.sc-home-trust p {
	color: #52677a;
	font-size: 1.02rem;
	font-weight: 800;
	margin: 0 0 22px;
}

.sc-home-trust div {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	justify-content: center;
}

.sc-home-trust span {
	border: 1px solid #e2e9f0;
	border-radius: 999px;
	color: #071d2f;
	font-size: 0.85rem;
	font-weight: 800;
	padding: 10px 16px;
}

@media (max-width: 1024px) {
	.sc-home-hero {
		padding-top: 58px;
	}

	.sc-home-hero-inner {
		gap: 36px;
		grid-template-columns: 1fr;
	}

	.sc-home-copy {
		padding-left: 0;
		text-align: center;
	}

	.sc-home-copy h1,
	.sc-home-lede {
		margin-left: auto;
		margin-right: auto;
	}

	.sc-home-actions,
	.sc-home-proof {
		justify-content: center;
	}

	.sc-home-visual {
		margin: 0 auto;
		max-width: 720px;
		width: 100%;
	}
}

@media (max-width: 720px) {
	.sc-home-topbar {
		padding: 11px 16px;
	}

	.sc-home-topbar a {
		display: block;
		font-size: 0.82rem;
		line-height: 1.45;
		margin: 0 auto;
		max-width: 280px;
	}

	.sc-home-topbar span {
		display: block;
		margin-left: 0;
	}

	.sc-home-hero {
		min-height: auto;
		padding: 42px 18px 38px;
	}

	.sc-home-copy h1 {
		font-size: 2.35rem;
		max-width: 340px;
	}

	.sc-home-lede {
		max-width: 340px;
	}

	.sc-home-actions {
		align-items: stretch;
		flex-direction: column;
		margin-left: auto;
		margin-right: auto;
		max-width: 300px;
		width: 100%;
	}

	.sc-home-primary,
	.sc-home-secondary {
		max-width: 100%;
		min-width: 0;
		width: 100%;
	}

	.sc-home-visual {
		display: none;
	}

	.sc-home-ribbon {
		right: -38px;
		top: 0;
		width: 120px;
	}

	.sc-home-dashboard {
		margin-top: 28px;
		max-width: calc(100vw - 36px);
		padding: 0 14px 14px;
		width: 100%;
	}

	.sc-home-proof {
		align-items: center;
		flex-direction: column;
	}

	.sc-home-trust,
	.sc-home-proof,
	.sc-home-table,
	.sc-home-metrics,
	.sc-home-panel-grid {
		max-width: 100%;
		overflow: hidden;
	}

	.sc-home-metrics,
	.sc-home-panel-grid {
		grid-template-columns: 1fr;
	}
}


/* ═══════════════════════════════════════════════════════════
   CAI NAV — Dropdown + Login/Get Started Buttons
   ═══════════════════════════════════════════════════════════ */

/* ── Dropdown parent trigger ── */
.primary-menu .menu-item-has-children > a {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.primary-menu .menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.primary-menu .menu-item-has-children:hover > a::after,
.primary-menu .menu-item-has-children.is-open > a::after {
  transform: rotate(-135deg) translateY(-2px);
}

/* ── Dropdown panel ── */
.primary-menu .sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 260px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(7, 29, 47, 0.12), 0 2px 8px rgba(7, 29, 47, 0.06);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  z-index: 9999;
  list-style: none;
  margin: 0;
}

.primary-menu .menu-item-has-children:hover .sub-menu,
.primary-menu .menu-item-has-children.is-open .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.primary-menu .sub-menu li {
  list-style: none;
  margin: 0;
}

.primary-menu .sub-menu li a {
  display: flex;
  align-items: flex-start;
  padding: 12px 20px;
  color: #071d2f !important;
  text-decoration: none !important;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.15s;
  border-radius: 0;
}

.primary-menu .sub-menu li a::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d6ad67;
  margin-right: 10px;
  margin-top: 5px;
  flex-shrink: 0;
}

.primary-menu .sub-menu li:first-child a { border-radius: 10px 10px 0 0; }
.primary-menu .sub-menu li:last-child a  { border-radius: 0 0 10px 10px; }

.primary-menu .sub-menu li a:hover {
  background: #f9fafb;
  color: #071d2f !important;
}

/* ── Position parent li ── */
.primary-menu > .menu-item-has-children {
  position: relative;
}

/* ── Login link ── */
.primary-menu .menu-item a[href*="login"],
.primary-menu .menu-item a[href*="wp-login"] {
  color: #071d2f !important;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 50px;
  transition: background 0.2s;
}
.primary-menu .menu-item a[href*="login"]:hover,
.primary-menu .menu-item a[href*="wp-login"]:hover {
  background: #f0f4f8;
}

/* ── Get Started CTA button ── */
.primary-menu .sc-nav-cta-btn > a,
.primary-menu li.sc-nav-cta-btn > a {
  background: #071d2f !important;
  color: #ffffff !important;
  padding: 9px 20px !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  font-size: 0.88rem !important;
  letter-spacing: 0.02em;
  text-decoration: none !important;
  transition: background 0.2s, transform 0.15s !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 10px rgba(7,29,47,0.18);
}
.primary-menu .sc-nav-cta-btn > a:hover,
.primary-menu li.sc-nav-cta-btn > a:hover {
  background: #d6ad67 !important;
  color: #071d2f !important;
  transform: translateY(-1px);
}

/* ===== NAVIGATION LAYOUT — GLOBAL (all pages) ===== */

/* ── Site header: sticky, clean white bar ── */
.site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  background: rgba(255,255,255,0.98) !important;
  border-bottom: 1px solid #edf1f5 !important;
  box-shadow: 0 2px 16px rgba(7,29,47,0.07) !important;
}

/* ── Header inner: logo left + nav right, single row, fixed height ── */
.site-header .header-inner {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  padding: 0 40px !important;
  height: 72px !important;
  min-height: 72px !important;
  max-height: 72px !important;
  max-width: 1400px;
  margin: 0 auto;
  box-sizing: border-box !important;
}

/* ── Logo ── */
.site-header .site-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  height: 72px;
}
.site-header .site-logo img {
  height: 42px !important;
  width: auto !important;
  max-height: 42px !important;
}

/* ── Nav wrapper fills remaining space ── */
.header-navigation-wrapper {
  display: flex !important;
  align-items: center !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  height: 72px;
}

/* ── Primary menu wrapper ── */
.primary-menu-wrapper {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  height: 72px;
}

/* ── Primary menu UL: FORCE single row, no wrap, left-start ── */
.primary-menu-wrapper > ul.primary-menu,
ul.primary-menu {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 2px !important;
  width: 100% !important;
  height: 72px;
  overflow: visible !important;
}

/* ── All nav links: base style ── */
.primary-menu > li.menu-item > a {
  display: flex !important;
  align-items: center;
  padding: 7px 13px !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  color: #071d2f !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  border-radius: 6px !important;
  transition: color 0.2s, background 0.2s !important;
  line-height: 1.4 !important;
  background: transparent !important;
  border: none !important;
}
.primary-menu > li.menu-item > a:hover {
  color: #d6ad67 !important;
  background: rgba(214,173,103,0.08) !important;
}

/* ── Dropdown arrow ── */
.primary-menu .menu-item-has-children > a {
  gap: 5px !important;
  cursor: pointer !important;
}
.primary-menu .menu-item-has-children > a::after {
  content: '' !important;
  display: inline-block !important;
  width: 7px !important;
  height: 7px !important;
  border-right: 2px solid currentColor !important;
  border-bottom: 2px solid currentColor !important;
  transform: rotate(45deg) translateY(-2px) !important;
  transition: transform 0.2s !important;
  flex-shrink: 0 !important;
}
.primary-menu .menu-item-has-children:hover > a::after,
.primary-menu .menu-item-has-children.is-open > a::after {
  transform: rotate(-135deg) translateY(-2px) !important;
}

/* ── RIGHT GROUP: push FAQ + Get Started + Login to far right ── */
.primary-menu > li:nth-child(5),
#menu-item-606,
ul.primary-menu > li:nth-child(5) {
  margin-left: auto !important;
}

/* ── Dropdown sub-menu panel ── */
.primary-menu .menu-item-has-children {
  position: relative !important;
}
.primary-menu .sub-menu {
  position: absolute !important;
  top: calc(100% + 6px) !important;
  left: 0 !important;
  min-width: 240px !important;
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 32px rgba(7,29,47,0.12), 0 2px 8px rgba(7,29,47,0.06) !important;
  padding: 8px 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(-8px) !important;
  transition: all 0.2s ease !important;
  z-index: 9999 !important;
  pointer-events: none !important;
}
.primary-menu .menu-item-has-children:hover > .sub-menu,
.primary-menu .menu-item-has-children.is-open > .sub-menu {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
}
.primary-menu .sub-menu li {
  list-style: none !important;
}
.primary-menu .sub-menu li a {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 10px 20px !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  color: #071d2f !important;
  text-decoration: none !important;
  transition: background 0.15s, color 0.15s !important;
  white-space: nowrap !important;
}
.primary-menu .sub-menu li a::before {
  content: '' !important;
  display: inline-block !important;
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  background: #d6ad67 !important;
  flex-shrink: 0 !important;
}
.primary-menu .sub-menu li a:hover {
  background: rgba(214,173,103,0.1) !important;
  color: #d6ad67 !important;
}

/* ── Login / Logout: bordered pill ── */
.primary-menu > li.menu-item > a[href*="login"],
.primary-menu > li.menu-item > a[href*="logout"],
.primary-menu > li.cai-logout-item > a {
  color: #071d2f !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  padding: 7px 16px !important;
  border: 1.5px solid #d1d9e0 !important;
  border-radius: 50px !important;
  background: transparent !important;
  transition: all 0.2s !important;
}
.primary-menu > li.menu-item > a[href*="login"]:hover,
.primary-menu > li.menu-item > a[href*="logout"]:hover,
.primary-menu > li.cai-logout-item > a:hover {
  border-color: #d6ad67 !important;
  color: #d6ad67 !important;
  background: rgba(214,173,103,0.06) !important;
}

/* ── Get Started: gold pill CTA ── */
.primary-menu .sc-nav-cta-btn > a,
.primary-menu li.sc-nav-cta-btn > a {
  background: #d6ad67 !important;
  color: #071d2f !important;
  padding: 9px 22px !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  font-size: 0.875rem !important;
  letter-spacing: 0.01em !important;
  border: none !important;
  white-space: nowrap !important;
  box-shadow: 0 2px 8px rgba(214,173,103,0.3) !important;
  transition: all 0.2s ease !important;
}
.primary-menu .sc-nav-cta-btn > a:hover,
.primary-menu li.sc-nav-cta-btn > a:hover {
  background: #c49a50 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(214,173,103,0.45) !important;
  transform: translateY(-1px) !important;
}

/* ── Hamburger toggle: hide on desktop, show on mobile ── */
@media (min-width: 1025px) {
  .nav-toggle.mobile-nav-toggle {
    display: none !important;
  }
  .header-navigation-wrapper {
    display: flex !important;
  }
}

/* ── Mobile: hamburger menu ── */
@media (max-width: 1024px) {
  .header-navigation-wrapper {
    display: none !important;
  }
  .nav-toggle {
    display: flex !important;
  }
  .site-header .header-inner {
    height: 64px !important;
    min-height: 64px !important;
    max-height: 64px !important;
    padding: 0 20px !important;
  }
}
