/**
 * City landing pages — aligned with Codenexa theme tokens + GSAP hooks.
 */

/* ── Hero (inherits .section-hero.v1) ── */
.cn-city-landing__hero.section-hero,
.cn-city-hub__hero.section-hero {
	min-height: auto;
	padding-bottom: 0;
	overflow: visible;
}

.cn-city-hero-intro {
	overflow: visible;
	position: relative;
	z-index: 3;
	min-width: 0;
}

.cn-city-hero-animate__title,
.cn-city-landing__title {
	perspective: 700px;
}

.cn-city-hero-animate__title-line {
	display: inline-block;
	transform-style: preserve-3d;
	will-change: transform, opacity;
}

.cn-city-landing__title .title1,
.cn-city-landing__title-city {
	display: block;
	max-width: 100%;
	overflow: visible;
	transform-style: preserve-3d;
	will-change: transform, opacity;
}

.cn-city-hero-animate__bg {
	will-change: transform, opacity;
}

.cn-city-landing__hero-tools > img {
	will-change: transform, opacity;
}

.cn-city-landing__hero .container {
	position: relative;
	z-index: 2;
	padding-top: clamp(120px, 14vw, 180px);
	padding-bottom: clamp(48px, 6vw, 80px);
}

.cn-city-landing__hero-glow {
	position: absolute;
	inset: 16px 16px 0 16px;
	border-radius: 40px;
	z-index: 1;
	pointer-events: none;
	background:
		radial-gradient(ellipse 70% 55% at 15% 25%, rgba(48, 125, 255, 0.18), transparent 60%),
		radial-gradient(ellipse 50% 45% at 85% 75%, rgba(26, 168, 224, 0.12), transparent 55%);
}

.cn-city-landing__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
}

