/**
 * iDent site layout — HTML + CSS only
 */

:root {
	--ident-navy: #115278;
	--ident-teal: #1ebeb6;
	--ident-header-bg: #ffffff;
	--ident-topbar-bg: #f4f8fb;
	--ident-border: rgba(17, 82, 120, 0.1);
	--ident-shadow: 0 4px 24px rgba(17, 82, 120, 0.08);
	--ident-header-height: 72px;
	--ident-topbar-height: 40px;
	--ident-header-stack-height: calc(var(--ident-topbar-height) + var(--ident-header-height) + 1px);
	--ident-container: min(1200px, calc(100% - 2.5rem));
	--ident-drawer-width: min(300px, 88vw);
}

/* No horizontal scroll — theme sections can exceed viewport width */
html {
	overflow-x: hidden;
}

body.ident-separated-header {
	overflow-x: hidden;
	max-width: 100%;
}

body.ident-separated-header .btPageWrap {
	overflow-x: hidden;
	max-width: 100%;
}

body.ident-separated-header .btContentWrap,
body.ident-separated-header .btContent,
body.ident-separated-header .bt_bb_wrapper {
	max-width: 100%;
	overflow-x: hidden;
}

/* Content images only — do not affect header logo */
body.ident-separated-header .btContent img,
body.ident-separated-header .bt_bb_wrapper img,
body.ident-separated-header .btContentWrap img:not(.ident-header__logo img),
body.ident-separated-header video,
body.ident-separated-header iframe {
	max-width: 100%;
	height: auto;
}

body.ident-separated-header .ident-header__logo,
body.ident-separated-header .ident-header__logo img {
	width: auto !important;
	max-width: 160px !important;
	height: 48px !important;
	max-height: 48px !important;
	object-fit: contain !important;
}

body.ident-separated-header .btVerticalHeaderTop,
body.ident-separated-header .mainHeader {
	display: none !important;
}

body.ident-separated-header .btContentWrap,
body.ident-separated-header .bt-content-wrap {
	padding-top: 0 !important;
	margin-top: 0 !important;
}

body.ident-separated-header.btBelowMenu .btContentHolder,
body.ident-separated-header.btBelowMenu .btBlogHeaderContent + .btContentHolder {
	padding-top: 0 !important;
}

