/* Agency header — Inter, mega menus, mobile overlay */

.agency-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	background: #f5f5f5;
	border-bottom: 1px solid #e8e8e8;
	-webkit-font-smoothing: antialiased;
}

.agency-header a {
	text-decoration: none;
	color: inherit;
	transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.agency-header__shell {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 1.25rem;
}

.agency-header__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: 4.5rem;
}

.agency-header__brand {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	flex-shrink: 0;
}

.agency-header__brand .custom-logo-link {
	display: inline-flex;
	line-height: 0;
	max-height: 36px;
}

.agency-header__brand .custom-logo-link img {
	display: block;
	max-height: 36px;
	width: auto;
	object-fit: contain;
}

.agency-header__title {
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: #0a0a0a;
}

.agency-header__title:hover {
	opacity: 0.85;
}

.agency-header__nav--desktop {
	position: relative;
	flex: 1;
	display: none;
	justify-content: flex-end;
	margin-inline-end: 0.5rem;
}

.agency-nav__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.25rem 1.35rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.agency-nav__list > li {
	margin: 0;
}

.agency-nav__list > li.menu-item--mega {
	position: static;
}

.agency-nav__list > li.menu-item-has-children:not(.menu-item--mega) {
	position: relative;
}

.agency-nav__link {
	font-size: 0.92rem;
	font-weight: 500;
	color: #141414;
	padding: 0.35rem 0;
}

.agency-nav__link:hover {
	color: #000;
}

.agency-nav__mega-trigger {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.35rem 0;
	border: none;
	background: transparent;
	font: inherit;
	font-size: 0.92rem;
	font-weight: 500;
	color: #141414;
	cursor: pointer;
	font-family: inherit;
}

.agency-nav__mega-trigger:hover,
.agency-nav__mega-trigger[aria-expanded="true"] {
	color: #000;
}

.agency-nav__chevron {
	display: block;
	width: 0.45rem;
	height: 0.45rem;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg) translateY(-1px);
	transition: transform 0.25s ease;
}

.agency-nav__mega-trigger[aria-expanded="true"] .agency-nav__chevron {
	transform: rotate(-135deg) translateY(2px);
}

/* Standard sub-menu (non-mega parents) */
.agency-nav__list .sub-menu {
	position: absolute;
	top: 100%;
	right: 0;
	margin-top: 0.35rem;
	min-width: 12rem;
	padding: 0.5rem 0;
	list-style: none;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
	z-index: 1002;
}

.agency-nav__list li:not(.menu-item--mega):hover > .sub-menu,
.agency-nav__list li:not(.menu-item--mega):focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.agency-nav__list .sub-menu a {
	display: block;
	padding: 0.55rem 1rem;
	font-size: 0.88rem;
	font-weight: 450;
	color: #333;
}

.agency-nav__list .sub-menu a:hover {
	background: #f5f5f5;
}

/* Mega panel */
.agency-mega {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	width: 100vw;
	max-width: 100%;
	margin-left: calc(50% - 50vw);
	padding: 0.75rem 1.25rem 1.5rem;
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s;
	z-index: 1001;
}

.agency-mega.is-open {
	pointer-events: auto;
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.agency-mega__panel {
	max-width: 1280px;
	margin: 0 auto;
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.1);
	padding: clamp(1.25rem, 2vw, 1.75rem) clamp(1.25rem, 3vw, 2rem) clamp(1rem, 2vw, 1.5rem);
}

.agency-mega__eyebrow {
	margin: 0 0 1rem;
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	color: #8a8a8a;
	text-transform: uppercase;
}

.agency-mega__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem 1.35rem;
}