.cn-city-landing__badge {
	display: inline-flex;
	align-items: center;
	padding: 6px 14px;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	background: rgba(48, 125, 255, 0.1);
	color: var(--brand, #307dff);
	border: 1px solid rgba(48, 125, 255, 0.25);
}

.cn-city-landing__badge--city {
	background: var(--brand, #307dff);
	color: #fff;
	border-color: transparent;
}

.cn-city-landing__badge--soft {
	background: rgba(255, 255, 255, 0.85);
	color: var(--neutral-600, #4a4d6a);
	border-color: rgba(48, 125, 255, 0.12);
	text-transform: none;
	letter-spacing: 0;
	font-size: 0.8125rem;
}

.cn-city-landing__title {
	margin: 0 0 16px;
	overflow: visible;
}

.cn-city-landing__title.text-display-2 {
	line-height: 1.2;
}

.cn-city-landing__title .title1 {
	hyphens: auto;
	overflow-wrap: break-word;
	word-break: normal;
}

.cn-city-landing__title-city {
	margin-top: 4px;
	color: var(--brand, #307dff);
}

.cn-city-landing__lead {
	margin: 0 0 24px;
	max-width: 52ch;
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--neutral-600, #4a4d6a);
}

.cn-city-landing__usps {
	margin: 0 0 28px;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 10px;
}

.cn-city-landing__usps li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 0.9375rem;
	font-weight: 500;
	color: var(--neutral-700, #2e3148);
}

.cn-city-landing__usps li .icon {
	flex-shrink: 0;
	margin-top: 2px;
	font-size: 0.875rem;
	color: var(--brand, #307dff);
}

.cn-city-landing__hero-ctas.bot-btns {
	justify-content: flex-start;
}

/* Floating tool icons — absolute overlay on the right */
.cn-city-landing__hero-tools.section-tools {
	padding: 0;
	overflow: visible;
}

.cn-city-landing__hero-tools.section-tools > img {
	pointer-events: none;
}

.cn-city-landing__hero-tools--float {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(44%, 540px);
	z-index: 0;
	pointer-events: none;
	min-height: 0;
}

.cn-city-landing__hero-tools--float .img-1 {
	top: 8%;
	right: 6%;
	left: auto;
	width: 96px;
	transform: scale(1) rotate(30deg);
}

.cn-city-landing__hero-tools--float .img-2 {
	top: 24%;
	right: 34%;
	left: auto;
	width: 80px;
	transform: scale(1) rotate(-12deg);
}

.cn-city-landing__hero-tools--float .img-3 {
	top: 40%;
	right: 10%;
	left: auto;
	width: 88px;
	transform: scale(1) rotate(-15deg);
}

.cn-city-landing__hero-tools--float .img-4 {
	top: 54%;
	right: 30%;
	left: auto;
	width: 88px;
	transform: scale(1) rotate(-15deg);
}

.cn-city-landing__hero-tools--float .img-5 {
	top: 68%;
	right: 8%;
	left: auto;
	width: 80px;
	transform: scale(1) rotate(15deg);
}

.cn-city-landing__hero-tools--float .img-6 {
	top: 82%;
	right: 32%;
	left: auto;
	width: 96px;
	transform: scale(1) rotate(30deg);
}

/* Hub hero — full-width scatter like section-tools */
.cn-city-landing__hero-tools--hub {
	position: absolute;
	inset: 16px 16px 0 16px;
	border-radius: 40px;
	z-index: 2;
	pointer-events: none;
	padding: 0 !important;
	min-height: 0;
	overflow: hidden;
}

.cn-city-hub__hero .container {
	position: relative;
	z-index: 3;
}

@media (max-width: 1199px) {
	.cn-city-landing__hero-tools--hub {
		display: none;
	}
}

.cn-city-lead__form-title {
	margin: 0 0 6px;
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--neutral-900, #0f1020);
}

.cn-city-lead__form-sub {
	margin: 0 0 20px;
	font-size: 0.8125rem;
	color: var(--neutral-500, #8890b5);
}

.cn-city-lead__submit {
	font-size: 1rem;
	min-height: 48px;
}

/* ── Lead form modal ── */
.cn-city-lead-modal .modal-dialog {
	max-width: 520px;
}

.cn-city-lead-modal__content {
	border-radius: 20px !important;
	overflow: hidden;
	border: 1px solid rgba(48, 125, 255, 0.12);
	box-shadow: 0 32px 80px rgba(15, 16, 32, 0.18);
}

.cn-city-lead-modal__body {
	position: relative;
	padding: 32px 28px 28px;
}

.cn-city-lead-modal__title {
	margin: 0 0 6px;
	font-size: 1.375rem;
	line-height: 1.25;
	color: var(--neutral-900, #0f1020);
}

.cn-city-lead-modal__sub {
	margin: 0 0 24px;
	font-size: 0.8125rem;
	color: var(--neutral-500, #8890b5);
}

.cn-city-lead-modal .icon-close-popup {
	top: 12px;
	right: 12px;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--neutral-100, #eef2ff);
}

.cn-city-lead-modal .icon-close-popup:hover {
	background: rgba(48, 125, 255, 0.12);
	color: var(--brand, #307dff);
}

.cn-city-lead-modal .modal-backdrop {
	background-color: rgba(15, 16, 32, 0.55);
}

.cn-city-landing__hero-ctas .tf-btn,
.cn-city-landing__cta-actions .tf-btn,
.cn-city-landing__sticky-btn {
	cursor: pointer;
	border: none;
	font-family: inherit;
}

/* ── Trust bar ── */
.cn-city-landing__trust {
	padding: 4rem 0;
	background: var(--cn-color-bg);
}

.cn-city-landing__trust-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1rem 12rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cn-city-landing__trust-list li {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 2px;
}

.cn-city-landing__trust-list strong {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--brand, #307dff);
	line-height: 1.2;
}

.cn-city-landing__trust-list span {
	font-size: 0.8125rem;
	color: var(--neutral-600, #4a4d6a);
}

/* ── Service cards ── */
.cn-city-landing__service-card {
	height: 100%;
	padding: 24px;
	border-radius: 16px;
	background: var(--white, #fff);
	border: 1px solid rgba(48, 125, 255, 0.12);
	box-shadow: 0 8px 24px rgba(15, 16, 32, 0.06);
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.cn-city-landing__service-card:hover {
	border-color: rgba(48, 125, 255, 0.35);
	box-shadow: 0 12px 32px rgba(48, 125, 255, 0.12);
	transform: translateY(-2px);
}

.cn-city-landing__service-card .icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin-bottom: 16px;
	border-radius: 12px;
	font-size: 1.25rem;
	color: var(--brand, #307dff);
	background: rgba(48, 125, 255, 0.1);
}

.cn-city-landing__service-card h3 {
	margin: 0 0 8px;
	font-size: 1.0625rem;
}

.cn-city-landing__service-card p {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.55;
}

/* ── Process (dark band inside .box-white-none) ── */
.cn-city-landing__process--dark {
	background: var(--neutral-900, #1a1832);
}

.cn-city-landing__steps {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cn-city-landing__step {
	padding: 20px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.08);
	transition: border-color 0.2s ease, background 0.2s ease;
}

.cn-city-landing__step:hover {
	border-color: rgba(48, 125, 255, 0.35);
	background: rgba(48, 125, 255, 0.08);
}

.cn-city-landing__step-num {
	display: block;
	margin-bottom: 12px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: var(--brand, #307dff);
}

.cn-city-landing__step h3 {
	margin: 0 0 8px;
	color: #fff;
}

.cn-city-landing__step p {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.65);
}

/* ── FAQ ── */
.cn-city-landing__faq-item {
	margin-bottom: 12px;
	border-radius: 12px;
	border: 1px solid rgba(48, 125, 255, 0.15);
	background: var(--white, #fff);
	overflow: hidden;
	transition: border-color 0.2s ease;
}

.cn-city-landing__faq-item[open] {
	border-color: rgba(48, 125, 255, 0.35);
}

.cn-city-landing__faq-item summary {
	padding: 16px 20px;
	font-weight: 600;
	cursor: pointer;
	color: var(--neutral-900, #0f1020);
	list-style: none;
	min-height: 48px;
	display: flex;
	align-items: center;
}

.cn-city-landing__faq-item summary::-webkit-details-marker {
	display: none;
}

.cn-city-landing__faq-item summary:focus-visible {
	outline: 2px solid var(--brand, #307dff);
	outline-offset: -2px;
}

.cn-city-landing__faq-item p {
	margin: 0;
	padding: 0 20px 16px;
	font-size: 0.9375rem;
	line-height: 1.6;
	color: var(--neutral-600, #4a4d6a);
}

/* ── Nearby cities ── */
.cn-city-landing__nearby-sub {
	margin: 8px 0 0;
	font-size: 0.9375rem;
}

.cn-city-landing__nearby-sub a {
	color: var(--brand, #307dff);
	font-weight: 600;
	text-decoration: none;
}

.cn-city-landing__nearby-sub a:hover {
	text-decoration: underline;
}

.cn-city-landing__city-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 12px;
}

.cn-city-landing__city-link {
	display: block;
	padding: 14px 18px;
	border-radius: 12px;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--neutral-900, #0f1020);
	background: var(--white, #fff);
	border: 1px solid rgba(48, 125, 255, 0.15);
	text-decoration: none;
	transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.2s ease;
	min-height: 48px;
	display: flex;
	align-items: center;
}

.cn-city-landing__city-link:hover {
	color: var(--brand, #307dff);
	border-color: rgba(48, 125, 255, 0.4);
	background: var(--neutral-100, #eef2ff);
	transform: translateY(-1px);
}

/* ── CTA band ── */
.cn-city-landing__cta-band {
	padding: clamp(40px, 5vw, 64px) 0;
	background: linear-gradient(135deg, #2568e6, var(--brand, #307dff));
}

.cn-city-landing__cta-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.cn-city-landing__cta-band .heading-title {
	margin: 0;
}

.cn-city-landing__cta-band p {
	margin: 8px 0 0;
	color: rgba(255, 255, 255, 0.9);
}

.cn-city-landing__cta-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.cn-city-landing__cta-band .tf-btn {
	background: #fff;
	color: #2568e6;
}

.cn-city-landing__cta-band .tf-btn:hover {
	background: var(--neutral-100, #eef2ff);
}

.cn-city-landing__cta-band .tf-btn-2 {
	color: #fff;
	background: transparent;
	border: 2px solid rgba(255, 255, 255, 0.8);
	box-shadow: none;
}

.cn-city-landing__cta-band .tf-btn-2:hover {
	color: #2568e6;
	background: #fff;
	border-color: #fff;
	box-shadow: 0 4px 16px rgba(15, 16, 32, 0.15);
}

/* ── Sticky mobile CTA ── */
.cn-city-landing__sticky {
	display: none;
}

/* ── Hub page ── */
.cn-city-hub__hero .cn-city-hub__hero-inner {
	padding: clamp(120px, 14vw, 180px) 0 clamp(48px, 6vw, 72px);
}

.cn-city-landing__city-grid--hub {
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 16px;
}

.cn-city-landing__city-card {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 20px 22px;
	border-radius: 16px;
	background: var(--white, #fff);
	border: 1px solid rgba(48, 125, 255, 0.12);
	text-decoration: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
	min-height: 48px;
}

.cn-city-landing__city-card:hover {
	border-color: rgba(48, 125, 255, 0.4);
	box-shadow: 0 12px 32px rgba(48, 125, 255, 0.12);
	transform: translateY(-2px);
}

.cn-city-landing__city-card-name {
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--neutral-900, #0f1020);
}

.cn-city-landing__city-card-meta {
	font-size: 0.8125rem;
	color: var(--neutral-500, #8890b5);
}

.cn-city-landing__city-card-arrow {
	margin-top: 8px;
	font-size: 1.25rem;
	color: var(--brand, #307dff);
}

/* ── Reduced motion: keep content visible if GSAP skipped ── */
@media (prefers-reduced-motion: reduce) {
	.cn-city-hero-animate .cn-city-hero-intro > *,
	.cn-city-hero-animate .cn-city-landing__hero-tools > img,
	.cn-city-hero-animate .cn-city-hub__hero-inner > *,
	.cn-city-hero-animate__bg,
	.cn-city-hero-animate__glow {
		opacity: 1 !important;
		transform: none !important;
		visibility: visible !important;
	}
}

@media (max-width: 991px) {
	.cn-city-landing__steps {
		grid-template-columns: repeat(2, 1fr);
	}

}

@media (max-width: 767px) {
	.cn-city-landing__hero-ctas {
		flex-direction: column;
	}

	.cn-city-landing__hero-ctas .tf-btn,
	.cn-city-landing__hero-ctas .tf-btn-2 {
		width: 100%;
		justify-content: center;
	}

	.cn-city-landing__steps {
		grid-template-columns: 1fr;
	}

	.cn-city-landing__cta-inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.cn-city-landing__cta-actions {
		width: 100%;
		flex-direction: column;
	}

	.cn-city-landing__cta-actions .tf-btn,
	.cn-city-landing__cta-actions .tf-btn-2 {
		width: 100%;
		text-align: center;
	}

	.cn-city-landing__sticky {
		display: block;
		position: fixed;
		inset: auto 0 0;
		z-index: 10030;
		padding: 12px 16px;
		padding-bottom: max(12px, env(safe-area-inset-bottom));
		background: rgba(255, 255, 255, 0.96);
		border-top: 1px solid rgba(48, 125, 255, 0.15);
		box-shadow: 0 -8px 24px rgba(15, 16, 32, 0.1);
	}

	.cn-city-landing__sticky-btn {
		width: 100%;
		min-height: 48px;
	}

	.cn-city-landing {
		padding-bottom: calc(72px + env(safe-area-inset-bottom));
	}
}
