/**
 * Odio Soft Layout
 * Site shell, header, footer, mega menu positioning
 *
 * @package OdioSoft
 */

/* ═══════════════════════════════════════
   Site shell
   ═══════════════════════════════════════ */

.odio-site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100dvh;
}

.odio-main {
	flex: 1;
	width: 100%;
}

.odio-main > .odio-container:first-child {
	padding-top: var(--odio-space-6);
}

/* Landing pages — minimal chrome */
.odio-is-landing .odio-main {
	padding-top: 0;
}

/* ═══════════════════════════════════════
   Header layout variants
   ═══════════════════════════════════════ */

.odio-header-default .odio-header {
	background: var(--odio-surface);
}

.odio-header-transparent .odio-header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	background: transparent;
	border-bottom-color: transparent;
}

.odio-header-transparent .odio-header.is-scrolled {
	position: sticky;
	background: var(--odio-surface);
	border-bottom-color: var(--odio-border);
}

.odio-header-compact .odio-header__inner {
	min-height: var(--odio-header-height-compact);
}

/* Sticky header behavior */
.odio-header.is-sticky {
	position: sticky;
	top: 0;
	z-index: var(--odio-z-header);
	transition:
		box-shadow var(--odio-transition),
		background-color var(--odio-transition);
}

.odio-header.is-sticky.is-scrolled {
	box-shadow: 0 8px 24px rgba(11, 20, 36, 0.08);
}

/* Sticky must not be clipped by site shell */
.odio-site {
	overflow: visible;
}

/* Announcement + sticky header offset */
.odio-site:has(.odio-announcement:not([hidden])) .odio-header.is-sticky {
	top: 0;
}

/* ═══════════════════════════════════════
   Mega menu positioning
   Center under trigger (edge items left/right anchored),
   clamp inside viewport via JS, keep hover bridge visible.
   ═══════════════════════════════════════ */

.odio-header,
.odio-header__inner,
.odio-header__nav,
.odio-header__menu,
.odio-header__menu > li.has-mega {
	overflow: visible;
}

.odio-header__menu > li.has-mega {
	position: static;
}

.odio-header__menu > li.has-mega > .odio-mega {
	top: 100%;
	left: 0;
	right: 0;
	width: 100%;
	max-width: none;
	transform: none;
	margin: 0;
	--odio-mega-shift: 0px;
}

.odio-header__menu > li.has-mega:hover > .odio-mega,
.odio-header__menu > li.has-mega:focus-within > .odio-mega,
.odio-header__menu > li.has-mega.is-open > .odio-mega {
	transform: none;
}

/* First / last — full-width panel (no edge anchoring) */
.odio-header__menu > li.has-mega.is-first > .odio-mega,
.odio-header__menu > li.has-mega.is-last > .odio-mega {
	left: 0;
	right: 0;
	transform: none;
}

.odio-header__menu > li.has-mega.is-first:hover > .odio-mega,
.odio-header__menu > li.has-mega.is-first:focus-within > .odio-mega,
.odio-header__menu > li.has-mega.is-first.is-open > .odio-mega,
.odio-header__menu > li.has-mega.is-last:hover > .odio-mega,
.odio-header__menu > li.has-mega.is-last:focus-within > .odio-mega,
.odio-header__menu > li.has-mega.is-last.is-open > .odio-mega {
	transform: none;
}

/* Invisible hover bridge between trigger and panel */
.odio-header__menu > li.has-mega > .odio-mega::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 100%;
	height: 0.35rem;
}

.odio-mega {
	max-width: none;
	box-sizing: border-box;
}

/* Mega menu caret indicator */
.odio-header__menu > li.has-mega > a::after {
	content: "";
	display: inline-block;
	width: 0.35em;
	height: 0.35em;
	margin-left: 0.3em;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg) translateY(-0.1em);
	transition: transform var(--odio-transition);
	vertical-align: middle;
}

.odio-header__menu > li.has-mega:hover > a::after,
.odio-header__menu > li.has-mega.is-open > a::after {
	transform: rotate(-135deg) translateY(0.1em);
}

