/* InnerView redesign: header + footer. Values follow the "Styles" and "Nav bar" boards. */

:root {
	--iv-navy: #00406E;
	--iv-navy-hover: #0A5A96;
	--iv-slate: #203247;
	--iv-accent: #25ADE3;
	--iv-text: #4D4D4D;
	--iv-line: #CEE6F8;
	--iv-line-2: #BDDEF5;
	--iv-tint: #EEF6FC;
	--iv-white: #FFFFFF;
	--iv-ease: cubic-bezier(.2, .8, .2, 1);
	--iv-font: Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
	--iv-float-top: 12px;
}

body.admin-bar { --iv-float-top: 44px; }
@media (max-width: 782px) { body.admin-bar { --iv-float-top: 58px; } }

.iv-top, .iv-sheet, .iv-next, .iv-foot-wrap { font-family: var(--iv-font); color: var(--iv-slate); }
.iv-top *, .iv-sheet *, .iv-next *, .iv-foot-wrap * { box-sizing: border-box; }
.iv-top a, .iv-sheet a, .iv-next a, .iv-foot-wrap a { text-decoration: none; }
:is(.iv-top, .iv-sheet, .iv-next, .iv-foot-wrap) :is(a, button):focus-visible { outline: 3px solid var(--iv-accent); outline-offset: 3px; }

/* Buttons reset (Hello's reset styles every <button>) */
.iv-top button, .iv-sheet button {
	font: inherit; margin: 0; border: 0; background: none; color: inherit; cursor: pointer;
}

/* ---------- Frame + notched tab ---------- */

.iv-top { padding: 16px 16px 0; background: var(--iv-white); }
.iv-frame { position: relative; border-radius: 32px 32px 0 0; background-color: var(--iv-tint); }
.iv-frame--band { min-height: 112px; border-radius: 32px; }

.iv-tab {
	position: absolute; top: 0; left: 50%; transform: translateX(-50%); z-index: 60;
	width: min(1240px, calc(100% - 96px));
	background: var(--iv-white); border-radius: 0 0 24px 24px;
}
/* concave corners where the tab meets the frame */
.iv-tab::before, .iv-tab::after { content: ""; position: absolute; top: 0; width: 28px; height: 28px; pointer-events: none; }
.iv-tab::before { left: -28px; background: radial-gradient(circle at 0 100%, transparent 27.5px, var(--iv-white) 28px); }
.iv-tab::after { right: -28px; background: radial-gradient(circle at 100% 100%, transparent 27.5px, var(--iv-white) 28px); }

.iv-nav {
	display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; column-gap: 40px;
	min-height: 80px; padding: 12px 32px;
}
.iv-links { display: flex; align-items: center; gap: 24px; }
.iv-logo-link { display: flex; align-items: center; justify-self: center; }
.iv-logo { display: block; width: 150px; height: auto; transition: width .26s var(--iv-ease); }
/* Shiny sweep across the logo (after React Bits "Shiny Text"): a soft white band slides over the
   wordmark every 5s, masked to the logo's own shape so it only lights the letters. */
.iv-logo-link { position: relative; }
.iv-logo-link::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(120deg, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, .85) 50%, rgba(255, 255, 255, 0) 60%) 100% 0 / 200% 100% no-repeat;
	-webkit-mask: var(--iv-logo) center / contain no-repeat; mask: var(--iv-logo) center / contain no-repeat;
	animation: iv-logo-shine 5s linear infinite;
}
@keyframes iv-logo-shine { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .iv-logo-link::after { animation: none; display: none; } }
.iv-actions { justify-self: end; display: flex; align-items: center; gap: 24px; }

/* Nav links */
.iv-nl {
	position: relative; z-index: 0; display: inline-flex; align-items: center; gap: 8px;
	padding: 8px 0; color: var(--iv-slate); font-size: 15px; font-weight: 500; line-height: 1.2; white-space: nowrap;
	transition: color .18s ease;
}
.iv-nl::before {
	content: ""; position: absolute; inset: 0 -10px; z-index: -1; border-radius: 10px; background: var(--iv-tint);
	opacity: 0; transform: scale(.92); transition: opacity .18s ease, transform .22s var(--iv-ease);
}
.iv-top .iv-nl:hover, .iv-nl[aria-expanded="true"], .iv-ni:focus-within > .iv-nl, .iv-nl[aria-current] { color: var(--iv-navy); }
.iv-nl:hover::before, .iv-nl[aria-expanded="true"]::before, .iv-ni:hover > .iv-nl::before { opacity: 1; transform: none; }
.iv-chev { flex-shrink: 0; transition: transform .2s ease; }
.iv-ni { position: relative; }
.iv-ni:hover .iv-chev, .iv-nl[aria-expanded="true"] .iv-chev { transform: rotate(180deg); }

