/* ICA header/footer — rebuilt static, replaces QuadMenu + Elementor templates.
   Visual target: original icapidilite.com black bar, white Acumin nav,
   red CTA; "similar and better": cleaner mega panels, real focus states. */

@font-face {
	font-family: 'Acumin Variable Concept';
	src: url('../fonts/AcuminVariableConcept.otf') format('opentype');
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

:root {
	--ica-red: #e43036;
	--ica-black: #000;
	--ica-dark: #111;
	--ica-gray: #707070;
	--ica-font-nav: 'Acumin Variable Concept', 'Roboto', Arial, sans-serif;
	--ica-header-h: 80px;
	--ica-header-h-sticky: 66px;
	--ica-ease: cubic-bezier(.4, 0, .2, 1);
}

/* ---------- Header ---------- */
/* Legacy offset from old fixed header; new header is sticky (in flow). */
.site-content { padding-top: 0; }
.ica-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: var(--ica-black);
	transition: box-shadow .3s var(--ica-ease);
}
.ica-header.hdr-sticky { box-shadow: 0 2px 12px rgba(0, 0, 0, .45); }

.ica-header-inner {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 30px;
	height: var(--ica-header-h);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
	transition: height .3s var(--ica-ease);
}
.hdr-sticky .ica-header-inner { height: var(--ica-header-h-sticky); }

.ica-logo { flex: 0 0 auto; line-height: 0; }
.ica-logo img {
	width: 110px;
	height: auto;
	transition: width .3s var(--ica-ease);
}
.hdr-sticky .ica-logo img { width: 82px; }