/* ═══════════════════════════════════════
   Footer — single auto-width panel
   ═══════════════════════════════════════ */

.odio-footer {
	position: relative;
	isolation: isolate;
	margin-top: auto;
	padding: 0;
	overflow: hidden;
	color: rgba(230, 236, 245, 0.78);
	background:
		radial-gradient(ellipse 70% 55% at 12% 0%, rgba(27, 111, 212, 0.22), transparent 58%),
		radial-gradient(ellipse 50% 45% at 92% 18%, rgba(27, 111, 212, 0.14), transparent 55%),
		linear-gradient(180deg, #0B1628 0%, #08111E 100%);
	border-top: 1px solid rgba(27, 111, 212, 0.35);
}

.odio-footer__panel {
	width: 100%;
	max-width: none;
	box-sizing: border-box;
	display: block;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	overflow: visible;
}

.odio-footer__inner {
	display: grid;
	gap: 0;
	padding-block: clamp(1.75rem, 1.35rem + 1.4vw, 2.85rem) 0;
}

.odio-footer__intro {
	display: grid;
	gap: 1.5rem;
	padding: 0 0 clamp(1.35rem, 1.1rem + 0.8vw, 1.85rem);
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	align-items: stretch;
}

.odio-footer__intro--minimal {
	align-items: center;
	border-bottom: 0;
	padding-bottom: clamp(1.15rem, 1rem + 0.6vw, 1.45rem);
}

.odio-footer__brand {
	min-width: 0;
	display: grid;
	gap: 1rem;
	align-content: start;
}

.odio-footer__logo-link {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	color: var(--odio-white);
	font-weight: var(--odio-fw-bold);
	text-decoration: none;
}

.odio-footer__logo-img {
	width: 40px;
	height: 40px;
	object-fit: contain;
	flex-shrink: 0;
}

.odio-footer__logo-text,
.odio-footer .odio-header__logo-text {
	color: var(--odio-white);
	font-size: 1.12rem;
	line-height: 1.2;
}

.odio-footer__tagline {
	margin: 0;
	max-width: 28rem;
	font-size: var(--odio-fs-sm);
	line-height: 1.6;
	color: rgba(230, 236, 245, 0.72);
}

.odio-footer__contact {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.7rem;
	min-width: 0;
}

.odio-footer__contact-item {
	display: grid;
	gap: 0.15rem;
	min-width: 0;
}

.odio-footer__contact-label {
	font-size: 0.68rem;
	font-weight: var(--odio-fw-semibold);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: rgba(143, 182, 232, 0.9);
	line-height: 1.2;
}

.odio-footer__contact a,
.odio-footer__contact .odio-footer__address {
	font-size: var(--odio-fs-sm);
	color: rgba(242, 247, 255, 0.92);
	text-decoration: none;
	line-height: 1.5;
	overflow-wrap: anywhere;
}

.odio-footer__contact a:hover {
	color: #B7D4F5;
}

.odio-footer__social {
	display: grid;
	gap: 0.55rem;
	margin-top: 0.1rem;
}

.odio-footer__social-label {
	margin: 0;
	font-size: 0.68rem;
	font-weight: var(--odio-fw-semibold);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: rgba(143, 182, 232, 0.9);
}

.odio-footer__social-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.odio-footer__social-link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.45rem 0.75rem 0.45rem 0.55rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
	color: rgba(230, 236, 245, 0.88);
	font-size: 0.75rem;
	font-weight: var(--odio-fw-medium);
	text-decoration: none;
	transition:
		background var(--odio-transition-fast),
		border-color var(--odio-transition-fast),
		color var(--odio-transition-fast),
		transform var(--odio-transition-fast);
}

.odio-footer__social-link svg {
	fill: currentColor;
	width: 14px;
	height: 14px;
	flex-shrink: 0;
}

.odio-footer__social-link:hover {
	background: rgba(27, 111, 212, 0.32);
	border-color: rgba(91, 155, 232, 0.45);
	color: var(--odio-white);
	transform: translateY(-1px);
}