/* Checkbox — screen reader only */
.ident-nav-check {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Top bar */
.ident-topbar {
	background: var(--ident-topbar-bg);
	border-bottom: 1px solid var(--ident-border);
	font-family: "Maven Pro", Arial, Helvetica, sans-serif;
	font-size: 0.8125rem;
	color: #5a6f7d;
}

.ident-topbar__inner {
	max-width: var(--ident-container);
	margin: 0 auto;
	padding: 0.5rem 1.25rem;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem 1.5rem;
}

.ident-topbar__item {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	line-height: 1.4;
}

.ident-topbar__item strong {
	font-weight: 600;
	color: var(--ident-navy);
}

.ident-topbar__icon {
	flex-shrink: 0;
	color: var(--ident-teal);
	margin-top: 0.1rem;
}

.ident-topbar__item--address {
	max-width: 52rem;
}

.ident-site-header {
	position: relative;
	z-index: 1000;
	width: 100%;
	background: #fff;
}

.ident-drawer,
.ident-drawer-backdrop {
	display: none;
}

.ident-float-actions {
	display: none;
}

/* Prevent page scroll when mobile drawer is open */
body.ident-separated-header:has(#ident-nav-check:checked) {
	overflow: hidden;
}

.ident-header {
	background: var(--ident-header-bg);
	border-bottom: 1px solid var(--ident-border);
	box-shadow: var(--ident-shadow);
	position: relative;
	z-index: 1;
}

.ident-header__inner {
	max-width: var(--ident-container);
	margin: 0 auto;
	padding: 0.65rem 1.25rem;
	min-height: var(--ident-header-height);
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.ident-header__logo {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	line-height: 0;
}

.ident-header__logo img {
	display: block;
	width: auto;
	height: 48px;
	max-width: 160px;
	max-height: 48px;
	object-fit: contain;
}

.ident-header__toggle {
	display: none;
}

.ident-header__menu {
	list-style: none;
	margin: 0;
	padding: 0;
	font-family: "Roboto Condensed", "Maven Pro", Arial, sans-serif;
	font-size: 0.9375rem;
	font-weight: 500;
	letter-spacing: 0.02em;
}

.ident-header__menu a {
	display: block;
	padding: 0.5rem 0.85rem;
	color: var(--ident-navy);
	text-decoration: none;
	border-radius: 6px;
	transition: color 0.2s ease, background 0.2s ease;
	position: relative;
}

.ident-header__menu a:hover,
.ident-header__menu a:focus-visible {
	color: var(--ident-teal);
	background: rgba(30, 190, 182, 0.08);
	outline: none;
}

.ident-header__menu a.is-active {
	color: var(--ident-navy);
	font-weight: 600;
}

/* Desktop horizontal nav + fixed header on scroll (no overflow-x issues) */
@media (min-width: 992px) {
	.ident-site-header {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		width: 100%;
		max-width: 100%;
		z-index: 1002;
		background: #fff;
		box-shadow: var(--ident-shadow);
	}

	/* Space for fixed header (topbar + navbar) */
	body.ident-separated-header {
		padding-top: var(--ident-header-stack-height);
	}

	.ident-header {
		box-shadow: none;
		border-bottom: 1px solid var(--ident-border);
	}

	.ident-header__inner {
		display: grid;
		grid-template-columns: auto minmax(0, 1fr) auto;
		align-items: center;
		gap: 0.75rem 1.25rem;
		min-height: var(--ident-header-height);
		max-height: var(--ident-header-height);
		padding-top: 0.5rem;
		padding-bottom: 0.5rem;
	}

	.ident-header__logo {
		grid-column: 1;
		justify-self: start;
	}

	.ident-header__nav {
		grid-column: 2;
		display: flex;
		justify-content: center;
		min-width: 0;
		overflow: hidden;
	}

	.ident-header__toggle {
		display: none !important;
		position: absolute;
		width: 0;
		height: 0;
		overflow: hidden;
	}

	.ident-header__call {
		grid-column: 3;
		justify-self: end;
	}

	.ident-header__menu {
		display: flex;
		flex-wrap: nowrap;
		align-items: center;
		justify-content: center;
		gap: 0.1rem 0.2rem;
	}

	.ident-header__menu li {
		flex-shrink: 0;
	}

	.ident-header__menu a {
		padding: 0.45rem 0.7rem;
		font-size: 0.9rem;
		white-space: nowrap;
	}

	.ident-header__menu a.is-active::after {
		content: "";
		position: absolute;
		left: 0.85rem;
		right: 0.85rem;
		bottom: 0.25rem;
		height: 2px;
		background: linear-gradient(90deg, var(--ident-teal), var(--ident-navy));
		border-radius: 2px;
	}

	.ident-drawer,
	.ident-drawer-backdrop,
	.ident-header__toggle {
		display: none !important;
	}

	.ident-float-actions {
		display: none !important;
	}
}

.ident-header__call {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	flex-shrink: 0;
	padding: 0.55rem 1.1rem;
	background: var(--ident-navy);
	color: #fff !important;
	font-family: "Maven Pro", Arial, sans-serif;
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
	border-radius: 999px;
	box-shadow: 0 4px 14px rgba(17, 82, 120, 0.25);
	transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
	white-space: nowrap;
}

.ident-header__call:hover,
.ident-header__call:focus-visible {
	background: #0d3d5c;
	color: #fff !important;
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(17, 82, 120, 0.32);
	outline: none;
}

/* ── Mobile: side drawer + corner burger + floating call ── */
@media (max-width: 991px) {
	.ident-site-header {
		position: sticky;
		top: 0;
		z-index: 1000;
		background: #fff;
	}

	.ident-topbar__item--address {
		display: none;
	}

	.ident-header__inner {
		position: relative;
		padding-right: 3.75rem;
		min-height: 64px;
	}

	.ident-header__logo img {
		height: 44px;
	}

	/* Hide desktop nav & header call on mobile */
	.ident-header__nav {
		display: none !important;
	}

	.ident-header__call {
		display: none !important;
	}

	/* Burger — top-right corner */
	.ident-header__toggle {
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		gap: 5px;
		width: 46px;
		height: 46px;
		padding: 11px;
		border: 1px solid var(--ident-border);
		border-radius: 10px;
		background: #fff;
		cursor: pointer;
		box-shadow: 0 2px 10px rgba(17, 82, 120, 0.1);
		position: absolute;
		right: 1rem;
		top: 50%;
		transform: translateY(-50%);
		z-index: 2;
	}

	.ident-header__toggle-bar {
		display: block;
		width: 22px;
		height: 2px;
		background: var(--ident-navy);
		border-radius: 2px;
		transition: transform 0.28s ease, opacity 0.2s ease;
	}

	#ident-nav-check:checked ~ .ident-header .ident-header__toggle .ident-header__toggle-bar:nth-child(1) {
		transform: translateY(7px) rotate(45deg);
	}

	#ident-nav-check:checked ~ .ident-header .ident-header__toggle .ident-header__toggle-bar:nth-child(2) {
		opacity: 0;
	}

	#ident-nav-check:checked ~ .ident-header .ident-header__toggle .ident-header__toggle-bar:nth-child(3) {
		transform: translateY(-7px) rotate(-45deg);
	}

	/* Backdrop */
	.ident-drawer-backdrop {
		display: block !important;
		position: fixed;
		inset: 0;
		background: rgba(17, 40, 60, 0.45);
		z-index: 1001;
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.3s ease, visibility 0.3s ease;
		cursor: pointer;
	}

	#ident-nav-check:checked ~ .ident-drawer-backdrop {
		opacity: 1;
		visibility: visible;
	}

	/* Side drawer from right */
	.ident-drawer {
		display: flex !important;
		flex-direction: column;
		position: fixed;
		top: 0;
		right: 0;
		width: var(--ident-drawer-width);
		max-width: 100%;
		height: 100%;
		height: 100dvh;
		background: #fff;
		z-index: 1002;
		box-shadow: -8px 0 32px rgba(17, 82, 120, 0.18);
		transform: translateX(100%);
		transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	#ident-nav-check:checked ~ .ident-drawer {
		transform: translateX(0);
	}

	.ident-drawer__head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 1.1rem 1.25rem;
		border-bottom: 1px solid var(--ident-border);
		background: var(--ident-topbar-bg);
		flex-shrink: 0;
	}

	.ident-drawer__title {
		font-family: "Maven Pro", Arial, sans-serif;
		font-size: 1.05rem;
		font-weight: 600;
		color: var(--ident-navy);
	}

	.ident-drawer__close {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 40px;
		height: 40px;
		border: none;
		border-radius: 8px;
		background: #fff;
		color: var(--ident-navy);
		font-size: 1.75rem;
		line-height: 1;
		cursor: pointer;
		box-shadow: 0 1px 6px rgba(17, 82, 120, 0.12);
	}

	.ident-drawer__nav {
		padding: 0.75rem 0 1.5rem;
		flex: 1;
	}

	.ident-drawer .ident-header__menu {
		display: flex;
		flex-direction: column;
		gap: 0.15rem;
		padding: 0 0.75rem;
	}

	.ident-drawer .ident-header__menu a {
		padding: 0.9rem 1rem;
		font-size: 1rem;
		border-radius: 8px;
	}

	.ident-drawer .ident-header__menu a.is-active {
		background: rgba(30, 190, 182, 0.1);
	}

	.ident-drawer .ident-header__menu a.is-active::after {
		content: "";
		position: absolute;
		left: 0;
		top: 50%;
		transform: translateY(-50%);
		width: 4px;
		height: 55%;
		background: var(--ident-teal);
		border-radius: 0 4px 4px 0;
	}

	/* Lock scroll when drawer open */
	#ident-nav-check:checked ~ .ident-drawer-backdrop {
		touch-action: none;
	}

	/* Floating call + WhatsApp */
	.ident-float-actions {
		display: flex !important;
		flex-direction: column;
		align-items: center;
		gap: 0.75rem;
		position: fixed;
		right: 1.25rem;
		bottom: 1.5rem;
		z-index: 999;
	}

	.ident-float-call {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 56px;
		height: 56px;
		border-radius: 50%;
		background: var(--ident-navy);
		color: #fff;
		box-shadow: 0 4px 16px rgba(17, 82, 120, 0.35);
		text-decoration: none;
		transition: transform 0.2s ease, box-shadow 0.2s ease;
	}

	.ident-float-call:hover,
	.ident-float-call:focus-visible {
		transform: scale(1.06);
		box-shadow: 0 6px 20px rgba(17, 82, 120, 0.45);
		color: #fff;
		outline: none;
	}

	.ident-float-actions .whatsapp {
		position: static;
		right: auto;
		bottom: auto;
	}

	.ident-float-actions .whatsapp img {
		width: 56px;
		height: 56px;
		display: block;
	}
}