/* Nav */
.ica-nav-list {
	display: flex;
	align-items: center;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.ica-nav-link {
	display: flex;
	align-items: center;
	height: 50px;
	padding: 0 16px;
	color: #fff;
	font: normal 500 13px/1 var(--ica-font-nav);
	letter-spacing: 2px;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	position: relative;
	transition: color .25s;
}
.ica-nav-link::after {
	content: '';
	position: absolute;
	left: 16px;
	right: 16px;
	bottom: 8px;
	height: 2px;
	background: var(--ica-red);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .25s var(--ica-ease);
}
.ica-nav-item:hover > .ica-nav-link,
.ica-nav-item:focus-within > .ica-nav-link,
.ica-nav-link:hover { color: var(--ica-red); }
.ica-nav-item:hover > .ica-nav-link::after,
.ica-nav-item:focus-within > .ica-nav-link::after { transform: scaleX(1); }

/* Contact CTA */
.ica-btn-contact {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	padding: 0 22px;
	background: var(--ica-red);
	color: #fff;
	font: normal 600 13px/1 var(--ica-font-nav);
	letter-spacing: 2px;
	text-transform: uppercase;
	text-decoration: none;
	border: none;
	border-radius: 3px;
	cursor: pointer;
	transition: background .25s, color .25s;
}
.ica-nav-cta .ica-btn-contact { height: 40px; }
.ica-btn-contact:hover,
.ica-btn-contact:focus-visible { background: #fff; color: var(--ica-red); }

/* Search */
.ica-search-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	background: none;
	border: none;
	cursor: pointer;
	opacity: .9;
	transition: opacity .2s;
}
.ica-header .ica-search-toggle:hover,
.ica-header .ica-search-toggle:focus { background: none; opacity: 1; }

.ica-search-bar {
	max-height: 0;
	overflow: hidden;
	background: var(--ica-dark);
	transition: max-height .35s var(--ica-ease);
}
.ica-search-bar.open { max-height: 90px; }
.ica-search-bar form {
	max-width: 1400px;
	margin: 0 auto;
	padding: 18px 30px;
	display: flex;
	gap: 12px;
}
.ica-search-bar input {
	flex: 1;
	height: 44px;
	padding: 0 16px;
	background: #fff;
	border: none;
	border-radius: 3px;
	font-size: 15px;
}

/* Mega dropdown */
.ica-mega {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	background: var(--ica-black);
	border-top: 1px solid #222;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity .25s var(--ica-ease), transform .25s var(--ica-ease), visibility .25s;
}
.ica-nav-item.has-mega:hover > .ica-mega,
.ica-nav-item.has-mega:focus-within > .ica-mega {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.ica-mega {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 40px;
	max-width: 1200px;
	margin: 0 auto;
	padding: 36px 30px 44px;
}
.ica-mega-title {
	margin: 0 0 18px;
	color: #fff;
	font: normal 600 13px/1 var(--ica-font-nav);
	letter-spacing: 2px;
	text-transform: uppercase;
}
.ica-mega-title::after {
	content: '';
	display: block;
	width: 34px;
	height: 2px;
	margin-top: 10px;
	background: var(--ica-red);
}
.ica-mega-groups {
	display: flex;
	gap: 56px;
}
.ica-mega-group-title {
	margin: 0 0 10px;
	color: #999;
	font: normal 500 11px/1 var(--ica-font-nav);
	letter-spacing: 2px;
	text-transform: uppercase;
}
.ica-mega ul { list-style: none; margin: 0; padding: 0; }
.ica-mega li { margin: 0 0 9px; }
.ica-mega a {
	color: #d8d8d8;
	font: normal 400 13px/1.5 var(--ica-font-nav);
	letter-spacing: .5px;
	text-decoration: none;
	transition: color .2s;
}
.ica-mega a:hover { color: #fff; }
.ica-mega-img img {
	display: block;
	width: 300px;
	height: auto;
	border-radius: 4px;
}

/* Burger + mobile panel */
.ica-burger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 10px;
	background: none;
	border: none;
	cursor: pointer;
}
.ica-burger span {
	display: block;
	height: 2px;
	background: #fff;
	transition: transform .3s var(--ica-ease), opacity .2s;
}
.ica-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ica-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.ica-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.ica-mobile-panel {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(360px, 88vw);
	background: var(--ica-black);
	z-index: 1002;
	padding: 60px 28px 28px;
	overflow-y: auto;
	transform: translateX(100%);
	transition: transform .35s var(--ica-ease);
}
.ica-mobile-panel.open { transform: translateX(0); }
.ica-mobile-close {
	position: absolute;
	top: 14px;
	right: 18px;
	background: transparent;
	border: none;
	color: #fff;
	font-size: 32px;
	line-height: 1;
	width: auto;
	height: auto;
	padding: 4px 10px;
	cursor: pointer;
}
.ica-mobile-close:hover, .ica-mobile-close:focus { background: transparent; color: var(--ica-red); }
.ica-mobile-nav { list-style: none; margin: 0; padding: 0; }
.ica-mobile-nav > li { border-bottom: 1px solid #1e1e1e; }
.ica-mobile-nav > li > a,
.ica-acc-toggle {
	display: flex;
	width: 100%;
	padding: 15px 0;
	background: none;
	border: none;
	color: #fff;
	font: normal 500 13px/1 var(--ica-font-nav);
	letter-spacing: 2px;
	text-transform: uppercase;
	text-decoration: none;
	text-align: left;
	cursor: pointer;
}
.ica-acc-toggle::after {
	content: '+';
	margin-left: auto;
	color: var(--ica-red);
	font-size: 18px;
}
.ica-acc-toggle[aria-expanded="true"]::after { content: '–'; }
.ica-acc-panel {
	list-style: none;
	max-height: 0;
	overflow: hidden;
	margin: 0;
	padding: 0 0 0 12px;
	transition: max-height .3s var(--ica-ease);
}
.ica-acc-panel.open { max-height: 900px; }
.ica-acc-panel a {
	display: block;
	padding: 9px 0;
	color: #bbb;
	font: normal 400 13px/1.4 var(--ica-font-nav);
	letter-spacing: .5px;
	text-decoration: none;
}
.ica-acc-panel a:hover { color: #fff; }
.ica-acc-group {
	padding: 10px 0 4px;
	color: var(--ica-red);
	font: normal 600 11px/1 var(--ica-font-nav);
	letter-spacing: 2px;
	text-transform: uppercase;
}
.ica-mobile-cta { margin: 18px 0; width: 100%; }
.ica-mobile-nav > li > a.ica-btn-contact {
	display: inline-flex;
	background: var(--ica-red);
	color: #fff;
	justify-content: center;
	font: normal 600 13px/1 var(--ica-font-nav);
	letter-spacing: 2px;
	text-transform: uppercase;
	height: 44px;
}
.ica-mobile-nav > li > a.ica-btn-contact:hover { background: #fff; color: var(--ica-red); }

.ica-mobile-scrim {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, .6);
	z-index: 1001;
	opacity: 0;
	visibility: hidden;
	transition: opacity .3s, visibility .3s;
}
.ica-mobile-scrim.open { opacity: 1; visibility: visible; }

body.ica-menu-locked { overflow: hidden; }

/* ---------- Header responsive ---------- */
@media (max-width: 1100px) {
	.ica-nav-link { padding: 0 10px; letter-spacing: 1.5px; }
}
@media (max-width: 920px) {
	.ica-nav { display: none; }
	.ica-burger { display: flex; }
	:root { --ica-header-h: 64px; --ica-header-h-sticky: 58px; }
	.ica-logo img { width: 88px; }
}

/* ---------- Footer ---------- */
.ica-footer {
	background: var(--ica-black);
	color: #fff;
	padding: 56px 0 34px;
}
.ica-footer-inner { max-width: 1400px; margin: 0 auto; padding: 0 30px; }

.ica-footer-top {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 36px;
}
.ica-footer-title {
	margin: 0 0 16px;
	color: #fff;
	font: normal 600 13px/1.4 var(--ica-font-nav);
	letter-spacing: 1px;
	text-transform: uppercase;
}
.ica-footer ul { list-style: none; margin: 0; padding: 0; }
.ica-footer li { margin: 0 0 8px; }
.ica-footer-col a {
	color: #d0d0d0;
	font: normal 400 12px/1.6 'Roboto', Arial, sans-serif;
	text-decoration: none;
	transition: color .2s;
}
.ica-footer-col a:hover { color: var(--ica-red); }

.ica-footer-contact address {
	font: normal 400 12px/1.7 'Roboto', Arial, sans-serif;
	font-style: normal;
	color: #d0d0d0;
	margin: 0 0 12px;
}

.ica-app-badges { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.ica-app-badges a { display: inline-block; line-height: 0; }
.ica-app-badges img {
	width: 150px;
	height: auto;
	border: 1px solid var(--ica-gray);
	border-radius: 5px;
	transition: border-color .2s;
}
.ica-app-badges a:hover img { border-color: #fff; }

.ica-social { display: flex; gap: 10px; }
.ica-social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	background: #fff;
	color: var(--ica-black);
	border-radius: 50%;
	transition: background .2s, color .2s;
}
.ica-social a:hover { background: var(--ica-red); color: #fff; }

.ica-footer-jv {
	margin-top: 44px;
	padding-top: 28px;
	border-top: 1px solid #1e1e1e;
}
.ica-jv-logos { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.ica-jv-logos img { width: auto; height: 44px; filter: grayscale(1) brightness(1.6); transition: filter .3s; }
.ica-jv-logos a:hover img { filter: none; }

.ica-footer-docs {
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid #1e1e1e;
}
.ica-footer-docs ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 28px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.ica-footer-docs a {
	color: #8a8a8a;
	font: normal 300 11px/1.5 'Roboto', Arial, sans-serif;
	text-decoration: none;
}
.ica-footer-docs a:hover { color: #fff; text-decoration: underline; }

.ica-footer-bottom {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 30px;
	padding-top: 20px;
	border-top: 1px solid #1e1e1e;
}
.ica-footer-bottom p {
	margin: 0;
	color: #fff;
	font: normal 300 12px/1.5 'Roboto', Arial, sans-serif;
}
.ica-footer-bottom a { color: #fff; text-decoration: none; }
.ica-footer-bottom a:hover { color: var(--ica-red); }

/* Back to top */
.ica-backtotop {
	position: fixed;
	right: 30px;
	bottom: 70px;
	z-index: 900;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--ica-red);
	color: #fff;
	border: none;
	padding: 0;
	box-sizing: border-box;
	border-radius: 4px;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: opacity .3s, transform .3s, visibility .3s, background .2s;
}
.ica-backtotop.show { opacity: 1; visibility: visible; transform: translateY(0); }
.ica-backtotop:hover { background: #fff; color: var(--ica-red); }

/* ---------- Footer responsive ---------- */
@media (max-width: 1024px) {
	.ica-footer-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.ica-footer { padding: 40px 0 28px; }
	.ica-footer-inner { padding: 0 20px; }
	.ica-footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
	.ica-footer-bottom { flex-direction: column; }
	.ica-backtotop { right: 16px; bottom: 16px; }
}

/* Focus visibility, both regions */
.ica-header :focus-visible,
.ica-footer :focus-visible,
.ica-mobile-panel :focus-visible,
.ica-backtotop:focus-visible {
	outline: 2px solid var(--ica-red);
	outline-offset: 2px;
}