@media (min-width: 960px) {
	.agency-mega__grid--wide {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.agency-mega-card {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 1rem;
	align-items: start;
	padding: 0.85rem 0.65rem;
	border-radius: 14px;
	transition: background 0.2s ease, transform 0.2s ease;
	color: inherit;
	border: 1px solid transparent;
}

.agency-mega-card:hover {
	background: #fafafa;
	border-color: #eee;
	transform: translateY(-1px);
}

.agency-mega-card__visual {
	width: 3.25rem;
	height: 3.25rem;
	border-radius: 10px;
	border: 1px solid #e5e5e5;
	background: linear-gradient(135deg, #f0f0f0, #fafafa);
	flex-shrink: 0;
}

.agency-mega-card--accent-1 .agency-mega-card__visual {
	background: linear-gradient(145deg, #e8ddff 0%, #d4c4ff 100%);
}
.agency-mega-card--accent-2 .agency-mega-card__visual {
	background: linear-gradient(145deg, #d8f5e4 0%, #b8e8cc 100%);
}
.agency-mega-card--accent-3 .agency-mega-card__visual {
	background: linear-gradient(145deg, #d6ecff 0%, #b8d9ff 100%);
}
.agency-mega-card--accent-4 .agency-mega-card__visual {
	background: linear-gradient(145deg, #d4f0dc 0%, #aee8c0 100%);
}
.agency-mega-card--accent-5 .agency-mega-card__visual {
	background: linear-gradient(145deg, #ffe8cc 0%, #ffd49a 100%);
}
.agency-mega-card--accent-6 .agency-mega-card__visual {
	background: linear-gradient(145deg, #ffd6e8 0%, #ffb8d9 100%);
}
.agency-mega-card--accent-7 .agency-mega-card__visual {
	background: linear-gradient(145deg, #fff3c4 0%, #ffe08a 100%);
}
.agency-mega-card--accent-8 .agency-mega-card__visual {
	background: linear-gradient(145deg, #ebe5ff 0%, #d4c8ff 100%);
}

.agency-mega-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	min-width: 0;
}

.agency-mega-card__title {
	font-size: 0.98rem;
	font-weight: 700;
	color: #0a0a0a;
	letter-spacing: -0.02em;
}

.agency-mega-card__desc {
	font-size: 0.82rem;
	line-height: 1.45;
	color: #4d4d4d;
	margin: 0;
}

.agency-mega-card__link {
	font-size: 0.8rem;
	font-weight: 600;
	color: #222;
	margin-top: 0.15rem;
}

.agency-mega__footer {
	margin-top: 1.15rem;
	padding-top: 1rem;
	border-top: 1px solid #ededed;
}

.agency-mega__footer-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.65rem;
	width: 100%;
	padding: 0.95rem 1.25rem;
	border-radius: 12px;
	background: #0a0a0a;
	color: #fff !important;
	font-size: 0.92rem;
	font-weight: 600;
	transition: background 0.2s ease, transform 0.2s ease;
}

.agency-mega__footer-btn:hover {
	background: #1a1a1a;
	color: #fff !important;
	transform: translateY(-1px);
}

.agency-mega__footer-btn-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.75rem;
	height: 1.75rem;
	border-radius: 50%;
	background: #fff;
	color: #0a0a0a;
}

.agency-header__actions {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	flex-shrink: 0;
}

.agency-header__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.65rem 1.35rem;
	border-radius: 999px;
	background: #0a0a0a;
	color: #fff !important;
	font-size: 0.88rem;
	font-weight: 600;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.agency-header__cta:hover {
	color: #fff !important;
	opacity: 0.92;
	transform: translateY(-1px);
}

.agency-header__cta--desktop {
	display: none;
}

.agency-header__hamburger {
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: none;
	background: transparent !important;
	cursor: pointer;
	color: #0a0a0a !important;
}

.agency-header__hamburger-line {
	display: block;
	height: 2px;
	width: 100%;
	border-radius: 999px;
	background: currentColor;
	transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Mobile full-screen panel */
.agency-mobile {
	position: fixed;
	inset: 0;
	z-index: 2000;
	background: #fff;
	overflow: auto;
	-webkit-overflow-scrolling: touch;
}

.agency-mobile[hidden] {
	display: none !important;
}

.agency-mobile__shell {
	max-width: 1280px;
	margin: 0 auto;
	padding: 1.25rem 1.25rem 2rem;
	min-height: 100%;
	display: flex;
	flex-direction: column;
}

.agency-mobile__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid #ededed;
}

.agency-mobile__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 1px solid #2563eb;
	border-radius: 8px;
	background: #fff;
	color: #0a0a0a;
	cursor: pointer;
	transition: background 0.2s ease;
}

.agency-mobile__close:hover {
	background: #f8fafc;
}

.agency-mobile__links {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.1rem 1.5rem;
	padding: 2rem 0 1.5rem;
	flex: 1;
	align-content: start;
}

.agency-mobile__link {
	font-size: 0.98rem;
	font-weight: 500;
	color: #0f172a;
	padding: 0.15rem 0;
}

.agency-mobile__link:hover {
	color: #000;
}

.agency-mobile__cta {
	width: 100%;
	text-align: center;
	margin-top: auto;
	padding: 1rem 1.25rem;
}

body.agency-mobile-open {
	overflow: hidden;
}

/* Desktop breakpoint */
@media (min-width: 1025px) {
	.agency-header__nav--desktop {
		display: flex;
	}

	.agency-header__cta--desktop {
		display: inline-flex;
	}

	.agency-header__hamburger {
		display: none;
	}

	.agency-mobile {
		display: none !important;
	}
}

@media (max-width: 560px) {
	.agency-mobile__links {
		grid-template-columns: 1fr;
	}
}

/* hidden + open */
.agency-mega[hidden]:not(.is-open) {
	display: none !important;
}

.agency-mega.is-open[hidden] {
	display: block !important;
}