/* Hero */
.ident-hero-banner {
	width: 100%;
	margin: 0;
	padding: 0;
	background: #f4f8fb;
	line-height: 0;
}

.ident-hero-banner .carousel,
.ident-hero-banner .carousel-inner,
.ident-hero-banner .carousel-item {
	width: 100%;
}

.ident-hero-banner .carousel-item img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
	max-height: min(72vh, 640px);
}

.ident-hero-banner .carousel-control-prev,
.ident-hero-banner .carousel-control-next {
	width: 3.5rem;
	opacity: 0.85;
}

/* Legacy whatsapp (pages not yet wrapped) */
body.ident-separated-header .whatsapp:not(.ident-float-actions .whatsapp) {
	z-index: 999;
}

@media (max-width: 575px) {
	.ident-topbar {
		font-size: 0.75rem;
	}

	.ident-topbar__inner {
		padding: 0.4rem 1rem;
		justify-content: center;
		text-align: center;
	}

	.ident-header__inner {
		padding: 0.5rem 3.5rem 0.5rem 1rem;
	}

	.ident-header__logo img {
		height: 40px;
		max-width: 140px;
	}

	.ident-header__toggle {
		right: 0.75rem;
		width: 42px;
		height: 42px;
	}

	.ident-float-actions {
		right: 1rem;
		bottom: 1.25rem;
		gap: 0.65rem;
	}

	.ident-float-call,
	.ident-float-actions .whatsapp img {
		width: 52px;
		height: 52px;
	}
}