/* Dropdowns: open on hover or focus, fade + rise 6px in 180ms */
.iv-dd {
	position: absolute; top: 100%; left: -10px; padding-top: 22px; z-index: 20;
	opacity: 0; visibility: hidden; transform: translateY(-6px);
	transition: opacity .18s ease, transform .22s var(--iv-ease), visibility .18s;
}
.iv-ni:hover .iv-dd, .iv-ni:focus-within .iv-dd, .iv-ni.is-open .iv-dd { opacity: 1; visibility: visible; transform: none; }
.iv-ni.is-closed .iv-dd { opacity: 0; visibility: hidden; transform: translateY(-6px); }
.iv-dd-panel {
	width: 260px; padding: 8px; display: flex; flex-direction: column;
	background: rgba(255, 255, 255, .92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
	border: 1px solid var(--iv-line); border-radius: 16px; box-shadow: 0 24px 60px -20px rgba(32, 50, 71, .28);
}
.iv-ddi { display: flex; padding: 12px; border-radius: 10px; color: var(--iv-slate); font-size: 15px; font-weight: 500; transition: background .15s ease, color .15s ease; }
.iv-top .iv-ddi:hover, .iv-ddi[aria-current] { background: var(--iv-tint); color: var(--iv-navy); }

/* Book a Demo: 56px, radius 16, arrow tile */
.iv-cta {
	display: inline-flex; align-items: center; gap: 12px; height: 46px; padding: 0 8px 0 20px; border-radius: 14px;
	background: var(--iv-navy); color: var(--iv-white); font-family: var(--iv-font); font-size: 15px; font-weight: 600; white-space: nowrap;
	transition: background .2s ease, transform .2s var(--iv-ease), box-shadow .2s ease;
}
.iv-cta-arr {
	width: 30px; height: 30px; border-radius: 9px; background: rgba(255, 255, 255, .16);
	display: inline-flex; align-items: center; justify-content: center;
	transition: transform .22s var(--iv-ease), background .2s ease;
}
:is(.iv-top, .iv-next) .iv-cta:hover { background: var(--iv-navy-hover); color: var(--iv-white); transform: translateY(-1px); box-shadow: 0 8px 24px -8px rgba(0, 64, 110, .55); }
.iv-cta:hover .iv-cta-arr { background: rgba(255, 255, 255, .28); transform: translateX(3px); }
.iv-cta:active { transform: scale(.98); }

.iv-burger {
	display: none; width: 44px; height: 44px; border-radius: 12px; background: var(--iv-tint) !important; color: var(--iv-slate) !important;
	align-items: center; justify-content: center; padding: 0 !important;
}

/* ---------- Floating state (scrolled past the frame) ---------- */

.iv-tab.is-floating {
	position: fixed; top: var(--iv-float-top);
	width: min(1240px, calc(100% - 32px)); border-radius: 22px;
	background: rgba(255, 255, 255, .72); backdrop-filter: blur(16px) saturate(180%); -webkit-backdrop-filter: blur(16px) saturate(180%);
	border: 1px solid rgba(255, 255, 255, .8); box-shadow: 0 16px 40px -18px rgba(0, 64, 110, .35);
	animation: iv-float-in .26s var(--iv-ease);
}
.iv-tab.is-floating::before, .iv-tab.is-floating::after { display: none; }
.iv-tab.is-floating .iv-nav { min-height: 64px; padding: 8px 24px; }
.iv-tab.is-floating .iv-logo { width: 136px; }
.iv-tab.is-floating .iv-nl { padding: 6px 0; }
.iv-tab.is-floating .iv-cta { height: 42px; }
@keyframes iv-float-in { from { opacity: 0; transform: translate(-50%, -12px); } to { opacity: 1; transform: translateX(-50%); } }

/* ---------- Mobile sheet ---------- */

.iv-sheet {
	position: fixed; inset: 0; z-index: 100000; display: flex; flex-direction: column;
	background: var(--iv-white); animation: iv-sheet-in .2s var(--iv-ease);
}
.iv-sheet[hidden] { display: none; }
@keyframes iv-sheet-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.iv-sheet-head { flex-shrink: 0; height: 68px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--iv-line); }
.iv-sheet-head img { display: block; height: 32px; width: auto; }
.iv-sheet .iv-burger { display: inline-flex; }
.iv-sheet-body { flex: 1; overflow-y: auto; padding: 8px 16px 16px; display: flex; flex-direction: column; }
.iv-sheet-row {
	display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--iv-line);
	color: var(--iv-slate); font-size: 17px; font-weight: 600; cursor: pointer; list-style: none;
}
.iv-sheet-row::-webkit-details-marker { display: none; }
.iv-acc[open] > .iv-sheet-row { color: var(--iv-navy); border-bottom: 0; }
.iv-acc-sign::before { content: "+"; font-weight: 400; font-size: 20px; }
.iv-acc[open] .iv-acc-sign::before { content: "−"; }
.iv-acc-body { display: flex; flex-direction: column; padding: 2px 0 10px; border-bottom: 1px solid var(--iv-line); }
.iv-acc-body a { padding: 9px 0; color: var(--iv-text); font-size: 16px; }
.iv-sheet a[aria-current] { color: var(--iv-navy); }
.iv-sheet-actions { margin-top: auto; padding-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.iv-sheet-btn {
	height: 52px; border-radius: 16px; border: 1px solid var(--iv-line-2); color: var(--iv-slate);
	display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 600; font-size: 16px;
}
.iv-sheet .iv-sheet-btn--primary { background: var(--iv-navy); border-color: var(--iv-navy); color: var(--iv-white); }
body.iv-locked { overflow: hidden; }

/* ---------- Breakpoints: 1320 fold links · 640 phone ---------- */

@media (max-width: 1320px) {
	.iv-links, .iv-login { display: none; }
	.iv-burger { display: inline-flex; }
	.iv-nav { grid-template-columns: auto 1fr; column-gap: 16px; }
	.iv-logo-link { justify-self: start; }
	.iv-actions { gap: 12px; }
}
@media (max-width: 640px) {
	.iv-top { padding: 12px 12px 0; }
	.iv-frame { border-radius: 26px 26px 0 0; }
	.iv-frame--band { min-height: 96px; border-radius: 26px; }
	.iv-tab { width: calc(100% - 48px); border-radius: 0 0 24px 24px; }
	.iv-nav, .iv-tab.is-floating .iv-nav { min-height: 68px; padding: 12px 10px 12px 16px; }
	.iv-logo, .iv-tab.is-floating .iv-logo { width: 132px; }
	.iv-top .iv-cta { display: none; }
	.iv-tab.is-floating { width: calc(100% - 24px); }
}

/* ---------- Take the next step ---------- */

.iv-next { background: var(--iv-white); }
.iv-next-card {
	max-width: 1192px; margin: 40px auto 96px; position: relative; overflow: hidden;
	display: flex; flex-wrap: wrap; align-items: stretch;
	border-radius: 32px; background: var(--iv-white); border: 1px solid var(--iv-line);
	box-shadow: 0 40px 80px -48px rgba(0, 64, 110, .45);
}
@media (max-width: 1240px) { .iv-next-card { margin-left: 24px; margin-right: 24px; } }
.iv-next-copy { flex: 1 1 520px; min-width: 0; padding: 64px 56px; display: flex; flex-direction: column; justify-content: center; }
.iv-next h2 { margin: 0; font-family: var(--iv-font); font-size: 52px; line-height: 1.05; font-weight: 600; letter-spacing: -0.01em; color: var(--iv-navy); }
.iv-next p { margin: 12px 0 0; font-size: 16px; line-height: 1.65; color: var(--iv-text); }
.iv-next p.iv-next-lead { margin-top: 22px; font-size: 18px; line-height: 1.6; color: var(--iv-slate); }
.iv-next-actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.iv-next p.iv-next-note { margin: 0; max-width: 300px; font-size: 14px; line-height: 1.5; }
.iv-next-visual {
	flex: 1 1 420px; min-width: 0; min-height: 460px; position: relative;
	background: radial-gradient(circle at 50% 50%, var(--iv-tint) 0%, var(--iv-white) 70%);
}
.iv-ring { position: absolute; left: 50%; top: 50%; width: var(--s); height: var(--s); transform: translate(-50%, -50%); border-radius: 999px; border: 1px solid var(--iv-line); }
.iv-wave {
	position: absolute; left: 50%; top: 50%; width: 220px; height: 220px; margin: -110px 0 0 -110px;
	border-radius: 999px; border: 2px solid var(--iv-accent); opacity: 0; animation: iv-wave 2.4s cubic-bezier(.2, .6, .2, 1) infinite;
}
@keyframes iv-wave { 0% { transform: scale(.6); opacity: .55; } 100% { transform: scale(2.3); opacity: 0; } }
.iv-device {
	position: absolute; left: 50%; top: 50%; height: 320px; width: auto; max-width: none;
	transform: translate(-50%, -50%); filter: drop-shadow(0 20px 20px rgba(0, 64, 110, .25));
	transition: transform .3s var(--iv-ease);
}
.iv-next-card:hover .iv-device { transform: translate(-50%, calc(-50% - 4px)); }

@media (max-width: 640px) {
	.iv-next-card { margin: 24px 16px 48px; border-radius: 26px; box-shadow: 0 30px 60px -40px rgba(0, 64, 110, .45); }
	.iv-next-visual { order: -1; flex-basis: 100%; min-height: 300px; }
	.iv-ring:nth-child(1) { --s: 150px !important; }
	.iv-ring:nth-child(2) { --s: 240px !important; }
	.iv-ring:nth-child(3) { --s: 330px !important; }
	.iv-device { height: 220px; }
	.iv-next-copy { flex-basis: 100%; padding: 28px 22px 30px; }
	.iv-next h2 { font-size: 32px; }
	.iv-next p { margin-top: 8px; font-size: 15px; line-height: 1.6; }
	.iv-next p.iv-next-lead { margin-top: 14px; font-size: 16px; }
	.iv-next-actions { margin-top: 22px; flex-direction: column; align-items: stretch; gap: 12px; }
	.iv-next .iv-cta { justify-content: center; }
	.iv-next p.iv-next-note { max-width: none; text-align: center; font-size: 13px; }
}

/* ---------- Footer ---------- */

.iv-foot-wrap { padding: 0 16px 16px; background: var(--iv-white); }
.iv-foot { border-radius: 32px; background: var(--iv-tint); border: 1px solid var(--iv-line); }
.iv-foot-inner { max-width: 1240px; margin: 0 auto; padding: 64px 40px 32px; }
.iv-foot-top { display: flex; flex-wrap: wrap; gap: 40px 56px; }
.iv-foot-brand { flex: 1.2 1 220px; min-width: 0; }
.iv-foot-brand img { display: block; width: 168px; height: auto; }
.iv-soc { margin-top: 20px; display: flex; align-items: center; gap: 18px; }
.iv-soc a { display: inline-flex; color: var(--iv-text); transition: color .15s ease, transform .2s ease; }
.iv-foot .iv-soc a:hover { color: var(--iv-navy); transform: translateY(-2px); }
.iv-foot-contact { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.iv-foot-contact address { margin: 0 0 10px; font-style: normal; line-height: 1.7; color: var(--iv-text); display: flex; flex-direction: column; }
.iv-foot-contact strong { color: var(--iv-slate); font-weight: 600; }
.iv-foot-links { flex: 2 1 340px; display: flex; flex-wrap: wrap; gap: 14px 56px; }
.iv-foot-col { flex: 1 1 160px; min-width: 0; display: flex; flex-direction: column; gap: 14px; font-size: 15px; }
.iv-foot-wrap a { color: var(--iv-slate); transition: color .15s ease; }
.iv-foot-wrap a:hover { color: var(--iv-navy); }
.iv-foot-soc-text { display: none; }
.iv-foot-bottom {
	margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--iv-line);
	display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px 48px;
	color: var(--iv-text);
}
.iv-foot-bottom span { font-size: 13px; line-height: 1.6; white-space: nowrap; }
.iv-foot-bottom p { margin: 0; flex: 1 1 420px; max-width: 820px; font-size: 12px; line-height: 1.6; text-align: right; }

@media (max-width: 640px) {
	.iv-foot-wrap { padding: 0 12px 12px; }
	.iv-foot { border-radius: 26px; }
	.iv-foot-inner { padding: 36px 20px 24px; }
	.iv-foot-top { flex-direction: column; gap: 18px; }
	.iv-foot-top > * { flex: none; }
	.iv-foot-brand img { width: 140px; }
	.iv-soc { display: none; }
	.iv-foot-contact address { margin-bottom: 6px; }
	.iv-foot-links { margin-top: 6px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
	.iv-foot-col { display: contents; }
	.iv-foot-soc-text { display: contents; }
	.iv-foot-bottom { margin-top: 24px; padding-top: 16px; flex-direction: column; gap: 8px; }
	.iv-foot-bottom p { text-align: left; flex-basis: auto; }
}

@media (prefers-reduced-motion: reduce) {
	.iv-top *, .iv-sheet, .iv-next *, .iv-foot-wrap *, .iv-tab { animation: none !important; transition: none !important; }
}

/* ---------- Guard against the Elementor kit's global styles ----------
   `.elementor-kit-7 button` / `button:hover` / `a` style every button and link on the
   site. These rules restate ours with enough weight to win, without !important. */

body :is(.iv-top, .iv-sheet) button.iv-nl,
body :is(.iv-top, .iv-sheet) button.iv-nl:is(:hover, :focus) {
	padding: 10px 0; border: 0; border-radius: 0; background: none;
	font: 500 15px/1.2 var(--iv-font); letter-spacing: normal; text-transform: none; color: var(--iv-slate);
}
body .iv-top .iv-tab.is-floating button.iv-nl { padding: 8px 0; }
body .iv-top button.iv-nl:is(:hover, [aria-expanded="true"]), body .iv-top .iv-ni:focus-within > button.iv-nl { color: var(--iv-navy); }
body :is(.iv-top, .iv-sheet) button.iv-burger,
body :is(.iv-top, .iv-sheet) button.iv-burger:is(:hover, :focus) {
	width: 44px; height: 44px; padding: 0; border: 0; border-radius: 12px; background: var(--iv-tint); color: var(--iv-slate); line-height: 1;
}
body :is(.iv-top, .iv-next) a.iv-cta, body :is(.iv-top, .iv-next) a.iv-cta:hover { color: var(--iv-white); }
body .iv-top a.iv-nl, body .iv-top a.iv-ddi, body .iv-sheet a.iv-sheet-row, body .iv-sheet a.iv-sheet-btn { color: var(--iv-slate); }
body .iv-top a.iv-nl:is(:hover, [aria-current]), body .iv-top a.iv-ddi:is(:hover, [aria-current]) { color: var(--iv-navy); }
body .iv-sheet .iv-acc-body a { color: var(--iv-text); }
body .iv-sheet a[aria-current] { color: var(--iv-navy); }
body .iv-sheet a.iv-sheet-btn--primary { color: var(--iv-white); }
body .iv-foot-wrap .iv-foot a { color: var(--iv-slate); }
body .iv-foot-wrap .iv-foot a:hover { color: var(--iv-navy); }
body .iv-foot-wrap .iv-soc a { color: var(--iv-text); }
body .iv-foot-wrap .iv-soc a:hover { color: var(--iv-navy); }
/* `.elementor-kit-7 img` rounds every image by 32px, which clips the logo. */
body :is(.iv-top, .iv-sheet, .iv-next, .iv-foot-wrap) img { border-radius: 0; }

/* ---------- Star Border (Book a Demo buttons) ----------
   After React Bits "Star Border": two glows travel along the top and bottom
   edges (6s, alternate). Tuned for contrast on navy: a dark 3px edge, a bright
   white-to-cyan glow at full strength while it crosses the button, and a soft
   cyan halo around the button. Markup from innerview_star(). */
.iv-star {
	position: relative; isolation: isolate; overflow: hidden; padding: 3px 0; background: #002A4A; border-color: transparent;
	box-shadow: 0 0 0 1px rgba(37, 173, 227, .35), 0 10px 26px -12px rgba(37, 173, 227, .65);
}
.iv-star-t, .iv-star-b {
	position: absolute; z-index: 0; width: 300%; height: 50%; border-radius: 50%; pointer-events: none;
	background: radial-gradient(circle, #FFFFFF, #BFF0FF 2%, #4FD1FF 5%, transparent 9%);
	animation: iv-star-b 6s linear infinite alternate;
}
.iv-star-b { bottom: -11px; right: -250%; }
.iv-star-t { top: -11px; left: -250%; animation-name: iv-star-t; }
.iv-star-in {
	position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: inherit;
	width: 100%; height: 100%; padding: inherit; border-radius: inherit;
	background: linear-gradient(180deg, #0A4C80, var(--iv-navy));
	transition: background .2s ease;
}
@keyframes iv-star-b { 0% { transform: translate(0, 0); opacity: 1; } 75% { opacity: 1; } 100% { transform: translate(-100%, 0); opacity: 0; } }
@keyframes iv-star-t { 0% { transform: translate(0, 0); opacity: 1; } 75% { opacity: 1; } 100% { transform: translate(100%, 0); opacity: 0; } }
/* .iv-cta: the outer link keeps size/radius; padding moves to the inner layer. */
.iv-cta.iv-star { padding: 3px 0; gap: 0; }
.iv-cta.iv-star .iv-star-in { padding: 0 12px 0 24px; gap: 16px; border-radius: 13px; }
.iv-sheet .iv-sheet-btn--primary.iv-star { padding: 3px 0; gap: 0; border: 0; background: #002A4A; }
.iv-sheet-btn.iv-star .iv-star-in { gap: 10px; padding: 0 16px; border-radius: 13px; }
body .iv-star:hover, body :is(.iv-top, .iv-next) .iv-cta.iv-star:hover, body .ivq .iv-cta.iv-star:hover {
	background: #002A4A; box-shadow: 0 0 0 1px rgba(37, 173, 227, .55), 0 12px 30px -12px rgba(37, 173, 227, .8);
}
.iv-star:hover .iv-star-in { background: linear-gradient(180deg, #1468A8, var(--iv-navy-hover)); }
@media (prefers-reduced-motion: reduce) { .iv-star-t, .iv-star-b { display: none; } }

/* Page heroes fade into the page at their foot instead of ending on a rounded tinted edge.
   (Home, About and WithIn have their own versions in their page CSS.) */
body .iv-frame:not(.iv-frame--band):not(:has(.ivh-hero, .iva-rk, .ivl-hero)) {
	background: linear-gradient(to bottom, var(--iv-tint) calc(100% - 220px), rgba(238, 246, 252, 0));
	border-bottom-left-radius: 0; border-bottom-right-radius: 0;
}
body .iv-frame:not(.iv-frame--band):not(:has(.ivh-hero, .iva-rk, .ivl-hero)) :is(section[class*="-hero"], [class*="-hero-bg"]) { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
body .iv-frame:not(.iv-frame--band):not(:has(.ivh-hero, .iva-rk, .ivl-hero)) [class*="-hero-bg"] {
	-webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 220px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 220px), transparent);
}
@media (max-width: 640px) {
	body .iv-frame:not(.iv-frame--band):not(:has(.ivh-hero, .iva-rk, .ivl-hero)) { background: linear-gradient(to bottom, var(--iv-tint) calc(100% - 140px), rgba(238, 246, 252, 0)); }
}

/* Video pop-up (homepage stories, WithIn, Elementor video widgets via video-popup.js). */
body .ivh-player { width: min(1100px, calc(100vw - 32px)); max-width: none; max-height: none; padding: 0; border: 0; border-radius: 20px; background: #000; overflow: visible; }
body .ivh-player::backdrop { background: rgba(0, 20, 40, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
body .ivh-player video { display: block; width: 100%; max-height: 80vh; border-radius: 20px; background: #000; }
body .ivh-player .ivh-player-x, body .ivh-player .ivh-player-x:is(:hover, :focus) { position: absolute; right: 0; top: -52px; width: 44px; height: 44px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--iv-navy); cursor: pointer; }
body .ivh-player-frame { position: relative; aspect-ratio: 16 / 9; max-height: 80vh; border-radius: 20px; overflow: hidden; background: #000; }
body .ivh-player-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Live chat ask bar (inc/chat.php, assets/js/chat.js) ---------- */
.iv-chat { position: fixed; right: 24px; bottom: 24px; z-index: 9990; width: min(420px, calc(100vw - 48px)); transform: translateY(16px); opacity: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; font-family: var(--iv-font); transition: opacity .35s ease, transform .45s var(--iv-ease); pointer-events: none; }
.iv-chat[hidden] { display: none; }
.iv-chat.is-in { opacity: 1; transform: none; }
.iv-chat.is-away { opacity: 0; transform: translateY(24px); visibility: hidden; }
.iv-chat > * { pointer-events: auto; }
.iv-chat-chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; transition: opacity .25s ease, transform .3s var(--iv-ease), max-height .3s ease; max-height: 80px; }
.iv-chat.is-compact .iv-chat-chips { opacity: 0; transform: translateY(8px); max-height: 0; pointer-events: none; }
body .iv-chat .iv-chat-chip, body .iv-chat .iv-chat-chip:is(:hover, :focus) { display: inline-flex; align-items: center; min-height: 36px; margin: 0; padding: 0 14px; border-radius: 999px; background: rgba(255, 255, 255, .94); border: 1px solid var(--iv-line); color: var(--iv-navy); font: 500 13.5px/1 var(--iv-font); text-transform: none; letter-spacing: normal; text-decoration: none; cursor: pointer; box-shadow: 0 10px 24px -18px rgba(0, 64, 110, .5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background .2s ease, border-color .2s ease; }
body .iv-chat .iv-chat-chip:hover { background: var(--iv-white); border-color: var(--iv-line-2); }
.iv-chat-bar { width: 100%; box-sizing: border-box; height: 64px; margin: 0; display: flex; align-items: center; gap: 12px; padding: 0 8px 0 12px; border-radius: 999px; background: rgba(255, 255, 255, .96); border: 1px solid var(--iv-line); box-shadow: 0 24px 50px -24px rgba(0, 64, 110, .55); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: border-color .2s ease, box-shadow .2s ease; }
.iv-chat-bar:focus-within { border-color: var(--iv-navy); box-shadow: 0 0 0 4px rgba(37, 173, 227, .18), 0 24px 50px -24px rgba(0, 64, 110, .55); }
.iv-chat-ico { position: relative; flex: none; width: 40px; height: 40px; border-radius: 999px; background: var(--iv-navy); color: var(--iv-white); display: flex; align-items: center; justify-content: center; }
.iv-chat-ico i { position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 999px; background: #22C55E; border: 2px solid var(--iv-white); }
/* !important: the Elementor kit styles every text input (border, fill, padding, focus ring) with stronger selectors. */
body .iv-chat .iv-chat-bar input, body .iv-chat .iv-chat-bar input:is(:focus, :hover, :active, :focus-visible) { -webkit-appearance: none !important; appearance: none !important; outline-offset: 0 !important; flex: 1; min-width: 0; height: 44px !important; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; outline: none !important; font: 400 16px/1.3 var(--iv-font) !important; color: var(--iv-slate) !important; }
body .iv-chat .iv-chat-bar input::placeholder { color: #6B7A8A; opacity: 1; }
body .iv-chat .iv-chat-send, body .iv-chat .iv-chat-send:is(:hover, :focus) { flex: none; width: 48px; height: 48px; margin: 0; padding: 0; border: 0; border-radius: 999px; background: var(--iv-navy); color: var(--iv-white); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s ease, transform .2s var(--iv-ease); }
body .iv-chat .iv-chat-send:hover { background: var(--iv-navy-hover); transform: translateY(-1px); }
body .iv-chat :is(.iv-chat-send, .iv-chat-chip):focus-visible { outline: 3px solid var(--iv-accent); outline-offset: 3px; }
.iv-chat-open { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 640px) {
	.iv-chat { right: 12px; bottom: 14px; width: calc(100vw - 24px); gap: 8px; }
	.iv-chat-chips { flex-wrap: nowrap; justify-content: flex-start; width: 100%; overflow-x: auto; scrollbar-width: none; }
	.iv-chat-chips::-webkit-scrollbar { display: none; }
	body .iv-chat .iv-chat-chip { flex: none; }
	.iv-chat-bar { height: 56px; padding: 0 6px 0 10px; gap: 10px; }
	.iv-chat-ico { width: 36px; height: 36px; }
	body .iv-chat .iv-chat-send { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
	.iv-chat, .iv-chat-chips { transition: none; }
}
/* Room at the end of the page so the bar never covers the footer's last line. */
body:has(.iv-chat.is-in) .iv-foot { padding-bottom: 96px; }