.odio-footer__cta {
	min-width: 0;
	display: flex;
}

.odio-footer__cta-card {
	width: 100%;
	max-width: 26rem;
	margin-inline: 0;
	display: grid;
	gap: 0.7rem;
	align-content: start;
	padding: 1.25rem 1.3rem 1.35rem;
	border-radius: 16px;
	background:
		linear-gradient(160deg, rgba(27, 111, 212, 0.22), rgba(255, 255, 255, 0.04) 55%),
		rgba(255, 255, 255, 0.045);
	border: 1px solid rgba(143, 182, 232, 0.22);
	box-shadow:
		0 18px 40px rgba(0, 0, 0, 0.22),
		inset 0 1px 0 rgba(255, 255, 255, 0.06);
	box-sizing: border-box;
}

.odio-footer__cta-eyebrow {
	margin: 0;
	font-size: 0.68rem;
	font-weight: var(--odio-fw-semibold);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #8EBCF0;
}

.odio-footer__cta-title {
	margin: 0;
	font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem);
	font-weight: var(--odio-fw-semibold);
	letter-spacing: -0.015em;
	color: var(--odio-white);
	line-height: 1.3;
}

.odio-footer__cta-desc {
	margin: 0;
	font-size: 0.84rem;
	line-height: 1.55;
	color: rgba(230, 236, 245, 0.72);
}

.odio-footer__cta-points {
	list-style: none;
	margin: 0.1rem 0 0.2rem;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.odio-footer__cta-points li {
	padding: 0.28rem 0.55rem;
	border-radius: 999px;
	font-size: 0.7rem;
	font-weight: var(--odio-fw-medium);
	color: rgba(232, 238, 247, 0.9);
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.odio-footer__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.55rem;
	margin-top: 0.15rem;
}

.odio-footer__btn-ghost {
	border-color: rgba(255, 255, 255, 0.28) !important;
	color: var(--odio-white) !important;
	background: transparent !important;
}

.odio-footer__btn-ghost:hover {
	background: rgba(255, 255, 255, 0.08) !important;
	border-color: rgba(255, 255, 255, 0.45) !important;
	color: var(--odio-white) !important;
}

.odio-footer__nav {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
	padding: 0;
}

.odio-footer__column {
	min-width: 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.odio-footer__column:last-child {
	border-bottom: 0;
}

.odio-footer__heading {
	display: none;
	margin: 0 0 0.85rem;
	font-size: var(--odio-fs-sm);
	font-weight: var(--odio-fw-semibold);
	letter-spacing: 0.02em;
	text-transform: none;
	color: var(--odio-white);
}

.odio-footer__accordion-trigger {
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.95rem 0;
	margin: 0;
	border: 0;
	background: transparent;
	color: var(--odio-white);
	font-size: var(--odio-fs-sm);
	font-weight: var(--odio-fw-semibold);
	text-align: left;
	cursor: pointer;
}

.odio-footer__accordion-trigger-icon {
	width: 0.55rem;
	height: 0.55rem;
	border-right: 2px solid rgba(230, 236, 245, 0.7);
	border-bottom: 2px solid rgba(230, 236, 245, 0.7);
	transform: rotate(45deg);
	transition: transform var(--odio-transition);
	flex-shrink: 0;
}

.odio-footer__column.is-open .odio-footer__accordion-trigger-icon {
	transform: rotate(225deg);
	margin-top: 0.2rem;
}

.odio-footer__accordion-panel {
	display: none;
	padding: 0 0 0.95rem;
}

.odio-footer__column.is-open .odio-footer__accordion-panel {
	display: block;
}

.odio-footer__menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.5rem;
}

.odio-footer__menu a {
	display: block;
	font-size: var(--odio-fs-sm);
	line-height: 1.4;
	color: rgba(230, 236, 245, 0.72);
	text-decoration: none;
	overflow-wrap: anywhere;
}

.odio-footer__menu a:hover {
	color: #B7D4F5;
}

.odio-footer__menu-more a {
	color: #8FB6E8;
	font-weight: var(--odio-fw-medium);
}

.odio-footer__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1.25rem;
	margin: 0;
	padding: 1rem 0 1.15rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.odio-footer__copyright {
	margin: 0;
	font-size: var(--odio-fs-xs);
	color: rgba(230, 236, 245, 0.55);
	line-height: 1.45;
}

.odio-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem 0.95rem;
}

.odio-footer__legal a {
	font-size: var(--odio-fs-xs);
	color: rgba(230, 236, 245, 0.55);
	text-decoration: none;
	white-space: nowrap;
}

.odio-footer__legal a:hover {
	color: rgba(230, 236, 245, 0.9);
}

@media (min-width: 720px) {
	.odio-footer__intro {
		grid-template-columns: minmax(0, 1.2fr) minmax(17rem, 0.9fr);
		gap: 1.75rem 2rem;
		align-items: stretch;
	}

	.odio-footer__intro--minimal {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.odio-footer__cta {
		justify-self: stretch;
	}

	.odio-footer__cta-card {
		max-width: none;
		height: 100%;
	}

	.odio-footer__contact {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.85rem 1.25rem;
	}

	.odio-footer__contact-item--address {
		grid-column: 1 / -1;
	}
}

@media (min-width: 1024px) {
	.odio-footer__intro {
		grid-template-columns: minmax(0, 1.35fr) minmax(20rem, 0.85fr);
		gap: 2rem 2.5rem;
	}

	.odio-footer__contact {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.odio-footer__contact-item--address {
		grid-column: auto;
	}

	.odio-footer__nav {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 1.5rem 1.75rem;
		padding-block: 1.65rem;
	}

	.odio-footer__column {
		border-bottom: 0;
	}

	.odio-footer__heading {
		display: block;
	}

	.odio-footer__accordion-trigger {
		display: none;
	}

	.odio-footer__accordion-panel,
	.odio-footer__column.is-open .odio-footer__accordion-panel {
		display: block;
		padding: 0;
	}
}

@media (max-width: 719px) {
	.odio-footer__cta-card {
		max-width: none;
	}

	.odio-footer__actions {
		width: 100%;
	}

	.odio-footer__actions .odio-btn {
		flex: 1 1 auto;
		justify-content: center;
	}

	.odio-footer__meta {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* ═══════════════════════════════════════
   Content layouts
   ═══════════════════════════════════════ */

.odio-content-layout {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: var(--odio-space-12);
	align-items: start;
}

.odio-content-layout--reverse {
	grid-template-columns: 320px 1fr;
}

.odio-sidebar {
	position: sticky;
	top: calc(var(--odio-header-height) + var(--odio-space-6));
}

.odio-sidebar__widget {
	padding: var(--odio-space-6);
	background: var(--odio-surface);
	border: 1px solid var(--odio-border);
	border-radius: var(--odio-radius-lg);
	margin-bottom: var(--odio-space-6);
}

.odio-sidebar__widget-title {
	font-size: var(--odio-fs-sm);
	font-weight: var(--odio-fw-semibold);
	text-transform: uppercase;
	letter-spacing: var(--odio-tracking-wide);
	margin-bottom: var(--odio-space-4);
}

/* Two-column split sections */
.odio-split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--odio-space-12);
	align-items: center;
}

.odio-split--reverse .odio-split__media {
	order: -1;
}

/* Page header block */
.odio-page-header {
	padding-block: var(--odio-space-10);
	background: var(--odio-bg-soft);
	border-bottom: 1px solid var(--odio-border);
}

.odio-page-header__title {
	font-size: var(--odio-fs-3xl);
	margin-bottom: var(--odio-space-3);
}

.odio-page-header__desc {
	font-size: var(--odio-fs-md);
	color: var(--odio-text-muted);
	max-width: 42rem;
	line-height: var(--odio-lh-relaxed);
}

/* Drawer overlay body lock */
body.odio-drawer-open {
	overflow: hidden;
}

/* Sticky CTA body padding — mobile only (CTA hides ≥768) */
@media (max-width: 767.98px) {
	body.has-sticky-cta {
		padding-bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
	}
}
